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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var vQh,QhB,EQT,bEt,FSQ,KSt,EB,LSt,ZEt,Fr,ib,PbZ,dmr,fE,CE,hTS,w9o,A3o,Mm,YBm,y3G,nE,G0o,RTr,qB3,zTo,xmQ,BGT,sh9,WSh,oQQ,atE,V8,LZ,tS,Itm,pZ,ZX,HEo,ka,CZ,Umb,vaQ,zq,NZ,Vph,iZb,LA9,sR,eQo,ZZG,jp,PxS,dZt,hQb,Xa,tp0,aN,ASb,YRB,CxT,Ps,Mph,OZo,Z0,cSQ,pj,fXQ,GqT,JSG,xZo,BVZ,y5,uaZ,sN9,jNo,WA0,oaE,aXh,rSr,HZr,mZ0,Q8b,EfB,FIt,psG,Zjr,emS,zh,Pho,TY3,N$,YdB,c7G,MqT,Ghm,Oj3,Cht,gY,XN3,sd,jq,o8,D$G,Xn,l0r,Rmo,nfb,Hs,qdh,SdG,zmG,J7m,x$9,NYQ,BYm,gf9,s8G,$f,j8Q,ofS,a0B,$$Q,FI,Hj3,vPo,iV,EPh,KJb,U$Z,ifh,tc3,pqE,
AeE,PVB,Tl3,ye3,ce0,Gd9,CV9,Rbb,nPZ,S90,Jet,Blt,sE9,uIr,WJS,a5G,UjB,RE,Qab,Ew0,b$h,Nj,xP,gl,$P,Hq,U9,Z$3,K$,d1Q,AT9,Tut,Y_G,yTQ,Pc,cTQ,hT,wu,AT,kw,GCQ,Ci0,M10,O$m,D1E,nwG,lVB,q_Q,S_9,JTb,f$,cc,Nuh,x1Z,Buo,sa3,gwZ,ud9,jat,WkE,S1,zC,JT,N1,Bc,XcT,gu,rTo,U1m,j1,v4b,QbB,VSr,oa,E40,bwh,FQ0,aa,LQQ,$w,eD0,Zw0,Ia,dNr,Pab,hDt,w4G,AdZ,kT0,U_,TIr,YYG,v4,yd0,cdb,Qx,Vx,EY,ba,fTE,CaZ,GTS,FH,OwG,DNt,RDo,ia,td,pw,eS,ZT,P4,n4E,lTo,SYB,zD9,NIo,xNE,BIo,g4o,sbG,uHT,wI,jbQ,WQt,X49,aTQ,rdG,$No,ITE,Hw0,mNG,Y4,UNr,c4,fw,
vJh,EJT,bgm,Feb,igE,LeZ,tKT,PtS,dz3,hIb,wMS,A5b,kcr,TZo,fg9,OY,Gch,Cto,MKo,OgQ,Dzt,RIT,lg0,Wet,oJZ,XM3,$zQ,Igt,Jd,Hg9,vUt,EUS,baS,F$b,K$o,iaG,L$Q,t_r,pRE,ZaG,PHo,Qrr,dAr,hpS,wRT,AaQ,keb,Tbm,YXT,yao,caE,M_B,GeQ,RpZ,OaE,DAt,qXS,SXB,zp3,nUB,Nb0,lQr,Bbr,UY,gUG,vM,Eh,srQ,jrQ,W$o,aQS,EbQ,$AE,raZ,Hab,UAr,IQt,tgr,KX9,pUo,eJr,ZUG,Pkh,dPb,wUT,hJE,A1t,kg0,T70,Yio,c1h,GgT,Ckb,MgT,DPt,OUr,sSB,Lg,u1G,WXr,obb,XUS,axo,r1G,IxQ,HU3,mPQ,wZ,A5,UP9,FFm,YJ,yl,twT,eHr,ytr,Oh,G_G,Cvb,RH3,Oib,DYG,qz,ndT,l9m,SGt,zH3,Jto,N$B,
xY0,B$b,gdE,uFQ,jmr,od9,WFS,rtZ,jK,X9,I9Q,HiB,mYB,UYr,vFT,Qem,EF0,F7m,bOh,bH,Ka,hBS,pa,yF9,cF9,e_,GYt,fd0,Sfo,zBE,JF9,xLE,uT3,W7Z,oF9,Xrh,adt,$Lh,HOG,mLQ,ha,vh0,YU,Vx0,EhT,bpT,Ktb,QyZ,ULQ,Ftr,kU,LtB,ZpE,pxm,hy3,wx9,kvT,To3,Y0Z,y8B,OX,c8S,GvZ,fWT,CSo,Opm,na,nhZ,S_,Ja,ze,zyt,Ry3,gh9,tzE,ZWS,edS,hdt,gb,Aqt,YHm,yqt,WR,fe0,Xb,ar,Mz3,Rd0,leS,qHt,SHm,Ir,zdZ,HR,Jq9,xFb,BXE,g0r,sco,jc3,Qr,Wor,o03,Ei,KU,rq9,$FQ,IeB,UFr,vyT,Vu0,EyQ,pEh,en3,i2r,Puh,dvm,hnZ,A1,Tg,Yb,TCG,YS0,fU,yrr,crr,f3B,GEQ,Muh,O2E,Dv3,Rn3,
CuB,nyB,MP,qSB,xvZ,Oi,NCE,BCt,l3Q,gyt,RS,u29,jTS,Wi9,oyr,a3B,XE0,rr9,H2G,$vt,UvQ,Fb0,iCG,tHr,ZCB,eaZ,pj9,PYZ,do0,wjT,kiB,AYb,YnT,g7,cYm,fa3,GiT,CY3,DoQ,nIZ,RaS,laS,qn3,WU,Sno,za3,NiS,BiG,uym,WbT,jxS,Z9,oIb,xoS,moh,v7Z,Q$Q,VPZ,kd,E7h,FLZ,LLQ,e9E,ppS,h9Q,wpt,Ay9,k2B,Y2S,CI9,yyb,fGS,G2t,MPB,Otm,R9E,Dp0,lGB,n7S,lv,q2h,z9r,Jym,g7b,g$,sG,s$Q,u$G,uv,Xpr,XF,r$,$d,IGB,Im,Up9,UG,vzb,QFB,V0Z,Ez3,Vh,b7m,F53,K5Z,L5S,pBb,P3t,h6b,Zd,wBb,A4b,kOm,T8r,YxG,y4Q,c4Z,fib,hF,M0t,O7t,DSm,R6b,nz0,li9,qxr,Sxm,z6B,J4G,N89,
xSZ,B8m,fO,H7o,mSm,GY,CO,ML,USr,vNE,QOb,VVr,ENb,bFo,F9Z,pHG,e2b,ZFE,PKQ,d2r,nO,qL,Sj,zY,xF,Br,gO,wHh,uD,kAG,jj,THt,YpB,Wr,ynG,cnQ,flo,qph,z2T,gNG,W99,jO3,Spo,oNm,rnB,LVr,vv3,PfQ,VTh,e$b,dfQ,Ie,wnQ,m7,kPG,Tg3,yMS,cMt,f7b,Cft,Qp,OhG,DfS,R$h,nvQ,l7G,qJQ,SJ9,MTb,NgB,xfS,BgG,E0,ovE,Xnh,WVG,rMt,$f3,HhB,mfS,I7Q,Fd9,ixG,tMr,e1h,Px,k4Q,wgT,ART,fMt,Cdo,MMG,Ox0,DQT,R19,nDo,MR,gDb,uLQ,xQB,NEG,sd3,qoQ,Wd3,QJB,aMZ,rR3,$Qb,egt,PPt,p_G,TSB,t$0,lMZ,kr9,Xgr,vWt,Z_h,jdb,z1E,SoS,JRt,BE0,L03,Wx,SPT,Jso,NST,xCb,BSt,rsB,
UCE,vlG,Qi,VCQ,FCm,tCr,LCB,eqt,Z4b,dJZ,wwS,hqr,A2G,kwB,TWQ,Yur,c2Z,y20,dX,DJB,O4h,MC0,quo,RqQ,Sub,lz0,zqB,J2B,glr,xJ0,BWo,uSE,olB,XwZ,$J3,Iz0,H4E,mJ0,vSE,Vi0,Y0,brT,irZ,F6r,L6T,ZrS,PAT,wY9,kz3,CW,MF,cxT,fv3,OH,De,Gzr,Rc,nW,CA0,lM,Mim,qF,Orb,DMG,z7,Rer,nSG,lvB,qIB,SI9,Jx0,zeb,xMZ,sIT,gSB,uQr,jIo,Ns0,W6E,av9,XYr,BsE,rxQ,$M0,gX,Ivr,mM3,Hro,UMB,vGZ,Vtm,QCm,EGh,uM,Fhm,KhQ,bqZ,LhE,ttB,pZB,d3o,A_G,c_9,Mtt,jz,RSh,nGS,Wa,loo,rX,$0,x30,XJ,mo,B3b,gGG,uu0,jCr,oGB,aoZ,r_o,$3b,Io0,U3E,bNZ,VmE,m3B,F30,K3Z,bu,EKh,
iNb,iu,L3b,tmT,pC0,eLr,hL9,ZNZ,dqE,TBb,Y7m,Cqr,GsZ,Dqh,zL9,JI0,xq3,gKE,sqZ,jq9,W39,oKm,aDZ,rIt,$qZ,mqQ,V3o,E$T,Uq3,FwZ,ioT,KwB,bor,Lw9,p7Q,e5h,Zor,Pyh,dcE,TE,Yy,f2,Mv,AZ9,kmo,Yct,fyZ,OS,D3,Gmo,RT,Ooh,Dct,R5o,lu,z5Q,B2o,sMQ,uZ0,jMr,o$Z,X7S,ay9,IyB,Su,HoS,vuT,zE,Qgm,F_Z,Jr,L_m,Nv,gC,sS,tDT,evE,pAE,PcG,dVS,hvG,wAm,Zvr,yGh,cGT,GlE,MDo,nut,Rv9,lOT,SEB,zvQ,JGb,NLE,xV3,BL9,guh,jgr,sgB,X2,ouQ,aT,XAT,$y,IT,aOt,rGQ,$VT,IOB,Hvt,HE,mVS,UVh,vxb,QlB,Ex3,bMG,FGb,KGE,iMb,tNo,LGt,mi,eKT,PzS,dkE,hKG,weZ,Tnm,y69,VC,
fuQ,Cz9,MNm,OMo,Dk9,RKB,nxm,lut,qMT,YMb,c69,SMS,zK0,BnQ,gxE,slQ,uEB,EYt,KKE,iBS,LKZ,FKh,d7b,AfS,h_b,kpm,yfE,fIE,CNb,R_T,D7m,SCZ,Za,z_E,Jf0,Pj,NeQ,di,x7E,BeS,gY9,uG0,sHr,jH3,WKB,oYT,XLS,U7S,Q4G,E5Z,VOG,II0,rfb,Fvb,iY9,ZYh,P8B,wV9,cc9,Gjt,kI,C80,OYo,D6b,n5o,zwT,x6B,s4E,uB3,j49,WvG,$6r,o5B,U6h,vm3,QBG,Emb,fC,bVm,KUh,iVQ,LUG,tXZ,pWT,ehm,ZV3,dnS,hh0,On,wWo,ACZ,TmG,Rx,kIE,yCr,C0b,qo,MXS,OVb,DnT,lbS,qkG,RhT,zh3,Bmo,gmQ,sBb,Bj,uUm,XWo,abS,jH,IbE,rCS,$n0,Unr,v9Q,QXS,Fpr,Lpo,idE,Kp3,thT,ef3,ZdG,AB0,P7B,k59,
YvE,TAt,Mhh,Rfh,l2o,Sv9,xdr,o9o,G2,a2Q,Hdb,Udh,cp,z2,F40,t5m,L49,eYm,ZH0,d_T,P9Z,hY9,wmG,Jy,sOT,K43,pmr,iH3,qp,TJ0,YOb,yLt,cLm,M5m,OHB,RYB,n_o,lqE,qOm,SOQ,a$,zY3,JLB,NJ3,x_h,BJE,Hp,g_r,j0b,o_r,XmE,U_b,QZr,V6G,EpT,Fxt,KxZ,K7,Lxm,t6h,pOm,ert,ZDT,Pgb,hrQ,AQ3,Twm,Yj9,M6Z,G6Q,ODb,npQ,lpQ,PB,qjr,SjZ,zrr,xsr,gpB,Bwh,uYb,Wxr,A4,XO0,apb,opZ,rQZ,$sh,HDr,UsS,ms9,vcS,Iph,Q5G,VIo,EcT,bJo,Flb,Kl3,iJh,LlQ,tIE,ZJm,eco,P6S,hc0,dl9,kz,w6E,TxE,f6r,ADh,MIb,OJQ,DlZ,Rc3,qAE,gcE,s5Z,j5m,WlE,l3,rD9,mlm,QKb,qS,FrT,V4m,EXr,
bAh,Kr0,e4B,xz,ZAr,P_3,h4o,wub,AjT,kX9,YZt,yjo,nXh,M4S,DKo,qZE,lHr,SZB,z4B,NKb,Z1o,dD0,wkE,A9S,T4Q,RjZ,qrB,zjt,J90,N4r,xD9,B4Z,suh,uOQ,o2o,Xk0,ahQ,r9S,$Dt,IhS,H1h,mDr,QsS,Fsr,IF,HB,m5,Ks0,iPS,QJ,t2r,kVr,GVm,c$E,ssh,uWG,js9,ezB,A$m,dIb,oH9,XI9,aZb,r$b,YsT,$IT,HP0,UI9,Vsh,EOr,eV,Z5h,dgB,wyr,Avo,Ymh,cvr,yvS,CF9,O5E,zWt,qmo,RWG,SmT,nOT,Jv9,gOh,M2,Op,$gh,XyZ,H5b,mgr,vqE,Qnr,RO,Vnm,FMB,KMB,iTb,LMB,wbS,hFo,xN,cko,WH,GSB,CUQ,Mnr,OT0,Dhb,RFT,nqT,l8E,qLB,SLo,zF3,Xp,Jkh,NkS,xh0,BkB,gq9,snh,uAE,jnG,rH,WM9,oqt,
Xbr,a8Q,rko,$hr,I8o,HT9,mhB,Uho,vCS,QAZ,VRo,IO,b0b,KHS,LHG,ePm,d00,hPo,w8h,k3G,YQo,yVE,cVG,Kh,O03,Clt,D0G,RP3,nCB,SQT,zPZ,JVB,x0h,TP,gC3,AM,uDb,jAS,Yv,WHS,oCQ,X8Q,aJB,cn,H03,U09,bnQ,EkE,KRh,inB,R1,LRQ,tUr,elo,PR0,dbS,wlT,AwZ,Znm,kDm,fES,OnE,Dbo,nh,Rl3,nkG,Jwm,lE0,SaT,zlG,uxh,xbo,jwo,okQ,aEB,rwh,$b9,IET,HnG,mbT,vRB,QRT,VkB,ERS,bl9,KTm,LT0,e0h,h09,k8m,YTZ,fno,xv,G8r,Co3,MkT,OlT,De0,nRE,lnE,qTS,STG,z0m,Jbb,Nvt,xeG,BvE,gR0,sRZ,jR9,u80,XFE,rbm,sJ,$eZ,meZ,Hlh,QYT,V8S,ELr,Kcr,t8r,LcE,Fc0,Z9S,eX9,AoE,PQG,
X6,hXB,GHE,Yym,yoE,co9,fPT,CQh,O9o,M8B,a1,rg,zXr,RXG,SyG,qyo,nL3,lPh,xum,gL9,uo9,sYZ,jYt,aP3,Xo0,$ur,muh,vAo,H9h,QWT,EAh,V93,FuT,Lut,UJ,t9r,pPo,Pwb,kQB,GQ0,QK,M90,DW0,qV9,lcG,R7Z,nAb,Kx,Nyt,SVt,z7Z,xWm,gAm,By3,jWS,Wu9,XP3,ach,rES,$Wt,Ic3,mWo,UWr,T4,Qj9,VAS,KnE,i6r,G4,Lnm,pdB,T19,Rd,dEQ,kub,h8T,wdt,fwo,cXh,O6b,Gu9,DEb,R8h,ld,lw9,qKB,SKh,n3Q,z4,z8Q,qQ,B1Q,XdQ,awS,rXh,$EE,Iwb,H6E,Q3t,UEB,vso,mEB,Es9,KZB,te9,p$Z,Zk0,hGB,P$h,daE,w$0,kWt,TPZ,YtG,yWT,cWo,fKm,C$B,jM,OkZ,ns0,RGZ,qt0,lKG,StT,zG9,NPQ,xa3,aKZ,
os3,IKQ,Hkh,EMT,bIZ,Fg0,Kgb,iIE,LgB,eR9,ZI9,PeT,hRo,wDm,AuS,kKb,TUZ,Y4h,cub,fU0,GKE,bP,D8Q,OIo,MJm,CeZ,nMB,S4h,lUG,Jub,NUZ,BUG,gMb,sfQ,ukr,jfB,rum,WgQ,oMr,XDm,$8b,IUB,HIS,aUT,ts,vVQ,VBo,QL3,e$,EV0,FaT,KaQ,iQQ,bQm,Lab,tBG,p3T,eCZ,ZQE,dxm,hCb,w3m,AKG,Yzm,TzG,CTB,kGr,P_,MBB,yKh,GGb,DxS,RCZ,nVG,lS3,qzr,zCB,JKo,NzG,Bz3,gVr,uwT,WaB,$xr,aST,rKG,X3S,oVQ,ISQ,f_,HQB,Gr,mxo,Uxo,D1,E63,FzG,Kzh,icG,Lzm,tFb,pJ0,n_,lP,ht3,ZcG,etQ,Pr3,Oc0,GB0,d5B,fYr,SWr,ztb,Jmb,NNB,x5G,so0,jo3,o6B,aYb,rmT,$5G,U59,m5o,voo,Vf3,H_,
FP9,KPB,i39,LP9,tfm,phE,eOG,UP,vw,d9E,hOE,Al9,yl3,O3T,qN9,lNb,SNb,Jlh,Na0,x9o,Bam,gor,sG3,iO,uqE,$9o,INS,XhS,oob,rlQ,aN9,Q6S,VWb,ETo,beG,FqT,KqG,tWB,Lqh,iem,kbE,w1S,Tjh,Y6Q,yU0,Gb3,CjQ,cU0,fFm,S6Z,JUT,xO3,gTh,uPG,Wqb,rUb,$O9,IFB,UO3,mOE,HeZ,vZT,QpZ,VlZ,EZo,bXE,FBZ,KBT,iXS,LBZ,tlt,eot,ZXr,PEE,dHo,ho0,wKo,kLh,Tdo,YbQ,yO9,cOB,f$G,OXQ,DHE,nZr,qbh,l$Z,Sbt,Tw,zoZ,JOB,NdS,xHT,uRG,spZ,jp3,WBo,oZr,XKQ,$HE,I$B,HXQ,mHt,UHT,vgB,QPS,VYb,Eg0,bRB,F8Z,iR9,K8B,L8Q,tY3,pSS,exb,ZRb,PmZ,dwE,hxB,Dz,ANh,kJm,Tc3,Ywm,yNZ,
fsB,GJm,Cmm,MYT,ORZ,DwZ,ngr,lsE,Swr,qJ,NcT,ulh,ggt,Bct,xwQ,sPQ,ogQ,XSr,as9,rNb,IsG,HRG,mwG,vnT,Uw0,Q_t,Vbr,EnQ,Kjm,ibZ,LjZ,tb9,pXG,e3G,dGE,h3o,uO,Y3h,yHG,fmb,MbZ,C5G,Obt,DGS,jC,o7,nnt,lmZ,rW,$l,JHG,q39,S3t,BM9,gn9,s_Q,utQ,XXr,rH3,$Gt,Imm,HbS,mG9,vth,Qv3,VQ9,Eto,bmr,FYh,KYb,mC,imG,LYQ,vY,tQ3,pi9,eMG,Zmr,PWt,dym,EI,bA,hMm,wiQ,FQ,Aho,kU3,Tfh,Y1Z,ch3,f_b,CW3,ntQ,RM0,Dy3,l_9,q1Z,gto,JhG,Nf3,xyh,zMQ,BfQ,svQ,uVG,WYr,Xi3,iA,$yS,I_B,HmS,myT,Uy0,Q90,Ei9,KNE,ptQ,LNh,Lr,izS,hNE,A0o,tx,ktZ,T5o,YUo,y0r,c00,Gtm,
CXr,Oz3,DXQ,niE,lRh,J0h,zN0,xXh,B5S,giE,s9h,j9h,WNZ,oib,XtZ,aRS,r0Q,$Xt,IRt,Hz3,UX9,vjB,Ffh,KfT,is9,Lfb,eEm,Ax,drT,hES,wvr,Agh,kMT,Tt3,ygB,cgr,f4Q,GME,MEB,Os3,Dr9,YS,RE3,njt,SgQ,zE0,cY,fr,xrE,JgB,Btm,uio,gjt,jkr,ojB,OI,XvT,a4o,I4S,mro,Dv,v89,Q23,V7S,E80,buo,F29,K2Z,iu0,euQ,diZ,ZuE,PBS,huB,TRE,w00,kxr,Ye3,yPo,cP0,CBS,M7E,OuG,RuE,n8Q,xiT,NRt,W2B,afE,xS,rPr,jS9,$ib,IfZ,mit,QiQ,VLT,tLb,pTr,eiE,ZyS,P2E,dtt,wTb,AAS,TTG,yAt,koG,Yqo,fkB,cAZ,C2t,Dth,ML0,RiZ,n19,lkQ,qq9,SqT,zih,NTE,JAB,siG,W13,uN0,o1o,XTQ,
akG,aI,rA0,$tT,$S,HyZ,IkQ,mtb,vrS,UtT,bK9,FE9,iKZ,LEG,pGt,eVZ,ZK9,PGb,wGt,k13,yJS,YFZ,cJ9,fCB,G1S,OKE,xTG,lCZ,grh,stb,jtm,WEm,rJ0,$T0,ICr,HK3,mTh,UTB,QQ3,VGr,EE9,bGh,iGo,tGE,LWQ,dBr,hUm,wQG,AzS,kFB,TQT,YD9,czb,Csh,MGS,OGb,DBm,RU3,nEB,SDS,qDS,NQ3,BQB,gEB,sQT,uch,jQ0,oE3,WWG,aBS,mB0,VoS,QU9,EBh,b80,FD0,i8Z,Tn,to9,fq,eZE,Pnt,dUG,T6t,yp0,GfZ,MoT,O8T,RZr,nBh,lAE,SlT,JpZ,N6B,B6r,ujb,sUS,gBG,RC,WDh,jUZ,oBG,XfS,aAB,rpE,$UT,IAr,H8G,UU0,vem,Qzt,Vab,Ee3,bSS,FmS,Kmt,iS3,tah,pzr,eso,Tp0,Y8Q,yiE,fjr,GNr,CZr,D43,
N3,zst,Ji9,x4o,BpE,ger,szS,uM9,BZ,Ij3,Fb,g3,uJ,HSh,m49,QhR,EQQ,VZS,WZ,bEX,FSa,KSX,iEN;vQh=function(){var v,Q;return typeof CSS!=="undefined"&&((Q=(v=CSS).supports)==null?void 0:Q.call(v,"selector(:has(*))"))};
QhB=function(v){return v.visibility!=="hidden"&&v.display!=="none"};
EQT=function(v){if(vQh()||v.tagName!=="DETAILS"?!v.matches(VZ3):v.querySelector("summary")!==null)return-1;v=v.getAttribute("tabindex")||"0";return Number(v)};
bEt=function(v){return v.some(function(Q){return EQT(Q)>0})};
FSQ=function(v){if(v.textContent||v.ariaLabel)return!0;if(v instanceof HTMLInputElement){if(!v.labels)return!1;v=_.L(v.labels);for(var Q=v.next();!Q.done;Q=v.next())if(Q.value.textContent)return!0}return!1};
KSt=function(v){return v.sort(function(Q,V){return EQT(V)-EQT(Q)})};
_.iEh=function(v){v=Array.from(v.querySelectorAll(VZ3)).filter(function(Q){return(QhB(Q.style)?QhB(window.getComputedStyle(Q)):!1)&&FSQ(Q)});
return bEt(v)?KSt(v):v};
_.Vo=function(v,Q){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Vo);else{var V=Error().stack;V&&(this.stack=V)}v&&(this.message=String(v));Q!==void 0&&(this.cause=Q)};
EB=function(){throw Error("E");};
LSt=function(v,Q){Q=String.fromCharCode.apply(null,Q);return v==null?Q:v+Q};
ZEt=function(v){var Q=!1;Q=Q===void 0?!1:Q;if(tZT){if(Q&&(p9b?!v.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(v)))throw Error("F");v=(eTr||(eTr=new TextEncoder)).encode(v)}else{for(var V=0,E=new Uint8Array(3*v.length),b=0;b<v.length;b++){var F=v.charCodeAt(b);if(F<128)E[V++]=F;else{if(F<2048)E[V++]=F>>6|192;else{if(F>=55296&&F<=57343){if(F<=56319&&b<v.length){var t=v.charCodeAt(++b);if(t>=56320&&t<=57343){F=(F-55296)*1024+t-56320+65536;E[V++]=F>>18|
240;E[V++]=F>>12&63|128;E[V++]=F>>6&63|128;E[V++]=F&63|128;continue}else b--}if(Q)throw Error("F");F=65533}E[V++]=F>>12|224;E[V++]=F>>6&63|128}E[V++]=F&63|128}}v=V===E.length?E:E.subarray(0,V)}return v};
Fr=function(v){_.bb.setTimeout(function(){throw v;},0)};
_.KE=function(v,Q){return v.lastIndexOf(Q,0)==0};
ib=function(v,Q){var V=v.length-Q.length;return V>=0&&v.indexOf(Q,V)==V};
_.pE=function(v){return/^[\s\xa0]*$/.test(v)};
_.Zt=function(v,Q){return v.indexOf(Q)!=-1};
_.P9=function(v,Q){return _.Zt(v.toLowerCase(),Q.toLowerCase())};
_.wG=function(v,Q){var V=0;v=dG(String(v)).split(".");Q=dG(String(Q)).split(".");for(var E=Math.max(v.length,Q.length),b=0;V==0&&b<E;b++){var F=v[b]||"",t=Q[b]||"";do{F=/(\d*)(\D*)(.*)/.exec(F)||["","","",""];t=/(\d*)(\D*)(.*)/.exec(t)||["","","",""];if(F[0].length==0&&t[0].length==0)break;V=PbZ(F[1].length==0?0:parseInt(F[1],10),t[1].length==0?0:parseInt(t[1],10))||PbZ(F[2].length==0,t[2].length==0)||PbZ(F[2],t[2]);F=F[3];t=t[3]}while(V==0)}return V};
PbZ=function(v,Q){return v<Q?-1:v>Q?1:0};
_.T0=function(){var v=_.bb.navigator;return v&&(v=v.userAgent)?v:""};
dmr=function(v){if(!YQ||!c9)return!1;for(var Q=0;Q<c9.brands.length;Q++){var V=c9.brands[Q].brand;if(V&&_.Zt(V,v))return!0}return!1};
fE=function(v){return _.Zt(_.T0(),v)};
CE=function(){return YQ?!!c9&&c9.brands.length>0:!1};
hTS=function(){return CE()?!1:fE("Opera")};
w9o=function(){return CE()?!1:fE("Trident")||fE("MSIE")};
A3o=function(){return CE()?dmr("Microsoft Edge"):fE("Edg/")};
Mm=function(){return fE("Firefox")||fE("FxiOS")};
_.k0o=function(){return fE("Safari")&&!(_.Rh()||(CE()?0:fE("Coast"))||hTS()||(CE()?0:fE("Edge"))||A3o()||(CE()?dmr("Opera"):fE("OPR"))||Mm()||fE("Silk")||fE("Android"))};
_.Rh=function(){return CE()?dmr("Chromium"):(fE("Chrome")||fE("CriOS"))&&!(CE()?0:fE("Edge"))||fE("Silk")};
_.TGr=function(){return fE("Android")&&!(_.Rh()||Mm()||hTS()||fE("Silk"))};
YBm=function(v){var Q={};v.forEach(function(V){Q[V[0]]=V[1]});
return function(V){return Q[V.find(function(E){return E in Q})]||""}};
y3G=function(v){var Q=_.T0();if(v==="Internet Explorer"){if(w9o())if((v=/rv: *([\d\.]*)/.exec(Q))&&v[1])Q=v[1];else{v="";var V=/MSIE +([\d\.]+)/.exec(Q);if(V&&V[1])if(Q=/Trident\/(\d.\d)/.exec(Q),V[1]=="7.0")if(Q&&Q[1])switch(Q[1]){case "4.0":v="8.0";break;case "5.0":v="9.0";break;case "6.0":v="10.0";break;case "7.0":v="11.0"}else v="7.0";else v=V[1];Q=v}else Q="";return Q}var E=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var b;b=E.exec(Q);)V.push([b[1],b[2],b[3]||void 0]);
Q=YBm(V);switch(v){case "Opera":if(hTS())return Q(["Version","Opera"]);if(CE()?dmr("Opera"):fE("OPR"))return Q(["OPR"]);break;case "Microsoft Edge":if(CE()?0:fE("Edge"))return Q(["Edge"]);if(A3o())return Q(["Edg"]);break;case "Chromium":if(_.Rh())return Q(["Chrome","CriOS","HeadlessChrome"])}return v==="Firefox"&&Mm()||v==="Safari"&&_.k0o()||v==="Android Browser"&&_.TGr()||v==="Silk"&&fE("Silk")?(Q=V[2])&&Q[1]||"":""};
_.c3r=function(v){if(CE()&&v!=="Silk"){var Q=c9.brands.find(function(V){return V.brand===v});
if(!Q||!Q.version)return NaN;Q=Q.version.split(".")}else{Q=y3G(v);if(Q==="")return NaN;Q=Q.split(".")}return Q.length===0?NaN:Number(Q[0])};
nE=function(){return YQ?!!c9&&!!c9.platform:!1};
_.ft9=function(){return nE()?c9.platform==="Android":fE("Android")};
G0o=function(){return fE("iPhone")&&!fE("iPod")&&!fE("iPad")};
_.qm=function(){return G0o()||fE("iPad")||fE("iPod")};
_.CbE=function(){return nE()?c9.platform==="macOS":fE("Macintosh")};
_.MZt=function(){return nE()?c9.platform==="Windows":fE("Windows")};
_.OEG=function(){return nE()?c9.platform==="Chrome OS":fE("CrOS")};
_.z0=function(v){return v[v.length-1]};
_.J3=function(v,Q,V){Q=_.Dmh(v,Q,V);return Q<0?null:typeof v==="string"?v.charAt(Q):v[Q]};
_.Dmh=function(v,Q,V){for(var E=v.length,b=typeof v==="string"?v.split(""):v,F=0;F<E;F++)if(F in b&&Q.call(V,b[F],F,v))return F;return-1};
RTr=function(v){for(var Q=_.Nm,V=typeof v==="string"?v.split(""):v,E=v.length-1;E>=0;E--)if(E in V&&Q.call(void 0,V[E],E,v))return E;return-1};
_.sB=function(v,Q){return _.B9(v,Q)>=0};
_.nQB=function(v,Q){_.sB(v,Q)||v.push(Q)};
_.ub=function(v,Q){Q=_.B9(v,Q);var V;(V=Q>=0)&&_.lt0(v,Q);return V};
_.lt0=function(v,Q){Array.prototype.splice.call(v,Q,1)};
_.jZ=function(v){var Q=v.length;if(Q>0){for(var V=Array(Q),E=0;E<Q;E++)V[E]=v[E];return V}return[]};
_.oh=function(v,Q){for(var V=1;V<arguments.length;V++){var E=arguments[V];if(_.W9(E)){var b=v.length||0,F=E.length||0;v.length=b+F;for(var t=0;t<F;t++)v[b+t]=E[t]}else v.push(E)}};
_.SBQ=function(v,Q,V,E){Array.prototype.splice.apply(v,qB3(arguments,1))};
qB3=function(v,Q,V){return arguments.length<=2?Array.prototype.slice.call(v,Q):Array.prototype.slice.call(v,Q,V)};
zTo=function(v,Q){Q=Q||v;for(var V=0,E=0,b={};E<v.length;){var F=v[E++],t=_.rG(F)?"o"+_.$Q(F):(typeof F).charAt(0)+F;Object.prototype.hasOwnProperty.call(b,t)||(b[t]=!0,Q[V++]=F)}Q.length=V};
_.NGB=function(v,Q,V){V=V||_.J33;for(var E=0,b=v.length,F;E<b;){var t=E+(b-E>>>1);var p=V(Q,v[t]);p>0?E=t+1:(b=t,F=!p)}return F?E:-E-1};
_.Ih=function(v,Q,V){if(!_.W9(v)||!_.W9(Q)||v.length!=Q.length)return!1;var E=v.length;V=V||xmQ;for(var b=0;b<E;b++)if(!V(v[b],Q[b]))return!1;return!0};
_.J33=function(v,Q){return v>Q?1:v<Q?-1:0};
xmQ=function(v,Q){return v===Q};
BGT=function(v,Q,V){Q=Array.prototype.splice.call(v,Q,1);Array.prototype.splice.call(v,V,0,Q[0])};
sh9=function(v){return gQB[v]||""};
WSh=function(v){if(!uro)return _.H9(v);v=jhT.test(v)?v.replace(jhT,sh9):v;v=atob(v);for(var Q=new Uint8Array(v.length),V=0;V<v.length;V++)Q[V]=v.charCodeAt(V);return Q};
oQQ=function(v,Q){v.__closure__error__context__984382||(v.__closure__error__context__984382={});v.__closure__error__context__984382.severity=Q};
_.vN=function(v){v=Error(v);oQQ(v,"warning");return v};
atE=function(v,Q){if(v!=null){var V;var E=(V=X9Z)!=null?V:X9Z={};V=E[v]||0;V>=Q||(E[v]=V+1,v=Error(),oQQ(v,"incident"),Fr(v))}};
V8=function(v,Q,V){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(V===void 0?0:V)&&Symbol.for&&v?Symbol.for(v):v!=null?Symbol(v):Symbol():Q};
LZ=function(v,Q){ER||_.bx in v||r39(v,$mt);v[_.bx]|=Q};
tS=function(v,Q){ER||_.bx in v||r39(v,$mt);v[_.bx]=Q};
Itm=function(v){if(4&v)return 512&v?512:1024&v?1024:0};
pZ=function(v){LZ(v,34);return v};
ZX=function(v){LZ(v,8192);return v};
HEo=function(v){LZ(v,32);return v};
ka=function(){return typeof BigInt==="function"};
CZ=function(v,Q){return Q===void 0?v.copyOnWrite!==cN&&!!(2&(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.bx]|0)):!!(2&Q)&&v.copyOnWrite!==cN};
_.lx=function(v,Q){if(v!=null)if(typeof v==="string")v=v?new OR(v,RN):_.nZ();else if(v.constructor!==OR)if(mmZ&&v!=null&&v instanceof Uint8Array)v=v.length?new OR(new Uint8Array(v),RN):_.nZ();else{if(!Q)throw Error();v=void 0}return v};
Umb=function(v,Q){if(typeof Q!=="number"||Q<0||Q>=v.length)throw Error();};
vaQ=function(v,Q,V){var E=Q&128?0:-1,b=v.length,F;if(F=!!b)F=v[b-1],F=F!=null&&typeof F==="object"&&F.constructor===Object;var t=b+(F?-1:0);for(Q=Q&128?1:0;Q<t;Q++)V(Q-E,v[Q]);if(F){v=v[b-1];for(var p in v)!isNaN(p)&&V(+p,v[p])}};
zq=function(v){return v&128?Sp:void 0};
NZ=function(v){v.isGuard_doNotManuallySetPrettyPlease=!0;return v};
Vph=function(){var v=QNh;return NZ(function(Q){for(var V in v)if(Q===v[V]&&!/^[0-9]+$/.test(V))return!0;return!1})};
_.xa=function(v){var Q=v;if(EaE(Q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Q))throw Error(String(Q));}else if(bZB(Q)&&!Number.isSafeInteger(Q))throw Error(String(Q));return FAB?BigInt(v):v=KAm(v)?v?"1":"0":EaE(v)?v.trim()||"0":String(v)};
iZb=function(v,Q){if(v.length>Q.length)return!1;if(v.length<Q.length||v===Q)return!0;for(var V=0;V<v.length;V++){var E=v[V],b=Q[V];if(E>b)return!1;if(E<b)return!0}};
LA9=function(v){var Q=v>>>0;BN=Q;gV=(v-Q)/4294967296>>>0};
sR=function(v){if(v<0){LA9(-v);var Q=_.L(tp0(BN,gV));v=Q.next().value;Q=Q.next().value;BN=v>>>0;gV=Q>>>0}else LA9(v)};
eQo=function(v){var Q=pNE||(pNE=new DataView(new ArrayBuffer(8)));Q.setFloat32(0,+v,!0);gV=0;BN=Q.getUint32(0,!0)};
ZZG=function(v,Q){var V=Q*4294967296+(v>>>0);return Number.isSafeInteger(V)?V:_.ux(v,Q)};
jp=function(v,Q){var V=Q&2147483648;V&&(v=~v+1>>>0,Q=~Q>>>0,v==0&&(Q=Q+1>>>0));v=ZZG(v,Q);return typeof v==="number"?V?-v:v:V?"-"+v:v};
PxS=function(v){var Q=BN,V=gV,E=V>>31;V=(V<<1|Q>>>31)^E;v(Q<<1^E,V)};
dZt=function(v,Q){var V=-(v&1);v=(v>>>1|Q<<31)^V;return jp(v,Q>>>1^V)};
_.ux=function(v,Q){Q>>>=0;v>>>=0;if(Q<=2097151)var V=""+(4294967296*Q+v);else ka()?V=""+(BigInt(Q)<<BigInt(32)|BigInt(v)):(V=(v>>>24|Q<<8)&16777215,Q=Q>>16&65535,v=(v&16777215)+V*6777216+Q*6710656,V+=Q*8147497,Q*=2,v>=1E7&&(V+=v/1E7>>>0,v%=1E7),V>=1E7&&(Q+=V/1E7>>>0,V%=1E7),V=Q+hQb(V)+hQb(v));return V};
hQb=function(v){v=String(v);return"0000000".slice(v.length)+v};
_.wNQ=function(v,Q){Q&2147483648?ka()?v=""+(BigInt(Q|0)<<BigInt(32)|BigInt(v>>>0)):(Q=_.L(tp0(v,Q)),v=Q.next().value,Q=Q.next().value,v="-"+_.ux(v,Q)):v=_.ux(v,Q);return v};
Xa=function(v){if(v.length<16)sR(Number(v));else if(ka())v=BigInt(v),BN=Number(v&BigInt(4294967295))>>>0,gV=Number(v>>BigInt(32)&BigInt(4294967295));else{var Q=+(v[0]==="-");gV=BN=0;for(var V=v.length,E=Q,b=(V-Q)%6+Q;b<=V;E=b,b+=6)E=Number(v.slice(E,b)),gV*=1E6,BN=BN*1E6+E,BN>=4294967296&&(gV+=Math.trunc(BN/4294967296),gV>>>=0,BN>>>=0);Q&&(Q=_.L(tp0(BN,gV)),v=Q.next().value,Q=Q.next().value,BN=v,gV=Q)}};
tp0=function(v,Q){Q=~Q;v?v=~v+1:Q+=1;return[v,Q]};
aN=function(v){return Array.prototype.slice.call(v)};
_.rV=function(v,Q){throw Error(Q===void 0?"unexpected value "+v+"!":Q);};
_.IN=function(v){if(v!=null&&typeof v!=="number")throw Error("L`"+typeof v+"`"+v);return v};
_.HN=function(v){if(v==null||typeof v==="number")return v;if(v==="NaN"||v==="Infinity"||v==="-Infinity")return Number(v)};
ASb=function(v){if(v!=null&&typeof v!=="boolean")throw Error("M`"+_.UR(v)+"`"+v);return v};
_.kqT=function(v){if(v==null||typeof v==="boolean")return v;if(typeof v==="number")return!!v};
_.V5=function(v){switch(typeof v){case "bigint":return!0;case "number":return Q5(v);case "string":return TVr.test(v);default:return!1}};
_.Kj=function(v){if(!Q5(v))throw _.vN("enum");return v|0};
_.ih=function(v){return v==null?v:Q5(v)?v|0:void 0};
YRB=function(v){if(typeof v!=="number")throw _.vN("int32");if(!Q5(v))throw _.vN("int32");return v|0};
_.Lj=function(v){return v==null?v:YRB(v)};
_.t7=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return Q5(v)?v|0:void 0};
_.ySr=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return Q5(v)?v>>>0:void 0};
CxT=function(v){var Q=0;Q=Q===void 0?0:Q;if(!_.V5(v))throw _.vN("int64");var V=typeof v;switch(Q){case 512:switch(V){case "string":return pj(v);case "bigint":return String(eq(64,v));default:return cSQ(v)}case 1024:switch(V){case "string":return fXQ(v);case "bigint":return _.xa(eq(64,v));default:return GqT(v)}case 0:switch(V){case "string":return pj(v);case "bigint":return _.xa(eq(64,v));default:return Z0(v)}default:return _.rV(Q,"Unknown format requested type for int64")}};
Ps=function(v){return v==null?v:CxT(v)};
Mph=function(v){var Q=v.length;if(v[0]==="-"?Q<20||Q===20&&v<="-9223372036854775808":Q<19||Q===19&&v<="9223372036854775807")return v;Xa(v);return _.wNQ(BN,gV)};
OZo=function(v){if(v[0]==="-")var Q=!1;else Q=v.length,Q=Q<20?!0:Q===20&&v<="18446744073709551615";if(Q)return v;Xa(v);return _.ux(BN,gV)};
Z0=function(v){v=dY(v);h7(v)||(sR(v),v=jp(BN,gV));return v};
_.DZh=function(v){v=dY(v);v>=0&&h7(v)||(sR(v),v=ZZG(BN,gV));return v};
cSQ=function(v){v=dY(v);h7(v)?v=String(v):(sR(v),v=_.wNQ(BN,gV));return v};
_.RQZ=function(v){v=dY(v);v>=0&&h7(v)?v=String(v):(sR(v),v=_.ux(BN,gV));return v};
pj=function(v){var Q=dY(Number(v));if(h7(Q))return String(Q);Q=v.indexOf(".");Q!==-1&&(v=v.substring(0,Q));return Mph(v)};
fXQ=function(v){var Q=dY(Number(v));if(h7(Q))return _.xa(Q);Q=v.indexOf(".");Q!==-1&&(v=v.substring(0,Q));return ka()?_.xa(eq(64,BigInt(v))):_.xa(Mph(v))};
GqT=function(v){return h7(v)?_.xa(Z0(v)):_.xa(cSQ(v))};
_.nao=function(v){return h7(v)?_.xa(_.DZh(v)):_.xa(_.RQZ(v))};
_.lXG=function(v){var Q=dY(Number(v));if(h7(Q)&&Q>=0)return String(Q);Q=v.indexOf(".");Q!==-1&&(v=v.substring(0,Q));return OZo(v)};
_.qRG=function(v){var Q=dY(Number(v));if(h7(Q)&&Q>=0)return _.xa(Q);Q=v.indexOf(".");Q!==-1&&(v=v.substring(0,Q));return ka()?_.xa((0,_.A7)(64,BigInt(v))):_.xa(OZo(v))};
_.zQS=function(v){if(v==null)return v;if(typeof v==="bigint")return SRE(v)?v=Number(v):(v=eq(64,v),v=SRE(v)?Number(v):String(v)),v;if(_.V5(v))return typeof v==="number"?Z0(v):pj(v)};
JSG=function(v,Q){Q=Q===void 0?!1:Q;var V=typeof v;if(v==null)return v;if(V==="bigint")return String(eq(64,v));if(_.V5(v))return V==="string"?pj(v):Q?cSQ(v):Z0(v)};
_.NVt=function(v){var Q=typeof v;if(v==null)return v;if(Q==="bigint")return _.xa(eq(64,v));if(_.V5(v))return Q==="string"?fXQ(v):GqT(v)};
xZo=function(v){if(v==null)return v;var Q=typeof v;if(Q==="bigint")return String(eq(64,v));if(_.V5(v)){if(Q==="string")return pj(v);if(Q==="number")return Z0(v)}};
BVZ=function(v){if(v==null)return v;var Q=typeof v;if(Q==="bigint")return String((0,_.A7)(64,v));if(_.V5(v)){if(Q==="string")return _.lXG(v);if(Q==="number")return _.DZh(v)}};
_.kf=function(v){if(typeof v!=="string")throw Error();return v};
y5=function(v){if(v!=null&&typeof v!=="string")throw Error();return v};
_.fj=function(v){return v==null||typeof v==="string"?v:void 0};
uaZ=function(v,Q,V,E){if(v!=null&&v[Cj]===M$)return v;if(!Array.isArray(v))return V?E&2?Q[gaQ]||(Q[gaQ]=sN9(Q)):new Q:void 0;V=v[_.bx]|0;E=V|E&32|E&2;E!==V&&tS(v,E);return new Q(v)};
sN9=function(v){v=new v;pZ(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
jNo=function(v,Q,V){v=Q?YRB(v):_.t7(v);return v==null?V?0:void 0:v|0};
WA0=function(v){return v};
oaE=function(v){return v};
aXh=function(v,Q,V,E,b,F){v=uaZ(v,E,V,F);b&&(v=XN3(v));return v};
rSr=function(v){return[v,this.get(v)]};
HZr=function(){return $ZT||($ZT=new Od(pZ([]),void 0,void 0,void 0,IXt))};
mZ0=function(v){var Q=D0(lh);return Q?v[Q]:void 0};
Q8b=function(v,Q){var V=V===void 0?!1:V;if(D0(UZh)&&D0(lh)&&void 0===UZh){var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=E[lh];if(!b)return;if(b=b.reviveUnknownFields)try{b(E,Q,vfE);return}catch(F){Fr(F)}}V&&(v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(V=D0(lh))&&V in v&&(v=v[V])&&delete v[Q])};
EfB=function(v,Q){var V=D0(lh),E;ER&&V&&((E=v[V])==null?void 0:E[Q])!=null&&atE(VqT,3)};
FIt=function(v,Q){Q<100||atE(bjG,1)};
psG=function(v,Q,V,E){var b=E!==void 0;E=!!E;var F=D0(lh),t;!b&&ER&&F&&(t=v[F])&&KIt(t,FIt);F=[];var p=v.length;t=4294967295;var Z=!1,d=!!(Q&64),w=d?Q&128?0:-1:void 0;if(!(Q&1)){var A=p&&v[p-1];A!=null&&typeof A==="object"&&A.constructor===Object?(p--,t=p):A=void 0;if(d&&!(Q&128)&&!b){Z=!0;var k;t=((k=ijh)!=null?k:WA0)(t-w,w,v,A,void 0)+w}}Q=void 0;for(k=0;k<p;k++){var T=v[k];if(T!=null&&(T=V(T,E))!=null)if(d&&k>=t){var c=k-w,C=void 0;((C=Q)!=null?C:Q={})[c]=T}else F[k]=T}if(A)for(var R in A)p=A[R],
p!=null&&(p=V(p,E))!=null&&(k=+R,T=void 0,d&&!Number.isNaN(k)&&(T=k+w)<t?F[T]=p:(k=void 0,((k=Q)!=null?k:Q={})[R]=p));Q&&(Z?F.push(Q):F[t]=Q);b&&D0(lh)&&(v=mZ0(v))&&v instanceof LIh&&(F[lh]=tqE(v));return F};
Zjr=function(v){v[0]=emS(v[0]);v[1]=emS(v[1]);return v};
emS=function(v){switch(typeof v){case "number":return Number.isFinite(v)?v:""+v;case "bigint":return SRE(v)?Number(v):""+v;case "boolean":return v?1:0;case "object":if(Array.isArray(v)){var Q=v[_.bx]|0;return v.length===0&&Q&1?void 0:psG(v,Q,emS)}if(v!=null&&v[Cj]===M$)return Pho(v);if(v instanceof OR){Q=v.JSC$8900_value_;if(Q==null)v="";else if(typeof Q==="string")v=Q;else{if(uro){for(var V="",E=0,b=Q.length-10240;E<b;)V+=String.fromCharCode.apply(null,Q.subarray(E,E+=10240));V+=String.fromCharCode.apply(null,
E?Q.subarray(E):Q);Q=btoa(V)}else Q=_.Sq(Q);v=v.JSC$8900_value_=Q}return v}if(v instanceof Od)return v=v.size!==0?d$S(v,Zjr):void 0,v;return}return v};
zh=function(v,Q){if(Q){ijh=Q==null||Q===WA0||Q[hmS]!==ws3?WA0:Q;try{return Pho(v)}finally{ijh=void 0}}return Pho(v)};
Pho=function(v){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return psG(v,v[_.bx]|0,emS)};
TY3=function(v){switch(typeof v){case "boolean":return A7b||(A7b=[0,void 0,!0]);case "number":return v>0?void 0:v===0?khS||(khS=[0,void 0]):[-v,void 0];case "string":return[0,v];case "object":return v}};
N$=function(v,Q){return YdB(v,Q[0],Q[1])};
_.xf=function(v,Q,V){return YdB(v,Q,V,2048)};
YdB=function(v,Q,V,E){E=E===void 0?0:E;if(v==null){var b=32;V?(v=[V],b|=128):v=[];Q&&(b=b&-16760833|(Q&1023)<<14)}else{if(!Array.isArray(v))throw Error("O");b=v[_.bx]|0;if(y73&&1&b)throw Error("P");2048&b&&!(2&b)&&c7G();if(b&256)throw Error("Q");if(b&64)return(b|E)!==b&&tS(v,b|E),v;if(V&&(b|=128,V!==v[0]))throw Error("R");a:{V=v;b|=64;var F=V.length;if(F){var t=F-1,p=V[t];if(p!=null&&typeof p==="object"&&p.constructor===Object){Q=b&128?0:-1;t-=Q;if(t>=1024)throw Error("T");for(var Z in p)F=+Z,F<t&&
(V[F+Q]=p[Z],delete p[Z]);b=b&-16760833|(t&1023)<<14;break a}}if(Q){Z=Math.max(Q,F-(b&128?0:-1));if(Z>1024)throw Error("U");b=b&-16760833|(Z&1023)<<14}}}tS(v,b|64|E);return v};
c7G=function(){if(y73)throw Error("S");atE(f0T,5)};
MqT=function(v,Q){if(typeof v!=="object")return v;if(Array.isArray(v)){var V=v[_.bx]|0;return v.length===0&&V&1?void 0:Ghm(v,V,Q)}if(v!=null&&v[Cj]===M$)return Cht(v);if(v instanceof Od){Q=v.arrayState;if(Q&2)return v;if(!v.size)return;V=pZ(d$S(v));if(v.valueCtor)for(v=0;v<V.length;v++){var E=V[v],b=E[1];b==null||typeof b!=="object"?b=void 0:b!=null&&b[Cj]===M$?b=Cht(b):Array.isArray(b)?b=Ghm(b,b[_.bx]|0,!!(Q&32)):b=void 0;E[1]=b}return V}if(v instanceof OR)return v};
Ghm=function(v,Q,V){if(Q&2)return v;!V||4096&Q||16&Q?v=gY(v,Q,!1,V&&!(Q&16)):(LZ(v,34),Q&4&&Object.freeze(v));return v};
Oj3=function(v,Q,V){v=new v.constructor(Q);V&&(v.copyOnWrite=cN);v.noLegacyNull=cN;return v};
Cht=function(v){var Q=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Q[_.bx]|0;return CZ(v,V)?v:D$G(v,Q,V)?Oj3(v,Q):gY(Q,V)};
gY=function(v,Q,V,E){E!=null||(E=!!(34&Q));v=psG(v,Q,MqT,E);E=32;V&&(E|=2);Q=Q&16769217|E;tS(v,Q);return v};
XN3=function(v){var Q=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Q[_.bx]|0;return CZ(v,V)?D$G(v,Q,V)?Oj3(v,Q,!0):new v.constructor(gY(Q,V,!1)):v};
sd=function(v){if(v.copyOnWrite!==cN)return!1;var Q=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Q=gY(Q,Q[_.bx]|0);LZ(Q,2048);v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=Q;v.copyOnWrite=void 0;v.noLegacyNull=void 0;return!0};
jq=function(v){if(!sd(v)&&CZ(v,v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.bx]|0))throw Error();};
o8=function(v,Q){Q===void 0&&(Q=v[_.bx]|0);Q&32&&!(Q&4096)&&tS(v,Q|4096)};
D$G=function(v,Q,V){return V&2?!0:V&32&&!(V&4096)?(tS(Q,V|2),v.copyOnWrite=cN,!0):!1};
Xn=function(v,Q,V,E,b){var F=V+(b?0:-1),t=v.length-1;if(t>=1+(b?0:-1)&&F>=t){var p=v[t];if(p!=null&&typeof p==="object"&&p.constructor===Object)return p[V]=E,Q}if(F<=t)return v[F]=E,Q;if(E!==void 0){var Z;t=((Z=Q)!=null?Z:Q=v[_.bx]|0)>>14&1023||536870912;V>=t?E!=null&&(F={},v[t+(b?0:-1)]=(F[V]=E,F)):v[F]=E}return Q};
_.I8=function(v,Q,V,E,b){var F=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=F[_.bx]|0;E=CZ(v,t)?1:E;b=!!b||E===3;E===2&&sd(v)&&(F=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=F[_.bx]|0);v=Rmo(F,Q);var p=v===rY?7:v[_.bx]|0,Z=nfb(p,t);var d=4&Z?!1:!0;if(d){4&Z&&(v=aN(v),p=0,Z=$f(Z,t),t=Xn(F,t,Q,v));for(var w=0,A=0;w<v.length;w++){var k=V(v[w]);k!=null&&(v[A++]=k)}A<w&&(v.length=A);V=(Z|4)&-513;Z=V&=-1025;Z&=-4097}Z!==p&&(tS(v,Z),2&Z&&Object.freeze(v));return v=l0r(v,Z,F,
t,Q,E,d,b)};
l0r=function(v,Q,V,E,b,F,t,p){var Z=Q;F===1||(F!==4?0:2&Q||!(16&Q)&&32&E)?Hs(Q)||(Q|=!v.length||t&&!(4096&Q)||32&E&&!(4096&Q||16&Q)?2:256,Q!==Z&&tS(v,Q),Object.freeze(v)):(F===2&&Hs(Q)&&(v=aN(v),Z=0,Q=$f(Q,E),E=Xn(V,E,b,v)),Hs(Q)||(p||(Q|=16),Q!==Z&&tS(v,Q)));2&Q||!(4096&Q||16&Q)||o8(V,E);return v};
Rmo=function(v,Q,V){v=mI(v,Q,V);return Array.isArray(v)?v:rY};
nfb=function(v,Q){2&Q&&(v|=2);return v|1};
Hs=function(v){return!!(2&v)&&!!(4&v)||!!(256&v)};
qdh=function(v){return _.lx(v,!0)};
SdG=function(v){v=aN(v);for(var Q=0;Q<v.length;Q++){var V=v[Q]=aN(v[Q]);Array.isArray(V[1])&&(V[1]=pZ(V[1]))}return ZX(v)};
zmG=function(v,Q){var V=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=V[_.bx]|0;a:{var b=E;E=CZ(v,E);!E&&sd(v)&&(V=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=V[_.bx]|0);var F=mI(V,Q);v=!1;if(F==null){if(E){Q=HZr();break a}F=[]}else if(F.constructor===Od)if(F.arrayState&2&&!E)F=d$S(F);else{Q=F;break a}else Array.isArray(F)?v=!!((F[_.bx]|0)&2):F=[];if(E){if(!F.length){Q=HZr();break a}v||(v=!0,pZ(F))}else v&&(v=!1,ZX(F),F=SdG(F));!v&&b&32&&HEo(F);E=new Od(F,void 0,jNo,jNo);
b=Xn(V,b,Q,E);v||o8(V,b);Q=E}return Q};
_.Ud=function(v,Q,V,E){jq(v);var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=b[_.bx]|0;if(V==null)return Xn(b,F,Q),v;var t=V===rY?7:V[_.bx]|0,p=t,Z=Hs(t),d=Z||Object.isFrozen(V);Z||(t=0);d||(V=aN(V),p=0,t=$f(t,F),d=!1);t|=5;var w;Z=(w=Itm(t))!=null?w:0;for(w=0;w<V.length;w++){var A=V[w],k=E(A,Z);Object.is(A,k)||(d&&(V=aN(V),p=0,t=$f(t,F),d=!1),V[w]=k)}t!==p&&(d&&(V=aN(V),t=$f(t,F)),tS(V,t));Xn(b,F,Q,V);return v};
_.vq=function(v,Q,V,E,b){jq(v);var F=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Xn(F,F[_.bx]|0,Q,(E==="0"?Number(V)===0:V===E)?void 0:V,b);return v};
_.Qn=function(v,Q,V){if(Q&2)throw Error();var E=zq(Q),b=Rmo(v,V,E),F=b===rY?7:b[_.bx]|0,t=nfb(F,Q);if(2&t||Hs(t)||16&t)t===F||Hs(t)||tS(b,t),b=aN(b),F=0,t=$f(t,Q),Xn(v,Q,V,b,E);t&=-13;t!==F&&tS(b,t);return b};
J7m=function(v){if(ER){var Q;return(Q=v[Vn])!=null?Q:v[Vn]=new Map}if(Vn in v)return v[Vn];Q=new Map;Object.defineProperty(v,Vn,{value:Q});return Q};
x$9=function(v,Q,V,E,b){var F=J7m(v),t=NYQ(F,v,Q,V,b);t!==E&&(t&&(Q=Xn(v,Q,t,void 0,b)),F.set(V,E));return Q};
NYQ=function(v,Q,V,E,b){var F=v.get(E);if(F!=null)return F;for(var t=F=0;t<E.length;t++){var p=E[t];mI(Q,p,b)!=null&&(F!==0&&(V=Xn(Q,V,F,void 0,b)),F=p)}v.set(E,F);return F};
BYm=function(v,Q,V,E,b){var F=!1;E=mI(v,E,b,function(t){var p=uaZ(t,V,!1,Q);F=p!==t&&p!=null;return p});
if(E!=null)return F&&!CZ(E)&&o8(v,Q),E};
gf9=function(v,Q,V,E,b,F,t,p){var Z=CZ(v,V);F=Z?1:F;t=!!t||F===3;Z=p&&!Z;(F===2||Z)&&sd(v)&&(Q=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Q[_.bx]|0);v=Rmo(Q,b);var d=v===rY?7:v[_.bx]|0,w=nfb(d,V);if(p=!(4&w)){var A=v,k=V,T=!!(2&w);T&&(k|=2);for(var c=!T,C=!0,R=0,l=0;R<A.length;R++){var S=uaZ(A[R],E,!1,k);if(S instanceof E){if(!T){var a=CZ(S);c&&(c=!a);C&&(C=a)}A[l++]=S}}l<R&&(A.length=l);w|=4;w=C?w&-4097:w|4096;w=c?w|8:w&-9}w!==d&&(tS(v,w),2&w&&Object.freeze(v));if(Z&&!(8&w||!v.length&&
(F===1||(F!==4?0:2&w||!(16&w)&&32&V)))){Hs(w)&&(v=aN(v),w=$f(w,V),V=Xn(Q,V,b,v));E=v;Z=w;for(d=0;d<E.length;d++)A=E[d],w=XN3(A),A!==w&&(E[d]=w);Z|=8;w=Z=E.length?Z|4096:Z&-4097;tS(v,w)}return v=l0r(v,w,Q,V,b,F,p,t)};
s8G=function(v){v==null&&(v=void 0);return v};
$f=function(v,Q){return v=(2&Q?v|2:v&-3)&-273};
_.unZ=function(v,Q,V,E,b){jq(v);Q=_.I8(v,Q,b,2,!0);var F;b=(F=Itm(Q===rY?7:Q[_.bx]|0))!=null?F:0;Q.push(V(E,b));return v};
j8Q=function(v,Q,V,E,b,F,t){jq(v);var p=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;v=gf9(v,p,p[_.bx]|0,V,Q,2,!0);if(F&&t)b!=null||(b=v.length-1),Umb(v,b),v.splice(b,F),v.length||(v[_.bx]&=-4097);else{if(F){if(typeof b!=="number"||b<0||b>v.length)throw Error();}else E=E!=null?E:new V;b!=void 0?v.splice(b,F,E):v.push(E);b=V=v===rY?7:v[_.bx]|0;(E=CZ(E))?(V&=-9,v.length===1&&(V&=-4097)):V|=4096;V!==b&&tS(v,V);E||o8(p)}};
ofS=function(v,Q){if(typeof v==="string")return new bV(WSh(v),Q);if(Array.isArray(v))return new bV(new Uint8Array(v),Q);if(v.constructor===Uint8Array)return new bV(v,!1);if(v.constructor===ArrayBuffer)return v=new Uint8Array(v),new bV(v,!1);if(v.constructor===OR)return Q=WIT(v)||new Uint8Array(0),new bV(Q,!0,v);if(v instanceof Uint8Array)return v=v.constructor===Uint8Array?v:new Uint8Array(v.buffer,v.byteOffset,v.byteLength),new bV(v,!1);throw Error();};
a0B=function(v){switch(typeof v){case "string":Xsm(v)}};
$$Q=function(v){switch(typeof v){case "string":r7r(v)}};
FI=function(){var v=function(){throw Error();};
Object.setPrototypeOf(v,v.prototype);return v};
Hj3=function(v,Q){var V=V===void 0?I0Z:V;return new Kf(v,Q,V)};
vPo=function(v,Q,V,E,b){m$S(v,V,U$Z(Q,E),b)};
iV=function(v,Q,V,E){var b=E[v];if(b)return b;b={};b.binaryFields=E;b.messageMetadata=TY3(E[0]);var F=E[1],t=1;F&&F.constructor===Object&&(b.extensions=F,F=E[++t],typeof F==="function"&&(b.isMessageSet=!0,QEB!=null||(QEB=F),Vct!=null||(Vct=E[t+1]),F=E[t+=2]));for(var p={};F&&EPh(F);){for(var Z=0;Z<F.length;Z++)p[F[Z]]=F;F=E[++t]}for(Z=1;F!==void 0;){typeof F==="number"&&(Z+=F,F=E[++t]);var d=void 0;if(F instanceof Kf)var w=F;else w=bfb,t--;F=void 0;if((F=w)==null?0:F.$$isMsg){F=E[++t];d=E;var A=t;
typeof F==="function"&&(F=F(),d[A]=F);d=F}F=E[++t];A=Z+1;typeof F==="number"&&F<0&&(A-=F,F=E[++t]);for(;Z<A;Z++){var k=p[Z];d?V(b,Z,w,d,k):Q(b,Z,w,k)}}return E[v]=b};
EPh=function(v){return Array.isArray(v)&&!!v.length&&typeof v[0]==="number"&&v[0]>0};
KJb=function(v){return Array.isArray(v)?v[0]instanceof Kf?v:[FJB,v]:[v,void 0]};
U$Z=function(v,Q){if(v instanceof _.Lf)return v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(v))return N$(v,Q)};
ifh=function(v,Q,V,E){var b=V.$$binaryReaderFn;v[Q]=E?function(F,t,p){return b(F,t,p,E)}:b};
tc3=function(v,Q,V,E,b){var F=V.$$binaryReaderFn,t,p;v[Q]=function(Z,d,w){return F(Z,d,w,p||(p=iV(LJT,ifh,tc3,E).messageMetadata),t||(t=pqE(E)),b)}};
pqE=function(v){var Q=v[ebG];if(Q!=null)return Q;var V=iV(LJT,ifh,tc3,v);Q=V.isMessageSet?function(E,b){return QEB(E,b,V)}:function(E,b){for(;ZfB(b)&&b.nextWireType_!=4;){var F=b.nextField_,t=V[F];
if(t==null){var p=V.extensions;p&&(p=p[F])&&(p=PVB(p),p!=null&&(t=V[F]=p))}if(t==null||!t(b,E,F)){p=b;t=p.fieldCursor_;djG(p);if(p.discardUnknownFields)var Z=void 0;else{var d=p.decoder_.cursor_-t;p.decoder_.cursor_=t;Z=hbo(p.decoder_,d)}d=p=t=void 0;var w=E;Z&&((t=(p=(d=w[lh])!=null?d:w[lh]=new LIh)[F])!=null?t:p[F]=[]).push(Z)}}if(E=mZ0(E))E.reviveUnknownFields=V.binaryFields[wqb];return!0};
v[ebG]=Q;v[wqb]=AeE.bind(v);return Q};
AeE=function(v,Q,V,E){var b=this[LJT],F=this[ebG],t=N$(void 0,b.messageMetadata),p=mZ0(v);if(p){var Z=!1,d=b.extensions;if(d){b=function(c,C,R){if(R.length!==0)if(d[C])for(c=_.L(R),C=c.next();!C.done;C=c.next()){C=kdZ(C.value);try{Z=!0,F(t,C)}finally{C.free()}}else E==null||E(v,C,R)};
if(Q==null)KIt(p,b);else if(p!=null){var w=p[Q];w&&b(p,Q,w)}if(Z){var A=v[_.bx]|0;if(A&2&&A&2048&&(V==null||!V.reviveIntoImmutable))throw Error();var k=zq(A),T=function(c,C){if(mI(v,c,k)!=null)switch(V==null?void 0:V.resolutionBehavior){case 1:return;default:throw Error();}C!=null&&(A=Xn(v,A,c,C,k));delete p[c]};
Q==null?vaQ(t,t[_.bx]|0,function(c,C){T(c,C)}):T(Q,mI(t,Q,k))}}}};
PVB=function(v){v=KJb(v);var Q=v[0].$$binaryReaderFn;if(v=v[1]){var V=pqE(v),E=iV(LJT,ifh,tc3,v).messageMetadata;return function(b,F,t){return Q(b,F,t,E,V)}}return Q};
Tl3=function(v,Q,V){v[Q]=V.$$binaryWriterFn};
ye3=function(v,Q,V,E){var b,F,t=V.$$binaryWriterFn;v[Q]=function(p,Z,d){return t(p,Z,d,F||(F=iV(Y9S,Tl3,ye3,E).messageMetadata),b||(b=ce0(E)))}};
ce0=function(v){var Q=v[f5b];if(!Q){var V=iV(Y9S,Tl3,ye3,v);Q=function(E,b){return Gd9(E,b,V)};
v[f5b]=Q}return Q};
Gd9=function(v,Q,V){vaQ(v,v[_.bx]|0,function(E,b){if(b!=null){var F=CV9(V,E);F?F(Q,b,E):E<500||atE(Mch,3)}});
(v=mZ0(v))&&KIt(v,function(E,b,F){te(Q,Q.encoder_.end());for(E=0;E<F.length;E++)te(Q,WIT(F[E])||new Uint8Array(0))})};
CV9=function(v,Q){var V=v[Q];if(V)return V;if(V=v.extensions)if(V=V[Q]){V=KJb(V);var E=V[0].$$binaryWriterFn;if(V=V[1]){var b=ce0(V),F=iV(Y9S,Tl3,ye3,V).messageMetadata;V=v.isMessageSet?Vct(F,b):function(t,p,Z){return E(t,p,Z,F,b)}}else V=E;
return v[Q]=V}};
_.OfE=function(v,Q,V){if(Array.isArray(Q)){var E=Q[_.bx]|0;if(E&4)return Q;for(var b=0,F=0;b<Q.length;b++){var t=v(Q[b]);t!=null&&(Q[F++]=t)}F<b&&(Q.length=F);v=E|1;V&&(v=(v|4)&-1537);v!==E&&tS(Q,v);V&&v&2&&Object.freeze(Q);return Q}};
_.ec=function(v,Q,V){return new Kf(v,Q,V)};
_.DjQ=function(v,Q,V){return new Kf(v,Q,V)};
_.Z5=function(v,Q,V){Xn(v,v[_.bx]|0,Q,V,zq(v[_.bx]|0))};
Rbb=function(v,Q,V){Q=_.HN(Q);Q!=null&&(_.Pq(v,V,1),v=v.encoder_,V=pNE||(pNE=new DataView(new ArrayBuffer(8))),V.setFloat64(0,+Q,!0),BN=V.getUint32(0,!0),gV=V.getUint32(4,!0),_.he(v,BN),_.he(v,gV))};
nPZ=function(v,Q,V){Q=_.HN(Q);Q!=null&&(_.Pq(v,V,5),v=v.encoder_,eQo(Q),_.he(v,BN))};
_.kP=function(v,Q,V){Q=xZo(Q);if(Q!=null&&(a0B(Q),Q!=null))switch(_.Pq(v,V,0),typeof Q){case "number":v=v.encoder_;sR(Q);Ae(v,BN,gV);break;case "bigint":V=BigInt.asUintN(64,Q);V=new l5Z(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));Ae(v.encoder_,V.JSC$8943_lo,V.JSC$8943_hi);break;default:V=Xsm(Q),Ae(v.encoder_,V.JSC$8943_lo,V.JSC$8943_hi)}};
S90=function(v,Q,V){Q=BVZ(Q);if(Q!=null&&($$Q(Q),Q!=null))switch(_.Pq(v,V,0),typeof Q){case "number":v=v.encoder_;sR(Q);Ae(v,BN,gV);break;case "bigint":V=q9t(Q);Ae(v.encoder_,V.JSC$8941_lo,V.JSC$8941_hi);break;default:V=r7r(Q),Ae(v.encoder_,V.JSC$8941_lo,V.JSC$8941_hi)}};
Jet=function(v,Q,V){Q=_.t7(Q);Q!=null&&Q!=null&&(_.Pq(v,V,0),_.zbG(v.encoder_,Q))};
_.xjo=function(v,Q,V){Nlr(v,V,BVZ(Q))};
Blt=function(v,Q,V){Q=_.kqT(Q);Q!=null&&(_.Pq(v,V,0),v.encoder_.JSC$8945_buffer_.push(Q?1:0))};
sE9=function(v,Q,V){Q=_.fj(Q);Q!=null&&gPb(v,V,ZEt(Q))};
uIr=function(v,Q,V,E,b){m$S(v,V,U$Z(Q,E),b)};
_.jEE=function(v,Q,V){Q=Q==null||typeof Q=="string"||Q instanceof OR?Q:void 0;Q!=null&&gPb(v,V,ofS(Q,!0).buffer)};
WJS=function(v,Q,V){Q=_.ySr(Q);Q!=null&&Q!=null&&(_.Pq(v,V,0),Td(v.encoder_,Q))};
_.oPo=function(v,Q,V){Q=_.t7(Q);Q!=null&&(Q=parseInt(Q,10),_.Pq(v,V,0),_.zbG(v.encoder_,Q))};
_.YP=function(v,Q){return function(V,E){var b={treatNewDataAsImmutable:!0};E&&Object.assign(b,E);V=kdZ(V,void 0,void 0,b);try{var F=new v,t=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;pqE(Q)(t,V);var p=F}finally{V.free()}return p}};
_.yn=function(v){return function(Q){return XqQ(Q,v)}};
a5G=function(v){return function(){return XqQ(this,v)}};
_.reS=function(v){return NZ(function(Q){return Q instanceof v&&!CZ(Q)})};
_.Gd=function(v){return function(Q){return $j9(v,Q)}};
UjB=function(v,Q){return I5Q({child:v,origin:Q||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Hfb,getPayloadCase:function(V){return V.getPayloadCase()},
createInitMessage:function(V){var E=new Cf,b=new mjE;V=_.Mj(b,1,V);return _.O9(E,5,D5,V)}})};
RE=function(v){return{valueOf:v}.valueOf()};
Qab=function(){var v=null;if(!vwT)return v;try{var Q=function(V){return V};
v=vwT.createPolicy("goog#html",{createHTML:Q,createScript:Q,createScriptURL:Q})}catch(V){}return v};
Ew0=function(){V1Z===void 0&&(V1Z=Qab());return V1Z};
_.lV=function(v){var Q=Ew0();v=Q?Q.createScriptURL(v):v;return new nf(v)};
_.Sc=function(v){if(v instanceof nf)return v.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.zd=function(v){return Object.isFrozen(v)&&Object.isFrozen(v.raw)};
b$h=function(v){return v.toString().indexOf("`")===-1};
Nj=function(v){return new _.Je(Fko,v)};
xP=function(v){return v instanceof _.Je};
_.Bq=function(v){if(xP(v))return v.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
gl=function(v){return new Kk3(function(Q){return Q.substr(0,v.length+1).toLowerCase()===v+":"})};
_.s9=function(v,Q){Q=Q===void 0?i$S:Q;if(xP(v))return v;for(var V=0;V<Q.length;++V){var E=Q[V];if(E instanceof Kk3&&E.isValid(v))return Nj(v)}};
_.oE=function(v,Q){Q=Q===void 0?i$S:Q;return _.s9(v,Q)||uV};
_.XI=function(v){var Q=window;if(typeof MediaSource!=="undefined"&&v instanceof MediaSource||typeof Q.ManagedMediaSource!=="undefined"&&v instanceof Q.ManagedMediaSource)return Nj(URL.createObjectURL(v));Q=v.type;Q.toLowerCase()==="application/octet-stream"?Q=!0:(Q=Q.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),Q=(Q==null?void 0:Q.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(Q[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(Q[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(Q[1])||/^font\/[\w-]+$/i.test(Q[1])));if(!Q)throw Error("Z");return Nj(URL.createObjectURL(v))};
_.Lkh=function(v){for(var Q=_.aE.apply(1,arguments),V=[v[0]],E=0;E<Q.length;E++)V.push(String(Q[E])),V.push(v[E+1]);return Nj(V.join(""))};
_.pcG=function(v){if(!t1Z){a:{var Q=document.createElement("a");try{Q.href=v}catch(V){v=void 0;break a}v=Q.protocol;v=v===":"||v===""?"https:":v}return v}try{Q=new URL(v)}catch(V){return"https:"}return Q.protocol};
_.rl=function(v){v instanceof _.Je?v=_.Bq(v):v=ekE.test(v)?v:void 0;return v};
$P=function(v,Q){Q=_.rl(Q);Q!==void 0&&(v.href=Q)};
Hq=function(v){var Q=Ew0();v=Q?Q.createHTML(v):v;return new IE(v)};
U9=function(v){if(v instanceof IE)return v.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.vc=function(v,Q){v.src=_.Sc(Q).toString()};
Z$3=function(v,Q){v.setAttribute("sandbox","");for(var V=0;V<Q.length;V++)v.sandbox.supports&&!v.sandbox.supports(Q[V])||v.sandbox.add(Q[V])};
_.QN=function(v,Q,V){v.removeAttribute("srcdoc");switch(Q){case 0:if(V instanceof nf)throw new Pit("TrustedResourceUrl",0);Z$3(v,[]);Q=_.rl(V);Q!==void 0&&(v.src=Q);break;case 1:if(!(V instanceof nf))throw new Pit(typeof V,1);Z$3(v,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.vc(v,V);break;case 2:if(V instanceof nf)throw new Pit("TrustedResourceUrl",2);Z$3(v,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
Q=_.rl(V);Q!==void 0&&(v.src=Q);break;default:_.rV(Q)}};
_.VN=function(v,Q,V,E){Q=_.rl(Q);return Q!==void 0?v.open(Q,V,E):null};
_.E_=function(v){v=v===void 0?document:v;var Q,V;v=(V=(Q=v).querySelector)==null?void 0:V.call(Q,"script[nonce]");return v==null?"":v.nonce||v.getAttribute("nonce")||""};
_.Fd=function(v){var Q=Ew0();v=Q?Q.createScript(v):v;return new _.bi(v)};
K$=function(v){if(v instanceof _.bi)return v.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
d1Q=function(v){var Q=_.E_(v.ownerDocument);Q&&v.setAttribute("nonce",Q)};
_.ii=function(v,Q){v.textContent=K$(Q);d1Q(v)};
_.L$=function(v,Q){v.src=_.Sc(Q);d1Q(v)};
_.tT=function(v,Q){if(v.nodeType===1&&/^(script|style)$/i.test(v.tagName))throw Error("Z");v.innerHTML=U9(Q)};
_.p$=function(v,Q,V,E){if(v.length===0)throw Error("Z");v=v.map(function(F){if(F instanceof hkQ)F=F.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return F});
var b=V.toLowerCase();if(v.every(function(F){return b.indexOf(F)!==0}))throw Error("aa`"+V);
Q.setAttribute(V,E)};
_.e1=function(v,Q,V){if(Q instanceof nf)v.href=_.Sc(Q).toString(),v.rel=V;else{if(wch.indexOf(V)===-1)throw Error("ba`"+V);Q=_.rl(Q);Q!==void 0&&(v.href=Q,v.rel=V)}};
AT9=function(v){if(v instanceof ZV)return v.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.kCb=function(v,Q){Q=_.rl(Q);Q!==void 0&&(v.href=Q)};
Tut=function(v){return new Worker(_.Sc(v),void 0)};
Y_G=function(v){return _.lV(v)};
yTQ=function(v,Q){v&&(Q=v.indexOf(Q),0<=Q&&v.splice(Q,1))};
Pc=function(v){return typeof v==="function"};
cTQ=function(v){return v instanceof du||v&&"closed"in v&&Pc(v.remove)&&Pc(v.add)&&Pc(v.unsubscribe)};
hT=function(){};
wu=function(v){fVT(function(){throw v;})};
AT=function(v){return v};
kw=function(){return GCQ(_.aE.apply(0,arguments))};
GCQ=function(v){return v.length===0?AT:v.length===1?v[0]:function(Q){return v.reduce(function(V,E){return E(V)},Q)}};
Ci0=function(v){var Q;return(Q=v!=null?v:void 0)!=null?Q:Promise};
M10=function(v,Q){return new TC(function(V){var E=0;return Q.schedule(function(){E===v.length?V.complete():(V.next(v[E++]),V.closed||this.schedule())})})};
O$m=function(v,Q){if(!v)throw Error("ca");return new TC(function(V){var E=new du;E.add(Q.schedule(function(){var b=v[Symbol.asyncIterator]();E.add(Q.schedule(function(){var F=this;b.next().then(function(t){t.done?V.complete():(V.next(t.value),F.schedule())})}))}));
return E})};
D1E=function(v,Q,V){Q=Q.schedule(function(){try{V.call(this)}catch(E){v.error(E)}},0);
v.add(Q)};
nwG=function(v,Q){return new TC(function(V){var E;V.add(Q.schedule(function(){E=v[Rk9]();D1E(V,Q,function(){var b=E.next(),F=b.value;b.done?V.complete():(V.next(F),this.schedule())})}));
return function(){var b;return Pc((b=E)==null?void 0:b.return)&&E.return()}})};
lVB=function(v,Q){return new TC(function(V){var E=new du;E.add(Q.schedule(function(){var b=v[Yw]();E.add(b.subscribe({next:function(F){E.add(Q.schedule(function(){return V.next(F)}))},
error:function(F){E.add(Q.schedule(function(){return V.error(F)}))},
complete:function(){E.add(Q.schedule(function(){return V.complete()}))}}))}));
return E})};
q_Q=function(v,Q){return new TC(function(V){return Q.schedule(function(){return v.then(function(E){V.add(Q.schedule(function(){V.next(E);V.add(Q.schedule(function(){return V.complete()}))}))},function(E){V.add(Q.schedule(function(){return V.error(E)}))})})})};
S_9=function(v){return new TypeError("da`"+(v!==null&&typeof v==="object"?"an invalid object":"'"+v+"'"))};
JTb=function(v,Q){if(v!=null){if(Pc(v[Yw]))return lVB(v,Q);if(zkZ(v))return M10(v,Q);if(Pc(v==null?void 0:v.then))return q_Q(v,Q);if(Symbol.asyncIterator&&Pc(v==null?void 0:v[Symbol.asyncIterator]))return O$m(v,Q);if(Pc(v==null?void 0:v[Rk9]))return nwG(v,Q)}throw S_9(v);};
f$=function(v,Q){return Q?JTb(v,Q):cc(v)};
cc=function(v){if(v instanceof TC)return v;if(v!=null){if(Pc(v[Yw]))return Nuh(v);if(zkZ(v))return x1Z(v);if(Pc(v==null?void 0:v.then))return Buo(v);if(Symbol.asyncIterator&&Pc(v==null?void 0:v[Symbol.asyncIterator]))return gwZ(v);if(Pc(v==null?void 0:v[Rk9]))return sa3(v)}throw S_9(v);};
Nuh=function(v){return new TC(function(Q){var V=v[Yw]();if(Pc(V.subscribe))return V.subscribe(Q);throw new TypeError("ea");})};
x1Z=function(v){return new TC(function(Q){for(var V=0;V<v.length&&!Q.closed;V++)Q.next(v[V]);Q.complete()})};
Buo=function(v){return new TC(function(Q){v.then(function(V){Q.closed||(Q.next(V),Q.complete())},function(V){return Q.error(V)}).then(null,wu)})};
sa3=function(v){return new TC(function(Q){for(var V=v[Rk9]();!Q.closed;){var E=V.next(),b=E.value;E.done?Q.complete():Q.next(b)}return function(){return Pc(V==null?void 0:V.return)&&V.return()}})};
gwZ=function(v){return new TC(function(Q){ud9(v,Q).catch(function(V){return Q.error(V)})})};
ud9=function(v,Q){var V,E,b,F,t,p;return _.e(function(Z){switch(Z.nextAddress){case 1:_.GC(Z,2,3),F=_.M1(v);case 5:return Z.yield(F.next(),8);case 8:E=Z.yieldResult;if(E.done){Z.jumpTo(3);break}t=E.value;Q.next(t);Z.jumpTo(5);break;case 3:_.O_(Z);_.DV(Z,9);if(!E||E.done||!(b=F.return)){Z.jumpTo(9);break}return Z.yield(b.call(F),9);case 9:_.O_(Z,0,0,1);if(V)throw V.error;_.Ra(Z,10,1);break;case 10:_.Ra(Z,4);break;case 2:p=_.n$(Z);V={error:p};Z.jumpTo(3);break;case 4:Q.complete(),_.q1(Z)}})};
jat=function(v,Q){return Q?M10(v,Q):x1Z(v)};
WkE=function(v){return Pc(v[v.length-1])?v.pop():void 0};
S1=function(v){var Q=v[v.length-1];return Q&&Pc(Q.schedule)?v.pop():void 0};
zC=function(){var v=_.aE.apply(0,arguments),Q=S1(v);return Q?M10(v,Q):jat(v)};
JT=function(v){var Q=Pc(v)?v:function(){return v};
return new TC(function(V){return V.error(Q())})};
N1=function(v){return function(Q){if(Pc(Q==null?void 0:Q.lift))return Q.lift(function(V){try{return v(V,this)}catch(E){this.error(E)}});
throw new TypeError("fa");}};
Bc=function(){return N1(function(v,Q){var V=null;v._refCount++;var E=new xw(Q,void 0,void 0,void 0,function(){if(!v||v._refCount<=0||0<--v._refCount)V=null;else{var b=v._connection,F=V;V=null;!b||F&&b!==F||b.unsubscribe();Q.unsubscribe()}});
v.subscribe(E);E.closed||(V=v.connect())})};
XcT=function(){var v=owo;var Q=Q===void 0?0:Q;return N1(function(V,E){E.add(v.schedule(function(){return V.subscribe(E)},Q))})};
gu=function(v){return N1(function(Q,V){var E=0;Q.subscribe(new xw(V,function(b){V.next(v.call(void 0,b,E++))}))})};
rTo=function(v){return gu(function(Q){return aVT(Q)?v.apply(null,_.ui(Q)):v(Q)})};
U1m=function(v){if(v.length===1){var Q=v[0];if($1h(Q))return{args:Q,keys:null};if(Q&&typeof Q==="object"&&IVB(Q)===H$r)return v=m1Z(Q),{args:v.map(function(V){return Q[V]}),
keys:v}}return{args:v,keys:null}};
j1=function(){var v=_.aE.apply(0,arguments),Q=S1(v),V=WkE(v);v=U1m(v);var E=v.args,b=v.keys;if(E.length===0)return f$([],Q);Q=new TC(v4b(E,Q,b?function(F){for(var t={},p=0;p<F.length;p++)t[b[p]]=F[p];return t}:AT));
return V?Q.pipe(rTo(V)):Q};
v4b=function(v,Q,V){V=V===void 0?AT:V;return function(E){QbB(Q,function(){for(var b=v.length,F=Array(b),t=b,p=v.map(function(){return!1}),Z=!0,d={i$jscomp$217:0};d.i$jscomp$217<b;d={i$jscomp$217:d.i$jscomp$217},d.i$jscomp$217++)QbB(Q,function(w){return function(){f$(v[w.i$jscomp$217],Q).subscribe(new Wc(E,function(A){F[w.i$jscomp$217]=A;
Z&&(p[w.i$jscomp$217]=!0,Z=!p.every(AT));Z||E.next(V(F.slice()))},function(){return--t===0}))}}(d),E)},E)}};
QbB=function(v,Q,V){v?V.add(v.schedule(Q)):Q()};
VSr=function(v,Q,V,E){var b=[],F=0,t=0,p=!1,Z=function(d){F++;cc(V(d,t++)).subscribe(new xw(Q,function(w){Q.next(w)},void 0,function(){F--;
for(var w={};b.length&&F<E;w={bufferedValue:void 0})w.bufferedValue=b.shift(),Z(w.bufferedValue);!p||b.length||F||Q.complete()}))};
v.subscribe(new xw(Q,function(d){return F<E?Z(d):b.push(d)},void 0,function(){p=!0;
!p||b.length||F||Q.complete()}));
return function(){b=null}};
oa=function(v,Q){var V=V===void 0?Infinity:V;if(Pc(Q))return oa(function(E,b){return gu(function(F,t){return Q(E,F,b,t)})(cc(v(E,b)))},V);
typeof Q==="number"&&(V=Q);return N1(function(E,b){return VSr(E,b,v,V)})};
E40=function(v){v=v===void 0?Infinity:v;return oa(AT,v)};
bwh=function(){var v=_.aE.apply(0,arguments);return E40(1)(jat(v,S1(v)))};
FQ0=function(v){return new TC(function(Q){cc(v()).subscribe(Q)})};
aa=function(v,Q,V){if(Pc(V)){var E=V;V=void 0}if(E)return aa(v,Q,V).pipe(rTo(E));E=_.L(Pc(v.addEventListener)&&Pc(v.removeEventListener)?KQQ.map(function(t){return function(p){return v[t](Q,p,V)}}):Pc(v.addListener)&&Pc(v.removeListener)?iwS.map(LQQ(v,Q)):Pc(v.on)&&Pc(v.off)?tSQ.map(LQQ(v,Q)):[]);
var b=E.next().value,F=E.next().value;return!b&&zkZ(v)?oa(function(t){return aa(t,Q,V)})(jat(v)):new TC(function(t){if(!b)throw new TypeError("ga");
var p=function(){var Z=_.aE.apply(0,arguments);return t.next(1<Z.length?Z:Z[0])};
b(p);return function(){return F(p)}})};
LQQ=function(v,Q){return function(V){return function(E){return v[V](Q,E)}}};
$w=function(){var v=_.aE.apply(0,arguments),Q=S1(v);var V=typeof v[v.length-1]==="number"?v.pop():Infinity;return v.length?v.length===1?cc(v[0]):E40(V)(jat(v,Q)):ru};
eD0=function(v){return v.length===1&&p43(v[0])?v[0]:v};
Zw0=function(){var v=eD0(_.aE.apply(0,arguments));return N1(function(Q,V){var E=[Q].concat(_.ui(v)),b=function(){if(!V.closed)if(E.length>0){try{var F=cc(E.shift())}catch(p){b();return}var t=new xw(V,void 0,hT,hT);V.add(F.subscribe(t));t.add(b)}else V.complete()};
b()})};
Ia=function(v){return N1(function(Q,V){var E=0;Q.subscribe(new xw(V,function(b){return v.call(void 0,b,E++)&&V.next(b)}))})};
dNr=function(){var v=_.aE.apply(0,arguments);v=eD0(v);return v.length===1?cc(v[0]):new TC(Pab(v))};
Pab=function(v){return function(Q){for(var V=[],E={i$jscomp$220:0};V&&!Q.closed&&E.i$jscomp$220<v.length;E={i$jscomp$220:E.i$jscomp$220},E.i$jscomp$220++)V.push(cc(v[E.i$jscomp$220]).subscribe(new xw(Q,function(b){return function(F){if(V){for(var t=0;t<V.length;t++)t!==b.i$jscomp$220&&V[t].unsubscribe();V=null}Q.next(F)}}(E))))}};
hDt=function(){var v=_.aE.apply(0,arguments),Q=WkE(v),V=eD0(v);return V.length?new TC(function(E){var b=V.map(function(){return[]}),F=V.map(function(){return!1});
E.add(function(){b=F=null});
for(var t={sourceIndex$jscomp$1:0};!E.closed&&t.sourceIndex$jscomp$1<V.length;t={sourceIndex$jscomp$1:t.sourceIndex$jscomp$1},t.sourceIndex$jscomp$1++)cc(V[t.sourceIndex$jscomp$1]).subscribe(new xw(E,function(p){return function(Z){b[p.sourceIndex$jscomp$1].push(Z);b.every(function(d){return d.length})&&(Z=b.map(function(d){return d.shift()}),E.next(Q?Q.apply(null,_.ui(Z)):Z),b.some(function(d,w){return!d.length&&F[w]})&&E.complete())}}(t),void 0,function(p){return function(){F[p.sourceIndex$jscomp$1]=
!0;
!b[p.sourceIndex$jscomp$1].length&&E.complete()}}(t)));
return function(){b=F=null}}):ru};
w4G=function(v){var Q,V,E;return!!v&&typeof v.active==="boolean"&&typeof((Q=v.clock)==null?void 0:Q.now)==="function"&&((V=v.clock)==null?void 0:V.timeline)!==void 0&&!((E=v.lastMeasurement)==null||!E.timestamp)&&typeof v.equivalentTo==="function"&&typeof v.extrapolateToNow==="function"&&typeof v.extrapolateToTime==="function"&&typeof v.map==="function"&&typeof v.joinWith==="function"};
AdZ=function(v){function Q(V){return typeof V==="boolean"||typeof V==="string"||typeof V==="number"||V===void 0||V===null}
return Q(v)?!0:Array.isArray(v)?v.every(Q):typeof v==="object"?Object.keys(v).every(function(V){return typeof V==="string"})&&Object.values(v).every(function(V){return Array.isArray(V)?V.every(Q):Q(V)}):!1};
kT0=function(v){if(AdZ(v))return v;if(w4G(v))return{lastMeasurement:{value:kT0(v.lastMeasurement.value),timestamp:Hc(v.lastMeasurement.timestamp,new mk(0,v.lastMeasurement.timestamp.timeline))},active:v.active};try{return JSON.parse(JSON.stringify(v))}catch(Q){}return String(v)};
U_=function(v,Q){return function(V){return new TC(function(E){return V.subscribe(function(b){v.timeExecution(Q,function(){E.next(b)})()},function(b){v.timeExecution(Q,function(){E.error(b)})()},function(){v.timeExecution(Q,function(){E.complete()})()})})}};
TIr=function(v,Q){var V=!1;return new TC(function(E){var b=v.setTimeout(function(){V=!0;E.next(!0);E.complete()},Q);
return function(){V||v.clearTimeout(b)}})};
YYG=function(v){v=v.global;if(v.fetchLater)return v.fetchLater.bind(v)};
v4=function(v){return N1(function(Q,V){var E=null,b=!1,F;E=Q.subscribe(new xw(V,void 0,function(t){F=cc(v(t,v4(v)(Q)));E?(E.unsubscribe(),E=null,F.subscribe(V)):b=!0}));
b&&(E.unsubscribe(),E=null,F.subscribe(V))})};
yd0=function(v,Q,V){return function(E,b){var F=V,t=Q,p=0;E.subscribe(new xw(b,function(Z){var d=p++;t=F?v(t,Z,d):(F=!0,Z);b.next(t)},void 0,void 0))}};
cdb=function(v){v=v===void 0?null:v;return N1(function(Q,V){var E=!1;Q.subscribe(new xw(V,function(b){E=!0;V.next(b)},void 0,function(){E||V.next(v);
V.complete()}))})};
Qx=function(){return N1(function(v,Q){v.subscribe(new xw(Q,hT))})};
Vx=function(v){return N1(function(Q,V){Q.subscribe(new xw(V,function(){return V.next(v)}))})};
EY=function(v){return v<=0?function(){return ru}:N1(function(Q,V){var E=0;
Q.subscribe(new xw(V,function(b){++E<=v&&(V.next(b),v<=E&&V.complete())}))})};
ba=function(v){var Q=Q===void 0?AT:Q;var V;v=(V=v)!=null?V:fTE;return N1(function(E,b){var F,t=!0;E.subscribe(new xw(b,function(p){var Z=Q(p);if(t||!v(F,Z))t=!1,F=Z,b.next(p)}))})};
fTE=function(v,Q){return v===Q};
CaZ=function(v){v=v===void 0?GTS:v;return N1(function(Q,V){var E=!1;Q.subscribe(new xw(V,function(b){E=!0;V.next(b)},void 0,function(){return E?V.complete():V.error(v())}))})};
GTS=function(){return new MST};
FH=function(){var v=_.aE.apply(0,arguments);return function(Q){return bwh(Q,zC.apply(null,_.ui(v)))}};
OwG=function(v){return N1(function(Q,V){var E=0;Q.subscribe(new xw(V,function(b){v.call(void 0,b,E++,Q)||(V.next(!1),V.complete())},void 0,function(){V.next(!0);
V.complete()}))})};
DNt=function(){return N1(function(v,Q){var V=[];v.subscribe(new xw(Q,function(E){V.push(E);1<V.length&&V.shift()},void 0,function(){for(var E=_.L(V),b=E.next();!b.done;b=E.next())Q.next(b.value);
Q.complete()},function(){V=null}))})};
RDo=function(v,Q){var V=arguments.length>=2;return function(E){return E.pipe(v?Ia(function(b,F){return v(b,F,E)}):AT,DNt(),V?cdb(Q):CaZ(function(){return new MST}))}};
ia=function(v){var Q=Pc(v)?v:function(){return v};
return Pc()?N1(function(V,E){var b=Q();(void 0)(b).subscribe(E).add(V.subscribe(b))}):function(V){var E=new Kw(V,Q);
Pc(V==null?void 0:V.lift)&&(E.lift=V.lift);E.source=V;E.subjectFactory=Q;return E}};
td=function(v){var Q=new Lw(v,void 0,void 0);return function(V){return ia(function(){return Q})(V)}};
pw=function(v,Q){return N1(yd0(v,Q,arguments.length>=2))};
eS=function(){var v=_.aE.apply(0,arguments),Q=S1(v);return N1(function(V,E){(Q?bwh(v,V,Q):bwh(v,V)).subscribe(E)})};
ZT=function(v){return N1(function(Q,V){var E=null,b=0,F=!1;Q.subscribe(new xw(V,function(t){var p;(p=E)==null||p.unsubscribe();p=b++;cc(v(t,p)).subscribe(E=new xw(V,function(Z){return V.next(Z)},void 0,function(){E=null;
F&&!E&&V.complete()}))},void 0,function(){(F=!0,!E)&&V.complete()}))})};
P4=function(v,Q){Q=Q===void 0?!1:Q;return N1(function(V,E){var b=0;V.subscribe(new xw(E,function(F){var t=v(F,b++);(t||Q)&&E.next(F);!t&&E.complete()}))})};
n4E=function(v,Q,V){var E=Pc(v)||Q||V?{next:v,error:Q,complete:V}:v;return E?N1(function(b,F){b.subscribe(new xw(F,function(t){var p;(p=E.next)==null||p.call(E,t);F.next(t)},function(t){var p;
(p=E.error)==null||p.call(E,t);F.error(t)},function(){var t;
(t=E.complete)==null||t.call(E);F.complete()}))}):AT};
lTo=function(){var v=_.aE.apply(0,arguments),Q=WkE(v);return N1(function(V,E){for(var b=v.length,F=Array(b),t=v.map(function(){return!1}),p=!1,Z={i$jscomp$230:0};Z.i$jscomp$230<b;Z={i$jscomp$230:Z.i$jscomp$230},Z.i$jscomp$230++)cc(v[Z.i$jscomp$230]).subscribe(new xw(E,function(d){return function(w){F[d.i$jscomp$230]=w;
p||t[d.i$jscomp$230]||(t[d.i$jscomp$230]=!0,(p=t.every(AT))&&(t=null))}}(Z),void 0,hT));
V.subscribe(new xw(E,function(d){p&&(d=[d].concat(_.ui(F)),E.next(Q?Q.apply(null,_.ui(d)):d))}))})};
SYB=function(v){var Q=qYS;if(Q)for(var V in Q)Object.prototype.hasOwnProperty.call(Q,V)&&v(Q[V],V,Q)};
zD9=function(){var v=[];SYB(function(Q){v.push(Q)});
return v};
NIo=function(v){try{return!!v&&v.location.href!=null&&Jd0(v,"foo")}catch(Q){return!1}};
_.hd=function(v){return new hkQ(v[0].toLowerCase())};
xNE=function(v){for(var Q=_.aE.apply(1,arguments),V=v[0],E=0;E<v.length-1;E++)V+=String(Q[E]),V+=v[E+1];Q=document.implementation.createHTMLDocument("");E=Q.createElement("style");Q.head.appendChild(E);Q=E.sheet;Q.insertRule(V,0);if(Q.cssRules.length===1&&(V=Q.cssRules[0],V instanceof CSSStyleRule))return new ZV(V.cssText.replace(/</g,"\\3C "))};
BIo=function(v){try{return new URL(v,window.document.baseURI)}catch(Q){return new URL("about:invalid")}};
g4o=function(v,Q){var V=Q.createRange();V.selectNode(Q.body);v=Hq(v);return V.createContextualFragment(U9(v))};
sbG=function(v){v=v.nodeName;return typeof v==="string"?v:"FORM"};
uHT=function(v){v=v.nodeType;return v===1||typeof v!=="number"};
wI=function(v,Q,V){v.setAttribute(Q,V)};
jbQ=function(v){return v.parts.map(function(Q){var V=Q.descriptor;return""+Q.url+(V?" "+V:"")}).join(" , ")};
_.Ad=function(v){var Q=_.aE.apply(1,arguments);if(Q.length===0)return _.lV(v[0]);for(var V=v[0],E=0;E<Q.length;E++)V+=encodeURIComponent(Q[E])+v[E+1];return _.lV(V)};
_.k4=function(v,Q){v=_.Sc(v).toString();var V=v.split(/[?#]/),E=/[?]/.test(v)?"?"+V[1]:"";return WQt(V[0],E,/[#]/.test(v)?"#"+(E?V[2]:V[1]):"",Q)};
WQt=function(v,Q,V,E){function b(t,p){t!=null&&(Array.isArray(t)?t.forEach(function(Z){return b(Z,p)}):(Q+=F+encodeURIComponent(p)+"="+encodeURIComponent(t),F="&"))}
var F=Q.length?"&":"?";E.constructor===Object&&(E=Object.entries(E));Array.isArray(E)?E.forEach(function(t){return b(t[1],t[0])}):E.forEach(b);
return _.lV(v+Q+V)};
X49=function(){var v=K$(o4S).toString();return _.lV(URL.createObjectURL(new Blob([v],{type:"text/javascript"})))};
aTQ=function(v){var Q=[],V=0,E;for(E in v)Q[V++]=E;return Q};
rdG=function(v,Q){for(var V in v)if(v[V]==Q)return!0;return!1};
$No=function(v,Q,V){for(var E in v)if(Q.call(V,v[E],E,v))return E};
ITE=function(v){if(!v||typeof v!=="object")return v;if(typeof v.clone==="function")return v.clone();if(typeof Map!=="undefined"&&v instanceof Map)return new Map(v);if(typeof Set!=="undefined"&&v instanceof Set)return new Set(v);if(v instanceof Date)return new Date(v.getTime());var Q=Array.isArray(v)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(v)||v instanceof DataView?{}:new v.constructor(v.length),V;for(V in v)Q[V]=ITE(v[V]);return Q};
Hw0=function(v){var Q=arguments.length;if(Q==1&&Array.isArray(arguments[0]))return Hw0.apply(null,arguments[0]);if(Q%2)throw Error("ma");for(var V={},E=0;E<Q;E+=2)V[arguments[E]]=arguments[E+1];return V};
mNG=function(v){var Q=arguments.length;if(Q==1&&Array.isArray(arguments[0]))return mNG.apply(null,arguments[0]);for(var V={},E=0;E<Q;E++)V[arguments[E]]=!0;return V};
Y4=function(v,Q,V,E){this.top=v;this.right=Q;this.bottom=V;this.left=E};
UNr=function(v){v=v.global;if(v.PendingGetBeacon)return v.PendingGetBeacon};
c4=function(v){return function(Q){return Q.pipe(vJh(v,ia(new yx)))}};
fw=function(v){return function(Q){return Q.pipe(vJh(v,td(1)))}};
vJh=function(v,Q){function V(E){return new TC(function(b){return E.subscribe(function(F){GT(v,function(){return void b.next(F)},3)},function(F){GT(v,function(){return void b.error(F)},3)},function(){GT(v,function(){return void b.complete()},3)})})}
return kw(V,XcT(),Q,Bc(),V)};
EJT=function(v){var Q=QDS(v);return Q===null?new Cw(null):Q.pipe(gu(function(V){V=V.serialize();if(VKG)V=_.bb.btoa(V);else{for(var E=[],b=0,F=0;F<V.length;F++){var t=V.charCodeAt(F);t>255&&(E[b++]=t&255,t>>=8);E[b++]=t}V=_.Sq(E)}return V}),EY(1),fw(v.queue))};
bgm=function(v){var Q=Q===void 0?{}:Q;if(typeof Event==="function")return new Event(v,Q);if(typeof document!=="undefined"){var V=document.createEvent("CustomEvent");V.initCustomEvent(v,Q.bubbles||!1,Q.cancelable||!1,Q.detail);return V}throw Error();};
Feb=function(v){return typeof v==="string"?document.getElementById(v):v};
igE=function(v){var Q=!1;Q=Q===void 0?!1:Q;if(v.tagName==="IMG"){if(v.complete&&(!v.naturalWidth||!v.naturalHeight))return!0;var V;if(Q&&((V=v.style)==null?void 0:V.display)==="none")return!0}var E,b;return Keh.test((E=v.getAttribute("width"))!=null?E:"")&&Keh.test((b=v.getAttribute("height"))!=null?b:"")};
LeZ=function(v,Q){if(v.tagName==="IMG")return v.naturalWidth&&v.naturalHeight?!0:!1;try{if(v.readyState)var V=v.readyState;else{var E,b;V=(E=v.contentWindow)==null?void 0:(b=E.document)==null?void 0:b.readyState}return V==="complete"}catch(F){return Q===void 0?!1:Q}};
tKT=function(v){v||(v=function(Q,V,E){Q.addEventListener(V,E)});
return v};
PtS=function(v,Q){var V=pMb();V=V===void 0?new eIE:V;if(v=Feb(v)){var E=tKT(E);for(var b=!1,F=function(R){b||(b=!0,Q(R))},t,p=2,Z=0;Z<ZgT.length;++Z)if(ZgT[Z]===v.tagName){p=3;
t=[v];break}t||(t=v.querySelectorAll(ZgT.join(",")));var d=0,w=0,A=!0,k=v=!1;Z={};for(var T=0;T<t.length;Z={isImg:void 0},T++){var c=t[T];if(!igE(c))if(Z.isImg=c.tagName==="IMG",LeZ(c,V.crossDomainLoadedDefault))v=!0,Z.isImg&&(A=!0);else{d++;var C=function(R){return function(l){d--;!d&&A&&F(p);R.isImg&&(l=l&&l.type==="error",w--,l||(A=!0),!w&&k&&A&&F(p))}}(Z);
E(c,"load",C);Z.isImg&&(w++,E(c,"error",C))}}w===0&&(A=!0);t=null;t=_.bb.document.readyState==="complete";if(d===0&&!v&&t)p=5;else if(d||!v){E(_.bb,"load",function(){!V.pendingImagesBlockLoad||!w&&A?F(4):k=!0});
return}F(p)}};
dz3=function(v,Q,V){if(v)for(var E=0;v!=null&&E<500&&!V(v);++E)v=Q(v)};
hIb=function(v,Q){dz3(v,function(V){try{return V===V.parent?null:V.parent}catch(E){}return null},Q)};
wMS=function(v,Q){if(v.tagName=="IFRAME")Q(v);else{v=v.querySelectorAll("IFRAME");for(var V=0;V<v.length&&!Q(v[V]);++V);}};
A5b=function(v){return(v=v.ownerDocument)&&(v.parentWindow||v.defaultView)||null};
kcr=function(v,Q,V){try{var E=JSON.parse(V.data)}catch(t){}if(typeof E==="object"&&E&&E.type==="creativeLoad"){var b=A5b(v);if(V.source&&b){var F;hIb(V.source,function(t){try{if(t.parent===b)return F=t,!0}catch(p){}});
F&&wMS(v,function(t){if(t.contentWindow===F)return Q(E),!0})}}};
TZo=function(v){return typeof v==="string"?document.getElementById(v):v};
fg9=function(){var v={};return v[0]=_.Ad(Yhm,"current"),v[1]=_.Ad(y5E),v[2]=_.Ad(c59),v};
OY=function(v,Q){return v.left===Q.left&&v.top===Q.top&&v.width===Q.width&&v.height===Q.height};
Gch=function(v,Q){return{left:Math.max(v.left,Q.left),top:Math.max(v.top,Q.top),width:Math.max(0,Math.min(v.left+v.width,Q.left+Q.width)-Math.max(v.left,Q.left)),height:Math.max(0,Math.min(v.top+v.height,Q.top+Q.height)-Math.max(v.top,Q.top))}};
Cto=function(v,Q){return{left:Math.round(v.left+Q.x),top:Math.round(v.top+Q.y),width:v.width,height:v.height}};
MKo=function(v,Q,V){if(v&&Q!==null&&Q!=Q.top){if(!Q.top)return new _.DT(-12245933,-12245933);Q=Q.top}try{return(V===void 0?0:V)?(new _.DT(Q.innerWidth,Q.innerHeight)).round():_.Rb(Q).round()}catch(E){return new _.DT(-12245933,-12245933)}};
OgQ=function(v,Q,V){try{if(v){if(!Q.top)return new Y4(-12245933,-12245933,-12245933,-12245933);Q=Q.top}var E=MKo(v,Q,V),b=E.height,F=E.width;if(F===-12245933)return new Y4(F,F,F,F);var t=nw(qN(Q.document)),p=t.x,Z=t.y;return new Y4(Z,p+F,Z+b,p)}catch(d){return new Y4(-12245933,-12245933,-12245933,-12245933)}};
Dzt=function(v){var Q;return(Q=v.google_tag_data)!=null?Q:v.google_tag_data={}};
RIT=function(v){var Q,V;return typeof((Q=v.navigator)==null?void 0:(V=Q.userAgentData)==null?void 0:V.getHighEntropyValues)==="function"};
lg0=function(v){if(!RIT(v))return null;var Q=Dzt(v);if(Q.uach_promise)return Q.uach_promise;v=v.navigator.userAgentData.getHighEntropyValues(nJ3).then(function(V){Q.uach!=null||(Q.uach=V);return V});
return Q.uach_promise=v};
Wet=function(v){var Q;return qhS(ShZ(zIm(J50(NZ3(xzG(BZr(gJt(sD3(new u9Z,v.architecture||""),v.bitness||""),v.mobile||!1),v.model||""),v.platform||""),v.platformVersion||""),v.uaFullVersion||""),((Q=v.fullVersionList)==null?void 0:Q.map(function(V){var E=new jDQ;E=_.SS(E,1,V.brand);return _.SS(E,2,V.version)}))||[]),v.wow64||!1)};
oJZ=function(v){var Q,V;return(V=(Q=lg0(v))==null?void 0:Q.then(function(E){return Wet(E)}))!=null?V:null};
XM3=function(v,Q){return new TC(function(V){var E=!1,b=Array(Q.length);b.fill(void 0);var F=new Set,t=new Set,p=function(A,k){v.running?(b[k]=A,F.add(k),E||(E=!0,GT(v,function(){E=!1;V.next(_.jZ(b))},1))):V.error(new zT(k))},Z=function(A,k){t.add(k);
F.add(k);GT(v,function(){V.error(A)},1)},d=function(A){t.add(A);
GT(v,function(){t.size===Q.length&&V.complete()},1)},w=Q.map(function(A,k){return A.subscribe(function(T){return void p(T,k)},function(T){return void Z(T,k)},function(){return void d(k)})});
return function(){w.forEach(function(A){return void A.unsubscribe()})}})};
$zQ=function(v,Q,V){function E(){if(Q.debugChannel){var R=Q.debugChannel,l=R.next;var S={creativeId:Q.debugNames.getName(V),requiredSignals:b,signals:Object.assign({},F),hasPrematurelyCompleted:t,errorMessage:p,erroredSignalKey:Z};S={specMajor:2,specMinor:0,specPatch:0,timestamp:Hc(Q.timeProvider.now(),new mk(0,Q.timeProvider.timeline)),instanceId:Q.debugNames.getName(Q.symbol),creativeState:S};l.call(R,S)}}
for(var b=Object.keys(v),F={},t=!1,p=null,Z=null,d={},w=new Set,A=[],k=[],T=_.L(b),c=T.next(),C={};!c.done;C={key$jscomp$394:void 0},c=T.next())C.key$jscomp$394=c.value,c=v[C.key$jscomp$394],c instanceof Cw?(d[C.key$jscomp$394]=c.value,w.add(C.key$jscomp$394),Q.debugChannel&&(F[String(C.key$jscomp$394)]=kT0(c.value))):(c=c.pipe(ba(function(R,l){return w4G(R)||w4G(l)?!1:R===l}),gu(function(R){return function(l){Q.debugChannel&&(F[String(R.key$jscomp$394)]=kT0(l),E());
var S={};return S[R.key$jscomp$394]=l,S}}(C)),v4(function(R){return function(l){if(l instanceof zT)throw new agQ(String(R.key$jscomp$394));
throw l;}}(C)),n4E(function(R){return function(){w.add(R.key$jscomp$394)}}(C),function(R){return function(l){Z=String(R.key$jscomp$394);
p=String(l);E()}}(C),function(R){return function(){w.has(R.key$jscomp$394)||(t=!0,E())}}(C))),k.push(C.key$jscomp$394),A.push(c));
(v=Object.keys(F).length>0)&&E();T=XM3(Q.queue,A).pipe(v4(function(R){if(R instanceof zT)throw new r5b(String(k[R.inputObservableIndex]));throw R;}),gu(function(R){return Object.freeze(Object.assign.apply(Object,[{},
d].concat(_.ui(R))))}));
return(A=A.length>0)&&v?$w(zC(Object.freeze(d)),T):A?T:zC(Object.freeze(d))};
Igt=function(v,Q,V,E,b){return v.performanceMonitor.timeExecution.bind(v.performanceMonitor)(733,function(){var F={};try{return Q.pipe(v4(function(t){E(Object.assign({},F,{error:t}));return ru}),oa(function(t){try{var p=V(v,t)}catch(d){return E(Object.assign({},F,{error:d instanceof Error?d:String(d)})),ru}var Z={};
return $zQ(p,v,t.symbol).pipe(n4E(function(d){Z=d}),td(1),Bc()).pipe(b,v4(function(d){E(Object.assign({},Z,{error:d}));
return ru}),FH(void 0),gu(function(){return!0}))})).pipe(pw(function(t){return t+1},0),v4(function(t){E(Object.assign({},F,{error:t}));
return ru}))}catch(t){return E(Object.assign({},F,{error:t})),ru}})()};
Jd=function(v){var Q=new Map;if(typeof v!=="object"||v===null)return Q;Object.values(v).forEach(function(V){V&&typeof V.extrapolateToNow==="function"&&(Q.has(V.clock.timeline)||Q.set(V.clock.timeline,V.clock.now()))});
return Q};
Hg9=function(v,Q){return typeof v==="string"?encodeURIComponent(v):typeof v==="number"?String(v):Array.isArray(v)?v.map(function(V){return Hg9(V,Q)}).join(","):v instanceof mk?v.toString():v&&typeof v.extrapolateToNow==="function"?Hg9(v.extrapolateUsingTimestampMap(Q).value,Q):v===!0?"1":v===!1?"0":v===void 0||v===null?null:v instanceof mz0?Uzb(v):[v.top,
v.left,v.top+v.height,v.left+v.width].join()};
vUt=function(v,Q){v=Object.entries(v).map(function(V){var E=_.L(V);V=E.next().value;E=E.next().value;E=Hg9(E,Q);return E===null?"":V+"="+E}).filter(function(V){return V!==""});
return v.length?v.join("&"):""};
EUS=function(v,Q){var V=Qrr,E=V_Q;Q=Q===void 0?.01:Q;return function(b){Q>0&&Math.random()<=Q&&(v.global.HTMLFencedFrameElement&&v.global.fence&&typeof v.global.fence.reportEvent==="function"&&v.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),b=Object.assign({},b,{errorMessage:b.error instanceof Error&&b.error.message?b.error.message:String(b.error),errorStack:b.error instanceof Error&&b.error.stack?String(b.error.stack):null,errorName:b.error instanceof
Error&&b.error.name?String(b.error.name):null,errorContext:String(v.performanceMonitor.timedFunctionContext),errorEscapedQueryId:b.escapedQueryId}),V(Object.assign({},b,{payloadMapper:function(){return function(F){try{return E(Object.assign({},F))}catch(t){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Jd(b)).forEach(function(F){v.beaconFactory.makeBeacon(F).sendNow()}))}};
baS=function(){var v=_.aE.apply(0,arguments);return function(Q){var V=Q.pipe(td(1),Bc());Q=v.map(function(E){return V.pipe(E,FH(!0))});
return j1(Q).pipe(EY(1),Qx())}};
F$b=function(){var v=_.aE.apply(0,arguments);return function(Q){var V=Q.pipe(td(1),Bc());Q=v.map(function(E){return V.pipe(E,FH(!0))});
return $w.apply(null,_.ui(Q)).pipe(EY(1),Qx())}};
K$o=function(v,Q){return function(V){var E=V.pipe(td(1),Bc());V=E.pipe(v,FH(!0));E=E.pipe(kw(Q,td(),Bc()),FH(!0));V=j1([V,E]);return dNr(V,E).pipe(EY(1),Qx())}};
iaG=function(v,Q,V){V(!0)};
L$Q=function(v,Q){return kw(ZT(function(V){var E=v(V),b=Q(V),F={};return E&&b&&F?new TC(function(t){b(E,F,function(p){t.next(Object.assign({},V,{canEmit:p}));t.complete()});
return function(){}}):NN}),Ia(function(V){return V.canEmit}))};
t_r=function(v){var Q={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(V){return V.pipe(ZT(function(E){return new TC(function(b){function F(){p.disconnect();Z.unsubscribe()}
var t=v.MutationObserver;if(t&&E.ref!==void 0){var p=new t(function(d){b.next(d)});
p.observe(E.ref,Q);var Z=E.JSC$9440_released.subscribe(F);return F}})}))}};
pRE=function(v){if(v.measurementDeferralState===3)return null;if(v.timeOnScreenReason!==void 0){var Q=v.creativeFound===!1?"n":null;if(Q!==null)return Q}return v.geometricMeasurementErrors instanceof x4?"msf":v.contextValidationErrors instanceof B4?"c":v.contextVisibilityKnown===!1?"pv":v.geometricMeasurementErrors||v.contextValidationErrors?"x":null};
ZaG=function(v,Q){return v.replace(ep9,function(V,E){try{var b=_.gI.get(Q,E);if(b==null||b.toString()==null)return V;b=b.toString();if(b==""||!_.pE(b==null?"":String(b)))return encodeURIComponent(b).replace(/%2C/g,",")}catch(F){}return V})};
PHo=function(v,Q){var V=Object.assign({},v),E=v.userAgentClientHints;V=(delete V.userAgentClientHints,V);V=v.payloadMapper(V);var b=vUt(V,Q);return _.sY(v.urlPrefixes,function(F){var t="";typeof E==="string"&&(t="&"+vUt({uach:E},Q));var p={};return ZaG(F,(p.VIEWABILITY=b,p))+t})};
Qrr=function(v,Q){var V=v.payloadMapper(v),E=vUt(V,Q);return E?_.sY(v.urlPrefixes,function(b){b=b.indexOf("?")>=0?b:b+"?";b="?&".indexOf(b.slice(-1))>=0?b:b+"&";return b+E}):v.urlPrefixes};
dAr=function(){return kw(Ia(function(v){return v!==void 0}),gu(function(v){return v}))};
hpS=function(v){return kw(gu(function(){return!0}),eS(!1),fw(v))};
wRT=function(v){return v.length<=0?ru:j1(v.map(function(Q){var V=0;return Q.pipe(gu(function(E){return{index:V++,value:E}}))})).pipe(Ia(function(Q){return Q.every(function(V){return V.index===Q[0].index})}),gu(function(Q){return Q.map(function(V){return V.value})}))};
AaQ=function(v,Q){v.currentState&&(v.previousState=v.currentState);v.currentState=Q;v.previousState&&v.previousState.value?(Q=Math.max(0,Hc(Q.timestamp,v.previousState.timestamp)),v.totalTime+=Q,v.consecutiveTime+=Q):v.consecutiveTime=0;return v};
keb=function(){return kw(pw(AaQ,{totalTime:0,consecutiveTime:0}),gu(function(v){return v.totalTime}))};
Tbm=function(){return kw(pw(AaQ,{totalTime:0,consecutiveTime:0}),gu(function(v){return v.consecutiveTime}))};
YXT=function(v,Q){return function(V){return wRT(Q.map(function(E){return V.pipe(v(E))}))}};
yao=function(){var v;return kw(n4E(function(Q){return void(v=Q.timestamp)}),Tbm(),gu(function(Q){return{timestamp:v,
value:Math.round(Q)}}))};
caE=function(v,Q){return OY(v.topWindowViewportExternalGeometry,Q.topWindowViewportExternalGeometry)&&OY(v.elementGeometry,Q.elementGeometry)&&OY(v.exposedViewportLocalGeometry,Q.exposedViewportLocalGeometry)&&OY(v.intersectionGeometry,Q.intersectionGeometry)&&v.elementGeometrySourceName===Q.elementGeometrySourceName&&v.measurementRequests===Q.measurementRequests&&v.viewportGeometrySourceName===Q.viewportGeometrySourceName&&v.viewportLocalAppOffset.x===Q.viewportLocalAppOffset.x&&v.viewportLocalAppOffset.y===
Q.viewportLocalAppOffset.y};
M_B=function(v,Q){return function(V){return function(E){var b=E.pipe(ia(new yx),Bc());E=V.element.pipe(ba());b=b.pipe(gu(function(F){return F.value}));
return j1([E,b,Q]).pipe(gu(function(F){var t=_.L(F);F=t.next().value;var p=t.next().value;t=t.next().value;if(F.ref===void 0)var Z={top:0,left:0,width:0,height:0};else{Z=F.ref.getBoundingClientRect();var d=F.ref,w=v.global,A=new _.ua(0,0),k=jS(_.W4(d));if(Jd0(k,"parent")){do{if(k==w)var T=_.ob(d);else T=fQr(d),T=new _.ua(T.left,T.top);A.x+=T.x;A.y+=T.y}while(k&&k!=w&&k!=k.parent&&(d=k.frameElement)&&(k=k.parent))}Z={top:A.y,left:A.x,width:Z.width,height:Z.height}}Z=Cto(Z,p.viewportLocalAppOffset);
w=Gch(Z,p.exposedViewportLocalGeometry);A=v.timeProvider.now();k=Object;d=k.assign;if(t!==2||v.inCrossDomainIframe||w.width<=0||w.height<=0)var c=!1;else try{var C=v.document.elementFromPoint(w.left+w.width/2,w.top+w.height/2);c=C?!GeQ(C,F):!1}catch(R){c=!1}return{timestamp:A,value:d.call(k,{},p,{elementGeometrySourceName:"geo",intersectionGeometry:c?CHr.intersectionGeometry:w,elementGeometry:Z})}}),c4(v.queue))}}};
GeQ=function(v,Q,V){V=V===void 0?0:V;return v.ref===void 0||Q.ref===void 0?!1:v.ref===Q.ref||_.XH(Q.ref,function(E){return E===v.ref})?!0:Q.ref.ownerDocument&&Q.ref.ownerDocument.defaultView&&Q.ref.ownerDocument.defaultView===Q.ref.ownerDocument.defaultView.top?!1:V<10&&Q.ref.ownerDocument&&Q.ref.ownerDocument.defaultView&&Q.ref.ownerDocument.defaultView.frameElement?GeQ(v,new ab(Q.ref.ownerDocument.defaultView.frameElement),V+1):!0};
RpZ=function(v){return function(Q){return Q.pipe(v.ResizeObserver?OaE(v):DAt(v),td(1),Bc())}};
OaE=function(v){return function(Q){return Q.pipe(ZT(function(V){var E=v.ResizeObserver;if(!E||V.ref===void 0)return zC(CHr.elementGeometry);var b=(new TC(function(F){function t(){V.ref!==void 0&&p.unobserve(V.ref);p.disconnect();Z.unsubscribe()}
if(V.ref===void 0)return F.complete(),function(){};
var p=new E(function(d){d.forEach(function(w){F.next(w)})});
p.observe(V.ref);var Z=V.JSC$9440_released.subscribe(t);return t})).pipe(U_(v.performanceMonitor,736),gu(function(F){return F.contentRect}));
return $w(zC(V.ref.getBoundingClientRect()),b)}),ba(OY))}};
DAt=function(v){return function(Q){var V=Q.pipe(t_r(v)),E=v.onResize;V=$w(Q.pipe(gu(function(){return bgm("resize")})),V,E);
return j1(Q,V).pipe(U_(v.performanceMonitor,737),gu(function(b){b=_.L(b).next().value;return b.ref===void 0?void 0:b.ref.getBoundingClientRect()}),dAr(),ba(OY))}};
qXS=function(v,Q){var V=nUB(v,Q).pipe(td(1),Bc());return function(E){return function(b){b=b.pipe(ZT(function(F){return F.element}),ba());
return j1([V,b]).pipe(ZT(function(F){var t=_.L(F);F=t.next().value;t=t.next().value;return lQr(v,F.intersectionObserver,RpZ(v),F.observations,E,F.flushRecords,t)}),c4(v.queue))}}};
SXB=function(v){return gu(function(Q){return Q.value.viewportGeometrySourceName!=="nio"?Q:Object.assign({},Q,{value:Object.assign({},Q.value,{exposedViewportLocalGeometry:$4(v,!0),topWindowViewportExternalGeometry:$4(v,!0)})})})};
zp3=function(v,Q){return zC(Q).pipe(v,gu(function(){return Q}))};
nUB=function(v,Q){return v.timeProvider.timeline!==Ja3?JT(new x4(2)):v.MutationObserver?typeof IntersectionObserver==="undefined"?JT(new x4(0)):(new TC(function(V){var E=new yx,b=new Ib(E.next.bind(E),{threshold:[].concat(_.ui(Q))});V.next({observations:E.pipe(U_(v.performanceMonitor,735)),intersectionObserver:b,flushRecords:function(F){F=b.takeRecords(F);F.length>0&&E.next(F)}})})).pipe(EY(1),td(1),Bc()):JT(new x4(1))};
Nb0=function(v){return JTb(v.sort(function(Q,V){return Q.time-V.time}),owo)};
lQr=function(v,Q,V,E,b,F,t){return new TC(function(p){function Z(){c||(c=!0,t.ref!==void 0&&Q.unobserve(b,t.ref),w.unsubscribe(),T.unsubscribe(),k.unsubscribe(),C.unsubscribe())}
if(t.ref!==void 0){xA3(Q,b);Q.observe(b,t.ref);var d=new H4({timestamp:v.timeProvider.now(),value:Object.assign({},CHr,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),w=E.pipe(oa(function(R){return Nb0(R)}),Ia(function(R){return R.target===t.ref}),gu(function(R){return{timestamp:new mk(R.time,Ja3),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:R.rootBounds||mQ,topWindowViewportExternalGeometry:R.rootBounds||$4(v,!0),measurementRequests:A,elementGeometrySourceName:"nio",intersectionGeometry:R.intersectionRect,elementGeometry:R.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:R.isIntersecting,isV2Visible:R.isVisible}}}),ia(d),Bc()).subscribe(p),A=new yx,k=A.subscribe(function(){F(b);
p.next({timestamp:v.timeProvider.now(),value:d.value.value});t.ref!==void 0&&(Q.unobserve(b,t.ref),Q.observe(b,t.ref))}),T=zp3(V,t).subscribe(function(){A.next()}),c=!1,C=t.JSC$9440_released.subscribe(function(){return Z()});
return Z}})};
Bbr=function(v,Q){var V=v.getOnBackgrounded().pipe(gu(function(){return"b"}));
return dNr(Q,V).pipe(EY(1),fw(v.queue))};
UY=function(v){return function(Q){var V;return Q.pipe(n4E(function(E){return void(V=E.timestamp)}),gu(function(E){return E.value}),v,gu(function(E){return{timestamp:V,
value:E}}))}};
gUG=function(v){return v.intersectionGeometry.width*v.intersectionGeometry.height/(v.elementGeometry.width*v.elementGeometry.height)};
vM=function(v,Q,V){V=V===void 0?function(E,b){return E===b}:V;
return v.timestamp.equals(Q.timestamp)&&V(v.value,Q.value)};
Eh=function(v,Q){return Q.pipe(gu(function(V){return new Vl(v.timeProvider,{timestamp:v.timeProvider.now(),value:V})}))};
srQ=function(v){return function(Q){return Q.pipe(lTo(v),gu(function(V){var E=_.L(V);V=E.next().value;E=E.next().value;var b=V.value;return{timestamp:V.timestamp,value:b>=1?!0:b<=0?!1:b>=E}}))}};
jrQ=function(){return kw(Ia(function(v,Q){return Q>0}),ub3,eS(-1),ba())};
W$o=function(v,Q,V){return v?j1([Q,V]).pipe(Ia(function(E){var b=_.L(E);E=b.next().value;b=b.next().value;return E.timestamp.equals(b.timestamp)}),gu(function(E){var b=_.L(E);
E=b.next().value;b=b.next().value;return E.value>b.value?E:b})):Q};
aQS=function(v){return function(Q){var V=Q.pipe(oUo),E=Q.pipe(XRS);return v instanceof TC?v.pipe(ZT(function(b){return W$o(b,V,E)})):W$o(v.value,V,E)}};
EbQ=function(v,Q,V,E){var b=E.geometryIsOccluded,F=E.exposureThreshold,t=E.wasLargeAdAtRender,p=E.allowLargeAdThreshold,Z=E.largeAdExposureThreshold,d=E.mayUseViewportShareExposure,w=E.hasMeasurementStarted;E=E.useIntersectionObserverV2;Q=raZ(v,V,Q);V=$AE(v,V);E=IQt(Q,E);var A=Hab(v,b,d,Q),k=A.pipe(gu(function(u){return u.value}),ba(),fw(v),pw(function(u,r){return Math.max(u,r)},0)),T=A.pipe(gu(function(u){return u.value}),jrQ(),fw(v)),c=Q.pipe(mAS,gu(function(u){return u.value}),EY(2),ba(),fw(v));
t=UAr(v,Q,t,p);var C=t.pipe(eS(!1),ba(),gu(function(u){return u?Z:F}));
p=A.pipe(srQ(C),ba(),fw(v));var R=j1([p,Q]).pipe(Ia(function(u){var r=_.L(u);u=r.next().value;r=r.next().value;return u.timestamp.equals(r.timestamp)}),gu(function(u){var r=_.L(u);
u=r.next().value;r=r.next().value;return{visible:u.value,geometry:r.value.elementGeometry}}),pw(function(u,r){return!r.visible&&u.visible?u:r},{visible:!1,
geometry:mQ}),gu(function(u){return u.geometry}),eS(mQ),fw(v),ba(OY));
d=d instanceof TC?d.pipe(ba(),Vx()):NN;C=j1([d,C]).pipe(Vx());var l=Q.pipe(Ia(function(u){return u.value.viewportGeometrySourceName!=="ns"&&u.value.elementGeometrySourceName!=="ns"}),pw(function(u){return u+1},0),eS(0),fw(v)),S=V.pipe(Vx(!0),eS(!1),fw(v));
S=j1([w,S]).pipe(gu(function(u){var r=_.L(u);u=r.next().value;r=r.next().value;return u&&!r}),fw(v));
var a=Q.pipe(vb3,ba()),g=a.pipe(gu(function(u){return u.value}),pw(function(u,r){return Math.max(u,r)},0),ba(),fw(v));
v=a.pipe(gu(function(u){return u.value}),jrQ(),fw(v));
return{shouldResetExposureSignals:d,shouldResetViewabilitySignals:C,geometrySignals:{readyGeometryWithDefault:Q,measurementStrategy:Q.pipe(QSb),creativePosition:R.pipe(ba(OY)),visible:p.pipe(ba(vM)),timestampedExposure:A.pipe(ba(vM)),maximumExposure:k,minimumExposure:T,browserSize:Q.pipe(Vgm,ba(_.Ih)),timestampedScreenShare:a,maxScreenShare:g,minScreenShare:v,geometricMeasurementErrors:V,measurementRequests:Q.pipe(gu(function(u){return u.value.measurementRequests})),
isLargeAd:t,geometryIsOccluded:b,hasMeasurementStarted:w,geometryMeasurable:S,validMeasurementCount:l,loadTimeExposure:c,v2VisibilityBitVector:E}}};
$AE=function(v,Q){return Q.pipe(Ia(function(){return!1}),gu(function(V){return V}),v4(function(V){return bt(new Cw(V),v)}))};
raZ=function(v,Q,V){return Q.pipe(Zw0(NN),fw(v)).pipe(ba(function(E,b){return vM(E,b,caE)}),eS({timestamp:V.now(),
value:CHr}),fw(v))};
Hab=function(v,Q,V,E){V=E.pipe(aQS(V),UY(gu(function(b){return Math.round(b*100)/100})),fw(v));
return Q instanceof Cw?V:j1([V,Q]).pipe(gu(function(b){var F=_.L(b);b=F.next().value;F=F.next().value;return{timestamp:F.timestamp.maximum(b.timestamp),value:F.value?0:b.value}}),ba(vM),fw(v))};
UAr=function(v,Q,V,E){Q=[Q.pipe(gu(function(b){return b.value.elementGeometry.width*b.value.elementGeometry.height>=242500}))];
V instanceof TC&&Q.push(V.pipe(gu(function(b){return!!b})));
V=j1(Q);return E?V.pipe(gu(function(b){return b.some(function(F){return F})}),eS(!1),ba(),fw(v)):bt(new Cw(!1),v)};
IQt=function(v,Q){v=j1([v,Q]).pipe(gu(function(b){var F=_.L(b);b=F.next().value;if(F.next().value&&b.value.isIntersecting)return b.value.isV2Visible}),ba());
var V=v.pipe(gu(function(b){return b===void 0?!0:b}),pw(function(b,F){return b||!F},!1)),E=v.pipe(pw(function(b,F){return F===void 0?b:F?!1:b!=null?b:!0},void 0),gu(function(b){return!!b}));
return j1([Q,hDt(v,V,E)]).pipe(gu(function(b){var F=_.L(b);b=F.next().value;var t=_.L(F.next().value);F=t.next().value;var p=t.next().value;t=t.next().value;var Z=0;if(!b)return 0;if(F===void 0)return 16;F&&(Z|=1);F||(Z|=2);p&&(Z|=4);t&&(Z|=8);return Z}))};
tgr=function(v,Q,V,E,b){var F=bUZ.timeThresholdMs;var t=t===void 0?new FXQ(Q,E):t;return(new TC(function(p){var Z=V.pipe(eS(void 0),ZT(function(){return KX9(b)})).pipe(gu(function(d){var w=d.value;
d=d.timestamp;var A=w.visible;w=w.consecutiveViewTime;var k=w>=F;k||!A?iUE(t):(d=Math.max(0,Hc(Q.now(),d)),LXG(t,Math.max(0,F-w-d)));return k}),pw(function(d,w){return w||d},!1),ba()).subscribe(p);
return function(){t.dispose();Z.unsubscribe()}})).pipe(P4(function(p){return!p},!0),fw(v))};
KX9=function(v){return wRT([v,v.pipe(yao())]).pipe(gu(function(Q){var V=_.L(Q);Q=V.next().value;V=V.next().value;return{timestamp:Q.timestamp,value:{visible:Q.value,consecutiveViewTime:V.value}}}),ba(function(Q,V){return vM(Q,V,function(E,b){return E.consecutiveViewTime===b.consecutiveViewTime&&E.visible===b.visible})}))};
pUo=function(){return kw(Tbm(),pw(function(v,Q){return Math.max(v,Q)},0),gu(function(v){return Math.round(v)}))};
eJr=function(v){return kw(srQ(zC(v)),pUo())};
ZUG=function(v,Q){return Q instanceof TC?Q.pipe(ZT(function(V){return(V=V?15:null)?JT(new x4(V)):v})):(Q=Q.value?15:null)?JT(new x4(Q)):v};
Pkh=function(v){var Q=new x4(13);if(v.length<1)return{chain:ru,capturedErrors:ru};var V=new yx,E=v[0];return{chain:v.slice(1).reduce(function(b,F){return b.pipe(v4(function(t){V.next(t);return F}))},E).pipe(v4(function(b){V.next(b);
return JT(Q)}),ia(new yx),Bc()),
capturedErrors:V}};
dPb=function(v,Q){var V=v.pipe(ia(new yx),Bc());return ZT(function(E){return V.pipe(Q(E))})};
wUT=function(v,Q){if(v.inCrossDomainIframe)return JT(new x4(6));var V=new yx;return $w(zC({}),Q,V).pipe(gu(function(){return{timestamp:v.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:hJE(v),topWindowViewportExternalGeometry:$4(v,!0),measurementRequests:V,viewportLocalAppOffset:{x:0,y:0}}}}),c4(v.queue))};
hJE=function(v){var Q=$4(v,!1);if(!v.inIframe||!NIo(v.global.parent)||v.global.parent===v.global)return Q;var V=new F9(v.global.parent,v.debugChannel);V.beaconFactory=v.beaconFactory;V=hJE(V);v=v.global.frameElement.getBoundingClientRect();return Gch(Cto(Gch(V,v),{x:Q.left-v.left,y:Q.top-v.top}),Q)};
A1t=function(v){if(v.prerendering)return 3;var Q;return(Q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[v.visibilityState||v.webkitVisibilityState||v.mozVisibilityState||""])!=null?Q:0};
kg0=function(v){return v.document.JSC$9451_onVisibilityChange.pipe(gu(function(Q){return Q==="visible"}),ba(),fw(v.queue))};
T70=function(v,Q,V){var E;return Q.pipe(ba(),ZT(function(b){return V.pipe(gu(function(){if(!E){E=!0;try{b.next()}finally{E=!1}}return!0}))}),eS(!1),fw(v.queue))};
Yio=function(v){return kw(UY(gu(function(Q){return Q>=1?!0:Q<=0?!1:Q>=v})),keb(),gu(function(Q){return Math.round(Q)}))};
c1h=function(v,Q,V,E,b){var F=y1r;if(F.length>1)for(var t=0;t<F.length-1;t++)if(F[t]<F[t+1])throw Error();t=b.pipe(eS(void 0),ZT(function(){return V.pipe(yao())}),ba(),fw(v));
b=b.pipe(eS(void 0),ZT(function(){return V.pipe(pUo())}),ba(),fw(v));
return{totalMeasurementTime:E.pipe(eS(void 0),ZT(function(){return Q.pipe(gu(function(p){return{timestamp:p.timestamp,value:!0}}),keb())}),ba(),fw(v)),
totalUnviewedTime:E.pipe(eS(void 0),ZT(function(){return Q.pipe(gu(function(p){return{timestamp:p.timestamp,value:p.value===0}}),keb())}),ba(),fw(v)),
maxTimeOnScreen:E.pipe(eS(void 0),ZT(function(){return Q.pipe(YXT(eJr,F))}),ba(_.Ih),fw(v)),
timeOnScreen:E.pipe(eS(void 0),ZT(function(){return Q.pipe(YXT(Yio,F),gu(function(p){return p.map(function(Z,d){return d>0?Z-p[d-1]:Z})}))}),ba(_.Ih),fw(v)),
maxConsecutiveViewTime:b,consecutiveViewTime:t.pipe(ba(vM),fw(v))}};
GgT=function(v){var Q=!0;Q=Q===void 0?!1:Q;return kw(ZT(function(V){return fxr(v.document,V,Q)}),fw(v.queue))};
Ckb=function(v,Q,V){var E=V.pipe(gu(function(b){return{value:b,timestamp:v.timeProvider.now()}}),ba(vM));
return Q instanceof TC?Q.pipe(ba(),ZT(function(b){return b?bt(new Cw({value:!1,timestamp:v.timeProvider.now()}),v.queue):E})):Q.value===!1?E:new Cw(!1)};
MgT=function(v,Q,V,E,b,F,t){var p=bUZ;Q=Q instanceof TC?Q.pipe(eS(!1),ba()):Q;var Z=!v.isMobile();V=Ckb(v,V,E);v=t.measurableCreative.pipe(hpS(v.queue));return Object.assign({},p,{geometryIsOccluded:V,wasLargeAdAtRender:b,allowLargeAdThreshold:Z,mayUseViewportShareExposure:Q,hasMeasurementStarted:v,useIntersectionObserverV2:F})};
DPt=function(v,Q,V,E,b,F){var t=1;F=F===void 0?!0:F;t=t===void 0?.01:t;var p=p===void 0?v.timeProvider.intervalObservable(100).pipe(fw(v.queue)):p;return v.performanceMonitor.timeExecution(916,function(){return OUr(v,Q.pipe(c4(v.queue)),V.pipe(c4(v.queue)),E,b,F,t,p)})()};
OUr=function(v,Q,V,E,b,F,t,p){var Z=kg0(v).pipe(gu(function(w){return!w})),d=new RJh(v,[new nbb(v,y1r),
new lxo(v,p)]);p=baS(qib,Sir);return Igt(v,Q,function(w,A){var k=bt(new Cw(A.element),w.queue).pipe(GgT(w),fw(w.queue)),T={loadedElement:k,shouldMeasure:k.pipe(Vx(!0)),measurableCreative:k.pipe(gu(function(u){var r=r===void 0?Symbol():r;return Object.freeze({symbol:r,element:bt(new Cw(u),w.queue)})})),
creativeSearchResult:bt(new Cw("mue"),w.queue)},c=new Cw(!1),C=new Cw(!1),R=new Cw(17),l=new Cw(!1),S=new Cw(!1),a=bt(Kg,w.queue);c=d.buildGeometrySource(T,{inApp:c,useV2:!1,requestSource:bt(R,w.queue)}).geometrySource;T=MgT(w,l,C,Z,S,a,T);C=EbQ(w.queue,w.timeProvider,c,T);T=C.geometrySignals;l=C.shouldResetViewabilitySignals;C=c1h(w.queue,T.timestampedExposure,T.visible,C.shouldResetExposureSignals,l);l=tgr(w.queue,w.timeProvider,l,T.measurementRequests,T.visible);S=V.pipe(Ia(function(u){return u===
A.element.ref}),gu(function(){return"ur"}));
a=TIr(w.timeProvider,b).pipe(Vx("t"));S=Bbr(w,$w(S,a));a=T70(w,T.measurementRequests,S.pipe(Ia(function(u){return u!==null})));
c=S.pipe(Ia(function(u){return u!==null}),gu(function(){return A1t(w.global.document)===1}));
var g=zJ0(w.document);return Object.assign({},{beaconFactory:new Cw(w.beaconFactory),context:new Cw(w),inferredPingId:new Cw("lidar2"),timeOnScreenPingId:new Cw("lidartos"),binaryContext:new Cw(17),binaryVersion:new Cw(E),requestSource:R,contextValidationErrors:new Cw(w.validate()?null:new B4),contextVisibilityKnown:new Cw(g),payloadMapper:new Cw(V_Q),endOfSessionReason:S,timeOnScreenReason:S,requestMeasurementOnEndOfSession:a,hasImpressionFired:J19,crossDomainIframeState:new Cw(w.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Kg,inFetchLaterBeaconExperiment:Kg,isTurtlex:Kg,turtlexReportEventData:new Cw(""),reportFencedFrameEvent:NN,isViewableAttributionEnabled:Kg,inViewableAttributionExperiment:new Cw(0),fetchBeaconFactory:NN,supportsPendingBeacon:Kg,supportsFetchLater:Kg,emit:new Cw(iaG),beginToRenderEvent:new Cw(Symbol()),activeViewUnmeasurableEvent:new Cw(Symbol()),activeViewViewableEvent:new Cw(Symbol()),creativeFound:J19,immediateUrlPrefixes:new Cw(A.immediateUrls),timeOnScreenUrlPrefixes:new Cw(A.timeOnScreenUrls),
cpmavUrls:NN,viewableRelayUrls:NN,measurementDeferralState:new Cw(2),urlSerializer:new Cw(PHo),viewUrlSerializer:new Cw(N7S),isCreativeLoaded:k.pipe(hpS(w.queue)),pageVisible:Z.pipe(gu(function(u){return!u})),
eosPageVisible:c,timestampedExposureHistory:T.timestampedExposure.pipe(pw(function(u,r){u.push(r);return u},[]))},T,{viewable:Eh(w,l),
maxTimeOnScreen:Eh(w,C.maxTimeOnScreen),timeOnScreen:Eh(w,C.timeOnScreen),maxConsecutiveViewTime:Eh(w,C.maxConsecutiveViewTime),consecutiveViewTime:C.consecutiveViewTime.pipe(gu(function(u){return new Vl(w.timeProvider,u)})),
totalMeasurementTime:Eh(w,C.totalMeasurementTime),totalUnviewedTime:Eh(w,C.totalUnviewedTime),userAgentClientHints:EJT(w),clientOrderPingCounter:new Cw(new mz0)})},EUS(v,t),F$b(F?K$o(p,xPQ):K$o(p,B70),gbZ))};
sSB=function(v){var Q=_.aE.apply(1,arguments).filter(Boolean).join("&");if(!Q)return v;var V=v.match(/[?&]adurl=/);return V?v.slice(0,V.index+1)+Q+"&"+v.slice(V.index+1):v+(v.indexOf("?")<0?"?":"&")+Q};
Lg=function(v,Q){return Q?"&"+v+"="+encodeURIComponent(Q):""};
u1G=function(){try{var v,Q;return!!((v=window)==null?0:(Q=v.top)==null?0:Q.location.href)&&!1}catch(V){return!0}};
_.t5=function(v){v&&typeof v.dispose=="function"&&v.dispose()};
_.pg=function(v){for(var Q=0,V=arguments.length;Q<V;++Q){var E=arguments[Q];_.W9(E)?_.pg.apply(null,E):_.t5(E)}};
WXr=function(){var v=jS9();v=v===void 0?"bevasrsg":v;return new Promise(function(Q){var V=window===window.top?window:u1G()?window:window.top,E=V[v],b;((b=E)==null?0:b.bevasrs)?Q(new eK(E.bevasrs)):(E||(E={},E=(E.nqfbel=[],E),V[v]=E),E.nqfbel.push(function(F){Q(new eK(F))}))})};
obb=function(v){var Q={c:v.hj,e:v.xaH,mc:v.cRH,me:v.zGG};v.aR&&(Q.co={c:v.aR.lb2,a:v.aR.wje,s:v.aR.vw0});return Q};
XUS=function(v){var Q,V,E={hj:v.c,xaH:v.e,cRH:(Q=v.mc)!=null?Q:!1,zGG:(V=v.me)!=null?V:!1};v.co&&(E.aR={lb2:v.co.c,wje:v.co.a,vw0:v.co.s});return E};
axo=function(v){return function(){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v(),2);Q=V.yieldResult;return V.return({f:function(){return Q.dtv()},
c:function(E){return Q.qBg(E)},
m:function(E){return Q.ah(XUS(E))},
mws:function(E){return Q.rgz(XUS(E))}})})}};
r1G=function(v,Q){var V=jS9();V=V===void 0?"bevasrsg":V;Q={s:function(F){var t;return v.snapshot(Object.assign({},F.c&&{hj:F.c},F.s&&{wYZ:F.s},{cgx:(t=F.p)!=null?t:!0}))},
e:function(F){var t;return void((t=v.qf2)==null?void 0:t.call(v,F))},
c:function(F,t){return v.n2q(F,t)},
p:v.bwW,l:function(){return v.uVA()},
wpc:Q?axo(Q):void 0};var E=window===window.top?window:u1G()?window:window.top,b=E[V];if(b){b.bevasrs=Q;if(b.nqfbel!==void 0)for(V=_.L(b.nqfbel),E=V.next();!E.done;E=V.next())E=E.value,E(Q);b.nqfbel=void 0}else b={},b=(b.bevasrs=Q,b.nqfbel=void 0,b),E[V]=b};
IxQ=function(v){var Q=Q===void 0?51:Q;var V=[];_.PM(v,$PG,6,_.dZ()).forEach(function(E){_.h5(E,2)<=Q&&V.push(_.h5(E,1))});
return V};
HU3=function(v){var Q=Q===void 0?51:Q;var V=[];_.PM(v,$PG,6,_.dZ()).forEach(function(E){_.h5(E,2)>Q&&V.push(_.h5(E,1))});
return V};
mPQ=function(v){v.then(function(){},function(){})};
wZ=function(v){return{fieldType:1,fieldName:v}};
A5=function(v){return{fieldType:2,fieldName:v}};
_.kJ=function(v){return{fieldType:3,fieldName:v}};
UP9=function(){function v(){b[0]=1732584193;b[1]=4023233417;b[2]=2562383102;b[3]=271733878;b[4]=3285377520;w=d=0}
function Q(A){for(var k=t,T=0;T<64;T+=4)k[T/4]=A[T]<<24|A[T+1]<<16|A[T+2]<<8|A[T+3];for(T=16;T<80;T++)A=k[T-3]^k[T-8]^k[T-14]^k[T-16],k[T]=(A<<1|A>>>31)&4294967295;A=b[0];var c=b[1],C=b[2],R=b[3],l=b[4];for(T=0;T<80;T++){if(T<40)if(T<20){var S=R^c&(C^R);var a=1518500249}else S=c^C^R,a=1859775393;else T<60?(S=c&C|R&(c|C),a=2400959708):(S=c^C^R,a=3395469782);S=((A<<5|A>>>27)&4294967295)+S+l+a+k[T]&4294967295;l=R;R=C;C=(c<<30|c>>>2)&4294967295;c=A;A=S}b[0]=b[0]+A&4294967295;b[1]=b[1]+c&4294967295;b[2]=
b[2]+C&4294967295;b[3]=b[3]+R&4294967295;b[4]=b[4]+l&4294967295}
function V(A,k){if(typeof A==="string"){A=unescape(encodeURIComponent(A));for(var T=[],c=0,C=A.length;c<C;++c)T.push(A.charCodeAt(c));A=T}k||(k=A.length);T=0;if(d==0)for(;T+64<k;)Q(A.slice(T,T+64)),T+=64,w+=64;for(;T<k;)if(F[d++]=A[T++],w++,d==64)for(d=0,Q(F);T+64<k;)Q(A.slice(T,T+64)),T+=64,w+=64}
function E(){var A=[],k=w*8;d<56?V(p,56-d):V(p,64-(d-56));for(var T=63;T>=56;T--)F[T]=k&255,k>>>=8;Q(F);for(T=k=0;T<5;T++)for(var c=24;c>=0;c-=8)A[k++]=b[T]>>c&255;return A}
for(var b=[],F=[],t=[],p=[128],Z=1;Z<64;++Z)p[Z]=0;var d,w;v();return{reset:v,update:V,digest:E,digestString:function(){for(var A=E(),k="",T=0;T<A.length;T++)k+="0123456789ABCDEF".charAt(Math.floor(A[T]/16))+"0123456789ABCDEF".charAt(A[T]%16);return k}}};
FFm=function(v,Q){Q=Q===void 0?vd0:Q;if(!QmT){var V;v=(V=v.navigator)==null?void 0:V.userAgentData;if(!v||typeof v.getHighEntropyValues!=="function"||v.brands&&typeof v.brands.map!=="function")return Promise.reject(Error("ua"));VwT((v.brands||[]).map(function(b){var F=new Ed3;F=_.SS(F,1,b.brand);return _.SS(F,2,b.version)}));
typeof v.mobile==="boolean"&&_.Tc(biZ,2,v.mobile);QmT=v.getHighEntropyValues(Q)}var E=new Set(Q);return QmT.then(function(b){var F=biZ.clone();E.has("platform")&&_.SS(F,3,b.platform);E.has("platformVersion")&&_.SS(F,4,b.platformVersion);E.has("architecture")&&_.SS(F,5,b.architecture);E.has("model")&&_.SS(F,6,b.model);E.has("uaFullVersion")&&_.SS(F,7,b.uaFullVersion);return F.serialize()}).catch(function(){return biZ.serialize()})};
YJ=function(v,Q,V,E){this.initialValue_=v;this.maxValue_=Q;this.currBaseValue_=this.currValue_=v;this.randomFactor_=V||0;this.backoffFactor_=E||2};
yl=function(v){this.src=v;this.listeners={};this.typeCount_=0};
twT=function(){for(var v;v=KFG.remove();){try{v.fn.call(v.scope)}catch(Q){Fr(Q)}iib.put(v)}LFm=!1};
_.p5B=function(v){switch(v){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
eHr=function(v){switch(v){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.Zib=function(){};
ytr=function(v,Q,V,E){v=PvT(dYT(hHS(new _.cM(1828,"0"),v),new w5S)).disableWithCredentials();Q.length&&AtT(v,k_3(new T$0,Q));E!==void 0&&(v.destinationUrl=E);var b=new YGQ(1828,"","",!1,"",v.build());_.Cg(b,v);var F=new Mz({flush:function(t){try{b.flush(t)}catch(p){V(p)}}});
F.addOnDisposeCallback(function(){setTimeout(function(){try{F.snapshotAndFlush()}finally{b.dispose()}})});
F.invocationLimit=1E5;F.flushInterval=3E4;F.JSC$9867_flushTimer.setInterval(3E4);return F};
Oh=function(){var v,Q,V;return(V=(v=globalThis.performance)==null?void 0:(Q=v.now)==null?void 0:Q.call(v))!=null?V:Date.now()};
G_G=function(v,Q){if(v.disable)return new ct9;Q=Q?IxQ(Q):[];v={ri:v.ri,aUj:v.bFG,hsX:v.n5X,destinationUrl:v.destinationUrl,zMM:v.zMM,o6q:v.o6q};Q=Q===void 0?[]:Q;return new f93(v,Q)};
Cvb=function(v){if(!v)return null;v=_.Dg(v,2);return v===null||v===void 0?null:Hq(v)};
_.Mwr=function(v){if(!v)return null;v=_.Dg(v,4);return v===null||v===void 0?null:_.lV(v)};
RH3=function(v,Q){return Q?Oib(Q):v?DYG(v):Promise.resolve()};
Oib=function(v){return new Promise(function(Q,V){var E=_.RD("SCRIPT"),b=_.Mwr(v);_.L$(E,b);E.onload=function(){_.ng(E);Q()};
E.onerror=function(){_.ng(E);V(Error("Fa"))};
(lt("HEAD")[0]||document.documentElement).appendChild(E)})};
DYG=function(v){return new Promise(function(Q){var V=_.RD("SCRIPT");if(v){var E=_.Dg(v,6);E=E===null||E===void 0?null:_.Fd(E)}else E=null;_.ii(V,E);(lt("HEAD")[0]||document.documentElement).appendChild(V);_.ng(V);Q()})};
qz=function(v,Q,V){var E,b=new Promise(function(F){E=setTimeout(F,Q)});
return Promise.race([v.finally(function(){return void clearTimeout(E)}),
b.then(V)])};
ndT=function(v,Q){try{return globalThis.sessionStorage.setItem(v,Q),!0}catch(V){return!1}};
l9m=function(v,Q,V,E){Q=Q===void 0?0:Q;V=V===void 0?v.length:V;var b=0;for(E&&(b=l9m(E));Q<V;Q++)E=typeof v==="string"?v.charCodeAt(Q):v[Q],b=qGZ(31,b)+E|0;return b};
SGt=function(v,Q){return[l9m(v,0,v.length>>1,Q),l9m(v,v.length>>1)]};
zH3=function(v){var Q=_.L(SGt(v,SK));v=Q.next().value;Q=Q.next().value;return v.toString(16)+Q.toString(16)};
Jto=function(v,Q){var V=SGt(Q);v=new Uint32Array(v.buffer);Q=v[0];var E=_.L(V);V=E.next().value;E=E.next().value;for(var b=1;b<v.length;b+=2){for(var F=Q,t=b,p=V,Z=E,d=0;d<22;d++)t=t>>>8|t<<24,t+=F|0,t^=p+38293,F=F<<3|F>>>29,F^=t,Z=Z>>>8|Z<<24,Z+=p|0,Z^=d+38293,p=p<<3|p>>>29,p^=Z;F=[F,t];v[b]^=F[0];b+1<v.length&&(v[b+1]^=F[1])}};
N$B=function(v,Q,V,E,b){var F=(4-(SK.length+V.length)%4)%4,t=new Uint8Array(4+F+SK.length+4+V.length),p=new DataView(t.buffer),Z=0;p.setUint32(Z,Math.random()*4294967295);Z=Z+4+F;t.set(SK,Z);Z+=SK.length;p.setUint32(Z,b);t.set(V,Z+4);Jto(t,E);return v.insert(Q,function(d){return void globalThis.sessionStorage.removeItem(d)})?ndT(Q,_.Sq(t))?"s":"t":"i"};
xY0=function(v,Q){var V=globalThis.sessionStorage.getItem(v);if(!V)return["m"];try{var E=_.H9(V);Jto(E,Q)}catch(b){return globalThis.sessionStorage.removeItem(v),["c"]}for(Q=4;Q<7&&E[Q]===0;)Q++;for(V=0;V<SK.length;V++)if(E[Q++]!==SK[V])return globalThis.sessionStorage.removeItem(v),["d"];V=(new DataView(E.buffer)).getUint32(Q);return Math.floor(Date.now()/1E3)>=V?(globalThis.sessionStorage.removeItem(v),["e"]):["a",new Uint8Array(E.buffer,Q+4)]};
B$b=function(v){return globalThis.TextEncoder?(new TextEncoder).encode(v):_.zc(v)};
gdE=function(v){var Q=v,V;return function(){if(Q){var E=Q;Q=void 0;V=E.apply(this,arguments)}return V}};
uFQ=function(v){return NZ(function(Q){if(Q instanceof v)return!0;var V,E,b=Q==null?void 0:(V=Q.ownerDocument)==null?void 0:(E=V.defaultView)==null?void 0:E[v.name];return smb(b)&&Q instanceof b})};
_.xJ=function(v,Q,V){_.J5.call(this);this.JSC$10081_listener_=v;this.JSC$10081_interval_=Q||0;this.handler_=V;this.callback_=(0,_.Nz)(this.JSC$10083_doAction_,this)};
_.BM=function(v){v=jmr(v);return _.lV(v)};
jmr=function(v){return v===null?"null":v===void 0?"undefined":v};
od9=function(v){if(v&&v.focus)if(v!==document.activeElement)v.focus();else return WFS(function(){return _.e(function(Q){document.activeElement&&document.activeElement.blur();return Q.return(WFS(function(){v.focus()}))})})};
_.X5r=function(v){var Q=Q===void 0?5:Q;setTimeout(function(){var V;return _.e(function(E){E.nextAddress==1&&(V=document.activeElement);if(E.nextAddress!=5)return(document.activeElement===V||document.activeElement===document.body)&&Q>=0&&v?E.yield(od9(v),5):E.jumpTo(0);if(document.activeElement===v)return E.return();v=v.parentElement;--Q;return E.jumpTo(2)})},15)};
WFS=function(v){return new Promise(function(Q){requestAnimationFrame(function(){Q(v())})})};
rtZ=function(v){if(_.sh)v(_.sh);else{var Q;((Q=a9G)!=null?Q:a9G=[]).push(v)}};
jK=function(){!_.sh&&_.ut&&_.$Yo(_.ut());return _.sh};
_.$Yo=function(v){_.sh=v;var Q;(Q=a9G)==null||Q.forEach(rtZ);a9G=void 0};
_.WM=function(v){_.sh&&_.sh.beforeLoadModuleCode(v)};
_.oD=function(){_.sh&&_.sh.JSC$11134_setLoaded()};
X9=function(v){return SRE(v)?Number(v):String(v)};
I9Q=function(v){this.action=v;this.wfv=!1};
HiB=function(v,Q){I9Q.call(this,"set-drive-options");this.appId=v;this.appOrigin=Q};
mYB=function(v){I9Q.call(this,"visibility");this.visible=v};
UYr=function(v,Q,V){aD.call(this,v,Q,V)};
vFT=function(v){rZ.call(this,v)};
Qem=function(v){v=v&&v.getWindow()||window;return v.gadgets&&v.gadgets.rpc};
EF0=function(v,Q){var V=Q&&Q.getWindow()||window;if(Qem(Q))v();else if(VjE)VjE.push(v);else var E=VjE=[v],b=V.setInterval(function(){if(Qem(Q)){V.clearInterval(b);for(var F=0;F<E.length;F++)E[F]();VjE=null}},100)};
F7m=function(v,Q){var V=new $J(v);_.Cg(Q,V);var E={passive:!1};Q.listen(V,"mousewheel",function(b){return void bOh(v,b)},E).listen(v,"scroll",function(b){return void bOh(v,b)},E)};
bOh=function(v,Q){var V;a:{for(V=Q.target;V;){if(V.nodeType==1){var E=_.ID(V,"overflowY");if(E=="auto"||E=="scroll")break a}V=V.parentNode}V=null}if(!V||!_.HM(v,V)||V.scrollHeight==V.clientHeight||Q.deltaY>0&&Math.abs(V.scrollTop-(V.scrollHeight-V.clientHeight))<=1||Q.deltaY<0&&V.scrollTop==0)Q.preventDefault(),Q.stopPropagation()};
bH=function(v,Q,V,E,b,F,t,p,Z){p=p===void 0?!1:p;Z=Z===void 0?!1:Z;aD.call(this,void 0,void 0,void 0);aD.call(this,F?F+" picker modal-dialog":"picker modal-dialog",!0,V);_.me(v,"protocol");this.iframeManager_=new K7m;this.targetId_=Uh();this.rpcToken_=Uh();v=_.vR(v);_.Qf(v,"hostId");this.useGapi_=!Z;p&&_.Vf(v,"fv2","true");this.setUrl(v.toString());this.preferredDialogWidth_=E;this.preferredDialogHeight_=b;E!==void 0||b!==void 0?E=!0:(E=_.Qf(_.vR(v.toString()),"hostId"),iOt||(iOt=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
E=!iOt.has(E));this.autoSizeDialog_=E;this.JSC$10271_gadgetsDomHelper_=t||this.JSC$10222_dom_;Q&&(t=this.JSC$10271_gadgetsDomHelper_,Q=_.Qf(_.vR(this.JSC$10273_url_),"grugl")=="true"?L73:tjZ,Qem(t)||(t=t||qN(document),E=t.createElement("SCRIPT"),_.L$(E,Q),E.type="text/javascript",t.JSC$9406_document_.body.appendChild(E)));v=v.toString();Q=null;t=v.indexOf("/picker?");t>-1?Q=v.substring(0,t+8-1):ib(v,"/picker")&&(Q=v);Q&&this.setRelayUrl(Q+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(v=this.buttons_,v.JSC$10256_element_=this.buttonEl_,v.render()):_.tT(this.buttonEl_,prZ),_.EX(this.buttonEl_,!!this.buttons_))};
_.dL3=function(v){var Q=Q===void 0?eBE:Q;var V=_.$Q(v),E=function(F){F=_.L(F);F.next();F=Fb(F);return Q(V,F)},b=function(F){var t=_.L(F);
F=t.next().value;t=Fb(t);return v.apply(F,t)};
return function(){var F=_.aE.apply(0,arguments),t=this||_.bb,p=ZOt.get(t);p||(p={},ZOt.set(t,p));return PDm(p,[this].concat(_.ui(F)),b,E)}};
Ka=function(v){var Q={};v=v.replace(/\r/g,"").split("\n");for(var V=0;V<v.length;V++){var E=v[V],b=E.indexOf(":");b<0||(Q[E.substring(0,b)]=E.substring(b+2,E.length))}return Q};
hBS=function(v,Q,V){V=V===void 0?function(){}:V;
return v?Q():V()};
_.AF9=function(v){var Q;return((Q=wrS.documentOverride)!=null?Q:v).__wizdispatcher};
_.La=function(v){var Q=iH;iH=v;return Q};
_.TOB=function(v){return v===kYo||(v==null?void 0:v.name)==="\u0275NotFound"};
_.ta=function(v,Q){var V;if((V=v)==null?0:V.isDisposed)throw Error("jb`"+String(v.debugName));for(;v!==void 0;){V=v;if(V.retrieve)return V.retrieve(Q,{optional:!0});v=v.parent}return kYo};
pa=function(v){return{"\u0275prov":{providedIn:"root",token:Symbol(v),factory:void 0,value:void 0}}};
_.Yf3=function(v){var Q=iH;if(!Q){switch(v===void 0?3:v){case 0:v=Error("ib");break;case 1:v=Error("kb");break;case 2:v=Error("lb");break;default:v=Error("mb")}throw v;}return Q};
yF9=function(v){var Q=_.La(v);v={};return v[Symbol.dispose]=function(){_.La(Q)},v};
cF9=function(v,Q){v.disposables||(v.disposables=[]);v.disposables.push(Q)};
e_=function(v){var Q=iH;Q&&!Q.isDisposed&&(cF9(Q,v),v.parent=Q)};
GYt=function(v){if(v.disposables){for(var Q=_.L(v.disposables),V=Q.next();!V.done;V=Q.next())V=V.value,typeof V==="function"?V():fd0(V);v.disposables.length=0}};
fd0=function(v){if(!v.isDisposed){v.isDisposed=!0;var Q;(Q=v[Symbol.dispose])==null||Q.call(v);delete v.parent;GYt(v)}};
Sfo=function(v){var Q={retrieve:function(V){switch(V.\u0275prov.token){case CDG.\u0275prov.token:var E=v.asyncDeps;break;case _.Mj9.\u0275prov.token:E=v.rootElement;break;case OOE.\u0275prov.token:E=v.modelRootElement;break;case DL0.\u0275prov.token:E=v.appContext;break;case RB0.\u0275prov.token:E=v.rendererData;break;case nFS.\u0275prov.token:E=v.injectingConstructor;break;case ld0.\u0275prov.token:E=v.dispatcher}if(E)V=E;else a:{for(E=Q.parent;E;){var b=E;if(b.retrieve){V=b.retrieve(V);break a}E=
E.parent}E=V.\u0275prov.token;b=qfS[E];b!==void 0?V=b:(b=V.\u0275prov.providedIn,V.\u0275prov.factory?(V=V.\u0275prov.factory(),E&&b==="root"&&(qfS[E]=V)):V=kYo)}return V}};
e_(Q);return Q};
zBE=function(){var v=_.Yf3(1),Q=_.ta(v,DL0);if(!_.TOB(Q))return Q;v=_.ta(v,ld0);if(!_.TOB(v))return v.getOptionalAppContext()};
JF9=function(v){if(typeof document!=="undefined"&&document&&document.getElementById&&(v=document.getElementById(v))){var Q=v.tagName.toUpperCase();if(Q=="SCRIPT"||Q=="LINK")return v}return null};
xLE=function(v,Q){if((v=v===void 0?"":v)&&Q)throw Error("sb");var V="";var E=_.bb._F_jsUrl;(v=Q||JF9(v))&&(V=v.src?v.src:v.getAttribute("href"));if(E&&V){if(E!=V)throw Error("tb`"+E+"`"+V);V=E}else V=E||V;if(!NOQ(V))throw Error("ub");return V};
uT3=function(){if(!BOG){BOG=!0;try{var v=xLE(_.bb._F_jsUrl?"":"base-js")}catch(E){return}var Q=gFt(set(v)),V=Object.keys(Q);V.length!==0&&rtZ(function(E){for(var b=_.L(V),F=b.next();!F.done;F=b.next()){F=F.value;for(var t=_.L(Object.keys(Q[F])),p=t.next();!p.done;p=t.next())E.addExtraEdge(F,p.value)}})}};
W7Z=function(){var v=Object.assign({},jeb);Object.getOwnPropertyNames(jeb).forEach(function(Q){ZQ[Q]!==void 0&&(v[Q]=ZQ[Q])});
return v};
oF9=function(v,Q){if(ZQ.enablePerformanceTiming){var V,E;(E=(V=performance).mark)==null||E.call(V,v+"Start__"+Q)}};
Xrh=function(v,Q){if(ZQ.enablePerformanceTiming){var V,E;(E=(V=performance).measure)==null||E.call(V,v+"__"+Q,v+"Start__"+Q)}};
adt=function(v,Q,V){var E;return v&&Q?v+"__"+Q:(E=v!=null?v:Q)!=null?E:V};
$Lh=function(v,Q){var V=Object.create(rFE);V.debugName=Q;!iH||e_(V);Q=_.La(V);try{v(V)}finally{_.La(Q)}return function(){return void fd0(V)}};
HOG=function(v){return PR(v)&&IdQ in v};
mLQ=function(v,Q){return Object.is(v,Q)};
ha=function(v){var Q=db;db=v;return Q};
vh0=function(v){if(wb)throw Error("Z");if(db!==null){var Q=db.producersTail;if(Q===void 0||Q.producer!==v){var V=void 0,E=db.recomputing;if(E&&(V=Q!==void 0?Q.nextProducer:db.producers,V!==void 0&&V.producer===v)){db.producersTail=V;V.lastReadVersion=v.version;return}var b=v.consumersTail,F;if(!(F=b===void 0||b.consumer!==db)){if(E){a:{F=db;E=F.producersTail;if(E!==void 0){F=F.producers;do{if(F===b){E=!0;break a}if(F===E)break;F=F.nextProducer}while(F!==void 0)}E=!1}E=!E}F=E}F&&(E=kU(db),V={producer:v,
consumer:db,nextProducer:V,prevConsumer:b,lastReadVersion:v.version,nextConsumer:void 0},db.producersTail=V,Q!==void 0?Q.nextProducer=V:db.producers=V,E&&ULQ(v,V))}}};
YU=function(v){if(!kU(v)||v.dirty)if(v.dirty||v.lastCleanEpoch!==Te)(v.producerMustRecompute(v)||QyZ(v))&&v.producerRecomputeValue(v),v.dirty=!1,v.lastCleanEpoch=Te};
Vx0=function(v){if(v.consumers!==void 0){var Q=wb;wb=!0;try{for(var V=v.consumers;V!==void 0;V=V.nextConsumer){var E=V.consumer;E.dirty||(v=void 0,E.dirty=!0,Vx0(E),(v=E.consumerMarkedDirty)==null||v.call(E,E))}}finally{wb=Q}}};
EhT=function(){var v;return((v=db)==null?void 0:v.consumerAllowSignalWrites)!==!1};
bpT=function(v){v&&(v.producersTail=void 0,v.recomputing=!0);return ha(v)};
Ktb=function(v){v.recomputing=!1;var Q=v.producersTail,V=Q!==void 0?Q.nextProducer:v.producers;if(V!==void 0){if(kU(v)){do V=Ftr(V);while(V!==void 0)}Q!==void 0?Q.nextProducer=void 0:v.producers=void 0}};
QyZ=function(v){for(v=v.producers;v!==void 0;v=v.nextProducer){var Q=v.producer,V=v.lastReadVersion;if(V!==Q.version)return!0;YU(Q);if(V!==Q.version)return!0}return!1};
ULQ=function(v,Q){var V=v.consumersTail,E=kU(v);V!==void 0?(Q.nextConsumer=V.nextConsumer,V.nextConsumer=Q):(Q.nextConsumer=void 0,v.consumers=Q);Q.prevConsumer=V;v.consumersTail=Q;if(!E)for(v=v.producers;v!==void 0;v=v.nextProducer)ULQ(v.producer,v)};
Ftr=function(v){var Q=v.producer,V=v.nextProducer,E=v.nextConsumer,b=v.prevConsumer;v.nextConsumer=void 0;v.prevConsumer=void 0;E!==void 0?E.prevConsumer=b:Q.consumersTail=b;if(b!==void 0)b.nextConsumer=E;else if(Q.consumers=E,!kU(Q))for(v=Q.producers;v!==void 0;)v=Ftr(v);return V};
kU=function(v){return v.consumerIsAlwaysLive||v.consumers!==void 0};
LtB=function(v){var Q=Object.create(ipG);Q.computation=v;v=function(){YU(Q);vh0(Q);if(Q.value===yf)throw Q.error;return Q.value};
v[cR]=Q;return v};
ZpE=function(v,Q){var V=Object.create(txo);V.value=v;Q!==void 0&&(V.equal=Q);v=function(){vh0(V);return V.value};
v[cR]=V;return[v,function(E){return pxm(V,E)},
function(E){EhT()||eyo(V);pxm(V,E(V.value))}]};
pxm=function(v,Q){EhT()||eyo(v);if(!v.equal(v.value,Q)){v.value=Q;v.version++;Te++;Vx0(v);var V;(V=PSQ)==null||V(v)}};
hy3=function(v,Q,V){var E=Object.create(dRo);E.source=v;E.computation=Q;V!=void 0&&(E.equal=V);v=function(){YU(E);vh0(E);if(E.value===yf)throw E.error;return E.value};
v[cR]=E;return v};
_.fa=function(v){var Q=ha(null);try{return v()}finally{ha(Q)}};
_.Ge=function(v,Q,V){V=V===void 0?"":V;v=ZpE(v,Q==null?void 0:Q.equals);var E=v[0],b=E[cR];b.debugName=adt(Q==null?void 0:Q.debugName,V,"[signal]");if(!ZQ.enablePerformanceTiming)return v;var F=v[1],t=v[2];return[E,function(p){wx9(function(){return void F(p)},b)},
function(p){wx9(function(){return void t(p)},b)}]};
wx9=function(v,Q){oF9("signalSet",Q.debugName);try{v()}finally{Xrh("signalSet",Q.debugName)}};
kvT=function(v,Q){var V=_.L(_.Ge(v,void 0,"cPpJzc"));v=V.next().value;V=V.next().value;v[A8Z]=V;v[Ca]=Q;return v};
To3=function(v){return!!v&&typeof v==="object"&&Object.getPrototypeOf(v)===Object.prototype};
Y0Z=function(v){return typeof v==="function"&&A8Z in v&&typeof v[A8Z]==="function"};
y8B=function(v,Q){Object.defineProperty(v,Ca,{get:function(){return Q}})};
OX=function(v,Q){if(MA(v)){var V=v.map(function(F){return OX(F,Q)});
y8B(V,Q);return V}if(To3(v)){V={};v=_.L(Object.entries(v));for(var E=v.next();!E.done;E=v.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;V[E]=OX(b,Q)}y8B(V,Q);return V}return kvT(v,Q)};
c8S=function(v){if(MA(v))return v.map(function(b){return c8S(b)});
if(To3(v)){var Q={};v=_.L(Object.entries(v));for(var V=v.next();!V.done;V=v.next()){var E=_.L(V.value);V=E.next().value;E=E.next().value;Q[V]=c8S(E)}return Q}return Y0Z(v)?v():v};
GvZ=function(){var v={height:0,width:0};if(!To3(v))throw Error("Jb");var Q=Symbol("Kb");return[OX(v,Q),function(V,E){if(V[Ca]===Q)if(typeof E==="function"){var b=[].concat(_.ui(c8S(V)));E=E(b)||b;fWT(V,[].concat(_.ui(E)))}else fWT(V,E);else throw Error("Lb");}]};
fWT=function(v,Q){if(Y0Z(v))v[A8Z](Q);else if(MA(v)&&MA(Q))Q=OX(Q,v[Ca]),v.length=0,v.push.apply(v,_.ui(Q));else if((To3(v)||MA(v))&&(MA(Q)||typeof Q==="object"&&Q!==null)){Q=_.L(Object.entries(Q));for(var V=Q.next();!V.done;V=Q.next()){var E=_.L(V.value);V=E.next().value;E=E.next().value;var b=v,F=b[V];Object.hasOwn(v,V)?fWT(F,E):b[V]=OX(E,v[Ca])}}else throw Error("Mb");};
CSo=function(v){return Object.create(Object.assign({},DQ,v))};
Opm=function(){var v;return(v=MxS)!=null?v:MxS=CSo({consumerAllowSignalWrites:!0})};
_.Rr=function(v,Q,V){V=V===void 0?"":V;v=LtB(v);var E=v[cR];E.debugName=adt(Q==null?void 0:Q.debugName,V,"[computed]");(Q==null?void 0:Q.equals)!=null&&(E.equal=Q.equals);return v};
na=function(v){var Q=ha(DR9);try{v()}finally{ha(Q)}};
nhZ=function(v,Q,V){var E=Ry3(v);lH={name:V?E+" ("+V+")":E,isReactive:v.componentType!==qA,parent:lH};v=Q();lH=lH.parent;return v};
S_=function(){var v=lH;return v?v.isReactive:!1};
Ja=function(v,Q,V){var E=lH;Q&&(lH=Q);try{return V==null?v():v.call(V)}catch(F){v=F;ze(v,lH);if(v!==lWE){q00=lH;Q=[];for(V=iH;V;){var b=void 0;Q.push((b=V.debugName)!=null?b:"[context]");b=void 0;V=(b=V.parent)!=null?b:null}S0B=Q.reverse()}lWE=v;throw v;}finally{lH=E}};
ze=function(v,Q){try{var V=zyt(Q);if(V&&!v.componentStack&&(v.componentStack=V,ZQ.enableComponentStacksInErrorMessages)){var E=v.message+"\n\nComponent stack: "+V;v.stack&&(v.stack=v.stack.replace(v.message,E));v.message=E}}catch(b){}};
zyt=function(v){if(PR(v)&&v.name!==void 0&&v.isReactive!==void 0&&v.parent!==void 0||v===null){for(var Q=0,V="";Q<20&&v;)V+=v.name+" > ",v=v.parent,Q++;v=V.slice(0,-3)}else if(ZQ.enableContextBasedComponentStacks){a:{for(v=v===void 0?iH:v;v;){if(HOG(v))break a;Q=void 0;v=(Q=v.parent)!=null?Q:null}v=null}v=v.getComponentStack().slice(0,20).join(" > ")}else v="";return v};
Ry3=function(v){return v.debugName||v.name||"[component]"};
gh9=function(v){switch(v.onInitType){case J8o:Noh.schedule(v);break;case xRS:ZQ.enableQueueEffectAndOnInitInitialRuns?BoE.enqueue(v):BoE.schedule(v);break;default:_.rV(v.onInitType)}};
tzE=function(v){if(!v.isDisposed)switch(v.effectType){case NA:bW9.schedule(v);break;case Fob:KoZ.schedule(v);break;case iWS:ZQ.enableQueueEffectAndOnInitInitialRuns||v.hasRun?LoS.enqueue(v):LoS.schedule(v);break;default:_.rV(v.effectType)}};
ZWS=function(){if(xU>0)ZQ.flushRenderEffectsDuringRender&&bW9.flush();else{for(var v=_.L(paT),Q=v.next();!Q.done;Q=v.next())Q.value.flush();edS()}};
edS=function(){_.e(function(v){if(v.nextAddress==1)return v.yield(Promise.resolve(),2);for(var Q=_.L(PMo),V=Q.next();!V.done;V=Q.next())V.value.flush();_.q1(v)})};
hdt=function(v){BR=!0;try{for(var Q=_.L(v),V=Q.next();!V.done;V=Q.next()){for(var E=V.value,b=[E],F=E;F.parent!==void 0;)F=F.parent,dFo(F)&&v.has(F)&&b.push(F);for(;b.length>0;){var t=b.pop();v.delete(t);t.run()}}}finally{BR=!1}};
gb=function(v){xU--;if(v){v=_.L(waS);for(var Q=v.next();!Q.done;Q=v.next())Q.value.clear()}else xU>0||BR&&!ZQ.flushRenderEffectsDuringRender||ZWS()};
Aqt=function(v,Q,V){Q=Object.create(Q);v&&(Q.effectFn=v);V&&(Q.debugName=V);e_(Q);Q.componentStack=lH;return Q};
_.sX=function(v,Q){v=Aqt(v,k7G,Q);tzE(v)};
_.uH=function(v,Q){v=Aqt(v,TXT,Q);tzE(v)};
YHm=function(v){return v};
yqt=function(v,Q){function V(){return b()}
var E=E===void 0?"":E;var b=typeof v==="function"?hy3(v,YHm,Q==null?void 0:Q.equals):hy3(v.source,v.computation,Q==null?void 0:Q.equals);var F=b[cR];F.debugName=adt(Q==null?void 0:Q.debugName,E,"[linkedSignal]");V[cR]=F;return[V,function(t){wx9(function(){YU(F);pxm(F,t);F.dirty=!1;F.lastCleanEpoch=Te},F)},
function(t){wx9(function(){YU(F);EhT()||eyo(F);pxm(F,t(F.value));F.dirty=!1;F.lastCleanEpoch=Te},F)}]};
_.j_=function(v){var Q=iH;if(Q){var V=lH;cF9(Q,function(){var E=ha(Opm());try{Ja(function(){return void v()},V)}catch(b){throw ZQ.enableContextBasedComponentStacks&&ze(b),b;
}finally{ha(E)}})}};
WR=function(v,Q){var V={};(Q===void 0||Q)&&e_(V);Q=_.La(V);try{v(V)}finally{_.La(Q)}return function(){return void fd0(V)}};
_.or=function(v){return typeof v==="function"?v():(v==null?0:v[cqb])?v.get():v};
fe0=function(v){if(iH)throw Error("nb");WR(v,!1)};
Xb=function(v,Q){v=_.La(v);try{return _.fa(Q)}finally{_.La(v)}};
ar=function(v,Q){var V=zyt(q00),E,b;var F=(b=(E=S0B)==null?void 0:E.slice())!=null?b:[];Q={componentStack:V,contextTrace:F,errorSeverity:3,featureFlags:W7Z(),tagName:Q};return[v,Q]};
Mz3=function(v,Q,V){if(Object.hasOwnProperty.call(G7Z,v)&&(v=G7Z[v],Object.hasOwnProperty.call(v,Q)&&(v=v[Q],v instanceof Array))){for(var E=null,b=!1,F=0,t=v.length;F<t;++F){var p=v[F],Z=p.contingentAttribute;if(!Z)return p.contract;E===null&&(E={});Z=Object.hasOwnProperty.call(E,Z)?E[Z]:E[Z]=V(Z);if(Z===p.requiredValue)return p.contract;Z==null&&(b=!0)}if(b)return null}Q=CMb[Q];return typeof Q==="number"?Q:null};
Rd0=function(v,Q,V){var E=null;(v=OWE[v])&&(E=v[Q]);return typeof E!=="number"&&((v=OWE["*"])&&(E=v[Q]),typeof E!=="number")?!1:!0===DFb[E][String(V).toLowerCase()]};
leS=function(v,Q){Q=Mz3(v.toLowerCase(),Q,function(){var E;(E=ZQ.handleError)==null||E.call.apply(E,[ZQ].concat(_.ui(ar(Error("Tb"),v.toLowerCase()))))});
if(Q===null)return null;var V;return(V=n0b[Q])!=null?V:null};
qHt=function(v,Q,V){if(V===null||V===void 0)return V;Q=Q.toLowerCase();v=leS(v,Q);return v===null?V:v(Q,V)};
SHm=function(){};
Ir=function(v,Q){for(;v.length>Q;)v.pop()};
zdZ=function(v){v=Array(v);Ir(v,0);return v};
HR=function(v,Q,V){if(V==null)v.removeAttribute(Q);else{var E;(E=Q.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":Q.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?v.setAttributeNS(E,Q,V):v.setAttribute(Q,V)}};
Jq9=function(v,Q,V){v[Q]=V};
xFb=function(v,Q,V){v=v.style;if(typeof V==="string")v.cssText=V;else{v.cssText="";for(var E in V)if(NXr.call(V,E)){Q=v;var b=E,F=V[E];b.indexOf("-")>=0?Q.setProperty(b,F):Q[b]=F}}};
BXE=function(v,Q,V){var E=typeof V;E==="object"||E==="function"?v[Q]=V:HR(v,Q,V)};
g0r=function(){var v=new SHm;v[m$.default]=BXE;v.style=xFb;return v};
sco=function(v,Q,V,E){(E[Q]||E[m$.default])(v,Q,V)};
jc3=function(v,Q,V){Q=new uJG(Q,V);return v.__incrementalDOMData=Q};
Qr=function(v,Q){if(v.__incrementalDOMData)return v.__incrementalDOMData;var V=v.nodeType===1?v.localName:v.nodeName,E=v.nodeType===1?v.getAttribute("key"):null;Q=jc3(v,V,v.nodeType===1?E||Q:null);if(v.nodeType===1&&(v=v.attributes,V=v.length)){E=Q._attrsArr||(Q._attrsArr=zdZ(V*2));for(var b=0,F=0;b<V;b+=1,F+=2){var t=v[b],p=t.value;E[F]=t.name;E[F+1]=p}}return Q};
Wor=function(v,Q,V,E,b){return Q==V&&E==b};
o03=function(v){for(var Q=Vr,V=Ei();V!==v;){var E=V.nextSibling;Q.removeChild(V);bk.deleted.push(V);V=E}};
Ei=function(){return F1?F1.nextSibling:Vr.firstChild};
KU=function(){F1=Ei()};
rq9=function(v,Q,V){KU();var E;a:{if(E=F1){do{var b=E,F=v,t=Q,p=Qr(b,t);if(XaS(b,F,p.nameOrCtor,t,p.key))break a}while(Q&&(E=E.nextSibling))}E=null}E||(v==="#text"?(V=ik.createTextNode(""),jc3(V,"#text",null),v=V):(E=ik,b=Vr,typeof v==="function"?E=new v:E=(b=v==="svg"?"http://www.w3.org/2000/svg":v==="math"?"http://www.w3.org/1998/Math/MathML":b==null||Qr(b).nameOrCtor==="foreignObject"?null:b.namespaceURI)?E.createElementNS(b,v):E.createElement(v),jc3(E,v,Q),v=E,V&&v.setAttribute("nonce",V)),bk.created.push(v),
E=v);V=E;if(V!==F1){if(aer.indexOf(V)>=0)for(v=Vr,Q=V.nextSibling,E=F1;E!==null&&E!==V;)b=E.nextSibling,v.insertBefore(E,Q),E=b;else Vr.insertBefore(V,F1);F1=V}};
$FQ=function(v,Q,V){rq9(v,Q,V);Vr=F1;F1=null;return Vr};
IeB=function(){o03(null);F1=Vr;Vr=Vr.parentNode};
UFr=function(v,Q){Q=Q===void 0?{}:Q;var V=Q.matches===void 0?Wor:Q.matches;return function(E,b,F){var t=bk,p=ik,Z=aer,d=LU,w=t1,A=F1,k=Vr,T=XaS;ik=E.ownerDocument;bk=new HWE(E);XaS=V;LU=[];t1=[];F1=null;var c=Vr=E.parentNode,C,R=mFG.call(E);if((C=R.nodeType===11||R.nodeType===9?R.activeElement:null)&&E.contains(C)){for(R=[];C!==c;)R.push(C),C=C.parentNode||(c?C.host:null);c=R}else c=[];aer=c;try{return v(E,b,F)}finally{E=bk,pU&&E.deleted.length>0&&pU(E.deleted),ik=p,bk=t,XaS=T,LU=d,t1=w,F1=A,Vr=k,
aer=Z}}};
vyT=function(v,Q,V,E){eg.push(sco);eg.push(v);eg.push(Q);eg.push(V);eg.push(E)};
Vu0=function(v,Q,V){var E=t1;Q=Q._attrsArr||(Q._attrsArr=zdZ(E.length));for(var b=!Q.length||!1,F=0;F<E.length;F+=2){var t=E[F];if(b)Q[F]=t;else if(Q[F]!==t)break;var p=E[F+1];if(b||Q[F+1]!==p)Q[F+1]=p,vyT(v,t,p,V)}if(F<E.length||F<Q.length){for(F=b=F;F<Q.length;F+=2)Zx[Q[F]]=Q[F+1];for(F=b;F<E.length;F+=2)b=E[F],t=E[F+1],Zx[b]!==t&&vyT(v,b,t,V),Q[F]=b,Q[F+1]=t,delete Zx[b];Ir(Q,E.length);for(var Z in Zx)vyT(v,Z,void 0,V),delete Zx[Z]}v=QTr;QTr=V=eg.length;for(Z=v;Z<V;Z+=5)(0,eg[Z])(eg[Z+1],eg[Z+
2],eg[Z+3],eg[Z+4]);QTr=v;Ir(eg,v);Ir(E,0)};
EyQ=function(v){rq9("#text",null);var Q=F1;var V=Qr(Q);if(V.text!==v){V=V.text=v;for(var E=1;E<arguments.length;E+=1)V=(0,arguments[E])(V);Q.data!==V&&(Q.data=V)}};
pEh=function(v,Q,V){if(V===!1&&b23.has(Q))HR(v,Q,null);else if(Q!=="idomKey"&&Q!=="skip"&&Q!=="skipchildren"&&Q!=="children"&&Q!=="el")if(Q.startsWith("on")){if(Q[2]!==":")throw Error("Sb`"+Q);if(V===void 0||V===null){var E;(E=ZQ.handleError)==null||E.call.apply(E,[ZQ].concat(_.ui(ar(Error("Xb`"+Q),v.tagName))));v[Q]=void 0}else{var b=Q.slice(3);E=S_();if(b==="jsaction"){V=Array.isArray(V)?V:[V];V=_.L(V);for(var F=V.next();!F.done;F=V.next()){F=F.value;if(typeof F!=="object"||F===null||typeof F.selfReg!==
"function")throw Error("$b`"+Q);F.selfReg(0,v,E?_.j_:function(){})}}else{if(typeof V!=="object"||V===null)throw Error("Yb`"+Q+"`"+typeof V);
if(typeof V.getFn!=="function")throw Error("Zb`"+Q+"`"+Object.keys(V));if(V.selfReg)V.selfReg(0,v,b,E?_.j_:function(){});
else if(E&&v["on"+b]===void 0){var t=V.getFn(0);v.addEventListener(b,t);_.j_(function(){return void v.removeEventListener(b,t)})}else if(E||!Fio.includes(b))v["on"+b]=V.getFn(0)}}}else{if(Q.startsWith("data-")&&typeof V==="string")try{V=Kio(V)}catch(p){V="zSoyz"}typeof V!=="function"||v._disposeEffects!=null?((E=Q.startsWith("prop:"))&&(Q=Q.slice(5)),ZQ.enableAttributeSanitization&&(E&&i2r(v.tagName)||(V=qHt(v.tagName,Q,V))),Q==="style"?("function"==typeof _.PU&&V instanceof _.PU&&(V=V.toString()),
LiZ(v,Q,V)):E?v[Q]=V:tut(v,Q,V)):(v._signalProps||(v._signalProps=[]),v._signalValues||(v._signalValues=[]),v._signalProps.push(Q))}};
en3=function(v,Q,V){V=(V===void 0?{}:V).isReactive;if(Q==null?0:Q.el){var E=Q.el,b;(b=E.onRender)==null||b.call(E,v);v._disposeRef||(v._disposeRef=function(){var F;(F=E.onUnmount)==null||F.call(E);delete v._disposeRef},V&&_.j_(function(){var F;
(F=v._disposeRef)==null||F.call(v)}))}};
i2r=function(v){return v.length>0&&v.includes("-")&&!Z2B.includes(v.toLowerCase())};
Puh=function(v){return PR(v)&&d7 in v};
dvm=function(v){return Puh(v)?v[d7].flattened:v};
hnZ=function(v,Q){var V=_.aE.apply(2,arguments),E;Q=(E=Q)!=null?E:{};E={};return E.type=v,E.props=Q,E.children=V,E[h1]=!0,E};
_.w7=function(v){return v.children};
A1=function(v){var Q=wET!==hnZ;wET=v?Ar0:hnZ;return Q};
_.kb=function(v){return _.rG(v)?"nodeType"in v:!1};
Tg=function(){return document.createTextNode("")};
Yb=function(v){v=document.createTextNode(String(v));v._isSignalTextNode=!0;return v};
TCG=function(v){return v!=null&&v.contentKind===yr||v instanceof IE||kE3(v)};
YS0=function(v){var Q=document.createElement("div");if(kE3(v)&&Cvb(v))_.tT(Q,Cvb(v));else if(v instanceof IE)_.tT(Q,v);else if(v!=null&&v.contentKind===yr){if(v.contentKind!==yr)throw Error("Wb");v=Hq(v.toString());_.tT(Q,v)}v=_.L(Q.childNodes);for(var V=v.next();!V.done;V=v.next())V.value._isSafeOrSanitizedHtmlNode=!0;return Q};
fU=function(v){v=typeof v;return v==="string"||v==="number"||v==="boolean"};
yrr=function(v){return v instanceof nf||xP(v)||v instanceof ZV||"function"==typeof _.PU&&v instanceof _.PU};
crr=function(v,Q){var V=v.parentElement;if(!V)return Q;V.replaceChild(Q,v);return Q};
f3B=function(v,Q){var V=v[0].parentElement;if(V)if(v[0].previousSibling||v[v.length-1].nextSibling){V.insertBefore(Q,v[0]);for(var E=v.length-1;E>=0;E--)V.removeChild(v[E])}else V.textContent="",V.appendChild(Q);return Q};
GEQ=function(v,Q){if(v[0].parentElement)for(var V=v[0].parentElement,E=Q.length,b=v.length,F=E,t=0,p=0,Z=v[b-1].nextSibling,d=null;t<b||p<F;)if(v[t]===Q[p])t++,p++;else{for(;v[b-1]===Q[F-1];)b--,F--;if(b===t)for(var w=F<E?p?Q[p-1].nextSibling:Q[F-p]:Z;p<F;){var A=Q[p++];V.insertBefore(A,w)}else if(F===p)for(;t<b;)w=v[t],d&&d.has(w)||V.removeChild(w),t++;else if(v[t]===Q[F-1]&&Q[p]===v[b-1])w=v[--b].nextSibling,V.insertBefore(Q[p++],v[t++].nextSibling),V.insertBefore(Q[--F],w),v[b]=Q[F];else{if(!d)for(d=
new Map,w=p;w<F;)d.set(Q[w],w++);w=d.get(v[t]);if(w==null)V.removeChild(v[t]),t++;else if(p<w&&w<F){A=t;for(var k=1,T=void 0;++A<b&&A<F&&(T=d.get(v[A]))!=null&&T===w+k;)k++;if(k>w-p)for(A=v[t];p<w;)V.insertBefore(Q[p++],A);else V.replaceChild(Q[p++],v[t++])}else t++}}return Q};
Muh=function(v){if(Array.isArray(v)){if(v.length>1)throw Error("jc`"+v.length+"`"+v.map(CuB).join(", "));v=v[0]}if(v==null)return null;if(!(v instanceof _.bi)){var Q,V;if((Q=window)==null?0:(V=Q.trustedTypes)==null?0:V.isScript(v))throw Error("ic");if(String(v).trim().length===0)return null;throw Error("kc`"+CuB(v));}return v};
O2E=function(v,Q){Q=Muh(Q);Q!==null&&_.ii(v,Q)};
Dv3=function(v){if(Array.isArray(v)){if(v.length>1)throw Error("lc`"+v.length+"`"+v.map(CuB).join(", "));v=v[0]}if(v==null)return null;if(!(v instanceof ZV)){if(String(v).trim().length===0)return null;throw Error("mc`"+CuB(v));}return v};
Rn3=function(v,Q){Q=Dv3(Q);Q!==null&&(v.textContent=AT9(Q))};
CuB=function(v){return"("+typeof v+") "+(v!=null&&typeof v==="object"?v.constructor.name:typeof v)+" "+v};
nyB=function(){};
MP=function(v,Q){Q=Q===void 0?{}:Q;var V=l3Q(),E=!0,b,F=!!ZQ.legacyTriggerSoyRendererEvents;F&&(b=zBE());_.sX(function(){var t=!E&&Q.isControlFlowComponent&&F,p=t?V[d7].flattened[0].parentElement:void 0;E=!1;_.Gg.setUp();Q.isControlFlowComponent&&xU++;var Z=V[0],d=V[d7].flattened,w=A1(!0);try{var A=v(),k=qSB(Z,A,V);Array.isArray(k)||(V[d7].flattened=[k]);var T=V[d7].flattened;if(d&&(!Array.isArray(d)||d.length!==0)){var c=Array.isArray(d)?d[0]:d,C=c[CU],R=c._disposeEffects;c._disposeEffects=void 0;
c=Array.isArray(T)?T[0]:T;c[CU]=C;c[CU]&&(c[CU].numNodes=c===T?1:T.length);c._disposeEffects=R}V[0]=k;Q.isControlFlowComponent&&gb(!1)}catch(l){throw Q.isControlFlowComponent&&gb(!0),l;}finally{A1(w),_.Gg.tearDown()}t&&(t=b,t!=null||(t=_.AF9(document).getAppContext()),t.get(SSr).JSC$29534_getEventTarget().dispatchEvent(new znE(JrB,p,yr)))},Q.debugName);
return V};
qSB=function(v,Q,V){for(;typeof Q==="function";)Q=Q();if(Q!=null&&Q[h1]){var E,b,F;(F=ZQ.handleError)==null||F.call.apply(F,[ZQ].concat(_.ui(ar(Error("nc`"+((E=Q.type)==null?void 0:E.TAG_NAME)),(b=Q.type)==null?void 0:b.TAG_NAME))))}if(v==null)return Q==null?Tg():fU(Q)?Yb(Q):yrr(Q)?Yb(Q.toString()):_.kb(Q)?Q:Q.length===0?Tg():NCE(Q,V);if(_.kb(v)){if(Q==null)return crr(v,Tg());if(fU(Q))return xvZ(v,Q);if(yrr(Q))return xvZ(v,Q.toString());if(_.kb(Q))return crr(v,Q);if(Q.length===0)return crr(v,Tg());
Q=NCE(Q,V);GEQ([v],V[d7].flattened);return Q}v=Oi(v);if(Q==null)return f3B(v,Tg());if(fU(Q))return f3B(v,Yb(Q));if(yrr(Q))return f3B(v,Yb(Q.toString()));if(_.kb(Q))return GEQ(v,[Q])[0];if(Q.length===0)return f3B(v,Tg());Q=NCE(Q,V);GEQ(v,V[d7].flattened);return Q};
xvZ=function(v,Q){v.nodeType===Node.TEXT_NODE?v.textContent!==String(Q)&&(v.textContent=String(Q)):v=crr(v,Yb(Q));return v};
Oi=function(v,Q,V){return BCt(v,Q!=null?Q:[],V===void 0?!1:V)};
NCE=function(v,Q){var V=Oi(v,void 0,!0);if(V.length===0)return Tg();Q[d7].flattened=V;return v};
BCt=function(v,Q,V,E,b){Q=Q===void 0?[]:Q;V=V===void 0?!1:V;b=b===void 0?-1:b;if(v==null)return Q;if(v instanceof Dx){var F=v.render();return BCt(F,Q,V,E,b)}if(_.kb(Q)&&Q.nodeType===Node.ELEMENT_NODE)switch(Q.tagName){case "SCRIPT":O2E(Q,v);return;case "STYLE":Rn3(Q,v);return}fU(v)&&(v=Yb(v),E&&V&&(E[b]=v));if(TCG(v)){V=YS0(v);V=Array.from(V.childNodes);V=_.L(V);for(F=V.next();!F.done;F=V.next())gyt(Q,F.value);return Q}yrr(v)&&(v=Yb(v.toString()),E&&V&&(E[b]=v));if(_.kb(v))return gyt(Q,v);if(Array.isArray(v)){for(F=
0;F<v.length;F++)BCt(v[F],Q,V,v,F);return Q}if(typeof v==="function"){F=MP(function(){var p=v();return p!=null&&!fU(p)&&TCG(p)?(p=YS0(p),Array.from(p.childNodes)):p},{debugName:"qmF2ne",
debugFn:v})[0];if(Array.isArray(F)){V=_.L(F);for(F=V.next();!F.done;F=V.next())gyt(Q,F.value);return Q}E&&V&&(E[b]=F);return gyt(Q,F)}if(v!=null&&v[h1]){E=v;b=A1(!0);var t=wET;try{F=t.apply(null,[E.type,E.props].concat(_.ui(E.children)))}finally{A1(b)}return BCt(F,Q,V)}(t=ZQ.handleError)==null||t.call.apply(t,[ZQ].concat(_.ui(ar(Error("oc")))));return Q};
l3Q=function(v){var Q={};Q=Object.assign([],(Q[d7]={flattened:[]},Q));if(!v)return Q;Q[0]=NCE(v,Q);return Q};
gyt=function(v,Q){Array.isArray(v)?v.push(Q):v.appendChild(Q);return v};
RS=function(v){if(!ZQ.enableLazyTsx)return v;if(Array.isArray(v)){for(var Q=0;Q<v.length;Q++)v[Q]=RS(v[Q]);return v}return v instanceof Dx?(v=v.render(),RS(v)):v};
u29=function(v,Q){var V,E,b=Ry3(v),F=function(T){E=T;T=A1(!0);var c=ha(nU);oF9("render",b);try{V=RS(v(Q))}finally{Xrh("render",b),ha(c),A1(T)}};
F=ZQ.enableContextPerComponent?$Lh(F,b):WR(F,ZQ.alwaysTrackContexts||!!iH);HOG(E);if(!Q.renderedFromIdom){var t=_.La(E);try{return sT0(v,Q,V),V}finally{_.La(t)}}!Puh(V)&&Array.isArray(V)&&(V=l3Q(V));var p=dvm(V);t=Array.isArray(p)?p[0]:p;var Z=!1;if(t){var d,w=(d=Q==null?void 0:Q.idomKey)!=null?d:v;d=p!==t;t._disposeEffects=F;var A=t[CU]||{},k=Puh(V)?V:A.sourceDynamicRange;Object.assign(A,{key:w,numNodes:d?p.length:1,context:E,higherOrder:!!t[CU],sourceDynamicRange:k});t[CU]=A}else Z=!0;(function(){var T=
_.La(E);try{sT0(v,Q,p)}finally{_.La(T)}})();
Z&&F();return V};
jTS=function(v){var Q={},V;for(V in v)Q={prev$jscomp$24:void 0,next$jscomp$33:void 0},Q.prev$jscomp$24=lk[V],Q.next$jscomp$33=v[V],lk[V]=function(E){return function(){var b=_.aE.apply(0,arguments);E.prev$jscomp$24.apply(null,_.ui(b));E.next$jscomp$33.apply(null,_.ui(b))}}(Q)};
Wi9=function(){if(S_())throw Error("pc");return qP};
oyr=function(v,Q){if(!v.__unmounted&&Q){v.__unmounted=!0;try{v.didUnmount()}catch(b){var V,E;(E=ZQ.handleError)==null||E.call.apply(E,[ZQ].concat(_.ui(ar(b,(V=v.__type)==null?void 0:V.TAG_NAME))))}lk.didUnmount(v);v.el=null;Q.__instance&&delete Q.__instance}};
a3B=function(v,Q,V){v._signalProps!=null&&v._disposeEffects==null&&((V===void 0?0:V)?v._disposeEffects=WR(function(){return void XE0(v,Q)},ZQ.alwaysTrackContexts||!!iH):XE0(v,Q))};
XE0=function(v,Q){_.sX(function(){for(var V=v._signalProps,E=v._signalValues,b=0;b<V.length;b++){var F=V[b],t=Q[F]();E[b]!==t&&(E[b]=t,pEh(v,F,t))}},"e3YVbb")};
rr9=function(v,Q,V){var E,b=[];v._disposeEffects=WR(function(){_.sX(function(){var F=V();if(F===null||F===void 0)F="";if(fU(F)||F===null)E!=null||(E=document.createTextNode("")),E.parentNode!==v&&(E._isSignalTextNode=!0,v.insertBefore(E,Q)),E.textContent=String(F);else if(TCG(F)){for(var t=b.length>0?b[b.length-1].nextSibling:Q,p=_.L(b),Z=p.next();!Z.done;Z=p.next())v.removeChild(Z.value);F=YS0(F);b=Array.from(F.childNodes);F=_.L(b);for(p=F.next();!p.done;p=F.next())v.insertBefore(p.value,t)}else throw Z=
(p=(t=lH)==null?void 0:t.name)!=null?p:"unknown",Error("ec`"+Z+"`"+typeof F);},"VvDgC")},ZQ.alwaysTrackContexts||!!iH)};
H2G=function(v,Q){var V=_.aE.apply(2,arguments);Q!=null||(Q={});return!ZQ.enableLazyTsx||lH!=null&&!S_()?$vt(v,Q,V):new I3G(v,Q,V)};
$vt=function(v,Q,V){if(v===_.w7)return V;if(typeof v==="function")return lH&&!S_()&&(Q.renderedFromIdom=!0),nhZ(v,function(){var F=mvo(v,Q,V);if(F)return F;V.length>0&&(Q.children=V.length===1?V[0]:V);if(v.componentType===qA){var t;$Lh(function(){var p=Q;if(v.componentType!==qA)t=!1;else{p||(p={});var Z=new Sg(p,v),d=ha(nU);try{var w=Z.render(p)}finally{ha(d)}w instanceof HTMLElement?(w.__instance=Z,Z.el=w,Z.__type=v,v.TAG_NAME=w.tagName.toLowerCase(),lk.didPatch(Z),t=w):t=w}},v.name);
if(t)return t}return u29(v,Q)},Q.debugInstance);
var E=UvQ(v,Q),b;for(b in Q)pEh(E,b,Q[b]);a3B(E,Q);Oi(V,E);en3(E,Q,{isReactive:!0});vI0(E,Q);return E};
UvQ=function(v,Q){v=(QxT.has(v.toLowerCase())?0:VHb.has(v.startsWith("svg:")?v.replace("svg:",""):v))?document.createElementNS("http://www.w3.org/2000/svg",v.startsWith("svg:")?v.replace("svg:",""):v):EIB(v,Q)||document.createElement(v);v[bCm]=!0;return v};
Fb0=function(v){if(v){var Q;(Q=v._disposeRef)==null||Q.call(v);var V;(V=v._disposeEffects)==null||V.call(v);v.__instance&&v.__instance instanceof zg&&(Q=v.__instance,oyr(Q,v),Q instanceof Sg&&Q.disposeEffects());for(Q=0;Q<v.childNodes.length;Q++)Fb0(v.childNodes[Q])}};
iCG=function(v){KbB.push(v)===1&&requestAnimationFrame(function(){setTimeout(function(){var Q=[].concat(_.ui(KbB));KbB=[];Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;try{for(var E=0;E<V.length;E++)Fb0(V[E])}catch(b){E=V=void 0,(E=(V=ZQ).handleError)==null||E.call.apply(E,[V].concat(_.ui(ar(b))))}}})})};
_.P=function(v,Q){return wET.apply(null,[v,Q].concat(_.ui(_.aE.apply(2,arguments))))};
_.J1=function(v){return v};
_.NP=function(v){return{isDefault:!0,children:v.children}};
_.h=function(v){var Q=v.cond;if(Q===void 0)return v.else&&v.else();var V=_.Rr(function(){return!!Q()},void 0,"JHVi8"),E=function(){var b=Q();
if(!b){var F;(F=ZQ.handleError)==null||F.call.apply(F,[ZQ].concat(_.ui(ar(LbB.nonNullableCondIsNull()))))}return b};
return MP(function(){var b=V(),F;WR(function(){var t=ha(nU);try{F=RS(b?v.then(E):v.else&&v.else())}finally{ha(t)}},!0);
return F},{debugName:v.debugInstance,
debugFn:v.then,isControlFlowComponent:!0})};
tHr=function(v){return _.h(v)};
_.xb=function(v){return v.keyBy==="INDEX"?pj9(v):eaZ(v)};
ZCB=function(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){var V=void 0;(V=Q.value)==null||V()}};
eaZ=function(v){var Q=v.keyBy===void 0||v.keyBy==="REFERENCE",V=Q?function(w){return w}:v.keyBy,E=[],b=[],F=[],t=[],p=[],Z=[],d=!0;
_.j_(function(){ZCB(t)});
return MP(function(){var w=PYZ(v),A=w.length;if(A===0){if(E.length===0&&!d)return F;ZCB(t);E=w;b=[];for(w=0;w<E.length;w++)b.push(V(E[w]));F=[];t=[];p=[];Z=[];v.fallback&&(t[0]=do0(function(){F[0]=RS(v.fallback())}));
d=!1;return F}for(var k=new haB,T=E.length-1;T>=0;T--)k.push(b[T],T);T=Array(A);for(var c=Array(A),C=Array(A),R=Array(A),l=Array(Q?0:A),S={i$jscomp$450:0};S.i$jscomp$450<A;S={i$jscomp$450:S.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},S.i$jscomp$450++){S.item$jscomp$104=w[S.i$jscomp$450];S.key$jscomp$563=V(S.item$jscomp$104);var a=k.pop(S.key$jscomp$563);a!=null?(C[S.i$jscomp$450]=F[a],c[S.i$jscomp$450]=b[a],T[S.i$jscomp$450]=t[a],R[S.i$jscomp$450]=p[a],Q||(l[S.i$jscomp$450]=Z[a]),na(function(g){return function(){R[g.i$jscomp$450](g.i$jscomp$450);
if(!Q)l[g.i$jscomp$450](g.item$jscomp$104)}}(S)),delete t[a]):T[S.i$jscomp$450]=do0(function(g){return function(){var u=_.L(_.Ge(g.i$jscomp$450,void 0,"Fqk1zd")),r=u.next().value;
u=u.next().value;R[g.i$jscomp$450]=u;c[g.i$jscomp$450]=g.key$jscomp$563;if(Q)C[g.i$jscomp$450]=RS(v.children(g.item$jscomp$104,r));else{var v9=_.L(_.Ge(g.item$jscomp$104,void 0,"GBj5de"));u=v9.next().value;v9=v9.next().value;l[g.i$jscomp$450]=v9;C[g.i$jscomp$450]=RS(v.children(u,r))}}}(S))}ZCB(t);
E=w;b=c;F=C;t=T;p=R;Z=l;d=!1;return C},{debugName:v.debugInstance,
debugFn:v.each,isControlFlowComponent:!0})};
pj9=function(v){var Q=[],V=[],E=[],b=[],F=!1;_.j_(function(){for(var t=_.L(b),p=t.next();!p.done;p=t.next())p=p.value,p()});
return MP(function(){var t=PYZ(v);F&&t.length>0&&(b.pop()(),Q.pop(),F=!1);for(var p=Array(t.length),Z={i$jscomp$451:0};Z.i$jscomp$451<t.length;Z={i$jscomp$451:Z.i$jscomp$451},Z.i$jscomp$451++)if(Z.i$jscomp$451<Q.length)Q[Z.i$jscomp$451]!==t[Z.i$jscomp$451]&&(na(function(w){return function(){return void V[w.i$jscomp$451](t[w.i$jscomp$451])}}(Z)),Q[Z.i$jscomp$451]=t[Z.i$jscomp$451]),p[Z.i$jscomp$451]=E[Z.i$jscomp$451];
else{var d=do0(function(w){return function(){Q[w.i$jscomp$451]=t[w.i$jscomp$451];var A=_.L(_.Ge(t[w.i$jscomp$451],void 0,"JMMLmd")),k=A.next().value;A=A.next().value;V[w.i$jscomp$451]=A;p[w.i$jscomp$451]=RS(v.children(k,w.i$jscomp$451))}}(Z));
b[Z.i$jscomp$451]=d}for(;Q.length>t.length;)Q.pop(),b.pop()(),V.pop();t.length===0&&!F&&v.fallback&&(Z=do0(function(){p[0]=RS(v.fallback())}),b[0]=Z,F=!0);
return E=p},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
PYZ=function(v){v=v.each();return Array.isArray(v)?v:Array.from(v)};
do0=function(v){var Q=iH;return WR(function(V){var E=ha(nU);try{V.parent=Q,v(V)}finally{ha(E)}},!1)};
_.BU=function(v){var Q=wjT(v),V=_.Rr(function(){return AYb(Q)},void 0,"F1PF4");
return MP(function(){var E=V(),b;WR(function(){var F=ha(nU);try{b=RS(E())}finally{ha(F)}});
return b},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
wjT=function(v){v=v.children;return Array.isArray(v)?v:[v]};
kiB=function(v){var Q=v.props;v=v.getChildren()[0];return Q.when?{when:Q.when,children:v}:{isDefault:!0,children:v}};
AYb=function(v){var Q=function(){return null};
v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V!=null&&V[h1]&&(V=V.type===_.NP?{isDefault:!0,children:V.children[0]}:{when:V.props.when,children:V.children[0]}),V instanceof Dx&&(V=kiB(V)),V.isDefault)Q=V.children;else if(V.when())return V.children;return Q};
YnT=function(v){var Q=null,V,E={get value(){var F,t;(t=(F=b).validateGetValue)==null||t.call(F);return b.__value},set value(F){var t,p;(p=(t=b).validateSetValue)==null||p.call(t,F);b.__value=F;b.__hasBeenSet=!0}},b=(E.__value=null,E.__hasBeenSet=!1,E.__hasErrored=!1,E.onRender=function(F){if(V&&F!==V){V._disposeRef=void 0;var t;(t=Q)==null||t()}V=F;Q=v(F)||null},E.onUnmount=function(){var F;
(F=Q)==null||F();Q=b.value=null},E[_.TiQ]=!0,E);
return b};
g7=function(v){return typeof v==="symbol"};
cYm=function(v){var Q=Wi9();if(Q==null)throw _.yYt.PRIMITIVE_INVALID_HOOK_CALL();var V=Q.hookCounter++;Q.hooks||(Q.hooks=[]);var E=Q.hooks;E[V]||(E[V]={key:v,host:Q});if(v!==E[V].key){if(Q.__type){var b;v=(b=Q.__type)==null?void 0:b.name}else v=Q instanceof Sg?Ry3(Q.functionComponent):"<"+Q.el.tagName.toLowerCase()+">";throw _.yYt.OUT_OF_ORDER_HOOK_CALL(v);}return E[V]};
fa3=function(v,Q){return!v||v.length!==(Q==null?void 0:Q.length)||v.some(function(V,E){return V!==Q[E]})};
GiT=function(v,Q){var V=cYm("onChange"),E=Wi9();fa3(V.deps,Q)&&(V.deps=Q,V.pendingEffect=v,E.__syncEffects||(E.__syncEffects=[]),E.__syncEffects.push(V))};
_.si=function(v,Q,V){V!=null||(V={});V=V.appContext;var E=!!ZQ.legacyTriggerSoyRendererEvents;_.Gg.setUp();try{var b=CY3(v,Q,V);E&&(Q=V,Q!=null||(Q=_.AF9(document).getAppContext()),Q.get(SSr).JSC$29534_getEventTarget().dispatchEvent(new znE(MH9,v,yr)));_.Gg.log(v);return b}finally{_.Gg.tearDown()}};
CY3=function(v,Q,V){var E=Ja(function(){var b=ha(nU);try{return WR(function(){var F=_.AF9(_.W4(v)),t;var p=Sfo({rootElement:{value:v},appContext:V||(F==null?void 0:(t=F.getOptionalAppContext)==null?void 0:t.call(F)),dispatcher:F});F=_.La(p);p=A1(!0);xU++;try{Oi(Q(),v),gb(!1)}catch(Z){throw gb(!0),Z;}finally{A1(p),_.La(F)}},!1)}catch(F){throw ZQ.enableContextBasedComponentStacks&&ze(F),F;
}finally{ha(b)}});
v[OCT]=!0;return function(){v.textContent="";E();v[OCT]=!1}};
_.uk=function(v){if(dFo(db)){var Q;(Q=ZQ.handleError)==null||Q.call.apply(Q,[ZQ].concat(_.ui(ar(Error("dc")))))}var V=iH,E=lH;gh9({onInitType:xRS,run:function(){if(V&&!V.isDisposed){var b=_.La(V);try{Ja(function(){return void v()},E)}catch(F){throw ZQ.enableContextBasedComponentStacks&&ze(F),F;
}finally{_.La(b)}}}})};
DoQ=function(v,Q){GiT(function(){return _.fa(v)},Q)};
_.jg=function(v){S_()?_.uk(function(){_.fa(v)}):GiT(function(){return _.fa(v)},[])};
nIZ=function(v){var Q=[].concat(_.ui(v));v.length=0;v=_.L(Q);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;RaS(Q);var V=Q.pendingEffect;Q.pendingEffect=null;if(V=V==null?void 0:V())Q.pendingCleanup=V}};
RaS=function(v){var Q=v.pendingCleanup;v.pendingCleanup=null;Q==null||Q()};
laS=function(v,Q){if(S_())return v();var V=cYm("useMemoInternal");fa3(V.deps,Q)&&(V.deps=Q,V.value=v());return V.value};
qn3=function(v,Q){return laS(v,Q)};
WU=function(v){return laS(v,[])};
Sno=function(v){return WU(function(){return{value:v}})};
_.oS=function(v,Q){if(!v)return null;v=Object.keys(v);v=_.L(v);for(var V=v.next();!V.done;V=v.next()){V=V.value;var E=V.toLowerCase();if(E.indexOf(Q,E.length-Q.length)>-1)return V}return null};
_.aS=function(){var v=arguments,Q=_.X1;v.length>1?Q[v[0]]=v[1]:v.length===1&&Object.assign(Q,v[0])};
_.r7=function(v,Q){return v in _.X1?_.X1[v]:Q};
_.mX=function(v,Q){return!!_.r7(v,Q)};
za3=function(v){var Q=_.X1.EXPERIMENT_FLAGS;return Q?Q[v]:void 0};
NiS=function(v){JY0.forEach(function(Q){return Q(v)})};
_.v5=function(v){return v&&window.yterr?function(){try{return v.apply(this,arguments)}catch(Q){_.Ui(Q)}}:v};
_.Ui=function(v){var Q=_.Q9("yt.logging.errors.log");Q?Q(v,"ERROR",void 0,void 0,void 0,void 0,void 0):(Q=_.r7("ERRORS",[]),Q.push([v,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.aS("ERRORS",Q));NiS(v)};
_.V9=function(v,Q,V,E,b){var F=_.Q9("yt.logging.errors.log");F?F(v,"WARNING",Q,V,E,void 0,b):(F=_.r7("ERRORS",[]),F.push([v,"WARNING",Q,V,E,void 0,b]),_.aS("ERRORS",F))};
BiG=function(v,Q){Q=v.split(Q);for(var V={},E=0,b=Q.length;E<b;E++){var F=Q[E].split("=");if(F.length===1&&F[0]||F.length===2)try{var t=xoS(F[0]||""),p=xoS(F[1]||"");if(t in V){var Z=V[t];Array.isArray(Z)?_.oh(Z,p):V[t]=[Z,p]}else V[t]=p}catch(k){var d=k,w=F[0],A=String(BiG);d.args=[{key:w,value:F[1],query:v,method:gIQ===A?"unchanged":A}];sxG.hasOwnProperty(w)||_.V9(d)}}return V};
uym=function(v){var Q=[];_.gI.forEach(v,function(V,E){var b=_.EG(E);V=Array.isArray(V)?V:[V];_.bv(V,function(F){F==""?Q.push(b):Q.push(b+"="+_.EG(F))})});
return Q.join("&")};
_.FF=function(v){v.charAt(0)==="?"&&(v=v.substring(1));return BiG(v,"&")};
_.Ki=function(v){return v.indexOf("?")!==-1?(v=(v||"").split("#")[0],v=v.split("?",2),_.FF(v.length>1?v[1]:v[0])):{}};
_.iv=function(v,Q){return jxS(v,Q||{},!0)};
WbT=function(v,Q){return jxS(v,Q||{},!1)};
jxS=function(v,Q,V){var E=v.split("#",2);v=E[0];E=E.length>1?"#"+E[1]:"";var b=v.split("?",2);v=b[0];b=_.FF(b[1]||"");for(var F in Q)if(V||!_.gI.containsKey(b,F))b[F]=Q[F];return _.Li(v,b)+E};
Z9=function(v){if(!Q)var Q=window.location.href;var V=_.tt(v)[1]||null,E=_.pi(v);return V&&E?ew(v,Q):E?_.pi(Q)===E&&(Number(_.tt(Q)[4]||null)||null)===(Number(_.tt(v)[4]||null)||null):!0};
_.Xjb=function(v){v=oIb(v);return v===null?!1:v[0]==="com"&&v[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
oIb=function(v){v=_.pi(v);return v!==null?v.split(".").reverse():null};
xoS=function(v){return v&&v.match(aab)?v:P5(v)};
_.d$=function(v){return new rYG(v)};
_.ht=function(){$oE||($oE=new IaQ);return $oE};
moh=function(){var v=HCQ;return function(){var Q=_.ht();if(!Q.resolve(_.d$(v))){var V={};Q.addProvider((V.provide=v,V.useClass=v,V[w$]=void 0,V))}return Q.resolve(v)}};
v7Z=function(v){var Q=_.At,V,E;_.e(function(b){V=_.ht();return(E=V.resolve(_.d$(Q)))?(v(E),b.return(Promise.resolve(E))):b.return(V.resolve(new Uom(Q)).then(function(F){v(F);return F}))})};
_.Y=function(v){v=kd(v);return typeof v==="string"&&v==="false"?!1:!!v};
_.T_=function(v,Q){v=kd(v);return v===void 0&&Q!==void 0?Q:Number(v||0)};
Q$Q=function(v){v=kd(v);return Array.isArray(v)?_.sY(v,function(Q){return Number(Q||0)}):[Number(v||0)]};
_.y9=function(v){v=kd(v);return v!==void 0?String(v):""};
_.c5=function(v){v=kd(v);return Array.isArray(v)?_.sY(v,function(Q){return String(Q||"")}):[String(v||"")]};
VPZ=function(){return _.r7("EXPERIMENTS_TOKEN","")};
kd=function(v){return _.r7("EXPERIMENT_FLAGS",{})[v]};
E7h=function(){for(var v=[],Q=_.r7("EXPERIMENTS_FORCED_FLAGS",{}),V=_.L(Object.keys(Q)),E=V.next();!E.done;E=V.next())E=E.value,v.push({key:E,value:String(Q[E])});V=_.r7("EXPERIMENT_FLAGS",{});E=_.L(Object.keys(V));for(var b=E.next();!b.done;b=E.next())b=b.value,b.startsWith("force_")&&Q[b]===void 0&&v.push({key:b,value:String(V[b])});return v};
FLZ=function(){if(!btS)return null;var v=btS();return"open"in v?v:null};
_.KL9=function(v){switch(_.fi(v)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.fi=function(v){return v&&"status"in v?v.status:-1};
_.G_=function(v,Q){typeof v==="function"&&(v=_.v5(v));return window.setTimeout(v,Q)};
_.Ci=function(v,Q){typeof v==="function"&&(v=_.v5(v));return window.setInterval(v,Q)};
_.MY=function(v){window.clearTimeout(v)};
LLQ=function(v){v=_.Ki(v);for(var Q=_.L(itb),V=Q.next();!V.done;V=Q.next())if(v[V.value]!==void 0)return!0;return!1};
e9E=function(v,Q,V,E,b,F,t,p,Z){V=V===void 0?"GET":V;E=E===void 0?"":E;p=p===void 0?!1:p;var d=FLZ();if(!d)return null;var w=function(){(d&&"readyState"in d?d.readyState:0)===4&&Q&&_.v5(Q)(d)};
"onloadend"in d?d.addEventListener("loadend",w,!1):d.onreadystatechange=w;_.Y("debug_forward_web_query_parameters")&&(v=tPZ(v,window.location.search));d.open(V,v,!0);F&&(d.responseType=F);t&&(d.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(E instanceof FormData));if(b=ppS(v,b))for(var A in b)d.setRequestHeader(A,b[A]),"content-type"===A.toLowerCase()&&(V=!1);V&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");Z&&"onprogress"in d&&(d.onprogress=function(){Z(d.responseText)});
if(p&&"setAttributionReporting"in XMLHttpRequest.prototype){v={eventSourceEligible:!0,triggerEligible:!1};try{d.setAttributionReporting(v)}catch(k){_.V9(k)}}d.send(E);return d};
ppS=function(v,Q){Q=Q===void 0?{}:Q;var V=Z9(v),E=_.r7("INNERTUBE_CLIENT_NAME"),b=_.Y("web_ajax_ignore_global_headers_if_set"),F;for(F in Zt9){var t=_.r7(Zt9[F]),p=F==="X-Goog-AuthUser"||F==="X-Goog-PageId";F!=="X-Goog-Visitor-Id"||t||(t=_.r7("VISITOR_DATA"));var Z;if(!(Z=!t)){if(!(Z=V||(_.pi(v)?!1:!0))){Z=v;var d;if(d=_.Y("add_auth_headers_to_remarketing_google_dot_com_ping")&&F==="Authorization"&&(E==="TVHTML5"||E==="TVHTML5_UNPLUGGED"||E==="TVHTML5_SIMPLY"))d=oIb(Z),d=d===null?!1:d[1]==="google"?
!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1;d&&(Z=_.OG(Z)||"",Z=Z.split("/"),Z="/"+(Z.length>1?Z[1]:""),d=Z==="/pagead");Z=d?!0:!1}Z=!Z}Z||b&&Q[F]!==void 0||E==="TVHTML5_UNPLUGGED"&&p||(Q[F]=t)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];if(V||!_.pi(v))Q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!_.pi(v)){try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}w&&(Q["X-YouTube-Time-Zone"]=
w)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&_.pi(v)||(Q["X-YouTube-Ad-Signals"]=uym(PIh()));return Q};
_.dpo=function(v,Q){var V=_.pi(v);_.Y("debug_handle_relative_url_for_query_forward_killswitch")||!V&&Z9(v)&&(V=document.location.hostname);var E=_.OG(v);E=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&E&&E.startsWith("/api/");if(!V||E)return v;var b=_.FF(Q),F={};_.bv(itb,function(t){b[t]&&(F[t]=b[t])});
return WbT(v,F)};
h9Q=function(v,Q){Q.method="POST";Q.postParams||(Q.postParams={});return _.D9(v,Q)};
wpt=function(v,Q){var V=_.r7("XSRF_FIELD_NAME"),E;Q.headers&&(E=Q.headers["Content-Type"]);return!Q.excludeXsrf&&(!_.pi(v)||Q.withCredentials||_.pi(v)===document.location.hostname)&&Q.method==="POST"&&(!E||E==="application/x-www-form-urlencoded")&&!(Q.postParams&&Q.postParams[V])};
_.D9=function(v,Q){var V=Q.format||"JSON";v=Ay9(v,Q);var E=k2B(v,Q),b=!1,F=TDt(v,function(Z){if(!b){b=!0;p&&_.MY(p);var d=_.KL9(Z),w=null,A=400<=Z.status&&Z.status<500,k=500<=Z.status&&Z.status<600;if(d||A||k)w=Y2S(v,V,Z,Q.convertToSafeHtml);d&&(d=yyb(V,Z,w));w=w||{};A=Q.context||_.bb;d?Q.onSuccess&&Q.onSuccess.call(A,Z,w):Q.onError&&Q.onError.call(A,Z,w);Q.onFinish&&Q.onFinish.call(A,Z,w)}},Q.method,E,Q.headers,Q.responseType,Q.withCredentials,!1,Q.onProgress);
E=Q.timeout||0;if(Q.onTimeout&&E>0){var t=Q.onTimeout;var p=_.G_(function(){b||(b=!0,F.abort(),_.MY(p),t.call(Q.context||_.bb,F))},E)}return F};
Ay9=function(v,Q){Q.includeDomain&&(v=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+v);var V=_.r7("XSRF_FIELD_NAME");if(Q=Q.urlParams)Q[V]&&delete Q[V],v=_.iv(v,Q);return v};
k2B=function(v,Q){var V=_.r7("XSRF_FIELD_NAME"),E=_.r7("XSRF_TOKEN"),b=Q.postBody||"",F=Q.postParams;wpt(v,Q)&&(F||(F={}),F[V]=E);(_.Y("ajax_parse_query_data_only_when_filled")&&F&&Object.keys(F).length>0||F)&&typeof b==="string"&&(b=_.FF(b),_.gI.extend(b,F),b=Q.postBodyFormat&&Q.postBodyFormat==="JSON"?JSON.stringify(b):_.Rm(b));F=b||F&&!_.gI.isEmpty(F);!cy9&&F&&Q.method!=="POST"&&(cy9=!0,_.Ui(Error("Jc")));return b};
Y2S=function(v,Q,V,E){var b=null;switch(Q){case "JSON":try{var F=V.responseText}catch(t){throw E=Error("Kc"),E.params=v,_.V9(E),t;}v=V.getResponseHeader("Content-Type")||"";F&&v.indexOf("json")>=0&&(F.substring(0,5)===")]}'\n"&&(F=F.substring(5)),b=JSON.parse(F));break;case "XML":if(v=(v=V.responseXML)?fGS(v):null)b={},_.bv(v.getElementsByTagName("*"),function(t){b[t.tagName]=G2t(t)})}E&&CI9(b);
return b};
CI9=function(v){if(_.rG(v))for(var Q in v)Q==="html_content"||ib(Q,"_html")?v[Q]=Hq(v[Q]):CI9(v[Q])};
yyb=function(v,Q,V){if(Q&&Q.status===204)return!0;switch(v){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}};
fGS=function(v){return v?(v=("responseXML"in v?v.responseXML:v).getElementsByTagName("root"))&&v.length>0?v[0]:null:null};
G2t=function(v){var Q="";_.bv(v.childNodes,function(V){Q+=V.nodeValue});
return Q};
MPB=function(v){if(v.name==="JavaException")return!0;v=v.stack;return v.includes("chrome://")||v.includes("-extension://")||v.includes("webkit-masked-url://")};
Otm=function(v){if(!v.stack)return!0;var Q=!v.stack.includes("\n");return Q&&v.stack.includes("ErrorType: ")||Q&&v.stack.includes("Anonymous function (Unknown script")||v.stack.toLowerCase()==="not available"||v.fileName==="user-script"||v.fileName.startsWith("user-script:")?!0:!1};
_.ni=function(v){_.J5.call(this);this.JSC$10598_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!v};
R9E=function(v,Q){var V=v.length,E=0,b=function(){return v.charCodeAt(E++)};
do{var F=Dp0(b);if(F===Infinity)break;var t=F>>3;switch(F&7){case 0:F=Dp0(b);if(t===Q)return F;break;case 1:if(t===Q)return;E+=8;break;case 2:F=Dp0(b);if(t===Q)return v.substr(E,F);E+=F;break;case 5:if(t===Q)return;E+=4;break;default:return}}while(E<V)};
Dp0=function(v){var Q=v(),V=Q&127;if(Q<128)return V;Q=v();V|=(Q&127)<<7;if(Q<128)return V;Q=v();V|=(Q&127)<<14;if(Q<128)return V;Q=v();return Q<128?V|(Q&127)<<21:Infinity};
lGB=function(v,Q,V,E){if(v)if(Array.isArray(v)){var b=E;for(E=0;E<v.length&&!(v[E]&&(b+=n7S(E,v[E],Q,V),b>500));E++);E=b}else if(typeof v==="object")for(b in v){if(v[b]){var F=b;var t=v[b],p=Q,Z=V;F=typeof t!=="string"||F!=="clickTrackingParams"&&F!=="trackingParams"?0:(t=R9E(atob(t.replace(/-/g,"+").replace(/_/g,"/")),2))?n7S(F+".ve",t,p,Z):0;E+=F;E+=n7S(b,v[b],Q,V);if(E>500)break}}else V[Q]=lv(v),E+=V[Q].length;else V[Q]=lv(v),E+=V[Q].length;return E};
n7S=function(v,Q,V,E){V+="."+v;v=lv(Q);E[V]=v;return V.length+v.length};
lv=function(v){try{return(typeof v==="string"?v:String(JSON.stringify(v))).substr(0,500)}catch(Q){return"unable to serialize "+typeof v+" ("+Q.message+")"}};
q2h=function(v){switch(v){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.Sw=function(v,Q,V,E,b){_.qY.set(v,Q,{maxAge:V,path:"/",domain:E===void 0?"youtube.com":E,secure:b===void 0?!1:b})};
_.S20=function(v,Q,V){_.qY.remove(v,Q===void 0?"/":Q,V===void 0?"youtube.com":V)};
_.z_=function(){if(_.Y("embeds_web_enable_cookie_detection_fix")){if(!_.bb.navigator.cookieEnabled)return!1}else if(!_.qY.isEnabled())return!1;if(!_.qY.isEmpty())return!0;_.Y("embeds_web_enable_cookie_detection_fix")?_.qY.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.qY.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.qY.get("TESTCOOKIESENABLED")!=="1")return!1;_.qY.remove("TESTCOOKIESENABLED");return!0};
z9r=function(){var v=_.bb.navigator;return v?v.connection:void 0};
Jym=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(v){}};
_.xpB=function(){var v=z9r();if(v){var Q=NDS[v.type||"unknown"]||"CONN_UNKNOWN";v=NDS[v.effectiveType||"unknown"]||"CONN_UNKNOWN";Q==="CONN_CELLULAR_UNKNOWN"&&v!=="CONN_UNKNOWN"&&(Q=v);if(Q!=="CONN_UNKNOWN")return Q;if(v!=="CONN_UNKNOWN")return v}};
g7b=function(){var v=z9r();if(v!=null&&v.effectiveType)return BDo.hasOwnProperty(v.effectiveType)?BDo[v.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.NY=function(){try{return _.Jt(),!0}catch(v){return!1}};
_.Jt=function(v){if(_.r7("DATASYNC_ID")!==void 0)return _.r7("DATASYNC_ID");throw new _.xd("Datasync ID not set",v===void 0?"unknown":v);};
_.B5=function(v){this.mechanism=v};
g$=function(v){this.mechanism=v};
sG=function(v){this.storage_=v;this.cachedIsStorageAvailable_=null};
s$Q=function(){var v=null;try{v=_.bb.localStorage||null}catch(Q){}sG.call(this,v)};
u$G=function(){var v=null;try{v=_.bb.sessionStorage||null}catch(Q){}sG.call(this,v)};
uv=function(v,Q){this.mechanism_=v;this.JSC$10701_prefix_=Q+"::"};
_.j$b=function(v){var Q=new s$Q;return Q.isAvailable()?v?new uv(Q,v):Q:null};
_.WLG=function(v){var Q=new u$G;return Q.isAvailable()?v?new uv(Q,v):Q:null};
Xpr=function(){var v;return(v=o7r())==null?void 0:v.get("LAST_RESULT_ENTRY_KEY",!0)};
_.om=function(v){aGt||(_.jw?_.jw.logError(v):(_.W5.push({type:"ERROR",payload:v}),_.W5.length>10&&_.W5.shift()))};
XF=function(v,Q){aGt||(_.jw?_.jw.logEvent(v,Q):(_.W5.push({type:"EVENT",eventType:v,payload:Q}),_.W5.length>10&&_.W5.shift()))};
r$=function(v){if(v.indexOf(":")>=0)throw Error("Rc");};
$d=function(v){return v.substr(0,v.indexOf(":"))||v};
IGB=function(){return(ryh||$pb)&&Im("applewebkit")&&!Im("version")&&(!Im("safari")||Im("gsa/"))};
Im=function(v){var Q=_.T0();return Q?Q.toLowerCase().indexOf(v)>=0:!1};
Up9=function(v,Q,V,E){Q=$d(Q);var b=v instanceof Error?v:Error("Sc`"+v);if(b instanceof H5)return b;v={objectStoreNames:V,dbName:Q,dbVersion:E};if(b.name==="QuotaExceededError")return new H5("QUOTA_EXCEEDED",v);if(_.mF&&b.name==="UnknownError")return new H5("QUOTA_MAYBE_EXCEEDED",v);if(b instanceof HtZ)return new H5("MISSING_INDEX",Object.assign({},v,{objectStore:b.objectStore,index:b.index}));if(b.name==="InvalidStateError"&&mpo.some(function(F){return b.message.includes(F)}))return new H5("EXECUTE_TRANSACTION_ON_CLOSED_DB",
v);
if(b.name==="AbortError")return new H5("UNKNOWN_ABORT",v,b.message);b.args=[Object.assign({},v,{name:"IdbError",originalName:b.name})];b.level="WARNING";return b};
UG=function(v,Q,V){var E=Xpr();return new H5("IDB_NOT_SUPPORTED",{context:{caller:v,publicName:Q,version:V,hasSucceededOnce:E==null?void 0:E.hasSucceededOnce}})};
vzb=function(v){if(!v)throw Error();throw v;};
QFB=function(v){return v};
V0Z=function(v,Q,V){var E=function(){try{v.removeEventListener("success",b),v.removeEventListener("error",F)}catch(t){}},b=function(){Q(v.result);
E()},F=function(){V(v.error);
E()};
v.addEventListener("success",b);v.addEventListener("error",F)};
Ez3=function(v){return new Promise(function(Q,V){V0Z(v,Q,V)})};
Vh=function(v){return new vr(new Qh(function(Q,V){V0Z(v,Q,V)}))};
b7m=function(v,Q){return new vr(new Qh(function(V,E){var b=function(){var F=v?Q(v):null;F?F.then(function(t){v=t;b()},E):V()};
b()}))};
F53=function(v,Q,V){return new Promise(function(E,b){var F=Q!==void 0?self.indexedDB.open(v,Q):self.indexedDB.open(v);var t=V.blocked,p=V.blocking,Z=V.terminated,d=V.upgrade,w=V.closed,A,k=function(){A||(A=new Ef(F.result,{closed:w}));return A};
F.addEventListener("upgradeneeded",function(T){try{if(T.newVersion===null)throw Error("Xc");if(F.transaction===null)throw Error("Yc");T.dataLoss&&T.dataLoss!=="none"&&XF("IDB_DATA_CORRUPTED",{reason:T.dataLossMessage||"unknown reason",dbName:$d(v)});var c=k(),C=new bD(F.transaction);d&&d(c,function(R){return T.oldVersion<R&&T.newVersion>=R},C);
C.done.catch(function(R){b(R)})}catch(R){b(R)}});
F.addEventListener("success",function(){var T=F.result;p&&T.addEventListener("versionchange",function(){p(k())});
T.addEventListener("close",function(){XF("IDB_UNEXPECTEDLY_CLOSED",{dbName:$d(v),dbVersion:T.version});Z&&Z()});
E(k())});
F.addEventListener("error",function(){b(F.error)});
t&&F.addEventListener("blocked",function(){t()})})};
K5Z=function(v,Q,V){V=V===void 0?{}:V;return F53(v,Q,V)};
_.KO=function(v,Q){Q=Q===void 0?{}:Q;var V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return _.GC(t,2),V=self.indexedDB.deleteDatabase(v),E=Q,(b=E.blocked)&&V.addEventListener("blocked",function(){b()}),t.yield(Ez3(V),4);
if(t.nextAddress!=2)return _.FT(t,0);F=_.n$(t);throw Up9(F,v,"",-1);})};
L5S=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1)return E.yield(_.iD(i7h,Q),2);V=E.yieldResult;return E.return(_.LO(V,["databases"],{enableRetries:!0,mode:"readwrite"},function(b){var F=b.objectStore("databases");return F.get(v.actualName).then(function(t){if(t?v.actualName!==t.actualName||v.publicName!==t.publicName||v.userIdentifier!==t.userIdentifier:1)return F.put(v).then(function(){})})}))})};
_.tF=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1)return v?E.yield(_.iD(i7h,Q),2):E.return();V=E.yieldResult;return E.return(V.delete("databases",v))})};
_.t0S=function(v,Q){var V,E;return _.e(function(b){return b.nextAddress==1?(V=[],b.yield(_.iD(i7h,Q),2)):b.nextAddress!=3?(E=b.yieldResult,b.yield(_.LO(E,["databases"],{enableRetries:!0,mode:"readonly"},function(F){V.length=0;return pO(F.objectStore("databases"),{},function(t){v(t.getValue())&&V.push(t.getValue());return t.continue()})}),3)):b.return(V)})};
pBb=function(v,Q){return _.t0S(function(V){return V.publicName===v&&V.userIdentifier!==void 0},Q)};
P3t=function(){var v,Q,V,E;return _.e(function(b){switch(b.nextAddress){case 1:v=Xpr();if((Q=v)==null?0:Q.hasSucceededOnce)return b.return(!0);var F;if(F=e6m)F=/WebKit\/([0-9]+)/.exec(_.T0()),F=!!(F&&parseInt(F[1],10)>=600);F&&(F=/WebKit\/([0-9]+)/.exec(_.T0()),F=!(F&&parseInt(F[1],10)>=602));if(F||ej)return b.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return b.return(!1)}catch(t){return b.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return b.return(!1);
_.GC(b,2);E={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return b.yield(L5S(E,Z7Z),4);case 4:return b.yield(_.tF("yt-idb-test-do-not-use",Z7Z),5);case 5:return b.return(!0);case 2:return _.n$(b),b.return(!1)}})};
h6b=function(){if(dSE!==void 0)return dSE;aGt=!0;return dSE=P3t().then(function(v){aGt=!1;var Q;if((Q=o7r())!=null&&Q.hasLocalStorage()){var V;Q={hasSucceededOnce:((V=Xpr())==null?void 0:V.hasSucceededOnce)||v};var E;(E=o7r())==null||E.set("LAST_RESULT_ENTRY_KEY",Q,2592E3,!0)}return v})};
Zd=function(){return _.Q9("ytglobal.idbToken_")||void 0};
_.dO=function(){var v=Zd();return v?Promise.resolve(v):h6b().then(function(Q){(Q=Q?Z7Z:void 0)&&_.Pr("ytglobal.idbToken_",Q);return Q})};
wBb=function(v){if(!_.NY())throw v=new H5("AUTH_INVALID",{dbName:v}),_.om(v),v;var Q=_.Jt();return{actualName:v+":"+Q,publicName:v,userIdentifier:Q}};
A4b=function(v,Q,V,E){var b,F,t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:return F=(b=Error().stack)!=null?b:"",w.yield(_.dO(),2);case 2:t=w.yieldResult;if(!t)throw p=UG("openDbImpl",v,Q),_.Y("ytidb_async_stack_killswitch")||(p.stack=p.stack+"\n"+F.substring(F.indexOf("\n")+1)),_.om(p),p;r$(v);Z=V?{actualName:v,publicName:v,userIdentifier:void 0}:wBb(v);_.GC(w,3);return w.yield(L5S(Z,t),5);case 5:return w.yield(K5Z(Z.actualName,Q,E),6);case 6:return w.return(w.yieldResult);case 3:return d=
_.n$(w),_.GC(w,7),w.yield(_.tF(Z.actualName,t),9);case 9:_.FT(w,8);break;case 7:_.n$(w);case 8:throw d;}})};
kOm=function(v,Q,V){V=V===void 0?{}:V;return A4b(v,Q,!1,V)};
T8r=function(v,Q,V){V=V===void 0?{}:V;return A4b(v,Q,!0,V)};
YxG=function(v,Q){Q=Q===void 0?{}:Q;var V,E;return _.e(function(b){if(b.nextAddress==1)return b.yield(_.dO(),2);if(b.nextAddress!=3){V=b.yieldResult;if(!V)return b.return();r$(v);E=wBb(v);return b.yield(_.KO(E.actualName,Q),3)}return b.yield(_.tF(E.actualName,V),0)})};
y4Q=function(v,Q,V){v=v.map(function(E){return _.e(function(b){return b.nextAddress==1?b.yield(_.KO(E.actualName,Q),2):b.yield(_.tF(E.actualName,V),0)})});
return Promise.all(v).then(function(){})};
c4Z=function(v){var Q=Q===void 0?{}:Q;var V,E;return _.e(function(b){if(b.nextAddress==1)return b.yield(_.dO(),2);if(b.nextAddress!=3){V=b.yieldResult;if(!V)return b.return();r$(v);return b.yield(pBb(v,V),3)}E=b.yieldResult;return b.yield(y4Q(E,Q,V),0)})};
fib=function(v,Q){Q=Q===void 0?{}:Q;var V;return _.e(function(E){if(E.nextAddress==1)return E.yield(_.dO(),2);if(E.nextAddress!=3){V=E.yieldResult;if(!V)return E.return();r$(v);return E.yield(_.KO(v,Q),3)}return E.yield(_.tF(v,V),0)})};
hF=function(v,Q){return GO0(v,Q)};
M0t=function(v){return _.iD(C3G(),v)};
O7t=function(v,Q,V,E){var b,F,t;return _.e(function(p){switch(p.nextAddress){case 1:return b={config:v,hashData:Q,timestamp:E!==void 0?E:(0,_.wO)()},p.yield(M0t(V),2);case 2:return F=p.yieldResult,p.yield(F.clear("hotConfigStore"),3);case 3:return p.yield(F.put("hotConfigStore",b),4);case 4:return t=p.yieldResult,p.return(t)}})};
DSm=function(v,Q,V,E,b){var F,t,p;return _.e(function(Z){switch(Z.nextAddress){case 1:return F={config:v,hashData:Q,configData:V,timestamp:b!==void 0?b:(0,_.wO)()},Z.yield(M0t(E),2);case 2:return t=Z.yieldResult,Z.yield(t.clear("coldConfigStore"),3);case 3:return Z.yield(t.put("coldConfigStore",F),4);case 4:return p=Z.yieldResult,Z.return(p)}})};
R6b=function(v){var Q,V;return _.e(function(E){return E.nextAddress==1?E.yield(M0t(v),2):E.nextAddress!=3?(Q=E.yieldResult,V=void 0,E.yield(_.LO(Q,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(b){return _.AF(b.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(F){V=F.getValue()})}),3)):E.return(V)})};
nz0=function(v){var Q,V;return _.e(function(E){return E.nextAddress==1?E.yield(M0t(v),2):E.nextAddress!=3?(Q=E.yieldResult,V=void 0,E.yield(_.LO(Q,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(b){return _.AF(b.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(F){V=F.getValue()})}),3)):E.return(V)})};
li9=function(){return _.e(function(v){return v.yield(c4Z("ytGcfConfig"),0)})};
qxr=function(){return"INNERTUBE_API_KEY"in _.X1&&"INNERTUBE_API_VERSION"in _.X1};
_.kF=function(){return{innertubeApiKey:_.r7("INNERTUBE_API_KEY"),innertubeApiVersion:_.r7("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.r7("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.r7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.r7("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.r7("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.r7("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.r7("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.r7("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.mX("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.mX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.r7("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.gzT=function(v){var Q={client:{hl:v.innertubeContextHostLanguage,gl:v.innertubeContextGeoLocation,clientName:v.innertubeContextClientName,clientVersion:v.innertubeContextClientVersion,configInfo:v.innertubeContextClientConfigInfo}};navigator.userAgent&&(Q.client.userAgent=String(navigator.userAgent));var V=_.bb.devicePixelRatio;V&&V!=1&&(Q.client.screenDensityFloat=String(V));V=VPZ();V!==""&&(Q.client.experimentsToken=V);V=E7h();V.length>0&&(Q.request={internalExperimentFlags:V});Sxm(v,void 0,Q);
z6B(void 0,Q);J4G(void 0,Q);N89(v,void 0,Q);xSZ(void 0,Q);_.Y("start_client_gcf")&&B8m(void 0,Q);_.r7("DELEGATED_SESSION_ID")&&!_.Y("pageid_as_header_web")&&(Q.user={onBehalfOfUser:_.r7("DELEGATED_SESSION_ID")});!_.Y("fill_delegate_context_in_gel_killswitch")&&(v=_.r7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Q.user=Object.assign({},Q.user,{serializedDelegationContext:v}));v=_.r7("INNERTUBE_CONTEXT");var E;if(_.Y("enable_persistent_device_token")&&(v==null?0:(E=v.client)==null?0:E.rolloutToken)){var b;
Q.client.rolloutToken=v==null?void 0:(b=v.client)==null?void 0:b.rolloutToken}E=Object;b=E.assign;v=Q.client;V={};for(var F=_.L(Object.entries(_.FF(_.r7("DEVICE","")))),t=F.next();!t.done;t=F.next()){var p=_.L(t.value);t=p.next().value;p=p.next().value;t==="cbrand"?V.deviceMake=p:t==="cmodel"?V.deviceModel=p:t==="cbr"?V.browserName=p:t==="cbrver"?V.browserVersion=p:t==="cos"?V.osName=p:t==="cosver"?V.osVersion=p:t==="cplatform"&&(V.platform=p)}Q.client=b.call(E,v,V);return Q};
Sxm=function(v,Q,V){v=v.innertubeContextClientName;if(v==="WEB"||v==="MWEB"||v===1||v===2)if(Q){V=_.TY(Q,sFT,96)||new sFT;var E=ugT();E=Object.keys(jFT).indexOf(E);E=E===-1?null:E;E!==null&&_.YF(V,3,E);_.Mj(Q,96,V)}else V&&(V.client.mainAppWebInfo=(E=V.client.mainAppWebInfo)!=null?E:{},V.client.mainAppWebInfo.webDisplayMode=ugT())};
z6B=function(v,Q){var V=_.Q9("yt.embedded_player.embed_url");V&&(v?(Q=_.TY(v,W5t,7)||new W5t,_.SS(Q,4,V),_.Mj(v,7,Q)):Q&&(Q.thirdParty={embedUrl:V}))};
J4G=function(v,Q){var V;if(_.Y("web_log_memory_total_kbytes")&&((V=_.bb.navigator)==null?0:V.deviceMemory)){var E;V=(E=_.bb.navigator)==null?void 0:E.deviceMemory;v?_.yh(v,95,Ps(V*1E6)):Q&&(Q.client.memoryTotalKbytes=""+V*1E6)}};
N89=function(v,Q,V){if(v.appInstallData)if(Q){var E;V=(E=_.TY(Q,cr,62))!=null?E:new cr;_.SS(V,6,v.appInstallData);_.Mj(Q,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=v.appInstallData)};
xSZ=function(v,Q){var V=_.xpB();V&&(v?_.YF(v,61,ozT[V]):Q&&(Q.client.connectionType=V));_.Y("web_log_effective_connection_type")&&(V=g7b())&&(v?_.YF(v,94,XBB[V]):Q&&(Q.client.effectiveConnectionType=V))};
_.$Sh=function(v,Q,V){V=V===void 0?{}:V;var E={};_.r7("EOM_VISITOR_DATA")?E={"X-Goog-EOM-Visitor-Id":_.r7("EOM_VISITOR_DATA")}:E={"X-Goog-Visitor-Id":V.visitorData||_.r7("VISITOR_DATA","")};if(Q&&Q.includes("www.youtube-nocookie.com"))return E;Q=V.authorization||_.r7("AUTHORIZATION");Q||(v?Q="Bearer "+_.Q9("gapi.auth.getToken")().access_token:(aiT.instance||(aiT.instance=new aiT),v=r4Q(),_.Y("pageid_as_header_web")||delete v["X-Goog-PageId"],E=Object.assign({},E,v)));Q&&(E.Authorization=Q);return E};
B8m=function(v,Q){var V=Ii0();if(V){var E=V.coldConfigData,b=V.coldHashData;V=V.hotHashData;if(v){var F;Q=(F=_.TY(v,cr,62))!=null?F:new cr;E=_.SS(Q,1,E);_.SS(E,3,b).setHotHashData(V);_.Mj(v,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},E&&(Q.client.configInfo.coldConfigData=E),b&&(Q.client.configInfo.coldHashData=b),V&&(Q.client.configInfo.hotHashData=V))}};
fO=function(v){for(var Q=v.length;--Q>=0;)v[Q]=0};
H7o=function(v,Q,V,E,b){this.static_tree=v;this.extra_bits=Q;this.extra_base=V;this.elems=E;this.max_length=b;this.has_stree=v&&v.length};
mSm=function(v,Q){this.dyn_tree=v;this.max_code=0;this.stat_desc=Q};
GY=function(v,Q){v.pending_buf[v.pending++]=Q&255;v.pending_buf[v.pending++]=Q>>>8&255};
CO=function(v,Q,V){v.bi_valid>16-V?(v.bi_buf|=Q<<v.bi_valid&65535,GY(v,v.bi_buf),v.bi_buf=Q>>16-v.bi_valid,v.bi_valid+=V-16):(v.bi_buf|=Q<<v.bi_valid&65535,v.bi_valid+=V)};
ML=function(v,Q,V){CO(v,V[Q*2],V[Q*2+1])};
USr=function(v,Q){var V=0;do V|=v&1,v>>>=1,V<<=1;while(--Q>0);return V>>>1};
vNE=function(v,Q,V){var E=Array(16),b=0,F;for(F=1;F<=15;F++)E[F]=b=b+V[F-1]<<1;for(V=0;V<=Q;V++)b=v[V*2+1],b!==0&&(v[V*2]=USr(E[b]++,b))};
QOb=function(v){var Q;for(Q=0;Q<286;Q++)v.dyn_ltree[Q*2]=0;for(Q=0;Q<30;Q++)v.dyn_dtree[Q*2]=0;for(Q=0;Q<19;Q++)v.bl_tree[Q*2]=0;v.dyn_ltree[512]=1;v.opt_len=v.static_len=0;v.last_lit=v.matches=0};
VVr=function(v){v.bi_valid>8?GY(v,v.bi_buf):v.bi_valid>0&&(v.pending_buf[v.pending++]=v.bi_buf);v.bi_buf=0;v.bi_valid=0};
ENb=function(v,Q,V){VVr(v);GY(v,V);GY(v,~V);Of.arraySet(v.pending_buf,v.window,Q,V,v.pending);v.pending+=V};
bFo=function(v,Q,V,E){var b=Q*2,F=V*2;return v[b]<v[F]||v[b]===v[F]&&E[Q]<=E[V]};
F9Z=function(v,Q,V){for(var E=v.heap[V],b=V<<1;b<=v.heap_len;){b<v.heap_len&&bFo(Q,v.heap[b+1],v.heap[b],v.depth)&&b++;if(bFo(Q,E,v.heap[b],v.depth))break;v.heap[V]=v.heap[b];V=b;b<<=1}v.heap[V]=E};
pHG=function(v,Q,V){var E=0;if(v.last_lit!==0){do{var b=v.pending_buf[v.d_buf+E*2]<<8|v.pending_buf[v.d_buf+E*2+1];var F=v.pending_buf[v.l_buf+E];E++;if(b===0)ML(v,F,Q);else{var t=Dd[F];ML(v,t+256+1,Q);var p=K9G[t];p!==0&&(F-=iFZ[t],CO(v,F,p));b--;t=b<256?Re[b]:Re[256+(b>>>7)];ML(v,t,V);p=L9b[t];p!==0&&(b-=tVT[t],CO(v,b,p))}}while(E<v.last_lit)}ML(v,256,Q)};
e2b=function(v,Q){var V=Q.dyn_tree,E=Q.stat_desc.static_tree,b=Q.stat_desc.has_stree,F=Q.stat_desc.elems,t,p=-1;v.heap_len=0;v.heap_max=573;for(t=0;t<F;t++)V[t*2]!==0?(v.heap[++v.heap_len]=p=t,v.depth[t]=0):V[t*2+1]=0;for(;v.heap_len<2;){var Z=v.heap[++v.heap_len]=p<2?++p:0;V[Z*2]=1;v.depth[Z]=0;v.opt_len--;b&&(v.static_len-=E[Z*2+1])}Q.max_code=p;for(t=v.heap_len>>1;t>=1;t--)F9Z(v,V,t);Z=F;do t=v.heap[1],v.heap[1]=v.heap[v.heap_len--],F9Z(v,V,1),E=v.heap[1],v.heap[--v.heap_max]=t,v.heap[--v.heap_max]=
E,V[Z*2]=V[t*2]+V[E*2],v.depth[Z]=(v.depth[t]>=v.depth[E]?v.depth[t]:v.depth[E])+1,V[t*2+1]=V[E*2+1]=Z,v.heap[1]=Z++,F9Z(v,V,1);while(v.heap_len>=2);v.heap[--v.heap_max]=v.heap[1];t=Q.dyn_tree;Z=Q.max_code;E=Q.stat_desc.static_tree;b=Q.stat_desc.has_stree;F=Q.stat_desc.extra_bits;var d=Q.stat_desc.extra_base,w=Q.stat_desc.max_length,A,k=0;for(A=0;A<=15;A++)v.bl_count[A]=0;t[v.heap[v.heap_max]*2+1]=0;for(Q=v.heap_max+1;Q<573;Q++){var T=v.heap[Q];A=t[t[T*2+1]*2+1]+1;A>w&&(A=w,k++);t[T*2+1]=A;if(!(T>
Z)){v.bl_count[A]++;var c=0;T>=d&&(c=F[T-d]);var C=t[T*2];v.opt_len+=C*(A+c);b&&(v.static_len+=C*(E[T*2+1]+c))}}if(k!==0){do{for(A=w-1;v.bl_count[A]===0;)A--;v.bl_count[A]--;v.bl_count[A+1]+=2;v.bl_count[w]--;k-=2}while(k>0);for(A=w;A!==0;A--)for(T=v.bl_count[A];T!==0;)E=v.heap[--Q],E>Z||(t[E*2+1]!==A&&(v.opt_len+=(A-t[E*2+1])*t[E*2],t[E*2+1]=A),T--)}vNE(V,p,v.bl_count)};
ZFE=function(v,Q,V){var E,b=-1,F=Q[1],t=0,p=7,Z=4;F===0&&(p=138,Z=3);Q[(V+1)*2+1]=65535;for(E=0;E<=V;E++){var d=F;F=Q[(E+1)*2+1];++t<p&&d===F||(t<Z?v.bl_tree[d*2]+=t:d!==0?(d!==b&&v.bl_tree[d*2]++,v.bl_tree[32]++):t<=10?v.bl_tree[34]++:v.bl_tree[36]++,t=0,b=d,F===0?(p=138,Z=3):d===F?(p=6,Z=3):(p=7,Z=4))}};
PKQ=function(v,Q,V){var E,b=-1,F=Q[1],t=0,p=7,Z=4;F===0&&(p=138,Z=3);for(E=0;E<=V;E++){var d=F;F=Q[(E+1)*2+1];if(!(++t<p&&d===F)){if(t<Z){do ML(v,d,v.bl_tree);while(--t!==0)}else d!==0?(d!==b&&(ML(v,d,v.bl_tree),t--),ML(v,16,v.bl_tree),CO(v,t-3,2)):t<=10?(ML(v,17,v.bl_tree),CO(v,t-3,3)):(ML(v,18,v.bl_tree),CO(v,t-11,7));t=0;b=d;F===0?(p=138,Z=3):d===F?(p=6,Z=3):(p=7,Z=4)}}};
d2r=function(v){var Q=4093624447,V;for(V=0;V<=31;V++,Q>>>=1)if(Q&1&&v.dyn_ltree[V*2]!==0)return 0;if(v.dyn_ltree[18]!==0||v.dyn_ltree[20]!==0||v.dyn_ltree[26]!==0)return 1;for(V=32;V<256;V++)if(v.dyn_ltree[V*2]!==0)return 1;return 0};
nO=function(v,Q,V){v.pending_buf[v.d_buf+v.last_lit*2]=Q>>>8&255;v.pending_buf[v.d_buf+v.last_lit*2+1]=Q&255;v.pending_buf[v.l_buf+v.last_lit]=V&255;v.last_lit++;Q===0?v.dyn_ltree[V*2]++:(v.matches++,Q--,v.dyn_ltree[(Dd[V]+256+1)*2]++,v.dyn_dtree[(Q<256?Re[Q]:Re[256+(Q>>>7)])*2]++);return v.last_lit===v.lit_bufsize-1};
qL=function(v,Q){v.msg=lD[Q];return Q};
Sj=function(v){for(var Q=v.length;--Q>=0;)v[Q]=0};
zY=function(v){var Q=v.state,V=Q.pending;V>v.avail_out&&(V=v.avail_out);V!==0&&(Of.arraySet(v.output,Q.pending_buf,Q.pending_out,V,v.next_out),v.next_out+=V,Q.pending_out+=V,v.total_out+=V,v.avail_out-=V,Q.pending-=V,Q.pending===0&&(Q.pending_out=0))};
xF=function(v,Q){var V=v.block_start>=0?v.block_start:-1,E=v.strstart-v.block_start,b=0;if(v.level>0){v.strm.data_type===2&&(v.strm.data_type=d2r(v));e2b(v,v.l_desc);e2b(v,v.d_desc);ZFE(v,v.dyn_ltree,v.l_desc.max_code);ZFE(v,v.dyn_dtree,v.d_desc.max_code);e2b(v,v.bl_desc);for(b=18;b>=3&&v.bl_tree[h2S[b]*2+1]===0;b--);v.opt_len+=3*(b+1)+5+5+4;var F=v.opt_len+3+7>>>3;var t=v.static_len+3+7>>>3;t<=F&&(F=t)}else F=t=E+5;if(E+4<=F&&V!==-1)CO(v,Q?1:0,3),ENb(v,V,E);else if(v.strategy===4||t===F)CO(v,2+(Q?
1:0),3),pHG(v,JF,NL);else{CO(v,4+(Q?1:0),3);V=v.l_desc.max_code+1;E=v.d_desc.max_code+1;b+=1;CO(v,V-257,5);CO(v,E-1,5);CO(v,b-4,4);for(F=0;F<b;F++)CO(v,v.bl_tree[h2S[F]*2+1],3);PKQ(v,v.dyn_ltree,V-1);PKQ(v,v.dyn_dtree,E-1);pHG(v,v.dyn_ltree,v.dyn_dtree)}QOb(v);Q&&VVr(v);v.block_start=v.strstart;zY(v.strm)};
Br=function(v,Q){v.pending_buf[v.pending++]=Q};
gO=function(v,Q){v.pending_buf[v.pending++]=Q>>>8&255;v.pending_buf[v.pending++]=Q&255};
wHh=function(v,Q){var V=v.max_chain_length,E=v.strstart,b=v.prev_length,F=v.nice_match,t=v.strstart>v.w_size-262?v.strstart-(v.w_size-262):0,p=v.window,Z=v.w_mask,d=v.prev,w=v.strstart+258,A=p[E+b-1],k=p[E+b];v.prev_length>=v.good_match&&(V>>=2);F>v.lookahead&&(F=v.lookahead);do{var T=Q;if(p[T+b]===k&&p[T+b-1]===A&&p[T]===p[E]&&p[++T]===p[E+1]){E+=2;for(T++;p[++E]===p[++T]&&p[++E]===p[++T]&&p[++E]===p[++T]&&p[++E]===p[++T]&&p[++E]===p[++T]&&p[++E]===p[++T]&&p[++E]===p[++T]&&p[++E]===p[++T]&&E<w;);
T=258-(w-E);E=w-258;if(T>b){v.match_start=Q;b=T;if(T>=F)break;A=p[E+b-1];k=p[E+b]}}}while((Q=d[Q&Z])>t&&--V!==0);return b<=v.lookahead?b:v.lookahead};
uD=function(v){var Q=v.w_size,V;do{var E=v.window_size-v.lookahead-v.strstart;if(v.strstart>=Q+(Q-262)){Of.arraySet(v.window,v.window,Q,Q,0);v.match_start-=Q;v.strstart-=Q;v.block_start-=Q;var b=V=v.hash_size;do{var F=v.head[--b];v.head[b]=F>=Q?F-Q:0}while(--V);b=V=Q;do F=v.prev[--b],v.prev[b]=F>=Q?F-Q:0;while(--V);E+=Q}if(v.strm.avail_in===0)break;b=v.strm;V=v.window;F=v.strstart+v.lookahead;var t=b.avail_in;t>E&&(t=E);t===0?V=0:(b.avail_in-=t,Of.arraySet(V,b.input,b.next_in,t,F),b.state.wrap===
1?b.adler=Ano(b.adler,V,t,F):b.state.wrap===2&&(b.adler=sf(b.adler,V,t,F)),b.next_in+=t,b.total_in+=t,V=t);v.lookahead+=V;if(v.lookahead+v.insert>=3)for(E=v.strstart-v.insert,v.ins_h=v.window[E],v.ins_h=(v.ins_h<<v.hash_shift^v.window[E+1])&v.hash_mask;v.insert&&!(v.ins_h=(v.ins_h<<v.hash_shift^v.window[E+3-1])&v.hash_mask,v.prev[E&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=E,E++,v.insert--,v.lookahead+v.insert<3););}while(v.lookahead<262&&v.strm.avail_in!==0)};
kAG=function(v,Q){for(var V;;){if(v.lookahead<262){uD(v);if(v.lookahead<262&&Q===0)return 1;if(v.lookahead===0)break}V=0;v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,V=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);V!==0&&v.strstart-V<=v.w_size-262&&(v.match_length=wHh(v,V));if(v.match_length>=3)if(V=nO(v,v.strstart-v.match_start,v.match_length-3),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=3){v.match_length--;
do v.strstart++,v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart;while(--v.match_length!==0);v.strstart++}else v.strstart+=v.match_length,v.match_length=0,v.ins_h=v.window[v.strstart],v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+1])&v.hash_mask;else V=nO(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++;if(V&&(xF(v,!1),v.strm.avail_out===0))return 1}v.insert=v.strstart<2?v.strstart:2;return Q===4?(xF(v,
!0),v.strm.avail_out===0?3:4):v.last_lit&&(xF(v,!1),v.strm.avail_out===0)?1:2};
jj=function(v,Q){for(var V,E;;){if(v.lookahead<262){uD(v);if(v.lookahead<262&&Q===0)return 1;if(v.lookahead===0)break}V=0;v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,V=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);v.prev_length=v.match_length;v.prev_match=v.match_start;v.match_length=2;V!==0&&v.prev_length<v.max_lazy_match&&v.strstart-V<=v.w_size-262&&(v.match_length=wHh(v,V),v.match_length<=5&&(v.strategy===1||v.match_length===3&&
v.strstart-v.match_start>4096)&&(v.match_length=2));if(v.prev_length>=3&&v.match_length<=v.prev_length){E=v.strstart+v.lookahead-3;V=nO(v,v.strstart-1-v.prev_match,v.prev_length-3);v.lookahead-=v.prev_length-1;v.prev_length-=2;do++v.strstart<=E&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);while(--v.prev_length!==0);v.match_available=0;v.match_length=2;v.strstart++;if(V&&(xF(v,!1),v.strm.avail_out===0))return 1}else if(v.match_available){if((V=
nO(v,0,v.window[v.strstart-1]))&&xF(v,!1),v.strstart++,v.lookahead--,v.strm.avail_out===0)return 1}else v.match_available=1,v.strstart++,v.lookahead--}v.match_available&&(nO(v,0,v.window[v.strstart-1]),v.match_available=0);v.insert=v.strstart<2?v.strstart:2;return Q===4?(xF(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(xF(v,!1),v.strm.avail_out===0)?1:2};
THt=function(v,Q){for(var V,E,b,F=v.window;;){if(v.lookahead<=258){uD(v);if(v.lookahead<=258&&Q===0)return 1;if(v.lookahead===0)break}v.match_length=0;if(v.lookahead>=3&&v.strstart>0&&(E=v.strstart-1,V=F[E],V===F[++E]&&V===F[++E]&&V===F[++E])){for(b=v.strstart+258;V===F[++E]&&V===F[++E]&&V===F[++E]&&V===F[++E]&&V===F[++E]&&V===F[++E]&&V===F[++E]&&V===F[++E]&&E<b;);v.match_length=258-(b-E);v.match_length>v.lookahead&&(v.match_length=v.lookahead)}v.match_length>=3?(V=nO(v,1,v.match_length-3),v.lookahead-=
v.match_length,v.strstart+=v.match_length,v.match_length=0):(V=nO(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++);if(V&&(xF(v,!1),v.strm.avail_out===0))return 1}v.insert=0;return Q===4?(xF(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(xF(v,!1),v.strm.avail_out===0)?1:2};
YpB=function(v,Q){for(var V;;){if(v.lookahead===0&&(uD(v),v.lookahead===0)){if(Q===0)return 1;break}v.match_length=0;V=nO(v,0,v.window[v.strstart]);v.lookahead--;v.strstart++;if(V&&(xF(v,!1),v.strm.avail_out===0))return 1}v.insert=0;return Q===4?(xF(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(xF(v,!1),v.strm.avail_out===0)?1:2};
Wr=function(v,Q,V,E,b){this.good_length=v;this.max_lazy=Q;this.nice_length=V;this.max_chain=E;this.func=b};
ynG=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 Of.Buf16(1146);this.dyn_dtree=new Of.Buf16(122);this.bl_tree=new Of.Buf16(78);Sj(this.dyn_ltree);Sj(this.dyn_dtree);Sj(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Of.Buf16(16);this.heap=new Of.Buf16(573);Sj(this.heap);this.heap_max=this.heap_len=0;this.depth=new Of.Buf16(573);Sj(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};
cnQ=function(v,Q){if(!v||!v.state||Q>5||Q<0)return v?qL(v,-2):-2;var V=v.state;if(!v.output||!v.input&&v.avail_in!==0||V.status===666&&Q!==4)return qL(v,v.avail_out===0?-5:-2);V.strm=v;var E=V.last_flush;V.last_flush=Q;if(V.status===42)if(V.wrap===2)v.adler=0,Br(V,31),Br(V,139),Br(V,8),V.gzhead?(Br(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)),Br(V,V.gzhead.time&255),Br(V,V.gzhead.time>>8&255),Br(V,V.gzhead.time>>16&255),Br(V,V.gzhead.time>>
24&255),Br(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Br(V,V.gzhead.os&255),V.gzhead.extra&&V.gzhead.extra.length&&(Br(V,V.gzhead.extra.length&255),Br(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&(v.adler=sf(v.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(Br(V,0),Br(V,0),Br(V,0),Br(V,0),Br(V,0),Br(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Br(V,3),V.status=113);else{var b=8+(V.w_bits-8<<4)<<8;b|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.strstart!==0&&(b|=
32);V.status=113;gO(V,b+(31-b%31));V.strstart!==0&&(gO(V,v.adler>>>16),gO(V,v.adler&65535));v.adler=1}if(V.status===69)if(V.gzhead.extra){for(b=V.pending;V.gzindex<(V.gzhead.extra.length&65535)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>b&&(v.adler=sf(v.adler,V.pending_buf,V.pending-b,b)),zY(v),b=V.pending,V.pending!==V.pending_buf_size));)Br(V,V.gzhead.extra[V.gzindex]&255),V.gzindex++;V.gzhead.hcrc&&V.pending>b&&(v.adler=sf(v.adler,V.pending_buf,V.pending-b,b));V.gzindex===V.gzhead.extra.length&&
(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){b=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>b&&(v.adler=sf(v.adler,V.pending_buf,V.pending-b,b)),zY(v),b=V.pending,V.pending===V.pending_buf_size)){var F=1;break}F=V.gzindex<V.gzhead.name.length?V.gzhead.name.charCodeAt(V.gzindex++)&255:0;Br(V,F)}while(F!==0);V.gzhead.hcrc&&V.pending>b&&(v.adler=sf(v.adler,V.pending_buf,V.pending-b,b));F===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===
91)if(V.gzhead.comment){b=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>b&&(v.adler=sf(v.adler,V.pending_buf,V.pending-b,b)),zY(v),b=V.pending,V.pending===V.pending_buf_size)){F=1;break}F=V.gzindex<V.gzhead.comment.length?V.gzhead.comment.charCodeAt(V.gzindex++)&255:0;Br(V,F)}while(F!==0);V.gzhead.hcrc&&V.pending>b&&(v.adler=sf(v.adler,V.pending_buf,V.pending-b,b));F===0&&(V.status=103)}else V.status=103;V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&zY(v),
V.pending+2<=V.pending_buf_size&&(Br(V,v.adler&255),Br(V,v.adler>>8&255),v.adler=0,V.status=113)):V.status=113);if(V.pending!==0){if(zY(v),v.avail_out===0)return V.last_flush=-1,0}else if(v.avail_in===0&&(Q<<1)-(Q>4?9:0)<=(E<<1)-(E>4?9:0)&&Q!==4)return qL(v,-5);if(V.status===666&&v.avail_in!==0)return qL(v,-5);if(v.avail_in!==0||V.lookahead!==0||Q!==0&&V.status!==666){E=V.strategy===2?YpB(V,Q):V.strategy===3?THt(V,Q):oe[V.level].func(V,Q);if(E===3||E===4)V.status=666;if(E===1||E===3)return v.avail_out===
0&&(V.last_flush=-1),0;if(E===2&&(Q===1?(CO(V,2,3),ML(V,256,JF),V.bi_valid===16?(GY(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)):Q!==5&&(CO(V,0,3),ENb(V,0,0),Q===3&&(Sj(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),zY(v),v.avail_out===0))return V.last_flush=-1,0}if(Q!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(Br(V,v.adler&255),Br(V,v.adler>>8&255),Br(V,v.adler>>16&255),Br(V,v.adler>>24&255),Br(V,
v.total_in&255),Br(V,v.total_in>>8&255),Br(V,v.total_in>>16&255),Br(V,v.total_in>>24&255)):(gO(V,v.adler>>>16),gO(V,v.adler&65535));zY(v);V.wrap>0&&(V.wrap=-V.wrap);return V.pending!==0?0:1};
flo=function(v){if(!(this instanceof flo))return new flo(v);v=this.options=Of.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},v||{});v.raw&&v.windowBits>0?v.windowBits=-v.windowBits:v.gzip&&v.windowBits>0&&v.windowBits<16&&(v.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new GAS;this.strm.avail_out=0;var Q=this.strm;var V=v.level,E=v.method,b=v.windowBits,F=v.memLevel,t=v.strategy;if(Q){var p=1;V===-1&&(V=6);b<0?(p=0,b=-b):b>15&&
(p=2,b-=16);if(F<1||F>9||E!==8||b<8||b>15||V<0||V>9||t<0||t>4)Q=qL(Q,-2);else{b===8&&(b=9);var Z=new ynG;Q.state=Z;Z.strm=Q;Z.wrap=p;Z.gzhead=null;Z.w_bits=b;Z.w_size=1<<Z.w_bits;Z.w_mask=Z.w_size-1;Z.hash_bits=F+7;Z.hash_size=1<<Z.hash_bits;Z.hash_mask=Z.hash_size-1;Z.hash_shift=~~((Z.hash_bits+3-1)/3);Z.window=new Of.Buf8(Z.w_size*2);Z.head=new Of.Buf16(Z.hash_size);Z.prev=new Of.Buf16(Z.w_size);Z.lit_bufsize=1<<F+6;Z.pending_buf_size=Z.lit_bufsize*4;Z.pending_buf=new Of.Buf8(Z.pending_buf_size);
Z.d_buf=Z.lit_bufsize;Z.l_buf=3*Z.lit_bufsize;Z.level=V;Z.strategy=t;Z.method=E;if(Q&&Q.state){Q.total_in=Q.total_out=0;Q.data_type=2;V=Q.state;V.pending=0;V.pending_out=0;V.wrap<0&&(V.wrap=-V.wrap);V.status=V.wrap?42:113;Q.adler=V.wrap===2?0:1;V.last_flush=0;if(!CKZ){E=Array(16);for(F=t=0;F<28;F++)for(iFZ[F]=t,b=0;b<1<<K9G[F];b++)Dd[t++]=F;Dd[t-1]=F;for(F=t=0;F<16;F++)for(tVT[F]=t,b=0;b<1<<L9b[F];b++)Re[t++]=F;for(t>>=7;F<30;F++)for(tVT[F]=t<<7,b=0;b<1<<L9b[F]-7;b++)Re[256+t++]=F;for(b=0;b<=15;b++)E[b]=
0;for(b=0;b<=143;)JF[b*2+1]=8,b++,E[8]++;for(;b<=255;)JF[b*2+1]=9,b++,E[9]++;for(;b<=279;)JF[b*2+1]=7,b++,E[7]++;for(;b<=287;)JF[b*2+1]=8,b++,E[8]++;vNE(JF,287,E);for(b=0;b<30;b++)NL[b*2+1]=5,NL[b*2]=USr(b,5);MVr=new H7o(JF,K9G,257,286,15);OFh=new H7o(NL,L9b,0,30,15);D29=new H7o([],R2B,0,19,7);CKZ=!0}V.l_desc=new mSm(V.dyn_ltree,MVr);V.d_desc=new mSm(V.dyn_dtree,OFh);V.bl_desc=new mSm(V.bl_tree,D29);V.bi_buf=0;V.bi_valid=0;QOb(V);V=0}else V=qL(Q,-2);V===0&&(Q=Q.state,Q.window_size=2*Q.w_size,Sj(Q.head),
Q.max_lazy_match=oe[Q.level].max_lazy,Q.good_match=oe[Q.level].good_length,Q.nice_match=oe[Q.level].nice_length,Q.max_chain_length=oe[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=2,Q.match_available=0,Q.ins_h=0);Q=V}}else Q=-2;if(Q!==0)throw Error(lD[Q]);v.header&&(Q=this.strm)&&Q.state&&Q.state.wrap===2&&(Q.state.gzhead=v.header);if(v.dictionary){var d;typeof v.dictionary==="string"?d=nNQ(v.dictionary):llG.call(v.dictionary)==="[object ArrayBuffer]"?
d=new Uint8Array(v.dictionary):d=v.dictionary;v=this.strm;F=d;t=F.length;if(v&&v.state)if(d=v.state,Q=d.wrap,Q===2||Q===1&&d.status!==42||d.lookahead)Q=-2;else{Q===1&&(v.adler=Ano(v.adler,F,t,0));d.wrap=0;t>=d.w_size&&(Q===0&&(Sj(d.head),d.strstart=0,d.block_start=0,d.insert=0),V=new Of.Buf8(d.w_size),Of.arraySet(V,F,t-d.w_size,d.w_size,0),F=V,t=d.w_size);V=v.avail_in;E=v.next_in;b=v.input;v.avail_in=t;v.next_in=0;v.input=F;for(uD(d);d.lookahead>=3;){F=d.strstart;t=d.lookahead-2;do d.ins_h=(d.ins_h<<
d.hash_shift^d.window[F+3-1])&d.hash_mask,d.prev[F&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=F,F++;while(--t);d.strstart=F;d.lookahead=2;uD(d)}d.strstart+=d.lookahead;d.block_start=d.strstart;d.insert=d.lookahead;d.lookahead=0;d.match_length=d.prev_length=2;d.match_available=0;v.next_in=E;v.input=b;v.avail_in=V;d.wrap=Q;Q=0}else Q=-2;if(Q!==0)throw Error(lD[Q]);this._dict_set=!0}};
qph=function(v,Q){Q=Q||{};Q.gzip=!0;Q=new flo(Q);Q.push(v,!0);if(Q.err)throw Q.msg||lD[Q.err];return Q.result};
z2T=function(v,Q){var V=Spo();V&&V.publish.call(V,v.toString(),v,Q)};
gNG=function(v,Q,V){var E=Spo();if(!E)return 0;var b=E.subscribe(v.toString(),function(F,t){var p=_.Q9("ytPubsub2Pubsub2SkipSubKey");p&&p==b||(p=function(){if(JnS[b])try{if(t&&v instanceof NHh&&v!=F)try{var Z=v.dataClass,d=t;if(!d.args||!d.version)throw Error("$c");try{if(!Z.version_){var w=new Z;Z.version_=w.version}var A=Z.version_}catch(k){}if(!A||d.version!=A)throw Error("ad");try{t=Reflect.construct(Z,_.jZ(d.args))}catch(k){throw k.message="yt.pubsub2.Data.deserialize(): "+k.message,k;}}catch(k){throw k.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+v.toString()+": "+k.message,k;}Q.call(V||window,t)}catch(k){_.Ui(k)}},x2B[v.toString()]?_.Q9("yt.scheduler.instance")?_.XT.addLowPriorityJob(p):_.G_(p,0):p())});
JnS[b]=!0;BHr[v.toString()]||(BHr[v.toString()]=[]);BHr[v.toString()].push(b);return b};
W99=function(){var v=sOT,Q=gNG(upQ,function(V){v.apply(void 0,arguments);jO3(Q)});
return Q};
jO3=function(v){var Q=Spo();Q&&(typeof v==="number"&&(v=[v]),_.bv(v,function(V){Q.unsubscribeByKey(V);delete JnS[V]}))};
Spo=function(){return _.Q9("ytPubsub2Pubsub2Instance")};
oNm=function(v,Q,V){V=V===void 0?{sampleRate:.1}:V;Math.random()<Math.min(.02,V.sampleRate/100)&&z2T("meta_logging_csi_event",{timerName:v,timelineData:Q})};
_.XHB=function(v){return v?(v=v.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Fd(v):null:null};
_.ae=function(v){return v?(v=v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.lV(v):null:null};
rnB=function(){alb||(alb=_.ae(_.r7("WORKER_SERIALIZATION_URL")));return alb||void 0};
_.Ilo=function(){var v=rnB();$23||v===void 0||($23=Tut(v));return $23};
_.HF9=function(){return typeof Worker==="function"&&rnB()?!0:!1};
_.Q1B=function(){if(_.HF9()&&!m2m){var v=function(V){V=V.data;if(V.op==="gzippedGelBatch"){var E=U2m.get(V.key);E&&(vv3(V.gzippedBatch,E.latencyPayload,E.url,E.options,E.sendFn),U2m.delete(V.key))}},Q=_.Ilo();
Q&&(Q.addEventListener("message",v),Q.onerror=function(){U2m.clear()},m2m=!0)}};
LVr=function(v,Q,V,E,b){b=b===void 0?!1:b;var F={startTime:(0,_.wO)(),ticks:{},infos:{}};if(rO)try{var t=VTh(Q);if(t!=null&&(t>Evh||t<bht))E(v,V);else{if(_.Y("gzip_gel_with_worker")&&(_.Y("initial_gzip_use_main_thread")&&!FVZ||!_.Y("initial_gzip_use_main_thread"))){m2m||_.Q1B();var p=_.Ilo();if(p&&!b){U2m.set(KVo,{latencyPayload:F,url:v,options:V,sendFn:E});p.postMessage({op:"gelBatchToGzip",serializedBatch:Q,key:KVo});KVo++;return}}var Z=qph(ihh(Q));vv3(Z,F,v,V,E)}}catch(d){_.V9(d),E(v,V)}else E(v,
V)};
vv3=function(v,Q,V,E,b){FVZ=!1;var F=(0,_.wO)();Q.ticks.gelc=F;$F++;_.Y("disable_compression_due_to_performance_degredation")&&F-Q.startTime>=tTB&&(pnb++,rO=!1);e$b(Q);E.headers||(E.headers={});E.headers["Content-Encoding"]="gzip";E.postBody=v;E.postParams=void 0;b(V,E)};
PfQ=function(v){var Q=Q===void 0?!1:Q;var V=V===void 0?!1:V;var E=(0,_.wO)(),b={startTime:E,ticks:{},infos:{}},F=Q?_.Q9("yt.logging.gzipForFetch",!1):!0;if(rO&&F){if(!v.body)return v;try{var t=V?v.body:typeof v.body==="string"?v.body:JSON.stringify(v.body);F=t;if(!V&&typeof t==="string"){var p=VTh(t);if(p!=null&&(p>Evh||p<bht))return v;V=Q?{level:1}:void 0;F=qph(ihh(t),V);var Z=(0,_.wO)();b.ticks.gelc=Z;if(Q){$F++;if((_.Y("disable_compression_due_to_performance_degredation")||_.Y("disable_compression_due_to_performance_degradation_lr"))&&
Z-E>=tTB)if(pnb++,_.Y("abandon_compression_after_N_slow_zips_lr")){Q=pnb/$F;var d=ZhE/_.T_("compression_disable_point");$F>0&&$F%_.T_("compression_disable_point")===0&&Q>=d&&(rO=!1)}else rO=!1;e$b(b)}}v.headers=Object.assign({},{"Content-Encoding":"gzip"},v.headers||{});v.body=F;return v}catch(w){return _.V9(w),v}}else return v};
VTh=function(v){try{return(new Blob(v.split(""))).size}catch(Q){return _.V9(Q),null}};
e$b=function(v){_.Y("gel_compression_csi_killswitch")||!_.Y("log_gel_compression_latency")&&!_.Y("log_gel_compression_latency_lr")||oNm("gel_compression",v,{sampleRate:.1})};
dfQ=function(){this.blockSize=-1};
Ie=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var v=1;v<this.blockSize;++v)this.pad_[v]=0;this.total_=this.inbuf_=0;this.reset()};
wnQ=function(v){v=Object.assign({},v);delete v.Authorization;var Q=_.h$S();if(Q){var V=new Ie;V.update(_.r7("INNERTUBE_API_KEY"));V.update(Q);v.hash=_.Sq(V.digest(),3)}return v};
m7=function(){AMb||(AMb=new _.Hr("yt.innertube"));return AMb};
kPG=function(v,Q,V,E){if(E)return null;E=m7().get("nextId",!0)||1;var b=m7().get("requests",!0)||{};b[E]={method:v,request:Q,authState:wnQ(V),requestTime:Math.round((0,_.wO)())};m7().set("nextId",E+1,86400,!0);m7().set("requests",b,86400,!0);return E};
Tg3=function(v){var Q=m7().get("requests",!0)||{};delete Q[v];m7().set("requests",Q,86400,!0)};
yMS=function(v){var Q=m7().get("requests",!0);if(Q){for(var V in Q){var E=Q[V];if(!(Math.round((0,_.wO)())-E.requestTime<6E4)){var b=E.authState,F=wnQ(_.$Sh(!1));_.gI.equals(b,F)&&(b=E.request,"requestTimeMs"in b&&(b.requestTimeMs=Math.round((0,_.wO)())),YJ0(v,E.method,b,{}));delete Q[V]}}m7().set("requests",Q,86400,!0)}};
cMt=function(v){var Q;return(v=v==null?void 0:(Q=v.error)==null?void 0:Q.code)&&v>=400&&v<=599?!1:!0};
f7b=function(v){var Q;v=v==null?void 0:(Q=v.error)==null?void 0:Q.code;return!(v!==400&&v!==415)};
Cft=function(){if(GPT)return GPT();var v={};GPT=hF("LogsDatabaseV2",{objectStores:(v.LogsRequestsStore={addedAtVersion:2},v),shared:!1,upgrade:function(Q,V,E){V(2)&&Uf(Q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(E=E.objectStore("LogsRequestsStore"),E.JSC$10760_wrapped.indexNames.contains("newRequest")&&E.JSC$10760_wrapped.deleteIndex("newRequest"),vx(E,"newRequestV2",["status","interface","timestamp"]));V(7)&&Q.JSC$10745_wrapped.objectStoreNames.contains("sapisid")&&Q.JSC$10745_wrapped.deleteObjectStore("sapisid");
V(9)&&Q.JSC$10745_wrapped.objectStoreNames.contains("SWHealthLog")&&Q.JSC$10745_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return GPT()};
Qp=function(v){return _.iD(Cft(),v)};
OhG=function(v,Q){var V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return V={startTime:(0,_.wO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},t.yield(Qp(Q),2);if(t.nextAddress!=3)return E=t.yieldResult,b=Object.assign({},v,{options:JSON.parse(JSON.stringify(v.options)),interface:_.r7("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),t.yield(E.put("LogsRequestsStore",b),3);F=t.yieldResult;V.ticks.tc=(0,_.wO)();MTb(V);return t.return(F)})};
DfS=function(v,Q){var V,E,b,F,t,p,Z,d,w;return _.e(function(A){if(A.nextAddress==1)return V={startTime:(0,_.wO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},A.yield(Qp(Q),2);if(A.nextAddress!=3)return E=A.yieldResult,b=_.r7("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[v,b,0],t=[v,b,(0,_.wO)()],p=IDBKeyRange.bound(F,t),Z="prev",_.Y("use_fifo_for_networkless")&&(Z="next"),d=void 0,w=v==="NEW"?"readwrite":"readonly",_.Y("use_readonly_for_get_most_recent_by_status_killswitch")&&(w="readwrite"),
A.yield(_.LO(E,["LogsRequestsStore"],{mode:w,enableRetries:!0},function(k){return _.AF(k.objectStore("LogsRequestsStore").index("newRequestV2"),{query:p,direction:Z},function(T){T.getValue()&&(d=T.getValue(),v==="NEW"&&(d.status="QUEUED",T.update(d)))})}),3);
V.ticks.tc=(0,_.wO)();MTb(V);return A.return(d)})};
R$h=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Qp(Q),2);V=E.yieldResult;return E.return(_.LO(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(b){var F=b.objectStore("LogsRequestsStore");return F.get(v).then(function(t){if(t)return t.status="QUEUED",F.put(t).then(function(){return t})})}))})};
nvQ=function(v,Q,V,E){V=V===void 0?!0:V;var b;return _.e(function(F){if(F.nextAddress==1)return F.yield(Qp(Q),2);b=F.yieldResult;return F.return(_.LO(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var p=t.objectStore("LogsRequestsStore");return p.get(v).then(function(Z){return Z?(Z.status="NEW",V&&(Z.sendCount+=1),E!==void 0&&(Z.options.compress=E),p.put(Z).then(function(){return Z})):vr.resolve(void 0)})}))})};
l7G=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Qp(Q),2);V=E.yieldResult;return E.return(V.delete("LogsRequestsStore",v))})};
qJQ=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Qp(v),2);Q=E.yieldResult;V=(0,_.wO)()-2592E6;return E.yield(_.LO(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(b){return pO(b.objectStore("LogsRequestsStore"),{},function(F){if(F.getValue().timestamp<=V)return F.delete().then(function(){return F.continue()})})}),0)})};
SJ9=function(){_.e(function(v){return v.yield(c4Z("LogsDatabaseV2"),0)})};
MTb=function(v){_.Y("nwl_csi_killswitch")||oNm("networkless_performance",v,{sampleRate:1})};
_.JMQ=function(v){return _.iD(z$S(),v)};
NgB=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(_.JMQ(v),2);Q=E.yieldResult;V=(0,_.wO)()-2592E6;return E.yield(_.LO(Q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(b){return pO(b.objectStore("SWHealthLog"),{},function(F){if(F.getValue().timestamp<=V)return F.delete().then(function(){return F.continue()})})}),0)})};
xfS=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(_.JMQ(v),2);Q=V.yieldResult;return V.yield(Q.clear("SWHealthLog"),0)})};
_.Vp=function(v,Q,V,E,b,F,t){b=b===void 0?"":b;F=F===void 0?!1:F;t=t===void 0?!1:t;if(v)if(V&&!Im("cobalt"))_.V9(new _.xd("Legacy referrer-scrubbed ping detected")),v&&BgG(v,void 0,{scrubReferrer:!0});else if(b)e9E(v,Q,"POST",b,E);else if(_.r7("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||E||t)e9E(v,Q,"GET","",E,void 0,F,t);else{b:{try{c:{var p=new gvB({url:v});if(p.urlParamValues_.dsh==="1")var Z=null;else{var d=p.urlParamValues_.ae;if(d==="1"){var w=p.urlParamValues_.adurl;if(w)try{Z={version:3,directUrl:decodeURIComponent(w),
asyncUrl:sSB(p.JSC$9556_url_,"act=1","ri=1",s1G(p))};break c}catch(c){}}Z=d==="2"?{version:4,directUrl:sSB(p.JSC$9556_url_,"dct=1","suid="+p.suid_,"ri=1"),asyncUrl:sSB(p.JSC$9556_url_,"act=1","ri=1","suid="+p.suid_)}:null}}if(Z){var A=_.OG(v);var k=!(!A||!A.endsWith("/aclk")||_.me(v,"ri")!=="1");break b}}catch(c){}k=!1}if(k){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(v,"")){var T=!0;break b}}catch(c){}T=!1}T?(Q&&Q(),V=!0):V=!1}else V=!1;V||BgG(v,Q)}};
BgG=function(v,Q,V){V=V===void 0?{}:V;var E=new Image,b=""+u6S++;j13[b]=E;E.onload=E.onerror=function(){Q&&j13[b]&&Q();delete j13[b]};
V.scrubReferrer&&(E.referrerPolicy="no-referrer");E.src=v};
E0=function(v,Q){WVG(v,Q==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
ovE=function(v){var Q;return((Q=document.featurePolicy)==null?0:Q.allowedFeatures().includes("attribution-reporting"))?v+"&nis=6":v+"&nis=5"};
Xnh=function(v){if(!v)return!1;try{var Q;if(((Q=_.FF(v))==null?void 0:Q.asm)==="4")return!0}catch(V){_.Ui(V)}return!1};
WVG=function(v,Q){Q?(v=ovE(v),_.Vp(v,void 0,void 0,void 0,"",!0,!0)):_.Vp(v)};
rMt=function(){a7E||(a7E=new _.Hr("yt.offline"));return a7E};
$f3=function(v){if(_.Y("offline_error_handling")){var Q=rMt().get("errors",!0)||{};Q[v.message]={name:v.name,stack:v.stack};v.level&&(Q[v.message].level=v.level);rMt().set("errors",Q,2592E3,!0)}};
HhB=function(v,Q,V,E){E=E===void 0?!1:E;Q=_.Y("web_fp_via_jspb")?Object.assign({},Q):Q;_.Y("use_cfr_monitor")&&I7Q(v,Q);if(_.Y("use_request_time_ms_header"))Q.headers&&Z9(v)&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.wO)())));else{var b;if((b=Q.postParams)==null?0:b.requestTimeMs)Q.postParams.requestTimeMs=Math.round((0,_.wO)())}V&&Object.keys(Q).length===0?_.Vp(v):Q.compress?Q.postBody?(typeof Q.postBody!=="string"&&(Q.postBody=JSON.stringify(Q.postBody)),LVr(v,Q.postBody,
Q,_.D9,E)):LVr(v,JSON.stringify(Q.postParams),Q,h9Q,E):_.D9(v,Q)};
mfS=function(v,Q){_.Y("use_event_time_ms_header")&&Z9(v)&&(Q.headers||(Q.headers={}),Q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.wO)())));return Q};
_.vDt=function(){Uf9||(Uf9=new _.bS({logOfflineErrors:!0,enablePolling:!0}));return Uf9};
I7Q=function(v,Q){var V=Q.onError?Q.onError:function(){};
Q.onError=function(b,F){F0().requestComplete(v,!1);V(b,F)};
var E=Q.onSuccess?Q.onSuccess:function(){};
Q.onSuccess=function(b,F){F0().requestComplete(v,!0);E(b,F)}};
_.QdS=function(){return _.pi(document.location.toString())!=="www.youtube-nocookie.com"};
_.bxS=function(){return _.Q9("ytNetworklessLoggingInitializationOptions")?_.VMb.isNwlInitialized:_.EDo};
Fd9=function(v,Q){if(_.Y("polymer_on_demand_shady_dom")){var V;var E=(V=v.__shady_native_firstElementChild)!=null?V:v.firstElementChild}else E=v.firstElementChild;for(;E;){if(v=Q(E)?E:Fd9(E,Q))return v;E=E.nextElementSibling}return null};
ixG=function(){var v=document;if("visibilityState"in v)return v.visibilityState;var Q=KdQ+"VisibilityState";if(Q in v)return v[Q]};
_.Ldb=function(v,Q){var V;Kp(v,function(E){V=Q[E];return!!V});
return V};
_.Lp=function(v){var Q=tMr(v);Q?Q.focus(void 0):_.iS(v)};
tMr=function(v){return(v=Fd9(v,function(Q){return _.t8(Q)?pgh(Q)&&!!Q.offsetParent:!1}))?v:null};
_.iS=function(v,Q){v.hasAttribute("tabindex")||v.setAttribute("tabindex","-1");v.focus(Q)};
e1h=function(v,Q,V,E){E=E===void 0?{}:E;v.addEventListener&&(Q!="mouseenter"||"onmouseenter"in document?Q!="mouseleave"||"onmouseenter"in document?Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"):Q="mouseout":Q="mouseover");return _.gI.findKey(pp,function(b){var F=typeof b[4]==="boolean"&&b[4]==!!E,t=_.rG(b[4])&&_.rG(E)&&_.gI.equals(b[4],E);return!!b.length&&b[0]==v&&b[1]==Q&&b[2]==V&&(F||t)})};
_.ZW=function(v,Q,V,E){E=E===void 0?{}:E;if(!v||!v.addEventListener&&!v.attachEvent)return"";var b=e1h(v,Q,V,E);if(b)return b;b=++Zxo.count+"";var F=!(Q!="mouseenter"&&Q!="mouseleave"||!v.addEventListener||"onmouseenter"in document);var t=F?function(p){p=new ex(p);if(!_.XH(p.relatedTarget,function(Z){return Z==v},!0))return p.currentTarget=v,p.type=Q,V.call(v,p)}:function(p){p=new ex(p);
p.currentTarget=v;return V.call(v,p)};
t=_.v5(t);v.addEventListener?(Q=="mouseenter"&&F?Q="mouseover":Q=="mouseleave"&&F?Q="mouseout":Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"),Pd9()||typeof E==="boolean"?v.addEventListener(Q,t,E):v.addEventListener(Q,t,!!E.capture)):v.attachEvent("on"+Q,t);pp[b]=[v,Q,V,t,E];return b};
_.h1b=function(v,Q,V){var E=E===void 0?{}:E;var b=_.ZW(v,Q,function(){_.dQ9(b);V.apply(v,arguments)},E)};
_.dQ9=function(v){v&&(typeof v=="string"&&(v=[v]),_.bv(v,function(Q){if(Q in pp){var V=pp[Q],E=V[0],b=V[1],F=V[3];V=V[4];E.removeEventListener?Pd9()||typeof V==="boolean"?E.removeEventListener(b,F,V):E.removeEventListener(b,F,!!V.capture):E.detachEvent&&E.detachEvent("on"+b,F);delete pp[Q]}}))};
Px=function(v){this.callback_=v;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(v=0;v<4;v++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.ZW(window,"mousemove",(0,_.Nz)(this.onMouseMove_,this));this.timerId_=_.Ci((0,_.Nz)(this.checkPosition_,this),25)};
k4Q=function(){var v={};var Q=v.preferMobileEvents===void 0?!1:v.preferMobileEvents;v=v.enableScrollEventListener===void 0?!0:v.enableScrollEventListener;if(_.Q9("_lact",window)==null){var V=parseInt(_.r7("LACT"),10);V=isFinite(V)?Date.now()-Math.max(V,0):-1;_.Pr("_lact",V,window);_.Pr("_fact",V,window);V==-1&&_.A8();wgT(window,Q,v);new Px(function(){ART("mouse",100)})}};
wgT=function(v,Q,V){Q=Q===void 0?!1:Q;V=V===void 0?!0:V;_.ZW(v.document,"keydown",_.A8);_.ZW(v.document,"keyup",_.A8);_.ZW(v.document,"mousedown",_.A8);_.ZW(v.document,"mouseup",_.A8);Q?_.ZW(v,"touchmove",function(){ART("touchmove",200)},{passive:!0}):(_.ZW(v,"resize",function(){ART("resize",200)}),V&&_.ZW(v,"scroll",function(){ART("scroll",200)}));
_.ZW(v.document,"touchstart",_.A8,{passive:!0});_.ZW(v.document,"touchend",_.A8,{passive:!0})};
ART=function(v,Q){TEQ[v]||(TEQ[v]=!0,_.XT.addLowPriorityJob(function(){_.A8();TEQ[v]=!1},Q))};
_.A8=function(){_.Q9("_lact",window)==null&&k4Q();var v=Date.now();_.Pr("_lact",v,window);_.Q9("_fact",window)==-1&&_.Pr("_fact",v,window);(v=_.Q9("ytglobal.ytUtilActivityCallback_"))&&v()};
_.kh=function(){var v=_.Q9("_lact",window);return v==null?-1:Math.max(Date.now()-v,0)};
_.cx=function(v,Q,V){var E=_.Tv();if(E&&Q){var b=E.subscribe(v,function(){var F=arguments,t=function(){Yh[b]&&Q.apply&&typeof Q.apply=="function"&&Q.apply(V||window,F)};
try{_.Yoh[v]?t():_.G_(t,0)}catch(p){_.Ui(p)}},V);
Yh[b]=!0;yp[v]||(yp[v]=[]);yp[v].push(b);return b}return 0};
_.yRt=function(v){var Q=_.Tv();Q&&(typeof v==="number"?v=[v]:typeof v==="string"&&(v=[parseInt(v,10)]),_.bv(v,function(V){Q.unsubscribeByKey(V);delete Yh[V]}))};
_.cR0=function(v,Q){var V=_.Tv();V&&V.publish.apply(V,arguments)};
_.G4S=function(v){var Q=_.Tv();if(Q)if(Q.clear(v),v)fMt(v);else for(var V in yp)fMt(V)};
_.Tv=function(){return _.bb.ytPubsubPubsubInstance};
fMt=function(v){yp[v]&&(v=yp[v],_.bv(v,function(Q){Yh[Q]&&delete Yh[Q]}),v.length=0)};
Cdo=function(){var v,Q;return"h5vcc"in Gv&&((v=Gv.h5vcc.traceEvent)==null?0:v.traceBegin)&&((Q=Gv.h5vcc.traceEvent)==null?0:Q.traceEnd)?1:"performance"in Gv&&Gv.performance.mark&&Gv.performance.measure?2:0};
MMG=function(v){var Q=Cdo();switch(Q){case 1:Gv.h5vcc.traceEvent.traceBegin("YTLR",v);break;case 2:Gv.performance.mark(v+"-start");break;case 0:break;default:_.rV(Q,"unknown trace type")}};
Ox0=function(v){var Q=Cdo();switch(Q){case 1:Gv.h5vcc.traceEvent.traceEnd("YTLR",v);break;case 2:Q=v+"-start";var V=v+"-end";Gv.performance.mark(V);Gv.performance.measure(v,Q,V);break;case 0:break;default:_.rV(Q,"unknown trace type")}};
DQT=function(v){var Q,V;(V=(Q=window).onerror)==null||V.call(Q,v.message,"",0,0,v)};
R19=function(v){if(_.Y("web_lifecycle_error_handling_killswitch"))return v();try{return v()}catch(Q){DQT(Q)}};
nDo=function(v){return[v.auth===void 0?"undefined":v.auth,v.isJspb===void 0?"undefined":v.isJspb,v.cttAuthInfo===void 0?"undefined":v.cttAuthInfo,v.tier===void 0?"undefined":v.tier].join("/")};
_.y=function(v,Q){if(v)return v[Q.name]};
MR=function(){var v=_.Q9("yt.logging.ims");v||(v=new Cp,_.Pr("yt.logging.ims",v));return v};
gDb=function(v,Q){if(v.endpoint==="log_event"){lMZ(v);var V=qoQ(v),E=SoS(v.payload)||"",b=z1E(E),F=200;if(b){if(b.enabled===!1&&!_.Y("web_payload_policy_disabled_killswitch"))return;F=JRt(b.tier);if(F===400){NEG(v,Q);return}}O0[V]=!0;V={cttAuthInfo:V,isJspb:!1,tier:F};MR().storePayload(V,v.payload);xQB(Q,!1,V,BE0(E))}};
uLQ=function(v,Q,V){if(Q.endpoint==="log_event"){lMZ(void 0,Q);var E=qoQ(Q,!0),b=z1E(v),F=200;if(b){if(b.enabled===!1&&!_.Y("web_payload_policy_disabled_killswitch"))return;F=JRt(b.tier);if(F===400){sd3(v,Q,V);return}}O0[E]=!0;E={cttAuthInfo:E,isJspb:!0,tier:F};MR().storePayload(E,zh(Q.payload));xQB(V,!0,E,BE0(v))}};
xQB=function(v,Q,V,E){Q=Q===void 0?!1:Q;E=E===void 0?!1:E;v&&(DW=new v);v=_.T_("tvhtml5_logging_max_batch_ads_fork")||_.T_("tvhtml5_logging_max_batch")||_.T_("web_logging_max_batch")||100;var b=(0,_.wO)(),F=jdb(Q,V.tier),t=F.lastDebounceQueueFromLogTimeMs;E&&(F.useVideoStatsEndPoint=!0);E=0;V&&(E=MR().getSequenceCount(V));var p=function(){Wd3({writeThenSend:!0},Q,V.tier)};
E>=1E3?p():E>=v?oD0||(oD0=Xgr(function(){p();oD0=void 0},0)):b-t>=10&&(aMZ(Q,V.tier),F.lastDebounceQueueFromLogTimeMs=b)};
NEG=function(v,Q){if(v.endpoint==="log_event"){_.Y("more_accurate_gel_parser")&&MR().storePayload({isJspb:!1},v.payload);lMZ(v);var V=qoQ(v),E=new Map;E.set(V,[v.payload]);var b=SoS(v.payload)||"";Q&&(DW=new Q);return new _.Ry(function(F,t){DW&&DW.isReady()?rR3(E,DW,F,t,{bypassNetworkless:!0},!0,BE0(b)):F()})}};
sd3=function(v,Q,V){if(Q.endpoint==="log_event"){lMZ(void 0,Q);var E=qoQ(Q,!0),b=new Map;b.set(E,[zh(Q.payload)]);V&&(DW=new V);return new _.Ry(function(F){DW&&DW.isReady()?$Qb(b,DW,F,{bypassNetworkless:!0},!0,BE0(v)):F()})}};
qoQ=function(v,Q){var V="";if(v.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(v.cttAuthInfo){if(Q===void 0?0:Q){Q=v.cttAuthInfo.token;V=v.cttAuthInfo;var E=new IMQ;V.videoId?E.setVideoId(V.videoId):V.playlistId&&np(E,2,HxG,y5(V.playlistId));mQS[Q]=E}else Q=v.cttAuthInfo,V={},Q.videoId?V.videoId=Q.videoId:Q.playlistId&&(V.playlistId=Q.playlistId),UQm[v.cttAuthInfo.token]=V;V=v.cttAuthInfo.token}return V};
Wd3=function(v,Q,V){v=v===void 0?{}:v;Q=Q===void 0?!1:Q;new _.Ry(function(E,b){var F=jdb(Q,V),t=F.useVideoStatsEndPoint;F.useVideoStatsEndPoint=!1;vWt(F.queueTimer);vWt(F.queueMaxTimer);F.queueMaxTimer=0;DW&&DW.isReady()?V===void 0&&_.Y("enable_web_tiered_gel")?QJB(E,b,v,Q,300,t):QJB(E,b,v,Q,V,t):(aMZ(Q,V),E())})};
QJB=function(v,Q,V,E,b,F){var t=DW;V=V===void 0?{}:V;E=E===void 0?!1:E;b=b===void 0?200:b;F=F===void 0?!1:F;var p=new Map,Z=new Map,d={isJspb:E,cttAuthInfo:void 0,tier:b},w={isJspb:E,cttAuthInfo:void 0};if(E){Q=_.L(Object.keys(O0));for(b=Q.next();!b.done;b=Q.next())b=b.value,Z=_.Y("enable_web_tiered_gel")?MR().smartExtractMatchingEntries({keys:[d,w],sizeLimit:1E3}):MR().extractMatchingEntries({isJspb:!0,cttAuthInfo:b}),Z.length>0&&p.set(b,Z),(_.Y("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.Y("web_fp_via_jspb_and_json"))&&
delete O0[b];$Qb(p,t,v,V,!1,F)}else{p=_.L(Object.keys(O0));for(d=p.next();!d.done;d=p.next())d=d.value,w=_.Y("enable_web_tiered_gel")?MR().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:b},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):MR().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),w.length>0&&Z.set(d,w),(_.Y("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.Y("web_fp_via_jspb_and_json"))&&delete O0[d];rR3(Z,t,v,Q,V,!1,F)}};
aMZ=function(v,Q){v=v===void 0?!1:v;Q=Q===void 0?200:Q;var V=function(){Wd3({writeThenSend:!0},v,Q)},E=jdb(v,Q),b=E===V$o||E===EW9?5E3:b_h;
_.Y("web_gel_timeout_cap")&&!E.queueMaxTimer&&(b=Xgr(function(){V()},b),E.queueMaxTimer=b);
vWt(E.queueTimer);b=_.r7("LOGGING_BATCH_TIMEOUT",_.T_("web_gel_debounce_ms",1E4));_.Y("shorten_initial_gel_batch_timeout")&&F0T&&(b=K0G);b=Xgr(function(){_.T_("gel_min_batch_size")>0?MR().getSequenceCount({cttAuthInfo:void 0,isJspb:v,tier:Q})>=i_0&&V():V()},b);
E.queueTimer=b};
rR3=function(v,Q,V,E,b,F,t){b=b===void 0?{}:b;var p=Math.round((0,_.wO)()),Z=v.size,d=L03(t);v=_.L(v);var w=v.next();for(t={};!w.done;t={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},w=v.next()){var A=_.L(w.value);w=A.next().value;A=A.next().value;t.batchRequest=_.gI.unsafeClone({context:_.gzT(Q.config_||_.kF())});if(!_.W9(A)&&!_.Y("throw_err_when_logevent_malformed_killswitch")){E();break}t.batchRequest.events=A;
(A=UQm[w])&&t$0(t.batchRequest,w,A);delete UQm[w];t.dangerousLogToVisitorSession=w==="visitorOnlyApprovedKey";p_G(t.batchRequest,p,t.dangerousLogToVisitorSession);egt(b);t.onSuccess$jscomp$3=function(k){_.Y("start_client_gcf")&&_.XT.addLowPriorityJob(function(){return _.e(function(T){return T.yield(Z_h(k),0)})});
Z--;Z||V()};
t.networkFailures=0;t.onError$jscomp$5=function(k){return function(){k.networkFailures++;if(b.bypassNetworkless&&k.networkFailures===1)try{YJ0(Q,d,k.batchRequest,PPt({writeThenSend:!0},k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,F)),F0T=!1}catch(T){_.Ui(T),E()}Z--;Z||V()}}(t);
try{YJ0(Q,d,t.batchRequest,PPt(b,t.dangerousLogToVisitorSession,t.onSuccess$jscomp$3,t.onError$jscomp$5,F)),F0T=!1}catch(k){_.Ui(k),E()}}};
$Qb=function(v,Q,V,E,b,F){E=E===void 0?{}:E;var t=Math.round((0,_.wO)()),p={value:v.size},Z=new Map([].concat(_.ui(v)));Z=_.L(Z);for(var d=Z.next();!d.done;d=Z.next()){var w=_.L(d.value).next().value,A=v.get(w);d=new dCh;var k=Q.config_||_.kF(),T=new lS,c=new hgS;_.SS(c,1,k.innertubeContextHostLanguage);_.SS(c,2,k.innertubeContextGeoLocation);_.YF(c,16,k.innertubeContextClientNameFieldNumber);_.SS(c,17,k.innertubeContextClientVersion);if(k.innertubeContextClientConfigInfo){var C=k.innertubeContextClientConfigInfo,
R=new cr;C.coldConfigData&&_.SS(R,1,C.coldConfigData);C.appInstallData&&_.SS(R,6,C.appInstallData);C.coldHashData&&_.SS(R,3,C.coldHashData);C.hotHashData&&R.setHotHashData(C.hotHashData);_.Mj(c,62,R)}(C=_.bb.devicePixelRatio)&&C!=1&&_.yh(c,65,_.IN(C));C=VPZ();C!==""&&_.SS(c,54,C);C=E7h();if(C.length>0){R=new w_T;for(var l=0;l<C.length;l++){var S=new qR;S.setKey(C[l].key);np(S,2,AsZ,y5(C[l].value));Sx(R,15,qR,S)}_.Mj(T,5,R)}Sxm(k,c);z6B(T);J4G(c);N89(k,c);xSZ(c);_.Y("start_client_gcf")&&B8m(c);_.r7("DELEGATED_SESSION_ID")&&
!_.Y("pageid_as_header_web")&&(k=new zv,_.SS(k,3,_.r7("DELEGATED_SESSION_ID")));!_.Y("fill_delegate_context_in_gel_killswitch")&&(C=_.r7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R=_.TY(T,zv,3)||new zv,k=T,C=_.SS(R,18,C),_.Mj(k,3,C));k=c;C=_.L(Object.entries(_.FF(_.r7("DEVICE",""))));for(R=C.next();!R.done;R=C.next())l=_.L(R.value),R=l.next().value,l=l.next().value,R==="cbrand"?_.SS(k,12,l):R==="cmodel"?_.SS(k,13,l):R==="cbr"?_.SS(k,87,l):R==="cbrver"?_.SS(k,88,l):R==="cos"?_.SS(k,18,
l):R==="cosver"?_.SS(k,19,l):R==="cplatform"&&_.YF(k,42,q2h(l));T.setClient(c);_.Mj(d,1,T);if(c=mQS[w])a:{if(_.Dg(c,J8(c,HxG,1)))T=1;else if(c.getPlaylistId())T=2;else break a;_.Mj(d,4,c);c=d.getContext()||new lS;k=_.TY(c,zv,3)||new zv;C=new NR;C.setToken(w);_.YF(C,1,T);Sx(k,12,NR,C);_.Mj(c,3,k)}delete mQS[w];w=w==="visitorOnlyApprovedKey";kr9()||_.xh(d,2,t);!w&&(T=_.r7("EVENT_ID"))&&(c=TSB(),k=new YPT,_.SS(k,1,T),_.xh(k,2,c),_.Mj(d,5,k));egt(E);if(_.Y("jspb_serialize_with_worker")&&(T=_.Ilo())&&
E.writeThenSend){_.ysb.set(csG,{client:Q,resolve:V,networklessOptions:E,isIsolated:b,useVSSEndpoint:F,dangerousLogToVisitorSession:w,requestsOutstanding:p});T.postMessage({op:"gelBatchToSerialize",batchRequest:zh(d),clientEvents:A,key:csG});csG++;break}if(A){T=[];for(c=0;c<A.length;c++)try{T.push(new Bx(A[c]))}catch(a){_.Ui(new _.xd("Transport failed to deserialize "+String(A[c])))}A=T}else A=[];A=_.L(A);for(T=A.next();!T.done;T=A.next())Sx(d,3,Bx,T.value);A={startTime:(0,_.wO)(),ticks:{},infos:{}};
d=d.serialize();A.ticks.geljspc=(0,_.wO)();_.Y("log_jspb_serialize_latency")&&oNm("gel_jspb_serialize",A,{sampleRate:.1});_.f1S(d,Q,V,E,b,F,w,p)}};
_.f1S=function(v,Q,V,E,b,F,t,p){E=E===void 0?{}:E;p=p===void 0?{value:0}:p;F=L03(F);E=PPt(E,t,function(Z){_.Y("start_client_gcf")&&_.XT.addLowPriorityJob(function(){return _.e(function(d){return d.yield(Z_h(Z),0)})});
p.value--;p.value||V()},function(){p.value--;
p.value||V()},b);
E.headers["Content-Type"]="application/json+protobuf";E.postBodyFormat="JSPB";E.postBody=v;YJ0(Q,F,"",E);F0T=!1};
egt=function(v){_.Y("always_send_and_write")&&(v.writeThenSend=!1)};
PPt=function(v,Q,V,E,b){v={retry:!0,onSuccess:V,onError:E,networklessOptions:v,dangerousLogToVisitorSession:Q,bypassMonitoring:!!b,headers:{},postBodyFormat:"",postBody:"",compress:_.Y("compress_gel")||_.Y("compress_gel_lr")};kr9()&&(v.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.wO)())));return v};
p_G=function(v,Q,V){kr9()||(v.requestTimeMs=String(Q));_.Y("unsplit_gel_payloads_in_logs")&&(v.unsplitGelPayloadsInLogs=!0);!V&&(Q=_.r7("EVENT_ID"))&&(V=TSB(),v.serializedClientEventId={serializedEventId:Q,clientCounter:String(V)})};
TSB=function(){var v=_.r7("BATCH_CLIENT_COUNTER")||0;v||(v=Math.floor(Math.random()*65535/2));v++;v>65535&&(v=1);_.aS("BATCH_CLIENT_COUNTER",v);return v};
t$0=function(v,Q,V){if(V.videoId)var E="VIDEO";else if(V.playlistId)E="PLAYLIST";else return;v.credentialTransferTokenTargetId=V;v.context=v.context||{};v.context.user=v.context.user||{};v.context.user.credentialTransferTokens=[{token:Q,scope:E}]};
lMZ=function(v,Q){var V=_.y9("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Q9("yt.logging.transport.enableScrapingForTest"))if(V)Grt=[],_.Pr("yt.logging.transport.enableScrapingForTest",!0),_.Pr("yt.logging.transport.scrapedPayloadsForTesting",Grt),_.Pr("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Pr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Pr("yt.logging.transport.scrapeClientEvent",!0);else return;V=_.Q9("yt.logging.transport.scrapedPayloadsForTesting");var E=_.Q9("yt.logging.transport.payloadToScrape");Q&&(Q=_.Q9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Q.payload)())&&V.push(Q);Q=_.Q9("yt.logging.transport.scrapeClientEvent");if(E&&E.length>=1)for(var b=0;b<E.length;b++)if(v&&v.payload[E[b]])if(Q)V.push(v.payload);else{var F=void 0;V.push(((F=v)==null?void 0:F.payload)[E[b]])}_.Pr("yt.logging.transport.scrapedPayloadsForTesting",
V)};
kr9=function(){return _.Y("use_request_time_ms_header")||_.Y("lr_use_request_time_ms_header")};
Xgr=function(v,Q){return _.Y("transport_use_scheduler")===!1?_.G_(v,Q):_.Y("logging_avoid_blocking_during_navigation")||_.Y("lr_logging_avoid_blocking_during_navigation")?_.go(_.XT,function(){if(_.CPB().currentState==="none")v();else{var V={};_.CPB().install((V.none={callback:v},V))}},Q):_.go(_.XT,v,Q)};
vWt=function(v){_.Y("transport_use_scheduler")?_.XT.cancelJob(v):_.MY(v)};
Z_h=function(v){var Q,V,E,b,F,t,p,Z,d,w;return _.e(function(A){return A.nextAddress==1?(E=(Q=v)==null?void 0:(V=Q.responseContext)==null?void 0:V.globalConfigGroup,b=_.y(E,M$9),t=(F=E)==null?void 0:F.hotHashData,p=_.y(E,O_G),d=(Z=E)==null?void 0:Z.coldHashData,(w=_.ht().resolve(_.d$(s0)))?t?b?A.yield(DCr(w,t,b),2):A.yield(DCr(w,t),2):A.jumpTo(2):A.return()):d?p?A.yield(RgZ(w,d,p),0):A.yield(RgZ(w,d),0):A.jumpTo(0)})};
jdb=function(v,Q){Q=Q===void 0?200:Q;return v?Q===300?V$o:nWQ:Q===300?EW9:l1Q};
z1E=function(v){if(_.Y("enable_web_tiered_gel")){v=qPm[v||""];var Q,V,E,b=_.ht().resolve(_.d$(s0))==null?void 0:(Q=uS())==null?void 0:(V=Q.loggingHotConfig)==null?void 0:(E=V.eventLoggingConfig)==null?void 0:E.payloadPolicies;if(b)for(Q=0;Q<b.length;Q++)if(b[Q].payloadNumber===v)return b[Q]}};
SoS=function(v){v=Object.keys(v);v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,qPm[Q])return Q};
JRt=function(v){switch(v){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
BE0=function(v){return v==="gelDebuggingEvent"};
L03=function(v){return(v===void 0?0:v)&&_.Y("vss_through_gel_video_stats")?"video_stats":"log_event"};
Wx=function(v,Q,V,E){E=E===void 0?{}:E;var b={},F=Math.round(E.timestamp||(0,_.wO)());b.eventTimeMs=F<Number.MAX_SAFE_INTEGER?F:0;b[v]=Q;v=_.kh();b.context={lastActivityMs:String(E.timestamp||!isFinite(v)?-1:v)};E.sequenceGroup&&!_.Y("web_gel_sequence_info_killswitch")&&(v=b.context,Q=E.sequenceGroup,Q={index:SPT(Q),groupKey:Q},v.sequence=Q,E.endOfSequence&&delete jx[E.sequenceGroup]);_.Y("web_tag_automated_log_events")&&(b.context.automatedLogEventSource=E.automatedLogEventSource);(E.sendIsolatedPayload?
NEG:gDb)({endpoint:"log_event",payload:b,cttAuthInfo:E.cttAuthInfo,dangerousLogToVisitorSession:E.dangerousLogToVisitorSession},V)};
SPT=function(v){jx[v]=v in jx?jx[v]+1:0;return jx[v]};
_.X0=function(v,Q,V){V=V===void 0?{}:V;var E=oy;_.mX("ytLoggingEventsDefaultDisabled",!1)&&oy===oy&&(E=null);Wx(v,Q,E,V)};
_.ay=function(){if(_.Y("web_fp_via_jspb")){var v=!0;v=v===void 0?!1:v;var Q=zgQ;zgQ=[];if(Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,v?Wx(V.payloadName,V.payload,oy,V.options):_.X0(V.payloadName,V.payload,V.options)}Wd3(void 0,!0);if(!_.Y("web_fp_via_jspb_and_json"))return}Wd3(void 0,!1)};
Jso=function(v,Q){var V;if((V=Q)==null?0:V.componentStack)return Q;if(v=v.componentStack)Q||(Q={}),Q.componentStack=v;return Q};
NST=function(){_.bv(_.r7("ERRORS")||[],function(v){_.ro.apply(null,v)});
_.aS("ERRORS",[])};
_.$h=function(v){_.ro(v)};
_.Iy=function(v){_.ro(v,"WARNING")};
xCb=function(v){v instanceof Error?_.ro(v):(v=_.rG(v)?JSON.stringify(v):String(v),v=new _.xd(v),v.name="RejectedPromiseError",_.Iy(v))};
BSt=function(v,Q,V,E,b,F){Q=Q===void 0?"Unknown file":Q;V=V===void 0?0:V;var t=!1,p=za3("log_window_onerror_fraction");if(p&&Math.random()<p)t=!0;else{p=document.getElementsByTagName("script");for(var Z=0,d=p.length;Z<d;Z++)if(p[Z].src.indexOf("/debug-")>0){t=!0;break}}t&&(t=!1,b?t=!0:(typeof v==="string"?p=v:ErrorEvent&&v instanceof ErrorEvent?(t=!0,p=v.message,Q=v.filename,V=v.lineno,E=v.colno):(p="Unknown error",Q="Unknown file",V=0),b=new _.xd(p),b.name="UnhandledWindowError",b.message=p,b.fileName=
Q,b.lineNumber=V,isNaN(E)?delete b.columnNumber:b.columnNumber=E),_.Y("wiz_enable_component_stack_propagation_killswitch")||(F=Jso(b,F)),F&&_.Hx(b,F),t?_.ro(b):_.Iy(b))};
_.ro=function(v,Q,V,E,b,F,t,p){F=F===void 0?{}:F;F.name=V||_.r7("INNERTUBE_CONTEXT_CLIENT_NAME",1);F.version=E||_.r7("INNERTUBE_CONTEXT_CLIENT_VERSION");V=F;Q=Q===void 0?"ERROR":Q;t=t===void 0?!1:t;Q=Q===void 0?"ERROR":Q;t=t===void 0?!1:t;if(v&&(v.hasOwnProperty("level")&&v.level&&(Q=v.level),_.Y("console_log_js_exceptions")&&(E=[],E.push("Name: "+v.name),E.push("Message: "+v.message),v.hasOwnProperty("params")&&E.push("Error Params: "+JSON.stringify(v.params)),v.hasOwnProperty("args")&&E.push("Error args: "+
JSON.stringify(v.args)),E.push("File name: "+v.fileName),E.push("Stacktrace: "+v.stack),E=E.join("\n"),window.console.log(E,v)),!(gWE>=5))){E=[];b=_.L(sJr);for(F=b.next();!F.done;F=b.next()){F=F.value;try{F()&&E.push(F())}catch(R){}}E=[].concat(_.ui(uK3),_.ui(E));var Z=jJ9(v);b=Z.message||"Unknown Error";F=Z.name||"UnknownError";var d=Z.stack||v.stacktrace||"Not available";if(d.startsWith(F+": "+b)){var w=d.split("\n");w.shift();d=w.join("\n")}w=Z.lineNumber||"Not available";Z=Z.fileName||"Not available";
var A=0;if(v.hasOwnProperty("args")&&v.args&&v.args.length)for(var k=0;k<v.args.length&&!(A=lGB(v.args[k],"params."+k,V,A),A>=500);k++);else if(v.hasOwnProperty("params")&&v.params){var T=v.params;if(typeof v.params==="object")for(k in T){if(T[k]){var c="params."+k,C=lv(T[k]);V[c]=C;A+=c.length+C.length;if(A>500)break}}else V.params=lv(T)}if(E.length)for(k=0;k<E.length&&!(A=lGB(E[k],"params.context."+k,V,A),A>=500);k++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);
k={message:b,name:F,lineNumber:w,fileName:Z,stack:d,params:V,sampleWeight:1};V=Number(v.columnNumber);isNaN(V)||(k.lineNumber=k.lineNumber+":"+V);if(v.level==="IGNORED")v=0;else a:{v=W0t();V=_.L(v.messageWeights);for(E=V.next();!E.done;E=V.next())if(E=E.value,k.message&&k.message.match(E.messageRegExp)){v=E.weight;break a}v=_.L(v.callbackWeights);for(V=v.next();!V.done;V=v.next())if(V=V.value,V.callback(k)){v=V.weight;break a}v=1}k.sampleWeight=v;v=_.L(oWQ);for(V=v.next();!V.done;V=v.next())if(V=
V.value,V.patternsForType[k.name])for(b=_.L(V.patternsForType[k.name]),E=b.next();!E.done;E=b.next())if(F=E.value,E=k.message.match(F.regexp)){k.params["params.error.original"]=E[0];b=F.groups;F={};for(w=0;w<b.length;w++)F[b[w]]=E[w+1],k.params["params.error."+b[w]]=E[w+1];k.message=V.messageFn(F);break}k.params||(k.params={});v=W0t();k.params["params.errorServiceSignature"]="msg="+v.messageWeights.length+"&cb="+v.callbackWeights.length;k.params["params.serviceWorker"]="false";_.bb.document&&_.bb.document.querySelectorAll&&
(k.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new mt(X_S,"sample")).constructor!==mt&&(k.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(k);if(k.sampleWeight!==0&&!a1Z.has(k.message)){if(t&&_.Y("web_enable_error_204"))rsB(Q===void 0?"ERROR":Q,k);else{Q=Q===void 0?"ERROR":Q;Q==="ERROR"?(U0.publish("handleError",k),_.Y("record_app_crashed_web")&&$C3===0&&k.sampleWeight===1&&($C3++,t={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.Y("report_client_error_with_app_crash_ks")||(t.systemHealth={crashData:{clientError:{logMessage:{message:k.message}}}}),_.X0("appCrashed",t)),I13++):Q==="WARNING"&&U0.publish("handleWarning",k);if(_.Y("kevlar_gel_error_routing")){t=Q;p=p===void 0?{}:p;b:{v=_.L(H_Z);for(V=v.next();!V.done;V=v.next())if(Im(V.value.toLowerCase())){v=!0;break b}v=!1}if(v)p=void 0;else{V={stackTrace:k.stack};k.fileName&&(V.filename=k.fileName);v=k.lineNumber&&k.lineNumber.split?k.lineNumber.split(":"):[];v.length!==
0&&(v.length!==1||isNaN(Number(v[0]))?v.length!==2||isNaN(Number(v[0]))||isNaN(Number(v[1]))||(V.lineNumber=Number(v[0]),V.columnNumber=Number(v[1])):V.lineNumber=Number(v[0]));v={level:"ERROR_LEVEL_UNKNOWN",message:k.message,errorClassName:k.name,sampleWeight:k.sampleWeight};t==="ERROR"?v.level="ERROR_LEVEL_ERROR":t==="WARNING"&&(v.level="ERROR_LEVEL_WARNNING");V={isObfuscated:!0,browserStackInfo:V};p.pageUrl=window.location.href;p.kvPairs=[];_.r7("FEXP_EXPERIMENTS")&&(p.experimentIds=_.r7("FEXP_EXPERIMENTS"));
E=_.r7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!za3("web_disable_gel_stp_ecatcher_killswitch")&&E)for(b=_.L(Object.keys(E)),F=b.next();!F.done;F=b.next())F=F.value,p.kvPairs.push({key:F,value:String(E[F])});if(E=k.params)for(b=_.L(Object.keys(E)),F=b.next();!F.done;F=b.next())F=F.value,p.kvPairs.push({key:"client."+F,value:String(E[F])});E=_.r7("SERVER_NAME");b=_.r7("SERVER_VERSION");E&&b&&(p.kvPairs.push({key:"server.name",value:E}),p.kvPairs.push({key:"server.version",value:b}));p={errorMetadata:p,
stackTrace:V,logMessage:v}}p&&(_.X0("clientError",p),(t==="ERROR"||_.Y("errors_flush_gel_always_killswitch"))&&_.ay())}_.Y("suppress_error_204_logging")||rsB(Q,k)}try{a1Z.add(k.message)}catch(R){}gWE++}}};
rsB=function(v,Q){var V=Q.params||{};v={urlParams:{a:"logerror",t:"jserror",type:Q.name,msg:Q.message.substr(0,250),line:Q.lineNumber,level:v,"client.name":V.name},postParams:{url:_.r7("PAGE_NAME",window.location.href),file:Q.fileName},method:"POST"};V.version&&(v["client.version"]=V.version);if(v.postParams){Q.stack&&(v.postParams.stack=Q.stack);Q=_.L(Object.keys(V));for(var E=Q.next();!E.done;E=Q.next())E=E.value,v.postParams["client."+E]=V[E];if(V=_.r7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Q=
_.L(Object.keys(V)),E=Q.next();!E.done;E=Q.next())E=E.value,v.postParams[E]=V[E];(V=_.r7("LAVA_VERSION"))&&(v.postParams["lava.version"]=V);V=_.r7("SERVER_NAME");Q=_.r7("SERVER_VERSION");V&&Q&&(v.postParams["server.name"]=V,v.postParams["server.version"]=Q)}_.D9(_.r7("ECATCHER_REPORT_HOST","")+"/error_204",v)};
_.mCm=function(v,Q){Q=Q===void 0?"ERROR":Q;var V=V===void 0?{}:V;var E=_.Q9("ytbin.polymer.shared.lib.tampering.info");E&&(E=E())&&(V["params.tamperingInfo"]=E.sort().join(","));_.ro(v,Q,void 0,void 0,!0,V)};
_.Hx=function(v){var Q=_.aE.apply(1,arguments);v.args||(v.args=[]);Array.isArray(v.args)&&v.args.push.apply(v.args,_.ui(Q))};
UCE=function(v){v.level="IGNORED"};
vlG=function(v,Q){uK3.push(v);Q();uK3.pop()};
Qi=function(v,Q){for(var V in Q)Q.hasOwnProperty(V)&&(v=_.va(v,V,Q[V]));return v};
_.Q7Q=function(v,Q,V){V=V===void 0?!1:V;if(!v)return null;if(v.adInfoDialogEndpoint||v.backstageImageUploadEndpoint||v.confirmDialogEndpoint||v.clientActionEndpoint||v.createBackstagePostDialogEndpoint||v.createCommentReplyDialogEndpoint||v.flowEndpoint||v.guideBuilderEndpoint||v.liveChatDialogEndpoint||v.modalEndpoint||v.openPopupAction||v.shareEndpoint||v.shareEntityEndpoint||v.showLiveChatItemEndpoint||v.subscriptionManagerEndpoint||v.unlimitedCreateFamilyEndpoint||v.unlimitedFamilyFlowEndpoint||
v.updateCommentDialogEndpoint||v.updateCommentReplyDialogEndpoint||v.userFeedbackEndpoint||v.videoEditorEndpoint||v.ypcCancelSurveyEndpoint)return Q=_.T_("polymer_report_client_url_requested_rate"),!V&&Math.random()<Q&&_.Iy(new _.xd("urlForEndpoint used on client endpoint",v)),null;var E=_.T_("polymer_report_missing_web_navigation_endpoint_rate");if(v.liveChatEndpoint||v.liveChatReplayEndpoint)E=0;if(!v.commandMetadata&&!v.clickTrackingParams&&Math.random()<E){var b={},F;for(F in v)b[F]="1";_.Iy(new _.xd("Missing navigation data",
b))}b="";if(v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url)b=v.commandMetadata.webCommandMetadata.url;else if(v.searchEndpoint)Math.random()<E&&_.Iy(new _.xd("Should not manually handle search",v)),b="/results?search_query="+encodeURIComponent(v.searchEndpoint.query).replace(/%20/g,"+"),v.searchEndpoint.params&&(b+="&sp="+v.searchEndpoint.params);else if(v.watchEndpoint)Math.random()<E&&_.Iy(new _.xd("Should not manually handle watch",v)),b="/watch?v="+
v.watchEndpoint.videoId,v.watchEndpoint.playlistId&&(b+="&list="+v.watchEndpoint.playlistId),v.watchEndpoint.index&&(b+="&index="+v.watchEndpoint.index),v.watchEndpoint.startTimeSeconds&&(b+="&t="+v.watchEndpoint.startTimeSeconds);else if(v.browseEndpoint)E=v.browseEndpoint.browseId,(F=v.browseEndpoint.canonicalBaseUrl)?b=F:E&&(b=E.substr(0,2),b=b==="FE"?E==="FEwhat_to_watch"?"/":E==="FEmy_videos"?"/my_videos":"/feed/"+E.substr(2):b==="VL"?"/playlist?list="+E.substr(2):"/channel/"+E),b&&v.browseEndpoint.query&&
(b=Qi(b+"/search",{query:v.browseEndpoint.query})),b&&v.browseEndpoint.params&&(b=Qi(b,{params:v.browseEndpoint.params}));else{if(v.urlEndpoint)return v.urlEndpoint.url;v.signInEndpoint?(b="https://accounts.google.com/ServiceLogin",E={},_.gI.extend(E,Q||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),Q=E):v.uploadEndpoint?b="//www.youtube.com/upload":v.liveChatEndpoint?(b=v.liveChatEndpoint,E=_.gI.clone(b),_.rG(b.continuation)&&(F=Object.keys(b.continuation)[0],
E.continuation=b.continuation[F].continuation),b=Qi("/youtubei/v1/live_chat/get_live_chat",E)):v.liveChatReplayEndpoint?(b=_.gI.clone(v.liveChatReplayEndpoint),b.currentPlayerState&&(_.gI.extend(b,b.currentPlayerState),delete b.currentPlayerState),b=Qi("/youtubei/v1/live_chat/get_live_chat_replay",b)):v.liveChatItemContextMenuEndpoint?b=Qi("/youtubei/v1/live_chat/get_item_context_menu",v.liveChatItemContextMenuEndpoint):v.liveChatPurchaseMessageEndpoint?b=Qi("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
v.liveChatPurchaseMessageEndpoint):v.openSuperStickerBuyFlowCommand?b=Qi("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",v.openSuperStickerBuyFlowCommand):v.videoEditEndpoint?b=Qi("/edit",{video_id:v.videoEditEndpoint.videoId}):v.liveDashboardEndpoint?b=v.liveDashboardEndpoint.videoId?Qi("/live_dashboard",{v:v.liveDashboardEndpoint.videoId}):"/live_dashboard":v.signalNavigationEndpoint&&v.signalNavigationEndpoint.signal&&v.signalNavigationEndpoint.signal==="WEBCAM"?b="/webcam":v.getPdgBuyFlowCommand&&
(b=Qi(v.getPdgBuyFlowCommand.buyflowApiPath,{params:v.getPdgBuyFlowCommand.params}))}return b||V?Qi(b,Q||{}):(_.Iy(new _.xd("Error: Can't construct url for endpoint","keys:"+Object.keys(v).sort().join(","),v)),null)};
VCQ=function(v){if(v){if(v.browseEndpoint)return!!v.browseEndpoint.nofollow;if(v.watchEndpoint)return!!v.watchEndpoint.nofollow;if(v.urlEndpoint)return!!v.urlEndpoint.nofollow}return!1};
_.b4E=function(v,Q){var V=Q+v,E=El3.get(V);if(E)return E;v=Q+"-"+v.replace(/([A-Z])/g,"-$1").toLowerCase();El3.set(V,v);return v};
FCm=function(v){var Q=_.oS(v,"action")||_.oS(v,"command")||_.oS(v,"endpoint");if(!Q)return null;Q=_.b4E(Q,"yt");_.y(v,_.Vi)&&(Q+="-"+_.y(v,_.Vi).signal.toLowerCase().replace(/_/g,"-"));return Q};
tCr=function(v){try{var Q=Object.keys(v)}catch(b){return[]}for(var V=0;V<Q.length;V++){var E=Q[V];if(KCt.test(E)||i4Z.test(E))return LCB(v[E])}return[]};
LCB=function(v){return v.command?[v.command]:v.onExecutionAction?[v.onExecutionAction]:v.onResponseReceivedCommand?[v.onResponseReceivedCommand]:v.updateFlowCommand?[v.updateFlowCommand]:v.clientActions?v.clientActions:v.action?[v.action]:v.actions||v.commands||v.onResponseReceivedActions||v.onResponseReceivedCommands||v.onResponseReceivedEndpoints||[]};
eqt=function(v,Q){Q=Q===void 0?!1:Q;var V=_.ht().resolve(_.d$(EH));V||(V=new pwh,_.ht().addProvider({provide:EH,useValue:V}));return V&&v&&!_.gI.isEmpty(v)?V.getUrl(v,Q):""};
Z4b=function(v,Q,V){V=V===void 0?"":V;if(Q){v.data=Q;var E=eqt(Q);E?($P(v,E),VCQ(Q)||!Z9(E)?v.rel="nofollow":v.removeAttribute("rel"),_.y(Q,_.FJ)&&_.y(Q,_.FJ).target==="TARGET_NEW_WINDOW"?v.target="_blank":V?v.target=V:v.removeAttribute("target")):(v.removeAttribute("href"),v.removeAttribute("rel"),v.removeAttribute("target"))}};
_.ez=function(v,Q){var V=iH;if(S_())POE(v,function(){var F=_.aE.apply(0,arguments);Xb(V,function(){Q.apply(null,_.ui(F))})});
else{var E=_.KW.getInstance(),b=Sno(Q);GiT(function(){b.value=Q});
_.jg(function(){var F={},t=_.iM(E,(F[v]=function(){var p=_.aE.apply(0,arguments);Xb(V,function(){b.value.apply(b,_.ui(p))})},F));
return function(){var p={};_.LW(E,(p[v]="",p),t)}})}};
_.Ze=function(v,Q){return dJZ(v,!1,Q)};
_.Pa=function(v,Q){return dJZ(v,!0,Q)};
dJZ=function(v,Q,V){return S_()?hqr(v,Q,V):wwS(v,Q,V)};
wwS=function(v,Q,V){return WU(function(){return hqr(v,Q,V)})};
hqr=function(v,Q,V){var E=YnT(function(b){E.value=b;var F=function(){var t=ha(null);try{return V==null?void 0:V(b)}finally{ha(t)}}();
return function(){F==null||F()}});
E.__expectedTagName=v;E.__optional=Q;E.isIdom=!S_();return E};
A2G=function(v){var Q=iH,V=lH;return{getFn:function(){return function(E){if(!Q.isDisposed){var b=function(){return v(E)};
Ja(function(){return _.fa(b)},V)!==!0&&E.stopPropagation()}}}}};
kwB=function(v){if(typeof v.children==="function")return v.children(),null;v=_.L(v.children);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q();return null};
TWQ=function(v){var Q;return((Q=v.prototype)==null?void 0:Q.render)===void 0};
Yur=function(v){var Q=Array.isArray(v.items)?v.items:Array.from(v.items);v=v.children;return(Array.isArray(Q)?Q:Array.from(Q)).map(v)};
c2Z=function(v,Q,V){V=V===void 0?!1:V;Ja(function(){return y20(v,Q,V)})};
y20=function(v,Q,V){var E=null;xU++;V=(V===void 0?0:V)?fzh:GwZ;try{E=V(v,function(){dX(Q)}),gb(!1)}catch(b){throw gb(!0),b;
}return E===null?v:E};
dX=function(v){if(v!==void 0&&v!==null)if(v instanceof Dx)for(var Q=Vr;Ei()!=null&&bCm in Ei()&&Q.contains(Ei());)KU();else if(Array.isArray(v))for(Q=_.L(v),v=Q.next();!v.done;v=Q.next())dX(v.value);else if(v instanceof nf||v instanceof ZV||"function"==typeof _.PU&&v instanceof _.PU)EyQ(v.toString());else if(_.kb(v)){if(Ei()!==v){var V,E;Q=(E=(V=lH)==null?void 0:V.name)!=null?E:"unknown";throw Error("hc`"+v.tagName+"`"+Q);}KU()}else if(v!=null&&v.contentKind===yr||v instanceof IE||kE3(v))for(Q=YS0(v),
Q=Array.from(Q.childNodes),Q=_.L(Q),v=Q.next();!v.done;v=Q.next())Vr.appendChild(v.value),KU();else if(xP(v)&&(v=v.toString()),V=typeof v,V==="boolean"||V==="number"||V==="string")EyQ(v);else if(typeof v==="function"){Q=Vr;var b=Ei();b&&(b._isSignalTextNode||b._isSafeOrSanitizedHtmlNode)||rr9(Q,b,v);KU()}else if(v.type===Yur)dX(v.type(Object.assign({},v.props,{children:v.children[0]})));else{if(typeof v.type==="string"){a:{v.__open||$FQ(v.type,v.props.idomKey);b=Vr;for(Q in v.props)if(v.props[Q]!==
COo){var F=v.props[Q];V=t1;V.push(Q);V.push(F)}Q=ZQ.attributes;Q=Q===void 0?hq:Q;F=Vr;V=Qr(F);Vu0(F,V,Q);a3B(b,v.props,!0);if((v.props.skip||v.props.skipchildren)&&Vr.hasChildNodes())F1=Vr.lastChild;else{if(v.type==="style"&&Dv3(v.children)===null){F1=Vr.lastChild;Q=void 0;break a}dX(v.children)}IeB();v.__open&&(v.__open=!1);en3(b,v.props);Q=b}return Q}if(v.type===_.w7)dX(v.children);else if(!MC0(v)){Q=v;try{O4h(Q)}catch(t){v=t,(F=ZQ.handleError)==null||F.call.apply(F,[ZQ].concat(_.ui(ar(v,(b=Q.type)==
null?void 0:b.TAG_NAME))))}Q.__open&&(IeB(),Q.__open=!1)}}};
DJB=function(v,Q){var V;TWQ(v)?V=new Sg(Q,v):V=new v(Q);V.__type=v;V.__updateContext={nextState:V.state,isForced:!1};return V};
O4h=function(v){var Q=v.type,V=Q.TAG_NAME;if(Q===kwB)v.props.children=v.children,Q(v.props);else{v.children.length>0&&(v.props.children=v.children);var E;(E=v.props).idomKey||(E.idomKey=Q);if(V){var b=$FQ(V,v.props.idomKey);v.__open=!0;var F=b.__instance}F||(F=DJB(Q,v.props),F.props=null,b&&(b.__instance=F,F.el=b));var t;V=((t=F.__updateContext)!=null?t:{nextState:F.state,isForced:!1}).nextState;F.__updateContext=void 0;Q.getDerivedStateFromProps&&(V=Q.getDerivedStateFromProps(v.props,V));F.props=
v.props;F.state=V;t=function(){var p=F;lk.beforeRender(p);var Z=p.render(p.props);Z?(p.props.idomKey&&(Z.props.idomKey=p.props.idomKey),p=Z):p=void 0;if(Z=p)if(Z.__open=v.__open,p=dX(Z),v.__open=Z.__open,!Q.TAG_NAME)if(p)Q.TAG_NAME=p.tagName.toLowerCase(),p.__instance=F,F.el=p;else{var d;if((d=F.hooks)==null?0:d.length){var w;(w=ZQ.handleError)==null||w.call.apply(w,[ZQ].concat(_.ui(ar(Error("od")))))}}F.didPatch();lk.didPatch(F)};
(V=F.functionComponent)?nhZ(V,t,F.props.debugInstance):t()}};
MC0=function(v){var Q=v.type;if(!TWQ(Q)||Q===kwB||Q.componentType===qA)return!1;v.props.children=v.children.length>1?v.children:v.children[0];var V,E=(V=v.props.idomKey)!=null?V:v.type,b;if(Ei()&&((b=Ei()[CU])==null?void 0:b.key)===E){var F=Ei(),t=F[CU];if(!t)throw Error("gc`"+F.tagName);var p;(p=t.updateSignalsFromIdomProps)==null||p.call(t,v.props);RqQ(t);return!0}if(nlt.has(Q.name))throw p=Q.name,Q=(t=(F=lH)==null?void 0:F.name)!=null?t:"unknown",Error("fc`"+p+"`"+Q);mvo(v.type,v.props,v.children);
v.props.renderedFromIdom=!0;(p=nhZ(v.type,function(){return u29(v.type,v.props)},v.props.debugInstance))&&lz0(p);
return!0};
quo=function(v){for(var Q=0;Q<Oi(v).length;Q++)KU()};
RqQ=function(v){var Q=Sub();if(Q)quo(Q);else for(var V=0;V<v.numNodes;V++)(Q=Sub())?quo(Q):KU()};
Sub=function(){var v;return(v=Ei()[CU])==null?void 0:v.sourceDynamicRange};
lz0=function(v){v=dvm(v);v=Array.isArray(v)?v:[v];v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())Vr.insertBefore(Q.value,Ei()),KU()};
zqB=function(){var v=Wi9(),Q=WU(function(){return{value:0}});
return[Q.value,function(V){if(qP!==null){var E;(E=ZQ.handleError)==null||E.call.apply(E,[ZQ].concat(_.ui(ar(Error("pd")))))}Q.value=typeof V==="function"?V(Q.value):V;v.__updateContext={nextState:v.state,isForced:!0};V=_.La(v.effectContext);E=A1(!1);try{if(v.el){var b,F={},t=(F.props=v.props,F.type=v.__type,F.children=(b=v.props.children)!=null?b:[],F[h1]=!0,F);try{c2Z(v.el,t,!0)}catch(d){var p,Z;(Z=ZQ.handleError)==null||Z.call.apply(Z,[ZQ].concat(_.ui(ar(d,(p=v.__type)==null?void 0:p.TAG_NAME))))}}}finally{A1(E),
_.La(V)}}]};
_.wX=function(v,Q){var V=iH,E=function(b){Xb(V,function(){Q(b)})};
window.addEventListener(v,E,void 0);_.j_(function(){window.removeEventListener(v,E,void 0)})};
_.k0=function(v){var Q=iH;return function(V){var E,b=(E=v.observer)!=null?E:_.ht().resolve(Aq);E=J2B(V);var F=[];v.showOption&&F.push(b.observe(V,function(){Xb(Q,function(){v.visibilityCallback(!0,V)})},v.showOption));
v.hideOption&&F.push(b.observe(V,function(){Xb(Q,function(){v.visibilityCallback(!1,V)})},v.hideOption));
v.prescanOption&&v.prescanCallback&&F.push(b.observe(V,function(){Xb(Q,function(){v.prescanCallback()})},v.prescanOption));
var t;E.visibilityMonitorKeys=((t=E.visibilityMonitorKeys)!=null?t:[]).concat(F)}};
J2B=function(v){var Q;return(Q=v.polymerController)!=null?Q:v};
glr=function(v,Q){var V=NWr;return _.P(_.w7,null,hBS(ZQ.enableLazyTsx,function(){return _.P(xJ0,{id:V,value:v,children:Q})},function(){var E=BWo(V,v);
e_(E);E=_.La(E);try{return Q()}finally{_.La(E)}}))};
xJ0=function(v){var Q=v.children;v=BWo(v.id,v.value);e_(v);v=_.La(v);try{return _.P(_.w7,null,RS(Q()))}finally{_.La(v)}};
BWo=function(v,Q){return Object.assign(Object.create(s7G),{id:v,contextValue:Q})};
uSE=function(v){var Q,V=iH;_.sX(function(){var E=_.La(V),b=A1(!Q);try{if(Q)c2Z(Q,v.children(),!0);else if(Q=RS(v.children()),!(Q instanceof Element))throw Error("qd");}finally{A1(b),_.La(E)}},"g");
return Q};
_.j7o=function(v,Q){var V;Q=WR(function(){var E=A1(!0);xU++;try{V=Oi(v()),gb(!1)}catch(b){throw gb(!0),b;}finally{A1(E)}},Q===void 0?!1:Q);
return[V,Q]};
olB=function(v){var Q=new WCt;Q.abort(v);return Q.signal};
XwZ=function(){if(this.aborted){var v;throw(v=this.reason)!=null?v:new DOMException("signal is aborted without reason","AbortError");}};
$J3=function(v){var Q=new WCt;v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.aborted){Q.abort(V.reason);break}else azh.set(Q.signal,Q),r2b.add(V,Q.signal);return Q.signal};
Iz0=function(){for(var v=_.L(r2b.get(this)),Q=v.next();!Q.done;Q=v.next())azh.get(Q.value).abort(this.reason)};
H4E=function(v){var Q=new WCt;setTimeout(function(){Q.abort(new DOMException("signal timed out","TimeoutError"))},v);
return Q.signal};
mJ0=function(){var v,Q;return{promise:new Promise(function(V,E){v=V;Q=E}),
resolve:v,reject:Q}};
vSE=function(v){var Q=mJ0(),V=Q.promise;UJm.set(v,{promise:V,resolve:Q.resolve,reject:Q.reject});T7||(T7=[],queueMicrotask(function(){var E=[].concat(_.ui(T7));T7=null;var b=jK().loadMultiple(E);E=_.L(E);for(var F=E.next();!F.done;F=E.next())F=F.value,b[F].then(UJm.get(F).resolve,UJm.get(F).reject)}));
T7.push(v);return V};
Vi0=function(v){v=v.buf.charCodeAt(v.pos++);return QIS[v]};
Y0=function(v){var Q=0,V=0;do{var E=Vi0(v);Q|=(E&31)<<V;V+=5}while(E&32);return Q<0?Q+4294967296:Q};
brT=function(v,Q,V,E){var b=!0;b=b===void 0?!1:b;Q=Q===void 0?!1:Q;E=E===void 0?{}:E;var F=E.cssRowKey||"",t=E.combinedSignature||"";!F&&window&&window._F_cssRowKey&&(F=window._F_cssRowKey,!t&&window._F_combinedSignature&&(t=window._F_combinedSignature));if(F&&typeof window._F_installCss!=="function")throw Error("Ad");var p=E.loaderClass||_.yi;v=JF9(v===void 0?"base-js":v);Q=new p(Y_G(xLE("",v)),F,t,b,Q);b=E.useCors||v&&v.hasAttribute("crossorigin");v=E.corsMode||v&&v.getAttribute("crossorigin");
b&&(Q.useCors_=b);v&&(Q.corsMode_=v);E.urlMaxLength&&(Q.urlMaxLength=E.urlMaxLength);V&&(Q.insertPos=V);E.fetchPriority&&(Q.fetchPriority=E.fetchPriority);var Z=jK();Z.JSC$10134_loader_=Q;Z.setBatchModeEnabled(!0);_.ESo=E.batchingStrategy==="BATCH"?vSE:function(d){return Promise.resolve(Z.load(d))}};
irZ=function(v,Q,V){F6r(v,Q);v[Q][K6r].unshift(V)};
F6r=function(v,Q){if(!v[Q]||!v[Q][K6r]){var V=v[Q],E=V?[V]:[];v[Q]=function(){for(var b=_.L(E),F=b.next();!F.done;F=b.next())F.value.apply(this,arguments)};
v[Q][K6r]=E}};
L6T=function(v){if(!v)return[];var Q=[];v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,Array.isArray(V)?Q.push.apply(Q,_.ui(L6T(V))):Q.push(V);return Q};
_.fW=function(v,Q){if(v&&tiS.test(v)||v==="//")return v;if(pY9===void 0){pY9=!1;try{var V=new URL("b","http://a");V.pathname="c%20d";pY9=V.href==="http://a/c%20d"}catch(E){}}Q||(Q=document.baseURI||window.location.href);if(pY9)try{return(new URL(v,Q)).href}catch(E){return v}ca||(ca=document.implementation.createHTMLDocument("temp"),ca.base=ca.createElement("base"),ca.head.appendChild(ca.base),ca.anchor=ca.createElement("a"),ca.body.appendChild(ca.anchor));ca.base.href=Q;ca.anchor.href=v;return ca.anchor.href||
v};
ZrS=function(v,Q){return v.replace(eeh,function(V,E,b,F){return E+"'"+_.fW(b.replace(/["']/g,""),Q)+"'"+F})};
PAT=function(v){return v.substring(0,v.lastIndexOf("/")+1)};
wY9=function(){dME=!1;for(var v=G7.length,Q=0;Q<v;Q++){var V=G7[Q];if(V)try{V()}catch(E){setTimeout(function(){throw E;})}}G7.splice(0,v);
heh+=v};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(v){console.log("["+v.is+"]: registered")};
kz3=function(v){AxZ.push(v)};
CW=function(v){return TsE[v]||(TsE[v]=v.indexOf("-")<0?v:v.replace(YIt,function(Q){return Q[1].toUpperCase()}))};
MF=function(v){return TsE[v]||(TsE[v]=v.replace(yxr,"-$1").toLowerCase())};
cxT=function(v,Q){var V=Q.parentInfo&&cxT(v,Q.parentInfo);if(V)for(v=V.firstChild,V=0;v;v=v.nextSibling){if(Q.parentIndex===V++)return v}else return v};
fv3=function(v,Q){v=v._methodHost||v;return function(V){if(v[Q])v[Q](V,V.detail);else console.warn("listener method `"+Q+"` not defined")}};
OH=function(v){return v.indexOf(".")>=0};
De=function(v){var Q=v.indexOf(".");return Q===-1?v:v.slice(0,Q)};
Gzr=function(v,Q){return v.indexOf(Q+".")===0};
Rc=function(v,Q){return Q.indexOf(v+".")===0};
nW=function(v,Q,V){return Q+V.slice(v.length)};
CA0=function(v,Q){return v===Q||Gzr(v,Q)||Rc(v,Q)};
lM=function(v){if(Array.isArray(v)){for(var Q=[],V=0;V<v.length;V++)for(var E=v[V].toString().split("."),b=0;b<E.length;b++)Q.push(E[b]);return Q.join(".")}return v};
Mim=function(v){return Array.isArray(v)?lM(v).split("."):v.toString().split(".")};
qF=function(v,Q,V){Q=Mim(Q);for(var E=0;E<Q.length;E++){if(!v)return;v=v[Q[E]]}V&&(V.path=Q.join("."));return v};
Orb=function(v,Q,V){var E=Mim(Q),b=E[E.length-1];if(E.length>1){for(Q=0;Q<E.length-1;Q++)if(v=v[E[Q]],!v)return;v[b]=V}else v[Q]=V;return E.join(".")};
DMG=function(v,Q,V){var E=v[Q];if(!E)E=v[Q]={};else if(!v.hasOwnProperty(Q)&&(E=v[Q]=Object.create(v[Q]),V))for(var b in E)for(v=E[b],Q=E[b]=Array(v.length),V=0;V<v.length;V++)Q[V]=v[V];return E};
z7=function(v,Q,V,E,b,F){if(Q){var t=!1,p=Sz++,Z;for(Z in V){var d=b?De(Z):Z;if(d=Q[d])for(var w=0,A=d.length,k=void 0;w<A&&(k=d[w]);w++)k.info&&k.info.lastRun===p||b&&!Rer(Z,k.trigger)||(k.info&&(k.info.lastRun=p),k.fn(v,Z,V,E,k.info,b,F),t=!0)}return t}return!1};
Rer=function(v,Q){if(Q){var V=Q.name;return V==v||!(!Q.structured||!Gzr(V,v))||!(!Q.wildcard||!Rc(V,v))}return!0};
nSG=function(v,Q,V,E,b){Q=typeof b.method==="string"?v[b.method]:b.method;V=b.property;Q?Q.call(v,v.__data[V],E[V]):b.dynamicFn||console.warn("observer method `"+b.method+"` not defined")};
lvB=function(v,Q,V,E){V={value:V,queueProperty:!0};E&&(V.path=E);(0,_.Jq)(v).dispatchEvent(new CustomEvent(Q,{detail:V}))};
qIB=function(v,Q,V,E,b,F){F=(E=(F?De(Q):Q)!=Q?Q:null)?qF(v,E):v.__data[Q];E&&F===void 0&&(F=V[Q]);lvB(v,b.eventName,F,E)};
SI9=function(v,Q,V,E,b){V=v.__data[Q];NF&&(V=NF(V,b.attrName,"attribute",v));v._propertyToAttribute(Q,b.attrName,V)};
Jx0=function(v){var Q=v.constructor.__orderedComputedDeps;if(!Q){Q=new Map;for(var V=v.__computeEffects,E=zeb(v),b=E.counts,F=E.ready,t=E.total;E=F.shift();)Q.set(E,Q.size),(E=V[E])&&E.forEach(function(p){p=p.info.methodInfo;--t;--b[p]===0&&F.push(p)});
t!==0&&console.warn("Computed graph for "+v.localName+" incomplete; circular?");v.constructor.__orderedComputedDeps=Q}return Q};
zeb=function(v){var Q=v.__computeInfo,V={};v=v.__computeEffects;var E=[],b=0,F;for(F in Q){var t=Q[F];b+=V[F]=t.args.filter(function(Z){return!Z.literal}).length+(t.dynamicFn?1:0)}for(var p in v)Q[p]||E.push(p);
return{counts:V,ready:E,total:b}};
xMZ=function(v,Q,V,E,b){Q=Ns0(v,Q,V,E,b);if(Q===x0)return!1;b=b.methodInfo;if(v.__dataHasAccessor&&v.__dataHasAccessor[b])return v._setPendingProperty(b,Q,!0);v[b]=Q;return!1};
sIT=function(v,Q,V,E,b,F,t){V.bindings=V.bindings||[];E={kind:E,target:b,parts:F,literal:t,isCompound:F.length!==1};V.bindings.push(E);E.target&&E.kind!="attribute"&&E.kind!="text"&&!E.isCompound&&E.parts[0].mode==="{"&&(V=E.parts[0],F=V.negate,E.listenerEvent=V.event||MF(b)+"-changed",E.listenerNegate=F);b=Q.nodeInfoList.length;for(V=0;V<E.parts.length;V++){var p=E.parts[V];p.compoundIndex=V;F=v;t=Q;var Z=E,d=p,w=b;if(!d.literal)if(Z.kind==="attribute"&&Z.target[0]==="-")console.warn("Cannot set attribute "+
Z.target+' because "-" is not a valid attribute starting character');else for(p=d.dependencies,Z={index:w,binding:Z,part:d,evaluator:F},d=0;d<p.length;d++)w=p[d],typeof w=="string"&&(w=BsE(w),w.wildcard=!0),F._addTemplatePropertyEffect(t,w.rootProperty,{fn:gSB,info:Z,trigger:w})}};
gSB=function(v,Q,V,E,b,F,t){t=t[b.index];var p=b.binding,Z=b.part;F&&Z.source&&Q.length>Z.source.length&&p.kind=="property"&&!p.isCompound&&t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[p.target]?(V=V[Q],Q=nW(Z.source,p.target,Q),t._setPendingPropertyOrPath(Q,V,!1,!0)&&v._enqueueClient(t)):(Q=b.evaluator._evaluateBinding(v,Z,Q,V,E,F),Q!==x0&&(p.isCompound&&(V=t.__dataCompoundStorage[p.target],V[Z.compoundIndex]=Q,Q=V.join("")),p.kind==="attribute"||p.target!=="textContent"&&
(p.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(Q=Q==void 0?"":Q),Z=Q,NF&&(Z=NF(Z,p.target,p.kind,t)),p.kind=="attribute"?v._valueToNodeAttribute(t,Z,p.target):(p=p.target,t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[p]?t.__readOnly&&t.__readOnly[p]||t._setPendingProperty(p,Z)&&v._enqueueClient(t):v._setUnmanagedPropertyToNode(t,p,Z))))};
uQr=function(v,Q,V){if(V.listenerEvent){var E=V.parts[0];v.addEventListener(V.listenerEvent,function(b){var F=V.target,t=E.source,p=E.negate,Z=b.detail,d=Z&&Z.path;d?(t=nW(F,t,d),b=Z&&Z.value):b=b.currentTarget[F];Q.__readOnly&&Q.__readOnly[t]||!Q._setPendingPropertyOrPath(t,p?!b:b,!0,!!d)||Z&&Z.queueProperty||Q._invalidateProperties()})}};
jIo=function(v,Q,V,E,b,F){F=Q.static||F&&(typeof F!=="object"||F[Q.methodName]);b={methodName:Q.methodName,args:Q.args,methodInfo:b,dynamicFn:F};for(var t=0,p=void 0;t<Q.args.length&&(p=Q.args[t]);t++)p.literal||v._addPropertyEffect(p.rootProperty,V,{fn:E,info:b,trigger:p});F&&v._addPropertyEffect(Q.methodName,V,{fn:E,info:b});return b};
Ns0=function(v,Q,V,E,b){E=v._methodHost||v;var F=E[b.methodName];if(F)return v=v._marshalArgs(b.args,Q,V),v===x0?x0:F.apply(E,v);b.dynamicFn||console.warn("method `"+b.methodName+"` not defined")};
W6E=function(v){for(var Q="",V=0;V<v.length;V++)Q+=v[V].literal||"";return Q};
av9=function(v){if(v=v.match(/([^\s]+?)\(([\s\S]*)\)/)){var Q={methodName:v[1],static:!0,args:oSr};return v[2].trim()?XYr(v[2].replace(/\\,/g,"&comma;").split(","),Q):Q}return null};
XYr=function(v,Q){Q.args=v.map(function(V){V=BsE(V);V.literal||(Q.static=!1);return V},this);
return Q};
BsE=function(v){v=v.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var Q={name:v,value:"",literal:!1},V=v[0];V==="-"&&(V=v[1]);V>="0"&&V<="9"&&(V="#");switch(V){case "'":case '"':Q.value=v.slice(1,-1);Q.literal=!0;break;case "#":Q.value=Number(v),Q.literal=!0}Q.literal||(Q.rootProperty=De(v),Q.structured=OH(v),Q.structured&&(Q.wildcard=v.slice(-2)==".*",Q.wildcard&&(Q.name=v.slice(0,-2))));return Q};
rxQ=function(v,Q,V){v=qF(v,V);v===void 0&&(v=Q[V]);return v};
$M0=function(v,Q,V,E){E={indexSplices:E};Ba&&!v._overrideLegacyUndefined&&(Q.splices=E);v.notifyPath(V+".splices",E);v.notifyPath(V+".length",Q.length);Ba&&!v._overrideLegacyUndefined&&(E.indexSplices=[])};
gX=function(v,Q,V,E,b,F){$M0(v,Q,V,[{index:E,addedCount:b,removed:F,object:Q,type:"splice"}])};
Ivr=function(v){v=ZrS((v.body?v.body:v).textContent,v.baseURI);var Q=document.createElement("style");Q.textContent=v;return Q};
mM3=function(v){v=v.trim().split(/\s+/);for(var Q=[],V=0;V<v.length;V++)Q.push.apply(Q,_.ui(Hro(v[V])));return Q};
Hro=function(v){var Q=sH.import(v);if(!Q)return console.warn("Could not find style data in module named",v),[];if(Q._styles===void 0){v=[];v.push.apply(v,_.ui(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Q)));var V=Q.querySelector("template");V&&v.push.apply(v,_.ui(UMB(V,Q.assetpath)));Q._styles=v}return Q._styles};
UMB=function(v,Q){if(!v._styles){for(var V=[],E=v.content.querySelectorAll("style"),b=0;b<E.length;b++){var F=E[b],t=F.getAttribute("include");t&&V.push.apply(V,_.ui(mM3(t).filter(function(p,Z,d){return d.indexOf(p)===Z})));
Q&&(F.textContent=ZrS(F.textContent,Q));V.push(F)}v._styles=V}return v._styles};
vGZ=function(v){return(v=sH.import(v))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(v){var Q=[];v=v.querySelectorAll("link[rel=import][type~=css]");for(var V=0;V<v.length;V++){var E=v[V];if(E.import){var b=E.import;if((E=E.hasAttribute("shady-unscoped"))&&!b._unscopedStyle){var F=Ivr(b);F.setAttribute("shady-unscoped","");b._unscopedStyle=F}else b._style||(b._style=Ivr(b));Q.push(E?b._unscopedStyle:b._style)}}return Q};
Vtm=function(v){v=v.trim().split(/\s+/);for(var Q="",V=0;V<v.length;V++)Q+=QCm(v[V]);return Q};
QCm=function(v){var Q=sH.import(v);if(Q&&Q._cssText===void 0){var V=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Q),E=Q.querySelector("template");E&&(V+=EGh(E,Q.assetpath));Q._cssText=V||null}Q||console.warn("Could not find style data in module named",v);return Q&&Q._cssText||""};
EGh=function(v,Q){var V="";v=UMB(v,Q);for(Q=0;Q<v.length;Q++){var E=v[Q];E.parentNode&&E.parentNode.removeChild(E);V+=E.textContent}return V};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(v){var Q="";v=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v);for(var V=0;V<v.length;V++)Q+=v[V].textContent;return Q};
uM=function(v,Q){return{index:v,removed:[],addedCount:Q}};
Fhm=function(v,Q,V,E){var b=0,F=0,t=0,p=0,Z=Math.min(Q-b,E-F);if(b==0&&F==0)a:{for(t=0;t<Z;t++)if(v[t]!==V[t])break a;t=Z}if(Q==v.length&&E==V.length){p=v.length;for(var d=V.length,w=0;w<Z-t&&bqZ(v[--p],V[--d]);)w++;p=w}b+=t;F+=t;Q-=p;E-=p;if(Q-b==0&&E-F==0)return[];if(b==Q){for(Q=uM(b,0);F<E;)Q.removed.push(V[F++]);return[Q]}if(F==E)return[uM(b,Q-b)];Z=b;t=F;E=E-t+1;p=Q-Z+1;Q=Array(E);for(d=0;d<E;d++)Q[d]=Array(p),Q[d][0]=d;for(d=0;d<p;d++)Q[0][d]=d;for(d=1;d<E;d++)for(w=1;w<p;w++)if(v[Z+w-1]===
V[t+d-1])Q[d][w]=Q[d-1][w-1];else{var A=Q[d-1][w]+1,k=Q[d][w-1]+1;Q[d][w]=A<k?A:k}Z=Q.length-1;t=Q[0].length-1;E=Q[Z][t];for(v=[];Z>0||t>0;)Z==0?(v.push(2),t--):t==0?(v.push(3),Z--):(p=Q[Z-1][t-1],d=Q[Z-1][t],w=Q[Z][t-1],A=d<w?d<p?d:p:w<p?w:p,A==p?(p==E?v.push(0):(v.push(1),E=p),Z--,t--):A==d?(v.push(3),Z--,E=d):(v.push(2),t--,E=w));v.reverse();Q=void 0;Z=[];for(t=0;t<v.length;t++)switch(v[t]){case 0:Q&&(Z.push(Q),Q=void 0);b++;F++;break;case 1:Q||(Q=uM(b,0));Q.addedCount++;b++;Q.removed.push(V[F]);
F++;break;case 2:Q||(Q=uM(b,0));Q.addedCount++;b++;break;case 3:Q||(Q=uM(b,0)),Q.removed.push(V[F]),F++}Q&&Z.push(Q);return Z};
KhQ=function(v,Q){return Fhm(v,v.length,Q,Q.length)};
bqZ=function(v,Q){return v===Q};
LhE=function(v){if(v instanceof iqE)return v.value;throw Error("Id`"+v);};
ttB=function(v,Q){for(var V in Q)V===null?v.style.removeProperty(V):v.style.setProperty(V,Q[V])};
pZB=function(v,Q){return(v=window.getComputedStyle(v).getPropertyValue(Q))?v.trim():""};
d3o=function(v){requestAnimationFrame(function(){eSo?eSo(v):(ZqS||(ZqS=new Promise(function(Q){PJT=Q}),document.readyState==="complete"?PJT():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&PJT()})),ZqS.then(function(){v&&v()}))})};
A_G=function(v){hSt=v&&v.shimcssproperties?!1:wZh||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
c_9=function(v){if(!(knG.indexOf(v)>-1)&&v!=="touchend"&&T3r&&Y$h&&y_G)return{passive:!0}};
Mtt=function(v){for(var Q=fo3?["click"]:knG,V=0,E;V<Q.length;V++)E=Q[V],v?(GnB.length=0,document.addEventListener(E,CJ3,!0)):document.removeEventListener(E,CJ3,!0)};
jz=function(v){var Q=v.type;return knG.indexOf(Q)>-1?Q==="mousemove"?(Q=v.buttons===void 0?1:v.buttons,v instanceof window.MouseEvent&&!Oqb&&(Q=D3t[v.which]||0),!!(Q&1)):(v.button===void 0?0:v.button)===0:!1};
RSh=function(v){if(v.type==="click"){if(v.detail===0)return!0;var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);if(!Q.nodeType||Q.nodeType!==Node.ELEMENT_NODE)return!0;Q=Q.getBoundingClientRect();var V=v.pageX;v=v.pageY;return!(V>=Q.left&&V<=Q.right&&v>=Q.top&&v<=Q.bottom)}return!1};
nGS=function(v,Q,V){v.movefn=Q;v.upfn=V;document.addEventListener("mousemove",Q);document.addEventListener("mouseup",V)};
Wa=function(v){document.removeEventListener("mousemove",v.movefn);document.removeEventListener("mouseup",v.upfn);v.movefn=null;v.upfn=null};
loo=function(v,Q){for(var V=document.elementFromPoint(v,Q),E=V;E&&E.shadowRoot&&!window.ShadyDOM;){var b=E;E=E.shadowRoot.elementFromPoint(v,Q);if(b===E)break;E&&(V=E)}return V};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var Q=q$Q(v);return Q.length>0?Q[0]:v.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var Q=v.type,V=v.currentTarget.__polymerGestures;if(V&&(V=V[Q])){if(!v.__polymerGesturesHandled&&(v.__polymerGesturesHandled={},Q.slice(0,5)==="touch")){var E=v.changedTouches[0];Q==="touchstart"&&v.touches.length===1&&(S$r=E.identifier);if(S$r!==E.identifier)return;T3r||(Q==="touchstart"||Q==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)}E=
v.__polymerGesturesHandled;if(!E.skip){for(var b=0,F;b<oc.length;b++)F=oc[b],V[F.name]&&!E[F.name]&&F.flow&&F.flow.start.indexOf(v.type)>-1&&F.reset&&F.reset();for(b=0;b<oc.length;b++)F=oc[b],V[F.name]&&!E[F.name]&&(E[F.name]=!0,F[Q](v))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var Q=v.changedTouches[0],V=v.type;if(V==="touchstart")zSQ=Q.clientX,J_Q=Q.clientY,N3h=!1;else if(V==="touchmove"&&!N3h){N3h=!0;V="auto";for(var E=q$Q(v),b=0,F;b<E.length;b++)if(F=E[b],F.__polymerGesturesTouchAction){V=F.__polymerGesturesTouchAction;break}E=!1;b=Math.abs(zSQ-Q.clientX);Q=Math.abs(J_Q-Q.clientY);v.cancelable&&(V==="none"?E=!0:V==="pan-x"?E=Q>b:V==="pan-y"&&(E=b>Q));E?v.preventDefault():
XJ("track")}};
rX=function(v,Q,V){return ac[Q]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,Q,V),!0):!1};
$0=function(v,Q,V){return ac[Q]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,Q,V),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,Q,V){var E=ac[Q],b=E.deps,F=E.name,t=v.__polymerGestures;t||(v.__polymerGestures=t={});for(var p=0,Z,d;p<b.length;p++)Z=b[p],fo3&&knG.indexOf(Z)>-1&&Z!=="click"||((d=t[Z])||(t[Z]=d={_count:0}),d._count===0&&v.addEventListener(Z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,c_9(Z)),d[F]=(d[F]||0)+1,d._count=(d._count||0)+1);v.addEventListener(Q,V);E.touchAction&&_.Ic(v,E.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,Q,V){var E=ac[Q],b=E.deps;E=E.name;var F=v.__polymerGestures;if(F)for(var t=0,p,Z;t<b.length;t++)p=b[t],(Z=F[p])&&Z[E]&&(Z[E]=(Z[E]||1)-1,Z._count=(Z._count||1)-1,Z._count===0&&v.removeEventListener(p,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,c_9(p)));v.removeEventListener(Q,V)};
x30=function(v){oc.push(v);for(var Q=0;Q<v.emits.length;Q++)ac[v.emits[Q]]=v};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){for(var Q=0,V;Q<oc.length;Q++){V=oc[Q];for(var E=0,b;E<V.emits.length;E++)if(b=V.emits[E],b===v)return V}return null};
_.Ic=function(v,Q){T3r&&v instanceof HTMLElement&&Ha.run(function(){v.style.touchAction=Q});
v.__polymerGesturesTouchAction=Q};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,Q,V){Q=new Event(Q,{bubbles:!0,cancelable:!0,composed:!0});Q.detail=V;(0,_.Jq)(v).dispatchEvent(Q);Q.defaultPrevented&&(v=V.preventer||V.sourceEvent)&&v.preventDefault&&v.preventDefault()};
XJ=function(v){v=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v.info&&(v.info.prevent=!0)};
mo=function(v,Q,V,E){Q&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Q,v,{x:V.clientX,y:V.clientY,sourceEvent:V,preventer:E,prevent:function(b){return XJ(b)}})};
B3b=function(v,Q,V){if(v.prevent)return!1;if(v.started)return!0;V=Math.abs(v.y-V);return Math.abs(v.x-Q)>=5||V>=5};
gGG=function(v,Q,V){if(Q){var E=v.moves[v.moves.length-2],b=v.moves[v.moves.length-1],F=b.x-v.x,t=b.y-v.y,p=0;if(E){var Z=b.x-E.x;p=b.y-E.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Q,"track",{state:v.state,x:V.clientX,y:V.clientY,dx:F,dy:t,ddx:Z,ddy:p,sourceEvent:V,hover:function(){return loo(V.clientX,V.clientY)}})}};
uu0=function(v,Q,V){var E=Math.abs(Q.clientX-v.x),b=Math.abs(Q.clientY-v.y),F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V||Q);!F||sCr[F.localName]&&F.hasAttribute("disabled")||!(isNaN(E)||isNaN(b)||E<=25&&b<=25||RSh(Q))||v.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,"tap",{x:Q.clientX,y:Q.clientY,sourceEvent:Q,preventer:V})};
jCr=function(v,Q,V,E,b){var F;b&&(F=typeof V==="object"&&V!==null)&&(E=v.__dataTemp[Q]);E=E!==V&&(E===E||V===V);F&&E&&(v.__dataTemp[Q]=V);return E};
oGB=function(){if(UH&&!V0){if(!Wh9){Wh9=!0;var v=document.createElement("style");v.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(v)}return!0}return!1};
aoZ=function(){return XZb};
r_o=function(v,Q){XZb=v;Object.setPrototypeOf(v,Q.prototype);new Q;XZb=null};
$3b=function(v,Q){for(var V=0;V<Q.length;V++){var E=Q[V];if(!!v!=!!E.__hideTemplateChildren__)if(E.nodeType===Node.TEXT_NODE)v?(E.__polymerTextContent__=E.textContent,E.textContent=""):E.textContent=E.__polymerTextContent__;else if(E.localName==="slot")if(v)E.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Jq)((0,_.Jq)(E).parentNode).replaceChild(E.__polymerReplaced__,E);else{var b=E.__polymerReplaced__;b&&(0,_.Jq)((0,_.Jq)(b).parentNode).replaceChild(E,b)}else E.style&&(v?(E.__polymerDisplay__=
E.style.display,E.style.display="none"):E.style.display=E.__polymerDisplay__);E.__hideTemplateChildren__=v;E._showHideChildren&&E._showHideChildren(v)}};
Io0=function(v){return(v=v.__dataHost)&&v._methodHost||v};
U3E=function(v,Q,V){var E=V.mutableData?Hqr:ES;bu.mixin&&(E=bu.mixin(E));var b=function(){return E.apply(this,arguments)||this};
_.f(b,E);b.prototype.__templatizeOptions=V;b.prototype._bindTemplate(v);m3B(b,v,Q,V);return b};
bNZ=function(v,Q,V,E){var b=V.forwardHostProp;if(b&&Q.hasHostProps){var F=v.localName=="template",t=Q.templatizeTemplateClass;if(!t){if(F){var p=V.mutableData?vK0:QqT;t=function(){return p.apply(this,arguments)||this};
_.f(t,p);t=Q.templatizeTemplateClass=t}else{var Z=v.constructor;t=function(){return Z.apply(this,arguments)||this};
_.f(t,Z);t=Q.templatizeTemplateClass=t}var d=Q.hostProps,w;for(w in d)t.prototype._addPropertyEffect("_host_"+w,t.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:VmE(b)}),t.prototype._createNotifyingProperty("_host_"+w);F2&&E&&EKh(Q,V,E)}v.__dataProto&&Object.assign(v.__data,v.__dataProto);if(F)r_o(v,t),v.__dataTemp={},v.__dataPending=null,v.__dataOld=null,v._enableProperties();else{Object.setPrototypeOf(v,t.prototype);Q=Q.hostProps;for(var A in Q)A="_host_"+A,A in v&&(Q=v[A],delete v[A],v.__data[A]=
Q)}}};
VmE=function(v){return function(Q,V,E){v.call(Q.__templatizeOwner,V.substring(6),E[V])}};
m3B=function(v,Q,V,E){var b=V.hostProps||{},F;for(F in E.instanceProps){delete b[F];var t=E.notifyInstanceProp;t&&v.prototype._addPropertyEffect(F,v.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:F30(t)})}if(E.forwardHostProp&&Q.__dataHost)for(var p in b)V.hasHostProps||(V.hasHostProps=!0),v.prototype._addPropertyEffect(p,v.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:K3Z()})};
F30=function(v){return function(Q,V,E){v.call(Q.__templatizeOwner,Q,V,E[V])}};
K3Z=function(){return function(v,Q,V){v.__dataHost._setPendingPropertyOrPath("_host_"+Q,V[Q],!0,!0)}};
bu=function(v,Q,V){if(K2&&!Io0(v))throw Error("Od");V=V||{};if(v.__templatizeOwner)throw Error("Pd");v.__templatizeOwner=Q;var E=(Q?Q.constructor:ES)._parseTemplate(v),b=E.templatizeInstanceClass;b||(b=U3E(v,E,V),E.templatizeInstanceClass=b);var F=Io0(v);bNZ(v,E,V,F);V=function(){return b.apply(this,arguments)||this};
_.f(V,b);V.prototype._methodHost=F;V.prototype.__dataHost=v;V.prototype.__templatizeOwner=Q;V.prototype.__hostProps=E.hostProps;return V};
EKh=function(v,Q,V){V=V.constructor._properties;v=v.propertyEffects;Q=Q.instanceProps;for(var E in v)if(!(V[E]||Q&&Q[E]))for(var b=v[E],F=0;F<b.length;F++){var t=b[F].info.part;if(!t.signature||!t.signature.static){console.warn("Property '"+E+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
iNb=function(v,Q){for(var V;Q;)if(V=Q.__dataHost?Q:Q.__templatizeInstance)if(V.__dataHost!=v)Q=V.__dataHost;else return V;else Q=(0,_.Jq)(Q).parentNode;return null};
iu=function(v){return v.localName==="slot"};
L3b=function(){for(var v=L2.prototype,Q="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),V={},E=0;E<Q.length;V={method$jscomp$33:void 0},E++)V.method$jscomp$33=Q[E],v[V.method$jscomp$33]=function(b){return function(){return this.node[b.method$jscomp$33].apply(this.node,arguments)}}(V)};
tmT=function(v,Q){for(var V={},E=0;E<Q.length;V={name$jscomp$448:void 0},E++)V.name$jscomp$448=Q[E],Object.defineProperty(v,V.name$jscomp$448,{get:function(b){return function(){return this.node[b.name$jscomp$448]}}(V),
configurable:!0})};
pC0=function(){for(var v=L2.prototype,Q=["textContent","innerHTML","className"],V={},E=0;E<Q.length;V={name$jscomp$449:void 0},E++)V.name$jscomp$449=Q[E],Object.defineProperty(v,V.name$jscomp$449,{get:function(b){return function(){return this.node[b.name$jscomp$449]}}(V),
set:function(b){return function(F){this.node[b.name$jscomp$449]=F}}(V),
configurable:!0})};
eLr=function(){tr=document.documentElement.getAttribute("dir");tr=document.documentElement.getAttribute("dir");for(var v=0;v<p2.length;v++){var Q=p2[v];Q.__autoDirOptOut||Q.setAttribute("dir",tr)}};
hL9=function(){eu=!0;requestAnimationFrame(function(){eu=!1;ZNZ(Pqr);setTimeout(function(){for(var v=0,Q=Z3.length;v<Q;v++)dqE(Z3.shift())})})};
ZNZ=function(v){for(;v.length;)dqE(v.shift())};
dqE=function(v){var Q=v[0],V=v[1];v=v[2];try{V.apply(Q,v)}catch(E){setTimeout(function(){throw E;})}};
_.wC3=function(v,Q,V){eu||hL9();Pqr.push([v,Q,V])};
_.PE=function(v,Q,V){eu||hL9();Z3.push([v,Q,V])};
TBb=function(v,Q){Q=Q===void 0?!1:Q;if(!AIT||!ksm||!AIT.handlesDynamicScoping)return null;var V=ksm.ScopingShim;if(!V)return null;var E=V.scopeForNode(v),b=(0,_.Jq)(v).getRootNode(),F=function(t){if((0,_.Jq)(t).getRootNode()===b){var p=Array.from(AIT.nativeMethods.querySelectorAll.call(t,"*"));p.push(t);for(t=0;t<p.length;t++){var Z=p[t];if((0,_.Jq)(Z).getRootNode()===b){var d=V.currentScopeForNode(Z);d!==E&&(d!==""&&V.unscopeNode(Z,d),V.scopeNode(Z,E))}}}};
F(v);return Q?(Q=new MutationObserver(function(t){for(var p=0;p<t.length;p++)for(var Z=t[p],d=0;d<Z.addedNodes.length;d++){var w=Z.addedNodes[d];w.nodeType===Node.ELEMENT_NODE&&F(w)}}),Q.observe(v,{childList:!0,
subtree:!0}),Q):null};
Y7m=function(){document.body.removeAttribute("unresolved")};
Cqr=function(v){var Q=v=v.replace(yIG,"").replace(cIo,""),V=new fDB;V.start=0;V.end=Q.length;for(var E=V,b=0,F=Q.length;b<F;b++)if(Q[b]==="{"){E.rules||(E.rules=[]);var t=E,p=t.rules[t.rules.length-1]||null;E=new fDB;E.start=b+1;E.parent=t;E.previous=p;t.rules.push(E)}else Q[b]==="}"&&(E.end=b+1,E=E.parent||V);return GsZ(V,v)};
GsZ=function(v,Q){var V=Q.substring(v.start,v.end-1);v.parsedCssText=v.cssText=V.trim();v.parent&&(V=Q.substring(v.previous?v.previous.end:v.parent.start,v.start-1),V=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(V),V=V.replace(Mmh," "),V=V.substring(V.lastIndexOf(";")+1),V=v.parsedSelector=v.selector=V.trim(),v.atRule=V.indexOf("@")===0,v.atRule?V.indexOf("@media")===0?v.type=4:V.match(ONZ)&&(v.type=7,v.keyframesName=v.selector.split(Mmh).pop()):V.indexOf("--")===
0?v.type=1E3:v.type=1);if(V=v.rules)for(var E=0,b=V.length,F=void 0;E<b&&(F=V[E]);E++)GsZ(F,Q);return v};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(v){return v.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var Q=arguments[1],V=6-Q.length;V--;)Q="0"+Q;return"\\"+Q})};
Dqh=function(v,Q,V){V=V===void 0?"":V;var E="";if(v.cssText||v.rules){var b=v.rules;if(b&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(b))for(var F=0,t=b.length,p=void 0;F<t&&(p=b[F]);F++)E=Dqh(p,Q,E);else Q?Q=v.cssText:(Q=v.cssText,Q=Q.replace(RLE,"").replace(nKm,""),Q=Q.replace(lDb,"").replace(q70,"")),(E=Q.trim())&&(E="  "+E+"\n")}E&&(v.selector&&(V+=v.selector+" {\n"),V+=E,v.selector&&(V+="}\n\n"));return V};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(v){v=v[0];return!!v&&!!v.selector&&v.selector.indexOf("--")===0};
zL9=function(v){if(v=S7o[v])v._applyShimCurrentVersion=v._applyShimCurrentVersion||0,v._applyShimValidatingVersion=v._applyShimValidatingVersion||0,v._applyShimNextVersion=(v._applyShimNextVersion||0)+1};
JI0=function(v){return v._applyShimCurrentVersion===v._applyShimNextVersion};
xq3=function(v){v._applyShimValidatingVersion=v._applyShimNextVersion;v._validating||(v._validating=!0,NBr.then(function(){v._applyShimCurrentVersion=v._applyShimNextVersion;v._validating=!1}))};
gKE=function(v){if(!v)return"";typeof v==="string"&&(v=Cqr(v));return Dqh(v,BBE)};
sqZ=function(v){!v.__cssRules&&v.textContent&&(v.__cssRules=Cqr(v.textContent));return v.__cssRules||null};
jq9=function(v,Q,V,E){if(v){var b=!1,F=v.type;if(E&&F===4){var t=v.selector.match(uvT);t&&(window.matchMedia(t[1]).matches||(b=!0))}F===1?Q(v):V&&F===7?V(v):F===1E3&&(b=!0);if((v=v.rules)&&!b)for(b=0,F=v.length,t=void 0;b<F&&(t=v[b]);b++)jq9(t,Q,V,E)}};
W39=function(v,Q){var V=v.indexOf("var(");if(V===-1)return Q(v,"","","");a:{var E=0;var b=V+3;for(var F=v.length;b<F;b++)if(v[b]==="(")E++;else if(v[b]===")"&&--E===0)break a;b=-1}E=v.substring(V+4,b);V=v.substring(0,V);v=W39(v.substring(b+1),Q);F=E.indexOf(",");if(F===-1)return Q(V,E.trim(),"",v);b=E.substring(0,F).trim();E=E.substring(F+1).trim();return Q(V,b,E,v)};
oKm=function(v){if(dC!==void 0)return dC;if(v.__cssBuild===void 0){var Q=v.getAttribute("css-build");if(Q)v.__cssBuild=Q;else{a:{Q=v.localName==="template"?v.content.firstChild:v.firstChild;if(Q instanceof Comment&&(Q=Q.textContent.trim().split(":"),Q[0]==="css-build")){Q=Q[1];break a}Q=""}if(Q!==""){var V=v.localName==="template"?v.content.firstChild:v.firstChild;V.parentNode.removeChild(V)}v.__cssBuild=Q}}return v.__cssBuild||""};
aDZ=function(v,Q,V,E){for(var b=Q._noAccessors,F=Object.getOwnPropertyNames(Q),t=0;t<F.length;t++){var p=F[t];if(!(p in E))if(b)v[p]=Q[p];else{var Z=Object.getOwnPropertyDescriptor(Q,p);Z&&(Z.configurable=!0,Object.defineProperty(v,p,Z))}}for(var d in XCS)Q[d]&&(V[d]=V[d]||[],V[d].push(Q[d]))};
rIt=function(v,Q,V){Q=Q||[];for(var E=v.length-1;E>=0;E--){var b=v[E];b?Array.isArray(b)?rIt(b,Q):Q.indexOf(b)<0&&(!V||V.indexOf(b)<0)&&Q.unshift(b):console.warn("behavior is null, check for missing or 404 import")}return Q};
$qZ=function(v,Q){for(var V in Q){var E=v[V],b=Q[V];v[V]=!("value"in b)&&E&&"value"in E?Object.assign({value:E.value},b):b}};
mqQ=function(v,Q,V){var E={},b=function(){return Q.apply(this,arguments)||this};
_.f(b,Q);b._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(t)for(var Z=0,d;Z<t.length;Z++)d=t[Z],d.properties&&this.createProperties(d.properties),d.observers&&this.createObservers(d.observers,d.properties);v.properties&&this.createProperties(v.properties);v.observers&&this.createObservers(v.observers,v.properties);this._prepareTemplate()}else Q._finalizeClass.call(this)};
b.prototype.created=function(){Q.prototype.created.call(this);var Z=E.created;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
b.prototype._registered=function(){var Z=b.prototype;if(!Z.hasOwnProperty("__hasRegisterFinished")){Z.__hasRegisterFinished=!0;Q.prototype._registered.call(this);UH&&p(Z);Z=Object.getPrototypeOf(this);var d=E.beforeRegister;if(d)for(var w=0;w<d.length;w++)d[w].call(Z);if(d=E.registered)for(w=0;w<d.length;w++)d[w].call(Z)}};
b.prototype._applyListeners=function(){Q.prototype._applyListeners.call(this);var Z=E.listeners;if(Z)for(var d=0;d<Z.length;d++){var w=Z[d];if(w)for(var A in w)this._addMethodEventListenerToNode(this,A,w[A])}};
b.prototype._ensureAttributes=function(){var Z=E.hostAttributes;if(Z)for(var d=Z.length-1;d>=0;d--){var w=Z[d],A;for(A in w)this._ensureAttribute(A,w[A])}Q.prototype._ensureAttributes.call(this)};
b.prototype.ready=function(){Q.prototype.ready.call(this);var Z=E.ready;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
b.prototype.attached=function(){Q.prototype.attached.call(this);var Z=E.attached;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
b.prototype.detached=function(){Q.prototype.detached.call(this);var Z=E.detached;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
b.prototype.attributeChanged=function(Z,d,w){Q.prototype.attributeChanged.call(this);var A=E.attributeChanged;if(A)for(var k=0;k<A.length;k++)A[k].call(this,Z,d,w)};
_.hr.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){var Z={};if(t)for(var d=0;d<t.length;d++)$qZ(Z,t[d].properties);$qZ(Z,v.properties);return Z}},
observers:{configurable:!0,enumerable:!0,get:function(){var Z=[];if(t)for(var d=0,w;d<t.length;d++)w=t[d],w.observers&&(Z=Z.concat(w.observers));v.observers&&(Z=Z.concat(v.observers));return Z}}});
if(V){Array.isArray(V)||(V=[V]);var F=Q.prototype.behaviors;var t=rIt(V,null,F);b.prototype.behaviors=F?F.concat(V):t}var p=function(Z){if(t)for(var d=t,w=0;w<d.length;w++)aDZ(Z,d[w],E,IDr);aDZ(Z,v,E,HN9)};
UH||p(b.prototype);b.generatedFrom=v;return b};
V3o=function(v){var Q=typeof v!=="string"?v:{is:v,notifyObserversOnUndefined:!0};Q.fastInit===void 0&&(Q.fastInit=!0);return function(V){if(!Q.disableInheritanceCheck&&Object.getPrototypeOf(V.prototype).constructor!==_.wC)throw Error("Td");var E=V.prototype;E.is=Q.is;irZ(E,"created",function(){this.hostElement=this;this.polymerController=this});
Uq3(E,V,Q.fastInit);Q.notifyObserversOnUndefined&&(E._overrideLegacyUndefined=!0);if(v$r)for(var b=_.L(Object.getOwnPropertyNames(E)),F=b.next();!F.done;F=b.next()){F=F.value;var t=Object.getOwnPropertyDescriptor(E,F);t.enumerable===!1&&(t.enumerable=!0,Object.defineProperty(E,F,t))}if("template"in V)var p=function(){return V.template};
else Q.template!==void 0&&(p=Q.template);if(p!==void 0){var Z;Object.defineProperty(E,"_template",{get:function(){Z===void 0&&(Z=p());return Z},
set:function(d){Z=d},
configurable:!0,enumerable:!0})}Polymer(E);V[QMZ]=E}};
E$T=function(v){v=v===void 0?{}:v;v.fastInit===void 0&&(v.fastInit=!0);return function(Q){if(!v.disableInheritanceCheck&&Object.getPrototypeOf(Q.prototype).constructor!==Ar)throw Error("Ud");Uq3(Q.prototype,Q,v.fastInit)}};
Uq3=function(v,Q,V){V=V===void 0?!1:V;bor(Q);V?irZ(v,"created",function(){this.disableEnforceFastDefaultValuesCheck||FwZ(Q,this)}):irZ(v,"ready",function(){for(var E={},b=_.L(L6T(this.behaviors)),F=b.next();!F.done;F=b.next())F=F.value,F.properties&&Object.assign(E,KwB(this,F.properties));
Object.assign(E,KwB(this,this.properties));FwZ(Q,this);b=_.L(Object.keys(E));for(F=b.next();!F.done;F=b.next())F=F.value,this[F]=E[F]})};
FwZ=function(v,Q){if(v$r){v=new v;for(var V=_.L(Object.getOwnPropertyNames(v)),E=V.next();!E.done;E=V.next())E=E.value,Q[E]=v[E];for(V=Q;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){E=_.L(Object.getOwnPropertyNames(V));for(var b=E.next();!b.done;b=E.next())b=b.value,v.hasOwnProperty(b)||Object.defineProperty(v,b,ioT(Q,b))}}else v.apply(Q)};
ioT=function(v,Q){return{get:function(){var V=v[Q];return V instanceof Function?V.bind(v):V},
set:function(V){v[Q]=V}}};
KwB=function(v,Q){if(!Q)return{};for(var V={},E=_.L(Object.keys(Q)),b=E.next();!b.done;b=E.next())if(b=b.value,!Q[b].readOnly){var F=v[b];F!==void 0&&(V[b]=F)}return V};
bor=function(v){var Q=new v;v=v.prototype.properties||{};for(var V=_.L(Object.keys(v)),E=V.next();!E.done;E=V.next())if(E=E.value,Q.hasOwnProperty(E)){var b=v[E];typeof b==="function"&&(v[E]=b={type:b});Q[E]!=null&&b.type===Object&&(b.type=Lw9(Q[E].constructor))}};
Lw9=function(v){for(var Q=_.L(t3h),V=Q.next();!V.done;V=Q.next())if(V=V.value,v===V)return V;return Object};
p7Q=function(v){return function(Q,V){Q.behaviors=Q.behaviors||[];Q.behaviors.push(v||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",Q,V).prototype:void 0));Object.defineProperty(Q,V,{get:function(){return this},
enumerable:!0,configurable:!0})}};
e5h=function(v){v=v===void 0?{}:v;return function(Q,V){Q.properties=Q.properties||{};v.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?v.type=Lw9(Reflect.getMetadata("design:type",Q,V)):v.type=String);var E=v,b=Q.properties[V];Q.properties[V]=b?Object.assign({},b,E):E}};
Zor=function(v){return function(Q,V){Q.listeners=Q.listeners||{};Q.listeners[v]=V}};
Pyh=function(){var v=_.aE.apply(0,arguments);if(v.length===0)throw Error("Vd");return function(Q,V){Q.observers=Q.observers||[];Q.observers.push(V+"("+v.join(",")+")")}};
dcE=function(){var v=_.aE.apply(0,arguments);return function(Q,V,E){var b=Object.getOwnPropertyDescriptor(Q,V).get,F="__compute__"+V;Object.defineProperty(Q,F,{value:b,enumerable:!0});Q.properties=Q.properties||{};b=Q.properties[V];b||(b={},Q.properties[V]=b);b.computed=F+"("+v.join(",")+")";E.get=void 0}};
_.ky=function(v,Q,V){_.J5.call(this);this.JSC$11390_id_=null;this.usingListeners_=!1;this.JSC$11390_listener_=v;this.handler_=V;this.JSC$11390_win_=Q||window;this.callback_=(0,_.Nz)(this.JSC$11392_doAction_,this)};
TE=function(v){this.range_=v};
Yy=function(v){this.range_=v};
f2=function(v,Q,V){_.J5.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=v;this.scrollTimer_=new _.y0(50);this.JSC$11469_eventHandler_=new _.cE(this);this.scrollDelta_=new _.ua;this.containerIsActuallyContent_=v.tagName==="BODY"||v.tagName==="HTML";this.containerBounds_=h5o(v);this.containerIsActuallyContent_&&(v=_.Rb(),this.containerBounds_.height=v.height,this.containerBounds_.width=v.width);this.margin_=Q||0;if(Q){if(Q=this.containerBounds_.clone(),v=this.margin_){var E=
Math.min(v,Q.height*.25);Q.top+=E;Q.height-=2*E;v=Math.min(v,Q.width*.25);Q.left+=v;Q.width-=2*v}}else Q=this.containerBounds_;this.scrollBounds_=Q;V||this.JSC$11469_eventHandler_.listen(_.W4(this.containerNode_),"mousemove",this.JSC$11471_onMouseMove);this.JSC$11469_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11471_onTick_)};
_.C2=function(v){this.mechanism=v};
Mv=function(v,Q){this.JSC$11567_key_=v;this.JSC$11567_value_=Q};
AZ9=function(v){if(v>=55296&&v<=57343||v>1114111)return"\ufffd";v in w7G&&(v=w7G[v]);var Q="";v>65535&&(v-=65536,Q+=String.fromCharCode(v>>>10&1023|55296),v=56320|v&1023);return Q+=String.fromCharCode(v)};
kmo=function(v,Q){return v<Q?1:-1};
Yct=function(){return function(v){return v.charAt(1)==="#"?v.charAt(2)==="X"||v.charAt(2)==="x"?AZ9(parseInt(v.substr(3),16)):AZ9(parseInt(v.substr(2),10)):T2G[v.slice(1,-1)]}};
fyZ=function(v){return v.slice(1,v.length-1).trim().replace(yZr,function(Q){return cZS[Q]||" "})};
OS=function(v){return v===32||v===9};
D3=function(v,Q){return Q<v.length?v.charCodeAt(Q):-1};
Gmo=function(v){for(;v;){if(v._lastLineBlank)return!0;var Q=v.type;if(Q==="list"||Q==="item")v=v._lastChild;else break}return!1};
RT=function(v){if(Cy9.test(v)){var Q=1,V=0,E=0;for(v[V]=="|"&&V++;V<v.length;){switch(v[V]){case "|":E=1;break;case " ":break;case "\t":break;default:E&&(E=0,Q++)}V++}return M3b.test(v)?-Q:Q}return 0};
Ooh=function(v){return v=="table"||v=="row"||v=="cell"};
Dct=function(){return new n2("document",[[1,1],[0,0]])};
R5o=function(){};
lu=function(){var v={safe:!1};v=v||{};v.softbreak=v.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=v};
z5Q=function(v,Q){var V="";if(v)if(v=v.toLowerCase(),v===" "||n$T.test(v))V="space";else if(lyQ.test(v))V="esc";else if(v.length==1){if(!Q||qcZ.test(v))V=v}else V=ScE.test(v)?v.replace("arrow",""):v=="multiply"?"*":v;return V};
B2o=function(v,Q){var V=v.hasModifiers;if(Q.key)V=z5Q(Q.key,V);else if(Q.detail&&Q.detail.key)V=z5Q(Q.detail.key,V);else{V=Q.keyIdentifier;var E="";V&&(V in JZG?E=JZG[V]:N2S.test(V)?(V=parseInt(V.replace("U+","0x"),16),E=String.fromCharCode(V).toLowerCase()):E=V.toLowerCase());(V=E)||(V=Q.keyCode,E="",Number(V)&&(V>=65&&V<=90?E=String.fromCharCode(32+V):V>=112&&V<=123?E="f"+(V-112+1):V>=48&&V<=57?E=String(V-48):V>=96&&V<=105?E=String(V-96):E=xc0[V]),V=E);V=V||""}return V===v.key&&(!v.hasModifiers||
!!Q.shiftKey===!!v.shiftKey&&!!Q.ctrlKey===!!v.ctrlKey&&!!Q.altKey===!!v.altKey&&!!Q.metaKey===!!v.metaKey)};
sMQ=function(v){return v.length===1?{combo:v,key:v,event:"keydown"}:v.split("+").reduce(function(Q,V){var E=V.split(":");V=E[0];E=E[1];V in g$S?(Q[g$S[V]]=!0,Q.hasModifiers=!0):(Q.key=V,Q.event=E||"keydown");return Q},{combo:v.split(":").shift()})};
uZ0=function(v){return v.trim().split(" ").map(function(Q){return sMQ(Q)})};
jMr=function(v,Q){if(v&&v.fn){var V=v.fn;v.fn=function(){try{V.apply(this,arguments)}catch(E){if(E instanceof qv)console.warn("Argument '"+E.arg+"'"+(Q?" for method '"+Q+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw E;}}}return v};
o$Z=function(){var v=[],Q;var V=V||_.Wwt.length;for(Q=0;Q<8;Q++)v[Q]=_.Wwt[0|Math.random()*V];return v.join("")};
X7S=function(){var v=_.aE.apply(0,arguments);return v.length===0?function(Q){return Q}:v.length===1?v[0]:v.reduce(function(Q,V){return function(){return Q(V.apply(null,_.ui(_.aE.apply(0,arguments))))}})};
ay9=function(){var v=_.aE.apply(0,arguments);return function(Q){return function(V,E){V=Q(V,E);var b=function(){throw Error("Fe");},F={getState:V.getState,
dispatch:function(t){return b.apply(null,[t].concat(_.ui(_.aE.apply(1,arguments))))}};
E=v.map(function(t){return t(F)});
b=X7S.apply(null,_.ui(E))(V.dispatch);return Object.assign({},V,{dispatch:b})}}};
IyB=function(v){Object.keys(v).forEach(function(Q){var V=v[Q];if(typeof V(void 0,{type:rZr})==="undefined")throw Error("Ge`"+Q);if(typeof V(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+$cb()})==="undefined")throw Error("He`"+Q+"`"+rZr);})};
Su=function(v){for(var Q=Object.keys(v),V={},E=0;E<Q.length;E++){var b=Q[E];typeof v[b]==="function"&&(V[b]=v[b])}var F=Object.keys(V);try{IyB(V)}catch(p){var t=p}return function(p,Z){p=p===void 0?{}:p;if(t)throw t;for(var d=!1,w={},A=0;A<F.length;A++){var k=F[A],T=p[k],c=(0,V[k])(T,Z);if(typeof c==="undefined")throw p=Z&&Z.type,Error("Ie`"+(p?'"'+String(p)+'"':"(unknown type)")+"`"+k);w[k]=c;d=d||c!==T}return(d=d||F.length!==Object.keys(p).length)?w:p}};
HoS=function(v,Q,V){function E(){if(w)throw Error("Je");return p}
function b(T){if(typeof T!=="function")throw Error("Ke`"+typeof T);if(w)throw Error("Le");var c=!0;d===Z&&(d=Z.slice());d.push(T);return function(){if(c){if(w)throw Error("Me");c=!1;d===Z&&(d=Z.slice());var C=d.indexOf(T);d.splice(C,1);Z=null}}}
function F(T){if(typeof T!=="object"||T===null)var c=!1;else{for(c=T;Object.getPrototypeOf(c)!==null;)c=Object.getPrototypeOf(c);c=Object.getPrototypeOf(T)===c}if(!c)throw Error("Ne`"+typeof T);if(typeof T.type==="undefined")throw Error("Oe");if(w)throw Error("Pe");try{w=!0,p=t(p,T)}finally{w=!1}c=Z=d;for(var C=0;C<c.length;C++)(0,c[C])();return T}
if(typeof Q==="function"&&typeof V==="function"||typeof V==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof Q==="function"&&typeof V==="undefined"&&(V=Q,Q=void 0);if(typeof V!=="undefined"){if(typeof V!=="function")throw Error("Re`"+typeof V);return V(HoS)(v,Q)}if(typeof v!=="function")throw Error("Se`"+typeof v);var t=v,p=Q,Z=[],d=Z,w=!1;F({type:rZr});var A={},k=(A.dispatch=F,A.subscribe=b,A.getState=E,A.replaceReducer=function(T){if(typeof T!=="function")throw Error("Te`"+
typeof T);t=T;F({type:mcG});return k},A[Uc3]=function(){var T={};
return T.subscribe=function(c){function C(){c.next&&c.next(E())}
if(typeof c!=="object"||c===null)throw new TypeError("Ue`"+typeof c);C();return{unsubscribe:b(C)}},T[Uc3]=function(){return this},T},A);
return k};
vuT=function(v){function Q(){b&&(b=!1,v());F&&E()}
function V(){requestAnimationFrame(Q)}
function E(){var p=Date.now();if(b){if(p-t<2)return;F=!0}else b=!0,F=!1,setTimeout(V,20);t=p}
var b=!1,F=!1,t=0;return E};
zE=function(v){return typeof v==="number"?v:parseFloat(v)||0};
Qgm=function(v){return _.aE.apply(1,arguments).reduce(function(Q,V){return Q+zE(v["border-"+V+"-width"])},0)};
F_Z=function(v){if(VDT[v])return VDT[v];var Q=globalThis[v],V=Q.prototype,E=v in EuE?EuE[v]:void 0;E=!(!E||!E.every(function(Z){var d,w;return!!((d=Object.getOwnPropertyDescriptor(V,Z))==null?0:(w=d.get)==null?0:w.toString().includes("[native code]"))}));
var b=v in bvo?bvo[v]:void 0;b=!(!b||!b.every(function(Z){var d;return typeof V[Z]==="function"&&((d=V[Z])==null?void 0:d.toString().includes("[native code]"))}));
if(E&&b&&!globalThis.Zone)return VDT[v]=Q.prototype;try{var F=document.createElement("iframe");document.body.appendChild(F);var t=F.contentWindow;if(!t)return Q.prototype;var p=t[v].prototype;document.body.removeChild(F);return p?VDT[v]=p:V}catch(Z){return V}};
Jr=function(v,Q,V){var E=v+"."+String(V);if(K_Q[E])return K_Q[E].call(Q);v=F_Z(v);var b;v=(b=Object.getOwnPropertyDescriptor(v,V))==null?void 0:b.get;if(!v)return Q[V];K_Q[E]=v;return v.call(Q)};
L_m=function(v,Q){var V="Node."+String(Q);if(ivt[V])return ivt[V].bind(v);var E=F_Z("Node")[Q];if(typeof E!=="function")return v[Q];ivt[V]=E;return E.bind(v)};
Nv=function(v,Q,V){try{if(!(Q in v))return function(){};
var E=v[Q],b=V(E);typeof b==="function"&&(b.prototype=b.prototype||{},Object.defineProperties(b,{__rrweb_original__:{enumerable:!1,value:E}}));v[Q]=b;return function(){v[Q]=E}}catch(F){return function(){}}};
gC=function(v){var Q=v&&"host"in v&&"mode"in v&&xy(v)||null;return!!(Q&&"shadowRoot"in Q&&BE(Q)===v)};
sS=function(v){return Object.prototype.toString.call(v)==="[object ShadowRoot]"};
tDT=function(v){v.includes(" background-clip: text;")&&!v.includes(" -webkit-background-clip: text;")&&(v=v.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return v};
evE=function(v){try{var Q=v.rules||v.cssRules;if(!Q)return null;var V=v.href;!V&&v.ownerNode&&(V=v.ownerNode.baseURI);var E=Array.from(Q,function(b){return pAE(b,V)}).join("");
return tDT(E)}catch(b){return null}};
pAE=function(v,Q){if("styleSheet"in v){try{var V;if(!(V=evE(v.styleSheet))){var E=v.cssText;if(E.split('"').length<3)V=E;else{var b=["@import","url("+JSON.stringify(v.href)+")"];v.layerName===""?b.push("layer"):v.layerName&&b.push("layer("+v.layerName+")");v.supportsText&&b.push("supports("+v.supportsText+")");v.media.length&&b.push(v.media.mediaText);V=b.join(" ")+";"}}var F=V}catch(t){F=v.cssText}return v.styleSheet.href?Zvr(F,v.styleSheet.href):F}F=v.cssText;"selectorText"in v&&v.selectorText.includes(":")&&
(F=F.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return Q?Zvr(F,Q):F};
PcG=function(v){var Q=v.element;var V=v.maskInputOptions;var E=v.tagName;var b=v.type;var F=v.value;v=v.maskInputFn;F=F||"";b=b&&b.toLowerCase();if(V[E.toLowerCase()]||b&&V[b])F=v?v(F,Q):"*".repeat(F.length);return F};
dVS=function(v){var Q=v.getContext("2d");if(!Q)return!0;for(var V=0;V<v.width;V+=50)for(var E=0;E<v.height;E+=50){var b=Q.getImageData;if((new Uint32Array(("__rrweb_original__"in b?b.__rrweb_original__:b).call(Q,V,E,Math.min(50,v.width-V),Math.min(50,v.height-E)).data.buffer)).some(function(F){return F!==0}))return!1}return!0};
hvG=function(v){var Q=v.type;return v.hasAttribute("data-rr-is-password")?"password":Q?Q.toLowerCase():null};
wAm=function(v){try{var Q=new URL(v,window.location.href)}catch(b){return null}var V,E;return(E=(V=Q.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:V[1])!=null?E:null};
Zvr=function(v,Q){return(v||"").replace(AGr,function(V,E,b,F,t,p){b=b||t||p;E=E||F||"";if(!b)return V;if(kl0.test(b)||TLB.test(b)||YEo.test(b))return"url("+E+b+E+")";if(b[0]==="/")return V=Q.indexOf("//")>-1?Q.split("/").slice(0,3).join("/"):Q.split("/")[0],V=V.split("?")[0],"url("+E+(V+b)+E+")";V=Q.split("/");F=b.split("/");V.pop();F=_.L(F);for(b=F.next();!b.done;b=F.next())b=b.value,b!=="."&&(b===".."?V.pop():V.push(b));return"url("+E+V.join("/")+E+")"})};
yGh=function(v,Q){return(Q=Q===void 0?!1:Q)?v.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):v.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
cGT=function(v,Q){var V=V===void 0?!1:V;Q=Array.from(Q.childNodes);var E=[],b=0;if(Q.length>1&&v&&typeof v==="string")for(var F=yGh(v,V),t=F.length/v.length,p=1;p<Q.length;p++)if(Q[p].textContent&&typeof Q[p].textContent==="string"){for(var Z=yGh(Q[p].textContent,V),d=3;d<Z.length&&(Z[d].match(/[a-zA-Z0-9]/)||Z.indexOf(Z.substring(0,d),1)!==-1);d++);for(;d<Z.length;d++){var w=Z.substring(0,d),A=F.split(w),k=-1;if(A.length===2)k=A[0].length;else if(A.length>2&&A[0]===""&&Q[p-1].textContent!=="")k=
F.indexOf(w,1);else if(A.length===1){w=w.substring(0,w.length-1);A=F.split(w);if(A.length<=1)return E.push(v),E;d=101}else d===Z.length-1&&(k=F.indexOf(w));if(A.length>=2&&d>100){var T=Q[p-1].textContent;T&&typeof T==="string"&&(k=F.indexOf(w,yGh(T).length));k===-1&&(k=A[0].length)}if(k!==-1){for(Z=Math.floor(k/t);Z>0&&Z<v.length;){b+=1;if(b>50*Q.length)return E.push(v),E;d=yGh(v.substring(0,Z),V);if(d.length===k){E.push(v.substring(0,Z));v=v.substring(Z);F=F.substring(k);break}else Z=d.length<k?
Z+Math.max(1,Math.floor((k-d.length)/t)):Z-Math.max(1,Math.floor((d.length-k)*t))}break}}}E.push(v);return E};
GlE=function(){return fOQ++};
MDo=function(v){if(v instanceof HTMLFormElement)return"form";v=v.tagName.toLowerCase();return Ccr.test(v)?"div":v};
nut=function(v,Q){function V(d){return(d=d.exec(Q.substring(E)))?(d=d[0],E+=d.length,d):""}
if(Q.trim()==="")return Q;for(var E=0,b=[];;){V(Ovo);if(E>=Q.length)break;var F=V(DVm);if(F.slice(-1)===",")F=Rv9(v,F.substring(0,F.length-1)),b.push(F);else{var t="";F=Rv9(v,F);for(var p=!1;;){var Z=Q.charAt(E);if(Z===""){b.push((F+t).trim());break}else if(p)Z===")"&&(p=!1);else if(Z===","){E+=1;b.push((F+t).trim());break}else Z==="("&&(p=!0);t+=Z;E+=1}}}return b.join(", ")};
Rv9=function(v,Q){return Q&&Q.trim()!==""?lOT(v,Q):Q};
lOT=function(v,Q){var V=qEb.get(v);V||(V=v.createElement("a"),qEb.set(v,V));if(!Q)Q="";else if(Q.startsWith("blob:")||Q.startsWith("data:"))return Q;$P(V,Q);return V.href};
SEB=function(v,Q,V,E){return E?V==="src"||V==="href"&&(Q!=="use"||E[0]!=="#")||V==="xlink:href"&&E[0]!=="#"||V==="background"&&(Q==="table"||Q==="td"||Q==="th")?Rv9(v,E):V==="srcset"?nut(v,E):V==="style"?Zvr(E,lOT(v)):Q==="object"&&V==="data"?Rv9(v,E):E:E};
zvQ=function(v,Q){return(v==="video"||v==="audio")&&Q==="autoplay"};
JGb=function(v,Q,V){try{if(typeof Q==="string"){if(v.classList.contains(Q))return!0}else for(var E=v.classList.length;E--;)if(Q.test(v.classList[E]))return!0;if(V)return v.matches(V)}catch(b){}return!1};
NLE=function(v,Q,V){if(!v)return!1;if(v.nodeType!==v.ELEMENT_NODE)return V?NLE(uu(v),Q,V):!1;for(var E=v.classList.length;E--;)if(Q.test(v.classList[E]))return!0;return V?NLE(uu(v),Q,V):!1};
xV3=function(v,Q,V,E){if(v.nodeType===v.ELEMENT_NODE){if(!ju(v).length)return!1}else{if(WE(v)===null)return!1;v=WE(v)}try{if(typeof Q==="string")if(E){if(v.closest("."+Q))return!0}else{if(v.classList.contains(Q))return!0}else if(NLE(v,Q,E))return!0;if(V)if(E){if(v.closest(V))return!0}else if(v.matches(V))return!0}catch(b){}return!1};
BL9=function(v,Q,V){var E=v.contentWindow;if(E){var b=!1;try{var F=E.document.readyState}catch(p){return}if(F!=="complete"){var t=setTimeout(function(){b||(Q(),b=!0)},V);
v.addEventListener("load",function(){clearTimeout(t);b=!0;Q()})}else E.location.href==="about:blank"&&v.src!=="about:blank"&&v.src!==""||setTimeout(Q,0),v.addEventListener("load",Q)}};
guh=function(v,Q,V){var E=!1;try{var b=v.sheet}catch(t){return}if(!b){var F=setTimeout(function(){E||(Q(),E=!0)},V);
v.addEventListener("load",function(){clearTimeout(F);E=!0;Q()})}};
jgr=function(v,Q){var V=Q.doc,E=Q.blockClass,b=Q.blockSelector,F=Q.needsMask,t=Q.inlineStylesheet,p=Q.maskInputOptions===void 0?{}:Q.maskInputOptions,Z=Q.maskTextFn,d=Q.maskInputFn,w=Q.dataURLOptions===void 0?{}:Q.dataURLOptions,A=Q.inlineImages,k=Q.recordCanvas,T=Q.keepIframeSrcFn,c=Q.newlyAddedElement===void 0?!1:Q.newlyAddedElement,C=Q.cssCaptured===void 0?!1:Q.cssCaptured;Q=Q.mirror;Q.nodeMetaMap.has(V)?(Q=Q.getId(V),Q=Q===1?void 0:Q):Q=void 0;switch(v.nodeType){case v.DOCUMENT_NODE:return v.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:v.compatMode}:{type:0,childNodes:[]};case v.DOCUMENT_TYPE_NODE:return{type:1,name:v.name,publicId:v.publicId,systemId:v.systemId,rootId:Q};case v.ELEMENT_NODE:return sgB(v,{doc:V,blockClass:E,blockSelector:b,inlineStylesheet:t,maskInputOptions:p,maskInputFn:d,dataURLOptions:w,inlineImages:A,recordCanvas:k,keepIframeSrcFn:T,newlyAddedElement:c,rootId:Q});case v.TEXT_NODE:return t=(E=uu(v))&&E.tagName,E="",b=t==="STYLE"?!0:void 0,(t=t==="SCRIPT"?!0:void 0)?
E="SCRIPT_PLACEHOLDER":C||(E=u5E(v),b&&E&&(E=Zvr(E,lOT(V)))),!b&&!t&&E&&F&&(E=Z?Z(E,WE(v)):E.replace(/[\S]/g,"*")),{type:3,textContent:E||"",rootId:Q};case v.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:Q};case v.COMMENT_NODE:return{type:5,textContent:u5E(v)||"",rootId:Q};default:return!1}};
sgB=function(v,Q){var V=Q.doc,E=Q.inlineStylesheet,b=Q.maskInputOptions===void 0?{}:Q.maskInputOptions,F=Q.maskInputFn,t=Q.dataURLOptions===void 0?{}:Q.dataURLOptions,p=Q.inlineImages,Z=Q.recordCanvas,d=Q.keepIframeSrcFn,w=Q.newlyAddedElement===void 0?!1:Q.newlyAddedElement,A=Q.rootId;Q=JGb(v,Q.blockClass,Q.blockSelector);for(var k=MDo(v),T={},c=v.attributes.length,C=0;C<c;C++){var R=v.attributes[C];zvQ(k,R.name)||(T[R.name]=SEB(V,k,R.name.toLowerCase(),R.value))}k==="link"&&E&&(E=Array.from(V.styleSheets).find(function(u){return u.href===
v.href}),c=null,E&&(c=evE(E)),c&&(delete T.rel,delete T.href,T._cssText=c));
k==="style"&&v.sheet&&(E=evE(v.sheet))&&(v.childNodes.length>1&&(E=cGT(E,v).join("/* rr_split */")),T._cssText=E);if(k==="input"||k==="textarea"||k==="select")E=v.value,c=v.checked,T.type!=="radio"&&T.type!=="checkbox"&&T.type!=="submit"&&T.type!=="button"&&E?T.value=PcG({element:v,type:hvG(v),tagName:k,value:E,maskInputOptions:b,maskInputFn:F}):c&&(T.checked=c);k==="option"&&(v.selected&&!b.select?T.selected=!0:delete T.selected);k==="dialog"&&v.open&&(T.rr_open_mode=v.matches("dialog:modal")?"modal":
"non-modal");k==="canvas"&&Z&&(v.__context==="2d"?dVS(v)||(T.rr_dataURL=v.toDataURL(t.type,t.quality)):"__context"in v||(b=v.toDataURL(t.type,t.quality),F=V.createElement("canvas"),F.width=v.width,F.height=v.height,F=F.toDataURL(t.type,t.quality),b!==F&&(T.rr_dataURL=b)));if(k==="img"&&p){oT||(oT=V.createElement("canvas"),W_h=oT.getContext("2d"));var l=v.currentSrc||v.getAttribute("src")||"<unknown-src>",S=v.crossOrigin,a=function(){v.removeEventListener("load",a);try{oT.width=v.naturalWidth,oT.height=
v.naturalHeight,W_h.drawImage(v,0,0),T.rr_dataURL=oT.toDataURL(t.type,t.quality)}catch(u){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous";v.complete&&v.naturalWidth!==0?a():v.addEventListener("load",a);return}console.warn("Cannot inline img src="+l+"! Error: "+u)}v.crossOrigin==="anonymous"&&(S?T.crossOrigin=S:v.removeAttribute("crossorigin"))};
v.complete&&v.naturalWidth!==0?a():v.addEventListener("load",a)}if(k==="audio"||k==="video")V=T,V.rr_mediaState=v.paused?"paused":"played",V.rr_mediaCurrentTime=v.currentTime,V.rr_mediaPlaybackRate=v.playbackRate,V.rr_mediaMuted=v.muted,V.rr_mediaLoop=v.loop,V.rr_mediaVolume=v.volume;w||(v.scrollLeft&&(T.rr_scrollLeft=v.scrollLeft),v.scrollTop&&(T.rr_scrollTop=v.scrollTop));Q&&(w=v.getBoundingClientRect(),T={class:T.class,rr_width:w.width+"px",rr_height:w.height+"px"});k!=="iframe"||d(T.src)||(v.contentDocument||
(T.rr_src=T.src),delete T.src);var g;try{customElements.get(k)&&(g=!0)}catch(u){}return{type:2,tagName:k,attributes:T,childNodes:[],isSVG:!(v.tagName!=="svg"&&!v.ownerSVGElement)||void 0,needBlock:Q,rootId:A,isCustom:g}};
X2=function(v){return v===void 0||v===null?"":v.toLowerCase()};
ouQ=function(v,Q){return Q.comment&&v.type===5||v.type===2&&(Q.script&&(v.tagName==="script"||v.tagName==="link"&&(v.attributes.rel==="preload"&&v.attributes.as==="script"||v.attributes.rel==="modulepreload")||v.tagName==="link"&&v.attributes.rel==="prefetch"&&typeof v.attributes.href==="string"&&wAm(v.attributes.href)==="js")||Q.headFavicon&&(v.tagName==="link"&&v.attributes.rel==="shortcut icon"||v.tagName==="meta"&&(X2(v.attributes.name).match(/^msapplication-tile(image|color)$/)||X2(v.attributes.name)===
"application-name"||X2(v.attributes.rel)==="icon"||X2(v.attributes.rel)==="apple-touch-icon"||X2(v.attributes.rel)==="shortcut icon"))||v.tagName==="meta"&&(Q.headMetaDescKeywords&&X2(v.attributes.name).match(/^description|keywords$/)||Q.headMetaSocial&&(X2(v.attributes.property).match(/^(og|twitter|fb):/)||X2(v.attributes.name).match(/^(og|twitter):/)||X2(v.attributes.name)==="pinterest")||Q.headMetaRobots&&(X2(v.attributes.name)==="robots"||X2(v.attributes.name)==="googlebot"||X2(v.attributes.name)===
"bingbot")||Q.headMetaHttpEquiv&&v.attributes["http-equiv"]!==void 0||Q.headMetaAuthorship&&(X2(v.attributes.name)==="author"||X2(v.attributes.name)==="generator"||X2(v.attributes.name)==="framework"||X2(v.attributes.name)==="publisher"||X2(v.attributes.name)==="progid"||X2(v.attributes.property).match(/^article:/)||X2(v.attributes.property).match(/^product:/))||Q.headMetaVerification&&(X2(v.attributes.name)==="google-site-verification"||X2(v.attributes.name)==="yandex-verification"||X2(v.attributes.name)===
"csrf-token"||X2(v.attributes.name)==="p:domain_verify"||X2(v.attributes.name)==="verify-v1"||X2(v.attributes.name)==="verification"||X2(v.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
aT=function(v,Q){var V=Q.doc,E=Q.mirror,b=Q.blockClass,F=Q.blockSelector,t=Q.maskTextClass,p=Q.maskTextSelector,Z=Q.skipChild===void 0?!1:Q.skipChild,d=Q.inlineStylesheet===void 0?!0:Q.inlineStylesheet,w=Q.maskInputOptions===void 0?{}:Q.maskInputOptions,A=Q.maskTextFn,k=Q.maskInputFn,T=Q.slimDOMOptions,c=Q.dataURLOptions===void 0?{}:Q.dataURLOptions,C=Q.inlineImages===void 0?!1:Q.inlineImages,R=Q.recordCanvas===void 0?!1:Q.recordCanvas,l=Q.onSerialize,S=Q.onIframeLoad,a=Q.iframeLoadTimeout===void 0?
5E3:Q.iframeLoadTimeout,g=Q.onStylesheetLoad,u=Q.stylesheetLoadTimeout===void 0?5E3:Q.stylesheetLoadTimeout,r=Q.keepIframeSrcFn===void 0?function(){return!1}:Q.keepIframeSrcFn,v9=Q.newlyAddedElement===void 0?!1:Q.newlyAddedElement,t3=Q.cssCaptured===void 0?!1:Q.cssCaptured,h3=Q.needsMask,OB=Q.preserveWhiteSpace===void 0?!0:Q.preserveWhiteSpace;
h3||(h3=xV3(v,t,p,h3===void 0));var kQ=jgr(v,{doc:V,mirror:E,blockClass:b,blockSelector:F,needsMask:h3,inlineStylesheet:d,maskInputOptions:w,maskTextFn:A,maskInputFn:k,dataURLOptions:c,inlineImages:C,recordCanvas:R,keepIframeSrcFn:r,newlyAddedElement:v9,cssCaptured:t3});if(!kQ)return console.warn(v,"not serialized"),null;v9=E.nodeMetaMap.has(v)?E.getId(v):ouQ(kQ,T)||!OB&&kQ.type===3&&!kQ.textContent.replace(/^\s+|\s+$/gm,"").length?-2:fOQ++;Q=Object.assign(kQ,{id:v9});E.add(v,Q);if(v9===-2)return null;
l&&l(v);v9=!Z;Q.type===2&&(v9=v9&&!Q.needBlock,delete Q.needBlock,(t3=BE(v))&&sS(t3)&&(Q.isShadowHost=!0));if((Q.type===0||Q.type===2)&&v9){T.headWhitespace&&Q.type===2&&Q.tagName==="head"&&(OB=!1);Z={doc:V,mirror:E,blockClass:b,blockSelector:F,needsMask:h3,maskTextClass:t,maskTextSelector:p,skipChild:Z,inlineStylesheet:d,maskInputOptions:w,maskTextFn:A,maskInputFn:k,slimDOMOptions:T,dataURLOptions:c,inlineImages:C,recordCanvas:R,preserveWhiteSpace:OB,onSerialize:l,onIframeLoad:S,iframeLoadTimeout:a,
onStylesheetLoad:g,stylesheetLoadTimeout:u,keepIframeSrcFn:r,cssCaptured:!1};if(Q.type!==2||Q.tagName!=="textarea"||Q.attributes.value===void 0)for(Q.type===2&&Q.attributes._cssText!==void 0&&typeof Q.attributes._cssText==="string"&&(Z.cssCaptured=!0),v9=_.L(Array.from(ju(v))),t3=v9.next();!t3.done;t3=v9.next())(t3=aT(t3.value,Z))&&Q.childNodes.push(t3);v9=null;if(v.nodeType===v.ELEMENT_NODE&&(v9=BE(v))){t3=_.L(Array.from(ju(v9)));for(var yo=t3.next();!yo.done;yo=t3.next())if(yo=aT(yo.value,Z))sS(v9)&&
(yo.isShadow=!0),Q.childNodes.push(yo)}}(Z=uu(v))&&gC(Z)&&sS(Z)&&(Q.isShadow=!0);Q.type===2&&Q.tagName==="iframe"&&BL9(v,function(){var xQ=v.contentDocument;xQ&&S&&(xQ=aT(xQ,{doc:xQ,mirror:E,blockClass:b,blockSelector:F,needsMask:h3,maskTextClass:t,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:w,maskTextFn:A,maskInputFn:k,slimDOMOptions:T,dataURLOptions:c,inlineImages:C,recordCanvas:R,preserveWhiteSpace:OB,onSerialize:l,onIframeLoad:S,iframeLoadTimeout:a,onStylesheetLoad:g,stylesheetLoadTimeout:u,
keepIframeSrcFn:r}))&&S(v,xQ)},a);
Q.type===2&&Q.tagName==="link"&&typeof Q.attributes.rel==="string"&&(Q.attributes.rel==="stylesheet"||Q.attributes.rel==="preload"&&typeof Q.attributes.href==="string"&&wAm(Q.attributes.href)==="css")&&guh(v,function(){if(g){var xQ=aT(v,{doc:V,mirror:E,blockClass:b,blockSelector:F,needsMask:h3,maskTextClass:t,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:w,maskTextFn:A,maskInputFn:k,slimDOMOptions:T,dataURLOptions:c,inlineImages:C,recordCanvas:R,preserveWhiteSpace:OB,onSerialize:l,
onIframeLoad:S,iframeLoadTimeout:a,onStylesheetLoad:g,stylesheetLoadTimeout:u,keepIframeSrcFn:r});xQ&&g(v,xQ)}},u);
return Q};
XAT=function(v){var Q=document;v=v||{};var V=v.maskAllInputs===void 0?!1:v.maskAllInputs,E=v.slimDOM===void 0?!1:v.slimDOM;return aT(Q,{doc:Q,mirror:v.mirror===void 0?new rC:v.mirror,blockClass:v.blockClass===void 0?"rr-block":v.blockClass,blockSelector:v.blockSelector===void 0?null:v.blockSelector,maskTextClass:v.maskTextClass===void 0?"rr-mask":v.maskTextClass,maskTextSelector:v.maskTextSelector===void 0?null:v.maskTextSelector,skipChild:!1,inlineStylesheet:v.inlineStylesheet===void 0?!0:v.inlineStylesheet,
maskInputOptions:V===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:V===!1?{password:!0}:V,maskTextFn:v.maskTextFn,maskInputFn:v.maskInputFn,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:v.dataURLOptions,
inlineImages:v.inlineImages===void 0?!1:v.inlineImages,recordCanvas:v.recordCanvas===void 0?!1:v.recordCanvas,preserveWhiteSpace:v.preserveWhiteSpace,onSerialize:v.onSerialize,onIframeLoad:v.onIframeLoad,iframeLoadTimeout:v.iframeLoadTimeout,onStylesheetLoad:v.onStylesheetLoad,stylesheetLoadTimeout:v.stylesheetLoadTimeout,keepIframeSrcFn:v.keepIframeSrcFn===void 0?function(){return!1}:v.keepIframeSrcFn,
newlyAddedElement:!1})};
$y=function(v,Q,V){V=V===void 0?document:V;var E={capture:!0,passive:!0};V.addEventListener(v,Q,E);return function(){return V.removeEventListener(v,Q,E)}};
IT=function(v,Q,V){V=V===void 0?{}:V;var E=null,b=0;return function(){var F=_.aE.apply(0,arguments),t=Date.now();b||V.leading!==!1||(b=t);var p=Q-(t-b),Z=this;p<=0||p>Q?(E&&(clearTimeout(E),E=null),b=t,v.apply(Z,F)):E||V.trailing===!1||(E=setTimeout(function(){b=V.leading===!1?0:Date.now();E=null;v.apply(Z,F)},p))}};
aOt=function(v,Q,V,E,b){b=b===void 0?window:b;var F=b.Object.getOwnPropertyDescriptor(v,Q);b.Object.defineProperty(v,Q,E?V:{set:function(t){var p=this;setTimeout(function(){V.set.call(p,t)},0);
F&&F.set&&F.set.call(this,t)}});
return function(){return aOt(v,Q,F||{},!0)}};
rGQ=function(v){var Q=v.document,V,E,b,F;return{left:Q.scrollingElement?Q.scrollingElement.scrollLeft:v.pageXOffset!==void 0?v.pageXOffset:Q.documentElement.scrollLeft||(Q==null?void 0:Q.body)&&((V=WE(Q.body))==null?void 0:V.scrollLeft)||(Q==null?void 0:(E=Q.body)==null?void 0:E.scrollLeft)||0,top:Q.scrollingElement?Q.scrollingElement.scrollTop:v.pageYOffset!==void 0?v.pageYOffset:(Q==null?void 0:Q.documentElement.scrollTop)||(Q==null?void 0:Q.body)&&((b=WE(Q.body))==null?void 0:b.scrollTop)||(Q==
null?void 0:(F=Q.body)==null?void 0:F.scrollTop)||0}};
$VT=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
IOB=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
Hvt=function(v){return v?v.nodeType===v.ELEMENT_NODE?v:WE(v):null};
HE=function(v,Q,V,E){if(!v)return!1;v=Hvt(v);if(!v)return!1;try{if(typeof Q==="string"){if(v.classList.contains(Q)||E&&v.closest("."+Q)!==null)return!0}else if(NLE(v,Q,E))return!0}catch(b){}return V&&(v.matches(V)||E&&v.closest(V)!==null)?!0:!1};
mVS=function(v,Q,V){return v.tagName==="TITLE"&&V.headTitleMutations?!0:Q.getId(v)===-2};
UVh=function(v,Q){if(gC(v))return!1;var V=Q.getId(v);return Q.has(V)?(V=uu(v))&&V.nodeType===v.DOCUMENT_NODE?!1:V?UVh(V,Q):!0:!0};
vxb=function(){var v=v===void 0?window:v;"NodeList"in v&&!v.NodeList.prototype.forEach&&(v.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in v&&!v.DOMTokenList.prototype.forEach&&(v.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
QlB=function(v,Q){return!(v.nodeName!=="LINK"||v.nodeType!==v.ELEMENT_NODE||!v.getAttribute||v.getAttribute("rel")!=="stylesheet"||!Q.nodeMetaMap.get(v))};
Ex3=function(v){var Q=null,V;"getRootNode"in v&&((V=VN9(v))==null?void 0:V.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&xy(VN9(v))&&(Q=xy(VN9(v)));return Q};
bMG=function(v){var Q=v.ownerDocument;if(Q){if(!(Q=L_m(Q,"contains")(v)))if(Q=v.ownerDocument){for(var V;V=Ex3(v);)v=V;Q=L_m(Q,"contains")(v)}else Q=!1}else Q=!1;return Q};
FGb=function(v,Q){v.delete(Q);ju(Q).forEach(function(V){return FGb(v,V)})};
KGE=function(v,Q){for(var V=[v];V.length;)v=V.pop(),Q.has(v)||(Q.add(v),ju(v).forEach(function(E){return V.push(E)}))};
iMb=function(v,Q){v.size===0?v=!1:v=(Q=uu(Q))?v.has(Q):!1;return v};
tNo=function(v,Q){return v.size===0?!1:LGt(v,Q)};
LGt=function(v,Q){return(Q=uu(Q))?v.has(Q)?!0:LGt(v,Q):!1};
mi=function(v){try{if("composedPath"in v){var Q=v.composedPath();if(Q.length)return Q[0]}else if("path"in v&&v.path.length)return v.path[0]}catch(V){}return v&&v.target};
eKT=function(v,Q){var V=new peZ;US.push(V);V.init(v);v=new (F_Z("MutationObserver").constructor)(vj(V.processMutations.bind(V)));v.observe(Q,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return v};
PzS=function(v){var Q=v.mousemoveCb;var V=v.sampling;var E=v.doc;var b=v.mirror;if(V.mousemove===!1)return function(){};
var F=[],t,p=IT(vj(function(d){var w=Date.now()-t;Q(F.map(function(A){A.timeOffset-=w;return A}),d);
F=[];t=null}),typeof V.mousemoveCallback==="number"?V.mousemoveCallback:500);
v=vj(IT(vj(function(d){var w=mi(d),A=d.changedTouches?d.changedTouches[0]:d,k=A.clientX;A=A.clientY;t||(t=ZMo());F.push({x:k,y:A,id:b.getId(w),timeOffset:ZMo()-t});p(typeof DragEvent!=="undefined"&&d instanceof DragEvent?12:d instanceof MouseEvent?1:6)}),typeof V.mousemove==="number"?V.mousemove:50,{trailing:!1}));
var Z=[$y("mousemove",v,E),$y("touchmove",v,E),$y("drag",v,E)];return vj(function(){Z.forEach(function(d){return d()})})};
dkE=function(v){var Q=v.mouseInteractionCb;var V=v.doc;var E=v.mirror;var b=v.blockClass;var F=v.blockSelector;v=v.sampling;if(v.mouseInteraction===!1)return function(){};
var t=v.mouseInteraction===!0||v.mouseInteraction===void 0?{}:v.mouseInteraction,p=[],Z=null,d=function(w){return function(A){var k=mi(A);if(!HE(k,b,F,!0)){var T=null,c=w;if("pointerType"in A){switch(A.pointerType){case "mouse":T=0;break;case "touch":T=2;break;case "pen":T=1}T===2&&(QC[w]===1?c="TouchStart":QC[w]===0&&(c="TouchEnd"))}else A.changedTouches&&(T=2);if(T!==null){if(Z=T,c.startsWith("Touch")&&T===2||c.startsWith("Mouse")&&T===0)T=null}else QC[w]===2&&(T=Z,Z=null);if(A=A.changedTouches?
A.changedTouches[0]:A)k=E.getId(k),vj(Q)(Object.assign({},{type:QC[c],id:k,x:A.clientX,y:A.clientY},T!==null&&{pointerType:T}))}}};
Object.keys(QC).filter(function(w){return Number.isNaN(Number(w))&&!w.endsWith("_Departed")&&t[w]!==!1}).forEach(function(w){var A=w.toLowerCase(),k=d(w);
if(window.PointerEvent)switch(QC[w]){case 1:case 0:A=A.replace("mouse","pointer");break;case 7:case 9:return}p.push($y(A,k,V))});
return vj(function(){p.forEach(function(w){return w()})})};
hKG=function(v){var Q=v.scrollCb;var V=v.doc;var E=v.mirror;var b=v.blockClass;var F=v.blockSelector;return $y("scroll",vj(IT(vj(function(t){var p=mi(t);p&&!HE(p,b,F,!0)&&(t=E.getId(p),p===V&&V.defaultView?(p=rGQ(V.defaultView),Q({id:t,x:p.left,y:p.top})):Q({id:t,x:p.scrollLeft,y:p.scrollTop}))}),v.sampling.scroll||100)),V)};
weZ=function(v,Q){var V=v.viewportResizeCb;var E=-1,b=-1;return $y("resize",vj(IT(vj(function(){var F=$VT(),t=IOB();if(E!==F||b!==t)V({width:Number(t),height:Number(F)}),E=F,b=t}),200)),Q.win)};
Tnm=function(v){function Q(R){var l=mi(R),S=R.isTrusted,a=l&&l.tagName;l&&a==="OPTION"&&(l=WE(l));if(!(!l||!a||A6o.indexOf(a)<0||HE(l,t,p,!0)||l.classList.contains(Z)||d&&l.matches(d))){var g=l.value,u=!1;R=hvG(l)||"";if(R==="radio"||R==="checkbox")u=l.checked;else if(w[a.toLowerCase()]||w[R])g=PcG({element:l,maskInputOptions:w,tagName:a,type:R,value:g,maskInputFn:A});V(l,T?{text:g,isChecked:u,userTriggered:S}:{text:g,isChecked:u});S=l.name;R==="radio"&&S&&u&&b.querySelectorAll('input[type="radio"][name="'+
S+'"]').forEach(function(r){if(r!==l){var v9=r.value;V(r,T?{text:v9,isChecked:!u,userTriggered:!1}:{text:v9,isChecked:!u})}})}}
function V(R,l){var S=kZo.get(R);S&&S.text===l.text&&S.isChecked===l.isChecked||(kZo.set(R,l),R=F.getId(R),vj(E)(Object.assign({},l,{id:R})))}
var E=v.inputCb;var b=v.doc;var F=v.mirror;var t=v.blockClass;var p=v.blockSelector;var Z=v.ignoreClass;var d=v.ignoreSelector;var w=v.maskInputOptions;var A=v.maskInputFn;var k=v.sampling;var T=v.userTriggeredOnInput;var c=(k.input==="last"?["change"]:["input","change"]).map(function(R){return $y(R,vj(Q),b)}),C=b.defaultView;
if(!C)return function(){c.forEach(function(R){return R()})};
v=C.Object.getOwnPropertyDescriptor(C.HTMLInputElement.prototype,"value");k=[[C.HTMLInputElement.prototype,"value"],[C.HTMLInputElement.prototype,"checked"],[C.HTMLSelectElement.prototype,"value"],[C.HTMLTextAreaElement.prototype,"value"],[C.HTMLSelectElement.prototype,"selectedIndex"],[C.HTMLOptionElement.prototype,"selected"]];v&&v.set&&c.push.apply(c,_.ui(k.map(function(R){return aOt(R[0],R[1],{set:function(){vj(Q)({target:this,isTrusted:!1})}},!1,C)})));
return vj(function(){c.forEach(function(R){return R()})})};
y69=function(v){var Q=[],V,E,b,F;YMb("CSSGroupingRule")&&((V=v.parentRule)==null?void 0:(E=V.constructor)==null?void 0:E.name)==="CSSGroupingRule"||YMb("CSSMediaRule")&&v.parentRule instanceof CSSMediaRule||YMb("CSSSupportsRule")&&v.parentRule instanceof CSSSupportsRule||YMb("CSSConditionRule")&&((b=v.parentRule)==null?void 0:(F=b.constructor)==null?void 0:F.name)==="CSSConditionRule"?(v=Array.from(v.parentRule.cssRules).indexOf(v),Q.unshift(v)):v.parentStyleSheet&&(v=Array.from(v.parentStyleSheet.cssRules).indexOf(v),
Q.unshift(v));return Q};
VC=function(v,Q,V){var E,b;if(!v)return{};v.ownerNode?E=Q.getId(v.ownerNode):b=V.getId(v);return{styleId:b,id:E}};
fuQ=function(v,Q){var V=v.styleSheetRuleCb;var E=v.mirror;var b=v.stylesheetManager;var F=Q.win;if(!F.CSSStyleSheet||!F.CSSStyleSheet.prototype)return function(){};
var t=F.CSSStyleSheet.prototype.insertRule;F.CSSStyleSheet.prototype.insertRule=new En(t,{apply:vj(function(k,T,c){var C=_.L(c),R=C.next().value;C=C.next().value;var l=VC(T,E,b.styleMirror),S=l.id;l=l.styleId;(S&&S!==-1||l&&l!==-1)&&V({id:S,styleId:l,adds:[{rule:R,index:C}]});return k.apply(T,c)})});
F.CSSStyleSheet.prototype.addRule=function(k,T,c){c=c===void 0?this.cssRules.length:c;return F.CSSStyleSheet.prototype.insertRule.apply(this,[k+" { "+T+" }",c])};
var p=F.CSSStyleSheet.prototype.deleteRule;F.CSSStyleSheet.prototype.deleteRule=new En(p,{apply:vj(function(k,T,c){var C=_.L(c).next().value,R=VC(T,E,b.styleMirror),l=R.id;R=R.styleId;(l&&l!==-1||R&&R!==-1)&&V({id:l,styleId:R,removes:[{index:C}]});return k.apply(T,c)})});
F.CSSStyleSheet.prototype.removeRule=function(k){return F.CSSStyleSheet.prototype.deleteRule.apply(this,[k])};
if(F.CSSStyleSheet.prototype.replace){var Z=F.CSSStyleSheet.prototype.replace;F.CSSStyleSheet.prototype.replace=new En(Z,{apply:vj(function(k,T,c){var C=_.L(c).next().value,R=VC(T,E,b.styleMirror),l=R.id;R=R.styleId;(l&&l!==-1||R&&R!==-1)&&V({id:l,styleId:R,replace:C});return k.apply(T,c)})})}if(F.CSSStyleSheet.prototype.replaceSync){var d=F.CSSStyleSheet.prototype.replaceSync;
F.CSSStyleSheet.prototype.replaceSync=new En(d,{apply:vj(function(k,T,c){var C=_.L(c).next().value,R=VC(T,E,b.styleMirror),l=R.id;R=R.styleId;(l&&l!==-1||R&&R!==-1)&&V({id:l,styleId:R,replaceSync:C});return k.apply(T,c)})})}var w={};
c69("CSSGroupingRule")?w.CSSGroupingRule=F.CSSGroupingRule:(c69("CSSMediaRule")&&(w.CSSMediaRule=F.CSSMediaRule),c69("CSSConditionRule")&&(w.CSSConditionRule=F.CSSConditionRule),c69("CSSSupportsRule")&&(w.CSSSupportsRule=F.CSSSupportsRule));var A={};Object.entries(w).forEach(function(k){var T=_.L(k);k=T.next().value;T=T.next().value;A[k]={insertRule:T.prototype.insertRule,deleteRule:T.prototype.deleteRule};T.prototype.insertRule=new En(A[k].insertRule,{apply:vj(function(c,C,R){var l=_.L(R),S=l.next().value;
l=l.next().value;var a=VC(C.parentStyleSheet,E,b.styleMirror),g=a.id;a=a.styleId;(g&&g!==-1||a&&a!==-1)&&V({id:g,styleId:a,adds:[{rule:S,index:[].concat(_.ui(y69(C)),[l||0])}]});return c.apply(C,R)})});
T.prototype.deleteRule=new En(A[k].deleteRule,{apply:vj(function(c,C,R){var l=_.L(R).next().value,S=VC(C.parentStyleSheet,E,b.styleMirror),a=S.id;S=S.styleId;(a&&a!==-1||S&&S!==-1)&&V({id:a,styleId:S,removes:[{index:[].concat(_.ui(y69(C)),[l])}]});return c.apply(C,R)})})});
return vj(function(){F.CSSStyleSheet.prototype.insertRule=t;F.CSSStyleSheet.prototype.deleteRule=p;Z&&(F.CSSStyleSheet.prototype.replace=Z);d&&(F.CSSStyleSheet.prototype.replaceSync=d);Object.entries(w).forEach(function(k){var T=_.L(k);k=T.next().value;T=T.next().value;T.prototype.insertRule=A[k].insertRule;T.prototype.deleteRule=A[k].deleteRule})})};
Cz9=function(v,Q){var V=v.mirror;var E=v.stylesheetManager;var b=null;b=Q.nodeName==="#document"?V.getId(Q):V.getId(xy(Q));var F,t,p;v=Q.nodeName==="#document"?(F=Q.defaultView)==null?void 0:F.Document:(t=Q.ownerDocument)==null?void 0:(p=t.defaultView)==null?void 0:p.ShadowRoot;var Z=(v==null?0:v.prototype)?Object.getOwnPropertyDescriptor(v==null?void 0:v.prototype,"adoptedStyleSheets"):void 0;if(b===null||b===-1||!v||!Z)return function(){};
Object.defineProperty(Q,"adoptedStyleSheets",{configurable:Z.configurable,enumerable:Z.enumerable,get:function(){var d;return(d=Z.get)==null?void 0:d.call(this)},
set:function(d){var w,A=(w=Z.set)==null?void 0:w.call(this,d);if(b!==null&&b!==-1)try{GZb(E,d,b)}catch(k){}return A}});
return vj(function(){Object.defineProperty(Q,"adoptedStyleSheets",{configurable:Z.configurable,enumerable:Z.enumerable,get:Z.get,set:Z.set})})};
MNm=function(v,Q){var V=v.styleDeclarationCb;var E=v.mirror;var b=v.ignoreCSSAttributes;var F=v.stylesheetManager;var t=Q.win;var p=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=new En(p,{apply:vj(function(d,w,A){var k=_.L(A),T=k.next().value,c=k.next().value;k=k.next().value;if(b.has(T))return p.apply(w,[T,c,k]);var C,R=VC((C=w.parentRule)==null?void 0:C.parentStyleSheet,E,F.styleMirror);C=R.id;R=R.styleId;(C&&C!==-1||R&&R!==-1)&&V({id:C,styleId:R,set:{property:T,
value:c,priority:k},index:y69(w.parentRule)});return d.apply(w,A)})});
var Z=t.CSSStyleDeclaration.prototype.removeProperty;t.CSSStyleDeclaration.prototype.removeProperty=new En(Z,{apply:vj(function(d,w,A){var k=_.L(A).next().value;if(b.has(k))return Z.apply(w,[k]);var T,c=VC((T=w.parentRule)==null?void 0:T.parentStyleSheet,E,F.styleMirror);T=c.id;c=c.styleId;(T&&T!==-1||c&&c!==-1)&&V({id:T,styleId:c,remove:{property:k},index:y69(w.parentRule)});return d.apply(w,A)})});
return vj(function(){t.CSSStyleDeclaration.prototype.setProperty=p;t.CSSStyleDeclaration.prototype.removeProperty=Z})};
OMo=function(v){var Q=v.mediaInteractionCb;var V=v.blockClass;var E=v.blockSelector;var b=v.mirror;var F=v.sampling;v=v.doc;var t=vj(function(Z){return IT(vj(function(d){if((d=mi(d))&&!HE(d,V,E,!0)){var w=d.currentTime,A=d.volume,k=d.muted,T=d.playbackRate,c=d.loop;Q({type:Z,id:b.getId(d),currentTime:w,volume:A,muted:k,playbackRate:T,loop:c})}}),F.media||500)}),p=[$y("play",t(0),v),
$y("pause",t(1),v),$y("seeked",t(2),v),$y("volumechange",t(3),v),$y("ratechange",t(4),v)];return vj(function(){p.forEach(function(Z){return Z()})})};
Dk9=function(v){var Q=v.fontCb;v=v.doc;var V=v.defaultView;if(!V)return function(){};
var E=[],b=new WeakMap,F=V.FontFace;V.FontFace=function(t,p,Z){var d=new F(t,p,Z);b.set(d,{family:t,buffer:typeof p!=="string",descriptors:Z,fontSource:typeof p==="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))});return d};
v=Nv(v.fonts,"add",function(t){return function(p){setTimeout(vj(function(){var Z=b.get(p);Z&&(Q(Z),b.delete(p))}),0);
return t.apply(this,[p])}});
E.push(function(){V.FontFace=F});
E.push(v);return vj(function(){E.forEach(function(t){return t()})})};
RKB=function(v){var Q=v.doc,V=v.mirror,E=v.blockClass,b=v.blockSelector,F=v.selectionCb,t=!0;v=vj(function(){var p=Q.getSelection();if(p&&!(t&&(p==null?0:p.isCollapsed))){t=p.isCollapsed||!1;for(var Z=[],d=p.rangeCount||0,w=0;w<d;w++){var A=p.getRangeAt(w),k=A.startContainer,T=A.startOffset,c=A.endContainer;A=A.endOffset;HE(k,E,b,!0)||HE(c,E,b,!0)||Z.push({start:V.getId(k),startOffset:T,end:V.getId(c),endOffset:A})}F({ranges:Z})}});
v();return $y("selectionchange",v)};
nxm=function(v){var Q=v.doc;var V=v.customElementCb;return(v=Q.defaultView)&&v.customElements?Nv(v.customElements,"define",function(E){return function(b,F,t){try{V({define:{name:b}})}catch(p){console.warn("Custom element callback failed for "+b)}return E.apply(this,[b,F,t])}}):function(){}};
lut=function(v,Q){var V=v.mutationCb,E=v.mousemoveCb,b=v.mouseInteractionCb,F=v.scrollCb,t=v.viewportResizeCb,p=v.inputCb,Z=v.mediaInteractionCb,d=v.styleSheetRuleCb,w=v.styleDeclarationCb,A=v.canvasMutationCb,k=v.fontCb,T=v.selectionCb,c=v.customElementCb;v.mutationCb=function(){var C=_.aE.apply(0,arguments);Q.mutation&&Q.mutation.apply(Q,_.ui(C));V.apply(null,_.ui(C))};
v.mousemoveCb=function(){var C=_.aE.apply(0,arguments);Q.mousemove&&Q.mousemove.apply(Q,_.ui(C));E.apply(null,_.ui(C))};
v.mouseInteractionCb=function(){var C=_.aE.apply(0,arguments);Q.mouseInteraction&&Q.mouseInteraction.apply(Q,_.ui(C));b.apply(null,_.ui(C))};
v.scrollCb=function(){var C=_.aE.apply(0,arguments);Q.scroll&&Q.scroll.apply(Q,_.ui(C));F.apply(null,_.ui(C))};
v.viewportResizeCb=function(){var C=_.aE.apply(0,arguments);Q.viewportResize&&Q.viewportResize.apply(Q,_.ui(C));t.apply(null,_.ui(C))};
v.inputCb=function(){var C=_.aE.apply(0,arguments);Q.input&&Q.input.apply(Q,_.ui(C));p.apply(null,_.ui(C))};
v.mediaInteractionCb=function(){var C=_.aE.apply(0,arguments);Q.mediaInteaction&&Q.mediaInteaction.apply(Q,_.ui(C));Z.apply(null,_.ui(C))};
v.styleSheetRuleCb=function(){var C=_.aE.apply(0,arguments);Q.styleSheetRule&&Q.styleSheetRule.apply(Q,_.ui(C));d.apply(null,_.ui(C))};
v.styleDeclarationCb=function(){var C=_.aE.apply(0,arguments);Q.styleDeclaration&&Q.styleDeclaration.apply(Q,_.ui(C));w.apply(null,_.ui(C))};
v.canvasMutationCb=function(){var C=_.aE.apply(0,arguments);Q.canvasMutation&&Q.canvasMutation.apply(Q,_.ui(C));A.apply(null,_.ui(C))};
v.fontCb=function(){var C=_.aE.apply(0,arguments);Q.font&&Q.font.apply(Q,_.ui(C));k.apply(null,_.ui(C))};
v.selectionCb=function(){var C=_.aE.apply(0,arguments);Q.selection&&Q.selection.apply(Q,_.ui(C));T.apply(null,_.ui(C))};
v.customElementCb=function(){var C=_.aE.apply(0,arguments);Q.customElement&&Q.customElement.apply(Q,_.ui(C));c.apply(null,_.ui(C))}};
qMT=function(v,Q){Q=Q===void 0?{}:Q;var V=v.doc.defaultView;if(!V)return function(){};
lut(v,Q);var E;v.recordDOM&&(E=eKT(v,v.doc));var b=PzS(v),F=dkE(v),t=hKG(v),p=weZ(v,{win:V}),Z=Tnm(v),d=OMo(v),w=function(){},A=function(){},k=function(){},T=function(){};
v.recordDOM&&(w=fuQ(v,{win:V}),A=Cz9(v,v.doc),k=MNm(v,{win:V}),v.collectFonts&&(T=Dk9(v)));var c=RKB(v),C=nxm(v),R=[];v=_.L(v.plugins);for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,R.push(Q.observer(Q.callback,V,Q.options));return vj(function(){US.forEach(function(S){return S.reset()});
var l;(l=E)==null||l.disconnect();b();F();t();p();Z();d();w();A();k();T();c();C();R.forEach(function(S){return S()})})};
YMb=function(v){return typeof window[v]!=="undefined"};
c69=function(v){return!!(typeof window[v]!=="undefined"&&window[v].prototype&&"insertRule"in window[v].prototype&&"deleteRule"in window[v].prototype)};
SMS=function(v){v=new Uint8Array(v);for(var Q="",V=0;V<v.byteLength;V++)Q+=String.fromCharCode(v[V]);return btoa(Q)};
zK0=function(v,Q,V){if(v instanceof Array)return v.map(function(b){return zK0(b,Q,V)});
if(v!==null){if(v instanceof Float32Array||v instanceof Float64Array||v instanceof Int32Array||v instanceof Uint32Array||v instanceof Uint8Array||v instanceof Uint16Array||v instanceof Int16Array||v instanceof Int8Array||v instanceof Uint8ClampedArray)return{rr_type:v.constructor.name,args:[Object.values(v)]};if(v instanceof ArrayBuffer){var E=v.constructor.name;v=SMS(v);return{rr_type:E,base64:v}}if(v instanceof DataView)return{rr_type:v.constructor.name,args:[zK0(v.buffer,Q,V),v.byteOffset,v.byteLength]};
if(v instanceof HTMLImageElement)return{rr_type:v.constructor.name,src:v.src};if(v instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:v.toDataURL()};if(v instanceof ImageData)return{rr_type:v.constructor.name,args:[zK0(v.data,Q,V),v.width,v.height]};if(J6G(v,Q)||typeof v==="object")return E=v.constructor.name,v=Nn3(v,Q,V),{rr_type:E,index:v}}return v};
BnQ=function(v,Q,V,E){for(var b=[],F=_.L(Object.getOwnPropertyNames(Q.CanvasRenderingContext2D.prototype)),t=F.next(),p={};!t.done;p={prop$jscomp$58:void 0},t=F.next()){p.prop$jscomp$58=t.value;try{if(typeof Q.CanvasRenderingContext2D.prototype[p.prop$jscomp$58]==="function"){var Z=Nv(Q.CanvasRenderingContext2D.prototype,p.prop$jscomp$58,function(d){return function(w){return function(){var A=_.aE.apply(0,arguments),k=this;HE(this.canvas,V,E,!0)||setTimeout(function(){var T=xkE(A,Q,k);v(k.canvas,{type:bY["2D"],
property:d.prop$jscomp$58,args:T})},0);
return w.apply(this,A)}}}(p));
b.push(Z)}}catch(d){t=aOt(Q.CanvasRenderingContext2D.prototype,p.prop$jscomp$58,{set:function(w){return function(A){v(this.canvas,{type:bY["2D"],property:w.prop$jscomp$58,args:[A],setter:!0})}}(p)}),b.push(t)}}return function(){b.forEach(function(d){return d()})}};
gxE=function(v,Q,V,E){var b=[];try{var F=Nv(v.HTMLCanvasElement.prototype,"getContext",function(t){return function(p){var Z=_.aE.apply(1,arguments);if(!HE(this,Q,V,!0)){var d=p==="experimental-webgl"?"webgl":p;"__context"in this||(this.__context=d);E&&["webgl","webgl2"].includes(d)&&(Z[0]&&typeof Z[0]==="object"?(d=Z[0],d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)):Z.splice(0,1,{preserveDrawingBuffer:!0}))}return t.apply(this,[p].concat(_.ui(Z)))}});
b.push(F)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){b.forEach(function(t){return t()})}};
slQ=function(v,Q,V,E,b,F){for(var t=[],p=_.L(Object.getOwnPropertyNames(v)),Z=p.next(),d={};!Z.done;d={prop$jscomp$59:void 0},Z=p.next())if(d.prop$jscomp$59=Z.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d.prop$jscomp$59))try{if(typeof v[d.prop$jscomp$59]==="function"){var w=Nv(v,d.prop$jscomp$59,function(A){return function(k){return function(){var T=_.aE.apply(0,arguments),c=k.apply(this,T);Nn3(c,F,this);"tagName"in this.canvas&&!HE(this.canvas,E,b,!0)&&(T=
xkE(T,F,this),V(this.canvas,{type:Q,property:A.prop$jscomp$59,args:T}));return c}}}(d));
t.push(w)}}catch(A){Z=aOt(v,d.prop$jscomp$59,{set:function(k){return function(T){V(this.canvas,{type:Q,property:k.prop$jscomp$59,args:[T],setter:!0})}}(d)}),t.push(Z)}return t};
uEB=function(v,Q,V,E){var b=[];b.push.apply(b,_.ui(slQ(Q.WebGLRenderingContext.prototype,1,v,V,E,Q)));typeof Q.WebGL2RenderingContext!=="undefined"&&b.push.apply(b,_.ui(slQ(Q.WebGL2RenderingContext.prototype,2,v,V,E,Q)));return function(){b.forEach(function(F){return F()})}};
EYt=function(v){var Q=v=v===void 0?{}:v,V=Q.emit,E=Q.checkoutEveryNms,b=Q.checkoutEveryNth,F=Q.blockClass===void 0?"rr-block":Q.blockClass,t=Q.blockSelector===void 0?null:Q.blockSelector,p=Q.ignoreClass===void 0?"rr-ignore":Q.ignoreClass,Z=Q.ignoreSelector===void 0?null:Q.ignoreSelector,d=Q.maskTextClass===void 0?"rr-mask":Q.maskTextClass,w=Q.maskTextSelector===void 0?null:Q.maskTextSelector,A=Q.inlineStylesheet===void 0?!0:Q.inlineStylesheet,k=Q.maskAllInputs,T=Q.maskInputOptions,c=Q.slimDOMOptions,
C=Q.maskInputFn,R=Q.maskTextFn,l=Q.hooks,S=Q.packFn,a=Q.sampling===void 0?{}:Q.sampling,g=Q.dataURLOptions===void 0?{}:Q.dataURLOptions,u=Q.mousemoveWait,r=Q.recordDOM===void 0?!0:Q.recordDOM,v9=Q.recordCanvas===void 0?!1:Q.recordCanvas,t3=Q.recordCrossOriginIframes===void 0?!1:Q.recordCrossOriginIframes,h3=Q.recordAfter===void 0?v.recordAfter==="DOMContentLoaded"?v.recordAfter:"load":Q.recordAfter,OB=Q.userTriggeredOnInput===void 0?!1:Q.userTriggeredOnInput,kQ=Q.collectFonts===void 0?!1:Q.collectFonts,
yo=Q.inlineImages===void 0?!1:Q.inlineImages,xQ=Q.plugins,lb=Q.keepIframeSrcFn===void 0?function(){return!1}:Q.keepIframeSrcFn,ep=Q.ignoreCSSAttributes===void 0?new Set([]):Q.ignoreCSSAttributes;
Fy=Q.errorHandler;var JS=t3?window.parent===window:!0,fZ=!1;if(!JS)try{window.parent.document&&(fZ=!1)}catch(hS){fZ=!0}if(JS&&!V)throw Error("$e");if(!JS&&!fZ)return function(){};
u!==void 0&&a.mousemove===void 0&&(a.mousemove=u);KC.reset();var mS=k===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:T!==void 0?T:{password:!0},PN=c===!0||c==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:c==="all",headMetaDescKeywords:c==="all",headTitleMutations:c==="all"}:
c?c:{};vxb();var qZ,DX=0,Th=function(hS){for(var bh=_.L(xQ||[]),ah=bh.next();!ah.done;ah=bh.next())ah=ah.value,ah.eventProcessor&&(hS=ah.eventProcessor(hS));S&&!fZ&&(hS=S(hS));return hS};
iY=function(hS,bh){hS.timestamp=ZMo();var ah;((ah=US[0])==null?0:ah.isFrozen())&&hS.type!==2&&(hS.type!==3||hS.data.source!==0)&&US.forEach(function(vs){return vs.unfreeze()});
JS?V==null||V(Th(hS),bh):fZ&&(bh={type:"rrweb",event:Th(hS),origin:window.location.origin,isCheckout:bh},window.parent.postMessage(bh,"*"));hS.type===2?(qZ=hS,DX=0):hS.type!==3||hS.data.source===0&&hS.data.isAttachIframe||(DX++,hS=E&&hS.timestamp-qZ.timestamp>E,(b&&DX>=b||hS)&&jlE(!0))};
var R8=function(hS){iY({type:3,data:Object.assign({},{source:0},hS)})},LE=function(hS){return iY({type:3,
data:Object.assign({},{source:3},hS)})},Q8=function(hS){return iY({type:3,
data:Object.assign({},{source:9},hS)})},Tq=new WG3({mutationCb:R8,
adoptedStyleSheetCb:function(hS){return iY({type:3,data:Object.assign({},{source:15},hS)})}}),Ed=new oxr({mirror:KC,
mutationCb:R8,stylesheetManager:Tq,recordCrossOriginIframes:t3,wrappedEmit:iY});v=_.L(xQ||[]);for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.getMirror&&Q.getMirror({nodeMirror:KC,crossOriginIframeMirror:Ed.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ed.crossOriginIframeStyleMirror});var y8=new Xeo;auZ=new r6B({recordCanvas:v9,mutationCb:Q8,win:window,blockClass:F,blockSelector:t,mirror:KC,sampling:a.canvas,dataURLOptions:g});var mA=new $k0({mutationCb:R8,scrollCb:LE,bypassOptions:{blockClass:F,
blockSelector:t,maskTextClass:d,maskTextSelector:w,inlineStylesheet:A,maskInputOptions:mS,dataURLOptions:g,maskTextFn:R,maskInputFn:C,recordCanvas:v9,inlineImages:yo,sampling:a,slimDOMOptions:PN,iframeManager:Ed,stylesheetManager:Tq,canvasManager:auZ,keepIframeSrcFn:lb,processedNodeManager:y8},mirror:KC});jlE=function(hS){hS=hS===void 0?!1:hS;if(r){iY({type:4,data:{href:window.location.href,width:IOB(),height:$VT()}},hS);Tq.reset();mA.init();US.forEach(function(ah){return ah.lock()});
var bh=XAT({mirror:KC,blockClass:F,blockSelector:t,maskTextClass:d,maskTextSelector:w,inlineStylesheet:A,maskAllInputs:mS,maskTextFn:R,maskInputFn:C,slimDOM:PN,dataURLOptions:g,recordCanvas:v9,inlineImages:yo,onSerialize:function(ah){ah.nodeName==="IFRAME"&&KC.nodeMetaMap.get(ah)&&Iuh(Ed,ah);QlB(ah,KC)&&HME(Tq,ah);ah&&BE(ah)&&mkr(mA,BE(ah),document)},
onIframeLoad:function(ah,vs){UkG(Ed,ah,vs);ah.contentWindow&&ah.contentDocument&&vYo(mA,ah.contentWindow.Element,ah.contentDocument)},
onStylesheetLoad:function(ah,vs){QHr(Tq,ah,vs)},
keepIframeSrcFn:lb});bh?(iY({type:2,data:{node:bh,initialOffset:rGQ(window)}},hS),US.forEach(function(ah){return ah.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&GZb(Tq,document.adoptedStyleSheets,KC.getId(document))):console.warn("Failed to snapshot the document")}};
try{var C$=[],oN=function(hS){var bh;return vj(qMT)({mutationCb:R8,mousemoveCb:function(ah,vs){return iY({type:3,data:{source:vs,positions:ah}})},
mouseInteractionCb:function(ah){return iY({type:3,data:Object.assign({},{source:2},ah)})},
scrollCb:LE,viewportResizeCb:function(ah){return iY({type:3,data:Object.assign({},{source:4},ah)})},
inputCb:function(ah){return iY({type:3,data:Object.assign({},{source:5},ah)})},
mediaInteractionCb:function(ah){return iY({type:3,data:Object.assign({},{source:7},ah)})},
styleSheetRuleCb:function(ah){return iY({type:3,data:Object.assign({},{source:8},ah)})},
styleDeclarationCb:function(ah){return iY({type:3,data:Object.assign({},{source:13},ah)})},
canvasMutationCb:Q8,fontCb:function(ah){return iY({type:3,data:Object.assign({},{source:10},ah)})},
selectionCb:function(ah){iY({type:3,data:Object.assign({},{source:14},ah)})},
customElementCb:function(ah){iY({type:3,data:Object.assign({},{source:16},ah)})},
blockClass:F,ignoreClass:p,ignoreSelector:Z,maskTextClass:d,maskTextSelector:w,maskInputOptions:mS,inlineStylesheet:A,sampling:a,recordDOM:r,recordCanvas:v9,inlineImages:yo,userTriggeredOnInput:OB,collectFonts:kQ,doc:hS,maskInputFn:C,maskTextFn:R,keepIframeSrcFn:lb,blockSelector:t,slimDOMOptions:PN,dataURLOptions:g,mirror:KC,iframeManager:Ed,stylesheetManager:Tq,shadowDomManager:mA,processedNodeManager:y8,canvasManager:auZ,ignoreCSSAttributes:ep,plugins:(xQ==null?void 0:(bh=xQ.filter(function(ah){return ah.observer}))==
null?void 0:bh.map(function(ah){return{observer:ah.observer,
options:ah.options,callback:function(vs){return iY({type:6,data:{plugin:ah.name,payload:vs}})}}}))||[]},l)};
VyZ(Ed,function(hS){try{C$.push(oN(hS.contentDocument))}catch(bh){console.warn(bh)}});
var dV=function(){jlE();C$.push(oN(document))};
document.readyState==="interactive"||document.readyState==="complete"?dV():(C$.push($y("DOMContentLoaded",function(){iY({type:0,data:{}});h3==="DOMContentLoaded"&&dV()})),C$.push($y("load",function(){iY({type:1,
data:{}});h3==="load"&&dV()},window)));
return function(){C$.forEach(function(hS){try{hS()}catch(bh){String(bh).toLowerCase().includes("cross-origin")||console.warn(bh)}});
y8.destroy();Fy=void 0}}catch(hS){console.warn(hS)}};
_.G=function(v,Q){Q=U9(Hq(Q));v.innerHTML=Q};
KKE=function(v){var Q=bBb;Q||(Q=FKh(),Q=bBb=_.gI.transpose(Q));Q=Q[v];return typeof Q==="string"?Q:_.LC(v)};
iBS=function(v){v=String(v).toLowerCase();var Q=FKh()[v];return typeof Q==="string"?Q:_.tY(v)};
LKZ=function(v){v=v.toLowerCase();v=FKh()[v];return typeof v==="string"?v:null};
FKh=function(){if(!tyQ){for(var v=Object.assign({},pLo),Q=_.L(e_B),V=Q.next();!V.done;V=Q.next())V=V.value,v[V.toLowerCase()]=V;tyQ=v}return tyQ};
d7b=function(v,Q){var V=window.customElements;return V&&V.get(v)||ZBo[v]===!0?2:Q.name==="HTMLUnknownElement"?1:Q.name==="HTMLElement"&&PNZ.test(v)?3:0};
AfS=function(v,Q){switch(Q){case "innerHTML":return h_b(v)===1?2:null;case "textContent":return v=h_b(v),v===1||v===6?1:null;default:var V,E;return(E=(V=wLZ[v.localName])==null?void 0:V[Q])!=null?E:null}};
h_b=function(v){var Q=v.localName,V=d7b(Q,v.constructor);switch(V){case 0:case 1:return kpm(Q,v);case 3:case 2:return 1;default:_.rV(V,"got an unknown element classification")}};
kpm=function(v,Q){var V=Object.hasOwnProperty.call(Te0,v)?Te0[v]:null;return V!==null?V:Object.hasOwnProperty.call(YCB,v)&&Q instanceof SVGElement?YCB[v]:null};
yfE=function(v,Q){return Q};
fIE=function(v){return(v=v.split(cfh,2))?{url:v[0],metadata:v[1]}:null};
CNb=function(v){var Q=String(v.url).replace(Gp0,encodeURIComponent);if(v=v.metadata){Gp0.lastIndex=0;if(Gp0.test(v))return null;Q+=" "+v}return Q};
R_T=function(v){function Q(d){var w=d.localName;if(!d.getAttribute("is")&&d7b(w,d.constructor)===2){var A;return(A=Z)!=null?A:Z=document.createElement("polyresinuncustomized")}(d=p[w])||(d=p[w]=document.createElement(w));return d}
var V=v.reportHandler||void 0,E=v.safeTypesBridge||Myb,b=/^$/;if(v=v.allowedIdentifierPrefixes){v=_.L(v);for(var F=v.next();!F.done;F=v.next())b=new RegExp(b.source+"|^"+_.OBT(F.value))}V&&V(!1,"initResin",null);var t=D7m(b,E,V),p={},Z=null;return function(d,w,A){var k=d.nodeType;if(k!==Node.ELEMENT_NODE){if(k===Node.TEXT_NODE){w=d.parentElement;A=!w;if(w&&w.nodeType===Node.ELEMENT_NODE){k=w.localName;var T=d7b(k,w.constructor);switch(T){case 0:case 1:w=kpm(k,w);A=w===1||w===6;break;case 3:case 2:A=
!0;break;default:_.rV(T,"got an unknown element classification")}}if(A)return function(l){return""+E(l,"STRING",l)}}return function(l){if(!l&&l!==document.all)return l;
V&&V(!0,"Failed to sanitize "+(d.parentElement&&d.parentElement.nodeName)+" #text node to value "+l,d.parentElement);return pC}}var c=d.localName;
k=Q(d);var C=null;switch(A){case "attribute":if(iBS(w)in k)break;return function(l){return l};
case "property":if(w in k){C=AfS(k,w);break}if((T=LKZ(w))&&T in k)break;return function(l){return l};
default:_.rV(A,"got an unknown resin type, expected either 'property' or 'attribute'")}var R=A==="attribute"?w.toLowerCase():KKE(w);C||(C=Mz3(c,R,function(l){var S=d.getAttribute(l);return!S||/[\[\{]/.test(l)?null:S}));
return function(l){var S=eH,a=null;if(!l&&l!==document.all)return l;if(C!=null){var g=t[C],u=g.safeType;a=g.safeReplacement;u&&(S=E(l,u,eH));S===eH&&(g.filterString?(S=String(E(l,"STRING",l)),S=g.filterString(c,R,S)):g.filterRaw&&(S=g.filterRaw(c,R,l,d)),S===a&&(S=eH))}S===eH&&(S=a||pC,V&&V(!0,"Failed to sanitize attribute of <"+c+">: <"+c+" "+R+'="'+l+'">',d));return S}}};
D7m=function(v,Q,V){return[,{filterRaw:function(E,b,F){return F},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:nYh,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:nYh,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:pC,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:lI0,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(E,b,F){F=
String(F).toLowerCase();return Rd0(E,b,F)?F:pC},
safeReplacement:pC,safeType:void 0},,{filterRaw:void 0,filterString:function(E,b,F){return v.test(F)?F:pC},
safeReplacement:pC,safeType:"CONSTANT"},{filterRaw:function(E,b,F,t){if(typeof F==="string")var p=(p=F.match(qCG))?p.map(fIE).filter(Boolean):[];else if(Array.isArray(F))p=F;else return nYh;var Z=p;p=[];var d=[],w={};if(Array.isArray(Z))for(var A=0,k=Z.length;A<k;++A){var T=Z[A],c=T&&T.url;if(c){var C=Q(c,"URL",w);if(C){var R=C!==w;(R?p:d).push({url:R?C:c,metadata:T.metadata})}}}else d.push(Z);Z=d.length?JSON.stringify(d):null;d=eH;if(p.length){if(!Array.isArray(p))throw Error();d=p.map(CNb).filter(Boolean).join(" , ")||
eH}Z&&V&&V(!0,"Failed to sanitize attribute value of <"+E+">: <"+E+" "+b+'="'+F+'">: '+Z,t);return d===eH?nYh:d},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
SCZ=function(v){var Q=R_T(v);return function(V,E,b,F){return F||F===document.all?Q(V,E,b)(F):F}};
Za=function(v,Q){function V(){function b(p,Z,d){for(Z=Reflect.getMetadata("parameters",p)||[];Z.length<=d;)Z.push(null);Z[d]=Z[d]||[];Z[d].push(t);Reflect.defineMetadata(Z,p);return p}
var F=_.aE.apply(0,arguments);if(this instanceof V)return E.apply(this,F),this;var t=new (Function.prototype.bind.apply(V,[null].concat(_.ui(F))));b.annotation=t;return b}
var E=z_E(Q);V.prototype.toString=function(){return"@"+v};
return V.annotationCls=V};
z_E=function(v){return function(){var Q=_.aE.apply(0,arguments),V=this;v.forEach(function(E,b){b=Q[b];if(Array.isArray(E))V[E[0]]=b&&b!==void 0?b:E[1];else for(var F in E)V[F]=b&&b[F]!==void 0?b[F]:E[F]})}};
Jf0=function(v){return v!==void 0&&v!==null};
Pj=function(v){if(typeof v==="string")return v;if(v===void 0||v===null)return""+v;if(v.overriddenName)return v.overriddenName;if(v.name)return v.name;v=v.toString();var Q=v.indexOf("\n");return Q===-1?v:v.substring(0,Q)};
NeQ=function(v){v.__forward_ref__=NeQ;v.toString=function(){return Pj(this())};
return v};
di=function(v){return typeof v==="function"&&v.hasOwnProperty("__forward_ref__")&&v.__forward_ref__===NeQ?v():v};
x7E=function(v){return v?v.map(function(Q){return new (Function.prototype.bind.apply(Q.type.annotationCls,[null].concat(_.ui(Q.args?Q.args:[]))))}):[]};
BeS=function(v){for(var Q=[],V=0;V<v.length;++V){if(Q.indexOf(v[V])>-1){Q.push(v[V]);break}Q.push(v[V])}return Q};
gY9=function(v){return v.length>1?" ("+BeS(v.slice().reverse()).map(function(Q){return Pj(Q.token)}).join(" -> ")+")":""};
uG0=function(v,Q,V,E){if(E){var b=Error("cf``"+(E instanceof Error?E.message:E));b.ngOriginalError=E}else b=Error();b.addKey=sHr;b.keys=[Q];b.injectors=[v];b.constructResolvingMessage=V;b.message=b.constructResolvingMessage();b.ngOriginalError=E;return b};
sHr=function(v,Q){this.injectors.push(v);this.keys.push(Q);this.message=this.constructResolvingMessage()};
jH3=function(v,Q){return uG0(v,Q,function(){return"No provider for "+Pj(this.keys[0].token)+"!"+gY9(this.keys)})};
WKB=function(v,Q){return uG0(v,Q,function(){return"Cannot instantiate cyclic dependency!"+gY9(this.keys)})};
oYT=function(v,Q,V){return uG0(v,V,function(){var E=Pj(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+E+"!"+gY9(this.keys)+"."},Q)};
XLS=function(v,Q){for(var V=[],E=0,b=Q.length;E<b;E++){var F=Q[E];F&&F.length!=0?V.push(F.map(Pj).join(" ")):V.push("?")}return Error("gf`"+Pj(v)+"`"+V.join(", ")+"`"+Pj(v))};
U7S=function(v){var Q=void 0,V=void 0;if(v&&v.useClass!==void 0){Q=v.useClass;var E=di(v.useClass);var b=aI9.factory(E);E=rfb(E)}else v&&v.useExisting!==void 0?(b=function(F){return F},E=[$7m(hY.get(di(v.useExisting)))]):v&&v.useFactory!==void 0?(b=v.useFactory,E=II0(v.useFactory,v.deps)):(V=v.useValue,b=function(){return v.useValue},E=HBB);
return new m7h(b,E,Q,V)};
Q4G=function(v){return new v5m(hY.get(di(v.provide)),[U7S(v)],v.multi)};
E5Z=function(v){v=VOG(v,[]).map(Q4G);for(var Q=new Map,V=0;V<v.length;V++){var E=v[V],b=Q.get(E.key.id);if(b){if(E.multiProvider!==b.multiProvider)throw Error("jf`"+b+"`"+E);if(E.multiProvider)for(var F=0;F<E.resolvedFactories.length;F++)b.resolvedFactories.push(E.resolvedFactories[F]);else Q.set(E.key.id,E)}else b=void 0,E.multiProvider?b=new v5m(E.key,E.resolvedFactories.slice(),E.multiProvider):b=E,Q.set(E.key.id,b)}return Array.from(Q.values())};
VOG=function(v,Q){v.forEach(function(V){if(V instanceof bYG)Q.push({provide:V,useClass:V});else if(V&&typeof V=="object"&&V.provide!==void 0)Q.push(V);else if(V instanceof Array)VOG(V,Q);else throw Error("ff`"+V);});
return Q};
II0=function(v,Q){if(Q){var V=Q.map(function(E){return[E]});
return Q.map(function(E){return Fvb(v,E,V)})}return rfb(v)};
rfb=function(v){var Q=aI9.parameters(v);if(!Q)return[];if(Q.some(function(V){return V==null}))throw XLS(v,Q);
return Q.map(function(V){return Fvb(v,V,Q)})};
Fvb=function(v,Q,V){var E=null,b=!1;if(!Array.isArray(Q))return Q instanceof Kvb?iY9(Q.token,b,null):iY9(Q,b,null);for(var F=null,t=0;t<Q.length;++t){var p=Q[t];if(p instanceof bYG)E=p;else if(p instanceof Kvb)E=p.token;else if(p instanceof LvT)b=!0;else if(p instanceof tO9||p instanceof pVT)F=p}E=di(E);if(E!=null)return iY9(E,b,F);throw XLS(v,V);};
iY9=function(v,Q,V){return new ewE(hY.get(di(v)),Q,V)};
ZYh=function(v,Q){for(var V=Array(v.providers.length),E=0;E<v.providers.length;++E){var b=E;if(E<0||E>=v.providers.length)throw Error("hf`"+E);V[b]=Q(v.providers[E])}return V};
P8B=function(v){return typeof v==="function"&&aI9.parameters(v).every(function(Q){return!!Q})};
wV9=function(v){var Q=d6G;hwB.get(v)||hwB.set(v,new Q);return hwB.get(v)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(v)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(v)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v,Q){var V,E;if(v.contains(Q))return!0;v=_.wi(v).querySelectorAll("content,slot");for(V=0;V<v.length;++V){var b=_.wi(v[V]).getDistributedNodes();for(E=0;E<b.length;++E)if(b[E].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(b[E],Q))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){v.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v)&&v.preventDefault();v.targetTouches&&(v=v.targetTouches[0],Ac9=v.pageX,kjT=v.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var v=0,Q=AY.length;v<Q;v++)document.addEventListener(AY[v],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var v=0,Q=AY.length;v<Q;v++)document.removeEventListener(AY[v],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){var Q=_.wi(v).rootTarget;v.type!=="touchmove"&&T9B!==Q&&(T9B=Q,Y59=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.wi(v).path));if(!Y59.length)return!0;if(v.type==="touchstart")return!1;v=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y59,v.deltaX,v.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){for(var Q=[],V=v.indexOf(ycQ),E=0;E<=V;E++)if(v[E].nodeType===Node.ELEMENT_NODE){var b=v[E],F=b.style;F.overflow!=="scroll"&&F.overflow!=="auto"&&(F=window.getComputedStyle(b));F.overflow!=="scroll"&&F.overflow!=="auto"||Q.push(b)}return Q};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v,Q,V){if(Q||V)for(var E=Math.abs(V)>=Math.abs(Q),b=0;b<v.length;b++){var F=v[b];if(E?V<0?F.scrollTop>0:F.scrollTop<F.scrollHeight-F.clientHeight:Q<0?F.scrollLeft>0:F.scrollLeft<F.scrollWidth-F.clientWidth)return F}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){var Q={deltaX:v.deltaX,deltaY:v.deltaY};"deltaX"in v||("wheelDeltaX"in v&&"wheelDeltaY"in v?(Q.deltaX=-v.wheelDeltaX,Q.deltaY=-v.wheelDeltaY):"wheelDelta"in v?(Q.deltaX=0,Q.deltaY=-v.wheelDelta):"axis"in v?(Q.deltaX=v.axis===1?v.detail:0,Q.deltaY=v.axis===2?v.detail:0):v.targetTouches&&(v=v.targetTouches[0],Q.deltaX=Ac9-v.pageX,Q.deltaY=kjT-v.pageY));return Q};
cc9=function(v){this.element=v;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Gjt=function(v){this.element=v;this.color=window.getComputedStyle(v).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.wi(this.waveContainer).appendChild(this.wave);fLT(this)};
kI=function(v,Q){for(var V in v)if(V.toLowerCase()===Q.toLowerCase())return v[V]};
C80=function(v,Q){for(var V in v)if(V.toLowerCase()===Q.toLowerCase()){delete v[V];break}};
OYo=function(v){v=_.gI.clone(v);for(var Q=0;Q<MOm.length;++Q){var V=MOm[Q],E=kI(v,V);E&&(v["X-Goog-Upload-Header-"+V]=E,C80(v,V))}return v};
D6b=function(v){v=_.gI.clone(v);C80(v,"X-Goog-Upload-Status")};
n5o=function(v){return Rwm.some(function(Q){return Q.test(v)})};
zwT=function(v,Q){var V;var E=(V=v.formContent)==null?void 0:V.locale;V=E==null?void 0:E.split("-")[0];E=E&&lLr.includes(E)?E:V&&lLr.includes(V)?V:void 0;E=(E!=null?E:"en").replaceAll("-","_").toLowerCase();var b;v=((b=v.initializationData)==null?0:b.useNightlyRelease)?"nightly":"live";var F;return(Q==null?0:(F=Q.getEnableAlohaBinarySplit)==null?0:F.call(Q))?_.Ad(q5t,v):_.Ad(S5Q,v,E)};
x6B=function(v,Q,V,E){if(Jc0&&N9h===Q)return Jc0;N9h=Q;var b=zwT(v,E);return Jc0=Q.feedbackV2GlobalObject?Promise.resolve(Q.feedbackV2GlobalObject):new Promise(function(F,t){var p=_.RD("SCRIPT");_.L$(p,b);p.onload=function(){Q.feedbackV2GlobalObject?F(Q.feedbackV2GlobalObject):t(Error("mf"))};
p.onerror=function(){t(Error("nf`"+b.toString()))};
V.body.appendChild(p)})};
s4E=function(v,Q,V,E){if(B90&&g5r===Q)return B90;g5r=Q;var b=zwT(v,E);return B90=Q.feedbackV2GlobalObject?Promise.resolve(Q.feedbackV2GlobalObject):new Promise(function(F,t){var p=_.RD("SCRIPT");_.L$(p,b);p.onload=function(){Q.feedbackV2GlobalObject?F(Q.feedbackV2GlobalObject):t(Error("mf"))};
p.onerror=function(){t(Error("nf`"+b.toString()))};
V.body.appendChild(p)})};
uB3=function(v,Q,V,E,b){b=b===void 0?!0:b;var F,t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:return F=Date.now(),w.yield(x6B(v,V,E,Q),2);case 2:t=w.yieldResult;if(!(b||((Z=v.initializationData)==null?0:Z.useNightlyRelease)||((d=v.initializationData)==null?0:d.isLocalServer))){p=t.initializeFeedbackClient(v,F,Q);w.jumpTo(3);break}return w.yield(t.initializeFeedbackClientAsync(v,F,Q),4);case 4:p=w.yieldResult;case 3:return p.initiateAloha(),w.return(p)}})};
j49=function(v,Q,V,E){var b,F,t;return _.e(function(p){if(p.nextAddress==1)return b=Date.now(),p.yield(s4E(v,V,E.document,Q),2);if(p.nextAddress!=3)return F=p.yieldResult,p.yield(F.initializeFeedbackClientAsync(v,b,Q,E),3);t=p.yieldResult;t.initiateAloha();return p.return(t)})};
WvG=function(v,Q,V){var E=!0;E=E===void 0?!0:E;var b,F,t,p,Z,d,w,A;return _.e(function(k){b=V||_.bb;if((F=Q)==null?0:(p=(t=F).getEnableAlohaBinarySplit)==null?0:p.call(t)){Z=b;if(Z.isFormOpened)throw new Ti;Z.isFormOpened=!0;v.callbacks=v.callbacks||{};d=v.callbacks.onClose||function(){};
v.callbacks.onClose=function(T){Z.isFormOpened=!1;d(T)};
try{return k.return(j49(v,Q,Z,b))}catch(T){throw Z.isFormOpened=!1,T;}}else{w=b;if(w.isFormOpened)throw new Ti;w.isFormOpened=!0;v.callbacks=v.callbacks||{};A=v.callbacks.onClose||function(){};
v.callbacks.onClose=function(T){w.isFormOpened=!1;A(T)};
try{return k.return(uB3(v,Q,w,b.document,E))}catch(T){throw w.isFormOpened=!1,T;}}_.q1(k)})};
$6r=function(v,Q){return _.e(function(V){return V.return(new Promise(function(E,b){Number.isInteger(Number(v))&&Number(v)>0?(b=o5B(Q!=null?Q:"")+"/aloha_form_properties?productId="+v,XVt(b,function(F){F=F.target;var t=null;try{var p=JSON,Z=p.stringify;if(F.JSC$9876_xhr_){var d=F.JSC$9876_xhr_.responseText;d.indexOf(")]}'\n")==0&&(d=d.substring(5));var w=(0,_.YI)(d)}else w=void 0;t=$j9(aLS,Z.call(p,w))}catch(A){Z=new aLS,w=rcQ(),w=_.yC(w,13,!1),w=_.yC(w,14,!0),w=_.yC(w,15,!0),w=_.yC(w,20,!1),t=_.Mj(Z,
1,w)}E(t)},"GET","",{},2E3,!0)):b(Error("of`"+v))}))})};
o5B=function(v){return n5o(v)?v:"https://www.google.com/tools/feedback"};
U6h=function(v){v=v.match(new RegExp(ILm,"gi"))||[];v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;a:{var V=_.L(HYb);for(var E=V.next();!E.done;E=V.next())if(E.value.test(Q)){V=!1;break a}V=!0}if(!V)a:{V=_.L(m6B);for(E=V.next();!E.done;E=V.next())if(E.value.test(Q)){V=!0;break a}V=!1}if(V)return!0}return!1};
vm3=function(v,Q){var V={},E=Object.keys(v);E=_.L(E);for(var b=E.next();!b.done;b=E.next())b=b.value,V[b]=Q(b,v[b]);return V};
QBG=function(v){switch(v){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
Emb=function(v){if(window.crypto&&window.crypto.getRandomValues)try{var Q=Array(v),V=new Uint8Array(v);window.crypto.getRandomValues(V);for(var E=0;E<Q.length;E++)Q[E]=V[E];return Q}catch(F){}Q=Array(v);for(V=0;V<v;V++){E=Date.now();for(var b=0;b<E%23;b++)Q[V]=Math.random();Q[V]=Math.floor(Math.random()*256)}if(VXQ)for(V=1,E=0;E<VXQ.length;E++)Q[V%v]^=Q[(V-1)%v]/4^VXQ.charCodeAt(E),V++;return Q};
fC=function(v){v=Emb(v);for(var Q=[],V=0;V<v.length;V++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(v[V]&63));return Q.join("")};
bVm=function(){var v=_.bb.ytLoggingDocDocumentNonce_;v||(v=fC(16),_.Pr("ytLoggingDocDocumentNonce_",v));return v};
KUh=function(v){v&&_.X0("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:FUo,clientScreenNonce:v})};
iVQ=function(v){return _.r7("client-screen-nonce-store",{})[v===void 0?0:v]};
LUG=function(v,Q){Q=Q===void 0?0:Q;var V=_.r7("client-screen-nonce-store");V||(V={},_.aS("client-screen-nonce-store",V));V[Q]=v};
tXZ=function(v){v=v===void 0?0:v;return v===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+v};
pWT=function(v){return _.r7(tXZ(v===void 0?0:v))};
_.CC=function(v){return(v=pWT(v===void 0?0:v))?new Gi({veType:v,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ehm=function(){var v=_.r7("csn-to-ctt-auth-info");v||(v={},_.aS("csn-to-ctt-auth-info",v));return v};
ZV3=function(){return Object.values(_.r7("client-screen-nonce-store",{})).filter(function(v){return v!==void 0})};
_.Mo=function(v){v=iVQ(v===void 0?0:v);if(!v&&!_.mX("USE_CSN_FALLBACK",!0))return null;v||(v="UNDEFINED_CSN");return v?v:null};
dnS=function(v){for(var Q=_.L(Object.values(P0E)),V=Q.next();!V.done;V=Q.next())if(_.Mo(V.value)===v)return!0;return!1};
hh0=function(v,Q,V){var E=ehm();(V=_.Mo(V))&&delete E[V];Q&&(E[v]=Q)};
On=function(v){return ehm()[v]};
_.Da=function(v,Q,V,E){V=V===void 0?0:V;if(v!==iVQ(V)||Q!==_.r7(tXZ(V)))if(hh0(v,E,V),LUG(v,V),_.aS(tXZ(V),Q),Q=function(){setTimeout(function(){KUh(v)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Q)}catch(b){Q()}else Q()};
wWo=function(v,Q){Q=Q===void 0?"":Q;var V=[],E;for(E in v)if(v.hasOwnProperty(E)){var b=Q!==""?Q+"."+E:E;typeof v[E]==="object"?V.push.apply(V,_.ui(wWo(v[E],b))):V.push([b,v[E]])}V.sort();return V};
_.nC=function(v){var Q=_.aE.apply(1,arguments);if(!Rx(v)||Q.some(function(E){return!Rx(E)}))throw Error("pf");
Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())ACZ(v,V.value)};
ACZ=function(v,Q){for(var V in Q)if(Rx(Q[V])){if(V in v&&!Rx(v[V]))throw Error("qf");V in v||(v[V]={});ACZ(v[V],Q[V])}else if(kIE(Q[V])){if(V in v&&!kIE(v[V]))throw Error("rf");V in v||(v[V]=[]);TmG(v[V],Q[V])}else v[V]=Q[V];return v};
TmG=function(v,Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,Rx(V)?v.push(ACZ({},V)):kIE(V)?v.push(TmG([],V)):v.push(V);return v};
Rx=function(v){return typeof v==="object"&&!Array.isArray(v)};
kIE=function(v){return typeof v==="object"&&Array.isArray(v)};
yCr=function(v){for(var Q=_.L(Object.entries(YkS)),V=Q.next();!V.done;V=Q.next())if(V=_.L(V.value),V.next(),V=V.next().value,V==="SLI_STATUS_"+v)return V;return"SLI_STATUS_UNKNOWN"};
_.lY=function(v,Q,V,E){return cCS(v,Q,function(){return new _.fbB(v,Q,V,E)})};
_.GIh=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
C0b=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
qo=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
MXS=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
OVb=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
DnT=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
lbS=function(v){v&&(v.dataset?v.dataset[RhT()]="true":_.p$([_.hd(nmr)],v,"data-loaded","true".toString()))};
qkG=function(v){return v?v.dataset?v.dataset[RhT()]:v.getAttribute("data-loaded"):null};
RhT=function(){return SkE.loaded||(SkE.loaded="loaded".replace(/\-([a-z])/g,function(v,Q){return Q.toUpperCase()}))};
_.SH=function(v,Q,V){zh3(v,Q,V===void 0?null:V)};
_.NmE=function(v,Q){v&&Q&&(v=""+_.$Q(Q),(v=JCr[v])&&_.yRt(v))};
zh3=function(v,Q,V){V=V===void 0?null:V;var E=_.xno(typeof v==="string"?v:v.toString()),b=document.getElementById(E),F=b&&qkG(b),t=b&&!F;F?Q&&Q():(Q&&(F=_.cx(E,Q),Q=""+_.$Q(Q),JCr[Q]=F),t||(b=Bmo(v,E,function(){qkG(b)||(lbS(b),_.cR0(E),_.G_(function(){_.G4S(E)},0))},V)))};
Bmo=function(v,Q,V,E){E=E===void 0?null:E;var b=_.RD("SCRIPT");b.id=Q;b.onload=function(){V&&setTimeout(V,0)};
b.onreadystatechange=function(){switch(b.readyState){case "loaded":case "complete":b.onload()}};
E&&b.setAttribute("nonce",E);_.L$(b,typeof v==="string"?_.BM(v):v);v=document.getElementsByTagName("head")[0]||document.body;v.insertBefore(b,v.firstChild);return b};
_.xno=function(v){var Q=document.createElement("a");$P(Q,v);return"js-"+zi(Q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
gmQ=function(v){var Q=_.r7("INNERTUBE_HOST_OVERRIDE");Q&&(v=String(Q)+String(_.JY(v)));return v};
sBb=function(v){var Q={};_.Y("json_condensed_response")&&(Q.prettyPrint="false");return v=WbT(v,Q)};
_.No=function(v){return Z9(v)?"same-origin":"include"};
_.xI=function(v){return Z9(v)?"same-origin":"cors"};
Bj=function(v,Q,V){V=V===void 0?{}:V;v={method:Q===void 0?"POST":Q,mode:_.xI(v),credentials:_.No(v)};Q={};for(var E=_.L(Object.keys(V)),b=E.next();!b.done;b=E.next())b=b.value,V[b]&&(Q[b]=V[b]);Object.keys(Q).length>0&&(v.headers=Q);return v};
_.gi=function(v,Q){Q=Q===void 0?{}:Q;return"service:"+v+"/"+Object.keys(Q).sort().map(function(V){return V+":"+Q[V]}).join("/")};
uUm=function(v){var Q,V,E,b;v=(Q=_.y(v,_.sn))==null?void 0:(V=Q.watchEndpointSupportedOnesieConfig)==null?void 0:(E=V.html5PlaybackOnesieConfig)==null?void 0:(b=E.commonConfig)==null?void 0:b.url;if(!v)return[];Q=new _.uY(v);return Q.JSC$10112_domain_?["https://"+Q.JSC$10112_domain_+"/generate_204"]:[]};
_.omT=function(){return jB3()||IGB()||WU9&&Im("version/")?!0:_.r7("EOM_VISITOR_DATA")?!1:!0};
XWo=function(v){var Q=v.docid||v.video_id||v.videoId||v.id;if(Q)return Q;Q=v.raw_player_response;Q||(v=v.player_response)&&(Q=JSON.parse(v));return Q&&Q.videoDetails&&Q.videoDetails.videoId||null};
abS=function(v){return v.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
jH=function(v){return!isNaN(Number(v))&&!_.pE(v)};
_.ox=function(v,Q,V,E){E=E===void 0?!0:E;var b=_.r7("VALID_SESSION_TEMPDATA_DOMAINS",[]),F=_.pi(window.location.href);F&&b.push(F);F=_.pi(v);if(_.sB(b,F)||!F&&_.KE(v,"/"))if(b=document.createElement("a"),$P(b,v),v=b.href)if(v=_.JY(v),v=_.Wj(v))E&&!Q.csn&&(Q.itct||Q.ved)&&(Q=Object.assign({csn:_.Mo()},Q)),V?(V=parseInt(V,10),isFinite(V)&&V>0&&rCS(v,Q,V)):rCS(v,Q)};
IbE=function(v){var Q=_.r7("VALID_SESSION_TEMPDATA_DOMAINS",[]),V=_.pi(window.location.href);V&&Q.push(V);V=_.pi(v);if(!(_.sB(Q,V)||!V&&_.KE(v,"/")))return null;v=_.JY(v);(v=_.Wj(v))?(v=$n0(v),v=(v=_.qY.get(v,void 0)||null)?_.FF(v):{}):v=null;return v};
rCS=function(v,Q,V){v=$n0(v);Q=Q?_.Rm(Q):"";V=V||5;_.omT()&&_.Sw(v,Q,V)};
$n0=function(v){for(var Q=_.L(HVb),V=Q.next();!V.done;V=Q.next())v=_.Xy(v,V.value);return"ST-"+zi(v).toString(36)};
_.mnr=function(v){if(v.requestFullscreen)v=v.requestFullscreen(void 0);else if(v.webkitRequestFullscreen)v=v.webkitRequestFullscreen();else if(v.mozRequestFullScreen)v=v.mozRequestFullScreen();else if(v.msRequestFullscreen)v=v.msRequestFullscreen();else if(v.webkitEnterFullscreen)v=v.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return v instanceof Promise?v:Promise.resolve()};
_.ri=function(v){var Q;_.Ldb(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ax()==v&&(Q=document):Q=v;if(Q&&(v=_.Ldb(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Q))){v.call(Q)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ax=function(){var v=v===void 0?!1:v;var Q=_.Ldb(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(v)for(;Q&&Q.shadowRoot;)Q=Q.shadowRoot.fullscreenElement;return Q?Q:null};
_.$I=function(v,Q){Q=Q===void 0?!0:Q;v.addEventListener("wheel",Unr);v.overscrollConfig={cooldown:Q}};
_.Ix=function(v){v.overscrollConfig=void 0;v.removeEventListener("wheel",Unr)};
Unr=function(v){var Q=v.deltaY,V=v.target,E=null;if(window.Polymer&&window.Polymer.Element){if(V=v.path||v.composedPath&&v.composedPath()){V=_.L(V);for(var b=V.next();!b.done&&(b=b.value,!v9Q(b,Q));b=V.next())if(b.overscrollConfig){E=b;break}}}else for(;V&&!v9Q(V,Q);){if(V.overscrollConfig){E=V;break}V=V.parentElement}E&&(Q=E.overscrollConfig,Q.cooldown?(E=v.deltaY,V=Q.lastDeltaY||0,Q.lastDeltaY=E,b=Q.lastStopped||0,V&&b&&V>0==E>0?Math.abs(V)>=Math.abs(E)?(E=b+1200,V=!1):(E=b+600,V=!0):(E=Date.now()+
600,V=!0),E>Date.now()&&(v.preventDefault(),V&&(Q.lastStopped=Date.now()))):v.preventDefault())};
v9Q=function(v,Q){return Q<0&&v.scrollTop>0||Q>0&&v.scrollTop<v.scrollHeight-v.clientHeight-1?(v=getComputedStyle(v).overflowY,v=="auto"||v=="scroll"):!1};
_.Hj=function(v,Q,V,E){E||(E={bubbles:!0,cancelable:!1,composed:!0});V!==null&&V!==void 0&&(E.detail=V);var b=new CustomEvent(Q,E);_.Y("untrack_fire_custom_event_killswitch")?v.dispatchEvent(b):_.fa(function(){return void v.dispatchEvent(b)});
return b};
QXS=function(v){var Q=window,V=function(E){Q.removeEventListener("yt-navigate-start",V);return v.call(Q,E)};
Q.addEventListener("yt-navigate-start",V,void 0)};
_.mb=function(v,Q,V,E){Q=new VhZ(Q,!(E===void 0||!E),V);_.Hj(v,"yt-action",Q);return Q.returnValue};
_.Un=function(v,Q,V){return _.mb(v,Q,V,!0)};
_.Qk=function(v,Q,V,E){Q&&Q.length&&Q.forEach(function(b){var F=FCm(b);F&&(_.Y("handle_service_request_actions")&&b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.sendPost?_.vp(V?V:v,[b]):_.Un(v,F,[b,V,E]))})};
_.vp=function(v,Q){var V=[v];Q&&V.push.apply(V,Q);Q=_.mb(v,"yt-service-request",V);return Q.length>0&&(Q=Q[0],_.Hj(v,"yt-service-request-sent",Q),Q&&Q.ajaxPromise)?(Q.ajaxPromise.then(function(E){_.Hj(v,"yt-service-request-completed",E)},function(E){_.Hj(v,"yt-service-request-error",{error:E,
params:V})},v),Q.ajaxPromise):_.Vk()};
_.bI=function(v,Q){if(_.Y("handle_service_request_actions"))_.Qk(Q,v,Q);else{v=_.L(v);for(var V=v.next();!V.done;V=v.next()){V=V.value;var E=void 0;((E=_.y(V,_.E2))==null?0:E.commands)?_.bI(_.y(V,_.E2).commands,Q):(E=void 0,((E=_.y(V,_.F$))==null?0:E.actions)?_.bI(_.y(V,_.F$).actions,Q):(E=void 0,((E=_.y(V.commandMetadata,_.Kt))==null?0:E.sendPost)?_.vp(Q,[V]):_.Qk(Q,[V],Q)))}}};
_.bdo=function(v,Q,V){Q=Q===void 0?{}:Q;typeof Q==="function"&&(Q={callback:Q});V||Q._c&&Q._c.jsl&&Q._c.jsl.h||_.gI.extend(Q,{_c:{jsl:{h:_.r7("GAPI_HINT_PARAMS")}}});(Q.gapiHintOverride||_.r7("GAPI_HINT_OVERRIDE"))&&(V=_.Ki(document.location.href).gapi_jsh)&&_.gI.extend(Q,{_c:{jsl:{h:V}}});E90(v,Q)};
_.Lt=function(v,Q,V){Q=Q===void 0?{}:Q;v=(v=v in iI?iI[v]:V)||"";V={};for(var E in Q){V={key$jscomp$844:V.key$jscomp$844};V.key$jscomp$844=E;var b=function(F){return function(){return String(Q[F.key$jscomp$844])}}(V);
v=v.replace(new RegExp("\\$\\{"+V.key$jscomp$844+"\\}","gi"),b);v=v.replace(new RegExp("\\$"+V.key$jscomp$844,"gi"),b)}return v};
_.ty=function(v,Q){return Fpr(v in iI?iI[v]:{},Q)};
Fpr=function(v,Q){var V=_.r7("I18N_PLURAL_RULES");V||(V=function(E){return E==1?"one":"other"});
return(v=v["case"+Q]||v[V(Q)])?v.replace("#",Q.toString()):Q+""};
Lpo=function(v){var Q=Kp3(v),V=document.getElementById(Q),E=V&&qkG(V);E||V&&!E||(V=idE(v,Q,function(){if(!qkG(V)){lbS(V);_.cR0(Q);var b=_.pt(_.G4S,Q);_.G_(b,0)}}))};
idE=function(v,Q,V){var E=document.createElement("link");E.id=Q;E.onload=function(){V&&setTimeout(V,0)};
v=_.BM(v);_.e1(E,v,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(E);return E};
Kp3=function(v){var Q=_.RD("A");$P(Q,Nj(v));return"css-"+zi(Q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.p2o=function(v){var Q=thT();v!==Q&&(Q=_.eP(),!_.Y("web_autonav_allow_off_by_default")&&v||_.ZG(0,141,!0),_.ZG(0,140,!v),Q.save())};
thT=function(){var v=_.eP();return _.Y("web_autonav_allow_off_by_default")&&!v.getFlag(141)&&_.r7("AUTONAV_OFF_BY_DEFAULT")?!1:!v.getFlag(140)};
ef3=function(v,Q){var V,E;v=((V=v.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(E=V.videoAuthorizationToken)==null?void 0:E.credentialTransferTokens)||[];for(V=0;V<v.length;++V)if(v[V].scope===Q)return v[V].token||void 0};
ZdG=function(v){for(var Q=0,V=0;V<v.length;V++)Q=Q*31+v.charCodeAt(V),V<v.length-1&&(Q%=0x800000000000);return Q%1E5};
_.Pp=function(v){return _.Q9("ytcsi."+(v||"")+"data_")||P7B(v)};
_.ddS=function(v){v=_.Pp(v);v.metadata||(v.metadata={});return v.metadata};
_.hfh=function(v){v=_.Pp(v);v.tick||(v.tick={});return v.tick};
_.dD=function(v){v=_.Pp(v);if(v.gel){var Q=v.gel;Q.gelInfos||(Q.gelInfos={});Q.gelTicks||(Q.gelTicks={})}else v.gel={gelTicks:{},gelInfos:{}};return v.gel};
_.w2Q=function(v){v=_.dD(v);v.gelInfos||(v.gelInfos={});return v.gelInfos};
AB0=function(v){var Q=_.Pp(v).nonce;Q||(Q=fC(16),_.Pp(v).nonce=Q);return Q};
P7B=function(v){var Q={tick:{},info:{}};_.Pr("ytcsi."+(v||"")+"data_",Q);return Q};
k59=function(){var v=_.Q9("ytcsi.debug");v||(v=[],_.Pr("ytcsi.debug",v),_.Pr("ytcsi.reference",{}));return v};
_.hy=function(v){v=v||"";var Q=TAt();if(Q[v])return Q[v];var V=k59(),E={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};V.push(E);return Q[v]=E};
YvE=function(v){v=v||"";var Q=TAt();Q[v]&&delete Q[v];var V=k59(),E={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};V.push(E);Q[v]=E};
TAt=function(){var v=_.Q9("ytcsi.reference");if(v)return v;k59();return _.Q9("ytcsi.reference")};
_.cBm=function(v){return yBo[v]||"LATENCY_ACTION_UNKNOWN"};
Mhh=function(v,Q,V){V=V===void 0?{}:V;var E=!1;_.mX("ytLoggingEventsDefaultDisabled",!1)&&(E=!0);E=E?null:oy;V=V===void 0?{}:V;var b=Math.round(V.timestamp||(0,_.wO)());_.xh(Q,1,b<Number.MAX_SAFE_INTEGER?b:0);b=new f2o;if(V.lact)_.xh(b,1,isFinite(V.lact)?V.lact:-1);else if(V.timestamp)_.xh(b,1,-1);else{var F=_.kh();_.xh(b,1,isFinite(F)?F:-1)}if(V.sequenceGroup&&!_.Y("web_gel_sequence_info_killswitch")){F=V.sequenceGroup;var t=SPT(F),p=new G5r;_.xh(p,2,t);_.SS(p,1,F);_.Mj(b,3,p);V.endOfSequence&&delete C7T[V.sequenceGroup]}_.Mj(Q,
33,b);(V.sendIsolatedPayload?sd3:uLQ)(v,{endpoint:"log_event",payload:Q,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},E)};
_.Ay=function(){return(_.Y("csi_use_time_origin")||_.Y("csi_use_time_origin_tvhtml5"))&&_.wD.timeOrigin?Math.floor(_.wD.timeOrigin):_.wD.timing.navigationStart};
_.Odt=function(v,Q){_.k7("_start",v,Q)};
_.Y7=function(v,Q){if(!_.Y("web_csi_action_sampling_enabled")||!_.Pp(Q).actionDisabled){var V=_.hy(Q||"");_.nC(V.info,v);v.loadType&&(V=v.loadType,_.ddS(Q).loadType=V);_.nC(_.w2Q(Q),v);V=AB0(Q);Q=_.Pp(Q).cttAuthInfo;DdS().info(v,V,Q)}};
Rfh=function(){var v,Q,V,E;return((E=_.ht().resolve(_.d$(s0))==null?void 0:(v=uS())==null?void 0:(Q=v.loggingHotConfig)==null?void 0:(V=Q.csiConfig)==null?void 0:V.debugTicks)!=null?E:[]).map(function(b){return Object.values(b)[0]})};
_.k7=function(v,Q,V){if(!_.Y("web_csi_action_sampling_enabled")||!_.Pp(V).actionDisabled){var E=AB0(V),b;if(b=_.Y("web_csi_debug_sample_enabled")&&E){(_.ht().resolve(_.d$(s0))==null?0:uS())&&!n9B&&(n9B=!0,_.k7("gcfl",(0,_.wO)(),V));var F,t,p;b=(_.ht().resolve(_.d$(s0))==null?void 0:(F=uS())==null?void 0:(t=F.loggingHotConfig)==null?void 0:(p=t.csiConfig)==null?void 0:p.debugSampleWeight)||0;if(F=b!==0)b:{F=Rfh();if(F.length>0)for(t=0;t<F.length;t++)if(v===F[t]){F=!0;break b}F=!1}F?(b=ZdG(E)%b!==0,
_.Pp(V).debugTicksExcludedLogged||(F={},F.debugTicksExcluded=b,_.Y7(F,V)),_.Pp(V).debugTicksExcludedLogged=!0):b=!1}if(!b){v[0]!=="_"&&l2o(v,V,Q);b=_.hy(V||"");b.tick[v]=Q||(0,_.wO)();if(b.callback&&b.callback[v])for(b=_.L(b.callback[v]),F=b.next();!F.done;F=b.next())F=F.value,F();b=_.dD(V);b.gelTicks&&(b.gelTicks[v]=!0);F=_.hfh(V);b=Q||(0,_.wO)();_.Y("log_repeated_ytcsi_ticks")?v in F||(F[v]=b):F[v]=b;F=_.Pp(V).cttAuthInfo;v==="_start"?DdS().baseline(E,Q,F):DdS().tick(v,E,Q,F);_.qvh(V);return b}}};
l2o=function(v,Q,V){if(_.wD.mark)if(v.startsWith("mark_")||(v="mark_"+v),Q&&(v+=" ("+Q+")"),V===void 0||_.Y("web_csi_disable_alt_time_performance_mark"))_.wD.mark(v);else{V=_.Y("csi_use_performance_navigation_timing")?V-_.wD.timeOrigin:V-(_.wD.timeOrigin||_.wD.timing.navigationStart);try{_.wD.mark(v,{startTime:V})}catch(E){}}};
Sv9=function(){var v,Q=(v=_.wD.getEntriesByType)==null?void 0:v.call(_.wD,"mark");Q&&Q.forEach(function(V){if(V.name.startsWith("mark_")){var E;(E=_.wD.clearMarks)==null||E.call(_.wD,V.name)}})};
_.zf3=function(){switch(ixG()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.JBE=function(v){var Q={},V=function(F,t,p){t=t.match("_rid")?t.split("_rid")[0]:t;typeof p==="number"&&(p=JSON.stringify(p));F.requestIds?F.requestIds.push({endpoint:t,id:p}):F.requestIds=[{endpoint:t,id:p}]};
v=_.L(Object.entries(v));for(var E=v.next();!E.done;E=v.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;switch(E){case "GetBrowse_rid":V(Q,E,b);break;case "GetGuide_rid":V(Q,E,b);break;case "GetHome_rid":V(Q,E,b);break;case "GetPlayer_rid":V(Q,E,b);break;case "GetSearch_rid":V(Q,E,b);break;case "GetSettings_rid":V(Q,E,b);break;case "GetTrending_rid":V(Q,E,b);break;case "GetWatchNext_rid":V(Q,E,b);break;case "yt_red":Q.isRedSubscriber=!!b;break;case "yt_ad":Q.isMonetized=!!b}}return Q};
xdr=function(v,Q,V,E,b,F){if(!_.Y("web_csi_action_sampling_enabled")||!_.Pp(F).actionDisabled){var t=_.dD(F);if(t.gelSpans)t.gelSpans[v]=!0;else{var p={};t.gelSpans=(p[v]=!0,p)}NAQ++;v={spanName:v,spanLengthUsec:String(Math.round(Q*1E3)),spanNonce:NAQ};E&&(v.spanInfo=E);b&&(v.parentSpanNonce=b);V&&(v.spanStartTimeUsec=String(Math.round(V*1E3)));_.hy(F||"").span[String(v.spanName)]=v;V=_.dD(F);V.gelSpans||(V.gelSpans={});_.nC(V.gelSpans,v);V=AB0(F);F=_.Pp(F).cttAuthInfo;DdS().span(v,V,F);return v.spanNonce}};
_.BAZ=function(v){var Q=_.yk("aft",v);if(Q)return Q;Q=_.r7((v||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=Q.length,E=0;E<V;E++){var b=_.yk(Q[E],v);if(b)return b}return NaN};
_.g93=function(v,Q){_.Pr("ytglobal.timing"+(Q||"")+"ready_",v)};
_.yk=function(v,Q){if(v=_.hfh(Q)[v])return typeof v==="number"?v:v[v.length-1]};
_.qvh=function(v){var Q=_.yk("_start",v),V=_.BAZ(v),E=!sXB;Q&&V&&E&&(z2T(ufT,new jXh(Math.round(V-Q),v)),sXB=!0)};
o9o=function(v){P7B(v);Wpb();Sv9();v||(_.r7("TIMING_ACTION")&&_.aS("PREVIOUS_ACTION",_.r7("TIMING_ACTION")),_.aS("TIMING_ACTION",""))};
_.X2G=function(v){v=v===void 0?{}:v;_.v5(function(){cp();YvE();o9o();_.g93(!1);v.cttAuthInfo&&(_.Pp().cttAuthInfo=v.cttAuthInfo);_.aS("TIMING_AFT_KEYS",[]);v.isHot?_.ft({loadType:"hot"}):_.ft({loadType:"warm"});_.aS("TIMING_ACTION","");delete _.r7("TIMING_INFO",{}).yt_lt;_.v5(_.Odt)(v.startTime,void 0)})()};
_.Ct=function(v,Q,V,E){Q=Q===void 0?{}:Q;_.v5(function(){var b=V?V:v;G2(b);var F=Q.sampleRate;if(!_.Y("web_csi_action_sampling_enabled")||F===void 0||F<=1)F=!1;else{var t=AB0(b);F=ZdG(t)%F!==0}F&&(_.Pp(b).actionDisabled=!0);_.hy(b||"").info.actionType=v;Q.cttAuthInfo&&(_.Pp(b).cttAuthInfo=Q.cttAuthInfo);_.aS(b+"TIMING_ACTION",v);_.v5(_.Odt)(Q.startTime,b);F={actionType:E||_.cBm(v)};Q.logPreviousAction&&(F.previousAction=_.cBm(_.r7("TIMING_ACTION")));(t=_.Mo())&&t!=="UNDEFINED_CSN"&&(F.clientScreenNonce=
t);_.ft(F,b);_.g93(!0,b)})()};
G2=function(v){_.v5(function(){cp(v);YvE(v);o9o(v)})()};
a2Q=function(){_.v5(function(){var v=[],Q;for(Q in _.Q9("ytcsi.".slice(0,-1)))Q.endsWith("data_")&&v.push(Q.slice(0,-5));v=_.L(v);for(Q=v.next();!Q.done;Q=v.next())G2(Q.value);cp()})()};
_.$dQ=function(v){return _.v5(function(){return _.rBG("_start",v)})()};
_.ft=function(v,Q,V){_.v5(_.Y7)(v,Q,V===void 0?!1:V)};
_.Mp=function(v,Q,V){return _.v5(_.k7)(v,Q,V)};
_.rBG=function(v,Q){return _.v5(function(){var V=_.hfh(Q);return v in V})()};
Hdb=function(v){if(!_.Y("universal_csi_network_ticks"))return"";v=_.OG(v)||"";for(var Q=Object.keys(I29),V=0;V<Q.length;V++){var E=Q[V];if(v.includes(E))return E}return""};
Udh=function(v){if(!_.Y("universal_csi_network_ticks"))return function(){};
var Q=I29[v];return Q?(_.O2(Q),function(){var V=_.Y("universal_csi_network_ticks")?(V=mdB[v])?_.O2(V):!1:!1;return V}):function(){}};
_.O2=function(v,Q,V){return _.v5(function(){if(_.rBG(v,V))return!1;_.Mp(v,Q,V);return!0})()};
_.DG=function(v,Q,V){_.v5(function(){if(!_.$dQ(V)||_.rBG(v,V))return!1;_.Mp(v,Q,V);return!0})()};
_.lI=function(v){return _.v5(_.yk)(v,void 0)};
cp=function(v){_.$dQ(v)&&_.Mp("aa",void 0,v)};
_.bH3=function(v,Q,V,E,b,F,t,p,Z){var d=v_t();p=new Gi({veType:Q,youtubeData:F,jspbYoutubeData:p});F=qp({},d);b&&(F.cttAuthInfo=b);b={csn:d,pageVe:p.getAsJson()};_.Y("expectation_logging")&&Z&&Z.screenCreatedLoggingExpectations&&(b.screenCreatedLoggingExpectations=Z.screenCreatedLoggingExpectations);V&&V.visualElement?(b.implicitGesture={parentCsn:V.clientScreenNonce,gesturedVe:V.visualElement.getAsJson()},t&&(b.implicitGesture.gestureType=t)):V&&_.Iy(new _.xd("newScreen() parent element does not have a VE - rootVe",
Q));E&&(b.cloneCsn=E);v?Wx("screenCreated",b,v,F):_.X0("screenCreated",b,F);z2T(upQ,new Q0S(d));SP.clear();V5r.clear();E_Z.clear();return d};
z2=function(v,Q,V,E,b,F){F=F===void 0?{}:F;F40(v,Q,V,[E],b===void 0?!1:b,F)};
F40=function(v,Q,V,E,b,F){b=b===void 0?!1:b;F=F===void 0?{}:F;Object.assign(F,qp({cttAuthInfo:On(Q)||void 0},Q));for(var t=_.L(E),p=t.next();!p.done;p=t.next()){p=p.value;var Z=p.getAsJson();(_.gI.isEmpty(Z)||!Z.trackingParams&&!Z.veType)&&_.Iy(Error("Bf"));if(_.Y("no_client_ve_attach_unless_shown")){var d=K43(p,Q);if(Z.veType&&!V5r.has(d)&&!E_Z.has(d)&&!b){if(!_.Y("il_attach_cache_limit")||SP.size<1E3){SP.set(d,[v,Q,V,p]);return}_.Y("il_attach_cache_limit")&&SP.size>1E3&&_.Iy(new _.xd("IL Attach cache exceeded limit"))}p=
K43(V,Q);SP.has(p)?iH3(V,Q):E_Z.set(p,!0)}}E=E.filter(function(w){w.csn!==Q?(w.csn=Q,w=!0):w=!1;return w});
V={csn:Q,parentVe:V.getAsJson(),childVes:_.sY(E,function(w){return w.getAsJson()})};
Q==="UNDEFINED_CSN"?Jy("visualElementAttached",F,V):v?Wx("visualElementAttached",V,v,F):_.X0("visualElementAttached",V,F)};
t5m=function(v,Q,V,E,b){L49(v,Q,V,b)};
L49=function(v,Q,V,E){pmr(V,Q);var b=qp({cttAuthInfo:On(Q)||void 0},Q);V={csn:Q,ve:V.getAsJson(),eventType:1};E&&(V.clientData=E);Q==="UNDEFINED_CSN"?Jy("visualElementShown",b,V):v?Wx("visualElementShown",V,v,b):_.X0("visualElementShown",V,b)};
eYm=function(v,Q,V,E){pmr(V,Q);var b=qp({cttAuthInfo:On(Q)||void 0},Q);V={csn:Q,ve:V.getAsJson(),eventType:4};E&&(V.clientData=E);Q==="UNDEFINED_CSN"?Jy("visualElementShown",b,V):v?Wx("visualElementShown",V,v,b):_.X0("visualElementShown",V,b)};
ZH0=function(v,Q,V,E,b){var F=(E=E===void 0?!1:E)?16:8;E=qp({cttAuthInfo:On(Q)||void 0,endOfSequence:E},Q);V={csn:Q,ve:V.getAsJson(),eventType:F};b&&(V.clientData=b);Q==="UNDEFINED_CSN"?Jy("visualElementHidden",E,V):v?Wx("visualElementHidden",V,v,E):_.X0("visualElementHidden",V,E)};
d_T=function(v,Q,V,E,b){P9Z(v,Q,V,void 0,E,b)};
P9Z=function(v,Q,V,E,b){pmr(V,Q);E=E||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var F=qp({cttAuthInfo:On(Q)||void 0},Q);V={csn:Q,ve:V.getAsJson(),gestureType:E};b&&(V.clientData=b);Q==="UNDEFINED_CSN"?Jy("visualElementGestured",F,V):v?Wx("visualElementGestured",V,v,F):_.X0("visualElementGestured",V,F)};
hY9=function(v,Q,V,E){var b=qp({cttAuthInfo:On(Q)||void 0},Q);V={csn:Q,ve:V.getAsJson(),clientData:E};Q==="UNDEFINED_CSN"?Jy("visualElementStateChanged",b,V):v?Wx("visualElementStateChanged",V,v,b):_.X0("visualElementStateChanged",V,b)};
wmG=function(){var v=Emb(16);for(var Q=[],V=0;V<v.length;V++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(v[V]&63));return Q.join("")};
Jy=function(v,Q,V){ALh.push({payloadName:v,payload:V,jspbPayload:void 0,options:Q});ka3||(ka3=W99())};
sOT=function(v){if(ALh){for(var Q=_.L(ALh),V=Q.next();!V.done;V=Q.next())V=V.value,V.payload&&(V.payload.csn=v.csn,_.X0(V.payloadName,V.payload,V.options));ALh.length=0}ka3=0};
K43=function(v,Q){return""+v.getAsJson().veType+v.getAsJson().veCounter+Q};
pmr=function(v,Q){if(_.Y("no_client_ve_attach_unless_shown")){var V=K43(v,Q);V5r.set(V,!0);iH3(v,Q)}};
iH3=function(v,Q){v=K43(v,Q);SP.has(v)&&(Q=SP.get(v)||[],z2(Q[0],Q[1],Q[2],Q[3],!0),SP.delete(v))};
qp=function(v,Q){_.Y("log_sequence_info_on_gel_web")&&(v.sequenceGroup=Q);return v};
_.Np=function(v,Q,V){_.v5(z2)(void 0,v,Q,V)};
_.x7=function(v,Q,V){_.v5(F40)(void 0,v,Q,V)};
_.Bp=function(v,Q){_.v5(t5m)(void 0,v,Q,void 0,void 0,void 0)};
_.gD=function(v,Q,V){_.v5(function(){_.bv(Q,function(E){eYm(void 0,v,E,V)})})()};
_.s2=function(v,Q,V,E){_.v5(function(){_.bv(Q,function(b){ZH0(void 0,v,b,V,E)})})()};
_.uI=function(v,Q,V){_.v5(d_T)(void 0,v,Q,V,void 0)};
_.jP=function(v,Q,V,E){_.v5(P9Z)(void 0,v,Q,V,E,void 0)};
_.Wp=function(v,Q,V){_.v5(hY9)(void 0,v,Q,V,void 0)};
TJ0=function(v,Q){o$.set(v,Q)};
YOb=function(v){X$.initialized=!0;X$.sessionId=v.sessionId||"";X$.enabledSpans=v.enabledSpans;v.shouldSampleFn!=null&&(X$.shouldSampleFn=v.shouldSampleFn)};
yLt=function(v){X$.processors.push(v)};
cLm=function(v){return X$.initialized?X$.enabledSpans?X$.enabledSpans[v]:!0:!1};
M5m=function(v,Q,V){return cLm(v)&&X$.shouldSampleFn(v,Q,fqB)?new GaZ(v,Q,V):C9b};
OHB=function(v,Q,V){if(typeof V==="function"){var E=V;V=void 0}var b=M5m(v,Q,V),F;if(((F=V)==null?void 0:F.endTime)!=null)return E&&_.Iy(Error("Ff")),b;var t;b!==C9b&&((t=V)==null?void 0:t.active)!==!1&&X$.stack.push(b);if(!E)return b;if(b===C9b)return E(b);try{var p=E(b);if(p instanceof Promise)return p.then(function(Z){b.end();return Z},function(Z){b.end(2);
throw Z;});
b.end();return p}catch(Z){throw b.end(2),Z;}};
RYB=function(){U0.subscribe("handleError",function(v){try{for(var Q in D_B)try{var V=D_B[Q];typeof D_B[Q]==="function"&&(V=V());v.params[Q]=typeof D_B[Q]==="object"?JSON.stringify(V):String(V)}catch(E){_.Iy(E)}}catch(E){_.Iy(E)}})};
n_o=function(){};
lqE=function(v,Q){var V=Object.keys(v);v=new _.xd("[Command Handler] "+Q,{filteredCommandNames:V,originalCommand:v});_.ro(v)};
qOm=function(v,Q){lqE(v,Q+" was called but not set")};
SOQ=function(v){return function(){return new v}};
a$=function(v){return function(){return _.ht().resolve(v)}};
zY3=function(v,Q){var V=_.y(v,_.Vi);if(V&&(V=Q[V.signal]))return V();v=_.L(Object.keys(v));for(V=v.next();!V.done;V=v.next())if(V=V.value,Q[V]&&(V=Q[V]))return V()};
_.rD=function(v,Q,V,E){return{browseEndpoint:{browseId:v},commandMetadata:{webCommandMetadata:{url:Q,rootVe:V,webPageType:E===void 0?"WEB_PAGE_TYPE_BROWSE":E}}}};
JLB=function(v,Q,V){var E=Q=Q===void 0?0:Q;V=V===void 0?0:V;var b=V-E;return _.$7(v,"PPSV",void 0,void 0,(b>600?0:b<60||V<=0||E/V>.9)?0:Q)};
_.$7=function(v,Q,V,E,b){var F="/watch?v="+v;v={videoId:v};Q&&(v.playlistId=Q,F+="&list="+Q);E&&(F+="&pp="+E);b&&(v.startTimeSeconds=b,F+="&t="+b+"s");Q={watchEndpoint:v,commandMetadata:{webCommandMetadata:{url:F,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};V&&(Q.clickTrackingParams=V);E&&(_.y(Q,_.sn).playerParams=E);return Q};
NJ3=function(v){return{browseEndpoint:{browseId:"VL"+v},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+v,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
x_h=function(v){if(v){var Q;if(v){var V=(Q=_.y(v.commandMetadata,_.Kt))==null?void 0:Q.url;Q=!(!V||V==="/service_ajax")}else Q=!1;if(Q)return v;var E;if(v=(E=_.y(v,_.E2))==null?void 0:E.commands)for(E=_.L(v),v=E.next();!v.done;v=E.next())if(v=x_h(v.value))return v}};
_.I$=function(v){return{runs:[{text:v}]}};
BJE=function(v,Q){return v&&Q?{runs:[{text:v,navigationEndpoint:Q}]}:void 0};
Hp=function(v){return v?_.I$(v):void 0};
_.mL=function(v){return v?{simpleText:v}:void 0};
_.U2=function(v){var Q=v.type;v=v.payload;Q={type:Q};v!==void 0&&(Q.payload=v);return Q};
g_r=function(v,Q,V){for(var E=Object.assign({},v),b=_.L(Object.keys(Q)),F=b.next();!F.done;F=b.next()){F=F.value;var t=v[F],p=Q[F];if(p===void 0)delete E[F];else if(t===void 0)E[F]=p;else if(Array.isArray(p)&&Array.isArray(t))E[F]=V?[].concat(_.ui(t),_.ui(p)):p;else if(!Array.isArray(p)&&_.rG(p)&&!Array.isArray(t)&&_.rG(t))E[F]=g_r(t,p,V);else if(typeof p===typeof t)E[F]=p;else return Q=new _.xd("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:F,originalValue:t,updateValue:p}),
_.ro(Q),v}return E};
j0b=function(v){if(!v.length)return"";try{if(s0G)return s0G.decode(v);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(v)}catch(t){}for(var Q=0,V=[],E=v.length;Q<E;){for(var b=0;b<1024&&Q<E;){var F=v[Q++];if(F<128)uCS[b++]=F;else{if(F<224)F=(F&31)<<6|v[Q++]&63;else if(F<240)F=(F&15)<<12|(v[Q++]&63)<<6|v[Q++]&63;else{if(b+1===1024){--Q;break}F=(F&7)<<18|(v[Q++]&63)<<12|(v[Q++]&63)<<6|v[Q++]&63;F-=65536;uCS[b++]=55296|F>>10;F=56320|F&1023}uCS[b++]=F}}F=String.fromCharCode.apply(String,
uCS);b<1024&&(F=F.substring(0,b));V.push(F)}return V.join("")};
o_r=function(v,Q){var V;if((V=W4Z)==null?0:V.encodeInto)return Q=W4Z.encodeInto(v,Q),Q.read<v.length?v.length*4:Q.written;for(var E=V=0;E<v.length;E++){var b=v.charCodeAt(E);b<128?Q[V++]=b:(b<2048?Q[V++]=b>>6|192:((b&64512)===55296&&E+1<v.length&&(v.charCodeAt(E+1)&64512)===56320?(b=65536+((b&1023)<<10)+(v.charCodeAt(++E)&1023),Q[V++]=b>>18|240,Q[V++]=b>>12&63|128):Q[V++]=b>>12|224,Q[V++]=b>>6&63|128),Q[V++]=b&63|128)}return V};
XmE=function(v,Q,V){if(Q&&V&&V.buffer===Q.exports.memory.buffer){var E=Q.realloc(V.byteOffset,v);if(E)return new Uint8Array(Q.exports.memory.buffer,E,v)}v=Q?new Uint8Array(Q.exports.memory.buffer,Q.malloc(v),v):new Uint8Array(v);V&&v.set(V);return v};
_.Q_=function(v){v=new aqQ(new rLB([_.H9(decodeURIComponent(v))]));if($_T(v,2)){var Q=vB(v);var V=v.pos;var E=v.arrayView;V=V===void 0?0:V;var b=Q===void 0?-1:Q;V=V===void 0?0:V;b=b===void 0?-1:b;if(E.totalLength&&b){b<0&&(b=E.totalLength-V);E.focus(V);if(!(V-E.arrayPos+b<=E.arrays[E.arrayIdx].length)){var F=E.arrayIdx,t=E.arrayPos;E.focus(V+b-1);t=new Uint8Array(E.arrayPos+E.arrays[E.arrayIdx].length-t);for(var p=0,Z=F;Z<=E.arrayIdx;Z++)t.set(E.arrays[Z],p),p+=E.arrays[Z].length;E.arrays.splice(F,
E.arrayIdx-F+1,t);E.arrayIdx=0;E.arrayPos=0;E.focus(V)}F=E.arrays[E.arrayIdx];E=new DataView(F.buffer,F.byteOffset+V-E.arrayPos,b)}else E=new DataView(new ArrayBuffer(0));E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength);v.pos+=Q;Q=E}else Q=void 0;Q=Q?j0b(Q):void 0;v=$_T(v,4)?vB(v):void 0;E=Iqo[v];if(typeof E==="undefined")throw v=new _.xd("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:v}),_.ro(v),v;return{entityTypeFieldNumber:v,entityType:E,entityId:Q}};
_.b3=function(v,Q,V){V=V===void 0?0:V;var E=new HH0;if(W4Z)v=W4Z.encode(v);else{var b=new Uint8Array(Math.ceil(v.length*1.2)),F=o_r(v,b);b.length<F&&(b=new Uint8Array(F),F=o_r(v,b));b.length>F&&(b=b.subarray(0,F));v=b}v!==void 0&&(V_(E,18),b=v.length,V_(E,b),Ex(E,b),E.buf.set(v,E.pos),E.pos+=b);v=m_3[Q];if(typeof v==="undefined")throw V=new _.xd("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Q}),_.ro(V),V;v!==void 0&&(V_(E,32),V_(E,v));V_(E,40);V_(E,1);Q=new Uint8Array(E.buf.buffer,
E.buf.byteOffset,E.pos);return encodeURIComponent(_.Sq(Q,V))};
U_b=function(v){v=v.key||v.id;if(!v)throw Error("Hf");return v};
QZr=function(v,Q){v=v===void 0?{}:v;return vpo(v,Q)};
V6G=function(v,Q,V,E){if(E===void 0)return E=Object.assign({},v[Q]||{}),V=(delete E[V],E),E={},Object.assign({},v,(E[Q]=V,E));var b={},F={};return Object.assign({},v,(F[Q]=Object.assign({},v[Q],(b[V]=E,b)),F))};
EpT=function(v,Q,V,E,b){var F=v[Q];if(F==null||!F[V])return v;E=g_r(F[V],E,b==="REPEATED_FIELDS_MERGE_OPTION_APPEND");b={};F={};return Object.assign({},v,(F[Q]=Object.assign({},v[Q],(b[V]=E,b)),F))};
_.Fg=function(v,Q,V){return v[Q]?v[Q][V]||null:null};
Fxt=function(){if(bDh)return bDh();var v={};bDh=hF("PersistentEntityStoreDb",{objectStores:(v.EntityStore={addedAtVersion:1},v.EntityAssociationStore={addedAtVersion:2},v),shared:!1,upgrade:function(Q,V){V(1)&&vx(Uf(Q,"EntityStore",{keyPath:"key"}),"entityType","entityType");V(2)&&(Q=Uf(Q,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),vx(Q,"byParentEntityKey","parentEntityKey"),vx(Q,"byChildEntityKey","childEntityKey"))},
version:3});return bDh()};
KxZ=function(v){return _.iD(Fxt(),v)};
K7=function(v){return window.Int32Array?new Int32Array(v):Array(v)};
Lxm=function(v){return _.iD(iDS(),v)};
t6h=function(v){return new i3("WRONG_DATA_TYPE",{encoderVersion:v})};
pOm=function(v){return v instanceof Error?new i3("UNKNOWN_ENCODE_ERROR",{originalMessage:v.message}):new i3("UNKNOWN_ENCODE_ERROR")};
ert=function(v){return v instanceof Error?new i3("UNKNOWN_DECODE_ERROR",{originalMessage:v.message}):new i3("UNKNOWN_DECODE_ERROR")};
ZDT=function(v,Q){v=v instanceof i3?v:Q(v);_.ro(v);throw v;};
Pgb=function(v){v=(new TextEncoder).encode(v).subarray(0,16);var Q=new Uint8Array(16);Q.set(v);return Q};
hrQ=function(v){var Q=dso[v];if(Q)return Q;_.Iy(new _.xd("Entity model not found.",{entityType:v}))};
_.L7=function(){wO9||(wO9=AQ3());return wO9};
AQ3=function(){var v,Q,V;return _.e(function(E){if(E.nextAddress==1)return _.GC(E,2),E.yield(_.dO(),4);if(E.nextAddress!=2){v=E.yieldResult;if(!v||!_.NY()||typeof _.bb.BroadcastChannel==="undefined")return E.return();Q=new k6B;return E.return(new t4(v,Q))}V=_.n$(E);V instanceof Error&&_.ro(V);return E.return()})};
_.p7=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1){V=v.mutations;if(!V||V.length<=0)return E.return();Q&&Q.dispatch(_.U2({type:"ENTITY_LOADED",payload:V}));return E.yield(Twm(V),2)}V.length=0;_.q1(E)})};
Twm=function(v){var Q;return _.e(function(V){return V.nextAddress==1?V.yield(_.L7(),2):(Q=V.yieldResult)?V.yield(_.e0(Q,"readwrite",function(E){for(var b={},F=_.L(v),t=F.next(),p={};!t.done;p={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},t=F.next())p.mutation$jscomp$8=t.value,p.mutation$jscomp$8.entityKey&&Yj9(p.mutation$jscomp$8)&&(p.mutationEntityType$jscomp$3=(0,_.gI.getAnyKey)(p.mutation$jscomp$8.payload),t=void 0,p.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(t=function(Z){return function(){return _.yQt(E,
Z.mutation$jscomp$8.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(p)),p.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(t=function(Z){return function(){return cQr(E,Z.mutation$jscomp$8.entityKey)}}(p)),p.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(t=function(Z){return function(){return fp3(E,Z.mutation$jscomp$8.entityKey,Z.mutation$jscomp$8.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(p)),t&&(b[p.mutation$jscomp$8.entityKey]=
b[p.mutation$jscomp$8.entityKey]?b[p.mutation$jscomp$8.entityKey].then(t):t()));
return vr.all(Object.values(b))}),0):V.return()})};
Yj9=function(v){var Q;v=(Q=v.options)==null?void 0:Q.persistenceOption;return v==="ENTITY_PERSISTENCE_OPTION_PERSIST"||v==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
M6Z=function(v,Q){var V,E;_.e(function(b){if(b.nextAddress==1)return b.yield(_.L7(),2);if(b.nextAddress!=3)return(V=b.yieldResult)?b.yield(_.e0(V,"readonly",function(F){var t={},p=Object.keys(Q).map(function(Z){var d=Q[Z]?[].concat(_.ui(Q[Z])):[];return G6Q(F,Z,d,t)});
return vr.all(p).then(function(){return t})}),3):b.return();
E=b.yieldResult;Object.keys(E).length>0&&v.dispatch(CgE(E));_.q1(b)})};
G6Q=function(v,Q,V,E){return Zi(v,Q,V).then(function(b){E[Q]=ODb(V,b)})};
ODb=function(v,Q){if(Q.length!==v.length)throw Error("Kf");return Q.reduce(function(V,E,b){V[v[b]]=E;return V},{})};
npQ=function(v){var Q=v.filter(function(b){var F;return(b==null?void 0:(F=b.transferEntity)==null?void 0:F.transferState)==="TRANSFER_STATE_COMPLETE"}).length,V=v.filter(function(b){var F;
return(b==null?void 0:(F=b.transferEntity)==null?void 0:F.transferState)==="TRANSFER_STATE_FAILED"}).length,E=v.filter(function(b){var F;
return(b==null?void 0:(F=b.transferEntity)==null?void 0:F.transferState)&&Dso.includes(b.transferEntity.transferState)});
if(!(Q||E!=null&&E.length))return 0;Q=_.Rr3(E)+Q;v=v.length-V;return v===0?0:Math.round(Q*100/v)/100};
_.Rr3=function(v){var Q=[];Q=Q.concat.apply(Q,_.ui(v.filter(function(F){return F.streamEntity}).map(function(F){var t=Object.assign({},F.streamEntity),p,Z=(p=F.transferEntity)==null?void 0:p.transferState;
t.streamsProgress=t.streamsProgress||[];t.streamsProgress=t.streamsProgress.map(function(d){var w=Object.assign({},d);w.numBytesDownloaded=Z==="TRANSFER_STATE_COMPLETE"?d.numTotalBytes:d.numBytesDownloaded;return w});
return t}).map(function(F){return F.streamsProgress})));
var V=v=0;Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next()){var b=E.value;E=Number(b.numBytesDownloaded);b=Number(b.numTotalBytes);V+=isNaN(E)?0:E;v+=isNaN(b)?0:b}return v===0?0:Math.round(V*100/v)/100};
lpQ=function(v){if(!v||!v.expirationTimestamp||!v.action)return!1;var Q=(0,_.wO)()/1E3;return Number(v.expirationTimestamp)>=Q};
PB=function(v){return v&&v.expirationTimestamp&&v.action?lpQ(v)&&v.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.d8=function(v){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(v||"TRANSFER_STATE_UNKNOWN")};
qjr=function(v){var Q=new HH0;if(v!==void 0){var V=Math.ceil(Math.log2(v.length*4+2)/7);V=V===void 0?2:V;V_(Q,10);Q.submessagePosStack.push(Q.pos);Q.submessagePosStack.push(V);Q.pos+=V;Ex(Q,v.length*1.2);V=o_r(v,Q.buf.subarray(Q.pos));Q.pos+V>Q.buf.length&&(Ex(Q,V),V=o_r(v,Q.buf.subarray(Q.pos)));Q.pos+=V;v=Q.submessagePosStack.pop();V=Q.submessagePosStack.pop();for(var E=Q.pos-V-v;v--;){var b=v?128:0;Q.view.setUint8(V++,E&127|b);E>>=7}}Q=new Uint8Array(Q.buf.buffer,Q.buf.byteOffset,Q.pos);return(new TextDecoder("utf-8")).decode(Q)};
_.h4=function(v){var Q=0;v=_.L(v);for(var V=v.next(),E={};!V.done;E={transferState$jscomp$3:void 0},V=v.next()){var b=V.value,F=void 0;V=(F=b.streamEntity)!=null?F:{};F=void 0;E.transferState$jscomp$3=(F=b.transferEntity)==null?void 0:F.transferState;F=b=void 0;((b=V)==null?0:(F=b.streamsProgress)==null?0:F.length)&&V.streamsProgress.forEach(function(t){return function(p){p=Number(t.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?p.numTotalBytes:p.numBytesDownloaded);isFinite(p)&&(Q+=p)}}(E))}return Q};
SjZ=function(v){return v.some(function(Q){var V;if(!(Q==null?0:(V=Q.transferEntity)==null?0:V.transferState)){var E;return!(Q==null?0:(E=Q.policyEntity)==null?0:E.action)||Q.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Dso.includes(Q.transferEntity.transferState)})};
zrr=function(v,Q){if(!Q)return!1;if(_.Y("of_pb_en_po_ks"))return!0;var V;v=(V=_.Fg(v,"offlineVideoPolicy",_.b3(Q,"offlineVideoPolicy")))!=null?V:void 0;return!!v&&PB(v)};
_.Nwo=function(v){var Q=["TRANSFER_STATE_COMPLETE"];Q=Q===void 0?JQt:Q;return v.filter(function(V){var E,b;return Q.includes((b=(E=V.transferEntity)==null?void 0:E.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN")})};
xsr=function(v,Q){if(Q){var V,E=(V=_.Fg(v,"playbackData",_.b3(Q,"playbackData")))!=null?V:null,b;V=(b=_.Fg(v,"transfer",_.b3(Q,"transfer")))!=null?b:null;var F;b=(F=_.Fg(v,"offlineVideoStreams",_.b3(Q,"offlineVideoStreams")))!=null?F:null;var t;v=(t=_.Fg(v,"offlineVideoPolicy",_.b3(Q,"offlineVideoPolicy")))!=null?t:null;if(E||V||b||v)return{playbackDataEntity:E,transferEntity:V,streamEntity:b,policyEntity:v}}};
_.w8=function(v){var Q=v.playbackData;if(!Q)return[];var V=[];Q=_.L(Object.keys(Q));for(var E=Q.next();!E.done;E=Q.next()){var b=E.value;if(!Bwh(v,_.Q_(b).entityId)&&(E=xsr(v,_.Q_(b).entityId))){var F=void 0,t=void 0;b=(t=Number((F=_.Fg(v,"playbackData",b))==null?void 0:F.streamDownloadTimestampSeconds))!=null?t:(0,_.wO)();V.push({entity:E,streamDownloadTimestamp:b})}}return V.sort(function(p,Z){var d=p.streamDownloadTimestamp,w=Z.streamDownloadTimestamp;return w===d?p.entity.streamEntity&&!Z.entity.streamEntity?
1:-1:w-d}).map(function(p){return p.entity})};
gpB=function(v){return _.Nwo(_.w8(v))};
_.sZb=function(v){return _.w8(v).filter(function(Q){var V;if(((V=Q.policyEntity)==null?0:V.action)&&Q.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var E;if((E=Q.transferEntity)==null?0:E.transferState){var b;return Dso.includes((b=Q.transferEntity)==null?void 0:b.transferState)}return!0})};
Bwh=function(v,Q){var V;return((V=_.Fg(v,"downloadStatusEntity",_.b3(Q,"downloadStatusEntity")))==null?void 0:V.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
uYb=function(v){var Q;if(v==null?0:(Q=v.playbackDataEntity)==null?0:Q.key)return _.Q_(v.playbackDataEntity.key).entityId;var V;if(v==null?0:(V=v.transferEntity)==null?0:V.key)return _.Q_(v.transferEntity.key).entityId;var E;if(v==null?0:(E=v.streamEntity)==null?0:E.key)return _.Q_(v.streamEntity.key).entityId;var b;if(v==null?0:(b=v.policyEntity)==null?0:b.key)return _.Q_(v.policyEntity.key).entityId};
Wxr=function(v){var Q=new Set,V;v=(V=v.mainDownloadsListEntity)==null?void 0:V[jZo];var E;if(!(v==null?0:(E=v.downloads)==null?0:E.length))return Q;var b;v==null||(b=v.downloads)==null||b.forEach(function(F){(F==null?0:F.videoItem)&&Q.add(F.videoItem)});
return Q};
A4=function(v,Q){if(Q){var V=_.Fg(v,"mainVideoEntity",_.b3(Q,"mainVideoEntity")),E=_.Fg(v,"downloadStatusEntity",_.b3(Q,"downloadStatusEntity")),b=_.Fg(v,"ytMainChannelEntity",_.b3(Q,"ytMainChannelEntity")),F={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};v=xsr(v,Q);E=(E==null?void 0:E.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.Y("woffle_render_failed_download_state_ks")&&(E==null?void 0:E.downloadState)==="DOWNLOAD_STATE_FAILED";!v&&E&&(v=F);if(v&&V&&
b)return Object.assign({},{videoEntity:V,channelEntity:b},v)}};
XO0=function(v,Q){return opZ(v,Q)==="TRANSFER_STATE_COMPLETE"&&zrr(v,Q)};
apb=function(v,Q){if(!Q)return!1;var V;v=(V=_.Fg(v,"playbackData",_.b3(Q,"playbackData")))!=null?V:void 0;return!!v&&!!v.playerResponseJson};
opZ=function(v,Q){if(!Q)return"TRANSFER_STATE_UNKNOWN";var V=_.Fg(v,"transfer",_.b3(Q,"transfer"));if(V){var E;return(E=V.transferState)!=null?E:"TRANSFER_STATE_UNKNOWN"}V=_.Fg(v,"offlineOrchestrationActionWrapperEntity",_.b3(Q,"offlineOrchestrationActionWrapperEntity"));v=_.Fg(v,"mainVideoEntity",_.b3(Q,"mainVideoEntity"));return V||v?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
rQZ=function(v,Q){if(!Q)return"TRANSFER_STATE_UNKNOWN";if(v=_.Fg(v,"transfer",_.b3(Q,"transfer"))){var V;return(V=v.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
$sh=function(v,Q){return Q&&(v=_.Fg(v,"videoPlaybackPositionEntity",_.b3(Q,"videoPlaybackPositionEntity")),v==null?0:v.lastPlaybackPositionSeconds)?Number(v.lastPlaybackPositionSeconds):0};
HDr=function(v,Q){return Iph(v).some(function(V){var E;return(V==null?void 0:(E=V.mainPlaylistEntity)==null?void 0:E.playlistId)===Q})};
UsS=function(v,Q,V){var E=ms9(v,Q);if(!E.length)return[];Q=[];E=_.L(E);for(var b=E.next();!b.done;b=E.next()){b=b.value;var F=A4(v,b);V&&opZ(v,b)!=="TRANSFER_STATE_COMPLETE"||F&&Q.push(F)}return Q};
ms9=function(v,Q){if(!Q)return[];var V=_.b3(Q,"mainPlaylistEntity"),E;Q=(E=v.mainPlaylistEntity)==null?void 0:E[V];E=[];if(Q==null||!Q.videos)return E;Q=_.L(Q.videos);for(V=Q.next();!V.done;V=Q.next()){V=V.value;var b=void 0,F=void 0,t=void 0,p=(b=v)==null?void 0:(F=b.mainPlaylistVideoEntity)==null?void 0:(t=F[V])==null?void 0:t.video;p&&(V=_.Q_(p).entityId)&&E.push(V)}return E};
vcS=function(v,Q){if(Q){var V=_.Fg(v,"mainPlaylistEntity",_.b3(Q,"mainPlaylistEntity")),E=_.Fg(v,"mainPlaylistDownloadStateEntity",_.b3(Q,"mainPlaylistDownloadStateEntity"));v=_.Fg(v,"ytMainChannelEntity",_.b3(Q,"ytMainChannelEntity"));if(E&&V)return Object.assign({},{mainPlaylistEntity:V,mainPlaylistDownloadStateEntity:E},!!v&&{channelEntity:v})}};
Iph=function(v){return Q5G(v).sort(function(Q,V){return V.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return Q.downloadedPlaylistEntities})};
Q5G=function(v){var Q=v.mainPlaylistDownloadStateEntity,V=[];if(!Q)return V;for(var E=_.L(Object.keys(Q)),b=E.next();!b.done;b=E.next()){var F=b.value;b=vcS(v,_.Q_(F).entityId);var t=void 0;F=Number((t=Q[F])==null?void 0:t.addedTimestampMillis);t=isNaN(F)?(0,_.wO)():F;b!==void 0&&V.push({downloadedPlaylistEntities:b,addedTimestampMillis:t})}return V};
VIo=function(v){var Q,V=(Q=v.mainPlaylistVideoEntity)!=null?Q:{};return new Set(Iph(v).reduce(function(E,b){E=E===void 0?[]:E;var F,t;b==null||(F=b.mainPlaylistEntity)==null||(t=F.videos)==null||t.forEach(function(p){var Z;(p=(Z=V[p])==null?void 0:Z.video)&&E.push(p)});
return E},[]))};
EcT=function(v){return"downloadedMusicPlaylistEntities"in v};
bJo=function(v){return"mainPlaylistEntity"in v&&"mainPlaylistDownloadStateEntity"in v};
Flb=function(v){return"videoEntity"in v&&"channelEntity"in v};
Kl3=function(v){var Q=v.musicPlaylistDownloadMetadataEntity,V=[];if(!Q)return V;for(var E=_.L(Object.keys(Q)),b=E.next();!b.done;b=E.next()){b=b.value;a:{var F=v,t=_.Q_(b).entityId;if(t){var p=_.Fg(F,"musicPlaylist",_.b3(t,"musicPlaylist"));F=_.Fg(F,"musicPlaylistDownloadMetadataEntity",_.b3(t,"musicPlaylistDownloadMetadataEntity"));if(p&&F){p={musicPlaylistEntity:p,musicPlaylistDownloadStateEntity:F};break a}}p=void 0}F=void 0;b=Number((F=Q[b])==null?void 0:F.addedTimestampMillis);b=isNaN(b)?(0,_.wO)():
b;p!==void 0&&V.push({downloadedMusicPlaylistEntities:p,addedTimestampMillis:b})}return V};
iJh=function(v){var Q=new Set;v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,"musicPlaylistEntity"in V&&"musicPlaylistDownloadStateEntity"in V){V=_.L(V.musicPlaylistEntity.tracks);for(var E=V.next();!E.done;E=V.next())Q.add(E.value)}return Q};
LlQ=function(v,Q){if(Q){var V=_.Fg(v,"musicTrack",_.b3(Q,"musicTrack")),E=_.Fg(v,"musicArtist",_.b3(Q,"musicArtist"))||{};if((v=xsr(v,Q))&&V&&E)return Object.assign({},{musicTrackEntity:V,musicArtistEntity:E},v)}};
tIE=function(v){var Q=v.musicTrackDownloadMetadataEntity,V=[];if(!Q)return[];Q=_.L(Object.keys(Q));for(var E=Q.next();!E.done;E=Q.next()){var b=E.value;E=LlQ(v,_.Q_(b).entityId);var F=void 0;b=Number((F=_.Fg(v,"musicTrackDownloadMetadataEntity",b))==null?void 0:F.addedTimestampMillis);F=isNaN(b)?(0,_.wO)():b;E!==void 0&&V.push({downloadedMusicEntities:E,addedTimestampMillis:F})}return V};
ZJm=function(v,Q){if(!Q)return[];if(Object.values(p6T).includes(Q))return eco(v,Q);Q=_.b3(Q,"musicPlaylist");var V;v=(V=v.musicPlaylist)==null?void 0:V[Q];V=[];if(v==null||!v.tracks)return V;v=_.L(v.tracks);for(Q=v.next();!Q.done;Q=v.next())(Q=_.Q_(Q.value).entityId)&&V.push(Q);return V};
eco=function(v,Q){var V=new Set,E=Kl3(v).map(function(F){return F.downloadedMusicPlaylistEntities});
E=iJh(E);E=_.L(E);for(var b=E.next();!b.done;b=E.next())(b=_.Q_(b.value).entityId)&&V.add(b);return P6S(v).downloadedMusicEntities.filter(function(F){var t;if((t=F.musicTrackEntity)!=null&&t.videoId){F=F.musicTrackEntity;if(t=Q==="PPOM"?!0:!V.has(F.videoId))b:switch(F=F.musicVideoType,Q){case "PPSE":t=F==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:t=F!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}F=t}else F=!1;return F}).map(function(F){var t;
return(t=F.musicTrackEntity)==null?void 0:t.videoId})};
P6S=function(v){var Q=tIE(v).sort(function(V,E){return E.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:EcT(V)?V.downloadedMusicPlaylistEntities:{}});
v=Kl3(v).sort(function(V,E){return E.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:EcT(V)?V.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:Q,downloadedMusicPlaylistEntities:v}};
hc0=function(v,Q){Q=_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ZJm(v,Q):ms9(v,Q);if(!Q.length)return"TRANSFER_STATE_UNKNOWN";Q=Q.map(function(V){return rQZ(v,V)});
return dl9(Q)};
dl9=function(v){var Q=new Set(v);if(Q.has("TRANSFER_STATE_FAILED")&&Q.size===1)return"TRANSFER_STATE_FAILED";Q.delete("TRANSFER_STATE_FAILED");if(Q.has("TRANSFER_STATE_UNKNOWN")&&Q.size===1)return"TRANSFER_STATE_PRE_TRANSFER";Q.delete("TRANSFER_STATE_UNKNOWN");if(Q.has("TRANSFER_STATE_PRE_TRANSFER")&&Q.size===1||Q.size===0)return"TRANSFER_STATE_PRE_TRANSFER";v=Q.has("TRANSFER_STATE_TRANSFERRING");Q=Q.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return v||Q?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
kz=function(v){var Q=v.mainVideoDownloadStateEntity,V=[];if(!Q)return[];Q=_.L(Object.keys(Q));for(var E=Q.next();!E.done;E=Q.next()){var b=E.value;if(!Bwh(v,_.Q_(b).entityId)){E=A4(v,_.Q_(b).entityId);var F=void 0,t=void 0;b=(t=Number((F=_.Fg(v,"mainVideoDownloadStateEntity",b))==null?void 0:F.addedTimestampMillis))!=null?t:(0,_.wO)();E!==void 0&&V.push({downloadedVideoEntities:E,addedTimestampMillis:b})}}return V};
w6E=function(v){return kz(v).sort(function(Q,V){return V.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return Q.downloadedVideoEntities})};
_.k93=function(v){var Q=VIo(v),V=_.TO(v),E=Wxr(v),b=kz(v).filter(function(t){var p,Z;if((t==null?void 0:(p=t.downloadedVideoEntities)==null?void 0:(Z=p.transferEntity)==null?void 0:Z.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var d,w;t=t==null?void 0:(d=t.downloadedVideoEntities)==null?void 0:(w=d.videoEntity)==null?void 0:w.key;return _.Y("kevlar_use_library_entity")?t&&(E.has(t)||V[t]):t&&!Q.has(t)}),F=Q5G(v).filter(function(t){return hc0(v,t.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ui(b),_.ui(F)).sort(function(t,p){return p.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return ADh(t)})};
TxE=function(v,Q){if(Q&&zrr(v,Q)){var V,E,b=(E=(V=_.Fg(v,"playbackData",_.b3(Q,"playbackData")))!=null?V:void 0)==null?void 0:E.playerResponseJson;if(b){try{var F=JSON.parse(b);var t=_.Fg(v,"transfer",_.b3(Q,"transfer")),p=$sh(v,Q);p&&(F=Object.assign({},F,{playerConfig:Object.assign({},F.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+p*1E3}}})}));F.cotn=t==null?void 0:t.cotn}catch(Z){}return F}}};
_.yDE=function(v){var Q,V,E;v=(E=(V=((Q=v.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.Yz])==null?void 0:V.smartDownloadsOptInBannerVisibility)!=null?E:{};var b;return(b=_.y(v,YAt))!=null?b:{}};
_.TO=function(v){var Q,V,E;v=(E=(V=((Q=v.mainDownloadsListEntity)!=null?Q:{})[_.cDB])==null?void 0:V.downloads)!=null?E:[];Q={};V=_.L(v);for(E=V.next();!E.done;E=V.next())v=void 0,Q[(v=E.value.videoItem)!=null?v:""]=!0;return Q};
f6r=function(v){var Q=_.TO(v);if(Object.keys(Q).length===0)return!1;var V=v.mainVideoEntity;if(!V)return!0;V=_.L(Object.keys(V));for(var E=V.next();!E.done;E=V.next()){E=E.value;var b=_.Q_(E).entityId;if(Q[E]&&!Bwh(v,b))return!1}return!0};
_.y_=function(v){var Q=_.TO(v);return kz(v).sort(function(V,E){return V.addedTimestampMillis-E.addedTimestampMillis}).map(function(V){return V.downloadedVideoEntities}).filter(function(V){var E;
return(V=V==null?void 0:(E=V.videoEntity)==null?void 0:E.key)&&!!Q[V]})};
_.C6Z=function(v){var Q,V,E;v=(E=(V=((Q=v.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.Yz])==null?void 0:V.downloadsUpsellBannerVisibility)!=null?E:{};var b;return(b=_.y(v,G9B))!=null?b:{}};
ADh=function(v){return"downloadedVideoEntities"in v?v.downloadedVideoEntities:"downloadedPlaylistEntities"in v?v.downloadedPlaylistEntities:{}};
MIb=function(v){var Q=_.TO(v),V=VIo(v),E=kz(v).filter(function(b){var F,t;return(b=b==null?void 0:(F=b.downloadedVideoEntities)==null?void 0:(t=F.videoEntity)==null?void 0:t.key)&&!Q[b]&&!V.has(b)});
v=Q5G(v);return[].concat(_.ui(E),_.ui(v)).sort(function(b,F){return F.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return ADh(b)})};
_.cB=function(v){if(!_.Y("kevlar_use_library_entity"))return MIb(v);var Q=kz(v).filter(function(E){var b,F;if(b=E=E==null?void 0:(b=E.downloadedVideoEntities)==null?void 0:(F=b.videoEntity)==null?void 0:F.key){var t,p,Z;b=((p=(t=v.mainDownloadsListEntity)==null?void 0:t[jZo])==null?0:(Z=p.downloads)==null?0:Z.length)?Wxr(v).has(E):!1}return b}),V=Q5G(v);
return[].concat(_.ui(Q),_.ui(V)).sort(function(E,b){return b.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return ADh(E)})};
OJQ=function(v){var Q=_.TO(v),V=VIo(v);return w6E(v).filter(function(E){var b;return(E=E==null?void 0:(b=E.videoEntity)==null?void 0:b.key)&&!Q[E]&&!V.has(E)})};
DlZ=function(v){if(!_.Y("kevlar_use_library_entity"))return OJQ(v);var Q=_.TO(v),V=Wxr(v);return w6E(v).filter(function(E){var b;return(E=E==null?void 0:(b=E.videoEntity)==null?void 0:b.key)&&!Q[E]&&V.has(E)})};
Rc3=function(v,Q){Q=_.b3(Q,"settingEntity");var V,E,b;return!!((b=(E=((V=v.settingEntity)!=null?V:{})[Q])==null?void 0:E.settingOptionValue)!=null?b:{}).boolValue};
_.f7=function(v){var Q=_.y_(v);if(SjZ(Q))return 0;var V=[];Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;var b=void 0,F=void 0;if((b=E)==null?0:(F=b.videoEntity)==null?0:F.key)b=_.Q_(E.videoEntity.key).entityId,E=v,b=_.b3(b,"mainVideoDownloadStateEntity"),E=_.Fg(E,"mainVideoDownloadStateEntity",b),(E=Number(E==null?void 0:E.addedTimestampMillis))&&V.push(E)}return Math.max.apply(Math,_.ui(V))};
_.GO=function(v){return v.ui.richGridMiniMode};
_.C7=function(v){return v.ui.richGridItemsPerRow};
_.nco=function(v){return v.ui.richGridSlimItemsPerRow};
_.l6h=function(v){return v.ui.guideIsExpanded};
_.MS=function(v){return v.ui.miniplayerIsActive};
qAE=function(v){return v.ui.singleOptionSurveyIsActive};
_.Ox=function(v){var Q;return((Q=v.ui)==null?void 0:Q.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.SAt=function(v){return _.Ox(v)==="WEB_PAGE_TYPE_WATCH"};
_.zcT=function(v){return _.Ox(v)==="WEB_PAGE_TYPE_SHORTS"};
_.JDZ=function(v){return v.ui.inlinePreviewIsActive};
_.Nxb=function(v){return v.ui.inlinePreviewIsEnabled};
_.xlT=function(v){return v.ui.miniplayerPlaybackState};
_.Di=function(v){return v.ui.isOnline};
_.BxZ=function(v){return v.ui.frostedGlassMode};
_.RF=function(v,Q){return opZ(v.entities,Q)};
_.n7=function(v,Q){return hc0(v.entities,Q)};
gcE=function(v,Q){var V;if(Q){var E;v=(E=_.Fg(v.entities,"offlineVideoPolicy",_.b3(Q,"offlineVideoPolicy")))==null?void 0:E.action}else v=void 0;return(V=v)!=null?V:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
s5Z=function(v,Q){var V;Q?(v=_.Fg(v.entities,"offlineVideoPolicy",_.b3(Q,"offlineVideoPolicy")),v=Number(v==null?void 0:v.expirationTimestamp)):v=void 0;return(V=v)!=null?V:0};
_.u40=function(v){return _.w8(v.entities).length};
j5m=function(v,Q){return A4(v.entities,Q)};
WlE=function(v,Q){return vcS(v.entities,Q)};
l3=function(v,Q){return(v=A4(v.entities,Q))?_.Rr3([v]):0};
_.ocZ=function(v,Q){var V=_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(V){var E=v.entities;var b=ZJm(E,Q);if(b.length){var F=[];b=_.L(b);for(var t=b.next();!t.done;t=b.next())(t=LlQ(E,t.value))&&F.push(t);E=F}else E=[]}else E=UsS(v.entities,Q);var p;if(V){var Z=v.entities;Q?(Q=_.b3(Q,"musicPlaylist"),Z=(p=Z.musicPlaylist)==null?void 0:p[Q],p=Z!=null&&Z.tracks?Z.tracks.length:0):p=0}else p=v.entities,Q?(Q=_.b3(Q,"mainPlaylistEntity"),p=(Z=p.mainPlaylistEntity)==null?void 0:Z[Q],p=p!=null&&p.videos?
p.videos.length:0):p=0;return E.length!==p?0:E?npQ(E):0};
_.X6T=function(v){return v.download.isLeaderTab};
_.a6B=function(v,Q,V){if(!Q&&V){var E=v.entities;if(V){var b=qjr(V),F,t;Q=(t=(F=_.Fg(E,"offlineabilityEntity",_.b3(b,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else Q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else F=v.entities,Q?(t=qjr(Q),Q=(b=(E=_.Fg(F,"offlineabilityEntity",_.b3(t,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?b:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):Q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return Q};
rD9=function(v,Q){v=v.entities;if(Q){Q=qjr(Q);var V,E;Q=(E=(V=_.Fg(v,"offlineabilityEntity",_.b3(Q,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?E:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else Q="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return Q};
_.$lo=function(v){var Q=v.entities;v=_.Di(v);var V=Rc3(Q,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.Y("kevlar_modern_downloads_page")&&V)var E=!1;else{var b,F;Q=(F=(b=((E=Q.downloadsPageViewConfigurationEntity)!=null?E:{})[_.Yz])==null?void 0:b.smartDownloadsOptInBannerVisibility)!=null?F:{};E=v?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection}return E};
_.I69=function(v){return Rc3(v.entities,"SMART_DOWNLOADS_ENABLED")};
_.HJ9=function(v){return f6r(v.entities)};
mlm=function(v){return _.y_(v.entities).every(function(Q){var V;return(Q==null?void 0:(V=Q.transferEntity)==null?void 0:V.transferState)&&!Dso.includes(Q.transferEntity.transferState)})};
_.Ulh=function(v){var Q,V,E,b=(E=(V=((Q=v.entities.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.Yz])==null?void 0:V.downloadsUpsellBannerVisibility)!=null?E:{};return _.Di(v)?!!b.visibleWithConnection:!!b.visibleWithoutConnection};
_.vXo=function(v,Q){return Bwh(v.entities,Q)};
QKb=function(v,Q){if(Q){var V,E;v=(E=(V=_.Fg(v.entities,"downloadStatusEntity",_.b3(Q,"downloadStatusEntity")))==null?void 0:V.downloadState)!=null?E:"DOWNLOAD_STATE_UNKNOWN"}else v="DOWNLOAD_STATE_UNKNOWN";return v};
qS=function(v,Q){return $sh(v.entities,Q)};
FrT=function(v){v=V4m(v);var Q=v.hours===void 0?0:v.hours,V=v.minutes===void 0?0:v.minutes,E=v.seconds===void 0?0:v.seconds,b=Q>0;v=[];b&&(Q=EXr(Q),v.push(Q));Q=b;Q=Q===void 0?!1:Q;V=(["af","be","lt"].includes(zO)||Q)&&V<10?bAh().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);v.push(V);V=bAh().format(E);v.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(zO)&&(V=".");return v.join(V)};
_.iAB=function(v){v=V4m(v);var Q=v.hours===void 0?0:v.hours,V=v.minutes===void 0?0:v.minutes,E=v.seconds===void 0?0:v.seconds;v=[];if(Q>0){var b=Kr0().format({hours:Q});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(zO)||Q>9999)b=b.replace(Q.toString(),EXr(Q)),zO==="km"&&(b=b.replace(".",","));v.push(b)}V>0&&v.push(Kr0().format({minutes:V}));E>0&&v.push(Kr0().format({seconds:E}));Q="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");V=zO=="am"?"{0}\u1363 ":zO=="fa"?"{0}\u060c\u200f ":
zO=="my"?"{0} - ":zO=="ne"?"{0},":zO=="th"?"{0} ":zO=="ur"?"{0}\u060c ":zO=="ar"||zO=="ar-XB"?"{0} \u0648":zO=="ja"||zO=="zh-CN"||zO=="zh-HK"||zO=="zh-TW"?"{0}\u3001":"{0}, ";E=zO=="am"?"\u1363 ":zO=="fa"?"\u060c\u200f ":zO=="my"?" - ":zO=="th"?" ":zO=="ur"?"\u060c ":zO=="ar"||zO=="ar-XB"?" \u0648":zO=="ja"||zO=="zh-CN"||zO=="zh-HK"||zO=="zh-TW"?"\u3001":", ";b=zO=="am"?" \u12a5\u1293 {0}":zO=="as"?" \u0986\u09f0\u09c1 {0}":zO=="az"?" v\u0259 {0}":zO=="bn"?" \u098f\u09ac\u0982 {0}":zO=="cs"?" a\u00a0{0}":
zO=="de"?" und {0}":zO=="el"?" \u03ba\u03b1\u03b9 {0}":zO=="eu"?" eta {0}":zO=="fa"?"\u060c \u0648 {0}":zO=="fil"?", at {0}":zO=="gu"?" \u0a85\u0aa8\u0ac7 {0}":zO=="hi"?", \u0914\u0930 {0}":zO=="hu"?" \u00e9s {0}":zO=="hy"?" \u0587 {0}":zO=="id"?", dan {0}":zO=="iw"?" \u05d5-{0}":zO=="ja"?"\u3001{0}":zO=="ka"?" \u10d3\u10d0 {0}":zO=="km"?" \u1793\u17b7\u1784 {0}":zO=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":zO=="ko"?" \ubc0f {0}":zO=="ky"?" \u0436\u0430\u043d\u0430 {0}":zO=="lt"?" ir {0}":zO==
"lv"?" un {0}":zO=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":zO=="mr"?" \u0906\u0923\u093f {0}":zO=="ms"?" dan {0}":zO=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":zO=="ne"?" \u0930 {0}":zO=="or"?", \u0b13 {0}":zO=="pa"?" \u0a05\u0a24\u0a47 {0}":zO=="ro"?" \u0219i {0}":zO=="si"?", \u0dc3\u0dc4 {0}":zO=="sk"?" a {0}":zO=="sl"?" in {0}":zO=="sq"?" dhe {0}":zO=="sv"?" och {0}":zO=="sw"?" na {0}":zO=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":zO=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
zO=="th"?" \u0e41\u0e25\u0e30{0}":zO=="tr"?" ve {0}":zO=="ur"?"\u060c \u0627\u0648\u0631 {0}":zO=="uz"?" va {0}":zO=="vi"?" v\u00e0 {0}":zO=="zh-HK"?"\u53ca{0}":zO=="zu"?", ne-{0}":zO=="af"||zO=="nl"?" en {0}":zO=="ar"||zO=="ar-XB"?" \u0648{0}":zO=="be"||zO=="uk"?" \u0456 {0}":zO=="en-GB"||zO=="en-IN"?" and {0}":zO=="en"||zO=="en-XA"?", and {0}":zO=="et"||zO=="fi"?" ja {0}":zO=="fr"||zO=="fr-CA"?" et {0}":zO=="zh-CN"||zO=="zh-TW"?"\u548c{0}":zO=="da"||zO=="is"||zO=="no"?" og {0}":zO=="es"||zO=="es-419"||
zO=="es-US"?" y {0}":zO=="kk"||zO=="lo"||zO=="mn"?", {0}":zO=="bg"||zO=="mk"||zO=="ru"||zO=="sr"?" \u0438 {0}":zO=="gl"||zO=="it"||zO=="pt-BR"||zO=="pt-PT"?" e {0}":" i {0}";var F=zO=="am"?"{0} \u12a5\u1293 {1}":zO=="as"?"{0} \u0986\u09f0\u09c1 {1}":zO=="az"?"{0} v\u0259 {1}":zO=="bn"?"{0} \u098f\u09ac\u0982 {1}":zO=="de"?"{0} und {1}":zO=="el"?"{0} \u03ba\u03b1\u03b9 {1}":zO=="eu"?"{0} eta {1}":zO=="fa"?"{0} \u0648 {1}":zO=="fil"?"{0} at {1}":zO=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":zO=="hi"?"{0} \u0914\u0930 {1}":
zO=="hu"?"{0} \u00e9s {1}":zO=="hy"?"{0} \u0587 {1}":zO=="iw"?"{0} \u05d5-{1}":zO=="ja"?"{0}\u3001{1}":zO=="ka"?"{0} \u10d3\u10d0 {1}":zO=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":zO=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":zO=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":zO=="ko"?"{0} \ubc0f {1}":zO=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":zO=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":zO=="lt"?"{0} ir {1}":zO=="lv"?"{0} un {1}":zO=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":zO=="mn"?"{0}, {1}":zO==
"mr"?"{0} \u0906\u0923\u093f {1}":zO=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":zO=="ne"?"{0} \u0930 {1}":zO=="or"?"{0} \u0b13 {1}":zO=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":zO=="ro"?"{0} \u0219i {1}":zO=="si"?"{0} \u0dc3\u0dc4 {1}":zO=="sl"?"{0} in {1}":zO=="sq"?"{0} dhe {1}":zO=="sv"?"{0} och {1}":zO=="sw"?"{0} na {1}":zO=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":zO=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":zO=="th"?"{0}\u0e41\u0e25\u0e30{1}":zO=="tr"?"{0} ve {1}":zO=="ur"?
"{0} \u0627\u0648\u0631 {1}":zO=="uz"?"{0} va {1}":zO=="vi"?"{0} v\u00e0 {1}":zO=="zh-HK"?"{0}\u53ca{1}":zO=="zu"?"{0} ne-{1}":zO=="af"||zO=="nl"?"{0} en {1}":zO=="ar"||zO=="ar-XB"?"{0} \u0648{1}":zO=="be"||zO=="uk"?"{0} \u0456 {1}":zO=="cs"||zO=="sk"?"{0} a\u00a0{1}":zO=="et"||zO=="fi"?"{0} ja {1}":zO=="fr"||zO=="fr-CA"?"{0} et {1}":zO=="id"||zO=="ms"?"{0} dan {1}":zO=="zh-CN"||zO=="zh-TW"?"{0}\u548c{1}":zO=="da"||zO=="is"||zO=="no"?"{0} og {1}":zO=="es"||zO=="es-419"||zO=="es-US"?"{0} y {1}":zO==
"bg"||zO=="mk"||zO=="ru"||zO=="sr"?"{0} \u0438 {1}":zO=="en"||zO=="en-GB"||zO=="en-IN"||zO=="en-XA"?"{0} and {1}":zO=="gl"||zO=="it"||zO=="pt-BR"||zO=="pt-PT"?"{0} e {1}":"{0} i {1}";zO==="sq"?(b=b.replace("dhe","e"),F=F.replace("dhe","e")):zO==="th"?(E=E.replace("{0}"," {0}"),F=F.replace("{0}","{0} "),F=F.replace("{1}"," {1}")):zO==="ne"?E=",":zO==="zh-CN"?E="":Q.includes(zO)&&(E=" ");return v.length<2?v.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(zO)?
v.length===2?F.replace("{0}",v[0]).replace("{1}",v[1]):V.replace("{0}",v[0])+v.slice(1,-1).join(E)+b.replace("{0}",v[v.length-1]):v.join(E)};
V4m=function(v){var Q=v.hours||0,V=v.minutes||0,E=v.seconds||0;Q=E+V*60+Q*3600+(v.days||0)*86400+(v.weeks||0)*604800+(v.months||0)*2629800+(v.years||0)*31557600;if(Q<=0)return{hours:0,minutes:0,seconds:0};v=Q;Q=Math.floor(v/3600);v%=3600;V=Math.floor(v/60);E=Math.floor(v%60);return{hours:Q,minutes:V,seconds:E}};
EXr=function(v){v=(new Intl.NumberFormat("en-u-nu-latn")).format(v);var Q=["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(zO)?v.replace(",","\u00a0"):Q.includes(zO)?v.replace(",","\u202f"):V.includes(zO)?v.replace(",","."):v};
bAh=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Kr0=function(){Lrt||(J4=t4T,Lrt=new puo);return Lrt};
e4B=function(v){try{return(new _.NS(5)).format(v)}catch(Q){}};
xz=function(v){return{thumbnailOverlayDownloadingRenderer:{state:v}}};
ZAr=function(){var v=_.Lt("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.I$(v),icon:{iconType:"PLAY_ALL"}}}};
P_3=function(v){v=_.BB(v,2);return zO!=="ru"&&zO!=="es_419"&&zO!=="es-419"&&zO!=="es"&&zO!=="es_US"&&zO!=="es-US"&&zO!=="fr"&&zO!=="pl"&&zO!=="it"&&zO!=="nl"&&zO!=="uk"&&zO!=="fr_CA"&&zO!=="fr-CA"||v===""?v:v[0].toLocaleUpperCase()+v.substring(1)};
h4o=function(v){return function(Q){var V=v(),E=_.BB(Q,V.dateFormat);Q=_.BB(Q,V.timeFormat);var b=dK0.DATETIMEFORMATS[V.joinerStyle];b=b.replace(/'(?!')/g,"");b=b.replace("{0}",Q);b=b.replace("{1}",E);return V.capitalize(b)}};
wub=function(v){return v?typeof v.seconds==="string"&&(v.nanos===void 0||typeof v.nanos==="number"):!1};
AjT=function(v){return new Date(Number(v.seconds)*1E3+(v.nanos||0)*1E-6)};
_.BB=function(v,Q){if(typeof v.getTime==="function")v={date:v};else if(wub(v))v={date:AjT(v)};else if(typeof wub(v.timestamp)&&typeof v.i18nInternalSecondsEastOfUtc==="number")v={date:AjT(v.timestamp),timeZone:g8(-v.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(v));var V=v;v=V.date;V=V.timeZone;Q=kX9(Q).format(v,V);zO==="zh-TW"&&(v=V?Number(kX9("H").format(v,V)):v.getHours(),Q=v<5?Q.replace("\u4e0a\u5348","\u51cc\u6668"):v<8?Q.replace("\u4e0a\u5348","\u65e9\u4e0a"):v<12?
Q.replace("\u4e0a\u5348","\u4e0a\u5348"):v<13?Q.replace("\u4e0b\u5348","\u4e2d\u5348"):v<19?Q.replace("\u4e0b\u5348","\u4e0b\u5348"):Q.replace("\u4e0b\u5348","\u665a\u4e0a"));return Q};
kX9=function(v){if(TKB.has(v))return TKB.get(v);var Q=YZt(v);Q=yjo(Q);cjb!==!0&&(cjb=!0);fH0=!0;fH0=!1;Q=new sx(Q,dK0);TKB.set(v,Q);return Q};
YZt=function(v){return(new sx(v,dK0)).patternParts_.map(function(Q){return Q.type===0?"'"+Q.text+"'":Q.text}).join("")};
yjo=function(v){return zO==="en"||zO==="es_US"||zO==="es-US"?v:v.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(Q,V,E){return"H".repeat(V.length)+E})};
nXh=function(v,Q){GXZ||(J4=t4T,GXZ=new C_t);var V=GXZ;a:if(v=M4S(v),Q=M4S(Q||new Date),v>Q)V=v.getTime()-Q.getTime()>6048E5?_.BB(v,1):OAo(v);else{for(var E=0;DKo(v,12*(E+1))<Q;)++E;if(E>0)V=V.format(-E,0);else{for(E=0;DKo(v,E+1)<Q;)++E;if(E>0)V=V.format(-E,2);else{v=Q.getTime()-v.getTime();Q=_.L(R4m);for(E=Q.next();!E.done;E=Q.next()){E=E.value;var b=E.unit,F=Math.floor(v/E.unitDuration);if(F>=(E.threshold===void 0?1:E.threshold)){V=V.format(-F,b);break a}}V=V.format(-0,7)}}}return V};
M4S=function(v){if(typeof v.getTime==="function")return v;if(wub(v))return AjT(v);throw Error("Mf`"+JSON.stringify(v));};
DKo=function(v,Q){for(var V=0,E;;++V)if(E=new Date(v.getFullYear(),v.getMonth()+Q,v.getDate()-V,v.getHours(),v.getMinutes(),v.getSeconds()),E.getMonth()===(v.getMonth()+Q)%12)return E};
_.u3=function(v){return{runs:[{text:v}]}};
_.j0=function(v){if(v&&v.simpleText)return v.simpleText;var Q="";if(v&&v.runs)for(var V=0;V<v.runs.length;V++)v.runs[V].text&&(Q+=v.runs[V].text);return Q};
qZE=function(v,Q,V,E){return v.videoEntity&&!v.policyEntity&&V!=="DOWNLOAD_STATE_FAILED"?[xz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:PB(v.policyEntity)&&Q!=="TRANSFER_STATE_FAILED"&&Q!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?Q==="TRANSFER_STATE_PAUSED_BY_USER"?[xz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.d8(Q)?[xz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:v.videoEntity.lengthSeconds?lHr(v.videoEntity.lengthSeconds,E):[]:
[xz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
lHr=function(v,Q){var V=[{thumbnailOverlayTimeStatusRenderer:{text:_.I$(FrT({seconds:v})),style:"DEFAULT"}}];Q&&(v=Q<=0||v<=0?0:Q>=v?100:Math.ceil(Q*100/v),v>0&&V.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:v}}));return V};
SZB=function(v,Q,V,E,b){if(Q==="TRANSFER_STATE_UNKNOWN"||!v)return{};if(_.d8(Q)||Q==="TRANSFER_STATE_PRE_TRANSFER")var F=[xz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var t,p;if(Q==="TRANSFER_STATE_COMPLETE"&&((t=v.mainPlaylistEntity)==null?0:(p=t.videos)==null?0:p.length)){var Z;v=(F=v.mainPlaylistEntity)==null?void 0:(Z=F.videos)==null?void 0:Z.length;F=(F=e4B(v))?{thumbnailOverlayBottomPanelRenderer:{text:_.I$(F),icon:{iconType:"PLAYLISTS"}}}:void 0;F=[ZAr(),Object.assign({},
F!=null?F:{})]}else F=[]}a:if(Q==="TRANSFER_STATE_PRE_TRANSFER")V=Hp(_.Lt("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(Q==="TRANSFER_STATE_TRANSFER_IN_QUEUE")V=Hp(_.Lt("WAITING_TO_DOWNLOAD"));else if(_.d8(Q))V=Math.floor(V*100).toString(),V=Hp(_.Lt("DOWNLOADING_PERCENT",{percent:V},"Downloading... "+V+"%"));else{if(E&&(_.Y("playlist_is_offline_selector_killswitch")&&(b=_.ht().resolve(_.bS).isNetworkAvailable()),b)){V=BJE(_.Lt("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
NJ3(E));break a}V=void 0}Q=Q==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Lt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},F.length?{thumbnailOverlays:F}:{},V?{viewPlaylistText:V}:{viewPlaylistText:_.u3("")},Q.length?{badges:Q}:{})};
z4B=function(v,Q,V,E,b,F){if(Q==="TRANSFER_STATE_UNKNOWN"||!v)return{};if(E==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var t=qZE(v,Q,E);if(v.videoEntity&&!v.policyEntity&&E!=="DOWNLOAD_STATE_FAILED"){var p=_.Lt("WAITING_TO_DOWNLOAD");if(p)return{shortViewCountText:_.u3(p),publishedTimeText:void 0,thumbnailOverlays:t}}if(!PB(v.policyEntity)){F=v.policyEntity&&!lpQ(v.policyEntity)?_.Lt("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Lt("TRANSFER_FAILED",{},"Download failed");var Z;if((Z=v.policyEntity)==null?0:Z.shortMessageForDisabledAction)F=v.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Hp(F),publishedTimeText:void 0,thumbnailOverlays:t}}if(Q==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.u3(_.Lt("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:t};if(Q==="TRANSFER_STATE_FAILED"||Q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.u3(_.Lt("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:t};if(Q==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(Z=_.Lt("WAITING_TO_DOWNLOAD"),E==="DOWNLOAD_STATE_PAUSED"&&(Z=_.Lt("DOWNLOAD_PAUSED",{},"Download paused")),Z))return{shortViewCountText:_.u3(Z),publishedTimeText:void 0,thumbnailOverlays:t};if(_.d8(Q))return v=Math.floor(V*100).toString(),{shortViewCountText:_.u3(_.Lt("DOWNLOADING_PERCENT",{percent:v},"Downloading... "+v+"%")),publishedTimeText:void 0,thumbnailOverlays:t};Q=void 0;v.videoEntity.publishedTimestampMillis&&
(Q=new Date,b&&(Q=new Date(b)),Q=Hp(nXh(new Date(Number(v.videoEntity.publishedTimestampMillis)),Q)));b=[];_.Y("kevlar_woffle_badge_killswitch")||(b=[{metadataBadgeRenderer:{label:_.Lt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var d;v=Hp((d=v.videoEntity.localizedStrings)==null?void 0:d.viewCount);return Object.assign({},F?{shortViewCountText:void 0}:{shortViewCountText:v},F?{}:{publishedTimeText:Q},{badges:b,thumbnailOverlays:t})};
NKb=function(v,Q){v=v===void 0?JjQ:v;switch(Q.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:Q.payload.playlistId,inviteLinkURL:Q.payload.inviteLinkUrl};default:return v}};
Z1o=function(v,Q){v=v===void 0?ejB:v;switch(Q.type){case "SET_CURRENT_FORM_ID":return Q=Q.payload.formId,v.currentFormId===Q?v:{currentFormId:Q,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var V=Q.payload;Q=V.groupId;V=V.command;if(v.currentFormId){var E=Object.assign({},v.commandsMap);E[Q]=V;v=Object.assign({},v,{commandsMap:E})}return v;case "RESET_COMMAND_MAP":return Object.assign({},v,{commandsMap:{}});default:return v}};
dD0=function(v,Q){v=v===void 0?Ppt:v;switch(Q.type){case "UPDATE_CANVAS_MODE":return Object.assign({},v,{currentMode:Q.payload.currentMode});default:return v}};
wkE=function(v,Q){v=v===void 0?hjE:v;switch(Q.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},v,{guideIsExpanded:Q.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},v,{scrollAtTop:Q.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},v,{guideIsVisibleButNotPersistent:Q.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},v,{miniplayerIsActive:Q.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},v,{singleOptionSurveyIsActive:Q.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},v,{slimlineSurveyRatingSelectedIndex:Q.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},v,{richGridMiniMode:Q.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},v,{richGridItemsPerRow:Q.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},v,{richGridSlimItemsPerRow:Q.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},v,{richGridContainerWidth:Q.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},v,{richGridStyle:Q.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},v,{currentPageType:Q.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},v,{inlinePreviewIsActive:Q.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},v,{inlinePreviewIsEnabled:Q.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},v,{darkModeIsEnabled:Q.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
v,{miniplayerPlaybackState:Q.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},v,{tabGesturesIsActive:Q.payload});case "SET_ONLINE_STATUS":return Object.assign({},v,{isOnline:Q.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},v,{chipBarIsSticky:Q.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},v,{frostedGlassMode:Q.payload});default:return v}};
A9S=function(){return _.Y("kevlar_disable_theater_mode_persistence")?!1:_.mX("START_IN_THEATER_MODE")};
T4Q=function(v,Q){v=v===void 0?kyZ:v;switch(Q.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},v,{transcription:Q.payload});case "SET_OVERLAY_STATE":return Object.assign({},v,{overlay:Q.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return v}};
RjZ=function(){return Su(Object.assign({},{continuation:YrG,download:y9E,canvas:dD0,reportChannelAbuse:c9T,share:fh9,talkToRecs:GyE,ui:wkE,voiceSearch:T4Q,watch:CpT,ypc:MvS,shorts:O13,radioButtonGroup:Z1o,collabInviteLink:NKb},DD9))};
qrB=function(){return _.Y("web_player_entities_middleware")?new WB(RjZ(),[n2B,lhG]):new WB(RjZ(),[n2B])};
_.oF=function(){SrS||(SrS=qrB());return SrS};
zjt=function(v,Q,V){if(v.length)return{titleText:_.I$(Q!=null?Q:_.Lt("DOWNLOADS",void 0,"Downloads")),contents:v.map(function(E){var b=E.videoEntity;E={videoId:b.videoId,title:Hp(b.title),shortBylineText:Hp(E.channelEntity.title),thumbnail:b.thumbnail};var F=b.videoId?qS(_.oF().getState(),b.videoId):0;b.videoId&&V?E.navigationEndpoint=_.$7(b.videoId,V,void 0,void 0,F):b.videoId&&(E.navigationEndpoint=JLB(b.videoId,F,b.lengthSeconds));b.lengthSeconds&&(E.thumbnailOverlays=lHr(b.lengthSeconds,F));return{playlistPanelVideoRenderer:E}}),
totalVideos:v.length}};
J90=function(v){return(v=(0,_.gI.getValueByKeys)(v,"playlistId"))?{playlistId:v}:null};
N4r=function(){return{}};
xD9=function(v,Q){return new _.Ry(function(V,E){v.then(function(b){if(b){if(b=Q(b))return V(b);E()}},E)})};
B4Z=function(v){var Q,V,E,b=(Q=v.contents)==null?void 0:(V=Q.twoColumnWatchNextResults)==null?void 0:(E=V.autoplay)==null?void 0:E.autoplay,F,t,p;Q=(F=v.contents)==null?void 0:(t=F.twoColumnWatchNextResults)==null?void 0:(p=t.playlist)==null?void 0:p.playlist;return b&&Q&&Q.playlistId?{rawResponse:v,autoplayRenderer:b,playlistPanelRenderer:Q,playlistId:Q.playlistId}:null};
suh=function(v){var Q=Q===void 0?"UNKNOWN_INTERFACE":Q;if(v.length===1)return v[0];var V=g2o[Q];if(V){V=new RegExp(V);for(var E=_.L(v),b=E.next();!b.done;b=E.next())if(b=b.value,V.exec(b))return b}var F=[];Object.entries(g2o).forEach(function(t){var p=_.L(t);t=p.next().value;p=p.next().value;Q!==t&&F.push(p)});
V=new RegExp(F.join("|"));v.sort(function(t,p){return t.length-p.length});
E=_.L(v);for(b=E.next();!b.done;b=E.next())if(b=b.value,!V.exec(b))return b;return v[0]};
_.Xg=function(v){return"/youtubei/v1/"+suh(v)};
_.aF=function(v,Q){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:v}}},Q!==void 0?{durationHintMs:Q}:{})}};
_.r8=function(v,Q){return _.aF(_.u3(v),Q)};
uOQ=function(v,Q){var V={mode:"NORMAL"};v&&(V.autoplayVideo=v.navigationEndpoint,V.nextButtonVideo=v.navigationEndpoint);Q&&(V.previousButtonVideo=Q.navigationEndpoint);return V};
o2o=function(v,Q,V){if(!V||!V.sets)return{sets:[uOQ(v,Q)]};var E=V.sets.find(function(t){return t.mode==="NORMAL"}),b=(0,_.gI.unsafeClone)(V);
if(!E)return b.sets.push(uOQ(v,Q)),b;if(!v)return V;E=_.gI.getValueByKeys.apply(null,[E].concat(_.ui(juS)));var F=_.gI.getValueByKeys.apply(null,[v].concat(_.ui(WOT)));if(E===F)return V;b.sets=b.sets.filter(function(t){return t.mode!=="NORMAL"});
b.sets.push(uOQ(v,Q));return b};
Xk0=function(v){return!!v.playlistPanelVideoRenderer&&!v.playlistPanelVideoRenderer.unplayableText};
ahQ=function(v){return!!v.playlistPanelVideoRenderer&&!!v.playlistPanelVideoRenderer.title};
r9S=function(v,Q){if(Q.contents&&!(v>=Q.contents.length)&&(v=Q.contents.slice(v).find(Xk0)))return v.playlistPanelVideoRenderer};
$Dt=function(v,Q){if(Q.contents)return(Q=Q.contents.find(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===v}))?Q.playlistPanelVideoRenderer:void 0};
IhS=function(v,Q){return Q.contents?Q.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===v}):-1};
H1h=function(v,Q){return Q.contents?Q.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.playlistSetVideoId===v}):-1};
mDr=function(v,Q){v.contents&&Q!==-1&&v.contents.splice(Q,1).length===1&&v.totalVideos!==void 0&&(--v.totalVideos,delete v.videoCountText)};
_.UDQ=function(v){var Q=[];if(!v||!v.contents)return Q;v=_.L(v.contents);for(var V=v.next();!V.done;V=v.next())V=V.value,V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId&&Q.push(V.playlistPanelVideoRenderer.videoId);return Q};
_.vH0=function(v){if(v&&v.contents)return(v=v.contents.find(function(Q){return!!Q.playlistPanelVideoRenderer&&!!Q.playlistPanelVideoRenderer.selected})||v.contents[v.currentIndex])?v.playlistPanelVideoRenderer:void 0};
QsS=function(v,Q,V,E,b,F,t){b=b===void 0?!1:b;F=F===void 0?!1:F;t=t===void 0?!1:t;if(v.contents&&v.contents.length!==0){E&&(v.contents=v.contents.filter(E));E=v.contents.length;for(var p=0;p<E;p++){var Z=v.contents[p].playlistPanelVideoRenderer;Z&&(p===Q?(F&&delete Z.menu,Z.indexText=_.u3("\u25b6")):b||v.isInfinite||Z.indexText===void 0?delete Z.indexText:Z.indexText=_.u3((p+1+V).toString()))}v.currentIndex=Q+V;t&&(delete v.videoCountText,v.totalVideos=E)}};
_.$z=function(v){v=V2b(v);if(v){var Q=v.length;var V=-28%Q;V<0&&(V=Q+V);v=v.slice(Q-V)+v.slice(0,Q-V)}else v="";V="";for(Q=0;Q<v.length&&v[Q]!==EHr;Q++)V+=v[Q];return V};
_.bPS=function(v,Q){var V=document.body;Q=Q===void 0?function(p){return p}:Q;
var E,b=null;v=_.L(v);for(E=v.next();!E.done;E=v.next()){var F=E.value;E="div";F[2]&&(E=Q(F[2]));E=document.createElement(E);b||(b=E);var t=F[0];F=F[1];t&&(E.id=Q(t));if(F)for(F=_.L(F),t=F.next();!t.done;t=F.next())E.classList.add(Q(t.value));V.appendChild(E);V=E}return[b,V]};
Fsr=function(v,Q){for(var V="",E=0;E<Q;E++)V+=v.charAt(Math.floor(Math.random()*v.length));return V};
IF=function(v){return Fsr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",v)};
HB=function(v){return Fsr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",v)};
m5=function(v){return Fsr("0123456789",v)};
Ks0=function(){var v=performance.now(),Q=new Date;var V="2."+Q.getFullYear()+String(Q.getMonth()+1).padStart(2,"0")+String(Q.getDate()).padStart(2,"0");for(var E,b=Math.floor(Math.random()*11)+15,F=[],t=0;t<b;t++)F.push(Math.floor(Math.random()*26476865)+24547720);E=F.join(",");var p=IF(10),Z=IF(100),d=IF(102),w=IF(106),A=IF(108),k=IF(11),T=IF(1140),c=IF(123),C=IF(14),R=IF(16),l=IF(1900),S=IF(23),a=IF(26),g=IF(34),u=IF(397),r=IF(44),v9=IF(5),t3=IF(72),h3=IF(74),OB=IF(75),kQ=IF(88),yo=IF(91),xQ="rr1---sn-q4flrnl6 rr4---sn-5hnednsz rr3---sn-q4fl6ndz rr1---sn-ab5sznzd rr4---sn-t0a7ln7d rr3---sn-q4fl6nds rr2---sn-q4flrnee rr3---sn-q4fl6nde rr3---sn-q4fl6nss rr3---sn-q4flrney rr2---sn-q4flrnel rr2---sn-aigl6nze rr3---sn-5hnekn7l rr3---sn-q4fl6nz7 rr1---sn-q4fl6nsk rr2---sn-q4flrnl7 rr4---sn-q4fzenee rr4---sn-aigzrnz7 rr1---sn-q4fl6nsd rr1---sn-5hne6nzy".split(" ");
var lb=xQ[Math.floor(Math.random()*xQ.length)];var ep=(new Date("2010-01-01")).getTime();var JS=(new Date(ep+Math.random()*((new Date).getTime()-ep))).toISOString().split("T")[0];for(var fZ,mS=[],PN=0;PN<4;PN++)mS.push(Math.floor(Math.random()*100));fZ=mS.join(".");var qZ=Number(m5(5)),DX=Number(m5(6)),Th=Number(m5(7)),R8=Number(m5(9)),LE=m5(1),Q8=m5(10),Tq=m5(16),Ed=m5(19),y8=m5(2),mA=m5(20),C$=m5(21),oN=m5(3),dV=m5(4),hS=m5(5),bh=m5(6),ah=m5(7),vs=m5(8),dl=m5(9);var E9=Fsr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var wY=[HB(5),HB(5),HB(5)].join("%2C"),Ws=[m5(3),m5(5),m5(5)].join("%2C"),Zg=HB(0),TT=HB(1),WN=HB(10),Gh=HB(108),Fn=HB(11),fg=HB(12),la=HB(13),Ql=HB(14),rb=HB(15),yN=HB(16),h8=HB(17),Dt=HB(18),gG=HB(19),Xr=HB(2),AS=HB(20),cs=HB(22),qj=HB(23),nj=HB(24),MZ=HB(266),Gq=HB(3),uh=HB(30),jc=HB(34),Ya=HB(35),rI=HB(36),am=HB(4),Wq=HB(40),$U=HB(43),bM=HB(47),T2=HB(5),Aa=HB(6),ku=HB(7),Qe=HB(75),gH=HB(8),fD=HB(80),wo=HB(9),MN="https://www."+HB(12)+".com",Tl={},Zr={},R4={},hX={},nY={},Py={},GE={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:E}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:V},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+HB(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:E}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:C$+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+HB(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Wq,ypcGetOfflineUpsellEndpoint:{params:fD}},trackingParams:Ya+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&cnr="+y8+"&ratebypass=yes&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&c=WEB&txp="+ah+"&n="+R+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:DX,width:640,height:360,lastModified:Tq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ah,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Ws+"&mn="+
wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&cnr="+y8+"&ratebypass=yes&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&c=WEB&txp="+ah+"&n="+R+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Gh+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:DX,width:1280,
height:720,lastModified:Tq,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ah,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+Ws+"&mn="+wY+"&ms="+
wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+dl+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Th,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:dl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Th,approxDurationMs:ah},{itag:248,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+Ws+"&mn="+wY+"&ms="+wY+"&mv="+
TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+dl+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&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="+A,mimeType:'video/webm; codecs="vp9"',bitrate:Th,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:dl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Th,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:399,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+dl+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Th,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:dl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Th,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:136,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+dl+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Th,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:dl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:DX,approxDurationMs:ah},{itag:247,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+Ws+"&mn="+
wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+dl+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:Th,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:dl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:398,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+dl+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Th,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:dl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:135,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:DX,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:DX,approxDurationMs:ah},{itag:244,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+Ws+"&mn="+
wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Gh+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:DX,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:397,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:DX,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:134,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:DX,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:DX,highReplication:!0,approxDurationMs:ah},{itag:243,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&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="+A,mimeType:'video/webm; codecs="vp9"',bitrate:DX,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:396,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:DX,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:133,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:DX,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:DX,approxDurationMs:ah},{itag:242,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+Ws+"&mn="+
wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:DX,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:395,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:DX,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:DX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:160,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&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="+A,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:DX,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:qZ,approxDurationMs:ah},{itag:278,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+Ws+"&mn="+
wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:DX,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:qZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:394,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&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="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=video%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:qZ,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:qZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ah},{itag:140,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=audio%2Fmp4&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&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="+A,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:DX,
initRange:{start:"0",end:"631"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:DX,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ah,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+
y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=audio%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+ah+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&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="+A,mimeType:'audio/webm; codecs="opus"',bitrate:qZ,initRange:{start:"0",end:"265"},indexRange:{start:oN,
end:dV},lastModified:Tq,contentLength:ah,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:qZ,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ah,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=audio%2Fwebm&ns="+
nj+"&gir="+Gq+"&clen="+ah+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+ah+"&n="+yN+"&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="+A,mimeType:'audio/webm; codecs="opus"',bitrate:qZ,initRange:{start:"0",end:"265"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:ah,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:qZ,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ah,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+lb+".googlevideo.com/videoplayback?expire="+Q8+"&ei="+S+"&ip="+fZ+"&id=o-AF"+$U+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Ws+"&mn="+wY+"&ms="+wY+"&mv="+TT+"&mvi="+LE+"&pl="+y8+"&initcwndbps="+ah+"&siu="+LE+"&spc="+r+"&vprv="+LE+"&svpuc="+LE+"&mime=audio%2Fwebm&ns="+nj+"&gir="+Gq+"&clen="+vs+"&dur="+vs+"&lmt="+Tq+"&mt="+Q8+"&fvip=3&keepalive="+Gq+"&c=WEB&txp="+
ah+"&n="+yN+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'audio/webm; codecs="opus"',bitrate:DX,initRange:{start:"0",end:"265"},indexRange:{start:oN,end:dV},lastModified:Tq,contentLength:vs,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:DX,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ah,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="+dl+"&docid="+k+"&ei="+S+"&feature="+p+"&fexp="+Zg+"&ns="+Xr+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TT+"&el="+WN+"&len="+dV+"&of="+cs+
"&uga="+y8+"&vm="+MZ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+dl+"&docid="+k+"&ei="+S+"&feature="+p+"&fexp="+Zg+"&ns="+Xr+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TT+"&el="+WN+"&len="+dV+"&of="+cs+"&uga="+y8+"&vm="+MZ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+dl+"&docid="+k+"&ei="+S+"&feature="+p+"&fexp="+Zg+"&ns="+Xr+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
TT+"&el="+WN+"&len="+dV+"&of="+cs+"&uga="+y8+"&vm="+MZ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+S+"&m="+kQ+"&oid="+cs+"&plid="+R+"&pltype="+ku+"&ptchn="+cs+"&ptk="+C+"&video_id="+k},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+dl+"&docid="+k+"&ei="+S+"&event="+Ql+"&feature="+p+"&fexp="+Zg+"&ns="+Xr+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TT},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
yN+"&ver=2&cmt=1."+oN+"&fmt="+oN+"&fs=0&rt="+hS+"&euri&lact="+oN+"&cl="+dl+"&mos="+LE+"&volume=100&cbrand="+T2+"&cbr="+Aa+"&cbrver="+fZ+"&c=WEB&cver="+V+"&cplayer=UNIPLAYER&cos="+wo+"&cosver="+ah+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+y8+"&len="+vs+"&fexp="+wY+"&feature=g-high-rec&afmt="+oN+"&muted=0&conn=1&docid="+k+"&ei="+S+"&plid="+R+"&vm="+HB(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
k+"&caps="+Gq+"&opi="+dl+"&xoaf="+LE+"&hl="+Xr+"&ip="+fZ+"&ipbits="+LE+"&expire="+Q8+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+fZ+"&key="+Gq+"&lang="+v9,name:{simpleText:Ql},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+k+"&caps="+Gq+"&opi="+dl+"&xoaf="+LE+"&hl="+Xr+"&ip="+fZ+"&ipbits="+LE+"&expire="+Q8+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+fZ+"&key="+Gq+"&kind="+Gq+"&lang="+Xr,name:{simpleText:ku},
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:Fn,title:rb,lengthSeconds:"1155",keywords:[wo,yN,fg,Ql],channelId:nj,isOwnerViewing:!1,shortDescription:AS,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+jc,width:168,height:94},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+
"G&rs="+jc,width:196,height:110},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+g,width:246,height:138},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+g,width:336,height:188},{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:ah,author:la,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:ah,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
cs+"/featured_channel.jpg?v="+gH,width:40,height:40}]},trackingParams:Ya+"=",navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"/channel/"+nj,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:nj}},channelName:la,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Aa}]},subscribed:!1,enabled:!0,type:"FREE",channelId:nj,showPreferences:!1,subscribedButtonText:{runs:[{text:wo}]},unsubscribedButtonText:{runs:[{text:T2}]},
trackingParams:Ya+"=",unsubscribeButtonText:{runs:[{text:Dt}]},serviceEndpoints:[{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[nj],params:gH}},{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Wq,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ya+"=",dialogMessages:[{runs:[{text:AS},
{text:h8},{text:Dt}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Fn}]},serviceEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[nj],params:gH}},accessibility:{label:fg},trackingParams:Ya+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:AS}]},accessibility:{label:Aa},
trackingParams:Ya+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:rb}},unsubscribeAccessibility:{accessibilityData:{label:Dt}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:vs},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[nj],
params:gH}},unsubscribeCommand:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[nj],params:gH}},addToWatchLaterCommand:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Fn,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Fn}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+k+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+rI+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Fn,width:1280,
height:720},title:{simpleText:am},description:{simpleText:wo},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+yN,externalChannelId:nj,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:ah,category:"Travel & Events",publishDate:JS,ownerChannelName:la,uploadDate:JS}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Dt},trackingParams:Ya+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Wq,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Ya+"="}}],headerText:{simpleText:wo},icon:{infoCardIconRenderer:{trackingParams:Ya+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Ya+"="}},trackingParams:Ya+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Ya+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Fn+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:E9,interpreterSafeUrl:(Tl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+uh+".js",Tl),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:T2},{text:gH,bold:!0}]},endpoint:{clickTrackingParams:Wq,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:Ya+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:ku}]},actionButton:{buttonRenderer:{text:{runs:[{text:Fn}]},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+k,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
k,target:"TARGET_NEW_WINDOW"}},trackingParams:Ya+"="}},trackingParams:Ya+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+t3+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+t3+"=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:ah,endMs:ah,title:{accessibility:{accessibilityData:{label:gG}},simpleText:Ql},metadata:{simpleText:h8},callToAction:{simpleText:T2},dismiss:{simpleText:T2},endpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"/channel/"+nj,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:nj}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:WN}]},subscribed:!1,enabled:!0,type:"FREE",channelId:nj,showPreferences:!1,
subscribedButtonText:{runs:[{text:gH}]},unsubscribedButtonText:{runs:[{text:Ql}]},trackingParams:Ya+"=",unsubscribeButtonText:{runs:[{text:AS}]},serviceEndpoints:[{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[nj],params:gH}},{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Wq,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ya+
"=",dialogMessages:[{runs:[{text:Fn},{text:Ql},{text:Dt}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:la}]},serviceEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[nj],params:gH}},accessibility:{label:AS},trackingParams:Ya+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:gG}]},
accessibility:{label:fg},trackingParams:Ya+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:yN}},unsubscribeAccessibility:{accessibilityData:{label:Ql}}}},trackingParams:Ya+"=",isSubscribe:!0,id:mA}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+g,width:168,height:94},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+jc,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+g,width:246,height:138},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+rI+"G&rs="+g,width:336,height:188},{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:ah,endMs:ah,title:{accessibility:{accessibilityData:{label:h8}},simpleText:AS},metadata:{simpleText:Dt},endpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Fn,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Fn,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+lb+".googlevideo.com/videoplayback?source=youtube&oeis="+LE+"&c=WEB&oad="+dV+"&ovd="+dV+"&oaad="+hS+"&oavd="+hS+"&ocs="+oN+"&oewis="+LE+"&oputc="+LE+"&ofpcc="+LE+"&siu="+LE+"&msp="+LE+"&odepv="+LE+
"&id=o-AF"+$U+"&ip="+fZ+"&initcwndbps="+ah+"&mt="+Q8+"&oweuc="+Zg}}}}},trackingParams:Ya+"=",id:mA,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Fn}},simpleText:ku},style:"DEFAULT"}}]}}],startMs:ah,trackingParams:Ya+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:LE,offsetEndMilliseconds:hS},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";ord="+Q8+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+oN+";dc_sk="+LE+";dc_ctype="+y8+";dc_ref=http://www.youtube.com/video/"+Fn+";dc_pubid="+LE+";dc_btype=23?gclid="+yo+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+LE+"&ns="+LE+"&event="+LE+"&device="+LE+"&content_v="+k+"&el="+WN+"&ei="+S+"&devicever="+V+"&bti="+ah+"&format="+bh+"&break_type="+LE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+LE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+fZ+"&slot_pos="+LE+"&slot_len="+LE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Ws+"&ad_len="+hS+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Fn+"&aqi="+S+"&ad_rmp="+LE+"&sli="+LE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+
";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+ah+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&ctype="+oN+"&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"+
T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_engaged_view&ctype="+oN+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+Ed+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+qj+"&ad_cpn=[AD_CPN]&id="+Aa+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Aa+"&dc_pubid="+LE+"&dc_exteid="+mA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+qj+"&ad_cpn=[AD_CPN]&id="+Aa+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+LE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Aa+"&avm="+LE+"&dc_pubid="+LE+"&dc_exteid="+
mA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
d+"&sig="+qj+"&ad_cpn=[AD_CPN]&id="+Aa+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+LE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Aa+"&dc_pubid="+LE+"&dc_exteid="+mA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Wq,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+
oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ya+"="},trackingParams:Ya+
"=",templatedCountdown:{templatedAdText:{text:T2,isTemplated:!0,trackingParams:Ya+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ku,isTemplated:!1,trackingParams:Ya+"="},trackingParams:Ya+"="}},trackingParams:Ya+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ya+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:T2},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ya+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:WN,isTemplated:!1,trackingParams:Ya+"="},trackingParams:Ya+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:gG,isTemplated:!0,trackingParams:Ya+"="}},trackingParams:Ya+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Wq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Zr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+Xr+"&origin=www.youtube.com&ata_theme="+am,Zr),trackingParams:Ya+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Ya+"="}},hoverText:{runs:[{text:rb}]},trackingParams:Ya+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bM+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ya+"="},headline:{text:am,isTemplated:!1,trackingParams:Ya+"="},description:{text:WN,
trackingParams:Ya+"="},actionButton:{buttonRenderer:{text:{simpleText:h8},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ya+"="}},startMs:LE,trackingParams:Ya+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:h8},elementId:h8}},elementId:yN,trackingParams:Ya+"=",legacyInfoCardVastExtension:gH,sodarExtensionData:{siub:rb,bgub:Aa,scs:Dt,bgp:WN},externalVideoId:Fn,adLayoutLoggingData:{serializedAdServingDataEntry:la},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bM+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ya+"="},
headline:{text:la,isTemplated:!1,trackingParams:Ya+"="},description:{text:Dt,isTemplated:!1,trackingParams:Ya+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:fg},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+
mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+
LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ya+"="}},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+
dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+
c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ya+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ya+"="},abandonCommands:{commands:[{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+
LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Wq,commandExecutorCommand:{commands:[{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:fg,isTemplated:!1,trackingParams:Ya+
"="},trackingParams:Ya+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:T2},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+ah+";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="+dl+";dc_trk_cid="+dl+";ord="+Q8+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+oN+";dc_sk="+LE+";dc_ctype="+y8+";dc_ref=http://www.youtube.com/video/"+Fn+";dc_pubid="+LE+";dc_btype=23?gclid="+yo+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+LE+"&ns="+LE+"&event="+LE+"&device="+LE+"&content_v="+k+"&el="+WN+"&ei="+S+"&devicever="+V+"&bti="+ah+"&format="+bh+"&break_type="+LE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+LE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+fZ+"&slot_pos="+LE+"&slot_len="+LE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Ws+"&ad_len="+hS+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Fn+"&aqi="+S+"&ad_rmp="+LE+"&sli="+LE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+
a+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+ah+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&ctype="+oN+"&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"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_engaged_view&ctype="+oN+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+qj+"&ad_cpn=[AD_CPN]&id="+
Aa+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Aa+"&dc_pubid="+LE+"&dc_exteid="+mA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+
"&sig="+qj+"&ad_cpn=[AD_CPN]&id="+Aa+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+LE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Aa+"&avm="+LE+"&dc_pubid="+LE+"&dc_exteid="+mA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+qj+"&ad_cpn=[AD_CPN]&id="+Aa+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+LE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Aa+"&dc_pubid="+LE+"&dc_exteid="+mA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+
oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ya+"="},trackingParams:Ya+"=",templatedCountdown:{templatedAdText:{text:yN,isTemplated:!0,trackingParams:Ya+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:WN,isTemplated:!1,trackingParams:Ya+"="},trackingParams:Ya+"="}},
trackingParams:Ya+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ya+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:gG},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Aa,isTemplated:!1,trackingParams:Ya+"="},trackingParams:Ya+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:la,
isTemplated:!0,trackingParams:Ya+"="}},trackingParams:Ya+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Wq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(R4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+Xr+"&origin=www.youtube.com&ata_theme="+am,R4),trackingParams:Ya+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Ya+"="}},hoverText:{runs:[{text:WN}]},trackingParams:Ya+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+h3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ya+"="},headline:{text:AS,isTemplated:!1,trackingParams:Ya+"="},description:{text:AS,trackingParams:Ya+"="},actionButton:{buttonRenderer:{text:{simpleText:la},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ya+"="}},startMs:LE,trackingParams:Ya+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gH},elementId:Aa}},elementId:T2,trackingParams:Ya+"=",legacyInfoCardVastExtension:wo,sodarExtensionData:{siub:T2,bgub:yN,scs:AS,bgp:h8},externalVideoId:Fn,adLayoutLoggingData:{serializedAdServingDataEntry:AS},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+h3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ya+"="},headline:{text:la,
isTemplated:!1,trackingParams:Ya+"="},description:{text:WN,isTemplated:!1,trackingParams:Ya+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Aa},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ya+"="}},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+
LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ya+"="},abandonCommands:{commands:[{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+y8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Wq,commandExecutorCommand:{commands:[{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:T2,isTemplated:!1,trackingParams:Ya+"="},trackingParams:Ya+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:wo},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+LE+";dc_exteid="+mA+";met="+LE+";ecn"+LE+"="+LE+";etm1="+LE+";eid1="+
ah+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:yN}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ql}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hS,offsetEndMilliseconds:bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+y8+"&token=ALHj"+u+"&index="+LE+"&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="+hS}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wo}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:bh,offsetEndMilliseconds:bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+oN+"&token=ALHj"+u+"&index="+LE+"&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="+bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:bh,offsetEndMilliseconds:bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+oN+"&token=ALHj"+u+"&index="+LE+"&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="+bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ku}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:bh,offsetEndMilliseconds:bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+oN+"&token=ALHj"+u+"&index="+LE+"&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="+bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:bh,offsetEndMilliseconds:y8},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+oN+"&token=ALHj"+u+"&index="+LE+"&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="+bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:y8,offsetEndMilliseconds:y8},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+y8+"&token=ALHj"+u+"&index="+LE+"&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="+y8}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ql}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:h8,isTemplated:!1,trackingParams:Ya+"="},description:{text:Fn,isTemplated:!1,trackingParams:Ya+"="},actionButton:{buttonRenderer:{text:{simpleText:am},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bM+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Ya+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+OB+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ya+"="},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+
";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Wq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(hX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+Xr+"&origin=www.youtube.com&ata_theme="+am,hX),trackingParams:Ya+"="}},popupType:"DIALOG"}},trackingParams:Ya+"="}},hoverText:{runs:[{text:wo}]},trackingParams:Ya+"="}},adVideoId:Fn,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:yN},associatedCompositePlayerBytesLayoutId:yN}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:WN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Fn,isTemplated:!1,trackingParams:Ya+"="},description:{text:wo,isTemplated:!1,trackingParams:Ya+"="},actionButton:{buttonRenderer:{text:{simpleText:la},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+
c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ya+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+h3+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ya+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qe+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ya+"="},navigationEndpoint:{clickTrackingParams:Wq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+
LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Wq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(nY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+Xr+"&origin=www.youtube.com&ata_theme="+am,nY),trackingParams:Ya+"="}},popupType:"DIALOG"}},trackingParams:Ya+"="}},
hoverText:{runs:[{text:Aa}]},trackingParams:Ya+"="}},adVideoId:Fn,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+Fn+"&cid="+a+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:yN},associatedCompositePlayerBytesLayoutId:yN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:la}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:yN,
isTemplated:!1,trackingParams:Ya+"="},description:{text:la,isTemplated:!1,trackingParams:Ya+"="},actionButton:{buttonRenderer:{text:{simpleText:gG},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+
y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+
g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ya+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bM+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ya+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+OB+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ya+
"="},navigationEndpoint:{clickTrackingParams:Wq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+dl+";dc_trk_cid="+dl+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+LE+";ord="+dl+";dc_rui="+LE+";dc_exteid="+mA+";dc_av="+LE+";dc_sk="+LE+";dc_ctype="+y8+";dc_pubid="+LE+";dc_btype=3?gclid="+yo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+T+"____________"+c+"AxAA&ase=2&num="+LE+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+MN+"&label=video_click_to_advertiser_site&ctype="+oN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ya+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Wq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Py.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+Xr+"&origin=www.youtube.com&ata_theme="+am,Py),trackingParams:Ya+"="}},popupType:"DIALOG"}},trackingParams:Ya+
"="}},hoverText:{runs:[{text:fg}]},trackingParams:Ya+"="}},adVideoId:Fn,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+T+"____________"+c+"AxAA&sigh="+k+"&cid="+a+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:am},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:yN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:T2}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:uh,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:uh,command:{innertubeCommand:{clickTrackingParams:Wq,ypcGetOfflineUpsellEndpoint:{params:fD}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Ya+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Q8,nanos:R8}}}},w1=JSON.stringify(GE),G6=performance.now()-v;return{objectRepresentation:GE,jsonRepresentation:w1,generationTime:G6}};
iPS=function(v,Q){if(v===Q)return!0;if(!v||!Q||typeof v!==typeof Q)return!1;if(v instanceof Array&&Q instanceof Array){if(v.length!==Q.length)return!1;for(var V=0;V<v.length;V++)if(!iPS(v[V],Q[V]))return!1;return!0}if(typeof v==="object"&&typeof Q==="object"&&v&&Q){for(V in v)if(!(V in Q&&iPS(v[V],Q[V])))return!1;for(var E in Q)if(!(E in v))return!1;return!0}return!1};
_.vH=function(){if(!Ux){Ux=new Mz(new Lsr);var v=_.T_("client_streamz_web_flush_count",-1);v!==-1&&(Ux.invocationLimit=v)}return Ux};
QJ=function(v,Q,V,E){if(v===Q)return!0;if(Array.isArray(v)&&Array.isArray(Q)){if(v.length!==Q.length)return!1;for(var b=0;b<v.length;b++)if(!QJ(v[b],Q[b],V,E))return!1;return!0}if(v instanceof Set||Q instanceof Set){if(v instanceof Set&&Q instanceof Set){if(v.size!==Q.size)return!1;E=_.L(v.values());for(b=E.next();!b.done;b=E.next())if(!Q.has(b.value))return!1;return!0}return!1}if(v instanceof Function){if(E)return!0;v.name===""&&_.ro(Error("Qf"),"ERROR");return!1}if(v instanceof Date&&Q instanceof
Date)return v.getTime()===Q.getTime();if(v instanceof Object&&Q instanceof Object){if(t2r(v)&&t2r(Q))try{return v.equals(Q)}catch(t){_.ro(Error("Rf`"+t),"ERROR")}b=Object.getOwnPropertyNames(v).filter(function(t){return V?v[t]!==void 0:!0});
var F=Object.getOwnPropertyNames(Q).filter(function(t){return V?Q[t]!==void 0:!0});
if(b.length!==F.length)return!1;b=_.L(b);for(F=b.next();!F.done;F=b.next())if(F=F.value,!QJ(v[F],Q[F],V,E))return!1;return!0}return!1};
t2r=function(v){v=Object.getPrototypeOf(v).equals;return v instanceof Function&&v.length===1};
_.ZPo=function(){return _.e(function(v){if(v.nextAddress==1)return pIQ!==2?v.jumpTo(2):v.yield(ezB(),3);v.nextAddress!=2&&(pIQ=v.yieldResult);return v.return(pIQ)})};
_.hzo=function(){return _.e(function(v){if(v.nextAddress==1)return _.Y("ab_pl_man")?PLG!==2?v.jumpTo(2):v.yield(dIb(),3):v.return(1);v.nextAddress!=2&&(PLG=v.yieldResult);return v.return(PLG)})};
kVr=function(){return _.e(function(v){if(v.nextAddress==1)return _.Y("ab_fk_sk_cl")?wIt!==2?v.jumpTo(2):v.yield(A$m(),3):v.return(1);v.nextAddress!=2&&(wIt=v.yieldResult);return v.return(wIt)})};
_.y$o=function(){return _.e(function(v){if(v.nextAddress==1)return _.Y("ab_det_apb_b")?Tq9!==2?v.jumpTo(2):v.yield(YsT(),3):v.return(1);v.nextAddress!=2&&(Tq9=v.yieldResult);return v.return(Tq9)})};
GVm=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.all([_.ZPo(),_.y$o(),_.hzo(),kVr()]),2);if(Q.nextAddress!=3)return c$E()?Q.return(!0):Q.yield(_.fZ0(),3);v=Q.yieldResult;return Q.return(v===0)})};
c$E=function(){var v=!1,Q=function(V,E){CLm.increment(E,V);V===0&&(v=!0)};
Q(_.M2S(),"j.s_");Q(pIQ,"f.i_");Q(Tq9,"a.b_");Q(PLG,"p.m_");Q(wIt,"i.f_");OPQ===2&&(OPQ=_.DIt(RzB));Q(OPQ,"e.h_");_.Y("ks_det_gpbl")||Q(_.nHb(),"p.i_");_.Y("ks_get_o_pp")||Q(_.lZ3(),"g.o_");_.Y("ab_deg_unex_thr")||Q(_.qsZ(),"a.o_");Q(Ss9,"s.t_");_.Y("ab_det_sc_inj_enf")&&Q(_.zz3(),"s.i_");Q(J$Z,"d.p_");Q(_.Nqh(_.VJ),"o.p_");Q(_.xI9()===0?0:_.BqG(),"o.a_");return _.Y("debug_sk_em_precheck")?!0:v};
ssh=function(){var v=[].concat(_.ui(gHE));try{var Q=Ks0();v.push({jsonRepresentation:Q.jsonRepresentation,objectRepresentation:Q.objectRepresentation})}catch(V){v=[].concat(_.ui(gHE))}return v};
uWG=function(){var v=["adPlacements","adSlots"];try{return v.filter(function(){return!0}).length!==v.length?0:1}catch(Q){return 0}};
_.lZ3=function(){if(uWG()===0)return 0;var v=Ks0(),Q=v.objectRepresentation,V=(0,_.gI.unsafeClone)(Q),E=[];if(Q&&typeof Q==="object")for(var b in Q)E.push(b);else return 4;v=v.objectRepresentation.adPlacements;if(!(v&&v.length>0))return 4;try{if(!iPS(E,Object.getOwnPropertyNames(Q)))return 0}catch(F){return 0}return iPS(V,Q)?1:0};
_.Nqh=function(v){if(!v||!v.length||typeof v==="string")return 0;for(var Q=Object.getOwnPropertyNames(Object.prototype),V=0;V<v.length;V++)for(var E=_.$z(v[V]),b=_.L(Q),F=b.next();!F.done;F=b.next())if(E===F.value)return 0;return 1};
js9=function(v){var Q=_.$z(v[1]);if(v[0]===null)return Q;v=v[0];for(var V={},E=0;E<v.length;E++){var b=_.$z(v[E]);if(E===0)V[b]=Q;else{var F={};F[b]=V;V=F}}return V};
_.xI9=function(){for(var v=_.Ep,Q=0;Q<v.length;Q++){var V=js9(v[Q]),E=[];E.push(V);if(E.length===0)return 0}return 1};
_.BqG=function(){for(var v=_.Ep,Q={},V=0;V<v.length;Q={ssW:void 0},V++){var E=[js9(v[V])];Q.ssW=[];E.forEach(function(b){return function(F){b.ssW[b.ssW.length]=F}}(Q));
if(Q.ssW.length===0)return 0}return 1};
_.M2S=function(){for(var v=_.L(ssh()),Q=v.next();!Q.done;Q=v.next()){var V=Q.value;Q=V.jsonRepresentation;V=V.objectRepresentation;try{var E=JSON.parse(Q);if(!QJ(E,V,!1,!1))return 0}catch(b){return 0}}return 1};
_.zz3=function(){try{var v=_.c5("ab_det_sc_inj_val");v.length===1&&v[0]===""&&(v=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var Q=document.querySelectorAll("script"),V=_.L(Q),E=V.next();!E.done;E=V.next())for(var b=E.value,F=_.L(v),t=F.next();!t.done;t=F.next()){var p=t.value;Q=void 0;if((Q=b.textContent)==null?0:Q.includes(p))return 0}}catch(Z){return 4}return 1};
_.fZ0=function(){var v,Q,V,E,b,F,t;return _.e(function(p){switch(p.nextAddress){case 1:_.GC(p,2),v=_.L(gHE),Q=v.next();case 4:if(Q.done)return p.return(1);E=V=Q.value;b=E.jsonRepresentation;F=E.objectRepresentation;return p.yield((new Response(b,{status:200})).json(),7);case 7:t=p.yieldResult;if(!QJ(t,F,!1,!1))return p.return(0);Q=v.next();p.jumpTo(4);break;case 2:return _.n$(p),p.return(4)}})};
_.qsZ=function(){try{btoa("abc")}catch(v){return 0}return 1};
ezB=function(){var v,Q,V,E,b,F,t,p,Z,d,w;return _.e(function(A){switch(A.nextAddress){case 1:_.GC(A,2),v=_.L(ssh()),Q=v.next();case 4:if(Q.done)return A.return(1);E=V=Q.value;b=E.jsonRepresentation;F=E.objectRepresentation;t=btoa(b);p="data:application/json;base64,"+t;Z=new Request(p);Object.defineProperty(Z,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(Z,"method",{get:function(){return"POST"}});
Object.defineProperty(Z,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(Z,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(Z,"body",{get:function(){return new ReadableStream}});
return A.yield(fetch(Z),7);case 7:return d=A.yieldResult,A.yield(d.json(),8);case 8:w=A.yieldResult;if(!QJ(w,F,!1,!1))return A.return(0);Q=v.next();A.jumpTo(4);break;case 2:return _.n$(A),A.return(4)}})};
_.DIt=function(v){if(!v||!v.length||typeof v==="string")return 0;for(var Q=function(b){return _.$z(b)},V=2,E=0;E<v.length&&(V=_.WsS(_.bPS(v[E],Q)),V!==0);E++);
return V};
_.WsS=function(v){var Q=_.L(v);v=Q.next().value;Q=Q.next().value;try{var V=document.createElement("div");document.body.appendChild(V);var E=getComputedStyle(V).display;document.body.removeChild(V);if(E==="none")return 4;var b=getComputedStyle(Q).display==="none"?0:1;document.body.removeChild(v);return b}catch(F){return 4}};
A$m=function(){var v,Q,V;return _.e(function(E){v=new _.bK;Q=document.createElement("button");Q.classList.add("ytp-ad-skip-button");Q.style.opacity="0";Q.style.height="0px";Q.style.width="0px";Q.style.padding="0px";Q.style.border="none";V=function(){Q.parentElement&&Q.parentElement.removeChild(Q)};
Q.onclick=function(){v.resolve(0);V()};
document.body.appendChild(Q);setTimeout(function(){V();v.resolve(1)},50);
return E.return(v.promise)})};
dIb=function(){var v,Q,V,E,b,F,t;return _.e(function(p){v=new _.bK;Q=document.createElement("ytd-player");try{document.body.prepend(Q)}catch(Z){return p.return(4)}V=function(){Q.parentElement&&Q.parentElement.removeChild(Q)};
Q.getElementsByTagName("div").length>0?E=Q.getElementsByTagName("div")[0]:(E=document.createElement("div"),Q.appendChild(E));b=document.createElement("div");E.appendChild(b);F=document.createElement("video");t=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});F.src=_.Bq(_.XI(t));F.ontimeupdate=function(){V();v.resolve(0)};
b.appendChild(F);F.classList.add("html5-main-video");setTimeout(function(){b.classList.add("ad-interrupting")},200);
setTimeout(function(){V();v.resolve(1)},5E3);
return p.return(v.promise)})};
oH9=function(v){var Q=Ks0().objectRepresentation.playbackTracking;if(Q){var V=[],E;V.push(Q==null?void 0:(E=Q.videostatsPlaybackUrl)==null?void 0:E.baseUrl);var b;V.push(Q==null?void 0:(b=Q.videostatsDelayplayUrl)==null?void 0:b.baseUrl);var F;V.push(Q==null?void 0:(F=Q.videostatsWatchtimeUrl)==null?void 0:F.baseUrl);var t;V.push(Q==null?void 0:(t=Q.ptrackingUrl)==null?void 0:t.baseUrl);var p;V.push(Q==null?void 0:(p=Q.qoeUrl)==null?void 0:p.baseUrl);var Z;V.push(Q==null?void 0:(Z=Q.atrUrl)==null?
void 0:Z.baseUrl);Q=_.L(V);for(V=Q.next();!V.done;V=Q.next())if((V=V.value)&&v.test(V))return V.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
XI9=function(v,Q){var V,E;return _.e(function(b){switch(b.nextAddress){case 1:V=[],E=0;case 2:if(!(E<3)){b.jumpTo(4);break}return b.yield(fetch(v,{cache:"no-store",method:Q}).then(function(F){V.push(F.status)}).catch(function(){V.push(-1)}),3);
case 3:E++;b.jumpTo(2);break;case 4:return b.return(V)}})};
aZb=function(v){return v.domainLookupStart===0&&v.domainLookupEnd===0&&v.connectStart===0&&v.connectEnd===0||v.duration===0};
r$b=function(v,Q,V){V=V===void 0?"GET":V;var E,b,F,t,p,Z,d,w,A,k;return _.e(function(T){if(T.nextAddress==1)return T.yield(Promise.all([XI9(v,V),XI9(Q,V)]),2);E=T.yieldResult;b=_.L(E);F=b.next().value;t=b.next().value;p=F;Z=t;if(Math.min.apply(Math,_.ui(Z))!==Math.max.apply(Math,_.ui(Z))||Math.min.apply(Math,_.ui(p))!==Math.max.apply(Math,_.ui(p)))return T.return(2);if(Math.min.apply(Math,_.ui(Z))===Math.min.apply(Math,_.ui(p)))return T.return(1);w=(d=performance.getEntriesByName(v))==null?void 0:
d[0];k=(A=performance.getEntriesByName(Q))==null?void 0:A[0];return w&&k?aZb(k)?T.return(1):aZb(w)?T.return(0):T.return(1):T.return(2)})};
YsT=function(){var v;return _.e(function(Q){var V=[];var E;var b,F,t;(b=E=(b=Ks0().objectRepresentation.streamingData)==null?void 0:(F=b.formats)==null?void 0:(t=F[0])==null?void 0:t.url)&&b&&!E.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(b=b.replace("initcwndbps","ctier=L&initcwndbps"),b=b.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),E={testUrl:b,baseUrl:E,method:"GET"}):E=void 0;E&&V.push(E);_.Y("ab_net_tp_e")&&V.push({testUrl:_.bb.location.origin+"/ad_companion",baseUrl:_.bb.location.origin+
"/generate_204",method:"OPTIONS"});_.Y("ab_fix_creator_view_cnt")&&(V.length=0,(E=oH9(/api\/stats\/atr/))&&V.push({testUrl:_.bb.location.origin+E,baseUrl:_.bb.location.origin+"/generate_204",method:"POST"}));_.Y("ad_net_pb_pbp")&&(E=oH9(/api\/stats\/qoe/))&&V.push({testUrl:_.bb.location.origin+E,baseUrl:_.bb.location.origin+"/feed/download",method:"GET"});V=V.length!==0?V[Math.floor(Math.random()*V.length)]:void 0;return(v=V)?Q.return(r$b(v.testUrl,v.baseUrl,v.method)):Q.return(4)})};
_.nHb=function(){if(_.bb.ren===void 0||_.bb.ren===null||typeof _.bb.ren!=="function")return 2;try{return _.bb.ren()===!0?0:1}catch(v){return 0}};
$IT=function(v){switch(v){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.rV(v,"unknown result type")}};
_.IZ0=function(v,Q){var V=Number(_.r7("CATSTAT",0));if(Q.pwW===void 0)return V;Q=Q.pwW;v=$IT(v);return V&~(3<<Q)|v<<Q};
HP0=function(v){var Q,V;if((v=(Q=v.auxiliaryUi)==null?void 0:(V=Q.messageRenderers)==null?void 0:V.bkaEnforcementMessageViewModel)&&v.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return v};
UI9=function(){for(var v=_.L(Object.values(_.mI0)),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.vn0&&Q.pwW&&_.aS("CATSTAT",_.IZ0(2,Q))};
_.iK=function(v,Q){v=_.Fp("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",v);(Q===void 0?0:Q)?_.vOQ(v,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.KF().logFlowEvent(v,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Vsh=function(){if(!QVr){if(Polymer.Base){var v=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{v.apply(this,arguments)}catch(A){_.Ui(A)}};
var Q=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{Q.apply(this,arguments)}catch(A){_.Ui(A)}};
var V=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{V.apply(this,arguments)}catch(A){_.Ui(A)}};
var E=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{E.apply(this,arguments)}catch(A){_.Ui(A)}};
var b=Polymer.Base._listen,F=new WeakMap;Polymer.Base._listen=function(A,k,T){var c=function(){try{T.apply(this,arguments)}catch(C){_.Ui(C)}};
F.set(T,c);b.call(this,A,k,c)};
var t=Polymer.Base._unlisten;Polymer.Base._unlisten=function(A,k,T){t.call(this,A,k,F.get(T))}}if(Polymer.Async){var p=Polymer.Async,Z=p._atEndOfMicrotask;
p._atEndOfMicrotask=function(){try{Z.apply(p,arguments)}catch(A){_.Ui(A)}}}if(Polymer.RenderStatus){var d=Polymer.RenderStatus,w=d.afterNextRender;
d.afterNextRender=function(A,k,T){w.call(d,A,function(){try{k.apply(this,arguments)}catch(c){_.Ui(c)}},T)}}QVr=!0}};
_.b5E=function(v){var Q=v?_.OG(v):"";if(Q){if(Q.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(Q.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(Q.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(Q.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(Q.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.Y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Q.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";Q=Q.toLowerCase();if(Q==="/")return"home";if(Q==="/channel_memberships")return"channel-memberships-shopfront";if(Q.indexOf("/feed/trending")===0)return"trending";if(Q.indexOf("/feed/explore")===0)return"explore";if(Q.indexOf("/live")===0)return"live";if(Q.indexOf("/results")===0)return"search";if(Q.indexOf("/sports")===0)return"sports";if(Q.indexOf("/fashion")===0||Q.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(Q))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(Q))return _.Y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Q.indexOf("/channel/")===0||Q.indexOf("/user/")===0||Q.indexOf("/gaming")===0||Q.indexOf("/post/")===0)return"channel";if(EOr(v))return"show";if(Q==="/playlist"||Q.indexOf("/playlist/")===0||Q==="/view_play_list"||Q.indexOf("/view_play_list/")===0||Q.indexOf("/show/")===0)return"playlist";if(Q==="/companion_canvas")return"companion-canvas";if(Q==="/feed/history"||
Q.indexOf("/feed/history/")===0)return"history";if(Q==="/new")return"labs";if(Q==="/feed/subscriptions")return"subscriptions";if(Q.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(Q==="/history_controls")return"standalone";if(Q.indexOf("/account")===0||Q==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(Q.indexOf("/paid_memberships")===0||Q.indexOf("/refund")===0||Q.indexOf("/purchases")===0||Q.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(Q.indexOf("/product")===
0)return"yts-products";if(Q.indexOf("/premium")===0||Q.indexOf("/musicpremium")===0)return Q.indexOf("/premium/offers")===0||Q.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(Q==="/cart/checkout"||Q==="/cart")return"ypc-checkout";if(Q.indexOf("/reporthistory")===0)return _.Y("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(Q.indexOf("/feed/downloads")===0||Q.indexOf("/redeem")===0)return"browse";if(Q.indexOf("/hashtag")===0)return"hashtag-landing-page";if(Q.indexOf("/handle")===
0)return"handle";if(Q.indexOf("/source")===0)return"audio-pivot";if(Q.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(Q.indexOf("/playables")===0)return"playables";if(Q.indexOf("/create/live/join")===0)return"open-in-app";if(Q.indexOf("/shorts")===0)return"shorts";if(Q.indexOf("/feed/channels")===0)return"subscriptions-channels";var V=v?_.OG(v):"";V&&V.indexOf("/watch")===0&&_.Y("web_watch_enable_learning_journey")?(v=_.Ki(v),v=!!v.list&&v.list.indexOf("LJPP")===0):v=!1;if(v)return"learning_journey_watch";
if(_.Y("enable_new_page_subtypes_for_ai_companion")&&Q==="/feed/courses")return"your-courses"}};
_.LF=function(v){var Q,V;(v=(V=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:V.url)&&(Q=_.b5E(v));return Q};
EOr=function(v){var Q=v?_.OG(v):"";if(!Q)return!1;Q=Q.toLowerCase();return Q.indexOf("/show/")===0||Q.indexOf("/playlist")===0&&(v=_.Ki(v),v.list&&v.list.indexOf("EL")===0)?!0:!1};
eV=function(v){var Q="unknown",V;var E=((V=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:V.webPageType)||"";E?(V=E.toLowerCase(),V.startsWith("web_page_type_")&&(V=V.slice(14))):V=E;V&&Fyr[V.toUpperCase()]?Q=Fyr[V.toUpperCase()]:_.y(v,_.tn)||_.y(v,KyG)?Q="browse":_.y(v,_.pF)?Q="search":_.y(v,_.sn)&&(Q="watch");Q==="watch"&&_.LF(v||null)==="learning_journey_watch"&&(Q="learning_journey_watch");Q==="unknown"&&_.Iy(Error("Tf`"+JSON.stringify({clickTrackingParams:v==null?void 0:v.clickTrackingParams,
commandMetadata:v==null?void 0:v.commandMetadata,allEndpointKeys:Object.keys(v||[])})));return Q};
_.Zl=function(v){if(!_.i5r||v)_.i5r=_.Rb();return _.i5r};
_.Ly3=function(v){return!!_.y(v,_.sn)||!!_.y(v,_.PH)&&_.Y("kevlar_enable_shorts_prefetch")};
_.tsT=function(v,Q){v=_.y(v,_.sn)||_.y(v,_.PH);return"v"+v.videoId+(v.playlistId?"-pl"+v.playlistId:"")+(Q?"-an1":"")+(v.params?"-pr"+v.params:"")};
_.pyE=function(v){var Q=new dH(_.r7("ONE_PICK_URL",""));Q.urlParamMap_.set("hostId",v);(v=_.r7("GAPI_LOCALE"))&&Q.urlParamMap_.set("hl",v);(v=_.r7("SESSION_INDEX"))&&Q.urlParamMap_.set("authuser",v);(v=_.r7("DELEGATED_SESSION_ID"))&&Q.urlParamMap_.set("groupId",v);return Q};
Z5h=function(){var v=_.ht(),Q=v.resolve(_.hn);v=v.resolve(_.wH);return new eWB(Q,v)};
dgB=function(v){if(window.IntersectionObserver)return new PFr(v,400);throw new TypeError("Vf");};
wyr=function(){var v=Hammer.TouchAction,Q=v.prototype.preventDefaults;v.prototype.preventDefaults=function(V){var E=this.actions.indexOf("pan-down")>-1;if(!E)return Q.call(this,V);if(!hW0){var b=V.srcEvent;V=V.direction;var F;if((F=this.manager)==null?0:F.session.prevented)b.preventDefault();else if(E&&V&Hammer.DIRECTION_DOWN)return this.preventSrc(b)}}};
Avo=function(v){if(!v||v.size===0)return Hammer.DIRECTION_ALL;if(v.size===2){if(v.has("up")&&v.has("down"))return Hammer.DIRECTION_VERTICAL;if(v.has("right")&&v.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(v.size===1){if(v.has("up"))return Hammer.DIRECTION_UP;if(v.has("down"))return Hammer.DIRECTION_DOWN;if(v.has("right"))return Hammer.DIRECTION_RIGHT;if(v.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.T_h=function(){return k$0?Promise.resolve(k$0):new Promise(function(v,Q){var V=self.indexedDB.open("swpushnotificationsdb");V.onerror=Q;V.onsuccess=function(){var E=V.result;if(E.objectStoreNames.contains("swpushnotificationsstore"))k$0=E,v(k$0);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.T_h()};
V.onupgradeneeded=Ymh})};
Ymh=function(v){v=v.target.result;v.objectStoreNames.contains("swpushnotificationsstore")&&v.deleteObjectStore("swpushnotificationsstore");v.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.kN=function(v,Q,V){var E=V&&V>0?V:0;V=E?Date.now()+E*1E3:0;if((E=E?_.An.getLocalStorage():_.An.getSessionStorage())&&window.JSON){typeof Q!=="string"&&(Q=JSON.stringify(Q,void 0));try{E.set(v,Q,V)}catch(b){E.remove(v)}}};
_.TA=function(v){var Q=_.An.getSessionStorage(),V=_.An.getLocalStorage();if(!Q&&!V||!window.JSON)return null;try{var E=Q.get(v)}catch(b){}if(typeof E!=="string")try{E=V.get(v)}catch(b){}if(typeof E!=="string")return null;try{E=JSON.parse(E,void 0)}catch(b){}return E};
_.YN=function(v){try{var Q=_.An.getSessionStorage(),V=_.An.getLocalStorage();Q&&Q.remove(v);V&&V.remove(v)}catch(E){}};
cvr=function(v){var Q=yvS(),V;return _.e(function(E){switch(E.nextAddress){case 1:return _.GC(E,2),E.yield(v.match(Q,{cacheName:"yt-appshell-assets"}),4);case 4:V=E.yieldResult;_.FT(E,3);break;case 2:_.n$(E);case 3:return E.return(V)}})};
yvS=function(){var v=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?frh.registration.scope:G$o;v.endsWith("/")&&(v=v.slice(0,-1));return v+"/app_shell_home"};
CF9=function(v){v.map(function(Q){return Q.source}).join("|")};
_.Msh=function(v){return _.e(function(Q){return Q.return(cvr(v))})};
O5E=function(){var v=window.caches,Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(_.Msh(v),2);Q=V.yieldResult;return V.return(!!Q)})};
zWt=function(){_.e(function(v){if(v.nextAddress==1){if(Dgh)return v.jumpTo(0);Dgh=!0;if(_.Y("enable_system_health_primes_monitoring"))return _.Ci(RWG,3E4),nOT(),v.return();if(!(Math.random()<_.T_("web_system_health_fraction")))return v.jumpTo(0);lrQ={heightPixels:screen.height,widthPixels:screen.width};yJ&&!isNaN(yJ.jsHeapSizeLimit)&&(lrQ.memoryTotalKbytes=String(Math.round(yJ.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(lrQ.devicePixelRatio=window.devicePixelRatio);return v.yield(qmo(),4)}_.Ci(RWG,
3E4);return v.yield(SmT(),0)})};
qmo=function(){return _.e(function(v){if(v.nextAddress==1)return cH.intersectionObserverPresent="IntersectionObserver"in window,cH.serviceWorkerPresent="serviceWorker"in navigator,cH.webSharePresent="share"in navigator,cH.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,cH.cacheStoragePresent="caches"in window,cH.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,cH.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
cH.webkitTemporaryStoragePresent="webkitTemporaryStorage"in fF&&fF.webkitTemporaryStorage&&"queryUsageAndQuota"in fF.webkitTemporaryStorage,cH.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",v.yield(h6b(),2);cH.indexedDbPresent=v.yieldResult;cH.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;cH.broadcastChannelPresent="BroadcastChannel"in window;cH.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(cH.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,cH.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.q1(v)})};
RWG=function(){var v=9E4+Math.random()*2E3;_.kh()>v||(_.Y("enable_system_health_primes_monitoring")?nOT():SmT())};
SmT=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(Jv9(),2);v=Q.yieldResult;_.X0("systemHealthCaptured",v);_.q1(Q)})};
nOT=function(){var v={metric:{}},Q=N_r();Q.networkEvents.length&&(v.metric.networkEvents=xg9(Q));_.X0("systemHealthCaptured",v)};
Jv9=function(){var v,Q,V,E,b,F,t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:v={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};Q=window.screen;_.Y("enable_is_extended_monitoring")&&Q&&"isExtended"in Q&&(v.isExtended=!!Q.isExtended);V={metric:{staticContext:lrQ,dynamicContext:v,webMetric:B_h,webApiSupport:cH}};
if(E=_.Mo())V.csn=E;yJ&&(V.metric.webMetric.currentHeapKbytes=Math.round(yJ.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 fF&&typeof fF.getBattery==="function")){w.jumpTo(2);break}return w.yield(fF.getBattery(),3);case 3:if(b=
w.yieldResult)V.metric.dynamicContext.chargingStatus=b.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(V.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(cH.storageEstimatePresent)return w.yield(navigator.storage.estimate(),8);if(!cH.webkitTemporaryStoragePresent){w.jumpTo(5);break}return w.yield(gOh(),7);case 7:F=w.yieldResult;w.jumpTo(5);break;case 8:F=w.yieldResult;case 5:return V.metric.dynamicContext.deviceStorageQuotaMbytes=((t=F)==null?0:t.quota)?String(Math.round(F.quota/
1048576/10)*10):"-1",V.metric.dynamicContext.deviceStorageUsageMbytes=((p=F)==null?0:p.usage)?String(Math.round(F.usage/1048576/10)*10):"-1",Z=V.metric.dynamicContext,w.yield(O5E(),9);case 9:return Z.hasAppShell=w.yieldResult,d=N_r(),d.networkEvents.length&&(V.metric.networkEvents=xg9(d)),w.return(V)}})};
gOh=function(){return new Promise(function(v){var Q;cH.webkitTemporaryStoragePresent&&(Q=fF.webkitTemporaryStorage)!=null&&Q.queryUsageAndQuota?fF.webkitTemporaryStorage.queryUsageAndQuota(function(V,E){v({usage:V,quota:E})}):v(void 0)})};
_.GA=function(v){v&=16777215;v=[(v&16711680)>>16,(v&65280)>>8,v&255];return sV9(v[0],v[1],v[2])};
_.CF=function(v){v=[(v&16711680)>>>16,(v&65280)>>>8,v&255,(v&4278190080)>>>24];if(!_.u3b(v,function(Q){return Q===(Q&255)}))throw Error("Wf`"+v.join(","));
return"rgba("+v[0]+","+v[1]+","+v[2]+","+(v[3]/255).toFixed(3)+")"};
_.jVt=function(v){return[(v&16711680)>>>16,(v&65280)>>>8,v&255]};
_.Wyo=function(v){v=v.map(function(Q){Q/=255;return Q<=.03928?Q/12.92:Math.pow((Q+.05)/1.05,2.4)});
return v[0]*.2126+v[1]*.7152+v[2]*.0722};
M2=function(v,Q){v=_.jVt(v);return"rgba("+v[0]+", "+v[1]+", "+v[2]+", "+Q+")"};
Op=function(v){return(v&4278190080)>>>24===0?M2(v,"1"):_.CF(v)};
_.oOb=function(){try{return!!self.localStorage}catch(v){return!1}};
$gh=function(){if(XyZ())_.Iy(Error("Xf"));else{var v=document.createElement("iframe");v.style.display="none";var Q=Q===void 0?window.location.href:Q;var V=_.ae(_.r7("PERSIST_IDENTITY_IFRAME_URL"));Q=V?V:(new URL(Q)).host.indexOf("studio")===0?_.Ad(arb,"persist_identity"):_.Ad(rvr,"persist_identity");_.QN(v,1,Q);v.id="persist_identity";var E;(E=document.body)==null||E.appendChild(v)}};
XyZ=function(){var v=Ir0;v||(v=document.querySelector("#persist_identity"));return v};
H5b=function(){var v=!1;try{v=!!window.sessionStorage.getItem("session_logininfo")}catch(Q){v=!0}return(_.r7("INNERTUBE_CLIENT_NAME")==="WEB"||_.r7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&v};
mgr=function(v,Q){if(!H5b())return!1;Q||(Q=_.r7("LOGIN_INFO"));return Q?(v.session_logininfo=Q,!0):!1};
vqE=function(v,Q){v=v===void 0?!1:v;if((Q===void 0||!Q)&&UgQ!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.mX("LOG_STICKINESS",!1)){Q=_.Mo();var V=_.CC(),E={identityStickinessData:{initialState:UgQ}};Q&&V&&_.Wp(Q,V,E)}if(Q=XyZ())if(V=Q.src?(new URL(Q.src)).origin:"*",v){var b;(b=Q.contentWindow)==null||b.postMessage({action:"clear"},V)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(v=window.sessionStorage.getItem("session_logininfo"))){var F;(F=Q.contentWindow)==null||F.postMessage({loginInfo:v},V)}};
_.Dl=function(v){v=v===void 0?!0:v;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.aS("LOGIN_INFO",""),v&&window.sessionStorage.setItem("from_switch_account","1"),vqE(!0,v)}catch(Q){}};
Qnr=function(v){v&&(v.startsWith("https://accounts.google.com/AddSession")?_.Dl():v.startsWith("https://accounts.google.com/ServiceLogin")?_.Dl():v.startsWith("https://myaccount.google.com")&&_.vR(v).getPath().endsWith("/youtubeoptions")&&_.Dl())};
RO=function(v,Q){Qnr(v);if(_.mX("LOGGED_IN",!0)&&H5b()){var V=IbE(v);V==null&&(V={});mgr(V,Q)&&_.ox(v,V)}};
Vnm=function(){function v(Q){for(Q=Q.target;Q&&Q.nodeName!=="A";)if(Q=Q.parentNode,!(Q&&Q instanceof HTMLElement))return;if(Q&&!Q.hasAttribute("download")&&Q.getAttribute("rel")!=="external"&&Q.href)return Q.href}
document.addEventListener("mousedown",function(Q){Q.button!==0&&(Q=v(Q))&&RO(Q)});
document.addEventListener("click",function(Q){(Q=v(Q))&&RO(Q)})};
FMB=function(){var v=new Eqr;try{if(_.mX("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(p){v.increment(5,!1);return}if(_.r7("LOGIN_INFO")){var Q=bTB?bTB:window.location;_.r7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&$gh();var V=IbE(Q.href);V==null&&(V={});var E=V.session_logininfo,b=Number(window.sessionStorage.getItem("stickiness_reload")),F=E===_.r7("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
b>=2||F)b>=2?v.increment(2,F):F?v.increment(7,F):window.sessionStorage.getItem("session_logininfo")||(v.increment(3,F),UgQ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.r7("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.r7("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))v.increment(4,F),window.sessionStorage.removeItem("stickiness_reload");
else if(b<2){window.sessionStorage.setItem("stickiness_reload",String(b+1));var t=Q.href;t=_.Xy(t,"sttick");RO(t,window.sessionStorage.getItem("session_logininfo"));t=_.iv(t,{sttick:b});v.increment(b,F);_.kCb(Q,t)}}else v.increment(6,!1)}else _.Dl(!1)}catch(p){}};
_.nF=function(v,Q,V,E,b){Q=Q===void 0?{}:Q;V=V===void 0?"":V;E=E===void 0?window:E;v=_.Li(v,Q);RO(v);V=_.oE(v+V,b);_.kCb(E.location,V)};
KMB=function(v){if(v.urlEndpoint){if(v=_.Ki(v.urlEndpoint.url),v.adurl)return P5(v.adurl)}else if(v.watchEndpoint)return"//www.youtube.com/watch?v="+v.watchEndpoint.videoId;return null};
iTb=function(v){if(!v||!v.reportingPings)return null;var Q={};v.reportingPings.forEach(function(V){V.pingType in Q?Q[V.pingType].push(V.url):Q[V.pingType]=[V.url]});
return{adpings:uym(Q)}};
_.q2=function(v){v=v===void 0?!1:v;var Q=_.eP(),V="USER_INTERFACE_THEME_LIGHT";Q.getFlag(165)?V="USER_INTERFACE_THEME_DARK":Q.getFlag(174)?V="USER_INTERFACE_THEME_LIGHT":_.lK()&&(V="USER_INTERFACE_THEME_DARK");return v?V:LMB()||V};
_.tnG=function(){return!_.Y("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.lK=function(){return _.tnG()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.SV=function(){var v=_.eP();return _.tnG()&&!v.getFlag(165)&&!v.getFlag(174)};
LMB=function(){var v=v===void 0?window.location.href:v;if(_.Y("kevlar_disable_theme_param"))return null;var Q=_.OG(v);if(_.pbT(Q))return"USER_INTERFACE_THEME_DARK";try{var V=_.Ki(v).theme;return eFZ.get(V)||null}catch(E){}return null};
_.pbT=function(v){return _.Y("enable_dark_theme_only_on_shorts")?!(v==null||!v.startsWith("/shorts/")):!1};
_.dh9=function(v,Q,V,E,b){Q=Q===void 0?!1:Q;V=V===void 0?!1:V;var F=_.r7("INNERTUBE_CONTEXT");if(!F)return _.ro(Error("ag")),{};F=(0,_.gI.unsafeClone)(F);_.Y("web_no_tracking_params_in_shell_killswitch")||delete F.clickTracking;F.client||(F.client={});var t=F.client;t.clientName==="MWEB"&&t.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(t.clientFormFactor=_.r7("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");t.screenWidthPoints=window.innerWidth;t.screenHeightPoints=window.innerHeight;t.screenPixelDensity=
Math.round(window.devicePixelRatio||1);t.screenDensityFloat=window.devicePixelRatio||1;t.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());t.userInterfaceTheme=_.q2();if(!Q){var p=_.xpB();p&&(t.connectionType=p);_.Y("web_log_effective_connection_type")&&(p=g7b())&&(F.client.effectiveConnectionType=p)}var Z;if(_.Y("web_log_memory_total_kbytes")&&((Z=_.bb.navigator)==null?0:Z.deviceMemory)){var d;Z=(d=_.bb.navigator)==null?void 0:d.deviceMemory;F.client.memoryTotalKbytes=""+Z*1E6}Q&&E&&!_.Y("web_it_context_set_original_url_ks")&&
(t.originalUrl=ZTZ(_.bb.location.href,E).toString());_.Y("web_gcf_hashes_innertube")&&(p=Ii0())&&(d=p.coldConfigData,Z=p.coldHashData,p=p.hotHashData,F.client.configInfo=F.client.configInfo||{},d&&(F.client.configInfo.coldConfigData=d),Z&&(F.client.configInfo.coldHashData=Z),p&&(F.client.configInfo.hotHashData=p));d=_.Ki(_.bb.location.href);!_.Y("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(t.internalGeo=d.internalcountrycode);!_.Y("web_populate_client_screen_killswitch")&&b&&(t.clientScreen=
b);t.clientName==="MWEB"||t.clientName==="WEB"?(t.mainAppWebInfo||(t.mainAppWebInfo={}),t.mainAppWebInfo.graftUrl=E||_.bb.location.href,_.Y("kevlar_woffle")&&_.zA.instance&&(E=_.zA.instance,t.mainAppWebInfo.pwaInstallabilityStatus=!E.appInstalledEventFired&&E.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),t.mainAppWebInfo.webDisplayMode=ugT(),t.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):t.clientName==="TVHTML5"&&
(!_.Y("web_lr_app_quality_killswitch")&&(E=_.r7("LIVING_ROOM_APP_QUALITY"))&&(t.tvAppInfo=Object.assign(t.tvAppInfo||{},{appQuality:E})),E=_.r7("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(t.tvAppInfo=Object.assign(t.tvAppInfo||{},{certificationScope:E}));!_.Y("web_populate_time_zone_itc_killswitch")&&(E=Jym())&&(t.timeZone=E);(E=VPZ())?t.experimentsToken=E:delete t.experimentsToken;t=E7h();E=_.PU3();E=(0,_.gI.getValues)(E.tokenJars);F.request=Object.assign({},F.request,{internalExperimentFlags:t,consistencyTokenJars:E});
!_.Y("web_prequest_context_killswitch")&&(t=_.r7("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(F.request.externalPrequestContext=t);E=_.eP();t=E.getFlag(58);E=E.get("gsml","");F.user=Object.assign({},F.user);t&&(F.user.enableSafetyMode=t);E&&(F.user.lockedSafetyMode=!0);_.Y("warm_op_csn_cleanup")?V&&(Q=_.Mo())&&(F.clientScreenNonce=Q):!Q&&(Q=_.Mo())&&(F.clientScreenNonce=Q);v&&(F.clickTracking={clickTrackingParams:v});if(v=_.Q9("yt.mdx.remote.remoteClient_"))F.remoteClient=v;_.Jn.getInstance().setLocationOnInnerTubeContext(F);
try{var w=PIh(),A=w.bid;delete w.bid;F.adSignalsInfo={params:[],bid:A};for(var k=_.L(Object.entries(w)),T=k.next();!T.done;T=k.next()){var c=_.L(T.value),C=c.next().value,R=c.next().value;w=C;A=R;v=void 0;(v=F.adSignalsInfo.params)==null||v.push({key:w,value:""+A})}var l,S;if(((l=F.client)==null?void 0:l.clientName)==="TVHTML5"||((S=F.client)==null?void 0:S.clientName)==="TVHTML5_UNPLUGGED"){var a=_.r7("INNERTUBE_CONTEXT");a.adSignalsInfo&&(F.adSignalsInfo.advertisingId=a.adSignalsInfo.advertisingId,
F.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",F.adSignalsInfo.limitAdTracking=a.adSignalsInfo.limitAdTracking)}}catch(g){_.ro(g)}return F};
_.N2=function(){return{isShellLoad:_.mX("IS_SHELL_LOAD",!1)}};
wbS=function(){navigator.serviceWorker.getRegistrations().then(function(v){v.forEach(hFo)})};
hFo=function(v){v&&_.AkT(kSo,v.scope)};
_.AkT=function(v,Q){Q={scope:Q||_.y9("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Sc(v),Q)};
xN=function(v,Q,V,E){if(Q&&Q.serializedYpcCujLoggingParams){if(V){var b={};b.transactionErrorType=V;E&&(b.errorMessage=E);Q.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:b}}}V={};V.ypcCujContext=Q;v=_.Fp("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",v,V);_.KF().logFlowEvent(v,"FLOW_TYPE_YPC_ACQUISITION")}};
_.TkB=function(v,Q,V,E){var b={};b.serializedTransactionFlowLoggingParams=Q;V&&(b.errorType=V);E&&(b.errorMessage=E);_.X0(v,b);_.ay()};
_.YLo=function(v){v&&_.TkB("transactionFlowStarted",v)};
_.ykG=function(v){v&&_.TkB("transactionFlowCancelled",v)};
_.BH=function(v,Q,V){Q&&_.TkB("transactionFlowFailed",Q,v,V)};
cko=function(v){var Q=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");Q&&(Q.inert=v)};
_.sp=function(){this.megabloxUrl_=null};
_.uK=function(v){try{var Q=f8h==null?void 0:f8h.composedPath(v)}catch(V){Q=v.composedPath?v.composedPath():[]}return Q&&Q.length>0?Q:v.composedPath?v.composedPath():[]};
_.jV=function(v){return _.uK(v)[0]};
WH=function(v){return v instanceof ShadowRoot?ShadowRoot:v instanceof DocumentFragment?DocumentFragment:v instanceof Document?Document:HTMLElement};
GSB=function(v){if(v instanceof Element)return Element.prototype;if(v instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+v);};
CUQ=function(v,Q){return _.Y("sunnydom_native_scoped_query_selectors")?GSB(v).querySelector.call(v,Q):WH(v).prototype.querySelector.call(v,Q)};
Mnr=function(v,Q){return _.Y("sunnydom_native_scoped_query_selectors")?GSB(v).querySelectorAll.call(v,Q):WH(v).prototype.querySelectorAll.call(v,Q)};
OT0=function(v){var Q,V,E;return(E=(V=(Q=v.parentElement)!=null?Q:v.__shady_native_parentElement)!=null?V:v.__shady_parentElement)!=null?E:null};
Dhb=function(v){var Q,V,E;return(E=(V=(Q=v.parentNode)!=null?Q:v.__shady_native_parentNode)!=null?V:v.__shady_parentNode)!=null?E:null};
RFT=function(v){var Q,V,E;return(E=(V=(Q=v.nextSibling)!=null?Q:v.__shady_native_nextSibling)!=null?V:v.__shady_nextSibling)!=null?E:null};
nqT=function(v){var Q,V,E;return(E=(V=(Q=v.previousSibling)!=null?Q:v.__shady_native_previousSibling)!=null?V:v.__shady_previousSibling)!=null?E:null};
l8E=function(v){var Q,V,E;return(E=(V=(Q=v.nextElementSibling)!=null?Q:v.__shady_native_nextElementSibling)!=null?V:v.__shady_nextElementSibling)!=null?E:null};
qLB=function(v){var Q,V,E;return(E=(V=(Q=v.previousElementSibling)!=null?Q:v.__shady_native_previousElementSibling)!=null?V:v.__shady_previousElementSibling)!=null?E:null};
SLo=function(v){var Q,V,E;return new Set([].concat(_.ui((Q=v.children)!=null?Q:[]),_.ui((V=v.__shady_native_children)!=null?V:[]),_.ui((E=v.__shady_children)!=null?E:[])))};
zF3=function(v){var Q,V,E;return new Set([].concat(_.ui((Q=v.childNodes)!=null?Q:[]),_.ui((V=v.__shady_native_childNodes)!=null?V:[]),_.ui((E=v.__shady_childNodes)!=null?E:[])))};
_.oO=function(v){if(!(v instanceof Element))return null;v=v.classList?Array.from(v.classList):void 0;if(!v)return null;var Q=v.indexOf("style-scope");return Q>-1&&Q+1<v.length?v[Q+1]:null};
Xp=function(v){if(!(v instanceof HTMLElement))return null;var Q=v&&(v.$$||v.polymerController)?v.tagName.toLowerCase():null;return Q?Q:_.oO(v)};
Jkh=function(v,Q){return _.Y("sunnydom_native_scoped_query_selectors")?v+".style-scope."+Q:v.replace(/[^a-z]*[^\s]+/g,function(V){return V+".style-scope."+Q})};
NkS=function(v,Q){return Q?v.split(",").map(function(V){return Jkh(V.trim(),Q)}).join(", "):v};
_.aO=function(v){var Q,V,E,b;return(b=(E=(V=(Q=v.root)!=null?Q:v.shadowRoot)!=null?V:v.__shady_native_shadowRoot)!=null?E:v.__shady_shadowRoot)!=null?b:v};
xh0=function(v){var Q,V,E;return(E=(V=(Q=v.__shady_parentNode)!=null?Q:v.__shady_native_parentNode)!=null?V:v.parentNode)!=null?E:null};
BkB=function(v){var Q,V;return(V=(Q=Dhb(v))!=null?Q:v.host)!=null?V:null};
gq9=function(v){for(;v&&!(v instanceof HTMLElement);)v=BkB(v);return v};
snh=function(v){var Q=gq9(v);return v===Q?_.oO(v):Q?Xp(Q):null};
uAE=function(v){return(v=gq9(v))?Xp(v):null};
jnG=function(v){if(v instanceof Comment)return!1;if(v instanceof Text){var Q,V;if(((V=(Q=v.textContent)==null?void 0:Q.trim())!=null?V:"")==="")return!1}return!0};
rH=function(v,Q,V){var E=Q(v);for(V=V===void 0?uAE(v):V;E&&(snh(E)!==V||!jnG(E));)v=E,E=Q(v);return E};
WM9=function(v,Q,V){if(!Q)return null;v=uAE(v);return snh(Q)===v&&jnG(Q)?Q:rH(Q,V,v)};
oqt=function(v){return rH(v,xh0,_.oO(v))};
Xbr=function(v){return rH(v,l8E)};
a8Q=function(v){return rH(v,RFT)};
rko=function(v){return rH(v,qLB)};
$hr=function(v){return rH(v,nqT)};
I8o=function(v){return WM9(v,v.firstChild||null,RFT)};
HT9=function(v){var Q,V,E;var b=(E=(V=(Q=v.firstElementChild)!=null?Q:v.__shady_native_firstElementChild)!=null?V:v.__shady_firstElementChild)!=null?E:null;return WM9(v,b,l8E)};
mhB=function(v){var Q,V,E;var b=(E=(V=(Q=v.lastChild)!=null?Q:v.__shady_native_lastChild)!=null?V:v.__shady_lastChild)!=null?E:null;return WM9(v,b,nqT)};
Uho=function(v){var Q,V,E;var b=(E=(V=(Q=v.lastElementChild)!=null?Q:v.__shady_native_lastElementChild)!=null?V:v.__shady_lastElementChild)!=null?E:null;return WM9(v,b,qLB)};
vCS=function(v){var Q=uAE(v);return Array.from(zF3(v)).filter(function(V){return snh(V)===Q})};
QAZ=function(v){var Q=Xp(v);return Array.from(SLo(v)).filter(function(V){return _.oO(V)===Q})};
VRo=function(v){if(!v)return null;var Q=_.oO(v);if(!Q){var V;return(V=Node.prototype.getRootNode)==null?void 0:V.call(v)}Q=Q.toUpperCase();for(v=OT0(v);v&&v.tagName!==Q;)v=OT0(v);return v?_.aO(v):null};
_.$N=function(v,Q,V){if(v instanceof HTMLElement&&_.oO(v)===V){var E=Array.from(v.classList).indexOf("style-scope");if(E===-1)v.classList.add("style-scope"),v.classList.add(Q);else if(!(E+1>=v.classList.length)){E=v.classList[E+1];var b,F;v==null||(b=v.classList)==null||(F=b.replace)==null||F.call(b,E,Q)}}if(v instanceof HTMLElement||v instanceof DocumentFragment)for(b=_.L(SLo(v)),F=b.next();!F.done;F=b.next())_.$N(F.value,Q,V);return v};
IO=function(v,Q){if(v instanceof HTMLElement&&_.oO(v)===Q){var V=Array.from(v.classList).indexOf("style-scope");V===-1||V+1>=v.classList.length||v.classList.remove("style-scope",v.classList[V+1])}if(v instanceof HTMLElement||v instanceof DocumentFragment){V=_.L(v.children);for(var E=V.next();!E.done;E=V.next())IO(E.value,Q)}return v};
_.ECb=function(v,Q){return WH(v).prototype.appendChild.call(v,Q)};
b0b=function(v,Q){if(v===Q)return!0;v=zF3(v);return Array.from(v).some(function(V){return b0b(V,Q)})};
_.m9=function(v,Q){if(v instanceof HH)return v;(Q==null?0:Q.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(v,"ownerDocument")&&Object.defineProperty(v,"ownerDocument",{get:function(){return window.document}});
return new HH(v)};
KHS=function(){var v=HH.prototype,Q=[].concat(_.ui(FHB?[]:["getRootNode"]),["setAttribute","removeAttribute"]);Q=_.L(Q);for(var V=Q.next(),E={};!V.done;E={method$jscomp$53:void 0},V=Q.next())E.method$jscomp$53=V.value,v[E.method$jscomp$53]=function(b){return function(){return this.host[b.method$jscomp$53].apply(this.host,arguments)}}(E)};
LHG=function(){var v=HH.prototype,Q=[].concat(_.ui(FHB?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ui(i00?[]:["querySelector","querySelectorAll"]));Q=_.L(Q);for(var V=Q.next(),E={};!V.done;E={method$jscomp$54:void 0},V=Q.next())E.method$jscomp$54=V.value,v[E.method$jscomp$54]=function(b){return function(){return this.root[b.method$jscomp$54].apply(this.root,arguments)}}(E)};
ePm=function(){var v=HH.prototype,Q=[].concat(_.ui(tR0?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ui(p8B?[]:["parentNode"]));Q=_.L(Q);for(var V=Q.next(),E={};!V.done;E={prop$jscomp$67:void 0},V=Q.next())E.prop$jscomp$67=V.value,Object.defineProperty(v,E.prop$jscomp$67,{get:function(b){return function(){return this.host[b.prop$jscomp$67]}}(E),
configurable:!0})};
d00=function(){var v=HH.prototype,Q=["activeElement"].concat(_.ui(tR0?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ui(Z0B?[]:["children"]),_.ui(Pl0?[]:["lastChild"]));Q=_.L(Q);for(var V=Q.next(),E={};!V.done;E={prop$jscomp$68:void 0},V=Q.next())E.prop$jscomp$68=V.value,Object.defineProperty(v,E.prop$jscomp$68,{get:function(b){return function(){return this.root[b.prop$jscomp$68]}}(E),
configurable:!0})};
hPo=function(){for(var v=HH.prototype,Q=_.L(["innerHTML","textContent"]),V=Q.next(),E={};!V.done;E={prop$jscomp$69:void 0},V=Q.next())E.prop$jscomp$69=V.value,Object.defineProperty(v,E.prop$jscomp$69,{get:function(b){return function(){return this.root[b.prop$jscomp$69]}}(E),
set:function(b){return function(F){this.root[b.prop$jscomp$69]=F}}(E),
configurable:!0})};
w8h=function(v){var Q=HH.prototype;v=_.L(Object.entries(v));for(var V=v.next(),E={};!V.done;E={fn$jscomp$403:void 0},V=v.next()){var b=_.L(V.value);V=b.next().value;b=b.next().value;E.fn$jscomp$403=b;Q[V]=function(F){return function(){return F.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.ui(arguments)))}}(E)}};
k3G=function(){for(var v=HH.prototype,Q=_.L(Object.entries(AV0)),V=Q.next(),E={};!V.done;E={fn$jscomp$404:void 0},V=Q.next()){var b=_.L(V.value);V=b.next().value;b=b.next().value;E.fn$jscomp$404=b;Object.defineProperty(v,V,{get:function(F){return function(){return F.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.ui(arguments)))}}(E),
configurable:!0})}};
_.Up=function(v){return v instanceof TrB||v instanceof Document?v:new TrB(v)};
YQo=function(){for(var v=TrB.prototype,Q=_.L("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),V=Q.next(),E={};!V.done;E={method$jscomp$55:void 0},V=Q.next())E.method$jscomp$55=V.value,v[E.method$jscomp$55]=function(b){return function(){return HTMLElement.prototype[b.method$jscomp$55].call.apply(HTMLElement.prototype[b.method$jscomp$55],[this.node].concat(_.ui(arguments)))}}(E)};
yVE=function(){for(var v=TrB.prototype,Q=_.L("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),V=Q.next(),E={};!V.done;E={prop$jscomp$70:void 0},V=Q.next())E.prop$jscomp$70=V.value,Object.defineProperty(v,E.prop$jscomp$70,{get:function(b){return function(){var F;return(F=this.node["__shady_native_"+b.prop$jscomp$70])!=null?F:this.node[b.prop$jscomp$70]}}(E),
configurable:!0})};
_.VE=function(v,Q,V){V===void 0&&(V=!v.classList.contains(Q));V?v.classList.add(Q):v.classList.remove(Q)};
_.EJ=function(v,Q,V){V===void 0&&(V=!v.hasAttribute(Q));if(Q==="class")throw Error("fg");V?_.Up(v).setAttribute(Q,""):_.Up(v).removeAttribute(Q)};
cVG=function(v){return(v.localName!=="slot"?[]:(0,_.bf)(v).assignedNodes({flatten:!0})).filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
_.fJZ=function(v){return(v=_.m9(v).querySelector("slot"))&&v.localName==="slot"?cVG(v):[]};
_.F6=function(v,Q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(v,Q)};
Kh=function(v,Q){var V=Q.bind(v);return function(E){V(E,E.detail)}};
_.Lh=function(v,Q){var V=G3h.get(v);V||(V=new WeakMap,G3h.set(v,V));if(V.has(Q))return V.get(Q);if(_.Y("web_fi_listen_disable_bound_fn_helper")){var E=Q.bind(v);v=function(b){E(b,b==null?void 0:b.detail)}}else v=Kh(v,Q);
V.set(Q,v);return v};
O03=function(v,Q){Clt(v);v.created[MRE].push(Q)};
Clt=function(v){if(!v.created||!v.created[MRE]){var Q=v.created,V=Q?[Q]:[];v.created=function(){for(var E=_.L(V),b=E.next();!b.done;b=E.next())b.value.apply(this)};
v.created[MRE]=V}};
D0G=function(v){return function(){var Q=_.aE.apply(0,arguments);return function(V,E,b){v.apply(null,_.ui(Q))(V,E,b)}}};
RP3=function(){return function(){var v=_.aE.apply(0,arguments);return function(Q,V,E){p7Q.apply(null,_.ui(v))(Q,V,E)}}};
_.M=function(v){return RP3()(v)};
_.O=function(){return D0G(dcE).apply(null,_.ui(_.aE.apply(0,arguments)))};
_.tM=function(v){return _.Y("pbcm_fi_listen_decorators")?nCB(v):D0G(Zor)(v)};
nCB=function(v){return function(Q,V){O03(Q,function(){var E=this[V],b=_.Y("web_fi_listen_disable_bound_fn_helper")?function(F){E(F,F.detail)}.bind(this):Kh(this,E);
lJQ.has(v)?rX(this.hostElement,v,b):this.hostElement.addEventListener(v,b)})}};
_.ph=function(){return D0G(Pyh).apply(null,_.ui(_.aE.apply(0,arguments)))};
_.q=function(v){v=v===void 0?{}:v;return D0G(e5h)(v)};
_.eT=function(v){if(v.hostElement&&v!==v.hostElement){var Q=_.wi(v.hostElement);Q=v.renderIdom?Q:Q.shadowRoot}Q||(v=v.root,Q=v instanceof Node?_.wi(v):null);return Q};
_.Z7=function(v){return qQo?SQT(v):function(Q,V){Object.defineProperty(Q,V,{get:function(){var E;return(E=_.eT(this))==null?void 0:E.querySelector(v)},
enumerable:!0,configurable:!0})}};
SQT=function(v){return function(Q,V){Object.defineProperty(Q,V,{get:function(){var E,b=(E=_.m9(this.hostElement))==null?void 0:E.querySelector(v);if(b)return b;var F;return(F=_.eT(this))==null?void 0:F.querySelector(v)},
enumerable:!0,configurable:!0})}};
_.Pn=function(v){return qQo?zPZ(v):function(Q,V){Object.defineProperty(Q,V,{get:function(){var E;return(E=_.eT(this))==null?void 0:E.querySelectorAll(v)},
enumerable:!0,configurable:!0})}};
zPZ=function(v){return function(Q,V){Object.defineProperty(Q,V,{get:function(){var E,b=(E=_.m9(this.hostElement))==null?void 0:E.querySelectorAll(v);if(b==null?0:b.length)return b;var F;return(F=_.eT(this))==null?void 0:F.querySelectorAll(v)},
enumerable:!0,configurable:!0})}};
JVB=function(v){return function(Q){if(![_.wC,_.z].includes(Object.getPrototypeOf(Q.prototype).constructor))throw Error("gg");V3o(Object.assign({},typeof v!=="string"?v:{is:v,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(Q)}};
_.hM=function(){var v=v===void 0?{}:v;return function(Q){if(![Ar,_.dg].includes(Object.getPrototypeOf(Q.prototype).constructor))throw Error("hg");E$T(Object.assign({},v,{disableInheritanceCheck:!0}))(Q)}};
x0h=function(v,Q){Nrr[v]!=null||(Nrr[v]=new Set);Nrr[v].add(Q)};
_.wg=function(){var v=_.ph.apply(null,_.ui(_.aE.apply(0,arguments)));return function(Q,V){x0h(Q.is,V);v(Q,V)}};
TP=function(v,Q,V){if(AM(v)&&!Brr.has(Q)){Q=Q.replace(/^JSC\$[\d]+_/,"");Q=Q.replace(/\.\d+(\.|$)/g,function(F,t){return".#"+t});
kv[v]!=null||(kv[v]={});var E,b;(E=kv[v])[b=Q]!=null||(E[b]=new Set);kv[v][Q].has(V)||(kv[v][Q].add(V),_.X0("polymerPropertyAccessEvent",{componentName:v,propertyName:Q,accessType:V}))}};
gC3=function(){return _.Y("polymer_property_access_logging_debug")||_.Y("polymer_enable_property_access_logging")};
AM=function(v){if(_.Y("polymer_property_access_logging_debug"))return!0;if(!_.Y("polymer_enable_property_access_logging"))return!1;sAt||(sAt=Date.now());return(zi(v)+sAt)%100<_.T_("polymer_property_access_logging_percent")};
uDb=function(v,Q){return AM(Q)&&v.hostElement.loggingStatus?new Proxy(v,{get:function(V,E,b){if(V.hostElement.loggingStatus.bypassProxyController)return V[E];V.hostElement.loggingStatus.isExternalGet=!0;var F=V[E];V.hostElement.loggingStatus.isExternalGet=!1;if(F instanceof Function)return function(){var t=_.aE.apply(0,arguments);try{return V.hostElement.loggingStatus.currentExternalCall=E,TP(Q,E,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),F.apply(this===b?V:this,t)}finally{V.hostElement.loggingStatus.currentExternalCall=
void 0}};
TP(Q,E,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return F},
set:function(V,E,b){if(V.hostElement.loggingStatus.bypassProxyController)return V[E]=b,!0;V.hostElement.loggingStatus.isRendererStamper?TP(Q,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):V.hostElement.loggingStatus.isDeclarativeExternal||TP(Q,E,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{V.hostElement.loggingStatus.currentExternalSet=E,V[E]=b}finally{V.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):v};
jAS=function(v,Q){v&&v.loggingStatus&&!v.loggingStatus.isDeclarativeExternal&&!v.loggingStatus.isExternalGet&&v.loggingStatus.currentExternalSet!==Q&&TP(v.tagName.toLowerCase(),Q,"PROPERTY_ACCESS_GET_INTERNAL")};
Yv=function(v,Q,V){v&&(V||v.loggingStatus&&!v.loggingStatus.isInitializing&&!v.loggingStatus.isDefiningPropertyAccessor&&v.loggingStatus.currentExternalSet!==Q)&&TP(v.tagName.toLowerCase(),Q,"PROPERTY_ACCESS_SET_INTERNAL")};
WHS=function(){return{_definePropertyAccessor:function(v,Q){var V=this,E=V.hostElement.loggingStatus;E&&(E.isDefiningPropertyAccessor=!0);var b=V[v];b!==void 0&&(V.__data?V._setPendingProperty(v,b):(V.__dataProto!=null||(V.__dataProto={}),V.__dataProto[v]=b));E&&(E.isDefiningPropertyAccessor=!1);Object.defineProperty(this,v,{get:function(){jAS(V.hostElement,v);return this.__data[v]},
set:function(F){Q||this._setPendingProperty(v,F,!0)&&this._invalidateProperties()}})},
created:function(){var v=this._setPendingProperty.bind(this);this._setPendingProperty=function(Q,V,E){Yv(this.hostElement,Q);return v.apply(this,[Q,V,E])}}}};
oCQ=function(v){gC3()&&_.M(yE.prototype)(v.prototype,"__templateBindingLoggingBehavior")};
X8Q=function(v,Q){if(Q.resolvedFactories.length!==v.resolvedFactories.length)return!0;Q=_.L(Q.resolvedFactories.entries());for(var V=Q.next();!V.done;V=Q.next()){var E=_.L(V.value);V=E.next().value;E=E.next().value;if(E.providerClass){if(E.providerClass!==v.resolvedFactories[V].providerClass)return!0}else if(E.providerValue){if(E.providerValue!==v.resolvedFactories[V].providerValue)return!0}else if(E.factory!==v.resolvedFactories[V].factory)return!0}return!1};
aJB=function(v,Q){v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.constructor===Array)aJB(V,Q);else{var E=Q;E.has(V)||(V.inject&&E.add(V),V.behaviors&&aJB(V.behaviors,E))}};
cn=function(v,Q){var V=v[Q];v[Q]=function(){var E=_.aE.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(V)return V.apply(this,E)}};
H03=function(){_.fh.Class=function(V,E){V=rVB(V,E);cn(V.prototype,"created");return V};
cn(GP.prototype,"_initializeProperties");cn(_.Ch.prototype,"_initializeProperties");if($00)cn(IJZ,"created");else{var v=function(){cn(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))v();else{var Q=customElements.define;customElements.define=function(V,E,b){Q.call(customElements,V,E,b);V==="tp-yt-iron-list"&&(v(),customElements.define=Q)}}}};
U09=function(v,Q){v.prototype.behaviors=v.prototype.behaviors||[];v.prototype.behaviors.unshift(m0T.InjectBehavior);v.prototype.provide=Q};
_.D7=function(v){return function(Q){if(!v.disableElementRegistration){v.noInjection||U09(Q,v.providers);var V=Q.prototype;V.__templateHelpers||p7Q(Mf.prototype)(V,"__templateHelpers");V=v.is;vkB||(vkB=Date.now());(zi(V)+vkB)%100<_.T_("polymer_log_prop_change_observer_percent")&&p7Q(OJ.prototype)(Q.prototype,"__propertyObserverObserver");Q.prototype.behaviors=Q.prototype.behaviors||[];Q.prototype.behaviors.unshift(_.Qwm.YtHostElementBehavior);oCQ(Q);JVB({is:v.is,notifyObserversOnUndefined:v.notifyObserversOnUndefined!==
!1,fastInit:v.fastInit,template:v.template,disableEnforceFastDefaultValuesCheck:!0})(Q)}}};
_.J=function(v){return _.D7({is:v.is,template:v.template,disableElementRegistration:v.disableElementRegistration,cssBuildOptOut:v.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
bnQ=function(v,Q){if(VUS){v=new v;for(var V=_.L(Object.getOwnPropertyNames(v)),E=V.next();!E.done;E=V.next())E=E.value,Q[E]=v[E];for(V=Q;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){E=_.L(Object.getOwnPropertyNames(V));for(var b=E.next();!b.done;b=E.next())b=b.value,v.hasOwnProperty(b)||Object.defineProperty(v,b,EkE(Q,b))}}else v.apply(Q)};
EkE=function(v,Q){return{get:function(){var V=v[Q];return V instanceof Function?V.bind(v):V},
set:function(V){v[Q]=V}}};
KRh=function(v,Q){for(var V=v._noAccessors,E=_.L(Object.getOwnPropertyNames(v)),b=E.next();!b.done;b=E.next())if(b=b.value,!FRm.has(b))if(V)Q[b]=v[b];else{var F=Object.getOwnPropertyDescriptor(v,b);F&&(F.configurable=!0,Object.defineProperty(Q,b,F))}};
inB=function(v,Q,V){return function(E){if(V){var b=V();E.model=b}if(v[Q])v[Q](E,E.detail)}};
R1=function(v){var Q=[];if(typeof v==="string")v.length>0&&Q.push.apply(Q,_.ui(v.split(".")));else{v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,typeof V==="string"?Q.push.apply(Q,_.ui(V.split("."))):Q.push(V)}return Q};
LRQ=function(v,Q){if(Q[Q.length-1]!=="*"&&Q[Q.length-1]!=="splices"){for(var V=0;V<Q.length;V++){if(!v)return;v=v[Q[V]]}return v}};
tUr=function(v,Q){if(v.length>Q.length)return!1;for(var V=0;V<v.length;V++)if(v[V]!==Q[V])return!1;return!0};
elo=function(v,Q,V){if(Q.type==="compute"){var E=Q.getter.bind(V);var b=Q.args}else E=function(){return V[Q.method.methodName].apply(V,_.ui(_.aE.apply(0,arguments)))},b=Q.method.args;
plm(v,Q.propertyKey,E,b,Q.value)};
PR0=function(v,Q){if(Q.readOnly){var V=Object.getOwnPropertyDescriptor(v.model,Q.propertyKey);Object.defineProperty(v.model,Q.propertyKey,{get:V.get,set:function(){}});
v.model[Znm(Q.propertyKey)]=V.set}};
dbS=function(v,Q,V){if(V){var E=Q.propertyKey,b=Q.selector;Q=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ui(Q.selectorArgs.map(function(F){return{type:"path",path:F}})));
plm(v,E,function(F){var t=_.aE.apply(1,arguments);return b.apply(null,[V.getState()].concat(_.ui(t)))},Q)}};
wlT=function(v,Q,V){var E=_.LC(Q.propertyKey)+"-changed";hl3(v,function(b){var F={value:b.value,queueProperty:!0};b.path.split(".").length>1&&(F.path=b.path);V.dispatchEvent(new CustomEvent(E,{detail:F}))},[{type:"wildcard",
path:Q.propertyKey}])};
AwZ=function(v,Q,V){hl3(v,function(){V[Q.method.methodName].apply(V,_.ui(_.aE.apply(0,arguments)))},Q.method.args)};
Znm=function(v){return"_set"+(v.charAt(0).toUpperCase()+v.slice(1))};
kDm=function(){var v,Q=WR(function(V){v=V},!1);
return[v,Q]};
fES=function(v){v=v.trim().replace(T0Z,",").replace(YaZ,"$1");var Q=v[0];Q==="-"&&(Q=v[1]);if(Q>="0"&&Q<="9")return{type:"literal",value:Number(v)};if(Q==="'"||Q==='"')return{type:"literal",value:v.slice(1,-1)};if(Q=v.match(ywS)){Q=Q[1];var V=cw9[Q];if(V)return{type:V,path:v.slice(0,-(Q.length+1))}}return{type:"path",path:v}};
OnE=function(v){var Q=v.match(GD0);if(Q)return v={methodName:Q[1],args:CR3},Q[2].trim()&&(Q=Q[2].replace(MUm,"&comma;").split(","),v.args=Q.map(fES)),v};
Dbo=function(v,Q,V,E){E=E===void 0?!1:E;Q=_.LC(Q);var b=NF;b&&(V=b(V,Q,"attribute",v));nh(v,V,Q,E)};
nh=function(v,Q,V,E){Q=Rl3(Q,E===void 0?!1:E);Q===void 0?v.removeAttribute(V):v.setAttribute(V,Q)};
Rl3=function(v,Q){switch(typeof v){case "object":case "function":if(v instanceof Date)return v.toString();if(v){if((Q===void 0?0:Q)&&!_.Y("polymer_reflect_objects_as_boolean_killswitch"))return v?"":void 0;Q=window.trustedTypes?window.trustedTypes.isHTML(v)||window.trustedTypes.isScript(v)||window.trustedTypes.isScriptURL(v):void 0;if(Q)return v;try{return JSON.stringify(v)}catch(V){_.Iy(Error("Dg`"+v))}}break;case "boolean":return v?"":void 0;default:return v!==null&&v!==void 0?v.toString():void 0}};
nkG=function(v){if(v===void 0)throw Error("Eg");return v};
Jwm=function(v,Q,V,E){var b=lE0(E);if(b.length){E=V;var F="property";qaZ.test(V)?F="attribute":V[V.length-1]==="$"&&(V=V.slice(0,-1),F="attribute");var t=SaT(b);t&&F==="attribute"&&(V==="class"&&v.hasAttribute("class")&&(t+=" "+v.getAttribute(V)),nh(v,t,V));F==="attribute"&&E==="disable-upgrade$"&&v.setAttribute("disable-upgrade","");v.localName==="input"&&E==="value"&&v.setAttribute("value","");v.removeAttribute(E);F==="property"&&(V=_.tY(V));Q=nkG(Q);zlG(Q,F,V,b);return!0}return V.slice(0,3)===
"on-"?(v.removeAttribute(V),(F=Q).events!=null||(F.events=[]),Q.events.push({name:V.slice(3),value:E}),!0):V==="id"?(Q.id=E,!0):!1};
lE0=function(v){for(var Q=[],V=0,E;(E=N0S.exec(v))!==null;){E.index>V&&Q.push({type:"literal",value:v.slice(V,E.index)});var b=E[1][0];V=!!E[2];E=E[3].trim();if(b==="{")throw Error("Fg");(b=OnE(E))?Q.push({type:"method",negate:V,signature:b}):Q.push({type:"path",negate:V,path:E});V=N0S.lastIndex}V&&V<v.length&&(v=v.substring(V))&&Q.push({type:"literal",value:v});return Q};
SaT=function(v){for(var Q="",V=0;V<v.length;V++){var E=v[V];E.type==="literal"&&(Q+=E.value)}return Q};
zlG=function(v,Q,V,E){v.bindings!=null||(v.bindings=[]);v.bindings.push({kind:Q,target:V,parts:E})};
uxh=function(v,Q,V){var E=!1;if(v.localName==="template"){E=V;var b=Q.stripWhitespace;b=xbo(v,b===void 0?!1:b);var F=v.content.ownerDocument.createDocumentFragment();b.content=F;F.appendChild(v.content);E&&(E.templateInfo=b);E=!0}else v.localName==="slot"&&(Q.hasInsertionPoint=!0);if(v.firstChild&&(b=V,v.localName!=="script"&&v.localName!=="style")){F=0;for(var t=v.firstChild;t;){var p=t;if(p.localName==="template"){var Z=p.getAttribute("is");if((t=Z==="dom-if")||Z==="dom-repeat"){p.removeAttribute("is");
Z=p.ownerDocument.createElement("ps-"+Z);p.parentNode.replaceChild(Z,p);Z.appendChild(p);var d=Array.from(p.attributes);d=_.L(d);for(var w=d.next();!w.done;w=d.next())w=w.value,t?B0o.has(w.name)&&nh(Z,w.value,w.name):gkT.has(w.name)?nh(Z,w.value,w.name):swm.has(w.name),p.removeAttribute(w.name);t=Z}else t=p}if(t.nodeType===Node.TEXT_NODE){p=void 0;Z=v;for(d=t;((p=d.nextSibling)==null?void 0:p.nodeType)===Node.TEXT_NODE;)w=void 0,(w=d).textContent!=null||(w.textContent=""),d.nextSibling.textContent&&
(d.textContent+=d.nextSibling.textContent),Z.removeChild(d.nextSibling);if(Q.stripWhitespace&&t.textContent&&!t.textContent.trim()){v.removeChild(t);t=t.nextSibling;continue}}uxh(t,Q,{parentIndex:F,parentInfo:b});t.parentNode&&F++;t=t.nextSibling}}var A;if((A=v.hasAttributes)==null?0:A.call(v)){A=V=nkG(V);b=!1;F=Array.from(v.attributes);F=_.L(F);for(p=F.next();!p.done;p=F.next())p=p.value,b=Jwm(v,A,p.name,p.value)||b;E=b||E}v.nodeType===Node.TEXT_NODE&&(A=lE0(v.textContent),A.length&&(v.textContent=
SaT(A)||" ",V=nkG(V),zlG(V,"text","textContent",A),E=!0));V&&E&&(V.infoIndex=Q.nodeInfoList.push(V)-1)};
xbo=function(v,Q){Q={nodeInfoList:[],stripWhitespace:(Q===void 0?!1:Q)||v.hasAttribute("strip-whitespace")};uxh(v.content,Q);return Q};
jwo=function(v){Object.assign(v,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
okQ=function(v,Q,V){Q.signalCache!=null||(Q.signalCache={});var E=Q.signalCache[V];if(!E){var b=V.split(".");E=!WRb(v,b[0]);if(b.length>1&&E){var F=v.getPathMutationSignal(b);E=function(){var t=Xb(v.owner,function(){return v.getWithPath([b[0]])}),p,Z=(p=F())==null?void 0:p.value;
return{rootWasDefined:t!==void 0,value:Z}}}else E=function(){var t=v.getWithPath(b);
return{rootWasDefined:t!==void 0,value:t}};
Q.signalCache[V]=E}return E()};
aEB=function(v,Q,V,E,b){Q=Q.parts.map(function(t,p){if(t.type==="literal"){V.partWasDefined!=null||(V.partWasDefined=[]);var Z;(Z=V.partWasDefined)[p]||(Z[p]=t.value!==void 0);return t.value}var d;if(t.type==="method"){var w,A=(w=(d=V.partWasDefined)==null?void 0:d[p])!=null?w:!1;A||(A=t.signature.args.every(function(c){return c.type==="literal"}));
var k=!1,T=!0;d=t.signature.args.map(function(c){if(c.type==="literal")return c.value;if(c.type!=="path")throw Error("Gg`"+c.type);var C=okQ(v,V,c.path);c=C.value;C=C.rootWasDefined;k||(k=C);T&&(T=C);return c});
A||(A=b===1?T:k);V.partWasDefined!=null||(V.partWasDefined={});V.partWasDefined[p]=A;if(!A)return;d=(p=okQ(v,V,t.signature.methodName).value)&&typeof p==="function"?p.apply(E,d):void 0}else w=okQ(v,V,t.path),d=w.value,V.partWasDefined!=null||(V.partWasDefined={}),(A=V.partWasDefined)[p]||(A[p]=d!==void 0||w.rootWasDefined);t.negate&&(d=!d);return d});
if(Q.length===1){var F;return((F=V.partWasDefined)==null?0:F[0])?Q[0]:XlB}return Q.join("")};
rwh=function(v){return typeof v==="object"&&!!v&&"notifyPath"in v&&"canNotifyPath"in v};
$b9=function(v){return typeof v==="object"&&!!v&&"notifyPath"in v};
IET=function(v){return"polymerController"in v};
HnG=function(v,Q){Q=""+R1(Q)[0];if(rwh(v))return v.canNotifyPath(Q);if(IET(v)&&rwh(v.polymerController))return v.polymerController.canNotifyPath(Q);if($b9(v)){var V;return!((V=v.properties)==null||!V[Q])}if(IET(v)&&$b9(v.polymerController)){var E;return!((E=v.polymerController.properties)==null||!E[Q])}return!1};
mbT=function(v,Q,V){rwh(v)||$b9(v)?v.notifyPath(Q,V):IET(v)&&(rwh(v.polymerController)||$b9(v.polymerController))&&v.polymerController.notifyPath(Q,V)};
vRB=function(v,Q,V){if(V!==XlB){v.kind==="attribute"||v.target!=="textContent"&&(v.target!=="value"||Q.localName!=="input"&&Q.localName!=="textarea")||(V=V===void 0?"":V);var E,b=(E=UbS.Polymer)==null?void 0:E.sanitizeDOMValue;b&&(V=b(V,v.target,v.kind,Q));if(v.kind==="attribute"){v=v.target;if(v==="class"||v==="name"||v==="slot")Q=(0,_.bf)(Q);nh(Q,V,v)}else if(v=v.target,V!==Q[v]||typeof V==="object")Q.loggingStatus&&(Q.loggingStatus.isDeclarativeExternal=!0,TP(Q.localName,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
Q[v]=V,Q.loggingStatus&&(Q.loggingStatus.isDeclarativeExternal=!1)}};
QRT=function(v,Q,V,E){var b=Q.parts[0];if(Q.parts.length!==1||b.type!=="path"||!HnG(V,Q.target))return!1;var F=_.L(b.path.split(".")),t=F.next().value,p=Fb(F);if(WRb(v,t))return!1;E.signalCache!=null||(E.signalCache={});F=E.signalCache[b.path];var Z;F=(Z=F)==null?void 0:Z().value;if((F==null?void 0:F.path)!==void 0){E=R1(F.path);var d=R1(b.path);E=[Q.target].concat(_.ui(E.slice(d.length-1)));mbT(V,E,b.negate?!F.value:F.value);return!0}var w=lf(v,t);var A=w.getChangeRecordSignal(p),k=!1;F=function(){if(!k){var c=
Xb(v.owner,function(){return w.getWithPath([])});
k||(k=c!==void 0)}return{value:A(),rootWasDefined:k}};
E.signalCache[b.path]=F;E.partWasDefined!=null||(E.partWasDefined={});F=F();(d=E.partWasDefined)[0]||(d[0]=F.rootWasDefined);var T=Xb(v.owner,function(){return w.getWithPath(p)});
E.partWasDefined[0]&&Xb(v.owner,function(){return void vRB(Q,V,b.negate?!T:T)});
return!0};
VkB=function(v,Q,V,E,b,F){if(!QRT(v,Q,V,E)){var t=aEB(v,Q,E,b,F);Xb(v.owner,function(){return void vRB(Q,V,t)})}};
ERS=function(v,Q,V,E,b,F){V=_.L(V);for(var t=V.next(),p={};!t.done;p={infoIndex:void 0},t=V.next()){t=t.value;var Z=t.bindings;p.infoIndex=t.infoIndex;t=t.parentInfo;if(Z){Z=_.L(Z);for(var d=Z.next(),w={};!d.done;w={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},d=Z.next()){w.b$jscomp$256=d.value;if(p.infoIndex===void 0)throw Error("Hg");w.bindingCtx$jscomp$4={};v.effect(function(A,k){return function(){b&&!b()||VkB(v,A.b$jscomp$256,Q[k.infoIndex],A.bindingCtx$jscomp$4,E,F)}}(w,p))}}t&&ERS(v,Q,[t],
E,b,F)}};
bl9=function(v,Q){v=(Q.parentInfo?bl9(v,Q.parentInfo):v).firstChild;for(var V=0;v;v=v.nextSibling)if(Q.parentIndex===V++)return v;throw Error("Ig");};
KTm=function(v,Q,V,E){v=document.importNode(v.content,!0);v.__noInsertionPoint=!(E==null?0:E.hasInsertionPoint);for(var b=Array(Q.length),F={},t=0;t<Q.length;t++){var p=Q[t],Z=bl9(v,p);b[t]=Z;p.id&&(F[p.id]=Z);if(p.templateInfo){var d=Z.parentElement;d&&(d.templateInfo=p.templateInfo,d.parentSignalProxy=V,d.eventListenerHost=E.eventListenerHost,d.stampingEnabled=E.enabledSignal)}d=void 0;if((d=p.events)==null?0:d.length)for(d=0;d<p.events.length;d++){var w=p.events[d];FTE(E.eventListenerHost,Z,w.name,
w.value,E.getModel)}}ERS(V,b,Q,E.thisCtx,E.enabledSignal,E.methodInvocationRequirement);return{root:v,nodes:b,nodesById:F}};
LT0=function(v,Q){v=v();var V;(V=il3.ShadyCSS)==null||V.prepareTemplate(v,Q);Q=xbo(v);return{template:v,nodeInfoList:Q.nodeInfoList,hasInsertionPoint:Q.hasInsertionPoint}};
e0h=function(){tkt=!1;for(var v=qf.length,Q=0;Q<v;Q++){var V=qf[Q];if(V)try{V()}catch(E){Promise.resolve().then(function(){throw E;})}}qf.splice(0,v);
pF3+=v};
h09=function(v){tkt||(tkt=!0,Zl3.textContent=(Por++).toString());qf.push(v);return deb++};
_.JM=function(v,Q,V){ST++;v=Q?new wF9(ST,v,Q,V):new AbS(ST,v);zP.set(ST,v);return ST};
k8m=function(v){(v=zP.get(v))&&v.cancel()};
YTZ=function(v,Q){v=Tvb.get(v);return v?(Q=v.get(Q))?Q:null:null};
_.Nf=function(v,Q,V,E){var b=YTZ(v,Q);if(!b){b=new ybB;var F=Tvb.get(v);F||(F=new Map,Tvb.set(v,F));F.set(Q,b)}v=V.bind(v);b.run(v,E,void 0)};
_.cb9=function(v,Q){var V;(V=YTZ(v,Q))==null||V.cancel()};
fno=function(v){var Q;(Q=YTZ(v,"doRender"))==null||Q.flush()};
xv=function(v){var Q;return(Q=v.hostElement)!=null?Q:v};
G8r=function(v){var Q=v.indexOf(".");return Q===-1?v:v.slice(0,Q)};
Co3=function(v,Q,V,E,b,F){F=(b=(E=F?G8r(Q):Q)?Q:null)?v.get(b):v.__data[Q];b&&F===void 0&&(F=V[Q]);_.Hj(v.hostElement,abS(E)+"-changed",{value:F,queueProperty:!0,path:b!=null?b:void 0},{bubbles:!1,composed:!1})};
MkT=function(v,Q){v.__isReflecting=!0;Dbo(v.hostElement,Q,v.__data[Q]);v.__isReflecting=!1};
OlT=function(v){if(v._onIronRequestResizeNotifications){var Q=v._onIronRequestResizeNotifications.bind(v);v._onIronRequestResizeNotifications=function(V){_.jV(V)!==v.hostElement&&Q(V)}}v._ariaActiveAttributeChanged&&(v._ariaActiveAttributeChanged=v._ariaActiveAttributeChanged.bind(v.hostElement));
v._activeChanged&&(v._activeChanged=function(V){v.toggles?nh(v.hostElement,V?"true":"false",v.ariaActiveAttribute):v.hostElement.removeAttribute(v.ariaActiveAttribute);v._changedButtonState()});
v._asyncClick&&(v._asyncClick=function(){_.JM(function(){v.hostElement.click()},1)});
!v.keyEventTarget||v.keyEventTarget instanceof EventTarget||(v.keyEventTarget=xv(v.keyEventTarget));v._disabledChanged&&(v._disabledChanged=v._disabledChanged.bind(v.hostElement));v._observeItems&&(v._observeItems=function(V){var E=xv(V);return _.wi(E).observeNodes(function(b){v._updateItems();v._updateSelected();_.Hj(E,"iron-items-changed",b,{bubbles:!1,cancelable:!1})})});
v._updateItems&&v._updateItems===_.Bn._updateItems&&(v._updateItems=function(){var V=_.wi(v.hostElement).queryDistributedElements(v.selectable||"*");V=Array.prototype.filter.call(V,v._bindFilterItem);v._setItems(V)});
v._computeKeyboardClass&&(v._computeKeyboardClass=function(V){_.VE(v.hostElement,"keyboard-focus",V)});
v.ensureRipple&&(v.ensureRipple=function(V){if(v.hasRipple&&!v.hasRipple()){if(!v._createRipple)return;v._ripple=v._createRipple();v._ripple.noink=v.noink;var E=v._rippleContainer||v.hostElement;E&&_.m9(E).appendChild(v._ripple)}var b;if(V&&((b=v._ripple)==null?0:b.uiDownAction)){E=_.m9(v._rippleContainer||v.hostElement);var F;b=(F=V.composedPath())==null?void 0:F[0];E.contains(b)&&v._ripple.uiDownAction(V)}});
v._updateMultiselectable&&(v._updateMultiselectable=function(V){V?v.hostElement.setAttribute("aria-multiselectable","true"):v.hostElement.removeAttribute("aria-multiselectable")})};
De0=function(v,Q,V){V=_.L(V);for(var E=V.next();!E.done;E=V.next())bnQ(E.value.constructor,v);bnQ(Q.constructor,v)};
nRE=function(v,Q){v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.type==="signal"){var E=V.propertyKey;if(Q.hasOwnProperty(E)&&Q[E]!=null&&V.attributeType===Object){a:{E=Q[E].constructor;for(var b=_.L(R0m),F=b.next();!F.done;F=b.next())if(F=F.value,E===F){E=F;break a}E=Object}V.attributeType=E}}};
lnE=function(){};
qTS=function(v){var Q;return(Q=v.hostElement)!=null?Q:v};
STG=function(){throw Error("Mg");};
z0m=function(v,Q){v.constructor.prototype.useSignals=!0;var V=new v.constructor;De0(V,v,Q.behaviors);nRE(Q.reactiveSchemas,V);V={};for(var E=_.L(Q.reactiveSchemas),b=E.next();!b.done;b=E.next())b=b.value,b.type==="signal"&&(V[b.propertyKey]=b.attributeType);var F={copyPropertiesToProto:STG,didRegister:!1,typesForSignals:V},t=["disable-upgrade"].concat(_.ui(Q.observedAttributes)),p=function(Z){gg.call(this,v,Q,F,Z)};
_.f(p,gg);_.hr.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t}}});
F.copyPropertiesToProto=function(){for(var Z=0;Z<Q.behaviors.length;Z++)KRh(Q.behaviors[Z],p.prototype);KRh(v,p.prototype)};
Q.legacyOptimizations||F.copyPropertiesToProto();p.prototype.is=v.is;return p};
Jbb=function(v,Q){if(Object.getPrototypeOf(Q.prototype).constructor!==_.z)throw Error("Ng");Q.prototype.is=v.is;return z0m(Q.prototype,v)};
Nvt=function(v){return v.type==="compute"||v.type==="computeWithMethod"};
xeG=function(v){for(var Q=v.reactiveSchemas.filter(Nvt),V=new Map,E=new Map,b=new Map,F=_.L(Q),t=F.next();!t.done;t=F.next())t=t.value,V.set(t.propertyKey,t),E.set(t.propertyKey,[]),b.set(t.propertyKey,0);F=0;Q=_.L(Q);for(t=Q.next();!t.done;t=Q.next()){t=t.value;for(var p=_.L(t.type==="computeWithMethod"?t.method.args:t.args),Z=p.next();!Z.done;Z=p.next())Z=Z.value,Z.type!=="literal"&&(Z=Z.path.split(".")[0],E.has(Z)&&(E.get(Z).push(t.propertyKey),b.set(t.propertyKey,b.get(t.propertyKey)+1),F++))}t=
[].concat(_.ui(E.keys())).filter(function(d){return b.get(d)===0});
for(Q=[];t.length;)for(p=t.shift(),Q.push(V.get(p)),p=_.L(E.get(p)),Z=p.next();!Z.done;Z=p.next())Z=Z.value,b.set(Z,b.get(Z)-1),F--,b.get(Z)===0&&t.push(Z);V=v.reactiveSchemas.filter(function(d){return!Nvt(d)});
v.reactiveSchemas=[].concat(_.ui(V),_.ui(Q))};
BvE=function(v,Q){if(Q.properties)for(var V=_.L(Object.entries(Q.properties)),E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;v.properties[E]=typeof b==="function"?{type:b}:b}Q.observers&&v.observers.push.apply(v.observers,_.ui(Q.observers));Q.disabledPolySiReactions&&v.disabledPolySiReactions.push.apply(v.disabledPolySiReactions,_.ui(Q.disabledPolySiReactions))};
gR0=function(v,Q){for(var V=Q.length-1;V>=0;V--){var E=Q[V];Array.isArray(E)?gR0(v,E):v.indexOf(E)<0&&v.unshift(E)}};
sRZ=function(v,Q){v.reactiveSchemas=v.reactiveSchemas.filter(function(V){return V.type==="observe"&&Q.includes(V.method.methodName)||Nvt(V)&&Q.includes(V.propertyKey)?!1:!0})};
jR9=function(v,Q){var V=Q.prototype,E,b,F={is:v.is,reactiveSchemas:[],observedAttributes:[],behaviors:[m0T.InjectBehavior,Mf.prototype],disableElementRegistration:v.disableElementRegistration,provide:(E=v.providers)!=null?E:[],reactivityMode:v.reactivityMode,signalProperties:(b=V.signalProperties)!=null?b:[]};"template"in Q?F.templateGetter=function(){return Q.template}:v.getTemplate&&(F.templateGetter=v.getTemplate);
V.behaviors&&gR0(F.behaviors,V.behaviors);u80(F,Q);return F};
u80=function(v,Q){for(var V=Q.prototype,E={properties:{},observers:[],disabledPolySiReactions:[]},b=_.L(v.behaviors),F=b.next();!F.done;F=b.next())BvE(E,F.value);BvE(E,V);if(v.signalProperties)for(V=_.L(v.signalProperties),b=V.next();!b.done;b=V.next())delete E.properties[b.value];V=_.L(Object.entries(E.properties));for(b=V.next();!b.done;b=V.next()){F=_.L(b.value);b=F.next().value;F=F.next().value;var t=void 0;if((t=v.signalProperties)==null||!t.includes(b)){t=void 0;var p=v,Z=F.type;if(!Z)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{Z=Reflect.getMetadata("design:type",Q,b);for(var d=_.L(WTr),w=d.next();!w.done;w=d.next())if(w=w.value,Z===w){Z=w;break a}Z=Object}else Z=String;F.computed||F.selector||(p.reactiveSchemas.push({type:"signal",propertyKey:b,value:F.value,attributeType:Z,readOnly:F.readOnly}),p.observedAttributes.push(_.LC(b)));F.reflectToAttribute&&p.reactiveSchemas.push({type:"reflect",propertyKey:b});if(F.computed){Z=OnE(F.computed);if(!Z)throw Error("Og");p.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:b,method:Z,value:F.value})}F.observer&&p.reactiveSchemas.push({type:"observe",method:{methodName:F.observer,args:[{type:"path",path:b}]}});F.notify&&p.reactiveSchemas.push({type:"notify",propertyKey:b});F.selector&&p.reactiveSchemas.push({type:"redux",propertyKey:b,selector:F.selector,selectorArgs:(t=F.selectorArgs)!=null?t:[]})}}oRE&&xeG(v);Q=_.L(E.observers);for(b=Q.next();!b.done;b=Q.next())V=v,b=b.value,(F=OnE(b))?V.reactiveSchemas.push({type:"observe",method:F}):console.log('Warning: unable to parse observe declaration: "'+
b+'"');sRZ(v,E.disabledPolySiReactions)};
XFE=function(v,Q){for(var V=0;V<Q.length;V++){var E=Q[V],b=void 0;(b=E).showHideApi!=null||(b.showHideApi={});b=void 0;!!v!==!((b=E.showHideApi)==null||!b.hideTemplateChildren)&&(E.nodeType===Node.TEXT_NODE?v?(E.showHideApi.polymerTextContent=E.textContent,E.textContent=""):(b=void 0,E.textContent=(b=E.showHideApi.polymerTextContent)!=null?b:null):E instanceof Element&&E.localName==="slot"?v?(E.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.bf)((0,_.bf)(E).parentNode).replaceChild(E.showHideApi.polymerReplaced,
E)):(b=E.showHideApi.polymerReplaced)&&(0,_.bf)((0,_.bf)(b).parentNode).replaceChild(E,b):E instanceof HTMLElement&&E.style&&(v?(E.showHideApi.polymerDisplay=E.style.display,E.style.display="none"):E.style.display=E.showHideApi.polymerDisplay));E.showHideApi.hideTemplateChildren=v;E.showHideChildren&&E.showHideChildren(v)}};
rbm=function(){if(!anm){var v=document.createElement("style");v.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(v);anm=!0}};
sJ=function(){return _.Y("disable_hidden_dom_if_using_stamper")};
$eZ=function(v,Q){var V=_.uf().getState();return Q?v.apply(null,[V].concat(_.ui(Q))):v(V)};
meZ=function(){if(Inh)return Inh;var v=_.L(_.Ge(0,void 0,"MB1Hb")),Q=v.next().value;v.next();var V=v.next().value;_.uf().subscribe(function(){Hlh(V)});
return Inh=Q};
Hlh=function(v){Ueo||(Ueo=!0,Promise.resolve().then(function(){v(function(Q){return Q+1});
Ueo=!1}))};
_.uf=function(){return vLS.getAppStore()};
QYT=function(v,Q){return vLS.getSelectFn()(v,Q)};
_.jT=function(v){vLS.getDispatchFn()(v)};
V8S=function(v,Q){var V={},E;for(E in v)V[E]=Q(v[E],E);return V};
_.Wn=function(v,Q){return function(){var V;return(V=_.or(v))!=null?V:Q}};
_.o1=function(v,Q){var V=Object.assign({},v),E;for(E in Q)Q.hasOwnProperty(E)&&(V[E]=_.Wn(v[E],Q[E]));return V};
ELr=function(v,Q,V){v instanceof Element&&(V.debugName||(V.debugName="<"+v.tagName.toLowerCase()+(v.tagName.includes("-")?">":"."+v.className+">")),_.Y("ytwiz_enable_debug_component_props")&&(v.debugProps||(v.debugProps=V8S(Q,function(E){return function(){return E()}}))))};
_.x=function(v,Q){var V=function(E){return OHB("ytComponent",{},function(b){var F=b9Q={};var t;if(((t=V)==null?0:t.idomCompat)&&E.renderedFromIdom){var p;t=typeof V.idomCompat==="object"?(p=V)==null?void 0:p.idomCompat.callbacks:{};t=_.L(Fc0(E,t,V.debugName));p=t.next().value;t.next();t=t.next().value;var Z=Kcr(v,p);F.privateValue=Z;b9Q=void 0;ELr(Z,p,V);b.addAttributes({debugName:V.debugName});b=dvm(Z);b=Array.isArray(b)?b[0]:b;b[CU]||(b[CU]={});b[CU].updateSignalsFromIdomProps=t;i9b(p,Z);return Z}t=
V8S(E,LcE);p=Kcr(v,t);F.privateValue=p;b9Q=void 0;ELr(p,t,V);b.addAttributes({debugName:V.debugName});i9b(t,p);return p})};
V.debugName=Q===void 0?"":Q;return V};
Kcr=function(v,Q){v=v(Q);return RS(v)};
t8r=function(v,Q){v[Q]||(v=new _.xd("IDOM interop setter undefined. Key:",Q),_.ro(v))};
LcE=function(v,Q){return Q==="children"||Q==="ref"||typeof v==="function"||v===void 0?v:function(){return _.or(v)}};
Fc0=function(v,Q,V){var E={},b={},F={},t={},p;for(p in v){t={key$jscomp$952:t.key$jscomp$952};t.key$jscomp$952=p;var Z=v[t.key$jscomp$952];if(t.key$jscomp$952==="children"||t.key$jscomp$952==="ref")E[t.key$jscomp$952]=Z;else if(typeof Z==="function")t.key$jscomp$952 in Q||Z.length>0?(F[t.key$jscomp$952]=Z,E[t.key$jscomp$952]=function(w){return function(){return F[w.key$jscomp$952].apply(F,_.ui(_.aE.apply(0,arguments)))}}(t)):E[t.key$jscomp$952]=Z;
else if(!(v[t.key$jscomp$952]===void 0&&t.key$jscomp$952 in Q)){var d=_.L(_.Ge(v[t.key$jscomp$952],{debugName:t.key$jscomp$952+":cwis:"+V},"cvwbof"));Z=d.next().value;d=d.next().value;E[t.key$jscomp$952]=Z;b[t.key$jscomp$952]=d}}return[E,b,function(w){var A={},k;for(k in w)A={key$jscomp$951:A.key$jscomp$951,val$jscomp$122:void 0},A.key$jscomp$951=k,A.val$jscomp$122=w[A.key$jscomp$951],A.key$jscomp$951!=="children"&&A.key$jscomp$951!=="ref"&&(typeof A.val$jscomp$122==="function"?A.key$jscomp$951 in
Q?F[A.key$jscomp$951]=A.val$jscomp$122:A.val$jscomp$122.length>0&&(F[A.key$jscomp$951]=A.val$jscomp$122,_.Iy(new _.xd("Callback detected that was not set in the idomCompat callbacks map. Key:",A.key$jscomp$951))):A.key$jscomp$951 in Q&&A.val$jscomp$122===void 0||(t8r(b,A.key$jscomp$951),na(function(T){return function(){b[T.key$jscomp$951](T.val$jscomp$122)}}(A))))}]};
Z9S=function(v,Q,V){var E=mqQ(v.prototype,pom,v.prototype.behaviors);E.prototype.is=Q;E.prototype.localName=Q;V&&eX9(E,V);return function(b){b&&(E.prototype.hostElement=b);var F=new E;F.root=F;F.hostElement=b;return F}};
eX9=function(v,Q){var V;Object.defineProperty(v.prototype,"_template",{get:function(){V===void 0&&(V=Q());return V},
set:function(E){V=E},
configurable:!0,enumerable:!0})};
AoE=function(v,Q,V,E){function b(){if(!T){for(var c=new Set,C=_.L(w),R=C.next();!R.done;R=C.next()){R=R.value;for(var l=_.L(Object.getOwnPropertyNames(R)),S=l.next();!S.done;S=l.next()){S=S.value;var a=void 0,g=(a=Object.getOwnPropertyDescriptor(R,S))==null?void 0:a.value;g&&g instanceof Function&&!X6(S)&&(!p[S]||_.Y("polymer_forward_method_killswitch"))&&c.add(S)}}C=_.L(Object.entries(Object.getOwnPropertyDescriptors(v.prototype)));for(R=C.next();!R.done;R=C.next())l=_.L(R.value),R=l.next().value,
l=l.next().value,l.value instanceof Function&&!X6(R)&&c.add(R);T=c}return T}
PQG(v,Q,E==null?void 0:E.providers);Uq3(v.prototype,v,!0);var F=Z9S(v,Q,V),t,p=(t=v.prototype.properties)!=null?t:{},Z,d,w=(d=(Z=v.prototype.behaviors)==null?void 0:Z.flat(Infinity))!=null?d:[];V=_.L(w);for(t=V.next();!t.done;t=V.next())p=Object.assign({},t.value.properties,p);var A=[].concat(_.ui(dub),_.ui(Object.keys(p).map(function(c){return _.LC(c)}))),k=!1,T;
return{ctor:function(c,C){var R=F(c),l,S;c=[].concat(_.ui((l=E==null?void 0:E.allowedProps)!=null?l:[]),_.ui((S=E==null?void 0:E.allowedPropsFromBehaviors)!=null?S:[]));R.allowedProps=c.length>0?c:void 0;l={};S=_.L(A);for(c=S.next();!c.done;c=S.next())c=c.value,l[c]=_.tY(c);R.__dataAttributes=l;var a=R.ready.bind(R);R.ready=function(){C.beforeReady();a();if(AM(Q)&&!k){var g=R.__templateInfo;if(g==null?0:g.hostProps){g=_.L(Object.keys(g.hostProps));for(var u=g.next();!u.done;u=g.next())TP(Q,u.value,
"PROPERTY_ACCESS_GET_INTERNAL")}k=!0}};
R._overrideLegacyUndefined=!0;return R},
props:p,observedAttributes:A,getInitialMethods:b,getPropsToForwardBeforeRegister:function(){for(var c=[],C=new Set,R=_.L(Object.keys(p)),l=R.next();!l.done;l=R.next())l=l.value,c.push([l,p[l].readOnly]),C.add(l);R=b();l=_.L(Object.keys(Object.getOwnPropertyDescriptors(v.prototype)));for(var S=l.next();!S.done;S=l.next())S=S.value,!hXB(S)||R.has(S)||C.has(S)||(c.push([S,!1]),C.add(S));C=_.L(woG);for(R=C.next();!R.done;R=C.next())c.push([R.value,!0]);return c},
getPropsToForwardBeforeReady:function(c){for(var C=[],R=_.L(Object.entries(c)),l=R.next();!l.done;l=R.next()){var S=_.L(l.value);l=S.next().value;S=S.next().value;if(hXB(l)&&!(S instanceof Function)&&(C.push([l,!1]),AM(Q))){var a=S=void 0;(a=(S=c)._createPropertyAccessor)==null||a.call(S,l)}}return C},
shouldForwardProp:hXB,shouldLog:AM}};
PQG=function(v,Q,V){U09(v,V);v.prototype.behaviors.unshift(kHG);if(gC3()){if(AM(Q)){var E;(E=v.prototype).behaviors!=null||(E.behaviors=[]);v.prototype.behaviors.unshift(WHS())}oCQ(v)}_.M(Mf.prototype)(v.prototype,"__templateHelpers")};
X6=function(v){return Th3.has(v)||v.startsWith("__compute__")};
hXB=function(v){return!X6(v)&&!v.startsWith("_")&&!v.endsWith("_")};
GHE=function(v,Q){function V(){var k=Z();k=_.L(k);for(var T=k.next();!T.done;T=k.next()){var c=_.L(T.value);T=c.next().value;c=c.next().value;Yym(A.prototype,T,c)}E=!0}
var E=!1,b=v.ctor,F=v.getInitialMethods,t=v.observedAttributes,p=v.getPropsToForwardBeforeReady,Z=v.getPropsToForwardBeforeRegister,d=v.shouldForwardProp,w=v.shouldLog,A=function(){var k=HTMLElement.call(this)||this;k.didForwardDynamicProps=!1;k.loggingStatus={};E||V();k.inst=b(k,{beforeReady:function(){k.didForwardDynamicProps||(k.forwardDynamicProps(),k.didForwardDynamicProps=!0)}});
k.controllerProxy=uDb(k.inst,Q);k.forwardMethods();return k};
_.f(A,HTMLElement);A.prototype.forwardMethods=function(){for(var k=this,T=_.L(this.inst.getExtraMethodsToForward()),c=T.next(),C={};!c.done;C={method$jscomp$65:void 0},c=T.next()){var R=_.L(c.value);c=R.next().value;R=R.next().value;C.method$jscomp$65=R;this[c]=function(l){return function(){return l.method$jscomp$65.call.apply(l.method$jscomp$65,[k.inst].concat(_.ui(_.aE.apply(0,arguments))))}}(C)}T=_.L(F());
for(C=T.next();!C.done;C=T.next())C=C.value,d(C)&&yoE(this,C),w(Q)&&!X6(C)&&co9(this.inst,C)};
A.prototype.forwardDynamicProps=function(){var k=p(this.inst);k=_.L(k);for(var T=k.next();!T.done;T=k.next()){var c=_.L(T.value);T=c.next().value;c=c.next().value;Yym(this,T,c);w(Q)&&!X6(T)&&fPT(this.inst,T)}};
A.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
A.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
A.prototype.attributeChangedCallback=function(k,T,c){this.inst.attributeChangedCallbackWrapper(k,T,c)};
_.hr.Object.defineProperties(A.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return Q}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.hr.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t}}});
customElements.define(Q,A)};
Yym=function(v,Q,V){v.hasOwnProperty(Q)||Object.defineProperty(v,Q,{get:function(){var E,b=((E=v.is)!=null?E:v.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||TP(b,Q,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,E=this.polymerController[Q],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,E},
set:function(E){if(!V){var b,F=((b=v.is)!=null?b:v.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||TP(F,Q,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=Q,this.loggingStatus.bypassProxyController=!0,this.polymerController[Q]!==E&&(b={},this.polymerController.setProperties((b[Q]=E,b)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
yoE=function(v,Q,V){var E=v.polymerController;v[Q]=function(){var b=_.aE.apply(0,arguments);v.loggingStatus.currentExternalCall=Q;v.loggingStatus.bypassProxyController=!0;var F,t=((F=v.is)!=null?F:v.tagName).toLowerCase();TP(t,Q,"PROPERTY_ACCESS_CALL_EXTERNAL");var p;F=(p=V!=null?V:E[Q])==null?void 0:p.call.apply(p,[E].concat(_.ui(b)));v.loggingStatus.currentExternalCall=void 0;v.loggingStatus.bypassProxyController=!1;return F}};
co9=function(v,Q){var V=v.hostElement,E=v[Q];v[Q]=function(){var b=_.aE.apply(0,arguments);if(V.loggingStatus.currentExternalCall!==Q){var F,t=((F=V.is)!=null?F:V.tagName).toLowerCase();TP(t,Q,"PROPERTY_ACCESS_CALL_INTERNAL")}return E==null?void 0:E.apply(v,b)}};
fPT=function(v,Q){var V=Object.getOwnPropertyDescriptor(v,Q);V&&!V.get&&Object.defineProperty(v,Q,{get:function(){jAS(v.hostElement,Q);return V.value},
set:function(E){Yv(v.hostElement,Q);V.value=E}})};
CQh=function(v){return _.Y("poly_si_dom_repeat_detached_fix_killswitch")||v.tagName!=="PS-DOM-REPEAT"?v.tagName==="DOM-REPEAT":!0};
O9o=function(v,Q){var V=M8B(v);v instanceof Element&&V.unshift(v);v=_.L(V.filter(CQh));for(var E=v.next();!E.done;E=v.next()){var b=void 0;E=_.L((b=E.value.__instances)!=null?b:[]);for(b=E.next();!b.done;b=E.next())if(b=b.value,b.root){b=Array.from(b.root.children);b=_.L(b);for(var F=b.next();!F.done;F=b.next())V.push.apply(V,_.ui(O9o(F.value,Q)))}}return V.filter(function(t){return t.usePatchedLifecycles&&t.lifecycleIsConnected===Q})};
M8B=function(v){var Q=null;v instanceof Element?Q=Element.prototype.querySelectorAll:v instanceof DocumentFragment&&(Q=DocumentFragment.prototype.querySelectorAll);return Q?Array.from(Q.call(v,"*")):[]};
a1=function(v){_.fa(function(){for(var Q=_.L(O9o(v,!1)),V=Q.next();!V.done;V=Q.next()){V=V.value;V.lifecycleIsConnected=!0;try{var E=void 0,b=void 0,F=void 0,t=void 0;(E=(t=V.polymerController)!=null?t:V)==null||(F=(b=E).connectedCallback)==null||F.call(b)}catch(p){_.ro(p)}}})};
rg=function(v){_.fa(function(){for(var Q=_.L(O9o(v,!0)),V=Q.next();!V.done;V=Q.next()){V=V.value;V.lifecycleIsConnected=!1;try{var E=void 0,b=void 0,F=void 0,t=void 0;(E=(t=V.polymerController)!=null?t:V)==null||(F=(b=E).disconnectedCallback)==null||F.call(b)}catch(p){_.ro(p)}}})};
zXr=function(){if(!Dur){Dur=!0;var v=[Node];$v&&v.push($v.Wrapper);var Q=Node.prototype.insertBefore,V=Node.prototype.removeChild;v=_.L(v);for(var E=v.next(),b={};!E.done;b={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},E=v.next())E=E.value,b.nativeInsertBefore=E.prototype.insertBefore,E.prototype.insertBefore=function(t){return function(p,Z){if(p instanceof DocumentFragment){var d=Array.from(p.children);p=t.nativeInsertBefore.call(this,p,Z);
if(this.isConnected&&t.nativeInsertBefore===Q)for(Z=_.L(d),d=Z.next();!d.done;d=Z.next())a1(d.value);return p}d=p instanceof Element&&p.isConnected;Z=t.nativeInsertBefore.call(this,p,Z);d&&rg(p);this.isConnected&&a1(p);return Z}}(b),b.nativeAppendChild=E.prototype.appendChild,E.prototype.appendChild=function(t){return function(p){if(p instanceof DocumentFragment){var Z=Array.from(p.children);
p=t.nativeAppendChild.call(this,p);if(this.isConnected){Z=_.L(Z);for(var d=Z.next();!d.done;d=Z.next())a1(d.value)}return p}Z=p instanceof Element&&p.isConnected;d=t.nativeAppendChild.call(this,p);Z&&rg(p);this.isConnected&&a1(p);return d}}(b),b.nativeRemoveChild=E.prototype.removeChild,E.prototype.removeChild=function(t){return function(p){var Z=p instanceof Element&&p.isConnected,d=t.nativeRemoveChild.call(this,p);
Z&&V===t.nativeRemoveChild&&rg(p);return d}}(b),b.nativeReplaceChild=E.prototype.replaceChild,E.prototype.replaceChild=function(t){return function(p,Z){if(p instanceof DocumentFragment){var d=Array.from(p.children);
p=t.nativeReplaceChild.call(this,p,Z);if(this.isConnected)for(rg(Z),Z=_.L(d),d=Z.next();!d.done;d=Z.next())a1(d.value);return p}d=p instanceof Element&&p.isConnected;var w=this.isConnected,A=t.nativeReplaceChild.call(this,p,Z);w&&rg(Z);d&&rg(p);w&&a1(p);return A}}(b);
v=[Element];$v&&v.push($v.Wrapper);v=_.L(v);E=v.next();for(b={};!E.done;b={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},E=v.next())E=E.value,E.prototype.before=RXG(E.prototype.before),E.prototype.after=RXG(E.prototype.after),b.nativeReplaceWith=E.prototype.replaceWith,E.prototype.replaceWith=function(t){return function(){var p=_.aE.apply(0,arguments),Z=_.L(nL3(p)),d=Z.next().value,
w=Z.next().value;Z=this.isConnected;t.nativeReplaceWith.apply(this,p);p=_.L(w);for(w=p.next();!w.done;w=p.next())rg(w.value);if(Z)for(rg(this),d=_.L(d),Z=d.next();!Z.done;Z=d.next())Z=Z.value,Z instanceof Element&&a1(Z)}}(b),b.nativeRemove=E.prototype.remove,E.prototype.remove=function(t){return function(){var p=this.isConnected;
t.nativeRemove.call(this);p&&rg(this)}}(b),b.nativeInsertAdjacentElement=E.prototype.insertAdjacentElement,E.prototype.insertAdjacentElement=function(t){return function(p,Z){var d=Z.isConnected;
p=t.nativeInsertAdjacentElement.call(this,p,Z);d&&rg(Z);p.isConnected&&a1(p);return p}}(b),b.nativeSetAttribute=E.prototype.setAttribute,E.prototype.setAttribute=function(t){return function(p,Z){var d=lPh(this);
if(!d.usePatchedLifecycles)return t.nativeSetAttribute.call(this,p,Z);var w=this.getAttribute(p);t.nativeSetAttribute.call(this,p,Z);Z=this.getAttribute(p);qyo(d,p,w,Z)}}(b),b.nativeRemoveAttribute=E.prototype.removeAttribute,E.prototype.removeAttribute=function(t){return function(p){var Z=lPh(this);
if(!Z.usePatchedLifecycles)return t.nativeRemoveAttribute.call(this,p);var d=this.getAttribute(p);t.nativeRemoveAttribute.call(this,p);d!==null&&qyo(Z,p,d,null)}}(b),b.nativeToggleAttribute=E.prototype.toggleAttribute,E.prototype.toggleAttribute=function(t){return function(p,Z){var d=lPh(this);
if(!this.usePatchedLifecycles)return t.nativeToggleAttribute.call(this,p,Z);var w=this.getAttribute(p),A=w!==null;Z=t.nativeToggleAttribute.call(this,p,Z);Z!==A&&qyo(d,p,w,Z?"":null);return Z}}(b);
v=[Document,DocumentFragment,Element,ShadowRoot];$v&&v.push($v.Wrapper);v=_.L(v);for(b=v.next();!b.done;b=v.next())b=b.value,b.prototype.prepend=RXG(b.prototype.prepend),b.prototype.append=RXG(b.prototype.append);($v==null?void 0:$v.noPatch)===!0&&SyG();document.readyState==="complete"?a1(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&a1(document.body)});
var F=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");F&&F.get&&F.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:F.enumerable,configurable:!0,get:F.get,set:function(t){t||rg(this);F.set.call(this,t);return t}})}};
RXG=function(v){return function(){var Q=_.aE.apply(0,arguments),V=_.L(nL3(Q)),E=V.next().value;V=V.next().value;v.apply(this,Q);Q=_.L(V);for(V=Q.next();!V.done;V=Q.next())rg(V.value);if(this.isConnected)for(E=_.L(E),Q=E.next();!Q.done;Q=E.next())Q=Q.value,Q instanceof Element&&a1(Q)}};
SyG=function(){for(var v=_.L(Jot),Q=v.next();!Q.done;Q=v.next()){Q=Q.value.prototype;for(var V=_.L(Nht),E=V.next();!E.done;E=V.next()){E=E.value;var b=Object.getOwnPropertyDescriptor(Q,E);b&&Object.defineProperty(Q,"__shady_native_"+E,b)}}};
qyo=function(v,Q,V,E){var b,F;if((b=v.polymerController)==null?0:(F=b.observedAttributes)==null?0:F.includes(Q))if(v=v.polymerController,v.attributeChangedCallbackWrapper)v.attributeChangedCallbackWrapper.call(v,Q,V,E);else{var t;(t=v.attributeChangedCallback)==null||t.call(v,Q,V,E)}};
nL3=function(v){var Q=[],V=[];v=_.L(v);for(var E=v.next();!E.done;E=v.next())E=E.value,E instanceof Element&&E.isConnected&&V.push(E),E instanceof DocumentFragment?Q.push.apply(Q,_.ui(Array.from(E.children))):Q.push(E);return[Q,V]};
lPh=function(v){return!(v instanceof Element)&&v.node instanceof Element?v.node:v};
xum=function(v,Q){var V=Q?["children"].concat(_.ui(Q)):["children"];Q=[];V=_.L(V);for(var E=V.next();!E.done;E=V.next()){var b=E.value;if(v.hasOwnProperty(b)){E=v[b];E=typeof E==="function"?E():E;E=Array.isArray(E)?E:[E];E=RS(E).flat();if(b!=="children"){b=abS(b);for(var F=_.L(E),t=F.next();!t.done;t=F.next())t=t.value,t instanceof Element&&t.setAttribute("slot",b)}Q.push(E)}}Q.length===0?v=[]:(v=RS(_.P("div",null,Q)),v=Array.from(v.childNodes));return v};
gL9=function(v,Q,V){var E={};_.sX(function(){var b={},F;for(F in Q)if(Q.hasOwnProperty(F)){var t=void 0,p=void 0;if(!(((t=V.slotProps)==null?0:t.includes(F))||F==="children"||((p=V.callbackProps)==null?0:p.includes(F))||F==="ref")&&(t=_.or(Q[F]),E[F]!==t)){E[F]=t;p=void 0;var Z=(p=v.hostElement)!=null?p:v;!V.skipHostForwardedProps&&Bhr.has(F)&&(Z[F]=t);b[F]=t}}na(function(){if(v.setProperties)v.setProperties(b);else for(var d=_.L(Object.entries(b)),w=d.next();!w.done;w=d.next()){var A=_.L(w.value);
w=A.next().value;A=A.next().value;v[w]=A}})},"j")};
uo9=function(v,Q,V,E){var b=xum(V,E.slotProps),F=(0,_.bf)(v);b=_.L(b);for(var t=b.next();!t.done;t=b.next())F.appendChild(t.value);gL9(Q,V,E);E=_.L(E.callbackProps||[]);b=E.next();for(F={};!b.done;F={kebabEventName:void 0,eventListener:void 0},b=E.next())t=b=b.value,String(b).substring(0,2)==="on"&&V[t]?(F.kebabEventName=abS(String(b).substring(2)),F.eventListener=V[t],v.addEventListener(F.kebabEventName,F.eventListener),_.j_(function(w){return function(){v.removeEventListener(w.kebabEventName,w.eventListener)}}(F))):
Q[t]=V[t];
if(V.ref){V=_.L(sYZ(V.ref));var p=V.next().value,Z=V.next().value,d=Q.attached.bind(Q);Q.attached=function(){p(v);d()};
_.j_(function(){Z()})}};
sYZ=function(v){if(typeof v==="function"){var Q;return[function(V){Q=v(V)},
function(){var V;(V=Q)==null||V()}]}if(!v.onRender||!v.onUnmount)throw Error("Sg");
return[v.onRender,v.onUnmount]};
jYt=function(v,Q){Q=Q===void 0?{}:Q;var V=function(E){var b=document.createElement(v),F;var t=(F=b.polymerController)!=null?F:b;uo9(b,t,E,Q);return b};
V.debugName=v+" (CoW wrapped)";return V};
aP3=function(v,Q,V,E,b){E=E===void 0?{}:E;var F=WcG,t=!1;F?(t=!0,WcG=void 0):(oLh=Q,F=document.createElement(Q),oLh=void 0);var p=F;p.usePatchedLifecycles=!0;p.lifecycleIsConnected=!1;F.loggingStatus={};var Z=Xo0(v,Q,F,E,b);_.j_(function(){p.lifecycleIsConnected&&(p.lifecycleIsConnected=!1,Z.disconnectedCallback())});
t||(F.__noInsertionPoint=!0,uo9(F,Z,V,E));return F};
Xo0=function(v,Q,V,E,b){b=b===void 0?AoE:b;roG[Q]!=null||(roG[Q]=b(v,Q,E==null?void 0:E.getTemplate,E));var F=roG[Q],t=F.ctor;b=F.getInitialMethods;var p=F.getPropsToForwardBeforeReady;v=F.getPropsToForwardBeforeRegister;E=F.shouldForwardProp;var Z=F.observedAttributes,d=F.shouldLog,w=t(V,{beforeReady:function(){var A=w;A._takeAttributes?A._takeAttributes():A.setPropertiesFromInitialAttributeValues&&A.setPropertiesFromInitialAttributeValues();A=_.L(p(V.polymerController));for(var k=A.next();!k.done;k=
A.next()){var T=_.L(k.value);k=T.next().value;T=T.next().value;Yym(V,k,T);d(Q)&&!X6(k)&&fPT(V.polymerController,k)}V.polymerController=uDb(w,Q)}});
V.polymerController=w;V.polymerController.observedAttributes=Z;F=_.L(w.getExtraMethodsToForward());for(t=F.next();!t.done;t=F.next())Z=_.L(t.value),t=Z.next().value,Z=Z.next().value,yoE(V,t,Z);b=_.L(b());for(F=b.next();!F.done;F=b.next())F=F.value,E(F)&&yoE(V,F),d(Q)&&!X6(F)&&co9(w,F);v=_.L(v());for(E=v.next();!E.done;E=v.next())b=_.L(E.value),E=b.next().value,b=b.next().value,Yym(V,E,b);return w};
$ur=function(v){var Q=I1;I1=v;return Q};
muh=function(v){if(IPQ.has(v)&&I1&&H9h(I1)===v){var Q;(Q=I1)._numRenders!=null||(Q._numRenders=0);I1._numRenders++;if(I1._numRenders>1)throw Error("Tg");return I1}};
vAo=function(v){var Q=H9h(v);I1!==v&&Q.includes("-")&&Uur.set(v,!0)};
H9h=function(v){var Q;return(Q=v==null?void 0:v.tagName.toLowerCase())!=null?Q:""};
QWT=function(v,Q){if(v.componentType===qA)throw Error("Ug");IPQ.add(Q);var V=function(){var E=HTMLElement.call(this)||this;E.is=Q;if(oLh===Q)return E.isInert=!0,E;E.createElement();return E};
_.f(V,HTMLElement);V.prototype.createElement=function(){if(!this.isInert){WcG=this;var E=_.L(_.j7o(function(){return _.P(v,null)})).next().value;
WcG=void 0;jwo(this);return E}};
customElements.define(Q,V)};
EAh=function(v,Q,V,E,b){v.prototype.is=Q;(E==null?0:E.useSink)?V93(v,Q,V,E,b):(V=AoE(v,Q,V,E),GHE(V,Q));return v};
V93=function(v,Q,V,E,b){zXr();var F=_.x(function(t){return aP3(v,Q,t,Object.assign({},E,{getTemplate:V}),b)},"k");
F.debugName=Q+" (CoW wrapped)";QWT(F,Q);return F};
FuT=function(v){return!bLS.has(v)};
Lut=function(v,Q,V,E){function b(){if(!A){for(var k=new Set(Kuo),T=_.L(F.behaviors),c=T.next();!c.done;c=T.next()){c=c.value;for(var C=_.L(Object.getOwnPropertyNames(c)),R=C.next();!R.done;R=C.next()){R=R.value;var l=void 0,S=(l=Object.getOwnPropertyDescriptor(c,R))==null?void 0:l.value;S&&S instanceof Function&&(!d[R]||_.Y("polymer_forward_method_killswitch"))&&k.add(R)}}T=_.L(Object.entries(Object.getOwnPropertyDescriptors(v.prototype)));for(c=T.next();!c.done;c=T.next())C=_.L(c.value),c=C.next().value,
C=C.next().value,C.value instanceof Function&&k.add(c);A=k}return A}
var F=jR9({is:Q,disableElementRegistration:!1,getTemplate:V,providers:E==null?void 0:E.providers,reactivityMode:E==null?void 0:E.reactivityMode},v);if((E==null?0:E.allowedProps)||(E==null?0:E.allowedPropsFromBehaviors)){var t,p;F.allowedProps=[].concat(_.ui((t=E.allowedProps)!=null?t:[]),_.ui((p=E.allowedPropsFromBehaviors)!=null?p:[]))}var Z=Jbb(F,v);Q=Z.observedAttributes;var d={};V=_.L(F.reactiveSchemas);for(E=V.next();!E.done;E=V.next())if(E=E.value,E.type==="signal")d[E.propertyKey]={readOnly:E.readOnly},
E.readOnly&&(d[Znm(E.propertyKey)]={readOnly:!0});else if(E.type==="compute"||E.type==="computeWithMethod"||E.type==="redux")d[E.propertyKey]={readOnly:!0};var w=F.reactiveSchemas.length,A;return{ctor:function(k,T){k=new Z(k);k.beforeReady=T.beforeReady;return k},
props:d,observedAttributes:Q,getInitialMethods:b,getPropsToForwardBeforeRegister:function(){for(var k=[],T=new Set,c=_.L(iLb),C=c.next();!C.done;C=c.next())C=C.value,k.push([C,C!=="observers"&&C!=="properties"]),T.add(C);c=_.L(Object.keys(d));for(C=c.next();!C.done;C=c.next())C=C.value,k.push([C,d[C].readOnly]),T.add(C);c=b();C=_.L(Object.keys(Object.getOwnPropertyDescriptors(v.prototype)));for(var R=C.next();!R.done;R=C.next())R=R.value,!FuT(R)||c.has(R)||T.has(R)||(k.push([R,!1]),T.add(R));k.push(["allowedProps",
!0]);return k},
getPropsToForwardBeforeReady:function(k){var T=[];k=_.L(Object.keys(k));for(var c=k.next();!c.done;c=k.next()){c=c.value;var C=b();FuT(c)&&!C.has(c)&&T.push([c,!1])}k=_.L(F.reactiveSchemas.slice(w));for(c=k.next();!c.done;c=k.next())c=c.value,c.type!=="compute"&&c.type!=="computeWithMethod"&&c.type!=="redux"&&c.type!=="signal"||T.push([c.propertyKey,c.type==="signal"?c.readOnly:!0]);return T},
shouldForwardProp:FuT,shouldLog:AM}};
_.B=function(v,Q,V,E){var b,F,t=(F=(b=E)==null?void 0:b.mode)!=null?F:0;E!=null||(E={});var p;(p=E).reactivityMode!=null||(p.reactivityMode=0);t===1&&_.c5("creator_poly_si_disable_list").includes(Q)&&(t=2);return t===1?EAh(v,Q,V,Object.assign({},E,{useSink:!0}),Lut):EAh(v,Q,V,Object.assign({},E,{useSink:t===2}))};
_.Hn=function(){return function(v,Q,V,E){var b,F,t=(F=(b=E)==null?void 0:b.mode)!=null?F:2;E!=null||(E={});var p;(p=E).reactivityMode!=null||(p.reactivityMode=0);if(t===0)throw Error("Vg`"+t);return V93(v,Q,V,E,t===1?Lut:void 0)}};
_.mV=function(v){return _.Y("creator_poly_si_killswitch")?!1:_.Y("force_all_poly_si_batches")&&(v==="poly_si_all_on_test_check"||v==="creator_poly_si_batch_050"?0:v)||document.documentElement.hasAttribute("use-signals")?!0:!v||_.Y(v+"_holdback_enabled")&&_.Y("kevlar_polysi_holdback")?!1:_.Y(v)};
UJ=function(v){return v?v.icon?v.icon.iconType.toLowerCase():v.customThumbnail?"member":"":""};
t9r=function(v){if(!v)return"";v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())if((Q=Q.value)&&Q.liveChatAuthorBadgeRenderer&&(Q=UJ(Q.liveChatAuthorBadgeRenderer))&&Q!=="verified")return Q;return""};
pPo=function(v,Q){if(!v)return null;var V;return((V=v.find(function(E){return E&&E.liveChatAuthorBadgeRenderer?UJ(E.liveChatAuthorBadgeRenderer)===Q:!1}))==null?void 0:V.liveChatAuthorBadgeRenderer)||null};
_.wPt=function(v){var Q=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;v=e70(v);Q=e70(Q);var V=ZLG(v.hex);Q=ZLG(Q.hex);var E=Q[0]/255;var b=Q[1]/255,F=Q[2]/255,t=Math.max(E,b,F),p=Math.min(E,b,F),Z=0,d=0,w=.5*(t+p);t!=p&&(t==E?Z=60*(b-F)/(t-p):t==b?Z=60*(F-E)/(t-p)+120:t==F&&(Z=60*(E-b)/(t-p)+240),d=0<w&&w<=.5?(t-p)/(2*w):(t-p)/(2-2*w));E=[Math.round(Z+360)%360,d,w];V=Pwb(V,Q);for(v=dWT(v.hex);V<4.5;){v=E[2]>=.5?v.darker((4.5-V)/2):v.brighter((4.5-V)/2);V=v.toString();
b=h7Q(V);if(!b.length)throw Error("Xd`"+V);V=b;V=Pwb(V,Q)}return v.hex()};
Pwb=function(v,Q){v=_.Wyo(v);Q=_.Wyo(Q);return(Math.max(v,Q)+.05)/(Math.min(v,Q)+.05)};
_.vg=function(v){return"#"+("000000"+(v&16777215).toString(16)).slice(-6)};
_.AEm=function(v){for(var Q=0,V=0;V<v.length;V++)Q=v.charCodeAt(V)+((Q<<5)-Q);v="#";for(V=0;V<3;V++)v+=("00"+(Q>>V*8&255).toString(16)).slice(-2);return v};
kQB=function(v){v=(v||"").split(":");v.length===1&&v.unshift("yt-icons");v[1]=v[1].toLowerCase();return v};
GQ0=function(v,Q){var V=(Q=Q===void 0?!1:Q)?TyB:YVS,E=Q?yEQ:cEG;v.getIconNames().forEach(function(b){b=Q?b:b.substring(b.indexOf(":")+1);v.name==="yt-icons"?fcE.add(b):b.includes("-filled")?V.add(b):E.add(b)})};
QK=function(v,Q,V,E){V=V===void 0?!1:V;E=E===void 0?!1:E;var b,F,t;return _.e(function(p){if(p.nextAddress==1)return p.yield(CwZ,2);if(E)return p.return(fcE.has(v));b=V?TyB:YVS;F=V?yEQ:cEG;return Q?(t=v.includes("-filled")?v:v.concat("-filled"),p.return(b.has(t))):p.return(F.has(v))})};
_.VK=function(v){if(M90(v))return v.toString();var Q=OLE.get(v);if(Q)return Q;Q=v.toLowerCase();var V="yt-icons",E=Q.replace(/_/g,"-");switch(v){case "MY_CHANNEL":Q="account_circle";break;case "ADD_TO_LIBRARY":Q="add";break;case "ALERT_WARN_RED":Q="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":Q="person_music";break;case "BLOCK_USER":Q="block";break;case "CAPTIONS":Q="closed_caption";break;case "CLOSED_CAPTION":V="av";Q="closed-caption";break;case "COLLECTION":V="maps";Q="layers";break;case "CONTACT":V=
"icons";Q="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="yt-studio-system-icons";Q=E.split("creator-studio-")[1];break;case "DISMISSAL":Q="close";break;case "DO_NOT_DISTURB":Q="block";break;case "DOGFOOD":V="icons";Q="pets";break;case "DRAFT":Q="paper_corner_folded";
break;case "EMPTY_LIKE":Q="like_outline";break;case "EXIT_APP":Q="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":Q=E;break;case "GAMES":V="ytg";Q="my-games";break;case "GO_TO_PAGE":Q="arrow-forward";break;case "GROUP":V="social";break;case "HIDE":Q="not_interested";break;case "INPUT_COMPONENT":V="icons";Q="settings-input-component";break;case "KIDS_BLOCK":Q="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":V="ytg";Q="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":V=
"ytg";Q="membership-post-purchase";break;case "MULTIVIEW":Q="screen_multi_view";break;case "MY_LOCATION":V="maps";Q=E;break;case "NOTIFICATIONS_INBOX":Q="NOTIFICATIONS";break;case "NEXT":Q="chevron_right";break;case "OFFLINE":Q="power-settings-new";break;case "PAUSE":V="miniplayer";break;case "PAYMENT":V="icons";break;case "PHONE_DOWNLOAD":Q="phone_download";break;case "PREMIUM_STANDALONE":V="yt-logos";Q="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":V="yt-logos";Q="premium_standalone_cairo";
break;case "QUESTION_ANSWER":Q="question_answer";break;case "REDEEM":V="icons";Q="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":Q="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":Q="library_add";break;case "SCHOOL":V="yt-sys-icons";Q="creator_academy";break;case "SETTINGS_LIGHT":Q="settings_applications";break;case "SETTINGS_MATERIAL":Q="settings";break;case "SEARCH_HISTORY":Q="watch_history";break;case "SHOPPING_BAG":Q="bag";break;case "SOCIAL":case "PEOPLE":V=
"yt-icons";Q="people";break;case "STAFF_PICK":V="ytg";Q="spotlight";break;case "START_DVR":Q="add";break;case "STOP_DVR":V="av";Q="stop";break;case "TAB_LIKED":Q="like";break;case "TAB_INBOX":Q="mail";break;case "TERMS_OF_SERVICE":V="icons";Q="description";break;case "TRENDING":Q="fire";break;case "UNBLOCK_USER":Q="remove";break;case "UNPLUGGED_DARK_THEME":V="image";Q="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":Q="live";break;case "UNPLUGGED_SPORTS":V="ytu";Q="visibility-off";break;
case "VIDEOS":V="av";Q="play-circle-filled";break;case "YOUTUBE":V="yt-logos";Q="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":V="yt-logos-ext";Q="yt-logo-red-updated";break;case "YOUTUBE_LOGO":V="yt-logos-ext";Q="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";Q=E;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":V="yt-sys-icons";Q="youtube_improve_tv";break;case "OUTLINE_BAG":V=
"yt-sys-icons";Q="bag";break;case "QUEUE_PLAY_LAST":V="yt-sys-icons";Q="list_queue_last";break;case "SLASH_CIRCLE_LEFT":Q="slash_circle_left";break;case "SPEED_1_POINT_2X":Q="1_point_2x";break;case "SPEED_1_POINT_5X":Q="1_point_5x";break;case "SPEED_1_POINT_8X":Q="1_point_8x";break;case "SPEED_POINT_2X":Q="point_2x";break;case "SPEED_POINT_5X":Q="point_5x";break;case "SPEED_POINT_8X":Q="point_8x";break;case "SPEED_1X":Q="1x";break;case "SPEED_2X":Q="2x";break;case "TAB_BOOKMARK":Q="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":V="yt-sys-icons";Q="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":V="yt-sys-icons";Q="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":V="yt-sys-icons",Q="tic_tac_toe"}Q=V+":"+Q;OLE.set(v,Q);return Q};
M90=function(v){var Q;_.Y("kevlar_use_wil_icons")?Q=!!_.ht().resolve(_.Eo).resolveIcon({iconName:v.toString()}):Q=!1;return Q};
_.FL=function(v,Q,V,E){V=V===void 0?{}:V;E=E===void 0?!1:E;V===null&&(V={});var b=_.c5("kevlar_command_handler_command_banlist");b=_.L(b);for(var F=b.next();!F.done;F=b.next())if(F=v?v.hasOwnProperty(F.value):void 0,F)return!1;b=_.y(v.commandMetadata,_.Kt);return E&&b!=null&&b.url?!1:!Q.disableCommandHandlerOverride&&_.bd.instance?(E=_.bd.instance,V.form||(V.form={element:Q}),V.form.element||(V.form.element=Q),!V.clickedVisualElement&&Q.visualElement&&(V.clickedVisualElement=Q.visualElement),E.resolveCommand(v,
V),!0):!1};
DW0=function(v,Q){v=Kx(v);for(var V=_.L(v.visibilityMonitorKeys||[]),E=V.next();!E.done;E=V.next())Q.unobserveByKey(E.value);v.visibilityMonitorKeys=void 0};
qV9=function(v,Q){if(_.Mo()){if(_.Y("kevlar_vimio_use_shared_monitor"))R7Z(v,Q.data);else if(!R7Z(v,Q.data))return;var V=Q.data,E=nAb(V);if(_.Y("enable_client_ve_spec_logging"))DW0(v,Q.observer);else{var b=Kx(v);b.trackedParams&&b.trackedParams!==E&&DW0(v,Q.observer)}b=Kx(v);!V||b.data&&b.data===V||(b.data=V);lcG(v,Q);b.trackedParams=E}};
lcG=function(v,Q){var V=Q.observer;if(!V&&_.Y("web_skip_missing_vimio_observer")){var E,b;_.Iy(new _.xd("VisibilityObserver is not defined.",v.tagName,v.trackedParams,(E=Q.data)==null?void 0:E.trackingParams,(b=Q.data)==null?void 0:b.loggingDirectives))}else{var F=Q.layer,t=Q.visibilityCallback||function(){},p=Q.prescanCallback,Z=Kx(v);
E=[];Q.showOption&&E.push(V.observe(v,function(){Q.skipLogging&&Q.skipLogging()||_.id().reportShown(Z,void 0,F);t(!0)},Q.showOption));
Q.hideOption&&E.push(V.observe(v,function(){_.id().reportHidden(Z,void 0,F);t(!1)},Q.hideOption));
Q.prescanOption&&p&&E.push(V.observe(v,function(){p()},Q.prescanOption));
Z.visibilityMonitorKeys=E}};
R7Z=function(v,Q){v=Kx(v);if(v.visualElement&&!Q)return!0;if(!Q)return!1;var V=!1;if(_.Y("enable_client_ve_spec_logging")){var E,b;V=!!((E=Q.loggingDirectives)==null?0:(b=E.clientVeSpec)==null?0:b.uiType)}E=nAb(Q);if(!E&&!V)return!1;_.Y("mweb_component_visibility_logging")&&(v.veContainer||(v.veContainer={}),v.veContainer.trackingParams=E);if(v.trackedParams&&v.trackedParams===E)return!1;var F;if(_.Y("enable_client_ve_spec_logging")&&((F=v.visualElement)==null?0:F.isClientVe())){var t;F=(t=v.visualElement)==
null?void 0:t.getAsJspb();var p,Z,d,w;if(_.h5(F,2)===((p=Q.loggingDirectives)==null?void 0:(Z=p.clientVeSpec)==null?void 0:Z.uiType)&&_.h5(F,3,-1)===((d=Q.loggingDirectives)==null?void 0:(w=d.clientVeSpec)==null?void 0:w.elementIndex))return!1}if(_.Y("enable_client_ve_spec_logging")){var A,k;!v.visualElement&&((A=Q.loggingDirectives)==null?0:(k=A.clientVeSpec)==null?0:k.uiType)&&(p=Q.loggingDirectives.clientVeSpec,Q=p.uiType,t=p.elementIndex,p=p.clientYoutubeData,v.visualElement=_.Lx(_.tR(),{veType:Q,
elementIndex:t,clientYouTubeData:p}))}return!0};
nAb=function(v){if(v==null?0:v.rendererContext){var Q=_.y(v.rendererContext,_.px);if(Q==null?0:Q.loggingDirectives)return Q.loggingDirectives.trackingParams}return(v==null?0:v.loggingDirectives)?v.loggingDirectives.trackingParams:v==null?void 0:v.trackingParams};
Kx=function(v){var Q;return(Q=v.polymerController)!=null?Q:v};
Nyt=function(v){_.id();if(_.v5(eM().JSC$12801_elementShouldLogGesture).bind(eM())(v,4)){SVt(v);var Q=z7Z(v);JE0.set(v,Q)}};
SVt=function(v){JE0.has(v)&&(JE0.get(v).cancel("untrack hover element"),JE0.delete(v))};
z7Z=function(v){var Q,V=[],E=!1,b=new _.Ry(function(F,t){ZM(v,"mouseenter",_.v5(function(){var p,Z,d;return _.e(function(w){if(w.nextAddress==1)return Q=(0,_.wO)(),p=xWm(v),V.push(p),Z=By3(v,function(){E=!0;t(Error("Wg"))}),w.yield(p,2);
if(w.nextAddress!=3)return Z&&Pg(Z),d=gAm(v),V.push(d),w.yield(d,3);F();_.q1(w)})}))});
b.then(function(){var F=(0,_.wO)()-Q;F=Math.round(F);if(!(500>F||6E5<=F)){var t=v.getScreenLayer?v.getScreenLayer():void 0;t=_.Mo(t)||"";var p=sW0(_.id(),v);_.jP(t,v.visualElement?v.visualElement:_.dE(p),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:F}})}Nyt(v)},function(){hR&&(hR(),hR=null);
E&&(SVt(v),Nyt(v))});
return b};
xWm=function(v){var Q;return(new _.Ry(function(V,E){hR=function(){E(Error("Xg"))};
Q=_.XT.debounce(_.v5(function(){Pg(b);V()}),1,100);
var b=_.wE(v,"mousemove",Q)})).thenCatch(function(){var V=_.XT.cancelDebouncedJobMap.get(Q);
V&&_.XT.cancelJob(V)})};
gAm=function(v){var Q;return(new _.Ry(function(V,E){hR=function(){E(Error("Yg"))};
Q=ZM(v,"mouseleave",_.v5(function(){V()}))})).thenCatch(function(){Pg(Q)})};
By3=function(v,Q){return ZM(v,"mouseleave",_.v5(Q))};
jWS=function(v){usS&&_.AR.cancel(usS);usS=_.AR.run(function(){_.Hj(v,"yt-visibility-refresh");usS=0})};
Wu9=function(v){v=Number(v);return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
XP3=function(v){if(!v)return!1;if(_.y(v,_.oAE))return!0;var Q;if(v=(Q=_.y(v,_.E2))==null?void 0:Q.commands)for(Q=_.L(v),v=Q.next();!v.done;v=Q.next())if(_.y(v.value,_.oAE))return!0;return!1};
ach=function(v){var Q=!0;Q=Q===void 0?!0:Q;if(!v.useSignals&&!v.experimentalPropertiesChanged||_.Y("experimental_templating_behavior_nopatch_killswitch")){var V=v._propertiesChanged;v._propertiesChanged=function(E,b,F){Q?v.debounceRender():v.doRender();V&&V.call(v,E,b,F)}}};
rES=function(v,Q){if(v.useSignals||v.experimentalPropertiesChanged)if(_.Y("experimental_templating_behavior_nopatch_killswitch"))v.experimentalPropertiesChanged=function(){};
else return;var V=new Set,E=[v].concat(_.ui(v.behaviors));E=_.L(E);for(var b=E.next();!b.done;b=E.next()){b=b.value;for(var F in b.properties)V.has(F)||(v._addPropertyEffect(F,"function",Q),V.add(F))}};
$Wt=function(){var v=Polymer.Element,Q=v._prepareTemplate;v._prepareTemplate=function(){Q.call(this);var V=this.prototype;if(V.experimentalTemplatingInUse&&V.experimentalTemplatingInUse()&&V.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.ro(Error("Zg"));else{V=this.template.content.childNodes;for(var E=V.length-1;E>=0;E--){var b=V[E];b.nodeName!=="STYLE"&&b.nodeName!=="LINK"&&b.nodeName!=="SCRIPT"&&b.nodeName!=="#comment"&&b.remove()}}}};
Ic3=function(v){var Q=!0;Q=Q===void 0?!0:Q;$Wt();var V=v.ready;v.ready=function(){this._template=null;V.call(this)};
rES(v,Q?v.debounceRender:v.doRender)};
mWo=function(v,Q,V){if(V===null||V===void 0)return V;var E=Mz3(v.tagName.toLowerCase(),Q,function(){throw Error("Tb");});
if(E===null)return V;E=HLB[E];var b;if((b=E.isUnwrappable)==null?0:b.call(E,V)){if(E.unwrap)return E.unwrap(V);throw Error("bh");}return E.filterString?E.filterString(v.tagName,Q,String(V)):V};
UWr=function(v,Q,V){var E=Q[Q.length-1]!=="$",b=mWo(v,Q,V);if(E)if(typeof b==="function"&&Q.startsWith("reactiveon")&&Q===Q.toLowerCase()){var F=iH;Jq9(v,Q.slice(8),function(t){Xb(F,function(){b(t)})})}else v[Q]=b;
else V=b==null?null:String(b),HR(v,Q.slice(0,-1),V)};
T4=function(v){v33.length===0&&requestAnimationFrame(function(){setTimeout(function(){var Q=v33.slice();v33.length=0;Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;try{V()}catch(E){_.kD(E)}}})});
v33.push(v)};
Qj9=function(v){if(v){var Q=v.component;if(Q){var V;Q==null||(V=Q.events)==null||V.publish("DISCONNECTED");var E;Q==null||(E=Q.onDisconnected)==null||E.call(Q)}var b,F;(b=v.__spec)==null||(F=b.didUnmount)==null||F.call(b);for(Q=0;Q<v.childNodes.length;Q++)Qj9(v.childNodes[Q])}};
VAS=function(v,Q,V){var E=Q&&Q.key,b=LU;b[0]=v;b[1]=E;b[2]=void 0;for(var F in Q)Q.hasOwnProperty(F)&&(v=Q[F],E=t1,E.push(F),E.push(v));Q=LU;a:{if(F=LU[2])for(v=0;v<F.length;v+=2)if(F[v]==="nonce"){F=F[v+1];break a}F=""}F=$FQ(Q[0],Q[1],F);v=Qr(F);E=Q[2];if(!v.staticsApplied&&(v.staticsApplied=!0,E&&E.length))if((b=v._attrsArr)&&b.length){for(b=0;b<E.length;b+=2)YD[E[b]]=b+1;b=v._attrsArr||(v._attrsArr=zdZ(0));for(var t=0,p=0;p<b.length;p+=2){var Z=b[p],d=b[p+1],w=YD[Z];w?E[w]===d&&delete YD[Z]:(b[t]=
Z,b[t+1]=d,t+=2)}Ir(b,t);for(var A in YD)sco(F,A,E[YD[A]],hq),delete YD[A]}else for(A=0;A<E.length;A+=2)sco(F,E[A],E[A+1],hq);Vu0(F,v,hq);Ir(Q,0);V&&V(Vr);IeB()};
_.yK=function(v,Q,V){V===void 0?delete v[Q.name]:v[Q.name]=V};
_.cg=function(v){var Q={androidIncludeFontPadding:!1},V=0,E=[],b=[],F=[];if(v.simpleText)return Q.content=v.simpleText,Q;if(v.runs===void 0)return Q.content="",Q;v=_.L(v.runs);for(var t=v.next();!t.done;t=v.next()){t=t.value;var p=t.text,Z=void 0,d=(Z=p)==null?void 0:Z.length;if(p&&d){E.push(p);if(t.bold||t.italics||t.strikethrough||t.underline||t.textColor!=null&&t.textColor!==0||t.deemphasize){p=b;Z=p.push;var w={startIndex:V,length:d};t.bold&&(w.weightLabel="FONT_WEIGHT_MEDIUM");t.italics&&(w.italic=
!0);t.strikethrough&&(w.strikethrough="LINE_STYLE_SINGLE");t.underline&&(w.underline="LINE_STYLE_SINGLE");t.textColor!=null&&t.textColor!==0?document.documentElement.hasAttribute("dark")?w.fontColor=t.darkModeTextColor||t.textColor:w.fontColor=t.textColor:t.deemphasize&&(document.documentElement.hasAttribute("dark")?w.fontColor=parseInt("ff"+E3E("#aaa").substring(1),16):w.fontColor=parseInt("ff"+E3E("#606060").substring(1),16));Z.call(p,w)}t.navigationEndpoint&&(p=F,Z=p.push,w={startIndex:V,length:d,
onTap:{innertubeCommand:t.navigationEndpoint}},t.loggingDirectives&&_.yK(w,b69,t.loggingDirectives),Z.call(p,w));V+=d}}Q.content=E.join("");Q.styleRuns=b.length?b:void 0;Q.commandRuns=F.length?F:void 0;return Q};
KnE=function(v){if(v==null||!v.runs)return!0;v=_.L(v.runs);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.bracket||Q.errorUnderline||Q.deemphasize||_.y(Q,fx)||_.y(Q,Fn9))return!1;return!0};
i6r=function(v,Q){return function(V){var E=Q.unit;if(E!==V)throw Error("eh`"+v+"`"+E+"`"+V);return Q}};
G4=function(v){if(!((v==null?0:v.value)&&(v==null?0:v.unit)))return"";switch(v.unit){case "DIMENSION_UNIT_FRACTION":var Q="%";break;default:Q="px"}v=v.value;Q==="%"&&(v*=100);return""+v+Q};
Lnm=function(v){try{return v()}catch(Q){_.Iy(Q)}};
_.MQ=function(v){var Q=_.y(v,_.Cx);if(Q)return Q;if((Q=_.y(v,tAh))&&Q.commands)return pdB(Q.commands);if((Q=_.y(v,e8B))&&Q.commands)return pdB(Q.commands);if((v=_.y(v,Z6o))&&v.identifier&&v.command&&(PCQ||(PCQ=[]),!PCQ.includes(v.identifier)))return PCQ.push(v.identifier),_.y(v.command,_.Cx)};
pdB=function(v){if(v.length!==0){var Q=[];v=_.L(v);for(var V=v.next();!V.done;V=v.next())(V=_.MQ(V.value))&&Q.push(V);return{commandExecutorCommand:{commands:Q}}}};
_.DM=function(v){var Q=v.defaultTarget,V=v.elementConfig,E=v.elementsCommand,b=v.skipOnClick,F=v.forceNewState,t=v.additionalCommandArgs,p=v.innertubeCommand||_.MQ(E);if(p){v={};var Z=dEQ(p);E=Z.navigatingCommand;Z=Z.href;E&&Z?(v.href$=Z,h8T(v,E,Z,Q),_.Y("web_atagconfig_pointerdown")&&wdt(v,E),F&&(v["force-new-state$"]=!0)):(v.role$="button",v.href$="javascript:void(0);");_.y(p,AXb)&&(v["aria-haspopup$"]=!0);b||(v.onclick=function(d){var w={};if(kub(d)){var A=(t==null?void 0:t.clickedVisualElement)||
(t==null?void 0:t.getClickedVisualElement)&&t.getClickedVisualElement();A&&(w={clickedVisualElement:A});w=Object.assign({},{form:{element:d.target,event:d,createScreenConfig:w}},t);d.preventDefault();_.Oo(p,w)}});
return Object.assign({},V,v)}};
T19=function(v){if(v.length){if(v.length===1)return v[0];var Q={};_.yK(Q,_.E2,{commands:v});return Q}};
Rd=function(v){return v&&v.href$!=="javascript:void(0);"};
dEQ=function(v){var Q,V=((Q=_.y(v,_.E2))==null?void 0:Q.commands)||[v];v=_.L(V);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var E=void 0,b=void 0;V=(b=_.y((E=Q)==null?void 0:E.commandMetadata,_.Kt))==null?void 0:b.url;_.Y("web_remove_web_navigation_endpoint_data")||(E=void 0,V=V||((E=_.y(Q,YKo))==null?void 0:E.url));if(V&&V!=="/service_ajax"){if(E=_.s9(V,yXT))return v=_.Bq(E),{navigatingCommand:Q,href:v};_.Iy(new _.xd("AttributedString URL could not be sanitized",V))}}return{}};
kub=function(v){return v.button!==void 0?v.button===0&&!(v.shiftKey||v.altKey||v.metaKey||v.ctrlKey):!(v.shiftKey||v.altKey||v.metaKey||v.ctrlKey)};
h8T=function(v,Q,V,E){V=!Z9(V);var b,F,t;if((b=_.y(Q,_.tn))!=null&&b.nofollow||(F=_.y(Q,_.sn))!=null&&F.nofollow||(t=_.y(Q,_.FJ))!=null&&t.nofollow||V)v.rel$="nofollow";var p;Q=((p=_.y(Q,_.FJ))==null?void 0:p.target)==="TARGET_NEW_WINDOW"?"_blank":E===void 0?"":E;v.target$=Q};
wdt=function(v,Q){Q.clickTrackingParams&&(v.params={itct:Q.clickTrackingParams});v.onpointerdown=function(V){cXh(V)};
v._data=Q};
fwo=function(v){(v.loggingUrls||[]).forEach(function(Q){E0(Q.baseUrl,Q.attributionSrcMode)})};
cXh=function(v){var Q=v.currentTarget;v=Lnm(function(){return Q.href});
var V=Q.params;v&&_.ox(v,V||{},8,!0)};
_.nx=function(v,Q){(v=_.MQ(v))&&_.Oo(v,Q)};
_.Oo=function(v,Q){v7Z(function(V){Q?V.resolveCommand(v,Q):V.resolveCommand(v)})};
O6b=function(v,Q){var V=["yt-core-attributed-string__link"];Q!=null&&Q.noLinkColor||((Q==null?0:Q.isOverlay)?V.push("yt-core-attributed-string__link--overlay-call-to-action-color"):V.push("yt-core-attributed-string__link--call-to-action-color"),(Q==null?0:Q.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color"));V={className:V.join(" "),tabindex$:"0"};var E=v.onTap||v.onLongPress;if(!E)return V;var b=Gu9(v);b&&(V["aria-label$"]=b);Q=_.DM({elementsCommand:E,elementConfig:V,skipOnClick:!(Q==
null||!Q.skipOnClick),forceNewState:!0});v.onLongPress&&(E=new CCT(function(){var F=_.MQ(v.onLongPress);F&&_.ht().resolve(_.At).resolveCommand(F)}),Q&&MAT(E,Q));
return Q||V};
Gu9=function(v){var Q,V;return(Q=v.onTapOptions)==null?void 0:(V=Q.accessibilityInfo)==null?void 0:V.accessibilityLabel};
DEb=function(v){var Q=v;v<=16777215&&(Q+=parseInt("ff000000",16));return _.CF(Q)};
R8h=function(v){var Q=v.isDarkTheme;var V=v.extension;v=v.runColor;var E=void 0;if(V=V==null?void 0:V.colorMap){Q=Q?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";V=_.L(V);for(var b=V.next();!b.done;b=V.next())if(b=b.value,Q===b.key){E=b.value;break}}E==null&&v&&(E=v);if(E)return DEb(E)};
ld=function(v){var Q=v.config;var V=v.image;var E=v.imageConfig;var b=v.imageWrapperConfig;var F=v.run;var t=v.tag;var p=v.textLength;var Z=v.startIndex===void 0?0:v.startIndex;v=v.length;Z===void 0&&(Z=0);F={run:F,startIndex:Z,endIndex:v!==void 0?Z+v:p,tag:t};V&&(F.image=V);E&&(F.imageConfig=E);b&&(F.imageWrapperConfig=b);Q&&(F.config=Q);return F};
lw9=function(v,Q){var V=[];V.push("yt-core-attributed-string");(Q==null?0:Q.className)&&V.push(Q==null?void 0:Q.className);(Q==null?0:Q.ellipsisTruncate)?V.push("yt-core-attributed-string--ellipsis-truncate"):(Q==null?0:Q.noWrap)?V.push("yt-core-attributed-string--white-space-no-wrap"):(Q==null?0:Q.noPreWrap)||V.push("yt-core-attributed-string--white-space-pre-wrap");(Q==null?0:Q.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color");v.alignment&&V.push(n3Q(v.alignment));v.lineBreakMode&&
V.push("yt-core-attributed-string--word-wrapping");return V.join(" ")};
qKB=function(v,Q){if(v.weight)return v.weight;switch(v.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return Q?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
SKh=function(v){switch(v){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
n3Q=function(v){switch(v){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
z4=function(v,Q,V){var E=Q;v.content&&V&&(V=v.content.indexOf("\n"),V!==-1&&(E=Math.min(Q,V)));if(!v.content||v.content.length<=E)Q=v;else if(v.attachmentRuns||v.commandRuns||v.decorationRuns||v.styleRuns||v.paragraphStyleRuns){Q=qQ(v.content,E);V=E;var b=v.attachmentRuns;if(b){var F=[];b=_.L(b);for(var t=b.next();!t.done;t=b.next())t=Object.assign({},t.value),t.startIndex===void 0||t.startIndex>=V||(t.length||(t.length=0),t.length+t.startIndex>V&&(t.length=V-t.startIndex),F.push(t));V=F}else V=void 0;
F=z8Q(E,v.commandRuns);b=E;var p=v.decorationRuns;if(p){t=[];p=_.L(p);for(var Z=p.next();!Z.done;Z=p.next()){Z=Z.value;var d=_.y(Z.textDecorator,SM);if(d&&d.startIndex!==void 0&&!(d.startIndex>=b)){Z=Object.assign({},Z,{textDecorator:{highlightTextDecorator:Object.assign({},d)}});d=_.y(Z.textDecorator,SM);if(!d.length||d.length+d.startIndex>b)d.length=b-d.startIndex;t.push(Z)}}b=t}else b=void 0;t=z8Q(E,v.styleRuns);if(p=v.paragraphStyleRuns)for(v=[],p=_.L(p),Z=p.next();!Z.done;Z=p.next()){var w=Z.value;
Z=Object.assign({},w);if(!(Z.startIndex===void 0||Z.startIndex>=E)){if(!Z.length||Z.length+Z.startIndex>E)Z.length=E-Z.startIndex;d=[];var A=void 0,k=void 0;if((A=w)==null?0:(k=A.listGroup)==null?0:k.listItems)for(w=_.L(w.listGroup.listItems),A=w.next();!A.done;A=w.next())if(A=Object.assign({},A.value),!(A.startIndex===void 0||A.startIndex>=E)){if(!A.length||A.length+A.startIndex>E)A.length=E-A.startIndex;d.push(A)}d.length>0&&(Z.listGroup||(Z.listGroup={}),Z.listGroup=Object.assign({},Z.listGroup,
{listItems:d}));v.push(Z)}}else v=void 0;Q={content:Q,attachmentRuns:V,commandRuns:F,decorationRuns:b,styleRuns:t,paragraphStyleRuns:v}}else Q=Object.assign({},v,{content:qQ(v.content,E)});return Q};
z8Q=function(v,Q){if(Q){var V=[];Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next())if(E=Object.assign({},E.value),!(E.startIndex===void 0||E.startIndex>=v)){if(!E.length||E.length+E.startIndex>v)E.length=v-E.startIndex;V.push(E)}return V}};
qQ=function(v,Q){var V=Q,E;if(E=V>0)E=v.charCodeAt(V-1),E=E>=55296&&E<=56319;E&&(V=v.charCodeAt(V),E=V>=56320&&V<=57343);E&&--Q;return v.substring(0,Q)};
B1Q=function(v,Q,V){V=V===void 0?JXS:V;if(v){var E=_.ht().resolve(Aq);E||_.Y("mweb_no_observer_killswitch")?qV9(v,{data:Q,observer:E,visibilityCallback:V,hideOption:N10,showOption:xEB,layer:v.layer}):_.Iy(new _.xd("Warning: monitorVisibility called with null observer",v.tagName,Q==null?void 0:Q.loggingDirectives,Q==null?void 0:Q.trackingParams))}else _.Iy(new _.xd("Warning: monitorVisibility called with null element",Q==null?void 0:Q.loggingDirectives,Q==null?void 0:Q.trackingParams,Q==null?void 0:
Q.rendererContext))};
XdQ=function(v,Q){var V=[],E=v.content.length,b,F=(b=_.ht().resolve(_.d$(_.JR)))==null?void 0:b();if(v.paragraphStyleRuns){b=_.L(v.paragraphStyleRuns);for(var t=b.next();!t.done;t=b.next()){var p=V.push,Z=p.apply;var d=void 0;t=t.value;if((d=t.listGroup)!=null&&d.listItems){d=[];b:switch(t.listGroup.listType){case "LIST_TYPE_BULLET":var w="ul";break b;default:w="span"}d.push(ld({run:t,textLength:E,tag:w,config:{className:"yt-core-attributed-string__list-group"},startIndex:t.startIndex,length:t.length}));
w=_.L(t.listGroup.listItems);for(var A=w.next();!A.done;A=w.next()){A=A.value;b:switch(t.listGroup.listType){case "LIST_TYPE_BULLET":var k="li";break b;default:k="span"}d.push(ld({run:t,textLength:E,tag:k,startIndex:A.startIndex,length:A.length}))}t=d}else t=[];Z.call(p,V,_.ui(t))}}if(v.styleRuns&&(Q==null||!Q.noStyleRuns))for(b=_.L(v.styleRuns),p=b.next();!p.done;p=b.next()){t=p=p.value;d=F;Z=Q;d=R8h({extension:_.y(t.styleRunExtensions,g3Z),isDarkTheme:d===void 0?!1:d,runColor:t.fontColor});A=t;
w=[];d&&w.push("yt-core-attributed-string--link-inherit-color");A.italic&&w.push("yt-core-attributed-string--italicized");A.underline&&A.strikethrough?w.push("yt-core-attributed-string--underline-strikethrough",SKh(A.underline)):A.underline?w.push("yt-core-attributed-string--underlined",SKh(A.underline)):A.strikethrough&&w.push("yt-core-attributed-string--strikethrough",SKh(A.strikethrough));if(A.baselineOffset){a:switch(A.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":A="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":A="yt-core-attributed-string--baseline-offset-superscript";break a;default:A="yt-core-attributed-string--baseline-offset-unknown"}w.push(A)}w=w.join(" ");A={};if(t.weight||t.weightLabel)A.fontWeight=qKB(t,Z==null?void 0:Z.isHeadline).toString();d&&(A.color=d);V.push(ld({run:p,textLength:E,tag:"span",config:{className:w,style:A},startIndex:p.startIndex,length:p.length}))}if(v.decorationRuns)for(b=_.L(v.decorationRuns),p=b.next();!p.done;p=b.next())p=p.value,
Z={},p.textDecorator&&(w=p.textDecorator,t=F===void 0?!1:F,A=[],d=_.y(w,SM),w=_.y(w,sjS),d?(w=A,A=w.concat,k=[],(t=R8h({extension:_.y(d.highlightTextDecoratorExtensions,u7E),isDarkTheme:t,runColor:d.backgroundColor}))&&k.push("background-color: "+t+";"),d.backgroundCornerRadius!==void 0&&k.push("border-radius: "+d.backgroundCornerRadius+"px;"),d.leftPadding!==void 0&&k.push("padding-left: "+d.leftPadding+"px;"),d.rightPadding!==void 0&&k.push("padding-right: "+d.rightPadding+"px;"),d.topPadding!==
void 0&&k.push("padding-top: "+d.topPadding+"px;"),d.bottomPadding!==void 0&&k.push("padding-bottom: "+d.bottomPadding+"px;"),A=A.call(w,k)):w&&(d=A,A=d.concat,t=t?"#2ba640":"#107516",t=w.color?DEb(w.color):t,t=["padding: 2px;","border-top: solid "+t+" 2px;","border-bottom: solid "+t+" 2px;","background: linear-gradient(135deg, "+t+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+t+" 3px, rgba(0, 0, 0, 0) 3px);"],A=A.call(d,t)),t=A.join(" "),Z.style$=t,t=p.textDecorator,d=[],w=_.y(t,
sjS),_.y(t,SM)?d.push("yt-core-attributed-string--highlight-text-decorator"):w&&d.push("yt-core-attributed-string--bracket-text-decorator"),t=d.join(" "),Z.className=t,Z.dir="auto"),t=_.y(p.textDecorator,SM),d=_.y(p.textDecorator,sjS),w=_.y(p.textDecorator,SM),A=_.y(p.textDecorator,sjS),V.push(ld({run:p,textLength:E,tag:"span",config:Z,startIndex:(t==null?void 0:t.startIndex)||(d==null?void 0:d.startIndex)||0,length:(w==null?void 0:w.length)||(A==null?void 0:A.length)||0}));if(v.commandRuns&&(Q==
null||!Q.noEndpoints))for(F=_.L(v.commandRuns),b=F.next();!b.done;b=F.next())b=b.value,p=O6b(b,Q),V.push(ld({run:b,textLength:E,tag:"a",config:p,startIndex:b.startIndex,length:b.length}));if(v.attachmentRuns)for(v=_.L(v.attachmentRuns),F=v.next();!F.done;F=v.next()){F=F.value;Z=p=void 0;b={className:"yt-core-attributed-string--inline-block-mod"};if((Z=F.element)==null?0:Z.properties){Z=(p=F.element)==null?void 0:p.properties;p=[];Z=_.y(Z,jjb);if(Z==null?0:Z.margin)Z=Z.margin,Z.left&&p.push("margin-left: "+
G4(Z.left)+";"),Z.right&&p.push("margin-right: "+G4(Z.right)+";"),Z.top&&p.push("margin-top: "+G4(Z.top)+";"),Z.bottom&&p.push("margin-bottom: "+G4(Z.bottom)+";");p=p.length!==0?p.join(" "):void 0;b.style$=p}t=void 0;p={alt:"",preserveHeight:!0,preserveWidth:!0};Z=["yt-core-attributed-string__image-element"];if(F.alignment){a:switch(F.alignment){case "ALIGNMENT_BASELINE":d="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":d="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:d="yt-core-attributed-string__image-element--image-alignment-bottom"}Z.push(d)}if((t=F.element)==null?0:t.properties)t=[],d=_.y(F.element.properties,jjb),(d==null?0:d.height)&&t.push("height: "+G4(d.height)+";"),(d==null?0:d.width)&&t.push("width: "+G4(d.width)+";"),t=t.length!==0?t.join(" "):void 0,p.style$=t,d=void 0,t=((d=_.y(F.element.properties,WnB))==null?void 0:d.label)||"",p.alt=t;p.className=Z.join(" ");Z=void 0;w=d=void 0;t=((w=F.element)==null?0:w.type)?(d=_.y(F.element.type,
o30))==null?void 0:d.image:void 0;V.push(ld({run:F,textLength:E,tag:"img",image:t,imageConfig:p,imageWrapperConfig:b,startIndex:F.startIndex,length:(Z=F.length)!=null?Z:0}))}if(Q==null?0:Q.headerRuns)for(Q=_.L(Q.headerRuns),v=Q.next();!v.done;v=Q.next())if(v=v.value,v.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(v.headerMapping)){a:{switch(v.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":F=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":F="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":F="yt-core-attributed-string--heading-3";break a}F=void 0}V.push(ld({run:v,textLength:E,tag:"span",config:F?{className:F}:void 0,startIndex:v.startIndex,length:v.length}))}return V};
_.NQ=function(v){return(v==null?void 0:v.content)!==void 0};
awS=function(v){return _.NQ(v)?v:_.cg(v)};
rXh=function(v){return v.image!==void 0&&v.imageConfig!==void 0};
$EE=function(v,Q){if(Q==null?0:Q.userInput)for(v=_.L(v),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.tag!=="a"&&Q.tag!=="li"){var V=void 0;(V=Q).config||(V.config={});Q.config.dir=Q.tag==="ul"?_.ht().resolve(_.xD):"auto"}};
Iwb=function(v){return function(Q){var V=v.run;(V.onTap!==void 0||V.onLongPress!==void 0)&&_.y(V,b69)&&B1Q(Q,{loggingDirectives:_.y(V,b69)})}};
H6E=function(v){return function(Q){for(var V in v)(hq[V]||hq[m$["default"]])(Q,V,v[V])}};
Q3t=function(v,Q){mEB(Q);var V={data:null,start:0,end:v.length,parts:[]};Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next())E=E.value,UEB(V,E.startIndex,E.endIndex,E);vso(v,V);return V};
UEB=function(v,Q,V,E){for(var b=_.L(v.parts),F=b.next();!F.done;F=b.next()){F=F.value;if(typeof F==="string")throw Error("gh");if(F.start<=Q&&V<=F.end){UEB(F,Q,V,E);return}}v.parts.push({data:E,parts:[],start:Q,end:V})};
vso=function(v,Q){for(var V=Q.parts.length;V>=0;V--){var E=Q.parts[V],b=Q.parts[V-1],F=V===Q.parts.length?Q.end:E.start;b=V===0?Q.start:b.end;F!==b&&Q.parts.splice(V,0,v.slice(b,F));E&&vso(v,E)}};
mEB=function(v){v.sort(function(Q,V){if(Q.startIndex<V.startIndex)return-1;if(V.startIndex<Q.startIndex)return 1;Q=Q.endIndex-Q.startIndex;V=V.endIndex-V.startIndex;return Q>V?-1:V>Q?1:0})};
_.VeB=function(v){var Q=v.thumbnails;if(Q){v={sources:[]};Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E={};E.url=V.url;E.width=V.width;E.height=V.height;v.sources.push(E)}return v}};
Es9=function(v,Q,V,E){if(!Q)return v.length>=1?v[v.length-1]:null;if(E)for(var b=_.L(v),F=b.next();!F.done;F=b.next()){F=F.value;var t=void 0,p=(t=F.url)==null?void 0:t.indexOf(E);if(p!==void 0&&p>=0)return F}E=_.L(v);for(b=E.next();!b.done;b=E.next())if(b=b.value,b.width&&b.height&&(V&&b.width>=Q||!V&&b.height>=Q))return b;for(Q=v.length-1;Q>=0;Q--)if(V&&v[Q].width||!V&&v[Q].height)return v[Q];return v[0]};
_.bk3=function(v){var Q;return(v=(Q=v.sources)==null?void 0:Q[0])?v.width/v.height:0};
_.FZt=function(v){if(v.sources){v=_.L(v.sources);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=void 0;if((V=Q.clientResource)==null?0:V.imageName)return Q}}};
KZB=function(v){var Q;if((Q=v.clientResource)!=null&&Q.imageColor)return _.CF(v.clientResource.imageColor)};
_.LZ0=function(v,Q,V,E,b,F,t){if(!Q||Q.length===0||Q[0].clientResource)return null;if(V&&Q[0].url)return Q[0].url;E===void 0&&(E=!0);if(E){var p;v=ik9*(b||(v==null?void 0:(p=v.getBoundingClientRect())==null?void 0:p.width)||0)}else{var Z;v=ik9*(F||(v==null?void 0:(Z=v.getBoundingClientRect())==null?void 0:Z.height)||0)}Q=Es9(Q,v,E,t);return(Q==null?0:Q.url)?Q.url:(Q==null?0:Q.imageData)?Q.imageData:null};
te9=function(v,Q,V){V=V?[V]:[];v.opacity&&V.push("opacity: "+v.opacity+";");Q&&v.placeholderColor?(v=_.CF(v.placeholderColor),V.push("background-color: "+v+";")):V.push("background-color: transparent;");return V.join(" ")};
p$Z=function(v,Q,V,E,b){var F=["ytCoreImageHost"];Q&&F.push(Q);V||F.push("ytCoreImageFillParentHeight");E||F.push("ytCoreImageFillParentWidth");switch(v.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":F.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":F.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":F.push("ytCoreImageContentModeCenter");break;default:F.push("ytCoreImageContentModeScaleToFill")}v.flipForRtlLayout&&F.push("ytCoreImageFlipRtl");
switch(b){case "TOP_START":var t;F.push(((t=document.body)==null?void 0:t.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return F.join(" ")};
Zk0=function(v){var Q;if(v==null?0:(Q=v.clientResource)==null?0:Q.imageName){var V;v=(V=v.clientResource)==null?void 0:V.imageName;a:{switch(v){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||eGb.get(v)||v}};
hGB=function(v){return _.Y("mweb_wiz_skip_render")?P$h(v):daE(v)};
P$h=function(v){return function(Q){var V=$FQ("wink-root");F1=Vr.lastChild;IeB();c2Z(V,_.P(v,Q))}};
daE=function(v){var Q=Q===void 0?!1:Q;return function(V){if(!Q||!_.Y("mweb_skip_keto_to_c3_if_no_data")||V.data!==void 0){var E=A1(!1);try{var b=V.children;_.Y("mweb_render_outside_patch_killswitch")||Vr?b?dX(_.P(v,V,b)):dX(_.P(v,V)):_.Iy(new _.xd("ketoToC3 called outside of a patch",{tagName:v.TAG_NAME}))}finally{A1(E)}}}};
w$0=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
kWt=function(v,Q){v.onViewportEntered=Q;AWr.observe(v)};
TPZ=function(){var v={rootMargin:"10%",threshold:.01};_.Y("mweb_enable_set_io_root_to_null_safari")?v.root=null:_.Y("mweb_enable_set_io_root_to_body_safari")&&(v.root=document.body);return new IntersectionObserver(function(Q,V){Q.filter(function(E){return E.intersectionRect.height>0}).forEach(function(E){E=E.target;
if(!_.Y("mweb_enable_only_update_image_when_connected")||E.isConnected!==!1){var b;(b=E.onViewportEntered)==null||b.call(E);V.unobserve(E)}})},v)};
YtG=function(v,Q,V,E,b){function F(){if(E){var p=E.loadedClass,Z=E.notifyOnUnloaded;p&&_.Bg(v,p);Z&&v.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function t(){var p=V(Q,v);p&&v.getAttribute("src")!==p&&(_.Y("mweb_enable_only_update_image_when_connected")&&v.isConnected===!1||p===v.src||(v.src=p),F())}
b=b===void 0?!0:b;v.removeAttribute("src");F();Q&&(b?kWt(v,t):t())};
yWT=function(v,Q,V){if(!Q)return!1;Q=V(Q,v);V=v.getAttribute("src");return Q&&Q===V&&v.complete};
cWo=function(v,Q){for(var V in Q)V==="className"?v.className=Q[V]:(hq[V]||hq[m$.default])(v,V,Q[V])};
fKm=function(v,Q,V,E){hGB(_.gE)({contentMode:Q.contentMode,loadedClass:Q.loadedClass,isPreloaded:Q.isPreloaded,notifyOnLoaded:Q.notifyOnLoaded,notifyOnUnloaded:Q.notifyOnUnloaded,preferredThumbnail:Q.preferredThumbnail,preserveHeight:Q.preserveHeight,preserveWidth:Q.preserveWidth,objectPosition:Q.objectPosition,targetWidth:Q.targetWidth,targetHeight:Q.targetHeight,shouldShowPlaceholder:Q.shouldShowPlaceholder,useWidth:Q.useWidth,isToggled:Q.isToggled,alt:Q.alt,className:Q.className,onerror:Q.onerror,
onload:Q.onload,style$:Q.style$,color:Q.color,width:Q.width,height:Q.height,"aria-hidden$":Q["aria-hidden$"],draggable:Q.draggable,"data-disabled$":Q["data-disabled$"],data:v,callback:V,renderLazy:E===void 0?!0:E,hideOn404:!1})};
C$B=function(v,Q,V){V=V===void 0?!1:V;var E=v.sources!==void 0?v:_.VeB(v);if(E){var b=Q.onload;Q.onload=function(Z){var d=Z.target;V&&d.naturalWidth===120||_.so(d,"ytCoreImageLoaded");Q.notifyOnLoaded&&d.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));b==null||b(Z)};
Q.targetWidth&&Q.preserveWidth&&(Q.width=Q.targetWidth);Q.targetHeight&&Q.preserveHeight&&(Q.height=Q.targetHeight);var F=_.FZt(E),t=F&&Zk0(F);if(t)return(v=KZB(F))&&(Q.color=v),{type:"icon",iconName:t,config:Object.assign({},Q,Q.alt?{}:{"aria-hidden$":"true"},{"aria-label$":Q.alt,role:"img"})};if(v.sources===void 0){Q.alt=v.accessibility&&v.accessibility.accessibilityData&&v.accessibility.accessibilityData.label||Q.alt;Q.style$=te9(v,Q.shouldShowPlaceholder,Q.style$);var p;Q.isPreloaded=!((p=_.y(v,
GW0))==null||!p.isPreloaded)}Q.contentMode&&!E.contentMode&&(E.contentMode=Q.contentMode);Q.className=p$Z(E,Q.className,Q.preserveHeight,Q.preserveWidth,Q.objectPosition);Q.loadedClass="ytCoreImageLoaded";return{type:"image",image:E,config:Q}}};
_.ud=function(){var v=_.aE.apply(0,arguments);return _.Pa(MeZ,function(Q){var V=v.map(function(E){return E==null?void 0:E(Q)});
return function(){return void V.forEach(function(E){return void(E==null?void 0:E())})}})};
jM=function(v,Q){var V=Q==null?void 0:Q.initial;return _.Rr(function(){_.or(!0);return V=v(V)},{equals:Q==null?void 0:Q.isEqual},"rSlKsc")};
OkZ=function(v,Q){if(v===Q)return!0;if(v===void 0||Q===void 0)return!1;var V,E,b,F,t,p,Z,d;return v.content===Q.content&&((V=v.styleRuns)==null?void 0:V.length)===((E=Q.styleRuns)==null?void 0:E.length)&&((b=v.commandRuns)==null?void 0:b.length)===((F=Q.commandRuns)==null?void 0:F.length)&&((t=v.attachmentRuns)==null?void 0:t.length)===((p=Q.attachmentRuns)==null?void 0:p.length)&&((Z=v.decorationRuns)==null?void 0:Z.length)===((d=Q.decorationRuns)==null?void 0:d.length)};
ns0=function(v,Q){if(v){var V=awS(v);if(V!=null&&V.content)if(_.Y("attr_string_reactive_c3"))hGB(DaG)({text:v,config:Q});else{var E=!(Q==null||!Q.ariaLabel)||!(V.commandRuns&&V.commandRuns.length!==0||V.paragraphStyleRuns&&V.paragraphStyleRuns.length!==0);v=E?Q==null?void 0:Q.ariaLabel:null;E=E?"text":null;VAS("span",{className:lw9(V,Q),dir$:(Q==null?0:Q.userInput)?"auto":void 0,"aria-label$":v,role$:E},function(){if(V.styleRuns||V.commandRuns||V.attachmentRuns||V.decorationRuns||V.paragraphStyleRuns){var b=
XdQ(V,Q);$EE(b,Q);b=Q3t(V.content,b);b=_.L(b.parts);for(var F=b.next();!F.done;F=b.next())RGZ(F.value)}else EyQ(V.content)})}}};
RGZ=function(v){typeof v==="string"?EyQ(v):rXh(v.data)?VAS("span",v.data.imageWrapperConfig,function(){fKm(v.data.image,v.data.imageConfig)}):VAS(v.data.tag,v.data.config,function(Q){Iwb(v.data)(Q);
Q=_.L(v.parts);for(var V=Q.next();!V.done;V=Q.next())RGZ(V.value)})};
qt0=function(v){return v.parts.map(lKG)};
lKG=function(v){if(typeof v==="string")return v;v=rXh(v.data)?_.P("span",{el:_.ud(H6E(v.data.imageWrapperConfig))},_.P(_.gE,Object.assign({},{data:v.data.image},v.data.imageConfig))):_.P(v.data.tag,{el:_.ud(Iwb(v.data),H6E(v.data.config))},v.parts.map(lKG));return RS(v)};
StT=function(v,Q){return v===Q?!0:v===void 0||Q===void 0?!1:v.noStyleRuns===Q.noStyleRuns&&v.noLinkColor===Q.noLinkColor&&v.noEndpoints===Q.noEndpoints&&v.headerRuns===Q.headerRuns&&v.isOverlay===Q.isOverlay&&v.linkInheritColor===Q.linkInheritColor&&v.userInput===Q.userInput&&v.isHeadline===Q.isHeadline};
zG9=function(v){return function(){var Q,V,E,b,F,t,p,Z,d,w,A,k,T,c;return{ariaLabel:(Q=v.ariaLabel)==null?void 0:Q.call(v),className:(V=v.className)==null?void 0:V.call(v),ellipsisTruncate:(E=v.ellipsisTruncate)==null?void 0:E.call(v),isOverlay:(b=v.isOverlay)==null?void 0:b.call(v),linkInheritColor:(F=v.linkInheritColor)==null?void 0:F.call(v),noEndpoints:(t=v.noEndpoints)==null?void 0:t.call(v),noStyleRuns:(p=v.noStyleRuns)==null?void 0:p.call(v),noLinkColor:(Z=v.noLinkColor)==null?void 0:Z.call(v),
noPreWrap:(d=v.noPreWrap)==null?void 0:d.call(v),noWrap:(w=v.noWrap)==null?void 0:w.call(v),skipOnClick:(A=v.skipOnClick)==null?void 0:A.call(v),userInput:(k=v.userInput)==null?void 0:k.call(v),headerRuns:(T=v.headerRuns)==null?void 0:T.call(v),isHeadline:(c=v.isHeadline)==null?void 0:c.call(v)}}};
NPQ=function(v,Q){v=new JWm(v,Q);_.ro(v);throw v;};
xa3=function(v,Q,V){var E=$ur(v);v._numRenders=0;try{var b=_.j7o(function(){return _.P(Q,Object.assign({},V))})}catch(t){var F=function(p){p.args||(p.args=[]);
p.args.push("Error in web component wrapper");p.args.push(v.tagName.toLowerCase());return p};
_.$h(t instanceof Error?F(t):new JWm("Wiz rendering error",v.tagName.toLowerCase()));throw t;}finally{$ur(E)}return b};
_.ad=function(v,Q,V){function E(w){var A={};w=_.L(w);for(var k=w.next();!k.done;k=w.next()){k=k.value;var T=void 0,c=void 0,C=void 0,R=_.tY((C=(c=(T=k).getAttribute)==null?void 0:c.call(T,"slot"))!=null?C:"children");if(T=A[R])T.push(k);else if(R in F||R==="children")A[R]=[k]}w=_.L(Object.keys(A));R=w.next();for(k={};!R.done;k={content$jscomp$59:void 0},R=w.next())R=R.value,R!=="children"&&(k.content$jscomp$59=A[R],A[R]=function(l){return function(){return l.content$jscomp$59}}(k));
return A}
V=V===void 0?{}:V;var b,F=(b=V.props)!=null?b:{};IPQ.add(Q);var t=BPS();b=function(){var w=t.apply(this,arguments)||this;w.rawProps={};w.queuingRender=!1;w.dispose=function(){};
w.isWebComponentWrapper=!0;w.isReparenting=!1;w.hasRendered=!1;return w};
_.f(b,t);b.prototype.render=function(){this.hasRendered=!0;for(var w=_.L([].concat(_.ui(this.attributes))),A=w.next();!A.done;A=w.next())A=A.value,A.name!=="slot"&&A.name!=="hidden"&&this.removeAttribute(A.name);w=Object.assign({},this.componentProps,this.slotProps);A=_.L(xa3(this,v,w));w=A.next().value;A=A.next().value;!(w[0]instanceof Element)||w.length>1?NPQ("Wrapped Wiz components must return a single root element.",Q):(w=w[0].tagName.toLowerCase(),w!==Q&&NPQ("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(w+" !== '"+Q),Q),this.dispose=A)};
b.prototype.setUpProps=function(){for(var w=this.rawProps,A=this.attributes,k=_.L(Object.keys(F)),T=k.next();!T.done;T=k.next()){T=T.value;var c=void 0;((c=this)==null?0:c[T])&&this[T]!==gsS&&w[T]===void 0&&(w[T]=this[T],(c=Object.getOwnPropertyDescriptor(this.constructor.prototype,T))&&Object.defineProperty(this,T,c))}k=_.L(A);for(T=k.next();!T.done;T=k.next()){c=T.value;T=_.tY(c.name);var C=T==="class"&&!A.getNamedItem("class-name");if(T in F||C)c=c.value===""||c.value==="true"?!0:c.value==="false"?
!1:isNaN(Number(c.value))?c.value:Number(c.value),T!=="class"||w.className?w[T]=c:w.className=c}A={};for(var R in F)F[R]!==_.Wg&&F[R]!==s3E&&(w[R]instanceof Function&&NPQ("Function props must be configured as STATIC, not SIGNAL.",Q),T=_.L(_.Ge(w[R],void 0,"RKERzf")),k=T.next().value,T=T.next().value,A[R]=T,w[R]=k);w=_.L([w,A]);this.componentProps=w.next().value;this.setters=w.next().value;this.slotProps=E(this.childNodes)};
b.prototype.connectedCallback=function(){Uur.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in F&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
b.prototype.disconnectedCallback=function(){if(!Uur.has(this)){var w;a:{if(_.od)for(w=this;w;){if(_.XL.has(w)){w=!0;break a}w=w.parentElement}w=!1}if(w)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){w=_.L([].concat(_.ui(this.attributes)));for(var A=w.next();!A.done;A=w.next()){A=A.value;var k=void 0;A.name==="slot"||A.name==="hidden"&&((k=V.unsafeExternallySettableAttributes)==null?0:k.has("hidden"))||this.removeAttribute(A.name)}}this.innerText="";jwo(this)}}};
b.prototype._setPendingPropertyOrPath=function(){};
b.prototype.notifyPath=function(){};
_.hr.Object.defineProperties(b.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var p=_.L(Object.keys(F)),Z=p.next(),d={};!Z.done;d={prop$jscomp$109:void 0},Z=p.next())d.prop$jscomp$109=Z.value,Z=void 0,((Z=V.legacyPolymer)==null?0:Z.forwardHostProps)&&Bhr.has(d.prop$jscomp$109)||Object.defineProperty(b.prototype,d.prop$jscomp$109,{set:function(w){return function(A){var k=this;Uur.has(this)||(this.setters?na(function(){var T,c;return void((c=(T=k.setters)[w.prop$jscomp$109])==null?void 0:c.call(T,A))}):(this.rawProps[w.prop$jscomp$109]=A,this.queuingRender&&w.prop$jscomp$109===
"data"&&A!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(d),
get:uhr.has(d.prop$jscomp$109)?void 0:function(){return gsS}});
customElements.define(Q,b)};
_.j3G=function(v,Q){return(v=_.rE(v,Q))?_.Bq(_.oE(v)):null};
_.$D=function(v){if(v=_.rE(v,Number.MAX_VALUE,void 0,"width"))return _.oE(v)};
_.rE=function(v,Q,V,E){E=E===void 0?"width":E;if(!v||!v.length)return null;if(_.Y("kevlar_tuner_should_always_use_device_pixel_ratio")){var b=window.devicePixelRatio;_.Y("kevlar_tuner_should_clamp_device_pixel_ratio")?b=Math.min(b,_.T_("kevlar_tuner_clamp_device_pixel_ratio")):_.Y("kevlar_tuner_should_use_thumbnail_factor")&&(b=_.T_("kevlar_tuner_thumbnail_factor"));WZT=b}else WZT||(WZT=window.devicePixelRatio);b=WZT;_.Y("kevlar_tuner_should_always_use_device_pixel_ratio")?Q*=b:b>1&&(Q*=b);if(_.Y("kevlar_tuner_min_thumbnail_quality"))return v[0].url||
null;b=v.length;if(_.Y("kevlar_tuner_max_thumbnail_quality"))return v[b-1].url||null;if(V)for(var F=0;F<b;F++)if(v[F].url.indexOf(V)>=0)return v[F].url||null;for(V=0;V<b;V++)if(v[V][E]>=Q)return v[V].url||null;for(Q=b-1;Q>0;Q--)if(v[Q][E])return v[Q].url||null;return v[0].url||null};
aKZ=function(){Id.size?setTimeout(function(){Hg(os3)},0):X$Q=0};
os3=function(){var v=(0,_.wO)(),Q=null,V=!1;Id.forEach(function(b){b.loaded=!0;b.loadTime=v;b.pendingPaint=!1;var F=rWS.get(b);F&&F.resolve(v);Q=b;V||!b.ftlEligible&&b.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(V=!0)});
var E;((E=Q)==null?0:E.markDirty)&&Q.markDirty();Id.clear();X$Q=0;V&&$aG(v)};
IKQ=function(v){Id.add(v);v.pendingPaint=!0;X$Q||(X$Q=_.md(_.XT,aKZ))};
Hkh=function(v){v.loaded=!1;v.loadTime=Infinity;var Q=rWS.get(v);Q&&(Q.reject(Error("mh")),rWS.delete(v));v.pendingPaint&&(Id.delete(v),v.pendingPaint=!1)};
_.maZ=function(v){var Q=v.indexOf(":");return Q===-1?{originalName:v}:{originalName:v.substring(0,Q),datasyncId:v.substring(Q+1)}};
_.vMS=function(){return _.e(function(v){if(Uar!==void 0)return v.return(Uar);Uar=new Promise(function(Q){var V;return _.e(function(E){switch(E.nextAddress){case 1:return _.GC(E,2),E.yield(_.Uo.open("test-only"),4);case 4:return E.yield(_.Uo.delete("test-only"),5);case 5:_.FT(E,3);break;case 2:if(V=_.n$(E),V instanceof Error&&V.name==="SecurityError")return Q(!1),E.return();case 3:Q("caches"in window),_.q1(E)}})});
return v.return(Uar)})};
EMT=function(){return _.e(function(v){if(v.nextAddress==1)return v.yield(_.vMS(),2);if(!v.yieldResult)return v.return(void 0);Qft||(Qft=new VJm);return v.return(Qft)})};
bIZ=function(v){var Q,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return F.yield(EMT(),2);case 2:Q=F.yieldResult;if(!Q)throw Error("oh");return F.yield(Q.open("yt-player-local-img"),3);case 3:return V=F.yieldResult,F.yield(V.match(v),4);case 4:E=F.yieldResult;if(!E)throw Error("ph");return F.yield(E.blob(),5);case 5:return b=F.yieldResult,F.return(b)}})};
Fg0=function(v,Q){for(var V in v)if(v.hasOwnProperty(V)&&Q[V])return V;return null};
Kgb=function(v){return"stamp"+v.replace("-","_")+"_"};
iIE=function(v){var Q=v.match(/\[\[([\w\.]+)\]\]/);if(Q&&Q.length>1)return Q[1];_.ro(Error("rh`"+v));return null};
LgB=function(v){return v===void 0?_.mX("REUSE_COMPONENTS",!1):v||!1};
eR9=function(v,Q,V){V&&(Q.is?(tJS.has(Q)&&(v=tJS.get(Q),V=v.listener,delete Q[v.property],V.type==="element"&&Q.removeEventListener(V.eventName,V.handler),tJS.delete(Q)),pDo(Q)):Q.__proto__==HTMLElement.prototype&&(Q=new _.xd("Rendererstamper removed a non custom element","Stamper: "+v+" element: "+(Q&&Q.nodeName)),_.Iy(Q)))};
ZI9=function(v,Q,V,E){var b=Q.node?Q.node:Q;_.m9(V).parentNode===b&&(Q.removeChild(V),eR9(v,V,E));if(v=v_.get(V))v_.delete(V),_.XT.cancelJob(v);V.hidden=!1};
PeT=function(v,Q,V,E){if(Q&&Q.children&&(V=Q.children[V]))if(_.mX("DEFERRED_DETACH"))for(;V&&!v_.has(V);){var b=v,F=Q,t=V,p=E;t.hidden=!0;b=_.go(_.XT,ZI9.bind(null,b,F,t,p),0);v_.set(t,b);V=V.nextElementSibling}else for(;(t=Q.lastElementChild)&&(Q.removeChild(t),eR9(v,t,E),t!=V););};
_.QZ=function(){for(var v=_.aE.apply(0,arguments),Q=!0,V=_.L(v),E=V.next();!E.done;E=V.next())if(typeof E.value!=="string"){Q=!1;break}return Q?v.join(" ").trim()||void 0:function(){for(var b="",F=_.L(v),t=F.next();!t.done;t=F.next())if(t=t.value,typeof t==="function"&&(t=t()),t)if(typeof t==="string")b+=" "+t;else for(var p in t)if(t.hasOwnProperty(p)){var Z=t[p];typeof Z==="function"&&(Z=Z());Z&&(b+=" "+p)}b=b.trim()||void 0;return _.or(b)}};
_.d83=function(v,Q){return _.Fg(v.entities,"markersEngagementPanelSyncEntity",Q)};
_.VZ=function(v,Q){return _.Fg(v.entities,"playerStateEntity",Q)};
hRo=function(v,Q){return _.Fg(v.entities,"fantasyWinProbabilityEntity",Q)};
wDm=function(v,Q){return _.Fg(v.entities,"fantasyTeamEntity",Q)};
AuS=function(v,Q){return _.Fg(v.entities,"fantasyPlayerEntity",Q)};
kKb=function(v,Q){return _.Fg(v.entities,"booleanEntity",Q)};
TUZ=function(v,Q){return _.Fg(v.entities,"qrCodeEntity",Q)};
Y4h=function(v){return _.Fg(v.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
cub=function(v){var Q;return(Q=yu3[v])!=null?Q:"EVENT_SPAN_TYPE_UNKNOWN"};
fU0=function(v){var Q=v.nodeName;if(v.id)return Q+="#"+v.id;if(v.classList)for(var V=_.L(v.classList),E=V.next();!E.done;E=V.next())Q+="."+E.value;v.parentElement&&(Q=fU0(v.parentElement)+" > "+Q);return Q};
GKE=function(v){return function(Q){var V=cub(Q.type);return V==="EVENT_SPAN_TYPE_UNKNOWN"?v(Q):OHB("event",{type:V,nodepath:Q.target instanceof Element?fU0(Q.target):void 0},function(){return v(Q)})}};
_.EP=function(v){v&&cLm("event")&&(v=GKE(v));return A2G(function(Q){var V,E=(V=v)==null?void 0:V(Q);return typeof E==="boolean"?E:!0})};
bP=function(v){return function(){return v()?v():void 0}};
D8Q=function(v){var Q=_.Ze("animated-rolling-character"),V=Sno(),E=jH(v.character)||jH(v.previousCharacter),b=_.L(zqB()),F=b.next().value,t=b.next().value;_.jg(function(){if(window.ResizeObserver&&_.Y("web_fix_rolling_numbers_zoom_safari")){var p=new _.FK(function(){var d,w,A=Math.round(((w=(d=Q.value.querySelector("div"))==null?void 0:d.getBoundingClientRect().height)!=null?w:0)*100)/100;A&&t(A)},500),Z=new ResizeObserver(function(){p.fire()});
Z.observe(Q.value);return function(){Z.disconnect();p.dispose()}}});
GiT(function(){var p=_.Y("web_fix_rolling_numbers_zoom_safari")?F:v.marginMultiplier;if(p){var Z;(Z=V.value)==null||Z.cancel();E?(Z=v.previousCharacter?Number(v.previousCharacter)+10:v.rollUp?0:30,v.shouldAnimate||(Z-=CeZ(v,Z))):(Z=v.rollUp?0:2,v.shouldAnimate||(Z-=v.rollUp?-1:1));Q.value.style.marginTop="-"+Z*p+"px";v.shouldAnimate?V.value=MJm(Q.value,v,Z,E,p):Q.value.style.display=v.character?"":"none"}});
return _.P("animated-rolling-character",{el:Q,class:"animatedRollingCharacterHost"},hBS(E,function(){for(var p=[],Z=1;Z<30;Z++)p.push(_.P("div",null,Z%10));return _.P(_.w7,null,_.P("div",null,"\u00a0"),p,_.P("div",null,"\u00a0"))},function(){return OIo(v.character)}))};
OIo=function(v){return _.P(_.w7,null,_.P("div",null,"\u00a0"),_.P(_.w7,null,hBS(!v||_.pE(v),function(){return _.P("div",null,"\u00a0")},function(){return _.P("div",null,v)})),_.P("div",null,"\u00a0"))};
MJm=function(v,Q,V,E,b){V=new Animation(new KeyframeEffect(v,[{transform:"translateY(0px)"},{transform:"translateY("+(E?CeZ(Q,V):Q.rollUp?-1:1)*b+"px)"}],RRG),document.timeline);Q.character?(v.style.display="",V.onfinish=null):V.onfinish=function(){v.style.display="none"};
V.play();return V};
CeZ=function(v,Q){var V=Number(v.character)+10;if(v.previousCharacter)if(v.character){var E=Number(v.character),b=Number(v.previousCharacter);v=v.rollUp?b<E?V:V+10:b<E?V-10:V}else v=v.rollUp?30:0;else v=v.character==="0"?V:v.rollUp?V-10:V+10;return Q-v};
nMB=function(v){return function(Q){var V={},E;for(E in Q){var b=void 0,F=void 0;((b=void 0)==null?0:(F=b.callbacks)==null?0:F[E])||(V[E]=Q[E])}return _.P(uSE,null,function(){for(var t in V)Q[t]=_.or(V[t]);Q.disableReactiveLogging=!0;return _.P(v,Object.assign({},Q))})}};
S4h=function(v,Q,V,E,b,F,t){V=new Animation(new KeyframeEffect(v,[{transform:"translateY(0px)"},{transform:"translateY("+(F?lUG(Q,V,E,b):E?-1:1)*t+"px)"}],q4G),document.timeline);Q?(v.style.display="",V.onfinish=null):V.onfinish=function(){v.style.display="none"};
V.play();return V};
lUG=function(v,Q,V,E){var b=Number(v)+10;Q?v?(v=Number(v),Q=Number(Q),V=V?Q<v?b:b+10:Q<v?b-10:b):V=V?30:0:V=v==="0"?b:V?b-10:b+10;return E-V};
Jub=function(v){var Q=Sno(),V=Sno();DoQ(function(){Q.value=v.numberText;V.value=v.numberValue},[v.numberText]);
var E=v.fontSizeMultiplier?v.heightPx*v.fontSizeMultiplier:v.heightPx,b=qn3(function(){if(v.numberText){var t=v.numberText;var p=v.forceRollUp||!V.value||!v.numberValue||V.value<v.numberValue;var Z=!!v.shouldAnimate,d=Q.value,w=[],A=0,k=0,T=(d?d.replace(/\D/g,"").length:0)-(t?t.replace(/\D/g,"").length:0);d=d?d.split(/(\d)/).filter(Boolean):[];for(t=t.split(/(\d)/).filter(Boolean);T<0;){var c=t[k];w.push({character:c,rollUp:p,marginMultiplier:E,shouldAnimate:Z});k++;jH(c)&&T++}for(;A<T;)c=d[A],w.push({previousCharacter:c,
rollUp:p,marginMultiplier:E,shouldAnimate:Z}),A++,jH(c)||T++;for(;k<t.length;)T=t[k],c=d[A],jH(T)===jH(c)?(k++,A++):jH(T)?(A++,T=void 0):jH(c)&&(k++,c=void 0),w.push({character:T,previousCharacter:c,rollUp:p,marginMultiplier:E,shouldAnimate:Z});p=w}else p=[];return p},[v.numberText]),F=v.numberText?["height: "+E+"px;",
"line-height: "+v.heightPx+"px;"].join(" "):"";return _.P("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:F,dir:"ltr","aria-hidden":"true"},b.map(function(t){return _.P(zRQ,Object.assign({},t))}))};
NUZ=function(v){switch(v){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.x8o=function(v,Q){if(!v&&!Q)return"medium";v=Math.max(v||0,Q||0);return v>=256?"large":v>=96?"medium":"small"};
BUG=function(v){switch(v){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
gMb=function(v){return new KeyframeEffect(v,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
sfQ=function(v){return new KeyframeEffect(v,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.K_=function(v){if(v.length===0)return yqt(v,"E");var Q=_.L(yqt({source:function(){return v()},
computation:function(b,F){return(F==null?0:F.value)?v(F.value):b}},"F")),V=Q.next().value,E=Q.next().value;
Q=Q.next().value;return[V,E,Q]};
_.iP=function(v){return function(){var Q="",V;for(V in v){for(var E=v[V];typeof E==="function";)E=E();E!==void 0&&E!==null&&(Q+="; "+V+": "+E)}return Q.length>0?_.or(Q.slice(2)):_.or()}};
ukr=function(v){switch(v){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
jfB=function(v,Q){if(Q)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(v)switch(v){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
rum=function(v,Q,V,E,b,F,t){var p=WgQ(v),Z=p.disabled,d=p.iconPosition,w=p.style,A=p.focused,k=function(){return!!C()&&d()==="icon-only"},T=function(){return!!C()&&d()==="icon-only-40"},c=function(){return!!C()&&d()==="icon-with-label"},C=function(){return!!Q||!(E==null||!E())};
return{type:function(){return w()==="call-to-action-inverse"?"text":w()==="overlay-dark"&&v().type!=="filled"&&v().type!=="tonal"?"tonal":v().type},
shouldFocus:function(){return(A()||(F==null?void 0:F()))&&!Z()},
hasIconLeading:function(){return!!C()&&d()==="leading"},
hasIconTrailing:function(){return!!C()&&d()==="trailing"},
hasIconLeadingTrailing:function(){return!!C()&&!!(V||b!=null&&b())&&d()==="leading-trailing"},
hasIconOnly:k,hasIconOnly40:T,hasIconWithLabel:c,iconButton:function(){return k()||T()||c()},
visiblyDisabled:function(){return(Z()?"disabled":v().state)==="disabled"||Z()},
overrideSmallSizeIcon:function(){return!v().ignoreIconSizeOverride&&oMr(v(),C())},
iconToRender:Q?Q:function(){return _.P(_.L_,{icon:E,gradientColor:function(){var R;return(R=v().customColors)==null?void 0:R.iconGradientColor},
size:function(){return XDm(v(),!0,v().ignoreIconSizeOverride)},
active:function(){return v().toggled},
iconFilter:function(){return aUT(v())},
animateIcon:t})},
secondaryIconToRender:V?V:function(){return _.P(_.L_,{icon:b,size:function(){return XDm(v(),!0,v().ignoreIconSizeOverride)},
active:function(){return v().toggled},
iconFilter:function(){return aUT(v())}})}}};
WgQ=function(v){return{size:function(){return v().size},
style:function(){return v().style},
focused:function(){return v().focused},
disabled:function(){return v().disabled},
onTap:function(Q){var V,E;return(E=(V=v()).onTap)==null?void 0:E.call(V,Q)},
alignByText:function(){return v().alignByText},
aTagConfig:function(){return v().aTagConfig},
customColors:function(){return v().customColors},
segmentedPosition:function(){return v().segmentedPosition},
toggled:function(){return v().toggled},
toggleable:function(){return v().toggleable},
accessibilityLabel:function(){return v().accessibilityLabel},
onToggle:function(Q){var V,E;return(E=(V=v()).onToggle)==null?void 0:E.call(V,Q)},
iconPosition:function(){return v().iconPosition},
oneOffCustomTextWrap:function(){return v().oneOffCustomTextWrap},
disableTextEllipsis:function(){return v().disableTextEllipsis},
disableBackdropFilter:function(){return v().disableBackdropFilter},
tooltipText:function(){return v().tooltipText},
tooltipShape:function(){return v().tooltipShape},
ariaHidden:function(){return v().ariaHidden},
tabIndex:function(){return v().tabIndex},
buttonText:function(){return v().buttonText},
formattedButtonText:function(){return v().formattedButtonText},
animatedTextProps:function(){return v().animatedTextProps},
onClickRateLimitMs:function(){return v().onClickRateLimitMs}}};
oMr=function(v,Q){Q=(v.iconPosition==="icon-only"||v.iconPosition==="icon-only-40"||v.iconPosition==="icon-with-label")&&Q;return!v.segmentedPosition&&Q&&v.size==="S"};
XDm=function(v,Q,V){switch(v.size){case "XS":return 16;case "S":return!V&&oMr(v,Q)?24:16;default:return 24}};
$8b=function(v){switch(v){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
IUB=function(v){switch(v){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
HIS=function(v){switch(v){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
aUT=function(v){if(v.style==="overlay-dark"&&v.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
ts=function(v){return v&&v.endsWith("px")?Number(v.slice(0,-2)):0};
vVQ=function(v,Q){var V=_.L(_.K_(function(){var b,F;return(F=v())!=null?F:Q==null?void 0:(b=Q())==null?void 0:b.text})),E=V.next().value;
return[function(b){var F=_.Rr(function(){var Z;return Object.assign({},{location:"bottom",offset:16,delay:1},Q==null?void 0:Q(),{text:(Z=E())!=null?Z:""})},void 0,"IJU38d");
_.uH(function(){var Z=F();_.fa(function(){_.XT.addJob(function(){p_.notify(b,Z)},4)})},"WlsgZc");
var t=function(){m8E(b,F())},p=function(){U89()};
b.addEventListener("mouseenter",t);b.addEventListener("focus",t);b.addEventListener("mouseleave",p);b.addEventListener("blur",p);b.addEventListener("tap",p);_.j_(function(){b.removeEventListener("mouseenter",t);b.removeEventListener("mouseleave",p);b.removeEventListener("focus",t);b.removeEventListener("blur",p);b.removeEventListener("tap",p);U89()})},
V.next().value]};
VBo=function(v,Q){if(!iH){var V;fe0(function(){return V=glr(v,Q)});
return V}v.parent=QL3();return glr(v,Q)};
QL3=function(){var v=_.ta(iH||void 0,NWr);return _.TOB(v)?void 0:v};
e$=function(v,Q){_.Oo(v,Object.assign({},Q,{forceClickLogging:!0}))};
EV0=function(v){switch(v){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
FaT=function(v,Q){var V=_.MQ(v==null?void 0:v.onTap),E={};V&&(E.getClickedVisualElement=function(){var b;return bQm(v,V,Q==null?void 0:(b=Q.value)==null?void 0:b.visualElement)});
E=_.DM({elementsCommand:v.onTap,forceNewState:!0,additionalCommandArgs:E});return Rd(E)?E:void 0};
KaQ=function(v,Q,V,E){e$(v,Object.assign({},{form:{element:Q,event:V}},E))};
iQQ=function(v,Q,V,E,b){var F=void 0;return function(t){var p=_.MQ(V?v==null?void 0:v.onDisabledTap:v==null?void 0:v.onTap);if(p){var Z;F=(Z=F)!=null?Z:Q==null?void 0:Q.value;if(p)if(_.Y("web_button_vm_click_client_ve_killswitch"))KaQ(p,F,t);else{var d;Z=bQm(v,p,(d=F)==null?void 0:d.visualElement);if(b){KaQ(p,b,t,{clickedVisualElement:Z,form:{element:b}});return}KaQ(p,F,t,{clickedVisualElement:Z})}}E&&E(t)}};
bQm=function(v,Q,V){Q=Q==null?void 0:Q.clickTrackingParams;var E,b;v=v==null?void 0:(E=v.loggingDirectives)==null?void 0:(b=E.clientVeSpec)==null?void 0:b.uiType;if(V&&v&&!Q)return V};
Lab=function(v){switch(v){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
tBG=function(v){switch(v){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
p3T=function(v){switch(v){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
eCZ=function(v){switch(v){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
_.Z1=function(v){return _.Rr(function(){meZ()();return QYT(v)},{debugName:"d8B62c"},"DEXkhd")};
ZQE=function(v,Q){return _.Fg(v.entities,"engagementToolbarStateEntityPayload",Q)};
dxm=function(v){(v=_.dE(v))&&_.PTb(v)};
_.PTb=function(v){var Q=_.Mo();Q&&_.Bp(Q,v)};
hCb=function(v,Q,V){_.mb(v,"yt-open-popup-action",[Q,V||v])};
w3m=function(v,Q){var V=_.oS(v,"endpoint"),E=_.oS(v,"action");return(V=E?E:V)&&Q&&(V=Q.navigationEndpointPopupMap[V])&&(v=_.Q9(V,v),(V=_.oS(v,"renderer"))&&Q.supportedPopups.hasOwnProperty(V))?{openPopupAction:{popupType:Q.popupTypeMap[V],popup:v}}:null};
AKG=function(v,Q,V,E){if(E){var b;V=V==null?void 0:(b=V.data)==null?void 0:b.contents;(b=V instanceof Array&&V.length?V[0]:V)&&(V=_.oS(b,"renderer"))&&E.supportedPopups.hasOwnProperty(V)&&(Q.stopPropagation(),hCb(v,{openPopupAction:{popupType:E.popupTypeMap[V],popup:b}}))}};
Yzm=function(v,Q,V,E){E=E===void 0?!1:E;var b=kGr(Q);if(b){b.href&&RO(b.href);var F=Q.button;F=F!==void 0?F===0&&!P_(Q):!P_(Q);b.data&&F&&TzG(v,b,Q,V,E)}};
TzG=function(v,Q,V,E,b){b=b===void 0?!1:b;var F=_.T_("pbj_navigate_limit",-1)===0;yKh(Q);_.ht().resolve(_.d$(EH));var t=Q.data;if(Object.keys(t).length!==0)if(!_.Y("unplugged_web_disable_actions_for_cec_endpoint")&&_.y(t,_.E2))_.Y("endpoint_behavior_command_executor_fix_killswitch")||(V.preventDefault(),V.stopPropagation()),_.Qk(v,[t],v);else if(E=w3m(t,E))t.loggingUrls&&t.loggingUrls.forEach(function(Z){Z.baseUrl&&_.Vp(Z.baseUrl)}),V.preventDefault(),V.stopPropagation(),hCb(v,E,Q);
else{var p=cKT(0,Q.data,V);if(v=Q.getForm)v=v(),p.tempData=p.tempData||{},p.tempData=Object.assign({},p.tempData,v);v=_.uK(V);if(E=v.find(function(Z){return!!Z.visualElement}))p.createScreenConfig=p.createScreenConfig||{},p.createScreenConfig.clickedVisualElement=E.visualElement;
if(!F)if(V.preventDefault(),V.stopPropagation(),_.y(t,_.fSt)&&!b&&_.bd.instance)_.bd.instance.resolveCommand(t,p);else if(_.Y("kevlar_command_handler_formatted_string")&&!b&&_.bd.instance&&GGb(t))b=v.find(function(Z){return!!Z.is})||V.target,V={form:Object.assign({},p,{event:V,
element:b,originatingNode:Q})},_.bd.instance.resolveCommand(t,V);else{t=_.uK(V);V=[];for(b=0;b<t.length;b++)(F=t[b].is)&&V.push(F);vlG({parents:V.join(","),text:Q.innerText},function(){_.Hj(Q,"yt-navigate",p)})}}};
CTB=function(v){if(v=kGr(v))yKh(v),Qnr(v.href)};
kGr=function(v){v=_.uK(v);for(var Q,V=0;V<v.length;V++)if(Q=v[V],Q.tagName==="A"&&Q.classList.contains("yt-simple-endpoint")){if(!Q.data)break;return Q}return null};
P_=function(v){return v.shiftKey||v.altKey||v.metaKey||v.ctrlKey};
MBB=function(v,Q){var V={itct:Q.clickTrackingParams};_.Y("kevlar_client_side_screens")&&(!_.y(Q,_.PH)||_.Y("kevlar_exclude_endpoint_killswitch"))&&(V.endpoint=JSON.stringify(Q));_.Y("enable_unknown_lact_fix_on_html5")&&_.ht().resolve(_.d$(_.dS))&&(V.lact=_.kh());mgr(V);_.ox(v,V)};
yKh=function(v){v.href&&Object.keys(v.data).length!==0&&MBB(v.href,v.data)};
GGb=function(v){for(var Q=_.L(OQh),V=Q.next();!V.done;V=Q.next())if(v[V.value])return!1;return!0};
DxS=function(){if(hs)return hs;if(window.lottie)return hs=Promise.resolve(window.lottie);var v=_.ae(_.r7("LOTTIE_URL"));return v?hs=new Promise(function(Q,V){var E=document.createElement("script");E.addEventListener("load",function(){Q(lottie)});
E.addEventListener("error",function(b){var F="Lottie library failed to load.";b?b.message&&(F+=" Original description: "+b.message,_.Hx(b,F)):b=Error(F);_.Iy(b);V(b)});
E.setAttribute("async","");_.L$(E,v);document.head.appendChild(E)}):Promise.reject(Error("sh"))};
RCZ=function(){return hs?hs:DxS()};
nVG=function(v){if(v)switch(v){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.Y("kevlar_use_wil_icons"))return v=(v=Y4h(_.oF().getState()))&&v.animationLightUrl&&v.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:v.animationLightUrl,pathDarkTheme:v.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,v?v:wS.get("LIKE");break;case "LIKE_DELHI_PLAYER":return wS.get("LIKE_DELHI_PLAYER")}};
lS3=function(v){var Q=nVG(v);if(Q)return Q;switch(v){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return wS.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return wS.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return wS.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return wS.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return wS.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return wS.get("NOTIFICATION_BELL")}};
qzr=function(v,Q){if(!v.closest)return!1;Q=!!nVG(Q);return _.r7("ID_TOKEN")&&Q?!!v.closest("segmented-like-dislike-button-view-model")||!!v.closest("yt-player-quick-action-buttons"):!1};
zCB=function(v,Q){if(!v||SzT)Q=!1;else{var V;if(!(V=qzr(v,Q)))if(v.closest)if(V=!_.r7("ID_TOKEN"),v=v.closest("ytd-subscription-notification-toggle-button-renderer-next"),V||!v)V=!1;else{var E;V=((E=v.data)==null?void 0:E.targetId)==="notification-bell"&&Q!=="EXPAND_MORE"}else V=!1;Q=V}return Q};
JKo=function(v){var Q,V;return _.e(function(E){switch(E.nextAddress){case 1:return _.GC(E,2),E.yield(fetch(v),4);case 4:return Q=E.yieldResult,E.yield(Q.json(),5);case 5:return E.return(E.yieldResult);case 2:V=_.n$(E),_.Iy(V),_.q1(E)}})};
NzG=function(v,Q){var V,E,b;return _.e(function(F){if(F.nextAddress==1)return(V=Q?v.pathDarkTheme:v.path)?F.yield(Promise.all([JKo(V),DxS()]),2):F.return();E=F.yieldResult;b=E[0];As.set(V,b);_.q1(F)})};
Bz3=function(v,Q,V,E){function b(t,p){if(Q.value===p&&!Q.cancelled){for(;v.firstChild;)v.removeChild(v.firstChild);v.classList.add("ytSpecIconShapeHost");t(v,E)}}
var F=_.xxo(_.ht().resolve(_.Eo),V);typeof F==="function"?(Q.value=null,b(F,null)):(Q.value=F,F.then(function(t){b(t,F)}))};
gVr=function(v,Q){var V=document.createElement("div"),E=_.si(V,function(){return _.P(_.h,{cond:v,then:function(b){return _.P(_.kW,{data:b,options:Q})}})},"ca");
return[V,E]};
_.Tr=function(v,Q){if(Q){var V={};sL0.forEach(function(E){E=uwT(Q,E,"--yt-lightsource-");Object.assign(V,E)});
jLo.forEach(function(E){E=uwT(Q,E,"--yt-basic-");Object.assign(V,E)});
_.F6(v,V)}};
uwT=function(v,Q,V){var E={};E[V+_.LC(Q)]=v&&v[Q]?_.CF(v[Q]):"";return E};
_.yZ=function(v,Q,V){YW[v]||(YW[v]={});YW[v][Q]=V};
_.c_=function(v){YW[v]||(YW[v]={});return YW[v]};
WaB=function(v){if(!v)return{};var Q=v.foregroundTitleColor,V=v.backgroundColor;v=v.borderColor;var E="text";v?E="outline":V&&(E="filled");return{type:E,customColors:{color:Q?_.CF(Q):void 0,backgroundColor:V?_.CF(V):void 0,borderColor:v?_.CF(v):void 0}}};
$xr=function(v){var Q=v.renderer;var V=v.element;var E=v.commandController;var b=v.onTapCallback;var F=v.skipCommandHandling;var t=v.overrides;var p=v.forceIcon;var Z=v.forceModernIconButton;var d=v.forceDisabled;var w=v.isSubscribe===void 0?!1:v.isSubscribe;var A=v.isPressed===void 0?!1:v.isPressed;var k=v.useButtonSize===void 0?!1:v.useButtonSize;v=oVQ(Q);w&&(v.style="mono",v.type="filled");p=!Q.icon||!p&&Q.text?Q.icon?Q.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:Z?"icon-only":"icon-only-40";p==="icon-only-40"&&(v.type="text");var T;Z=Object;w=Z.assign;k=X3S(Q,k);A=!!Q.isSelected||!_.Y("web_propagate_is_pressed_killswitch")&&!!A;var c=Q.isSelected!==void 0;d=d===void 0?Q.isDisabled:d;var C=Q.text?_.cg(Q.text):void 0;var R,l,S,a=((R=Q.accessibilityData)==null?void 0:(l=R.accessibilityData)==null?void 0:l.label)||((S=Q.accessibility)==null?void 0:S.label);R=a?a:_.j0(Q.text);V=aST(Q,V,E,b,F);E=rKG(Q);E!=null&&E.length?(E=_.DM({innertubeCommand:T19(E),
forceNewState:!0}),E=Rd(E)?E:void 0):E=void 0;return w.call(Z,{},v,k,{iconPosition:p},t,{focused:!1,toggled:A,toggleable:c,disabled:d,formattedButtonText:C,accessibilityLabel:R,onTap:V,aTagConfig:E},WaB((T=Q.colorData)==null?void 0:T.basicColorPaletteData),{oneOffCustomTextWrap:Q.oneOffCustomTextWrap})};
aST=function(v,Q,V,E,b){return function(F){var t=rKG(v);E(t,F);if(!b){t=_.L(t);for(var p=t.next();!p.done;p=t.next())e$(p.value,{form:{element:Q,event:F},commandController:V})}}};
rKG=function(v){var Q=[];v.command&&Q.push(v.command);v.serviceEndpoint&&Q.push(v.serviceEndpoint);v.navigationEndpoint&&Q.push(v.navigationEndpoint);return Q};
X3S=function(v,Q){if(Q)switch(v.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(v.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
oVQ=function(v){switch(v.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
ISQ=function(v,Q){return typeof v!=="object"||v===null?!1:Object.keys(Q).every(function(V){return V in v})};
f_=function(v){return Object.fromEntries(Object.keys(v).map(function(Q){return[Q,Q]}))};
HQB=function(v,Q,V){return vm3(V,function(E,b){return function(F){var t=_.aE.apply(1,arguments);return ISQ(F,v)?b.apply(null,[F[Q]].concat(_.ui(t))):b.apply(null,[F].concat(_.ui(t)))}})};
Gr=function(v){return function(Q,V){return HQB(v,Q,V)}};
mxo=function(v,Q){var V;return(V=_.Fg(v,"playlistLoopStateEntity",Q))!=null?V:void 0};
Uxo=function(v,Q){var V;return(V=_.Fg(v,"toggleMenuServiceItemEntity",Q))!=null?V:void 0};
_.C_=function(v){return v!=null&&v.watch?v.watch.isTheaterMode:!1};
_.MC=function(v){return v!=null&&v.watch?v.watch.isWatchFullscreen:!1};
_.OP=function(v){if(_.v6S(v))return!0;v=_.QoT(v);return _.Y("web_watch_enable_single_column_grid_view")?v:!1};
_.v6S=function(v){return v!=null&&v.watch?v.watch.isSwatcherooActive:!1};
_.QoT=function(v){return v.watch.isWatchNarrowWidth};
_.VFS=function(v){return v.watch.openEngagementPanels};
D1=function(v,Q){return _.Fg(v.entities,"likeStatusEntity",Q)};
E63=function(v,Q){return _.Fg(v.entities,"likeCountEntity",Q)};
_.bcS=function(v,Q){return _.Fg(v.entities,"stringEntity",Q)};
FzG=function(v,Q){return _.Fg(v.entities,"dataFreshnessEntity",Q)};
Kzh=function(v,Q){if(!v)return!1;var V,E=(V=_.y(v,_.F$))==null?void 0:V.signal;if(E&&Q.signalEndpointMap)return!!Q.signalEndpointMap[E];var b;if((V=(b=_.y(v,_.RJ))==null?void 0:b.request)&&Q.continuationEndpointMap)return!!Q.continuationEndpointMap[V];for(var F in v)if(Q.commandEndpointMap[F])return!0;return!1};
icG=function(v,Q){if(Q.streamingEndpointMap)for(var V in v)if(Q.streamingEndpointMap[V]&&(v=Q.streamingEndpointMap[V]))return v()};
Lzm=function(v,Q){var V,E=(V=_.y(v,_.F$))==null?void 0:V.signal;if(E&&Q.signalEndpointMap&&(V=Q.signalEndpointMap[E]))return V();var b;if((V=(b=_.y(v,_.RJ))==null?void 0:b.request)&&Q.continuationEndpointMap&&(b=Q.continuationEndpointMap[V]))return b();for(var F in v)if(Q.commandEndpointMap[F]&&(v=Q.commandEndpointMap[F]))return v()};
tFb=function(v){var Q={"Content-Type":"application/json"};_.r7("EOM_VISITOR_DATA")?Q["X-Goog-EOM-Visitor-Id"]=_.r7("EOM_VISITOR_DATA"):_.r7("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=_.r7("VISITOR_DATA"));Q["X-Youtube-Bootstrap-Logged-In"]=_.r7("LOGGED_IN",!1);_.r7("DEBUG_SETTINGS_METADATA")&&(Q["X-Debug-Settings-Metadata"]=_.r7("DEBUG_SETTINGS_METADATA"));if(v!=="cors"){var V=_.r7("INNERTUBE_CONTEXT_CLIENT_NAME");V&&(Q["X-Youtube-Client-Name"]=V);(V=_.r7("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Q["X-Youtube-Client-Version"]=
V);(V=_.r7("CHROME_CONNECTED_HEADER"))&&(Q["X-Youtube-Chrome-Connected"]=V);(V=_.r7("DOMAIN_ADMIN_STATE"))&&(Q["X-Youtube-Domain-Admin-State"]=V)}_.mX("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(v=_.r7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=v):v!=="cors"&&_.mX("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(v=_.r7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=v);return Q};
pJ0=function(v,Q){Q.watchNextResponse||Q.reelItemWatchResponse?Q.watchNextResponse?v.content=Q.watchNextResponse:v.content=Q.reelItemWatchResponse:Q.playerResponse?v.player=Q.playerResponse:Q.reelWatchSequenceResponse&&(v.reelSequence=Q.reelWatchSequenceResponse)};
n_=function(v){return function(){return new v}};
lP=function(v){var Q=_.ht();return function(){return Q.resolve(v)}};
_.qC=function(v){if(!v)return null;for(var Q=[],V=0;V<v.textSegments.length;V++){var E=v.textSegments[V];E.text?Q.push(E):E.emojiId&&Q.push({emoji_id:E.emojiId})}return{text_segments:Q}};
ht3=function(v,Q,V,E,b,F,t){F=F===void 0?[]:F;var p=new _.S$;p.endpoint=V;if(!V)return _.$h(new _.xd("handle undefined endpoint",Q.tagName)),p;var Z=tCr(V);Z.length&&(_.Qk(v,Z,Q,E),p.actions=Z);V.loggingUrls&&V.loggingUrls.forEach(function(w){w.baseUrl&&E0(w.baseUrl,w.attributionSrcMode)});
Z=!_.Y("web_skip_impression_click_killswitch")&&E&&E.impression;if(V.clickTrackingParams&&!etQ(V)&&!ZcG(Q)&&!Z&&(Z=_.tR(),!_.zr(Z,Q))){var d=Q.getScreenLayer&&Q.getScreenLayer();d?Z.clickCommand(V,null,d):Z.clickCommand(V,null)}Z=!1;for(d=0;d<F.length;d++)if((0,F[d])(Q,V,E)){Z=!0;break}!Z&&Pr3(V)&&(p.ajaxPromise=d5B(v,Q,V,E,b,t));return p};
ZcG=function(v){var Q;return(v=(Q=v.data)==null?void 0:Q.navigationEndpoint)&&!!v.clickTrackingParams};
etQ=function(v){var Q=_.y(v,_.F$);if(Q&&(Q=Q.signal)&&wJb.indexOf(Q)>=0)return!0;for(var V in v)if(AmE.indexOf(V)>=0)return!0;return!1};
Pr3=function(v){var Q;if(((Q=_.y(v,_.F$))==null?void 0:Q.signal)==="CLIENT_SIGNAL")return!1;for(var V in v)if(kBr.indexOf(V)>=0)return!1;v=Object.keys(v);return v.length===1&&v[0]==="loggingUrls"?!1:!0};
Oc0=function(v,Q,V,E,b,F,t){var p=_.Js.instance;if(p&&_.NC(p,E))var Z=_.xW(p,E,b).then(function(w){return(w==null?0:w.data)?w:{data:w}});
else Z=v.requestDataForServiceEndpoint(E,b),_.y(E,TNh)||_.y(E,YWh)||_.y(E,_.ymm)||_.y(E,cm0)||_.Iy(new _.xd("No RequestBuilder for endpoint",E));var d=_.B_();d.promise.thenCatch(function(){var w=_.oS(E,"action")||_.oS(E,"command")||_.oS(E,"endpoint");w&&(w=E[w],w.hasOwnProperty("onFailureAction")?_.Qk(Q,[w.onFailureAction],V):w.hasOwnProperty("onFailureCommand")&&_.Qk(Q,w.onFailureCommand,V));Z.cancel("Resolver promise rejected")});
Z.then(function(w){if(w){var A=w.error;if(A){if(F&&F.onServerError)F.onServerError(E,w);d.reject(new _.xd("Response error",E,A))}else if(w=w.data)if(A=w.error){if(F&&F.onServerError)F.onServerError(E,w);d.reject(new _.xd("Returned error",E,A))}else{fYr(Q,V,w,E);GB0(w);if(A=LCB(w))for(var k=_.L(A),T=k.next();!T.done;T=k.next()){T=T.value;var c=_.ht().resolve(_.d$(Cr0))||MFb;if(!_.Js.instance||!c.some(function(R){return!!_.y(E,R)})||_.Y("kevlar_response_processor_allowlist_killswitch")){var C=c=void 0;
((C=_.y((c=T)==null?void 0:c.commandMetadata,_.Kt))==null?0:C.sendPost)?_.vp(Q,[T]):_.Qk(Q,[T],V)}}(k=_.y(w==null?void 0:w.frameworkUpdates,gS))&&t&&t(k);if(F&&F.onSuccess)F.onSuccess(E,w);d.resolve(new _.sP(w,A))}}else d.reject(new _.xd("Invalid service endpoint provided",E))},function(w){d.reject(w)});
return d.promise};
GB0=function(v){var Q;(v=(Q=_.y(v==null?void 0:v.onResponseReceivedCommand,_.D5Z))==null?void 0:Q.continuationItems)&&(v==null?void 0:v.length)===1&&_.y(v[0],Rtr)&&_.Mp("so_r",void 0,"search_overview_answer")};
d5B=function(v,Q,V,E,b,F){var t;return(t=Q.getNetworkManager&&Q.getNetworkManager()?Q.getNetworkManager():_.ht().resolve(_.d$(_.hn)))?Oc0(t,v,Q,V,E,b,F):_.kD("No network manager.")};
fYr=function(v,Q,V,E){if(V=V.trackingParams||V.loggingDirectives&&V.loggingDirectives.trackingParams){var b;(_.y(E,_.uP)||_.y(E,n6r)||_.y(E,lYr))&&E.clickTrackingParams?b=_.dE(E.clickTrackingParams):_.Y("web_graft_to_parent_command")&&E.clickTrackingParams&&(b=_.dE(E.clickTrackingParams));var F;E=(F=Q.getScreenLayer)==null?void 0:F.call(Q);Q=_.tR().graftServerVe(V,b,E);_.Un(v,"yt-store-grafted-ve-action",[Q])}};
_.qWZ=function(v){var Q=new Image;return new _.Ry(function(V,E){Q.addEventListener("load",function(){V()});
Q.addEventListener("error",function(){E()});
Q.src=v})};
SWr=function(v){return!!v};
ztb=function(v){return!!v};
Jmb=function(v,Q,V){var E=v.rowIndex;E!==void 0&&_.Un(v.hostElement,"yt-section-reactive-dismissal",[E,Q,V])};
_.j$=function(v,Q,V){v=_.L(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===Q)break;for(var b=_.L(V),F=b.next();!F.done;F=b.next())if(F=F.value,E.tagName===F||!_.Y("web_event_button_role_check_killswitch")&&E.role==="button"&&F==="BUTTON")return!0}return!1};
_.W_=function(v,Q,V){v=_.L(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===Q)break;for(var b=_.L(V),F=b.next();!F.done;F=b.next())if(E.id===F.value)return!0}return!1};
_.aJ=function(){var v=_.ht().resolve(_.d$(_.oJ));return v?(v=v.getCurrentPage())?_.XK(v):null:null};
_.rS=function(){var v=_.aJ();if(!v){var Q=_.ht().resolve(_.d$(_.oJ)),V=Q?typeof Q:"no page manager";Q=Q?Q.getCurrentPage():null;V=new _.xd("Player is missing when requested.",V,Q?Q.tagName:"no page");_.ro(V)}return v};
_.XK=function(v){return v&&v.getPlayer?v.getPlayer():null};
NNB=function(v,Q){v={args:{raw_player_response:v}};Q&&(v.args=Object.assign({},v.args,Q));return v};
x5G=function(v){if(v.args){if(v.args.raw_player_response)return v.args.raw_player_response;if(v.args.player_response)return JSON.parse(v.args.player_response)}};
_.BN0=function(v,Q){var V={url:"/watch?v="+v.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};v.playlistId&&(V.url+="&list="+v.playlistId);v.playerParams&&(V.url+="&pp="+v.playerParams);v={watchEndpoint:v,commandMetadata:{webCommandMetadata:V}};Q&&(v.clickTrackingParams=Q);return v};
so0=function(){return g6Z||!!_.Q9("yt.player.Application")};
jo3=function(){return umE||!!document.querySelector("link#player-css")};
o6B=function(){function v(){g6Z=!0;Wz0.resolve()}
var Q,V;return _.e(function(E){Wz0||(Wz0=new _.bK,so0()?v():(Q=document.createElement("script"),Q.addEventListener("load",v),V=_.BM(_.r7("PLAYER_JS_URL")),_.L$(Q,V),document.head.appendChild(Q)));return E.return(Wz0.promise)})};
aYb=function(){function v(){umE=!0;XJ3.resolve()}
if(!XJ3)if(XJ3=new _.bK,jo3())v();else{var Q=document.createElement("link");Q.id="player-css";Q.addEventListener("load",v);var V=_.BM(_.r7("PLAYER_CSS_URL"));_.e1(Q,V,"stylesheet");document.head.appendChild(Q)}return XJ3.promise};
rmT=function(){return so0()&&jo3()?Promise.resolve([]):Promise.all([o6B(),aYb()])};
$5G=function(v,Q,V){var E={args:{}};v&&(E.args.raw_player_response=v);Q&&(E.args.raw_watch_next_response=Q);V&&(E.args=Object.assign({},E.args,V));return E};
U59=function(v,Q,V){var E=!1;E=E===void 0?!0:E;v=typeof v==="string"?_.$W(document,v):v;var b=IY3+"_"+_.$Q(v),F=HcE[b];if(F&&E)return m5o(Q,V)?F.api.loadVideoByPlayerVars(Q.args||null):F.loadNewVideoConfig(Q),F.api;F=new IJ(v,b,Q,V,void 0);HcE[b]=F;F.addOnDisposeCallback(function(){delete HcE[F.getId()]});
return F.api};
m5o=function(v,Q){return Q&&Q.serializedExperimentFlags?Q.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):v&&v.args&&v.args.fflags?v.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
voo=function(){var v=new _.bK;v.resolved=!1;var Q=v.resolve;v.resolve=function(V){v.resolved=!0;Q(V)};
return v};
Vf3=function(v){var Q={};QG9().install((Q.document_disposed={callback:v},Q))};
H_=function(v,Q){if(!v&&Math.random()<=_.T_("kevlar_unified_player_logging_threshold")){v=Error("uh`"+(Q?Q:"Unspecified error"));if(_.Y("kevlar_unified_player_throw_errors"))throw v;_.Iy(v)}};
_.Eom=function(){var v=_.Q9("ytDebugData.callbacks");v||(v={},_.Pr("ytDebugData.callbacks",v));return v};
FP9=function(v,Q){var V=_.Eom();if(_.Y("web_dd_iu")||b3T.includes(v))V[v]=Q};
KPB=function(){return _.e(function(v){return v.return({isLeader:_.X6T(_.oF().getState()),c:_.r7("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.r7("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
i39=function(){var v;_.e(function(Q){if(Q.nextAddress==1)return FP9("APP_STATE",KPB),Q.yield(_.ht().resolve(_.m0),2);v=Q.yieldResult;FP9("PI",function(){return _.e(function(V){return V.return(v.getVideoStats())})});
_.q1(Q)})};
LP9=function(v){return!!v&&v.length>0&&v[0].loggingUrls!=null&&v[0].loggingUrls.length>0};
tfm=function(){var v=_.r7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(v==null?void 0:v.length)===2?v[1]:null};
phE=function(v){if(!v)return[];var Q=[];v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.loggingUrls){V=_.L(V.loggingUrls);for(var E=V.next();!E.done;E=V.next())E=E.value,E.baseUrl&&Q.push(E.baseUrl)}return Q};
eOG=function(v){var Q=_.Wj(_.JY(_.bb.location.href));v=_.Wj(_.JY(v));return _.Y("kevlar_clear_non_displayable_url_params")?Q==UP(v):UP(Q)==UP(v)};
UP=function(v){var Q=_.Z33(v);v=v.slice(0);var V=["frags"];_.Y("kevlar_hide_pp_url_param")&&V.push("pp");_.Y("kevlar_hide_time_continue_url_param")&&V.push("time_continue");V=_.L(V);for(var E=V.next();!E.done;E=V.next())E=E.value,v=_.Xy(_.Wj(v),E);return _.Wj(v)+(Q?"#"+Q:"")};
vw=function(v,Q){Q=Number(Q)*1E3;var V=Math.round((0,_.wO)()),E=V.toString();v={innertubeResponse:v,serverDateTimestampMs:E,lastModifiedTimestampMs:E,expireTimestampMs:(V+Q).toString()};if(Q=_.r7("INNERTUBE_CONTEXT_CLIENT_NAME"))v.clientName=Q;return v};
d9E=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++P1b};
hOE=function(v){return!isNaN(v)&&v>0};
Al9=function(){_.Y("web_adaptive_repeat_ase")&&whZ&&_.X0("applicationStarted",whZ)};
_.kRS=function(){var v=_.CC(),Q=_.Mo();Q&&v&&_.s2(Q,[v],!0)};
yl3=function(v){return v&&YN9.some(function(Q){return v.includes(Q)})};
O3T=function(v){var Q=_.y(v,_.FJ);if(!Q)return!1;var V=Q.url,E=Q.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!V)return _.ro(Error("zh")),!1;if(Q.target==="TARGET_NEW_WINDOW"){Q={};_.Y("resolve_url_parent_tracking_params")&&(!_.pi(V)||ew(window.location.href,V))&&(Q={endpoint:v,itct:v.clickTrackingParams});mgr(Q);v=null;try{if(E){a:{var b=V,F=Q;E=E===void 0?!1:E;F&&_.ox(b,F);var t=_.oE(b),p=_.Bq(t);b!=p&&_.V9(Error("Yf`"+b));b=p;try{if(E){p=b;p=ovE(p);RO(p);v=_.VN(window,p,"_blank",
"attributionsrc");break a}}catch(k){_.Ui(k)}RO(b);v=_.VN(window,t,"_blank")}clo(_.ht().resolve(fNQ),v,V);return!0}}catch(k){_.ro(k)}_.ox(V,Q);Q={target:"_blank",noopener:!1};t=window;p=xP(V)?V:_.oE(typeof V.href!="undefined"?V.href:String(V));E=self.crossOriginIsolated!==void 0;v="strict-origin-when-cross-origin";window.Request&&(v=(new Request("/")).referrerPolicy);b=Q.noreferrer;if(E&&b&&v==="unsafe-url")throw Error("ve");v=b&&!E;b=Q.target||V.target;F=[];var Z=[],d=!1;for(A in Q){var w=Q[A];switch(A){case "width":case "height":case "top":case "left":F.push(A+
"="+w);break;case "target":break;case "noopener":case "noreferrer":w?Z.push(A):(d=!0,Z.push(A+"=false"));break;case "attributionsrc":F.push(A+(w?"="+w:""));break;default:F.push(A+"="+(w?1:0))}}var A=b!==void 0&&!["_blank","_self","_top","_parent",""].includes(b);A=Mm()&&A;GRh&&E&&F.length===0&&Z.length>0&&!A&&!d?(Z.length===2&&(Z=["noreferrer"]),_.VN(t,p,b,Z[0]),v=C19()):(A=F.join(","),_.qm()&&t.navigator&&t.navigator.standalone&&b&&b!="_self"?(A=_.RD("A"),$P(A,p),A.target=b,v&&(A.rel="noreferrer"),
((Q=Q.attributionsrc)||Q==="")&&A.setAttribute("attributionsrc",Q),Q=document.createEvent("MouseEvent"),Q.initMouseEvent("click",!0,!0,t,1),A.dispatchEvent(Q),A=C19()):v?(A=_.VN(t,"",b,A),t=_.Bq(p),A&&(A.opener=null,t===""&&(t="javascript:''"),t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Qw(t)+'">',t=Hq(t),(Q=A.document)&&Q.write&&(Q.write(U9(t)),Q.close()))):((A=_.VN(t,p,b,A))&&Q.noopener&&(A.opener=null),A&&Q.noreferrer&&(A.opener=null)),v=A);clo(_.ht().resolve(fNQ),
v,V);return!0}A=_.OG(V);A=yl3(A)||V==="https://studio.youtube.com/";if(_.pi(V)&&!ew(window.location.href,V)||A)RO(V),cp(),_.nF(V,void 0,void 0,window.top,Mfm);else return _.Iy(new _.xd("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",v)),!1;return!0};
_.noG=function(v,Q){Q=Q===void 0?0:Q;if(!(_.y(v,D9B)||_.y(v,ROt)||_.y(v,_.FJ)&&_.y(v,_.FJ).url))return!1;var V,E=(V=_.y(v,_.FJ))==null?void 0:V.url;V=E?{externalLinkData:{url:E}}:null;return _.tR().clickCommand(v,V,Q)};
qN9=function(v,Q,V,E,b){b=b===void 0?{}:b;return function(F){var t,p;var Z=((t=v.loggingDirectives)==null?0:(p=t.clientVeSpec)==null?0:p.uiType)?_.Vw(v.loggingDirectives.clientVeSpec.uiType):void 0;b.clickedVisualElement||(b.clickedVisualElement=Z);Z=lNb(v,Q);V(Z,F);Z=_.L(Z);for(t=Z.next();!t.done;t=Z.next()){t=t.value;p=E;var d=F,w=b;w.form?w.form.event=d:w.form={element:p,event:d};e$(t,w)}}};
lNb=function(v,Q){var V=[];Q?(v.toggledCommand&&V.push(v.toggledCommand),v.toggledServiceEndpoint&&V.push(v.toggledServiceEndpoint)):(v.defaultCommand&&V.push(v.defaultCommand),v.defaultServiceEndpoint&&V.push(v.defaultServiceEndpoint),v.defaultNavigationEndpoint&&V.push(v.defaultNavigationEndpoint));return V};
SNb=function(v,Q){var V=v.toggledStyle||v.style,E;switch((E=Q?V:v.style)==null?void 0:E.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Eu=function(){return _.e(function(v){return v.nextAddress==1?v.yield(_.ht().resolve(_.m0),2):v.return(_.ht().resolve(zOB)())})};
_.FS=function(){return _.ht().resolve(zOB)()};
_.K4=function(){return WU(function(){return{lottieEl:void 0}})};
Jlh=function(v,Q){return v.startsWith(Q.uniqueId)};
Na0=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(_.Eu(),2);Q=E.yieldResult;if((V=Q)==null||!V.addEventListener)return iO(),E.return();Q.addEventListener("onCueRangeEnter",v);_.q1(E)})};
x9o=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(_.Eu(),2);Q=E.yieldResult;if((V=Q)==null||!V.removeEventListener)return iO(),E.return();Q.removeEventListener("onCueRangeEnter",v);_.q1(E)})};
Bam=function(v){var Q,V,E,b,F;_.e(function(t){if(t.nextAddress==1)return t.yield(_.Eu(),2);Q=t.yieldResult;if((V=Q)==null||!V.addCueRange)return iO(),t.return();E=_.L(v.timings);for(b=E.next();!b.done;b=E.next())F=b.value,Q.addCueRange(v.uniqueId+"-"+F,F/1E3,(F+100)/1E3);_.q1(t)})};
gor=function(v){var Q,V,E,b,F;_.e(function(t){if(t.nextAddress==1)return t.yield(_.Eu(),2);Q=t.yieldResult;if((V=Q)==null||!V.removeCueRange)return iO(),t.return();E=_.L(v.timings);for(b=E.next();!b.done;b=E.next())F=b.value,Q.removeCueRange(v.uniqueId+"-"+F);_.q1(t)})};
sG3=function(){var v,Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(_.Eu(),2);v=E.yieldResult;if((Q=v)==null||!Q.getPlayerState)return iO(),E.return();V=v.getPlayerState();return E.return(V===2)})};
iO=function(){_.Iy(new _.xd("Smartimation player does not exist or is corrupted"))};
uqE=function(){try{var v;return(v=window.CSS)!=null&&v.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(Q){return _.Iy(new _.xd("Smartimation CSS.supports threw an error")),!1}};
$9o=function(v,Q,V,E,b){var F=v.playlistId?jG9:WPh;Q=Q();V=V();b=!!v.videoId&&b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.d8(Q))return oob({data:v,actionType:F,disabled:b},V);if(v.videoId&&E())return XhS({data:v,actionType:F,disabled:b});switch(Q){case "TRANSFER_STATE_UNKNOWN":return XhS({data:v,actionType:F,disabled:b});case "TRANSFER_STATE_FAILED":return v.videoId?aN9({data:v,actionType:F,disabled:b}):rlQ({data:v,actionType:F,disabled:b});case "TRANSFER_STATE_COMPLETE":return rlQ({data:v,
actionType:F,disabled:b});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return oob({data:v,actionType:F,disabled:b},V);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return v.videoId?aN9({data:v,actionType:F,disabled:b}):XhS({data:v,actionType:F,disabled:b});default:return XhS({data:v,actionType:F,disabled:b})}};
INS=function(v,Q){var V=v.onTapCommand,E=_.MQ(V);if(v.videoId&&_.y(E,_.L4))return _.y(E,_.L4).action=Q,V;v.playlistId&&_.y(E,_.t2)&&(_.y(E,_.t2).action=Q);return V};
XhS=function(v){var Q=v.data;var V=v.actionType;v=v.disabled;return{text:H3h,iconType:"OFFLINE_DOWNLOAD",onTap:INS(Q,V.ACTION_ADD),disabled:v}};
oob=function(v,Q){var V=v.data;var E=v.actionType;v=v.disabled;var b="OFFLINE_DOWNLOAD";Q>=0&&Q<=.1?b="OFFLINE_DOWNLOADING_ZERO":Q>.1&&Q<=.3?b="OFFLINE_DOWNLOADING_TWENTY":Q>.3&&Q<=.5?b="OFFLINE_DOWNLOADING_FORTY":Q>.5&&Q<=.7?b="OFFLINE_DOWNLOADING_SIXTY":Q>.7&&Q<1?b="OFFLINE_DOWNLOADING_EIGHTY":Q===1&&(b="OFFLINE_PIN");return{text:m9b,iconType:b,onTap:INS(V,E.ACTION_REMOVE_WITH_PROMPT),disabled:v}};
rlQ=function(v){var Q=v.data;var V=v.actionType;v=v.disabled;return{text:U9S,iconType:"OFFLINE_PIN",onTap:INS(Q,V.ACTION_REMOVE_WITH_PROMPT),disabled:v}};
aN9=function(v){var Q=v.data;var V=v.actionType;v=v.disabled;return{text:vT9,iconType:"OFFLINE_DOWNLOAD",onTap:INS(Q,V.ACTION_RETRY),disabled:v}};
_.p4=function(v,Q){var V=meZ();return _.Rr(function(){V();return QYT(v,[_.or(Q)||""])},{debugName:"LUZslf"},"Z105t")};
Q6S=function(v){var Q=_.p4(_.RF,function(){return v().videoId}),V=_.p4(_.n7,function(){return v().playlistId});
return function(){return v().videoId?Q:v().playlistId?V:_.L(_.Ge("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
VWb=function(v){var Q=_.p4(l3,function(){return v().videoId}),V=_.p4(_.ocZ,function(){return v().playlistId});
return function(){return v().videoId?Q:v().playlistId?V:_.L(_.Ge(0,void 0,"K4tgOc")).next().value}};
ETo=function(v){var Q=_.p4(_.vXo,function(){return v().videoId});
return function(){return v().videoId?Q:_.L(_.Ge(!1,void 0,"Oaxwcf")).next().value}};
beG=function(v){var Q=_.p4(rD9,function(){return v().videoId});
return function(){return v().videoId?Q:_.L(_.Ge("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
FqT=function(){return{}};
_.p1m=function(v,Q,V){return{submitForm:function(){var E,b,F,t;return _.e(function(p){if(p.nextAddress==1){E=KqG(v());if(!E)return p.return();if(E.onSubmit)return iem(Q),E.onSubmit(),iem(V),p.return();if(!E.submitConfig||!E.formData)return p.jumpTo(0);E.disableDuringSubmission&&Lqh(v(),!0);iem(Q);return p.yield(tWB(E.submitConfig,E.formData()),3)}b=p.yieldResult;iem(V);if(((F=b)==null?0:F.submitResult)&&((t=E)==null?0:t.onSubmitResult))E.onSubmitResult(b.submitResult);E.disableDuringSubmission&&Lqh(v(),
!1);return p.return()})},
isValid:function(){var E=KqG(v());if(E){var b;return!((b=E.isValid)==null||!b.call(E))}return!0},
isSubmitting:function(){var E,b;return!!((E=KqG(v()))==null?0:(b=E.isSubmitting)==null?0:b.call(E))}}};
_.eC=function(){if(!eA9){var v=_.L(_.Ge(new Map,void 0,"Y1XnBc"));eA9=v.next().value;ZeB=v.next().value}return eA9};
_.PjZ=function(v){ZeB(new Map(v))};
KqG=function(v){if(v)return _.eC()().get(v)};
tWB=function(v,Q){var V;return _.e(function(E){return E.nextAddress==1?Q?(V=_.ht().resolve(_.d$(dOo)))&&v.submitId?E.yield(V.submitForm(v.submitId,Q,hAm,v.params,v.clickTrackingParams),2):E.return(Promise.reject(Error("Bh"))):E.return(Promise.reject(Error("Ah"))):E.return(E.yieldResult)})};
Lqh=function(v,Q){if(v){var V=_.eC();V().set(v,Object.assign({},V().get(v),{isSubmitting:function(){return Q}}));
_.PjZ(V())}};
iem=function(v){if(v){var Q=_.ht().resolve(_.At);Q&&(v=_.MQ(v()))&&Q.resolveCommand(v)}};
kbE=function(v,Q){Q=Q===void 0?{shouldPersist:!0}:Q;return{useUpdatableData:function(V,E){var b=_.Rr(function(){return v(V())},void 0,"Gmrblb"),F=w1S(V,b,E,Q);
_.uH(function(){if(b()!=null){AUQ.set(b(),F);var t=b();_.j_(function(){AUQ.delete(t)})}},"j4hx9b");
return F},
getData:function(V){var E;return(E=AUQ.get(v(V)))==null?void 0:E[0]()},
updateData:function(V,E){V=v(V);V=AUQ.get(V);if(!V)return!1;var b=_.L(V);V=b.next().value;b=b.next().value;E=E(V());b(E);return!0}}};
w1S=function(v,Q,V,E){E=E===void 0?{}:E;var b=_.L(_.K_(function(){var p=v(),Z=Q();return Tjh(p,Z,V,E)})),F=b.next().value,t=b.next().value;
return[F,function(p){t(p);var Z=Q();if(E.shouldPersist&&Z!=null){var d,w=(d=V==null?void 0:V.map(function(A){return A()}))!=null?d:[];
_.Zz.set(Z,[p,w])}}]};
Tjh=function(v,Q,V,E){E=E===void 0?{}:E;if(Q==null||!E.shouldPersist)return v;E=_.Zz.get(Q);if(!E)return v;var b=_.L(E);E=b.next().value;var F=b.next().value,t;b=(t=V==null?void 0:V.map(function(p){return p()}))!=null?t:[];
if((F==null?0:F.length)&&(V==null?0:V.length)&&b.some(function(p,Z){return p!==F[Z]}))return _.Zz.remove(Q),v;
(V==null?0:V.length)&&_.Zz.set(Q,[E,b]);return E};
Y6Q=function(v){var Q=_.L(_.Ge(!0,void 0,"bKtO6d")),V=Q.next().value;Q.next();return function(){var E=RS(v.children());return _.P(_.h,{cond:V,then:function(){return E},
else:v.fallback})}()};
_.Pw=function(v){var Q=yU0(v),V=Q.data,E=Q.mapping,b=Q.wrapper;Q=Q.pendingFallback;var F=function(){return cU0(_.or(V))},t=function(){var p=F(),Z=[];
p=_.L(p);for(var d=p.next();!d.done;d=p.next()){var w=void 0;d=d.value;var A=void 0;for(w in d)if(!(!d).hasOwnProperty(w)){A=w;break}(w=A)&&Z.push(w)}return Z};
return v.data?_.P(Y6Q,{fallback:Q},function(){return _.P(_.xb,{each:t},function(p,Z){var d=b?function(A){return b(function(){return E[p](A,Z)},w,Z)}:function(A){return E[p](A,Z)};
d.debugName||(d.debugName=String(p));if(!E[String(p)])return document.createComment("");d.componentType!==qA&&fFm(String(p));var w=Gb3(F,p,Z);return _.P(d,{data:w})})}):_.P(_.w7,null)};
yU0=function(v){var Q=v.targetId||CjQ(v.children);if(!v.data||!Q)return Object.assign({},v,{mapping:v.children});var V="stamper-"+MWB++,E=function(){var p;return(p=typeof v.targetId==="function"?v.targetId(V):v.targetId)!=null?p:V};
Q=_.L(Oem(function(){var p=cU0(v.data());p.targetId=E;return p})).next().value;
var b=Object.assign({},(_.ht().resolve(_.d$(DOm))||{}).replaceableMapping,v.children);if(v.replacementWrapper){var F=b.notificationTextRenderer,t=b.notificationMultiActionRenderer;F&&(b.notificationTextRenderer=function(p,Z){return v.replacementWrapper(F({data:p.data},Z))});
t&&(b.notificationMultiActionRenderer=function(p,Z){return v.replacementWrapper(t({data:p.data},Z))})}return Object.assign({},v,{data:Q,
mapping:b,wrapper:function(p,Z,d){return VBo({targetId:E,stamperIndex:d},v.wrapper?function(){return v.wrapper(p,Z,d)}:p)}})};
Gb3=function(v,Q,V){var E;return _.Rr(function(){var b=v()[V()];if(b)E=b[Q];else return _.Iy(new _.xd("Stamper failed to find "+String(Q)+" at index "+V()+" of data array of length "+(v().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),E;return b[Q]},void 0,"AtsHlc")};
CjQ=function(v){v=_.L(Object.keys(v));for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,RAS.includes(Q)||nTB.includes(Q)||lFo.includes(Q))return!0;return!1};
cU0=function(v){return v?Array.isArray(v)&&v instanceof Array?v:[v]:[]};
fFm=function(v){if(_.Y("web_enable_renderer_logger")){var Q;(Q=_.ht().resolve(_.d$(q6b)))!=null&&Q.loggingEnabled&&!Q.ids.has(v)&&Q.ids.add(v)}};
S6Z=function(){var v,Q;return(Q=(v=_.ht().resolve(_.d$(_.JR)))==null?void 0:v())!=null?Q:!1};
JUT=function(v,Q){v=v===void 0?zAQ:v;switch(Q.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},v,{isOpen:Q.payload});default:return v}};
xO3=function(v,Q){v=v===void 0?NjE:v;switch(Q.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},v,{isAllowed:Q.payload});default:return v}};
gTh=function(v,Q){v=v===void 0?BjZ:v;switch(Q.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},v,{errorMessage:Q.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},v,{title:Q.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},v,{privacy:Q.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},v,{isDisabled:Q.payload});default:return v}};
uPG=function(v,Q){v=v===void 0?s6Q:v;switch(Q.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},v,{isOpen:Q.payload});default:return v}};
Wqb=function(v,Q){v=v===void 0?j6b:v;switch(Q.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},v,{isFullscreen:Q.payload});case "SET_NAVIGATION_BUTTON":var V=Q.payload.targetId,E=Object.assign({},v.navigationButtons);E[V]=Q.payload.button;return Object.assign({},v,{navigationButtons:E});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},v,{topPanelId:Q.payload});case "SET_SECONDARY_HEADER":return V=Q.payload.panelId,E=Object.assign({},v.secondaryHeader),E[V]=Q.payload.secondaryHeader,
Object.assign({},v,{secondaryHeader:E});default:return v}};
rUb=function(){return Su(Object.assign({},{voiceSearch:T4Q,engagementPanel:Wqb,bottomSheet:JUT,cinematicSetting:xO3,shorts:O13,drawerLayout:uPG,createPlaylist:gTh,locationCollection:oTo,reportChannel:X1m,reportForm:aF0},DD9))};
$O9=function(v,Q){_.XT.addLowPriorityJob(function(){var V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return _.GC(F,2),F.yield(DxS(),4);case 4:return F.yield(fetch(v),5);case 5:return V=F.yieldResult,F.yield(V.json(),6);case 6:E=F.yieldResult;As.set(v,E);requestAnimationFrame(function(){Q(E)});
_.FT(F,0);break;case 2:b=_.n$(F),_.Iy(b),_.q1(F)}})})};
IFB=function(v){var Q={animationConfig:{},listeners:{}},V=function(){v(!0)};
Q.listeners.data_failed=V;Q.listeners.error=V;Q.listeners.data_ready=function(){v(!1)};
return Q};
UO3=function(v){var Q=v.model;var V=v.subscribed;var E=v.isOverlay;var b=v.element;var F=v.commandController;var t=v.notificationState;if(V){var p,Z;var d=(Q==null?void 0:(p=Q.buttonStyle)==null?void 0:p.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:Q==null?void 0:(Z=Q.unsubscribeButtonContent)==null?void 0:Z.buttonText}else{var w;d=Q==null?void 0:(w=Q.subscribeButtonContent)==null?void 0:w.buttonText}a:{var A;switch(Q==null?void 0:(A=Q.buttonStyle)==
null?void 0:A.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":p="S";break a;default:p="M"}}a:if(E)E="overlay";else switch(Q.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":E="overlay";break a;default:E="mono"}a:if(V)var k="tonal";else switch((k=Q.buttonStyle)==
null?void 0:k.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":k="tonal";break a;default:k="filled"}return{style:E,type:k,state:Q.disableSubscribeButton?"disabled":"active",size:p,focused:v.focused,toggled:V,accessibilityLabel:HeZ(Q,V,t),buttonText:d,iconPosition:Q.disableNotificationBell?"none":"leading-trailing",onTap:mOE(Q,V,b,F),disableTextEllipsis:!!v.disableTextEllipsis}};
mOE=function(v,Q,V,E){return function(b){if(Q){var F;var t=v.disableNotificationBell?_.MQ(v==null?void 0:(F=v.unsubscribeButtonContent)==null?void 0:F.onTapCommand):_.MQ(v==null?void 0:v.onShowSubscriptionOptions)}else{var p;t=_.MQ(v==null?void 0:(p=v.subscribeButtonContent)==null?void 0:p.onTapCommand)}t&&e$(t,{form:{element:V==null?void 0:V.value},commandController:E});b.stopPropagation()}};
HeZ=function(v,Q,V){if(Q){if(v==null?0:v.disableNotificationBell){var E;return v==null?void 0:(E=v.unsubscribeButtonContent)==null?void 0:E.accessibilityText}switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var b;return v==null?void 0:(b=v.bellAccessibilityData)==null?void 0:b.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var F;return v==null?void 0:(F=v.bellAccessibilityData)==null?void 0:F.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var t;return v==null?void 0:(t=
v.bellAccessibilityData)==null?void 0:t.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var p;return v==null?void 0:(p=v.bellAccessibilityData)==null?void 0:p.disabledLabel;default:var Z;return v==null?void 0:(Z=v.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}}else{var d;return v==null?void 0:(d=v.subscribeButtonContent)==null?void 0:d.accessibilityText}};
vZT=function(v,Q){return _.Fg(v.entities,"subscriptionStateEntity",Q)};
QpZ=function(v,Q){return _.Fg(v.entities,"subscriptionNotificationStateEntity",Q)};
VlZ=function(v,Q){return _.Fg(v.entities,"upcomingEventReminderStateEntity",Q)};
EZo=function(v,Q){return _.Fg(v.entities,"commentEntityPayload",Q)};
bXE=function(v,Q){return _.Fg(v.entities,"engagementToolbarSurfaceEntityPayload",Q)};
FBZ=function(v,Q){return _.Fg(v.entities,"triStateButtonStateEntityPayload",Q)};
KBT=function(v,Q){return _.Fg(v.entities,"commerceCartCheckoutButtonEntity",Q)};
iXS=function(v,Q){return _.Fg(v.entities,"commandEntity",Q)};
LBZ=function(v){if(v){switch(v){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":v="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":v="NOTIFICATIONS_OFF";break;default:v="NOTIFICATIONS_NONE"}return v}};
tlt=function(v,Q,V){V.subscribed!==Q&&((V=V.key)&&_.jT(_.dW("subscriptionStateEntity",V,{key:V,subscribed:Q})),v.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:Q})),Q||_.mb(v,"yt-unsubscribe-action"))};
eot=function(v){v=_.y(_.MQ(v),_.h2);var Q,V,E,b;return(b=_.y(v==null?void 0:(Q=v.panelLoadingStrategy)==null?void 0:(V=Q.inlineContent)==null?void 0:(E=V.sheetViewModel)==null?void 0:E.content,pKG))==null?void 0:b.listItems};
ZXr=function(v,Q){if(v.onShowSubscriptionOptions&&Q&&(v=eot(v.onShowSubscriptionOptions),v!=null&&v.length)){var V=LBZ(Q);v.forEach(function(E){E=_.y(E,_.wW);var b,F,t,p,Z=E==null?void 0:(b=E.leadingImage)==null?void 0:(F=b.sources)==null?void 0:(t=F[0])==null?void 0:(p=t.clientResource)==null?void 0:p.imageName;E&&Z&&(E.isSelected=Z===V)})}};
PEE=function(v,Q,V,E){Q&&V?v.style.width=V+"px":!Q&&E&&(v.style.width=E+"px")};
dHo=function(v,Q,V){var E;(E=v.lottieEl)==null||E.goToAndPlay(0);var b;(b=Q.lottieEl)==null||b.goToAndPlay(0);_.A2(_.XT,function(){var F;(F=V.lottieEl)==null||F.goToAndPlay(0)},300)};
ho0=function(v){return!(v==null||!v.iconName||(v==null?0:v.title))};
wKo=function(v,Q,V,E){V&&_.XT.cancelJob(V);V=_.XT.addLowPriorityJob(function(){E(void 0)},5E3);
E(V);Q&&v!==(Q.likeStatus==="LIKE")&&Q.key&&_.jT(_.dW("likeStatusEntity",Q.key,{key:Q.key,likeStatus:v?"LIKE":"INDIFFERENT",hadUserInteraction:v}))};
_.AOT=function(v,Q){return _.Fg(v.entities,"accountLinkStatusEntity",Q)};
kLh=function(v,Q){return _.Fg(v.entities,"hatsSurveyEntity",Q)};
Tdo=function(v,Q){return _.Fg(v.entities,"hatsSurveyStateEntity",Q)};
YbQ=function(v,Q){return _.Fg(v.entities,"quantityIncrementerEntity",Q)};
yO9=function(v){switch(v){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
cOB=function(v){switch(v){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
f$G=function(v){switch(v){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.CET=function(v){var Q=_.T_("web_generic_client_event_wait_period ",0);Q||(Q=3E5);var V=GLE.get(v);!_.Y("enable_web_client_experiment_event_timeout_killswitch")&&V&&(0,_.wO)()-V<Q||(GLE.set(v,(0,_.wO)()),_.X0("genericClientExperimentEvent",{eventType:v}))};
_.Mlr=function(v,Q){var V,E,b,F;a:{var t=v.style;if(t===void 0)t=17;else switch(t){case "LIVE":t=18;break a;default:t=17}}return{type:t,text:Q?FrT({seconds:Q}):_.j0(v.text),accessibilityText:(V=v.text)==null?void 0:(E=V.accessibility)==null?void 0:(b=E.accessibilityData)==null?void 0:b.label,icon:(F=v.icon)==null?void 0:F.iconType}};
OXQ=function(v){switch(v){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
DHE=function(v){if(!v)return"";var Q,V=(Q=_.ht().resolve(_.d$(_.JR)))==null?void 0:Q(),E;if(!V&&((E=v.vibrantColorPalette)==null?0:E.iconInactiveColor))return M2(v.vibrantColorPalette.iconInactiveColor,"1");var b;return V&&((b=v.darkColorPalette)==null?0:b.iconInactiveColor)?M2(v.darkColorPalette.iconInactiveColor,"1"):v.color?M2(v.color,"1"):v.sampledThumbnailColor?(v=v.sampledThumbnailColor,"rgba("+v.red+","+v.green+","+v.blue+");"):""};
_.kl=function(v,Q){if(!v.includes("DATE_PLACEHOLDER"))return v;var V=new Date(0);V.setUTCSeconds(Q);return v.replace("DATE_PLACEHOLDER",RoS(V))};
nZr=function(v,Q,V){return function(E){var b=v.command;b&&(e$(b,{form:{element:V}}),Q([b],E))}};
qbh=function(v,Q,V,E,b){return function(F){var t=l$Z(v,Q);t&&e$(t,{form:{element:V},commandController:E});b&&F.stopPropagation()}};
l$Z=function(v,Q){if(v.signInEndpoint&&!_.Y("web_subscribe_sign_in_endpoint_killswitch"))return v.signInEndpoint;if(Q){if(v.serviceEndpoints)return v.serviceEndpoints[1];if(v.onUnsubscribeEndpoints)return v.onUnsubscribeEndpoints[0]}else{if(v.serviceEndpoints)return v.serviceEndpoints[0];if(v.onSubscribeEndpoints)return v.onSubscribeEndpoints[0]}};
Sbt=function(v,Q){var V,E,b,F;Q=Q&&((V=v.unsubscribeAccessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label)||((b=v.subscribeAccessibility)==null?void 0:(F=b.accessibilityData)==null?void 0:F.label);return v.longSubscriberCountText?[Q,_.j0(v.longSubscriberCountText)].filter(function(t){return t}).join(" "):Q};
Tw=function(v,Q){return Q||(v==null?0:v.isChannelDelegate)?"disabled":"active"};
zoZ=function(v,Q){var V;switch((V=v.style)==null?void 0:V.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Tw(v)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Tw(v)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Tw(v,!0)};case "OVERLAY":return Q?{style:"overlay",type:"tonal",state:Tw(v)}:{style:"overlay",type:"filled",state:Tw(v)};default:return Q?{style:"mono",type:"tonal",state:Tw(v)}:{style:"mono",type:"filled",state:Tw(v)}}};
_.Yl=function(){for(var v=[],Q=_.L(_.aE.apply(0,arguments)),V=Q.next();!V.done;V=Q.next())if(V=V.value)if(typeof V==="string")v.push(V);else{V=_.L(Object.entries(V));for(var E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;(b=b.next().value)&&v.push(E)}}return v.join(" ")};
JOB=function(v){switch(v){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
NdS=function(v){switch(v){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
xHT=function(v,Q){var V=v.map(function(E){return E.toString()});
return _.EP(function(E){if(V.includes(E.key)){Q&&E.preventDefault();var b;(b=E.currentTarget)==null||b.click()}})};
_.BdE=function(){return xHT(["Enter"])};
_.gZG=function(){return xHT(["Enter"," "],!0)};
_.yw=function(v){if(v.composedPath)return v.composedPath();if(!v.__composedPath){for(var Q=[],V=v.target;V;)Q.push(V),V=V.parentNode;Q.push(window);v.__composedPath=Q}return v.__composedPath};
_.cw=function(v,Q,V){v=_.L(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===Q)break;for(var b=_.L(V),F=b.next();!F.done;F=b.next())if(F=F.value,E.tagName===F||E.role==="button"&&F==="BUTTON")return!0}return!1};
uRG=function(v,Q){var V,E=(V=Q.observer)!=null?V:_.ht().resolve(Aq);if(v){V=spZ(v);var b=[];Q.showOption&&b.push(E.observe(v,function(){Q.visibilityCallback(!0,v)},Q.showOption));
Q.hideOption&&b.push(E.observe(v,function(){Q.visibilityCallback(!1,v)},Q.hideOption));
Q.prescanOption&&Q.prescanCallback&&b.push(E.observe(v,function(){Q.prescanCallback()},Q.prescanOption));
var F;V.visibilityMonitorKeys=((F=V.visibilityMonitorKeys)!=null?F:[]).concat(b)}};
spZ=function(v){var Q;return(Q=v.polymerController)!=null?Q:v};
_.Gw=function(v){return!!_.f4(v)};
_.C4=function(v,Q,V,E,b){return function(F){var t=QL3();_.uH(function(){if(F){jp3(F,v(),b);var p=WBo(F,v(),Q,V,E,t);_.j_(p)}},"lrewVd")}};
jp3=function(v,Q,V){var E=oZr(Q),b=XKQ(Q);Q=E&&a$m;var F=b&&rOr;(E||b)&&uRG(v,{visibilityCallback:function(t){var p=_.ht().resolve(_.At);t&&E?p.resolveCommand(E,{form:{element:V?v:void 0},disableClickTracking:!0}):!t&&b&&p.resolveCommand(b,{form:{element:V?v:void 0},disableClickTracking:!0})},
showOption:Q,hideOption:F})};
WBo=function(v,Q,V,E,b,F){var t=new Map;if(Q=_.f4(Q)){var p;v=(E==null?void 0:(p=E.onTap)==null?void 0:p.value)||v;V=$HE(Q,v,V==null?void 0:V.onTap,b,F);v.addEventListener("click",V);t.set("click",V)}return function(){for(var Z=_.L(t),d=Z.next();!d.done;d=Z.next()){var w=_.L(d.value);d=w.next().value;w=w.next().value;v.removeEventListener(d,w)}}};
_.f4=function(v){var Q;return(v=(Q=_.y(v,_.MJ))==null?void 0:Q.onTap)&&_.MQ(v)};
oZr=function(v){var Q;return(v=(Q=_.y(v,_.MJ))==null?void 0:Q.onVisible)&&_.MQ(v)};
XKQ=function(v){var Q;return(v=(Q=_.y(v,_.MJ))==null?void 0:Q.onHidden)&&_.MQ(v)};
$HE=function(v,Q,V,E,b){var F=function(p){_.ht().resolve(_.At).resolveCommand(v,p)},t=function(p){E&&_.cw(_.yw(p),Q,E)||F(p.target?{form:{element:p.target,
sourceData:v,mutationContext:b}}:void 0)};
V&&(t=function(p){V(p,F)});
return t};
I$B=function(v){switch(v){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
HXQ=function(v){var Q=v.numAvatarsInCluster;switch(v.clusterSize){case "small":return Q===2?22:18;case "40":return Q===2?24:22;default:return Q===2?24:20}};
mHt=function(v,Q){return function(V){var E=Object.keys(Q);_.uH(function(){if(v!=null&&v()){for(var b=_.L(E),F=b.next();!F.done;F=b.next())F=F.value,V.addEventListener(F,Q[F]);_.j_(function(){for(var t=_.L(E),p=t.next();!p.done;p=t.next())p=p.value,V.removeEventListener(p,Q[p])})}},"bXZGfe")}};
UHT=function(v){switch(HXQ(v)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
vgB=function(v){switch(v){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
QPS=function(v){switch(HXQ(v)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
VYb=function(v){switch(v){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
Eg0=function(v){switch(v){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
bRB=function(v){return v==="medium"||v==="48"||v==="large"||v==="extra-large"||v==="extra-extra-large"||v==="giant"};
F8Z=function(v){return!!((v==null?0:v.includes(3))||(v==null?0:v.includes(5)))};
iR9=function(v){var Q=v.data;return{size:K8B(Q.avatarImageSize),type:Q.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:v.onTap,decorations:v.decorations||[],badgeText:v.badgeText,accessibilityText:v.accessibilityText,avatarButtonCustomClassName:v.avatarButtonCustomClassName,clusterLayoutConfig:v.clusterLayoutConfig}};
K8B=function(v){switch(v){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
L8Q=function(v){switch(v){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
tY3=function(v){switch(v){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
pSS=function(v){var Q=v.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",V,E=v.avatars&&v.avatars.length>0?(V=_.y(v.avatars[0],_.Ou))==null?void 0:V.avatarImageSize:"AVATAR_SIZE_UNKNOWN";V=L8Q(E)||0;if(Q){var b,F=(b=v.avatarClusterSize)!=null?b:"AVATAR_SIZE_M";Q=L8Q(F);var t,p,Z=Math.min((p=(t=v.avatars)==null?void 0:t.length)!=null?p:0,4),d;return{avatars:((d=v.avatars)==null?void 0:d.slice(0,4))||[],avatarSizeInPx:V,avatarStackStyle:{width:Q+"px",height:Q+"px",position:"relative"},avatarStyle:function(A){var k=
HXQ({clusterSize:K8B(F),numAvatarsInCluster:Z,avatarIndex:A});var T=L8Q(F);Z===3&&A===2?(T=(T-k)/2,T=(_.r7("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*T):T=void 0;return{position:"absolute",top:Z===2&&A===1||Z===3&&A===2||Z===4&&A>=2?"0":void 0,bottom:Z===2&&A===0||Z>2&&A<2?"0":void 0,left:Z===2&&A===1||Z>2&&(A===1||A===3)?"0":void 0,right:Z<=3&&A===0||Z===4&&(A===0||A===2)?"0":void 0,transform:T?"translateX("+T+"px)":void 0,width:k+"px",height:k+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(A){return{clusterSize:K8B(v.avatarClusterSize),numAvatarsInCluster:Z,avatarIndex:A}},
avatarButtonCustomClassName:void 0}}var w;return{avatars:((w=v.avatars)==null?void 0:w.slice())||[],avatarSizeInPx:V,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:tY3(E),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
exb=function(v,Q,V){return function(){e$(v,{form:{element:Q},commandController:V})}};
ZRb=function(v){switch(v){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
PmZ=function(v){switch(v){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
dwE=function(v){if("accessibilityText"in v)return v.accessibilityText||"";if("title"in v){var Q,V,E;return((Q=v.title)==null?void 0:(V=Q.accessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label)||""}if("accessibility"in v){var b,F;return((b=v.accessibility)==null?void 0:(F=b.accessibilityData)==null?void 0:F.label)||""}return""};
hxB=function(v){return"inlinePlayerData"in v};
Dz=function(v){return new wSZ(v)};
ANh=function(v){switch(v){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
kJm=function(v){switch(v){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
Tc3=function(v){switch(v){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
Ywm=function(v){return function(Q){v&&(v.thumbnailElRef=Q.thumbnailElRef,v.thumbnail=Q.thumbnail,v.thumbnailOverlays=Q.thumbnailOverlays,v.thumbnailSize=Q.thumbnailSize)}};
yNZ=function(v){switch(v){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
fsB=function(v){var Q=_.L(_.Ge(!1,void 0,"E6wDDe")),V=Q.next().value,E=Q.next().value;_.jg(function(){var b=v==null?void 0:v();if(b){var F=_.ht().resolve(_.d$(cN0));if(F){var t={triggeringElement:b,onDwellTriggeredFn:function(){E(!0)},
onDwellEndFn:function(){E(!1)}};
F.registerElement(t);_.j_(function(){_.R7(F,t)})}}});
return V};
GJm=function(v,Q,V){V?V(Q):_.nx(Q,v.target?{form:{element:v.target}}:void 0)};
_.n4=function(v,Q,V,E){return function(b){_.uH(function(){function F(w){w=w.composedPath();w=_.L(w);for(var A=w.next();!A.done;A=w.next()){A=A.value;if(A===b)break;if(A.className.indexOf("HostIsClickableAdComponent")>=0||A.tagName==="A".toString()||A.tagName==="BUTTON".toString())return!0}return!1}
var t=new Map,p,Z=(p=v())==null?void 0:p.onTap;if(Z){p=function(w){F(w)||GJm(w,Z,Q)};
var d=function(w){F(w)||w.key!=="Enter"||GJm(w,Z,Q)};
(V==null?0:V())||_.Y("enable_web_home_top_landscape_image_layout_level_click")?(b.addEventListener("tap",p),t.set("tap",p)):(b.addEventListener("click",p),t.set("click",p));if(E==null?0:E())b.addEventListener("keydown",d),t.set("keydown",d)}_.j_(function(){for(var w=_.L(t),A=w.next();!A.done;A=w.next()){var k=_.L(A.value);A=k.next().value;k=k.next().value;b.removeEventListener(A,k)}})},"D7XqOc")}};
Cmm=function(v,Q){var V,E=(V=v.interaction)==null?void 0:V.onTap;if(v=_.DM({elementsCommand:E,forceNewState:!0,skipOnClick:!0}))return v.onclick=function(b){kub(b)&&(b.preventDefault(),E&&GJm(b,E,Q))},Rd(v)?v:void 0};
MYT=function(v){switch(v){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ORZ=function(v){switch(v){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
DwZ=function(v){switch(v){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.Rxo=function(v){return _.Y("rich_grid_enable_dynamic_offset")&&v?Math.max((v-_.T_("rich_grid_dynamic_offset_anchor_width",1300))/100*_.T_("rich_grid_dynamic_offset_offset_per_100",10),_.T_("rich_grid_dynamic_offset_lower_bound",-60)):0};
ngr=function(v,Q){switch(Q){case 4:return 16;case 1:return v<528?16:v<1024?32:48;case 2:return(v>=528?16:8)/2;case 3:return(v<528?16:v<1024?32:48)+(v>=528?16:8)/2;default:return 0}};
lsE=function(v){var Q=v.originalContainerWidth;var V=v.sizing;var E=v.standardUnit;if(v.isCompactList&&Q<528)return 1;switch(V){case "STANDARD":return E;case "COMPACT":return E+1;case "EXTRA_COMPACT":return _.Y("web_responsive_extra_compact_2x")?E*2:_.Y("web_responsive_current")?E===1?2:E%2===0?E/2*3:E+2:E<4?E*2:Math.ceil(E*3/2);case "MINI":return E>1?E*2:3;default:return E}};
Swr=function(v){var Q=v.containerWidth;var V=v.peek;var E=v.gutter;var b=v.numItems;v=v.ignoreMaxWidthLimit;Q=V?Math.max((Q-V-E*b)/b,0):Math.max((Q-E*(b-1))/b,0);return v?Q:Math.min(Q,qwE)};
_.lO=function(v){var Q=v.containerWidth;var V=v.hasPeek;var E=v.sizing;var b=v.marginSettings;var F=v.isCompactList;var t=v.enableFullBleedForSingleCol;var p=v.standardUnitMinWidth;E=E||"STANDARD";V=!!V;v=Q>=528?16:8;var Z=V?Q>=528?48:24:0;b=ngr(Q,b);var d=Math.max(Q-b*2,0);p=_.Y("kevlar_disable_min_width_override")?void 0:p;p=Math.min(Math.max(Math.floor((d-Z+v)/((p!=null?p:zxS)+_.Rxo(Q)+v)),1),6);var w=(t=!!t&&p===1)||p===1&&E!=="STANDARD";V=V||w?d:Math.min(d,(qwE+v)*p-v);E=lsE({originalContainerWidth:Q,
sizing:E,standardUnit:p,isCompactList:F});return{itemWidth:Swr({containerWidth:V,peek:Z,gutter:v,numItems:E,ignoreMaxWidthLimit:w}),gutter:v,maxContainerWidth:V,numItems:E,margin:t?0:b,contentMargin:ngr(Q,1),typographyBump:Swr({containerWidth:V,peek:Z,gutter:v,numItems:p,ignoreMaxWidthLimit:w})>400&&!(F&&Q<528),standardUnit:p}};
qJ=function(v){switch(v){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.JNb=function(v){if(v){var Q;if((Q=v.responsiveContainerConfiguration)==null?0:Q.responsiveSize)return qJ(v.responsiveContainerConfiguration.responsiveSize);if(v.layoutSizing)switch(v.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
NcT=function(v){if(v.fullbleed)return 1;switch(v.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
ulh=function(v,Q,V,E,b,F,t,p){a:if(v===4&&E==="LOCKUP_CONTENT_TYPE_SOURCE")var Z=1;else switch(v){case 3:Z=1;break a;default:Z=0}a:switch(v){case 4:F=!!(F&&F<100);break a;default:F=!1}a:switch(v){case 3:case 4:var d=E==="LOCKUP_CONTENT_TYPE_CHANNEL"||E==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:d=!1}return{isOverlay:xwQ(v,E),isCard:Bct(E,t),sizing:Q!=null?Q:"STANDARD",typographyBump:V!=null?V:!1,isTiny:F,isCentered:d,isCollection:ggt(E),arrangement:Z,addMarginForFullbleed:v===1&&E!=="LOCKUP_CONTENT_TYPE_VIDEO",
fullbleed:v===1&&E==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:sPQ(E,b,p),disableRounding:v===5||Bct(E,t)||v===1&&E==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:ggt(E)?2:0,useLegacyTypography:!(p==null||!p.useLegacyTypography),useRichGridLegacyTypography:!(p==null||!p.useRichGridLegacyTypography)&&!_.Y("web_enable_typography_bump"),compactMetadata:Z===0&&E==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:p==null?void 0:p.onFocusEffect,titleMaxLines:E==="LOCKUP_CONTENT_TYPE_AI_CARD"?1:void 0}};
ggt=function(v){switch(v){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
Bct=function(v,Q){if(Q&&v==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(v){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
xwQ=function(v,Q){if(Q==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(v){case 5:return!0;case 4:return!1;default:return!1}};
sPQ=function(v,Q,V){if(Q&&(V==null||!V.alwaysRespectPodcastShowAspectRatio||v!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(v){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
_.SC=function(v){if(v){var Q;return((Q=_.ht().resolve(_.d$(_.JR)))==null?0:Q())?v.darkThemeImage:v.image}};
ogQ=function(v,Q,V,E,b,F){if(b&&F&&Q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:b,height:F};if(!V)return{};b=V.size;V=V.allowFullWidth;if(Q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&V)return{fullWidth:!0};if(b===void 0)return{};switch(v){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:b,height:b};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:b,height:1/jPh*b};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:b*
W8G,height:b};default:return(E==null?0:E.height)&&(E==null?0:E.width)?E.width/E.height>1?{maxWidth:b*W8G}:{maxWidth:b}:{maxWidth:b}}};
XSr=function(v){var Q;return v&&((Q=_.SC(v.themedImage))!=null?Q:v.image)};
as9=function(v){var Q;return v==null?void 0:(Q=v.sources)==null?void 0:Q[0]};
rNb=function(v){switch(v){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.$wo=function(v){if(v)return"content-id-"+v};
IsG=function(v){switch(v.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
HRG=function(v){var Q=_.zw.currentPageSubTypeSelector(_.uf().getState())||"";return v?v+Q:""};
mwG=function(v){switch(v){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
vnT=function(v){var Q=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],V=_.L(_.Ge(void 0,void 0,"JrqNsb")),E=V.next().value,b=V.next().value,F=_.L(_.Ge(void 0,void 0,"rWytse"));V=F.next().value;var t=F.next().value;F=_.L(_.Ge(void 0,void 0,"DHRqxe"));var p=F.next().value,Z=F.next().value;return{touchFeedbackEvents:{pointerUpEvent:E,pointerDownEvent:V,pointerLeaveEvent:p},touchFeedbackOnPointerUp:_.EP(function(d){Uw0(_.yw(d),Q)||(b(d),t(void 0),Z(void 0))}),
touchFeedbackOnPointerDown:_.EP(function(d){v==null||v(d);Uw0(_.yw(d),Q)||(t(d),b(void 0),Z(void 0))}),
touchFeedbackOnPointerLeave:_.EP(function(d){Uw0(_.yw(d),Q)||(Z(d),t(void 0),b(void 0))})}};
Uw0=function(v,Q){Q=Q===void 0?[]:Q;Q=[].concat(_.ui(Q),["BUTTON".toString()]);v=_.L(v);for(var V=v.next();!V.done;V=v.next()){V=V.value;for(var E=_.L(Q),b=E.next();!b.done;b=E.next())if(V.tagName===b.value)return!0}return!1};
Q_t=function(v){switch(v){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
Vbr=function(v){return v.scrollHeight-v.offsetHeight>1};
EnQ=function(v,Q){var V;return z4(v,((V=v.content)==null?void 0:V.length)||0,!Q)};
Kjm=function(v,Q,V,E,b,F){if(!Q||bb9){var t;return z4(v,((t=v.content)==null?void 0:t.length)||0,!0)}Q=E.value;if(!V.value||!Q||!v.content)return v;V=0;E=v.content.length;t=0;Fjo||(Fjo=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var p=Fjo;for(b=b*F*p;V<=E;)F=Math.floor(V+(E-V)/2),p=z4(v,F)||v,Q.firstChild&&(Q.firstChild.textContent=p.content),Q.scrollHeight>b?E=F-1:(t=F,V=F+1);return z4(v,t)};
ibZ=function(v,Q){var V,E;return(((V=v.content)==null?void 0:V.length)||0)>(((E=Q.content)==null?void 0:E.length)||0)};
LjZ=function(v,Q,V,E,b,F){var t=_.Ze("truncated-text-content"),p=_.Ze("truncated-text-content"),Z=_.Ze("button"),d=_.Ze("button"),w=_.Ze("button"),A=_.ht().resolve(_.xD),k=_.L(_.K_(function(){return EnQ(v(),b())})),T=k.next().value,c=k.next().value;
k=_.L(_.K_(function(){return ibZ(v(),T())}));
var C=k.next().value,R=k.next().value,l=null;_.uH(function(){function S(){if(t.value&&Z.value&&w.value){var u=F()?v():Kjm(v(),b(),t,p,Q(),V());c(u);requestAnimationFrame(function(){if(t.value&&Z.value&&w.value){var r=Vbr(t.value)||ibZ(v(),u);R(r);if(!E()){var v9=Vbr(t.value),t3=V(),h3=t.value,OB=Z.value,kQ=w.value,yo=A==="rtl";if(h3&&OB){var xQ=OB.offsetLeft;yo&&(xQ=h3.offsetWidth-OB.offsetWidth-OB.offsetLeft);if(r){r=OB.offsetWidth;OB=h3.offsetWidth;var lb=v9?OB-r-70:xQ-70;t3="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
t3+"rem,\n      #000 "+t3+"rem,\n      #000 100%), linear-gradient(\n      to "+((yo?"left":"right")+",\n      #000 0px,\n      #000 "+lb+"px,\n      transparent "+(v9?OB-r:lb+70)+"px)");h3.style.setProperty("-webkit-mask-image",t3);h3.style.setProperty("mask-image",t3)}else h3.style.setProperty("-webkit-mask-image",""),h3.style.setProperty("mask-image","");v9?yo?(kQ.style.setProperty("left","0"),kQ.style.setProperty("right","unset")):(kQ.style.setProperty("left",""),kQ.style.setProperty("right",
"0")):yo?(kQ.style.setProperty("left","unset"),kQ.style.setProperty("right",xQ+"px")):(kQ.style.setProperty("left",xQ+"px"),kQ.style.setProperty("right","unset"))}}}})}}
var a,g;(a=l)==null||(g=a.stop)==null||g.call(a);a=new _.FK(S,17);S();l=a},"KjwIxd");
_.jg(function(){c(EnQ(v(),b()));R(ibZ(v(),T()));var S=function(){Fjo=void 0;var g,u;(g=l)==null||(u=g.fire)==null||u.call(g)};
if(window.ResizeObserver){var a=new ResizeObserver(S);a.observe(t.value);_.j_(function(){var g,u;(g=l)==null||(u=g.stop)==null||u.call(g);a.disconnect()})}else window.addEventListener("resize",S),_.j_(function(){var g,u;
(g=l)==null||(u=g.stop)==null||u.call(g);window.removeEventListener("resize",S)})});
return{isTruncated:C,displayText:T,contentRef:t,hiddenRef:p,placeholderTruncationTextRef:Z,hiddenTruncationTextRef:d,truncationTextRef:w}};
tb9=function(v){return{content:v!=null?v:""}};
pXG=function(v){return _.MQ(v.onTap)||_.f4(v.rendererContext)};
e3G=function(v){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:v.overflowMenuA11yLabel,onTap:function(Q){Q.preventDefault();Q.stopPropagation();if(v.overflowMenuOnTap){var V=_.DM({elementsCommand:v.overflowMenuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(Q)}}}};
_.J2=function(v,Q,V,E,b){E=E===void 0?{}:E;if(!b||Math.random()<5E-4){Q=Q||null;V=V||null;v=v instanceof Error?v:new _.xd(v);if(v.args)for(var F=_.L(v.args),t=F.next();!t.done;t=F.next())t=t.value,t instanceof Object&&(E=Object.assign({},t,E));E.category="H5 Ads Control Flow";Q&&(E.slot=Q?"slot:  "+Q.slotType:"");V&&(E.layout=V?"layout:  "+V.layoutType:"",E.layoutId=V.layoutId);b&&(E.known_error_aggressively_sampled=!0);v.args=[E];_.Iy(v)}};
_.Zbr=function(v,Q){Q=_.aF(Q);_.mb(v,"yt-open-popup-action",[Q,v])};
_.NJ=function(v,Q){_.Zbr(v,_.u3(Q))};
dGE=function(v){if(!v)return"";if(P5b[v])return P5b[v];xl||(xl=_.RD("A"));xl.href!==v&&$P(xl,v);var Q=xl.pathname;P5b[v]=Q.startsWith("/")?Q:"/"+Q;return P5b[v]};
h3o=function(){var v=dGE(window.location.href);if(v==="/")return"home";if(v.startsWith("/results"))return"search";if(v.startsWith("/watch"))return"watch";if(v.startsWith("/shorts"))return"shorts";if(v.startsWith("/hashtag"))return"hashtag";if(v.startsWith("/create_channel"))return"create_channel";if(v.startsWith("/@")||v.startsWith("/user/")||v.startsWith("/channel/"))return"channel";if(v.startsWith("/experiments"))return"experiments";if(v.startsWith("/sponsor_channel"))return"sponsorship";if(v.startsWith("/select_site"))return"settings";
if(v.startsWith("/locate"))return"locate";if(v.startsWith("/redeem"))return"redeem";if(v.startsWith("/musicpremium")||v.startsWith("/premium")||v.startsWith("/red"))return"premium";if(v.startsWith("/paid_memberships"))return"paid_memberships";if(v.startsWith("/oops"))return"oops";if(v.startsWith("/clip"))return"clip";var Q;return(Bw==null?void 0:(Q=Bw.response)==null?void 0:Q.page)==="404"?"404":v.startsWith("/feed/history")?"history":v.startsWith("/feed/library")?"library":v.startsWith("/feed/subscriptions")?
"subscriptions":v.startsWith("/feed/trending")?"trending":v.startsWith("/feed/news_destination")?"news":v.startsWith("/playlist")?"playlist":v.startsWith("/minor_moment")?"minor_moment":v.startsWith("/playable/")||v.match("^/playables/(?!saved).")?"mini_app":v.startsWith("/playables")?"playables":v.startsWith("/create/live/join")?"open_in_app":v.startsWith("/feed/explore")?"explore":"browse"};
_.su=function(){var v=Bw==null?void 0:Bw.response,Q=v==null?void 0:v.endpoint;if(!Q)return(v==null?void 0:v.page)==="watch"?"watch":h3o();var V;v=(V=_.y(Q==null?void 0:Q.commandMetadata,_.Kt))==null?void 0:V.webPageType;V=!1;if(v&&!wXT.includes(v))switch(v){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var E;return((E=_.y(Q==null?void 0:Q.commandMetadata,_.Kt))==null?0:E.url)&&dGE(_.y(Q.commandMetadata,_.Kt).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var b;return(Q=(b=_.y(Q,_.tn))==null?void 0:b.browseId)?AHS[Q]||"browse":"browse";default:V=!0}if(_.y(Q,_.gW)||_.y(Q,kkB))return"sponsorship";b=dGE(window.location.href);if(b.startsWith("/experiments"))return"experiments";if(b.startsWith("/create_channel"))return"create_channel";
if(_.y(Q,_.FJ)&&b.startsWith("/shorts"))return"shorts";if(_.y(Q,_.FJ)&&b.startsWith("/watch"))return"watch";V&&(Q=new _.xd("Unsupported mWeb page type",{pathname:b,webPageType:v}),_.ro(Q));return"browse"};
uO=function(v,Q,V,E){return v&&Q?v!==V||Q!==E?(_.J2(Error("Kh"),void 0,void 0,{"stored-slot":v,"stored-layout":Q,"latest-slot":V,"latest-layout":E}),!1):!0:!1};
Y3h=function(v,Q,V){return v({targetId:Q},function(E){return V.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},E,{contents:[V.continuationItems?_.y(V.continuationItems[0],TMh):{}]}):V.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},E,{header:V.continuationItems?V.continuationItems[0]:void 0}):Object.assign({},E,{contents:V.continuationItems?V.continuationItems:[]})})};
yHG=function(v,Q,V,E){if(Q=Q.trackingParams){var b,F=(b=V.getScreenLayer)==null?void 0:b.call(V);V=_.Mo(F);b=_.CC(F);if(V&&b){var t=_.dE(Q);_.Y("combine_ve_grafts")?v.graftServerVe(Q,b,F):_.Np(V,b,t);E==null||E(t)}}};
fmb=function(v){var Q;return((Q=cHo.get(v))==null?void 0:Q.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
MbZ=function(v,Q){var V={type:Q.slotType,controlFlowManagerLayer:Gkm.get(Q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q.slotEntryTrigger&&(V.entryTriggerType=Q.slotEntryTrigger.triggerType);Q.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=Q.slotPhysicalPosition);if(v){V.debugData={slotId:Q.slotId};if(v=Q.slotEntryTrigger)V.debugData.slotEntryTriggerData=C5G(v);v=Q.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];v=_.L(v);for(var E=v.next();!E.done;E=v.next())V.debugData.fulfillmentTriggerData.push(C5G(E.value));
Q=Q.slotExpirationTriggers;V.debugData.expirationTriggerData=[];Q=_.L(Q);for(v=Q.next();!v.done;v=Q.next())V.debugData.expirationTriggerData.push(C5G(v.value))}return V};
C5G=function(v,Q){var V={type:v.triggerType};Q!=null&&(V.category=Q);v.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=v.triggeringSlotId);v.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=v.triggeringLayoutId);return V};
Obt=function(v,Q,V,E){Q={opportunityType:Q};v&&(E||V)&&(E=_.sY(E||[],function(b){return MbZ(v,b)}),Q.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},E.length>0?{slots:E}:{}));
return Q};
DGS=function(v){return jC(v.opportunityAdapterMap).concat(jC(v.triggerAdapterMap)).concat(jC(v.fulfillmentAdapterFactoryMap)).concat(jC(v.slotAdapterFactoryMap)).concat(jC(v.layoutRenderingAdapterFactoryMap))};
jC=function(v){var Q=[];v=_.L(v.values());for(var V=v.next();!V.done;V=v.next())V=V.value,V.isAdsControlFlowEventListener&&Q.push(V);return Q};
o7=function(v){var Q=v.slotId,V=v.slotType,E=v.slotPhysicalPosition;return Q===void 0?new Ww("Cannot construct a slot due to the missing id.",{adSlotMetadata:v}):V===void 0?new Ww("Cannot construct a slot due to the missing type.",{adSlotMetadata:v}):E===void 0?new Ww("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:v}):{slotId:Q,slotType:V,slotPhysicalPosition:E,managerLayer:"external",adSlotLoggingData:v.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new R30}};
nnt=function(v){var Q=v.layoutId,V=v.layoutType;return Q===void 0?new XS("Cannot construct a layout due to the missing id.",{adLayoutMetadata:v}):V===void 0?new XS("Cannot construct a layout due to the missing type.",{adLayoutMetadata:v}):{layoutId:Q,layoutType:V,managerLayer:"external",adLayoutLoggingData:v.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new R30,interactionLoggingAdsClientData:{}}};
lmZ=function(v){if(v.querySelector("img")){var Q=v.querySelector("img");Q.addEventListener("error",function(){bIZ(Q.src).then(function(V){(V=_.XI(V).toString())?Q.src=V:Q.removeAttribute("src")}).catch(function(){Q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
rW=function(v,Q){if(Q&&(q39(Q.viewableCommand)||q39(Q.endOfSessionCommand))){var V=S3t(Q==null?void 0:Q.viewableCommand);Q=S3t(Q==null?void 0:Q.endOfSessionCommand);if(!a7){var E=_.T_("custom_active_view_tos_timeout_ms");a7=E>0&&E!==36E5?new z3E(JHG(),E):new z3E(JHG())}NMZ(a7,v);xGo(a7,v,V,Q)}};
$l=function(v){a7&&NMZ(a7,v)};
JHG=function(){var v=_.r7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(v==null?void 0:v.length)===2?v[1]:null};
q39=function(v){v=_.MQ(v);return!(v==null||!v.loggingUrls)&&v.loggingUrls.length>0};
S3t=function(v){if(!v)return[];var Q=[],V,E;((E=(V=_.MQ(v))==null?void 0:V.loggingUrls)!=null?E:[]).forEach(function(b){b.baseUrl&&Q.push(b.baseUrl)});
return Q};
BM9=function(v){if(_.Y("stop_av_measurement_on_detach"))return function(){$l(v)}};
gn9=function(v){return function(){_.Y("stop_av_measurement_on_detach")&&$l(v)}};
s_Q=function(v){if(_.Y("stop_av_measurement_on_detach"))return function(){$l(v)}};
utQ=function(v){return v.shorts.isDesktopSmallWidth};
_.j_Z=function(v){return v.shorts.isShortsActive};
_.Wj9=function(v){return v.shorts.isWatchWhileMode};
_.I7=function(v){return v.shorts.isFullscreen};
_.Hw=function(v){return v.shorts.isShortsPipActive};
XXr=function(v){var Q,V;if(v=(Q=_.y(v.reelsAdCardButtoned,onG))==null?void 0:(V=Q.animatedRenderingConfig)==null?void 0:V.easeOutSeconds)return v+"s"};
rH3=function(v,Q,V){return _.e(function(E){return E.return(new Promise(function(b){var F=new Image;F.onload=function(){b(new amG(v,Q,V,F.naturalWidth,F.naturalHeight))};
F.src=V.toString()}))})};
$Gt=function(v,Q){return Math.round(v/1E-5)===Math.round(Q/1E-5)};
Imm=function(v,Q){return Math.round(v/1E-5)===Math.round(Q/1E-5)};
HbS=function(v,Q){return v.year===Q.year&&v.month===Q.month&&v.day===Q.day};
mG9=function(v,Q){return v.year!==Q.year?v.year<Q.year:v.month!==Q.month?v.month<Q.month:v.day<Q.day};
vth=function(v){return v.day===UGh(v.year,v.month)?v.month===11?{year:v.year+1,month:0,day:1}:{year:v.year,month:v.month+1,day:1}:{year:v.year,month:v.month,day:v.day+1}};
Qv3=function(){var v=new Date,Q={year:v.getFullYear(),month:v.getMonth(),day:v.getDate()};return{start:Q,end:{year:v.getFullYear()+2,month:v.getMonth(),day:v.getDate()},selectedDate:vth(Q)}};
VQ9=function(v){return(new sx(2)).format(new Date(v.year,v.month,v.day))};
Eto=function(v){return{year:v.getFullYear(),month:v.getMonth(),day:v.getDate()}};
bmr=function(v,Q){v=(v+(Number(Q.utcOffsetSec)+(new Date(v*1E3)).getTimezoneOffset()*60))*1E3;Q=Eto(new Date(v));return{date:Q,secondsSinceMidnight:Math.floor((v-(new Date(Q.year,Q.month,Q.day)).getTime())/1E3)}};
FYh=function(v,Q){Q=Q.months.findIndex(function(V){return V.year===v.year&&V.month===v.month});
return Q>=0?Q:void 0};
KYb=function(v){if(!v)return!1;try{if(v.host&&v.host.tagName==="YT-FORMATTED-STRING"&&v.host.id==="contenteditable-textarea"||v.nodeType===Node.ELEMENT_NODE&&v.tagName==="YTD-COMMENTBOX")return!0}catch(Q){return!1}return KYb(v.parentNode)};
mC=function(v){return v?!(v.tagName!=="A"||!v.href||!v.classList.contains("yt-simple-endpoint")):!1};
imG=function(v){return v?v.tagName==="IMG"&&v.classList.contains("emoji"):!1};
LYQ=function(v,Q,V){if(!v)return null;var E=mC(v);if(E&&V)return Q=v.pathname.substring(v.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Q);if(E&&!V)return document.createTextNode("");if(imG(v))return V=v.alt,v=v.dataset.emojiId,!v&&Q&&(Q=_.Uu(Q,V))&&Q.isCustomEmoji&&(v=Q.emojiId),v?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+v+">"):document.createTextNode(V);E=v.cloneNode(!1);for(var b=0;b<v.childNodes.length;++b){var F=LYQ(v.childNodes[b],Q,V);F&&E.appendChild(F)}return E};
vY=function(v){return v?mC(v)?v:vY(v.lastChild):null};
tQ3=function(v){return v?mC(v)?v:tQ3(v.firstChild):null};
pi9=function(v){if(!v)return null;for(var Q=v.previousSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.previousSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.previousSibling;else break;(Q=vY(Q))?v=Q:v=(v=v.parentNode)?vY(v.previousElementSibling):null;return v};
eMG=function(v){if(!v)return null;for(var Q=v.nextSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.nextSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.nextSibling;else break;return(Q=tQ3(Q))?Q:eMG(v.parentNode)};
Zmr=function(v){var Q=_.Qt(),V=Q.JSC$11423_getStartNode();if(!KYb(V.parentNode))return null;Q=Q.JSC$11423_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var E=_.XH(V,mC);if(E){if(v&&Q===0||!v&&Q===V.length)return E}else{if(v&&Q===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.Vt(V.nextElementSibling,"display")==="block"?null:tQ3(V.nextElementSibling);if(!v&&Q===0)return V?vY(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(v){if(0<=Q&&Q<V.childNodes.length)return tQ3(V.childNodes[Q])}else if(0<
Q&&Q<=V.childNodes.length)return vY(V.childNodes[Q-1]);return null};
PWt=function(v,Q,V){if(!v)return null;if(v.nodeType===Node.TEXT_NODE)if(V){var E=pi9(v);if(E&&!/^\s+\S/.test(v.wholeText.substr(0,Q)))return E}else if((E=eMG(v))&&!/\S\s+/.test(v.wholeText.substr(Q,v.wholeText.length)))return E;return v.nodeType===Node.ELEMENT_NODE?V?pi9(v.childNodes[Q]):eMG(v.childNodes[Q]):PWt(v.parentNode,Q,V)};
dym=function(v){if(v.hasChildNodes())switch(v.tagName){case "DIV":case "A":case "SPAN":var Q="";for(v=v.firstChild;v;v=v.nextSibling)Q+=dym(v);return Q;default:return""}else switch(v.nodeType){case 3:return v.textContent;default:return""}};
EI=function(v,Q){return v.year===Q.year&&v.month===Q.month&&v.day===Q.day};
bA=function(v,Q){return v.year!==Q.year?v.year<Q.year:v.month!==Q.month?v.month<Q.month:v.day<Q.day};
hMm=function(v){return{year:v.getFullYear(),month:v.getMonth(),day:v.getDate()}};
wiQ=function(v){var Q=P_3;Q=Q===void 0?P_3:Q;Q(new Date(v.year,v.month,v.day))};
FQ=function(v){return hMm(new Date(Number(v.seconds)*1E3))};
Aho=function(v){return v.year!==void 0&&v.month!==void 0&&v.day!==void 0};
kU3=function(v){return v.start!==void 0&&v.end!==void 0};
Tfh=function(v){return kU3(v)?v.start:v};
Y1Z=function(v){return kU3(v)?v.end:void 0};
ch3=function(v,Q){for(var V=[],E=new Date(v.start.year,v.start.month);E.getFullYear()<v.end.year||E.getFullYear()===v.end.year&&E.getMonth()<=v.end.month;){var b=V,F=b.push,t=E.getFullYear(),p=E.getMonth(),Z=v,d=Q,w=void 0,A=[],k=Object.freeze({extraCssClass:"invisible"}),T=new Date(t,p),c=hMm(T);T=T.getDay();for(var C=hMm(new Date);c.month===p;){T!==yh3&&w||(w=Array.from({length:7}).fill(k),A.push(w));var R={date:{year:t,month:p,day:c.day},extraCssClass:"",debugClass:""};R.extraCssClass=d(R.date,
c,C,Z).trim();w[(T-yh3+7)%7]=R;c=c.day===UGh(c.year,c.month)?c.month===11?{year:c.year+1,month:0,day:1}:{year:c.year,month:c.month+1,day:1}:{year:c.year,month:c.month,day:c.day+1};T=(T+1)%7}F.call(b,{weeks:A,monthLabel:Kr.SHORTMONTHS[p]+" "+t,year:t,month:p,monthLabelExtraCssClass:A[0][2]===k?"shift-down-label":""});E.setMonth(E.getMonth()+1)}return V};
f_b=function(v,Q){Q=Q.months.findIndex(function(V){return V.year===v.year&&V.month===v.month});
return Q>=0?Q:void 0};
CW3=function(v,Q){a:{var V=V===void 0?[2,3]:V;V=_.L(V);for(var E=V.next();!E.done;E=V.next()){var b=new Date;if((new GUt(E.value)).parse(Q,b,{validate:!0})){b.setHours(0,0,0,0);Q=b;break a}}Q=null}if(!Q)return{isValid:!1,value:void 0};Q=hMm(Q);V=v.end;return bA(Q,v.start)||bA(V,Q)?{isValid:!1,value:void 0}:{isValid:!0,value:Q}};
ntQ=function(v){var Q=MQB;Q=Q===void 0?OmQ:Q;var V=v.columnsToShow||[],E=Dy3(v.columnDimensions,v.columnsToShow,v.leftFloatingColumns,Q);return V.map(function(b,F){var t=v.columns[b];if(t===void 0)throw Error("Qh");var p=E?E[F]:"";var Z=v.getCustomTooltip?v.getCustomTooltip(b,t.headerTooltipParagraphs):t.headerTooltipParagraphs;var d=RM0(v,b);return{type:b,index:F,style:p,classes:d,headerName:t.headerName||"",headerIcon:t.headerIcon,headerTooltipParagraphs:Z||[],headerTooltipHelpContext:t.headerTooltipHelpContext,
sortOrders:t.sortOrders||[],selectionState:t.isSelectionCheckbox?v.selectionState:void 0}})};
RM0=function(v,Q){var V=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],E=v.columns[Q];if(E===void 0)return"";var b=V.includes("DEFAULTS")&&E.cssClass?[E.cssClass]:[];if(V.includes("SORTING")){E.sortOrders&&E.sortOrders.length&&b.push("sortable");if(v.sorting&&v.sorting.columnType===Q)a:switch(v.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var F="column-sorted";break a;default:F=""}else F="";F&&b.push(F)}V.includes("FLOATING")&&(Q=v.columnsToShow.indexOf(Q),v.leftFloatingColumns&&Q<v.leftFloatingColumns&&
b.push("floating-column"),v.leftFloatingColumns&&Q===v.leftFloatingColumns-1&&b.push("last-floating-column"));V.includes("RIGHT_ALIGN")&&E.rightAlignHeader&&b.push("right-align");return b.filter(function(t){return t}).join(" ")};
Dy3=function(v,Q,V,E){V=V===void 0?0:V;E=E===void 0?OmQ:E;if(v){var b=[],F=0;l_9(v,Q,E).forEach(function(t,p){var Z="min-width:"+t.minWidth+"px;padding-left:"+t.paddingLeft+"px;padding-right:"+t.paddingRight+"px;flex:"+t.flexGrow+" 0 "+t.minWidth+"px;";t.maxWidth!==Infinity&&(Z=[Z,"max-width:"+t.maxWidth+"px;"].join(""));F>0&&p<V&&(Z=[Z,"left:"+F+"px;"].join(""));b.push(Z);F+=t.minWidth+t.paddingLeft+t.paddingRight});
return b}};
l_9=function(v,Q,V){V=V===void 0?OmQ:V;return Q.map(function(E,b){E=v&&v[E]||{};var F=b===0?V.paddingLeftFirstColumn:V.padding;E.paddingLeft!==void 0&&(F=E.paddingLeft);b=b===Q.length-1?V.paddingRightLastColumn:V.padding;E.paddingRight!==void 0&&(b=E.paddingRight);return{paddingLeft:F,paddingRight:b,minWidth:E.minWidth!==void 0?E.minWidth:V.minWidth,maxWidth:E.maxWidth!==void 0?E.maxWidth:V.maxWidth,flexGrow:E.flexGrow!==void 0?E.flexGrow:V.flexGrow}})};
q1Z=function(v){var Q=v.reduce(function(E,b){var F=b.columnId,t={};b.headerText&&(t.headerName=_.j0(b.headerText));b.rightAlignHeader&&(t.rightAlignHeader=b.rightAlignHeader);var p;if((p=b.headerIcon)==null?0:p.iconType)t.headerIcon=_.VK(b.headerIcon.iconType);E[F]=t;return E},{}),V=v.filter(function(E){return!E.hideColumn}).map(function(E){return E.columnId});
v=v.filter(function(E){return!!E.dimensions}).reduce(function(E,b){E[b.columnId]=b.dimensions;
return E},{});
return{columns:Q,columnsToShow:V,columnDimensions:v}};
_.S1T=function(v){return v?v.simpleText?v.simpleText:v.runs?v.runs.map(function(Q){return Q.text}).join(""):"":""};
gto=function(v){var Q=v.data;var V=v.onTap;var E=v.isSelected;var b=v.onFocusIn;if(!Q)return{};v=zMQ(Q);E===void 0&&(E=Q==null?void 0:Q.isSelected);var F;return{text:JhG(Q,v),startIcon:(F=Q.icon)==null?void 0:F.iconType,state:E?0:2,type:0,style:Nf3(Q),onTap:xyh(Q,V),accessibilityLabel:BfQ(Q,v),onFocusIn:function(){return b==null?void 0:b()}}};
JhG=function(v,Q){if(!Q)return v.text?_.S1T(v.text):void 0};
Nf3=function(v){var Q;switch((Q=v.style)==null?void 0:Q.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
xyh=function(v,Q){return function(V){Q==null||Q(V,v)}};
zMQ=function(v){v=v.style&&v.style.styleType;return!bb9&&v==="STYLE_EXPLORE_LAUNCHER_CHIP"};
BfQ=function(v,Q){if(Q){var V,E,b;return(b=(V=v.accessibilityData)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label)!=null?b:JhG(v,!1)}};
svQ=function(){var v;return[function(Q,V,E){return _.Hj(v,Q,V,E)},
function(Q){v=Q}]};
uVG=function(v,Q){return _.Fg(v.entities,"chipEntity",Q)};
WYr=function(v,Q,V,E){return function(){var b=jvT.has(v.displayType)&&v.selected,F=b&&v.deselectCommand?v.deselectCommand:v.tapCommand;!F||b&&E||_.nx(F,{form:{element:Q==null?void 0:Q.value}});V==null||V()}};
Xi3=function(v,Q){if(v=v.onUpdateText){var V;v=(V=_.y(v,otE))==null?void 0:V.stepId}else v=void 0;V=v;Q=Q==null?void 0:Q.stepStates;if(V&&Q){var E,b;return(E=Q[V])==null?void 0:(b=E.userQuery)==null?void 0:b.userQuery}};
iA=function(v){return{signalAction:{signal:v}}};
$yS=function(){return _.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?a_o:_.rhT};
I_B=function(v,Q){v=v===void 0?"SOFT_RELOAD_PAGE":v;Q=Q===void 0?49504:Q;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.I$(_.Lt("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:Q}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:v}}]}}}};
HmS=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.I$(_.Lt("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:$yS()}};
myT=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.I$(_.Lt("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:$yS()}};
Uy0=function(v,Q){var V=_.I$(_.Lt("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),E=_.I$(_.Lt("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),b={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.I$(_.Lt("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};b.serviceEndpoint=v?v:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[iA("SOFT_RELOAD_PAGE")]}};return{title:V,bodyText:E,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:b},
style:{value:Q!=null?Q:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Q90=function(v){v=v===void 0?{}:v;return{title:_.I$(v.localizedZeroStateTitleText===void 0?"":v.localizedZeroStateTitleText),bodyText:_.I$(v.localizedZeroStateMessage===void 0?"":v.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I$(v.localizedZeroStateButtonText===void 0?"":v.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[viG]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Ei9=function(v){v=v===void 0?{}:v;return{title:_.I$(v.localizedOptInBannerTitleText===void 0?"":v.localizedOptInBannerTitleText),titleLength:19,subtitle:_.I$(v.localizedOptInMessage===void 0?"":v.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I$(_.Lt("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:_.I$(_.Lt("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:[VrS]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
KNE=function(v,Q){var V=Q=Q===void 0?{}:Q;Q=V.offlineTitleText===void 0?"":V.offlineTitleText;var E=V.offlineDescriptionText===void 0?"":V.offlineDescriptionText,b=V.formattedSupplementalText,F=V.actionButtonText===void 0?"":V.actionButtonText,t=V.titleText===void 0?"":V.titleText;V=V.descriptionText===void 0?"":V.descriptionText;var p={title:F,accessibilityText:F,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};v||(t=Q,V=E,p={title:F,accessibilityText:F,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:_.I$(t),titleLength:t.length,overrideTitleMaxFontSize:30,subtitle:_.I$(V),supplementalText:b,primaryButton:{buttonViewModel:p},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[bzE]},darkTileImage:{thumbnails:[FNb]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.trh=function(v,Q,V,E,b,F,t,p,Z,d,w){b=b===void 0?!1:b;F=F===void 0?!1:F;t=t===void 0?0:t;p=p===void 0?-Infinity:p;Z=Z===void 0?!1:Z;d=d===void 0?!1:d;w=w===void 0?!1:w;var A=[],k=_.I$(_.Lt("SMART_DOWNLOADS",void 0,"Smart downloads")),T=_.I$(izS(t,p,v.length));p=t=void 0;d?t={statementBannerRenderer:KNE(w,E)}:b?v.length>0?p=LNh(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.Y("kevlar_manual_downloads_above"),k,T):Z?p={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===
void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedPromptMessage===void 0?"":V.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Lt("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Lt("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:_.cDB}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:F&&(p={backgroundPromoRenderer:{bodyText:_.I$(_.Lt("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
F&&(p={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedOptInMessage===void 0?"":V.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Lt("TURN_ON",void 0,"Turn on"),accessibilityText:_.Lt("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=_.I$(_.Lt("YOUR_DOWNLOADS",void 0,"Your downloads"));E=void 0;Q.length>0?(E=void 0,_.Y("kevlar_display_downloads_numbers")&&(E=_.I$(_.ty("VIDEO_COUNT",Q.length))),E=LNh(Q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,V,E)):b||v.length||
d||(E={backgroundPromoRenderer:{bodyText:_.I$(_.Lt("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}}}});t?A.push({richSectionRenderer:{content:t}}):p&&!_.Y("kevlar_manual_downloads_above")&&A.push({richSectionRenderer:{content:p,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
E&&A.push({richSectionRenderer:{content:E,loggingDirectives:{clientVeSpec:{uiType:51721}}}});p&&_.Y("kevlar_manual_downloads_above")&&A.push({richSectionRenderer:{content:p,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(Q.length>0||b&&v.length>0&&!d)&&A.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.I$(_.Lt("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:A}};
_.eNE=function(v){return ptQ(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Zzm=function(v){return ptQ(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
ptQ=function(v,Q){var V=[];v=LNh(v,Q,!0);V.push({richSectionRenderer:{content:v}});return{contents:V}};
LNh=function(v,Q,V,E,b){V=V===void 0?!1:V;var F="RESPONSIVE_SIZE_STANDARD";_.Y("kevlar_standard_rich_grid_on_offline_home")&&Q==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?F="RESPONSIVE_SIZE_STANDARD":_.Y("kevlar_modern_downloads_compact")?F="RESPONSIVE_SIZE_COMPACT":_.Y("kevlar_modern_downloads_extra_compact")?F="RESPONSIVE_SIZE_EXTRA_COMPACT":_.Y("kevlar_modern_downloads_tiny")&&(F="RESPONSIVE_SIZE_TINY");v={isExpanded:V,contents:Lr(v),entitySelectorType:Q,responsiveContainerConfiguration:{responsiveSize:F}};
E&&(v.title=E);b&&(v.subtitle=b);V||(_.Y("kevlar_smart_downloads_show_more_button")?(v.showMoreButton={buttonRenderer:{accessibility:{label:_.Lt("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.I$(_.Lt("SHOW_MORE",void 0,"Show more"))}},v.showLessButton={buttonRenderer:{accessibility:{label:_.Lt("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.I$(_.Lt("SHOW_LESS",void 0,"Show less"))}}):(v.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Lt("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},v.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Lt("HORIZONTAL_LIST_NEXT_LABEL",
void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},v.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Lt("VIEW_ALL",void 0,"View all"),accessibilityText:_.Lt("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:_.rD("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:v}};
Lr=function(v){var Q=[];v=_.L(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,Flb(V)){var E=Q,b=E.push;var F=void 0;if(V==null?0:(F=V.videoEntity)==null?0:F.videoId){F=qS(_.oF().getState(),V.videoEntity.videoId);var t=_.oF().getState();var p=_.b3(V.videoEntity.videoId,"mainVideoEntity");t=!!_.TO(t.entities)[p];t={videoId:V.videoEntity.videoId,title:Hp(V.videoEntity.title),shortBylineText:Hp(V.channelEntity.title),thumbnail:V.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:t&&_.Y("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:JLB(V.videoEntity.videoId,F,V.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Lt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};V.videoEntity.lengthSeconds&&(t.thumbnailOverlays=lHr(V.videoEntity.lengthSeconds,F));t.isWatched=F>0;_.Y("kevlar_modern_downloads_page")&&(t.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:V.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Lt("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},t.badges=void 0);V=t}else V={};b.call(E,{richItemRenderer:{content:{videoRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(bJo(V)){E=Q;b=E.push;var Z=p=F=void 0,d=void 0,w=void 0,A=void 0,k=void 0,T=void 0,c=void 0,C=void 0,R=void 0,l=void 0;t=V.mainPlaylistEntity.playlistId;var S=V==null?void 0:(l=V.mainPlaylistEntity)==null?void 0:(R=l.thumbnailStyleData)==null?void 0:(C=R[0])==null?void 0:(c=C.value)==null?void 0:(T=c.collageThumbnail)==
null?void 0:T.coverThumbnail;if(t&&S){T=NJ3(t);!_.Y("enable_offline_playlist_page")&&(V==null?0:(k=V.mainPlaylistEntity)==null?0:k.videos)&&(k=V==null?void 0:(A=V.mainPlaylistEntity)==null?void 0:(w=A.videos)==null?void 0:w[0],w=_.Q_(k).entityId,w=JSON.parse(w).videoId,w!==void 0&&(T=qS(_.oF().getState(),w),T=_.$7(w,t,void 0,void 0,T)));w=[];if(V==null?0:(d=V.mainPlaylistEntity)==null?0:(Z=d.videos)==null?0:Z.length)Z=ZAr(),d=Object,w=d.assign,A=(A=e4B(V==null?void 0:V.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.I$(A),icon:{iconType:"PLAYLISTS"}}}:void 0,w=[Z,w.call(d,{},(p=A)!=null?p:{})];V={playlistId:t,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:S}},navigationEndpoint:T,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:w,title:Hp(V.mainPlaylistEntity.title),shortBylineText:Hp(V==null?void 0:(F=V.channelEntity)==null?void 0:F.title),badges:[{metadataBadgeRenderer:{label:_.Lt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.Y("kevlar_modern_downloads_page")&&(V.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:PXB,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:t,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Lt("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},V.badges=void 0)}else V=void 0;b.call(E,{richItemRenderer:{content:{playlistRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return Q};
izS=function(v,Q,V){v=v?dXT(v):"";Q!==void 0&&isFinite(Q)?Q===0?Q=_.Lt("UPDATING",void 0,"Updating..."):(Q=nXh(new Date(Q),new Date),Q=_.Lt("UPDATED_TIME",{relative_time:Q},"Updated "+Q)):Q="";var E="";v&&Q&&(E=" \u2022 ");if(V&&_.Y("kevlar_display_downloads_numbers")){V=_.ty("VIDEO_COUNT",V);if(v||Q)E=" \u2022 ";return V+E+v+E+Q}return v+E+Q};
hNE=function(v){return Iph(v.entities).length};
_.wt0=function(v,Q,V){var E=qJ(v.responsiveSize),b;v=!((b=v.responsiveMap)==null||!b.some(function(F){return F.containerSize==="CONTAINER_SIZE_NARROW"&&F.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:V,containerWidth:Q,sizing:E,enableFullBleedForSingleCol:!1,isCompactList:E==="COMPACT"&&v}};
A0o=function(v,Q){return _.Fg(v.entities,"votingEntity",Q)};
tx=function(v){if(v){var Q;return((Q=_.ht().resolve(_.d$(_.JR)))==null?0:Q())?v.darkTheme:v.lightTheme}};
ktZ=function(v,Q){if(v.simpleText)return Object.assign({},v,{simpleText:qQ(v.simpleText,Q)});if(!v.runs)return v;for(var V=Object.assign({},v,{runs:[]}),E=0,b=_.L(v.runs),F=b.next();!F.done;F=b.next())if(F=F.value,F.text)if(E+F.text.length<=Q)V.runs.push(F),E+=F.text.length;else return V.runs.push(Object.assign({},F,{text:qQ(F.text,Q-E)})),V;return v};
T5o=function(v,Q){return _.Fg(v.entities,"chipBarStateEntity",Q)};
YUo=function(v){switch(v){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
y0r=function(v,Q){return{triggeringElement:v,onDwellTriggeredFn:function(){var V={triggeringElement:v,loadVideoPreviewEventData:Q},E=document.querySelector(".video-preview");E&&E.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"))}}};
c00=function(v,Q){var V=_.ht().resolve(_.d$(cN0)),E=function(){var b=Q();return V&&b?y0r(v.value,b):null};
_.uH(function(){var b=E();V&&b&&Promise.resolve().then(function(){V.registerElement(b)});
_.j_(function(){V&&b&&Promise.resolve().then(function(){_.R7(V,b)})})},"csPUge")};
Gtm=function(v){var Q=v.dataset.resizeObserverId;if(Q)return Q;Q=""+fRQ++;return v.dataset.resizeObserverId=Q};
CXr=function(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=Gtm(Q.target),E=Object.assign({},{target:Q.target},pr.get(V));if(E!=null&&E.contentRect?E.contentRect.width!==Q.contentRect.width||E.contentRect.height!==Q.contentRect.height:1)for(pr.set(V,{borderBoxSize:Q.borderBoxSize,contentBoxSize:Q.contentBoxSize,contentRect:Q.contentRect,devicePixelContentBoxSize:Q.devicePixelContentBoxSize}),V=_.L(ei.get(V)||[]),E=V.next();!E.done;E=V.next())E=E.value,E(Q)}};
Oz3=function(v,Q){var V=Gtm(v);ei.has(V)||ei.set(V,new Set);ei.get(V).add(Q);pr.has(V)&&Q(Object.assign({},{target:v},pr.get(V)));Zv||(Zv=new Mrm(CXr));Q=Zv;Q.observe(v)};
DXQ=function(v,Q){var V=Gtm(v);ei.has(V)&&(ei.get(V).delete(Q),ei.get(V).size===0&&(ei.delete(V),pr.delete(V),Zv.unobserve(v),delete v.dataset.resizeObserverId));ei.size===0&&Zv&&(Zv.disconnect(),Zv=void 0)};
niE=function(v,Q){var V=_.ht().resolve(Aq);return RN0.map(function(E){return V.observe(v,Q,E)})};
lRh=function(v){var Q=_.ht().resolve(Aq);v.forEach(function(V){Q.unobserveByKey(V)})};
_.PY=function(v){var Q=_.L(GvZ()),V=Q.next().value,E=Q.next().value,b=Object.assign({},qUb,v),F=SUh(function(t){var p=t.contentRect.height;if((t=t.contentRect.width)||p||b.canHaveZeroSize)V.width()===t&&V.height()===p||E(V,{height:p,width:t})},b.throttleMs);
return[V,function(t){var p=[];b.useVisibilityObserver&&(p=niE(t,function(Z,d){requestAnimationFrame(function(){d==="visible"?Oz3(t,F):DXQ(t,F)})}));
p.length||Oz3(t,F);return function(){p.length&&(lRh(p),p.length=0);DXQ(t,F)}}]};
J0h=function(v,Q,V,E,b){v=Q?v.switchOffCommand:v.switchOnCommand;if(E&&b)zN0(v,V,b);else{var F,t;(F=_.DM({elementsCommand:v}))==null||(t=F.onclick)==null||t.call(F,V)}};
zN0=function(v,Q,V){v=_.DM({elementsCommand:v,additionalCommandArgs:{commandController:{onSuccess:function(){V(!1)},
onServerError:function(){V(!1)}}}});
if(v==null?0:v.onclick)v.onclick(Q),V(!0)};
xXh=function(v){if(v)return _.y(v,N5h)};
B5S=function(v){if(v)switch(v){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
giE=function(v,Q){if(!((v==null?0:v.entitySelectorType)&&(v==null?0:v.entityKey)))return{};switch(v.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.Y("enable_web_shorts_captions_language_command")){var V;var E=(V=_.FS())==null?void 0:V.getOption("captions","track");var b,F=typeof(E==null?void 0:E.translationLanguage)==="object"&&((b=E.translationLanguage)==null?void 0:b.languageName)||(E==null?void 0:E.displayName)||"";E={data:Object.assign({},
!!F&&{selectionText:{content:F}},!!F&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof E==="undefined"})}}else E={};return E;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.Y("web_shorts_audio_track_picker")){var t;b=((t=_.FS())==null?void 0:t.getAudioTrack())||void 0;V=b==null?void 0:(F=b.getLanguageInfo())==null?void 0:F.getName();b={data:Object.assign({},{selectionText:{content:V}},V&&!(b==null?0:(E=b.getLanguageInfo())==
null?0:E.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else b={};return b;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return E=v!=null&&v.entityKey?(E=_.VZ(Q,v.entityKey))?{isHidden:(E==null?void 0:E.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},E;default:return{}}};
s9h=function(v,Q){return function(V){var E=function(b){_.cw(_.yw(b),V,Q)||v(b)};
V.addEventListener("click",E);return function(){V.removeEventListener("click",E)}}};
_.uzb=function(v){return function(){return _.y(v(),_.ds)}};
j9h=function(v){switch(v){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
WNZ=function(v){return j9h(v==null?void 0:v.all)};
oib=function(v){var Q={};(v=v==null?void 0:v.padding)&&(Q.padding=j9h(v.vertical)+"px "+j9h(v.horizontal)+"px");return Q};
XtZ=function(v){switch(v){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
aRS=function(v){switch(v){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
r0Q=function(v){switch(v){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
$Xt=function(v,Q){if(Q)return{containerStyles:oib(Q),itemStyles:function(V,E){var b={flex:"1"},F=Q==null?void 0:Q.flexDirection;b:switch(F){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":V=!!V;break b;default:V=!!E}V||(V=_.r7("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",F==="FLEX_DIRECTION_ROW"||F==="FLEX_DIRECTION_ROW_REVERSE"?(F=WNZ(Q==null?void 0:Q.gap)+"px",V?b["margin-left"]=F:b["margin-right"]=F):b["margin-bottom"]=WNZ(Q==null?void 0:Q.gap)+"px",b.flex=
"1");return b},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(Q==null?void 0:Q.flexDirection)==="FLEX_DIRECTION_ROW"||(Q==null?void 0:Q.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
IRt=function(v){return v<528?"CONTAINER_SIZE_NARROW":v<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
Hz3=function(v,Q){v=_.L(v.responsiveMap||[]);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.containerSize===Q)return V.containerType};
_.mX0=function(v,Q){if(Q){var V=Q.responsiveSize;v=IRt(v);var E=Hz3(Q,v);if(E&&V){a:{if(E==="CONTAINER_TYPE_VERTICAL_LIST")if(V==="RESPONSIVE_SIZE_STANDARD"){if(v!=="CONTAINER_SIZE_NARROW"){var b="50%";break a}}else{b=v==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}b=void 0}return{responsiveSize:V,containerSize:v,containerType:E,force16By9ThumbnailAspectRatio:!Q.enableContentSpecificAspectRatio,contentPreviewWidth:b,fullbleed:(E==="CONTAINER_TYPE_VERTICAL_LIST"||E==="CONTAINER_TYPE_GRID")&&v===
"CONTAINER_SIZE_NARROW"&&!1}}}};
UX9=function(v,Q){var V={};switch(Q){case "CONTAINER_TYPE_VERTICAL_LIST":V["flex-direction"]="column";V.padding="0 "+v.margin+"px";break;case "CONTAINER_TYPE_GRID":V["flex-direction"]="row";V.flex="none";V["flex-wrap"]="wrap";V.width=v.maxContainerWidth?v.maxContainerWidth+v.gutter+"px":void 0;V.padding="0 "+(v.margin-v.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":V["flex-direction"]="row",V.flex="none",V["overflow-x"]="auto",V.width=v.maxContainerWidth?v.maxContainerWidth+"px":void 0,
V.padding="0 "+v.margin+"px"}return V};
vjB=function(v,Q){if(Q){var V=Hz3(Q,IRt(v));a:switch(V){case "CONTAINER_TYPE_GRID":var E=3;break a;default:E=1}E=_.wt0(Q,v,E);var b=_.lO(E);return{containerLayoutConfig:_.mX0(v,Q),containerStyles:UX9(b,V),itemStyles:function(F,t){F={};switch(V){case "CONTAINER_TYPE_VERTICAL_LIST":t||(F["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":F.width=b.itemWidth+"px";F["margin-right"]=b.gutter/2+"px";F["margin-left"]=b.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":F.width=b.itemWidth+
"px",F.flex="none",t||(F["margin-right"]=b.gutter+"px")}return F}}}};
Ffh=function(v,Q,V){if(Q)return[Qk0];switch(v){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[hx];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return V?[hx]:[VEQ,hx];case "TRANSFER_STATE_PAUSED_BY_USER":return[Ej9,hx];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[bsE,hx];default:return[Qk0]}};
KfT=function(v,Q,V,E){return Ffh(v,Q,E).map(function(b){var F=b.text,t=b.iconType,p=b.videoAction;b=b.playlistAction;F=F?{content:F}:void 0;t=t&&{sources:[{clientResource:{imageName:t}}]};var Z=(0,_.gI.unsafeClone)(V);if(Z){var d=_.y(Z,_.L4),w=_.y(Z,_.t2);d&&p?d.action=p:w&&b&&(w.action=b)}return{title:F,leadingImage:t,rendererContext:Z&&{commandContext:{onTap:{innertubeCommand:Z}}}}})};
is9=function(v){v=_.f4(v.rendererContext);var Q;return(Q=_.y(v,_.t2))==null?void 0:Q.playlistId};
Lfb=function(v){var Q;return(Q=v.listItems)==null?void 0:Q.some(function(V){var E;return _.Gw((E=_.y(V,_.wW))==null?void 0:E.rendererContext)})};
eEm=function(v){var Q;return(Q=v.listItems)==null?void 0:Q.some(function(V){var E,b,F=(b=(E=_.y(V,tEb))==null?void 0:E.defaultListItem)!=null?b:V;V=_.y(F,_.wW);return!!_.y(V==null?void 0:V.leadingAccessory,pvm)})};
_.ws=function(v){var Q=_.ht().resolve(_.d$(_.JR));return Q!=null&&Q()?v.darkThemeColorPalette:v.lightThemeColorPalette};
_.kS=function(v){return{primaryTextColor:Ax(v,0),secondaryTextColor:Ax(v,1),optionColor:Ax(v,2),backgroundColor:Ax(v,3),videoBackgroundColor:Ax(v,4)}};
Ax=function(v,Q){if(v){switch(Q){case 0:v=v.primaryTitleColor;break;case 1:v=v.secondaryTitleColor;break;case 2:v=v.surgeColor;break;case 3:v=v.section2Color;break;case 4:v=v.section3Color;break;default:return}if(v)return _.GA(v)}};
drT=function(v){var Q=v.element;var V=v.veType;var E=v.storedVisualElement===void 0?null:v.storedVisualElement;var b=v.elementIndex===void 0?0:v.elementIndex;v=v.clientYouTubeData;var F=_.Mo();F!==ZsG&&(P4T.clear(),ZsG=F);if(Q.visualElement&&P4T.has(Q.visualElement))return null;if(E&&P4T.has(E))return Q.visualElement=E,null;V=_.Lx(_.tR(),{veType:V,elementIndex:b,clientYouTubeData:v});if(!V)return null;Q.visualElement=V;P4T.add(V);return V};
_.Tz=function(v,Q,V,E){V=V===void 0?null:V;E=E===void 0?JXS:E;var b=b===void 0?null:b;T4(function(){if(Q){V instanceof Function&&(V=V());var F=drT({element:Q,veType:v,storedVisualElement:V,clientYouTubeData:void 0});F&&(B1Q(Q,b),E(F))}})};
hES=function(v){return v?_.CF(v):""};
wvr=function(v){return(v==null?void 0:v.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Agh=function(v,Q){return _.Fg(v.entities,"videoOverviewAsyncDataEntity",Q)};
kMT=function(v,Q){var V;return"linear-gradient(to bottom, "+((V=Q==null?void 0:Q.map(function(E){var b=v?E.darkThemeColor:E.lightThemeColor;return b?_.CF(b)+" "+((E==null?void 0:E.startLocation)||0)*100+"%":"transparent"}))==null?void 0:V.join(", "))+")"};
Tt3=function(v,Q,V,E,b){if(!((E==null?0:E.height)&&(E==null?0:E.width)))return{size:0};var F=E.width;E=E.height;if(b)return Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&F>E?{size:312/W8G}:Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(V!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||v!==1&&v!==2||Q!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&Q!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&Q!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||E===F)switch(v){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||E>F)switch(v){case 1:case 3:return{size:240*jPh};default:return{size:360*jPh}}switch(v){case 1:case 2:return{size:1/W8G*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Ygo=function(v){if(!("matchMedia"in window))return _.V9(Error("Rh")),function(){return!1};
var Q=window.matchMedia(v);v=_.L(_.Ge(Q.matches,void 0,"jLJc8e"));var V=v.next().value,E=v.next().value,b=function(F){E(F.matches)};
Q.addEventListener?(Q.addEventListener("change",b),_.j_(function(){Q.removeEventListener("change",b)})):Q.addListener&&(Q.addListener(b),_.j_(function(){Q.removeListener(b)}));
return V};
ygB=function(v){return v==="IMAGE_BANNER_STYLE_INSET"||v==="IMAGE_BANNER_STYLE_UNKNOWN"};
cgr=function(){if(!("matchMedia"in window))return _.V9(Error("Rh")),function(){return 0};
var v=WU(function(){return window.matchMedia("(max-width: 527.9px)")}),Q=WU(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),V=WU(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),E=WU(function(){return window.matchMedia("(min-width: 1024px)")}),b=_.L(_.Ge(v.matches,void 0,"og9kEc")),F=b.next().value,t=b.next().value;
b=_.L(_.Ge(Q.matches,void 0,"ybDWCb"));var p=b.next().value,Z=b.next().value;b=_.L(_.Ge(V.matches,void 0,"o0Gfh"));var d=b.next().value,w=b.next().value;b=_.L(_.Ge(E.matches,void 0,"yqUUgd"));var A=b.next().value,k=b.next().value,T=WU(function(){return function(l){t(l.matches)}}),c=WU(function(){return function(l){Z(l.matches)}}),C=WU(function(){return function(l){w(l.matches)}}),R=WU(function(){return function(l){k(l.matches)}});
_.jg(function(){v.addEventListener?(v.addEventListener("change",T),Q.addEventListener("change",c),V.addEventListener("change",C),E.addEventListener("change",R)):v.addListener&&(v.addListener(T),Q.addListener(c),V.addListener(C),E.addListener(R));_.j_(function(){v.removeEventListener?(v.removeEventListener("change",T),Q.removeEventListener("change",c),V.removeEventListener("change",C),E.removeEventListener("change",R)):v.removeListener&&(v.removeListener(T),Q.removeListener(c),V.removeListener(C),
E.removeListener(R))})});
return function(){return F()?1:p()?2:d()?3:A()?4:0}};
f4Q=function(v){var Q=0;v=_.L([v.title,v.metadata,v.actions,v.description,v.attribution]);for(var V=v.next();!V.done;V=v.next())V.value&&Q++;return Q};
GME=function(v){return v===1||v===2?1:0};
MEB=function(v){v=(new C4B).parse(v);return(new lu).render(v).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(Q){var V=Q.split(":").map(Number),E=0,b=0;if(V.length===3)V=_.L(V),E=V.next().value,b=V.next().value,V=V.next().value;else if(V.length===2)V=_.L(V),b=V.next().value,V=V.next().value;else if(V.length===1)V=_.L(V).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(E*3600+b*60+V)+'" role="button">'+Q+"</span>"})};
Os3=function(v){v=_.L(v.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var Q=v.next(),V={};!Q.done;V={clickHandler$jscomp$5:void 0},Q=v.next()){Q=Q.value;V.clickHandler$jscomp$5=function(b){b=Number(b.target.getAttribute("data-time"));if(isNaN(b))throw Error("Th");var F;(F=_.FS())==null||F.seekTo(b,!0)};
var E=function(b){return function(F){F.key!=="Enter"&&F.key!=="Space"||(0,b.clickHandler$jscomp$5)(F)}}(V);
Q.setAttribute("tabindex","0");Q.removeEventListener("click",V.clickHandler$jscomp$5);Q.removeEventListener("keydown",E);Q.addEventListener("click",V.clickHandler$jscomp$5);Q.addEventListener("keydown",E)}};
Dr9=function(){return _.P("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.P(YS,{percentWidth:100}),_.P(YS,{animationDelay:200}),_.P(YS,{animationDelay:400}),_.P(YS,{animationDelay:600}),_.P(YS,{animationDelay:800,percentWidth:60}),_.P("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.P(YS,{percentWidth:100}),_.P(YS,{animationDelay:200}),_.P(YS,{animationDelay:400}),_.P(YS,{animationDelay:600,percentWidth:50}))};
YS=function(v){return _.P("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(v.percentWidth===void 0?100:v.percentWidth)+"%"},_.P("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(v.animationDelay===void 0?0:v.animationDelay)+"ms"}))};
RE3=function(){var v=_.L(_.Ge(function(){return""},void 0,"dXJHWc")),Q=v.next().value;
return[function(){return Q()()},
v.next().value]};
njt=function(v,Q){v=v?dXT(v):"";Q!==void 0&&isFinite(Q)?Q===0?Q=_.Lt("UPDATING",void 0,"Updating..."):(Q=nXh(new Date(Q),new Date),Q=_.Lt("UPDATED_TIME",{relative_time:Q},"Updated "+Q)):Q="";var V="";v&&Q&&(V=" \u2022 ");return _.I$(v+V+Q)};
SgQ=function(v,Q,V,E,b,F){Q=Q===void 0?0:Q;var t=l4o[Q],p=t.title,Z=t.iconType,d=t.topButtonRenderer,w=t.sectionClientVE;t=t.videoClientVE;var A;if(Q!==1||v.length){V=[];v=_.L(v);for(E=v.next();!E.done;E=v.next()){var k=E.value;if(Flb(k))V.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:k.videoEntity.videoId,title:Hp(k.videoEntity.title),shortBylineText:Hp(k.channelEntity.title),thumbnail:k.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:k.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Lt("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:t}}}}}});else if(bJo(k)){E=V;var T=E.push;var c=void 0,C=void 0,R=void 0,l=void 0,S=void 0,a=void 0,g=void 0,u=void 0,r=k.mainPlaylistEntity.playlistId,v9=k==null?void 0:(u=k.mainPlaylistEntity)==null?void 0:(g=u.thumbnailStyleData)==null?void 0:(a=g[0])==null?void 0:(S=a.value)==null?void 0:(l=S.collageThumbnail)==null?void 0:l.coverThumbnail;l=NJ3(r);if(!_.Y("enable_offline_playlist_page")&&
(k==null?0:(R=k.mainPlaylistEntity)==null?0:R.videos)){b:{R=k==null?void 0:(C=k.mainPlaylistEntity)==null?void 0:C.videos;C=_.oF().getState().entities;if(R!=null&&R.length&&C)for(R=_.L(R),S=R.next();!S.done;S=R.next())if(S=_.Q_(S.value).entityId,(S=JSON.parse(S).videoId)&&rQZ(C,S)==="TRANSFER_STATE_COMPLETE"){C=S;break b}C=""}C!==void 0&&(l=qS(_.oF().getState(),C),l=_.$7(C,r,void 0,void 0,l))}C=BJE(_.Lt("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),NJ3(r));k=r&&v9&&C?{playlistId:r,navigationEndpoint:l,
viewPlaylistText:C,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:v9}},title:Hp(k.mainPlaylistEntity.title),shortBylineText:Hp(k==null?void 0:(c=k.channelEntity)==null?void 0:c.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:qgB,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:r,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Lt("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:t}}}:
void 0;T.call(E,{gridPlaylistRenderer:k})}}t={gridRenderer:{items:V}};Q===1&&(A=njt(b,F))}else if(E){var t3=_.I$((T=V==null?void 0:V.localizedPromptMessage)!=null?T:"");t={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I$(_.Lt("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.cDB}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I$(_.Lt("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};A=njt(b,F)}else t3=_.I$(_.Lt("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
t={};return{contents:[{shelfRenderer:{title:p,titleAnnotation:A,icon:{iconType:Z},subtitle:t3,content:t,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:d}]}}}}],loggingDirectives:{clientVeSpec:{uiType:w}}}};
zE0=function(v,Q,V,E,b,F,t,p,Z,d,w){V=V===void 0?{}:V;E=E===void 0?{}:E;b=b===void 0?!1:b;F=F===void 0?!1:F;t=t===void 0?!1:t;p=p===void 0?!1:p;Z=Z===void 0?!1:Z;d=d===void 0?0:d;w=w===void 0?-Infinity:w;if(!(Q.length||v.length||b||p))return F?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Q90(V)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.I$(_.Lt("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 A=[];v.length&&A.push(SgQ(v,0));p?A.push({contents:[{statementBannerRenderer:KNE(Z,E)}]}):b?A.push(SgQ(Q,1,V,t,d,w)):F&&A.push({contents:[{statementBannerRenderer:Ei9(V)}]});(b&&Q.length||v.length)&&A.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.I$(_.Lt("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 A.map(function(k){return{itemSectionRenderer:k}})};
cY=function(v,Q){if(typeof v!=="object")return null;v=_.L(Object.entries(v));for(var V=v.next();!V.done;V=v.next()){var E=_.L(V.value);V=E.next().value;E=E.next().value;if(V===Q)return V;if(E=cY(E,Q))return V+"."+E}return null};
fr=function(v){var Q=v.content;return(v=v.styleRuns)&&Q?{runs:v.map(function(V){var E={text:Q.slice(V.startIndex,V.startIndex+V.length)};V.fontColor&&(E.textColor=V.fontColor);return E})}:{simpleText:Q}};
xrE=function(v,Q,V,E){var b=JgB;E&&(v.quantity=E);if(!v.quantity||!v.maxQuantity)return{};E=v.minusButton;var F=v.plusButton,t,p,Z,d;return{value:v.quantity,maxValue:v.maxQuantity,onChangeCallback:function(w){b(v,w)},
minusLabel:(t=_.y(E,NtT))==null?void 0:t.label,minimumReachedLabel:(p=_.y(E,NtT))==null?void 0:p.limitReachedLabel,plusLabel:(Z=_.y(F,NtT))==null?void 0:Z.label,maximumReachedLabel:(d=_.y(F,NtT))==null?void 0:d.limitReachedLabel,disabled:Q,onRemoveCommand:V}};
JgB=function(v,Q){var V=v.quantityIncrementerEntityKey;if(V){var E={};E.quantity=Q;_.jT(_.Gz("quantityIncrementerEntity",V,E));v.onChangeCommand&&_.nx(v.onChangeCommand)}};
Btm=function(v){if(v)return v===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(v).overflowY)?v:Btm(v.parentElement)};
uio=function(v,Q){(v=gjt(v))&&((_.Y("enable_mini_app_command_handler_mweb_fix")?0:Q)?skB.push({command:v,sourceData:{},commandContext:void 0}):_.ht().resolve(_.At).resolveCommand(v))};
gjt=function(v){return _.y(v,_.Cx)};
jkr=function(){var v=window.performance.timeOrigin+window.performance.now(),Q=(new _.Cr).setSeconds(v/1E9);return _.vq(Q,2,_.Lj(v%1E9),0)};
ojB=function(v,Q){var V;v=(V=_.y(_.y(v,_.Cx),WfS))==null?void 0:V.methodName;var E,b;(V=window.youtubewebview||((E=window.webkit)==null?void 0:(b=E.messageHandlers)==null?void 0:b.youtubewebview))&&v&&(E=new MM,v=_.SS(E,1,v),v=_.Sq(v.JSC$12627_serializeBinary()),Q=_.Sq(Q),V.postMessage(v+","+Q))};
OI=function(v,Q){var V=_.y(_.y(v,_.Cx),WfS);V&&(Q&&(V.serializedAdditionalMetadata=_.Sq(Q)),uio(v,!0))};
XvT=function(v){switch(v){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
a4o=function(){return!!_.r7("ID_TOKEN")};
I4S=function(v){return v instanceof Error&&v.cause instanceof rgZ&&v.cause.rpcErrorCode!==void 0?!$rT.includes(v.cause.rpcErrorCode):!0};
mro=function(){return _.Li(Hsr,{authuser:""+(_.r7("SESSION_INDEX")||0)})};
Dv=function(v,Q,V,E){V=V===void 0?"MINI_APP_SDK_API_UNSPECIFIED":V;E=E===void 0?"":E;var b=new _.xd;V={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:E,sdkApi:V};v instanceof Error&&(b.message=v.message,b.name=v.name,v.cause instanceof rgZ&&v.cause.rpcErrorCode!==void 0&&(V.rpcErrorCode=v.cause.rpcErrorCode));var F;(F=Q.onError)==null||F.call(Q,{loggingError:b,metadata:V})};
v89=function(v,Q,V,E){switch(v){case "MINI_APP_SOURCE_GAMESNACKS":return new RI(Q,V,E);default:return new UrB(Q,V,E)}};
Q23=function(v){switch(v){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
V7S=function(v){switch(v){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
E80=function(v){switch(v){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
buo=function(){return Math.floor(Math.random()*4)+1};
F29=function(v,Q,V,E){v=_.L(Object.entries(v));for(var b=v.next(),F={};!b.done;F={message$jscomp$995:void 0},b=v.next()){var t=_.L(b.value);b=t.next().value;t=t.next().value;F.message$jscomp$995=t;Q.push(setTimeout(function(p){return function(){E(!1);V(p.message$jscomp$995.text)}}(F),F.message$jscomp$995.delayMs));
Number(b)>0&&Q.push(setTimeout(function(){E(!0)},F.message$jscomp$995.delayMs-400))}};
K2Z=function(v,Q){var V=V===void 0?JXS:V;_.Y("mweb_fix_monitor_visibility_after_render")?v&&T4(function(){B1Q(v,Q,V)}):T4(function(){B1Q(v,Q,V)})};
iu0=function(v,Q){var V=document.createElement("ytd-engagement-panel-section-list-renderer");V.data=v;var E=Q!=null?Q:{};v=E.isPersistentPanel;Q=E.hideDelayMs;E=E.overscrollContain;v=Object.assign({},v&&{isPersistentPanel:v},Q&&{hideDelayMs:Q},E&&{overscrollContain:E});Object.assign(V,v);return V};
euQ=function(v){L2T||(L2T=t7S(new _.NS(1,void 0,void 0,p00),0));var Q=L2T.format(Math.floor(v));Q=zO==="be"||zO==="bg"||zO==="es"||zO==="et"||zO==="hu"||zO==="ka"||zO==="lv"||zO==="pl"||zO==="pt-PT"||zO==="sq"?Q.replace(new RegExp("^(\\d)"+p00.GROUP_SEP.replace(".","\\.")+"(\\d+("+p00.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):Q;return v>=1E3&&v<=9999&&Q[1]==="."&&(zO==="sl"||zO==="it")?Q.replace(".",""):Q};
diZ=function(v,Q,V,E){if(v)return E=E||v.likeStatus,Q?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:E==="LIKE",isDisabled:!v.likesAllowed,defaultIcon:{iconType:V},defaultText:E==="LIKE"?v.likeCountWithUnlikeText:v.likeCountText,toggledText:E==="LIKE"?v.likeCountText:v.likeCountWithLikeText,defaultNavigationEndpoint:ZuE(v,"LIKE"),defaultServiceEndpoint:PBS(v,"LIKE"),toggledServiceEndpoint:PBS(v,"INDIFFERENT"),defaultTooltip:_.j0(v.likeCountTooltipText),toggledTooltip:_.j0(v.likeCountTooltipText),
targetId:v.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:E==="DISLIKE",isDisabled:!v.likesAllowed,defaultIcon:{iconType:V},defaultText:E==="DISLIKE"?v.dislikeCountWithUndislikeText:v.dislikeCountText,toggledText:E==="DISLIKE"?v.dislikeCountText:v.dislikeCountWithDislikeText,defaultNavigationEndpoint:ZuE(v,"DISLIKE"),defaultServiceEndpoint:PBS(v,"DISLIKE"),toggledServiceEndpoint:PBS(v,"INDIFFERENT"),defaultTooltip:_.j0(v.dislikeCountTooltipText),
toggledTooltip:_.j0(v.dislikeCountTooltipText)}};
ZuE=function(v,Q){if(Q==="LIKE")return v.likeCommand;if(Q==="DISLIKE")return v.dislikeNavigationEndpoint};
PBS=function(v,Q){var V;return(V=v.serviceEndpoints)==null?void 0:V.find(function(E){var b;return((b=_.y(E,_.nr))==null?void 0:b.status)===Q})};
_.APQ=function(v,Q,V){return window.spf&&!_.Y("web_disable_spfjs_client")?huB(v,Q,V):w00(v,Q)};
huB=function(v,Q,V){var E=null,b=(new _.Ry(function(F,t){var p={};if(Q){p.method=Q.method;var Z=Q.postParams||{};wpt(v,Q)&&(Z[_.r7("XSRF_FIELD_NAME")]=_.r7("XSRF_TOKEN"));p.postData=_.Rm(Z);Q.type&&(p.type=Q.type);Z=Q.headers}p.headers=ppS(v,Z);_.Y("debug_forward_web_query_parameters")&&(v=_.dpo(v,window.location.search));p.experimental_headers=p.headers;p.onError=function(d){d.err&&d.xhr&&(d.err.params={url:d.xhr.responseURL,response:d.xhr.responseText.substr(0,64)});t(d.err)};
p.onPartDone=function(d){V&&V.call(null,d.part)};
p.onDone=function(d){var w=kxr(d.response,"xsrf_token");ew(window.location.href,v)&&w&&_.aS("XSRF_TOKEN",w);if(w=kxr(d.response,"service_worker_killswitch"))_.aS("SERVICE_WORKER_KILLSWITCH",w),wbS();F(d.response)};
E=spf.request(v,p)})).then(TRE);
b.thenCatch(function(F){var t=F instanceof _.lA,p=F&&F.hasOwnProperty("params")&&F.params.response?F.params.response:"";F instanceof Error&&(p?t?UCE(F):p===')]}\'\n{"reload":"now"}'?UCE(F):(Ye3(F,v,p),yPo(F,p)?_.Iy(F):_.ro(F)):UCE(F));E&&E.abort()});
return b};
TRE=function(v){if(v.type==="multipart"){var Q=v.timing;v=v.parts.reduce(function(V,E){Object.assign(V,E);return V},{});
v.timing=v.timing||{};Object.assign(v.timing,Q);v.type="reduced"}return v};
w00=function(v,Q){Q=Q===void 0?{}:Q;var V=null,E=new _.Ry(function(b,F){Q.onFinish=function(t){if(t.readyState===XMLHttpRequest.DONE)if(t.status===200){if(t.responseType!=="json"){var p=t.response;p.substring(0,5)===")]}'\n"&&(p=p.substring(5));try{var Z=JSON.parse(p)}catch(d){Z=d}}else Z=t.response;Z instanceof Error?F(Z):(p=kxr(Z,"xsrf_token"),ew(window.location.href,v)&&p&&_.aS("XSRF_TOKEN",p),t=t.responseURL,window.performance&&window.performance.getEntriesByName?(p=window.performance.getEntriesByName(t).pop())?
t={responseStart:(0,_.wO)()-(p.responseEnd-p.responseStart)}:(Math.random()<.01&&(p=Error("ei"),p.params=t,_.Iy(p)),t={responseStart:-1}):t={responseStart:0},Z.timing=Z.timing||{},Object.assign(Z.timing,t),b(Z))}else F(Error("di`"+t.status))};
(V=_.D9(v,Q))||F(Error("di`"+V.status))});
E.thenCatch(function(b){b instanceof Error&&(Ye3(b,v),yPo(b)&&(b.level="WARNING"))});
_.Y("cancel_pending_navs")&&E.thenCatch(function(){V.abort()});
return E};
kxr=function(v,Q){var V=v[Q],E=v.parts;v.type==="multipart"&&E&&(V=(v=E.find(function(b){return Q in b}))&&v[Q]);
return V};
Ye3=function(v,Q,V){var E=v.message||"";Q={original:E,url:Q};if(V)if(E=E.match(/position:?\s*(\d+)/)){E=E&&Number(E[1])?Number(E[1]):0;var b=Math.max(E-25,0);Q.position=E;Q.response=V.substring(b,E+25)}else Q.response=V.substring(0,50);_.Hx(v,Q);try{v.message="JSON parse error"}catch(F){}};
yPo=function(v,Q){v=v.message||"";v=!!(v.indexOf("<")>=0||v.indexOf("end of ")>=0||v.indexOf("Unterminated string")>=0||v.indexOf("Unexpected EOF"));if(!v&&Q)for(var V=Q.length,E=!1,b=0;b<V;b++)if(E&&Q[b]==="\\")b++;else if(Q[b]==='"')E=!E;else if(Q[b]==="<"&&!E){v=!0;break}return v};
cP0=function(){return document.documentElement.hasAttribute("dark")};
_.ffZ=function(v,Q){if(v!=="GFEEDBACK"&&v!=="GUIDED_HELP")_.Ui(Error("fi`"+v));else{var V=_.ht().resolve(_.d$(_.oJ));if(V&&(V=V.getCurrentPage())&&V.getServiceTrackingParams&&(V=V.getServiceTrackingParams()))for(var E=0,b;b=V[E++];)if(b.service===v){if(v=b.params)for(V=0;E=v[V++];)Q[E.key]=E.value;break}}};
_.GxE=function(v){var Q=_.aJ();Q&&(Q=Q.getPlayer())&&(Q.pauseVideo(),v.playback_id=Q.getVideoData().cpn,v.eid=Q.getVideoData().eventId,Object.assign(v,Q.getFeedbackProductData()))};
CBS=function(){var v={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.r7("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(v.enableAnonymousFeedback=!0);_.r7("SESSION_INDEX")&&(v.authuser=String(_.r7("SESSION_INDEX")));_.Y("enable_pageid_for_feedback")&&_.r7("DELEGATED_SESSION_ID")&&(v.pageId=String(_.r7("DELEGATED_SESSION_ID")));return v};
_.qM=function(v){_.Y("enable_ypc_spinners")&&_.mb(v,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},v])};
_.Si=function(v){_.Y("enable_ypc_spinners")&&_.mb(v,"yt-close-popup-action",["yt-loading-renderer"])};
M7E=function(v){return new Promise(function(Q,V){_.Oo({verifyCommand:{recaptchaToken:v.recaptchaResponse}},{commandController:{onSuccess:function(E,b){b||V("ChallengeService did not return a response.");var F;Q({challengeCompleted:(F=b.verified)!=null?F:!1})},
onServerError:function(E,b){V(b)}}})})};
OuG=function(v,Q,V,E){Q({recaptchaResponse:E}).then(function(b){b.challengeCompleted?_.z_()?(V(3),_.ht().resolve(_.At).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:v}})):V(2):V(4)},function(){V(4)})};
RuE=function(v,Q,V){_.SH(_.Ad(Dib,_.r7("HL")),function(){var E;(E=window.grecaptcha)==null||E.ready(function(){var b=window.grecaptcha;b?(V(b.render(v,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:OuG.bind(null,v,M7E,Q)})),Q(1)):Q(4)})})};
n8Q=function(v,Q){return function(){switch(Q()){case 0:return v().captchaLoadingMessage;case 1:return v().challengeReason;case 3:return v().captchaSuccessfulMessage;case 2:return v().captchaCookieSetFailureMessage;case 4:return v().captchaFailedMessage;default:return v().challengeReason}}()};
_.zz=function(){if(!lfQ){var v=document.querySelector("#player.skeleton");v&&(_.ng(v),lfQ=!0)}};
_.zub=function(){return qem=c$E()};
xiT=function(){return _.e(function(v){return JPT!==void 0?v.return():v.yield(NRt(),0)})};
NRt=function(){return _.e(function(v){if(v.nextAddress==1)return v.yield(GVm(),2);qem=v.yieldResult;JPT=_.XT.addLowPriorityJob(NRt,5E3);_.q1(v)})};
W2B=function(v){var Q=Q===void 0?BRm:Q;var V,E,b=(V=v.responseContext)==null?void 0:(E=V.mainAppWebResponseContext)==null?void 0:E.trackingParam;if(!b){Q.increment("MISSING");var F,t,p,Z,d,w;_.Iy(new _.xd("282054944_a",{yzg:!!((F=v.responseContext)==null?0:(t=F.mainAppWebResponseContext)==null?0:t.loggedOut),mPr:((p=v.responseContext)==null?void 0:p.mainAppWebResponseContext)===void 0,rL7:v.responseContext===void 0,cp:(Z=v.playabilityStatus)==null?void 0:Z.contextParams,rH2:(((d=v.streamingData)==
null?void 0:d.formats)||[]).length>0,arF:(((w=v.streamingData)==null?void 0:w.adaptiveFormats)||[]).length>0,os:!!v.offlineState,cotn:v.cotn}));return 2}V="";try{V=g8Z(b)}catch(T){return Q.increment("C_ERROR"),_.ro(T),2}try{var A=_.s2B(V);var k=ueh(A)}catch(T){return Q.increment("P_ERROR"),_.ro(T),2}k=_.PM(k,j29,1,_.dZ());b=[];k=_.L(k);for(A=k.next();!A.done;A=k.next())E=A.value,A=E.getPath(),V=(0,_.gI.getValueByKeys)(v,A.split(".")),V=String(V===void 0||V===null?"":V),E=E.getValue()||"",F=/[+\-\/_]/g,
V.replace(F,"")!==E.replace(F,"")&&(Q.increment("MISMATCH"),_.Y("ab_mis_log_err")&&(V=new _.xd("282054944_p",{our:A,g:String(V),e:String(E)}),_.ro(V)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(A)||(A.match(/enforcementMessageViewModel/i)?b.push(3):b.push(2)));if(b.length>0)return Math.max.apply(Math,_.ui(b));Q.increment("SUCCESS");return 1};
afE=function(v){var Q=new Jx;if(v.interpreterJavascript){var V=_.XHB(v.interpreterJavascript);V=K$(V).toString();var E=new o8b;_.SS(E,6,V);_.Mj(Q,1,E,Sp)}else v.interpreterUrl&&(V=_.ae(v.interpreterUrl),V=_.Sc(V).toString(),E=new _.X0E,_.SS(E,4,V),_.Mj(Q,2,E,Sp));v.interpreterHash&&_.NM(Q,3,v.interpreterHash,Sp);v.program&&_.NM(Q,4,v.program,Sp);v.globalName&&_.NM(Q,5,v.globalName,Sp);v.clientExperimentsStateBlob&&_.NM(Q,7,v.clientExperimentsStateBlob,Sp);return Q};
xS=function(v){var Q={};v=_.L(v.split("&"));for(var V=v.next();!V.done;V=v.next())V=V.value.split("="),V.length===2&&(Q[V[0]]=V[1]);return Q};
rPr=function(v){return Number(v.t)||7200};
jS9=function(){if(_.Y("bg_st_hr"))return"havuokmhhs-0";var v,Q=((v=globalThis.performance)==null?void 0:v.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Q)};
$ib=function(){return new Promise(function(v){var Q=window;Q.ntpevasrs!==void 0?v(new BY(Q.ntpevasrs)):(Q.ntpqfbel===void 0&&(Q.ntpqfbel=[]),Q.ntpqfbel.push(function(V){v(new BY(V))}))})};
IfZ=function(v){var Q=v.oUE.bind(v);_.Pr("yt.aba.att",Q);v=v.gn6.bind(v);_.Pr("yt.aba.att2",v)};
mit=function(v){switch(_.OG(v.input)){case _.Xg(Hu0):var Q={};return Q.encryptedVideoId=v.innerTubeRequest.externalVideoId,Q}return{}};
QiQ=function(v){switch(_.OG(v.input)){case _.Xg(Hu0):if(_.Y("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Xg(UiB):if(_.Y("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Xg(gs):if(_.Y("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&v.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Xg(v1S):var Q,V;if(_.Y("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((V=_.y((Q=v.config)==null?void 0:Q.command,_.uP))==null?0:V.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.E1o=function(v){var Q;if(v.playlistVideoRenderer&&((Q=v.playlistVideoRenderer)==null?0:Q.engagementBar))return VLT(v.playlistVideoRenderer.engagementBar);if(_.y(v,sI)){var V;if(v=(V=_.y(v,sI))==null?void 0:V.engagementBar)return VLT(v)}return""};
VLT=function(v){if(!v)return"";v=_.y(v,_.by9);if(v==null||!v.actions)return"";v=_.L(v.actions);for(v=v.next();!v.done;v=v.next()){v=_.y(v.value,_.F1B);var Q=void 0;if((Q=v)==null||!Q.itemId)break;return v.itemId}return""};
_.K1Z=function(v){var Q;if(v.playlistVideoRenderer&&((Q=v.playlistVideoRenderer)==null?0:Q.videoId))return v.playlistVideoRenderer.videoId;if(_.y(v,sI)){var V,E;if(v=(V=_.y(v,sI))==null?void 0:(E=V.playlistItemData)==null?void 0:E.videoId)return v}return""};
_.iym=function(v){var Q;if(v.playlistVideoRenderer&&((Q=v.playlistVideoRenderer)==null?0:Q.voteCount))return v.playlistVideoRenderer.voteCount;if(_.y(v,sI)){var V,E;if(v=(V=_.y(v,sI))==null?void 0:(E=V.playlistItemData)==null?void 0:E.voteCount)return v}return 0};
_.uA=function(v,Q){return _.Fg(v.entities,"flowStateEntity",Q)};
tLb=function(v,Q,V,E){var b=void 0;v=_.L(v[Q.iconName]||[]);for(var F=v.next();!F.done;F=v.next()){F=F.value;var t=Q.iconSize;var p=Q.iconStyle;t=!t||t===F[2];var Z=L10[F[0]];E&&E!==F[1]||!t||p&&p!==Z?p=!1:b?(p=L10[F[0]],p=!!Q.iconStyle||p==="youtube_outline",t=b.version<=F[1],p=(!!Q.iconSize||F[2]===24)&&p&&t):p=!0;p&&(b={name:Q.iconName,style:L10[F[0]],size:F[2],version:F[1],allowMirroring:!!F[3],url:V(Q.iconName,F)})}return b};
pTr=function(v,Q,V,E){return v+(""+L10[V[0]]+((E===void 0?0:E)?"_experimental":"")+"/"+Q+"/v"+V[1]+"/")+(V[2]+"px.svg")};
eiE=function(v){return _.r7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.r7("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":v};
ZyS=function(v,Q){return pTr("https://fonts.gstatic.com/s/i/",v,Q)};
P2E=function(v,Q){return pTr("https://fonts.gstatic.com/s/i/",v,Q,!0)};
dtt=function(v,Q){return pTr("https://www.gstatic.com/youtube/img/icons/web/",v,Q)};
wTb=function(v){var Q=v.enabled;var V=v.itemPlaybackModel;var E=v.thumbnailElRef;var b=v.containerElRef;var F=v.options;var t;_.uH(function(){var p=b==null?void 0:b.value;var Z,d=(Z=E())==null?void 0:Z.value;Z=V();var w=F();if(Q&&Z&&p&&d&&(w==null?0:w.thumbnail)){var A={data:Z,hostElement:p},k,T,c=[].concat(_.ui((k=w.thumbnailOverlays)!=null?k:[]),_.ui((T=Z.overlays)!=null?T:[]));T=Z.itemPlaybackOptions;k=(T==null?void 0:T.enableRoundedPlayer)||w.enableRounding;T=T==null?void 0:T.disableTimeStatusOverlay;
var C,R;p={mediaRenderer:A,lockupElement:p,thumbnailElement:d,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.MQ((C=Z.inlinePlayerData)==null?void 0:C.onVisible),navigationEndpoint:_.MQ((R=Z.inlinePlayerData)==null?void 0:R.onSelect),thumbnail:w.thumbnail,thumbnailOverlays:c,accessibilityText:w.accessibilityText||""},thumbnailSize:w.thumbnailSize,enableRounding:k,mouseleaveCallback:w.mouseleaveCallback,hideTimeDisplay:T}}}else p=void 0;if(C=p){var l;(l=t)==null||ji(l);t=Dz(C);var S,a;
((S=V())==null?0:(a=S.inlinePlayerData)==null?0:a.forceImpAutoplay)&&hiG(t)}},"BLiQOd");
_.j_(function(){var p;(p=t)==null||ji(p)})};
AAS=function(v){v=atob(v);for(var Q=[],V=0;V<v.length;V++)Q.push(v.charCodeAt(V));return new Blob([new Uint8Array(Q)],{type:"image/png"})};
TTG=function(v,Q,V,E){E=E===void 0?"INSERTION_POSITION_UNSPECIFIED":E;return v({targetId:Q},function(b){var F,t=(F=b.contents)!=null?F:[];F=V!=null?V:[];var p=koG(t);switch(E){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},b,{contents:[].concat(_.ui(t.slice(0,p)),_.ui(F),_.ui(t.slice(p+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},b,{contents:[].concat(_.ui(F),_.ui(t))});case "INSERTION_POSITION_LAST":return Object.assign({},b,{contents:[].concat(_.ui(t),_.ui(F))});
default:return b}})};
yAt=function(v,Q,V,E,b){b=b===void 0?"RELATIVE_INSERTION_POSITION_AFTER":b;return v({targetId:Q},function(F){var t,p=(t=F.contents)!=null?t:[];t=Yqo(p,V);if(t<0)return F;t=b==="RELATIVE_INSERTION_POSITION_BEFORE"?t:t+1;return Object.assign({},F,{contents:[].concat(_.ui(p.slice(0,t)),_.ui(E),_.ui(p.slice(t)))})})};
koG=function(v){var Q=v.findIndex(function(V){return _.y(V,_.WY)});
return Q>=0?Q:v.length};
Yqo=function(v,Q){return v.findIndex(function(V){a:{V=_.L(Object.values(V));for(var E=V.next();!E.done;E=V.next())if((E=E.value)&&E.targetId){V=E.targetId;break a}V=""}return V===Q})};
fkB=function(v,Q,V){return v({targetId:Q},function(E){var b,F=(b=E.contents)!=null?b:[];return Object.assign({},E,{contents:cAZ(F,V)})})};
cAZ=function(v,Q){return v.filter(function(V){var E=Q.includes;a:{V=_.L(Object.values(V));for(var b=V.next();!b.done;b=V.next())if((b=b.value)&&b.targetId){V=b.targetId;break a}V=""}return!E.call(Q,V||"")})};
_.GoT=function(v,Q){return{engagementPanelSectionListRenderer:{panelIdentifier:v,identifier:Q,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
C2t=function(v,Q){v=v.getAvailableAudioTracks();if(v.length)return v==null?void 0:v.find(function(V){var E;return(V==null?void 0:(E=V.getLanguageInfo())==null?void 0:E.getId())===Q})};
_.Oy9=function(v){var Q,V=(Q=v.getOption("captions","tracklist",{includeAsr:!0}))!=null?Q:[];return V=ML0(V,v)};
Dth=function(v){return v.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
ML0=function(v,Q){Q=Dth(Q);if(Q==null||!Q.length)return v;var V=Q.filter(function(t){return t});
Q=v.filter(function(t){return t.languageCode.startsWith("en")});
V=_.L(V);for(var E=V.next();!E.done;E=V.next())if(E=E.value,Q.length){var b=Q[0],F=Object.assign({},b);b.languageCode!==E.languageCode&&(F.displayName=b.languageName+" >> "+E.languageName,F.translationLanguage=E,v.push(F))}return v};
RiZ=function(v,Q,V){v=_.Oy9(v);if(v.length)return V?v.find(function(E){if(typeof(E==null?void 0:E.translationLanguage)==="object"){var b;return((b=E.translationLanguage)==null?void 0:b.languageCode)===Q}return!1}):v==null?void 0:v.find(function(E){return E.languageCode===Q})};
n19=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
lkQ=function(v){var Q=v.getAvailableAudioTracks();if(Q!=null&&Q.length){var V=v.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ui(Q.map(function(E){return{listItemViewModel:{title:{content:E.getLanguageInfo().getName()},isSelected:E.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:E.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
qq9=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
SqT=function(v){var Q=qq9(v);if(Q==null?0:Q.length)return Q;v.loadModule("captions");return qq9(v)};
zih=function(v){var Q=v.getOption("captions","track");if(Q)return Q;v.loadModule("captions");return v.getOption("captions","track")};
NTE=function(v){var Q=SqT(v);if(Q!=null&&Q.length){var V=zih(v),E;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Lt("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(_.ui(Q.map(function(b){return{listItemViewModel:{title:{content:b.displayName},
isSelected:b.displayName===(V==null?void 0:V.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:b.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Lt("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!V.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!V.translationLanguage&&{selectionText:{content:(V==null?void 0:(E=V.translationLanguage)==null?void 0:E.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[JAB(v)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
JAB=function(v){var Q=Dth(v);if(Q==null||!Q.length)throw Error("Ei");var V=zih(v);v=Q.filter(function(E){return!E.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ui(v.map(function(E){var b;return{listItemViewModel:{title:{content:E.languageName},isSelected:E.languageName===(V==null?void 0:(b=V.translationLanguage)==null?void 0:b.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:E.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
siG=function(v){return new Promise(function(Q,V){if(v===void 0)_.ro(Error("Ii"),"ERROR"),V(Error("Ii"));else{V=new _.xtT;var E=_.BTE();V=V.init();var b=_.g1t(_.r7("YPC_MB_URL"),!0);Promise.all([V,b]).then(function(){var F=_.oI.payments.business.integration.ClientTokenFactory.createClientToken(v,E);Q(F)})}})};
W13=function(v,Q,V,E,b,F,t){var p=_.B_();V=V.replace(/-/g,"+").replace(/_/g,"/");var Z=_.eP().get("hl"),d=_.XQ(_.sp),w=Q==null?void 0:Q.element;w&&_.qM(w);uN0(Q,!0);_.jiZ(d,V,p.resolve,function(){w&&_.Si(w)},function(A){w&&_.Si(w);
p.reject(A)},Z,E?function(A){E&&_.xW(v,E,{backend_analytics:A})}:void 0,p.resolve,b,F,t);
return p.promise};
uN0=function(v,Q){!(v=v==null?void 0:v.element)||v.tagName!=="YT-BUTTON-RENDERER"&&v.tagName!=="YTD-BUTTON-RENDERER"||(v.disabled=Q)};
o1o=function(){var v=_.Lt("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.I$(v),actionButton:{buttonRenderer:myT()}}},popupType:"TOAST"}};
XTQ=function(){var v=_.Lt("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.I$(v),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
akG=function(v){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:v}]}}};
aI=function(v,Q,V,E){var b;return _.e(function(F){if(F.nextAddress==1)return _.GC(F,2),F.yield(v,4);if(F.nextAddress!=2)return(b=_.w8(Q.getState().entities).length>0)?F.return({title:_.I$(_.Lt("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.I$(_.Lt("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:HmS()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
F.return(Uy0(V,E));_.n$(F);return F.return(Uy0(V,E))})};
rA0=function(v,Q){return Q?Q==="PPSV"||HDr(v,Q):!1};
$tT=function(v){v.responseContext||(v.responseContext={});v.responseContext.maxAgeSeconds=0;return v};
$S=function(v){var Q;return _.e(function(V){return V.nextAddress==1?V.yield(IkQ(v,"service:topbar:fallback"),2):(Q=V.yieldResult)&&_.rs(Q)?V.return($tT(_.rs(Q))):V.return()})};
HyZ=function(v){var Q;return _.e(function(V){return V.nextAddress==1?V.yield(IkQ(v,"service:downloads_settings:fallback"),2):(Q=V.yieldResult)&&_.rs(Q)?V.return(Q):V.return()})};
IkQ=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1)return v?E.yield(v.get(Q),2):E.return();V=E.yieldResult;return!V||!_.rs(V)||!isNaN(Number(V.data.expireTimestampMs))&&V.isExpired()?E.return():E.return(V)})};
mtb=function(v){var Q=_.ht().resolve(UI).getState().entities;return v.playlistId?rA0(Q,v.playlistId):!1};
vrS=function(v){var Q=_.T_("web_pbj_log_warning_rate",0);Q=Q>0&&Math.random()<Q;if(!_.y(v,_.PH))return Q&&_.Iy(Error("bj")),!1;var V;return _.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((V=_.y(v,_.PH))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:UtT(v)?!0:(Q&&_.Iy(Error("cj")),!1)};
UtT=function(v){var Q=(_.y(v,_.sn)||_.y(v,_.PH)).videoId;if(!Q||!Qt0.test(Q))return!1;var V;return(v=(V=_.y(v.commandMetadata,_.Kt))==null?void 0:V.url)&&(v.includes(Q)||v.startsWith("/clip"))?!0:!1};
_.Er3=function(){var v=_.eP();return v.getFlag(192)?v.getFlag(190):!(_.Y("web_watch_cinematics_disabled_by_default")||_.Y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&VdE())};
_.vZ=function(v,Q,V){var E={};E.currentUrl=Q;E.vis=v.vis!==void 0?v.vis:0;E.splay=!1;Q=_.eP();E.autoCaptionsDefaultOn=Q.getFlag(66);Q.getFlag(141)?Q.getFlag(140)?E.autonavState="STATE_OFF":E.autonavState="STATE_ON":E.autonavState="STATE_NONE";E.html5Preference="HTML5_PREF_WANTS";isNaN(_.r7("STS"))||(E.signatureTimestamp=_.r7("STS"));v.autonav&&(E.autoplay=!0,E.autonav=!0);v.mutedAutoplay&&(E.autoplay=!0,E.mutedAutoplay=!0);v.inlinePlayback&&(E.autoplay=!0,E.autonav=!1,E.isInlineUnmutedPlayback=!!v.inlineUnmuted);
E.referer=V;E.lactMilliseconds=v.lact!==void 0?v.lact.toString():"-1";_.Y("enable_unknown_lact_fix_on_html5")&&E.lactMilliseconds==="-1"&&_.Iy(new _.xd("Unknown LACT is set in playbackContext.",{"lact in tempData":v.lact||"undefined",autonav:v.autonav||"undefined"}));v={};Q.getFlag(194)&&(v.hasShownAmbientMode=!0);Q.getFlag(192)&&(v.hasToggledOffAmbientMode=!0);_.Er3()&&(v.watchAmbientModeEnabled=!0);E.watchAmbientModeContext=v;return E};
bK9=function(v){var Q={},V=v.pbis||0;V&&(Q.playbackBeginsInSeconds=V);v.prefetch_reason&&v.prefetch_reason==="hc_pbis"&&(Q.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return Q};
FE9=function(v,Q){var V;if(Q==null?0:(V=Q.requestTemplate)==null?0:V.panelId)v.panelId=Q.requestTemplate.panelId;var E;if(Q==null?0:(E=Q.requestTemplate)==null?0:E.params)v.params=Q.requestTemplate.params};
iKZ=function(){if(KEr)return KEr();var v=!_.Y("idb_response_store_auth_killswitch"),Q={};KEr=hF("yt-it-response-store",{objectStores:(Q.ResponseStore={addedAtVersion:1},Q),shared:!v,upgrade:function(V,E){E(1)&&(V=Uf(V,"ResponseStore",{keyPath:["key","clientName"]}),vx(V,"byExpiration","expireTimestampMs"),vx(V,"byInterface","clientName"))},
version:1});return KEr()};
LEG=function(v){return _.iD(iKZ(),v)};
pGt=function(v,Q){var V;return _.e(function(E){return E.nextAddress==1?E.yield(_.dO(),2):(V=E.yieldResult)?E.return(new tdo(v,Q,V)):E.return()})};
eVZ=function(v){var Q=Object.keys(v)[0];if(Q)return v.screenExit&&(Q=Q+";"+v.screenExit.screen),Q};
ZK9=function(v){var Q=new Map;v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,V!=null&&(Q.has(V.taskType)||Q.set(V.taskType,[]),Q.get(V.taskType).push(V));return Q};
PGb=function(v){v=[].concat(_.ui(v)).sort(function(V,E){return V-E});
var Q=Math.floor(v.length/2);return v.length%2?v[Q]:(v[Q-1]+v[Q])/2};
wGt=function(v,Q){v=v===void 0?BSt:v;Q=Q===void 0?{}:Q;_.Pr("yt.logging.errors.log",_.ro);NST();dTb(W0t(),Q);window.onerror=v;hVh=xCb;window.addEventListener("unhandledrejection",function(V){if(V.reason instanceof Error){var E=V.reason;_.Hx(E,{source:"unhandledrejection"});E.name==="AbortError"&&(E.level="WARNING")}xCb(V.reason);V.preventDefault()})};
_.AJ3=function(v){var Q,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3,OB,kQ,yo,xQ,lb,ep,JS,fZ,mS,PN,qZ,DX,Th,R8,LE;return _.e(function(Q8){if(Q8.nextAddress==1)return Q8.yield(_.e0(v,{mode:"readonly",enableRetries:!0},function(Tq){return Zi(Tq,"playbackData").then(function(Ed){var y8=Ed.map(function(dV){return dV.transfer}).filter(function(dV){return!!dV}),mA=Ed.map(function(dV){return dV.offlineVideoPolicy}).filter(function(dV){return!!dV}),C$=Ed.filter(function(dV){return!!dV.key}).map(function(dV){return _.b3(_.Q_(dV.key).entityId,
"downloadStatusEntity")});
y8=Zi(Tq,"transfer",y8);mA=Zi(Tq,"offlineVideoPolicy",mA);C$=Zi(Tq,"downloadStatusEntity",C$);var oN=y8.then(function(dV){dV=dV.reduce(function(hS,bh){(bh==null?0:bh.offlineVideoStreams)&&hS.push.apply(hS,_.ui(bh.offlineVideoStreams));return hS},[]).filter(function(hS){return!!hS});
return Zi(Tq,"offlineVideoStreams",dV)});
return vr.all([y8,mA,oN,C$]).then(function(dV){var hS=_.L(dV);dV=hS.next().value;var bh=hS.next().value;var ah=hS.next().value;hS=hS.next().value;return[Ed,dV,bh,ah,hS]})})}),2);
if(Q8.nextAddress!=3)return Q=Q8.yieldResult,Q8.yield(_.e0(v,{mode:"readonly",enableRetries:!0},function(Tq){return Zi(Tq,"mainDownloadsListEntity").then(function(Ed){var y8,mA;return(mA=(y8=Ed[0])==null?void 0:y8.downloads)!=null?mA:[]})}),3);
V=Q8.yieldResult;E=_.L(Q);b=E.next().value;F=E.next().value;t=E.next().value;p=E.next().value;Z=E.next().value;d=b;w=F;A=t;k=p;T=Z;c={};C={};R={};l={};S={};a=[];g=_.L(w);for(u=g.next();!u.done;u=g.next())(r=u.value)&&(c[r.key]=r);v9=_.L(A);for(t3=v9.next();!t3.done;t3=v9.next())(h3=t3.value)&&(C[h3.key]=h3);OB=_.L(T);for(kQ=OB.next();!kQ.done;kQ=OB.next())(yo=kQ.value)&&(R[yo.key]=yo);xQ=_.L(k);for(lb=xQ.next();!lb.done;lb=xQ.next())(ep=lb.value)&&(l[ep.key]=ep);JS=_.L(V);for(fZ=JS.next();!fZ.done;fZ=
JS.next())mS=fZ.value,PN=void 0,S[(PN=mS.videoItem)!=null?PN:""]=!0,mS.videoItem&&(DX=qZ=void 0,Th=(DX=(qZ=_.Q_(mS.videoItem))==null?void 0:qZ.entityId)!=null?DX:"",a.push({externalVideoId:Th}));R8=d.filter(function(Tq){if(!Tq||!Tq.key||!Tq.offlineVideoPolicy)return!1;Tq=_.Q_(Tq.key).entityId;Tq=_.b3(Tq,"downloadStatusEntity");var Ed;return!(Tq&&((Ed=R[Tq])==null?void 0:Ed.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
LE=R8.map(function(Tq){var Ed=c[Tq.transfer],y8=[];if(Ed==null?0:Ed.offlineVideoStreams)for(var mA=_.L(Ed.offlineVideoStreams),C$=mA.next();!C$.done;C$=mA.next())(C$=l[C$.value])&&y8.push(C$);mA=C[Tq.offlineVideoPolicy];C$=S;var oN=Tq==null?void 0:Tq.playerResponseTimestamp,dV=_.Q_(mA.key).entityId;Tq=_.b3(dV,"mainVideoEntity");if(mA.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var hS="OFFLINE_VIDEO_STATE_DISABLED";mA.expirationTimestamp&&Number(mA.expirationTimestamp)<Date.now()/1E3&&(hS="OFFLINE_VIDEO_STATE_EXPIRED")}else if(mA.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")hS="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ed==null?void 0:Ed.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":hS="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":hS="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":hS="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":hS="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":hS="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":hS="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:hS="OFFLINE_VIDEO_STATE_UNKNOWN"}if(hS==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ed==null?void 0:Ed.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":hS="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":hS="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":hS=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}dV={id:dV,videoState:hS};if(Ed==null?0:Ed.cotn)dV.cotn=Ed.cotn;if(Ed==null?0:Ed.maximumDownloadQuality)dV.selectedVideoQuality=Ed==null?void 0:Ed.maximumDownloadQuality;if(Ed==null?0:Ed.lastProgressTimeMs)dV.lastProgressTimeMs=Ed.lastProgressTimeMs;oN&&(dV.playerResponseSavedTimeMs=String(Number(oN)*1E3));Ed=String;oN=0;y8=_.L(y8);for(hS=y8.next();!hS.done;hS=y8.next())if(hS=hS.value,hS.streamsProgress){hS=_.L(hS.streamsProgress);for(var bh=hS.next();!bh.done;bh=
hS.next()){var ah=void 0;oN+=Number((ah=bh.value.numBytesDownloaded)!=null?ah:0)}}dV.downloadedBytes=Ed(oN);dV.selectedOfflineMode=C$[Tq]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";mA.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(dV.offlinePlaybackDisabledReason=mA.offlinePlaybackDisabledReason);return dV});
return Q8.return({offlineVideos:LE,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:a}}})})};
k13=function(){var v;return _.e(function(Q){return Q.nextAddress==1?Q.yield(_.L7(),2):(v=Q.yieldResult)?Q.return(_.AJ3(v)):Q.return({state:"PES Unavailable"})})};
yJS=function(){var v,Q,V,E;return _.e(function(b){if(b.nextAddress==1)return b.yield(_.L7(),2);if(b.nextAddress!=3)return(v=b.yieldResult)?b.yield(TFG(v),3):b.return({state:"PES Unavailable"});Q=b.yieldResult;V={};E=Q.reduce(function(F,t){F[t.key]=t;return F},V);
return b.return(YFZ(E))})};
YFZ=function(v){for(var Q={},V=[],E=_.L(Object.keys(v)),b=E.next();!b.done;b=E.next()){var F=b.value;b=v[F];var t=void 0;if(((t=b)==null?void 0:t.entityType)==="mainVideoEntity"){delete v[F];var p=b.data;b={};if(p){var Z=void 0;t=(Z=p.videoId)!=null?Z:"vid-"+F;F=v;b.video=p;delete b.video.formattedDescription;delete b.video.thumbnail;p.owner&&(Z=F[p.owner],Z==null?0:Z.data)&&(delete F[Z.key],b.video.owner=Z.data,delete b.video.owner.avatar);if(p=p.downloadState)if(Z=F[p],Z==null?0:Z.data)if(delete F[p],
p=Z.data.playbackData)if(Z=F[p],Z!=null&&Z.data){delete F[p];p=Z.data;delete p.playerResponseJson;b.playbackData=p;if(p.transfer&&(Z=F[p.transfer],Z==null?0:Z.data)){delete F[Z.key];var d=Z.data;b.transfer=d;Z=[];d=_.L(d.offlineVideoStreams||[]);for(var w=d.next();!w.done;w=d.next())if(w=F[w.value])delete F[w.key],Z.push(w.data);Z&&(b.streams=Z)}(p=p.offlineVideoPolicy)&&(p=F[p])&&p.data&&(delete F[p.key],b.offlineVideoPolicy=p.data)}Q[t]=b}}else b&&b.entityType==="offlineOrchestrationActionWrapperEntity"&&
b.data&&(delete v[b.key],t=b.data,F=void 0,V.push({id:t.rootActionId,type:((F=t.actionProto)==null?void 0:F.actionType)||"",entity:b}))}Q.wrapperEntities=V;Object.keys(v).length>0&&(Q.unknownKeys=v);return Q};
cJ9=function(){var v,Q,V,E,b,F,t,p,Z;return _.e(function(d){if(d.nextAddress==1)return v=(new _.Hr("")).hasLocalStorage(),E=!!((Q=_.bb.crypto)==null?0:(V=Q.subtle)==null?0:V.importKey),b=!!_.bb.BroadcastChannel,F=!!_.bb.navigator.locks,d.yield(h6b(),2);t=d.yieldResult;p=v&&E&&b&&F&&t;Z={isSupported:p};if(p)return d.return(Z);Z.missingBrowserFeatures=[];t||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");v||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
E||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");b||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");F||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return d.return(Z)})};
fCB=function(v,Q,V,E){var b=!1,F={contentId:void 0,contentType:"video"};Q=_.L(Object.entries(Q));for(var t=Q.next();!t.done;t=Q.next()){var p=_.L(t.value);t=p.next().value;p=p.next().value;v.includes(t)&&!V.has(p)?(F.contentId=p,V.add(p),b=!0):t==="contentType"?p==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(F.contentType="playlist"):typeof p==="object"&&p!==null&&fCB(v,p,V,E)}b&&E.push(F)};
G1S=function(){var v;return!((v=QX?QX:null)==null||!v.window)};
_.Mdo=function(v){if(_.Rh()&&_.c3r("Chromium")>=120){var Q=_.CG0().mediaSession;try{Q.setActionHandler("enterpictureinpicture",function(){v()})}catch(V){}}};
OKE=function(v){for(var Q=[],V=_.L(document.styleSheets),E=V.next(),b={};!E.done;b={node$jscomp$779:void 0},E=V.next())b.node$jscomp$779=E.value.ownerNode,b.node$jscomp$779&&(b.node$jscomp$779 instanceof HTMLStyleElement||b.node$jscomp$779 instanceof HTMLLinkElement)&&Q.push(new Promise(function(F){return function(t){var p=F.node$jscomp$779.cloneNode(!0);p.onload=function(){t()};
p.onerror=function(){_.Iy(Error("tj"));t()};
v.document.head.appendChild(p)}}(b)));
return Promise.all(Q)};
xTG=function(v){var Q=[_.hd(DTQ),_.hd(RVS),_.hd(nrh)];lCZ(window.document.documentElement,v.document.documentElement,[_.hd(qFm),_.hd(SFt),_.hd(zVm),_.hd(JJt),_.hd(NFZ)]);lCZ(window.document.body,v.document.body,Q)};
lCZ=function(v,Q,V){v=_.L(v.attributes);for(var E=v.next();!E.done;E=v.next())if(E=E.value)try{_.p$(V,Q,E.name,E.value)}catch(b){}};
grh=function(v,Q){v=new _.VX(v.document.documentElement);v.start(BFE,Q);return v};
stb=function(v){var Q=v.document.documentElement;Q.addEventListener("click",function(V){Yzm(Q,V)});
Q.addEventListener("touchstart",function(V){CTB(V)});
Q.addEventListener("mousedown",function(V){CTB(V)})};
jtm=function(v,Q,V,E){E=E===void 0?!1:E;Q=new uX0(Q||v,V||v);return{x:v.x+((E===void 0?0:E)?Q.lengthX*-1:Q.lengthX)*.2,y:v.y+((E===void 0?0:E)?Q.lengthY*-1:Q.lengthY)*.2}};
WEm=function(v){if(!v)return!1;var Q=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",V,E,b,F=(b=(V=v.errorScreen)==null?void 0:V.playerLegacyDesktopYpcTrailerRenderer)!=null?b:(E=v.errorScreen)==null?void 0:E.ypcTrailerRenderer;return!!Q||!!F};
_.orG=function(v,Q){if(!v)return!1;var V,E=(V=v.errorScreen)==null?void 0:V.playerLegacyDesktopYpcOfferRenderer,b;Q=!!(Q==null?0:(b=Q.playerOverlayRenderer)==null?0:b.gatedActionsOverlayRenderer);return!!WEm(v)||!!E||!!Q};
rJ0=function(v){return XGZ(v,0,"gclid",v.search(aCo))>=0||XGZ(v,0,"gad_source",v.search(aCo))>=0};
$T0=function(v){var Q=[],V=0;return{clear:function(){V=Q.length=0},
push:function(E){Q[V]=E;V=(V+1)%v},
iterate:function(){return function b(){var F,t,p,Z;return _.E$(b,function(d){switch(d.nextAddress){case 1:_.DV(d,2),F=Q.length,t=0;case 4:if(!(t<F)){d.jumpTo(2);break}p=V+t;Z=_.bJ;return d.yield(Q[p%F],7);case 7:Z(d.yieldResult);t++;d.jumpTo(4);break;case 2:_.O_(d),_.Ra(d,0)}})}()}}};
ICr=function(v){v.eventsToIgnore||(v.eventsToIgnore=[]);var Q=v.eventsToIgnore.map(cub),V=new Set(Q),E=$T0(v.bufferSize);return{flush:function(){var b=Array.from(E.iterate());E.clear();b=b.map(function(F){return{name:F.name,timestamp:F.startTime,attributes:F.attributes}});
return JSON.stringify(b)},
onSpanStart:function(b){b.name==="event"&&V.has(b.attributes.type)||E.push(b)}}};
HK3=function(v){v=ICr(v);var Q=v.flush;yLt({onSpanStart:v.onSpanStart});U0.subscribe("handleError",function(V){try{V.params.breadcrumbs=Q()}catch(E){_.ro(E,"WARNING")}})};
mTh=function(){G2("web_tracing_action");_.Ct("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
UTB=function(){G2("web_tracing_action");_.Ct("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
QQ3=function(v,Q,V){if(Q===void 0){vEr||(UTB(),setInterval(UTB,6E5),vEr=!0);var E="web_tracing_action"}else E=Q;var b,F=((b=v.endTime)!=null?b:v.startTime)-v.startTime,t={};b=v.name;var p=v.startTime;t={webTracing:(t[v.name]=v.attributes,t)};V=_.v5(xdr)(b,F,p,t,V,E);if(v.children)for(v=_.L(v.children),E=v.next();!E.done;E=v.next())QQ3(E.value,Q,V)};
VGr=function(v){var Q=n_o.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"&&(Q("Received message from extension",V),v.onMessage(V)))});
return function(V,E){V={app:"yt.telemetry",from:"app",key:V,payload:E};Q("Sending message to extension",V);window.postMessage(V,"*")}};
EE9=function(){var v=v===void 0?3E3:v;var Q=VGr({onMessage:function(){}}),V=[];
return{onSpanEnd:function(E){E.parentId==null&&V.push(E)===1&&setTimeout(function(){var b=[].concat(_.ui(V));V.length=0;Q("spansReported",{spans:b})},v)}}};
bGh=function(v){v=v===void 0?400:v;var Q=[],V=[];return{start:function(){return EYt({checkoutEveryNth:v,emit:function(E,b){b&&(Q=V,V=[]);V.push(E)}})},
getRecording:function(){return[].concat(_.ui(Q),_.ui(V))}}};
iGo=function(){(new FW9({sessionReplayEvents:_.T_("web_tracing_session_replay",0)})).subscribe(function(v){if(v.sessionReplayEvents>0)try{var Q=bGh(v.sessionReplayEvents);Q.start();if(_.Y("web_tracing_session_replay_demo")){var V=console.log;window.exportSessionReplay=function(){var E=JSON.stringify(Q.getRecording(),null,2);E=KWZ(new Blob([E],{type:"text/plain"}));var b=document.createElement("a");b.download="session_replay.json";b.dataset.downloadurl=["application/json",b.download,b.href].join(":");
b.style.display="none";b.href=E;b.click();URL.revokeObjectURL(E);V("View replay at go/yt-session-replay-viewer")}}}catch(E){_.Iy(Error("vj"))}})};
tGE=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var v=window.performance.getEntriesByType("navigation");if(v.length>0){var Q=v[0],V=window.performance.timeOrigin;OHB("pageLoad",{navigationType:LWQ(Q.type),unloadEventStart:Math.round(Q.unloadEventStart),unloadEventEnd:Math.round(Q.unloadEventEnd),domInteractive:Math.round(Q.domInteractive),domContentLoadedEventStart:Math.round(Q.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(Q.domContentLoadedEventEnd),
domComplete:Math.round(Q.domComplete),loadEventStart:Math.round(Q.loadEventStart),loadEventEnd:Math.round(Q.loadEventEnd),redirectCount:Q.redirectCount},{active:!1,startTime:V+Q.startTime,endTime:V+Q.loadEventEnd})}}catch(E){}})};
LWQ=function(v){switch(v){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
dBr=function(){for(var v=pQo.value,Q={},V=_.L(v.enabledSpansArray),E=V.next();!E.done;E=V.next())Q[E.value]=!0;YOb({sessionId:bVm(),enabledSpans:Q,shouldSampleFn:function(b,F,t){if(eUZ){var p;return b==="shortToShort"||(t==null?void 0:(p=t.rootSpan())==null?void 0:p.name)==="shortToShort"}return!0}});
RYB();cLm("pageLoad")&&tGE();v.exportToCsi&&yLt(ZG9);v.exportToDevTools&&yLt(EE9());v.maxBreadcrumbs>0&&HK3({eventsToIgnore:PsT,bufferSize:v.maxBreadcrumbs})};
hUm=function(v){return new Promise(function(Q){window.setTimeout(Q,v)})};
wQG=function(v){var Q={bicf:function(F){v.rdf=F},
blc:function(){return v.getLatestChallengeResponse()},
bcr:function(F){v.bTp.push(F)}},V=window;
V.ntpevasrs=Q;if(V.ntpqfbel!==void 0)for(var E=_.L(V.ntpqfbel),b=E.next();!b.done;b=E.next())b=b.value,b(Q);V.ntpqfbel=void 0};
AzS=function(v){return _.e(function(Q){if(Q.nextAddress==1)return _.GC(Q,2),Q.yield(v.dtv(),4);if(Q.nextAddress!=2)return _.FT(Q,0);_.n$(Q);_.q1(Q)})};
kFB=function(v){var Q,V;(Q=v.ytcsi)==null||(V=Q.tick)==null||V.call(Q,"pot_ist")};
TQT=function(v){if(v instanceof Error){var Q=_.Q9("yt.logging.errors.log");Q&&Q(v,"WARNING")}};
YD9=function(v){try{var Q=JSON.parse(v);if(Q.bgChallenge)return Q}catch(V){}};
czb=function(){var v=window,Q={networkStatusManagerPromise:_.ht().resolve(new Uom(_.bS)),initialChallengeSli:_.Y("wpo_att_sli")?new _.fbB("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};v=v===void 0?window:v;var V=v.ytAtR,E;Q==null||(E=Q.initialChallengeSli)==null||_.Fu(E);if(V){if(V=YD9(V)){var b;Q==null||(b=Q.initialChallengeSli)==null||_.Kq(b,"SUCCESS");yz0(V,Q)}v.ytAtR=void 0}else v.ytAtRC=function(F){if(F=YD9(F)){var t;Q==null||(t=Q.initialChallengeSli)==null||
_.Kq(t,"SUCCESS");yz0(F,Q);v.ytAtRC=void 0}}};
Csh=function(){if(fBZ)return fBZ;try{var v=_.RD("IFRAME");_.vc(v,_.Ad(GFh));v.sandbox.add("allow-same-origin");v.style.display="none";document.body.appendChild(v);return fBZ=v}catch(Q){v=new _.xd("Failed to create sandbox iframe"),_.ro(v)}};
MGS=function(v){var Q,V;return(V=v==null?void 0:(Q=v.contentWindow)==null?void 0:Q.fetch)!=null?V:window.fetch};
OGb=function(v){var Q,V;return(V=v==null?void 0:(Q=v.contentWindow)==null?void 0:Q.Request)!=null?V:window.Request};
DBm=function(v){var Q,V;return(V=v==null?void 0:(Q=v.contentWindow)==null?void 0:Q.TextDecoder)!=null?V:window.TextDecoder};
RU3=function(){return function(v,Q){_.r7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[v]=Q}};
nEB=function(){return function(v,Q){var V={};V[v]=Q;v=_.v5(_.JBE)(V);Object.keys(v).length>0&&_.ft(v)}};
SDS=function(){if(ixG()==="hidden")var v="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ixG()==="visible"&&(v="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",lBG=null);v&&qDS(v)};
qDS=function(v){if(v==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||v==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(zUr===v)return;zUr=v}var Q=9E4+Math.random()*2E3;if(v!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.kh()>Q)&&ixG()==="visible"){Q=-1;lBG&&(Q=Math.round((0,_.wO)()-lBG));var V=String;var E=_.Q9("_fact",window);E=E==null||E==-1?-1:Math.max(Date.now()-E,0);_.X0("foregroundHeartbeat",{firstActivityMs:V(E),clientDocumentNonce:FUo,index:String(Jzh),lastEventDeltaMs:String(Q),trigger:v});
_.Pr("_fact",-1,window);Jzh++;lBG=(0,_.wO)()}};
NQ3=function(v,Q,V,E,b,F){Q=new Uint8Array(Q);if(v.length===0)return Q;var t=0;b=b!=null?b:v.length-1;for(var p=V;p<=b;p++){var Z=v[p],d=p===V?E:0,w=void 0,A=p===b?(w=F)!=null?w:Z.length:Z.length;Z=Z.subarray(d,A);Q.set(Z,t);t+=Z.length}return Q};
_.xBr=function(){try{return!!self.sessionStorage}catch(v){return!1}};
BQB=function(){var v=navigator;return new Promise(function(Q,V){var E;(E=v.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?v.webkitTemporaryStorage.queryUsageAndQuota(function(b,F){Q({usage:b,quota:F})},function(b){V(b)}):V(Error("Ej"))})};
gEB=function(v,Q){var V={errorSeverity:Q.errorSeverity.toString(),wizFeatureFlags:Object.entries(Q.featureFlags).join("\n")};Jso(Q,V);Q=Q.errorSeverity;Q===3?_.ro(v,"ERROR",void 0,void 0,void 0,V):Q===2&&_.ro(v,"WARNING",void 0,void 0,void 0,V);_.Y("cow_if_errors_in_popup")&&Q===3&&v.message.indexOf("<If>")!==-1&&window.alert(v.message)};
sQT=function(v,Q){var V=o$.get(v)||{layerNode:Q};V.layerNode=Q;TJ0(v,V);v.getScreenLayer=function(){return iJ(V.layerNode)}};
uch=function(v){var Q;v=v.parentNode;for(var V;v&&((Q=o$.get(v))==null||!Q.isRenderer)&&!((V=v.polymerController)!=null?V:v).isRenderer_;)v=v.parentNode||v.host;if(Q=v)return o$.get(Q)};
jQ0=function(v){if(v){o$.delete(v);var Q=_.ht().resolve(Aq);DW0(v,Q)}};
oE3=function(v,Q,V){if(V===void 0?0:V){if(V=v.getAttribute("client-ve-type"),Q.data&&!Q.disableReactiveLogging||V)_.sX(function(){WWG(v,_.or(Q.data))},"xg"),_.j_(function(){return void jQ0(v)})}else typeof Q.data!=="function"&&WWG(v,Q.data)};
WWG=function(v,Q){XQb++;aBS(v,Q)&&_.XT.addJob(function(){_.Lq(_.XT,function(){if(aBS(v,Q)&&v.ownerDocument.documentElement===document.documentElement&&v){var V;if(v.getAttribute("layer")){var E=V=Number(v.getAttribute("layer")),b=o$.get(v);b?b.layerNode.layer=E:sQT(v,new rzB(E));(E=uch(v))&&(b=o$.get(v))!=null&&(b.layerNode.parent=E.layerNode)}else if(V=o$.get(v))V=iJ(V.layerNode);else{V=iJ;E=new rzB;if(b=uch(v))E.parent=b.layerNode;sQT(v,E);V=V(E)}V!=null||(V=0);E=v.getAttribute("client-ve-type");
b=Number(E);var F=!1;E=!1;var t=o$.get(v),p;if((p=t)&&!(p=t[$B3]!==Q)&&(p=b)){var Z;p=((Z=o$.get(v))==null?void 0:Z.clientVeType)===void 0}p&&(t[$B3]=Q,F=E=t.isRenderer=!0);o$.has(v)&&(o$.get(v).clientVeType=b);v.visualElement&&(E=!0);if(_.Y("wiz_next_ld_fix_client_ve_spec")){var d;Z=((d=_.y(Q==null?void 0:Q.rendererContext,_.px))==null?void 0:d.loggingDirectives)||(Q==null?void 0:Q.loggingDirectives)}else Z=Q==null?void 0:Q.loggingDirectives;Z&&Z.clientVeSpec&&(d=IBm(_.id(),v),d=_.HGE(_.tR(),Z,d||
void 0,V))&&(v.visualElement=d);!v.visualElement&&b&&F&&(v.veType=b,d=void 0,_.Y("wiz_next_client_ve_parent_fix")&&(d=IBm(_.id(),v)),d=_.Lx(_.tR(),v,d,V),v.visualElement=d);E&&(d=_.ht().resolve(Aq),qV9(v,{data:Q,observer:d,layer:V,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
aBS=function(v,Q){return(Q==null?0:Q.trackingParams)||(Q==null?0:Q.loggingDirectives)||_.y(Q==null?void 0:Q.rendererContext,_.px)||v.getAttribute("client-ve-type")?!0:!1};
mB0=function(v,Q,V){v.componentType!==qA&&V instanceof HTMLElement&&Q&&!_.Y("cow_logging_in_component_wrapper")&&oE3(V,Q,!0)};
VoS=function(){if(!UB0){UB0=!0;var v=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.Y("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.Y("enable_wiz_context_per_component")||!1},{handleError:gEB,enableComponentStacksInErrorMessages:!1});Object.assign(ZQ,v);mvo=vBQ;QU9();EIB=muh;vI0=vAo}};
QU9=function(){_.Y("cow_logging_in_component_wrapper")?(i9b=function(v,Q){Q instanceof HTMLElement&&oE3(Q,v,!0)},sT0=function(){}):(i9b=function(){},sT0=mB0)};
EBh=function(v,Q,V){Q=Q===void 0?{}:Q;var E,b=(E=_.y(v.commandMetadata,_.Kt))==null?void 0:E.url;E=Q.form||{};!V||E.element||E.skipDefaultElement||(Q.form=Q.form||{},Q.form.element=V);if(b&&b!=="/service_ajax")return{type:0,command:v,form:Q.form};if(_.Y("kevlar_service_command_check")){if(_.NC(_.ht().resolve(_.wH),v))return Object.assign({},{type:1,command:v},Q)}else{var F;if((F=_.y(v.commandMetadata,_.Kt))==null?0:F.apiUrl)return Object.assign({},{type:1,command:v},Q)}return{type:2,command:v,form:Q.form}};
b80=function(v){if(v.form){var Q=v.form,V=Object.assign({},Q);Q=Q.element;V=(delete V.element,V);if(Q)return[_.vp(Q,[v.command,V,v.commandController])]}return[]};
FD0=function(v){if(v.form){var Q=v.form,V=Object.assign({},Q);Q=Q.element;V=(delete V.element,V);Q&&_.Qk(Q,[v.command],Q,V)}};
i8Z=function(v,Q,V){var E=new KDt(v,Q),b=new t_(v,Q,V);v={"/youtubei/v1/browse":new pq(v,Q,V),"/youtubei/v1/player":E,"/youtubei/v1/navigation/resolve_url":new et,"/youtubei/v1/next":b,"/youtubei/v1/guide":new Zo(V),"/youtubei/v1/search":new PZ(v,Q,V),"/youtubei/v1/reel/reel_item_watch":new d3(v,Q,V),"/youtubei/v1/get_watch":new h_(E,b)};v["/youtubei/v1/account/account_menu"]=new w3;v["/youtubei/v1/notification/get_notification_menu"]=new A_;return v};
Tn=function(){var v=_.ht().resolve(_.kG);return Promise.resolve(LD9(v,_.bb.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
to9=function(v){return v&&(v=_.YG(_.Z33(v)))?(new URLSearchParams(v)).get("service"):null};
fq=function(v,Q){_.md(_.yX(),function(){_.Mp("adl")});
_.ht().resolve(pfh)(Q);v=v.root;v.loadData&&v.loadData(Q);(Q==null?0:Q.response)?_.Kq(MXS(),"SUCCESS"):_.Iy(new _.xd("Lifecycle: No response in data",_.mX("IS_SHELL_LOAD"),Q?Q.page:"NO_PAGE",Q?Q.endpoint:"NO_ENDPOINT"));v.polymerController.$["page-manager"].lazyPrepareCriticalPages((Q==null?void 0:Q.page)||"",Q.endpoint);var V,E;((E=_.y(Q==null?void 0:(V=Q.endpoint)==null?void 0:V.commandMetadata,_.Kt))==null?0:E.webPageType)&&_.oF().dispatch(_.cZ(_.y(Q.endpoint.commandMetadata,_.Kt).webPageType))};
eZE=function(){var v,Q;return _.e(function(V){switch(V.nextAddress){case 1:v=window;if(!v.getDataPromise){V.jumpTo(2);break}_.GC(V,3);return V.yield(v.getDataPromise(),5);case 5:return V.return(V.yieldResult);case 3:return _.n$(V),V.yield(Tn(),6);case 6:return V.return(V.yieldResult);case 2:if(v.getInitialData)return Q=v.getInitialData(),v.getInitialData=void 0,V.return(Q);throw Error("Gj`"+_.bb.location.href);}})};
Pnt=function(){_.aS("CSI_SERVICE_NAME","youtube");_.ft({loadType:"cold"});_.Y("kevlar_log_lcp")&&Z8t(function(v){_.Mp("lcp",v.value)})};
dUG=function(){var v=_.me(document.location.href,"enable");v&&v.indexOf("scraper")>-1&&_.aS("ADD_SCRAPER_ATTRIBUTES",!0)};
T6t=function(v){var Q=v.root;v=[hZG,wfQ,_.Gn];_.Y("web_feedback_endpoint_autolog_allowlist_killswitch")&&v.push(_.Cq,Apo);kfB(function(V,E){return EBh(V,E,Q)},function(V){if(!V.command)return[];
var E;((E=V.form)==null?0:E.element)?V.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},V.form,{endpoint:V.command})})):Q.handleNavigate(V);return[]},v);
_.ht().addProvider({provide:_.At,useValue:_.bd.instance})};
yp0=function(){var v={},Q={},V;for(V in YlB){var E=_.L(_.Ge(YlB[V],void 0,"IAtZ7"));v[V]=E.next().value;Q[V]=E.next().value}return[v,function(b){for(var F in b){var t=void 0;(t=Q[F])==null||t(b[F])}}]};
_.M3=function(v,Q,V){Q=Q===void 0?!1:Q;var E=_.gI.getValueByKeys(v,"contents","twoColumnWatchNextResults","results","results","contents"),b=_.gI.getValueByKeys(v,"contents","twoColumnWatchNextResults","playlist","playlist")||null;Q&&(b=null);var F=Q=null;if(b)Q=_.gI.getValueByKeys(b,"titleText"),F=_.gI.unsafeClone(_.gI.getValueByKeys(b,"longBylineText")),E="",F&&(E=_.j0(F)),F=_.u3(E);else if(E){E=_.L(E);for(var t=E.next();!t.done;t=E.next())t=t.value,t.videoPrimaryInfoRenderer&&(Q=_.gI.getValueByKeys.apply(_.gI,
[t].concat(_.ui(cpE)))),t.videoSecondaryInfoRenderer&&(F=_.gI.getValueByKeys.apply(_.gI,[t].concat(_.ui(fAE))))}else _.V9(Error("Lj"));var p;v.currentVideoEndpoint?p=v.currentVideoEndpoint:_.V9(Error("Mj"));var Z;V&&(Z=_.gI.getValueByKeys(V,"playabilityStatus","miniplayer","miniplayerRenderer"));v={miniplayerTitle:Q,miniplayerSubtitle:F,watchEndpoint:p,playlistData:b};Z&&(v.miniplayerRenderer=Z);return v};
GfZ=function(v){if(v)return _.cg(v)};
_.Cnm=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
MoT=function(v){return v.videoDuration?v.numTaps>1&&v.tapDirection!==0?_.O$(v.draggedTime/v.videoDuration,0,1):_.O$((v.playedTime||0)/v.videoDuration,0,1):0};
O8T=function(v){return v.videoDuration?v.isDragging||v.numTaps>1&&v.tapDirection!==0?_.O$(v.draggedTime/v.videoDuration,0,1):_.O$((v.playedTime||0)/v.videoDuration,0,1):0};
RZr=function(v){var Q,V,E;return _.y(v==null?void 0:(Q=v.markersMap)==null?void 0:(V=Q.find(function(b){return b.key==="HEATSEEKER"}))==null?void 0:(E=V.value)==null?void 0:E.heatmap,DU3)};
nBh=function(v){var Q,V;return(V=(Q=RZr(v))==null?void 0:Q.heatMarkersDecorations)!=null?V:[]};
lAE=function(v){if(_.Y("mweb_supported_chapters_killswitch"))return!0;var Q;return!!(v==null?0:(Q=v.markersMap)==null?0:Q.find(function(V){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(V.key)}))};
_.qlr=function(v){var Q=Object,V=Q.assign,E;v={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(E=v==null?void 0:v.getPlayerState())!=null?E:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return V.call(Q,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},v,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
SlT=function(v){return function(Q){var V=v(),E,b=(E=V.playerApi)==null?void 0:E.getPlayerState();Q&&Q!==V.playerState&&(Q===1||Q===2)&&V.setState({playerState:b})}};
JpZ=function(v){return function(Q){var V=v(),E=V.playerApi;E&&(Q==null?void 0:Q.type)==="newdata"&&(zZo&&(clearTimeout(zZo),zZo=void 0),_.Y("web_shorts_use_progress_state_for_gapless")?(Q=E==null?void 0:E.getProgressState(Q==null?void 0:Q.playertype),Q=Q.seekableEnd-Q.seekableStart):Q=E==null?void 0:E.getDuration(Q==null?void 0:Q.playertype),V.setState({playedTime:0,videoDuration:Q}))}};
N6B=function(v){return function(Q){var V=v(),E=V.playerApi;if(E){var b=E.getPresentingPlayerType();_.Y("web_shorts_use_progress_state_for_gapless")?(E=E.getProgressState(b),E=E.seekableEnd-E.seekableStart):E=E.getDuration(b);V.setState({playedTime:Q,videoDuration:E})}}};
B6r=function(v){_.Tz(112394,v,function(){return xUo},function(Q){xUo=Q})};
ujb=function(v,Q){if(!v)return[];var V,E,b;v=((V=v.markersMap)==null?void 0:(E=V.find(function(F){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(F.key)}))==null?void 0:(b=E.value)==null?void 0:b.chapters)||[];
!gBG(v)||(Q==null?0:Q.ignoreStub)||(v=[sUS()].concat(_.ui(v)));return v};
sUS=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
gBG=function(v){if(v.length===0)return!1;var Q;return((Q=_.y(v[0],Do))==null?void 0:Q.timeRangeStartMillis)!==0};
RC=function(v){return v?v.timeRangeStartMillis||0:0};
WDh=function(v,Q){if(v.isDragging&&Q)return v=jUZ(v,Q),v===-1?sUS():ujb(Q)[v]};
jUZ=function(v,Q){return v.isDragging&&Q?ujb(Q,{ignoreStub:!0}).findIndex(function(V,E,b){V=oBG(v);return XfS(V,b,E).scrubberHovering}):-1};
oBG=function(v){return Object.assign({},v,{videoDuration:v.videoDuration*1E3,playedTime:v.playedTime*1E3,draggedTime:v.draggedTime*1E3})};
XfS=function(v,Q,V){var E=RC(_.y(Q[V],Do));Q=RC(_.y(Q[V+1],Do))||v.videoDuration;V=v.isDragging;var b;if(b=v.isDragging)b=v.draggedTime,b=b!==null&&b>=E&&b<Q;var F=v.playedTime;return F!==null&&F>=E&&F<Q?{videoPosition:"active",isScrubbing:V,scrubberHovering:b}:v.playedTime<E?{videoPosition:"pending",isScrubbing:V,scrubberHovering:b}:{videoPosition:"seen",isScrubbing:V,scrubberHovering:b}};
aAB=function(v,Q){return v.videoPosition==="seen"||(Q===void 0?0:Q)>0};
rpE=function(v,Q,V){Q=v/Q.storyboardInterval;var E=ujb(V);if(!E.length)return-Q*72;V=0;E=_.L(E);for(var b=E.next();!b.done;b=E.next())if(RC(_.y(b.value,Do))/1E3<v)V++;else break;return-(Q*72)-V*56};
$UT=function(v){return v?v.width/v.columns:0};
IAr=function(v){return v.isHovering?v.hoveredTime:v.draggedTime};
H8G=function(v,Q){v=v.draggedTime*1E3;return v>=Q.visibleTimeRangeStartMillis&&v<=Q.visibleTimeRangeEndMillis};
_.mUB=function(v){if(v===void 0||Number.isNaN(v))return"--:--";var Q=Math.abs(Math.floor(v)),V=Math.floor(Q/86400),E=Math.floor(Q%86400/3600),b=Math.floor(Q%3600/60);Q=Math.floor(Q%60);var F="";V>0&&(F+=V+":",E<10&&(F+="0"));if(V>0||E>0)F+=E+":",b<10&&(F+="0");F+=b+":";Q<10&&(F+="0");F+=Q;return v>=0?F:"-"+F};
UU0=function(v,Q){return function(){var V=IAr(v());var E=Q();var b=v().playerApi;if(b&&b.getNumberOfStoryboardLevels()!==0){var F=b.getStoryboardFrameIndex(V,1);F!==-1?E=b.getStoryboardFrame(F,1):(V=b.getStoryboardFrameIndex(V,0),b=b.getStoryboardFrame(V,0),E&&b&&(b.height*=3,b.width*=3),E=b)}else E=null;if(!E)return null;Q()&&(E.width=90*E.columns,E.height=160*E.rows);return E}};
_.nq=function(v){if(!v||v.getVideoData)return v};
vem=function(){var v;return{playerApi:(v=_.FS())!=null?v:void 0}};
Qzt=function(v){var Q;_.e(function(V){if(V.nextAddress==1)return V.yield(_.Eu(),2);if(Q=V.yieldResult)Q.unMute(!0),Q.setVolume(v,!0);_.q1(V)})};
Vab=function(v,Q){v&&(v.value=""+Q,v.style.setProperty("--gradient-percent",Q+"%"))};
Ee3=function(v){var Q;return(Q=v==null?void 0:v.value)!=null?Q:0};
bSS=function(){var v;_.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.Eu(),2);v=Q.yieldResult;if(!v)return Q.return();v.isMuted()?v.unMute(!0):v.mute(!0);_.q1(Q)})};
FmS=function(v){var Q=_.ht().resolve(_.lJ).getPlayerElement();Q&&v&&(v===1?Q.pause():Q.play())};
Kmt=function(v){_.Un(v,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
iS3=function(v){_.Un(v,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
tah=function(v){return _.si(v.document.body,function(){return _.P(LmT,null)},"kh")};
pzr=function(){var v;return(v=navigator.userActivation)==null?void 0:v.isActive};
eso=function(){var v=window.performance.getEntriesByType("navigation");return v?v.map(function(Q){return Q.type}).includes("reload"):!1};
Tp0=function(){q3(q3(q3(q3(q3(q3(q3(_.ht().resolve(_.St),_.ZS0),_.PZr),_.d4r),_.hsB),_.wzG),_.AiG),_.kNo)};
Y8Q=function(v,Q){Q=Q===void 0?!1:Q;var V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return Q||!_.Y("kevlar_shorts_seedless_retry_initial_load")||(V=window,E=!(!V.getDataPromise&&!V.getInitialData),E)?t.yield(eZE(),2):(setTimeout(Y8Q.bind(window,v,!0),1E3),t.return());if(t.nextAddress!=3)return b=t.yieldResult,t.yield(yiE(b),3);F=t.yieldResult;fq(v,F);_.q1(t)})};
yiE=function(v){var Q;if((Q=v.response)==null||!Q.replacementEndpoint)return _.Vk(v);Q=_.ht().resolve(_.kG);v=v.response;_.y(v.replacementEndpoint,_.PH)&&v.sequenceContinuation&&(_.y(v.replacementEndpoint,_.PH).sequenceParams=v.sequenceContinuation);return zn(Q,v.replacementEndpoint,{},_.bb.location.href,"shorts",function(){},function(){return!1})};
fjr=function(v){var Q=_.ht().resolve(ciZ);v.playerResponse&&Q.handleResponse(v.playerResponse);v.response&&Q.handleResponse(v.response)};
GNr=function(v){var Q=_.oF(),V,E=_.y((V=v.response)==null?void 0:V.frameworkUpdates,gS),b;V=_.y((b=v.playerResponse)==null?void 0:b.frameworkUpdates,gS);var F;v=_.y((F=v.reelWatchSequenceResponse)==null?void 0:F.frameworkUpdates,gS);E&&_.p7(E,Q);V&&_.p7(V,Q);v&&_.p7(v,Q)};
CZr=function(v){var Q;_.Y("enable_redirect_linking_for_desktop_web_client")&&((Q=window.location.hash)==null?0:Q.includes("redirect_state"))&&v.url&&(v.url=v.url.toString()+window.location.hash)};
D43=function(v){var Q=_.ht(),V=Q.resolve(_.kG);Q=Q.resolve(_.MaB);v.endpoint&&(V=OSB(V,v.endpoint),V.content&&v.response&&_.J_(Q,v.response,V.content),V.player&&v.playerResponse&&_.J_(Q,v.playerResponse,V.player),V.reelSequence&&v.reelWatchSequenceResponse&&_.J_(Q,v.reelWatchSequenceResponse,V.reelSequence))};
N3=function(v,Q){fjr(Q);GNr(Q);var V;(Q==null?0:Q.url)&&((V=window.location.hash)==null?0:V.includes("redirect_state"))&&(CZr(Q),(V=to9(Q.url))&&_.mb(v.root,"yt-initialize-third-party",[V,Q]));D43(Q);V=_.ht();var E=V.resolve(Rsb);Q.playerResponse&&V.resolve(neS).handleResponse(Q.playerResponse);if(Q.playerResponse){V=void 0;if(_.Y("ab_v_vid_sig")&&Q.endpoint){var b,F=(b=_.y(Q.endpoint,_.sn))!=null?b:_.y(Q.endpoint,_.PH);F&&(V=F.videoId)}ljr(E,Q.playerResponse,V)}Q.playerResponse&&HP0(Q.playerResponse)&&
_.Y("web_enable_ab_rsp_cl")?xiT().then(function(){q8h(E,Q.playerResponse);fq(v,Q)}):fq(v,Q)};
zst=function(v){if(v=v.root.data){var Q=_.ht().resolve(S8m);v.endpoint&&(v.response&&Q.handleResponse(v.response,void 0,document.querySelector("ytd-app")),v.playerResponse&&Q.handleResponse(v.playerResponse),v.reelWatchSequenceResponse&&Q.handleResponse(v.reelWatchSequenceResponse))}};
Ji9=function(v){var Q,V,E,b,F,t;return _.e(function(p){switch(p.nextAddress){case 1:Q=window;if(!Q.getDataPromise){p.jumpTo(2);break}_.GC(p,3);return p.yield(Q.getDataPromise(),5);case 5:V=p.yieldResult;N3(v,V);_.FT(p,4);break;case 3:return _.n$(p),p.yield(Tn(),6);case 6:E=p.yieldResult,fq(v,E);case 4:return p.return();case 2:if(!_.Y("sw_nav_preload_pbj")){p.jumpTo(7);break}Q.fetchInitialData=function(){var Z;return _.e(function(d){if(d.nextAddress==1)return d.yield(Tn(),2);Z=d.yieldResult;fq(v,Z);
_.q1(d)})};
if(Q.getInitialData){Q.loadInitialData=function(Z){N3(v,Z)};
b=Q.getInitialData();Q.getInitialData=void 0;N3(v,b);p.jumpTo(8);break}Q.fetchInitialData=void 0;return p.yield(Tn(),9);case 9:F=p.yieldResult,fq(v,F);case 8:return p.return();case 7:Q.getInitialData?(t=Q.getInitialData(),Q.getInitialData=void 0,N3(v,t)):Q.loadInitialData=function(Z){N3(v,Z)},_.q1(p)}})};
x4o=function(){var v=new Npo;_.$Yo(v);v.registerInitializationCallback(function(){brT(void 0,void 0,void 0,_.Y("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
v.registerCallback("error",function(Q,V,E){_.Ui(Error("Wj`"+V+"`"+E))})};
BpE=typeof Object.create=="function"?Object.create:function(v){var Q=function(){};
Q.prototype=v;return new Q};
ger=typeof Object.defineProperties=="function"?Object.defineProperty:function(v,Q,V){if(v==Array.prototype||v==Object.prototype)return v;v[Q]=V.value;return v};
szS=function(v){v=["object"==typeof globalThis&&globalThis,v,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Q=0;Q<v.length;++Q){var V=v[Q];if(V&&V.Math==Math)return V}throw Error("a");};
_.hr=szS(this);uM9="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.hr.BigInt64Array&&(uM9.push("BigInt64"),uM9.push("BigUint64"));var WmS=function(v,Q){if(Q)for(var V=0;V<uM9.length;V++)jz9(uM9[V]+"Array.prototype."+v,Q)},xG=function(v,Q){Q&&jz9(v,Q)},jz9=function(v,Q){var V=_.hr;
v=v.split(".");for(var E=0;E<v.length-1;E++){var b=v[E];if(!(b in V))return;V=V[b]}v=v[v.length-1];E=V[v];Q=Q(E);Q!=E&&Q!=null&&ger(V,v,{configurable:!0,writable:!0,value:Q})},oeE=function(){function v(){function V(){}
new V;Reflect.construct(V,[],function(){});
return new V instanceof V}
if(typeof Reflect!="undefined"&&Reflect.construct){if(v())return Reflect.construct;var Q=Reflect.construct;return function(V,E,b){V=Q(V,E);b&&Reflect.setPrototypeOf(V,b.prototype);return V}}return function(V,E,b){b===void 0&&(b=V);
b=BpE(b.prototype||Object.prototype);return Function.prototype.apply.call(V,b,E)||b}}(),Xzr;
if(typeof Object.setPrototypeOf=="function")Xzr=Object.setPrototypeOf;else{var ajT;a:{var ri0={a:!0},$4m={};try{$4m.__proto__=ri0;ajT=$4m.a;break a}catch(v){}ajT=!1}Xzr=ajT?function(v,Q){v.__proto__=Q;if(v.__proto__!==Q)throw new TypeError("b`"+v);return v}:null}BZ=Xzr;
_.f=function(v,Q){v.prototype=BpE(Q.prototype);v.prototype.constructor=v;if(BZ)BZ(v,Q);else for(var V in Q)if(V!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(Q,V);E&&Object.defineProperty(v,V,E)}else v[V]=Q[V];v.superClass_=Q.prototype};
Ij3=function(v){var Q=0;return function(){return Q<v.length?{done:!1,value:v[Q++]}:{done:!0}}};
_.L=function(v){var Q=typeof Symbol!="undefined"&&Symbol.iterator&&v[Symbol.iterator];if(Q)return Q.call(v);if(typeof v.length=="number")return{next:Ij3(v)};throw Error("c`"+String(v));};
Fb=function(v){for(var Q,V=[];!(Q=v.next()).done;)V.push(Q.value);return V};
_.ui=function(v){return v instanceof Array?v:Fb(_.L(v))};
_.s$=function(v){return g3(v,v)};
g3=function(v,Q){v.raw=Q;Object.freeze&&(Object.freeze(v),Object.freeze(Q));return v};
uJ=function(v,Q){return Object.prototype.hasOwnProperty.call(v,Q)};
HSh=function(v){if(v==null)throw new TypeError("d");return Object(v)};
m49=typeof Object.assign=="function"?Object.assign:function(v,Q){v=HSh(v);for(var V=1;V<arguments.length;V++){var E=arguments[V];if(E)for(var b in E)uJ(E,b)&&(v[b]=E[b])}return v};
xG("Object.assign",function(v){return v||m49});
var jt=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},U4b=function(v){if(v.isRunning_)throw new TypeError("f");
v.isRunning_=!0};
jt.prototype.JSC$8796_next_=function(v){this.yieldResult=v};
var vQN=function(v,Q){v.abruptCompletion_={exception:Q,isException:!0};v.nextAddress=v.catchAddress_||v.finallyAddress_};
jt.prototype.return=function(v){this.abruptCompletion_={return:v};this.nextAddress=this.finallyAddress_};
jt.prototype.yield=function(v,Q){this.nextAddress=Q;return{value:v}};
jt.prototype.jumpTo=function(v){this.nextAddress=v};
_.q1=function(v){v.nextAddress=0};
_.GC=function(v,Q,V){v.catchAddress_=Q;V!=void 0&&(v.finallyAddress_=V)};
_.DV=function(v,Q){v.catchAddress_=0;v.finallyAddress_=Q||0};
_.FT=function(v,Q,V){v.nextAddress=Q;v.catchAddress_=V||0};
_.n$=function(v,Q){v.catchAddress_=Q||0;Q=v.abruptCompletion_.exception;v.abruptCompletion_=null;return Q};
_.O_=function(v,Q,V,E){E?v.finallyContexts_[E]=v.abruptCompletion_:v.finallyContexts_=[v.abruptCompletion_];v.catchAddress_=Q||0;v.finallyAddress_=V||0};
_.Ra=function(v,Q,V){V=v.finallyContexts_.splice(V||0)[0];(V=v.abruptCompletion_=v.abruptCompletion_||V)?V.isException?v.nextAddress=v.catchAddress_||v.finallyAddress_:V.jumpTo!=void 0&&v.finallyAddress_<V.jumpTo?(v.nextAddress=V.jumpTo,v.abruptCompletion_=null):v.nextAddress=v.finallyAddress_:v.nextAddress=Q};
QhR=function(v){this.JSC$8801_context_=new jt;this.program_=v};
EQQ=function(v,Q){U4b(v.JSC$8801_context_);var V=v.JSC$8801_context_.yieldAllIterator_;if(V)return VZS(v,"return"in V?V["return"]:function(E){return{value:E,done:!0}},Q,v.JSC$8801_context_.return);
v.JSC$8801_context_.return(Q);return WZ(v)};
VZS=function(v,Q,V,E){try{var b=Q.call(v.JSC$8801_context_.yieldAllIterator_,V);if(!(b instanceof Object))throw new TypeError("e`"+b);if(!b.done)return v.JSC$8801_context_.isRunning_=!1,b;var F=b.value}catch(t){return v.JSC$8801_context_.yieldAllIterator_=null,vQN(v.JSC$8801_context_,t),WZ(v)}v.JSC$8801_context_.yieldAllIterator_=null;E.call(v.JSC$8801_context_,F);return WZ(v)};
WZ=function(v){for(;v.JSC$8801_context_.nextAddress;)try{var Q=v.program_(v.JSC$8801_context_);if(Q)return v.JSC$8801_context_.isRunning_=!1,{value:Q.value,done:!1}}catch(V){v.JSC$8801_context_.yieldResult=void 0,vQN(v.JSC$8801_context_,V)}v.JSC$8801_context_.isRunning_=!1;if(v.JSC$8801_context_.abruptCompletion_){Q=v.JSC$8801_context_.abruptCompletion_;v.JSC$8801_context_.abruptCompletion_=null;if(Q.isException)throw Q.exception;return{value:Q.return,done:!0}}return{value:void 0,done:!0}};
bEX=function(v){this.next=function(Q){U4b(v.JSC$8801_context_);v.JSC$8801_context_.yieldAllIterator_?Q=VZS(v,v.JSC$8801_context_.yieldAllIterator_.next,Q,v.JSC$8801_context_.JSC$8796_next_):(v.JSC$8801_context_.JSC$8796_next_(Q),Q=WZ(v));return Q};
this.throw=function(Q){U4b(v.JSC$8801_context_);v.JSC$8801_context_.yieldAllIterator_?Q=VZS(v,v.JSC$8801_context_.yieldAllIterator_["throw"],Q,v.JSC$8801_context_.JSC$8796_next_):(vQN(v.JSC$8801_context_,Q),Q=WZ(v));return Q};
this.return=function(Q){return EQQ(v,Q)};
this[Symbol.iterator]=function(){return this}};
_.E$=function(v,Q){Q=new bEX(new QhR(Q));BZ&&v.prototype&&BZ(Q,v.prototype);return Q};
FSa=function(v){function Q(E){return v.next(E)}
function V(E){return v.throw(E)}
return new Promise(function(E,b){function F(t){t.done?E(t.value):Promise.resolve(t.value).then(Q,V).then(F,b)}
F(v.next())})};
_.e=function(v){return FSa(new bEX(new QhR(v)))};
xG("Symbol",function(v){if(v)return v;var Q=function(F,t){this.$jscomp$symbol$id_=F;ger(this,"description",{configurable:!0,writable:!0,value:t})};
Q.prototype.toString=function(){return this.$jscomp$symbol$id_};
var V="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",E=0,b=function(F){if(this instanceof b)throw new TypeError("g");return new Q(V+(F||"")+"_"+E++,F)};
return b});
xG("Symbol.iterator",function(v){if(v)return v;v=Symbol("h");ger(Array.prototype,v,{configurable:!0,writable:!0,value:function(){return KSX(Ij3(this))}});
return v});
xG("Symbol.asyncIterator",function(v){return v?v:Symbol("i")});
KSX=function(v){v={next:v};v[Symbol.iterator]=function(){return this};
return v};
_.M1=function(v){var Q=v[Symbol.asyncIterator];return Q!==void 0?Q.call(v):new iEN(_.L(v))};
iEN=function(v){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return v};
this.next=function(Q){return Promise.resolve(v.next(Q))};
this["throw"]=function(Q){return new Promise(function(V,E){var b=v["throw"];b!==void 0?V(b.call(v,Q)):(V=v["return"],V!==void 0&&V.call(v),E(new TypeError("j")))})};
v["return"]!==void 0&&(this["return"]=function(Q){return Promise.resolve(v["return"](Q))})};
_.aE=function(){for(var v=Number(this),Q=[],V=v;V<arguments.length;V++)Q[V-v]=arguments[V];return Q};
_.bJ=function(v){return v};
xG("globalThis",function(v){return v||_.hr});
xG("Reflect",function(v){return v?v:{}});
xG("Reflect.construct",function(){return oeE});
xG("Reflect.setPrototypeOf",function(v){return v?v:BZ?function(Q,V){try{return BZ(Q,V),!0}catch(E){return!1}}:null});
xG("Promise",function(v){function Q(){this.batch_=null}
function V(t){return t instanceof b?t:new b(function(p){p(t)})}
if(v&&(typeof _.hr.PromiseRejectionEvent!=="undefined"||!_.hr.Promise||_.hr.Promise.toString().indexOf("[native code]")===-1))return v;Q.prototype.asyncExecute=function(t){if(this.batch_==null){this.batch_=[];var p=this;this.asyncExecuteFunction(function(){p.executeBatch_()})}this.batch_.push(t)};
var E=_.hr.setTimeout;Q.prototype.asyncExecuteFunction=function(t){E(t,0)};
Q.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var p=0;p<t.length;++p){var Z=t[p];t[p]=null;try{Z()}catch(d){this.asyncThrow_(d)}}}this.batch_=null};
Q.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t;})};
var b=function(t){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var p=this.createResolveAndReject_();try{t(p.resolve,p.reject)}catch(Z){p.reject(Z)}};
b.prototype.createResolveAndReject_=function(){function t(d){return function(w){Z||(Z=!0,d.call(p,w))}}
var p=this,Z=!1;return{resolve:t(this.resolveTo_),reject:t(this.JSC$8833_reject_)}};
b.prototype.resolveTo_=function(t){if(t===this)this.JSC$8833_reject_(new TypeError("n"));else if(t instanceof b)this.settleSameAsPromise_(t);else{a:switch(typeof t){case "object":var p=t!=null;break a;case "function":p=!0;break a;default:p=!1}p?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}};
b.prototype.resolveToNonPromiseObj_=function(t){var p=void 0;try{p=t.then}catch(Z){this.JSC$8833_reject_(Z);return}typeof p=="function"?this.settleSameAsThenable_(p,t):this.fulfill_(t)};
b.prototype.JSC$8833_reject_=function(t){this.settle_(2,t)};
b.prototype.fulfill_=function(t){this.settle_(1,t)};
b.prototype.settle_=function(t,p){if(this.state_!=0)throw Error("o`"+t+"`"+p+"`"+this.state_);this.state_=t;this.result_=p;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
b.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;E(function(){if(t.notifyUnhandledRejection_()){var p=_.hr.console;typeof p!=="undefined"&&p.error(t.result_)}},1)};
b.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var t=_.hr.CustomEvent,p=_.hr.Event,Z=_.hr.dispatchEvent;if(typeof Z==="undefined")return!0;typeof t==="function"?t=new t("unhandledrejection",{cancelable:!0}):typeof p==="function"?t=new p("unhandledrejection",{cancelable:!0}):(t=_.hr.document.createEvent("CustomEvent"),t.initCustomEvent("unhandledrejection",!1,!0,t));t.promise=this;t.reason=this.result_;return Z(t)};
b.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var t=0;t<this.onSettledCallbacks_.length;++t)F.asyncExecute(this.onSettledCallbacks_[t]);this.onSettledCallbacks_=null}};
var F=new Q;b.prototype.settleSameAsPromise_=function(t){var p=this.createResolveAndReject_();t.callWhenSettled_(p.resolve,p.reject)};
b.prototype.settleSameAsThenable_=function(t,p){var Z=this.createResolveAndReject_();try{t.call(p,Z.resolve,Z.reject)}catch(d){Z.reject(d)}};
b.prototype.then=function(t,p){function Z(k,T){return typeof k=="function"?function(c){try{d(k(c))}catch(C){w(C)}}:T}
var d,w,A=new b(function(k,T){d=k;w=T});
this.callWhenSettled_(Z(t,d),Z(p,w));return A};
b.prototype.catch=function(t){return this.then(void 0,t)};
b.prototype.callWhenSettled_=function(t,p){function Z(){switch(d.state_){case 1:t(d.result_);break;case 2:p(d.result_);break;default:throw Error("p`"+d.state_);}}
var d=this;this.onSettledCallbacks_==null?F.asyncExecute(Z):this.onSettledCallbacks_.push(Z);this.isRejectionHandled_=!0};
b.resolve=V;b.reject=function(t){return new b(function(p,Z){Z(t)})};
b.race=function(t){return new b(function(p,Z){for(var d=_.L(t),w=d.next();!w.done;w=d.next())V(w.value).callWhenSettled_(p,Z)})};
b.all=function(t){var p=_.L(t),Z=p.next();return Z.done?V([]):new b(function(d,w){function A(c){return function(C){k[c]=C;T--;T==0&&d(k)}}
var k=[],T=0;do k.push(void 0),T++,V(Z.value).callWhenSettled_(A(k.length-1),w),Z=p.next();while(!Z.done)})};
return b});
var oC=function(v,Q,V){if(v==null)throw new TypeError("q`"+V);if(Q instanceof RegExp)throw new TypeError("r`"+V);return v+""};
xG("String.prototype.startsWith",function(v){return v?v:function(Q,V){var E=oC(this,Q,"startsWith"),b=E.length,F=Q.length;V=Math.max(0,Math.min(V|0,E.length));for(var t=0;t<F&&V<b;)if(E[V++]!=Q[t++])return!1;return t>=F}});
xG("Object.setPrototypeOf",function(v){return v||BZ});
xG("Symbol.dispose",function(v){return v?v:Symbol("s")});
xG("SuppressedError",function(v){function Q(V,E,b){if(!(this instanceof Q))return new Q(V,E,b);b=Error(b);"stack"in b&&(this.stack=b.stack);this.message=b.message;this.error=V;this.suppressed=E}
if(v)return v;_.f(Q,Error);Q.prototype.name="SuppressedError";return Q});
xG("Array.from",function(v){return v?v:function(Q,V,E){V=V!=null?V:function(p){return p};
var b=[],F=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(typeof F=="function"){Q=F.call(Q);for(var t=0;!(F=Q.next()).done;)b.push(V.call(E,F.value,t++))}else for(F=Q.length,t=0;t<F;t++)b.push(V.call(E,Q[t],t));return b}});
var LSX=function(v,Q,V){v instanceof String&&(v=String(v));for(var E=v.length,b=0;b<E;b++){var F=v[b];if(Q.call(V,F,b,v))return{i:b,v:F}}return{i:-1,v:void 0}};
xG("Array.prototype.find",function(v){return v?v:function(Q,V){return LSX(this,Q,V).v}});
xG("WeakMap",function(v){function Q(){}
function V(Z){var d=typeof Z;return d==="object"&&Z!==null||d==="function"}
function E(Z){if(!uJ(Z,F)){var d=new Q;ger(Z,F,{value:d})}}
function b(Z){var d=Object[Z];d&&(Object[Z]=function(w){if(w instanceof Q)return w;Object.isExtensible(w)&&E(w);return d(w)})}
if(function(){if(!v||!Object.seal)return!1;try{var Z=Object.seal({}),d=Object.seal({}),w=new v([[Z,2],[d,3]]);if(w.get(Z)!=2||w.get(d)!=3)return!1;w.delete(Z);w.set(d,4);return!w.has(Z)&&w.get(d)==4}catch(A){return!1}}())return v;
var F="$jscomp_hidden_"+Math.random();b("freeze");b("preventExtensions");b("seal");var t=0,p=function(Z){this.JSC$8841_id_=(t+=Math.random()+1).toString();if(Z){Z=_.L(Z);for(var d;!(d=Z.next()).done;)d=d.value,this.set(d[0],d[1])}};
p.prototype.set=function(Z,d){if(!V(Z))throw Error("t");E(Z);if(!uJ(Z,F))throw Error("u`"+Z);Z[F][this.JSC$8841_id_]=d;return this};
p.prototype.get=function(Z){return V(Z)&&uJ(Z,F)?Z[F][this.JSC$8841_id_]:void 0};
p.prototype.has=function(Z){return V(Z)&&uJ(Z,F)&&uJ(Z[F],this.JSC$8841_id_)};
p.prototype.delete=function(Z){return V(Z)&&uJ(Z,F)&&uJ(Z[F],this.JSC$8841_id_)?delete Z[F][this.JSC$8841_id_]:!1};
return p});
xG("Map",function(v){if(function(){if(!v||typeof v!="function"||!v.prototype.entries||typeof Object.seal!="function")return!1;try{var p=Object.seal({x:4}),Z=new v(_.L([[p,"s"]]));if(Z.get(p)!="s"||Z.size!=1||Z.get({x:4})||Z.set({x:4},"t")!=Z||Z.size!=2)return!1;var d=Z.entries(),w=d.next();if(w.done||w.value[0]!=p||w.value[1]!="s")return!1;w=d.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!d.next().done?!1:!0}catch(A){return!1}}())return v;
var Q=new WeakMap,V=function(p){this[0]={};this[1]=F();this.size=0;if(p){p=_.L(p);for(var Z;!(Z=p.next()).done;)Z=Z.value,this.set(Z[0],Z[1])}};
V.prototype.set=function(p,Z){p=p===0?0:p;var d=E(this,p);d.list||(d.list=this[0][d.id]=[]);d.entry?d.entry.value=Z:(d.entry={next:this[1],previous:this[1].previous,head:this[1],key:p,value:Z},d.list.push(d.entry),this[1].previous.next=d.entry,this[1].previous=d.entry,this.size++);return this};
V.prototype.delete=function(p){p=E(this,p);return p.entry&&p.list?(p.list.splice(p.index,1),p.list.length||delete this[0][p.id],p.entry.previous.next=p.entry.next,p.entry.next.previous=p.entry.previous,p.entry.head=null,this.size--,!0):!1};
V.prototype.clear=function(){this[0]={};this[1]=this[1].previous=F();this.size=0};
V.prototype.has=function(p){return!!E(this,p).entry};
V.prototype.get=function(p){return(p=E(this,p).entry)&&p.value};
V.prototype.entries=function(){return b(this,function(p){return[p.key,p.value]})};
V.prototype.keys=function(){return b(this,function(p){return p.key})};
V.prototype.values=function(){return b(this,function(p){return p.value})};
V.prototype.forEach=function(p,Z){for(var d=this.entries(),w;!(w=d.next()).done;)w=w.value,p.call(Z,w[1],w[0],this)};
V.prototype[Symbol.iterator]=V.prototype.entries;var E=function(p,Z){var d=Z&&typeof Z;d=="object"||d=="function"?Q.has(Z)?d=Q.get(Z):(d=""+ ++t,Q.set(Z,d)):d="p_"+Z;var w=p[0][d];if(w&&uJ(p[0],d))for(p=0;p<w.length;p++){var A=w[p];if(Z!==Z&&A.key!==A.key||Z===A.key)return{id:d,list:w,index:p,entry:A}}return{id:d,list:w,index:-1,entry:void 0}},b=function(p,Z){var d=p[1];
return KSX(function(){if(d){for(;d.head!=p[1];)d=d.previous;for(;d.next!=d.head;)return d=d.next,{done:!1,value:Z(d)};d=null}return{done:!0,value:void 0}})},F=function(){var p={};
return p.previous=p.next=p.head=p},t=0;
return V});
xG("Set",function(v){if(function(){if(!v||typeof v!="function"||!v.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),E=new v(_.L([V]));if(!E.has(V)||E.size!=1||E.add(V)!=E||E.size!=1||E.add({x:4})!=E||E.size!=2)return!1;var b=E.entries(),F=b.next();if(F.done||F.value[0]!=V||F.value[1]!=V)return!1;F=b.next();return F.done||F.value[0]==V||F.value[0].x!=4||F.value[1]!=F.value[0]?!1:b.next().done}catch(t){return!1}}())return v;
var Q=function(V){this.JSC$8855_map_=new Map;if(V){V=_.L(V);for(var E;!(E=V.next()).done;)this.add(E.value)}this.size=this.JSC$8855_map_.size};
Q.prototype.add=function(V){V=V===0?0:V;this.JSC$8855_map_.set(V,V);this.size=this.JSC$8855_map_.size;return this};
Q.prototype.delete=function(V){V=this.JSC$8855_map_.delete(V);this.size=this.JSC$8855_map_.size;return V};
Q.prototype.clear=function(){this.JSC$8855_map_.clear();this.size=0};
Q.prototype.has=function(V){return this.JSC$8855_map_.has(V)};
Q.prototype.entries=function(){return this.JSC$8855_map_.entries()};
Q.prototype.values=function(){return this.JSC$8855_map_.values()};
Q.prototype.keys=Q.prototype.values;Q.prototype[Symbol.iterator]=Q.prototype.values;Q.prototype.forEach=function(V,E){var b=this;this.JSC$8855_map_.forEach(function(F){return V.call(E,F,F,b)})};
return Q});
xG("Math.log2",function(v){return v?v:function(Q){return Math.log(Q)/Math.LN2}});
xG("Object.values",function(v){return v?v:function(Q){var V=[],E;for(E in Q)uJ(Q,E)&&V.push(Q[E]);return V}});
xG("Object.is",function(v){return v?v:function(Q,V){return Q===V?Q!==0||1/Q===1/V:Q!==Q&&V!==V}});
xG("Array.prototype.includes",function(v){return v?v:function(Q,V){var E=this;E instanceof String&&(E=String(E));var b=E.length;V=V||0;for(V<0&&(V=Math.max(V+b,0));V<b;V++){var F=E[V];if(F===Q||Object.is(F,Q))return!0}return!1}});
xG("String.prototype.includes",function(v){return v?v:function(Q,V){return oC(this,Q,"includes").indexOf(Q,V||0)!==-1}});
xG("Object.entries",function(v){return v?v:function(Q){var V=[],E;for(E in Q)uJ(Q,E)&&V.push([E,Q[E]]);return V}});
xG("Number.isFinite",function(v){return v?v:function(Q){return typeof Q!=="number"?!1:!isNaN(Q)&&Q!==Infinity&&Q!==-Infinity}});
xG("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
xG("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
xG("Number.isInteger",function(v){return v?v:function(Q){return Number.isFinite(Q)?Q===Math.floor(Q):!1}});
xG("Number.isSafeInteger",function(v){return v?v:function(Q){return Number.isInteger(Q)&&Math.abs(Q)<=Number.MAX_SAFE_INTEGER}});
xG("String.prototype.endsWith",function(v){return v?v:function(Q,V){var E=oC(this,Q,"endsWith");V===void 0&&(V=E.length);V=Math.max(0,Math.min(V|0,E.length));for(var b=Q.length;b>0&&V>0;)if(E[--V]!=Q[--b])return!1;return b<=0}});
var tZQ=function(v,Q){v instanceof String&&(v+="");var V=0,E=!1,b={next:function(){if(!E&&V<v.length){var F=V++;return{value:Q(F,v[F]),done:!1}}E=!0;return{done:!0,value:void 0}}};
b[Symbol.iterator]=function(){return b};
return b};
xG("Array.prototype.entries",function(v){return v?v:function(){return tZQ(this,function(Q,V){return[Q,V]})}});
xG("Math.trunc",function(v){return v?v:function(Q){Q=Number(Q);if(isNaN(Q)||Q===Infinity||Q===-Infinity||Q===0)return Q;var V=Math.floor(Math.abs(Q));return Q<0?-V:V}});
xG("Number.isNaN",function(v){return v?v:function(Q){return typeof Q==="number"&&isNaN(Q)}});
xG("Array.prototype.keys",function(v){return v?v:function(){return tZQ(this,function(Q){return Q})}});
xG("Array.prototype.values",function(v){return v?v:function(){return tZQ(this,function(Q,V){return V})}});
xG("Array.prototype.fill",function(v){return v?v:function(Q,V,E){var b=this.length||0;V<0&&(V=Math.max(0,b+V));if(E==null||E>b)E=b;E=Number(E);E<0&&(E=Math.max(0,b+E));for(V=Number(V||0);V<E;V++)this[V]=Q;return this}});
WmS("fill",function(v){return v?v:Array.prototype.fill});
xG("Object.fromEntries",function(v){return v?v:function(Q){var V={};if(!(Symbol.iterator in Q))throw new TypeError("v`"+Q);Q=Q[Symbol.iterator].call(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;if(Object(E)!==E)throw new TypeError("w");V[E[0]]=E[1]}return V}});
xG("String.prototype.replaceAll",function(v){return v?v:function(Q,V){if(Q instanceof RegExp&&!Q.global)throw new TypeError("x");return Q instanceof RegExp?this.replace(Q,V):this.replace(new RegExp(String(Q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),V)}});
xG("Object.getOwnPropertySymbols",function(v){return v?v:function(){return[]}});
xG("String.prototype.repeat",function(v){return v?v:function(Q){var V=oC(this,null,"repeat");if(Q<0||Q>1342177279)throw new RangeError("y");Q|=0;for(var E="";Q;)if(Q&1&&(E+=V),Q>>>=1)V+=V;return E}});
xG("Array.prototype.findIndex",function(v){return v?v:function(Q,V){return LSX(this,Q,V).i}});
xG("Array.prototype.flatMap",function(v){return v?v:function(Q,V){var E=[];Array.prototype.forEach.call(this,function(b,F){b=Q.call(V,b,F,this);Array.isArray(b)?E.push.apply(E,b):E.push(b)});
return E}});
xG("String.prototype.codePointAt",function(v){return v?v:function(Q){var V=oC(this,null,"codePointAt"),E=V.length;Q=Number(Q)||0;if(Q>=0&&Q<E){Q|=0;var b=V.charCodeAt(Q);if(b<55296||b>56319||Q+1===E)return b;Q=V.charCodeAt(Q+1);return Q<56320||Q>57343?b:(b-55296)*1024+Q+9216}}});
xG("String.fromCodePoint",function(v){return v?v:function(Q){for(var V="",E=0;E<arguments.length;E++){var b=Number(arguments[E]);if(b<0||b>1114111||b!==Math.floor(b))throw new RangeError("z`"+b);b<=65535?V+=String.fromCharCode(b):(b-=65536,V+=String.fromCharCode(b>>>10&1023|55296),V+=String.fromCharCode(b&1023|56320))}return V}});
xG("String.prototype.trimLeft",function(v){function Q(){return this.replace(/^[\s\xa0]+/,"")}
return v||Q});
xG("String.prototype.trimStart",function(v){return v||String.prototype.trimLeft});
xG("String.prototype.padStart",function(v){return v?v:function(Q,V){var E=oC(this,null,"padStart");Q-=E.length;V=V!==void 0?String(V):" ";return(Q>0&&V?V.repeat(Math.ceil(Q/V.length)).substring(0,Q):"")+E}});
xG("Promise.prototype.finally",function(v){return v?v:function(Q){return this.then(function(V){return Promise.resolve(Q()).then(function(){return V})},function(V){return Promise.resolve(Q()).then(function(){throw V;
})})}});
xG("Math.imul",function(v){return v?v:function(Q,V){Q=Number(Q);V=Number(V);var E=Q&65535,b=V&65535;return E*b+((Q>>>16&65535)*b+E*(V>>>16&65535)<<16>>>0)|0}});
xG("Object.hasOwn",function(v){return v?v:function(Q,V){return Object.prototype.hasOwnProperty.call(Q,V)}});
xG("Math.sign",function(v){return v?v:function(Q){Q=Number(Q);return Q===0||isNaN(Q)?Q:Q>0?1:-1}});
xG("Array.prototype.flat",function(v){return v?v:function(Q){Q=Q===void 0?1:Q;var V=[];Array.prototype.forEach.call(this,function(E){Array.isArray(E)&&Q>0?(E=Array.prototype.flat.call(E,Q-1),V.push.apply(V,E)):V.push(E)});
return V}});
xG("String.raw",function(v){return v?v:function(Q,V){Q=HSh(Q);for(var E=Q.raw,b=E.length,F="",t=0;t<b;++t)F+=E[t],t+1<b&&t+1<arguments.length&&(F+=String(arguments[t+1]));return F}});
xG("WeakSet",function(v){if(function(){if(!v||!Object.seal)return!1;try{var V=Object.seal({}),E=Object.seal({}),b=new v([V]);if(!b.has(V)||b.has(E))return!1;b.delete(V);b.add(E);return!b.has(V)&&b.has(E)}catch(F){return!1}}())return v;
var Q=function(V){this.JSC$8866_map_=new WeakMap;if(V){V=_.L(V);for(var E;!(E=V.next()).done;)this.add(E.value)}};
Q.prototype.add=function(V){this.JSC$8866_map_.set(V,!0);return this};
Q.prototype.has=function(V){return this.JSC$8866_map_.has(V)};
Q.prototype.delete=function(V){return this.JSC$8866_map_.delete(V)};
return Q});
xG("Reflect.ownKeys",function(v){return v?v:function(Q){var V=[],E=Object.getOwnPropertyNames(Q);Q=Object.getOwnPropertySymbols(Q);for(var b=0;b<E.length;b++)(E[b].substring(0,14)=="jscomp_symbol_"?Q:V).push(E[b]);return V.concat(Q)}});
xG("Object.getOwnPropertyDescriptors",function(v){return v?v:function(Q){for(var V={},E=Reflect.ownKeys(Q),b=0;b<E.length;b++)V[E[b]]=Object.getOwnPropertyDescriptor(Q,E[b]);return V}});
xG("Promise.allSettled",function(v){function Q(E){return{status:"fulfilled",value:E}}
function V(E){return{status:"rejected",reason:E}}
return v?v:function(E){var b=this;E=Array.from(E,function(F){return b.resolve(F).then(Q,V)});
return b.all(E)}});
xG("Number.parseInt",function(v){return v||parseInt});
_._DumpException=window._DumpException||function(v){throw v;};
window._DumpException=_._DumpException;var p9x=window.ytcsi;p9x&&typeof p9x.tick==="function"&&p9x.tick("rses_dpj");var eTa,Xu,aC,r3,ZEX,Pbp,dma,hTA,D0,w98;eTa=eTa||{};_.bb=this||self;_.Pr=function(v,Q,V){v=v.split(".");V=V||_.bb;for(var E;v.length&&(E=v.shift());)v.length||Q===void 0?V[E]&&V[E]!==Object.prototype[E]?V=V[E]:V=V[E]={}:V[E]=Q};
Xu=function(v,Q){var V=_.Q9("WIZ_global_data.oxN3nb");v=V&&V[v];return v!=null?v:Q};
aC=_.bb._F_toggles_default_kevlar_base||[];r3=function(){};
r3.get=function(){return null};
_.ESo=null;_.Q9=function(v,Q){v=v.split(".");Q=Q||_.bb;for(var V=0;V<v.length;V++)if(Q=Q[v[V]],Q==null)return null;return Q};
_.$G=function(v){v.instance_=void 0;v.getInstance=function(){return v.instance_?v.instance_:v.instance_=new v}};
_.UR=function(v){var Q=typeof v;return Q!="object"?Q:v?Array.isArray(v)?"array":Q:"null"};
_.W9=function(v){var Q=_.UR(v);return Q=="array"||Q=="object"&&typeof v.length=="number"};
_.rG=function(v){var Q=typeof v;return Q=="object"&&v!=null||Q=="function"};
_.$Q=function(v){return Object.prototype.hasOwnProperty.call(v,ZEX)&&v[ZEX]||(v[ZEX]=++Pbp)};
ZEX="closure_uid_"+(Math.random()*1E9>>>0);Pbp=0;dma=function(v,Q,V){return v.call.apply(v.bind,arguments)};
hTA=function(v,Q,V){if(!v)throw Error();if(arguments.length>2){var E=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,E);return v.apply(Q,b)}}return function(){return v.apply(Q,arguments)}};
_.Nz=function(v,Q,V){_.Nz=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?dma:hTA;return _.Nz.apply(null,arguments)};
_.pt=function(v,Q){var V=Array.prototype.slice.call(arguments,1);return function(){var E=V.slice();E.push.apply(E,arguments);return v.apply(this,E)}};
_.IC=function(){return Date.now()};
D0=function(v){return v};
_.HZ=function(v,Q){function V(){}
V.prototype=Q.prototype;v.superClass_=Q.prototype;v.prototype=new V;v.prototype.constructor=v;v.base=function(E,b,F){for(var t=Array(arguments.length-2),p=2;p<arguments.length;p++)t[p-2]=arguments[p];return Q.prototype[b].apply(E,t)}};
w98=function(v){return v};var A38,k08;_.W=function(v,Q,V,E){var b=arguments.length,F=b<3?Q:E===null?E=Object.getOwnPropertyDescriptor(Q,V):E,t;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")F=Reflect.decorate(v,Q,V,E);else for(var p=v.length-1;p>=0;p--)if(t=v[p])F=(b<3?t(F):b>3?t(Q,V,F):t(Q,V))||F;b>3&&F&&Object.defineProperty(Q,V,F)};
_.X=function(v,Q){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(v,Q)};
A38=function(v,Q){if(Q!==null&&Q!==void 0){if(typeof Q!=="object"&&typeof Q!=="function")throw new TypeError("A");if(V===void 0){if(!Symbol.dispose)throw new TypeError("C");var V=Q[Symbol.dispose]}if(typeof V!=="function")throw new TypeError("D");v.stack.push({value:Q,dispose:V,async:!1})}return Q};
k08=function(v){function Q(F){v.error=v.hasError?new SuppressedError(F,v.error,"An error was suppressed during disposal."):F;v.hasError=!0}
function V(){for(;E=v.stack.pop();)try{if(!E.async&&b===1)return b=0,v.stack.push(E),Promise.resolve().then(V);if(E.dispose){var F=E.dispose.call(E.value);if(E.async)return b|=2,Promise.resolve(F).then(V,function(t){Q(t);return V()})}else b|=1}catch(t){Q(t)}if(b===1)return v.hasError?Promise.reject(v.error):Promise.resolve();
if(v.hasError)throw v.error;}
var E,b=0;V()};var TGa="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(" ");vQh()&&TGa.push("details:not(:has(summary))");var VZ3=TGa.join(",");_.HZ(_.Vo,Error);_.Vo.prototype.name="CustomError";var YBZ;var y3V=void 0,c3a,ftN=typeof TextDecoder!=="undefined",eTr,p9b=typeof String.prototype.isWellFormed==="function",tZT=typeof TextEncoder!=="undefined";var G08;_.zc=function(v){for(var Q=[],V=0,E=0;E<v.length;E++){var b=v.charCodeAt(E);b<128?Q[V++]=b:(b<2048?Q[V++]=b>>6|192:((b&64512)==55296&&E+1<v.length&&(v.charCodeAt(E+1)&64512)==56320?(b=65536+((b&1023)<<10)+(v.charCodeAt(++E)&1023),Q[V++]=b>>18|240,Q[V++]=b>>12&63|128):Q[V++]=b>>12|224,Q[V++]=b>>6&63|128),Q[V++]=b&63|128)}return Q};
G08=function(v){for(var Q=[],V=0,E=0;V<v.length;){var b=v[V++];if(b<128)Q[E++]=String.fromCharCode(b);else if(b>191&&b<224){var F=v[V++];Q[E++]=String.fromCharCode((b&31)<<6|F&63)}else if(b>239&&b<365){F=v[V++];var t=v[V++],p=v[V++];b=((b&7)<<18|(F&63)<<12|(t&63)<<6|p&63)-65536;Q[E++]=String.fromCharCode(55296+(b>>10));Q[E++]=String.fromCharCode(56320+(b&1023))}else F=v[V++],t=v[V++],Q[E++]=String.fromCharCode((b&15)<<12|(F&63)<<6|t&63)}return Q.join("")};var dG=String.prototype.trim?function(v){return v.trim()}:function(v){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(v)[1]},CbZ=/&/g,MZX=/</g,OEV=/>/g,DmN=/"/g,RTa=/'/g,nQR=/\x00/g,ltq=/[\x00&<>"']/;var mh=!!(aC[0]>>15&1),qBS=!!(aC[0]&1024),SBa=!!(aC[0]>>16&1),zT8=!!(aC[0]&8),J3S=!!(aC[0]&2),NGR=!!(aC[0]&4),xma=!!(aC[0]&16),BGQ=!!(aC[0]&128);var YQ=mh?SBa:Xu(610401301,!1),gQR=mh?zT8:Xu(772657768,!1),shN=mh?J3S:Xu(513659523,!1),ur8=mh?qBS||!NGR:Xu(568333945,!0),GRh=mh?xma:Xu(1331761403,!1),y73=mh?qBS||!BGQ:Xu(748402147,!0);var c9,jhQ=_.bb.navigator;c9=jhQ?jhQ.userAgentData||null:null;var Kp;_.B9=function(v,Q){return Array.prototype.indexOf.call(v,Q,void 0)};
_.bv=function(v,Q,V){Array.prototype.forEach.call(v,Q,V)};
_.U$=function(v,Q,V){return Array.prototype.filter.call(v,Q,V)};
_.sY=function(v,Q,V){return Array.prototype.map.call(v,Q,V)};
Kp=function(v,Q,V){return Array.prototype.some.call(v,Q,V)};
_.u3b=function(v,Q,V){return Array.prototype.every.call(v,Q,V)};var vC=function(v){vC[" "](v);return v};
vC[" "]=function(){};
var Jd0=function(v,Q){try{return vC(v[Q]),!0}catch(V){}return!1},PDm=function(v,Q,V,E){E=E?E(Q):Q;
return Object.prototype.hasOwnProperty.call(v,E)?v[E]:v[E]=V(Q)};var WSN,ej,oQa,X9p,r3N,$mX,WU9,ItZ,HE8,mmp,bb9,vaa,QNN,FAR,KAZ,iZx;_.CG0=function(){return _.bb.navigator||null};
WSN=hTS();_.Q2=w9o();ej=fE("Edge");oQa=ej||_.Q2;_.V2=fE("Gecko")&&!(_.P9(_.T0(),"WebKit")&&!fE("Edge"))&&!(fE("Trident")||fE("MSIE"))&&!fE("Edge");_.E7=_.P9(_.T0(),"WebKit")&&!fE("Edge");X9p=_.E7&&fE("Mobile");_.atZ=_.CbE();r3N=_.MZt();$mX=(nE()?c9.platform==="Linux":fE("Linux"))||_.OEG();WU9=_.ft9();ItZ=G0o();HE8=fE("iPad");mmp=fE("iPod");_.Umx=_.qm();bb9=_.P9(_.T0(),"KaiOS");vaa=function(){var v=_.bb.document;return v?v.documentMode:void 0};
a:{var VpN="",EaZ=function(){var v=_.T0();if(_.V2)return/rv:([^\);]+)(\)|;)/.exec(v);if(ej)return/Edge\/([\d\.]+)/.exec(v);if(_.Q2)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(v);if(_.E7)return/WebKit\/(\S+)/.exec(v);if(WSN)return/(?:Version)[ \/]?(\S+)/.exec(v)}();
EaZ&&(VpN=EaZ?EaZ[1]:"");if(_.Q2){var bZR=vaa();if(bZR!=null&&bZR>parseFloat(VpN)){QNN=String(bZR);break a}}QNN=VpN}FAR=QNN;KAZ={};_.bq=function(v){return PDm(KAZ,v,function(){return _.wG(FAR,v)>=0})};
if(_.bb.document&&_.Q2){var LAN=vaa();iZx=LAN?LAN:parseInt(FAR,10)||void 0}else iZx=void 0;_.tpq=iZx;var ryh,$pb,pNZ;_.Fv=Mm();ryh=G0o()||fE("iPod");$pb=fE("iPad");pNZ=_.TGr();_.KN=_.Rh();_.mF=_.k0o()&&!_.qm();var eQ8,iq,VKG,V2b,PxA,ZZV;eQ8={};iq=null;VKG=_.V2||_.E7||typeof _.bb.btoa=="function";_.Sq=function(v,Q){Q===void 0&&(Q=0);ZZV();Q=eQ8[Q];for(var V=Array(Math.floor(v.length/3)),E=Q[64]||"",b=0,F=0;b<v.length-2;b+=3){var t=v[b],p=v[b+1],Z=v[b+2],d=Q[t>>2];t=Q[(t&3)<<4|p>>4];p=Q[(p&15)<<2|Z>>6];Z=Q[Z&63];V[F++]=d+t+p+Z}d=0;Z=E;switch(v.length-b){case 2:d=v[b+1],Z=Q[(d&15)<<2]||E;case 1:v=v[b],V[F]=Q[v>>2]+Q[(v&3)<<4|d>>4]+Z+E}return V.join("")};
V2b=function(v){var Q="";PxA(v,function(V){Q+=String.fromCharCode(V)});
return Q};
_.s2B=function(v){var Q=[];PxA(v,function(V){Q.push(V)});
return Q};
_.H9=function(v){var Q=v.length,V=Q*3/4;V%3?V=Math.floor(V):_.Zt("=.",v[Q-1])&&(V=_.Zt("=.",v[Q-2])?V-2:V-1);var E=new Uint8Array(V),b=0;PxA(v,function(F){E[b++]=F});
return b!==V?E.subarray(0,b):E};
PxA=function(v,Q){function V(Z){for(;E<v.length;){var d=v.charAt(E++),w=iq[d];if(w!=null)return w;if(!_.pE(d))throw Error("H`"+d);}return Z}
ZZV();for(var E=0;;){var b=V(-1),F=V(0),t=V(64),p=V(64);if(p===64&&b===-1)break;Q(b<<2|F>>4);t!=64&&(Q(F<<4&240|t>>2),p!=64&&Q(t<<6&192|p))}};
ZZV=function(){if(!iq){iq={};for(var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Q=["+/=","+/","-_=","-_.","-_"],V=0;V<5;V++){var E=v.concat(Q[V].split(""));eQ8[V]=E;for(var b=0;b<E.length;b++){var F=E[b];iq[F]===void 0&&(iq[F]=b)}}}};var mmZ=typeof Uint8Array!=="undefined",uro=!_.Q2&&typeof btoa==="function",jhT=/[-_.]/g,gQB={"-":"+",_:"/",".":"="},RN={};var OR,hQx;OR=function(v,Q){if(Q!==RN)throw Error("J");this.JSC$8900_value_=v;if(v!=null&&v.length===0)throw Error("I");};
_.nZ=function(){return dZX||(dZX=new OR(null,RN))};
hQx=function(v){return new Uint8Array(WIT(v)||0)};
OR.prototype.isEmpty=function(){return this.JSC$8900_value_==null};
OR.prototype.sizeBytes=function(){var v=WIT(this);return v?v.length:0};
var WIT=function(v){if(RN!==RN)throw Error("J");var Q=v.JSC$8900_value_;Q==null||mmZ&&Q!=null&&Q instanceof Uint8Array||(typeof Q==="string"?Q=WSh(Q):(_.UR(Q),Q=null));return Q==null?Q:v.JSC$8900_value_=Q},dZX;var X9Z=void 0;var ER=typeof Symbol==="function"&&typeof Symbol()==="symbol",wNa=V8("jas",void 0,!0),gaQ=V8(void 0,"0di"),Vn=V8(void 0,"1oa"),lh=V8(void 0,Symbol()),VqT=V8(void 0,"0ub"),bjG=V8(void 0,"0ubs"),Mch=V8(void 0,"0ubsb"),f0T=V8(void 0,"0actk"),Cj=V8("m_m","messagePrototypeMarker",!0),hmS=V8(void 0,"vps"),UZh=V8();var $mt,r39,rY,ASx;$mt={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};r39=Object.defineProperties;_.bx=ER?wNa:"internalArrayState";ASx=[];tS(ASx,7);rY=Object.freeze(ASx);var M$={},cN={},kqQ=function(v,Q,V){this.iterable=v;this.mapper=Q;this.thisArg=V};
kqQ.prototype.next=function(){var v=this.iterable.next();v.done||(v.value=this.mapper.call(this.thisArg,v.value));return v};
kqQ.prototype[Symbol.iterator]=function(){return this};
var TVa=Object.freeze({}),Sp={};_.YRR=NZ(function(v){return v!==null&&v!==void 0});var bZB=NZ(function(v){return typeof v==="number"}),EaE=NZ(function(v){return typeof v==="string"}),KAm=NZ(function(v){return typeof v==="boolean"}),ySa=NZ(function(v){return v!=null&&typeof v==="object"&&typeof v.then==="function"}),smb=NZ(function(v){return typeof v==="function"}),PR=NZ(function(v){return!!v&&(typeof v==="object"||typeof v==="function")});var FAB=typeof _.bb.BigInt==="function"&&typeof _.bb.BigInt(0)==="bigint";var SRE=NZ(function(v){return FAB?v>=cSa&&v<=fXa:v[0]==="-"?iZb(v,GqQ):iZb(v,CxQ)}),GqQ=Number.MIN_SAFE_INTEGER.toString(),cSa=FAB?BigInt(Number.MIN_SAFE_INTEGER):void 0,CxQ=Number.MAX_SAFE_INTEGER.toString(),fXa=FAB?BigInt(Number.MAX_SAFE_INTEGER):void 0;var MpN=typeof Uint8Array.prototype.slice==="function",BN=0,gV=0,pNE;var eq,h7,Q5,dY,TVr;eq=typeof BigInt==="function"?BigInt.asIntN:void 0;_.A7=typeof BigInt==="function"?BigInt.asUintN:void 0;h7=Number.isSafeInteger;Q5=Number.isFinite;dY=Math.trunc;TVr=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ws3={};var IXt={},OZ8=function(){try{var v=function(){return oeE(Map,[],this.constructor)};
_.f(v,Map);vC(new v);return!1}catch(Q){return!0}}(),LN=function(){this.JSC$8919_map_=new Map};
_.K=LN.prototype;_.K.get=function(v){return this.JSC$8919_map_.get(v)};
_.K.set=function(v,Q){this.JSC$8919_map_.set(v,Q);this.size=this.JSC$8919_map_.size;return this};
_.K.delete=function(v){v=this.JSC$8919_map_.delete(v);this.size=this.JSC$8919_map_.size;return v};
_.K.clear=function(){this.JSC$8919_map_.clear();this.size=this.JSC$8919_map_.size};
_.K.has=function(v){return this.JSC$8919_map_.has(v)};
_.K.entries=function(){return this.JSC$8919_map_.entries()};
_.K.keys=function(){return this.JSC$8919_map_.keys()};
_.K.values=function(){return this.JSC$8919_map_.values()};
_.K.forEach=function(v,Q){return this.JSC$8919_map_.forEach(v,Q)};
LN.prototype[Symbol.iterator]=function(){return this.entries()};
var tI=function(){if(OZ8)return Object.setPrototypeOf(LN.prototype,Map.prototype),Object.defineProperties(LN.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),LN;var v=function(){return oeE(Map,[],this.constructor)};
_.f(v,Map);return v}(),Od=function(v,Q,V,E){V=V===void 0?oaE:V;
E=E===void 0?oaE:E;var b=tI.call(this)||this;b.arrayState=v[_.bx]|0;b.valueCtor=Q;b.keyToApi=V;b.valueToApi=b.valueCtor?aXh:E;for(var F=0;F<v.length;F++){var t=v[F],p=V(t[0],!1,!0),Z=t[1];Q?Z===void 0&&(Z=null):Z=E(t[1],!1,!0,void 0,void 0,b.arrayState);tI.prototype.set.call(b,p,Z)}return b};
_.f(Od,tI);var DZN=function(v){if(v.arrayState&2)throw Error("N");},d$S=function(v,Q){return ZX(Array.from(tI.prototype.entries.call(v),Q))};
_.K=Od.prototype;_.K.clear=function(){DZN(this);tI.prototype.clear.call(this)};
_.K.delete=function(v){DZN(this);return tI.prototype.delete.call(this,this.keyToApi(v,!0,!1))};
_.K.entries=function(){if(this.valueCtor){var v=tI.prototype.keys.call(this);v=new kqQ(v,rSr,this)}else v=tI.prototype.entries.call(this);return v};
_.K.values=function(){if(this.valueCtor){var v=tI.prototype.keys.call(this);v=new kqQ(v,Od.prototype.get,this)}else v=tI.prototype.values.call(this);return v};
_.K.forEach=function(v,Q){this.valueCtor?tI.prototype.forEach.call(this,function(V,E,b){v.call(Q,b.get(E),E,b)}):tI.prototype.forEach.call(this,v,Q)};
_.K.set=function(v,Q){DZN(this);v=this.keyToApi(v,!0,!1);return v==null?this:Q==null?(tI.prototype.delete.call(this,v),this):tI.prototype.set.call(this,v,this.valueToApi(Q,!0,!0,this.valueCtor,!1,this.arrayState))};
_.K.has=function(v){return tI.prototype.has.call(this,this.keyToApi(v,!1,!1))};
_.K.get=function(v){v=this.keyToApi(v,!1,!1);var Q=tI.prototype.get.call(this,v);if(Q!==void 0){var V=this.valueCtor;return V?(V=this.valueToApi(Q,!1,!0,V,this.callToMutableOnAccess,this.arrayState),V!==Q&&tI.prototype.set.call(this,v,V),V):Q}};
Od.prototype[Symbol.iterator]=function(){return this.entries()};
Od.prototype.toJSON=void 0;var $ZT;var LIh=function(){},KIt=function(v,Q){for(var V in v)!isNaN(V)&&Q(v,+V,v[V])},tqE=function(v){var Q=new LIh;
KIt(v,function(V,E,b){Q[E]=aN(b)});
Q.reviveUnknownFields=v.reviveUnknownFields;return Q},vfE={reviveIntoImmutable:!0};var ijh;var A7b,khS;var RQp,mI,np,J8,na8,AI,Sx,lXV,qRV,y2,SRZ,cC,CN,Mq;RQp=_.xa(0);_.pN={};_.em=function(v,Q,V,E,b){Q=mI(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q,V,b);if(Q!==null||E&&v.noLegacyNull!==cN)return Q};
mI=function(v,Q,V,E){if(Q===-1)return null;var b=Q+(V?0:-1),F=v.length-1;if(!(F<1+(V?0:-1))){if(b>=F){var t=v[F];if(t!=null&&typeof t==="object"&&t.constructor===Object){V=t[Q];var p=!0}else if(b===F)V=t;else return}else V=v[b];if(E&&V!=null){E=E(V);if(E==null)return E;if(!Object.is(E,V))return p?t[Q]=E:v[b]=E,E}return V}};
_.yh=function(v,Q,V,E){jq(v);var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Xn(b,b[_.bx]|0,Q,V,E);return v};
_.ZD=function(v,Q,V){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return BYm(v,v[_.bx]|0,Q,V)!==void 0};
_.PC=function(v,Q,V,E){var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return BYm(b,b[_.bx]|0,Q,J8(v,E,V))!==void 0};
_.dZ=function(v){return v===TVa?2:4};
_.dB=function(v,Q){v=_.em(v,Q,void 0,void 0,qdh);return v==null?_.nZ():v};
np=function(v,Q,V,E){jq(v);var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=b[_.bx]|0;if(E==null){var t=J7m(b);if(NYQ(t,b,F,V)===Q)t.set(V,0);else return v}else F=x$9(b,F,V,Q);Xn(b,F,Q,E);return v};
_.hI=function(v,Q,V,E){var b=v[_.bx]|0,F=zq(b);b=x$9(v,b,V,Q,F);Xn(v,b,Q,E,F)};
J8=function(v,Q,V){return _.wB(v,Q)===V?V:-1};
_.wB=function(v,Q){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return NYQ(J7m(v),v,void 0,Q,void 0)};
na8=function(v,Q,V){var E=v[_.bx]|0,b=zq(E),F=mI(v,V,b);if(F!=null&&F[Cj]===M$){if(!CZ(F))return sd(F),F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var t=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(F)&&(t=F);if(t){var p=t[_.bx]|0;p&2&&(t=gY(t,p))}t=N$(t,Q);t!==F&&Xn(v,E,V,t,b);return t};
_.TY=function(v,Q,V,E){var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=b[_.bx]|0;Q=BYm(b,F,Q,V,E);if(Q==null)return Q;F=b[_.bx]|0;if(!CZ(v,F)){var t=XN3(Q);t!==Q&&(sd(v)&&(b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=b[_.bx]|0),Q=t,F=Xn(b,F,V,Q,E),o8(b,F))}return Q};
_.PM=function(v,Q,V,E){var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gf9(v,b,b[_.bx]|0,Q,V,E,!1,!0)};
_.Mj=function(v,Q,V,E){V=s8G(V);_.yh(v,Q,V,E);V&&!CZ(V)&&o8(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
_.O9=function(v,Q,V,E){E=s8G(E);np(v,Q,V,E);E&&!CZ(E)&&o8(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
AI=function(v,Q,V){jq(v);var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=E[_.bx]|0;if(V==null)return Xn(E,b,Q),v;for(var F=V===rY?7:V[_.bx]|0,t=F,p=Hs(F),Z=p||Object.isFrozen(V),d=!0,w=!0,A=0;A<V.length;A++){var k=V[A];p||(k=CZ(k),d&&(d=!k),w&&(w=k))}p||(F=d?13:5,F=w?F&-4097:F|4096);Z&&F===t||(V=aN(V),t=0,F=$f(F,b));F!==t&&tS(V,F);b=Xn(E,b,Q,V);2&F||!(4096&F||16&F)||o8(E,b);return v};
Sx=function(v,Q,V,E){j8Q(v,Q,V,E);return v};
lXV=function(v,Q,V){j8Q(v,Q,kK,void 0,V,1,!0);return v};
_.Ts=function(v,Q,V){v=_.em(v,Q,void 0,V);Q=typeof v;v=v==null?v:Q==="bigint"?_.xa((0,_.A7)(64,v)):_.V5(v)?Q==="string"?_.qRG(v):_.nao(v):void 0;return v};
_.YK=function(v,Q){var V=V===void 0?!1:V;var E;return(E=_.kqT(_.em(v,Q)))!=null?E:V};
_.h5=function(v,Q,V){V=V===void 0?0:V;var E;return(E=_.t7(_.em(v,Q)))!=null?E:V};
qRV=function(v,Q){var V=V===void 0?0:V;v=_.ySr(_.em(v,Q));return v!=null?v:V};
y2=function(v,Q,V){V=V===void 0?RQp:V;var E;return(E=_.NVt(_.em(v,Q)))!=null?E:V};
SRZ=function(v){var Q=Q===void 0?RQp:Q;var V;return(V=_.Ts(v,23))!=null?V:Q};
cC=function(v,Q){var V=V===void 0?0:V;var E;return(E=_.em(v,Q,void 0,void 0,_.HN))!=null?E:V};
_.fN=function(v,Q,V,E){V=V===void 0?"":V;var b;return(b=_.fj(_.em(v,Q,E)))!=null?b:V};
_.Gs=function(v,Q){var V=V===void 0?0:V;var E;return(E=_.ih(_.em(v,Q)))!=null?E:V};
CN=function(v,Q){var V=V===void 0?"0":V;v=JSG(_.em(v,Q),!0);return v!=null?v:V};
Mq=function(v,Q,V){return _.fN(v,J8(v,V,Q))};
_.O7=function(v,Q,V,E){return _.TY(v,Q,J8(v,E,V),void 0)};
_.Dg=function(v,Q){return _.fj(_.em(v,Q,void 0,_.pN))};
_.Tc=function(v,Q,V){return _.yh(v,Q,ASb(V))};
_.yC=function(v,Q,V){return _.vq(v,Q,ASb(V),!1)};
_.DD=function(v,Q,V){return _.yh(v,Q,_.Lj(V))};
_.xh=function(v,Q,V){return _.yh(v,Q,Ps(V))};
_.SS=function(v,Q,V){return _.yh(v,Q,y5(V))};
_.NM=function(v,Q,V,E){return _.vq(v,Q,y5(V),"",E)};
_.YF=function(v,Q,V){return _.yh(v,Q,V==null?V:_.Kj(V))};
_.Rq=function(v,Q,V){return _.vq(v,Q,V==null?V:_.Kj(V),0)};var bV=function(v,Q,V){this.buffer=v;if(V&&!Q)throw Error();this.JSC$8931_isImmutable=Q};var zQA=function(v,Q,V,E){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8934_start_=0;this.init(v,Q,V,E)},nN,NVX,xZ8,BVp,gaa,sNN,hbo,JSV;
_.K=zQA.prototype;_.K.init=function(v,Q,V,E){var b=E===void 0?{}:E;E=b.aliasBytesFields===void 0?!1:b.aliasBytesFields;b=b.treatNewDataAsImmutable===void 0?!1:b.treatNewDataAsImmutable;this.aliasBytesFields=E;this.treatNewDataAsImmutable=b;v&&(v=ofS(v,this.treatNewDataAsImmutable),this.bytes_=v.buffer,this.bytesAreImmutable_=v.JSC$8931_isImmutable,this.JSC$8934_start_=Q||0,this.end_=V!==void 0?this.JSC$8934_start_+V:this.bytes_.length,this.cursor_=this.JSC$8934_start_)};
_.K.free=function(){this.clear();JSV.length<100&&JSV.push(this)};
_.K.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8934_start_=0;this.aliasBytesFields=!1};
_.K.reset=function(){this.cursor_=this.JSC$8934_start_};
_.K.atEnd=function(){return this.cursor_==this.end_};
_.lq=function(v,Q){var V=0,E=0,b=0,F=v.bytes_,t=v.cursor_;do{var p=F[t++];V|=(p&127)<<b;b+=7}while(b<32&&p&128);if(b>32)for(E|=(p&127)>>4,b=3;b<32&&p&128;b+=7)p=F[t++],E|=(p&127)<<b;nN(v,t);if(!(p&128))return Q(V>>>0,E>>>0);throw Error();};
nN=function(v,Q){v.cursor_=Q;if(Q>v.end_)throw Error();};
_.qq=function(v){var Q=v.bytes_,V=v.cursor_,E=Q[V++],b=E&127;if(E&128&&(E=Q[V++],b|=(E&127)<<7,E&128&&(E=Q[V++],b|=(E&127)<<14,E&128&&(E=Q[V++],b|=(E&127)<<21,E&128&&(E=Q[V++],b|=E<<28,E&128&&Q[V++]&128&&Q[V++]&128&&Q[V++]&128&&Q[V++]&128&&Q[V++]&128)))))throw Error();nN(v,V);return b};
_.Sm=function(v){var Q=v.bytes_,V=v.cursor_,E=Q[V],b=Q[V+1],F=Q[V+2];Q=Q[V+3];nN(v,v.cursor_+4);return(E<<0|b<<8|F<<16|Q<<24)>>>0};
NVX=function(v){var Q=_.Sm(v);v=_.Sm(v);return ZZG(Q,v)};
xZ8=function(v){var Q=_.Sm(v);v=(Q>>31)*2+1;var V=Q>>>23&255;Q&=8388607;return V==255?Q?NaN:v*Infinity:V==0?v*1.401298464324817E-45*Q:v*Math.pow(2,V-150)*(Q+8388608)};
BVp=function(v){var Q=_.Sm(v),V=_.Sm(v);v=(V>>31)*2+1;var E=V>>>20&2047;Q=4294967296*(V&1048575)+Q;return E==2047?Q?NaN:v*Infinity:E==0?v*4.9E-324*Q:v*Math.pow(2,E-1075)*(Q+4503599627370496)};
gaa=function(v){for(var Q=0,V=v.cursor_,E=V+10,b=v.bytes_;V<E;){var F=b[V++];Q|=F;if((F&128)===0)return nN(v,V),!!(Q&127)}throw Error();};
sNN=function(v,Q){if(Q<0)throw Error();var V=v.cursor_;Q=V+Q;if(Q>v.end_)throw Error();v.cursor_=Q;return V};
hbo=function(v,Q){if(Q==0)return _.nZ();var V=sNN(v,Q);v.aliasBytesFields&&v.bytesAreImmutable_?V=v.bytes_.subarray(V,V+Q):(v=v.bytes_,Q=V+Q,V=V===Q?new Uint8Array(0):MpN?v.slice(V,Q):new Uint8Array(v.subarray(V,Q)));return V.length==0?_.nZ():new OR(V,RN)};
JSV=[];var jN8=function(v,Q,V,E){if(JSV.length){var b=JSV.pop();b.init(v,Q,V,E);v=b}else v=new zQA(v,Q,V,E);this.decoder_=v;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;uap(this,E)},uap=function(v,Q){Q=Q===void 0?{}:Q;
v.discardUnknownFields=Q.discardUnknownFields===void 0?!1:Q.discardUnknownFields},kdZ=function(v,Q,V,E){if(WAq.length){var b=WAq.pop();
uap(b,E);b.decoder_.init(v,Q,V,E);return b}return new jN8(v,Q,V,E)},ZfB,djG,zs,oaZ,WAq;
jN8.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;WAq.length<100&&WAq.push(this)};
jN8.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
ZfB=function(v){if(v.decoder_.atEnd())return!1;v.fieldCursor_=v.decoder_.cursor_;var Q=_.qq(v.decoder_)>>>0,V=Q>>>3;Q&=7;if(!(Q>=0&&Q<=5))throw Error();if(V<1)throw Error();v.nextField_=V;v.nextWireType_=Q;return!0};
djG=function(v){switch(v.nextWireType_){case 0:v.nextWireType_!=0?djG(v):gaa(v.decoder_);break;case 1:v=v.decoder_;nN(v,v.cursor_+8);break;case 2:if(v.nextWireType_!=2)djG(v);else{var Q=_.qq(v.decoder_)>>>0;v=v.decoder_;nN(v,v.cursor_+Q)}break;case 5:v=v.decoder_;nN(v,v.cursor_+4);break;case 3:Q=v.nextField_;do{if(!ZfB(v))throw Error();if(v.nextWireType_==4){if(v.nextField_!=Q)throw Error();break}djG(v)}while(1);break;default:throw Error();}};
zs=function(v,Q,V){var E=v.decoder_.end_,b=_.qq(v.decoder_)>>>0;b=v.decoder_.cursor_+b;var F=b-E;F<=0&&(v.decoder_.end_=b,V(Q,v,void 0,void 0,void 0),F=b-v.decoder_.cursor_);if(F)throw Error();v.decoder_.cursor_=b;v.decoder_.end_=E;return Q};
oaZ=function(v){var Q=_.qq(v.decoder_)>>>0;v=v.decoder_;var V=sNN(v,Q);v=v.bytes_;if(ftN){var E=v,b;(b=c3a)||(b=c3a=new TextDecoder("utf-8",{fatal:!0}));Q=V+Q;E=V===0&&Q===E.length?E:E.subarray(V,Q);try{var F=b.decode(E)}catch(d){if(y3V===void 0){try{b.decode(new Uint8Array([128]))}catch(w){}try{b.decode(new Uint8Array([97])),y3V=!0}catch(w){y3V=!1}}!y3V&&(c3a=void 0);throw d;}}else{F=V;Q=F+Q;V=[];for(var t=null,p,Z;F<Q;)p=v[F++],p<128?V.push(p):p<224?F>=Q?EB():(Z=v[F++],p<194||(Z&192)!==128?(F--,
EB()):V.push((p&31)<<6|Z&63)):p<240?F>=Q-1?EB():(Z=v[F++],(Z&192)!==128||p===224&&Z<160||p===237&&Z>=160||((b=v[F++])&192)!==128?(F--,EB()):V.push((p&15)<<12|(Z&63)<<6|b&63)):p<=244?F>=Q-2?EB():(Z=v[F++],(Z&192)!==128||(p<<28)+(Z-144)>>30!==0||((b=v[F++])&192)!==128||((E=v[F++])&192)!==128?(F--,EB()):(p=(p&7)<<18|(Z&63)<<12|(b&63)<<6|E&63,p-=65536,V.push((p>>10&1023)+55296,(p&1023)+56320))):EB(),V.length>=8192&&(t=LSt(t,V),V.length=0);F=LSt(t,V)}return F};
_.XNS=function(v){var Q=_.qq(v.decoder_)>>>0;return hbo(v.decoder_,Q)};
_.aXN=function(v,Q,V){var E=_.qq(v.decoder_)>>>0;for(E=v.decoder_.cursor_+E;v.decoder_.cursor_<E;)V.push(Q(v.decoder_))};
WAq=[];var rSa=function(v,Q){this.JSC$8941_lo=v>>>0;this.JSC$8941_hi=Q>>>0},q9t=function(v){v=BigInt.asUintN(64,v);
return new rSa(Number(v&BigInt(4294967295)),Number(v>>BigInt(32)))},r7r=function(v){if(!v)return $ZQ||($ZQ=new rSa(0,0));
if(!/^\d+$/.test(v))return null;Xa(v);return new rSa(BN,gV)},$ZQ,l5Z=function(v,Q){this.JSC$8943_lo=v>>>0;
this.JSC$8943_hi=Q>>>0},Xsm=function(v){if(!v)return IXX||(IXX=new l5Z(0,0));
if(!/^-?\d+$/.test(v))return null;Xa(v);return new l5Z(BN,gV)},IXX;var JI=function(){this.JSC$8945_buffer_=[]},Ae,Td,HZa;
JI.prototype.length=function(){return this.JSC$8945_buffer_.length};
JI.prototype.end=function(){var v=this.JSC$8945_buffer_;this.JSC$8945_buffer_=[];return v};
Ae=function(v,Q,V){for(;V>0||Q>127;)v.JSC$8945_buffer_.push(Q&127|128),Q=(Q>>>7|V<<25)>>>0,V>>>=7;v.JSC$8945_buffer_.push(Q)};
Td=function(v,Q){for(;Q>127;)v.JSC$8945_buffer_.push(Q&127|128),Q>>>=7;v.JSC$8945_buffer_.push(Q)};
_.zbG=function(v,Q){if(Q>=0)Td(v,Q);else{for(var V=0;V<9;V++)v.JSC$8945_buffer_.push(Q&127|128),Q>>=7;v.JSC$8945_buffer_.push(1)}};
HZa=function(v,Q){Xa(Q);PxS(function(V,E){Ae(v,V>>>0,E>>>0)})};
JI.prototype.writeUint8=function(v){this.JSC$8945_buffer_.push(v>>>0&255)};
_.he=function(v,Q){v.JSC$8945_buffer_.push(Q>>>0&255);v.JSC$8945_buffer_.push(Q>>>8&255);v.JSC$8945_buffer_.push(Q>>>16&255);v.JSC$8945_buffer_.push(Q>>>24&255)};
JI.prototype.writeInt8=function(v){this.JSC$8945_buffer_.push(v>>>0&255)};var mZq,te,Nlr,gPb,m$S;mZq=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new JI};
te=function(v,Q){Q.length!==0&&(v.blocks_.push(Q),v.totalLength_+=Q.length)};
_.UZN=function(v,Q){_.Pq(v,Q,2);Q=v.encoder_.end();te(v,Q);Q.push(v.totalLength_);return Q};
_.vfZ=function(v,Q){var V=Q.pop();for(V=v.totalLength_+v.encoder_.length()-V;V>127;)Q.push(V&127|128),V>>>=7,v.totalLength_++;Q.push(V);v.totalLength_++};
_.Pq=function(v,Q,V){Td(v.encoder_,Q*8+V)};
Nlr=function(v,Q,V){if(V!=null)switch($$Q(V),_.Pq(v,Q,1),typeof V){case "number":v=v.encoder_;LA9(V);_.he(v,BN);_.he(v,gV);break;case "bigint":V=q9t(V);v=v.encoder_;Q=V.JSC$8941_hi;_.he(v,V.JSC$8941_lo);_.he(v,Q);break;default:V=r7r(V),v=v.encoder_,Q=V.JSC$8941_hi,_.he(v,V.JSC$8941_lo),_.he(v,Q)}};
gPb=function(v,Q,V){_.Pq(v,Q,2);Td(v.encoder_,V.length);te(v,v.encoder_.end());te(v,V)};
m$S=function(v,Q,V,E){V!=null&&(Q=_.UZN(v,Q),E(V,v),_.vfZ(v,Q))};var I0Z,Q8x,VqQ,EfR,bjV,KIX,ijN,tqZ,psV;I0Z=FI();Q8x=FI();VqQ=FI();EfR=FI();bjV=FI();_.FIX=FI();_.Nq=FI();KIX=FI();ijN=FI();_.LIN=FI();tqZ=FI();psV=FI();_.emA=FI();_.Zja=FI();_.Lf=function(v,Q,V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,Q,V)};
_.Lf.prototype.toJSON=function(){return zh(this)};
_.Lf.prototype.serialize=function(v){return JSON.stringify(zh(this,v))};
var $j9=function(v,Q){if(Q==null||Q=="")return new v;Q=JSON.parse(Q);if(!Array.isArray(Q))throw Error("V");return new v(HEo(Q))};
_.Lf.prototype.getExtension=function(v){EfB(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v.fieldIndex);Q8b(this,v.fieldIndex);return v.ctor?v.isRepeated?v.getExtensionFn(this,v.ctor,v.fieldIndex,_.dZ(),v.JSC$8956_hasMessageId):v.getExtensionFn(this,v.ctor,v.fieldIndex,v.JSC$8956_hasMessageId):v.isRepeated?v.getExtensionFn(this,v.fieldIndex,_.dZ(),v.JSC$8956_hasMessageId):v.getExtensionFn(this,v.fieldIndex,v.defaultValue,v.JSC$8956_hasMessageId)};
_.Lf.prototype.clone=function(){var v=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=v[_.bx]|0;return D$G(this,v,Q)?Oj3(this,v,!0):new this.constructor(gY(v,Q,!1))};
_.Lf.prototype[Cj]=M$;_.Lf.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Kf=function(v,Q,V){this.$$binaryReaderFn=v;this.$$binaryWriterFn=Q;v=D0(I0Z);this.$$isMsg=!!v&&V===v||!1},bfb=Hj3(function(v,Q,V,E,b){if(v.nextWireType_!==2)return!1;
zs(v,na8(Q,E,V),b);return!0},vPo),FJB=Hj3(function(v,Q,V,E,b){if(v.nextWireType_!==2)return!1;
zs(v,na8(Q,E,V),b);return!0},vPo),Y9S=Symbol(),LJT=Symbol(),ebG=Symbol(),f5b=Symbol(),wqb=Symbol(),QEB,Vct;var XqQ,Ph8,xK,d$A,hmA,wsS,A7x,gB,TYS,YdR,y7S,c7V,f0Q,ChX,MqQ,OjS,D$V,Rm8,nfx;XqQ=function(v,Q){var V=new mZq;Gd9(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V,iV(Y9S,Tl3,ye3,Q));te(V,V.encoder_.end());v=new Uint8Array(V.totalLength_);Q=V.blocks_;for(var E=Q.length,b=0,F=0;F<E;F++){var t=Q[F];v.set(t,b);b+=t.length}V.blocks_=[v];return v};
Ph8=Hj3(function(v,Q,V,E,b){if(v.nextWireType_!==2)return!1;v=zs(v,N$([void 0,void 0],E),b);v=aN(v);E=Q[_.bx]|0;b=zq(E);if(E&2)throw Error();var F=mI(Q,V,b);if(F instanceof Od)(F.arrayState&2)!=0?(F=d$S(F),F.push(v),Xn(Q,E,V,F,b)):(Q=F,V=Q.keyToApi(v[0],!1,!0),v=v[1],v=Q.valueCtor?v===void 0?null:v:Q.valueToApi(v,!1,!0,void 0,!1,Q.arrayState),tI.prototype.set.call(Q,V,v));else if(Array.isArray(F)){var t=F[_.bx]|0;t&8192||tS(F,t|=8192);t&2&&(F=SdG(F),Xn(Q,E,V,F,b));F.push(v)}else Xn(Q,E,V,ZX([v]),
b);return!0},function(v,Q,V,E,b){if(Q instanceof Od)Q.forEach(function(p,Z){m$S(v,V,N$([Z,
p],E),b)});
else if(Array.isArray(Q)){for(var F=0;F<Q.length;F++){var t=Q[F];Array.isArray(t)&&m$S(v,V,N$(t,E),b)}ZX(Q)}});
xK=_.ec(function(v,Q,V){if(v.nextWireType_!==1)return!1;_.Z5(Q,V,BVp(v.decoder_));return!0},Rbb,psV);
d$A=_.ec(function(v,Q,V,E){if(v.nextWireType_!==1)return!1;_.hI(Q,V,E,BVp(v.decoder_));return!0},Rbb,psV);
hmA=_.ec(function(v,Q,V){if(v.nextWireType_!==5)return!1;_.Z5(Q,V,xZ8(v.decoder_));return!0},nPZ,tqZ);
wsS=_.DjQ(function(v,Q,V){if(v.nextWireType_!==5&&v.nextWireType_!==2)return!1;Q=_.Qn(Q,Q[_.bx]|0,V);v.nextWireType_==2?_.aXN(v,xZ8,Q):Q.push(xZ8(v.decoder_));return!0},function(v,Q,V){Q=_.OfE(_.HN,Q,!0);
if(Q!=null&&Q.length)for(_.Pq(v,V,2),Td(v.encoder_,Q.length*4),V=0;V<Q.length;V++){var E=v.encoder_;eQo(Q[V]);_.he(E,BN)}},tqZ);
A7x=_.ec(function(v,Q,V,E){if(v.nextWireType_!==5)return!1;_.hI(Q,V,E,xZ8(v.decoder_));return!0},nPZ,tqZ);
_.khA=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.lq(v.decoder_,_.wNQ));return!0},_.kP,_.Nq);
_.BC=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.lq(v.decoder_,jp));return!0},_.kP,_.Nq);
gB=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;v=_.lq(v.decoder_,jp);_.Z5(Q,V,v===0?void 0:v);return!0},_.kP,_.Nq);
TYS=_.ec(function(v,Q,V,E){if(v.nextWireType_!==0)return!1;_.hI(Q,V,E,_.lq(v.decoder_,jp));return!0},_.kP,_.Nq);
YdR=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.lq(v.decoder_,_.ux));return!0},S90,KIX);
_.s7=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.lq(v.decoder_,ZZG));return!0},S90,KIX);
_.WC=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.qq(v.decoder_));return!0},Jet,EfR);
y7S=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;v=_.qq(v.decoder_);_.Z5(Q,V,v===0?void 0:v);return!0},Jet,EfR);
c7V=_.ec(function(v,Q,V,E){if(v.nextWireType_!==0)return!1;_.hI(Q,V,E,_.qq(v.decoder_));return!0},Jet,EfR);
f0Q=_.ec(function(v,Q,V){if(v.nextWireType_!==1)return!1;_.Z5(Q,V,NVX(v.decoder_));return!0},_.xjo,_.LIN);
_.GhZ=_.DjQ(function(v,Q,V){if(v.nextWireType_!==1&&v.nextWireType_!==2)return!1;Q=_.Qn(Q,Q[_.bx]|0,V);v.nextWireType_==2?_.aXN(v,NVX,Q):Q.push(NVX(v.decoder_));return!0},function(v,Q,V){Q=_.OfE(BVZ,Q,!1);
if(Q!=null)for(var E=0;E<Q.length;E++)Nlr(v,V,Q[E])},_.LIN);
_.oq=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,gaa(v.decoder_));return!0},Blt,Q8x);
_.Xv=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;v=gaa(v.decoder_);_.Z5(Q,V,v===!1?void 0:v);return!0},Blt,Q8x);
ChX=_.ec(function(v,Q,V,E){if(v.nextWireType_!==0)return!1;_.hI(Q,V,E,gaa(v.decoder_));return!0},Blt,Q8x);
_.aq=_.ec(function(v,Q,V){if(v.nextWireType_!==2)return!1;_.Z5(Q,V,oaZ(v));return!0},sE9,VqQ);
_.rB=_.ec(function(v,Q,V){if(v.nextWireType_!==2)return!1;v=oaZ(v);_.Z5(Q,V,v===""?void 0:v);return!0},sE9,VqQ);
_.$K=_.ec(function(v,Q,V,E){if(v.nextWireType_!==2)return!1;_.hI(Q,V,E,oaZ(v));return!0},sE9,VqQ);
MqQ=_.DjQ(function(v,Q,V){if(v.nextWireType_!==2)return!1;v=oaZ(v);_.Qn(Q,Q[_.bx]|0,V).push(v);return!0},function(v,Q,V){Q=_.OfE(_.fj,Q,!0);
if(Q!=null)for(var E=0;E<Q.length;E++){var b=v,F=V,t=Q[E];t!=null&&gPb(b,F,ZEt(t))}},VqQ);
OjS=void 0;OjS=OjS===void 0?I0Z:OjS;_.Iq=new Kf(function(v,Q,V,E,b){if(v.nextWireType_!==2)return!1;E=N$(void 0,E);_.Qn(Q,Q[_.bx]|0,V).push(E);zs(v,E,b);return!0},function(v,Q,V,E,b){if(Array.isArray(Q)){for(var F=0;F<Q.length;F++)uIr(v,Q[F],V,E,b);
v=Q[_.bx]|0;v&1||tS(Q,v|1)}},OjS);
_.HC=Hj3(function(v,Q,V,E,b,F){if(v.nextWireType_!==2)return!1;var t=Q[_.bx]|0;x$9(Q,t,F,V,zq(t));Q=na8(Q,E,V);zs(v,Q,b);return!0},uIr);
_.m3=_.ec(function(v,Q,V){if(v.nextWireType_!==2)return!1;_.Z5(Q,V,_.XNS(v));return!0},_.jEE,_.emA);
D$V=_.ec(function(v,Q,V,E){if(v.nextWireType_!==2)return!1;_.hI(Q,V,E,_.XNS(v));return!0},_.jEE,_.emA);
_.U7=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.qq(v.decoder_)>>>0);return!0},WJS,bjV);
Rm8=_.ec(function(v,Q,V,E){if(v.nextWireType_!==0)return!1;_.hI(Q,V,E,_.qq(v.decoder_)>>>0);return!0},WJS,bjV);
_.v7=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.qq(v.decoder_));return!0},_.oPo,_.Zja);
_.QB=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;v=_.qq(v.decoder_);_.Z5(Q,V,v===0?void 0:v);return!0},_.oPo,_.Zja);
nfx=_.ec(function(v,Q,V){if(v.nextWireType_!==0)return!1;_.Z5(Q,V,_.lq(v.decoder_,dZt));return!0},function(v,Q,V){Q=xZo(Q);
if(Q!=null&&(a0B(Q),Q!=null))switch(_.Pq(v,V,0),typeof Q){case "number":v=v.encoder_;V=Q;Q=V<0;V=Math.abs(V)*2;LA9(V);V=BN;var E=gV;Q&&(V==0?E==0?E=V=4294967295:(E--,V=4294967295):V--);BN=V;gV=E;Ae(v,BN,gV);break;case "bigint":v=v.encoder_;Q=Q<<BigInt(1)^Q>>BigInt(63);BN=Number(BigInt.asUintN(32,Q));gV=Number(BigInt.asUintN(32,Q>>BigInt(32)));Ae(v,BN,gV);break;default:HZa(v.encoder_,Q)}},ijN);var SdV=function(){var v=l0a,Q=qdN;this.fieldIndex=175237375;this.ctor=Q;this.isRepeated=0;this.getExtensionFn=_.TY;this.defaultValue=void 0;this.JSC$8956_hasMessageId=v.messageId!=null?Sp:void 0};
SdV.prototype.register=function(){vC(this)};var zmV=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(zmV,_.Lf);var J7Z=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(J7Z,_.Lf);var mjE=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(mjE,_.Lf);var NYa=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(NYa,_.Lf);var x$N=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(x$N,_.Lf);var BYZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(BYZ,_.Lf);var gfN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(gfN,_.Lf);gfN.prototype.getData=function(){return _.dB(this,2)};var s8V=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(s8V,_.Lf);var unp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(unp,_.Lf);unp.prototype.getStyle=function(){return _.TY(this,zmV,1)};var Cf=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Cf,_.Lf);Cf.prototype.getPayloadCase=function(){return _.wB(this,D5)};
Cf.prototype.getStyle=function(){return _.O7(this,unp,6,D5)};
var j8a=function(){var v=new Cf,Q=new x$N;return _.O9(v,7,D5,Q)},WIQ=function(){var v=new Cf,Q=new BYZ;
return _.O9(v,8,D5,Q)},D5=[1,
2,3,4,5,6,7,8];var ofA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(ofA,_.Lf);var XsZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(XsZ,_.Lf);var a0R=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(a0R,_.Lf);var r7a=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(r7a,_.Lf);var $$a=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f($$a,_.Lf);var I0p=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(I0p,_.Lf);var HjS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(HjS,_.Lf);var m$A=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(m$A,_.Lf);m$A.prototype.getData=function(){return _.dB(this,2)};var U$p=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(U$p,_.Lf);var Hfb=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Hfb,_.Lf);Hfb.prototype.getPayloadCase=function(){return _.wB(this,VB)};
var VB=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ec=function(v,Q){v=Error.call(this,v);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=Q===void 0?2:Q};
_.f(Ec,Error);var vP8=Promise;var QER=function(v){this.channelPromise=v};
QER.prototype.send=function(v,Q,V){this.channelPromise.then(function(E){E.send(v,Q,V)})};var VcX=function(v,Q){this.data=v;this.channel=Q};
VcX.prototype.reply=function(v,Q,V){this.channel.send(v,Q,V)};var EPN=function(v){this.JSC$9022_port_=v};
EPN.prototype.send=function(v,Q,V){V=V===void 0?[]:V;var E=new MessageChannel;bfx(E.port1,Q);this.JSC$9022_port_.postMessage(v,[E.port2].concat(V))};
var FJR=function(v,Q){bfx(v,Q);return new EPN(v)},bfx=function(v,Q){Q&&(v.onmessage=function(V){Q(new VcX(V.data,FJR(V.ports[0])))})};var KJx=function(v){this.verifier_=v};
KJx.prototype.verify=function(v){return this.verifier_(v)};
var ifN=function(v){var Q=Object.create(null);(typeof v==="string"?[v]:v).forEach(function(V){if(V==="null")throw Error("X");Q[V]=!0});
return function(V){return Q[V]===!0}};_.LJQ=function(){if(!_.bb.addEventListener||!Object.defineProperty)return!1;var v=!1,Q=Object.defineProperty({},"passive",{get:function(){v=!0}});
try{var V=function(){};
_.bb.addEventListener("test",V,Q);_.bb.removeEventListener("test",V,Q)}catch(E){}return v}();var tcS;_.by=function(v){var Q=v.destination;var V=v.iframe;var E=v.origin;var b=v.channelName===void 0?"ZNWN1d":v.channelName;var F=v.onMessage===void 0?void 0:v.onMessage;v=v.onEstablished===void 0?void 0:v.onEstablished;return tcS({destination:Q,getSource:function(){return V.contentWindow},
originVerifier:E instanceof KJx?E:typeof E==="function"?new KJx(E):new KJx(ifN(E)),channelName:b,onMessage:F,onEstablished:v})};
tcS=function(v){var Q=v.destination;var V=v.getSource;var E=v.originVerifier;var b=v.token===void 0?void 0:v.token;var F=v.channelName;var t=v.onMessage===void 0?void 0:v.onMessage;var p=v.onEstablished===void 0?void 0:v.onEstablished;return new QER(new vP8(function(Z,d){var w=function(A){A.source&&A.source===V()&&E.verify(A.origin)&&(A.data.n||A.data)===F&&(Q.removeEventListener("message",w,!1),b&&A.data.t!==b?d(Error("Y`"+F+"`"+b+"`"+A.data.t)):(Z(FJR(A.ports[0],t)),p&&p(A)))};
Q.addEventListener("message",w,!1)}))};var pqZ=function(v){try{v()}catch(Q){Fr(Q)}};var ZfR=function(v){var Q=this;var V=v.getMessageType;var E=v.onUnregisteredMessage===void 0?function(){}:v.onUnregisteredMessage;
var b=v.onBeforeRegisteredMessage===void 0?function(){}:v.onBeforeRegisteredMessage;
v=v.onAfterRegisteredMessage===void 0?function(){}:v.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=V;this.onUnregisteredMessage_=E;this.onBeforeRegisteredMessage_=b;this.onAfterRegisteredMessage_=v;this.onMessage=function(F){return ebV(Q,F)}};
ZfR.prototype.register=function(v,Q){this.registry_.set(v,Q);return this};
var ebV=function(v,Q){var V=v.getMessageType_(Q.data),E=v.registry_.get(V);E?(pqZ(function(){return v.onBeforeRegisteredMessage_(Q,V)}),pqZ(function(){return E(Q)}),pqZ(function(){return v.onAfterRegisteredMessage_(Q,V)})):pqZ(function(){return v.onUnregisteredMessage_(Q,V)})};var PVR=function(v){this.JSC$9039_channel_=v},hb8,wqx;
PVR.prototype.send=function(v,Q,V){this.JSC$9039_channel_.send(zh(v),Q,V)};
_.djV=function(v,Q){return function(V){var E=new v(V.data);return Q(new VcX(E,V.channel))}};
hb8=function(v){return function(Q){return v(new VcX(Q.data,new PVR(Q.channel)))}};
wqx=function(v,Q){return hb8(_.djV(v,Q))};var AeZ=function(v,Q,V,E){this.registry=v;this.delegate=Q;this.receiveMessageConstructor=V;this.createInitMessage=E;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},I5Q=function(v){var Q=new ZfR({getMessageType:v.getPayloadCase});
return new AeZ(Q,new PVR(_.by({iframe:v.child,destination:window,origin:v.origin,channelName:v.channelName,onMessage:wqx(v.receiveMessageConstructor,Q.onMessage)})),v.receiveMessageConstructor,v.createInitMessage)},kdp=function(v,Q){v.createInitMessage=Q};
AeZ.prototype.send=function(v){if(!this.initialised)throw new Ec("Attempted to send a message before initialisation.");this.delegate.send(v)};
var TlS=function(v,Q){return _.e(function(V){if(!v.initialised)throw new Ec("Attempted to send a message before initialisation.");return V.return(new Promise(function(E){v.delegate.send(Q,wqx(v.receiveMessageConstructor,E))}))})};
AeZ.prototype.init=function(){var v=this;return _.e(function(Q){if(v.initialised)throw new Ec("Attempted to initialise twice. The SDK can only be initialised once.");if(v.createInitMessage!==void 0){var V=v.delegate,E=V.send,b=v.createInitMessage;var F=new J7Z;var t=[].concat(_.ui(v.features));F=_.Ud(F,1,t,_.Kj);E.call(V,b.call(v,F))}v.initialised=!0;_.q1(Q)})};
var FZ=function(v,Q){if(v.initialised)throw new Ec('Attempted to set up API "'+Q+'" after initialisation. All APIs must be set up before initialising the SDK.');v.features.add(Q);return v.registry};
_.hr.Object.defineProperties(AeZ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Y9A=function(v){this.channel=v;this.registered=!1};
Y9A.prototype.update=function(v){if(this.channel.isInitialised){if(!this.registered)throw new Ec("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var Q=new Cf;var V=new NYa;V=_.Tc(V,1,v);Q=_.O9(Q,2,D5,V);this.channel.send(Q)}else this.register();this.JSC$9053_audioEnabled=v};
Y9A.prototype.register=function(){FZ(this.channel,1);this.registered=!0};
Y9A.prototype.isAudioEnabled=function(){return this.JSC$9053_audioEnabled};var yeS=function(v){this.channel=v};
_.K=yeS.prototype;_.K.onFirstFrameReady=function(v){FZ(this.channel,2).register(11,function(Q){Q=_.O7(Q.data,ofA,11,VB);if(!Q)throw new Ec("Unexpectedly nonexistent GameFirstFrameReadyEvent");v(_.fN(Q,1))})};
_.K.onReady=function(v){FZ(this.channel,2).register(4,function(Q){Q=_.O7(Q.data,a0R,4,VB);if(!Q)throw new Ec("Unexpectedly nonexistent GameReadyEvent");v(_.fN(Q,1))})};
_.K.onLevelComplete=function(v){FZ(this.channel,2).register(5,function(Q){Q=_.O7(Q.data,r7a,5,VB);if(!Q)throw new Ec("Unexpectedly nonexistent LevelCompleteEvent");v(_.fN(Q,1),_.h5(Q,2))})};
_.K.onGameOver=function(v){FZ(this.channel,2).register(6,function(Q){Q=_.O7(Q.data,XsZ,6,VB);if(!Q)throw new Ec("Unexpectedly nonexistent GameOverEvent");v(_.fN(Q,1))})};
_.K.pause=function(){var v=this;if(!this.channel.isInitialised)return FZ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ec("Using unregistered Game Feature: pause.");var Q=j8a();return new Promise(function(V){return _.e(function(E){if(E.nextAddress==1)return E.yield(TlS(v.channel,Q),2);V();_.q1(E)})})};
_.K.resume=function(){var v=this;if(!this.channel.isInitialised)return FZ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ec("Using unregistered Game Feature: resume.");var Q=WIQ();return new Promise(function(V){return _.e(function(E){if(E.nextAddress==1)return E.yield(TlS(v.channel,Q),2);V();_.q1(E)})})};var ceq=function(v){this.channel=v};
ceq.prototype.onReady=function(v){FZ(this.channel,5).register(8,function(Q){if(!_.O7(Q.data,$$a,8,VB))throw new Ec("Unexpectedly nonexistent PageReadyEvent");v()})};var f5x=function(v){this.channel=v};
f5x.prototype.onChange=function(v){FZ(this.channel,3).register(7,function(Q){Q=_.O7(Q.data,I0p,7,VB);if(!Q)throw new Ec("Unexpectedly nonexistent ScoreEvent");v(_.fN(Q,1),_.h5(Q,2))})};var GdN={load:function(){throw new Ec("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ec("Storage used, but storage.onSave() listener not set!");}},CVN=function(v){this.channel=v;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},McN=function(v){FZ(v.channel,4).register(2,GdN.load).register(3,GdN.save);
v.initialSetupDone=!0};
CVN.prototype.onLoad=function(v){this.initialSetupDone||McN(this);this.loadRegistered||(this.loadRegistered=!0,FZ(this.channel,4).register(2,function(Q){var V,E,b;return _.e(function(F){if(F.nextAddress==1){V=_.O7(Q.data,HjS,2,VB);if(!V)throw new Ec("Unexpectedly nonexistent StorageLoad");E=_.fN(V,1);return F.yield(v(E),2)}b=F.yieldResult;var t=Q.reply,p=new Cf;var Z=new gfN;Z=_.SS(Z,1,E);Z=_.yh(Z,2,_.lx(b,!1));p=_.O9(p,3,D5,Z);t.call(Q,p);_.q1(F)})}))};
CVN.prototype.onSave=function(v){this.initialSetupDone||McN(this);this.saveRegistered||(this.saveRegistered=!0,FZ(this.channel,4).register(3,function(Q){var V,E,b;return _.e(function(F){if(F.nextAddress==1){V=_.O7(Q.data,m$A,3,VB);if(!V)throw new Ec("Unexpectedly nonexistent StorageSave");E=_.fN(V,1);b=hQx(V.getData());return F.yield(v(E,b),2)}var t=Q.reply,p=new Cf;var Z=new s8V;Z=_.SS(Z,1,E);p=_.O9(p,4,D5,Z);t.call(Q,p);_.q1(F)})}))};var OfZ=function(v){this.channel=v};
OfZ.prototype.update=function(v){if(!this.channel.features.has(6))throw new Ec("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var Q=new Cf,V=new unp;v=_.Mj(V,1,v);Q=_.O9(Q,6,D5,v);this.channel.send(Q)};
OfZ.prototype.register=function(){FZ(this.channel,6)};var Dja=function(v){this.channel=v;this.userActivityLoggingIntervalMs=0};
Dja.prototype.onUserActivity=function(v,Q){this.userActivityLoggingIntervalMs=Q;FZ(this.channel,7).register(9,function(V){if(!_.O7(V.data,U$p,9,VB))throw new Ec("Unexpectedly nonexistent ClickEvent");v()})};var Rbx=function(v){var Q=this;this.channel=v;this.init=this.channel.init.bind(this.channel);this.page=new ceq(this.channel);this.game=new yeS(this.channel);this.audio=new Y9A(this.channel);this.score=new f5x(this.channel);this.storage=new CVN(this.channel);this.style=new OfZ(this.channel);this.userActivity=new Dja(this.channel);kdp(this.channel,function(V){var E=new mjE;V=_.Mj(E,1,V);V=_.DD(V,3,Q.userActivity.userActivityLoggingIntervalMs);E=Q.audio.isAudioEnabled();E!==void 0&&_.Tc(V,2,E);E=new Cf;
return _.O9(E,5,D5,V)})};var nPp=function(){this.timedFunctionContext=0};
nPp.prototype.timeExecution=function(v,Q){var V=this;return function(){var E=_.aE.apply(0,arguments);V.timedFunctionContext=v;return Q.apply(null,_.ui(E))}};var l5p=function(){var v={};this.priorityTasks=(v[3]=[],v[2]=[],v[1]=[],v);this.isFlushing=!1},GT=function(v,Q,V){var E=q9X(v,V);
v.priorityTasks[V].push(Q);E&&v.priorityTasks[V].length===1&&v.flush()},q9X=function(v,Q){return Object.keys(v.priorityTasks).map(function(V){return Number(V)}).filter(function(V){return!isNaN(V)&&V>Q}).every(function(V){return v.priorityTasks[V].length===0})};
l5p.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(v){return v.length>0});)S9q(this,3),S9q(this,2),S9q(this,1)}catch(v){throw Object.values(this.priorityTasks).forEach(function(Q){return void Q.splice(0,Q.length)}),v;
}finally{this.isFlushing=!1}}};
var S9q=function(v,Q){for(;q9X(v,Q)&&v.priorityTasks[Q].length>0;)v.priorityTasks[Q][0](),v.priorityTasks[Q].shift()};
_.hr.Object.defineProperties(l5p.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(v){return v.length>0})}}});var Fko={};var zbV=globalThis.trustedTypes,vwT=zbV,V1Z;var nf=function(v){this.privateDoNotAccessOrElseWrappedResourceUrl=v};
nf.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var JeX,Nla,xj8,BlX,gPx,sEN,uIa,jEZ;JeX=_.s$([""]);Nla=g3(["\x00"],["\\0"]);xj8=g3(["\n"],["\\n"]);BlX=g3(["\x00"],["\\u0000"]);gPx=_.s$([""]);sEN=g3(["\x00"],["\\0"]);uIa=g3(["\n"],["\\n"]);jEZ=g3(["\x00"],["\\u0000"]);_.WJA=b$h(function(v){return v(JeX)})||b$h(function(v){return v(Nla)})||b$h(function(v){return v(xj8)})||b$h(function(v){return v(BlX)});
_.oP8=_.zd(gPx)&&_.zd(sEN)&&_.zd(uIa)&&_.zd(jEZ);var uV;_.Je=function(v,Q){this.privateDoNotAccessOrElseWrappedUrl=Q};
_.Je.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Xqa=Nj("about:blank");uV=Nj("about:invalid#zClosurez");var Kk3=function(v){this.isValid=v},a5V=new Kk3(function(v){return/^[^:]*([/?#]|$)/.test(v)}),reA=gl("data"),$jN=gl("http"),I5a=gl("https"),Hfx=gl("ftp"),mjZ=gl("mailto"),UjR=gl("intent"),vwQ=gl("vnd.youtube"),i$S=[reA,
$jN,I5a,mjZ,Hfx,a5V],t1Z=RE(function(){return typeof URL==="function"}),Qax=["data:",
"http:","https:","mailto:","ftp:"],ekE=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var IE=function(v){this.privateDoNotAccessOrElseWrappedHtml=v};
IE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var prZ=RE(function(){return new IE(zbV?zbV.emptyHTML:"")});var V1p={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"},Pit=function(v,Q){var V=Error.call(this,v+" cannot be used with intent "+V1p[Q]);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.type=v;this.intent=Q;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.f(Pit,Error);_.bi=function(v){this.privateDoNotAccessOrElseWrappedScript=v};
_.bi.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var hkQ=function(v){this.privateDoNotAccessOrElseWrappedAttributePrefix=v};
hkQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var wch="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var ZV=function(v){this.privateDoNotAccessOrElseWrappedStyleSheet=v};
ZV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var jJ9=function(v){var Q=_.Q9("window.location.href");v==null&&(v='Unknown Error of type "null/undefined"');if(typeof v==="string")return{message:v,name:"Unknown error",lineNumber:"Not available",fileName:Q,stack:"Not available"};var V=!1;try{var E=v.lineNumber||v.line||"Not available"}catch(t){E="Not available",V=!0}try{var b=v.fileName||v.filename||v.sourceURL||_.bb.$googDebugFname||Q}catch(t){b="Not available",V=!0}Q=Ewq(v);if(!(!V&&v.lineNumber&&v.fileName&&v.stack&&v.message&&v.name)){V=v.message;
if(V==null){if(v.constructor&&v.constructor instanceof Function){if(v.constructor.name)V=v.constructor.name;else if(V=v.constructor,Ko[V])V=Ko[V];else{V=String(V);if(!Ko[V]){var F=/function\s+([^\(]+)/m.exec(V);Ko[V]=F?F[1]:"[Anonymous]"}V=Ko[V]}V='Unknown Error of type "'+V+'"'}else V="Unknown Error of unknown type";typeof v.toString==="function"&&Object.prototype.toString!==v.toString&&(V+=": "+v.toString())}return{message:V,name:v.name||"UnknownError",lineNumber:E,fileName:b,stack:Q||"Not available"}}return{message:v.message,
name:v.name,lineNumber:v.lineNumber,fileName:v.fileName,stack:Q}},Ewq=function(v,Q){Q||(Q={});
Q[b$N(v)]=!0;var V=v.stack||"",E=v.cause;E&&!Q[b$N(E)]&&(V+="\nCaused by: ",E.stack&&E.stack.indexOf(E.toString())==0||(V+=typeof E==="string"?E:E.message+"\n"),V+=Ewq(E,Q));v=v.errors;if(Array.isArray(v)){E=1;var b;for(b=0;b<v.length&&!(E>4);b++)Q[b$N(v[b])]||(V+="\nInner error "+E++ +": ",v[b].stack&&v[b].stack.indexOf(v[b].toString())==0||(V+=typeof v[b]==="string"?v[b]:v[b].message+"\n"),V+=Ewq(v[b],Q));b<v.length&&(V+="\n... "+(v.length-b)+" more inner errors")}return V},b$N=function(v){var Q=
"";
typeof v.toString==="function"&&(Q=""+v);return Q+v.stack},Ko={};var Fk8,P5,Qw,i$A,LkN,KkS,Uh,zi,pcV;Fk8=function(v,Q){for(var V=v.split("%s"),E="",b=Array.prototype.slice.call(arguments,1);b.length&&V.length>1;)E+=V.shift()+b.shift();return E+V.join("%s")};
_.EG=function(v){return encodeURIComponent(String(v))};
P5=function(v){return decodeURIComponent(v.replace(/\+/g," "))};
Qw=function(v){ltq.test(v)&&(v.indexOf("&")!=-1&&(v=v.replace(CbZ,"&amp;")),v.indexOf("<")!=-1&&(v=v.replace(MZX,"&lt;")),v.indexOf(">")!=-1&&(v=v.replace(OEV,"&gt;")),v.indexOf('"')!=-1&&(v=v.replace(DmN,"&quot;")),v.indexOf("'")!=-1&&(v=v.replace(RTa,"&#39;")),v.indexOf("\x00")!=-1&&(v=v.replace(nQR,"&#0;")));return v};
i$A=function(v){var Q={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var V=_.bb.document.createElement("div");return v.replace(KkS,function(E,b){var F=Q[E];if(F)return F;b.charAt(0)=="#"&&(b=Number("0"+b.slice(1)),isNaN(b)||(F=String.fromCharCode(b)));F||(_.tT(V,Hq(E+" ")),F=V.firstChild.nodeValue.slice(0,-1));return Q[E]=F})};
LkN=function(v){return v.replace(/&([^;]+);/g,function(Q,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))?Q:String.fromCharCode(V)}})};
KkS=/&([^;\s<&]+);?/g;_.OBT=function(v){return String(v).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.t1p=String.prototype.repeat?function(v,Q){return v.repeat(Q)}:function(v,Q){return Array(Q+1).join(v)};
_.iy=function(v,Q){if(!Number.isFinite(v))return String(v);v=String(v);var V=v.indexOf(".");V===-1&&(V=v.length);var E=v[0]==="-"?"-":"";E&&(v=v.substring(1));return E+(0,_.t1p)("0",Math.max(0,Q-V))+v};
Uh=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.IC()).toString(36)};
zi=function(v){for(var Q=0,V=0;V<v.length;++V)Q=31*Q+v.charCodeAt(V)>>>0;return Q};
_.tY=function(v){return String(v).replace(/\-([a-z])/g,function(Q,V){return V.toUpperCase()})};
_.LC=function(v){return String(v).replace(/([A-Z])/g,"-$1").toLowerCase()};
pcV=function(v){return v.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Q,V,E){return V+E.toUpperCase()})};var ekZ=function(){this.names=new Map};
ekZ.prototype.getName=function(v){var Q=this.names.get(v);if(Q)return Q;var V;Q=(V=v.description)!=null?V:Uh();this.names.set(v,Q);return Q};var Z$S=function(v){var Q=Error.call(this,v?v.length+" errors occurred during unsubscription:\n"+v.map(function(V,E){return E+1+") "+V.toString()}).join("\n  "):"");
this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.errors=v;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.f(Z$S,Error);var du=function(v){this.initialTeardown=v;this.closed=!1;this._teardowns=this._parentage=null};
_.K=du.prototype;
_.K.unsubscribe=function(){if(!this.closed){this.closed=!0;var v=this._parentage;if(Array.isArray(v))for(var Q=_.L(v),V=Q.next();!V.done;V=Q.next())V.value.remove(this);else v==null||v.remove(this);Q=this.initialTeardown;if(Pc(Q))try{Q()}catch(F){var E=F instanceof Z$S?F.errors:[F]}var b=this._teardowns;if(b)for(this._teardowns=null,Q=_.L(b),V=Q.next();!V.done;V=Q.next()){V=V.value;try{Pc(V)?V():V.unsubscribe()}catch(F){V=void 0,E=(V=E)!=null?V:[],F instanceof Z$S?E=[].concat(_.ui(E),_.ui(F.errors)):
E.push(F)}}if(E)throw new Z$S(E);}};
_.K.add=function(v){if(v&&v!==this)if(this.closed)Pc(v)?v():v.unsubscribe();else{if(v instanceof du){if(v.closed||v._hasParent(this))return;v._addParent(this)}var Q;(this._teardowns=(Q=this._teardowns)!=null?Q:[]).push(v)}};
_.K._hasParent=function(v){var Q=this._parentage;return Q===v||Array.isArray(Q)&&Q.includes(v)};
_.K._addParent=function(v){var Q=this._parentage;this._parentage=Array.isArray(Q)?(Q.push(v),Q):Q?[Q,v]:v};
_.K._removeParent=function(v){var Q=this._parentage;Q===v?this._parentage=null:Array.isArray(Q)&&yTQ(Q,v)};
_.K.remove=function(v){var Q=this._teardowns;Q&&yTQ(Q,v);v instanceof du&&v._removeParent(this)};
var PiX=new du;PiX.closed=!0;du.JSC$9149_EMPTY=PiX;var fVT=function(){setTimeout.apply(null,_.ui(_.aE.apply(0,arguments)))};var Lo=function(v){du.call(this);this.JSC$9154_isStopped=!1;this.destination=v instanceof Lo?v:new tZ(!v||Pc(v)?{next:v!=null?v:void 0}:v);cTQ(v)&&v.add(this)};
_.f(Lo,du);Lo.JSC$9149_EMPTY=du.JSC$9149_EMPTY;Lo.create=function(v,Q,V){return new po(v,Q,V)};
_.K=Lo.prototype;_.K.next=function(v){this.JSC$9154_isStopped||this._next(v)};
_.K.error=function(v){this.JSC$9154_isStopped||(this.JSC$9154_isStopped=!0,this._error(v))};
_.K.complete=function(){this.JSC$9154_isStopped||(this.JSC$9154_isStopped=!0,this._complete())};
_.K.unsubscribe=function(){this.closed||(this.JSC$9154_isStopped=!0,du.prototype.unsubscribe.call(this))};
_.K._next=function(v){this.destination.next(v)};
_.K._error=function(v){this.destination.error(v);this.unsubscribe()};
_.K._complete=function(){this.destination.complete();this.unsubscribe()};
var tZ=function(v){this.partialObserver=v};
tZ.prototype.next=function(v){var Q=this.partialObserver;if(Q.next)try{Q.next(v)}catch(V){wu(V)}};
tZ.prototype.error=function(v){var Q=this.partialObserver;if(Q.error)try{Q.error(v)}catch(V){wu(V)}else wu(v)};
tZ.prototype.complete=function(){var v=this.partialObserver;if(v.complete)try{v.complete()}catch(Q){wu(Q)}};
var po=function(v,Q,V){Lo.call(this);var E;Pc(v)||!v?E={next:v!=null?v:void 0,error:Q!=null?Q:void 0,complete:V!=null?V:void 0}:E=v;this.destination=new tZ(E)};
_.f(po,Lo);po.JSC$9149_EMPTY=Lo.JSC$9149_EMPTY;po.create=Lo.create;var Yw=typeof Symbol==="function"&&Symbol.observable||"@@observable";var TC=function(v){v&&(this._subscribe=v)};
_.K=TC.prototype;_.K.lift=function(v){var Q=new TC;Q.source=this;Q.operator=v;return Q};
_.K.subscribe=function(v,Q,V){v=v&&v instanceof Lo||v&&Pc(v.next)&&Pc(v.error)&&Pc(v.complete)&&cTQ(v)?v:new po(v,Q,V);Q=this.operator;V=this.source;v.add(Q?Q.call(v,V):V?this._subscribe(v):this._trySubscribe(v));return v};
_.K._trySubscribe=function(v){try{return this._subscribe(v)}catch(Q){v.error(Q)}};
_.K.forEach=function(v,Q){var V=this;Q=Ci0(Q);return new Q(function(E,b){var F=V.subscribe(function(t){try{v(t)}catch(p){b(p),F==null||F.unsubscribe()}},b,E)})};
_.K._subscribe=function(v){var Q;return(Q=this.source)==null?void 0:Q.subscribe(v)};
TC.prototype[Yw]=function(){return this};
TC.prototype.pipe=function(){var v=_.aE.apply(0,arguments);return v.length?GCQ(v)(this):this};
TC.create=function(v){return new TC(v)};var d1a=function(){var v=Error.call(this,"object unsubscribed");this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.f(d1a,Error);var yx=function(){this.observers=[];this.hasError=this.JSC$9170_isStopped=this.closed=!1;this.thrownError=null};
_.f(yx,TC);_.K=yx.prototype;_.K.lift=function(v){var Q=new e3(this,this);Q.operator=v;return Q};
_.K._throwIfClosed=function(){if(this.closed)throw new d1a;};
_.K.next=function(v){this._throwIfClosed();if(!this.JSC$9170_isStopped){var Q=this.observers.slice();Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V.value.next(v)}};
_.K.error=function(v){this._throwIfClosed();if(!this.JSC$9170_isStopped){this.hasError=this.JSC$9170_isStopped=!0;this.thrownError=v;for(var Q=this.observers;Q.length;)Q.shift().error(v)}};
_.K.complete=function(){this._throwIfClosed();if(!this.JSC$9170_isStopped){this.JSC$9170_isStopped=!0;for(var v=this.observers;v.length;)v.shift().complete()}};
_.K.unsubscribe=function(){this.JSC$9170_isStopped=this.closed=!0;this.observers=null};
_.K._trySubscribe=function(v){this._throwIfClosed();return TC.prototype._trySubscribe.call(this,v)};
_.K._subscribe=function(v){this._throwIfClosed();this._checkFinalizedStatuses(v);return this._innerSubscribe(v)};
_.K._innerSubscribe=function(v){var Q=this,V=this.JSC$9170_isStopped,E=this.observers;return this.hasError||V?du.JSC$9149_EMPTY:(E.push(v),new du(function(){return yTQ(Q.observers,v)}))};
_.K._checkFinalizedStatuses=function(v){var Q=this.thrownError,V=this.JSC$9170_isStopped;this.hasError?v.error(Q):V&&v.complete()};
yx.create=function(v,Q){return new e3(v,Q)};
var e3=function(v,Q){yx.call(this);this.destination=v;this.source=Q};
_.f(e3,yx);e3.create=yx.create;e3.prototype.next=function(v){var Q,V;(Q=this.destination)==null||(V=Q.next)==null||V.call(Q,v)};
e3.prototype.error=function(v){var Q,V;(Q=this.destination)==null||(V=Q.error)==null||V.call(Q,v)};
e3.prototype.complete=function(){var v,Q;(v=this.destination)==null||(Q=v.complete)==null||Q.call(v)};
e3.prototype._subscribe=function(v){var Q,V;return(V=(Q=this.source)==null?void 0:Q.subscribe(v))!=null?V:du.JSC$9149_EMPTY};var H4=function(v){yx.call(this);this._value=v};
_.f(H4,yx);H4.create=yx.create;H4.prototype._subscribe=function(v){var Q=yx.prototype._subscribe.call(this,v);!Q.closed&&v.next(this._value);return Q};
H4.prototype.getValue=function(){var v=this.thrownError,Q=this._value;if(this.hasError)throw v;this._throwIfClosed();return Q};
H4.prototype.next=function(v){yx.prototype.next.call(this,this._value=v)};
_.hr.Object.defineProperties(H4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var ru=new TC(function(v){return v.complete()});var Rk9=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var zkZ=function(v){return v&&typeof v.length==="number"&&typeof v!=="function"};var hka={now:function(){return(hka.delegate||Date).now()},
delegate:void 0};var Lw=function(v,Q,V){v=v===void 0?Infinity:v;Q=Q===void 0?Infinity:Q;V=V===void 0?hka:V;yx.call(this);this.bufferSize=v;this.windowTime=Q;this.timestampProvider=V;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=Q===Infinity;this.bufferSize=Math.max(1,v);this.windowTime=Math.max(1,Q)};
_.f(Lw,yx);Lw.create=yx.create;Lw.prototype.next=function(v){var Q=this.buffer,V=this.infiniteTimeWindow,E=this.timestampProvider,b=this.windowTime;this.JSC$9170_isStopped||(Q.push(v),!V&&Q.push(E.now()+b));wcN(this);yx.prototype.next.call(this,v)};
Lw.prototype._subscribe=function(v){this._throwIfClosed();wcN(this);for(var Q=this._innerSubscribe(v),V=this.infiniteTimeWindow,E=this.buffer.slice(),b=0;b<E.length&&!v.closed;b+=V?1:2)v.next(E[b]);this._checkFinalizedStatuses(v);return Q};
var wcN=function(v){var Q=v.bufferSize,V=v.timestampProvider,E=v.buffer;v=v.infiniteTimeWindow;var b=(v?1:2)*Q;Q<Infinity&&b<E.length&&E.splice(0,E.length-b);if(!v){Q=V.now();V=0;for(v=1;v<E.length&&E[v]<=Q;v+=2)V=v;V&&E.splice(0,V+1)}};var kCx=function(v,Q){Q=Q===void 0?ATN:Q;this.schedulerActionCtor=v;this.now=Q};
kCx.prototype.schedule=function(v,Q,V){Q=Q===void 0?0:Q;return(new this.schedulerActionCtor(this,v)).schedule(V,Q)};
var ATN=hka.now;var MST=function(){var v=Error.call(this,"no elements in sequence");this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.f(MST,Error);var xw=function(v,Q,V,E,b){Lo.call(this,v);this.onUnsubscribe=b;Q&&(this._next=function(F){try{Q(F)}catch(t){this.destination.error(t)}});
V&&(this._error=function(F){try{V(F)}catch(t){this.destination.error(t)}this.unsubscribe()});
E&&(this._complete=function(){try{E()}catch(F){this.destination.error(F)}this.unsubscribe()})};
_.f(xw,Lo);xw.JSC$9149_EMPTY=Lo.JSC$9149_EMPTY;xw.create=Lo.create;xw.prototype.unsubscribe=function(){var v;this.closed||(v=this.onUnsubscribe)!=null&&v.call(this);Lo.prototype.unsubscribe.call(this)};var Kw=function(v,Q){this.source=v;this.subjectFactory=Q;this._subject=null;this._refCount=0;this._connection=null};
_.f(Kw,TC);Kw.create=TC.create;Kw.prototype._subscribe=function(v){return TuX(this).subscribe(v)};
var TuX=function(v){var Q=v._subject;if(!Q||Q.JSC$9170_isStopped)v._subject=v.subjectFactory();return v._subject};
Kw.prototype._teardown=function(){this._refCount=0;var v=this._connection;this._subject=this._connection=null;v==null||v.unsubscribe()};
Kw.prototype.connect=function(){var v=this,Q=this._connection;if(!Q){Q=this._connection=new du;var V=TuX(this);Q.add(this.source.subscribe(new xw(V,void 0,function(E){v._teardown();V.error(E)},function(){v._teardown();
V.complete()},function(){return v._teardown()})));
Q.closed&&(this._connection=null,Q=du.JSC$9149_EMPTY)}return Q};var aVT=Array.isArray;var $1h=Array.isArray,Y_V=Object,IVB=Y_V.getPrototypeOf,H$r=Y_V.prototype,m1Z=Y_V.keys;var Wc=function(v,Q,V){Lo.call(this,v);this._next=Q;this.shouldComplete=V};
_.f(Wc,Lo);Wc.JSC$9149_EMPTY=Lo.JSC$9149_EMPTY;Wc.create=Lo.create;Wc.prototype._complete=function(){this.shouldComplete()?Lo.prototype._complete.call(this):this.unsubscribe()};var iwS=["addListener","removeListener"],KQQ=["addEventListener","removeEventListener"],tSQ=["on","off"];var Zy=function(){du.call(this)};
_.f(Zy,du);Zy.JSC$9149_EMPTY=du.JSC$9149_EMPTY;Zy.prototype.schedule=function(){return this};var yTa=function(v,Q){return setInterval.apply(null,[v,Q].concat(_.ui(_.aE.apply(2,arguments))))};var P7=function(v,Q){du.call(this);this.scheduler=v;this.work=Q;this.pending=!1};
_.f(P7,Zy);P7.JSC$9149_EMPTY=Zy.JSC$9149_EMPTY;P7.prototype.schedule=function(v,Q){Q=Q===void 0?0:Q;if(this.closed)return this;this.state=v;v=this.id;var V=this.scheduler;v!=null&&(this.id=cTa(this,v,Q));this.pending=!0;this.delay=Q;this.id=this.id||this.requestAsyncId(V,this.id,Q);return this};
P7.prototype.requestAsyncId=function(v,Q,V){V=V===void 0?0:V;return yTa(v.flush.bind(v,this),V)};
var cTa=function(v,Q,V){V=V===void 0?0:V;if(V!=null&&v.delay===V&&v.pending===!1)return Q;clearInterval(Q)};
P7.prototype.execute=function(v,Q){if(this.closed)return Error("ha");this.pending=!1;if(v=this._execute(v,Q))return v;this.pending===!1&&this.id!=null&&(this.id=cTa(this,this.id,null))};
P7.prototype._execute=function(v){var Q=!1;try{this.work(v)}catch(E){Q=!0;var V=!!E&&E||Error(E)}if(Q)return this.unsubscribe(),V};
P7.prototype.unsubscribe=function(){if(!this.closed){var v=this.id,Q=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;yTQ(Q,this);v!=null&&(this.id=cTa(this,v,null));this.delay=null;Zy.prototype.unsubscribe.call(this)}};var fVQ=function(v,Q){Q=Q===void 0?ATN:Q;kCx.call(this,v,Q);this.actions=[];this.active=!1;this.scheduled=void 0};
_.f(fVQ,kCx);fVQ.prototype.flush=function(v){var Q=this.actions;if(this.active)Q.push(v);else{var V;this.active=!0;do if(V=v.execute(v.state,v.delay))break;while(v=Q.shift());this.active=!1;if(V){for(;v=Q.shift();)v.unsubscribe();throw V;}}};var NN=new TC(hT);var p43=Array.isArray;var d2=function(v,Q){P7.call(this,v,Q);this.scheduler=v;this.work=Q};
_.f(d2,P7);d2.JSC$9149_EMPTY=P7.JSC$9149_EMPTY;d2.prototype.schedule=function(v,Q){Q=Q===void 0?0:Q;if(Q>0)return P7.prototype.schedule.call(this,v,Q);this.delay=Q;this.state=v;this.scheduler.flush(this);return this};
d2.prototype.execute=function(v,Q){return Q>0||this.closed?P7.prototype.execute.call(this,v,Q):this._execute(v,Q)};
d2.prototype.requestAsyncId=function(v,Q,V){V=V===void 0?0:V;return V!=null&&V>0||V==null&&this.delay>0?P7.prototype.requestAsyncId.call(this,v,Q,V):v.flush(this)};var GCa=function(){fVQ.apply(this,arguments)};
_.f(GCa,fVQ);var owo=new GCa(d2);var Ciq=function(){this.performanceMonitor=new nPp;this.queue=new l5p;this.internalSymbol=Symbol();this.debugNames=new ekZ};
Ciq.prototype.getOnBackgrounded=function(){return NN};
_.hr.Object.defineProperties(Ciq.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var hZ=function(v,Q){Q=Error.call(this,Q?v+": "+Q:String(v));this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=v;this.__proto__=hZ.prototype;this.name=String(v)};
_.f(hZ,Error);var x4=function(v){hZ.call(this,1E3,'sfr:"'+v+'"');this.measurementStrategyFailureReason=v;this.__proto__=x4.prototype};
_.f(x4,hZ);var B4=function(){hZ.call(this,1003);this.__proto__=B4.prototype};
_.f(B4,hZ);var w2=function(){hZ.call(this,1009);this.__proto__=w2.prototype};
_.f(w2,hZ);var M1q=function(){hZ.call(this,1011);this.__proto__=M1q.prototype};
_.f(M1q,hZ);var O$Z=function(){hZ.call(this,1007);this.__proto__=B4.prototype};
_.f(O$Z,hZ);var zT=function(v){hZ.call(this,1004,String(v));this.inputObservableIndex=v;this.__proto__=zT.prototype};
_.f(zT,hZ);var agQ=function(v){hZ.call(this,1010,v);this.__proto__=r5b.prototype};
_.f(agQ,hZ);var r5b=function(v){hZ.call(this,1005,v);this.__proto__=r5b.prototype};
_.f(r5b,hZ);var D1Z=function(v){var Q=_.aE.apply(1,arguments),V=this;this.orderedFactories=[];this.orderedFactories.push(v);Q.forEach(function(E){V.orderedFactories.push(E)})};
D1Z.prototype.isSupported=function(v){return this.orderedFactories.some(function(Q){return Q.isSupported(v)})};
D1Z.prototype.makeBeacon=function(v,Q){for(var V=0;V<this.orderedFactories.length;V++)if(this.orderedFactories[V].isSupported(Q))return this.orderedFactories[V].makeBeacon(v,Q);throw new w2;};var Ja3=Symbol("ia"),RkN=Symbol("ja"),mk=function(v,Q){this.value=v;this.timeline=Q},Hc=function(v,Q){if(Q.timeline!==v.timeline)throw new O$Z;
return v.value-Q.value};
_.K=mk.prototype;_.K.equals=function(v){return Hc(this,v)===0};
_.K.maximum=function(v){if(v.timeline!==this.timeline)throw new O$Z;return this.value>=v.value?this:v};
_.K.round=function(){return new mk(Math.round(this.value),this.timeline)};
_.K.add=function(v){return new mk(this.value+v,this.timeline)};
_.K.toString=function(){return String(this.value)};var AZ=function(v,Q){this.context=v;this.JSC$9276_pinger=Q};
AZ.prototype.isSupported=function(v){return this.JSC$9276_pinger.isSupported(v)};
AZ.prototype.makeBeacon=function(v,Q){if(!this.isSupported(Q))throw new w2;return new k$(this.context,this.JSC$9276_pinger,Q!=null?Q:void 0,v)};
var k$=function(v,Q,V,E){var b=this;this.JSC$9282_pinger=Q;this.properties=V;this.url=E;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var F;this.method=(F=V==null?void 0:V.beaconMethod)!=null?F:"GET";this.backgroundedSubscription=v.getOnBackgrounded().subscribe(function(){b.sendNow()})};
k$.prototype.deactivate=function(){this.internalIsPending=!1};
k$.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9282_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var v,Q;this.JSC$9282_pinger.pingWithHeadersAndBody((v=this.properties)!=null?v:{},this.customHeaders,(Q=this.body)!=null?Q:"",this.url)}else this.JSC$9282_pinger.ping(this.url);this.internalIsPending=!1}catch(V){}else this.internalIsPending=!1};
k$.prototype.setHeader=function(v,Q){this.customHeaders.set(v,Q)};
_.hr.Object.defineProperties(k$.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var lVR=function(){for(var v=_.L(_.aE.apply(0,arguments)),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.available()){this.timeProvider=Q;return}this.timeProvider=new nwV};
_.K=lVR.prototype;_.K.available=function(){return this.timeProvider.available()};
_.K.now=function(){return this.timeProvider.now()};
_.K.setTimeout=function(v,Q){return this.timeProvider.setTimeout(v,Q)};
_.K.clearTimeout=function(v){this.timeProvider.clearTimeout(v)};
_.K.interval=function(v,Q){var V=this.intervalObservable(v).subscribe(Q);return function(){return void V.unsubscribe()}};
_.K.intervalObservable=function(v){return this.timeProvider.intervalObservable(v)};
_.hr.Object.defineProperties(lVR.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var nwV=function(){this.timeline=Symbol()};
_.K=nwV.prototype;_.K.available=function(){return!1};
_.K.now=function(){return new mk(0,this.timeline)};
_.K.setTimeout=function(){return 0};
_.K.clearTimeout=function(){};
_.K.interval=function(){return function(){}};
_.K.intervalObservable=function(){return NN};var Tm=function(v,Q){this.intrinsicFunctionNamespace=v;this.performanceMonitor=Q};
_.K=Tm.prototype;_.K.setTimeout=function(v,Q){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,v),Q)};
_.K.clearTimeout=function(v){this.intrinsicFunctionNamespace.clearTimeout(v)};
_.K.interval=function(v,Q){var V=this.intervalObservable(v).subscribe(Q);return function(){return void V.unsubscribe()}};
_.K.intervalObservable=function(v){var Q=this;return new TC(function(V){var E=0,b=Q.intrinsicFunctionNamespace.setInterval(function(){V.next(E++)},v);
return function(){Q.intrinsicFunctionNamespace.clearInterval(b)}})};
_.K.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var q_a=function(v,Q){Tm.call(this,v,Q);this.timeline=RkN};
_.f(q_a,Tm);q_a.prototype.now=function(){return new mk(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
q_a.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Tm.prototype.available.call(this)};var S_N=function(v,Q){Tm.call(this,v,Q);this.timeline=Ja3};
_.f(S_N,Tm);S_N.prototype.now=function(){return new mk(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
S_N.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Tm.prototype.available.call(this)};var JTx=function(v){this.context=v;if(zkp===void 0)a:{var Q,V,E=(Q=v.global)==null?void 0:(V=Q.document)==null?void 0:V.createElement("meta");if(E)try{E.httpEquiv="origin-trial";E.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";v.global.document.head.append(E);zkp=E;break a}catch(b){}zkp=void 0}},
zkp;
JTx.prototype.isSupported=function(v){return YYG(this.context)!==void 0&&!(v==null||!v.endOfSession)&&!Y$(this.context)&&!(v==null?0:v.attributionEnabled)&&!(v==null?0:v.customHeaders)&&!(v==null?0:v.customBody)};
JTx.prototype.makeBeacon=function(v,Q){if(!this.isSupported(Q))throw new w2;return new yB(this.context,v,Q)};
var yB=function(v,Q,V){this.context=v;this.properties=V;this.JSC$9309_urlWithoutToken=Q;var E;this.beaconMethod=(E=V==null?void 0:V.beaconMethod)!=null?E:"GET";v=YYG(this.context);if(v===void 0)throw Error();this.fetchLater=v;NuN(this,x1p(this))},NuN=function(v,Q){v.beaconResult&&v.beaconResult.activated||(v.beaconAbort=new AbortController,v.beaconResult=v.fetchLater(Q,{method:v.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:v.beaconAbort.signal,activateAfter:96E4}))},x1p=function(v){v=v.JSC$9309_urlWithoutToken;
return(v.slice(-1)[0]==="&"?v:v+"&")+"flapi=1"};
yB.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
yB.prototype.sendNow=function(){};
yB.prototype.setHeader=function(){};
_.hr.Object.defineProperties(yB.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9309_urlWithoutToken},
set:function(v){this.JSC$9309_urlWithoutToken=v;v=x1p(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);NuN(this,v)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var Bu8=function(v){this.context=v};
Bu8.prototype.isSupported=function(){return!Y$(this.context)&&!!this.context.global.fetch};
Bu8.prototype.ping=function(){var v=this;return $w.apply(null,_.ui(_.aE.apply(0,arguments).map(function(Q){return f$(v.context.global.fetch(Q,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(gu(function(V){return V.status===200}))}))).pipe(OwG(function(Q){return Q}),RDo())};
Bu8.prototype.pingWithHeadersAndBody=function(v,Q,V){for(var E=_.aE.apply(3,arguments),b=this,F=new Headers,t=_.L(Q.entries()),p=t.next();!p.done;p=t.next()){var Z=_.L(p.value);p=Z.next().value;Z=Z.next().value;F.set(p,Z)}var d,w=(d=v.keepAlive)!=null?d:!1;$w.apply(null,_.ui(E.map(function(A){return f$(b.context.global.fetch(A,Object.assign({},{method:String(v.beaconMethod),cache:"no-cache"},w?{keepalive:!0}:{},{mode:"no-cors",headers:F,body:V}))).pipe(gu(function(k){return k.status===200}))}))).pipe(OwG(function(A){return A}),
RDo())};var gwp,SUh,saS;_.c7=function(){};
_.Nm=function(v){return v};
gwp=function(v){var Q=Q||0;return function(){return v.apply(this,Array.prototype.slice.call(arguments,0,Q))}};
_.fo=function(v){var Q=!1,V;return function(){Q||(V=v(),Q=!0);return V}};
_.Gm=function(v,Q){var V=0;return function(E){_.bb.clearTimeout(V);var b=arguments;V=_.bb.setTimeout(function(){v.apply(void 0,b)},Q)}};
SUh=function(v,Q){var V=0,E=!1,b=[],F=function(){V=0;E&&(E=!1,t())},t=function(){V=_.bb.setTimeout(F,Q);
var p=b;b=[];v.apply(void 0,p)};
return function(p){b=arguments;V?E=!0:t()}};
saS=function(v,Q){var V=0,E=function(){V=0};
return function(b){V||(V=_.bb.setTimeout(E,Q),v.apply(void 0,arguments))}};var jaX=function(){return YQ&&c9?c9.mobile:!udN()&&(fE("iPod")||fE("iPhone")||fE("Android")||fE("IEMobile"))},udN=function(){return YQ&&c9?!c9.mobile&&(fE("iPad")||fE("Android")||fE("Silk")):fE("iPad")||fE("Android")&&!fE("Mobile")||fE("Silk")};var Co=function(v,Q,V,E,b){this.allowedElements=v;this.elementPolicies=Q;this.allowedGlobalAttributes=V;this.globalAttributePolicies=E;this.globallyAllowedAttributePrefixes=b},WkZ=function(v,Q,V){V=v.elementPolicies.get(V);
return(V==null?0:V.has(Q))?V.get(Q):v.allowedGlobalAttributes.has(Q)?{policyAction:1}:(V=v.globalAttributePolicies.get(Q))?V:v.globallyAllowedAttributePrefixes&&[].concat(_.ui(v.globallyAllowedAttributePrefixes)).some(function(E){return Q.indexOf(E)===0})?{policyAction:1}:{policyAction:0}};var ow8="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(" "),
XcQ=[["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}]])]],aVQ="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(" "),
rT8=[["dir",{policyAction:3,conditions:RE(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:RE(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:RE(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:RE(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],$1N=new Co(new Set(ow8),new Map(XcQ),new Set(aVQ),new Map(rT8)),IVR=new Co(new Set(ow8.concat(["BUTTON",
"INPUT"])),new Map(XcQ),new Set(RE(function(){return aVQ.concat(["class","id","name"])})),new Map(RE(function(){return rT8.concat([["style",
{policyAction:1}]])})));var H$a,m1p,v4x;H$a=function(v,Q,V,E,b){this.JSC$9366_sanitizerTable=v;this.styleElementSanitizer=Q;this.styleAttributeSanitizer=V;this.JSC$9366_resourceUrlPolicy=E;this.JSC$9366_navigationUrlPolicy=b;this.changes=[]};
_.U1Z=function(v,Q){var V=document.implementation.createHTMLDocument("");v=m1p(v,Q,V);V=V.body;V.appendChild(v);V=(new XMLSerializer).serializeToString(V);V=V.slice(V.indexOf(">")+1,V.lastIndexOf("</"));return Hq(V)};
m1p=function(v,Q,V){Q=g4o(Q,V);Q=document.createTreeWalker(Q,5,function(p){if(p.nodeType===3)p=1;else if(uHT(p))if(p=sbG(p),p===null)p=2;else{var Z=v.JSC$9366_sanitizerTable;p=p!=="FORM"&&(Z.allowedElements.has(p)||Z.elementPolicies.has(p))?1:2}else p=2;return p});
for(var E=Q.nextNode(),b=V.createDocumentFragment(),F=b;E!==null;){var t=void 0;if(E.nodeType===3)v.styleElementSanitizer&&F.nodeName==="STYLE"?(E=v.styleElementSanitizer(E.data),t=v.createTextNode(E)):t=v.createTextNode(E.data);else if(uHT(E))t=v4x(v,E,V);else throw Error("Z");F.appendChild(t);if(E=Q.firstChild())F=t;else for(;!(E=Q.nextSibling())&&(E=Q.parentNode());)F=F.parentNode}return b};
H$a.prototype.createTextNode=function(v){return document.createTextNode(v)};
v4x=function(v,Q,V){var E,b=sbG(Q);V=V.createElement(b);Q=Q.attributes;for(var F=_.L(Q),t=F.next();!t.done;t=F.next()){var p=t.value;t=p.name;p=p.value;var Z=WkZ(v.JSC$9366_sanitizerTable,t,b);a:{if(E=Z.conditions){E=_.L(E);for(var d=E.next();!d.done;d=E.next()){var w=_.L(d.value);d=w.next().value;w=w.next().value;var A=void 0;if((d=(A=Q.getNamedItem(d))==null?void 0:A.value)&&!w.has(d)){E=!1;break a}}}E=!0}if(E)switch(Z.policyAction){case 1:wI(V,t,p);break;case 2:throw Error();case 3:wI(V,t,p.toLowerCase());
break;case 4:v.styleAttributeSanitizer?(p=v.styleAttributeSanitizer(p),wI(V,t,p)):wI(V,t,p);break;case 5:v.JSC$9366_resourceUrlPolicy?(Z={type:2,attributeName:t,elementName:b},p=BIo(p),(p=v.JSC$9366_resourceUrlPolicy(p,Z))&&wI(V,t,p.toString())):wI(V,t,p);break;case 6:if(v.JSC$9366_resourceUrlPolicy){Z={type:2,attributeName:t,elementName:b};E=[];p=_.L(p.split(","));for(d=p.next();!d.done;d=p.next())w=_.L(d.value.trim().split(/\s+/,2)),d=w.next().value,w=w.next().value,E.push({url:d,descriptor:w});
p={parts:[]};E=_.L(E);for(d=E.next();!d.done;d=E.next())d=d.value,w=BIo(d.url),(w=v.JSC$9366_resourceUrlPolicy(w,Z))&&p.parts.push({url:w.toString(),descriptor:d.descriptor});wI(V,t,jbQ(p))}else wI(V,t,p);break;case 7:Z=p;if(v.JSC$9366_navigationUrlPolicy){Z={type:2,attributeName:t,elementName:b};p=BIo(p);p=v.JSC$9366_navigationUrlPolicy(p,Z);if(p===null)break;Z=p.toString()}p=Z;Z=_.pcG(p);Z=Z!==void 0&&Qax.indexOf(Z.toLowerCase())!==-1?p:"about:invalid#zClosurez";wI(V,t,Z)}}return V};
_.QbR=RE(function(){return new H$a($1N)});
_.VSa=RE(function(){return new H$a(IVR)});var E4q=function(){this.calledBuild=!1;this.JSC$9378_sanitizerTable=$1N},bwN=function(){E4q.apply(this,arguments)};
_.f(bwN,E4q);bwN.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new H$a(this.JSC$9378_sanitizerTable,void 0,void 0,this.JSC$9378_resourceUrlPolicy,this.JSC$9378_navigationUrlPolicy)};var FQq=/[^#]*/;var qYS={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"},KQa=_.fo(function(){return zD9()}),
LQa=function(){var v=iwA("IFRAME"),Q={};
_.bv(KQa(),function(V){v.sandbox&&v.sandbox.supports&&v.sandbox.supports(V)&&(Q[V]=!0)});
return Q},iwA=function(v,Q){Q=Q===void 0?document:Q;
return Q.createElement(String(v).toLowerCase())};var Mc;_.O$=function(v,Q,V){return Math.min(Math.max(v,Q),V)};
Mc=function(v,Q,V){return v+V*(Q-v)};_.ua=function(v,Q){this.x=v!==void 0?v:0;this.y=Q!==void 0?Q:0};
_.K=_.ua.prototype;_.K.clone=function(){return new _.ua(this.x,this.y)};
_.K.equals=function(v){return v instanceof _.ua&&(this==v?!0:this&&v?this.x==v.x&&this.y==v.y:!1)};
_.K.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.K.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.K.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.K.translate=function(v,Q){v instanceof _.ua?(this.x+=v.x,this.y+=v.y):(this.x+=Number(v),typeof Q==="number"&&(this.y+=Q));return this};
_.K.scale=function(v,Q){this.x*=v;this.y*=typeof Q==="number"?Q:v;return this};_.DT=function(v,Q){this.width=v;this.height=Q};
_.K=_.DT.prototype;_.K.clone=function(){return new _.DT(this.width,this.height)};
_.K.area=function(){return this.width*this.height};
_.K.aspectRatio=function(){return this.width/this.height};
_.K.isEmpty=function(){return!this.area()};
_.K.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.K.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.K.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.K.scale=function(v,Q){this.width*=v;this.height*=typeof Q==="number"?Q:v;return this};var tSa;_.gI={};tSa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.gI.add=function(v,Q,V){if(v!==null&&Q in v)throw Error("na`"+Q);v[Q]=V};
_.gI.clear=function(v){for(var Q in v)delete v[Q]};
_.gI.clone=function(v){var Q={},V;for(V in v)Q[V]=v[V];return Q};
_.gI.contains=function(v,Q){return rdG(v,Q)};
_.gI.containsKey=function(v,Q){return v!==null&&Q in v};
_.gI.containsValue=rdG;_.gI.create=Hw0;_.gI.createImmutableView=function(v){var Q=v;Object.isFrozen&&!Object.isFrozen(v)&&(Q=Object.create(v),Object.freeze(Q));return Q};
_.gI.createSet=mNG;_.gI.equals=function(v,Q){for(var V in v)if(!(V in Q)||v[V]!==Q[V])return!1;for(var E in Q)if(!(E in v))return!1;return!0};
_.gI.every=function(v,Q,V){for(var E in v)if(!Q.call(V,v[E],E,v))return!1;return!0};
_.gI.extend=function(v,Q){for(var V,E,b=1;b<arguments.length;b++){E=arguments[b];for(V in E)v[V]=E[V];for(var F=0;F<tSa.length;F++)V=tSa[F],Object.prototype.hasOwnProperty.call(E,V)&&(v[V]=E[V])}};
_.gI.filter=function(v,Q,V){var E={},b;for(b in v)Q.call(V,v[b],b,v)&&(E[b]=v[b]);return E};
_.gI.findKey=$No;_.gI.findValue=function(v,Q,V){return(Q=$No(v,Q,V))&&v[Q]};
_.gI.forEach=function(v,Q,V){for(var E in v)Q.call(V,v[E],E,v)};
_.gI.get=function(v,Q,V){return v!==null&&Q in v?v[Q]:V};
_.gI.getAllPropertyNames=function(v,Q,V){if(!v)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return aTQ(v);for(var E={};v&&(v!==Object.prototype||Q)&&(v!==Function.prototype||V);){for(var b=Object.getOwnPropertyNames(v),F=0;F<b.length;F++)E[b[F]]=!0;v=Object.getPrototypeOf(v)}return aTQ(E)};
_.gI.getAnyKey=function(v){for(var Q in v)return Q};
_.gI.getAnyValue=function(v){for(var Q in v)return v[Q]};
_.gI.getCount=function(v){var Q=0,V;for(V in v)Q++;return Q};
_.gI.getKeys=aTQ;_.gI.getSuperClass=function(v){return(v=Object.getPrototypeOf(v.prototype))&&v.constructor};
_.gI.getValueByKeys=function(v,Q){var V=_.W9(Q),E=V?Q:arguments;for(V=V?0:1;V<E.length;V++){if(v==null)return;v=v[E[V]]}return v};
_.gI.getValues=function(v){var Q=[],V=0,E;for(E in v)Q[V++]=v[E];return Q};
_.gI.isEmpty=function(v){for(var Q in v)return!1;return!0};
_.gI.isImmutableView=function(v){return!!Object.isFrozen&&Object.isFrozen(v)};
_.gI.map=function(v,Q,V){var E={},b;for(b in v)E[b]=Q.call(V,v[b],b,v);return E};
_.gI.remove=function(v,Q){var V;(V=Q in v)&&delete v[Q];return V};
_.gI.set=function(v,Q,V){v[Q]=V};
_.gI.setIfUndefined=function(v,Q,V){return Q in v?v[Q]:v[Q]=V};
_.gI.setWithReturnValueIfNotSet=function(v,Q,V){if(Q in v)return v[Q];V=V();return v[Q]=V};
_.gI.some=function(v,Q,V){for(var E in v)if(Q.call(V,v[E],E,v))return!0;return!1};
_.gI.transpose=function(v){var Q={},V;for(V in v)Q[v[V]]=V;return Q};
_.gI.unsafeClone=ITE;var mt=function(v,Q){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=v===X_S&&Q||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=p4S};
mt.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var eDq=function(v){return v instanceof mt&&v.constructor===mt&&v.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===p4S?v.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},p4S={},X_S={};
new mt(X_S,"");var qN,lt,Dy,Zwq,hDX,dNa,jS,Adp,TIa,kTq,qc,YYV,OwV,MSQ,Cap,DNX,RD8,n4Z,lT8,pgh,qYA,zDN,Jdq,SYR,Oc;qN=function(v){return v?new Oc(_.W4(v)):YBZ||(YBZ=new Oc)};
_.$W=function(v,Q){return typeof Q==="string"?v.getElementById(Q):Q};
lt=function(v,Q){return(Q||document).getElementsByTagName(String(v))};
_.Pax=function(v){return Zwq("yt-formatted-string","paper-input-input",v)};
Dy=function(v,Q,V,E){v=E||v;return(Q=Q&&Q!="*"?String(Q).toUpperCase():"")||V?v.querySelectorAll(Q+(V?"."+V:"")):v.getElementsByTagName("*")};
Zwq=function(v,Q,V){var E=document,b=v&&v!="*"?String(v).toUpperCase():"";return b||Q?(V||E).querySelector(b+(Q?"."+Q:"")):Dy(E,v,Q,V)[0]||null};
hDX=function(v,Q){_.gI.forEach(Q,function(V,E){E=="style"?v.style.cssText=V:E=="class"?v.className=V:E=="for"?v.htmlFor=V:dNa.hasOwnProperty(E)?v.setAttribute(dNa[E],V):_.KE(E,"aria-")||_.KE(E,"data-")?v.setAttribute(E,V):v[E]=V})};
dNa={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"};_.Rb=function(v){v=(v||window).document;v=v.compatMode=="CSS1Compat"?v.documentElement:v.body;return new _.DT(v.clientWidth,v.clientHeight)};
_.w4V=function(v){var Q=_.RM(v);v=v.defaultView;return new _.ua((v==null?void 0:v.pageXOffset)||Q.scrollLeft,(v==null?void 0:v.pageYOffset)||Q.scrollTop)};
_.RM=function(v){return v.scrollingElement?v.scrollingElement:_.E7||v.compatMode!="CSS1Compat"?v.body||v.documentElement:v.documentElement};
jS=function(v){return v?v.defaultView:window};
_.no=function(v,Q,V){return Adp(document,arguments)};
Adp=function(v,Q){var V=Q[1],E=kTq(v,String(Q[0]));V&&(typeof V==="string"?E.className=V:Array.isArray(V)?E.className=V.join(" "):hDX(E,V));Q.length>2&&TIa(v,E,Q,2);return E};
TIa=function(v,Q,V,E){function b(p){p&&Q.appendChild(typeof p==="string"?v.createTextNode(p):p)}
for(;E<V.length;E++){var F=V[E];if(!_.W9(F)||_.rG(F)&&F.nodeType>0)b(F);else{a:{if(F&&typeof F.length=="number"){if(_.rG(F)){var t=typeof F.item=="function"||typeof F.item=="string";break a}if(typeof F==="function"){t=typeof F.item=="function";break a}}t=!1}_.bv(t?_.jZ(F):F,b)}}};
_.RD=function(v){return kTq(document,v)};
kTq=function(v,Q){Q=String(Q);v.contentType==="application/xhtml+xml"&&(Q=Q.toLowerCase());return v.createElement(Q)};
_.ly=function(){return document.createTextNode("\n")};
qc=function(v){if(v.nodeType!=1)return!1;switch(v.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
YYV=function(v,Q){TIa(_.W4(v),v,arguments,1)};
_.S3=function(v){for(var Q;Q=v.firstChild;)v.removeChild(Q)};
_.zm=function(v,Q){Q.parentNode&&Q.parentNode.insertBefore(v,Q)};
_.JZ=function(v,Q){Q.parentNode&&Q.parentNode.insertBefore(v,Q.nextSibling)};
_.ng=function(v){return v&&v.parentNode?v.parentNode.removeChild(v):null};
_.ydq=function(v,Q){var V=Q.parentNode;V&&V.replaceChild(v,Q)};
_.cdx=function(v){var Q,V=v.parentNode;if(V&&V.nodeType!=11)if(v.removeNode)v.removeNode(!1);else{for(;Q=v.firstChild;)V.insertBefore(Q,v);_.ng(v)}};
_.Nc=function(v){return v.children!=void 0?v.children:Array.prototype.filter.call(v.childNodes,function(Q){return Q.nodeType==1})};
_.GTA=function(v){return v.nextElementSibling!==void 0?v.nextElementSibling:_.fTZ(v.nextSibling,!0)};
_.fTZ=function(v,Q){for(;v&&v.nodeType!=1;)v=Q?v.nextSibling:v.previousSibling;return v};
_.t8=function(v){return _.rG(v)&&v.nodeType==1};
_.HM=function(v,Q){if(!v||!Q)return!1;if(v.contains&&Q.nodeType==1)return v==Q||v.contains(Q);if(typeof v.compareDocumentPosition!="undefined")return v==Q||!!(v.compareDocumentPosition(Q)&16);for(;Q&&v!=Q;)Q=Q.parentNode;return Q==v};
OwV=function(v,Q){if(v==Q)return 0;if(v.compareDocumentPosition)return v.compareDocumentPosition(Q)&2?1:-1;if("sourceIndex"in v||v.parentNode&&"sourceIndex"in v.parentNode){var V=v.nodeType==1,E=Q.nodeType==1;if(V&&E)return v.sourceIndex-Q.sourceIndex;var b=v.parentNode,F=Q.parentNode;return b==F?Cap(v,Q):!V&&_.HM(b,Q)?-1*MSQ(v,Q):!E&&_.HM(F,v)?MSQ(Q,v):(V?v.sourceIndex:b.sourceIndex)-(E?Q.sourceIndex:F.sourceIndex)}E=_.W4(v);V=E.createRange();V.selectNode(v);V.collapse(!0);v=E.createRange();v.selectNode(Q);
v.collapse(!0);return V.compareBoundaryPoints(_.bb.Range.START_TO_END,v)};
MSQ=function(v,Q){var V=v.parentNode;if(V==Q)return-1;for(;Q.parentNode!=V;)Q=Q.parentNode;return Cap(Q,v)};
Cap=function(v,Q){for(;Q=Q.previousSibling;)if(Q==v)return-1;return 1};
DNX=function(v){var Q,V=arguments.length;if(!V)return null;if(V==1)return arguments[0];var E=[],b=Infinity;for(Q=0;Q<V;Q++){for(var F=[],t=arguments[Q];t;)F.unshift(t),t=t.parentNode;E.push(F);b=Math.min(b,F.length)}F=null;for(Q=0;Q<b;Q++){t=E[0][Q];for(var p=1;p<V;p++)if(t!=E[p][Q])return F;F=t}return F};
_.W4=function(v){return v.nodeType==9?v:v.ownerDocument||v.document};
RD8=function(v){return v.contentDocument||v.contentWindow.document};
_.x$=function(v,Q){if("textContent"in v)v.textContent=Q;else if(v.nodeType==3)v.data=String(Q);else if(v.firstChild&&v.firstChild.nodeType==3){for(;v.lastChild!=v.firstChild;)v.removeChild(v.lastChild);v.firstChild.data=String(Q)}else _.S3(v),v.appendChild(_.W4(v).createTextNode(String(Q)))};
n4Z={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};lT8={IMG:" ",BR:"\n"};pgh=function(v){var Q;v.tagName=="A"&&v.hasAttribute("href")||v.tagName=="INPUT"||v.tagName=="TEXTAREA"||v.tagName=="SELECT"||v.tagName=="BUTTON"?Q=!v.disabled&&(!v.hasAttribute("tabindex")||qYA(v)):Q=v.hasAttribute("tabindex")&&qYA(v);return Q};
qYA=function(v){v=v.tabIndex;return typeof v==="number"&&v>=0&&v<32768};
zDN=function(v){var Q=[];SYR(v,Q,!0);v=Q.join("");v=v.replace(/ \xAD /g," ").replace(/\xAD/g,"");v=v.replace(/\u200B/g,"");v=v.replace(/ +/g," ");v!=" "&&(v=v.replace(/^\s*/,""));return v};
Jdq=function(v){var Q=[];SYR(v,Q,!1);return Q.join("")};
SYR=function(v,Q,V){if(!(v.nodeName in n4Z))if(v.nodeType==3)V?Q.push(String(v.nodeValue).replace(/(\r\n|\r|\n)/g,"")):Q.push(v.nodeValue);else if(v.nodeName in lT8)Q.push(lT8[v.nodeName]);else for(v=v.firstChild;v;)SYR(v,Q,V),v=v.nextSibling};
_.NI8=function(v,Q,V){if(!Q&&!V)return null;var E=Q?String(Q).toUpperCase():null;return _.XH(v,function(b){return(!E||b.nodeName==E)&&(!V||typeof b.className==="string"&&_.sB(b.className.split(/\s+/),V))},!0)};
_.XH=function(v,Q,V){v&&!V&&(v=v.parentNode);for(V=0;v;){if(Q(v))return v;v=v.parentNode;V++}return null};
Oc=function(v){this.JSC$9406_document_=v||_.bb.document||document};
_.K=Oc.prototype;_.K.getElement=function(v){return _.$W(this.JSC$9406_document_,v)};
_.K.$=Oc.prototype.getElement;_.K.getElementsByTagName=function(v,Q){return(Q||this.JSC$9406_document_).getElementsByTagName(String(v))};
_.K.getElementsByTagNameAndClass=function(v,Q,V){return Dy(this.JSC$9406_document_,v,Q,V)};
_.K.$$=Oc.prototype.getElementsByTagNameAndClass;_.K.setProperties=hDX;_.K.JSC$9408_createDom=function(v,Q,V){return Adp(this.JSC$9406_document_,arguments)};
_.K.createElement=function(v){return kTq(this.JSC$9406_document_,v)};
_.K.createTextNode=function(v){return this.JSC$9406_document_.createTextNode(String(v))};
_.K.getWindow=function(){return this.JSC$9406_document_.defaultView};
var nw=function(v){return _.w4V(v.JSC$9406_document_)};
_.K=Oc.prototype;_.K.appendChild=function(v,Q){v.appendChild(Q)};
_.K.append=YYV;_.K.canHaveChildren=qc;_.K.removeNode=_.ng;_.K.getChildren=_.Nc;_.K.contains=_.HM;_.K.isFocusable=pgh;_.K=Y4.prototype;_.K.getWidth=function(){return this.right-this.left};
_.K.getHeight=function(){return this.bottom-this.top};
_.K.clone=function(){return new Y4(this.top,this.right,this.bottom,this.left)};
_.K.contains=function(v){return this&&v?v instanceof Y4?v.left>=this.left&&v.right<=this.right&&v.top>=this.top&&v.bottom<=this.bottom:v.x>=this.left&&v.x<=this.right&&v.y>=this.top&&v.y<=this.bottom:!1};
_.K.expand=function(v,Q,V,E){_.rG(v)?(this.top-=v.top,this.right+=v.right,this.bottom+=v.bottom,this.left-=v.left):(this.top-=v,this.right+=Number(Q),this.bottom+=Number(V),this.left-=Number(E));return this};
_.K.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};
_.K.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};
_.K.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};
_.K.translate=function(v,Q){v instanceof _.ua?(this.left+=v.x,this.right+=v.x,this.top+=v.y,this.bottom+=v.y):(this.left+=v,this.right+=v,typeof Q==="number"&&(this.top+=Q,this.bottom+=Q));return this};
_.K.scale=function(v,Q){Q=typeof Q==="number"?Q:v;this.left*=v;this.right*=v;this.top*=Q;this.bottom*=Q;return this};var B7=function(v,Q,V,E){this.left=v;this.top=Q;this.width=V;this.height=E};
_.K=B7.prototype;_.K.clone=function(){return new B7(this.left,this.top,this.width,this.height)};
_.K.boundingRect=function(v){var Q=Math.max(this.left+this.width,v.left+v.width),V=Math.max(this.top+this.height,v.top+v.height);this.left=Math.min(this.left,v.left);this.top=Math.min(this.top,v.top);this.width=Q-this.left;this.height=V-this.top};
_.K.contains=function(v){return v instanceof _.ua?v.x>=this.left&&v.x<=this.left+this.width&&v.y>=this.top&&v.y<=this.top+this.height:this.left<=v.left&&this.left+this.width>=v.left+v.width&&this.top<=v.top&&this.top+this.height>=v.top+v.height};
_.K.distance=function(v){var Q=v.x<this.left?this.left-v.x:Math.max(v.x-(this.left+this.width),0);v=v.y<this.top?this.top-v.y:Math.max(v.y-(this.top+this.height),0);return Math.sqrt(Q*Q+v*v)};
_.K.getSize=function(){return new _.DT(this.width,this.height)};
_.K.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};
_.K.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};
_.K.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};
_.K.translate=function(v,Q){v instanceof _.ua?(this.left+=v.x,this.top+=v.y):(this.left+=v,typeof Q==="number"&&(this.top+=Q));return this};
_.K.scale=function(v,Q){Q=typeof Q==="number"?Q:v;this.left*=v;this.width*=v;this.top*=Q;this.height*=Q;return this};var BI8,uy,fQr,sc,jba,uHQ,WQX,h5o,o4A,aTa;_.g2=function(v,Q,V){if(typeof Q==="string")(Q=_.xNZ(v,Q))&&(v.style[Q]=V);else for(var E in Q){V=v;var b=Q[E],F=_.xNZ(V,E);F&&(V.style[F]=b)}};
BI8={};_.xNZ=function(v,Q){var V=BI8[Q];if(!V){var E=_.tY(Q);V=E;v.style[E]===void 0&&(E=(_.E7?"Webkit":_.V2?"Moz":null)+pcV(E),v.style[E]!==void 0&&(V=E));BI8[Q]=V}return V};
_.Vt=function(v,Q){var V=_.W4(v);return V.defaultView&&V.defaultView.getComputedStyle&&(v=V.defaultView.getComputedStyle(v,null))?v[Q]||v.getPropertyValue(Q)||"":""};
_.ID=function(v,Q){return _.Vt(v,Q)||(v.currentStyle?v.currentStyle[Q]:null)||v.style&&v.style[Q]};
_.g48=function(v){return _.ID(v,"position")};
uy=function(v,Q,V){if(Q instanceof _.ua){var E=Q.x;Q=Q.y}else E=Q,Q=V;v.style.left=sc(E,!1);v.style.top=sc(Q,!1)};
fQr=function(v){try{return v.getBoundingClientRect()}catch(Q){return{left:0,top:0,right:0,bottom:0}}};
_.ob=function(v){var Q=_.W4(v),V=new _.ua(0,0);if(v==(Q?_.W4(Q):document).documentElement)return V;v=fQr(v);Q=nw(qN(Q));V.x=v.left+Q.x;V.y=v.top+Q.y;return V};
_.sbV=function(v,Q,V){if(Q instanceof _.DT)V=Q.height,Q=Q.width;else if(V==void 0)throw Error("oa");v.style.width=sc(Q,!0);v.style.height=sc(V,!0)};
sc=function(v,Q){typeof v=="number"&&(v=(Q?Math.round(v):v)+"px");return v};
jba=function(v){return uHQ(v)};
uHQ=function(v){var Q=WQX;if(_.ID(v,"display")!="none")return Q(v);var V=v.style,E=V.display,b=V.visibility,F=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";v=Q(v);V.display=E;V.position=F;V.visibility=b;return v};
WQX=function(v){var Q=v.offsetWidth,V=v.offsetHeight,E=_.E7&&!Q&&!V;return(Q===void 0||E)&&v.getBoundingClientRect?(v=fQr(v),new _.DT(v.right-v.left,v.bottom-v.top)):new _.DT(Q,V)};
h5o=function(v){var Q=_.ob(v);v=uHQ(v);return new B7(Q.x,Q.y,v.width,v.height)};
o4A=function(v,Q){v=v.style;"opacity"in v?v.opacity=Q:"MozOpacity"in v?v.MozOpacity=Q:"filter"in v&&(v.filter=Q===""?"":"alpha(opacity="+Number(Q)*100+")")};
_.EX=function(v,Q){v.style.display=Q?"":"none"};
_.X4N=function(v){return"rtl"==_.ID(v,"direction")};
aTa=function(v){var Q=_.Vt(v,"marginLeft"),V=_.Vt(v,"marginRight"),E=_.Vt(v,"marginTop");v=_.Vt(v,"marginBottom");return new Y4(parseFloat(E),parseFloat(V),parseFloat(v),parseFloat(Q))};
_.rdV=function(v){var Q=_.Vt(v,"borderLeftWidth"),V=_.Vt(v,"borderRightWidth"),E=_.Vt(v,"borderTopWidth");v=_.Vt(v,"borderBottomWidth");return new Y4(parseFloat(E),parseFloat(V),parseFloat(v),parseFloat(Q))};var j3=function(v){this.context=v};
j3.prototype.isSupported=function(v){return(v==null?0:v.attributionEnabled)||(v==null?void 0:v.beaconMethod)==="POST"||(v==null?0:v.customHeaders)||(v==null?0:v.customBody)||(v==null?0:v.keepAlive)?!1:!Y$(this.context)};
j3.prototype.ping=function(){var v=this;return zC(_.aE.apply(0,arguments).map(function(Q){try{var V=v.context.global,E=!1;E=E===void 0?!1:E;V.google_image_requests||(V.google_image_requests=[]);var b=iwA("IMG",V.document);E&&(b.attributionSrc="");b.src=Q;V.google_image_requests.push(b);return!0}catch(F){return!1}}).every(function(Q){return Q}))};
j3.prototype.pingWithHeadersAndBody=function(v,Q,V){this.ping.apply(this,_.ui(_.aE.apply(3,arguments)))};var $N8=function(v){this.context=v};
$N8.prototype.isSupported=function(v){return ITZ&&!Y$(this.context)&&UNr(this.context)!==void 0&&!(v==null?0:v.attributionEnabled)&&(v==null?void 0:v.beaconMethod)!=="POST"&&!(v==null?0:v.customHeaders)&&!(v==null?0:v.customBody)};
$N8.prototype.makeBeacon=function(v,Q){if(!this.isSupported(Q))throw new w2;return new W7(this.context,v)};
var ITZ=!1,W7=function(v,Q){this.context=v;this.JSC$9427_urlWithoutToken=Q;v=UNr(this.context);if(v===void 0)throw Error();this.wrappedBeacon=new v(Hwq(this),{})},Hwq=function(v){v=v.JSC$9427_urlWithoutToken;
return(v.slice(-1)[0]==="&"?v:v+"&")+"pbapi=1"};
W7.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
W7.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
W7.prototype.setHeader=function(){};
_.hr.Object.defineProperties(W7.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9427_urlWithoutToken},
set:function(v){this.JSC$9427_urlWithoutToken=v;this.wrappedBeacon.setURL(Hwq(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(v){if(v!=="GET")throw new w2;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var mNV=function(v){this.context=v};
mNV.prototype.isSupported=function(v){if((v==null?0:v.attributionEnabled)||(v==null?void 0:v.beaconMethod)==="GET"||(v==null?0:v.customHeaders)||(v==null?0:v.customBody)||(v==null?0:v.keepAlive))return!1;var Q;return!Y$(this.context)&&((Q=this.context.global.navigator)==null?void 0:Q.sendBeacon)!==void 0};
mNV.prototype.ping=function(){var v=this;return zC(_.aE.apply(0,arguments).map(function(Q){var V;return(V=v.context.global.navigator)==null?void 0:V.sendBeacon(Q)}).every(function(Q){return Q}))};
mNV.prototype.pingWithHeadersAndBody=function(v,Q,V){this.ping.apply(this,_.ui(_.aE.apply(3,arguments)))};var Cw=function(v){this.value=v},bt=function(v,Q){return zC(v.value).pipe(fw(Q))},Kg=new Cw(!1),J19=new Cw(!0);var ab=function(v){this.value=v;this.releasedSubject=new yx};
ab.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.hr.Object.defineProperties(ab.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9440_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var ZgT=["FRAME","IMG","IFRAME"],Keh=/^[01](px)?$/,eIE=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},pMb=function(){var v=new eIE;
v.crossDomainLoadedDefault=!0;v.pendingImagesBlockLoad=!0;return v};var UNa=function(v,Q){var V=TZo(v);if(V)if(V.onCreativeLoad)V.onCreativeLoad(Q);else{var E=Q?[Q]:[],b=function(F){for(var t=0;t<E.length;++t)try{E[t](1,F)}catch(p){}E={push:function(p){p(1,F)}}};
V.onCreativeLoad=function(F){E.push(F)};
V.setAttribute("data-creative-load-listener","");V.addEventListener("creativeLoad",function(F){b(F.detail)});
_.bb.addEventListener("message",function(F){kcr(V,b,F)})}};var oM=function(v,Q){var V=this;this.global=v;this.parentContext=Q;this.JSC$9451_onVisibilityChange=this.document?$w(zC(!0),aa(this.document,"visibilitychange")).pipe(U_(this.parentContext.performanceMonitor,748),gu(function(){return V.getVisibilityState()}),ba()):zC("visible");
this.document?aa(this.document,"DOMContentLoaded").pipe(U_(this.parentContext.performanceMonitor,739),EY(1)):zC(bgm("DOMContentLoaded"))},zJ0=function(v){return v.document!==null&&v.document.visibilityState!==void 0};
oM.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
oM.prototype.querySelector=function(v){return this.document?this.document.querySelector(v):null};
oM.prototype.querySelectorAll=function(v){return this.document?_.jZ(this.document.querySelectorAll(v)):[]};
oM.prototype.elementFromPoint=function(v,Q){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;v=this.document.elementFromPoint(v,Q);return v===null?null:new ab(v)};
var fxr=function(v,Q,V){V=V===void 0?!1:V;if(Q.ref===void 0||!v.document)return zC(Q).pipe(U_(v.parentContext.performanceMonitor,749));var E=new Lw(1),b=function(){E.next(Q)};
V||UNa(Q.ref,b);PtS(Q.ref,b);return E.pipe(U_(v.parentContext.performanceMonitor,749),EY(1))};
_.hr.Object.defineProperties(oM.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Jd0(this.global,"document")?this.global.document||null:null}}});var Yhm=_.s$(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),y5E=_.s$(["./reach_worklet.js"]),c59=_.s$(["./reach_worklet.js"]),vJN=_.s$(["./reach_worklet.html"]),QDA=_.s$(["./reach_worklet.js"]),VKV=_.s$(["./reach_worklet.js"]);_.Ad(vJN);_.Ad(QDA);_.Ad(VKV);var mQ={left:0,top:0,width:0,height:0};var EJQ,bgZ,Fex,KeN,ew,Lep,tKQ,pMx,XGZ,aCo,PtA,dzS;EJQ=function(v,Q,V,E,b,F,t){var p="";v&&(p+=v+":");V&&(p+="//",Q&&(p+=Q+"@"),p+=V,E&&(p+=":"+E));b&&(p+=b);F&&(p+="?"+F);t&&(p+="#"+t);return p};
bgZ=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.tt=function(v){return v.match(bgZ)};
_.YG=function(v,Q){return v?Q?decodeURI(v):decodeURIComponent(v):v};
Fex=function(v){v=_.tt(v)[1]||null;!v&&_.bb.self&&_.bb.self.location&&(v=_.bb.self.location.protocol.slice(0,-1));return v?v.toLowerCase():""};
_.pi=function(v){return _.YG(_.tt(v)[3]||null,!0)};
_.OG=function(v){return _.YG(_.tt(v)[5]||null,!0)};
_.Z33=function(v){var Q=v.indexOf("#");return Q<0?null:v.slice(Q+1)};
KeN=function(v){v=_.tt(v);return EJQ(v[1],v[2],v[3],v[4])};
_.igZ=function(v){v=_.tt(v);return EJQ(v[1],null,v[3],v[4])};
_.JY=function(v){v=_.tt(v);return EJQ(null,null,null,null,v[5],v[6],v[7])};
_.Wj=function(v){var Q=v.indexOf("#");return Q<0?v:v.slice(0,Q)};
ew=function(v,Q){v=_.tt(v);Q=_.tt(Q);return v[3]==Q[3]&&v[1]==Q[1]&&v[4]==Q[4]};
Lep=function(v,Q){if(v){v=v.split("&");for(var V=0;V<v.length;V++){var E=v[V].indexOf("="),b=null;if(E>=0){var F=v[V].substring(0,E);b=v[V].substring(E+1)}else F=v[V];Q(F,b?P5(b):"")}}};
tKQ=function(v){var Q=v.indexOf("#");Q<0&&(Q=v.length);var V=v.indexOf("?");if(V<0||V>Q){V=Q;var E=""}else E=v.substring(V+1,Q);return[v.slice(0,V),E,v.slice(Q)]};
pMx=function(v,Q){return Q?v?v+"&"+Q:Q:v};
_.eIZ=function(v,Q){if(!Q)return v;v=tKQ(v);v[1]=pMx(v[1],Q);return v[0]+(v[1]?"?"+v[1]:"")+v[2]};
_.ZgQ=function(v,Q,V){if(Array.isArray(Q))for(var E=0;E<Q.length;E++)_.ZgQ(v,String(Q[E]),V);else Q!=null&&V.push(v+(Q===""?"":"="+_.EG(Q)))};
_.Rm=function(v){var Q=[],V;for(V in v)_.ZgQ(V,v[V],Q);return Q.join("&")};
_.Li=function(v,Q){Q=_.Rm(Q);return _.eIZ(v,Q)};
_.XZ=function(v,Q,V){V=V!=null?"="+_.EG(V):"";return _.eIZ(v,Q+V)};
XGZ=function(v,Q,V,E){for(var b=V.length;(Q=v.indexOf(V,Q))>=0&&Q<E;){var F=v.charCodeAt(Q-1);if(F==38||F==63)if(F=v.charCodeAt(Q+b),!F||F==61||F==38||F==35)return Q;Q+=b+1}return-1};
aCo=/#|$/;_.me=function(v,Q){var V=v.search(aCo),E=XGZ(v,0,Q,V);if(E<0)return null;var b=v.indexOf("&",E);if(b<0||b>V)b=V;E+=Q.length+1;return P5(v.slice(E,b!==-1?b:0))};
PtA=/[?&]($|#)/;_.Xy=function(v,Q){for(var V=v.search(aCo),E=0,b,F=[];(b=XGZ(v,E,Q,V))>=0;)F.push(v.substring(E,b)),E=Math.min(v.indexOf("&",b)+1||V,V);F.push(v.slice(E));return F.join("").replace(PtA,"$1")};
_.va=function(v,Q,V){return _.XZ(_.Xy(v,Q),Q,V)};
dzS=function(v){var Q=tKQ(window.location.href),V=Q[1],E=[];V&&V.split("&").forEach(function(b){var F=b.indexOf("=");F=F>=0?b.slice(0,F):b;v.hasOwnProperty(F)||E.push(b)});
Q[1]=pMx(E.join("&"),_.Rm(v));return Q[0]+(Q[1]?"?"+Q[1]:"")+Q[2]};var jDQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(jDQ,_.Lf);var u9Z=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(u9Z,_.Lf);var J50=function(v,Q){return _.SS(v,2,Q)},sD3=function(v,Q){return _.SS(v,3,Q)};
u9Z.prototype.getModel=function(){return _.fN(this,4)};
var xzG=function(v,Q){return _.SS(v,4,Q)},zIm=function(v,Q){return _.SS(v,5,Q)},gJt=function(v,Q){return _.SS(v,9,Q)},ShZ=function(v,Q){return AI(v,10,Q)},qhS=function(v,Q){return _.Tc(v,11,Q)},NZ3=function(v,Q){return _.SS(v,1,Q)},BZr=function(v,Q){return _.Tc(v,7,Q)};var nJ3="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var F9=function(v,Q,V,E){v=v===void 0?window:v;Q=Q===void 0?null:Q;V=V===void 0?new nPp:V;E=E===void 0?fg9():E;Ciq.call(this);var b=this;this.global=v;this.debugChannel=Q;this.performanceMonitor=V;this.onPageHide=FQ0(function(){return aa(b.global,"pagehide")}).pipe(U_(this.performanceMonitor,941));
this.onLoad=FQ0(function(){return aa(b.global,"load")}).pipe(U_(this.performanceMonitor,738),EY(1));
this.onResize=FQ0(function(){return aa(b.global,"resize")}).pipe(U_(this.performanceMonitor,741));
this.onMessage=FQ0(function(){return aa(b.global,"message")}).pipe(U_(this.performanceMonitor,740));
this.document=new oM(this.global,this);this.timeProvider=new lVR(new S_N(this.intrinsicFunctionNamespace,this.performanceMonitor),new q_a(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new D1Z(new JTx(this),new $N8(this),new AZ(this,new Bu8(this)),new AZ(this,new mNV(this)),new AZ(this,new j3(this)))};
_.f(F9,Ciq);F9.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(v){return v}};
var Y$=function(v){var Q=v.global;return!!v.global.HTMLFencedFrameElement&&!!Q.fence&&typeof Q.fence.reportEvent==="function"};
_.K=F9.prototype;_.K.reportFencedFrameEvent=function(v){Y$(this)&&this.global.fence.reportEvent(v)};
_.K.getOnBackgrounded=function(){return this.onPageHide.pipe(U_(this.performanceMonitor,942),fw(this.queue),gu(function(){}))};
_.K.postMessage=function(v,Q,V){V=V===void 0?[]:V;this.global.postMessage(v,Q,V)};
_.K.getWidth=function(){return NIo(this.global)?this.global.width:0};
_.K.getHeight=function(){return NIo(this.global)?this.global.height:0};
_.K.isMobile=function(){return udN()||jaX()};
var $4=function(v,Q){try{var V=OgQ(Q,v.global,v.isMobile());return{left:V.left,top:V.top,width:V.getWidth(),height:V.getHeight()}}catch(E){return mQ}};
F9.prototype.validate=function(){var v=this.beaconFactory.isSupported()||Y$(this);return this.global&&this.timeProvider.available()&&v};
var QDS=function(v){return(v=oJZ(v.global))?f$(v):null};
_.hr.Object.defineProperties(F9.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(v){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(v){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!NIo(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}}});_.hIx=!_.Q2&&!_.k0o();var N7S=function(v){return v};var B70=function(v){return v.pipe(Ia(function(Q){var V=Q.endOfSessionReason;var E;return((E=Q.viewable)==null?void 0:E.extrapolateToNow().value)||V!=void 0}),EY(1),Qx())};var mz0=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Uzb=function(v){var Q=v.sequenceNumber.toString(10).padStart(2,"0");
Q=""+v.startTime+Q;v.sequenceNumber<99&&v.sequenceNumber++;return Q};var Sir=kw(P4(function(v){return v.endOfSessionReason===void 0}),gu(function(v){return Object.assign({},v,{timestamps:Jd(v)})}),Ia(function(v){var Q=v.viewable;
v=v.timestamps;var V;return(V=Q==null?void 0:Q.extrapolateUsingTimestampMap(v).value)!=null?V:!1}),gu(function(v){var Q=v.beaconFactory;
var V=v.timestampedExposureHistory;var E=v.timeOnScreen;var b=v.binaryContext;v=v.timestamps;if(Q===void 0||V===void 0||E===void 0||b===void 0)return!1;if(E.extrapolateUsingTimestampMap(v).value.every(function(F){return F>=0}))return!0;
V=V.map(function(F){return F.timestamp+":"+F.value}).join(",");
E=vUt({bin:b,tos:E},v);Q.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+E+("&eh="+V)).sendNow();return!0}),P4(function(v){return!v}),Qx());var V_Q=function(v){return{id:v.pingId,mcvt:v.maxConsecutiveViewTime,p:v.creativePosition,asp:v.adSpeedPosition,tm:v.totalMeasurementTime,tu:v.totalUnviewedTime,mtos:v.maxTimeOnScreen,tos:v.timeOnScreen,v:v.binaryVersion,bin:v.binaryContext,avms:v.measurementStrategy,bs:v.browserSize,mc:v.maximumExposure,"if":v.crossDomainIframeState,vu:v.delayedImpressionJsState,app:v.inApp,mse:v.mraidError,mtop:v.mraidSituation,itpl:v.injectedTemplateId,adk:v.adKey,exk:v.awbidKey,rs:v.requestSource,la:v.isLargeAd,
cr:v.isContentRecommendationAd,uach:v.userAgentClientHints,vs:v.viewState,r:v.reasonCode,pay:v.hasCpmavUrl,co:v.clientPingOrderCounter,rst:v.adRenderStartTime,rpt:v.adRenderPeriodTime,isd:v.initialScrollDepth,lsd:v.loadedScrollDepth,context:v.errorContext,msg:v.errorMessage,stack:v.errorStack,name:v.errorName,ec:v.hasElementChanged,sfr:v.strategyFailureReasons,met:v.creativeSearchResult,wmsd:v.webMeasurementStartDiagnostic,pv:v.pageVisible,epv:v.eosPageVisible,pbe:v.inStatefulBeaconExperiment,fle:v.inFetchLaterBeaconExperiment,
vae:v.inViewableAttributionExperiment,spb:v.supportsPendingBeacon,sfl:v.supportsFetchLater,ffslot:v.isFencedFrameSlotTurtlex,reach:v.sharedStorageReachMode,io2:v.v2VisibilityBitVector,rxdbg:v.rxDebugger,omida:v.omidAppId,omidp:v.omidPartner,omidpv:v.omidPartnerVersion,omidor:v.omidOcclusionReasons,omidv:v.omidVersion,omids:v.omidSessionType,omidam:v.omidAccessMode,omidct:v.omidCreativeType,omidia:v.omidInApp,omiddc:v.omidDeviceCategory,omidlat:v.omidLastActivity,omiddit:v.omidDeviceIdleTime,qid:v.errorEscapedQueryId}};var xPQ=function(v){var Q=[];return v.pipe(gu(function(V){var E=V.beaconFactory,b=V.fetchBeaconFactory,F=V.timeOnScreen,t=V.timeOnScreenUrlPrefixes,p=V.payloadMapper,Z=V.timeOnScreenPingId,d=V.timeOnScreenReason,w=V.urlSerializer,A=V.viewable,k=V.hasImpressionFired,T=V.inStatefulBeaconExperiment,c=V.supportsPendingBeacon,C=V.supportsFetchLater,R=V.turtlexReportEventData;if(!V.geometryMeasurable||!k||V.maxTimeOnScreen===void 0||F===void 0||t===void 0||p===void 0||Z===void 0||w===void 0||E===void 0)return!1;
if(V.isTurtlex){if(d===void 0)return!1;t=V.reportFencedFrameEvent;if(!t)return!1;t({eventType:"active-view-time-on-screen",eventData:R!=null?R:"",destination:["buyer"]});return!0}if(!(T||C||d))return!1;R=Jd(V);var l;A=(l=A==null?void 0:A.extrapolateUsingTimestampMap(R).value)!=null?l:!1;l=w(Object.assign({},V,{pingId:Z,viewState:A?4:3,reasonCode:d!=null?d:"u",payloadMapper:p,urlPrefixes:t}),R);if(T){for(;Q.length>t.length;)V=void 0,(V=Q.shift())==null||V.deactivate();l.forEach(function(a,g){g>=Q.length?
Q.push(E.makeBeacon(a)):Q[g].url=a});
return c&&b&&d!==void 0?(l.forEach(function(a){b.makeBeacon(a).sendNow()}),!0):d!==void 0}if(c&&b&&d!==void 0)return l.forEach(function(a){b.makeBeacon(a).sendNow()}),!0;
if(C&&b){for(;Q.length>t.length;)c=void 0,(c=Q.shift())==null||c.deactivate();var S=w(Object.assign({},V,{pingId:Z,viewState:A?4:3,reasonCode:d!=null?d:"u",payloadMapper:p,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),R)[0];l.forEach(function(a,g){g>=Q.length?Q.push(E.makeBeacon(S,{endOfSession:!0})):Q[g].url=S});
return d!==void 0?(l.forEach(function(a){b.makeBeacon(a).sendNow()}),!0):d!==void 0}return d!==void 0?(l.forEach(function(a){E.makeBeacon(a).sendNow()}),!0):!1}),P4(function(V){return!V}),Qx())};var gbZ=kw(Ia(function(v){return v.immediateUrlPrefixes!==void 0&&v.payloadMapper!==void 0&&v.urlSerializer!==void 0&&v.inferredPingId!==void 0&&v.beaconFactory!==void 0}),Ia(function(v){return pRE(v)!==null}),L$Q(function(v){return v.activeViewUnmeasurableEvent},function(v){return v.emit}),gu(function(v){if(v.isTurtlex){var Q=v.reportFencedFrameEvent;
if(Q){var V;Q({eventType:"active-view-unmeasurable",eventData:(V=v.turtlexReportEventData)!=null?V:"",destination:["buyer"]})}}else{V=void 0;var E=pRE(v);if(E==="x"){var b,F=(b=v.geometricMeasurementErrors)!=null?b:v.contextValidationErrors;F&&(Q=F.stack,V=F.message)}v.urlSerializer(Object.assign({},v,{urlPrefixes:v.immediateUrlPrefixes,payloadMapper:v.payloadMapper,pingId:v.inferredPingId,viewState:2,reasonCode:E,errorMessage:V,errorStack:Q}),Jd(v)).forEach(function(t){v.beaconFactory.makeBeacon(t).sendNow()})}}),
EY(1),Qx());var ep9=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var qib=kw(Ia(function(v){return v.payloadMapper!==void 0&&v.immediateUrlPrefixes!==void 0&&v.urlSerializer!==void 0&&v.inferredPingId!==void 0&&v.beaconFactory!==void 0}),gu(function(v){return Object.assign({},v,{timestamps:Jd(v)})}),Ia(function(v){var Q=v.viewable;
var V=v.hasImpressionFired;v=v.timestamps;var E;return!!V&&((E=Q==null?void 0:Q.extrapolateUsingTimestampMap(v).value)!=null?E:!1)}),L$Q(function(v){return v.activeViewViewableEvent},function(v){return v.emit}),gu(function(v){var Q=v.beaconFactory,V=v.turtlexReportEventData;
if(v.isTurtlex){var E=v.reportFencedFrameEvent;if(!E)return!1;E({eventType:"active-view-viewable",eventData:V!=null?V:"",destination:["buyer"]});return!0}V=v.urlSerializer(Object.assign({},v,{urlPrefixes:v.immediateUrlPrefixes,payloadMapper:v.payloadMapper,pingId:v.inferredPingId,viewState:4,reasonCode:"v"}),v.timestamps);(E=v.cpmavUrls)&&E.length>0&&v.viewUrlSerializer&&v.viewUrlSerializer(E,v).forEach(function(b){Q.makeBeacon(b).sendNow()});
(E=v.viewableRelayUrls)&&E.length>0&&v.viewUrlSerializer&&v.viewUrlSerializer(E,v).forEach(function(b){Q.makeBeacon(b).sendNow()});
V.forEach(function(b){Q.makeBeacon(b,{attributionEnabled:v.isViewableAttributionEnabled}).sendNow()});
return!0}),P4(function(v){return!v}),Qx());var Vgm=gu(function(v){return[v.value.topWindowViewportExternalGeometry.width,v.value.topWindowViewportExternalGeometry.height]});var Ib=function(v,Q){this.callback=v;this.options=Q;this.intersectionObserverV2=this.intersectionObserverV1=null},xA3=function(v,Q){Q?v.intersectionObserverV2||(Q=Object.assign({},v.options,{delay:100,
trackVisibility:!0}),v.intersectionObserverV2=new IntersectionObserver(v.callback,Q)):v.intersectionObserverV1||(v.intersectionObserverV1=new IntersectionObserver(v.callback,v.options))},wMA=function(v,Q){v=Q?v.intersectionObserverV2:v.intersectionObserverV1;
if(!v)throw new M1q;return v};
Ib.prototype.observe=function(v,Q){wMA(this,v).observe(Q)};
Ib.prototype.unobserve=function(v,Q){wMA(this,v).unobserve(Q)};
Ib.prototype.disconnect=function(v){wMA(this,v).disconnect()};
Ib.prototype.takeRecords=function(v){return wMA(this,v).takeRecords()};var CHr={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:mQ,topWindowViewportExternalGeometry:mQ,measurementRequests:new yx,elementGeometrySourceName:"ns",elementGeometry:mQ,intersectionGeometry:mQ,viewportLocalAppOffset:{x:0,y:0}};var oUo=UY(kw(gu(function(v){var Q;return(Q=v.exposureOverride)!=null?Q:gUG(v)}),gu(function(v){return isFinite(v)?v:0}))),mAS=UY(kw(gu(function(v){var Q;
return(Q=v.exposureOverride)!=null?Q:gUG(v)}),gu(function(v){return isFinite(v)?v:-1})));var aM=function(v,Q){this.a=v;this.b=Q;if(v.clock.timeline!==Q.clock.timeline)throw Error();};
aM.prototype.equivalentTo=function(v){return v instanceof aM?this.a.equivalentTo(v.a)&&this.b.equivalentTo(v.b):!1};
aM.prototype.extrapolateToTime=function(v){var Q=this.a.extrapolateToTime(v).value,V=this.b.extrapolateToTime(v).value;return{timestamp:v,value:[Q,V]}};
_.hr.Object.defineProperties(aM.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var v=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),Q=this.a.lastMeasurement.timestamp.equals(v)?this.a.lastMeasurement.value:this.a.extrapolateToTime(v).value,V=this.b.lastMeasurement.timestamp.equals(v)?this.b.lastMeasurement.value:this.b.extrapolateToTime(v).value;return{timestamp:v,value:[Q,V]}}}});var r2=function(v,Q){this.input=v;this.mapFunction=Q;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
r2.prototype.equivalentTo=function(v){return v instanceof r2?this.input.equivalentTo(v.input)&&this.mapFunction===v.mapFunction:!1};
r2.prototype.extrapolateToTime=function(v){v=this.input.extrapolateToTime(v);return{timestamp:v.timestamp,value:this.mapFunction(v.value)}};
_.hr.Object.defineProperties(r2.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var $$=function(){};
$$.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
$$.prototype.extrapolateUsingTimestampMap=function(v){var Q=this.clock.timeline,V,E=(V=v.get(Q))!=null?V:this.clock.now();v.set(Q,E);return this.extrapolateToTime(E)};
$$.prototype.map=function(v){return new A5x(this,v)};
$$.prototype.joinWith=function(v){return new kca(this,v)};
var kca=function(){aM.apply(this,arguments);this.map=$$.prototype.map;this.joinWith=$$.prototype.joinWith;this.extrapolateToNow=$$.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$$.prototype.extrapolateUsingTimestampMap};
_.f(kca,aM);var A5x=function(){r2.apply(this,arguments);this.map=$$.prototype.map;this.joinWith=$$.prototype.joinWith;this.extrapolateToNow=$$.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$$.prototype.extrapolateUsingTimestampMap};
_.f(A5x,r2);var Vl=function(v,Q){this.lastMeasurement=Q;this.extrapolateToNow=$$.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$$.prototype.extrapolateUsingTimestampMap;this.map=$$.prototype.map;this.joinWith=$$.prototype.joinWith;this.clock=v};
Vl.prototype.equivalentTo=function(v){return v.active};
Vl.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.hr.Object.defineProperties(Vl.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var QSb=gu(function(v){if(v.value.viewportGeometrySourceName==="omid"){if(v.value.elementGeometrySourceName==="nio")return"omio";if(v.value.elementGeometrySourceName==="geo")return"omgeo"}return v.value.elementGeometrySourceName==="geo"||v.value.elementGeometrySourceName==="nio"?v.value.viewportGeometrySourceName:v.value.elementGeometrySourceName});var ub3=kw(Ia(function(v){return!isNaN(v)}),pw(function(v,Q){return isNaN(v)?Q:Math.min(v,Q)},NaN),ba());var XRS=UY(kw(gu(function(v){return v.intersectionGeometry.width*v.intersectionGeometry.height/(v.exposedViewportLocalGeometry.width*v.exposedViewportLocalGeometry.height)}),gu(function(v){return isFinite(v)?Math.min(1,v):0})));var vb3=kw(UY(gu(function(v){v=v.exposureOverride?v.elementGeometry.width*v.elementGeometry.height*v.exposureOverride/(v.topWindowViewportExternalGeometry.width*v.topWindowViewportExternalGeometry.height):v.intersectionGeometry.width*v.intersectionGeometry.height/(v.topWindowViewportExternalGeometry.width*v.topWindowViewportExternalGeometry.height);return isFinite(v)?v:0})));var FXQ=function(v,Q){var V=this;this.timeProvider=v;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=Q.pipe(ba()).subscribe(function(E){iUE(V);V.measurementRequestObserver=E})},LXG=function(v,Q){iUE(v);
v.lastMeasurementRequest=v.timeProvider.setTimeout(function(){var V;return void((V=v.measurementRequestObserver)==null?void 0:V.next())},Q)},iUE=function(v){v.lastMeasurementRequest!==null&&v.timeProvider.clearTimeout(v.lastMeasurementRequest);
v.lastMeasurementRequest=null};
FXQ.prototype.dispose=function(){iUE(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var TZ8=function(){};var RJh=function(v,Q){this.context=v;this.strategies=Q};
_.f(RJh,TZ8);RJh.prototype.buildGeometrySource=function(v,Q){var V=this.strategies.map(function(F){return F.buildGeometrySource(v,Q)}),E=Pkh(V.map(function(F){return F.geometrySource})),b=E.capturedErrors.pipe(YhZ());
return{geometrySource:E.chain.pipe(fw(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:b,strategyErrors:E.capturedErrors}].concat(_.ui(V.map(function(F){return F.additionalOutputs}))))}};
var YhZ=function(){return pw(function(v,Q){Q instanceof x4?v.push(Q.measurementStrategyFailureReason):v.push(-1);return v},[])};var lxo=function(v,Q){this.context=v;this.poller=Q};
_.f(lxo,TZ8);lxo.prototype.buildGeometrySource=function(v,Q){var V=dPb(wUT(this.context,this.poller),M_B(this.context,Q.requestSource));return{geometrySource:ZUG(v.measurableCreative.pipe(V),Q.inApp),additionalOutputs:{}}};var nbb=function(v,Q,V){V=V===void 0?qXS(v,Q):V;this.context=v;this.intersectionObserverStrategy=V};
_.f(nbb,TZ8);nbb.prototype.buildGeometrySource=function(v,Q){var V=this.intersectionObserverStrategy(Q.useV2);return{geometrySource:ZUG(v.measurableCreative.pipe(V,SXB(this.context)),Q.inApp),additionalOutputs:{}}};var y5Z=function(v,Q,V){var E=E===void 0?Symbol():E;this.element=v;this.immediateUrls=Q;this.timeOnScreenUrls=V;this.symbol=E};var bUZ=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),y1r=Object.freeze([1,.75,bUZ.exposureThreshold,bUZ.largeAdExposureThreshold,0]);var z3E=function(v,Q){Q=Q===void 0?36E5:Q;var V=V===void 0?!0:V;this.creatives=new yx;this.elementsToUnregister=new yx;this.elementMap=new Map;var E=new F9(window,null);E.beaconFactory=new AZ(E,new j3(E));DPt(E,this.creatives,this.elementsToUnregister,v,Q,V).subscribe()},xGo=function(v,Q,V,E){if(!v.elementMap.has(Q)){var b=new ab(Q);
v.elementMap.set(Q,b);v.creatives.next(new y5Z(b,V,E))}},NMZ=function(v,Q){v.elementsToUnregister.next(Q);
var V=v.elementMap.get(Q);V!==void 0&&(V.release(),v.elementMap.delete(Q))};var gvB=function(v){var Q=v.url;v=v.uaDataValues;this.JSC$9556_url_=Q;this.uaDataValues_=v;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var V=/[?&]([^&=]+)=([^&]*)/g;v=V.exec(Q);)this.urlParamValues_[v[1]]=v[2]},s1G=function(v){v=v.uaDataValues_;
if(!v)return"";var Q=Lg("uap",v.platform)+Lg("uapv",v.platformVersion)+Lg("uafv",v.uaFullVersion)+Lg("uaa",v.architecture)+Lg("uam",v.model)+Lg("uab",v.bitness);v.fullVersionList&&(Q+="&uafvl="+encodeURIComponent(v.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+";"+encodeURIComponent(V.version)}).join("|")));
v.wow64!=null&&(Q+="&uaw="+Number(v.wow64));return Q.slice(1)};var c5N=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(c5N,_.Lf);c5N.prototype.getId=function(){return _.fN(this,1)};var IM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(IM,_.Lf);IM.prototype.getSeconds=function(){return y2(this,1)};
IM.prototype.setSeconds=function(v){return _.vq(this,1,Ps(v),"0")};_.Cr=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(_.Cr,_.Lf);_.Cr.prototype.getSeconds=function(){return y2(this,1)};
_.Cr.prototype.setSeconds=function(v){return _.vq(this,1,Ps(v),"0")};
_.fgN=function(v){var Q=Number(CN(v,1));v=_.h5(v,2);return new Date(Q*1E3+v/1E6)};var H7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(H7,_.Lf);H7.prototype.getUrl=function(){return _.fN(this,1)};
H7.prototype.setUrl=function(v){return _.NM(this,1,v)};
H7.prototype.getHeight=function(){return _.h5(this,2)};
H7.prototype.getWidth=function(){return _.h5(this,3)};var mw=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(mw,_.Lf);mw.prototype.getAspectRatio=function(){return cC(this,1)};
mw.prototype.getDuration=function(){return _.TY(this,IM,2)};var GcN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(GcN,_.Lf);var Ct8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Ct8,_.Lf);var MK8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(MK8,_.Lf);var Oga=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Oga,_.Lf);var DzX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(DzX,_.Lf);var RIQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(RIQ,_.Lf);var nJS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(nJS,_.Lf);var lgq=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(lgq,_.Lf);var qhA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(qhA,_.Lf);var Uc=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Uc,_.Lf);var vA=[2,4,5,6,7];var Shp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Shp,_.Lf);var kK=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(kK,_.Lf);_.K=kK.prototype;_.K.getId=function(){return _.TY(this,c5N,1)};
_.K.getName=function(){return _.fN(this,2)};
_.K.setDescription=function(v){return _.NM(this,3,v)};
_.K.getUrl=function(){return _.fN(this,8)};
_.K.setUrl=function(v){return _.NM(this,8,v)};
var QM=function(v){return _.PM(v,H7,10,_.dZ())};
kK.prototype.getOwner=function(v){var Q=_.I8(this,40,_.fj,3,!0);Umb(Q,v);return Q[v]};
var VM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(VM,_.Lf);_.EE=[0,gB,y7S];_.bc=[0,gB,y7S];var zIZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(zIZ,_.Lf);var F5=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(F5,_.Lf);F5.prototype.getStatus=function(){return _.Gs(this,1)};
F5.prototype.removeItem=function(v){return lXV(this,2,v)};var J5q=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(J5q,_.Lf);J5q.prototype.getName=function(){return _.fN(this,8)};var Kv=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Kv,_.Lf);Kv.prototype.getCommand=function(){return _.Gs(this,1)};
Kv.prototype.getSource=function(){return _.TY(this,J5q,2)};
Kv.prototype.setVisible=function(v){return _.yC(this,5,v)};
Kv.prototype.removeItem=function(v){return lXV(this,7,v)};var NZS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(NZS,_.Lf);NZS.prototype.getCommand=function(){return _.Gs(this,1)};
NZS.prototype.removeItem=function(v){return lXV(this,4,v)};
var xzV=_.Gd(NZS);var ic=function(v,Q,V){V=V===void 0?Error():V;var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=v;Q+=":";V instanceof Error?(this.message=Q+V.message,this.stack=V.stack||""):(this.message=Q+String(V),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(ic,Error);_.J5=function(){this.JSC$9614_disposed_=this.JSC$9614_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.J5.prototype.JSC$9614_disposed_=!1;_.J5.prototype.isDisposed=function(){return this.JSC$9614_disposed_};
_.J5.prototype.dispose=function(){this.JSC$9614_disposed_||(this.JSC$9614_disposed_=!0,this.disposeInternal())};
_.J5.prototype[Symbol.dispose]=function(){this.dispose()};
_.Cg=function(v,Q){v.addOnDisposeCallback(_.pt(_.t5,Q))};
_.J5.prototype.addOnDisposeCallback=function(v,Q){this.JSC$9614_disposed_?Q!==void 0?v.call(Q):v():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),Q&&(v=v.bind(Q)),this.onDisposeCallbacks_.push(v))};
_.J5.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Lv=function(v){_.J5.call(this);this.wpc=v};
_.f(Lv,_.J5);Lv.prototype.dtv=function(){return this.wpc.f()};
Lv.prototype.qBg=function(v){return this.wpc.c(v)};
Lv.prototype.ah=function(v){return this.wpc.m(obb(v))};
Lv.prototype.rgz=function(v){return this.wpc.mws(obb(v))};
var eK=function(v){_.J5.call(this);var Q=this;this.vm=v;this.wDw="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.vlf=void 0;this.bwW=this.vm.p;this.gh6=this.qf2.bind(this);this.addOnDisposeCallback(function(){return void BZa(Q)})};
_.f(eK,_.J5);var gJX=function(v){var Q;return _.e(function(V){if(V.nextAddress==1){if(!v.vm.wpc)throw new ic(30,"NWA");return v.rQz?V.return(v.rQz):V.yield(v.vm.wpc(),2)}Q=V.yieldResult;v.rQz=new Lv(Q);return V.return(v.rQz)})};
eK.prototype.snapshot=function(v){return this.vm.s(Object.assign({},v.hj&&{c:v.hj},v.wYZ&&{s:v.wYZ},v.eWX!==void 0&&{p:v.eWX}))};
eK.prototype.qf2=function(v){this.vm.e(v)};
eK.prototype.n2q=function(v,Q){return this.vm.c(v,Q,!1)};
var BZa=function(v){v.vlf!==void 0&&(v.wDw.forEach(function(Q){var V;(V=v.vlf)==null||V.removeEventListener(Q,v.gh6)}),v.vlf=void 0)};
eK.prototype.uVA=function(){return this.vm.l()};var tG=function(){_.J5.apply(this,arguments);this.vew=1};
_.f(tG,_.J5);tG.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.vew++;return this};
tG.prototype.dispose=function(){--this.vew||_.J5.prototype.dispose.call(this)};var sDS=function(v){this.iGG=v;v.addNewEventMetric("/client_streamz/bg/frs",_.kJ("mk"))};
sDS.prototype.record=function(v,Q){this.iGG.record("/client_streamz/bg/frs",v,Q)};
var u9p=function(v){this.kWm=v;v.addNewEventMetric("/client_streamz/bg/wrl",_.kJ("mn"),A5("ac"),A5("sc"),_.kJ("rk"),_.kJ("mk"))};
u9p.prototype.record=function(v,Q,V,E,b,F){this.kWm.record("/client_streamz/bg/wrl",v,Q,V,E,b,F)};
var jDa=function(v){this.yAm=v;v.addNewCounter("/client_streamz/bg/ec",_.kJ("en"),_.kJ("mk"))};
jDa.prototype.increment=function(v,Q){this.yAm.JSC$9867_incrementCounter("/client_streamz/bg/ec",v,Q)};
var WeX=function(v){this.wQy=v;v.addNewEventMetric("/client_streamz/bg/el",_.kJ("en"),_.kJ("mk"))};
WeX.prototype.record=function(v,Q,V){this.wQy.record("/client_streamz/bg/el",v,Q,V)};
var oJp=function(v){this.e3y=v;v.addNewCounter("/client_streamz/bg/cec",A5("ec"),_.kJ("mk"))};
oJp.prototype.increment=function(v,Q){this.e3y.JSC$9867_incrementCounter("/client_streamz/bg/cec",v,Q)};
var XMS=function(v){this.bZp=v;v.addNewCounter("/client_streamz/bg/po/csc",A5("cs"),_.kJ("mk"))};
XMS.prototype.increment=function(v,Q){this.bZp.JSC$9867_incrementCounter("/client_streamz/bg/po/csc",v,Q)};
var aga=function(v){this.u3g=v;v.addNewCounter("/client_streamz/bg/po/ctav",_.kJ("av"),_.kJ("mk"))};
aga.prototype.increment=function(v,Q){this.u3g.JSC$9867_incrementCounter("/client_streamz/bg/po/ctav",v,Q)};
var r5x=function(v){this.tAf=v;v.addNewCounter("/client_streamz/bg/po/cwsc",_.kJ("su"),_.kJ("mk"))};
r5x.prototype.increment=function(v,Q){this.tAf.JSC$9867_incrementCounter("/client_streamz/bg/po/cwsc",v,Q)};var T$0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(T$0,_.Lf);var k_3=function(v,Q){return _.Ud(v,3,Q,YRB)};var $za=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f($za,_.Lf);var IgX=[1,2,3];var HgN=[0,IgX,_.$K,c7V,ChX];var mzq=[0,_.Iq,[0,xK,_.BC]];var Uzx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Uzx,_.Lf);var vUX=[1,2,3];var Qra=[0,vUX,TYS,d$A,_.HC,mzq];var V_a=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(V_a,_.Lf);var EUA=[0,_.Iq,HgN,Qra];var baA=[0,_.aq];var F$x=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(F$x,_.Lf);var K$8=[0,_.aq,-1,_.oq];var iaV=[0,_.aq,-1,_.WC,_.oq];var L$a=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(L$a,_.Lf);var t_a=[1,2,3];var pRZ=[0,t_a,_.HC,K$8,_.HC,iaV,_.HC,baA];var epN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(epN,_.Lf);epN.prototype.JSC$9687_serializeBinary=a5G([0,_.aq,pRZ,MqQ,_.Iq,EUA,f0Q,_.GhZ]);var ZaV=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(ZaV,_.Lf);var hpA=function(v){var Q=new epN;Q=_.SS(Q,1,v.JSC$9803_metricName);var V=PH8(v);Q=_.Ud(Q,3,V,_.kf);V=[];for(var E=[],b=_.L(v.cellMap.keys()),F=b.next();!F.done;F=b.next())E.push(F.value.split(","));for(b=0;b<E.length;b++){F=E[b];for(var t=v.cellType,p=v.getCells(F)||[],Z=[],d=0;d<p.length;d++){var w=p[d],A=w&&w.cellValue;w=new Uzx;switch(t){case 3:A=Number(A);Number.isFinite(A)&&np(w,1,vUX,Ps(A));break;case 2:np(w,2,vUX,_.IN(Number(A)))}Z.push(w)}t=Z;for(p=0;p<t.length;p++){Z=t[p];d=new V_a;Z=_.Mj(d,
2,Z);d=[];w=dAa(v);for(A=0;A<w.length;A++){var k=w[A],T=F[A],c=new $za;switch(k){case 3:np(c,1,IgX,y5(String(T)));break;case 2:k=Number(T);Number.isFinite(k)&&np(c,2,IgX,_.Lj(k));break;case 1:np(c,3,IgX,ASb(T==="true"))}d.push(c)}AI(Z,1,d);V.push(Z)}}AI(Q,4,V);return Q};var wRQ=function(v){if(!v)return"";if(/^about:(?:blank|srcdoc)$/.test(v))return window.origin||"";v.indexOf("blob:")===0&&(v=v.substring(5));v=v.split("#")[0].split("?")[0];v=v.toLowerCase();v.indexOf("//")==0&&(v=window.location.protocol+v);/^[\w\-]*:\/\//.test(v)||(v=window.location.href);var Q=v.substring(v.indexOf("://")+3),V=Q.indexOf("/");V!=-1&&(Q=Q.substring(0,V));V=v.substring(0,v.indexOf("://"));if(!V)throw Error("qa`"+v);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);v="";var E=Q.indexOf(":");if(E!=-1){var b=Q.substring(E+1);Q=Q.substring(0,E);if(V==="http"&&b!=="80"||V==="https"&&b!=="443")v=":"+b}return V+"://"+Q+v};var kex=function(v,Q,V){var E=String(_.bb.location.href);return E&&v&&Q?[Q,Aaa(wRQ(E),v,V||null)].join(" "):null},Aaa=function(v,Q,V){var E=[],b=[];
if((Array.isArray(V)?2:1)==1)return b=[Q,v],_.bv(E,function(p){b.push(p)}),TbZ(b.join(" "));
var F=[],t=[];_.bv(V,function(p){t.push(p.key);F.push(p.value)});
V=Math.floor((new Date).getTime()/1E3);b=F.length==0?[V,Q,v]:[F.join(":"),V,Q,v];_.bv(E,function(p){b.push(p)});
v=TbZ(b.join(" "));v=[V,v];t.length==0||v.push(t.join(""));return v.join("_")},TbZ=function(v){var Q=UP9();
Q.update(v);return Q.digestString().toLowerCase()};var pv=function(v){this.JSC$9698_document_=v||{cookie:""}},YXQ;
_.K=pv.prototype;_.K.isEnabled=function(){if(!_.bb.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};
_.K.set=function(v,Q,V){var E=!1;if(typeof V==="object"){var b=V.sameSite;E=V.secure||!1;var F=V.domain||void 0;var t=V.path||void 0;var p=V.maxAge}if(/[;=\s]/.test(v))throw Error("sa`"+v);if(/[;\r\n]/.test(Q))throw Error("ta`"+Q);p===void 0&&(p=-1);V=F?";domain="+F:"";t=t?";path="+t:"";E=E?";secure":"";p=p<0?"":p==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+p*1E3)).toUTCString();this.JSC$9698_document_.cookie=v+"="+Q+V+t+p+E+(b!=null?";samesite="+b:"")};
_.K.get=function(v,Q){for(var V=v+"=",E=(this.JSC$9698_document_.cookie||"").split(";"),b=0,F;b<E.length;b++){F=dG(E[b]);if(F.lastIndexOf(V,0)==0)return F.slice(V.length);if(F==v)return""}return Q};
_.K.remove=function(v,Q,V){var E=this.containsKey(v);this.set(v,"",{maxAge:0,path:Q,domain:V});return E};
_.K.getKeys=function(){return YXQ(this).keys};
_.K.getValues=function(){return YXQ(this).values};
_.K.isEmpty=function(){return!this.JSC$9698_document_.cookie};
_.K.getCount=function(){return this.JSC$9698_document_.cookie?(this.JSC$9698_document_.cookie||"").split(";").length:0};
_.K.containsKey=function(v){return this.get(v)!==void 0};
_.K.containsValue=function(v){for(var Q=YXQ(this).values,V=0;V<Q.length;V++)if(Q[V]==v)return!0;return!1};
_.K.clear=function(){for(var v=YXQ(this).keys,Q=v.length-1;Q>=0;Q--)this.remove(v[Q])};
YXQ=function(v){v=(v.JSC$9698_document_.cookie||"").split(";");for(var Q=[],V=[],E,b,F=0;F<v.length;F++)b=dG(v[F]),E=b.indexOf("="),E==-1?(Q.push(""),V.push(b)):(Q.push(b.substring(0,E)),V.push(b.substring(E+1)));return{keys:Q,values:V}};
_.qY=new pv(typeof document=="undefined"?null:document);var jB3,ya8;jB3=function(){var v=_.bb.__SAPISID||_.bb.__APISID||_.bb.__3PSAPISID||_.bb.__1PSAPISID||_.bb.__OVERRIDE_SID;if(v)return!0;typeof document!=="undefined"&&(v=new pv(document),v=v.get("SAPISID")||v.get("APISID")||v.get("__Secure-3PAPISID")||v.get("__Secure-1PAPISID"));return!!v};
ya8=function(v,Q,V,E){(v=_.bb[v])||typeof document==="undefined"||(v=(new pv(document)).get(Q));return v?kex(v,V,E):null};
_.h$S=function(v){var Q=wRQ(_.bb==null?void 0:_.bb.location.href),V=[];if(jB3()){Q=Q.indexOf("https:")==0||Q.indexOf("chrome-extension:")==0||Q.indexOf("chrome-untrusted://new-tab-page")==0||Q.indexOf("moz-extension:")==0;var E=Q?_.bb.__SAPISID:_.bb.__APISID;E||typeof document==="undefined"||(E=new pv(document),E=E.get(Q?"SAPISID":"APISID")||E.get("__Secure-3PAPISID"));(E=E?kex(E,Q?"SAPISIDHASH":"APISIDHASH",v):null)&&V.push(E);Q&&((Q=ya8("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",v))&&V.push(Q),
(v=ya8("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",v))&&V.push(v))}return V.length==0?null:V.join(" ")};var caZ=function(){this.minSize=1024};
caZ.prototype.compress=function(v){var Q,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return Q=new CompressionStream("gzip"),V=(new Response(Q.readable)).arrayBuffer(),E=Q.writable.getWriter(),F.yield(E.write((new TextEncoder).encode(v)),2);case 2:return F.yield(E.close(),3);case 3:return b=Uint8Array,F.yield(V,4);case 4:return F.return(new b(F.yieldResult))}})};
caZ.prototype.isSupported=function(v){return v<this.minSize?!1:typeof CompressionStream!=="undefined"};var fQa=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(fQa,_.Lf);var eD=function(v,Q){this.intervalMs=v;this.callback=Q;this.enabled=!1;this.nowFn=function(){return _.IC()};
this.lastTimeMs=this.nowFn()};
eD.prototype.setInterval=function(v){this.intervalMs=v;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
eD.prototype.start=function(){var v=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){v.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
eD.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
eD.prototype.tick=function(){var v=this;if(this.enabled){var Q=Math.max(this.nowFn()-this.lastTimeMs,0);Q<this.intervalMs*.8?this.timer=setTimeout(function(){v.tick()},this.intervalMs-Q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Gea=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Gea,_.Lf);var CHa=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(CHa,_.Lf);var M_R=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(M_R,_.Lf);M_R.prototype.getTransmissionType=function(){return _.Gs(this,1)};var Ed3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Ed3,_.Lf);var ZO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(ZO,_.Lf);var VwT=function(v){AI(biZ,1,v)};
ZO.prototype.getModel=function(){return _.fN(this,6)};
var OaZ=_.Gd(ZO);var DAX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(DAX,_.Lf);var vd0=["platform","platformVersion","architecture","model","uaFullVersion"],biZ=new ZO,QmT=null;var PA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(PA,_.Lf);var Rpp=function(v){return _.YF(v,1,1)};var nUR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,4)};
_.f(nUR,_.Lf);_.dL=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,36)};
_.f(_.dL,_.Lf);_.dL.prototype.getExperimentIds=function(){return _.TY(this,fQa,16)};var lQa=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,19)};
_.f(lQa,_.Lf);lQa.prototype.setLogSource=function(v){return _.YF(this,2,v)};
lQa.prototype.setScheduler=function(v){return _.YF(this,10,v)};var SXR=function(v,Q){this.isServiceWorkerScope=Q=Q===void 0?!1:Q;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new lQa;Number.isInteger(v)&&this.logRequest.setLogSource(v);Q||(this.locale=document.documentElement.getAttribute("lang"));qXA(this,new PA)};
SXR.prototype.setLogSource=function(v){this.logRequest.setLogSource(v);return this};
var qXA=function(v,Q){_.Mj(v.logRequest,1,Q);_.Gs(Q,1)||Rpp(Q);v.isServiceWorkerScope||(Q=hG(v),_.fN(Q,5)||_.SS(Q,5,v.locale));v.uach&&(Q=hG(v),_.TY(Q,ZO,9)||_.Mj(Q,9,v.uach))},zpS=function(v,Q){v.transmissionType=Q},JaS=function(v){var Q=Q===void 0?vd0:Q;
var V=v.isServiceWorkerScope?void 0:jS();V?FFm(V,Q).then(function(E){v.uach=OaZ(E!=null?E:"[]");E=hG(v);_.Mj(E,9,v.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},hG=function(v){var Q=_.TY(v.logRequest,PA,1);
Q||(Q=new PA,qXA(v,Q));v=Q;Q=_.TY(v,DAX,11);Q||(Q=new DAX,_.Mj(v,11,Q));return Q};
SXR.prototype.build=function(v,Q,V,E,b,F){Q=Q===void 0?0:Q;V=V===void 0?0:V;E=E===void 0?null:E;b=b===void 0?0:b;F=F===void 0?0:F;if(!this.isServiceWorkerScope){var t=hG(this);var p=new M_R;p=_.YF(p,1,this.transmissionType);p=_.Tc(p,2,this.isFinal);V=_.DD(p,3,V>0?V:void 0);V=_.DD(V,4,b>0?b:void 0);V=_.DD(V,5,F>0?F:void 0);b=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F=b[_.bx]|0;V=CZ(V,F)?V:D$G(V,b,F)?Oj3(V,b):new V.constructor(gY(b,F,!0));_.Mj(t,10,V)}t=this.logRequest.clone();V=Date.now().toString();
t=_.yh(t,4,Ps(V));v=v.slice();v=AI(t,3,v);E&&(t=new Gea,E=_.DD(t,13,E),t=new CHa,E=_.Mj(t,2,E),t=new nUR,E=_.Mj(t,1,E),E=_.YF(E,2,9),_.Mj(v,18,E));Q&&_.xh(v,14,Q);return v};YJ.prototype.currBackoffCount_=0;YJ.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
YJ.prototype.getValue=function(){return this.currValue_};
var Nbq=function(v){v.currBaseValue_=Math.min(v.maxValue_,v.currBaseValue_*v.backoffFactor_);v.currValue_=Math.min(v.maxValue_,v.currBaseValue_+(v.randomFactor_?Math.round(v.randomFactor_*(Math.random()-.5)*2*v.currBaseValue_):0));v.currBackoffCount_++};var l0a=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,8)};
_.f(l0a,_.Lf);var xAS=_.Gd(l0a);var qdN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(qdN,_.Lf);var wL;wL=new SdV;var AG=function(v){_.J5.call(this);var Q=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9776_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$9776_sendBeaconApiEnabled=!1;this.logSource=v.logSource;this.getAuthHeaderValue=
v.getAuthHeaderValue||function(){};
this.logRequestBuilder=new SXR(v.logSource,v.isServiceWorkerScope);this.network=v.network||null;this.productID=v.productID||null;this.bufferSize=1E3;this.clearcutUrl=v.urlOverride||null;this.sessionIndex=v.sessionIndex||null;this.disableAutomaticFlush=v.disableAutomaticFlush||!1;this.withCredentials=!v.disableWithCredentials;this.isServiceWorkerScope=v.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!jS()&&!!jS().navigator&&jS().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Bba())).searchParams&&!!(new URL(Bba())).searchParams.set;var V=Rpp(new PA);qXA(this.logRequestBuilder,V);this.flushBackoff=new YJ(1E4,3E5,.1);v=gUV(this,v.backgroundJobDeferrer);this.JSC$9776_flushTimer=new eD(this.flushBackoff.getValue(),v);this.backupTimer=new eD(6E5,v);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){sra(Q);
var E;(E=Q.metalogService)==null||E.flush()}}),document.addEventListener("pagehide",function(){sra(Q);
var E;(E=Q.metalogService)==null||E.flush()}))};
_.f(AG,_.J5);var gUV=function(v,Q){return v.isBrowserSupported?Q?function(){Q().then(function(){v.flush()})}:function(){v.flush()}:function(){}};
AG.prototype.disposeInternal=function(){sra(this);this.JSC$9776_flushTimer.stop();this.backupTimer.stop();_.J5.prototype.disposeInternal.call(this)};
var ubS=function(v){v.clearcutUrl||(v.clearcutUrl=Bba());try{return(new URL(v.clearcutUrl)).toString()}catch(Q){return(new URL(v.clearcutUrl,jS().location.origin)).toString()}};
AG.prototype.dispatch=function(v){if(v instanceof _.dL)this.log(v);else try{var Q=new _.dL,V=v.serialize();var E=_.SS(Q,8,V);this.log(E)}catch(b){Yu(this,4,1)}};
var Yu=function(v,Q,V){v.metalogService&&v.metalogService.increment(Q,V)};
AG.prototype.log=function(v){Yu(this,2,1);if(this.isBrowserSupported){v=v.clone();var Q=this.sequencePosition++;v=_.xh(v,21,Q);this.componentId&&_.SS(v,26,this.componentId);Q=v;if(JSG(_.em(Q,1))==null){var V=Date.now();V=Number.isFinite(V)?V.toString():"0";_.yh(Q,1,Ps(V))}_.zQS(_.em(Q,15))!=null||_.xh(Q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),_.Mj(Q,16,V));Yu(this,1,1);Q=this.pendingEvents.length-this.bufferSize+1;Q>0&&(this.pendingEvents.splice(0,Q),
this.numLogsDroppedSinceLastFlush+=Q,Yu(this,3,Q));this.pendingEvents.push(v);this.disableAutomaticFlush||this.JSC$9776_flushTimer.enabled||this.JSC$9776_flushTimer.start()}};
AG.prototype.flush=function(v,Q){var V=this;if(this.pendingEvents.length===0)v&&v();else if(this.JSC$9776_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,jra(this);else{var E=Date.now();if(this.noFlushUntilMs>E&&this.startWaitingMs<E)Q&&Q("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?zpS(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var b=this.pendingEvents.length,
F=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),t=this.getAuthHeaderValue();if(t&&this.lastFailedAuth===t)Q&&Q("stale-auth-token");else{this.pendingEvents=[];this.JSC$9776_flushTimer.enabled&&this.JSC$9776_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;E=F.serialize();var p;this.JSC$9776_compressor&&this.JSC$9776_compressor.isSupported(E.length)&&
(p=this.JSC$9776_compressor.compress(E));var Z=W$8(this,E,t),d=function(k){V.flushBackoff.reset();V.JSC$9776_flushTimer.setInterval(V.flushBackoff.getValue());if(k){var T=null;try{var c=JSON.stringify(JSON.parse(k.replace(")]}'\n","")));T=xAS(c)}catch(C){}T&&(k=Number(y2(T,1,_.xa("-1"))),k>0&&(V.startWaitingMs=Date.now(),V.noFlushUntilMs=V.startWaitingMs+k),EfB(T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,wL.fieldIndex),Q8b(T,wL.fieldIndex),T=wL.ctor?wL.getExtensionFn(T,wL.ctor,wL.fieldIndex,
wL.JSC$8956_hasMessageId):wL.getExtensionFn(T,wL.fieldIndex,null,wL.JSC$8956_hasMessageId),T=T===null?void 0:T)&&(T=_.h5(T,1,-1),T!==-1&&(V.flushBackoff=new YJ(T<1?1:T,3E5,.1),V.JSC$9776_flushTimer.setInterval(V.flushBackoff.getValue())))}v&&v();V.numRetriesSinceLastSuccessfulFlush=0},w=function(k,T){var c=_.PM(F,_.dL,3,_.dZ());
var C=Number(y2(F,14));Nbq(V.flushBackoff);V.JSC$9776_flushTimer.setInterval(V.flushBackoff.getValue());k===401&&t&&(V.lastFailedAuth=t);C&&(V.numLogsDroppedSinceLastFlush+=C);T===void 0&&(T=V.isRetryable(k));T&&(V.pendingEvents=c.concat(V.pendingEvents),V.disableAutomaticFlush||V.JSC$9776_flushTimer.enabled||V.JSC$9776_flushTimer.start());Yu(V,7,1);Q&&Q("net-send-failed",k);++V.numRetriesSinceLastSuccessfulFlush},A=function(){V.network&&V.network.send(Z,d,w)};
p?p.then(function(k){Yu(V,5,b);Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=k;Z.bodyType=2;A()},function(){Yu(V,6,b);
A()}):A()}}}};
var W$8=function(v,Q,V){V=V===void 0?null:V;var E=E===void 0?v.withCredentials:E;var b={},F=new URL(ubS(v));V&&(b.Authorization=V);v.sessionIndex&&(b["X-Goog-AuthUser"]=v.sessionIndex,F.searchParams.set("authuser",v.sessionIndex));v.pageId&&(Object.defineProperty(b,"X-Goog-PageId",{value:v.pageId}),F.searchParams.set("pageId",v.pageId));return{url:F.toString(),body:Q,bodyType:1,requestHeaders:b,requestType:"POST",withCredentials:E,timeoutMillis:v.timeoutMillis}},sra=function(v){v.logRequestBuilder.isFinal=
!0;
v.flush();v.logRequestBuilder.isFinal=!1},jra=function(v){oU8(v,function(Q,V){Q=new URL(Q);
Q.searchParams.set("format","json");var E=!1;try{E=jS().navigator.sendBeacon(Q.toString(),V.serialize())}catch(b){}E||(v.isSendBeaconSupported=!1);return E})},oU8=function(v,Q){if(v.pendingEvents.length!==0){var V=new URL(ubS(v));
V.searchParams.delete("format");var E=v.getAuthHeaderValue();E&&V.searchParams.set("auth",E);V.searchParams.set("authuser",v.sessionIndex||"0");for(E=0;E<10&&v.pendingEvents.length;++E){var b=v.pendingEvents.slice(0,32),F=v.logRequestBuilder.build(b,v.numLogsDroppedSinceLastFlush,v.numRetriesSinceLastSuccessfulFlush,v.productID,v.persistedLogRecoveredCount,v.persistedLogExpiredCount);if(!Q(V.toString(),F)){++v.numRetriesSinceLastSuccessfulFlush;break}v.numLogsDroppedSinceLastFlush=0;v.numRetriesSinceLastSuccessfulFlush=
0;v.persistedLogRecoveredCount=0;v.persistedLogExpiredCount=0;v.pendingEvents=v.pendingEvents.slice(b.length)}v.JSC$9776_flushTimer.enabled&&v.JSC$9776_flushTimer.stop()}};
AG.prototype.isRetryable=function(v){return 500<=v&&v<600||v===401||v===0};
var Bba=function(){return"https://play.google.com/log?format=json&hasfast=true"};var XRA=function(){this.abortSupported=typeof AbortController!=="undefined"};
XRA.prototype.send=function(v,Q,V){var E=this,b,F,t,p,Z,d,w,A,k,T;return _.e(function(c){switch(c.nextAddress){case 1:return F=(b=E.abortSupported?new AbortController:void 0)?setTimeout(function(){b.abort()},v.timeoutMillis):void 0,_.GC(c,2,3),t=Object.assign({},{method:v.requestType,
headers:Object.assign({},v.requestHeaders)},v.body&&{body:v.body},v.withCredentials&&{credentials:"include"},{signal:v.timeoutMillis&&b?b.signal:null}),c.yield(fetch(v.url,t),5);case 5:p=c.yieldResult;if(p.status!==200){(Z=V)==null||Z(p.status);c.jumpTo(3);break}if((d=Q)==null){c.jumpTo(7);break}return c.yield(p.text(),8);case 8:d(c.yieldResult);case 7:case 3:_.O_(c);clearTimeout(F);_.Ra(c,0);break;case 2:w=_.n$(c);switch((A=w)==null?void 0:A.name){case "AbortError":(k=V)==null||k(408);break;default:(T=
V)==null||T(400)}c.jumpTo(3)}})};
XRA.prototype.getTransmissionType=function(){return 4};_.cM=function(v,Q){Q=Q===void 0?"0":Q;_.J5.call(this);this.logSource=v;this.sessionIndex=Q;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9794_clearExperimentIds=this.productID=null;this.JSC$9794_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.f(_.cM,_.J5);var hHS=function(v,Q){v.buildLabel=Q;return v},dYT=function(v,Q){v.network=Q;
return v},AtT=function(v,Q){v.JSC$9794_clearExperimentIds=Q},PvT=function(v){v.JSC$9794_sendBeaconApiEnabled=!0;
return v};
_.cM.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.cM.prototype.build=function(){this.network||(this.network=new XRA);var v=new AG({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.h$S,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Cg(this,v);if(this.buildLabel){var Q=this.buildLabel,V=
hG(v.logRequestBuilder);_.SS(V,7,Q)}v.JSC$9776_compressor=new caZ;this.componentId&&(v.componentId=this.componentId);this.productID&&(v.productID=this.productID);this.pageId&&(v.pageId=this.pageId);this.JSC$9794_clearExperimentIds&&((V=this.JSC$9794_clearExperimentIds)?(v.experimentIds||(v.experimentIds=new fQa),Q=v.experimentIds,V=V.serialize(),_.SS(Q,4,V)):v.experimentIds&&_.yh(v.experimentIds,4));this.JSC$9794_sendBeaconApiEnabled&&(v.JSC$9776_sendBeaconApiEnabled=v.isSendBeaconSupported);JaS(v.logRequestBuilder);
this.bufferSize&&(v.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(v);return v};var YGQ=function(v,Q,V,E,b,F,t){v=v===void 0?-1:v;Q=Q===void 0?"":Q;V=V===void 0?"":V;E=E===void 0?!1:E;b=b===void 0?"":b;_.J5.call(this);this.logSource=v;this.componentId=Q;F?Q=F:(v=new _.cM(v,"0"),v.componentId=Q,_.Cg(this,v),V!==""&&(v.destinationUrl=V),E&&(v.serviceWorkerScopeEnabled=!0),b&&hHS(v,b),t&&dYT(v,t),Q=v.build());this.JSC$9798_transport=Q};
_.f(YGQ,_.J5);YGQ.prototype.flush=function(v){v=v||[];if(v.length){for(var Q=new ZaV,V=[],E=0;E<v.length;E++){var b=v[E],F=hpA(b);V.push(F);b.clear()}AI(Q,1,V);this.JSC$9798_transport.dispatch(Q);this.JSC$9798_transport.flush()}};var aQA=function(v){this.cellValue=v};var yM=function(v,Q,V){this.JSC$9803_metricName=v;this.cellType=Q;this.fields=V||[];this.cellMap=new Map},dAa=function(v){return v.fields.map(function(Q){return Q.fieldType})},PH8=function(v){return v.fields.map(function(Q){return Q.fieldName})};
_.K=yM.prototype;_.K.addCell=function(v){var Q=_.aE.apply(1,arguments),V=this.getCells(Q);V?V.push(new aQA(v)):this.JSC$9803_setCell(v,Q)};
_.K.JSC$9803_setCell=function(v){var Q=this.JSC$9803_getKey(_.aE.apply(1,arguments));this.cellMap.set(Q,[new aQA(v)])};
_.K.getCells=function(){var v=this.JSC$9803_getKey(_.aE.apply(0,arguments));return this.cellMap.has(v)?this.cellMap.get(v):void 0};
_.K.getCell=function(){var v=this.getCells(_.aE.apply(0,arguments));return v&&v.length?v[0]:void 0};
_.K.clear=function(){this.cellMap.clear()};
_.K.JSC$9803_getKey=function(){var v=_.aE.apply(0,arguments);return v?v.join(","):"key"};var rap=function(v,Q){yM.call(this,v,3,Q)};
_.f(rap,yM);rap.prototype.JSC$9806_incrementCounterBy=function(v){var Q=_.aE.apply(1,arguments),V=0,E=this.getCell(Q);E&&(V=E.cellValue);this.JSC$9803_setCell(V+v,Q)};var $AZ=function(v,Q){yM.call(this,v,2,Q)};
_.f($AZ,yM);$AZ.prototype.record=function(v){this.addCell(v,_.aE.apply(1,arguments))};_.cA=function(v){this.id=v};
_.cA.prototype.toString=function(){return this.id};_.fv=function(v,Q){this.type=v instanceof _.cA?String(v):v;this.currentTarget=this.target=Q;this.defaultPrevented=this.propagationStopped_=!1};
_.fv.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.fv.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Gl=function(v,Q){_.fv.call(this,v?v.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;v&&this.init(v,Q)};
_.HZ(_.Gl,_.fv);
_.Gl.prototype.init=function(v,Q){var V=this.type=v.type,E=v.changedTouches&&v.changedTouches.length?v.changedTouches[0]:null;this.target=v.target||v.srcElement;this.currentTarget=Q;Q=v.relatedTarget;Q||(V=="mouseover"?Q=v.fromElement:V=="mouseout"&&(Q=v.toElement));this.relatedTarget=Q;E?(this.clientX=E.clientX!==void 0?E.clientX:E.pageX,this.clientY=E.clientY!==void 0?E.clientY:E.pageY,this.screenX=E.screenX||0,this.screenY=E.screenY||0):(this.offsetX=_.E7||v.offsetX!==void 0?v.offsetX:v.layerX,
this.offsetY=_.E7||v.offsetY!==void 0?v.offsetY:v.layerY,this.clientX=v.clientX!==void 0?v.clientX:v.pageX,this.clientY=v.clientY!==void 0?v.clientY:v.pageY,this.screenX=v.screenX||0,this.screenY=v.screenY||0);this.button=v.button;this.keyCode=v.keyCode||0;this.key=v.key||"";this.charCode=v.charCode||(V=="keypress"?v.keyCode:0);this.ctrlKey=v.ctrlKey;this.altKey=v.altKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.pointerId=v.pointerId||0;this.pointerType=v.pointerType;this.state=v.state;
this.timeStamp=v.timeStamp;this.event_=v;v.defaultPrevented&&_.Gl.superClass_.preventDefault.call(this)};
_.Gl.prototype.isButton=function(v){return this.event_.button==v};
_.Gl.prototype.stopPropagation=function(){_.Gl.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Gl.prototype.preventDefault=function(){_.Gl.superClass_.preventDefault.call(this);var v=this.event_;v.preventDefault?v.preventDefault():v.returnValue=!1};var IQX="closure_listenable_"+(Math.random()*1E6|0),Cv=function(v){return!(!v||!v[IQX])};var Hax=0;var mAA=function(v,Q,V,E,b){this.listener=v;this.proxy=null;this.src=Q;this.type=V;this.capture=!!E;this.handler=b;this.key=++Hax;this.removed=this.callOnce=!1},UAa=function(v){v.removed=!0;
v.listener=null;v.proxy=null;v.src=null;v.handler=null};yl.prototype.add=function(v,Q,V,E,b){var F=v.toString();v=this.listeners[F];v||(v=this.listeners[F]=[],this.typeCount_++);var t=vbS(v,Q,E,b);t>-1?(Q=v[t],V||(Q.callOnce=!1)):(Q=new mAA(Q,this.src,F,!!E,b),Q.callOnce=V,v.push(Q));return Q};
yl.prototype.remove=function(v,Q,V,E){v=v.toString();if(!(v in this.listeners))return!1;var b=this.listeners[v];Q=vbS(b,Q,V,E);return Q>-1?(UAa(b[Q]),_.lt0(b,Q),b.length==0&&(delete this.listeners[v],this.typeCount_--),!0):!1};
var QSx=function(v,Q){var V=Q.type;if(!(V in v.listeners))return!1;var E=_.ub(v.listeners[V],Q);E&&(UAa(Q),v.listeners[V].length==0&&(delete v.listeners[V],v.typeCount_--));return E};
yl.prototype.removeAll=function(v){v=v&&v.toString();var Q=0,V;for(V in this.listeners)if(!v||V==v){for(var E=this.listeners[V],b=0;b<E.length;b++)++Q,UAa(E[b]);delete this.listeners[V];this.typeCount_--}return Q};
yl.prototype.getListener=function(v,Q,V,E){v=this.listeners[v.toString()];var b=-1;v&&(b=vbS(v,Q,V,E));return b>-1?v[b]:null};
yl.prototype.hasListener=function(v,Q){var V=v!==void 0,E=V?v.toString():"",b=Q!==void 0;return _.gI.some(this.listeners,function(F){for(var t=0;t<F.length;++t)if(!(V&&F[t].type!=E||b&&F[t].capture!=Q))return!0;return!1})};
var vbS=function(v,Q,V,E){for(var b=0;b<v.length;++b){var F=v[b];if(!F.removed&&F.listener==Q&&F.capture==!!V&&F.handler==E)return b}return-1};var VgZ,Eba,bUp,KXN,iUZ,ZM,Pg,pU8,LXV,tga,MV,eJa,FXa;VgZ="closure_lm_"+(Math.random()*1E6|0);Eba={};bUp=0;_.wE=function(v,Q,V,E,b){if(E&&E.once)return ZM(v,Q,V,E,b);if(Array.isArray(Q)){for(var F=0;F<Q.length;F++)_.wE(v,Q[F],V,E,b);return null}V=FXa(V);return Cv(v)?v.listen(Q,V,_.rG(E)?!!E.capture:!!E,b):KXN(v,Q,V,!1,E,b)};
KXN=function(v,Q,V,E,b,F){if(!Q)throw Error("va");var t=_.rG(b)?!!b.capture:!!b,p=MV(v);p||(v[VgZ]=p=new yl(v));V=p.add(Q,V,E,t,F);if(V.proxy)return V;E=iUZ();V.proxy=E;E.src=v;E.listener=V;if(v.addEventListener)_.LJQ||(b=t),b===void 0&&(b=!1),v.addEventListener(Q.toString(),E,b);else if(v.attachEvent)v.attachEvent(LXV(Q.toString()),E);else if(v.addListener&&v.removeListener)v.addListener(E);else throw Error("wa");bUp++;return V};
iUZ=function(){var v=tga,Q=function(V){return v.call(Q.src,Q.listener,V)};
return Q};
ZM=function(v,Q,V,E,b){if(Array.isArray(Q)){for(var F=0;F<Q.length;F++)ZM(v,Q[F],V,E,b);return null}V=FXa(V);return Cv(v)?v.listenOnce(Q,V,_.rG(E)?!!E.capture:!!E,b):KXN(v,Q,V,!0,E,b)};
_.OE=function(v,Q,V,E,b){if(Array.isArray(Q))for(var F=0;F<Q.length;F++)_.OE(v,Q[F],V,E,b);else E=_.rG(E)?!!E.capture:!!E,V=FXa(V),Cv(v)?v.unlisten(Q,V,E,b):v&&(v=MV(v))&&(Q=v.getListener(Q,V,E,b))&&Pg(Q)};
Pg=function(v){if(typeof v==="number"||!v||v.removed)return!1;var Q=v.src;if(Cv(Q))return QSx(Q.eventTargetListeners_,v);var V=v.type,E=v.proxy;Q.removeEventListener?Q.removeEventListener(V,E,v.capture):Q.detachEvent?Q.detachEvent(LXV(V),E):Q.addListener&&Q.removeListener&&Q.removeListener(E);bUp--;(V=MV(Q))?(QSx(V,v),V.typeCount_==0&&(V.src=null,Q[VgZ]=null)):UAa(v);return!0};
pU8=function(v,Q,V,E,b){V=FXa(V);E=!!E;return Cv(v)?v.getListener(Q,V,E,b):v?(v=MV(v))?v.getListener(Q,V,E,b):null:null};
LXV=function(v){return v in Eba?Eba[v]:Eba[v]="on"+v};
tga=function(v,Q){if(v.removed)v=!0;else{Q=new _.Gl(Q,this);var V=v.listener,E=v.handler||v.src;v.callOnce&&Pg(v);v=V.call(E,Q)}return v};
MV=function(v){v=v[VgZ];return v instanceof yl?v:null};
eJa="__closure_events_fn_"+(Math.random()*1E9>>>0);FXa=function(v){if(typeof v==="function")return v;v[eJa]||(v[eJa]=function(Q){return v.handleEvent(Q)});
return v[eJa]};_.DO=function(){_.J5.call(this);this.eventTargetListeners_=new yl(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.HZ(_.DO,_.J5);_.DO.prototype[IQX]=!0;_.K=_.DO.prototype;_.K.setParentEventTarget=function(v){this.parentEventTarget_=v};
_.K.addEventListener=function(v,Q,V,E){_.wE(this,v,Q,V,E)};
_.K.removeEventListener=function(v,Q,V,E){_.OE(this,v,Q,V,E)};
_.K.dispatchEvent=function(v){var Q,V=this.parentEventTarget_;if(V)for(Q=[];V;V=V.parentEventTarget_)Q.push(V);V=this.actualEventTarget_;var E=v.type||v;if(typeof v==="string")v=new _.fv(v,V);else if(v instanceof _.fv)v.target=v.target||V;else{var b=v;v=new _.fv(E,V);_.gI.extend(v,b)}b=!0;var F;if(Q)for(F=Q.length-1;!v.propagationStopped_&&F>=0;F--){var t=v.currentTarget=Q[F];b=ZUV(t,E,!0,v)&&b}v.propagationStopped_||(t=v.currentTarget=V,b=ZUV(t,E,!0,v)&&b,v.propagationStopped_||(b=ZUV(t,E,!1,v)&&
b));if(Q)for(F=0;!v.propagationStopped_&&F<Q.length;F++)t=v.currentTarget=Q[F],b=ZUV(t,E,!1,v)&&b;return b};
_.K.disposeInternal=function(){_.DO.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.K.listen=function(v,Q,V,E){return this.eventTargetListeners_.add(String(v),Q,!1,V,E)};
_.K.listenOnce=function(v,Q,V,E){return this.eventTargetListeners_.add(String(v),Q,!0,V,E)};
_.K.unlisten=function(v,Q,V,E){return this.eventTargetListeners_.remove(String(v),Q,V,E)};
_.K.removeAllListeners=function(v){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(v):0};
var ZUV=function(v,Q,V,E){Q=v.eventTargetListeners_.listeners[String(Q)];if(!Q)return!0;Q=Q.concat();for(var b=!0,F=0;F<Q.length;++F){var t=Q[F];if(t&&!t.removed&&t.capture==V){var p=t.listener,Z=t.handler||t.src;t.callOnce&&QSx(v.eventTargetListeners_,t);b=p.call(Z,E)!==!1&&b}}return b&&!E.defaultPrevented};
_.DO.prototype.getListener=function(v,Q,V,E){return this.eventTargetListeners_.getListener(String(v),Q,V,E)};
_.DO.prototype.hasListener=function(v,Q){return this.eventTargetListeners_.hasListener(v!==void 0?String(v):void 0,Q)};var Rg=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(v){return v&&AsyncContext.Snapshot.wrap(v)}:function(v){return v};var PkN=function(v,Q){this.create_=v;this.reset_=Q;this.occupants_=0;this.JSC$9838_head_=null};
PkN.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var v=this.JSC$9838_head_;this.JSC$9838_head_=v.next;v.next=null}else v=this.create_();return v};
PkN.prototype.put=function(v){this.reset_(v);this.occupants_<100&&(this.occupants_++,v.next=this.JSC$9838_head_,this.JSC$9838_head_=v)};var dPx=function(){this.workTail_=this.workHead_=null};
dPx.prototype.add=function(v,Q){var V=iib.get();V.set(v,Q);this.workTail_?this.workTail_.next=V:this.workHead_=V;this.workTail_=V};
dPx.prototype.remove=function(){var v=null;this.workHead_&&(v=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),v.next=null);return v};
var iib=new PkN(function(){return new hJZ},function(v){return v.reset()}),hJZ=function(){this.next=this.scope=this.fn=null};
hJZ.prototype.set=function(v,Q){this.fn=v;this.scope=Q;this.next=null};
hJZ.prototype.reset=function(){this.next=this.scope=this.fn=null};var wUQ,LFm,KFG,A1X;LFm=!1;KFG=new dPx;_.nv=function(v,Q){wUQ||A1X();LFm||(wUQ(),LFm=!0);KFG.add(v,Q)};
A1X=function(){var v=Promise.resolve(void 0);wUQ=function(){v.then(twT)}};var kgq=function(v){v.prototype.$goog_Thenable=!0},T7q=function(v){if(!v)return!1;
try{return!!v.$goog_Thenable}catch(Q){return!1}};var Yi8,y1a,c1N,GgQ,Ckx,MgQ,nbx,Sia,xPa,J1N,hVh;_.Ry=function(v,Q){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(v!=_.c7)try{var V=this;v.call(Q,function(E){V.resolve_(2,E)},function(E){V.resolve_(3,E)})}catch(E){this.resolve_(3,E)}};
Yi8=function(){this.next=this.context=this.JSC$9849_onRejected=this.JSC$9849_onFulfilled=this.child=null;this.always=!1};
Yi8.prototype.reset=function(){this.context=this.JSC$9849_onRejected=this.JSC$9849_onFulfilled=this.child=null;this.always=!1};
y1a=new PkN(function(){return new Yi8},function(v){v.reset()});
c1N=function(v,Q,V){var E=y1a.get();E.JSC$9849_onFulfilled=v;E.JSC$9849_onRejected=Q;E.context=V;return E};
_.Vk=function(v){if(v instanceof _.Ry)return v;var Q=new _.Ry(_.c7);Q.resolve_(2,v);return Q};
_.kD=function(v){return new _.Ry(function(Q,V){V(v)})};
GgQ=function(v,Q,V){fxa(v,Q,V,null)||_.nv(_.pt(Q,v))};
_.lc=function(v){return new _.Ry(function(Q,V){var E=v.length,b=[];if(E)for(var F=function(d,w){E--;b[d]=w;E==0&&Q(b)},t=function(d){V(d)},p,Z=0;Z<v.length;Z++)p=v[Z],GgQ(p,_.pt(F,Z),t);
else Q(b)})};
Ckx=function(v){return new _.Ry(function(Q){var V=v.length,E=[];if(V)for(var b=function(p,Z,d){V--;E[p]=Z?{fulfilled:!0,value:d}:{fulfilled:!1,reason:d};V==0&&Q(E)},F,t=0;t<v.length;t++)F=v[t],GgQ(F,_.pt(b,t,!0),_.pt(b,t,!1));
else Q(E)})};
MgQ=function(v){return new _.Ry(function(Q,V){var E=v.length,b=[];if(E)for(var F=function(d){Q(d)},t=function(d,w){E--;
b[d]=w;E==0&&V(b)},p,Z=0;Z<v.length;Z++)p=v[Z],GgQ(p,F,_.pt(t,Z));
else Q(void 0)})};
_.B_=function(){var v,Q,V=new _.Ry(function(E,b){v=E;Q=b});
return new OUa(V,v,Q)};
_.Ry.prototype.then=function(v,Q,V){return DPX(this,Rg(typeof v==="function"?v:null),Rg(typeof Q==="function"?Q:null),V)};
kgq(_.Ry);nbx=function(v,Q,V,E){RJN(v,c1N(Q||_.c7,V||null,E))};
_.qV=function(v,Q){Q=Rg(Q);Q=c1N(Q,Q);Q.always=!0;RJN(v,Q);return v};
_.Ry.prototype.finally=function(v){var Q=this;v=Rg(v);return new _.Ry(function(V,E){nbx(Q,function(b){v();V(b)},function(b){v();
E(b)})})};
_.Ry.prototype.thenCatch=function(v,Q){return DPX(this,null,Rg(v),Q)};
_.Ry.prototype.catch=_.Ry.prototype.thenCatch;_.Ry.prototype.cancel=function(v){if(this.state_==0){var Q=new _.lA(v);_.nv(function(){lx8(this,Q)},this)}};
var lx8=function(v,Q){if(v.state_==0)if(v.parent_){var V=v.parent_;if(V.callbackEntries_){for(var E=0,b=null,F=null,t=V.callbackEntries_;t&&(t.always||(E++,t.child==v&&(b=t),!(b&&E>1)));t=t.next)b||(F=t);b&&(V.state_==0&&E==1?lx8(V,Q):(F?(E=F,E.next==V.callbackEntriesTail_&&(V.callbackEntriesTail_=E),E.next=E.next.next):qix(V),Sia(V,b,3,Q)))}v.parent_=null}else v.resolve_(3,Q)},RJN=function(v,Q){v.callbackEntries_||v.state_!=2&&v.state_!=3||zJq(v);
v.callbackEntriesTail_?v.callbackEntriesTail_.next=Q:v.callbackEntries_=Q;v.callbackEntriesTail_=Q},DPX=function(v,Q,V,E){var b=c1N(null,null,null);
b.child=new _.Ry(function(F,t){b.JSC$9849_onFulfilled=Q?function(p){try{var Z=Q.call(E,p);F(Z)}catch(d){t(d)}}:F;
b.JSC$9849_onRejected=V?function(p){try{var Z=V.call(E,p);Z===void 0&&p instanceof _.lA?t(p):F(Z)}catch(d){t(d)}}:t});
b.child.parent_=v;RJN(v,b);return b.child};
_.Ry.prototype.unblockAndFulfill_=function(v){this.state_=0;this.resolve_(2,v)};
_.Ry.prototype.unblockAndReject_=function(v){this.state_=0;this.resolve_(3,v)};
_.Ry.prototype.resolve_=function(v,Q){this.state_==0&&(this===Q&&(v=3,Q=new TypeError("xa")),this.state_=1,fxa(Q,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=Q,this.state_=v,this.parent_=null,zJq(this),v!=3||Q instanceof _.lA||J1N(this,Q)))};
var fxa=function(v,Q,V,E){if(v instanceof _.Ry)return nbx(v,Q,V,E),!0;if(T7q(v))return v.then(Q,V,E),!0;if(_.rG(v))try{var b=v.then;if(typeof b==="function")return N7A(v,b,Q,V,E),!0}catch(F){return V.call(E,F),!0}return!1},N7A=function(v,Q,V,E,b){var F=!1,t=function(Z){F||(F=!0,V.call(b,Z))},p=function(Z){F||(F=!0,E.call(b,Z))};
try{Q.call(v,t,p)}catch(Z){p(Z)}},zJq=function(v){v.executing_||(v.executing_=!0,_.nv(v.executeCallbacks_,v))},qix=function(v){var Q=null;
v.callbackEntries_&&(Q=v.callbackEntries_,v.callbackEntries_=Q.next,Q.next=null);v.callbackEntries_||(v.callbackEntriesTail_=null);return Q};
_.Ry.prototype.executeCallbacks_=function(){for(var v;v=qix(this);)Sia(this,v,this.state_,this.result_);this.executing_=!1};
Sia=function(v,Q,V,E){if(V==3&&Q.JSC$9849_onRejected&&!Q.always)for(;v&&v.hadUnhandledRejection_;v=v.parent_)v.hadUnhandledRejection_=!1;if(Q.child)Q.child.parent_=null,xPa(Q,V,E);else try{Q.always?Q.JSC$9849_onFulfilled.call(Q.context):xPa(Q,V,E)}catch(b){hVh.call(null,b)}y1a.put(Q)};
xPa=function(v,Q,V){Q==2?v.JSC$9849_onFulfilled.call(v.context,V):v.JSC$9849_onRejected&&v.JSC$9849_onRejected.call(v.context,V)};
J1N=function(v,Q){v.hadUnhandledRejection_=!0;_.nv(function(){v.hadUnhandledRejection_&&hVh.call(null,Q)})};
hVh=Fr;_.lA=function(v){_.Vo.call(this,v)};
_.HZ(_.lA,_.Vo);_.lA.prototype.name="cancel";var OUa=function(v,Q,V){this.promise=v;this.resolve=Q;this.reject=V};var SD;_.y0=function(v,Q){_.DO.call(this);this.JSC$9861_interval_=v||1;this.timerObject_=Q||_.bb;this.boundTick_=(0,_.Nz)(this.tick_,this);this.last_=_.IC()};
_.HZ(_.y0,_.DO);_.K=_.y0.prototype;_.K.enabled=!1;_.K.JSC$9863_timer_=null;_.K.setInterval=function(v){this.JSC$9861_interval_=v;this.JSC$9863_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9863_timer_&&this.stop()};
_.K.tick_=function(){if(this.enabled){var v=_.IC()-this.last_;v>0&&v<this.JSC$9861_interval_*.8?this.JSC$9863_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9861_interval_-v):(this.JSC$9863_timer_&&(this.timerObject_.clearTimeout(this.JSC$9863_timer_),this.JSC$9863_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.K.start=function(){this.enabled=!0;this.JSC$9863_timer_||(this.JSC$9863_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9861_interval_),this.last_=_.IC())};
_.K.stop=function(){this.enabled=!1;this.JSC$9863_timer_&&(this.timerObject_.clearTimeout(this.JSC$9863_timer_),this.JSC$9863_timer_=null)};
_.K.disposeInternal=function(){_.y0.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
SD=function(v,Q,V){if(typeof v==="function")V&&(v=(0,_.Nz)(v,V));else if(v&&typeof v.handleEvent=="function")v=(0,_.Nz)(v.handleEvent,v);else throw Error("ya");return Number(Q)>2147483647?-1:_.bb.setTimeout(v,Q||0)};
_.B7q=function(v){var Q=null;return(new _.Ry(function(V,E){Q=SD(function(){V(void 0)},v);
Q==-1&&E(Error("za"))})).thenCatch(function(V){_.bb.clearTimeout(Q);
throw V;})};var Mz=function(v){_.J5.call(this);this.streamzLogger=v;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9867_flushTimer=new _.y0(this.flushInterval);this.JSC$9867_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Cg(this,this.JSC$9867_flushTimer)};
_.f(Mz,_.J5);Mz.prototype.sendIsolatedPayload=function(v){this.shouldSendIsolatedPayload=v;this.invocationLimit=1};
var gbp=function(v){v.JSC$9867_flushTimer.enabled||v.JSC$9867_flushTimer.start();v.invocationCount++;v.invocationCount>=v.invocationLimit&&v.snapshotAndFlush()};
Mz.prototype.snapshotAndFlush=function(){var v=this.metricMap.values();v=[].concat(_.ui(v)).filter(function(Q){return Q.cellMap.size});
v.length&&this.streamzLogger.flush(v,this.shouldSendIsolatedPayload);sSR(v);this.invocationCount=0;this.JSC$9867_flushTimer.enabled&&this.JSC$9867_flushTimer.stop()};
Mz.prototype.addNewCounter=function(v){var Q=_.aE.apply(1,arguments);this.metricMap.has(v)||this.metricMap.set(v,new rap(v,Q))};
Mz.prototype.addNewEventMetric=function(v){var Q=_.aE.apply(1,arguments);this.metricMap.has(v)||this.metricMap.set(v,new $AZ(v,Q))};
var u1V=function(v,Q){return v.disabledMetrics.has(Q)?void 0:v.metricMap.get(Q)};
Mz.prototype.JSC$9867_incrementCounter=function(v){this.JSC$9867_incrementCounterBy(v,1,_.aE.apply(1,arguments))};
Mz.prototype.JSC$9867_incrementCounterBy=function(v,Q){var V=_.aE.apply(2,arguments),E=u1V(this,v);E&&E instanceof rap&&(E.JSC$9806_incrementCounterBy(Q,V),gbp(this))};
Mz.prototype.record=function(v,Q){var V=_.aE.apply(2,arguments),E=u1V(this,v);E&&E instanceof $AZ&&(E.record(Q,V),gbp(this))};
var sSR=function(v){for(var Q=0;Q<v.length;Q++)v[Q].clear()};_.zl=function(v,Q,V){V=V===void 0?{}:V;Q=Error.call(this,Q);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=v;this.metadata=V;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.zl,Error);_.zl.prototype.toString=function(){var v="RpcError("+(eHr(this.code)||String(this.code))+")";this.message&&(v+=": "+this.message);return v};_.jSN=_.bb.JSON.parse;_.JG=_.bb.JSON.stringify;_.YI=_.bb.JSON.parse;_.WXa=function(v){switch(v){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var obx=function(v){switch(v){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var XUA,ax8=function(){};
_.HZ(ax8,_.Zib);ax8.prototype.createInstance=function(){return new XMLHttpRequest};
XUA=new ax8;_.NV=function(v){_.DO.call(this);this.headers=new Map;this.JSC$9876_xmlHttpFactory_=v||null;this.JSC$9876_active_=!1;this.JSC$9876_xhr_=null;this.JSC$9876_lastUri_="";this.JSC$9876_lastErrorCode_=0;this.JSC$9876_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9876_timeoutId_=null;this.responseType_="";this.JSC$9876_withCredentials_=!1};
_.HZ(_.NV,_.DO);var r1V=/^https?$/i,$PV=["POST","PUT"],Ixa=[],XVt=function(v,Q,V,E,b,F,t){var p=new _.NV;Ixa.push(p);Q&&p.listen("complete",Q);p.listenOnce("ready",p.cleanupSend_);F&&(p.timeoutInterval_=Math.max(0,F));t&&(p.JSC$9876_withCredentials_=t);p.send(v,V,E,b)};
_.NV.prototype.cleanupSend_=function(){this.dispose();_.ub(Ixa,this)};
_.NV.prototype.send=function(v,Q,V,E){if(this.JSC$9876_xhr_)throw Error("Aa`"+this.JSC$9876_lastUri_+"`"+v);Q=Q?Q.toUpperCase():"GET";this.JSC$9876_lastUri_=v;this.JSC$9876_lastError_="";this.JSC$9876_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9876_active_=!0;this.JSC$9876_xhr_=this.createXhr();this.JSC$9876_xhr_.onreadystatechange=Rg((0,_.Nz)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9876_xhr_.open(Q,String(v),!0),this.inOpen_=!1}catch(t){HUS(this,t);return}v=V||"";V=new Map(this.headers);
if(E)if(Object.getPrototypeOf(E)===Object.prototype)for(var b in E)V.set(b,E[b]);else if(typeof E.keys==="function"&&typeof E.get==="function"){b=_.L(E.keys());for(var F=b.next();!F.done;F=b.next())F=F.value,V.set(F,E.get(F))}else throw Error("Ba`"+String(E));E=Array.from(V.keys()).find(function(t){return"content-type"==t.toLowerCase()});
b=_.bb.FormData&&v instanceof _.bb.FormData;!_.sB($PV,Q)||E||b||V.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Q=_.L(V);for(E=Q.next();!E.done;E=Q.next())V=_.L(E.value),E=V.next().value,V=V.next().value,this.JSC$9876_xhr_.setRequestHeader(E,V);this.responseType_&&(this.JSC$9876_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9876_xhr_&&this.JSC$9876_xhr_.withCredentials!==this.JSC$9876_withCredentials_&&(this.JSC$9876_xhr_.withCredentials=this.JSC$9876_withCredentials_);
try{this.JSC$9876_timeoutId_&&(clearTimeout(this.JSC$9876_timeoutId_),this.JSC$9876_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9876_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9876_xhr_.send(v),this.inSend_=!1}catch(t){HUS(this,t)}};
_.NV.prototype.createXhr=function(){return this.JSC$9876_xmlHttpFactory_?this.JSC$9876_xmlHttpFactory_.createInstance():XUA.createInstance()};
_.NV.prototype.timeout_=function(){typeof eTa!="undefined"&&this.JSC$9876_xhr_&&(this.JSC$9876_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9876_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var HUS=function(v,Q){v.JSC$9876_active_=!1;v.JSC$9876_xhr_&&(v.inAbort_=!0,v.JSC$9876_xhr_.abort(),v.inAbort_=!1);v.JSC$9876_lastError_=Q;v.JSC$9876_lastErrorCode_=5;mPa(v);UPN(v)},mPa=function(v){v.errorDispatched_||(v.errorDispatched_=!0,v.dispatchEvent("complete"),v.dispatchEvent("error"))};
_.NV.prototype.abort=function(v){this.JSC$9876_xhr_&&this.JSC$9876_active_&&(this.JSC$9876_active_=!1,this.inAbort_=!0,this.JSC$9876_xhr_.abort(),this.inAbort_=!1,this.JSC$9876_lastErrorCode_=v||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),UPN(this))};
_.NV.prototype.disposeInternal=function(){this.JSC$9876_xhr_&&(this.JSC$9876_active_&&(this.JSC$9876_active_=!1,this.inAbort_=!0,this.JSC$9876_xhr_.abort(),this.inAbort_=!1),UPN(this,!0));_.NV.superClass_.disposeInternal.call(this)};
_.NV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)vdq(this);else this.onReadyStateChangeEntryPoint_()};
_.NV.prototype.onReadyStateChangeEntryPoint_=function(){vdq(this)};
var vdq=function(v){if(v.JSC$9876_active_&&typeof eTa!="undefined")if(v.inSend_&&_.xu(v)==4)setTimeout(v.onReadyStateChange_.bind(v),0);else if(v.dispatchEvent("readystatechange"),v.isComplete()){v.JSC$9876_active_=!1;try{if(v.isSuccess())v.dispatchEvent("complete"),v.dispatchEvent("success");else{v.JSC$9876_lastErrorCode_=6;try{var Q=_.xu(v)>2?v.JSC$9876_xhr_.statusText:""}catch(V){Q=""}v.JSC$9876_lastError_=Q+" ["+v.getStatus()+"]";mPa(v)}}finally{UPN(v)}}},UPN=function(v,Q){if(v.JSC$9876_xhr_){v.JSC$9876_timeoutId_&&
(clearTimeout(v.JSC$9876_timeoutId_),v.JSC$9876_timeoutId_=null);
var V=v.JSC$9876_xhr_;v.JSC$9876_xhr_=null;Q||v.dispatchEvent("ready");try{V.onreadystatechange=null}catch(E){}}};
_.NV.prototype.isActive=function(){return!!this.JSC$9876_xhr_};
_.NV.prototype.isComplete=function(){return _.xu(this)==4};
_.NV.prototype.isSuccess=function(){var v=this.getStatus(),Q;if(!(Q=obx(v))){if(v=v===0)v=Fex(String(this.JSC$9876_lastUri_)),v=!r1V.test(v);Q=v}return Q};
_.xu=function(v){return v.JSC$9876_xhr_?v.JSC$9876_xhr_.readyState:0};
_.K=_.NV.prototype;_.K.getStatus=function(){try{return _.xu(this)>2?this.JSC$9876_xhr_.status:-1}catch(v){return-1}};
_.K.getResponseText=function(){try{return this.JSC$9876_xhr_?this.JSC$9876_xhr_.responseText:""}catch(v){return""}};
_.K.getResponse=function(){try{if(!this.JSC$9876_xhr_)return null;if("response"in this.JSC$9876_xhr_)return this.JSC$9876_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9876_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9876_xhr_)return this.JSC$9876_xhr_.mozResponseArrayBuffer}return null}catch(v){return null}};
_.K.getAllResponseHeaders=function(){return this.JSC$9876_xhr_&&_.xu(this)>=2?this.JSC$9876_xhr_.getAllResponseHeaders()||"":""};
_.K.getLastError=function(){return typeof this.JSC$9876_lastError_==="string"?this.JSC$9876_lastError_:String(this.JSC$9876_lastError_)};var w5S=function(){};
w5S.prototype.send=function(v,Q,V){Q=Q===void 0?function(){}:Q;
V=V===void 0?function(){}:V;
XVt(v.url,function(E){E=E.target;E.isSuccess()?Q(E.getResponseText()):V(E.getStatus())},v.requestType,v.body,v.requestHeaders,v.timeoutMillis,v.withCredentials)};
w5S.prototype.getTransmissionType=function(){return 1};var QmQ=function(v,Q){this.gAw=v;this.event=Q;this.startTime=Oh()},ct9;
QmQ.prototype.done=function(){this.gAw.yb(this.event,Oh()-this.startTime)};
var BA=function(){tG.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.f(BA,tG);_.gL=function(v,Q,V){var E=Oh();Q=Q();v.yb(V,Oh()-E);return Q};
ct9=function(){BA.apply(this,arguments)};
_.f(ct9,BA);_.K=ct9.prototype;_.K.s1A=function(){};
_.K.gF=function(){};
_.K.yb=function(){};
_.K.logError=function(){};
_.K.ma=function(){};
_.K.p8q=function(){};
_.K.lxE=function(){};
_.K.sKH=function(){};
var VwQ=function(v){BA.call(this);var Q=this;this.kC=v;this.TEST_ONLY={x0T:function(){return Q.kC},
getExperimentIds:function(){return Q.kC.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void Q.kC.dispose()})};
_.f(VwQ,BA);_.K=VwQ.prototype;_.K.update=function(v){this.kC.dispose();this.kC=v};
_.K.gF=function(v){this.kC.gF(v)};
_.K.yb=function(v,Q){this.kC.yb(v,Q)};
_.K.logError=function(v){this.kC.logError(v)};
_.K.ma=function(){this.kC.ma()};
_.K.p8q=function(v){this.kC.p8q(v)};
_.K.lxE=function(v){this.kC.lxE(v)};
_.K.sKH=function(v){this.kC.sKH(v)};
_.K.s1A=function(v){this.kC.s1A(v)};
var EdS=function(v,Q){_.J5.call(this);var V=this;this.callback=v;this.x1c=Q;this.uj5=-Q;this.addOnDisposeCallback(function(){return void clearTimeout(V.timer)})};
_.f(EdS,_.J5);var bip=function(v){if(v.timer===void 0){var Q=Math.max(0,v.uj5+v.x1c-Oh());v.timer=setTimeout(function(){try{v.callback()}finally{v.uj5=Oh(),v.timer=void 0}},Q)}},FFZ=function(v,Q){BA.call(this);
this.metrics=v;this.ri=Q};
_.f(FFZ,BA);_.K=FFZ.prototype;_.K.s1A=function(v){this.metrics.o8c.record(v,this.ri)};
_.K.gF=function(v){this.metrics.eventCount.increment(v,this.ri)};
_.K.yb=function(v,Q){this.metrics.qCy.record(Q,v,this.ri)};
_.K.logError=function(v){this.metrics.errorCount.increment(v,this.ri)};
_.K.p8q=function(v){this.metrics.w2r.increment(v,this.ri)};
_.K.lxE=function(v){this.metrics.pFT.increment(v,this.ri)};
_.K.sKH=function(v){this.metrics.yWn.increment(v,this.ri)};
var f93=function(v,Q){Q=Q===void 0?[]:Q;var V={ri:v.ri||"_",aUj:v.aUj||[],hsX:v.hsX|0,destinationUrl:v.destinationUrl,zMM:v.zMM||function(){},
o6q:v.o6q||function(F,t){return ytr(F,t,V.zMM,V.destinationUrl)}},E=V.o6q("51",V.aUj.concat(Q));
FFZ.call(this,{o8c:new sDS(E),errorCount:new oJp(E),eventCount:new jDa(E),qCy:new WeX(E),fN6:new u9p(E),w2r:new XMS(E),pFT:new aga(E),yWn:new r5x(E)},V.ri);var b=this;this.TEST_ONLY={getExperimentIds:function(){return b.options.aUj.concat(b.sI0).sort(function(F,t){return F-t})}};
this.options=V;this.service=E;this.fqp=!v.o6q;this.flushDebouncer=new EdS(function(){return void b.service.snapshotAndFlush()},V.hsX);
this.addOnDisposeCallback(function(){b.flushDebouncer.dispose();b.fqp&&b.service.dispose()});
(this.sI0=Q.slice()).sort(_.J33)};
_.f(f93,FFZ);f93.prototype.ma=function(){bip(this.flushDebouncer)};var o8b=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(o8b,_.Lf);_.X0E=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(_.X0E,_.Lf);var Jx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,0,Jx.messageId)};
_.f(Jx,_.Lf);var KFV=_.reS(Jx);Jx.messageId="bfkj";var $PG=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f($PG,_.Lf);var iix=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(iix,_.Lf);var LFZ=_.Gd(iix);_.bK=function(){var v=this;this.promise=new Promise(function(Q,V){v.resolve=Q;v.reject=V})};_.sE=function(v){_.J5.call(this);var Q=this;this.lOe=Math.floor(Math.random()*200);this.zoz=new iix;if("challenge"in v&&KFV(v.challenge)){var V=_.fN(v.challenge,4,void 0,Sp);var E=_.fN(v.challenge,5,void 0,Sp);_.fN(v.challenge,7,void 0,Sp)&&(this.zoz=LFZ(_.fN(v.challenge,7,void 0,Sp)))}else V=v.program,E=v.globalName;this.addOnDisposeCallback(function(){var c,C,R;return _.e(function(l){if(l.nextAddress==1)return l.yield(Q.sDH,2);c=l.yieldResult;C=c.fLn;(R=C)==null||R();_.q1(l)})});
this.w6=G_G(v.avZ||{},this.zoz);_.Cg(this,this.w6);var b=new _.bK;this.sDH=b.promise;this.w6.gF("t");var F=this.w6.share(),t=new QmQ(F,"t"),p=function(c,C,R,l){if(!Q.w6.isDisposed()){var S="k";C?S="h":R&&(S="u");S!=="k"?l!==0&&(Q.w6.gF(S),Q.w6.yb(S,c)):Q.lOe<=0?(Q.w6.gF(S),Q.w6.yb(S,c),Q.lOe=Math.floor(Math.random()*200)):Q.lOe--}},Z=function(c,C,R,l){Promise.resolve().then(function(){t.done();
F.ma();F.dispose();b.resolve({lw6:c,fLn:C,rPg:R,r8T:l})})};
if(!_.bb[E])throw this.w6.logError(25),Error("Ca");if(!_.bb[E].a)throw this.w6.logError(26),Error("Da");try{var d=_.bb[E].a;E=[];for(var w=[],A=IxQ(this.zoz),k=0;k<A.length;k++)E.push(A[k]),w.push(1);var T=HU3(this.zoz);for(A=0;A<T.length;A++)E.push(T[A]),w.push(2);this.xXT=_.L(d(V,Z,!0,v.l7y,p,[E,w],_.fN(this.zoz,5),!1)).next().value;this.bwW=b.promise.then(function(){})}catch(c){throw this.w6.logError(28),c;
}};
_.f(_.sE,_.J5);_.sE.prototype.snapshot=function(v){if(this.isDisposed())throw Error("Ea");this.w6.gF("n");var Q=this.w6.share();return this.sDH.then(function(V){var E=V.lw6;return new Promise(function(b){var F=new QmQ(Q,"n");E(function(t){F.done();Q.s1A(t.length);Q.ma();Q.dispose();b(t)},[v.hj,
v.wYZ,v.dug,v.eWX])})})};
_.sE.prototype.qf2=function(v){this.sDH.then(function(Q){var V;(V=Q.rPg)==null||V(v)})};
_.sE.prototype.n2q=function(v,Q){return this.sDH.then(function(V){var E;return(E=V.r8T)==null?void 0:E(v,Q,!1)})};
_.sE.prototype.uVA=function(){return this.w6.share()};var twQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(twQ,_.Lf);var kE3=_.reS(twQ);var p5R=function(){this.promises={};this.aRn=null},eHa=function(){p5R.instance||(p5R.instance=new p5R);
return p5R.instance},PvQ=function(v,Q){return Zix(v,_.TY(Q,o8b,1,Sp),_.TY(Q,_.X0E,2,Sp),_.fN(Q,3,void 0,Sp))},Zix=function(v,Q,V,E){if(!Q&&!V)return Promise.resolve();
if(!E)return RH3(Q,V);var b;(b=v.promises)[E]||(b[E]=new Promise(function(F,t){RH3(Q,V).then(function(){v.aRn=E;F()},function(p){delete v.promises[E];
t(p)})}));
return v.promises[E]};var dYQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(dYQ,_.Lf);var hHA=function(v,Q){return _.NM(v,1,Q)},w5A=function(v,Q){return _.NM(v,2,Q)};var uc=function(v){_.J5.call(this);var Q=this;this.options=v;this.rC2=new _.bK;this.bwW=this.rC2.promise;this.kAA=new _.bK;this.abn=1;this.mgX=new _.bK;this.gQq=[];this.xbE=v.xbE||function(){};
this.sYz=new VwQ(G_G(v.avZ||{}));AtQ(this,v.az,v.cQt,v.mNw,v.g5x,Object.assign({},k_S,v.de9||{}));this.addOnDisposeCallback(function(){return void T$q(Q)})};
_.f(uc,_.J5);uc.prototype.snapshot=function(v){var Q=this;return _.e(function(V){switch(V.nextAddress){case 1:if(Q.isDisposed())throw Error("Ea");if(Q.lW||Q.mnP){V.jumpTo(2);break}return V.yield(Q.kAA.promise,2);case 2:if(!Q.lW){V.jumpTo(4);break}return V.yield(Q.lW.snapshot(v),5);case 5:return V.return(V.yieldResult);case 4:throw Q.mnP;}})};
var YGa=function(v){var Q;return _.e(function(V){if(v.isDisposed())throw Error("Ea");(Q=v.sH)!=null&&(Q.endTimeMs=0,Q.resolver(1));return V.yield(v.mgX.promise,0)})},T$q=function(v){v.mnP=Error("Ga");
v.kAA.resolve();mPQ(v.rC2.promise);v.rC2.reject(Error("Ga"));v.sYz.dispose();Promise.all(v.gQq).then(function(){var V;return _.e(function(E){(V=v.lW)==null||V.dispose();v.lW=void 0;_.q1(E)})});
v.gQq=[];var Q;(Q=v.sH)!=null&&(Q.endTimeMs=0,Q.resolver(1));mPQ(v.mgX.promise);v.mgX.reject(Error("Ga"))};
uc.prototype.qf2=function(v){var Q,V;(Q=this.lW)==null||(V=Q.qf2)==null||V.call(Q,v)};
uc.prototype.n2q=function(v,Q){var V,E,b;return(b=(V=this.lW)==null?void 0:(E=V.n2q)==null?void 0:E.call(V,v,Q))!=null?b:Promise.resolve()};
var yta=function(v,Q){var V=v.xbE;v.xbE=function(){V();Q()}},ctN=function(v,Q){v.isDisposed()||(v.lW=Q,v.sYz.update(Q.uVA()),v.kAA.resolve(),v.rC2.resolve(void 0),v.xbE())};
uc.prototype.handleError=function(v){if(!this.isDisposed()){this.mnP=v;this.kAA.resolve();var Q,V;(V=(Q=this.options).lNc)==null||V.call(Q,v)}};
var f9S=function(v,Q){Q&&(Promise.all(v.gQq).then(function(){return void Q.dispose()}),v.gQq=[])},jD=function(v,Q){v.abn=Q;
var V,E;(E=(V=v.options).cSr)==null||E.call(V,Q)},G_V=function(v){v.isDisposed()||(v.mgX.resolve(),v.mgX=new _.bK)},AtQ=function(v,Q,V,E,b,F){E=E===void 0?eHa():E;
b=b===void 0?Promise.resolve(void 0):b;var t,p,Z,d,w,A,k,T,c,C,R,l;_.e(function(S){switch(S.nextAddress){case 1:return S.yield(0,3);case 3:p=null;if(!t){S.jumpTo(6);break}jD(v,7);_.GC(S,7);return S.yield(qz(t.snapshot({}),F.g4G,function(){return Promise.resolve("E:CTO")}),9);
case 9:p=S.yieldResult;_.FT(S,6);break;case 7:_.n$(S),p="E:UCE";case 6:Z=void 0,d=t?F.vxg:F.gxT,w=new YJ(d,F.fAT,F.dST,F.xST),A=1;case 10:if(!(A<=F.maxAttempts)){S.jumpTo(12);break}if(A===1){S.jumpTo(13);break}jD(v,0);v.sH=new Cvx(w.getValue(),F.j5w,F.p30);return S.yield(v.sH.promise,14);case 14:k=S.yieldResult,v.sH=void 0,k===1?(A=1,w.reset()):Nbq(w);case 13:_.GC(S,15);T=void 0;if(V){T=V;S.jumpTo(17);break}jD(v,5);c=E.aRn;return S.yield(qz(Mwa(Q,c,p),F.dJT,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:T=S.yieldResult;case 17:return jD(v,3),S.yield(qz(PvQ(E,T),F.keg,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return jD(v,8),S.yield(b,20);case 20:return C=new _.sE({challenge:T,avZ:v.options.avZ,l7y:v.options.l7y}),S.yield(qz(C.bwW,F.tVn,function(){return Promise.reject(Error("Ja"))}),21);
case 21:Z=C;S.jumpTo(12);break;case 15:R=_.n$(S),v.handleError(R),G_V(v);case 11:A++;S.jumpTo(10);break;case 12:if(v.isDisposed()){S.jumpTo(5);break}Z&&(V=void 0,f9S(v,t),t=Z,ctN(v,Z),G_V(v));jD(v,2);v.sH=new Cvx(F.fg6,F.j5w,F.p30);return S.yield(v.sH.promise,22);case 22:v.sH=void 0;if(v.isDisposed()){S.jumpTo(5);break}S.jumpTo(3);break;case 5:(l=t)==null||l.dispose(),_.q1(S)}})};
uc.prototype.uVA=function(){return this.sYz.share()};
var k_S={fg6:432E5,j5w:3E5,p30:10,g4G:1E4,dJT:3E4,keg:3E4,tVn:6E4,gxT:1E3,vxg:6E4,fAT:6E5,dST:.25,xST:2,maxAttempts:10},Cvx=function(v,Q,V){var E=this;this.endTimeMs=Date.now()+v;this.promise=new Promise(function(F){E.resolver=F});
var b=function(){var F=E.endTimeMs-Date.now();F<=V?E.resolver(0):setTimeout(b,Math.min(F,Q))};
b()};var Oix,qGZ=(Oix=Math.imul)!=null?Oix:function(v,Q){return v*Q|0},SK=[196,
200,224,18],WA=function(v,Q,V){V=V===void 0?[]:V;this.maxItems=v;this.tZ=Q===void 0?0:Q;this.rr=V},DYV=function(v){var Q=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!Q)return new WA(v);var V=Q.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new WA(v);Q=V.slice(1);Q.length===1&&Q[0]===""&&(Q=[]);V=Number(V[0]);return isNaN(V)||V<0||V>Q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new WA(v)):new WA(v,V,Q)};
WA.prototype.serialize=function(){return String(this.tZ)+","+this.rr.join()};
WA.prototype.insert=function(v,Q){var V=void 0;if(this.rr[this.tZ]!==v){var E=this.rr.indexOf(v);E!==-1?(this.rr.splice(E,1),E<this.tZ&&this.tZ--,this.rr.splice(this.tZ,0,v)):(V=this.rr[this.tZ],this.rr[this.tZ]=v)}this.tZ=(this.tZ+1)%this.maxItems;v=ndT("iU5q-!O9@$",this.serialize());V&&v&&Q(V);return v};
var RHS=function(v,Q){this.xC9=Q;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(E){V=!1}V&&(this.index=DYV(v))},ndQ=function(v,Q,V,E,b){var F=v.index?_.gL(v.xC9,function(){return N$B(v.index,zH3(Q),V,E,b)},"W"):"u";
v.xC9.sKH(F)},l9Z=function(v,Q,V){var E=_.L(v.index?_.gL(v.xC9,function(){return xY0(zH3(Q),V)},"R"):["u"]),b=E.next().value;
E=E.next().value;v.xC9.lxE(b);return E};var qGp={toString:function(v){var Q=[],V=0;v-=-2147483648;Q[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(v%52);for(v=Math.floor(v/52);v>0;)Q[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(v%62),v=Math.floor(v/62);return Q.join("")}};var Jt8=function(v){v=SGX(v);for(var Q=2654435769,V=2654435769,E=314159265,b=v.length,F=b,t=0,p=function(){Q-=V;Q-=E;Q^=E>>>13;V-=E;V-=Q;V^=Q<<8;E-=Q;E-=V;E^=V>>>13;Q-=V;Q-=E;Q^=E>>>12;V-=E;V-=Q;V^=Q<<16;E-=Q;E-=V;E^=V>>>5;Q-=V;Q-=E;Q^=E>>>3;V-=E;V-=Q;V^=Q<<10;E-=Q;E-=V;E^=V>>>15};F>=12;F-=12,t+=12)Q+=zHS(v,t),V+=zHS(v,t+4),E+=zHS(v,t+8),p();
E+=b;switch(F){case 11:E+=v[t+10]<<24;case 10:E+=v[t+9]<<16;case 9:E+=v[t+8]<<8;case 8:V+=v[t+7]<<24;case 7:V+=v[t+6]<<16;case 6:V+=v[t+5]<<8;case 5:V+=v[t+4];case 4:Q+=v[t+3]<<24;case 3:Q+=v[t+2]<<16;case 2:Q+=v[t+1]<<8;case 1:Q+=v[t]}p();return qGp.toString(E)},SGX=function(v){for(var Q=[],V=0;V<v.length;V++)Q.push(v.charCodeAt(V));
return Q},zHS=function(v,Q){return v[Q]+(v[Q+1]<<8)+(v[Q+2]<<16)+(v[Q+3]<<24)};var og=function(v){_.J5.call(this);this.jj=v;this.f45=new _.bK};
_.f(og,_.J5);var N$R=function(v,Q){var V=setTimeout(function(){v.f45.resolve()},Q);
v.addOnDisposeCallback(function(){return void clearTimeout(V)})};
og.prototype.rgz=function(v,Q){var V=this.ah(v);Q==null||Q(V);return _.gL(this.jj,function(){return _.Sq(V,2)},this.aoz)};
var xYq=function(v,Q,V,E){return _.gL(v.jj,function(){return V?v.rgz(Q,E):v.ah(Q,E)},v.o5q)},B$x=function(v,Q,V,E){og.call(this,v);
this.fvz=Q;this.heT=V;this.o5q="m";this.aoz="x";this.d1r=0;N$R(this,E)};
_.f(B$x,og);B$x.prototype.ah=function(v,Q){var V=this;this.jj.gF(this.o5q);++this.d1r>=this.heT&&this.f45.resolve();var E=v();v=_.gL(this.jj,function(){return V.fvz(E)},"C");
if(v===void 0)throw new ic(17,"YNJ:Undefined");if(!(v instanceof Uint8Array))throw new ic(18,"ODM:Invalid");Q==null||Q(v);return v};
var gdZ=function(v,Q,V){og.call(this,v);this.vmT=Q;this.o5q="f";this.aoz="z";N$R(this,V)};
_.f(gdZ,og);gdZ.prototype.ah=function(){return this.vmT};
var smx=function(v,Q,V){og.call(this,v);this.jQu=Q;this.o5q="w";this.aoz="z";N$R(this,V)};
_.f(smx,og);smx.prototype.ah=function(){var v=this;return _.gL(this.jj,function(){return _.H9(v.jQu)},"d")};
smx.prototype.rgz=function(){return this.jQu};
var uFa=function(v,Q){og.call(this,v);this.error=Q;this.o5q="e";this.aoz="y"};
_.f(uFa,og);var jma=function(v,Q){var V=(Q(v.error.message)+":"+Q(v.error.stack)).substring(0,2048);Q=V.length+1;V=B$b(V);var E=new Uint8Array(4+V.length);E.set([42,Q&127|128,Q>>7,v.error.code]);E.set(V,4);return E};
uFa.prototype.ah=function(){if(this.btn)return this.btn;this.btn=jma(this,function(v){return"_"+Jt8(v)});
return jma(this,function(v){return v})};
var WFA=function(v,Q,V){og.call(this,v);this.w7y=Q;this.clientState=V;this.o5q="S";this.aoz="q"};
_.f(WFA,og);WFA.prototype.ah=function(){var v=Math.floor(Date.now()/1E3),Q=[Math.random()*255,Math.random()*255],V=Q.concat([this.w7y&255,this.clientState],[v>>24&255,v>>16&255,v>>8&255,v&255]);v=new Uint8Array(2+V.length);v[0]=34;v[1]=V.length;v.set(V,2);V=v.subarray(2);for(var E=Q=Q.length;E<V.length;++E)V[E]^=V[E%Q];this.jj.p8q(this.clientState);return v};var odN={hzG:3E4,lLg:2E4},X5=function(v){_.J5.call(this);var Q=this;this.grW=new _.bK;this.d15=0;this.rW=void 0;this.state=2;this.vm=v.vm;this.az=v.az;this.de9=Object.assign({},odN,v.de9||{});this.jJ=v.vm.uVA();var V;this.onError=(V=v.onError)!=null?V:function(){};
this.mHv=v.mHv||!1;if(X5a(v)){var E=this.vm;this.xYH=function(){return YGa(E).catch(function(t){t=Q.reportError(new ic(Q.bq?20:32,"TRG:Disposed",t));Q.rW=t;var p;(p=Q.bq)==null||p.dispose();Q.bq=void 0;Q.grW.reject(t)})};
yta(E,function(){return void a9V(Q)});
E.abn===2&&a9V(this)}else this.xYH=v.oUX,a9V(this);var b=this.jJ.share();b.gF("o");var F=new QmQ(b,"o");this.grW.promise.then(function(){F.done();b.ma();b.dispose()},function(){return void b.dispose()});
this.addOnDisposeCallback(function(){Q.bq?(Q.bq.dispose(),Q.bq=void 0):Q.rW?Q.jJ.ma():(Q.rW=Q.reportError(new ic(32,"TNP:Disposed")),Q.jJ.ma(),Q.grW.reject(Q.rW))});
_.Cg(this,this.jJ)};
_.f(X5,_.J5);X5.prototype.dtv=function(){return this.grW.promise};
var rtp=function(v,Q){if(!(Q instanceof ic))if(Q instanceof _.zl){var V=Error(Q.toString());V.stack=Q.stack;Q=new ic(11,"EBH:Error",V)}else Q=new ic(12,"BSO:Unknown",Q);return v.reportError(Q)},a9V=function(v){var Q,V,E,b,F,t,p,Z,d,w,A,k,T,c,C;
return _.e(function(R){switch(R.nextAddress){case 1:Q=void 0;v.d15++;V=new _.bK;v.vm instanceof uc&&v.vm.gQq.push(V.promise);if(!v.mHv){R.jumpTo(2);break}E=new _.bK;setTimeout(function(){return void E.resolve()});
return R.yield(E.promise,2);case 2:return b=v.jJ.share(),_.GC(R,4,5),v.state=5,F={},t=[],R.yield(qz(v.vm.snapshot({hj:F,dug:t}),v.de9.lLg,function(){return Promise.reject(new ic(15,"MDA:Timeout"))}),7);
case 7:p=R.yieldResult;if(v.isDisposed())throw new ic(v.bq?20:32,"MDA:Disposed");Z=t[0];v.state=6;return R.yield(qz($Y8(v.az,p),v.de9.hzG,function(){return Promise.reject(new ic(10,"BWB:Timeout"))}),8);
case 8:d=R.yieldResult;if(v.isDisposed())throw new ic(v.bq?20:32,"BWB:Disposed");v.state=7;Q=_.gL(b,function(){var S=I9a(v,d,V,Z);S.f45.promise.then(function(){return void v.xYH()});
return S},"i");
case 5:_.O_(R);b.dispose();_.Ra(R,6);break;case 4:w=_.n$(R);(A=Q)==null||A.dispose();if(!v.rW){k=rtp(v,w);V.resolve();var l;if(l=v.vm instanceof uc&&v.d15<2)a:if(w instanceof ic)l=w.code!==32&&w.code!==20&&w.code!==10;else{if(w instanceof _.zl)switch(w.code){case 2:case 13:case 14:case 4:break;default:l=!1;break a}l=!0}if(l)return T=(1+Math.random()*.25)*(v.bq?6E4:1E3),c=setTimeout(function(){return void v.xYH()},T),v.addOnDisposeCallback(function(){return void clearTimeout(c)}),R.return();
v.rW=k}b.logError(v.bq?13:14);v.grW.reject(v.rW);return R.return();case 6:v.state=8,v.d15=0,(C=v.bq)==null||C.dispose(),v.bq=Q,v.grW.resolve(),_.q1(R)}})},I9a=function(v,Q,V,E){var b=qRV(Q,2)*1E3;
if(b<=0)throw new ic(31,"TTM:Invalid");if(_.fN(Q,4))return new smx(v.jJ,_.fN(Q,4),b);if(!qRV(Q,3))return new gdZ(v.jJ,hQx(_.dB(Q,1)),b);if(!E)throw new ic(4,"PMD:Undefined");E=E(hQx(_.dB(Q,1)));if(!(E instanceof Function))throw new ic(16,"APF:Failed");v.qKp=Math.floor((Date.now()+b)/1E3);v=new B$x(v.jJ,E,qRV(Q,3),b);v.addOnDisposeCallback(function(){return void V.resolve()});
return v};
X5.prototype.ah=function(v){return HiR(this,Object.assign({},v),!1)};
X5.prototype.rgz=function(v){return HiR(this,Object.assign({},v),!0)};
X5.prototype.qBg=function(v){if(v>150)return!1;try{return this.cache=new RHS(v,this.jJ),!0}catch(Q){return this.reportError(new ic(22,"GBJ:init",Q)),!1}};
X5.prototype.reportError=function(v){this.jJ.logError(v.code);this.onError(v);return v};
var mYR=function(v,Q){Q=Q instanceof ic?Q:new ic(5,"TVD:error",Q);return v.reportError(Q)},HiR=function(v,Q,V){try{if(v.isDisposed())throw new ic(21,"BNT:disposed");
if(!v.bq&&v.rW)throw v.rW;var E,b;return(b=(E=UYa(v,Q,V))!=null?E:vFQ(v,Q,V))!=null?b:QeZ(v,Q,V)}catch(F){if(!Q.zGG)throw mYR(v,F);return VjZ(v,V,F)}},UYa=function(v,Q,V){var E;
return(E=v.bq)==null?void 0:xYq(E,function(){return EFq(v,Q)},V,function(b){var F;
if(v.bq instanceof B$x&&((F=Q.aR)==null?0:F.vw0))try{var t;(t=v.cache)==null||ndQ(t,EFq(v,Q),b,Q.aR.lb2,v.qKp-120)}catch(p){v.reportError(new ic(24,"ELX:write",p))}})},vFQ=function(v,Q,V){var E;
if((E=Q.aR)!=null&&E.wje)try{var b,F=(b=v.cache)==null?void 0:l9Z(b,EFq(v,Q),Q.aR.lb2);return F?V?_.gL(v.jJ,function(){return _.Sq(F,2)},"a"):F:void 0}catch(t){v.reportError(new ic(23,"RXO:read",t))}},QeZ=function(v,Q,V){var E={stack:[],
error:void 0,hasError:!1};try{if(!Q.cRH)throw new ic(29,"SDF:notready");return xYq(A38(E,new WFA(v.jJ,0,v.state)),function(){return EFq(v,Q)},V)}catch(b){E.error=b,E.hasError=!0}finally{k08(E)}},VjZ=function(v,Q,V){var E={stack:[],
error:void 0,hasError:!1};try{var b=mYR(v,V);return xYq(A38(E,new uFa(v.jJ,b)),function(){return[]},Q)}catch(F){E.error=F,E.hasError=!0}finally{k08(E)}},EFq=function(v,Q){return Q.xaH?Q.xaH:Q.hj?_.gL(v.jJ,function(){return Q.xaH=B$b(Q.hj)},"c"):[]},X5a=function(v){return NZ(function(Q){if(!PR(Q))return!1;
for(var V=_.L(Object.entries(v)),E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;if(!(E in Q)){if(b.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!b(Q[E]))return!1}return!0})}({vm:function(v){return NZ(function(Q){return Q instanceof v})}(uc)},"");var bON=function(){var v=_.vH();this.JSC$9994_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",wZ("cookie_enabled"),wZ("cookie_3p_enabled"),_.kJ("browser"))};
bON.prototype.increment=function(v,Q,V){this.JSC$9994_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",v,Q,V)};
var Eqr=function(){var v=_.vH();this.JSC$10018_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",A5("tick"),wZ("from_st_cookie"))};
Eqr.prototype.increment=function(v,Q){this.JSC$10018_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",v,Q)};
var F7Z=function(){var v=_.vH();this.JSC$10024_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.kJ("status"))};
F7Z.prototype.increment=function(v){this.JSC$10024_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",v)};
var K7Z=function(){var v=_.vH();this.JSC$10027_streamzService=v;v.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.kJ("stage"),wZ("is_using_ytd_player"),wZ("has_expandable_tiles"))};
K7Z.prototype.increment=function(v,Q,V){this.JSC$10027_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",v,Q,V)};
var iOX=function(){var v=_.vH();this.JSC$10030_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/response_signature",_.kJ("check_status"))};
iOX.prototype.increment=function(v){this.JSC$10030_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/web/response_signature",v)};
var L7S=function(){var v=_.vH();this.JSC$10033_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.kJ("sig"),A5("de"))};
L7S.prototype.increment=function(v,Q){this.JSC$10033_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/web/e_sig_log",v,Q)};
var tjp=function(){var v=_.vH();this.JSC$10036_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.kJ("sig"),A5("de"))};
tjp.prototype.increment=function(v,Q){this.JSC$10036_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/web/e_sig_en",v,Q)};
_.prp=function(){var v=_.vH();this.JSC$10039_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.kJ("action"))};
_.prp.prototype.increment=function(v){this.JSC$10039_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/web/enforcement_intent",v)};var ag=window;var eBZ=(new Date).getTime();_.gI.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.gI.createSet("action","cite","data","formaction","href","manifest","poster","src");var ZOX=function(v){this.servicePromise_=v;v.then((0,_.Nz)(function(){},this),function(){},this)},PDZ=function(v,Q,V){v.servicePromise_.then(function(E){var b=E[Q];
if(!b)throw Error("Ka`"+Q);return b.apply(E,V)})},wrA=function(v,Q,V){for(var E=Array(arguments.length-2),b=2;b<arguments.length;b++)E[b-2]=arguments[b];
b=dLS(v,Q).then(function(F){return F.apply(null,E)},function(F){F=Error("La`"+Q+"`"+v+"`"+F,{cause:F});
delete hBA[Q];return _.kD(F)});
return new ZOX(b)},hBA={},dLS=function(v,Q){var V=hBA[Q];
if(V)return V;V=(V=_.Q9(Q))?_.Vk(V):(new _.Ry(function(E,b){var F=(new Oc(document)).createElement("SCRIPT");F.async=!0;_.L$(F,_.lV(eDq(v)));F.onload=F.onreadystatechange=function(){F.readyState&&F.readyState!="loaded"&&F.readyState!="complete"||E()};
F.onerror=function(t){b(Error("Ma`"+Q+"`"+v,{cause:t}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(F)})).then(function(){var E=_.Q9(Q);
if(!E)throw Error("Na`"+Q+"`"+v);return E});
return hBA[Q]=V};var AFN={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},TOR=function(){var v=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=gdE(function(){return _.e(function(Q){if(Q.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?Q.return(Promise.resolve()):Q.yield(kY8(v),2);v.rsaForList.length>
0&&document.addEventListener("click",v.requestAccessForHelpPanel);_.q1(Q)})});
this.requestAccessForHelpPanel=function(){if(!(v.rsaForPromises.length>0)){for(var Q=_.L(v.rsaForList),V=Q.next();!V.done;V=Q.next()){V=V.value;try{v.rsaForPromises.push(document.requestStorageAccessFor(V))}catch(E){}}Promise.all(v.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){v.reset()})}}};
TOR.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var kY8=function(v){var Q,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:Q=_.L(Object.values(AFN)),V=Q.next();case 2:if(V.done){F.jumpTo(0);break}E=V.value;_.GC(F,5);return F.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:E}),7);case 7:b=F.yieldResult;b.state!=="granted"&&v.rsaForList.push(E);_.FT(F,3);break;case 5:_.n$(F);F.jumpTo(0);break;case 3:V=Q.next(),F.jumpTo(2)}})};(new TOR).initialize();var YfS=function(v){this.JSC$10053_loader_=v};
YfS.prototype.startHelp=function(v){PDZ(this.JSC$10053_loader_,"startHelp",arguments)};
YfS.prototype.JSC$10055_loadChatSupport=function(v){PDZ(this.JSC$10053_loader_,"loadChatSupport",arguments)};
var cFN=function(v,Q){Q=Q||{};v=wrA(yFN,"help.service.Lazy.create",v,{apiKey:Q.apiKey||Q.apiKey,asxUiUri:Q.asxUiUri||Q.asxUiUri,environment:Q.environment||Q.environment,flow:Q.flow||Q.flow,frdProductData:Q.frdProductData||Q.frdProductData,frdProductDataSerializedJspb:Q.frdProductDataSerializedJspb||Q.frdProductDataSerializedJspb,helpCenterPath:Q.helpCenterPath||Q.helpCenterPath,locale:Q.locale||Q.locale||"en-US".replace(/-/g,"_"),nonce:Q.nonce||Q.nonce,productData:Q.productData||Q.productData,receiverUri:Q.receiverUri||
Q.receiverUri,renderApiUri:Q.renderApiUri||Q.renderApiUri,theme:Q.theme||Q.theme,window:Q.window||Q.window});return new YfS(v)},yFN=new mt(X_S,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var fdq=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(fdq,_.Lf);var GYX=_.Gd(fdq);var CDV=[0,_.rB,gB,y7S];_.MjN=new function(v,Q,V,E){this.configType=v;this.flagName=V;this.defaultValue=E;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var DLq=function(){this.retriever=_.ht().resolve(OOZ)};_.oI={get payments(){return window.payments}};uFQ(Node);uFQ(Element);var RBq=uFQ(HTMLElement);uFQ(SVGElement);var nFA,ldq,Ig,qfA;nFA=function(v){return typeof v.className=="string"?v.className:v.getAttribute&&v.getAttribute("class")||""};
ldq=function(v){return v.classList?v.classList:nFA(v).match(/\S+/g)||[]};
_.rL=function(v,Q){typeof v.className=="string"?v.className=Q:v.setAttribute&&v.setAttribute("class",Q)};
_.$u=function(v,Q){return v.classList?v.classList.contains(Q):_.sB(ldq(v),Q)};
_.so=function(v,Q){if(v.classList)v.classList.add(Q);else if(!_.$u(v,Q)){var V=nFA(v);_.rL(v,V+(V.length>0?" "+Q:Q))}};
Ig=function(v,Q){if(v.classList)Array.prototype.forEach.call(Q,function(b){_.so(v,b)});
else{var V={};Array.prototype.forEach.call(ldq(v),function(b){V[b]=!0});
Array.prototype.forEach.call(Q,function(b){V[b]=!0});
Q="";for(var E in V)Q+=Q.length>0?" "+E:E;_.rL(v,Q)}};
_.Bg=function(v,Q){v.classList?v.classList.remove(Q):_.$u(v,Q)&&_.rL(v,Array.prototype.filter.call(ldq(v),function(V){return V!=Q}).join(" "))};
qfA=function(v,Q){v.classList?Array.prototype.forEach.call(Q,function(V){_.Bg(v,V)}):_.rL(v,Array.prototype.filter.call(ldq(v),function(V){return!_.sB(Q,V)}).join(" "))};var Sf8=function(v){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=v.document},NOa=function(v,Q){zBZ(v);
var V=document.createElement("div"),E;(E=Q.parentNode)==null||E.insertBefore(V,Q);V.tabIndex=0;V.id="fc-focus-trap-pre-div";V=document.createElement("div");var b;(b=Q.parentNode)==null||b.insertBefore(V,Q.nextSibling);V.tabIndex=0;V.id="fc-focus-trap-post-div";var F=JFN(v,Q),t=JFN(v,Q,!0);F&&t&&(v.focusChangeHandler=function(){var p=v.document.activeElement;if(p)if(_.HM(Q,p))v.previouslyFocusedElement=p;else if(p===v.document.activeElement)switch(v.previouslyFocusedElement){case F:t.focus();v.previouslyFocusedElement=
t;break;default:F.focus(),v.previouslyFocusedElement=F}},v.document.addEventListener("focus",v.focusChangeHandler,!0),v.document.addEventListener("focusin",v.focusChangeHandler))},zBZ=function(v){v.focusChangeHandler&&(document.removeEventListener("focus",v.focusChangeHandler,!0),document.removeEventListener("focusin",v.focusChangeHandler),v.focusChangeHandler=null);
var Q;(Q=document.getElementById("fc-focus-trap-pre-div"))==null||Q.remove();var V;(V=document.getElementById("fc-focus-trap-post-div"))==null||V.remove()},xLZ=function(v,Q,V,E,b){V=V===void 0?!0:V;
var F;b=(F=b===void 0?null:b)!=null?F:JFN(v,Q,E===void 0?!1:E);b!==null&&(b.focus(),V&&NOa(v,Q))};
Sf8.prototype.disableButton=function(v,Q){Q=Q===void 0?null:Q;v.disabled=!0;Q&&_.so(v,Q)};
var JFN=function(v,Q,V){V=V===void 0?!1:V;if(pgh(Q)&&!V)return Q;var E=V?[].slice.call(Q.children,0).reverse():Q.children;E=_.L(E);for(var b=E.next();!b.done;b=E.next())if(b=b.value,RBq(b)&&(b=JFN(v,b,V)))return b;return pgh(Q)&&V?Q:null};var BOV=function(v){this.originalBodyOverflow="";this.JSC$10080_domHelper=qN(v);var Q;this.isScrollingEnabled=((Q=this.JSC$10080_domHelper.JSC$9406_document_.body)==null?void 0:Q.style.overflow)!=="hidden"};
BOV.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10080_domHelper.JSC$9406_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.HZ(_.xJ,_.J5);_.K=_.xJ.prototype;_.K.JSC$10083_id_=0;_.K.disposeInternal=function(){_.xJ.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10081_listener_;delete this.handler_};
_.K.start=function(v){this.stop();this.JSC$10083_id_=SD(this.callback_,v!==void 0?v:this.JSC$10081_interval_)};
_.K.stop=function(){this.isActive()&&_.bb.clearTimeout(this.JSC$10083_id_);this.JSC$10083_id_=0};
_.K.fire=function(){this.stop();this.JSC$10083_doAction_()};
_.K.isActive=function(){return this.JSC$10083_id_!=0};
_.K.JSC$10083_doAction_=function(){this.JSC$10083_id_=0;this.JSC$10081_listener_&&this.JSC$10081_listener_.call(this.handler_)};_.cE=function(v){_.J5.call(this);this.handler_=v;this.JSC$10084_keys_={}};
_.HZ(_.cE,_.J5);var gFX=[];_.cE.prototype.listen=function(v,Q,V,E){Array.isArray(Q)||(Q&&(gFX[0]=Q.toString()),Q=gFX);for(var b=0;b<Q.length;b++){var F=_.wE(v,Q[b],V||this.handleEvent,E||!1,this.handler_||this);if(!F)break;this.JSC$10084_keys_[F.key]=F}return this};
_.cE.prototype.listenOnce=function(v,Q,V,E){return seX(this,v,Q,V,E)};
var seX=function(v,Q,V,E,b,F){if(Array.isArray(V))for(var t=0;t<V.length;t++)seX(v,Q,V[t],E,b,F);else{Q=ZM(Q,V,E||v.handleEvent,b,F||v.handler_||v);if(!Q)return v;v.JSC$10084_keys_[Q.key]=Q}return v};
_.cE.prototype.unlisten=function(v,Q,V,E,b){if(Array.isArray(Q))for(var F=0;F<Q.length;F++)this.unlisten(v,Q[F],V,E,b);else if(v=pU8(v,Q,V||this.handleEvent,_.rG(E)?!!E.capture:!!E,b||this.handler_||this))Pg(v),delete this.JSC$10084_keys_[v.key];return this};
_.cE.prototype.removeAll=function(){_.gI.forEach(this.JSC$10084_keys_,function(v,Q){this.JSC$10084_keys_.hasOwnProperty(Q)&&Pg(v)},this);
this.JSC$10084_keys_={}};
_.cE.prototype.disposeInternal=function(){_.cE.superClass_.disposeInternal.call(this);this.removeAll()};
_.cE.prototype.handleEvent=function(){throw Error("Oa");};var HA=function(){_.J5.call(this);this.services_={}};
_.HZ(HA,_.J5);HA.prototype.connect=function(v){v&&v()};
HA.prototype.isConnected=function(){return!0};
HA.prototype.registerService=function(v,Q,V){this.services_[v]={callback:Q,objectPayload:!!V}};
HA.prototype.getService=function(v,Q){var V=this.services_[v];return V?V:this.defaultService_?{callback:_.pt(this.defaultService_,v),objectPayload:_.rG(Q)}:null};
var uTS=function(v,Q){if(Q&&typeof v==="string")try{return JSON.parse(v)}catch(V){return null}else if(!Q&&typeof v!=="string")return(0,_.JG)(v);return v};
HA.prototype.disposeInternal=function(){HA.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 m_=function(v,Q){this.sequence_=[];this.onCancelFunction_=v;this.defaultScope_=Q||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};
m_.prototype.cancel=function(v){if(this.fired_)this.result_ instanceof m_&&this.result_.cancel();else{if(this.parent_){var Q=this.parent_;delete this.parent_;v?Q.cancel(v):(Q.branches_--,Q.branches_<=0&&Q.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new UE(this))}};
m_.prototype.continue_=function(v,Q){this.blocked_=!1;jex(this,v,Q)};
var jex=function(v,Q,V){v.fired_=!0;v.result_=V;v.hadError_=!Q;W7p(v)},XrN=function(v){if(v.fired_){if(!v.silentlyCanceled_)throw new oFN(v);
v.silentlyCanceled_=!1}};
m_.prototype.callback=function(v){XrN(this);jex(this,!0,v)};
m_.prototype.errback=function(v){XrN(this);jex(this,!1,v)};
var adX=function(v,Q,V){ve(v,Q,null,V)};
m_.prototype.finally=function(v){var Q=this;return rFZ(new Promise(function(V,E){ve(Q,function(b){v();V(b)},function(b){v();
E(b)})}))};
var ve=function(v,Q,V,E){var b=v.fired_;b||(Q===V?Q=V=Rg(Q):(Q=Rg(Q),V=Rg(V)));v.sequence_.push([Q,V,E]);b&&W7p(v)};
m_.prototype.then=function(v,Q,V){var E,b,F=new _.Ry(function(t,p){b=t;E=p});
ve(this,b,function(t){t instanceof UE?F.cancel():E(t);return $LN},this);
return F.then(v,Q,V)};
kgq(m_);var Ida=function(v,Q){Q instanceof m_?adX(v,(0,_.Nz)(Q.branch,Q)):adX(v,function(){return Q})};
m_.prototype.branch=function(v){var Q=new m_;ve(this,Q.callback,Q.errback,Q);v&&(Q.parent_=this,this.branches_++);return Q};
m_.prototype.isError=function(v){return v instanceof Error};
var HOV=function(v){return Kp(v.sequence_,function(Q){return typeof Q[1]==="function"})},$LN={},W7p=function(v){if(v.unhandledErrorId_&&v.fired_&&HOV(v)){var Q=v.unhandledErrorId_,V=mLa[Q];
V&&(_.bb.clearTimeout(V.JSC$10101_id_),delete mLa[Q]);v.unhandledErrorId_=0}v.parent_&&(v.parent_.branches_--,delete v.parent_);Q=v.result_;for(var E=V=!1;v.sequence_.length&&!v.blocked_;){var b=v.sequence_.shift(),F=b[0],t=b[1];b=b[2];if(F=v.hadError_?t:F)try{var p=F.call(b||v.defaultScope_,Q);p===$LN&&(p=void 0);p!==void 0&&(v.hadError_=v.hadError_&&(p==Q||v.isError(p)),v.result_=Q=p);if(T7q(Q)||typeof _.bb.Promise==="function"&&Q instanceof _.bb.Promise)E=!0,v.blocked_=!0}catch(Z){Q=Z,v.hadError_=
!0,HOV(v)||(V=!0)}}v.result_=Q;E&&(p=(0,_.Nz)(v.continue_,v,!0),E=(0,_.Nz)(v.continue_,v,!1),Q instanceof m_?(ve(Q,p,E),Q.blocking_=!0):Q.then(p,E));V&&(Q=new ULa(Q),mLa[Q.JSC$10101_id_]=Q,v.unhandledErrorId_=Q.JSC$10101_id_)},rFZ=function(v){var Q=new m_;
v.then(function(V){Q.callback(V)},function(V){Q.errback(V)});
return Q},oFN=function(){_.Vo.call(this)};
_.HZ(oFN,_.Vo);oFN.prototype.message="Deferred has already fired";oFN.prototype.name="AlreadyCalledError";var UE=function(){_.Vo.call(this)};
_.HZ(UE,_.Vo);UE.prototype.message="Deferred was canceled";UE.prototype.name="CanceledError";var ULa=function(v){this.JSC$10101_id_=_.bb.setTimeout((0,_.Nz)(this.throwError,this),0);this.JSC$10101_error_=v};
ULa.prototype.throwError=function(){delete mLa[this.JSC$10101_id_];throw this.JSC$10101_error_;};
var mLa={};var vhq={1:"NativeMessagingTransport"},Qyp=["pu","lru","pru","lpu","ppu"],EhQ=function(){for(var v=10,Q=Vxq,V=Q.length,E="";v-- >0;)E+=Q.charAt(Math.floor(Math.random()*V));return E},Vxq="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Qv=function(v){_.J5.call(this);this.JSC$10104_domHelper_=v||qN()};
_.HZ(Qv,_.J5);Qv.prototype.transportType=0;Qv.prototype.getWindow=function(){return this.JSC$10104_domHelper_.getWindow()};
Qv.prototype.getName=function(){return vhq[String(this.transportType)]||""};var Vv=function(v,Q,V,E,b){Qv.call(this,V);this.JSC$10107_channel_=v;this.protocolVersion_=b||2;this.peerHostname_=Q||"*";this.JSC$10107_eventHandler_=new _.cE(this);this.maybeAttemptToConnectTimer_=new _.y0(100,this.getWindow());this.oneSidedHandshake_=!!E;this.setupAckReceived_=new m_;this.setupAckSent_=new m_;this.JSC$10107_connected_=new m_;this.endpointId_=EhQ();this.peerEndpointId_=null;this.oneSidedHandshake_?bpQ(this.JSC$10107_channel_)==1?Ida(this.JSC$10107_connected_,this.setupAckReceived_):
Ida(this.JSC$10107_connected_,this.setupAckSent_):(Ida(this.JSC$10107_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Ida(this.JSC$10107_connected_,this.setupAckSent_));adX(this.JSC$10107_connected_,this.notifyConnected_,this);this.JSC$10107_connected_.callback(!0);this.JSC$10107_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.HZ(Vv,Qv);Vv.prototype.peerProtocolVersion_=null;Vv.prototype.initialized_=!1;Vv.prototype.transportType=1;var Fta={};Vv.prototype.sendTimerId_=0;
var LtR=function(v){var Q=v.event_.data;if(typeof Q!=="string")return!1;var V=Q.indexOf("|"),E=Q.indexOf(":");if(V==-1||E==-1)return!1;var b=Q.substring(0,V);V=Q.substring(V+1,E);Q=Q.substring(E+1);if(E=EM[b])return E.xpcDeliver(V,Q,v.event_.origin),!0;E=Ktx(Q)[0];for(var F in EM){var t=EM[F];if(bpQ(t)==1&&!t.isConnected()&&V=="tp"&&(E=="SETUP"||E=="SETUP_NTPV2")&&ipV(t,v.event_.origin))return delete EM[t.name],t.name=b,EM[b]=t,t.xpcDeliver(V,Q),!0}return!1},tx8=function(v){v.protocolVersion_!=2||
v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=2||v.send("tp","SETUP_NTPV2,"+v.endpointId_);
v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=1||v.send("tp","SETUP")},pxZ=function(v,Q){if(v.protocolVersion_!=2||v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=2||Q!=2){if(v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=1||Q!=1)return;
v.send("tp","SETUP_ACK")}else v.send("tp","SETUP_ACK_NTPV2");v.setupAckSent_.fired_||v.setupAckSent_.callback(!0)},ey8=function(v,Q){Q>v.peerProtocolVersion_&&(v.peerProtocolVersion_=Q);
v.peerProtocolVersion_==1&&(v.setupAckSent_.fired_||v.oneSidedHandshake_||v.setupAckSent_.callback(!0),v.peerEndpointId_=null)};
_.K=Vv.prototype;_.K.connect=function(){var v=this.getWindow(),Q=_.$Q(v),V=Fta[Q];typeof V!=="number"&&(V=0);V==0&&_.wE(v.postMessage?v:v.document,"message",LtR,!1,Vv);Fta[Q]=V+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.K.maybeAttemptToConnect_=function(){var v=bpQ(this.JSC$10107_channel_)==0;this.oneSidedHandshake_&&v||this.JSC$10107_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),tx8(this))};
_.K.send=function(v,Q){var V=this.JSC$10107_channel_.peerWindowObject_;V&&(this.send=function(E,b){var F=this,t=this.JSC$10107_channel_.name;this.sendTimerId_=SD(function(){F.sendTimerId_=0;try{var p=V.postMessage?V:V.document;p.postMessage&&p.postMessage(t+"|"+E+":"+b,F.peerHostname_)}catch(Z){}},0)},this.send(v,Q))};
_.K.notifyConnected_=function(){var v=this.JSC$10107_channel_,Q=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;v.isConnected()||v.connectionDelay_&&v.connectionDelay_.isActive()||(v.state_=2,_.t5(v.connectionDelay_),Q!==void 0?(v.connectionDelay_=new _.xJ(v.connectCb_,Q),v.connectionDelay_.start()):(v.connectionDelay_=null,v.connectCb_()))};
_.K.disposeInternal=function(){if(this.initialized_){var v=this.getWindow(),Q=_.$Q(v),V=Fta[Q];Fta[Q]=V-1;V==1&&_.OE(v.postMessage?v:v.document,"message",LtR,!1,Vv)}this.sendTimerId_&&(_.bb.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.t5(this.JSC$10107_eventHandler_);delete this.JSC$10107_eventHandler_;_.t5(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10107_connected_.cancel();delete this.JSC$10107_connected_;delete this.send;Vv.superClass_.disposeInternal.call(this)};
var Ktx=function(v){v=v.split(",");v[1]=v[1]||null;return v};var PSa;_.bz=function(v){if(v.getValues&&typeof v.getValues=="function")return v.getValues();if(typeof Map!=="undefined"&&v instanceof Map||typeof Set!=="undefined"&&v instanceof Set)return Array.from(v.values());if(typeof v==="string")return v.split("");if(_.W9(v)){for(var Q=[],V=v.length,E=0;E<V;E++)Q.push(v[E]);return Q}return _.gI.getValues(v)};
_.ZpZ=function(v){if(v.getKeys&&typeof v.getKeys=="function")return v.getKeys();if(!v.getValues||typeof v.getValues!="function"){if(typeof Map!=="undefined"&&v instanceof Map)return Array.from(v.keys());if(!(typeof Set!=="undefined"&&v instanceof Set)){if(_.W9(v)||typeof v==="string"){var Q=[];v=v.length;for(var V=0;V<v;V++)Q.push(V);return Q}return _.gI.getKeys(v)}}};
PSa=function(v,Q,V){if(v.forEach&&typeof v.forEach=="function")v.forEach(Q,V);else if(_.W9(v)||typeof v==="string")Array.prototype.forEach.call(v,Q,V);else for(var E=_.ZpZ(v),b=_.bz(v),F=b.length,t=0;t<F;t++)Q.call(V,b[t],E&&E[t],v)};var ZTZ,eN,Pe,Y0p,dR8,wxN,hyS,ToS,A8p;
_.uY=function(v,Q){this.JSC$10112_domain_=this.userInfo_=this.scheme_="";this.JSC$10112_port_=null;this.fragment_=this.JSC$10112_path_="";this.JSC$10112_ignoreCase_=!1;var V;v instanceof _.uY?(this.JSC$10112_ignoreCase_=Q!==void 0?Q:v.JSC$10112_ignoreCase_,_.FE(this,v.scheme_),this.userInfo_=v.userInfo_,_.KM(this,v.JSC$10112_domain_),_.iz(this,v.JSC$10112_port_),_.LM(this,v.getPath()),_.t6(this,v.JSC$10112_queryData_.clone()),_.pM(this,v.fragment_)):v&&(V=_.tt(String(v)))?(this.JSC$10112_ignoreCase_=
!!Q,_.FE(this,V[1]||"",!0),this.userInfo_=eN(V[2]||""),_.KM(this,V[3]||"",!0),_.iz(this,V[4]),_.LM(this,V[5]||"",!0),_.t6(this,V[6]||"",!0),_.pM(this,V[7]||"",!0)):(this.JSC$10112_ignoreCase_=!!Q,this.JSC$10112_queryData_=new _.Zu(null,this.JSC$10112_ignoreCase_))};
_.uY.prototype.toString=function(){var v=[],Q=this.scheme_;Q&&v.push(Pe(Q,dR8,!0),":");var V=this.JSC$10112_domain_;if(V||Q=="file")v.push("//"),(Q=this.userInfo_)&&v.push(Pe(Q,dR8,!0),"@"),v.push(_.EG(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.JSC$10112_port_,V!=null&&v.push(":",String(V));if(V=this.getPath())this.JSC$10112_domain_&&V.charAt(0)!="/"&&v.push("/"),v.push(Pe(V,V.charAt(0)=="/"?hyS:wxN,!0));(V=this.JSC$10112_queryData_.toString())&&v.push("?",V);(V=this.fragment_)&&v.push("#",
Pe(V,A8p));return v.join("")};
_.uY.prototype.resolve=function(v){var Q=this.clone(),V=!!v.scheme_;V?_.FE(Q,v.scheme_):V=!!v.userInfo_;V?Q.userInfo_=v.userInfo_:V=!!v.JSC$10112_domain_;V?_.KM(Q,v.JSC$10112_domain_):V=v.JSC$10112_port_!=null;var E=v.getPath();if(V)_.iz(Q,v.JSC$10112_port_);else if(V=!!v.JSC$10112_path_){if(E.charAt(0)!="/")if(this.JSC$10112_domain_&&!this.JSC$10112_path_)E="/"+E;else{var b=Q.getPath().lastIndexOf("/");b!=-1&&(E=Q.getPath().slice(0,b+1)+E)}b=E;if(b==".."||b==".")E="";else if(_.Zt(b,"./")||_.Zt(b,
"/.")){E=_.KE(b,"/");b=b.split("/");for(var F=[],t=0;t<b.length;){var p=b[t++];p=="."?E&&t==b.length&&F.push(""):p==".."?((F.length>1||F.length==1&&F[0]!="")&&F.pop(),E&&t==b.length&&F.push("")):(F.push(p),E=!0)}E=F.join("/")}else E=b}V?_.LM(Q,E):V=v.JSC$10112_queryData_.toString()!=="";V?_.t6(Q,v.JSC$10112_queryData_.clone()):V=!!v.fragment_;V&&_.pM(Q,v.fragment_);return Q};
_.uY.prototype.clone=function(){return new _.uY(this)};
_.FE=function(v,Q,V){v.scheme_=V?eN(Q,!0):Q;v.scheme_&&(v.scheme_=v.scheme_.replace(/:$/,""));return v};
_.KM=function(v,Q,V){v.JSC$10112_domain_=V?eN(Q,!0):Q;return v};
_.iz=function(v,Q){if(Q){Q=Number(Q);if(isNaN(Q)||Q<0)throw Error("Pa`"+Q);v.JSC$10112_port_=Q}else v.JSC$10112_port_=null;return v};
_.uY.prototype.getPath=function(){return this.JSC$10112_path_};
_.LM=function(v,Q,V){v.JSC$10112_path_=V?eN(Q,!0):Q;return v};
_.t6=function(v,Q,V){Q instanceof _.Zu?(v.JSC$10112_queryData_=Q,kvQ(v.JSC$10112_queryData_,v.JSC$10112_ignoreCase_)):(V||(Q=Pe(Q,ToS)),v.JSC$10112_queryData_=new _.Zu(Q,v.JSC$10112_ignoreCase_));return v};
_.Vf=function(v,Q,V){v.JSC$10112_queryData_.set(Q,V);return v};
_.Qf=function(v,Q){return v.JSC$10112_queryData_.get(Q)};
_.pM=function(v,Q,V){v.fragment_=V?eN(Q):Q;return v};
_.dn=function(v){_.Vf(v,"zx",Uh());return v};
_.vR=function(v,Q){return v instanceof _.uY?v.clone():new _.uY(v,Q)};
ZTZ=function(v,Q){v instanceof _.uY||(v=_.vR(v));Q instanceof _.uY||(Q=_.vR(Q));return v.resolve(Q)};
eN=function(v,Q){return v?Q?decodeURI(v.replace(/%25/g,"%2525")):decodeURIComponent(v):""};
Pe=function(v,Q,V){return typeof v==="string"?(v=encodeURI(v).replace(Q,Y0p),V&&(v=v.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),v):null};
Y0p=function(v){v=v.charCodeAt(0);return"%"+(v>>4&15).toString(16)+(v&15).toString(16)};
dR8=/[#\/\?@]/g;wxN=/[#\?:]/g;hyS=/[#\?]/g;ToS=/[#\?@]/g;A8p=/#/g;_.Zu=function(v,Q){this.count_=this.keyMap_=null;this.encodedQuery_=v||null;this.JSC$10113_ignoreCase_=!!Q};
_.h6=function(v){v.keyMap_||(v.keyMap_=new Map,v.count_=0,v.encodedQuery_&&Lep(v.encodedQuery_,function(Q,V){v.add(P5(Q),V)}))};
_.K=_.Zu.prototype;_.K.getCount=function(){_.h6(this);return this.count_};
_.K.add=function(v,Q){_.h6(this);this.encodedQuery_=null;v=wn(this,v);var V=this.keyMap_.get(v);V||this.keyMap_.set(v,V=[]);V.push(Q);this.count_+=1;return this};
_.K.remove=function(v){_.h6(this);v=wn(this,v);return this.keyMap_.has(v)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(v).length,this.keyMap_.delete(v)):!1};
_.K.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.K.isEmpty=function(){_.h6(this);return this.count_==0};
_.K.containsKey=function(v){_.h6(this);v=wn(this,v);return this.keyMap_.has(v)};
_.K.containsValue=function(v){var Q=this.getValues();return _.sB(Q,v)};
_.K.forEach=function(v,Q){_.h6(this);this.keyMap_.forEach(function(V,E){V.forEach(function(b){v.call(Q,b,E,this)},this)},this)};
_.K.getKeys=function(){_.h6(this);for(var v=Array.from(this.keyMap_.values()),Q=Array.from(this.keyMap_.keys()),V=[],E=0;E<Q.length;E++)for(var b=v[E],F=0;F<b.length;F++)V.push(Q[E]);return V};
_.K.getValues=function(v){_.h6(this);var Q=[];if(typeof v==="string")this.containsKey(v)&&(Q=Q.concat(this.keyMap_.get(wn(this,v))));else{v=Array.from(this.keyMap_.values());for(var V=0;V<v.length;V++)Q=Q.concat(v[V])}return Q};
_.K.set=function(v,Q){_.h6(this);this.encodedQuery_=null;v=wn(this,v);this.containsKey(v)&&(this.count_-=this.keyMap_.get(v).length);this.keyMap_.set(v,[Q]);this.count_+=1;return this};
_.K.get=function(v,Q){if(!v)return Q;v=this.getValues(v);return v.length>0?String(v[0]):Q};
_.y8R=function(v,Q,V){v.remove(Q);V.length>0&&(v.encodedQuery_=null,v.keyMap_.set(wn(v,Q),_.jZ(V)),v.count_+=V.length)};
_.Zu.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var v=[],Q=Array.from(this.keyMap_.keys()),V=0;V<Q.length;V++){var E=Q[V],b=_.EG(E);E=this.getValues(E);for(var F=0;F<E.length;F++){var t=b;E[F]!==""&&(t+="="+_.EG(E[F]));v.push(t)}}return this.encodedQuery_=v.join("&")};
_.Zu.prototype.clone=function(){var v=new _.Zu;v.encodedQuery_=this.encodedQuery_;this.keyMap_&&(v.keyMap_=new Map(this.keyMap_),v.count_=this.count_);return v};
var wn=function(v,Q){Q=String(Q);v.JSC$10113_ignoreCase_&&(Q=Q.toLowerCase());return Q},kvQ=function(v,Q){Q&&!v.JSC$10113_ignoreCase_&&(_.h6(v),v.encodedQuery_=null,v.keyMap_.forEach(function(V,E){var b=E.toLowerCase();
E!=b&&(this.remove(E),_.y8R(this,b,V))},v));
v.JSC$10113_ignoreCase_=Q};
_.Zu.prototype.extend=function(v){for(var Q=0;Q<arguments.length;Q++)PSa(arguments[Q],function(V,E){this.add(E,V)},this)};var A6=function(v,Q){HA.call(this);for(var V=0,E;E=Qyp[V];V++)if(E in v&&!/^https?:\/\//.test(v[E]))throw Error("Ra`"+v[E]+"`"+E);this.cfg_=v;this.name=this.cfg_.cn||EhQ();this.JSC$10108_domHelper_=Q||qN();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.cE(this);v.lpu=v.lpu||KeN(this.JSC$10108_domHelper_.getWindow().location.href)+"/robots.txt";v.ppu=v.ppu||KeN(v.pu||"")+"/robots.txt";EM[this.name]=this;pU8(window,"unload",c8A)||ZM(window,"unload",c8A)};
_.HZ(A6,HA);var fWQ=RegExp("^%*tp$"),Gvp=RegExp("^%+tp$");_.K=A6.prototype;_.K.connectionDelay_=null;_.K.peerWindowDeferred_=null;_.K.transport_=null;_.K.state_=1;_.K.isConnected=function(){return this.state_==2};
_.K.peerWindowObject_=null;_.K.iframeElement_=null;_.K.getConfig=function(){return this.cfg_};
_.K.connect=function(v){this.connectCb_=v||_.c7;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?adX(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.K.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10108_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var v=this.iframeElement_.contentWindow;v||(v=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=v}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10108_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Vv(this,this.cfg_.ph,this.JSC$10108_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()()};
_.K.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.t5(this.transport_);this.connectCb_=this.transport_=null;_.t5(this.connectionDelay_);this.connectionDelay_=null};
_.K.send=function(v,Q){if(this.isConnected()){try{var V=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(b){V=!1}if(V){_.rG(Q)&&(Q=(0,_.JG)(Q));V=this.transport_;var E=V.send;fWQ.test(v)&&(v="%"+v);v=v.replace(/[%:|]/g,encodeURIComponent);E.call(V,v,Q)}else this.close()}};
_.K.xpcDeliver=function(v,Q,V){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Nz)(this.xpcDeliver,this,v,Q,V));else if(ipV(this,V)&&!this.isDisposed()&&this.state_!=3)if(v&&v!="tp")this.isConnected()&&(v=v.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),v=Gvp.test(v)?v.substring(1):v,v=this.getService(v,Q))&&(Q=uTS(Q,v.objectPayload),Q!=null&&v.callback(Q));else switch(v=this.transport_,V=Ktx(Q),Q=V[1],V[0]){case "SETUP_ACK":ey8(v,1);v.setupAckReceived_.fired_||v.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":v.protocolVersion_==2&&(ey8(v,2),v.setupAckReceived_.fired_||v.setupAckReceived_.callback(!0));break;case "SETUP":ey8(v,1);pxZ(v,1);break;case "SETUP_NTPV2":v.protocolVersion_==2&&(V=v.peerProtocolVersion_,ey8(v,2),pxZ(v,2),V!=1&&v.peerEndpointId_==null||v.peerEndpointId_==Q||tx8(v),v.peerEndpointId_=Q)}};
var bpQ=function(v){var Q=v.cfg_.role;return typeof Q==="number"?Q:window.parent==v.peerWindowObject_?1:0},ipV=function(v,Q){var V=v.cfg_.ph;
return _.pE(Q==null?"":String(Q))||_.pE(V==null?"":String(V))||Q==v.cfg_.ph};
A6.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete EM[this.name];_.t5(this.peerLoadHandler_);delete this.peerLoadHandler_;A6.superClass_.disposeInternal.call(this)};
var c8A=function(){for(var v in EM)_.t5(EM[v])},EM={};var MxA=function(v,Q){this.win=v;this.allowAdsHttpEndpoint=Q;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10122_domHelper=qN(v);this.scrollManager=new BOV(v);this.accessibilityManager=new Sf8(v);CS8(this)},CS8=function(v){var Q=function(){v.allowAdsPopup&&v.allowAdsPopup.style.setProperty("display","none","important");
v.wallElement.style.setProperty("display","","important");zBZ(v.accessibilityManager);xLZ(v.accessibilityManager,v.wallElement.querySelector(".fc-dialog-container"),!1,!1,v.wallElement.querySelector(".fc-button-whitelist"));v.scrollManager.enableScrolling()};
v.allowAdsPopup=v.JSC$10122_domHelper.JSC$9408_createDom("DIV",{"class":"fc-whitelist-root"});v.allowAdsPopup.style.setProperty("display","none","important");v.JSC$10122_domHelper.appendChild(v.JSC$10122_domHelper.JSC$9406_document_.body,v.allowAdsPopup);var V=v.JSC$10122_domHelper.JSC$9408_createDom("DIV",{"class":"fc-dialog-overlay"});v.JSC$10122_domHelper.appendChild(v.allowAdsPopup,V);var E=v.JSC$10122_domHelper.JSC$9408_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:Q});v.JSC$10122_domHelper.appendChild(v.allowAdsPopup,
E);V=v.JSC$10122_domHelper.JSC$9408_createDom("IFRAME");V.className="fc-whitelist-dialog";V.frameBorder="0";V.id="fc-whitelist-iframe";V.tabIndex="0";_.vc(V,v.allowAdsHttpEndpoint);v.JSC$10122_domHelper.appendChild(E,V);E={};E.pu=_.Sc(v.allowAdsHttpEndpoint).toString();E.tp=1;E.cn="fc-whitelist-channel";E.ifrid=V.id;E.osh=!0;v.allowAdsCrossPageChannel=new A6(E);v.allowAdsCrossPageChannel.registerService("close",Q);v.allowAdsCrossPageChannel.registerService("refresh",function(){v.win.location.reload()});
v.allowAdsCrossPageChannel.registerService("resize",function(b){if(b){var F=v.allowAdsPopup.querySelector(".fc-whitelist-dialog");b.width&&F.style.setProperty("width",b.width,"important");b.height&&F.style.setProperty("height",b.height,"important")}},!0);
v.allowAdsCrossPageChannel.connect()};
MxA.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10122_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var kx=window,TZ=document,OpZ=kx.location,DRN=function(){},RyS=/\[native code\]/,Yx=function(v,Q,V){return v[Q]=v[Q]||V},nhp=function(v){v=v.sort();
for(var Q=[],V=void 0,E=0;E<v.length;E++){var b=v[E];b!=V&&Q.push(b);V=b}return Q},yv=function(){var v;
if((v=Object.create)&&RyS.test(v))v=v(null);else{v={};for(var Q in v)v[Q]=void 0}return v},ce=Yx(kx,"gapi",{});var fM={};fM=Yx(kx,"___jsl",yv());Yx(fM,"I",0);Yx(fM,"hel",10);var lWZ=function(){var v=OpZ.href;if(fM.dpo)var Q=fM.h;else{Q=fM.h;var V=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),E=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(v=v&&(V.exec(v)||E.exec(v)))try{Q=decodeURIComponent(v[2])}catch(b){}}return Q},q0q=function(v){var Q=Yx(fM,"PQ",[]);
fM.PQ=[];var V=Q.length;if(V===0)v();else for(var E=0,b=function(){++E===V&&v()},F=0;F<V;F++)Q[F](b)},S0R=function(v){return Yx(Yx(fM,"H",yv()),v,yv())};var GZ=function(v){this.JSC$10124_obj_=v};
GZ.prototype.value=function(){return this.JSC$10124_obj_};
GZ.prototype.getWidth=function(){return this.JSC$10124_obj_.width};
GZ.prototype.getHeight=function(){return this.JSC$10124_obj_.height};
GZ.prototype.getStyle=function(){return this.JSC$10124_obj_.style};var zyX=function(v){this.JSC$10127_obj_=v||{}};
_.K=zyX.prototype;_.K.value=function(){return this.JSC$10127_obj_};
_.K.setUrl=function(v){this.JSC$10127_obj_.url=v;return this};
_.K.getUrl=function(){return this.JSC$10127_obj_.url};
_.K.getStyle=function(){return this.JSC$10127_obj_.style};
_.K.getId=function(){return this.JSC$10127_obj_.id};
_.K.getContext=function(){return this.JSC$10127_obj_.context};
var J88=function(v){v.JSC$10127_obj_.attributes=v.JSC$10127_obj_.attributes||{};return new GZ(v.JSC$10127_obj_.attributes)};var NoN=function(){zyX.apply(this,arguments)};
_.f(NoN,zyX);var xRA=Yx(fM,"perf",yv());Yx(xRA,"g",yv());var BoZ=Yx(xRA,"i",yv());Yx(xRA,"r",[]);yv();yv();var syV=function(v,Q,V){Q&&Q.length>0&&(Q=ghN(Q),V&&V.length>0&&(Q+="___"+ghN(V)),Q.length>28&&(Q=Q.substr(0,28)+(Q.length-28)),V=Q,Q=Yx(BoZ,"_p",yv()),Yx(Q,V,yv())[v]=(new Date).getTime(),Q=xRA.r,typeof Q==="function"?Q(v,"_p",V):Q.push([v,"_p",V]))},ghN=function(v){return v.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var u0Z=yv(),jyq=[],CM=function(v){throw Error("Ua`"+v);};
jyq.push(["jsl",function(v){for(var Q in v)if(Object.prototype.hasOwnProperty.call(v,Q)){var V=v[Q];typeof V=="object"?fM[Q]=Yx(fM,Q,[]).concat(V):Yx(fM,Q,V)}if(Q=v.u)v=Yx(fM,"us",[]),v.push(Q),(Q=/^https:(.*)$/.exec(Q))&&v.push("http:"+Q[1])}]);
var WtV=/^(\/[a-zA-Z0-9_\-]+)+$/,ohq=[/\/amp\//,/\/amp$/,/^\/amp$/],XxZ=/^[a-zA-Z0-9\-_\.,!]+$/,aWV=/^gapi\.loaded_[0-9]+$/,r8Z=/^[a-zA-Z0-9,._-]+$/,mRV=function(v,Q,V,E,b){var F=v.split(";"),t=F.shift(),p=u0Z[t],Z=null;p?Z=p(F,Q,V,E):CM("no hint processor for: "+t);Z||CM("failed to generate load url");Q=Z;V=Q.match($RS);(E=Q.match(IWX))&&E.length===1&&HpS.test(Q)&&V&&V.length===1||CM("failed sanity: "+v);try{v="?";if(b&&b.length>0){zTo(b);var d=b.join(",");Z=Z+"?le="+d;v="&"}if(fM.rol){var w=fM.ol;
w&&w.length&&(Z=""+Z+v+"ol="+w.length)}}catch(A){}return Z},Qcq=function(v,Q,V,E){v=URN(v);
aWV.test(V)||CM("invalid_callback");Q=v0X(Q);E=E&&E.length?v0X(E):null;var b=function(F){return encodeURIComponent(F).replace(/%2C/g,",")};
return[encodeURIComponent(v.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",b(v.version),"/m=",b(Q),E?"/exm="+b(E):"","/rt=j/sv=1/d=1/ed=1",v.activeMods?"/am="+b(v.activeMods):"",v.resourceSig?"/rs="+b(v.resourceSig):"",v.zcms?"/t="+b(v.zcms):"","/cb=",b(V)].join("")},URN=function(v){v.charAt(0)!=="/"&&CM("relative path");
for(var Q=v.substring(1).split("/"),V=[];Q.length;){v=Q.shift();if(!v.length||v.indexOf(".")==0)CM("empty/relative directory");else if(v.indexOf("=")>0){Q.unshift(v);break}V.push(v)}v={};for(var E=0,b=Q.length;E<b;++E){var F=Q[E].split("="),t=decodeURIComponent(F[0]),p=decodeURIComponent(F[1]);F.length==2&&t&&p&&(v[t]=v[t]||p)}Q="/"+V.join("/");WtV.test(Q)||CM("invalid_prefix");V=0;for(E=ohq.length;V<E;++V)ohq[V].test(Q)&&CM("invalid_prefix");V=VzA(v,"k",!0);E=VzA(v,"am");b=VzA(v,"rs");v=VzA(v,"t");
return{pathPrefix:Q,version:V,activeMods:E,resourceSig:b,zcms:v}},v0X=function(v){for(var Q=[],V=0,E=v.length;V<E;++V){var b=v[V].replace(/\./g,"_").replace(/-/g,"_");
r8Z.test(b)&&Q.push(b)}return Q.join(",")},VzA=function(v,Q,V){v=v[Q];
!v&&V&&CM("missing: "+Q);if(v){if(XxZ.test(v))return v;CM("invalid: "+Q)}return null},HpS=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,IWX=/\/cb=/g,$RS=/\/\//g;
u0Z.m=function(v,Q,V,E){(v=v[0])||CM("missing_hint");return"https://apis.google.com"+Qcq(v,Q,V,E)};
var E0a=decodeURI("%73cript"),bWN=/^[-+_0-9\/A-Za-z]+={0,2}$/,Fox=function(v,Q){for(var V=[],E=0;E<v.length;++E){var b=v[E],F;if(F=b){a:{for(F=0;F<Q.length;F++)if(Q[F]===b)break a;F=-1}F=F<0}F&&V.push(b)}return V},Kop=function(){var v=fM.nonce;
return v!==void 0?v&&v===String(v)&&v.match(bWN)?v:fM.nonce=null:TZ.querySelector?(v=TZ.querySelector("script[nonce]"))?(v=v.nonce||v.getAttribute("nonce")||"",v&&v===String(v)&&v.match(bWN)?fM.nonce=v:fM.nonce=null):null:null},tzZ=function(v){if(TZ.readyState!="loading")iWA(v);
else{var Q=Kop(),V="";Q!==null&&(V=' nonce="'+Q+'"');v="<"+E0a+' src="'+encodeURI(v)+'"'+V+"></"+E0a+">";TZ.write(LoA?LoA.createHTML(v):v)}},iWA=function(v){var Q=TZ.createElement(E0a);
Q.setAttribute("src",LoA?LoA.createScriptURL(v):v);v=Kop();v!==null&&Q.setAttribute("nonce",v);Q.async="true";(v=TZ.getElementsByTagName(E0a)[0])?v.parentNode.insertBefore(Q,v):(TZ.head||TZ.body||TZ.documentElement).appendChild(Q)},edA=function(v,Q,V){paQ(function(){var E=Q===lWZ()?Yx(ce,"_",yv()):yv();
E=Yx(S0R(Q),"_",E);v(E)},V)},E90=function(v,Q){var V=Q||{};
typeof Q=="function"&&(V={},V.callback=Q);var E=(Q=V)&&Q._c;if(E)for(var b=0;b<jyq.length;b++){var F=jyq[b][0],t=jyq[b][1];t&&Object.prototype.hasOwnProperty.call(E,F)&&t(E[F],v,Q)}Q=[];v?Q=v.split(":"):V.features&&(Q=V.features);if(!(v=V.h)&&(v=lWZ(),!v))throw Error("Va");ZWA(Q||[],V,v)},ZWA=function(v,Q,V){v=nhp(v)||[];
var E=Q.callback,b=Q.config,F=Q.timeout,t=Q.ontimeout,p=Q.onerror,Z=void 0;typeof p=="function"&&(Z=p);var d=null,w=!1;if(F&&!t||!F&&t)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";p=Yx(S0R(V),"r",[]).sort();var A=Yx(S0R(V),"L",[]).sort(),k=fM.le||[],T=[].concat(p),c=function(a,g){if(w)return 0;kx.clearTimeout(d);A.push.apply(A,C);var u=((ce||{}).config||{}).update;u?u(b):b&&Yx(fM,"cu",[]).push(b);if(g){syV("me0",a,T);try{edA(g,V,Z)}finally{syV("me1",a,T)}}return 1};
F>0&&(d=kx.setTimeout(function(){w=!0;t()},F));
var C=Fox(v,A);if(C.length){C=Fox(v,p);var R=Yx(fM,"CP",[]),l=R.length;R[l]=function(a){if(!a)return 0;syV("ml1",C,T);var g=function(r){R[l]=null;c(C,a)&&q0q(function(){E&&E();r()})},u=function(){var r=R[l+1];
r&&r()};
l>0&&R[l-1]?R[l]=function(){g(u)}:g(u)};
if(C.length){var S="loaded_"+fM.I++;ce[S]=function(a){R[l](a);ce[S]=null};
v=mRV(V,C,"gapi."+S,p,k);p.push.apply(p,C);syV("ml0",C,T);Q.sync||kx.___gapisync?tzZ(v):iWA(v)}else R[l](DRN)}else c(C)&&E&&E()},PM8;
var dF8=null,hdX=_.bb.trustedTypes;if(hdX&&hdX.createPolicy){try{dF8=hdX.createPolicy("goog#gapi",{createHTML:w98,createScript:w98,createScriptURL:w98})}catch(v){_.bb.console&&_.bb.console.error(v.message)}PM8=dF8}else PM8=dF8;var LoA=PM8,paQ=function(v,Q){if(fM.hee&&fM.hel>0)try{return v()}catch(V){Q&&Q(V),fM.hel--,E90("debug_error",function(){try{window.___jsl.hefn(V)}catch(E){throw V;}})}else try{return v()}catch(V){throw Q&&Q(V),V;
}},waA=ce.load;
waA&&Yx(fM,"ol",[]).push(waA);ce.load=function(v,Q){return paQ(function(){return E90(v,Q)})};var a9G;var k7V=function(v,Q){var V=V||[];this.serviceId_=v;this.moduleId_=Q||null;this.dependencies_=[];AqX(this,V)};
k7V.prototype.toString=function(){return this.serviceId_};
k7V.prototype.getModuleId=function(){return this.moduleId_};
var AqX=function(v,Q){var V=!1;V=V===void 0?!1:V;v.dependencies_=v.dependencies_.concat(Q);if(V){if(!v.moduleId_)throw Error("Wa`"+v.serviceId_);Q.map(function(E){return E.getModuleId()}).forEach(function(E){rtZ(function(b){b.addExtraEdge(v.moduleId_,E)})})}};var SSr=new k7V("MpJwZc","MpJwZc");var MH9=new _.cA("a"),JrB=new _.cA("c"),znE=function(v,Q,V){_.fv.call(this,v,Q);this.node=Q;this.kind=V};
_.f(znE,_.fv);var TXQ=function(){this.JSC$10140_keys_={};this.urlPrefix_="";this.JSC$10140_queryData_={}};
TXQ.prototype.toString=function(){var v=this.urlPrefix_+YHZ(this),Q=_.Rm(this.JSC$10140_queryData_),V="";Q!=""&&(V="?"+Q);return v+V};
var yqX=function(v){v=Mk(v,"md");return!!v&&v!=="0"},YHZ=function(v){var Q=[],V=function(E){v.JSC$10140_keys_[E]!==void 0&&Q.push(E+"="+v.JSC$10140_keys_[E])};
yqX(v)?(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 v.JSC$10140_keys_||OM(v,"d","0"),V("d"),V("exm"),V("excm"),(v.JSC$10140_keys_.excm||v.JSC$10140_keys_.exm)&&Q.push("ed=1"),V("im"),V("dg"),V("sm"),Mk(v,"br")!="1"&&Mk(v,"br")!="0"||V("br"),V("br-d"),Mk(v,"rb")=="1"&&V("rb"),Mk(v,"zs")!=="0"&&V("zs"),cqx(v)!==""&&V("wt"),V("gssmodulesetproto"),V("ujg"),V("sp"),V("rs"),V("cb"),V("ee"),V("slk"),V("dti"),V("m"));return Q.join("/")},
Mk=function(v,Q){return v.JSC$10140_keys_[Q]?v.JSC$10140_keys_[Q]:null},OM=function(v,Q,V){V?v.JSC$10140_keys_[Q]=V:delete v.JSC$10140_keys_[Q]},feq=function(v,Q){v.urlPrefix_=Q},G7p=function(v,Q){Q&&Q.length>0?(Q.sort(),OM(v,"exm",Q.join(","))):OM(v,"exm",null)},CMx=function(v,Q){Q&&Q.length>0?(Q.sort(),OM(v,"excm",Q.join(","))):OM(v,"excm",null)},MzS=function(v){return(v=Mk(v,"m"))?v.split(","):[]},cqx=function(v){switch(Mk(v,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},OWZ=function(v,Q){var V=Object.keys(Q).filter(function(E){return!!Object.keys(Q[E]).length}).map(function(E){var b=Object.keys(Q[E]);
b.length>1&&b.sort();return E+":"+b.join(",")});
V.sort();OM(v,"ee",V.join(";"))},gFt=function(v){var Q=Mk(v,"ee");
if(!Q)return{};v={};Q=_.L(Q.split(";"));for(var V=Q.next();!V.done;V=Q.next()){var E=_.L(V.value.split(":"));V=E.next().value;E=E.next().value;v[V]={};E=_.L(E.split(","));for(var b=E.next();!b.done;b=E.next())v[V][b.value]=!0}return v},DFx=function(v){delete v.JSC$10140_keys_.m;
delete v.JSC$10140_keys_.exm;delete v.JSC$10140_keys_.ed};
TXQ.prototype.clone=function(){var v=new TXQ;v.JSC$10140_keys_=Object.assign({},this.JSC$10140_keys_);v.urlPrefix_=this.urlPrefix_;v.JSC$10140_queryData_=Object.assign({},this.JSC$10140_queryData_);return v};
var set=function(v,Q){Q=Q===void 0?!0:Q;var V=Rdq(v),E=new TXQ,b=_.tt(V)[5];_.gI.forEach(n0x,function(t){var p=b.match("/"+t+"=([^/]+)");p&&OM(E,t,p[1])});
var F="";F=v.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";feq(E,v.substr(0,v.indexOf(F)+F.length));if(!Q)return E;(v=_.tt(V)[6]||null)&&Lep(v,function(t,p){E.JSC$10140_queryData_[t]=p});
return E},NOQ=function(v){v=_.OG(Rdq(v));
return v===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(v)?/\/k=/.test(v):!1},Rdq=function(v){return v.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?v.substr(65):v},n0x={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"},leA=RegExp("^loaded_(g|h)?[_\\d]+$");_.Du=function(v){this.JSC$10152_id_=v;this.opts={}};
_.Du.prototype.JSC$10154_setLabel=function(v){this.label_=v||void 0;return this};
_.Du.prototype.addUploadMetadata=function(v,Q){var V=this.opts.data||{};V[v]=Q;this.opts.data=V;return this};
var qHX=function(v){var Q=_.gI.filter(v.opts,function(V){return V!==null});
Q=_.gI.isEmpty(Q)?null:Q;v=[v.JSC$10152_id_,v.label_,Q];Q=RTr(v);return v=v.slice(0,Q+1)};
_.Du.prototype.toString=function(){var v=qHX(this);return"("+_.sY(v,function(Q){return JSON.stringify(Q)}).join(",")+")"};
_.Du.prototype.getId=function(){return this.JSC$10152_id_};
_.Du.prototype.getOptions=function(){return _.gI.clone(this.opts)};var Rl=function(){_.Du.call(this,"image-search")};
_.f(Rl,_.Du);Rl.prototype.setSize=function(v){this.opts.imgsz=v;return this};
Rl.prototype.JSC$10154_setLabel=function(v){_.Du.prototype.JSC$10154_setLabel.call(this,v);return this};
Rl.prototype.addUploadMetadata=function(v,Q){_.Du.prototype.addUploadMetadata.call(this,v,Q);return this};var nM=function(){_.Du.call(this,"maps")};
_.f(nM,_.Du);nM.prototype.setZoom=function(v){this.opts.zoom=v;return this};
nM.prototype.JSC$10154_setLabel=function(v){_.Du.prototype.JSC$10154_setLabel.call(this,v);return this};
nM.prototype.addUploadMetadata=function(v,Q){_.Du.prototype.addUploadMetadata.call(this,v,Q);return this};_.lz=function(){_.Du.call(this,"photos")};
_.f(_.lz,_.Du);_.lz.prototype.JSC$10154_setLabel=function(v){_.Du.prototype.JSC$10154_setLabel.call(this,v);return this};
_.lz.prototype.addUploadMetadata=function(v,Q){_.Du.prototype.addUploadMetadata.call(this,v,Q);return this};var qk=function(){_.Du.call(this,"url")};
_.f(qk,_.Du);var SHZ=function(){var v=new qk;v.opts.type="video";v.opts.site="youtube.com";return v};
qk.prototype.JSC$10154_setLabel=function(v){_.Du.prototype.JSC$10154_setLabel.call(this,v);return this};
qk.prototype.addUploadMetadata=function(v,Q){_.Du.prototype.addUploadMetadata.call(this,v,Q);return this};var SN=function(){_.Du.call(this,"video-search")};
_.f(SN,_.Du);var zdp=function(){var v=new SN;v.opts.site="youtube.com";return v};
SN.prototype.JSC$10154_setLabel=function(v){_.Du.prototype.JSC$10154_setLabel.call(this,v);return this};
SN.prototype.addUploadMetadata=function(v,Q){_.Du.prototype.addUploadMetadata.call(this,v,Q);return this};var JqN=function(){_.Du.call(this,"web")};
_.f(JqN,_.Du);JqN.prototype.JSC$10154_setLabel=function(v){_.Du.prototype.JSC$10154_setLabel.call(this,v);return this};
JqN.prototype.addUploadMetadata=function(v,Q){_.Du.prototype.addUploadMetadata.call(this,v,Q);return this};var zZ=function(){this.items_=[];this.opts={}},NXa=function(v){switch(v){case "image-search":return new Rl;
case "maps":return new nM;case "photos":return new _.lz;case "url":return new qk;case "video-search":return new SN;case "web":return new JqN}return new _.Du(v)};
zZ.prototype.addView=function(v){this.items_.push(typeof v==="string"?NXa(v):v);return this};
var xFx=function(v){return"("+_.sY(v.items_,function(Q){return Q.toString()}).join(",")+")"};
zZ.prototype.toString=function(){return xFx(this)};
zZ.prototype.getViews=function(v,Q){Q=Q===void 0?[]:Q;for(var V=this.items_,E=0;E<V.length;E++){var b=V[E];b instanceof zZ?b.getViews(v,Q):b.getId()==v&&Q.push(b)}return Q};
zZ.prototype.getOptions=function(){return _.gI.clone(this.opts)};var rZ=function(v){this.basePickerUrl_=v||"https://docs.google.com/picker";this.nav_=new zZ};
rZ.prototype.nav_=null;rZ.prototype.addView=function(v){this.nav_.addView(v);return this};
rZ.prototype.getBaseUrl=function(){return this.basePickerUrl_};
rZ.prototype.getViews=function(v){return this.nav_.getViews(v)};
_.BXZ=function(v,Q){v.callback_=Q;return v};var g0a=new Map;g0a.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");g0a.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");g0a.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var sc8=new Set;sc8.add("application/vnd.google-apps.kix");sc8.add("application/vnd.google-apps.ritz");sc8.add("application/vnd.google-apps.punch");var UFa=function(v,Q,V){var E=V&&_.fN(V,1);V=uJV(V);var b=v[0].getId();switch(_.Gs(b,2)){case 13:return jcS(v,Q,E,V);case 3:return Woa(v,Q,E,V);case 10:return o0S(v,Q,E,V);case 27:return o0S(v,Q,E,V);case 12:return XaA(v,Q);case 2:return aea(v,Q,E,V);case 5:return rqN(v,Q,E,V);case 9:return $Fa(v,Q,E,V);case 6:return IeR(v,Q,E,V);case 25:return HWZ(v,Q,E,V);case 1:return _.ZD(v[0],GcN,26)?mFV(v,Q,E,V):o0S(v,Q,E,V);default:return{}}},IeR=function(v,Q,V,E){v=v.map(function(b){return{id:b.getId().getId(),
serviceId:"youtube",name:b.getName(),description:_.fN(b,3),type:J6(b),lastEditedUtc:_.fgN(_.TY(b,_.Cr,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:b.getUrl(),embedUrl:_.fN(b,13),thumbnails:Nk(QM(b))}});
return{action:Q,docs:v,viewToken:E,view:V||"youtube",v2Translated:!0}},aea=function(v,Q,V,E){var b=v.map(function(F){var t=F.getId().getId(),p=_.fN(F,7),Z=F.getName(),d=J6(F),w=_.fgN(_.TY(F,_.Cr,12)).getTime(),A=F.getUrl(),k=Number(SRZ(F)),T=_.fN(F,3),c=_.fN(F,11),C=Nk(QM(F));
var R=_.TY(F,VM,21);R=_.YK(R,1);var l=_.TY(F,VM,21);l=_.fN(l,10);var S=_.fN(F,13);var a=_.TY(F,VM,21);a=_.YK(a,9);var g=_.TY(F,VM,21);g=_.fN(g,11);t={id:t,serviceId:"docs",mimeType:p,name:Z,type:d,lastEditedUtc:w,url:A,sizeBytes:k,description:T,iconUrl:c,thumbnails:C,isShared:R,downloadUrl:l,embedUrl:S,copyable:a,resourceKey:g};p=_.TY(F,VM,21);_.YK(p,12)&&(t.uploadState="success",t.isNew=!0);p=_.TY(F,VM,21);_.ZD(p,mw,3)&&(F=_.TY(F,VM,21),F=_.TY(F,mw,3),_.ZD(F,IM,2)&&(p=X9(F.getDuration().getSeconds()),
Z=F.getDuration(),Z=_.h5(Z,2),t.duration=p+Z/1E9),t.aspectRatio=F.getAspectRatio());return t});
return{action:Q,docs:b,viewToken:E,view:V||"all",extraUserInputs:vyQ(v),v2Translated:!0}},rqN=function(v,Q,V,E){v=v.map(function(b){var F=_.TY(b,Shp,15);
F=_.TY(F,H7,1);Sx(b,10,H7,F);return{id:b.getId().getId(),serviceId:"web",mimeType:_.fN(b,7),name:b.getName(),type:J6(b),url:b.getUrl(),description:_.fN(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Nk(QM(b))}});
return{action:Q,docs:v,viewToken:E,view:V||"image-search",v2Translated:!0}},$Fa=function(v,Q,V,E){v=v.map(function(b){return{serviceId:"url",
name:QM(b)[0].getUrl().split("/").pop(),type:J6(b),mimeType:_.fN(b,7),url:b.getUrl(),description:_.fN(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Nk(QM(b))}});
return{action:Q,docs:v,viewToken:E,view:V||"url",v2Translated:!0}},mFV=function(v,Q,V,E){v=v.map(function(b){return{id:b.getId().getId(),
serviceId:"picasa",name:b.getName(),type:J6(b),description:_.fN(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Nk(QM(b))}});
return{action:Q,docs:v,viewToken:E,view:V||"webcam",v2Translated:!0}},o0S=function(v,Q,V,E){return{action:Q,
docs:v.map(QTa),viewToken:E,view:Vuq(V||"upload",v),extraUserInputs:vyQ(v),v2Translated:!0}},Vuq=function(v,Q){return Q.some(function(V){var E;
return((E=_.TY(V,Uc,30))==null?void 0:_.Gs(E,3))===9})?v+"/gmailphotos":v},Woa=function(v,Q,V,E){var b=v.map(function(F){var t={id:F.getId().getId(),
serviceId:"picasa",mimeType:_.fN(F,7),name:F.getName(),type:J6(F),lastEditedUtc:_.fgN(_.TY(F,_.Cr,12)).getTime(),url:F.getUrl(),sizeBytes:Number(SRZ(F)),description:_.fN(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Nk(QM(F)),mediaKey:F.getId().getId(),parentId:_.fN(F,4)},p,Z=(p=_.TY(F,Oga,18))==null?void 0:_.TY(p,MK8,3);Z&&(t.latitude=cC(Z,1),t.longitude=cC(Z,2));var d;F=(d=_.TY(F,Oga,18))==null?void 0:y2(d,6);d=F!=null?X9(F):void 0;d&&(t.version=
d);return t});
return{action:Q,docs:b,viewToken:E,view:V||"photos",extraUserInputs:vyQ(v),v2Translated:!0}},jcS=function(v,Q,V,E){v=v.map(function(b){return{id:b.getId().getId(),
serviceId:"et",name:QM(b)[0].getUrl().split("/").pop(),description:_.fN(b,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Nk(QM(b),"etjpg")}});
return{action:Q,docs:v,viewToken:E,view:V||"et",v2Translated:!0}},HWZ=function(v,Q,V,E){v=v.map(function(b){var F=b.getId().getId(),t=E["2"];
return{id:F,serviceId:t.type!=="gmail_themes"&&t.parent==="6226252643674576769"?"picasa":"static_themes",name:b.getName(),mimeType:_.fN(b,7),type:J6(b),description:_.fN(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:b.getUrl(),embedUrl:b.getUrl(),thumbnails:Nk(QM(b))}});
return{action:Q,docs:v,viewToken:E,view:V||"photos",v2Translated:!0}},XaA=function(v,Q){v=v.map(function(V){var E=_.TY(V,Ct8,27);
E=_.I8(E,1,_.fj,_.dZ())[0];return{id:V.getId().getId(),serviceId:"contacts",mimeType:_.fN(V,7),name:V.getName(),description:_.fN(V,3),url:"mailto:"+E,thumbnail:[{url:_.fN(V,11)}],email:E}});
return{action:Q,docs:v,view:"contacts",v2Translated:!0}},uJV=function(v){if(!v)return{};
var Q=_.fN(v,3);Q=Q&&JSON.parse(Q)||{};return{0:_.fN(v,1),1:_.fN(v,2),2:Q}},Nk=function(v,Q){Q=Q===void 0?"":Q;
if(!v.length)return null;Q=="etjpg"&&(v=v.filter(function(V){return V.getUrl().includes("w1200-h300")}));
return v.map(function(V){return{url:V.getUrl(),height:V.getHeight(),width:V.getWidth(),type:Q}})},vyQ=function(v){return{isAttachment:v.some(function(Q){return _.YK(Q,31)})}},QTa=function(v){var Q,V={id:(Q=v.getId())==null?void 0:Q.getId(),
serviceId:Eya(v),mimeType:_.fN(v,7),name:v.getName(),type:J6(v),sizeBytes:Number(SRZ(v)),description:_.fN(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Nk(QM(v)),isNew:!0};if(Q=_.TY(v,Uc,30)){V.dataUrl=_.fN(Q,1)||null;a:{var E=_.TY(v,Uc,30);switch(_.Gs(E,3)){case 9:E=_.O7(E,lgq,2,vA);E={remoteRefs:E&&_.fN(E,1)};break a;case 10:case 15:E=_.O7(E,nJS,4,vA);var b=QM(v);E={photo_id:E&&_.fN(E,1),media_key:v.getId().getId(),media_type:_.Gs(v,6)===1?1:2,image_url:b&&
b[0].getUrl(),width:b&&String(b[0].getWidth()),height:b&&String(b[0].getHeight())};break a}E=null}V.uploadMetadata=E;V.uploadId=_.fN(Q,9)||null;V.uploadState=b2S(Q)||null}(E=Q&&_.O7(Q,nJS,4,vA))&&(V.id=_.fN(E,1));(E=Q&&_.O7(Q,qhA,5,vA))&&(V.contentId=_.fN(E,1));(E=Q&&_.O7(Q,DzX,7,vA))&&(V.contentId=_.fN(E,1));(E=Q&&_.O7(Q,RIQ,6,vA))&&(V.contentId=_.fN(E,1));(Q==null?void 0:_.Gs(Q,3))===1&&(V.mediaKey=v.getId().getId());return V},Eya=function(v){var Q;
switch(((Q=_.TY(v,Uc,30))==null?void 0:_.Gs(Q,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},J6=function(v){switch(_.Gs(v,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.fN(v,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},b2S=function(v){switch(v==null?void 0:_.Gs(v,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var Lip,Fi8,Ki8,i2a;_.tuX=function(v,Q){var V=Q||{};Q=V.document||document;var E=_.Sc(v).toString(),b=(new Oc(Q)).createElement("SCRIPT"),F={script_:b,timeout_:void 0},t=new m_(Fi8,F),p=null,Z=V.timeout!=null?V.timeout:5E3;Z>0&&(p=window.setTimeout(function(){Ki8(b,!0);t.errback(new i2a(1,"Timeout reached for loading script "+E))},Z),F.timeout_=p);
b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||(Ki8(b,V.cleanupWhenDone||!1,p),t.callback(null))};
b.onerror=function(){Ki8(b,!0,p);t.errback(new i2a(0,"Error while loading script "+E))};
F=V.attributes||{};_.gI.extend(F,{type:"text/javascript",charset:"UTF-8"});hDX(b,F);_.L$(b,v);Lip(Q).appendChild(b);return t};
Lip=function(v){var Q=lt("HEAD",v);return Q&&Q.length!==0?Q[0]:v.documentElement};
Fi8=function(){if(this&&this.script_){var v=this.script_;v&&v.tagName=="SCRIPT"&&Ki8(v,!0,this.timeout_)}};
Ki8=function(v,Q,V){V!=null&&_.bb.clearTimeout(V);v.onload=function(){};
v.onerror=function(){};
v.onreadystatechange=function(){};
Q&&window.setTimeout(function(){_.ng(v)},0)};
i2a=function(v,Q){var V="Jsloader error (code #"+v+")";Q&&(V+=": "+Q);_.Vo.call(this,V);this.code=v};
_.HZ(i2a,_.Vo);var pEN=_.s$(["https://apis.google.com/js/api.js"]),enS=_.Ad(pEN),hnp=function(v,Q,V){V=V===void 0?{}:V;var E=!1,b=Z2R(v,Q,V).then(function(t){E=!0;return t}),F=_.B7q(5E3).then(function(){return E?Z2R(v,Q,V):PuN(Q,V).then(function(t){return dvZ(t,v)})});
return MgQ([b,F])},Z2R=function(v,Q,V){V=V===void 0?{}:V;
return wEQ(Q,V).then(function(E){return dvZ(E,v)})},dvZ=function(v,Q){var V=_.KE(Q,"gapi.")?Q.slice(5):Q;
return v[V]?_.Vk(v[V]):new _.Ry(function(E,b){var F=SD(function(){b(Error("Ya"))},3E4);
v.load(Q,{callback:function(){_.bb.clearTimeout(F);E(v[V])},
onerror:function(t){_.bb.clearTimeout(F);b(t)}})})},wEQ=function(v,Q){Q=Q===void 0?{}:Q;
return v.gapi&&v.gapi.load?_.Vk(v.gapi):PuN(v,Q)},PuN=function(v,Q){Q=Q===void 0?{}:Q;
return _.tuX(enS,{document:v.document,attributes:Q}).then(function(){return v.gapi})},Arq=function(){};
Arq.prototype.load=function(v,Q,V){Q=Q===void 0?window:Q;V=V===void 0?{}:V;var E=Date.now();return hnp(v,Q,V).then(function(b){var F=Date.now();return{library:b,loadStartMs:E,loadEndMs:F}},function(b){throw b instanceof Error?b:Error(String(b));
})};var K7m=function(){_.J5.call(this);this.gapiLoader_=new Arq;this.origin_=null;this.gapiPickerIframeResolver_=_.B_();this.gapiIframesResolver_=_.B_();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.f(K7m,_.J5);var kES=function(v,Q){var V=V===void 0?{}:V;var E=_.Q9("gapi.iframes",Q);return E?(v=Date.now(),_.Vk({library:E,loadStartMs:v,loadEndMs:v})):v.gapiLoader_.load("gapi.iframes",Q,V)},TCV=function(v,Q,V,E,b,F){var t=!1;
t=t===void 0?!1:t;kES(v,jS(Q.ownerDocument)).then(function(p){var Z=p.library;v.gapiIframesResolver_.resolve(Z);p=v.gapiPickerIframeResolver_;var d=p.resolve,w=t;w=w===void 0?!1:w;var A={};A["host-message-handler"]=V;v.hostMessageHandlerInternal_=A;var k=_.vR(E);k=_.vR(k);k=_.iz(_.KM(_.FE(new _.uY,k.scheme_),k.JSC$10112_domain_),k.JSC$10112_port_).toString();v.origin_=k;k=(new NoN).setUrl(E);k.JSC$10127_obj_.where=Q;k.JSC$10127_obj_.allowPost=w;k.JSC$10127_obj_.messageHandlers=A;w=_.Q9("makeWhiteListIframesFilter",
Z)([v.origin_]);k.JSC$10127_obj_.messageHandlersFilter=w;b!=null&&(k.JSC$10127_obj_.id=b);F!=null&&(k.JSC$10127_obj_.rpctoken=F);w=J88(k);w.JSC$10124_obj_.style={display:"block","min-width":"100%",width:"1px"};w.JSC$10124_obj_.height="100%";J88(k).value().allow="camera 'src' "+v.origin_;Z=Z.getContext().openChild(k.value());d.call(p,Z)},function(p){v.gapiIframesResolver_.reject(p);
v.gapiPickerIframeResolver_.reject(p)});
return v.gapiPickerIframeResolver_.promise},YSq=function(v,Q){return _.lc([v.gapiIframesResolver_.promise,
v.gapiPickerIframeResolver_.promise]).then(function(V){var E=_.L(V);V=E.next().value;return(E=E.next().value)?E.send("picker-message-handler",Q,void 0,_.Q9("makeWhiteListIframesFilter",V)([v.origin_])):_.kD(Error("Za"))})};
K7m.prototype.disposeInternal=function(){yra(this);_.J5.prototype.disposeInternal.call(this)};
var yra=function(v){v.gapiPickerIframeResolver_.promise.then(function(Q){Q&&(Q.unregister("host-message-handler"),delete v.hostMessageHandlerInternal_["host-message-handler"])})};var cra=function(){this.nextId=0};var GEa=function(v,Q){switch(v.action){case "select-contacts":v=f3R(v.contacts);break;case "visibility":v=v.visible;var V=new Kv;v=_.Rq(V,1,7).setVisible(v);V={};V["iframe-command"]=v.serialize();v=V;break;default:v=null}return v?YSq(Q,v):_.Vk()},f3R=function(v){if(!v||v.length==0)return null;
var Q=new Kv;_.Rq(Q,1,11);var V=new cra;v.forEach(function(E){if(E.email){var b=new kK;b=_.NM(b,2,E.name?E.name:E.email);var F=new Ct8;E=_.unZ(F,1,_.kf,E.email,_.fj);E=_.Mj(b,27,E);b=new c5N;F=":"+(V.nextId++).toString(36);b=_.NM(b,1,F);b=_.Rq(b,2,12);E=_.Mj(E,1,b)}else E=null;E&&Sx(Q,7,kK,E)});
v={};v["iframe-command"]=Q.serialize();return v};_.CuR=function(){if(r3N){var v=/Windows NT ([0-9.]+)/;return(v=v.exec(_.T0()))?v[1]:"0"}return _.atZ?(v=/1[0|1][_.][0-9_.]+/,(v=v.exec(_.T0()))?v[0].replace(/_/g,"."):"10"):WU9?(v=/Android\s+([^\);]+)(\)|;)/,(v=v.exec(_.T0()))?v[1]:""):ItZ||HE8||mmp?(v=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(v=v.exec(_.T0()))?v[1].replace(/_/g,"."):""):""}();var xx;xx=function(v){return(v=v.exec(_.T0()))?v[1]:""};
_.MuN=function(){if(_.Fv)return xx(/Firefox\/([0-9.]+)/);if(_.Q2||ej||WSN)return FAR;if(_.KN){if(_.qm()||_.CbE()){var v=xx(/CriOS\/([0-9.]+)/);if(v)return v}return xx(/Chrome\/([0-9.]+)/)}if(_.mF&&!_.qm())return xx(/Version\/([0-9.]+)/);if(ryh||$pb){if(v=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.T0()))return v[1]+"."+v[2]}else if(pNZ)return(v=xx(/Android\s+([0-9.]+)/))?v:xx(/Version\/([0-9.]+)/);return""}();var O2Z=function(){};
_.$G(O2Z);O2Z.prototype.nextId_=0;_.Be=function(v){return":"+(v.nextId_++).toString(36)};var gn=function(v){_.DO.call(this);this.JSC$10222_dom_=v||qN();this.JSC$10222_id_=null;this.inDocument_=!1;this.JSC$10222_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.HZ(gn,_.DO);gn.prototype.idGenerator_=O2Z.getInstance();gn.prototype.getId=function(){return this.JSC$10222_id_||(this.JSC$10222_id_=_.Be(this.idGenerator_))};
gn.prototype.getElement=function(){return this.JSC$10222_element_};
var sM=function(v){v.googUiComponentHandler_||(v.googUiComponentHandler_=new _.cE(v));return v.googUiComponentHandler_},DvS=function(v,Q){if(v==Q)throw Error("$a");
var V;if(V=Q&&v.parent_&&v.JSC$10222_id_){V=v.parent_;var E=v.JSC$10222_id_;V=V.childIndex_&&E?_.gI.get(V.childIndex_,E)||null:null}if(V&&v.parent_!=Q)throw Error("$a");v.parent_=Q;gn.superClass_.setParentEventTarget.call(v,Q)};
gn.prototype.setParentEventTarget=function(v){if(this.parent_&&this.parent_!=v)throw Error("ab");gn.superClass_.setParentEventTarget.call(this,v)};
gn.prototype.JSC$10224_createDom=function(){this.JSC$10222_element_=this.JSC$10222_dom_.createElement("DIV")};
gn.prototype.render=function(v){RnS(this,v)};
var RnS=function(v,Q,V){if(v.inDocument_)throw Error("bb");v.JSC$10222_element_||v.JSC$10224_createDom();Q?Q.insertBefore(v.JSC$10222_element_,V||null):v.JSC$10222_dom_.JSC$9406_document_.body.appendChild(v.JSC$10222_element_);v.parent_&&!v.parent_.inDocument_||v.enterDocument()};
_.K=gn.prototype;_.K.decorate=function(v){if(this.inDocument_)throw Error("bb");if(v&&this.canDecorate(v)){this.wasDecorated_=!0;var Q=_.W4(v);this.JSC$10222_dom_&&this.JSC$10222_dom_.JSC$9406_document_==Q||(this.JSC$10222_dom_=qN(v));this.decorateInternal(v);this.enterDocument()}else throw Error("cb");};
_.K.canDecorate=function(){return!0};
_.K.decorateInternal=function(v){this.JSC$10222_element_=v};
_.K.enterDocument=function(){this.inDocument_=!0;nyR(this,function(v){!v.inDocument_&&v.getElement()&&v.enterDocument()})};
_.K.exitDocument=function(){nyR(this,function(v){v.inDocument_&&v.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.K.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);nyR(this,function(v){v.dispose()});
!this.wasDecorated_&&this.JSC$10222_element_&&_.ng(this.JSC$10222_element_);this.parent_=this.model_=this.JSC$10222_element_=this.childIndex_=this.children_=null;gn.superClass_.disposeInternal.call(this)};
_.K.getModel=function(){return this.model_};
_.K.addChild=function(v,Q){var V=this.children_?this.children_.length:0;if(v.inDocument_&&(Q||!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_=[]);v.parent_==this?(_.gI.set(this.childIndex_,v.getId(),v),_.ub(this.children_,v)):_.gI.add(this.childIndex_,v.getId(),v);DvS(v,this);_.SBQ(this.children_,V,0,v);v.inDocument_&&this.inDocument_&&v.parent_==this?(Q=this.getContentElement(),
(Q.childNodes[V]||null)!=v.getElement()&&(v.getElement().parentElement==Q&&Q.removeChild(v.getElement()),V=Q.childNodes[V]||null,Q.insertBefore(v.getElement(),V))):Q?(this.JSC$10222_element_||this.JSC$10224_createDom(),V=this.children_?this.children_[V+1]||null:null,RnS(v,this.getContentElement(),V?V.JSC$10222_element_:null)):this.inDocument_&&!v.inDocument_&&v.JSC$10222_element_&&v.JSC$10222_element_.parentNode&&v.JSC$10222_element_.parentNode.nodeType==1&&v.enterDocument()};
_.K.getContentElement=function(){return this.JSC$10222_element_};
var nyR=function(v,Q){v.children_&&v.children_.forEach(Q,void 0)};
gn.prototype.removeChild=function(v,Q){if(v){var V=typeof v==="string"?v:v.getId();v=this.childIndex_&&V?_.gI.get(this.childIndex_,V)||null:null;V&&v&&(_.gI.remove(this.childIndex_,V),_.ub(this.children_,v),Q&&(v.exitDocument(),v.JSC$10222_element_&&_.ng(v.JSC$10222_element_)),DvS(v,null))}if(!v)throw Error("eb");return v};_.HZ(HiB,I9Q);_.HZ(mYB,I9Q);var l3a;_.gI.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var qSR=function(v,Q){Q?v.setAttribute("role",Q):v.removeAttribute("role")},uz=function(v,Q,V){Array.isArray(V)&&(V=V.join(" "));
var E="aria-"+Q;V===""||V==void 0?(l3a||(V={},l3a=(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=l3a,Q in V?v.setAttribute(E,V[Q]):v.removeAttribute(E)):v.setAttribute(E,V)};var SSa;_.jN=function(v,Q,V){_.DO.call(this);this.target=v;this.handle=Q||v;this.limits=V||new B7(NaN,NaN,NaN,NaN);this.JSC$10227_document_=_.W4(v);this.JSC$10227_eventHandler_=new _.cE(this);_.Cg(this,this.JSC$10227_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;_.wE(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=SSa};
_.HZ(_.jN,_.DO);SSa=_.bb.document&&_.bb.document.documentElement&&!!_.bb.document.documentElement.setCapture&&!!_.bb.document.releaseCapture;_.znZ=function(v,Q){v.hysteresisDistanceSquared_=Math.pow(Q,2)};
_.K=_.jN.prototype;_.K.setEnabled=function(v){this.enabled_=v};
_.K.disposeInternal=function(){_.jN.superClass_.disposeInternal.call(this);_.OE(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10227_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10227_document_.releaseCapture();this.handle=this.target=null};
_.K.startDrag=function(v){var Q=v.type=="mousedown";if(!this.enabled_||this.dragging_||Q&&(!v.isButton(0)||_.atZ&&v.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new We("start",this,v.clientX,v.clientY,v)))this.dragging_=!0,Q&&v.preventDefault();else return;else Q&&v.preventDefault();Q=this.JSC$10227_document_;var V=Q.documentElement,E=!this.useSetCapture_;this.JSC$10227_eventHandler_.listen(Q,["touchmove","mousemove"],this.handleMove_,
{capture:E,passive:!1});this.JSC$10227_eventHandler_.listen(Q,["touchend","mouseup"],this.endDrag,E);this.useSetCapture_?(V.setCapture(!1),this.JSC$10227_eventHandler_.listen(V,"losecapture",this.endDrag)):this.JSC$10227_eventHandler_.listen(jS(Q),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10227_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,E);this.clientX=this.startX=v.clientX;this.clientY=this.startY=v.clientY;this.screenX=v.screenX;this.screenY=v.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=nw(qN(this.JSC$10227_document_))}};
_.K.endDrag=function(v,Q){this.JSC$10227_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10227_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new We("end",this,v.clientX,v.clientY,v,JrR(this,this.deltaX),NCZ(this,this.deltaY),Q||v.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.K.handleMove_=function(v){if(this.enabled_){var Q=v.clientX-this.clientX,V=v.clientY-this.clientY;this.clientX=v.clientX;this.clientY=v.clientY;this.screenX=v.screenX;this.screenY=v.screenY;if(!this.dragging_){var E=this.startX-this.clientX,b=this.startY-this.clientY;if(E*E+b*b>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new We("start",this,v.clientX,v.clientY,v)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(v);return}}V=xvp(this,Q,V);Q=V.x;V=V.y;this.dragging_&&this.dispatchEvent(new We("beforedrag",
this,v.clientX,v.clientY,v,Q,V))&&(BCX(this,v,Q,V),v.preventDefault())}};
var xvp=function(v,Q,V){var E=nw(qN(v.JSC$10227_document_));Q+=E.x-v.pageScroll.x;V+=E.y-v.pageScroll.y;v.pageScroll=E;v.deltaX+=Q;v.deltaY+=V;return new _.ua(JrR(v,v.deltaX),NCZ(v,v.deltaY))};
_.jN.prototype.onScroll_=function(v){var Q=xvp(this,0,0);v.clientX=this.clientX;v.clientY=this.clientY;BCX(this,v,Q.x,Q.y)};
var BCX=function(v,Q,V,E){v.target.style.left=V+"px";v.target.style.top=E+"px";v.dispatchEvent(new We("drag",v,Q.clientX,Q.clientY,Q,V,E))},JrR=function(v,Q){var V=v.limits;
v=isNaN(V.left)?null:V.left;V=isNaN(V.width)?0:V.width;return Math.min(v!=null?v+V:Infinity,Math.max(v!=null?v:-Infinity,Q))},NCZ=function(v,Q){var V=v.limits;
v=isNaN(V.top)?null:V.top;V=isNaN(V.height)?0:V.height;return Math.min(v!=null?v+V:Infinity,Math.max(v!=null?v:-Infinity,Q))};
_.jN.prototype.isDragging=function(){return this.dragging_};
var We=function(v,Q,V,E,b,F,t){_.fv.call(this,v);this.clientX=V;this.clientY=E;this.browserEvent=b;this.left=F!==void 0?F:Q.deltaX;this.top=t!==void 0?t:Q.deltaY};
_.HZ(We,_.fv);var ol=function(v){this.JSC$10234_map_=new Map;var Q=arguments.length;if(Q>1){if(Q%2)throw Error("ma");for(var V=0;V<Q;V+=2)this.set(arguments[V],arguments[V+1])}else v&&this.addAll(v)};
_.K=ol.prototype;_.K.getCount=function(){return this.JSC$10234_map_.size};
_.K.getValues=function(){return Array.from(this.JSC$10234_map_.values())};
_.K.getKeys=function(){return Array.from(this.JSC$10234_map_.keys())};
_.K.containsKey=function(v){return this.JSC$10234_map_.has(v)};
_.K.containsValue=function(v){return this.getValues().some(function(Q){return Q==v})};
_.K.equals=function(v,Q){var V=this;Q=Q===void 0?function(E,b){return E===b}:Q;
return this===v?!0:this.JSC$10234_map_.size!=v.getCount()?!1:this.getKeys().every(function(E){return Q(V.JSC$10234_map_.get(E),v.get(E))})};
_.K.isEmpty=function(){return this.JSC$10234_map_.size==0};
_.K.clear=function(){this.JSC$10234_map_.clear()};
_.K.remove=function(v){return this.JSC$10234_map_.delete(v)};
_.K.get=function(v,Q){return this.JSC$10234_map_.has(v)?this.JSC$10234_map_.get(v):Q};
_.K.set=function(v,Q){this.JSC$10234_map_.set(v,Q);return this};
_.K.addAll=function(v){if(v instanceof ol){v=_.L(v.JSC$10234_map_);for(var Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;V=V.next().value;this.JSC$10234_map_.set(Q,V)}}else if(v)for(v=_.L(Object.entries(v)),Q=v.next();!Q.done;Q=v.next())V=_.L(Q.value),Q=V.next().value,V=V.next().value,this.JSC$10234_map_.set(Q,V)};
_.K.forEach=function(v,Q){var V=this;Q=Q===void 0?this:Q;this.JSC$10234_map_.forEach(function(E,b){return v.call(Q,E,b,V)})};
_.K.clone=function(){return new ol(this)};(function(){for(var v=["ms","moz","webkit","o"],Q,V=0;Q=v[V]&&!_.bb.requestAnimationFrame;++V)_.bb.requestAnimationFrame=_.bb[Q+"RequestAnimationFrame"],_.bb.cancelAnimationFrame=_.bb[Q+"CancelAnimationFrame"]||_.bb[Q+"CancelRequestAnimationFrame"];if(!_.bb.requestAnimationFrame){var E=0;_.bb.requestAnimationFrame=function(b){var F=(new Date).getTime(),t=Math.max(0,16-(F-E));E=F+t;return _.bb.setTimeout(function(){b(F+t)},t)};
_.bb.cancelAnimationFrame||(_.bb.cancelAnimationFrame=function(b){clearTimeout(b)})}})();
var gyX=[[],[]],sTq=0,u2N=!1,jTA=0,oya=function(v,Q){var V=jTA++,E={measureTask:{id:V,fn:v.measure,context:Q},mutateTask:{id:V,fn:v.mutate,context:Q},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(E.args||(E.args=[]),E.args.length=0,E.args.push.apply(E.args,arguments),E.args.push(E.state)):E.args&&E.args.length!=0?(E.args[0]=E.state,E.args.length=1):E.args=[E.state];E.isScheduled||(E.isScheduled=!0,gyX[sTq].push(E));u2N||(u2N=!0,window.requestAnimationFrame(WiN))}},WiN=
function(){u2N=!1;
var v=gyX[sTq],Q=v.length;sTq=(sTq+1)%2;for(var V,E=0;E<Q;++E){V=v[E];var b=V.measureTask;V.isScheduled=!1;b.fn&&b.fn.apply(b.context,V.args)}for(E=0;E<Q;++E)V=v[E],b=V.mutateTask,V.isScheduled=!1,b.fn&&b.fn.apply(b.context,V.args),V.state={};v.length=0};var XEq=_.s$(["about:blank"]),a3R=_.s$(["javascript:undefined"]),rrN=_.Ad(XEq);_.Sc(rrN);var $vX=_.Ad(a3R);_.Sc($vX);var XE=function(v){_.DO.call(this);this.JSC$10240_element_=v;this.listenKeyIn_=_.wE(this.JSC$10240_element_,"focus",this,!0);this.listenKeyOut_=_.wE(this.JSC$10240_element_,"blur",this,!0)};
_.HZ(XE,_.DO);XE.prototype.handleEvent=function(v){var Q=new _.Gl(v.event_);Q.type=v.type=="focusin"||v.type=="focus"?"focusin":"focusout";this.dispatchEvent(Q)};
XE.prototype.disposeInternal=function(){XE.superClass_.disposeInternal.call(this);Pg(this.listenKeyIn_);Pg(this.listenKeyOut_);delete this.JSC$10240_element_};var I3V=function(v,Q){this.JSC$10243_element_=v;this.JSC$10243_dom_=Q};var al=function(v,Q){gn.call(this,Q);this.useIframeMask_=!!v;this.lastFocus_=null;this.resizeBackgroundTask_=oya({mutate:this.resizeBackground_},this);oya({mutate:this.updateModalAndBackground_},this)};
_.HZ(al,gn);_.K=al.prototype;_.K.focusHandler_=null;_.K.visible_=!1;_.K.bgEl_=null;_.K.bgIframeEl_=null;_.K.tabCatcherElement_=null;_.K.backwardTabWrapInProgress_=!1;_.K.getCssClass=function(){return"goog-modalpopup"};
_.K.getBackgroundElement=function(){return this.bgEl_};
_.K.JSC$10224_createDom=function(){al.superClass_.JSC$10224_createDom.call(this);var v=this.getElement(),Q=dG(this.getCssClass()).split(" ");Ig(v,Q);v.tabIndex=0;_.EX(v,!1);H2V(this);mv8(this)};
var H2V=function(v){if(v.useIframeMask_&&!v.bgIframeEl_){var Q=v.JSC$10222_dom_.JSC$9408_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.vc(Q,rrN);v.bgIframeEl_=Q;v.bgIframeEl_.className=v.getCssClass()+"-bg";_.EX(v.bgIframeEl_,!1);o4A(v.bgIframeEl_,0)}v.bgEl_||(v.bgEl_=v.JSC$10222_dom_.JSC$9408_createDom("DIV",v.getCssClass()+"-bg"),_.EX(v.bgEl_,!1))},mv8=function(v){v.tabCatcherElement_||(v.tabCatcherElement_=v.JSC$10222_dom_.createElement("SPAN"),_.EX(v.tabCatcherElement_,
!1),v.tabCatcherElement_.tabIndex=0,v.tabCatcherElement_.style.position="absolute")};
_.K=al.prototype;_.K.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.K.canDecorate=function(v){return!!v&&v.tagName=="DIV"};
_.K.decorateInternal=function(v){al.superClass_.decorateInternal.call(this,v);v=dG(this.getCssClass()).split(" ");Ig(this.getElement(),v);H2V(this);mv8(this);this.getElement().tabIndex=0;_.EX(this.getElement(),!1)};
_.K.enterDocument=function(){this.bgIframeEl_&&_.zm(this.bgIframeEl_,this.getElement());_.zm(this.bgEl_,this.getElement());al.superClass_.enterDocument.call(this);_.JZ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new XE(this.JSC$10222_dom_.JSC$9406_document_);sM(this).listen(this.focusHandler_,"focusin",this.onFocus);Uva(this,!1)};
_.K.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.t5(this.focusHandler_);al.superClass_.exitDocument.call(this);_.ng(this.bgIframeEl_);_.ng(this.bgEl_);_.ng(this.tabCatcherElement_)};
_.K.setVisible=function(v){if(v!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&Uva(this,v),v){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10222_dom_.JSC$9406_document_.activeElement}catch(b){}this.updateModalAndBackground_();sM(this).listen(this.JSC$10222_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10222_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);vIq(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ZM(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){sM(this).unlisten(this.JSC$10222_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10222_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)ZM(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var Q=this.JSC$10222_dom_,V=Q.JSC$9406_document_.body,E=Q.JSC$9406_document_.activeElement||V;if(!this.lastFocus_||this.lastFocus_==V){this.lastFocus_=null;break a}(E==V||Q.contains(this.getElement(),E))&&this.lastFocus_.focus()}catch(b){}this.lastFocus_=
null}}};
var Uva=function(v,Q){v.modalAriaVisibilityHelper_||(v.modalAriaVisibilityHelper_=new I3V(v.JSC$10222_element_,v.JSC$10222_dom_));v=v.modalAriaVisibilityHelper_;if(Q){v.hiddenElements_||(v.hiddenElements_=[]);Q=v.JSC$10243_dom_.getChildren(v.JSC$10243_dom_.JSC$9406_document_.body);for(var V=0;V<Q.length;V++){var E=Q[V],b;if(b=E!=v.JSC$10243_element_)b=E.getAttribute("aria-hidden"),b=!(b==null||b==void 0?0:String(b));b&&(uz(E,"hidden",!0),v.hiddenElements_.push(E))}}else if(v.hiddenElements_){for(Q=
0;Q<v.hiddenElements_.length;Q++)v.hiddenElements_[Q].removeAttribute("aria-hidden");v.hiddenElements_=null}};
al.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var vIq=function(v,Q){v.bgIframeEl_&&_.EX(v.bgIframeEl_,Q);v.bgEl_&&_.EX(v.bgEl_,Q);_.EX(v.getElement(),Q);_.EX(v.tabCatcherElement_,Q)};
_.K=al.prototype;_.K.onShow=function(){this.dispatchEvent("show")};
_.K.onHide=function(){vIq(this,!1);this.dispatchEvent("hide")};
_.K.isVisible=function(){return this.visible_};
_.K.focus=function(){this.focusElement_()};
_.K.resizeBackground_=function(){this.bgIframeEl_&&_.EX(this.bgIframeEl_,!1);this.bgEl_&&_.EX(this.bgEl_,!1);var v=this.JSC$10222_dom_.JSC$9406_document_;var Q=_.Rb(jS(this.JSC$10222_dom_.JSC$9406_document_)||window);var V=Math.max(Q.width,Math.max(v.body.scrollWidth,v.documentElement.scrollWidth));v=Math.max(Q.height,Math.max(v.body.scrollHeight,v.documentElement.scrollHeight));this.bgIframeEl_&&(_.EX(this.bgIframeEl_,!0),_.sbV(this.bgIframeEl_,V,v));this.bgEl_&&(_.EX(this.bgEl_,!0),_.sbV(this.bgEl_,
V,v))};
_.K.reposition=function(){var v;if(_.g48(this.getElement())=="fixed")var Q=v=0;else Q=nw(this.JSC$10222_dom_),v=Q.x,Q=Q.y;var V=jba(this.getElement());var E=_.Rb(jS(this.JSC$10222_dom_.JSC$9406_document_)||window);v=Math.max(v+E.width/2-V.width/2,0);Q=Math.max(Q+E.height/2-V.height/2,0);uy(this.getElement(),v,Q);uy(this.tabCatcherElement_,v,Q)};
_.K.onFocus=function(v){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():v.target==this.tabCatcherElement_&&SD(this.focusElement_,0,this)};
_.K.focusElement_=function(){try{this.getElement().focus()}catch(v){}};
_.K.disposeInternal=function(){_.t5(this.popupShowTransition_);this.popupShowTransition_=null;_.t5(this.popupHideTransition_);this.popupHideTransition_=null;_.t5(this.bgShowTransition_);this.bgShowTransition_=null;_.t5(this.bgHideTransition_);this.bgHideTransition_=null;al.superClass_.disposeInternal.call(this)};var aD=function(v,Q,V){al.call(this,Q,V);this.JSC$10253_class_=v||"modal-dialog";this.buttons_=(new rn).addButton(QxQ,!0).addButton(VHx,!1,!0)};
_.HZ(aD,al);_.K=aD.prototype;_.K.escapeToCancel_=!0;_.K.hasTitleCloseButton_=!0;_.K.modal_=!0;_.K.draggable_=!0;_.K.backgroundElementOpacity_=.5;_.K.title_="";_.K.JSC$10255_dragger_=null;_.K.JSC$10255_disposeOnHide_=!1;_.K.titleEl_=null;_.K.titleTextEl_=null;_.K.titleTextId_=null;_.K.titleCloseEl_=null;_.K.contentEl_=null;_.K.buttonEl_=null;_.K.getCssClass=function(){return this.JSC$10253_class_};
_.K.setTitle=function(v){this.title_=v;this.titleTextEl_&&_.x$(this.titleTextEl_,v)};
_.K.getTitle=function(){return this.title_};
_.K.getContent=function(){return""};
_.K.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var EIR=function(v){v.getElement()||v.render();return v.getElement()};
aD.prototype.getBackgroundElement=function(){this.getElement()||this.render();return aD.superClass_.getBackgroundElement.call(this)};
var bCZ=function(v,Q){v.backgroundElementOpacity_=Q;v.getElement()&&(Q=v.getBackgroundElement())&&o4A(Q,v.backgroundElementOpacity_)};
aD.prototype.setDraggable=function(v){this.draggable_=v;Fbq(this,v&&this.inDocument_)};
aD.prototype.handleDrag=function(){};
var Fbq=function(v,Q){var V=dG(v.JSC$10253_class_+"-title-draggable").split(" ");v.getElement()&&(Q?Ig(v.titleEl_,V):qfA(v.titleEl_,V));Q&&!v.JSC$10255_dragger_?(Q=new _.jN(v.getElement(),v.titleEl_),v.JSC$10255_dragger_=Q,Ig(v.titleEl_,V),_.wE(v.JSC$10255_dragger_,"start",v.setDraggerLimits_,!1,v),_.wE(v.JSC$10255_dragger_,"drag",v.handleDrag,!1,v)):!Q&&v.JSC$10255_dragger_&&(v.JSC$10255_dragger_.dispose(),v.JSC$10255_dragger_=null)};
_.K=aD.prototype;
_.K.JSC$10224_createDom=function(){aD.superClass_.JSC$10224_createDom.call(this);var v=this.getElement(),Q=this.JSC$10222_dom_;this.titleTextId_=this.getId();var V=this.getId()+".contentEl";this.titleEl_=Q.JSC$9408_createDom("DIV",this.JSC$10253_class_+"-title",this.titleTextEl_=Q.JSC$9408_createDom("SPAN",{className:this.JSC$10253_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=Q.JSC$9408_createDom("SPAN",this.JSC$10253_class_+"-title-close"));YYV(v,this.titleEl_,this.contentEl_=
Q.JSC$9408_createDom("DIV",{className:this.JSC$10253_class_+"-content",id:V}),this.buttonEl_=Q.JSC$9408_createDom("DIV",this.JSC$10253_class_+"-buttons"));qSR(this.titleTextEl_,"heading");qSR(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;uz(this.titleCloseEl_,"label","Close");qSR(v,"dialog");uz(v,"labelledby",this.titleTextId_||"");_.EX(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(v=this.buttons_,v.JSC$10256_element_=this.buttonEl_,v.render());_.EX(this.buttonEl_,!!this.buttons_);
bCZ(this,this.backgroundElementOpacity_)};
_.K.decorateInternal=function(v){aD.superClass_.decorateInternal.call(this,v);v=this.getElement();var Q=this.JSC$10253_class_+"-content";this.contentEl_=Dy(document,null,Q,v)[0];this.contentEl_||(this.contentEl_=this.JSC$10222_dom_.JSC$9408_createDom("DIV",Q),v.appendChild(this.contentEl_));Q=this.JSC$10253_class_+"-title";var V=this.JSC$10253_class_+"-title-text",E=this.JSC$10253_class_+"-title-close";(this.titleEl_=Dy(document,null,Q,v)[0])?(this.titleTextEl_=Dy(document,null,V,this.titleEl_)[0],
this.titleCloseEl_=Dy(document,null,E,this.titleEl_)[0]):(this.titleEl_=this.JSC$10222_dom_.JSC$9408_createDom("DIV",Q),v.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=zDN(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.no("SPAN",{className:V,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;uz(v,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10222_dom_.JSC$9408_createDom("SPAN",E),this.titleEl_.appendChild(this.titleCloseEl_));_.EX(this.titleCloseEl_,this.hasTitleCloseButton_);Q=this.JSC$10253_class_+"-buttons";(this.buttonEl_=Dy(document,null,Q,v)[0])?(this.buttons_=new rn(this.JSC$10222_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10222_dom_.JSC$9408_createDom("DIV",Q),v.appendChild(this.buttonEl_),this.buttons_&&(v=this.buttons_,v.JSC$10256_element_=this.buttonEl_,v.render()),_.EX(this.buttonEl_,
!!this.buttons_));bCZ(this,this.backgroundElementOpacity_)};
_.K.enterDocument=function(){aD.superClass_.enterDocument.call(this);sM(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);sM(this).listen(this.buttonEl_,"click",this.onButtonClick_);Fbq(this,this.draggable_);sM(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var v=this.getElement();qSR(v,"dialog");this.titleTextEl_.id!==""&&uz(v,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){v=this.JSC$10222_dom_;
var Q=this.getBackgroundElement();v.removeNode(this.bgIframeEl_);v.removeNode(Q)}this.isVisible()&&Uva(this,!1)}};
_.K.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Fbq(this,!1);aD.superClass_.exitDocument.call(this)};
_.K.setVisible=function(v){v!=this.isVisible()&&(this.inDocument_||this.render(),aD.superClass_.setVisible.call(this,v))};
_.K.onShow=function(){aD.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.K.onHide=function(){aD.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10255_disposeOnHide_&&this.dispose()};
_.K.setDraggerLimits_=function(){var v=this.JSC$10222_dom_.JSC$9406_document_,Q=_.Rb(jS(v)||window),V=Math.max(v.body.scrollWidth,Q.width);v=Math.max(v.body.scrollHeight,Q.height);var E=jba(this.getElement());_.g48(this.getElement())=="fixed"?this.JSC$10255_dragger_.limits=new B7(0,0,Math.max(0,Q.width-E.width),Math.max(0,Q.height-E.height)):this.JSC$10255_dragger_.limits=new B7(0,0,V-E.width,v-E.height)};
_.K.onTitleCloseClick_=function(){KbR(this)};
var KbR=function(v){if(v.hasTitleCloseButton_){var Q=v.buttons_,V=Q&&Q.cancelButton_;V?(Q=Q.get(V),v.dispatchEvent(new $x(V,Q))&&v.setVisible(!1)):v.setVisible(!1)}},iCV=function(v){v.hasTitleCloseButton_=!1;
v.titleCloseEl_&&_.EX(v.titleCloseEl_,v.hasTitleCloseButton_)};
aD.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;aD.superClass_.disposeInternal.call(this)};
aD.prototype.onButtonClick_=function(v){a:{for(v=v.target;v!=null&&v!=this.buttonEl_;){if(v.tagName=="BUTTON")break a;v=v.parentNode}v=null}if(v&&!v.disabled){v=v.name;var Q=this.buttons_.get(v);this.dispatchEvent(new $x(v,Q))&&this.setVisible(!1)}};
aD.prototype.onKey_=function(v){var Q=!1,V=!1,E=this.buttons_,b=v.target;if(v.type=="keydown")if(this.escapeToCancel_&&v.keyCode==27){var F=E&&E.cancelButton_;b=b.tagName=="SELECT"&&!b.disabled;F&&!b?(V=!0,Q=E.get(F),Q=this.dispatchEvent(new $x(F,Q))):b||(Q=!0)}else{if(v.keyCode==9&&v.shiftKey&&b==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(w){}SD(this.resetBackwardTabWrap_,0,this)}}else if(v.keyCode==13){if(b.tagName=="BUTTON"&&!b.disabled)F=b.name;
else if(b==this.titleCloseEl_)KbR(this);else if(E){var t=E.defaultButton_,p;if(p=t)a:{p=lt("BUTTON",E.JSC$10256_element_);for(var Z,d=0;Z=p[d];d++)if(Z.name==t||Z.id==t){p=Z;break a}p=null}b=(b.tagName=="TEXTAREA"||b.tagName=="SELECT"||b.tagName=="A")&&!b.disabled;!p||p.disabled||b||(F=t)}F&&E&&(V=!0,Q=this.dispatchEvent(new $x(F,String(E.get(F)))))}else b!=this.titleCloseEl_||v.keyCode!=32&&v.key!=" "||KbR(this);if(Q||V)v.stopPropagation(),v.preventDefault();Q&&this.setVisible(!1)};
var $x=function(v,Q){this.type="dialogselect";this.key=v;this.caption=Q};
_.HZ($x,_.fv);var rn=function(v){ol.call(this);v||qN();this.cancelButton_=this.JSC$10256_element_=this.defaultButton_=null};
_.HZ(rn,ol);_.K=rn.prototype;_.K.clear=function(){ol.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.K.set=function(v,Q,V,E){ol.prototype.set.call(this,v,Q);V&&(this.defaultButton_=v);E&&(this.cancelButton_=v);return this};
_.K.addButton=function(v,Q,V){return this.set(v.key,v.caption,Q,V)};
_.K.render=function(){if(this.JSC$10256_element_){_.tT(this.JSC$10256_element_,prZ);var v=qN(this.JSC$10256_element_);this.forEach(function(Q,V){Q=v.JSC$9408_createDom("BUTTON",{name:V},Q);V==this.defaultButton_&&(Q.className="goog-buttonset-default");this.JSC$10256_element_.appendChild(Q)},this)}};
_.K.decorate=function(v){if(v&&v.nodeType==1){this.JSC$10256_element_=v;v=lt("BUTTON",this.JSC$10256_element_);for(var Q,V,E,b=0;Q=v[b];b++)if(V=Q.name||Q.id,E=zDN(Q)||Q.value,V){var F=b==0;this.set(V,E,F,Q.name=="cancel");F&&_.so(Q,"goog-buttonset-default")}}};
_.K.getElement=function(){return this.JSC$10256_element_};
var QxQ={key:"ok",caption:"OK"},VHx={key:"cancel",caption:"Cancel"},LbR={key:"yes",caption:"Yes"},tHa={key:"no",caption:"No"},pjN={key:"save",caption:"Save"},eap={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new rn).addButton(QxQ,!0,!0),(new rn).addButton(QxQ,!0).addButton(VHx,!1,!0),(new rn).addButton(LbR,!0).addButton(tHa,!1,!0),(new rn).addButton(LbR).addButton(tHa,!0).addButton(VHx,!1,!0),(new rn).addButton(eap).addButton(pjN).addButton(VHx,!0,!0));_.HZ(UYr,aD);_.HZ(vFT,rZ);var ZCR=_.s$(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),PYp=_.s$(["//apis.google.com/js/rpc.js"]),tjZ=_.Ad(ZCR),L73=_.Ad(PYp),VjE=null;var $J=function(v,Q){_.DO.call(this);this.JSC$10265_element_=v;v=_.t8(this.JSC$10265_element_)?this.JSC$10265_element_:this.JSC$10265_element_?this.JSC$10265_element_.body:null;this.isRtl_=!!v&&_.X4N(v);this.listenKey_=_.wE(this.JSC$10265_element_,_.V2?"DOMMouseScroll":"mousewheel",this,Q)};
_.HZ($J,_.DO);$J.prototype.handleEvent=function(v){var Q=0,V=0,E=v.event_;E.type=="mousewheel"?(v=doq(-E.wheelDelta),E.wheelDeltaX!==void 0?(Q=doq(-E.wheelDeltaX),V=doq(-E.wheelDeltaY)):V=v):(v=E.detail,v>100?v=3:v<-100&&(v=-3),E.axis!==void 0&&E.axis===E.HORIZONTAL_AXIS?Q=v:V=v);typeof this.maxDeltaX_==="number"&&(Q=_.O$(Q,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(V=_.O$(V,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(Q=-Q);Q=new haR(v,E,Q,V);this.dispatchEvent(Q)};
var doq=function(v){return _.E7&&(_.atZ||$mX)&&v%40!=0?v:v/40};
$J.prototype.disposeInternal=function(){$J.superClass_.disposeInternal.call(this);Pg(this.listenKey_);this.listenKey_=null};
var haR=function(v,Q,V,E){_.Gl.call(this,Q);this.type="mousewheel";this.detail=v;this.deltaX=V;this.deltaY=E};
_.HZ(haR,_.Gl);_.XQ=function(v){var Q="instance_";if(v.instance_&&v.hasOwnProperty(Q))return v.instance_;Q=new v;return v.instance_=Q};var iOt;var wjQ=_.s$(["https://about:blank"]),AYx=_.s$(['javascript:""']),kiR=_.s$(["about:blank"]);_.HZ(bH,UYr);_.K=bH.prototype;_.K.JSC$10273_url_="";_.K.JSC$10273_iframe_=null;_.K.iframeLoaded_=!1;_.K.loadedFired_=!1;_.K.callback_=function(){};
_.K.enterDocument=function(){bH.superClass_.enterDocument.call(this);F7m(this.getBackgroundElement(),sM(this))};
_.K.render=function(v){var Q=this;bH.superClass_.render.call(this,v);this.useGapi_?kES(this.iframeManager_,window).then(function(){return Tia(Q)}).then(null,function(){Q.callback_({action:"error"})}):YnQ(this)};
var Tia=function(v){var Q=v.JSC$10222_dom_.JSC$9408_createDom("div",["picker-dialog-content","picker-frame"]);_.EX(Q,!1);v.getContentElement().appendChild(Q);return TCV(v.iframeManager_,Q,function(V){var E=xzV(V["iframe-command"]);switch(E.getCommand()){case 1:V=v.callback_;E=_.TY(E,F5,2);var b="";switch(E.getStatus()){case 2:b="cancel";break;case 1:b="picked";break;case 3:b="error"}var F=_.PM(E,kK,2,_.dZ(TVa));E=F.length===0?{action:b}:UFa(F,b,_.TY(E,zIZ,7));V.call(v,E);v.setVisible(!1);break;case 4:iCV(v);
v.callback_({action:"loaded"});break;case 7:case 8:V=v.callback_;a:{b=E.getCommand();F=_.TY(E,F5,2);switch(b){case 7:b="uploadScheduled";break;case 8:b="uploadStateChange";break;default:E={};break a}E=_.PM(F,kK,2,_.dZ(TVa));if(E.length===0)E={action:b};else{var t=_.TY(F,zIZ,7);F=t&&_.fN(t,1);t=uJV(t);E=o0S(E,b,F,t)}}V.call(v,E)}},v.JSC$10273_url_,v.targetId_,v.rpcToken_).then(function(V){v.JSC$10273_iframe_=V.getIframeEl();
yYX(v);_.EX(v.JSC$10273_iframe_.parentElement,!0);_.so(v.getElement(),"picker-dialog");cYZ(v);return V})},YnQ=function(v){v.JSC$10273_iframe_=v.JSC$10222_dom_.JSC$9408_createDom("IFRAME",{id:v.targetId_,
name:v.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.vc(v.JSC$10273_iframe_,faS(v));_.so(v.getElement(),"picker-dialog");v.getContentElement().appendChild(v.JSC$10273_iframe_);sM(v).listen(v.JSC$10273_iframe_,"load",function(){return void yYX(v)});
v.JSC$10273_iframe_.src=v.JSC$10273_url_;cYZ(v)},CYS=function(v){GiQ(v,(0,_.Nz)(function(Q){Q.setAuthToken(this.targetId_,this.rpcToken_)},v))},cYZ=function(v){var Q=_.Qf(_.vR(v.JSC$10273_url_),"title");
Q&&v.setTitle(Q)},faS=function(v){return _.c3r("Internet Explorer")>=7&&_.KE(v.JSC$10273_url_,"https")?_.Ad(wjQ):_.Q2?_.Ad(AYx):_.Ad(kiR)},yYX=function(v){CYS(v);
v.iframeLoaded_=!0;v.JSC$10273_iframe_.tabIndex=0;v.isVisible()&&v.focus()};
bH.prototype.handleKeydown_=function(v){v.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),v.stopPropagation(),v.preventDefault())};
var GiQ=function(v,Q){var V=v.JSC$10271_gadgetsDomHelper_;EF0(function(){Q(V.getWindow().gadgets.rpc)},V)};
bH.prototype.setUrl=function(v){v=_.Vf(new _.uY(v),"rpcService",this.targetId_);_.Vf(v,"rpctoken",this.rpcToken_);_.pM(v,"rpctoken="+this.rpcToken_);_.FE(v,"https");this.JSC$10273_url_=v.toString();this.JSC$10273_iframe_&&(this.JSC$10273_iframe_.src=this.JSC$10273_url_)};
var MHN=function(v,Q){v.callback_=Q;GiQ(v,(0,_.Nz)(function(V){V.register(this.targetId_,(0,_.Nz)(this.handlePickerAction_,this))},v))};
bH.prototype.handlePickerAction_=function(v){var Q=v.action;Q=="loaded"&&(this.loadedFired_=!0,OCQ(this,new mYB(this.isVisible())),Doa(this),iCV(this),sM(this).unlisten(this.JSC$10222_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10273_iframe_.tabIndex=0);Q!="picked"&&Q!="cancel"||this.setVisible(!1);this.callback_(v)};
var Doa=function(v){v.JSC$10273_appId_&&OCQ(v,new HiB(v.JSC$10273_appId_,window.location.protocol+"//"+window.location.host))};
bH.prototype.setRelayUrl=function(v){GiQ(this,(0,_.Nz)(function(Q){Q.setRelayUrl(this.targetId_,v)},this))};
var OCQ=function(v,Q){v.useGapi_&&GEa(Q,v.iframeManager_).then(null,function(){v.callback_({action:"error"})});
GiQ(v,(0,_.Nz)(function(V){V.call(this.targetId_,"picker",null,Q)},v))};
bH.prototype.resizePicker_=function(){var v=jS(this.JSC$10222_dom_.JSC$9406_document_)||window;if(_.Qf(_.vR(this.JSC$10273_url_),"ignoreLimits")=="true")v=new _.DT(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Qf(_.vR(this.JSC$10273_url_),"shadeDialog")=="true"){var Q=EIR(this);Q=aTa(Q);var V=_.Rb(v);v=V.width-80;V=V.height-40;Q&&(v-=Q.left?Q.left:0,v-=Q.right?Q.right:0,V-=Q.top?Q.top:0,V-=Q.bottom?Q.bottom:0);v=new _.DT(v>0?v:0,V>0?V:0)}else(Q=this.preferredDialogWidth_)?(Q=Math.max(320,
Math.min(1051,Q)),(V=this.preferredDialogHeight_)||(V=_.Rb(v).height*.85),V=Math.max(480,Math.min(650,V))):(Q=_.Rb(v),V=Q.width*.618,V=V<Q.height?Math.round(Math.max(480,Math.min(650,V*.85))):Math.round(Math.max(480,Math.min(650,Q.height*.85))),Q=Math.round(V/.618)),v=_.Rb(v),Q=Math.min(Q,Math.max(v.width,320)),V=Math.min(V,Math.max(v.height,480)),v=new _.DT(Q,V);_.sbV(this.getContentElement(),v);this.reposition()};
bH.prototype.reposition=function(){if(_.Qf(_.vR(this.JSC$10273_url_),"shadeDialog")=="true"){var v=jba(this.getElement()),Q=_.Rb(this.JSC$10222_dom_.getWindow());v=Math.floor(Q.width/2-v.width/2);Q=EIR(this);if(Q=aTa(Q)){var V=Q.left?Q.left:0;V+=Q.right?Q.right:0;v=Math.floor(v-V/2)}v=v>0?v:0;Q=nw(this.JSC$10222_dom_).y;uy(this.getElement(),v,Q)}else bH.superClass_.reposition.call(this)};
bH.prototype.setVisible=function(v){if(v!=this.isVisible()&&this.autoSizeDialog_){var Q=this.JSC$10222_dom_.getWindow();v?(this.resizePicker_(),sM(this).listen(Q,"resize",this.resizePicker_),this.iframeLoaded_||sM(this).listen(Q,"keydown",this.handleKeydown_)):(sM(this).unlisten(Q,"resize",this.resizePicker_),this.iframeLoaded_||sM(this).unlisten(Q,"keydown",this.handleKeydown_))}bH.superClass_.setVisible.call(this,v);OCQ(this,new mYB(v))};
bH.prototype.focus=function(){bH.superClass_.focus.call(this);if(this.JSC$10273_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10273_iframe_.focus()}catch(v){}};var dH=function(v,Q){Q=Q===void 0?bH:Q;rZ.call(this,v);this.pickerConstructor=Q;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(v=window.location.origin)||(v=window.location.protocol+"//"+window.location.host);v&&this.urlParamMap_.set("origin",v);this.postProcessors_=[]};
_.f(dH,vFT);dH.prototype.JSC$10278_disposeOnHide_=!1;
dH.prototype.build=function(){this.JSC$10179_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10179_appId_);this.getRelayUrl()||this.setRelayUrl(_.LM(_.pM(_.t6(_.vR(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var v=new this.pickerConstructor(RaA(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);v.JSC$10255_disposeOnHide_=this.JSC$10278_disposeOnHide_;
v.JSC$10273_appId_=this.JSC$10179_appId_;v.loadedFired_&&Doa(v);MHN(v,this.callback_);return v};
var nIp=function(v){v.urlParamMap_.set("multiselectEnabled","true");return v};
_.K=dH.prototype;_.K.getHeight=function(){return this.dialogHeight_};
_.K.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.K.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.K.getTitle=function(){return this.urlParamMap_.get("title")};
_.K.getWidth=function(){return this.dialogWidth_};
var laA=function(v){v.JSC$10278_disposeOnHide_=void 0;return v};
dH.prototype.setRelayUrl=function(v){this.urlParamMap_.set("parent",v);return this};
var qnS=function(v,Q){v.urlParamMap_.set("selectButtonLabel",Q);return v};
dH.prototype.setSize=function(v,Q){this.dialogWidth_=v;this.dialogHeight_=Q;return this};
dH.prototype.setTitle=function(v){this.urlParamMap_.set("title",v);return this};
var RaA=function(v){v.postProcessors_.length&&v.urlParamMap_.set("pp",JSON.stringify(v.postProcessors_));v.urlParamMap_.set("nav",xFx(v.nav_));var Q=new _.uY(v.getBaseUrl());v.urlParamMap_.forEach(function(V,E){_.Vf(Q,E,V)});
return Q};var JYq=function(v,Q){v.name!==void 0?(this.name=v.name,this.code=Sn8[v.name]):(this.code=v=v.code,this.name=zaS(v));_.Vo.call(this,Fk8("%s %s",this.name,Q))};
_.HZ(JYq,_.Vo);var zaS=function(v){var Q=_.gI.findKey(Sn8,function(V){return v==V});
if(Q===void 0)throw Error("hb`"+v);return Q},Il={},Sn8=(Il.AbortError=3,Il.EncodingError=5,Il.InvalidModificationError=9,Il.InvalidStateError=7,Il.NotFoundError=1,Il.NotReadableError=4,Il.NoModificationAllowedError=6,Il.PathExistsError=12,Il.QuotaExceededError=10,Il.SecurityError=2,Il.SyntaxError=8,Il.TypeMismatchError=11,Il);var NiA=function(v,Q){_.fv.call(this,v.type,Q);this.event_=v};
_.HZ(NiA,_.fv);var xoA=function(v,Q,V){V===void 0&&(V=v.size);return v.slice?v.slice(Q,V):null};var ZOt=new WeakMap,eBE=function(v,Q){v=[v];for(var V=Q.length-1;V>=0;--V)v.push(typeof Q[V],Q[V]);return v.join("\v")};_.dL3(function(){if(!_.bb.Blob)return!1;var v=new Uint8Array(100);try{var Q=new Blob([v])}catch(V){return!1}return Q.size!=100?!1:!0});
var BiV=_.dL3(function(){if(!_.bb.Blob)return!1;var v=new Uint8Array(100);try{var Q=new Blob([v])}catch(V){return!1}return xoA(Q,0,1)===null?!1:!0});_.bb.U3bHHf!=null||(_.bb.U3bHHf=0);_.bb.U3bHHf++;_.gIa=new WeakMap;_.sxV=new WeakMap;var wrS={};var iH=void 0;var kYo=Symbol("pb");var ld0=pa("WizInjectionContext_Dispatcher");var h1=Symbol("qb");var Dx,zg;Dx=function(){this.afterRenderCallbacks=null};
_.TiQ=Symbol("rb");zg=function(v){this.props=v;this.__unmounted=!1};
zg.prototype.didPatch=function(){};
zg.prototype.didMount=function(){};
zg.prototype.didUnmount=function(){};
zg.prototype.didUpdate=function(){};_.Mj9=pa("WizInjectionContext_RootElement");var DL0=pa("WizInjectionContext_AppContext"),OOE=pa("WizInjectionContext_ModelRootElement"),RB0=pa("WizInjectionContext_RendererData"),nFS=pa("WizInjectionContext_InjectingConstructor"),CDG=pa("WizInjectionContext_AsyncDeps"),qfS={};var BOG=!1;var jeb={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:shN,enableLazyTsx:ur8,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:gQR,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var ZQ=Object.assign({},{attributes:{},handleError:function(v){throw v;}},jeb);var uyZ=Symbol("vb"),NA=Symbol("wb"),iWS=Symbol("xb"),Fob=Symbol("yb"),dFo=NZ(function(v){return PR(v)&&uyZ in v});var IdQ=Symbol("zb"),He={},rFE=(He[IdQ]=!0,He.debugName="[component]",He.getComponentStack=function(){for(var v=[],Q=this;Q;)HOG(Q)&&v.push(Q.debugName),Q=Q.parent;return v},He.registerSignal=function(){},He.registerEffect=function(){},He);var db=null,wb=!1,Te=1,cR=Symbol("Db"),DQ={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 mG=Symbol("Eb"),UM=Symbol("Fb"),yf=Symbol("Gb"),ipG=Object.assign({},DQ,{value:mG,dirty:!0,error:null,equal:mLQ,kind:"computed",producerMustRecompute:function(v){return v.value===mG||v.value===UM},
producerRecomputeValue:function(v){if(v.value===UM)throw Error("Z");var Q=v.value;v.value=UM;var V=bpT(v),E=!1;try{var b=v.computation();ha(null);E=Q!==mG&&Q!==yf&&b!==yf&&v.equal(Q,b)}catch(F){b=yf,v.error=F}finally{ha(V),v&&Ktb(v)}E?v.value=Q:(v.value=b,v.version++)}});Object.assign({},DQ,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var eyo=function(){throw Error();};var PSQ=null,txo=Object.assign({},DQ,{equal:mLQ,value:void 0,kind:"signal"});var dRo=Object.assign({},DQ,{value:mG,dirty:!0,error:null,equal:mLQ,kind:"linkedSignal",producerMustRecompute:function(v){return v.value===mG||v.value===UM},
producerRecomputeValue:function(v){if(v.value===UM)throw Error("Z");var Q=v.value;v.value=UM;var V=bpT(v);try{var E=v.source();var b=v.computation(E,Q===mG||Q===yf?void 0:{source:v.sourceValue,value:Q});v.sourceValue=E}catch(F){b=yf,v.error=F}finally{ha(V),v&&Ktb(v)}Q!==mG&&b!==yf&&v.equal(Q,b)?v.value=Q:(v.value=b,v.version++)}});Object.assign({},DQ,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(v){v.schedule!==null&&v.schedule(v.ref)},
cleanupFn:function(){}});var A8Z=Symbol("Hb"),Ca=Symbol("Ib");var MA=Array.isArray;var MxS;var jxA={},DR9=CSo(Object.assign({},{consumerAllowSignalWrites:!0},jxA)),nU=CSo(Object.assign({},{consumerAllowSignalWrites:!0},jxA));var qA=Symbol("Nb");var lH=null,lWE,q00=null,S0B;var xU=0,BR=!1,vL=function(){this.queue=new Set};
vL.prototype.schedule=function(v){this.queue.add(v)};
vL.prototype.remove=function(v){this.queue.delete(v)};
vL.prototype.clear=function(){this.queue.clear()};
var xRS=Symbol("Ob"),J8o=Symbol("Pb"),QY=function(){vL.apply(this,arguments)};
_.f(QY,vL);QY.prototype.flush=function(){if(this.queue.size){BR=!0;for(var v=_.L(this.queue),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;this.queue.delete(Q);try{Q.run()}catch(V){WbQ(V)}}BR=!1}};
var oIx=function(){QY.apply(this,arguments)};
_.f(oIx,QY);var Noh=new oIx,Xjx=function(){QY.apply(this,arguments)};
_.f(Xjx,QY);Xjx.prototype.schedule=function(v){return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.resolve(),2);v.run();_.q1(Q)})};
Xjx.prototype.enqueue=function(v){this.queue.add(v)};
var BoE=new Xjx,VY=function(){vL.apply(this,arguments)};
_.f(VY,vL);VY.prototype.flush=function(){this.queue.size&&hdt(this.queue)};
var aax=function(){VY.apply(this,arguments)};
_.f(aax,VY);aax.prototype.schedule=function(v){v.hasRun?this.queue.add(v):v.run()};
aax.prototype.flush=function(){if(this.queue.size)if(ZQ.flushRenderEffectsDuringRender){var v=this.queue;this.queue=new Set;hdt(v)}else hdt(this.queue)};
var bW9=new aax,rYV=function(){VY.apply(this,arguments)};
_.f(rYV,VY);rYV.prototype.schedule=function(v){return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.resolve(),2);v.run();_.q1(Q)})};
rYV.prototype.enqueue=function(v){this.queue.add(v)};
var LoS=new rYV,$oZ=function(){VY.apply(this,arguments)};
_.f($oZ,VY);var KoZ=new $oZ,paT=[bW9,Noh,KoZ],PMo=[BoE,LoS],Iaa=[bW9,KoZ,LoS],waS=[].concat(_.ui(paT),_.ui(PMo)),HCa=[];PSQ=function(){ZWS();for(var v=_.L(HCa),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q()};
var WbQ=Fr;var EC={},moN=Object.assign({},DQ,(EC[uyZ]=!0,EC.effectType=NA,EC.isResettableContext=!0,EC.hasRun=!1,EC.effectFn=null,EC.consumerIsAlwaysLive=!0,EC.consumerAllowSignalWrites=!0,EC.consumerMarkedDirty=tzE,EC.kind="effect",EC.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(wb)throw Error("Qb");this.dirty=!1;if(!this.hasRun||QyZ(this)){this.hasRun=!0;GYt(this);var v=_.La(this),Q=bpT(this);oF9("effectRun",this.debugName);try{Ja(this.effectFn,this.componentStack,this)}catch(V){throw ZQ.enableContextBasedComponentStacks&&
ze(V),V;}finally{Xrh("effectRun",this.debugName),ha(Q),this&&Ktb(this),_.La(v)}}}},EC.componentStack=void 0,EC.debugName="[effect]",EC[Symbol.dispose]=function(){if(kU(this))for(var v=this.producers;v!==void 0;)v=Ftr(v);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;v=_.L(Iaa);for(var Q=v.next();!Q.done;Q=v.next())Q.value.remove(this);fd0(this)},EC));var k7G=Object.assign({},moN,{effectType:NA});var TXT=Object.assign({},moN,{effectType:iWS});var cqb=Symbol("Rb");var b23=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 CMb={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},G7Z=
{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}]}},Te0={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},DFb=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],OWE={"*":{async:1,dir:0,loading:2,target:3}};var UoZ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,bN={},n0b=(bN[1]=null,bN[2]=function(v,Q){return Q instanceof IE?U9(Q):uV.toString()},bN[3]=function(v,Q){return xP(Q)?_.Bq(Q):UoZ.test(String(Q))?String(Q):uV.toString()},bN[4]=function(v,Q){return Q instanceof nf?_.Sc(Q):uV.toString()},bN[5]=function(v,Q){return String(Q)},bN[7]=null,bN[8]=null,bN[10]=null,bN);var COo=Symbol("Ub");var dXT=function(v){var Q=v7p,V=v,E="",b="",F=1;v<0&&(v=-v);if(v===Infinity)v=(Infinity*Math.sign(V)).toString();else{for(var t=0;t<Q$a.length;t++){var p=Q$a[t];F=Q[p];if(v>=F||F<=1&&v>.1*F){E=p;break}}E?(E+="B",b=" "):F=1;v=Math.round(V/F*10)/10+b+E}return v},Q$a="Y Z E P T G M K  m u n".split(" "),v7p={"":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};_.VPp=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 yr={};RegExp.prototype.hasOwnProperty("sticky");var Kio=function(v){v=String(v);for(var Q=function(E,b,F){for(var t=Math.min(b.length-F,E.length),p=0;p<t;p++){var Z=b[F+p];if(E[p]!==("A"<=Z&&Z<="Z"?Z.toLowerCase():Z))return!1}return!0},V=0;(V=v.indexOf("<",V))!=-1;){if(Q("\x3c/script",v,V)||Q("\x3c!--",v,V))return"zSoyz";
V+=1}return v};var m$={default:"__default"};var NXr=Object.prototype.hasOwnProperty;SHm.prototype=Object.create(null);var hq=g0r();var pU=null;var HWE=function(v){this.created=[];this.deleted=[];this.node=v};var mFG=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var v=this,Q=v;v;)Q=v,v=v.parentNode;return Q};var uJG=function(v,Q){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=v;this.key=Q;this.text=void 0};var bk=null,F1=null,Vr=null,ik=null,aer=[],XaS=Wor,LU=[],t1=[],GwZ=function(v){return UFr(function(Q,V,E){Vr=F1=Q;F1=null;V(E);o03(null);F1=Vr;Vr=Vr.parentNode;return Q},v)}(),fzh=function(v){return UFr(function(Q,V,E){var b={nextSibling:Q};
F1=b;V(E);Vr&&o03(Q.nextSibling);return b===F1?null:F1},v)}();var eg=[],QTr=0;var Zx=new SHm;var YD=new SHm;var E7N=g0r(),tut=E7N[m$.default],LiZ=E7N.style,Fio=["focusin","focusout"],Z2B="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var mvo=function(){},sT0=function(){},EIB=function(){},vI0=function(){};var d7=Symbol("bc");var Ar0,wET=hnZ;var CU=Symbol("cc");var VHb=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(" ")),
QxT=new Set(["a","font","script","style","title"]);_.Gg={setUp:nyB,tearDown:nyB,log:nyB,logNodeRange:nyB,graft:function(v,Q){Q()}};var lk={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var qP=null,Sg=function(v,Q){zg.call(this,v);var V=this;this.functionComponent=Q;this.hooks=[];this.hookCounter=0;this.disposeEffects=WR(function(E){V.effectContext=E;_.j_(function(){oyr(V,V.el)})},ZQ.alwaysTrackContexts||!!iH)};
_.f(Sg,zg);Sg.prototype.render=function(v){var Q=qP;qP=this;this.hookCounter=0;var V=ha(nU),E=_.La(this.effectContext);try{return oF9("render",this.componentName),this.functionComponent(v)}finally{Xrh("render",this.componentName),_.La(E),ha(V),qP=Q}};
_.hr.Object.defineProperties(Sg.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Ry3(this.functionComponent)}}});var bCm=Symbol("qc"),I3G=function(v,Q,V){this.afterRenderCallbacks=null;this.kind=v;this.props=Q;this.children=V};
_.f(I3G,Dx);I3G.prototype.render=function(){var v=$vt(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var Q=_.L(this.afterRenderCallbacks),V=Q.next();!V.done;V=Q.next())V=V.value,v=V(v);return v};
I3G.prototype.getChildren=function(){return this.children};var KbB=[];eyo=function(v){throw Error("ob`"+v.debugName);};
(function(){var v=pU;pU=function(Q){v==null||v(Q);iCG(Q)}})();Object.assign({},moN,{effectType:NA,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var v=this.elementRef;var Q;v.element!=null||(v.element=(Q=v.document.getElementById(v.value))!=null?Q:void 0);v=v.element;for(Q=this.attributes;Q;){var V=Q.signal();V!==Q.prevValue&&(Q.prevValue=V,Q.namespace===1?v[Q.name]=V:b23.has(Q.name)?HR(v,Q.name,V?"":null):HR(v,Q.name,V));Q=Q.next}}});_.J1.debugName="tbhMcf";_.NP.debugName="zyMFzb";Object.assign({},moN,{effectType:NA,hasRun:!0});_.h.debugName="RlDudd";var LbB={nonNullableCondIsNull:function(){return Error("uc")}};var haB=function(){this.map=new Map};
haB.prototype.push=function(v,Q){var V=this.map;V.has(v)&&(this.multi||(this.multi=new Map),this.multi.set(Q,V.get(v)));V.set(v,Q)};
haB.prototype.pop=function(v){var Q=this.map,V=Q.get(v),E;V!==void 0&&((E=this.multi)==null?0:E.has(V))?(Q.set(v,this.multi.get(V)),this.multi.delete(V)):Q.delete(v);return V};_.xb.debugName="nsTGHd";_.BU.debugName="vI1rtf";_.yYt={OUT_OF_ORDER_HOOK_CALL:function(v){return Error("vc`"+v)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(v,Q){return Error("zc`"+((Q===void 0?0:Q)?"IDOM":"Reactive")+"`"+(g7(v)?v.description:v))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(v,Q){return Error("Ac`"+(g7(v)?v.description:v)+"`"+Q)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(v){return Error("Bc`"+(g7(v)?v.description:v))},
USE_ELEMENT_NOT_ASSIGNED:function(v){return Error("Cc`"+(g7(v)?v.description:v))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(v){return Error("Dc`"+(g7(v)?v.description:v))}};Ar0=H2G;var OCT=Symbol("Ec");jTS({beforeRender:function(v){var Q=_.La(v.effectContext);try{var V;((V=v.__syncEffects)==null?0:V.length)&&nIZ(v.__syncEffects)}finally{_.La(Q)}},
didPatch:function(v){var Q=_.La(v.effectContext);try{var V;((V=v.__syncEffects)==null?0:V.length)&&nIZ(v.__syncEffects)}finally{_.La(Q)}},
didUnmount:function(v){var Q;((Q=v.hooks)==null?0:Q.length)&&v.hooks.forEach(RaS)}});var btA,FLp,KLN;btA=_.bb.window;_.X1=(btA==null?void 0:(FLp=btA.yt)==null?void 0:FLp.config_)||(btA==null?void 0:(KLN=btA.ytcfg)==null?void 0:KLN.data_)||{};_.Pr("yt.config_",_.X1);var itx={},JY0=[];_.xd=function(v){var Q=_.aE.apply(1,arguments);var V=Error.call(this,v);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.args=[].concat(_.ui(Q));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.xd,Error);var VhZ=function(v,Q,V){this.actionName=v;this.optionalAction=Q===void 0?!1:Q;this.args=V===void 0?null:V;this.returnValue=[]};_.FG=function(v){this.name=v};_.Vi=new _.FG("signalAction");var aab=/^[\w.]*$/,sxG={q:!0,search_query:!0},gIQ=String(BiG);var w$;w$=Symbol("Fc");_.KB=function(v){this.name=v};
_.KB.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var rYG=function(v){this.key=v},Uom=function(v){this.deferredKey=v},IaQ=function(){var v=this;
this.providers=new Map;this.JSC$10568_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(v.providers)}}};
IaQ.prototype.addProvider=function(v){this.providers.set(v.provide,v);var Q=this.JSC$10568_deferred.get(v.provide);if(Q)try{Q.resolver(this.resolve(v.provide))}catch(V){Q.rejector(V)}};
IaQ.prototype.resolve=function(v){return v instanceof Uom?LLa(this,v):v instanceof rYG?tPp(this,v.key,[],!0):tPp(this,v,[])};
var LLa=function(v,Q){Q=Q.deferredKey;if(v.JSC$10568_deferred.has(Q))return v.JSC$10568_deferred.get(Q).promise;var V={};V.promise=new Promise(function(E,b){V.resolver=E;V.rejector=b});
v.JSC$10568_deferred.set(Q,V);return V.promise},tPp=function(v,Q,V,E){E=E===void 0?!1:E;
if(V.indexOf(Q)>-1)throw Error("Gc`"+Q);if(v.cachedValues.has(Q))return v.cachedValues.get(Q);if(!v.providers.has(Q)){if(E)return;throw Error("Hc`"+Q);}E=v.providers.get(Q);V.push(Q);if(E.useValue!==void 0)var b=E.useValue;else if(E.useFactory)b=E[w$]?ppA(v,E[w$],V):[],b=E.useFactory.apply(E,_.ui(b));else if(E.useClass){b=E.useClass;var F=b[w$]?ppA(v,b[w$],V):[];b=new (Function.prototype.bind.apply(b,[null].concat(_.ui(F))))}else throw Error("Ic`"+Q);V.pop();E.skipCache||v.cachedValues.set(Q,b);return b},
ppA=function(v,Q,V){return Q?Q.map(function(E){return E instanceof rYG?tPp(v,E.key,V,!0):tPp(v,E,V)}):[]};var $oE;var EH=new _.KB("ENDPOINT_HANDLER_TOKEN");_.FJ=new _.FG("urlEndpoint");var e9Z=function(){this.data=[];this.cachedPackedInt52=-1};
e9Z.prototype.set=function(v,Q){Q=Q===void 0?!0:Q;0<=v&&v<52&&Number.isInteger(v)&&this.data[v]!==Q&&(this.data[v]=Q,this.cachedPackedInt52=-1)};
e9Z.prototype.get=function(v){return!!this.data[v]};
var ZtN=function(v){v.cachedPackedInt52===-1&&(v.cachedPackedInt52=v.data.reduce(function(Q,V,E){return Q+(V?Math.pow(2,E):0)},0));
return v.cachedPackedInt52};var PIh=function(v){var Q=PIN;v=v===void 0?_.Q9("yt.ads.biscotti.lastId_")||"":v;var V=Object,E=V.assign,b={};b.dt=eBZ;b.flash="0";a:{try{var F=Q.JSC$10574_win_.top.location.href}catch(v9){F=2;break a}F=F?F===Q.doc_.location.href?0:1:2}b=(b.frm=F,b);try{b.u_tz=-(new Date).getTimezoneOffset();try{var t=ag.history.length}catch(v9){t=0}b.u_his=t;var p;b.u_h=(p=ag.screen)==null?void 0:p.height;var Z;b.u_w=(Z=ag.screen)==null?void 0:Z.width;var d;b.u_ah=(d=ag.screen)==null?void 0:d.availHeight;var w;b.u_aw=
(w=ag.screen)==null?void 0:w.availWidth;var A;b.u_cd=(A=ag.screen)==null?void 0:A.colorDepth}catch(v9){}t=Q.JSC$10574_win_;try{var k=t.screenX;var T=t.screenY}catch(v9){}try{var c=t.outerWidth;var C=t.outerHeight}catch(v9){}try{var R=t.innerWidth;var l=t.innerHeight}catch(v9){}try{var S=t.screenLeft;var a=t.screenTop}catch(v9){}try{R=t.innerWidth,l=t.innerHeight}catch(v9){}try{var g=t.screen.availWidth;var u=t.screen.availTop}catch(v9){}k=[S,a,k,T,g,u,c,C,R,l];T=MKo(!1,Q.JSC$10574_win_.top);c={};
var r=r===void 0?_.bb:r;C=new e9Z;"SVGElement"in r&&"createElementNS"in r.document&&C.set(0);R=LQa();R["allow-top-navigation-by-user-activation"]&&C.set(1);R["allow-popups-to-escape-sandbox"]&&C.set(2);r.crypto&&r.crypto.subtle&&C.set(3);"TextDecoder"in r&&"TextEncoder"in r&&C.set(4);r=ZtN(C);Q=(c.bc=r,c.bih=T.height,c.biw=T.width,c.brdim=k.join(),c.vis=A1t(Q.doc_),c.wgl=!!ag.WebGLRenderingContext,c);V=E.call(V,b,Q);V.ca_type="image";v&&(V.bid=v);return V},PIN=new function(){var v=window.document;
this.JSC$10574_win_=window;this.doc_=v};
_.Pr("yt.ads_.signals_.getAdSignalsString",function(v){return uym(PIh(v))});_.IC();navigator.userAgent.indexOf(" (CrKey ");var btS="XMLHttpRequest"in _.bb?function(){return new XMLHttpRequest}:null;var dp8="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),h9a=[].concat(_.ui(dp8),["client_dev_set_cookie"]);var Zt9={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"},itb="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(_.ui(dp8)),cy9=!1,tPZ=_.dpo,TDt=e9E;var oWQ=[{messageFn:function(v){return"Cannot read property '"+v.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(v){return"Cannot call '"+v.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(v){return v.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var wpX={messageWeights:[],callbackWeights:[{callback:MPB,weight:500},{callback:Otm,weight:500}]};var AyN=function(){this.callbackWeights=[];this.messageWeights=[]},k2R,W0t=function(){if(!k2R){var v=k2R=new AyN;
v.messageWeights.length=0;v.callbackWeights.length=0;dTb(v,wpX)}return k2R},dTb=function(v,Q){Q.messageWeights&&v.messageWeights.push.apply(v.messageWeights,Q.messageWeights);
Q.callbackWeights&&v.callbackWeights.push.apply(v.callbackWeights,Q.callbackWeights)};_.HZ(_.ni,_.J5);_.ni.prototype.subscribe=function(v,Q,V){var E=this.topics_[v];E||(E=this.topics_[v]=[]);var b=this.JSC$10598_key_;this.subscriptions_[b]=v;this.subscriptions_[b+1]=Q;this.subscriptions_[b+2]=V;this.JSC$10598_key_=b+3;E.push(b);return b};
var TDX=function(v){var Q=U0,V=!1,E=Q.subscribe("handleError",function(b){V||(V=!0,this.unsubscribeByKey(E),v.apply(void 0,arguments))},Q)};
_.ni.prototype.unsubscribe=function(v,Q,V){if(v=this.topics_[v]){var E=this.subscriptions_;if(v=v.find(function(b){return E[b+1]==Q&&E[b+2]==V}))return this.unsubscribeByKey(v)}return!1};
_.ni.prototype.unsubscribeByKey=function(v){var Q=this.subscriptions_[v];if(Q){var V=this.topics_[Q];this.publishDepth_!=0?(this.pendingKeys_.push(v),this.subscriptions_[v+1]=function(){}):(V&&_.ub(V,v),delete this.subscriptions_[v],delete this.subscriptions_[v+1],delete this.subscriptions_[v+2])}return!!Q};
_.ni.prototype.publish=function(v,Q){var V=this.topics_[v];if(V){var E=Array(arguments.length-1),b=arguments.length,F;for(F=1;F<b;F++)E[F-1]=arguments[F];if(this.async_)for(F=0;F<V.length;F++)b=V[F],Y2A(this.subscriptions_[b+1],this.subscriptions_[b+2],E);else{this.publishDepth_++;try{for(F=0,b=V.length;F<b&&!this.isDisposed();F++){var t=V[F];this.subscriptions_[t+1].apply(this.subscriptions_[t+2],E)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;V=this.pendingKeys_.pop();)this.unsubscribeByKey(V)}}return F!=
0}return!1};
var Y2A=function(v,Q,V){_.nv(function(){v.apply(Q,V)})};
_.ni.prototype.clear=function(v){if(v){var Q=this.topics_[v];Q&&(Q.forEach(this.unsubscribeByKey,this),delete this.topics_[v])}else this.subscriptions_.length=0,this.topics_={}};
_.ni.prototype.getCount=function(v){if(v){var Q=this.topics_[v];return Q?Q.length:0}v=0;for(Q in this.topics_)v+=this.getCount(Q);return v};
_.ni.prototype.disposeInternal=function(){_.ni.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var U0=new _.ni;var cr=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(cr,_.Lf);cr.prototype.getColdHashData=function(){return _.fN(this,3)};
cr.prototype.getHotHashData=function(){return _.fN(this,5)};
cr.prototype.setHotHashData=function(v){return _.SS(this,5,v)};var sFT=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(sFT,_.Lf);var hgS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(hgS,_.Lf);_.K=hgS.prototype;_.K.getDeviceId=function(){return _.fN(this,6)};
_.K.getExperimentIds=function(v){var Q=_.I8(this,9,_.t7,3,!0);Umb(Q,v);return Q[v]};
_.K.getPlayerType=function(){return _.Gs(this,36)};
_.K.setHomeGroupInfo=function(v){return _.Mj(this,81,v)};
_.K.clearLocationPlayabilityToken=function(){return _.yh(this,89)};var qR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(qR,_.Lf);qR.prototype.setKey=function(v){return _.SS(this,1,v)};
qR.prototype.getValue=function(){return Mq(this,2,AsZ)};
var AsZ=[2,3,4,5,6];var yyx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(yyx,_.Lf);yyx.prototype.setTrackingParams=function(v){return _.yh(this,1,_.lx(v,!1))};var w_T=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(w_T,_.Lf);var W5t=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(W5t,_.Lf);W5t.prototype.getExperimentIds=function(v){var Q=_.I8(this,5,_.ySr,3,!0);Umb(Q,v);return Q[v]};var NR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(NR,_.Lf);NR.prototype.getToken=function(){return _.Dg(this,2)};
NR.prototype.setToken=function(v){return _.SS(this,2,v)};var zv=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(zv,_.Lf);zv.prototype.setSafetyMode=function(v){return _.YF(this,5,v)};var lS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(lS,_.Lf);lS.prototype.setClient=function(v){return _.Mj(this,1,v)};var jFT={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 ugT;_.zA=function(){var v=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.bb.addEventListener("beforeinstallprompt",function(Q){Q.preventDefault();v.deferredInstallPrompt=Q});
_.bb.addEventListener("appinstalled",function(){v.appInstalledEventFired=!0},{once:!0})};
ugT=function(){if(!_.bb.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.bb.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.bb.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.bb.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.bb.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(v){return"WEB_DISPLAY_MODE_UNKNOWN"}};var aiT=function(){this.syncHeaders=!0},r4Q=function(v){var Q={},V=[];
"USER_SESSION_ID"in _.X1&&V.push({key:"u",value:_.r7("USER_SESSION_ID")});if(V=_.h$S(V))Q.Authorization=V,V=v=v==null?void 0:v.sessionIndex,V===void 0&&(V=Number(_.r7("SESSION_INDEX",0)),V=isNaN(V)?0:V),_.Y("voice_search_auth_header_removal")||(Q["X-Goog-AuthUser"]=V.toString()),"INNERTUBE_HOST_OVERRIDE"in _.X1||(Q["X-Origin"]=window.location.origin),v===void 0&&"DELEGATED_SESSION_ID"in _.X1&&(Q["X-Goog-PageId"]=_.r7("DELEGATED_SESSION_ID"));return Q};var cyN={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var iN=_.Q9("ytglobal.prefsUserPrefsPrefs_")||{},fGA;_.Pr("ytglobal.prefsUserPrefsPrefs_",iN);_.LB=function(){this.cookieName=_.r7("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.r7("ALT_PREF_COOKIE_DOMAIN","youtube.com");var v=_.qY.get(this.cookieName,void 0);v&&this.parse(v)};
_.eP=function(){fGA||(fGA=new _.LB);return fGA};
_.LB.prototype.get=function(v,Q){G2X(v);CIN(v);v=iN[v]!==void 0?iN[v].toString():null;return v!=null?v:Q?Q:""};
_.LB.prototype.set=function(v,Q){G2X(v);CIN(v);if(Q==null)throw Error("Lc");iN[v]=Q.toString()};
_.LB.prototype.getFlag=function(v){return!!((MPR("f"+(Math.floor(v/31)+1))||0)&1<<v%31)};
_.ZG=function(v,Q,V){v="f"+(Math.floor(Q/31)+1);Q=1<<Q%31;var E=MPR(v)||0;E=V?E|Q:E&~Q;E===0?delete iN[v]:(V=E.toString(16),iN[v]=V.toString())};
_.LB.prototype.remove=function(v){G2X(v);CIN(v);delete iN[v]};
_.LB.prototype.save=function(){var v=!0;_.Y("web_secure_pref_cookie_killswitch")&&(v=!1);_.Sw(this.cookieName,this.dump(),63072E3,this.cookieDomain,v)};
_.LB.prototype.clear=function(){_.gI.clear(iN)};
_.LB.prototype.dump=function(){var v=[],Q;for(Q in iN)iN.hasOwnProperty(Q)&&v.push(Q+"="+encodeURIComponent(String(iN[Q])));return v.join("&")};
var CIN=function(v){if(/^f([1-9][0-9]*)$/.test(v))throw Error("Mc`"+v);},G2X=function(v){if(!/^\w+$/.test(v))throw Error("Nc`"+v);
},MPR=function(v){v=iN[v]!==void 0?iN[v].toString():null;
return v!=null&&/^[A-Fa-f0-9]+$/.test(v)?parseInt(v,16):null};
_.LB.prototype.parse=function(v){v=decodeURIComponent(v).split("&");for(var Q=0;Q<v.length;Q++){var V=v[Q].split("="),E=V[0];(V=V[1])&&(iN[E]=V.toString())}};var NDS={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"},ozT={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},XBB={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},BDo={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Hg;_.tf=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.go=function(v,Q,V){return v.addJob(Q,0,V)};
_.tf.prototype.addLowPriorityJob=function(v,Q){return this.addJob(v,1,Q)};
_.A2=function(v,Q,V){return v.addJob(Q,2,V)};
_.Lq=function(v,Q,V){return v.addJob(Q,3,V)};
_.md=function(v,Q,V){return v.addJob(Q,4,V)};
Hg=function(v){var Q=_.Q9("yt.scheduler.instance.addImmediateJob");Q?Q(v):v()};
_.tf.prototype.debounce=function(v,Q,V){var E=this,b=0,F=function(){b&&E.cancelJob(b);b=E.addJob(v,Q,V);E.cancelDebouncedJobMap.set(F,b)};
return F};
_.tf.prototype.cancelThrottle=function(v){(v=this.cancelThrottledJobMap.get(v))&&v()};var pB=function(){_.tf.apply(this,arguments)},OtZ;
_.f(pB,_.tf);_.yX=function(){pB.instance||(pB.instance=new pB);return pB.instance};
pB.prototype.addJob=function(v,Q,V){V!==void 0&&Number.isNaN(Number(V))&&(V=void 0);var E=_.Q9("yt.scheduler.instance.addJob");return E?E(v,Q,V):V===void 0?(v(),NaN):_.G_(v,V||0)};
pB.prototype.cancelJob=function(v){if(v===void 0||!Number.isNaN(Number(v))){var Q=_.Q9("yt.scheduler.instance.cancelJob");Q?Q(v):_.MY(v)}};
pB.prototype.start=function(){var v=_.Q9("yt.scheduler.instance.start");v&&v()};
pB.prototype.pause=function(){var v=_.Q9("yt.scheduler.instance.pause");v&&v()};
OtZ=function(){_.yX();var v=_.Q9("yt.scheduler.instance.setPriorityThreshold");v&&v(4)};
_.XT=_.yX();_.B5.prototype.set=function(v,Q){Q===void 0?this.mechanism.remove(v):this.mechanism.set(v,(0,_.JG)(Q))};
_.B5.prototype.get=function(v){try{var Q=this.mechanism.get(v)}catch(V){return}if(Q!==null)try{return JSON.parse(Q)}catch(V){throw"Storage: Invalid value was encountered";}};
_.B5.prototype.remove=function(v){this.mechanism.remove(v)};var ey=function(v){this.mechanism=v};
_.HZ(ey,_.B5);var Dpq=function(v){this.data=v},R9Z=function(v){return v===void 0||v instanceof Dpq?v:new Dpq(v)};
ey.prototype.set=function(v,Q){ey.superClass_.set.call(this,v,R9Z(Q))};
ey.prototype.getWrapper=function(v){v=ey.superClass_.get.call(this,v);if(v===void 0||v instanceof Object)return v;throw"Storage: Invalid value was encountered";};
ey.prototype.get=function(v){if(v=this.getWrapper(v)){if(v=v.data,v===void 0)throw"Storage: Invalid value was encountered";}else v=void 0;return v};_.HZ(g$,ey);_.n7A=function(v){var Q=v.creation;v=v.expiration;return!!v&&v<_.IC()||!!Q&&Q>_.IC()};
g$.prototype.set=function(v,Q,V){if(Q=R9Z(Q)){if(V){if(V<_.IC()){g$.prototype.remove.call(this,v);return}Q.expiration=V}Q.creation=_.IC()}g$.superClass_.set.call(this,v,Q)};
g$.prototype.getWrapper=function(v,Q){var V=g$.superClass_.getWrapper.call(this,v);if(V)if(!Q&&_.n7A(V))g$.prototype.remove.call(this,v);else return V};var ZI=function(){};
ZI.prototype.next=function(){return PL};
var PL={done:!0,value:void 0},de=function(v){return{value:v,done:!1}};
ZI.prototype.__iterator__=function(){return this};
_.lGR=function(v){if(v instanceof ZI)return v;if(typeof v.__iterator__=="function")return v.__iterator__(!1);if(_.W9(v)){var Q=0,V=new ZI;V.next=function(){for(;;){if(Q>=v.length)return PL;if(Q in v)return de(v[Q++]);Q++}};
return V}throw Error("Oc");};var q2N=function(v){if(v instanceof hf||v instanceof we||v instanceof Af)return v;if(typeof v.next=="function")return new hf(function(){return v});
if(typeof v[Symbol.iterator]=="function")return new hf(function(){return v[Symbol.iterator]()});
if(typeof v.__iterator__=="function")return new hf(function(){return v.__iterator__()});
throw Error("Pc");},hf=function(v){this.func_=v};
hf.prototype.__iterator__=function(){return new we(this.func_())};
hf.prototype[Symbol.iterator]=function(){return new Af(this.func_())};
hf.prototype.toEs6=function(){return new Af(this.func_())};
var we=function(v){this.JSC$10683_iter_=v};
_.f(we,ZI);we.prototype.next=function(){return this.JSC$10683_iter_.next()};
we.prototype[Symbol.iterator]=function(){return new Af(this.JSC$10683_iter_)};
we.prototype.toEs6=function(){return new Af(this.JSC$10683_iter_)};
var Af=function(v){hf.call(this,function(){return v});
this.JSC$10686_iter_=v};
_.f(Af,hf);Af.prototype.next=function(){return this.JSC$10686_iter_.next()};var S2q=function(){};var kY=function(){};
_.HZ(kY,S2q);kY.prototype.getCount=function(){for(var v=0,Q=_.L(this),V=Q.next();!V.done;V=Q.next())v++;return v};
kY.prototype[Symbol.iterator]=function(){return q2N(this.__iterator__(!0)).toEs6()};
kY.prototype.clear=function(){var v=Array.from(this);v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())this.remove(Q.value)};_.HZ(sG,kY);_.K=sG.prototype;_.K.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var v=this.storage_;if(v)try{v.setItem("__sak","1");v.removeItem("__sak");var Q=!0}catch(V){Q=V instanceof DOMException&&(V.name==="QuotaExceededError"||V.code===22||V.code===1014||V.name==="NS_ERROR_DOM_QUOTA_REACHED")&&v&&v.length!==0}else Q=!1;this.cachedIsStorageAvailable_=Q}return this.cachedIsStorageAvailable_};
_.K.set=function(v,Q){Tp(this);try{this.storage_.setItem(v,Q)}catch(V){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.K.get=function(v){Tp(this);v=this.storage_.getItem(v);if(typeof v!=="string"&&v!==null)throw"Storage mechanism: Invalid value was encountered";return v};
_.K.remove=function(v){Tp(this);this.storage_.removeItem(v)};
_.K.getCount=function(){Tp(this);return this.storage_.length};
_.K.__iterator__=function(v){Tp(this);var Q=0,V=this.storage_,E=new ZI;E.next=function(){if(Q>=V.length)return PL;var b=V.key(Q++);if(v)return de(b);b=V.getItem(b);if(typeof b!=="string")throw"Storage mechanism: Invalid value was encountered";return de(b)};
return E};
_.K.clear=function(){Tp(this);this.storage_.clear()};
_.K.key=function(v){Tp(this);return this.storage_.key(v)};
var Tp=function(v){if(v.storage_==null)throw Error("Qc");v.isAvailable()||Fr(Error("Qc"))};_.HZ(s$Q,sG);_.HZ(u$G,sG);_.HZ(uv,kY);uv.prototype.set=function(v,Q){this.mechanism_.set(this.JSC$10701_prefix_+v,Q)};
uv.prototype.get=function(v){return this.mechanism_.get(this.JSC$10701_prefix_+v)};
uv.prototype.remove=function(v){this.mechanism_.remove(this.JSC$10701_prefix_+v)};
uv.prototype.__iterator__=function(v){var Q=this.mechanism_[Symbol.iterator](),V=this,E=new ZI;E.next=function(){var b=Q.next();if(b.done)return b;for(b=b.value;b.slice(0,V.JSC$10701_prefix_.length)!=V.JSC$10701_prefix_;){b=Q.next();if(b.done)return b;b=b.value}return de(v?b.slice(V.JSC$10701_prefix_.length):V.mechanism_.get(b))};
return E};_.Hr=function(v){this.expiringStorage_=(v=_.j$b(v))?new g$(v):null;this.JSC$10705_domain_=document.domain||window.location.hostname};
_.K=_.Hr.prototype;_.K.hasLocalStorage=function(){return!!this.expiringStorage_};
_.K.set=function(v,Q,V,E){V=V||31104E3;this.remove(v);if(this.hasLocalStorage())try{this.expiringStorage_.set(v,Q,Date.now()+V*1E3);return}catch(F){}var b="";if(E)try{b=escape((0,_.JG)(Q))}catch(F){return}else b=escape(Q);_.Sw(v,b,V,this.JSC$10705_domain_)};
_.K.get=function(v,Q){var V=void 0,E=!this.hasLocalStorage();if(!E)try{V=this.expiringStorage_.get(v)}catch(b){E=!0}if(E&&(V=_.qY.get(v,void 0))&&(V=unescape(V),Q))try{V=JSON.parse(V)}catch(b){this.remove(v),V=void 0}return V};
_.K.remove=function(v){this.hasLocalStorage()&&this.expiringStorage_.remove(v);_.S20(v,"/",this.JSC$10705_domain_)};
_.K.getCreationTime=function(v){return this.hasLocalStorage()&&(v=(this.expiringStorage_.getWrapper(v)||{}).creation,typeof v==="number")?v:null};var o7r=function(){var v;return function(){v||(v=new _.Hr("ytidb"));return v}}();var aGt;_.W5=[];aGt=!1;var e6m=ryh||$pb;var YY={},z9a=(YY.AUTH_INVALID="No user identifier specified.",YY.EXPLICIT_ABORT="Transaction was explicitly aborted.",YY.IDB_NOT_SUPPORTED="IndexedDB is not supported.",YY.MISSING_INDEX="Index not created.",YY.MISSING_OBJECT_STORES="Object stores not created.",YY.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",YY.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",YY.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",YY.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",YY.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",YY.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",YY.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",YY),yY={},JyZ=(yY.AUTH_INVALID="ERROR",yY.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",yY.EXPLICIT_ABORT="IGNORED",
yY.IDB_NOT_SUPPORTED="ERROR",yY.MISSING_INDEX="WARNING",yY.MISSING_OBJECT_STORES="ERROR",yY.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",yY.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",yY.QUOTA_EXCEEDED="WARNING",yY.QUOTA_MAYBE_EXCEEDED="WARNING",yY.UNKNOWN_ABORT="WARNING",yY.INCOMPATIBLE_DB_VERSION="WARNING",yY),cL={},NDA=(cL.AUTH_INVALID=!1,cL.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,cL.EXPLICIT_ABORT=!1,cL.IDB_NOT_SUPPORTED=!1,cL.MISSING_INDEX=!1,cL.MISSING_OBJECT_STORES=!1,cL.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,cL.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,cL.QUOTA_EXCEEDED=!1,cL.QUOTA_MAYBE_EXCEEDED=!0,cL.UNKNOWN_ABORT=!0,cL.INCOMPATIBLE_DB_VERSION=!1,cL),H5=function(v,Q,V,E,b){Q=Q===void 0?{}:Q;V=V===void 0?z9a[v]:V;E=E===void 0?JyZ[v]:E;b=b===void 0?NDA[v]:b;_.xd.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:v},Q));this.type=v;this.message=V;this.level=E;this.retryable=b;Object.setPrototypeOf(this,H5.prototype)};
_.f(H5,_.xd);var xpR=function(v,Q){H5.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Q,foundObjectStores:v},z9a.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,xpR.prototype)};
_.f(xpR,H5);var HtZ=function(v,Q){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=v;this.objectStore=Q;Object.setPrototypeOf(this,HtZ.prototype)};
_.f(HtZ,Error);var mpo=["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 Qh=function(v){this.executor=v},vr=function(v){var Q=this;
this.state={status:"PENDING"};this.JSC$10733_onFulfilled=[];this.JSC$10733_onRejected=[];v=v.executor;var V=function(b){if(Q.state.status==="PENDING"){Q.state={status:"FULFILLED",value:b};b=_.L(Q.JSC$10733_onFulfilled);for(var F=b.next();!F.done;F=b.next())F=F.value,F()}},E=function(b){if(Q.state.status==="PENDING"){Q.state={status:"REJECTED",
reason:b};b=_.L(Q.JSC$10733_onRejected);for(var F=b.next();!F.done;F=b.next())F=F.value,F()}};
try{v(V,E)}catch(b){E(b)}};
vr.all=function(v){return new vr(new Qh(function(Q,V){var E=[],b=v.length;b===0&&Q(E);for(var F={i$jscomp$468:0};F.i$jscomp$468<v.length;F={i$jscomp$468:F.i$jscomp$468},++F.i$jscomp$468)vr.resolve(v[F.i$jscomp$468]).then(function(t){return function(p){E[t.i$jscomp$468]=p;b--;b===0&&Q(E)}}(F)).catch(function(t){V(t)})}))};
vr.resolve=function(v){return new vr(new Qh(function(Q,V){v instanceof vr?v.then(Q,V):Q(v)}))};
vr.reject=function(v){return new vr(new Qh(function(Q,V){V(v)}))};
vr.prototype.then=function(v,Q){var V=this,E=v!=null?v:QFB,b=Q!=null?Q:vzb;return new vr(new Qh(function(F,t){V.state.status==="PENDING"?(V.JSC$10733_onFulfilled.push(function(){BD8(V,V,E,F,t)}),V.JSC$10733_onRejected.push(function(){g7x(V,V,b,F,t)})):V.state.status==="FULFILLED"?BD8(V,V,E,F,t):V.state.status==="REJECTED"&&g7x(V,V,b,F,t)}))};
vr.prototype.catch=function(v){return this.then(void 0,v)};
var BD8=function(v,Q,V,E,b){try{if(v.state.status!=="FULFILLED")throw Error("Tc");var F=V(v.state.value);F instanceof vr?s$a(v,Q,F,E,b):E(F)}catch(t){b(t)}},g7x=function(v,Q,V,E,b){try{if(v.state.status!=="REJECTED")throw Error("Uc");
var F=V(v.state.reason);F instanceof vr?s$a(v,Q,F,E,b):E(F)}catch(t){b(t)}},s$a=function(v,Q,V,E,b){Q===V?b(new TypeError("Vc")):V.then(function(F){F instanceof vr?s$a(v,Q,F,E,b):E(F)},function(F){b(F)})};var fB;fB=window;_.wO=fB.ytcsi&&fB.ytcsi.now?fB.ytcsi.now:fB.performance&&fB.performance.timing&&fB.performance.now&&fB.performance.timing.navigationStart?function(){return fB.performance.timing.navigationStart+fB.performance.now()}:function(){return(new Date).getTime()};var Ef=function(v,Q){this.JSC$10745_wrapped=v;this.options=Q;this.transactionCount=0;this.startedMs=Math.round((0,_.wO)());this.hasUnknownAbortedTransaction=!1},Gp=function(){return _.Y("idb_immediate_commit")},WLV,o7a,OC,ryN;
Ef.prototype.add=function(v,Q,V){return _.LO(this,[v],{mode:"readwrite",enableRetries:!0,commit:Gp()},function(E){return E.objectStore(v).add(Q,V)})};
Ef.prototype.clear=function(v){return _.LO(this,[v],{mode:"readwrite",enableRetries:!0},function(Q){return Q.objectStore(v).clear()})};
Ef.prototype.close=function(){this.JSC$10745_wrapped.close();var v;((v=this.options)==null?0:v.closed)&&this.options.closed()};
Ef.prototype.count=function(v,Q){return _.LO(this,[v],{mode:"readonly",enableRetries:!0,commit:Gp()},function(V){return V.objectStore(v).count(Q)})};
var Uf=function(v,Q,V){v=v.JSC$10745_wrapped.createObjectStore(Q,V);return new CB(v)};
Ef.prototype.delete=function(v,Q){return _.LO(this,[v],{mode:"readwrite",enableRetries:!0,commit:Gp()&&!(Q instanceof IDBKeyRange)},function(V){return V.objectStore(v).delete(Q)})};
var u$V=function(v,Q){return _.LO(v,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore("ResponseStore").index("byInterface").delete(Q)})};
Ef.prototype.get=function(v,Q){return _.LO(this,[v],{mode:"readonly",enableRetries:!0,commit:Gp()},function(V){return V.objectStore(v).get(Q)})};
Ef.prototype.getAll=function(v,Q,V){return _.LO(this,[v],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(v).getAll(Q,V)})};
Ef.prototype.put=function(v,Q,V){return _.LO(this,[v],{mode:"readwrite",enableRetries:!0,commit:Gp()},function(E){return E.objectStore(v).put(Q,V)})};
Ef.prototype.objectStoreNames=function(){return Array.from(this.JSC$10745_wrapped.objectStoreNames)};
_.LO=function(v,Q,V,E){var b,F,t,p,Z,d,w,A,k,T,c,C;return _.e(function(R){switch(R.nextAddress){case 1:var l={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?l.mode=V:Object.assign(l,V);b=l;v.transactionCount++;F=b.enableRetries?3:1;t=0;case 2:if(p){R.jumpTo(4);break}t++;Z=Math.round((0,_.wO)());_.GC(R,5);d=v.JSC$10745_wrapped.transaction(Q,b.mode);l=R.yield;var S=!!b.commit;var a=new bD(d);S=j$x(a,E,S);return l.call(R,S,7);case 7:return w=R.yieldResult,A=Math.round((0,_.wO)()),
WLV(v,Z,A,t,void 0,Q.join(),b),R.return(w);case 5:k=_.n$(R);T=Math.round((0,_.wO)());c=Up9(k,v.JSC$10745_wrapped.name,Q.join(),v.JSC$10745_wrapped.version);if((C=c instanceof H5&&!c.retryable)||t>=F)WLV(v,Z,T,t,c,Q.join(),b),p=c;R.jumpTo(2);break;case 4:return R.return(Promise.reject(p))}})};
WLV=function(v,Q,V,E,b,F,t){Q=V-Q;b?(b instanceof H5&&(b.type==="QUOTA_EXCEEDED"||b.type==="QUOTA_MAYBE_EXCEEDED")&&XF("QUOTA_EXCEEDED",{dbName:$d(v.JSC$10745_wrapped.name),objectStoreNames:F,transactionCount:v.transactionCount,transactionMode:t.mode}),b instanceof H5&&b.type==="UNKNOWN_ABORT"&&(V-=v.startedMs,V<0&&V>=2147483648&&(V=0),XF("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:F,transactionDuration:Q,transactionCount:v.transactionCount,dbDuration:V}),v.hasUnknownAbortedTransaction=!0),
o7a(v,!1,E,F,Q,t.tag),_.om(b)):o7a(v,!0,E,F,Q,t.tag)};
o7a=function(v,Q,V,E,b,F){XF("TRANSACTION_ENDED",{objectStoreNames:E,connectionHasUnknownAbortedTransaction:v.hasUnknownAbortedTransaction,duration:b,isSuccessful:Q,tryCount:V,tag:F===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":F})};
Ef.prototype.getName=function(){return this.JSC$10745_wrapped.name};
var CB=function(v){this.JSC$10760_wrapped=v};
CB.prototype.add=function(v,Q){return Vh(this.JSC$10760_wrapped.add(v,Q))};
CB.prototype.autoIncrement=function(){return this.JSC$10760_wrapped.autoIncrement};
CB.prototype.clear=function(){return Vh(this.JSC$10760_wrapped.clear()).then(function(){})};
var vx=function(v,Q,V){v.JSC$10760_wrapped.createIndex(Q,V,{unique:!1})};
CB.prototype.count=function(v){return Vh(this.JSC$10760_wrapped.count(v))};
var Xpa=function(v,Q){return pO(v,{query:Q},function(V){return V.delete().then(function(){return V.continue()})}).then(function(){})};
CB.prototype.delete=function(v){return v instanceof IDBKeyRange?Xpa(this,v):Vh(this.JSC$10760_wrapped.delete(v))};
CB.prototype.get=function(v){return Vh(this.JSC$10760_wrapped.get(v))};
CB.prototype.getAll=function(v,Q){return"getAll"in IDBObjectStore.prototype?Vh(this.JSC$10760_wrapped.getAll(v,Q)):aGX(this,v,Q)};
var aGX=function(v,Q,V){var E=[];return pO(v,{query:Q},function(b){if(!(V!==void 0&&E.length>=V))return E.push(b.getValue()),b.continue()}).then(function(){return E})};
CB.prototype.index=function(v){try{return new M7(this.JSC$10760_wrapped.index(v))}catch(Q){if(Q instanceof Error&&Q.name==="NotFoundError")throw new HtZ(v,this.JSC$10760_wrapped.name);throw Q;}};
CB.prototype.getName=function(){return this.JSC$10760_wrapped.name};
CB.prototype.keyPath=function(){return this.JSC$10760_wrapped.keyPath};
CB.prototype.put=function(v,Q){return Vh(this.JSC$10760_wrapped.put(v,Q))};
var pO=function(v,Q,V){v=v.JSC$10760_wrapped.openCursor(Q.query,Q.direction);return ryN(v).then(function(E){return b7m(E,V)})},bD=function(v){var Q=this;
this.JSC$10768_wrapped=v;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(V,E){Q.JSC$10768_wrapped.addEventListener("complete",function(){V()});
Q.JSC$10768_wrapped.addEventListener("error",function(b){b.currentTarget===b.target&&E(Q.JSC$10768_wrapped.error)});
Q.JSC$10768_wrapped.addEventListener("abort",function(){var b=Q.JSC$10768_wrapped.error;if(b)E(b);else if(!Q.aborted){b=H5;for(var F=Q.JSC$10768_wrapped.objectStoreNames,t=[],p=0;p<F.length;p++){var Z=F.item(p);if(Z===null)throw Error("Wc");t.push(Z)}b=new b("UNKNOWN_ABORT",{objectStoreNames:t.join(),dbName:Q.JSC$10768_wrapped.db.name,mode:Q.JSC$10768_wrapped.mode});E(b)}})})},j$x=function(v,Q,V){var E=new Promise(function(b,F){try{var t=Q(v);
V&&v.commit();t.then(function(p){b(p)}).catch(F)}catch(p){F(p),v.abort()}});
return Promise.all([E,v.done]).then(function(b){return _.L(b).next().value})};
bD.prototype.abort=function(){this.JSC$10768_wrapped.abort();this.aborted=!0;throw new H5("EXPLICIT_ABORT");};
bD.prototype.commit=function(){if(!this.aborted){var v,Q;(Q=(v=this.JSC$10768_wrapped).commit)==null||Q.call(v)}};
bD.prototype.objectStore=function(v){v=this.JSC$10768_wrapped.objectStore(v);var Q=this.objectStoreCache.get(v);Q||(Q=new CB(v),this.objectStoreCache.set(v,Q));return Q};
var M7=function(v){this.JSC$10770_wrapped=v};
M7.prototype.count=function(v){return Vh(this.JSC$10770_wrapped.count(v))};
M7.prototype.delete=function(v){return _.AF(this,{query:v},function(Q){return Q.delete().then(function(){return Q.continue()})})};
M7.prototype.get=function(v){return Vh(this.JSC$10770_wrapped.get(v))};
M7.prototype.getAll=function(v,Q){return"getAll"in IDBIndex.prototype?Vh(this.JSC$10770_wrapped.getAll(v,Q)):$px(this,v,Q)};
var $px=function(v,Q,V){var E=[];return _.AF(v,{query:Q},function(b){if(!(V!==void 0&&E.length>=V))return E.push(b.getValue()),b.continue()}).then(function(){return E})};
M7.prototype.keyPath=function(){return this.JSC$10770_wrapped.keyPath};
M7.prototype.unique=function(){return this.JSC$10770_wrapped.unique};
_.AF=function(v,Q,V){v=v.JSC$10770_wrapped.openCursor(Q.query===void 0?null:Q.query,Q.direction===void 0?"next":Q.direction);return ryN(v).then(function(E){return b7m(E,V)})};
OC=function(v,Q){this.request=v;this.cursor=Q};
ryN=function(v){return Vh(v).then(function(Q){return Q?new OC(v,Q):null})};
OC.prototype.continue=function(v){this.cursor.continue(v);return ryN(this.request)};
OC.prototype.delete=function(){return Vh(this.cursor.delete()).then(function(){})};
OC.prototype.getValue=function(){return this.cursor.value};
OC.prototype.update=function(v){return Vh(this.cursor.update(v))};var DI=function(v,Q){this.name=v;this.options=Q;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},IGR;
DI.prototype.openDb=function(v,Q,V){V=V===void 0?{}:V;return K5Z(v,Q,V)};
DI.prototype.delete=function(v){v=v===void 0?{}:v;return _.KO(this.name,v)};
IGR=function(v,Q){return new H5("INCOMPATIBLE_DB_VERSION",{dbName:v.name,oldVersion:v.options.version,newVersion:Q})};
_.iD=function(v,Q){if(!Q)throw UG("openWithToken",$d(v.name));return v.open()};
DI.prototype.open=function(){var v=this;if(!this.isCompatible)throw IGR(this);if(this.connectionPromise)return this.connectionPromise;var Q,V=function(){v.connectionPromise===Q&&(v.connectionPromise=void 0)},E={blocking:function(F){F.close()},
closed:V,terminated:V,upgrade:this.options.upgrade},b=function(){var F,t,p,Z,d,w,A,k,T,c;return _.e(function(C){switch(C.nextAddress){case 1:return t=(F=Error().stack)!=null?F:"",_.GC(C,2),C.yield(v.openDb(v.name,v.options.version,E),4);case 4:for(var R=p=C.yieldResult,l=v.options,S=[],a=_.L(Object.keys(l.objectStores)),g=a.next();!g.done;g=a.next()){g=g.value;var u=l.objectStores[g],r=u.removedAtVersion===void 0?Number.MAX_VALUE:u.removedAtVersion;!(R.JSC$10745_wrapped.version>=u.addedAtVersion)||
R.JSC$10745_wrapped.version>=r||R.JSC$10745_wrapped.objectStoreNames.contains(g)||S.push(g)}Z=S;if(Z.length===0){C.jumpTo(5);break}d=Object.keys(v.options.objectStores);w=p.objectStoreNames();if(v.timesReopenedToFixMissingObjectStore<_.T_("ytidb_reopen_db_retries",0))return v.timesReopenedToFixMissingObjectStore++,p.close(),_.om(new H5("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:v.name,expectedObjectStores:d,foundObjectStores:w})),C.return(b());if(!(v.timesDeletedToFixMissingObjectStore<_.T_("ytidb_remake_db_retries",
1))){C.jumpTo(6);break}v.timesDeletedToFixMissingObjectStore++;return C.yield(v.delete(),7);case 7:return _.om(new H5("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:v.name,expectedObjectStores:d,foundObjectStores:w})),C.return(b());case 6:throw new xpR(w,d);case 5:return C.return(p);case 2:A=_.n$(C);if(A instanceof DOMException?A.name!=="VersionError":"DOMError"in self&&A instanceof DOMError?A.name!=="VersionError":!(A instanceof Object&&"message"in A)||A.message!=="An attempt was made to open a database using a lower version than the existing version."){C.jumpTo(8);
break}return C.yield(v.openDb(v.name,void 0,Object.assign({},E,{upgrade:void 0})),9);case 9:k=C.yieldResult;T=k.JSC$10745_wrapped.version;if(v.options.version!==void 0&&T>v.options.version+1)throw k.close(),v.isCompatible=!1,IGR(v,T);return C.return(k);case 8:throw V(),A instanceof Error&&!_.Y("ytidb_async_stack_killswitch")&&(A.stack=A.stack+"\n"+t.substring(t.indexOf("\n")+1)),Up9(A,v.name,"",(c=v.options.version)!=null?c:-1);}})};
return this.connectionPromise=Q=b()};var i7h=new DI("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(v,Q){Q(1)&&Uf(v,"databases",{keyPath:"actualName"})}});var dSE,Z7Z=new function(){}(new function(){});new _.bK;var Htp=function(v,Q){DI.call(this,v,Q);this.options=Q;r$(v)};
_.f(Htp,DI);var GO0=function(v,Q){var V;return function(){V||(V=new Htp(v,Q));return V}};
Htp.prototype.openDb=function(v,Q,V){V=V===void 0?{}:V;return(this.options.shared?T8r:kOm)(v,Q,Object.assign({},V))};
Htp.prototype.delete=function(v){v=v===void 0?{}:v;return(this.options.shared?fib:YxG)(this.name,v)};var mp8={},C3G=hF("ytGcfConfig",{objectStores:(mp8.coldConfigStore={addedAtVersion:1},mp8.hotConfigStore={addedAtVersion:1},mp8),shared:!1,upgrade:function(v,Q){Q(1)&&(vx(Uf(v,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),vx(Uf(v,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var UpN=function(){_.J5.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var v=_.Q9("yt.gcf.config.hotUpdateCallbacks");v?(this.localHotConfigJobQueue=[].concat(_.ui(v)),this.sharedHotConfigJobQueue=v):(this.sharedHotConfigJobQueue=[],_.Pr("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.f(UpN,_.J5);UpN.prototype.disposeInternal=function(){for(var v=_.L(this.localHotConfigJobQueue),Q=v.next();!Q.done;Q=v.next()){var V=this.sharedHotConfigJobQueue;Q=V.indexOf(Q.value);Q>=0&&V.splice(Q,1)}this.localHotConfigJobQueue.length=0;_.J5.prototype.disposeInternal.call(this)};var s0=function(){var v=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new UpN;this.TEST_ONLY={initializeConfigDb:function(){v.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return v.coldGlobalConfigGroup},
setHotConfigGroup:function(Q){vzx(v,Q)},
setHotHashData:function(Q){v.setHotHashData(Q)},
setColdConfigGroup:function(Q){QFR(v,Q)},
getColdHashData:function(){return v.coldHashData},
getHotHashData:function(){return v.hotHashData},
getHotConfigGroup:function(){return v.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return V0p()},
getExportedHotConfigGroup:function(){return RH()},
getExportedColdHashData:function(){return _.Q9("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Q9("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){EzS(v)},
resetInstance:function(){v.setHotHashData(void 0);b7Z(v);delete s0.instance},
setDebounceTimer:function(Q){v.debounceTimer=Q},
getDebounceTimer:function(){return v.debounceTimer}}},F5S=function(){if(!s0.instance){var v=new s0;
s0.instance=v}return s0.instance},L5A=function(v){var Q;
_.e(function(V){if(V.nextAddress==1)return _.Y("start_client_gcf")||_.Y("delete_gcf_config_db")?_.Y("start_client_gcf")?V.yield(_.dO(),3):V.jumpTo(2):V.return();V.nextAddress!=2&&((Q=V.yieldResult)&&_.NY()&&!_.Y("delete_gcf_config_db")?(v.isConfigDbInitialized=!0,EzS(v)):(K5p(v),i7N(v)));return _.Y("delete_gcf_config_db")?V.yield(li9(),0):V.jumpTo(0)})},uS=function(){var v;
return(v=RH())!=null?v:_.r7("RAW_HOT_CONFIG_GROUP")},t0A=function(v){var Q,V,E,b,F,t;
return _.e(function(p){switch(p.nextAddress){case 1:if(v.hotGlobalConfigGroup)return p.return(RH());if(!v.isConfigDbInitialized)return Q=UG("getHotConfig IDB not initialized"),_.V9(Q),p.return(Promise.reject(Q));V=Zd();E=_.r7("TIME_CREATED_MS");if(!V){b=UG("getHotConfig token error");_.V9(b);p.jumpTo(2);break}return p.yield(nz0(V),3);case 3:if((F=p.yieldResult)&&F.timestamp>E)return vzx(v,F.config),v.setHotHashData(F.hashData),p.return(RH());case 2:i7N(v);if(!(V&&v.hotGlobalConfigGroup&&v.hotHashData)){p.jumpTo(4);
break}return p.yield(O7t(v.hotGlobalConfigGroup,v.hotHashData,V,E),4);case 4:return v.hotGlobalConfigGroup?p.return(RH()):(t=new _.xd("Config not available in ytConfig"),_.V9(t),p.return(Promise.reject(t)))}})},e6Z=function(v){var Q,V,E,b,F,t;
return _.e(function(p){switch(p.nextAddress){case 1:if(v.coldGlobalConfigGroup)return p.return(V0p());if(!v.isConfigDbInitialized)return Q=UG("getColdConfig IDB not initialized"),_.V9(Q),p.return(Promise.reject(Q));V=Zd();E=_.r7("TIME_CREATED_MS");if(!V){b=UG("getColdConfig");_.V9(b);p.jumpTo(2);break}return p.yield(R6b(V),3);case 3:if((F=p.yieldResult)&&F.timestamp>E)return QFR(v,F.config),pBx(v,F.configData),b7Z(v,F.hashData),p.return(V0p());case 2:K5p(v);if(!(V&&v.coldGlobalConfigGroup&&v.coldHashData&&
v.configData)){p.jumpTo(4);break}return p.yield(DSm(v.coldGlobalConfigGroup,v.coldHashData,v.configData,V,E),4);case 4:return v.coldGlobalConfigGroup?p.return(V0p()):(t=new _.xd("Config not available in ytConfig"),_.V9(t),p.return(Promise.reject(t)))}})},EzS=function(v){if(!v.hotGlobalConfigGroup||!v.coldGlobalConfigGroup){if(!Zd()){var Q=UG("scheduleGetConfigs");
_.V9(Q)}v.initJob||(v.initJob=_.XT.addLowPriorityJob(function(){return _.e(function(V){switch(V.nextAddress){case 1:return _.GC(V,2),V.yield(t0A(v),4);case 4:_.FT(V,3);break;case 2:_.n$(V);case 3:return _.GC(V,5),V.yield(e6Z(v),7);case 7:_.FT(V,6);break;case 5:_.n$(V);case 6:v.initJob&&(v.initJob=0),_.q1(V)}})},100))}},DCr=function(v,Q,V){var E,b,F;
return _.e(function(t){switch(t.nextAddress){case 1:if(!_.Y("start_client_gcf")){t.jumpTo(0);break}V&&vzx(v,V);v.setHotHashData(Q);E=Zd();if(!E){t.jumpTo(3);break}if(V){t.jumpTo(4);break}return t.yield(nz0(E),5);case 5:b=t.yieldResult,V=(F=b)==null?void 0:F.config;case 4:return t.yield(O7t(V,Q,E),3);case 3:if(V)for(var p=V,Z=_.L(v.configUpdateService.sharedHotConfigJobQueue),d=Z.next();!d.done;d=Z.next())d=d.value,d(p);_.q1(t)}})},RgZ=function(v,Q,V){var E,b,F,t;
return _.e(function(p){if(p.nextAddress==1){if(!_.Y("start_client_gcf"))return p.jumpTo(0);b7Z(v,Q);return(E=Zd())?V?p.jumpTo(4):p.yield(R6b(E),5):p.jumpTo(0)}p.nextAddress!=4&&(b=p.yieldResult,V=(F=b)==null?void 0:F.config);if(!V)return p.jumpTo(0);t=V.configData;return p.yield(DSm(V,Q,t,E),0)})},Ii0=function(){var v=F5S(),Q=(0,_.wO)()-v.debounceTimer;
if(!(v.debounceTimer!==0&&Q<_.T_("send_config_hash_timer"))){Q=_.Q9("yt.gcf.config.coldConfigData");var V=_.Q9("yt.gcf.config.hotHashData"),E=_.Q9("yt.gcf.config.coldHashData");Q&&V&&E&&(v.debounceTimer=(0,_.wO)());return{coldConfigData:Q,hotHashData:V,coldHashData:E}}},K5p=function(v){QFR(v,_.r7("RAW_COLD_CONFIG_GROUP"));
b7Z(v,_.r7("SERIALIZED_COLD_HASH_DATA"));var Q;pBx(v,(Q=v.coldGlobalConfigGroup)==null?void 0:Q.configData)},i7N=function(v){vzx(v,_.r7("RAW_HOT_CONFIG_GROUP"));
v.setHotHashData(_.r7("SERIALIZED_HOT_HASH_DATA"))},vzx=function(v,Q){v.hotGlobalConfigGroup=Q;
_.Pr("yt.gcf.config.hotConfigGroup",v.hotGlobalConfigGroup||null)},QFR=function(v,Q){v.coldGlobalConfigGroup=Q;
_.Pr("yt.gcf.config.coldConfigGroup",v.coldGlobalConfigGroup||null)};
s0.prototype.setHotHashData=function(v){this.hotHashData=v;_.Pr("yt.gcf.config.hotHashData",this.hotHashData||null)};
var b7Z=function(v,Q){v.coldHashData=Q;_.Pr("yt.gcf.config.coldHashData",v.coldHashData||null)},pBx=function(v,Q){v.configData=Q;
_.Pr("yt.gcf.config.coldConfigData",v.configData||null)},RH=function(){return _.Q9("yt.gcf.config.hotConfigGroup")},V0p=function(){return _.Q9("yt.gcf.config.coldConfigGroup")};var Of={},Z7p=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Of.assign=function(v){for(var Q=Array.prototype.slice.call(arguments,1);Q.length;){var V=Q.shift();if(V){if(typeof V!=="object")throw new TypeError("Zc`"+V);for(var E in V)Object.prototype.hasOwnProperty.call(V,E)&&(v[E]=V[E])}}return v};
Of.shrinkBuf=function(v,Q){if(v.length===Q)return v;if(v.subarray)return v.subarray(0,Q);v.length=Q;return v};
var P3X={arraySet:function(v,Q,V,E,b){if(Q.subarray&&v.subarray)v.set(Q.subarray(V,V+E),b);else for(var F=0;F<E;F++)v[b+F]=Q[V+F]},
flattenChunks:function(v){var Q,V;var E=V=0;for(Q=v.length;E<Q;E++)V+=v[E].length;var b=new Uint8Array(V);E=V=0;for(Q=v.length;E<Q;E++){var F=v[E];b.set(F,V);V+=F.length}return b}},dSZ={arraySet:function(v,Q,V,E,b){for(var F=0;F<E;F++)v[b+F]=Q[V+F]},
flattenChunks:function(v){return[].concat.apply([],v)}};
Of.setTyped=function(){Z7p?(Of.Buf8=Uint8Array,Of.Buf16=Uint16Array,Of.Buf32=Int32Array,Of.assign(Of,P3X)):(Of.Buf8=Array,Of.Buf16=Array,Of.Buf32=Array,Of.assign(Of,dSZ))};
Of.setTyped();var h6x=!0;try{new Uint8Array(1)}catch(v){h6x=!1}
var nNQ=function(v){var Q,V,E=v.length,b=0;for(Q=0;Q<E;Q++){var F=v.charCodeAt(Q);if((F&64512)===55296&&Q+1<E){var t=v.charCodeAt(Q+1);(t&64512)===56320&&(F=65536+(F-55296<<10)+(t-56320),Q++)}b+=F<128?1:F<2048?2:F<65536?3:4}var p=new Of.Buf8(b);for(Q=V=0;V<b;Q++)F=v.charCodeAt(Q),(F&64512)===55296&&Q+1<E&&(t=v.charCodeAt(Q+1),(t&64512)===56320&&(F=65536+(F-55296<<10)+(t-56320),Q++)),F<128?p[V++]=F:(F<2048?p[V++]=192|F>>>6:(F<65536?p[V++]=224|F>>>12:(p[V++]=240|F>>>18,p[V++]=128|F>>>12&63),p[V++]=
128|F>>>6&63),p[V++]=128|F&63);return p};var Ano={};Ano=function(v,Q,V,E){var b=v&65535|0;v=v>>>16&65535|0;for(var F;V!==0;){F=V>2E3?2E3:V;V-=F;do b=b+Q[E++]|0,v=v+b|0;while(--F);b%=65521;v%=65521}return b|v<<16|0};for(var sf={},nB,wBx=[],A4x=0;A4x<256;A4x++){nB=A4x;for(var kOZ=0;kOZ<8;kOZ++)nB=nB&1?3988292384^nB>>>1:nB>>>1;wBx[A4x]=nB}sf=function(v,Q,V,E){V=E+V;for(v^=-1;E<V;E++)v=v>>>8^wBx[(v^Q[E])&255];return v^-1};var lD={};lD={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 K9G=[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],L9b=[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],R2B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h2S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],JF=Array(576);fO(JF);var NL=Array(60);fO(NL);var Re=Array(512);fO(Re);var Dd=Array(256);fO(Dd);var iFZ=Array(29);fO(iFZ);var tVT=Array(30);fO(tVT);var MVr,OFh,D29,CKZ=!1;var oe;
oe=[new Wr(0,0,0,0,function(v,Q){var V=65535;for(V>v.pending_buf_size-5&&(V=v.pending_buf_size-5);;){if(v.lookahead<=1){uD(v);if(v.lookahead===0&&Q===0)return 1;if(v.lookahead===0)break}v.strstart+=v.lookahead;v.lookahead=0;var E=v.block_start+V;if(v.strstart===0||v.strstart>=E)if(v.lookahead=v.strstart-E,v.strstart=E,xF(v,!1),v.strm.avail_out===0)return 1;if(v.strstart-v.block_start>=v.w_size-262&&(xF(v,!1),v.strm.avail_out===0))return 1}v.insert=0;if(Q===4)return xF(v,!0),v.strm.avail_out===0?3:
4;v.strstart>v.block_start&&xF(v,!1);return 1}),
new Wr(4,4,8,4,kAG),new Wr(4,5,16,8,kAG),new Wr(4,6,32,32,kAG),new Wr(4,4,16,16,jj),new Wr(8,16,32,32,jj),new Wr(8,16,128,128,jj),new Wr(8,32,128,256,jj),new Wr(32,128,258,1024,jj),new Wr(32,258,258,4096,jj)];var GAS={};GAS=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 llG=Object.prototype.toString;
flo.prototype.push=function(v,Q){var V=this.strm,E=this.options.chunkSize;if(this.ended)return!1;var b=Q===~~Q?Q:Q===!0?4:0;typeof v==="string"?V.input=nNQ(v):llG.call(v)==="[object ArrayBuffer]"?V.input=new Uint8Array(v):V.input=v;V.next_in=0;V.avail_in=V.input.length;do{V.avail_out===0&&(V.output=new Of.Buf8(E),V.next_out=0,V.avail_out=E);v=cnQ(V,b);if(v!==1&&v!==0)return T8a(this,v),this.ended=!0,!1;if(V.avail_out===0||V.avail_in===0&&(b===4||b===2))if(this.options.to==="string"){var F=Of.shrinkBuf(V.output,
V.next_out);Q=F;F=F.length;if(F<65537&&(Q.subarray&&h6x||!Q.subarray))Q=String.fromCharCode.apply(null,Of.shrinkBuf(Q,F));else{for(var t="",p=0;p<F;p++)t+=String.fromCharCode(Q[p]);Q=t}this.chunks.push(Q)}else Q=Of.shrinkBuf(V.output,V.next_out),this.chunks.push(Q)}while((V.avail_in>0||V.avail_out===0)&&v!==1);if(b===4)return(V=this.strm)&&V.state?(E=V.state.status,E!==42&&E!==69&&E!==73&&E!==91&&E!==103&&E!==113&&E!==666?v=qL(V,-2):(V.state=null,v=E===113?qL(V,-3):0)):v=-2,T8a(this,v),this.ended=
!0,v===0;b===2&&(T8a(this,0),V.avail_out=0);return!0};
var T8a=function(v,Q){Q===0&&(v.result=v.options.to==="string"?v.chunks.join(""):Of.flattenChunks(v.chunks));v.chunks=[];v.err=Q;v.msg=v.strm.msg};var YxV=typeof TextEncoder!=="undefined"?new TextEncoder:null,ihh=YxV?function(v){return YxV.encode(v)}:function(v){v=_.zc(v);
for(var Q=new Uint8Array(v.length),V=0;V<Q.length;V++)Q[V]=v[V];return Q};var I29={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},mdB={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var lN=function(v,Q){this.version=v;this.args=Q};
lN.prototype.serialize=function(){return{version:this.version,args:this.args}};var NHh=function(v,Q){this.topic=v;this.dataClass=Q};
NHh.prototype.toString=function(){return this.topic};var y4a=_.Q9("ytPubsub2Pubsub2Instance")||new _.ni;_.ni.prototype.subscribe=_.ni.prototype.subscribe;_.ni.prototype.unsubscribeByKey=_.ni.prototype.unsubscribeByKey;_.ni.prototype.publish=_.ni.prototype.publish;_.ni.prototype.clear=_.ni.prototype.clear;_.Pr("ytPubsub2Pubsub2Instance",y4a);var JnS=_.Q9("ytPubsub2Pubsub2SubscribedKeys")||{};_.Pr("ytPubsub2Pubsub2SubscribedKeys",JnS);var BHr=_.Q9("ytPubsub2Pubsub2TopicToKeys")||{};_.Pr("ytPubsub2Pubsub2TopicToKeys",BHr);
var x2B=_.Q9("ytPubsub2Pubsub2IsAsync")||{};_.Pr("ytPubsub2Pubsub2IsAsync",x2B);_.Pr("ytPubsub2Pubsub2SkipSubKey",null);var $23=void 0,alb=void 0;var Evh=_.T_("max_body_size_to_compress",5E5),bht=_.T_("min_body_size_to_compress",500),rO=!0,pnb=0,$F=0,tTB=_.T_("compression_performance_threshold_lr",250),ZhE=_.T_("slow_compressions_before_abandon_count",4),m2m=!1,U2m=new Map,KVo=1,FVZ=!0;_.HZ(Ie,dfQ);Ie.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 c4p=function(v,Q,V){V||(V=0);var E=v.W_;if(typeof Q==="string")for(var b=0;b<16;b++)E[b]=Q.charCodeAt(V)<<24|Q.charCodeAt(V+1)<<16|Q.charCodeAt(V+2)<<8|Q.charCodeAt(V+3),V+=4;else for(b=0;b<16;b++)E[b]=Q[V]<<24|Q[V+1]<<16|Q[V+2]<<8|Q[V+3],V+=4;for(Q=16;Q<80;Q++)V=E[Q-3]^E[Q-8]^E[Q-14]^E[Q-16],E[Q]=(V<<1|V>>>31)&4294967295;Q=v.chain_[0];V=v.chain_[1];b=v.chain_[2];for(var F=v.chain_[3],t=v.chain_[4],p,Z,d=0;d<80;d++)d<40?d<20?(p=F^V&(b^F),Z=1518500249):(p=V^b^F,Z=1859775393):d<60?(p=V&b|F&(V|b),
Z=2400959708):(p=V^b^F,Z=3395469782),p=(Q<<5|Q>>>27)+p+t+Z+E[d]&4294967295,t=F,F=b,b=(V<<30|V>>>2)&4294967295,V=Q,Q=p;v.chain_[0]=v.chain_[0]+Q&4294967295;v.chain_[1]=v.chain_[1]+V&4294967295;v.chain_[2]=v.chain_[2]+b&4294967295;v.chain_[3]=v.chain_[3]+F&4294967295;v.chain_[4]=v.chain_[4]+t&4294967295};
Ie.prototype.update=function(v,Q){if(v!=null){Q===void 0&&(Q=v.length);for(var V=Q-this.blockSize,E=0,b=this.buf_,F=this.inbuf_;E<Q;){if(F==0)for(;E<=V;)c4p(this,v,E),E+=this.blockSize;if(typeof v==="string")for(;E<Q;){if(b[F]=v.charCodeAt(E),++F,++E,F==this.blockSize){c4p(this,b);F=0;break}}else for(;E<Q;)if(b[F]=v[E],++F,++E,F==this.blockSize){c4p(this,b);F=0;break}}this.inbuf_=F;this.total_+=Q}};
Ie.prototype.digest=function(){var v=[],Q=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]=Q&255,Q/=256;c4p(this,this.buf_);for(V=Q=0;V<5;V++)for(var E=24;E>=0;E-=8)v[Q]=this.chain_[V]>>E&255,++Q;return v};var AMb;var Sy=function(v){var Q=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(w){Q.databaseToken=w},
triggerThrottle:function(){Q.throttledSend()},
cancelThrottle:function(){Q.cancelThrottledSend()},
immediateSend:function(w){return _.e(function(A){return A.yield(Q.immediateSend(w),0)})},
requestWithinAgeLimit:function(w,A){return Q.requestWithinAgeLimit(w,A)},
retryQueuedRequests:function(){Q.retryQueuedRequests()}};
var V;this.throttleTimeout=(V=v.throttleTimeout)!=null?V:100;var E;this.retryMaxAttempts=(E=v.retryMaxAttempts)!=null?E:1;var b;this.requestAgeLimitMs=(b=v.requestAgeLimitMs)!=null?b:2592E6;var F;this.queuedRequestAgeLimitMs=(F=v.queuedRequestAgeLimitMs)!=null?F:12E4;var t;this.retryDelayMs=(t=v.retryDelayMs)!=null?t:5E3;var p;this.databaseToken=(p=v.databaseToken)!=null?p:void 0;this.enableCleaning=!!v.enableCleaning;var Z;this.cleaningRate=(Z=v.cleaningRate)!=null?Z:.1;var d;this.potentialEsfErrorLimit=
(d=v.potentialEsfErrorLimit)!=null?d:10;v.handleError&&(this.handleError=v.handleError);v.handleWarning&&(this.handleWarning=v.handleWarning);v.disableYtIdbTransactions&&(this.disableYtIdbTransactions=v.disableYtIdbTransactions);v.bypassDbTokenDependency&&(this.bypassDbTokenDependency=v.bypassDbTokenDependency);this.getBooleanFlag=v.getBooleanFlag;this.jobManager=v.jobManager;this.logsStore=v.logsStore;this.networkManager=v.networkManager;this.sendFn=v.sendFn;this.onlineEvent=v.onlineEvent;this.offlineEvent=
v.offlineEvent;q7(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&fix(this)},fix=function(v){q7(v)&&!v.disableYtIdbTransactions&&(v.initialized=!0,v.enableCleaning&&Math.random()<=v.cleaningRate&&v.logsStore.cleanLogsStore(v.databaseToken),v.retryQueuedRequests(),v.networkManager.isNetworkAvailable()&&v.throttledSend(),v.networkManager.listen(v.onlineEvent,v.throttledSend.bind(v)),v.networkManager.listen(v.offlineEvent,v.cancelThrottledSend.bind(v)))};
_.K=Sy.prototype;_.K.writeThenSend=function(v,Q){var V=this;Q=Q===void 0?{}:Q;if(q7(this)&&this.initialized){var E={url:v,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(E,this.databaseToken).then(function(b){E.id=b;V.networkManager.isNetworkAvailable()&&V.immediateSend(E)}).catch(function(b){V.immediateSend(E);
GOq(V,b)})}else this.sendFn(v,Q)};
_.K.sendThenWrite=function(v,Q,V){var E=this;Q=Q===void 0?{}:Q;if(q7(this)&&this.initialized){var b={url:v,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(b.skipRetry=V);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!b.skipRetry){if(!b.skipRetry){var F=Q.onError?Q.onError:function(){};
Q.onError=function(t,p){return _.e(function(Z){if(Z.nextAddress==1)return Z.yield(E.logsStore.set(b,E.databaseToken).catch(function(d){GOq(E,d)}),2);
F(t,p);_.q1(Z)})}}this.sendFn(v,Q,b.skipRetry)}else this.logsStore.set(b,this.databaseToken).catch(function(t){E.sendFn(v,Q,b.skipRetry);
GOq(E,t)})}else this.sendFn(v,Q,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&V)};
_.K.sendAndWrite=function(v,Q){var V=this;Q=Q===void 0?{}:Q;if(q7(this)&&this.initialized){var E={url:v,options:Q,timestamp:this.now(),status:"NEW",sendCount:0},b=!1,F=Q.onSuccess?Q.onSuccess:function(){};
E.options.onSuccess=function(t,p){E.id!==void 0?V.logsStore.deleteRequest(E.id,V.databaseToken):b=!0;V.networkManager.networkStatusHint&&V.getBooleanFlag&&V.getBooleanFlag("vss_network_hint")&&V.networkManager.networkStatusHint(!0);F(t,p)};
this.sendFn(E.url,E.options,void 0,!0);this.logsStore.set(E,this.databaseToken).then(function(t){E.id=t;b&&V.logsStore.deleteRequest(E.id,V.databaseToken)}).catch(function(t){GOq(V,t)})}else this.sendFn(v,Q,void 0,!0)};
_.K.throttledSend=function(){var v=this;if(!q7(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v.logsStore.getMostRecentByStatus("NEW",v.databaseToken),2);if(V.nextAddress!=3)return Q=V.yieldResult,Q?V.yield(v.immediateSend(Q),3):(v.cancelThrottledSend(),V.return());v.intervalJob&&(v.intervalJob=0,v.throttledSend());_.q1(V)})},this.throttleTimeout))};
_.K.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.K.immediateSend=function(v){var Q=this,V;return _.e(function(E){switch(E.nextAddress){case 1:if(!q7(Q))throw Error("cd");if(v.id===void 0){E.jumpTo(2);break}return E.yield(Q.logsStore.markAsQueued(v.id,Q.databaseToken),3);case 3:(V=E.yieldResult)||Q.handleWarning(Error("dd"));case 2:if(Q.requestWithinAgeLimit(v,Q.requestAgeLimitMs)){E.jumpTo(4);break}Q.handleWarning(Error("ed"));if(v.id===void 0){E.jumpTo(5);break}return E.yield(Q.logsStore.deleteRequest(v.id,Q.databaseToken),5);case 5:return E.return();
case 4:v.skipRetry||(v=C3V(Q,v));if(!v){E.jumpTo(0);break}if(!v.skipRetry||v.id===void 0){E.jumpTo(8);break}return E.yield(Q.logsStore.deleteRequest(v.id,Q.databaseToken),8);case 8:Q.sendFn(v.url,v.options,!!v.skipRetry),_.q1(E)}})};
var C3V=function(v,Q){if(!q7(v))throw Error("fd");var V=Q.options.onError?Q.options.onError:function(){};
Q.options.onError=function(b,F){var t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:t=cMt(F);(p=f7b(F))&&v.getBooleanFlag&&v.getBooleanFlag("web_enable_error_204")&&v.handleError(Error("gd"),Q.url,F);if(!(v.getBooleanFlag&&v.getBooleanFlag("nwl_consider_error_code")&&t||v.getBooleanFlag&&!v.getBooleanFlag("nwl_consider_error_code")&&v.potentialEsfErrorCounter<=v.potentialEsfErrorLimit)){w.jumpTo(2);break}if(!v.networkManager.sendNetworkCheckRequest){w.jumpTo(3);break}return w.yield(v.networkManager.sendNetworkCheckRequest(),
3);case 3:if(v.networkManager.isNetworkAvailable()){w.jumpTo(2);break}V(b,F);if(!v.getBooleanFlag||!v.getBooleanFlag("nwl_consider_error_code")||((Z=Q)==null?void 0:Z.id)===void 0){w.jumpTo(6);break}return w.yield(v.logsStore.resetRequest(Q.id,v.databaseToken,!1),6);case 6:return w.return();case 2:if(v.getBooleanFlag&&v.getBooleanFlag("nwl_consider_error_code")&&!t&&v.potentialEsfErrorCounter>v.potentialEsfErrorLimit)return w.return();v.potentialEsfErrorCounter++;if(((d=Q)==null?void 0:d.id)===void 0){w.jumpTo(8);
break}return Q.sendCount<v.retryMaxAttempts?w.yield(v.logsStore.resetRequest(Q.id,v.databaseToken,!0,p?!1:void 0),12):w.yield(v.logsStore.deleteRequest(Q.id,v.databaseToken),8);case 12:v.jobManager.addLowPriorityJob(function(){v.networkManager.isNetworkAvailable()&&v.throttledSend()},v.retryDelayMs);
case 8:V(b,F),_.q1(w)}})};
var E=Q.options.onSuccess?Q.options.onSuccess:function(){};
Q.options.onSuccess=function(b,F){var t;return _.e(function(p){if(p.nextAddress==1)return((t=Q)==null?void 0:t.id)===void 0?p.jumpTo(2):p.yield(v.logsStore.deleteRequest(Q.id,v.databaseToken),2);v.networkManager.networkStatusHint&&v.getBooleanFlag&&v.getBooleanFlag("vss_network_hint")&&v.networkManager.networkStatusHint(!0);E(b,F);_.q1(p)})};
return Q};
Sy.prototype.requestWithinAgeLimit=function(v,Q){v=v.timestamp;return this.now()-v>=Q?!1:!0};
Sy.prototype.retryQueuedRequests=function(){var v=this;if(!q7(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(Q){Q&&!v.requestWithinAgeLimit(Q,v.queuedRequestAgeLimitMs)?v.jobManager.addLowPriorityJob(function(){return _.e(function(V){if(V.nextAddress==1)return Q.id===void 0?V.jumpTo(2):V.yield(v.logsStore.resetRequest(Q.id,v.databaseToken),2);v.retryQueuedRequests();_.q1(V)})}):v.networkManager.isNetworkAvailable()&&v.throttledSend()})};
var GOq=function(v,Q){v.writeError&&!v.networkManager.isNetworkAvailable()?v.writeError(Q):v.handleError(Q)},q7=function(v){return!!v.databaseToken||v.bypassDbTokenDependency};var GPT;var qPm={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531};var M0X={},z$S=hF("ServiceWorkerLogsDatabase",{objectStores:(M0X.SWHealthLog={addedAtVersion:1},M0X),shared:!0,upgrade:function(v,Q){Q(1)&&vx(Uf(v,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var j13={},u6S=0;var a7E;var zp=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},F0=function(){if(!zp.instance){var v=_.Q9("yt.networkRequestMonitor.instance")||new zp;
_.Pr("yt.networkRequestMonitor.instance",v);zp.instance=v}return zp.instance};
zp.prototype.requestComplete=function(v,Q){Q&&(this.anyRequestHasSucceeded=!0);v=this.removeParams(v);this.requestMap.get(v)||this.requestMap.set(v,Q)};
zp.prototype.isEndpointCFR=function(v){v=this.removeParams(v);return(v=this.requestMap.get(v))?!1:v===!1&&this.anyRequestHasSucceeded?!0:null};
zp.prototype.removeParams=function(v){return v.split("?")[0]};
zp.prototype.removeParams=zp.prototype.removeParams;zp.prototype.isEndpointCFR=zp.prototype.isEndpointCFR;zp.prototype.requestComplete=zp.prototype.requestComplete;zp.getInstance=F0;var Jf=function(v){_.DO.call(this);var Q=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=v!=null?v:{addLowPriorityJob:function(b,F){return setTimeout(b,F)},
cancelJob:function(b){clearTimeout(b)}};
var V,E;this.isOnline=(E=(V=window.navigator)==null?void 0:V.onLine)!=null?E:!0;this.onNavigatorChange=function(){return _.e(function(b){return b.yield(O7X(Q),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||DSZ(this)};
_.f(Jf,_.DO);Jf.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Jf.instance};
Jf.prototype.isNetworkAvailable=function(){return this.isOnline};
var DSZ=function(v){v.pollingJob=v.jobManager.addLowPriorityJob(function(){var Q;return _.e(function(V){if(V.nextAddress==1)return v.isOnline?((Q=window.navigator)==null?0:Q.onLine)?V.jumpTo(3):V.yield(O7X(v),3):V.yield(O7X(v),3);DSZ(v);_.q1(V)})},3E4)},O7X=function(v,Q){return v.networkRequestPromise?v.networkRequestPromise:v.networkRequestPromise=new Promise(function(V){var E,b,F,t;
return _.e(function(p){switch(p.nextAddress){case 1:return E=window.AbortController?new window.AbortController:void 0,F=(b=E)==null?void 0:b.signal,t=!1,_.GC(p,2,3),E&&(v.abortTimeoutKey=v.jobManager.addLowPriorityJob(function(){E.abort()},Q||2E4)),p.yield(fetch("/generate_204",{method:"HEAD",
signal:F}),5);case 5:t=!0;case 3:_.O_(p);v.networkRequestPromise=void 0;v.abortTimeoutKey&&(v.jobManager.cancelJob(v.abortTimeoutKey),v.abortTimeoutKey=0);t!==v.isOnline&&(v.isOnline=t,v.isOnline?v.dispatchEvent("networkstatus-online"):v.dispatchEvent("networkstatus-offline"));V(t);_.Ra(p,0);break;case 2:_.n$(p),t=!1,p.jumpTo(3)}})})};var N7=function(){_.DO.call(this);var v=this;this.shouldFlushErrors=!1;Jf.instance||(Jf.instance=new Jf(_.XT));this.sharedNetworkStatusManager=Jf.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(v.shouldFlushErrors&&_.Y("offline_error_handling")){var Q=rMt().get("errors",!0);if(Q){for(var V in Q)if(Q[V]){var E=new _.xd(V,"sent via offline_errors");E.name=Q[V].name;E.stack=Q[V].stack;E.level=Q[V].level;_.Ui(E)}rMt().set("errors",{},2592E3,!0)}}})};
_.f(N7,_.DO);var R6x=function(){if(!N7.instance){var v=_.Q9("yt.networkStatusManager.instance")||new N7;_.Pr("yt.networkStatusManager.instance",v);N7.instance=v}return N7.instance};
_.K=N7.prototype;_.K.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.K.networkStatusHint=function(v){this.sharedNetworkStatusManager.isOnline=v};
_.K.getWindowStatus=function(){var v=window.navigator.onLine;return v===void 0?!0:v};
_.K.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.K.listen=function(v,Q){return this.sharedNetworkStatusManager.listen(v,Q)};
_.K.sendNetworkCheckRequest=function(v){v=O7X(this.sharedNetworkStatusManager,v);v.then(function(Q){_.Y("use_cfr_monitor")&&F0().requestComplete("generate_204",Q)});
return v};
N7.prototype.sendNetworkCheckRequest=N7.prototype.sendNetworkCheckRequest;N7.prototype.listen=N7.prototype.listen;N7.prototype.enableErrorFlushing=N7.prototype.enableErrorFlushing;N7.prototype.getWindowStatus=N7.prototype.getWindowStatus;N7.prototype.networkStatusHint=N7.prototype.networkStatusHint;N7.prototype.isNetworkAvailable=N7.prototype.isNetworkAvailable;N7.getInstance=R6x;_.bS=function(v){v=v===void 0?{}:v;_.DO.call(this);var Q=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=R6x();var V=_.Q9("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);V&&(v.rateLimit?(this.rateLimit=v.rateLimit,V("networkstatus-online",function(){nzq(Q,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){nzq(Q,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){Q.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",
function(){Q.dispatchEvent("publicytnetworkstatus-offline")})))};
_.f(_.bS,_.DO);_.bS.prototype.isNetworkAvailable=function(){var v=_.Q9("yt.networkStatusManager.instance.isNetworkAvailable");return v?v.bind(this.nsmInstance)():!0};
_.bS.prototype.networkStatusHint=function(v){var Q=_.Q9("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);Q&&Q(v)};
_.bS.prototype.sendNetworkCheckRequest=function(v){var Q=this,V;return _.e(function(E){V=_.Q9("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Q.nsmInstance);return _.Y("skip_network_check_if_cfr")&&F0().isEndpointCFR("generate_204")?E.return(new Promise(function(b){var F;Q.networkStatusHint(((F=window.navigator)==null?void 0:F.onLine)||!0);b(Q.isNetworkAvailable())})):V?E.return(V(v)):E.return(!0)})};
var nzq=function(v,Q){v.rateLimit?v.lastJobTime?(_.XT.cancelJob(v.schedulerJob),v.schedulerJob=_.XT.addLowPriorityJob(function(){v.lastPublicSignalSent!==Q&&(v.dispatchEvent(Q),v.lastPublicSignalSent=Q,v.lastJobTime=(0,_.wO)())},v.rateLimit-((0,_.wO)()-v.lastJobTime))):(v.dispatchEvent(Q),v.lastPublicSignalSent=Q,v.lastJobTime=(0,_.wO)()):v.dispatchEvent(Q)};var Uf9,xY=function(){Sy.call(this,{logsStore:{cleanLogsStore:qJQ,deleteRequest:l7G,getMostRecentByStatus:DfS,markAsQueued:R$h,resetRequest:nvQ,set:OhG},networkManager:_.vDt(),handleError:function(v,Q,V){var E,b=V==null?void 0:(E=V.error)==null?void 0:E.code;if(b===400||b===415){var F;v=new _.xd(v.message,Q,V==null?void 0:(F=V.error)==null?void 0:F.code);_.V9(v,void 0,void 0,void 0,!0)}else _.Ui(v)},
handleWarning:_.V9,sendFn:HhB,now:_.wO,writeError:$f3,jobManager:_.yX(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.T_("potential_esf_error_limit",10),getBooleanFlag:_.Y,disableYtIdbTransactions:!(_.NY()&&_.QdS())});this.initializationPromise=new _.bK;_.Y("networkless_immediately_drop_all_requests")&&SJ9();fib("LogsDatabaseV2")};
_.f(xY,Sy);_.qxa=function(){var v=_.Q9("yt.networklessRequestController.instance");v||(v=new xY,_.Pr("yt.networklessRequestController.instance",v),_.Y("networkless_logging")&&_.dO().then(function(Q){v.databaseToken=Q;fix(v);v.initializationPromise.resolve();v.enableCleaning&&Math.random()<=v.cleaningRate&&v.databaseToken&&NgB(v.databaseToken);_.Y("networkless_immediately_drop_sw_health_store")&&liN(v)}));
return v};
xY.prototype.writeThenSend=function(v,Q){Q||(Q={});Q=mfS(v,Q);_.NY()||(this.initialized=!1);Sy.prototype.writeThenSend.call(this,v,Q)};
xY.prototype.sendThenWrite=function(v,Q,V){Q||(Q={});Q=mfS(v,Q);_.NY()||(this.initialized=!1);Sy.prototype.sendThenWrite.call(this,v,Q,V)};
xY.prototype.sendAndWrite=function(v,Q){Q||(Q={});Q=mfS(v,Q);_.NY()||(this.initialized=!1);Sy.prototype.sendAndWrite.call(this,v,Q)};
xY.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var liN=function(v){var Q;_.e(function(V){if(!v.databaseToken)throw Q=UG("clearSWHealthLogsDb"),Q;return V.return(xfS(v.databaseToken).catch(function(E){v.handleError(E)}))})};_.EDo=!1;_.VMb=_.bb.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.EDo};_.Pr("ytNetworklessLoggingInitializationOptions",_.VMb);var oy=function(v){var Q=this;this.config_=null;v?this.config_=v:qxr()&&(this.config_=_.kF());_.go(_.XT,function(){yMS(Q)},5E3)};
oy.prototype.isReady=function(){!this.config_&&qxr()&&(this.config_=_.kF());return!!this.config_};
var YJ0=function(v,Q,V,E){!_.r7("VISITOR_DATA")&&Q!=="visitor_id"&&Math.random()<.01&&_.V9(new _.xd("Missing VISITOR_DATA when sending innertube request.",Q,V,E));if(!v.isReady()){var b=new _.xd("innertube xhrclient not ready",Q,V,E);_.Ui(b);throw b;}var F={headers:E.headers||{},method:"POST",postParams:V,postBody:E.postBody,postBodyFormat:E.postBodyFormat||"JSON",onTimeout:function(){E.onTimeout()},
onFetchTimeout:E.onTimeout,onSuccess:function(A,k){if(E.onSuccess)E.onSuccess(k)},
onFetchSuccess:function(A){if(E.onSuccess)E.onSuccess(A)},
onProgress:function(A){if(E.onProgress)E.onProgress(A)},
onError:function(A,k){if(E.onError)E.onError(k)},
onFetchError:function(A){if(E.onError)E.onError(A)},
timeout:E.timeout,withCredentials:!0,compress:E.compress};F.headers["Content-Type"]||(F.headers["Content-Type"]="application/json");var t="";(b=v.config_.innertubeHostOverride)&&(t=b);var p=v.config_.innertubeUseThirdPartyAuth||!1,Z=_.$Sh(p,t,E);Object.assign(F.headers,Z);F.headers.Authorization&&!t&&p&&(F.headers["x-origin"]=window.location.origin);var d=_.iv(t+("/youtubei/"+v.config_.innertubeApiVersion+"/"+Q),{alt:"json"}),w=function(A){A=A===void 0?!1:A;var k;if(E.retry&&t!="www.youtube-nocookie.com"&&
(A||_.Y("skip_ls_gel_retry")||F.headers["Content-Type"]!=="application/json"||(k=kPG(Q,V,Z,p)),k)){var T=F.onSuccess,c=F.onFetchSuccess;F.onSuccess=function(l,S){Tg3(k);T(l,S)};
V.onFetchSuccess=function(l,S){Tg3(k);c(l,S)}}try{if(A&&E.retry&&!E.networklessOptions.bypassNetworkless)F.method="POST",E.networklessOptions.writeThenSend?_.qxa().writeThenSend(d,F):_.qxa().sendAndWrite(d,F);
else if(E.compress){var C=!E.networklessOptions.writeThenSend;if(F.postBody){var R=F.postBody;typeof R!=="string"&&(R=JSON.stringify(F.postBody));LVr(d,R,F,_.D9,C)}else LVr(d,JSON.stringify(F.postParams),F,h9Q,C)}else h9Q(d,F)}catch(l){if(l.name==="InvalidAccessError")k&&(Tg3(k),k=0),_.V9(Error("id"));else throw l;}k&&_.go(_.XT,function(){yMS(v)},5E3)};
_.bxS()?h6b().then(function(A){w(A)}):w(!1)};var G5r=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(G5r,_.Lf);var SxZ=0,KdQ=_.E7?"webkit":_.V2?"moz":_.Q2?"ms":WSN?"o":"";_.Pr("ytDomDomGetNextId",_.Q9("ytDomDomGetNextId")||function(){return++SxZ});var z6R={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},ex=function(v){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(v=
v||window.event){this.event=v;for(var Q in v)Q in z6R||(this[Q]=v[Q]);this.scale=v.scale;this.rotation=v.rotation;var V=v.target||v.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var E=v.relatedTarget;if(E)try{E=E.nodeName?E:null}catch(b){E=null}else this.type=="mouseover"?E=v.fromElement:this.type=="mouseout"&&(E=v.toElement);this.relatedTarget=E;this.clientX=v.clientX!=void 0?v.clientX:v.pageX;this.clientY=v.clientY!=void 0?v.clientY:v.pageY;this.keyCode=v.keyCode?v.keyCode:v.which;
this.charCode=v.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=v.altKey;this.ctrlKey=v.ctrlKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.pageX_=v.pageX;this.pageY_=v.pageY}}catch(b){}},J4V=function(v){if(document.body&&document.documentElement){var Q=document.body.scrollTop+document.documentElement.scrollTop;
v.pageX_=v.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);v.pageY_=v.clientY+Q}};
ex.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
ex.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
ex.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var pp=_.bb.ytEventsEventsListeners||{};_.Pr("ytEventsEventsListeners",pp);var Zxo=_.bb.ytEventsEventsCounter||{count:0};_.Pr("ytEventsEventsCounter",Zxo);var Pd9=_.fo(function(){var v=!1;try{var Q=Object.defineProperty({},"capture",{get:function(){v=!0}});
window.addEventListener("test",null,Q)}catch(V){}return v});_.HZ(Px,_.J5);Px.prototype.onMouseMove_=function(v){v.pageX_===void 0&&J4V(v);var Q=v.pageX_;v.pageY_===void 0&&J4V(v);this.position_=new _.ua(Q,v.pageY_)};
Px.prototype.checkPosition_=function(){if(this.position_){var v=(0,_.wO)();if(this.previousTime_!=0){var Q=this.previousPosition_,V=this.position_,E=Q.x-V.x;Q=Q.y-V.y;E=Math.sqrt(E*E+Q*Q)/(v-this.previousTime_);this.cycles_[this.index_]=Math.abs((E-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(V=Q=0;V<4;V++)Q+=this.cycles_[V]||0;Q>=3&&this.callback_();this.previousVelocity_=E}this.previousTime_=v;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Px.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.dQ9(this.mouseListenerKey_)};var TEQ={};var O_G=new _.FG("rawColdConfigGroup");var M$9=new _.FG("rawHotConfigGroup");var N8N=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(N8N,_.Lf);var f2o=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(f2o,_.Lf);var Bx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v,500)};
_.f(Bx,_.Lf);Bx.prototype.getPayloadCase=function(){return _.wB(this,xSp)};
Bx.prototype.getContext=function(){return _.TY(this,f2o,33)};
var xSp=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var YPT=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(YPT,_.Lf);var IMQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(IMQ,_.Lf);IMQ.prototype.setVideoId=function(v){return np(this,1,HxG,y5(v))};
IMQ.prototype.getPlaylistId=function(){return _.Dg(this,J8(this,HxG,2))};
var HxG=[1,2];var dCh=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(dCh,_.Lf);dCh.prototype.getContext=function(){return _.TY(this,lS,1)};
dCh.prototype.getTier=function(){return _.Gs(this,7)};var B8Z,Yh,yp;B8Z=_.bb.ytPubsubPubsubInstance||new _.ni;Yh=_.bb.ytPubsubPubsubSubscribedKeys||{};yp=_.bb.ytPubsubPubsubTopicToKeys||{};_.Yoh=_.bb.ytPubsubPubsubIsSynchronous||{};_.ni.prototype.subscribe=_.ni.prototype.subscribe;_.ni.prototype.unsubscribeByKey=_.ni.prototype.unsubscribeByKey;_.ni.prototype.publish=_.ni.prototype.publish;_.ni.prototype.clear=_.ni.prototype.clear;_.Pr("ytPubsubPubsubInstance",B8Z);_.Pr("ytPubsubPubsubTopicToKeys",yp);_.Pr("ytPubsubPubsubIsSynchronous",_.Yoh);
_.Pr("ytPubsubPubsubSubscribedKeys",Yh);var Gv=window;var BL=_.Y("web_enable_lifecycle_monitoring")&&Cdo()!==0,gzQ=_.Y("web_enable_lifecycle_monitoring");var sFQ=function(v){var Q=this;var V=V===void 0?0:V;var E=E===void 0?_.yX():E;this.JSC$10966_defaultPriority=V;this.scheduler=E;this.completedResolver=new _.bK;this.scheduledPayloads=v;for(v={i$jscomp$492:0};v.i$jscomp$492<this.scheduledPayloads.length;v={payload$jscomp$20:void 0,i$jscomp$492:v.i$jscomp$492},v.i$jscomp$492++)v.payload$jscomp$20=this.scheduledPayloads[v.i$jscomp$492],V=function(b){return function(){b.payload$jscomp$20.job();Q.scheduledPayloads[b.i$jscomp$492].processed=!0;Q.scheduledPayloads.every(function(F){return F.processed===
!0})&&Q.completedResolver.resolve()}}(v),E=this.getPriority(v.payload$jscomp$20),E=this.scheduler.addJob(V,E),this.scheduledPayloads[v.i$jscomp$492]=Object.assign({},v.payload$jscomp$20,{job:V,
jobId:E})};
sFQ.prototype.flushJobs=function(){var v=this,Q=Array.from(this.scheduledPayloads.keys()).sort(function(E,b){return v.getPriority(v.scheduledPayloads[b])-v.getPriority(v.scheduledPayloads[E])});
Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=this.scheduledPayloads[V.value],V.jobId===void 0||V.processed||(this.scheduler.cancelJob(V.jobId),this.scheduler.addJob(V.job,10))};
sFQ.prototype.cancel=function(){for(var v=_.L(this.scheduledPayloads),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.jobId===void 0||Q.processed||this.scheduler.cancelJob(Q.jobId),Q.processed=!0;this.completedResolver.resolve()};
sFQ.prototype.getPriority=function(v){var Q;return(Q=v.priority)!=null?Q:this.JSC$10966_defaultPriority};var ge=function(v){this.state=v;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};BL&&MMG(this.state)};
ge.prototype.install=function(v){this.plugins.push(v);return this};
ge.prototype.uninstall=function(){var v=this;_.aE.apply(0,arguments).forEach(function(Q){Q=v.plugins.indexOf(Q);Q>-1&&v.plugins.splice(Q,1)})};
ge.prototype.transition=function(v,Q){var V=this;BL&&Ox0(this.state);var E=this.transitions.find(function(F){return Array.isArray(F.from)?F.from.find(function(t){return t===V.state&&F.to===v}):F.from===V.state&&F.to===v});
if(E){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);ugQ(this,v,Q);this.state=v;BL&&MMG(this.state);E=E.action.bind(this);var b=this.plugins.filter(function(F){return F[v]}).map(function(F){return F[v]});
E(jFQ(this,b),Q)}else throw Error("jd`"+this.state+"`"+v);};
var jFQ=function(v,Q){var V=Q.filter(function(b){return W5X(v,b)===10}),E=Q.filter(function(b){return W5X(v,b)!==10});
return v.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var b=_.aE.apply(0,arguments);return _.e(function(F){if(F.nextAddress==1)return F.yield(v.runImmediateJobsAsync.apply(v,[V].concat(_.ui(b))),2);v.setJobSetWithScheduledJobs.apply(v,[E].concat(_.ui(b)));_.q1(F)})}:function(){var b=_.aE.apply(0,arguments);
v.runImmediateJobsSync.apply(v,[V].concat(_.ui(b)));v.setJobSetWithScheduledJobs.apply(v,[E].concat(_.ui(b)))}};
ge.prototype.runImmediateJobsSync=function(v){var Q=_.aE.apply(1,arguments);_.yX();for(var V=_.L(v),E=V.next(),b={};!E.done;b={lifecycle$jscomp$2:void 0},E=V.next())b.lifecycle$jscomp$2=E.value,Hg(function(F){return function(){ozQ(F.lifecycle$jscomp$2.name);R19(function(){return F.lifecycle$jscomp$2.callback.apply(F.lifecycle$jscomp$2,_.ui(Q))});
sC(F.lifecycle$jscomp$2.name)}}(b))};
ge.prototype.runImmediateJobsAsync=function(v){var Q=_.aE.apply(1,arguments),V,E,b,F;return _.e(function(t){t.nextAddress==1&&(_.yX(),V=_.L(v),E=V.next(),b={});if(t.nextAddress!=3){if(E.done)return t.jumpTo(0);b.lifecycle$jscomp$3=E.value;b.asyncJobCompletion=void 0;F=function(p){return function(){ozQ(p.lifecycle$jscomp$3.name);var Z=R19(function(){return p.lifecycle$jscomp$3.callback.apply(p.lifecycle$jscomp$3,_.ui(Q))});
ySa(Z)?p.asyncJobCompletion=_.Y("web_lifecycle_error_handling_killswitch")?Z.then(function(){sC(p.lifecycle$jscomp$3.name)}):Z.then(function(){sC(p.lifecycle$jscomp$3.name)},function(d){DQT(d);
sC(p.lifecycle$jscomp$3.name)}):sC(p.lifecycle$jscomp$3.name)}}(b);
Hg(F);return b.asyncJobCompletion?t.yield(b.asyncJobCompletion,3):t.jumpTo(3)}b={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};E=V.next();return t.jumpTo(2)})};
ge.prototype.setJobSetWithScheduledJobs=function(v){var Q=_.aE.apply(1,arguments),V=this,E=v.map(function(b){return{job:function(){ozQ(b.name);R19(function(){return b.callback.apply(b,_.ui(Q))});
sC(b.name)},
priority:W5X(V,b)}});
E.length&&(this.jobSet=new sFQ(E))};
var W5X=function(v,Q){var V,E;return(E=(V=v.overridePriority)!=null?V:Q.priority)!=null?E:0},ozQ=function(v){BL&&v&&MMG(v)},sC=function(v){BL&&v&&Ox0(v)},ugQ=function(v,Q,V){gzQ&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+v.constructor.name+"] '"+v.state+"' to '"+Q+"'"),console.log("with message: ",V),console.groupEnd())};
_.hr.Object.defineProperties(ge.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var XBR=function(v){ge.call(this,v===void 0?"none":v);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},aiQ;
_.f(XBR,ge);XBR.prototype.runApplicationNavigationBegin=function(v,Q){var V=this;this.navigationTimer=_.go(_.XT,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3);
v(Q==null?void 0:Q.event)};
XBR.prototype.runApplicationNavigationEnd=function(v,Q){this.navigationTimer&&(_.XT.cancelJob(this.navigationTimer),this.navigationTimer=null);v(Q==null?void 0:Q.event)};
_.CPB=function(){aiQ||(aiQ=new XBR);return aiQ};var Grt=[];_.Pr("yt.logging.transport.getScrapedGelPayloads",function(){return Grt});var Cp=function(){var v=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return v.totalEntries}}};
Cp.prototype.storePayload=function(v,Q){v=nDo(v);this.store[v]?this.store[v].push(Q):(this.memoizedKeySequences={},this.store[v]=[Q]);this.totalEntries++;_.Y("more_accurate_gel_parser")&&(Q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Q));return v};
Cp.prototype.smartExtractMatchingEntries=function(v){if(!v.keys.length)return[];for(var Q=r4a(this,v.keys.splice(0,1)[0]),V=[],E=0;E<Q.length;E++)this.store[Q[E]]&&v.sizeLimit&&(this.store[Q[E]].length<=v.sizeLimit?(V.push.apply(V,_.ui(this.store[Q[E]])),delete this.store[Q[E]]):V.push.apply(V,_.ui(this.store[Q[E]].splice(0,v.sizeLimit))));this.totalEntries-=V.length;(v==null?0:v.sizeLimit)&&V.length<(v==null?void 0:v.sizeLimit)&&(v.sizeLimit-=V.length,V.push.apply(V,_.ui(this.smartExtractMatchingEntries(v))));
return V};
Cp.prototype.extractMatchingEntries=function(v){v=r4a(this,v);for(var Q=[],V=0;V<v.length;V++)this.store[v[V]]&&(Q.push.apply(Q,_.ui(this.store[v[V]])),delete this.store[v[V]]);this.totalEntries-=Q.length;return Q};
Cp.prototype.getSequenceCount=function(v){v=r4a(this,v);for(var Q=0,V=0;V<v.length;V++){var E=void 0;Q+=((E=this.store[v[V]])==null?void 0:E.length)||0}return Q};
var r4a=function(v,Q){var V=nDo(Q);if(v.memoizedKeySequences[V])return v.memoizedKeySequences[V];var E=Object.keys(v.store)||[];if(E.length<=1&&nDo(Q)===E[0])return E;for(var b=[],F=0;F<E.length;F++){var t=E[F].split("/");if($SN(Q.auth,t[0])){var p=Q.isJspb;$SN(p===void 0?"undefined":p?"true":"false",t[1])&&$SN(Q.cttAuthInfo,t[2])&&(p=Q.tier,p=p===void 0?"undefined":JSON.stringify(p),$SN(p,t[3])&&b.push(E[F]))}}return v.memoizedKeySequences[V]=b},$SN=function(v,Q){return v===void 0||v==="undefined"?
!0:v===Q};
Cp.prototype.getSequenceCount=Cp.prototype.getSequenceCount;Cp.prototype.extractMatchingEntries=Cp.prototype.extractMatchingEntries;Cp.prototype.smartExtractMatchingEntries=Cp.prototype.smartExtractMatchingEntries;Cp.prototype.storePayload=Cp.prototype.storePayload;var K0G,b_h,i_0,DW,Iiq,l1Q,nWQ,EW9,V$o,oD0,F0T,csG,UQm;K0G=_.T_("initial_gel_batch_timeout",2E3);b_h=_.T_("gel_queue_timeout_max_ms",6E4);i_0=_.T_("gel_min_batch_size",5);DW=void 0;Iiq=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
l1Q=new Iiq;nWQ=new Iiq;EW9=new Iiq;V$o=new Iiq;F0T=!0;csG=1;_.ysb=new Map;UQm=_.bb.ytLoggingTransportTokensToCttTargetIds_||{};_.Pr("ytLoggingTransportTokensToCttTargetIds_",UQm);var mQS=_.bb.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Pr("ytLoggingTransportTokensToJspbCttTargetIds_",mQS);var O0={};var jx=_.bb.ytLoggingGelSequenceIdObj_||{};_.Pr("ytLoggingGelSequenceIdObj_",jx);var zgQ=[];var a1Z=new Set,gWE=0,I13=0,$C3=0,uK3=[],sJr=[],H_Z=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var pwh=function(){};
pwh.prototype.getUrl=function(v,Q){Q=Q===void 0?!1:Q;return v.hasOwnProperty("shareEndpoint")?null:_.Q7Q(v,null,Q)};
var cKT=function(v,Q,V){v={endpoint:Q,actions:[]};V=(V.path?V.path[0]:V.target).icon||"";Q=V.indexOf(":");Q>0&&(V=V.substr(Q+1));V&&v.actions.push(V);return v};var i4Z=/Command$/,KCt=/Endpoint$/,El3=new Map;var H78,mSZ;H78=1;_.KW=function(){this.actionRoutingMap=new Map};
_.KW.prototype.triggerAction=function(v){var Q=new VhZ(v,!1,_.aE.apply(1,arguments));this.handleAction(Q);return Q.returnValue};
_.KW.prototype.triggerOptionalAction=function(v){var Q=new VhZ(v,!0,_.aE.apply(1,arguments));this.handleAction(Q);return Q.returnValue};
_.uN=function(v,Q,V){Q.forEach(function(E){var b=FCm(E);b&&v.triggerOptionalAction(b,E,V,void 0)})};
_.KW.prototype.handleAction=function(v){var Q=this.actionRoutingMap.get(v.actionName);Q&&mSZ(v,Q);v.optionalAction||v.returnValue.length!==0||(v=new _.xd("Unhandled action",v.actionName),_.V9(v))};
mSZ=function(v,Q){Q.forEach(function(V){var E=null;V?E=V.apply(null,v.args):(V=Error("kd"),V.params=v.actionName,_.Ui(V));v.returnValue.push(E)})};
_.iM=function(v,Q,V){V||(V=H78++);for(var E=_.L(Object.keys(Q)),b=E.next();!b.done;b=E.next()){b=b.value;var F=v.actionRoutingMap.get(b);F||(F=new Map,v.actionRoutingMap.set(b,F));v.registerActionHandler(V,b,Q[b],F)}return V};
_.KW.prototype.registerActionHandler=function(v,Q,V,E){E.set(v,_.v5(V))};
_.LW=function(v,Q,V){Q=_.L(Object.keys(Q));for(var E=Q.next();!E.done;E=Q.next())(E=v.actionRoutingMap.get(E.value))&&E.delete(V)};
_.$G(_.KW);var POE=function(v,Q){var V=_.KW.getInstance();_.jg(function(){var E={},b=_.iM(V,(E[v]=Q,E));_.j_(function(){var F={};_.LW(V,(F[v]="",F),b)})})};var MeZ=Symbol("md");Ar0=H2G;var nlt=new Set(["For","If","Match","Watch"]),USa={},vNZ=(USa[m$.default]=function(){return pEh},USa.style=function(){return pEh},USa),QOx;
for(QOx in vNZ)ZQ.attributes[QOx]=vNZ[QOx](ZQ.attributes[QOx]);var Aq=new _.KB("VISIBILITY_OBSERVER");var s7G={retrieve:function(v){return this.id.\u0275prov.token===v.\u0275prov.token?this.contextValue:this?_.ta(this,this.id):kYo}};var vBQ=function(v,Q,V){if(v!==kwB)return!1;v=GwZ(document.createElement("div"),function(){var E=A1(!1);try{V[0]()}finally{A1(E)}});
v=Array.from(v.childNodes);v.length===1&&(v=v[0]);return v};var VVa=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(v){}var ENx=typeof WeakRef==="function";var bF8=function(v){this.value=v};
bF8.prototype.deref=function(){return this.value};
var F9p=ENx?WeakRef:bF8,K9V=function(v){this.newKeyHandler=v;this.map=new WeakMap};
K9V.prototype.add=function(v,Q){this.map.has(v)||(this.newKeyHandler(v),this.map.set(v,[]));this.map.get(v).push(new F9p(Q))};
K9V.prototype.get=function(v){var Q=this;return function E(){var b,F,t,p,Z,d,w,A,k,T,c;return _.E$(E,function(C){switch(C.nextAddress){case 1:_.DV(C,2);b=Q.map.get(v);if(!b)return C.return();F=0;t=_.L(b);p=t.next();case 4:if(p.done){C.jumpTo(6);break}Z=p.value;d=Z.deref();if(!d){C.jumpTo(5);break}F++;w=_.bJ;return C.yield(d,8);case 8:w(C.yieldResult);case 5:p=t.next();C.jumpTo(4);break;case 6:if(2*F<b.length){A=0;k=_.L(b);for(T=k.next();!T.done;T=k.next())c=T.value,c.deref()&&(b[A++]=c);b.length=
A}case 2:_.O_(C),_.Ra(C,0)}})}()};var iFp=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},r2b=new K9V(function(v){v.addEventListener("abort",Iz0,{once:!0})}),azh=new WeakMap,L9x=function(v){v=v===void 0?jy:v;
this.signal=new v};
L9x.prototype.abort=function(v){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=v,v=new Event("abort"),this.signal.dispatchEvent(v))};
var jy=function(){this.target=iFp();this.aborted=!1;this.onabort=null};
jy.prototype.throwIfAborted=function(){XwZ.call(this)};
jy.prototype.addEventListener=function(v,Q,V){this.target.addEventListener(v,Q,V)};
jy.prototype.removeEventListener=function(v,Q,V){this.target.removeEventListener(v,Q,V)};
jy.prototype.dispatchEvent=function(v){if(this.onabort&&v.type==="abort")this.onabort(v);return this.target.dispatchEvent(v)};
jy.abort=olB;jy.timeout=H4E;jy.any=$J3;var WCt=VVa?AbortController:L9x,WL=VVa?AbortSignal:jy;typeof WL.abort!=="function"&&(WL.abort=olB);typeof WL.prototype.throwIfAborted!=="function"&&(WL.prototype.throwIfAborted=XwZ);typeof WL.any!=="function"&&(WL.any=$J3);typeof WL.timeout!=="function"&&(WL.timeout=H4E);var T7=null,UJm=new Map;var tVQ=function(v){v=v.clone();DFx(v);OM(v,"dg",null);OM(v,"d","0");G7p(v,null);CMx(v,null);return v},pHV=!0,e2x=function(v,Q,V){var E=V===void 0?{}:V;
V=E.cssRowKey===void 0?void 0:E.cssRowKey;var b=E.combinedSignature===void 0?void 0:E.combinedSignature;var F=E.extraEdges===void 0?void 0:E.extraEdges;E=E.callback===void 0?void 0:E.callback;OM(v,"m",Q.join(","));F&&OWZ(v,F);V&&(OM(v,"ck",V),b?OM(v,"rs",b):pHV&&(pHV=!1));if(E){if(E!=null&&!leA.test(E))throw Error("Xa`"+E);OM(v,"cb",E)}v=v.toString();_.KE(v,"/")&&(v=KeN(document.location.href)+v);return _.lV(v)};var PKa=function(v){return ZFZ(v).then(function(Q){return JSON.parse(Q.responseText)})},ZFZ=function(v){var Q={},V=Q.xmlHttpFactory?Q.xmlHttpFactory.createInstance():XUA.createInstance();
return(new _.Ry(function(E,b){var F;try{V.open("GET",v,!0)}catch(Z){b(new oH("Error opening XHR: "+Z.message,v,V))}V.onreadystatechange=function(){if(V.readyState==4){_.bb.clearTimeout(F);var Z;!(Z=obx(V.status))&&(Z=V.status===0)&&(Z=Fex(v),Z=!(Z=="http"||Z=="https"||Z==""));Z?E(V):b(new d2a(V.status,v,V))}};
V.onerror=function(){b(new oH("Network error",v,V))};
if(Q.headers)for(var t in Q.headers){var p=Q.headers[t];p!=null&&V.setRequestHeader(t,p)}Q.withCredentials&&(V.withCredentials=Q.withCredentials);Q.responseType&&(V.responseType=Q.responseType);Q.mimeType&&V.overrideMimeType(Q.mimeType);Q.timeoutMs>0&&(F=_.bb.setTimeout(function(){V.onreadystatechange=function(){};
V.abort();b(new h2A(v,V))},Q.timeoutMs));
try{V.send(null)}catch(Z){V.onreadystatechange=function(){},_.bb.clearTimeout(F),b(new oH("Error sending XHR: "+Z.message,v,V))}})).thenCatch(function(E){E instanceof _.lA&&V.abort();
throw E;})},oH=function(v,Q,V){_.Vo.call(this,v+", url="+Q);
this.url=Q;this.xhr=V};
_.HZ(oH,_.Vo);oH.prototype.name="XhrError";var d2a=function(v,Q,V){oH.call(this,"Request Failed, status="+v,Q,V);this.status=v};
_.HZ(d2a,oH);d2a.prototype.name="XhrHttpError";var h2A=function(v,Q){oH.call(this,"Request timed out",v,Q)};
_.HZ(h2A,oH);h2A.prototype.name="XhrTimeoutError";r3=r3||{};var XG=function(){_.J5.call(this)};
_.HZ(XG,_.J5);XG.prototype.initialize=function(){};var wHN=function(v,Q){this.fn_=v;this.handler_=Q};
wHN.prototype.execute=function(v){this.fn_&&(this.fn_.call(this.handler_||null,v),this.fn_=this.handler_=null)};
wHN.prototype.abort=function(){this.handler_=this.fn_=null};var aH=function(v,Q){_.J5.call(this);this.deps_=v;this.JSC$11121_id_=Q;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.HZ(aH,_.J5);aH.prototype.moduleConstructor_=XG;aH.prototype.module_=null;aH.prototype.getId=function(){return this.JSC$11121_id_};
aH.prototype.registerCallback=function(v,Q){return re(this.onloadCallbacks_,v,Q)};
var An8=function(v,Q){re(v.onErrorCallbacks_,Q)},re=function(v,Q,V){Q=new wHN(Q,V);
v.push(Q);return Q};
aH.prototype.isLoaded=function(){return!!this.module_};
aH.prototype.onLoad=function(v){var Q=new this.moduleConstructor_;Q.initialize(v());this.module_=Q;Q=(Q=kAV(this.earlyOnloadCallbacks_,v()))||kAV(this.onloadCallbacks_,v());Q||(this.onErrorCallbacks_.length=0);return Q};
aH.prototype.onError=function(v){(v=kAV(this.onErrorCallbacks_,v))&&Fr(Error("rd`"+v));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var kAV=function(v,Q){for(var V=[],E=0;E<v.length;E++)try{v[E].execute(Q)}catch(b){Fr(b),V.push(b)}v.length=0;return V.length?V:null};
aH.prototype.disposeInternal=function(){aH.superClass_.disposeInternal.call(this);_.t5(this.module_)};var THX,CKp,fl8,GAA,ynV,cna,nNa,D2N,R2R;
_.yi=function(v,Q,V,E,b){E=E===void 0?!1:E;b=b===void 0?!1:b;var F=F===void 0?!0:F;this.scsReferenceUrl_=set(_.Sc(v).toString(),F);this.cssRowKey_=Q;this.combinedSignature_=V;this.useNegativeLoading_=E;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(v=Mk(this.scsReferenceUrl_,"excm"))?v.split(","):[];this.shouldScanForCss_=b;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;uT3();_.$Y(this,MzS(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
THX=function(v,Q){if(Q.href||Q.getAttribute("data-href"))if(Q=Q.href||Q.getAttribute("data-href"),NOQ(Q)&&!set(Q).urlPrefix_.endsWith("_/js/")){Q=MzS(set(Q));Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,v.loadedCssModuleList_.includes(V)||v.loadedCssModuleList_.push(V)}};
_.yi.prototype.JSC$11126_loadModules=function(v,Q,V){var E=V===void 0?{}:V;Q=E.extraEdges;V=E.onError;var b=E.onSuccess;E=E.forceReload;if(!v)throw Error("sd");if(this.shouldScanForCss_){for(var F=_.L(document.getElementsByTagName("style")),t=F.next();!t.done;t=F.next())THX(this,t.value);F=_.L(document.getElementsByTagName("link"));for(t=F.next();!t.done;t=F.next())THX(this,t.value)}YpR(this,ynV(this,v),Q,V,b,E)};
var YpR=function(v,Q,V,E,b,F){E=E===void 0?function(){}:E;
b=b===void 0?function(){}:b;
F=F===void 0?!1:F;cna(v,Q,function(t,p,Z){Z=Z===void 0?p:Z;v.enableFallbackFetch&&F?v.loadWithFetch(t,p,E,b,Z):v.load(t,p,E,b,Z,V)},V)||E(-1)};
_.yi.prototype.loadWithFetch=function(){_.e(function(){throw Error("td");})};
_.yi.prototype.maybeSetAdditionalFields=function(){};
CKp=function(v,Q,V){if(v.useNegativeLoading_){var E=v.scsReferenceUrl_;v={cssRowKey:v.cssRowKey_,combinedSignature:v.combinedSignature_,extraEdges:V,requestedModuleIds:fl8(v),requestedCssModuleIds:GAA(v)};var b=v===void 0?{}:v;v=b.requestedModuleIds===void 0?[]:b.requestedModuleIds;V=b.requestedCssModuleIds===void 0?[]:b.requestedCssModuleIds;var F=b.cssRowKey===void 0?void 0:b.cssRowKey;var t=b.combinedSignature===void 0?void 0:b.combinedSignature;var p=b.extraEdges===void 0?void 0:b.extraEdges;
b=b.callback===void 0?void 0:b.callback;E=tVQ(E);OM(E,"d","1");G7p(E,v);CMx(E,V);Q=e2x(E,Q,{cssRowKey:F,combinedSignature:t,extraEdges:p,callback:b})}else E=v.scsReferenceUrl_,v={cssRowKey:v.cssRowKey_,combinedSignature:v.combinedSignature_,requestedModuleIds:fl8(v),requestedCssModuleIds:GAA(v)},p=v===void 0?{}:v,v=p.requestedCssModuleIds===void 0?[]:p.requestedCssModuleIds,V=p.cssRowKey===void 0?void 0:p.cssRowKey,F=p.combinedSignature===void 0?void 0:p.combinedSignature,t=p.extraEdges===void 0?
void 0:p.extraEdges,p=p.callback===void 0?void 0:p.callback,E=tVQ(E),CMx(E,v),Q=e2x(E,Q,{cssRowKey:V,combinedSignature:F,extraEdges:t,callback:p});return Q};
_.$Y=function(v,Q){for(var V=!1,E=[],b=0;b<Q.length;++b){var F=Q[b];v.requestedModuleMap_[F]||(v.requestedModuleMap_[F]=!0,v.requestedModuleList_.push(F),V=!0,E.push(F))}V&&(v.requestedModuleListSorted_=!1)};
_.IH=function(v,Q){for(var V=[],E=0;E<Q.length;++E){var b=Q[E];v.requestedModuleMap_[b]&&(delete v.requestedModuleMap_[b],_.ub(v.requestedModuleList_,b),V.push(b))}};
_.yi.prototype.load=function(v,Q,V,E,b){b=b===void 0?Q:b;_.Sc(v);var F=this.useCors_,t=this.corsMode_,p=this.fetchPriority,Z=_.RD("SCRIPT");_.L$(Z,v);F&&(Z.crossOrigin=t);Z.async=!1;p&&Z.setAttribute("fetchpriority",p);_.$Y(this,Q);_.MVa(this,v,Z,Q,V,E,b)};
_.MVa=function(v,Q,V,E,b,F,t){t=t===void 0?E:t;v.lastScript_=V;v.insertPos.insertBefore(V,v.insertPos.firstChild);_.OFN(V,E,function(){V.parentElement.removeChild(V);v.lastScript_==V&&(v.lastScript_=null);F()},function(p){V.parentElement.removeChild(V);
v.lastScript_==V&&(v.lastScript_=null);_.IH(v,p);v.pendingModuleGraphUpdate_?v.pendingModuleGraphUpdate_.then(function(){b(-1,Q)}):b(-1,Q)},t)};
_.OFN=function(v,Q,V,E,b){b=b===void 0?Q:b;var F=Q.length,t=function(){F=0;v.onload=null;v.onerror=null;p=function(){}},p=function(){t();
var d=b.filter(function(w){return!jK().getModuleInfo(w).isLoaded()});
d.length!==0?E(d,"Response was successful but was missing module(s) "+d+"."):V()},Z=function(){F--;
F==0&&p()};
Q.forEach(function(d){d=jK().getModuleInfo(d);d.isLoaded()?Z():(re(d.earlyOnloadCallbacks_,Z),An8(d,Z))});
v.onload=function(){return p()};
v.onerror=function(){t();E(Q)}};
fl8=function(v){v.requestedModuleListSorted_||(v.requestedModuleListSorted_=!0,v.requestedModuleList_.sort());return v.requestedModuleList_};
GAA=function(v){v=v.loadedCssModuleList_;v.sort();return v};
ynV=function(v,Q){return Q.filter(function(V){return!v.requestedModuleMap_[V]})};
cna=function(v,Q,V,E){if(v.pendingModuleGraphUpdate_)return v.pendingModuleGraphUpdate_.then(function(){cna(v,Q,V,E)}),!0;
if(!v.useNegativeLoading_){var b=[],F=Object.assign({},v.requestedModuleMap_);D2N(v,Q,function(w){b.push(w.getId())},E,function(w){return!w.isLoaded()},F);
Q=b}for(F=0;F<Q.length;){for(var t=Q.length-F,p=F==0?Q:Q.slice(F,Q.length),Z=CKp(v,p,E),d=_.Sc(Z).toString();d.length>v.urlMaxLength;)if(t>1)t-=Math.ceil((d.length-v.urlMaxLength)/6),t=Math.max(t,1),p=Q.slice(F,F+t),Z=CKp(v,p,E),d=_.Sc(Z).toString();else return v.useNegativeLoading_?(v.useNegativeLoading_=!1,v.pendingModuleGraphUpdate_=R2R(v).then(function(w){nNa(v,w,E)}),cna(v,Q.slice(F),V,E)):!1;
F+=t;v.useNegativeLoading_?V(Z,p):V(Z,p,F===Q.length?Q:[])}return!0};
nNa=function(v,Q,V){jK().setAllModuleInfoString((Q||{}).moduleGraph);D2N(v,fl8(v),function(E){_.$Y(v,[E.getId()])},V);
v.pendingModuleGraphUpdate_=null};
D2N=function(v,Q,V,E,b,F){F=F===void 0?{}:F;var t=jK();Q=_.L(Q);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;var Z=t.getModuleInfo(p);if(!(F[p]||b&&!b(Z))){F[p]=!0;var d=Z.deps_||[];if(E){var w=[];E[p]&&(w=Object.keys(E[p]));d=d.concat(w)}D2N(v,d,V,E,b,F);V(Z)}}};
R2R=function(v){v=v.scsReferenceUrl_.clone();DFx(v);OM(v,"dg",null);OM(v,"md","1");return PKa(v.toString())};var QIS=new Uint8Array(123);var llV=[];var qpN=function(){this.JSC$10134_loader_=null};
_.K=qpN.prototype;_.K.setBatchModeEnabled=function(){};
_.K.setAllModuleInfoString=function(){};
_.K.addExtraEdge=function(){throw Error("ud");};
_.K.removeExtraEdge=function(){throw Error("vd");};
_.K.getModuleContext=function(){return null};
_.K.isActive=function(){return!1};
_.K.isUserActive=function(){return!1};
_.K.registerInitializationCallback=function(){};
_.K.registerCallback=function(){};var HL=function(v,Q,V,E,b){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.name="ModuleLoadFailure";this.type=v;this.status=Q;this.requestedModuleIds=V;this.url=E;this.cause=b;this.message=this.toString()};
_.f(HL,Error);HL.prototype.toString=function(){return Sp8(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Sp8=function(v){switch(v.type){case HL.Type.UNAUTHORIZED:return"Unauthorized";case HL.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case HL.Type.TIMEOUT:return"Timed out";case HL.Type.OLD_CODE_GONE:return"Out of date module id";case HL.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+v.type}};
r3.ModuleLoadFailure=HL;r3.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var mK=function(){this.moduleIds_=this.JSC$10134_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11139_extraEdges_={};this.JSC$11139_callbackMap_={};this.JSC$11139_currentlyLoadingModule_=this.baseModuleInfo_=new aH([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new m_;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.HZ(mK,qpN);var z2Q=function(v,Q){_.Vo.call(this,"Error loading "+v+": "+Q)};
_.HZ(z2Q,_.Vo);mK.prototype.setBatchModeEnabled=function(v){this.batchModeEnabled_=v};
mK.prototype.setAllModuleInfoString=function(v,Q){if(!(this instanceof mK))this.setAllModuleInfoString(v,Q);else if(typeof v==="string"){if(v.startsWith("d$")){v=v.substring(2);for(var V=[],E=0,b=v.indexOf("/"),F=0,t=!1,p=0;;){var Z=t?v.substring(F):v.substring(F,b);if(Z.length===0)E++,F="sy"+E.toString(36),Z=[];else{var d=Z.indexOf(":");if(d<0)F=Z,Z=[];else if(d===Z.length-1)F=Z.substring(0,d),Z=Array(V[p-1]);else{F=Z.substring(0,d);Z=Z.substring(d+1).split(",");d=p;for(var w=0;w<Z.length;w++)d-=
Z[w].length===0?1:Number(Z[w]),Z[w]=V[d]}d=0;if(F.length===0)d=1;else if(F.charAt(0)==="+"||F.charAt(0)==="-")d=Number(F);d!==0&&(E+=d,F="sy"+E.toString(36))}V.push(F);JnA(this,F,Z);if(t)break;F=b+1;b=v.indexOf("/",F);b===-1&&(t=!0);p++}this.moduleIds_=V}else if(v.startsWith("p$"))NHN(this,v);else{v=v.split("/");V=[];for(E=0;E<v.length;E++){p=v[E].split(":");b=p[0];t=[];if(p[1])for(t=p[1].split(","),p=0;p<t.length;p++)t[p]=V[parseInt(t[p],36)];V.push(b);JnA(this,b,t)}this.moduleIds_=V}Q&&Q.length?
(_.oh(this.loadingModuleIds_,Q),this.lastInitialModuleId_=_.z0(Q)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11139_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11139_currentlyLoadingModule_=null,(Q=this.baseModuleInfo_.onLoad((0,_.Nz)(this.getModuleContext,this)))&&Q.length&&x2R(this,new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,Q[0])),UC(this))}};
var NHN=function(v,Q){var V=Q.substring(2);for(Q=0;Q<64;Q++)QIS["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(Q)]=Q;var E={buf:V,pos:0};Y0(E);var b=Y0(E),F=Y0(E)+1;Q=Array(b);var t=Array(b),p=Array(b);F=Array(F);var Z=0,d=0,w=E.pos,A=E.buf.indexOf("|",E.pos);E.pos=A+1;for(A=0;A<b;A++){var k=Y0(E),T=k&2,c=k&1;k>>>=2;c?(Z+=k>>>1^-(k&1),k="sy"+Z.toString(36)):(c=w,w+=k,k=V.substring(c,w));Q[A]=k;T&&(F[d++]=k)}F[d]="";E.pos++;d=b&-2;V=b&1;for(Z=0;Z<d;Z+=2)w=Vi0(E),p[Z]=
w&7,p[Z+1]=w>>>3&7;V&&(V=Vi0(E),p[d]=V&7);E.pos++;for(d=0;d<b;d++)p[d]===7&&(p[d]=Y0(E));E.pos++;for(V=d=0;V<b;V++){Z=p[V];w=Z===0?llV:Array(Z);t[V]=w;A=d;for(T=0;T<Z;T++)A-=Y0(E),w[T]=F[A];F[d]===Q[V]&&d++}for(E=0;E<Q.length;E++)JnA(v,Q[E],t[E]);v.moduleIds_=Q};
_.K=mK.prototype;_.K.getModuleInfo=function(v){return this.moduleInfoMap[v]};
_.K.addExtraEdge=function(v,Q){var V=this.getModuleInfo(v);V&&V.isLoaded()?this.load(Q):(this.JSC$11139_extraEdges_[v]||(this.JSC$11139_extraEdges_[v]={}),this.JSC$11139_extraEdges_[v][Q]=!0)};
_.K.removeExtraEdge=function(v,Q){if(this.JSC$11139_extraEdges_[v]){delete this.JSC$11139_extraEdges_[v][Q];for(var V in this.JSC$11139_extraEdges_[v])return;delete this.JSC$11139_extraEdges_[v]}};
_.K.isActive=function(){return this.loadingModuleIds_.length>0};
_.K.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var UC=function(v){var Q=v.lastActive_,V=v.isActive();V!=Q&&(v.executeCallbacks_(V?"active":"idle"),v.lastActive_=V);Q=v.isUserActive();Q!=v.userLastActive_&&(v.executeCallbacks_(Q?"userActive":"userIdle"),v.userLastActive_=Q)},JnA=function(v,Q,V){v.moduleInfoMap[Q]?(v=v.moduleInfoMap[Q].deps_,v!=V&&v.splice.apply(v,[0,
v.length].concat(_.ui(V)))):v.moduleInfoMap[Q]=new aH(V,Q)},gNV=function(v,Q,V){var E=[];
zTo(Q,E);Q=[];for(var b={},F=0;F<E.length;F++){var t=E[F],p=v.getModuleInfo(t);if(!p)throw Error("wd`"+t);var Z=new m_;b[t]=Z;p.isLoaded()?Z.callback(null):(BHa(v,t,p,!!V,Z),v.isModuleLoading(t)||Q.push(t))}Q.length>0&&(v.loadingModuleIds_.length===0?v.loadModules_(Q):(v.requestedModuleIdsQueue_.push(Q),UC(v)));return b},BHa=function(v,Q,V,E,b){V.registerCallback(b.callback,b);
An8(V,function(F){b.errback(new z2Q(Q,F))});
v.isModuleLoading(Q)?E&&(sOQ(v,Q),UC(v)):E&&sOQ(v,Q)};
mK.prototype.loadModules_=function(v,Q,V){var E=this;Q||(this.consecutiveFailures_=0);var b=upa(this,v);this.loadingModuleIds_=b;this.requestedLoadingModuleIds_=this.batchModeEnabled_?v:_.jZ(b);UC(this);if(b.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,b);v=this.JSC$10134_loader_;if(!v)throw Error("xd");if(Object.keys(this.JSC$11139_extraEdges_).length>0&&!v.supportsExtraEdges)throw Error("yd");V=(0,_.Nz)(v.JSC$11126_loadModules,v,_.jZ(b),this.moduleInfoMap,{extraEdges:this.JSC$11139_extraEdges_,
forceReload:!!V,onError:function(F,t){var p=E.requestedLoadingModuleIds_;F=F!=null?F:void 0;E.consecutiveFailures_++;var Z=_.jZ(b);E.requestedLoadingModuleIds_=p;b.forEach(_.pt(_.ub,E.requestedModuleIds_),E);F==401?(x2R(E,new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.UNAUTHORIZED,F)),E.requestedModuleIdsQueue_.length=0):F==410?(jOS(E,new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.OLD_CODE_GONE,F)),W9N(E)):E.consecutiveFailures_>=3?(jOS(E,new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
F,Z,t)),W9N(E)):E.loadModules_(E.requestedLoadingModuleIds_,!0,F==8001||!1)},
onTimeout:(0,_.Nz)(this.handleLoadTimeout_,this)});(v=Math.pow(this.consecutiveFailures_,2)*5E3)?_.bb.setTimeout(V,v):V()}};
var upa=function(v,Q){Q=Q.filter(function(b){return v.moduleInfoMap[b].isLoaded()?(_.bb.setTimeout(function(){return Error("zd`"+b)},0),!1):!0});
for(var V=[],E=0;E<Q.length;E++)V=V.concat(oNZ(v,Q[E]));zTo(V);return!v.batchModeEnabled_&&V.length>1?(Q=V.shift(),v.requestedModuleIdsQueue_=V.map(function(b){return[b]}).concat(v.requestedModuleIdsQueue_),[Q]):V},oNZ=function(v,Q){var V=_.gI.createSet(v.requestedModuleIds_),E=[];
V[Q]||E.push(Q);Q=[Q];for(var b=0;b<Q.length;b++)for(var F=v.getModuleInfo(Q[b]).deps_,t=F.length-1;t>=0;t--){var p=F[t];v.getModuleInfo(p).isLoaded()||V[p]||(E.push(p),Q.push(p))}E.reverse();zTo(E);return E};
mK.prototype.JSC$11134_setLoaded=function(){if(this.JSC$11139_currentlyLoadingModule_){var v=this.JSC$11139_currentlyLoadingModule_.getId(),Q=[];if(this.JSC$11139_extraEdges_[v]){for(var V=_.L(Object.keys(this.JSC$11139_extraEdges_[v])),E=V.next();!E.done;E=V.next()){E=E.value;var b=this.getModuleInfo(E);b&&!b.isLoaded()&&(this.removeExtraEdge(v,E),Q.push(E))}this.loadMultiple(Q)}this.isDisposed()||((Q=this.moduleInfoMap[v].onLoad((0,_.Nz)(this.getModuleContext,this)))&&Q.length&&x2R(this,new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,Q[0])),_.ub(this.userInitiatedLoadingModuleIds_,v),_.ub(this.loadingModuleIds_,v),this.loadingModuleIds_.length===0&&W9N(this),this.lastInitialModuleId_&&v==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),UC(this),this.JSC$11139_currentlyLoadingModule_=null)}};
mK.prototype.isModuleLoading=function(v){if(_.sB(this.loadingModuleIds_,v))return!0;for(var Q=0;Q<this.requestedModuleIdsQueue_.length;Q++)if(_.sB(this.requestedModuleIdsQueue_[Q],v))return!0;return!1};
mK.prototype.load=function(v,Q){return gNV(this,[v],Q)[v]};
mK.prototype.loadMultiple=function(v){return gNV(this,v)};
var sOQ=function(v,Q){_.sB(v.userInitiatedLoadingModuleIds_,Q)||v.userInitiatedLoadingModuleIds_.push(Q)};
mK.prototype.beforeLoadModuleCode=function(v){var Q=this;this.JSC$11139_currentlyLoadingModule_&&this.JSC$11139_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11134_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[v]&&XHR(this,this.moduleInfoMap[v].deps_||[],function(V){V.module_=new XG;_.ub(Q.loadingModuleIds_,V.getId())},function(V){return!V.isLoaded()});
this.JSC$11139_currentlyLoadingModule_=this.getModuleInfo(v)};
mK.prototype.registerInitializationCallback=function(v){this.JSC$11139_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new aH([],"synthetic_module_overhead"),this.JSC$11139_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);re(this.JSC$11139_currentlyLoadingModule_.earlyOnloadCallbacks_,v)};
mK.prototype.handleLoadTimeout_=function(){jOS(this,new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.TIMEOUT));W9N(this)};
var jOS=function(v,Q){v.requestedLoadingModuleIds_.length>1?v.requestedModuleIdsQueue_=v.requestedLoadingModuleIds_.map(function(V){return[V]}).concat(v.requestedModuleIdsQueue_):x2R(v,Q)},x2R=function(v,Q){var V=v.requestedLoadingModuleIds_;
v.loadingModuleIds_.length=0;for(var E=[],b=0;b<v.requestedModuleIdsQueue_.length;b++){var F=v.requestedModuleIdsQueue_[b].filter(function(Z){var d=oNZ(this,Z);return Kp(V,function(w){return _.sB(d,w)})},v);
_.oh(E,F)}for(b=0;b<V.length;b++)_.nQB(E,V[b]);for(b=0;b<E.length;b++){for(F=0;F<v.requestedModuleIdsQueue_.length;F++)_.ub(v.requestedModuleIdsQueue_[F],E[b]);_.ub(v.userInitiatedLoadingModuleIds_,E[b])}if(b=v.JSC$11139_callbackMap_.error)for(F=0;F<b.length;F++)for(var t=b[F],p=0;p<E.length;p++)t("error",E[p],Q);for(E=0;E<V.length;E++)if(v.moduleInfoMap[V[E]])v.moduleInfoMap[V[E]].onError(Q);v.requestedLoadingModuleIds_.length=0;UC(v)},W9N=function(v){for(;v.requestedModuleIdsQueue_.length;){var Q=
v.requestedModuleIdsQueue_.shift().filter(function(V){return!this.getModuleInfo(V).isLoaded()},v);
if(Q.length>0){v.loadModules_(Q);return}}UC(v)};
mK.prototype.registerCallback=function(v,Q){Array.isArray(v)||(v=[v]);for(var V=0;V<v.length;V++){var E=v[V],b=Q,F=this.JSC$11139_callbackMap_;F[E]||(F[E]=[]);F[E].push(b)}};
mK.prototype.executeCallbacks_=function(v){for(var Q=this.JSC$11139_callbackMap_[v],V=0;Q&&V<Q.length;V++)Q[V](v)};
var XHR=function(v,Q,V,E,b){E=E===void 0?function(){return!0}:E;
b=b===void 0?{}:b;Q=_.L(Q);for(var F=Q.next();!F.done;F=Q.next()){F=F.value;var t=v.getModuleInfo(F);!b[F]&&E(t)&&(b[F]=!0,XHR(v,t.deps_||[],V,E,b),V(t))}};
mK.prototype.dispose=function(){_.pg(_.gI.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11139_callbackMap_={};this.isDisposed_=!0};
mK.prototype.isDisposed=function(){return this.isDisposed_};
_.ut=function(){return new mK};var alx=[5E3,2E4],Npo=function(){this.JSC$10134_loader_=null;this.JSC$11147_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11147_queue_=[];this.JSC$11147_extraEdges_=Object.create(null);this.JSC$11147_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.f(Npo,qpN);_.K=Npo.prototype;_.K.setAllModuleInfoString=function(){this.JSC$11147_currentlyLoadingModule_&&this.JSC$11147_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11134_setLoaded()};
_.K.getModuleInfo=function(v){var Q=this.JSC$11147_moduleInfoMap_[v];Q||(Q=new aH([],v),this.JSC$11147_moduleInfoMap_[v]=Q);return Q};
_.K.addExtraEdge=function(v,Q){this.getModuleInfo(v).isLoaded()?this.load(Q):(this.JSC$11147_extraEdges_[v]||(this.JSC$11147_extraEdges_[v]={}),this.JSC$11147_extraEdges_[v][Q]=!0)};
_.K.removeExtraEdge=function(v,Q){if(this.JSC$11147_extraEdges_[v]){delete this.JSC$11147_extraEdges_[v][Q];for(var V in this.JSC$11147_extraEdges_[v])return;delete this.JSC$11147_extraEdges_[v]}};
_.K.isModuleLoading=function(v){return!!this.loadingModules_[v]};
_.K.load=function(v){rnR(this,[v]);return $2S(this,v)};
_.K.loadMultiple=function(v){var Q=this,V=Object.create(null),E=[];v.forEach(function(b){V[b]||(V[b]=$2S(Q,b),E.push(b))});
rnR(this,E);return V};
_.K.beforeLoadModuleCode=function(v){var Q;((Q=this.JSC$11147_currentlyLoadingModule_)==null?void 0:Q.getId())==="synthetic_module_overhead"&&this.JSC$11134_setLoaded();var V,E;Il8(this,(E=(V=this.JSC$11147_moduleInfoMap_[v])==null?void 0:V.deps_)!=null?E:[],function(b){b.module_=new XG},function(b){return!b.isLoaded()});
this.JSC$11147_currentlyLoadingModule_=this.getModuleInfo(v)};
_.K.JSC$11134_setLoaded=function(){if(this.JSC$11147_currentlyLoadingModule_){var v=this.JSC$11147_currentlyLoadingModule_.getId(),Q=[];if(this.JSC$11147_extraEdges_[v]){for(var V=_.L(Object.keys(this.JSC$11147_extraEdges_[v])),E=V.next();!E.done;E=V.next())E=E.value,this.getModuleInfo(E).isLoaded()||(this.removeExtraEdge(v,E),Q.push(E));this.loadMultiple(Q)}this.JSC$11147_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11147_currentlyLoadingModule_=null;(!this.isModuleLoading(v)&&/^sy[0-9a-z]{0,4}$/.test(v)||v==="synthetic_module_overhead")&&delete this.JSC$11147_moduleInfoMap_[v];this.unsetModulesAsLoading(v)}};
_.K.registerInitializationCallback=function(v){this.JSC$11147_currentlyLoadingModule_||(this.JSC$11147_moduleInfoMap_.synthetic_module_overhead=new aH([],"synthetic_module_overhead"),this.JSC$11147_currentlyLoadingModule_=this.JSC$11147_moduleInfoMap_.synthetic_module_overhead);re(this.JSC$11147_currentlyLoadingModule_.earlyOnloadCallbacks_,v)};
_.K.setModulesAsLoading=function(){var v=this;_.aE.apply(0,arguments).forEach(function(Q){v.loadingModules_[Q]=!0})};
_.K.unsetModulesAsLoading=function(){var v=this;_.aE.apply(0,arguments).forEach(function(Q){delete v.loadingModules_[Q]})};
var $2S=function(v,Q){return new _.Ry(function(V,E){var b=v.getModuleInfo(Q);b.isLoaded()?V(null):(b.registerCallback(function(){V(null)}),An8(b,function(F){var t="Error loading "+Q+": "+F;
F instanceof r3.ModuleLoadFailure&&F.url&&(t=t+", requested url: "+F.url.toString());E(Error(t))}))})},rnR=function(v,Q){Q=Q.filter(function(V){return!v.isModuleLoading(V)&&!v.getModuleInfo(V).isLoaded()});
Q.length>0&&(v.setModulesAsLoading.apply(v,_.ui(Q)),v.JSC$11147_queue_.push(Q),HFN(v))},HFN=function(v){for(var Q={};v.activeLoads_<Infinity&&v.JSC$11147_queue_.length>0;Q={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})Q.ids$jscomp$37=v.JSC$11147_queue_.shift().filter(function(V){return!v.getModuleInfo(V).isLoaded()}),Q.ids$jscomp$37.length>0&&(v.activeLoads_++,Q.finishLoad=function(V){return function(){v.activeLoads_--;
HFN(v);V.finishLoad=function(){}}}(Q),_.lc(Q.ids$jscomp$37.map(function(V){return $2S(v,V)})).then(function(V){return function(){(0,V.finishLoad)()}}(Q)),Q.attempt$jscomp$6=0,Q.load$jscomp$1=function(V){return function(){if(Object.keys(v.JSC$11147_extraEdges_).length>0&&!v.JSC$10134_loader_.supportsExtraEdges)throw Error("yd");
v.JSC$10134_loader_.JSC$11126_loadModules(V.ids$jscomp$37,v.JSC$11147_moduleInfoMap_,{extraEdges:v.JSC$11147_extraEdges_,onError:function(E,b){var F=alx[V.attempt$jscomp$6++];F!==void 0?setTimeout(function(){(0,V.load$jscomp$1)()},F):(v.unsetModulesAsLoading.apply(v,_.ui(V.ids$jscomp$37)),(0,V.finishLoad)(),V.ids$jscomp$37.forEach(function(t){t=v.getModuleInfo(t);
if(!t.isLoaded())t.onError(new r3.ModuleLoadFailure(r3.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,E,V.ids$jscomp$37,b))}))}})}}(Q),(0,Q.load$jscomp$1)())},Il8=function(v,Q,V,E,b){E=E===void 0?function(){return!0}:E;
b=b===void 0?{}:b;Q=_.L(Q);for(var F=Q.next();!F.done;F=Q.next()){F=F.value;var t=v.getModuleInfo(F);!b[F]&&E(t)&&(b[F]=!0,Il8(v,t.deps_||[],V,E,b),V(t))}};var m2Z=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var K6r=Symbol("Bd");window.JSCompiler_renameProperty=function(v){return v};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var U2Z=!m2Z||HTMLElement.es5Shimmed||_.bb.Reflect===void 0||_.bb.customElements===void 0||_.bb.customElements.polyfillWrapFlushCallback||!1,vvS,BPS=function(){var v=HTMLElement;if(U2Z)return v;if(vvS!==void 0)return vvS;var Q=_.bb.Reflect,V=function(){return Q.construct(v,[],this.constructor)};
V.prototype=v.prototype;V.prototype.constructor=V;V.es5Shimmed=!0;Object.setPrototypeOf(V,v);return vvS=V},Q1R=!1;U2Z||Q1R||(Q1R=!0,_.bb.HTMLElement=BPS());/*

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 eeh=/(url\()([^)]*)(\))/g,tiS=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,pY9,ca;var V0=!window.ShadyDOM||!window.ShadyDOM.inUse,VTN=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),EvN=!window.customElements.polyfillWrapFlushCallback,bhX;if(bhX=V0&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var FVp=new CSSStyleSheet;FVp.replaceSync("");var KV8=document.createElement("div");KV8.attachShadow({mode:"open"});KV8.shadowRoot.adoptedStyleSheets=[FVp];bhX=KV8.shadowRoot.adoptedStyleSheets[0]===FVp}catch(v){bhX=!1}
var ihN=bhX,LVa=window.Polymer&&window.Polymer.rootPath||PAT(document.baseURI||window.location.href),NF=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,y_G=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,K2=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,tTR=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,UH=window.Polymer&&window.Polymer.legacyOptimizations||!1,F2=window.Polymer&&window.Polymer.legacyWarnings||!1,pnx=window.Polymer&&window.Polymer.syncInitialRender||
!1,Ba=window.Polymer&&window.Polymer.legacyUndefined||!1,e$x=window.Polymer&&window.Polymer.orderedComputed||!1,vV=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Qg=window.Polymer&&window.Polymer.fastDomIf||!1,Vg=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ZhZ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Pfa=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var E5={},dfa={},sH=function(){return HTMLElement.apply(this,arguments)||this};
_.f(sH,HTMLElement);sH.import=function(v,Q){return v?(v=E5[v]||dfa[v.toLowerCase()])&&Q?v.querySelector(Q):v:null};
sH.prototype.attributeChangedCallback=function(v,Q,V){Q!==V&&this.register()};
sH.prototype.register=function(v){if(v=v||this.id){if(K2&&(E5[v]||dfa[v.toLowerCase()])!==void 0)throw E5[v]=dfa[v.toLowerCase()]=null,Error("Cd`"+v);this.id=v;E5[v]=dfa[v.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.hr.Object.defineProperties(sH.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var v=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;v=_.fW(this.getAttribute("assetpath")||"",v.baseURI);this.__assetpath=PAT(v)}return this.__assetpath}}});
_.hr.Object.defineProperties(sH,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
sH["import"]=sH.import;sH.prototype.modules=E5;customElements.define("dom-module",sH);var h$A=0,heh=0,G7=[],wna=0,dME=!1,AMx=document.createTextNode(""),kPV,Ha;(new window.MutationObserver(wY9)).observe(AMx,{characterData:!0});_.b8={after:function(v){return{run:function(Q){return window.setTimeout(Q,v)},
cancel:function(Q){window.clearTimeout(Q)}}},
run:function(v,Q){return window.setTimeout(v,Q)},
cancel:function(v){window.clearTimeout(v)}};
_.AR={run:function(v){return window.requestAnimationFrame(v)},
cancel:function(v){window.cancelAnimationFrame(v)}};
kPV={run:function(v){return window.requestIdleCallback?window.requestIdleCallback(v):window.setTimeout(v,16)},
cancel:function(v){window.cancelIdleCallback?window.cancelIdleCallback(v):window.clearTimeout(v)}};
Ha={run:function(v){dME||(dME=!0,AMx.textContent=wna++);G7.push(v);return h$A++},
cancel:function(v){var Q=v-heh;if(Q>=0){if(!G7[Q])throw Error("Dd`"+v);G7[Q]=null}}};var TgS=0,FB=function(v){var Q=v.__mixinApplications;Q||(Q=new WeakMap,v.__mixinApplications=Q);var V=TgS++;return function(E){var b=E.__mixinSet;if(b&&b[V])return E;var F=Q,t=F.get(E);t||(t=v(E),F.set(E,t),E=Object.create(t.__mixinSet||b||null),E[V]=!0,t.__mixinSet=E);return t}};_.Jq=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(v){return ShadyDOM.patch(v)}:function(v){return v};var YJq=FB(function(v){var Q=function(){var V=v.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};
_.f(Q,v);Q.createProperties=function(V){var E=this.prototype,b;for(b in V)b in E||E._createPropertyAccessor(b)};
Q.attributeNameForProperty=function(V){return V.toLowerCase()};
Q.typeForProperty=function(){};
Q.prototype._createPropertyAccessor=function(V,E){this._addPropertyToAttributeMap(V);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[V]||(this.__dataHasAccessor[V]=!0,this._definePropertyAccessor(V,E))};
Q.prototype._addPropertyToAttributeMap=function(V){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var E=this.__dataAttributes[V];E||(E=this.constructor.attributeNameForProperty(V),this.__dataAttributes[E]=V);return E};
Q.prototype._definePropertyAccessor=function(V,E){Object.defineProperty(this,V,{get:function(){return this.__data[V]},
set:E?function(){}:function(b){this._setPendingProperty(V,b,!0)&&this._invalidateProperties()}})};
Q.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
Q.prototype._initializeProperties=function(){for(var V in this.__dataHasAccessor)this.hasOwnProperty(V)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[V]=this[V],delete this[V])};
Q.prototype._initializeInstanceProperties=function(V){Object.assign(this,V)};
Q.prototype._setProperty=function(V,E){this._setPendingProperty(V,E)&&this._invalidateProperties()};
Q.prototype._getProperty=function(V){return this.__data[V]};
Q.prototype._setPendingProperty=function(V,E){var b=this.__data[V],F=this._shouldPropertyChange(V,E,b);F&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||V in this.__dataOld||(this.__dataOld[V]=b),this.__data[V]=E,this.__dataPending[V]=E);return F};
Q.prototype._isPropertyPending=function(V){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(V))};
Q.prototype._invalidateProperties=function(){var V=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ha.run(function(){V.__dataInvalid&&(V.__dataInvalid=!1,V._flushProperties())}))};
Q.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
Q.prototype._flushProperties=function(){this.__dataCounter++;var V=this.__data,E=this.__dataPending,b=this.__dataOld;this._shouldPropertiesChange(V,E,b)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(V,E,b));this.__dataCounter--};
Q.prototype._shouldPropertiesChange=function(V,E){return!!E};
Q.prototype._propertiesChanged=function(){};
Q.prototype._shouldPropertyChange=function(V,E,b){return b!==E&&(b===b||E===E)};
Q.prototype.attributeChangedCallback=function(V,E,b,F){E!==b&&this._attributeToProperty(V,b);v.prototype.attributeChangedCallback&&v.prototype.attributeChangedCallback.call(this,V,E,b,F)};
Q.prototype._attributeToProperty=function(V,E,b){if(!this.__serializing){var F=this.__dataAttributes;V=F&&F[V]||V;this[V]=this._deserializeValue(E,b||this.constructor.typeForProperty(V))}};
Q.prototype._propertyToAttribute=function(V,E,b){this.__serializing=!0;b=arguments.length<3?this[V]:b;this._valueToNodeAttribute(this,b,E||this.constructor.attributeNameForProperty(V));this.__serializing=!1};
Q.prototype._valueToNodeAttribute=function(V,E,b){E=this._serializeValue(E);if(b==="class"||b==="name"||b==="slot")V=(0,_.Jq)(V);E===void 0?V.removeAttribute(b):V.setAttribute(b,E===""&&window.trustedTypes?window.trustedTypes.emptyScript:E)};
Q.prototype._serializeValue=function(V){switch(typeof V){case "boolean":return V?"":void 0;default:return V!=null?V.toString():void 0}};
Q.prototype._deserializeValue=function(V,E){switch(E){case Boolean:return V!==null;case Number:return Number(V);default:return V}};
return Q});var yMA=0,AxZ=[];var cMX=FB(function(v){function Q(F){F=Object.getPrototypeOf(F);return F.prototype instanceof b?F:null}
function V(F){if(!F.hasOwnProperty("__ownProperties")){var t=null;if(F.hasOwnProperty("properties")){var p=F.properties;if(p){t={};for(var Z in p){var d=p[Z];t[Z]=typeof d==="function"?{type:d}:d}}}F.__ownProperties=t}return F.__ownProperties}
var E=YJq(v),b=function(){return E.apply(this,arguments)||this};
_.f(b,E);b.finalize=function(){if(!this.hasOwnProperty("__finalized")){var F=Q(this);F&&F.finalize();this.__finalized=!0;this._finalizeClass()}};
b._finalizeClass=function(){var F=V(this);F&&this.createProperties(F)};
b.typeForProperty=function(F){return(F=this._properties[F])&&F.type};
b.prototype._initializeProperties=function(){yMA++;this.constructor.finalize();E.prototype._initializeProperties.call(this)};
b.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this._enableProperties()};
b.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this)};
_.hr.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var F=this;if(!this.hasOwnProperty("__observedAttributes")){kz3(this.prototype);var t=this._properties;this.__observedAttributes=t?Object.keys(t).map(function(p){return F.prototype._addPropertyToAttributeMap(p)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var F=Q(this);this.__properties=Object.assign({},F&&F._properties,V(this))}return this.__properties}}});
return b});var TsE={},YIt=/-[a-z]/g,yxr=/([A-Z])/g;for(var f7x={},GPQ=HTMLElement.prototype;GPQ;){for(var CfX=Object.getOwnPropertyNames(GPQ),MTx=0;MTx<CfX.length;MTx++)f7x[CfX[MTx]]=!0;GPQ=Object.getPrototypeOf(GPQ)}var OhV=window.trustedTypes?function(v){return trustedTypes.isHTML(v)||trustedTypes.isScript(v)||trustedTypes.isScriptURL(v)}:function(){return!1},DfA=FB(function(v){var Q=YJq(v);
v=function(){return Q.apply(this,arguments)||this};
_.f(v,Q);v.createPropertiesForAttributes=function(){for(var V=this.observedAttributes,E=0;E<V.length;E++)this.prototype._createPropertyAccessor(CW(V[E]))};
v.attributeNameForProperty=function(V){return MF(V)};
v.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);Q.prototype._initializeProperties.call(this)};
v.prototype._initializeProtoProperties=function(V){for(var E in V)this._setProperty(E,V[E])};
v.prototype._ensureAttribute=function(V,E){this.hasAttribute(V)||this._valueToNodeAttribute(this,E,V)};
v.prototype._serializeValue=function(V){switch(typeof V){case "object":if(V instanceof Date)return V.toString();if(V){if(OhV(V))return V;try{return JSON.stringify(V)}catch(E){return""}}default:return Q.prototype._serializeValue.call(this,V)}};
v.prototype._deserializeValue=function(V,E){switch(E){case Object:try{var b=JSON.parse(V)}catch(F){b=V}break;case Array:try{b=JSON.parse(V)}catch(F){b=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+V)}break;case Date:b=isNaN(V)?String(V):Number(V);b=new Date(b);break;default:b=Q.prototype._deserializeValue.call(this,V,E)}return b};
v.prototype._definePropertyAccessor=function(V,E){if(!f7x[V]){var b=this[V];b!==void 0&&(this.__data?this._setPendingProperty(V,b):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[V]=b))}Q.prototype._definePropertyAccessor.call(this,V,E)};
v.prototype._hasAccessor=function(V){return this.__dataHasAccessor&&this.__dataHasAccessor[V]};
v.prototype._isPropertyPending=function(V){return!!(this.__dataPending&&V in this.__dataPending)};
return v});var R$N={"dom-if":!0,"dom-repeat":!0},nva=!1,l7V=!1,qJa=function(){var v=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(Q){return Q}});
return function(Q,V,E){V=V.getAttribute(E);v&&E.startsWith("on-")?Q.setAttribute(E,v.createScript(V,E)):Q.setAttribute(E,V)}}(),SJN=FB(function(v){var Q=function(){return v.apply(this,arguments)||this};
_.f(Q,v);Q._parseTemplate=function(V,E){if(!V._templateInfo){var b=V._templateInfo={};b.nodeInfoList=[];b.nestedTemplate=!!E;b.stripWhiteSpace=E&&E.stripWhiteSpace||V.hasAttribute&&V.hasAttribute("strip-whitespace");this._parseTemplateContent(V,b,{parent:null})}return V._templateInfo};
Q._parseTemplateContent=function(V,E,b){return this._parseTemplateNode(V.content,E,b)};
Q._parseTemplateNode=function(V,E,b){var F=!1;V.localName!="template"||V.hasAttribute("preserve-content")?V.localName==="slot"&&(E.hasInsertionPoint=!0):F=this._parseTemplateNestedTemplate(V,E,b)||F;if(!nva){nva=!0;var t=document.createElement("textarea");t.placeholder="a";l7V=t.placeholder===t.textContent}l7V&&V.localName==="textarea"&&V.placeholder&&V.placeholder===V.textContent&&(V.textContent=null);V.firstChild&&this._parseTemplateChildNodes(V,E,b);V.hasAttributes&&V.hasAttributes()&&(F=this._parseTemplateNodeAttributes(V,
E,b)||F);return F||b.noted};
Q._parseTemplateChildNodes=function(V,E,b){if(V.localName!=="script"&&V.localName!=="style")for(var F=V.firstChild,t=0,p;F;F=p){if(F.localName=="template"){var Z=F.getAttribute("is");if(Z&&R$N[Z])for(p=F,p.removeAttribute("is"),F=p.ownerDocument.createElement(Z),p.parentNode.replaceChild(F,p),F.appendChild(p);p.attributes.length;)Z=p.attributes[0].name,qJa(F,p,Z),p.removeAttribute(Z)}p=F.nextSibling;if(F.nodeType===Node.TEXT_NODE){for(Z=p;Z&&Z.nodeType===Node.TEXT_NODE;)F.textContent+=Z.textContent,
p=Z.nextSibling,V.removeChild(Z),Z=p;if(E.stripWhiteSpace&&!F.textContent.trim()){V.removeChild(F);continue}}Z={parentIndex:t,parentInfo:b};this._parseTemplateNode(F,E,Z)&&(Z.infoIndex=E.nodeInfoList.push(Z)-1);F.parentNode&&t++}};
Q._parseTemplateNestedTemplate=function(V,E,b){E=this._parseTemplate(V,E);(E.content=V.content.ownerDocument.createDocumentFragment()).appendChild(V.content);b.templateInfo=E;return!0};
Q._parseTemplateNodeAttributes=function(V,E,b){for(var F=!1,t=Array.from(V.attributes),p=t.length-1,Z;Z=t[p];p--)F=this._parseTemplateNodeAttribute(V,E,b,Z.name,Z.value)||F;return F};
Q._parseTemplateNodeAttribute=function(V,E,b,F,t){return F.slice(0,3)==="on-"?(V.removeAttribute(F),b.events=b.events||[],b.events.push({name:F.slice(3),value:t}),!0):F==="id"?(b.id=t,!0):!1};
Q._contentForTemplate=function(V){var E=V._templateInfo;return E&&E.content||V.content};
Q.prototype._stampTemplate=function(V,E){V&&!V.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(V);E=E||this.constructor._parseTemplate(V);var b=E.nodeInfoList;V=document.importNode(E.content||V.content,!0);V.__noInsertionPoint=!E.hasInsertionPoint;var F=V.nodeList=Array(b.length);V.$={};for(var t=0,p=b.length,Z=void 0;t<p&&(Z=b[t]);t++){var d=F[t]=cxT(V,Z);Z.id&&(V.$[Z.id]=d);var w=d,A=Z,k=E;A.templateInfo&&(w._templateInfo=A.templateInfo,w._parentTemplateInfo=
k);if(Z.events&&Z.events.length)for(w=0,A=Z.events,k=void 0;w<A.length&&(k=A[w]);w++)this._addMethodEventListenerToNode(d,k.name,k.value,this)}return V};
Q.prototype._addMethodEventListenerToNode=function(V,E,b,F){b=fv3(F||V,b);this._addEventListenerToNode(V,E,b);return b};
Q.prototype._addEventListenerToNode=function(V,E,b){V.addEventListener(E,b)};
Q.prototype._removeEventListenerFromNode=function(V,E,b){V.removeEventListener(E,b)};
return Q});var Sz=0,x0=[],z$A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},JMa=/[A-Z]/,NgR=function(v,Q,V,E,b){var F=b?De(v):v;if(Q=Q[F])for(F=0;F<Q.length;F++){var t=Q[F];if(t.info.lastRun!==Sz&&(!b||Rer(v,t.trigger))){t.info.lastRun=Sz;t=t.info;for(var p=V,Z=E,d=0,w=p.length-1,A=-1;d<=w;){var k=d+w>>1,T=Z.get(p[k].methodInfo)-Z.get(t.methodInfo);if(T<0)d=k+1;else if(T>0)w=k-1;else{A=k;break}}A<
0&&(A=w+1);p.splice(A,0,t)}}},oSr=[],xfA=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"),i8=FB(function(v){var Q=SJN(DfA(v));
v=function(){var V=Q.call(this)||this;V.__isPropertyEffectsClient=!0;return V};
_.f(v,Q);v.prototype._initializeProperties=function(){Q.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
v.prototype._registerHost=function(){if(KY.length){var V=KY[KY.length-1];V._enqueueClient(this);this.__dataHost=V}};
v.prototype._initializeProtoProperties=function(V){this.__data=Object.create(V);this.__dataPending=Object.create(V);this.__dataOld={}};
v.prototype._initializeInstanceProperties=function(V){var E=this.__readOnly,b;for(b in V)E&&E[b]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[b]=this.__dataPending[b]=V[b])};
v.prototype._addPropertyEffect=function(V,E,b){this._createPropertyAccessor(V,E=="__readOnly");var F=DMG(this,E,!0)[V];F||(F=this[E][V]=[]);F.push(b)};
v.prototype._removePropertyEffect=function(V,E,b){V=DMG(this,E,!0)[V];b=V.indexOf(b);b>=0&&V.splice(b,1)};
v.prototype._hasPropertyEffect=function(V,E){E=this[E];return!(!E||!E[V])};
v.prototype._hasReadOnlyEffect=function(V){return this._hasPropertyEffect(V,"__readOnly")};
v.prototype._hasNotifyEffect=function(V){return this._hasPropertyEffect(V,"__notifyEffects")};
v.prototype._hasReflectEffect=function(V){return this._hasPropertyEffect(V,"__reflectEffects")};
v.prototype._hasComputedEffect=function(V){return this._hasPropertyEffect(V,"__computeEffects")};
v.prototype._setPendingPropertyOrPath=function(V,E,b,F){if(F||De(Array.isArray(V)?V[0]:V)!==V){if(!F&&(F=qF(this,V),V=Orb(this,V,E),!V||!Q.prototype._shouldPropertyChange.call(this,V,E,F)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(V,E,b)){if(b=this.__dataLinkedPaths)for(var t in b)F=b[t],Rc(t,V)?(F=nW(t,F,V),this._setPendingPropertyOrPath(F,E,!0,!0)):Rc(F,V)&&(F=nW(F,t,V),this._setPendingPropertyOrPath(F,E,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[V])return this._setPendingProperty(V,
E,b);this[V]=E}return!1};
v.prototype._setUnmanagedPropertyToNode=function(V,E,b){if(b!==V[E]||typeof b=="object")E==="className"&&(V=(0,_.Jq)(V)),V[E]=b};
v.prototype._setPendingProperty=function(V,E,b){var F=this.__dataHasPaths&&OH(V);if(this._shouldPropertyChange(V,E,(F?this.__dataTemp:this.__data)[V])){this.__dataPending||(this.__dataPending={},this.__dataOld={});V in this.__dataOld||(this.__dataOld[V]=this.__data[V]);F?this.__dataTemp[V]=E:this.__data[V]=E;this.__dataPending[V]=E;if(F||this.__notifyEffects&&this.__notifyEffects[V])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[V]=b;return!0}return!1};
v.prototype._setProperty=function(V,E){this._setPendingProperty(V,E,!0)&&this._invalidateProperties()};
v.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
v.prototype._enqueueClient=function(V){this.__dataPendingClients=this.__dataPendingClients||[];V!==this&&this.__dataPendingClients.push(V)};
v.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
v.prototype.__enableOrFlushClients=function(){var V=this.__dataPendingClients;if(V){this.__dataPendingClients=null;for(var E=0;E<V.length;E++){var b=V[E];b.__dataEnabled?b.__dataPending&&b._flushProperties():b._enableProperties()}}};
v.prototype._readyClients=function(){this.__enableOrFlushClients()};
v.prototype.setProperties=function(V,E){for(var b in V)!E&&this.__readOnly&&this.__readOnly[b]||this._setPendingPropertyOrPath(b,V[b],!0);this._invalidateProperties()};
v.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
v.prototype._propertiesChanged=function(V,E,b){V=this.__dataHasPaths;this.__dataHasPaths=!1;var F;if(F=this.__computeEffects)if(e$x){Sz++;var t=Jx0(this),p=[],Z;for(Z in E)NgR(Z,F,p,t,V);for(;Z=p.shift();)xMZ(this,"",E,b,Z)&&NgR(Z.methodInfo,F,p,t,V);Object.assign(b,this.__dataOld);Object.assign(E,this.__dataPending);this.__dataPending=null}else for(t=E;z7(this,F,t,b,V);)Object.assign(b,this.__dataOld),Object.assign(E,this.__dataPending),t=this.__dataPending,this.__dataPending=null;F=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(E,b,V);this._flushClients();z7(this,this.__reflectEffects,E,b,V);z7(this,this.__observeEffects,E,b,V);if(F){t=this.__notifyEffects;p=Sz++;for(var d in F)if(F[d]){if(Z=t){var w=t;Z=p;var A=d,k=E,T=b,c=V,C=!1,R=c?De(A):A;if(w=w[R]){R=0;for(var l=w.length,S=void 0;R<l&&(S=w[R]);R++)S.info&&S.info.lastRun===Z||c&&!Rer(A,S.trigger)||(S.info&&(S.info.lastRun=Z),S.fn(this,A,k,T,S.info,c,void 0),C=!0)}Z=C}if(Z)var a=!0;else{if(Z=V)Z=d,A=E,k=De(Z),k!==
Z?(k=MF(k)+"-changed",lvB(this,k,A[Z],Z),Z=!0):Z=!1;Z&&(a=!0)}}var g;a&&(g=this.__dataHost)&&g._invalidateProperties&&g._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
v.prototype._propagatePropertyChanges=function(V,E,b){this.__propagateEffects&&z7(this,this.__propagateEffects,V,E,b);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,V,E,b)};
v.prototype._runEffectsForTemplate=function(V,E,b,F){var t=this,p=function(Z,d){z7(t,V.propertyEffects,Z,b,d,V.nodeList);for(var w=V.firstChild;w;w=w.nextSibling)t._runEffectsForTemplate(w,Z,b,d)};
V.runEffects?V.runEffects(p,E,F):p(E,F)};
v.prototype.linkPaths=function(V,E){V=lM(V);E=lM(E);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[V]=E};
v.prototype.unlinkPaths=function(V){V=lM(V);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[V]};
v.prototype.notifySplices=function(V,E){var b={path:""};V=qF(this,V,b);$M0(this,V,b.path,E)};
v.prototype.get=function(V,E){return qF(E||this,V)};
v.prototype.set=function(V,E,b){b?Orb(b,V,E):this.__readOnly&&this.__readOnly[V]||this._setPendingPropertyOrPath(V,E,!0)&&this._invalidateProperties()};
v.prototype.push=function(V){var E=_.aE.apply(1,arguments),b={path:""},F=qF(this,V,b),t=F.length,p=F.push.apply(F,_.ui(E));E.length&&gX(this,F,b.path,t,E.length,[]);return p};
v.prototype.pop=function(V){var E={path:""};V=qF(this,V,E);var b=!!V.length,F=V.pop();b&&gX(this,V,E.path,V.length,0,[F]);return F};
v.prototype.splice=function(V,E,b){var F=_.aE.apply(3,arguments),t={path:""},p=qF(this,V,t);E<0?E=p.length-Math.floor(-E):E&&(E=Math.floor(E));var Z=arguments.length===2?p.splice(E):p.splice.apply(p,[E,b].concat(_.ui(F)));(F.length||Z.length)&&gX(this,p,t.path,E,F.length,Z);return Z};
v.prototype.shift=function(V){var E={path:""};V=qF(this,V,E);var b=!!V.length,F=V.shift();b&&gX(this,V,E.path,0,0,[F]);return F};
v.prototype.unshift=function(V){var E=_.aE.apply(1,arguments),b={path:""},F=qF(this,V,b),t=F.unshift.apply(F,_.ui(E));E.length&&gX(this,F,b.path,0,E.length,[]);return t};
v.prototype.notifyPath=function(V,E){if(arguments.length==1){var b={path:""};E=qF(this,V,b);b=b.path}else b=Array.isArray(V)?lM(V):V;this._setPendingPropertyOrPath(b,E,!0,!0)&&this._invalidateProperties()};
v.prototype._createReadOnlyProperty=function(V,E){this._addPropertyEffect(V,"__readOnly");E&&(this["_set"+(V[0].toUpperCase()+V.substring(1))]=function(b){this._setProperty(V,b)})};
v.prototype._createPropertyObserver=function(V,E,b){var F={property:V,method:E,dynamicFn:!!b};this._addPropertyEffect(V,"__observeEffects",{fn:nSG,info:F,trigger:{name:V}});b&&this._addPropertyEffect(E,"__observeEffects",{fn:nSG,info:F,trigger:{name:E}})};
v.prototype._createMethodObserver=function(V,E){var b=av9(V);if(!b)throw Error("Ed`"+V);jIo(this,b,"__observeEffects",Ns0,null,E)};
v.prototype._createNotifyingProperty=function(V){this._addPropertyEffect(V,"__notifyEffects",{fn:qIB,info:{eventName:MF(V)+"-changed",property:V}})};
v.prototype._createReflectedProperty=function(V){var E=this.constructor.attributeNameForProperty(V);E[0]==="-"?console.warn("Property "+V+" cannot be reflected to attribute "+E+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(V,"__reflectEffects",{fn:SI9,info:{attrName:E}})};
v.prototype._createComputedProperty=function(V,E,b){var F=av9(E);if(!F)throw Error("Fd`"+E);E=jIo(this,F,"__computeEffects",xMZ,V,b);DMG(this,"__computeInfo")[V]=E};
v.prototype._marshalArgs=function(V,E,b){for(var F=this.__data,t=[],p=0,Z=V.length;p<Z;p++){var d=V[p],w=d.name,A=d.structured,k=d.wildcard,T=d.value;d.literal||(k?(d=Rc(w,E),A=rxQ(F,b,d?E:w),T={path:d?E:w,value:A,base:d?qF(F,w):A}):T=A?rxQ(F,b,w):F[w]);if(Ba&&!this._overrideLegacyUndefined&&T===void 0&&V.length>1)return x0;t[p]=T}return t};
v.addPropertyEffect=function(V,E,b){this.prototype._addPropertyEffect(V,E,b)};
v.createPropertyObserver=function(V,E,b){this.prototype._createPropertyObserver(V,E,b)};
v.createMethodObserver=function(V,E){this.prototype._createMethodObserver(V,E)};
v.createNotifyingProperty=function(V){this.prototype._createNotifyingProperty(V)};
v.createReadOnlyProperty=function(V,E){this.prototype._createReadOnlyProperty(V,E)};
v.createReflectedProperty=function(V){this.prototype._createReflectedProperty(V)};
v.createComputedProperty=function(V,E,b){this.prototype._createComputedProperty(V,E,b)};
v.bindTemplate=function(V){return this.prototype._bindTemplate(V)};
v.prototype._bindTemplate=function(V,E){var b=this.constructor._parseTemplate(V),F=this.__preBoundTemplateInfo==b;if(!F)for(var t in b.propertyEffects)this._createPropertyAccessor(t);E?(b=Object.create(b),b.wasPreBound=F,this.__templateInfo?(V=V._parentTemplateInfo||this.__templateInfo,E=V.lastChild,b.parent=V,V.lastChild=b,(b.previousSibling=E)?E.nextSibling=b:V.firstChild=b):this.__templateInfo=b):this.__preBoundTemplateInfo=b;return b};
v._addTemplatePropertyEffect=function(V,E,b){(V.hostProps=V.hostProps||{})[E]=!0;V=V.propertyEffects=V.propertyEffects||{};(V[E]=V[E]||[]).push(b)};
v.prototype._stampTemplate=function(V,E){E=E||this._bindTemplate(V,!0);KY.push(this);V=Q.prototype._stampTemplate.call(this,V,E);KY.pop();E.nodeList=V.nodeList;if(!E.wasPreBound)for(var b=E.childNodes=[],F=V.firstChild;F;F=F.nextSibling)b.push(F);V.templateInfo=E;b=E.nodeList;F=E.nodeInfoList;if(F.length)for(var t=0;t<F.length;t++){var p=b[t],Z=F[t].bindings;if(Z)for(var d=0;d<Z.length;d++){var w=Z[d],A=p,k=w;if(k.isCompound){for(var T=A.__dataCompoundStorage||(A.__dataCompoundStorage={}),c=k.parts,
C=Array(c.length),R=0;R<c.length;R++)C[R]=c[R].literal;c=k.target;T[c]=C;k.literal&&k.kind=="property"&&(c==="className"&&(A=(0,_.Jq)(A)),A[c]=k.literal)}uQr(p,this,w)}p.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(E,this.__data,null,!1),this._flushClients());return V};
v.prototype._removeBoundDom=function(V){V=V.templateInfo;var E=V.previousSibling,b=V.nextSibling,F=V.parent;E?E.nextSibling=b:F&&(F.firstChild=b);b?b.previousSibling=E:F&&(F.lastChild=E);V.nextSibling=V.previousSibling=null;V=V.childNodes;for(E=0;E<V.length;E++)b=V[E],(0,_.Jq)((0,_.Jq)(b).parentNode).removeChild(b)};
v._parseTemplateNode=function(V,E,b){var F=Q._parseTemplateNode.call(this,V,E,b);if(V.nodeType===Node.TEXT_NODE){var t=this._parseBindings(V.textContent,E);t&&(V.textContent=W6E(t)||" ",sIT(this,E,b,"text","textContent",t),F=!0)}return F};
v._parseTemplateNodeAttribute=function(V,E,b,F,t){var p=this._parseBindings(t,E);if(p){t=F;var Z="property";JMa.test(F)?Z="attribute":F[F.length-1]=="$"&&(F=F.slice(0,-1),Z="attribute");var d=W6E(p);d&&Z=="attribute"&&(F=="class"&&V.hasAttribute("class")&&(d+=" "+V.getAttribute(F)),V.setAttribute(F,d));Z=="attribute"&&t=="disable-upgrade$"&&V.setAttribute(F,"");V.localName==="input"&&t==="value"&&V.setAttribute(t,"");V.removeAttribute(t);Z==="property"&&(F=CW(F));sIT(this,E,b,Z,F,p,d);return!0}return Q._parseTemplateNodeAttribute.call(this,
V,E,b,F,t)};
v._parseTemplateNestedTemplate=function(V,E,b){var F=Q._parseTemplateNestedTemplate.call(this,V,E,b),t=V.parentNode,p=b.templateInfo,Z=t.localName==="dom-if",d=t.localName==="dom-repeat";vV&&(Z||d)&&(t.removeChild(V),b=b.parentInfo,b.templateInfo=p,b.noted=!0,F=!1);V=p.hostProps;if(Qg&&Z)V&&(E.hostProps=Object.assign(E.hostProps||{},V),vV||(b.parentInfo.noted=!0));else for(var w in V)sIT(this,E,b,"property","_host_"+w,[{mode:"{",source:w,dependencies:[w],hostProp:!0}]);return F};
v._parseBindings=function(V,E){for(var b=[],F=0,t;(t=xfA.exec(V))!==null;){t.index>F&&b.push({literal:V.slice(F,t.index)});F=t[1][0];var p=!!t[2];t=t[3].trim();var Z=!1,d="",w=-1;F=="{"&&(w=t.indexOf("::"))>0&&(d=t.substring(w+2),t=t.substring(0,w),Z=!0);w=av9(t);var A=[];if(w){var k=w,T=k.args;k=k.methodName;for(var c=0;c<T.length;c++){var C=T[c];C.literal||A.push(C)}if((T=E.dynamicFns)&&T[k]||w.static)A.push(k),w.dynamicFn=!0}else A.push(t);b.push({source:t,mode:F,negate:p,customEvent:Z,signature:w,
dependencies:A,event:d});F=xfA.lastIndex}F&&F<V.length&&(V=V.substring(F))&&b.push({literal:V});return b.length?b:null};
v._evaluateBinding=function(V,E,b,F,t,p){V=E.signature?Ns0(V,b,F,t,E.signature):b!=E.source?qF(V,E.source):p&&OH(b)?qF(V,b):V.__data[b];E.negate&&(V=!V);return V};
_.hr.Object.defineProperties(v.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return z$A}}});
return v}),KY=[];var BgV=window.ShadyCSS&&window.ShadyCSS.cssBuild,LY=FB(function(v){function Q(E,b,F,t){if(!BgV){for(var p=b.content.querySelectorAll("style"),Z=UMB(b),d=vGZ(F),w=b.content.firstElementChild,A=0;A<d.length;A++){var k=d[A];k.textContent=E._processStyleText(k.textContent,t);b.content.insertBefore(k,w)}for(w=d=0;w<Z.length;w++)A=Z[w],k=p[d],k!==A?(A=A.cloneNode(!0),k.parentNode.insertBefore(A,k)):d++,A.textContent=E._processStyleText(A.textContent,t)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(b,
F);if(Pfa&&BgV&&ihN&&(b=b.content.querySelectorAll("style"))){var T="";Array.from(b).forEach(function(c){T+=c.textContent;c.parentNode.removeChild(c)});
E._styleSheet=new CSSStyleSheet;E._styleSheet.replaceSync(T)}}
var V=cMX(i8(v));v=function(){return V.call(this)||this};
_.f(v,V);v._finalizeClass=function(){V._finalizeClass.call(this);var E;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(E=this.__ownObservers)&&this.createObservers(E,this._properties);this._prepareTemplate()};
v._prepareTemplate=function(){var E=this.template;E&&(typeof E==="string"?(console.error("template getter must return HTMLTemplateElement"),E=null):UH||(E=E.cloneNode(!0)));this.prototype._template=E};
v.createProperties=function(E){for(var b in E){var F=this.prototype,t=b,p=E[b],Z=E;p.computed&&(p.readOnly=!0);p.computed&&(F._hasReadOnlyEffect(t)?console.warn("Cannot redefine computed property '"+t+"'."):F._createComputedProperty(t,p.computed,Z));p.readOnly&&!F._hasReadOnlyEffect(t)?F._createReadOnlyProperty(t,!p.computed):p.readOnly===!1&&F._hasReadOnlyEffect(t)&&console.warn("Cannot make readOnly property '"+t+"' non-readOnly.");p.reflectToAttribute&&!F._hasReflectEffect(t)?F._createReflectedProperty(t):
p.reflectToAttribute===!1&&F._hasReflectEffect(t)&&console.warn("Cannot make reflected property '"+t+"' non-reflected.");p.notify&&!F._hasNotifyEffect(t)?F._createNotifyingProperty(t):p.notify===!1&&F._hasNotifyEffect(t)&&console.warn("Cannot make notify property '"+t+"' non-notify.");p.observer&&F._createPropertyObserver(t,p.observer,Z[p.observer]);F._addPropertyToAttributeMap(t)}};
v.createObservers=function(E,b){for(var F=this.prototype,t=0;t<E.length;t++)F._createMethodObserver(E[t],b)};
v.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);V.prototype._initializeProperties.call(this);this.rootPath=LVa;this.importPath=this.constructor.importPath;var E=this.constructor;if(!E.hasOwnProperty("__propertyDefaults")){E.__propertyDefaults=null;var b=E._properties,F;for(F in b){var t=b[F];"value"in t&&(E.__propertyDefaults=E.__propertyDefaults||{},E.__propertyDefaults[F]=t)}}if(E=E.__propertyDefaults)for(var p in E)b=E[p],
this._canApplyPropertyDefault(p)&&(b=typeof b.value=="function"?b.value.call(this):b.value,this._hasAccessor(p)?this._setPendingProperty(p,b,!0):this[p]=b)};
v.prototype._canApplyPropertyDefault=function(E){return!this.hasOwnProperty(E)};
v._processStyleText=function(E,b){return ZrS(E,b)};
v._finalizeTemplate=function(E){var b=this.prototype._template;if(b&&!b.__polymerFinalized){b.__polymerFinalized=!0;var F=this.importPath;F=F?_.fW(F):"";Q(this,b,E,F);this.prototype._bindTemplate(b)}};
v.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);V.prototype.connectedCallback.call(this)};
v.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);V.prototype.ready.call(this)};
v.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));V.prototype._readyClients.call(this)};
v.prototype._attachDom=function(E){var b=(0,_.Jq)(this);if(b.attachShadow)return E?(b.shadowRoot||(b.attachShadow({mode:"open",shadyUpgradeFragment:E}),b.shadowRoot.appendChild(E),this.constructor._styleSheet&&(b.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),pnx&&window.ShadyDOM&&window.ShadyDOM.flushInitial(b.shadowRoot),b.shadowRoot):null;throw Error("Hd");};
v.prototype.updateStyles=function(E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,E)};
v.prototype.resolveUrl=function(E,b){!b&&this.importPath&&(b=_.fW(this.importPath));return _.fW(E,b)};
v._parseTemplateContent=function(E,b,F){b.dynamicFns=b.dynamicFns||this._properties;return V._parseTemplateContent.call(this,E,b,F)};
v._addTemplatePropertyEffect=function(E,b,F){!F2||b in this._properties||F.info.part.signature&&F.info.part.signature.static||F.info.part.hostProp||E.nestedTemplate||console.warn("Property '"+b+"' used in template but not declared in 'properties'; attribute will not be observed.");return V._addTemplatePropertyEffect.call(this,E,b,F)};
_.hr.Object.defineProperties(v,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var E=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof E==="function"&&(E=E());if(E===void 0){if(E=this.hasOwnProperty("is")){E=this.is;var b=null;if(E&&(!K2||tTR)&&(b=sH.import(E,"template"),K2&&!b))throw Error("Gd`"+E);E=b}E=E||Object.getPrototypeOf(this.prototype).constructor.template}this._template=E}return this._template},
set:function(E){this._template=E}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var E=this.importMeta;E?this._importPath=PAT(E.url):this._importPath=(E=sH.import(this.is))&&E.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return v});var gvR=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(v){return v}}),iqE=function(v,Q){s1V(v,Q);
this.value=Q.reduce(function(V,E,b){return V+LhE(E)+v[b+1]},v[0]).toString()},s1V;
iqE.prototype.toString=function(){return this.value};
_.u6A=function(v){var Q=_.aE.apply(1,arguments);s1V(v,Q);var V=document.createElement("template");Q=Q.reduce(function(E,b,F){if(b instanceof HTMLTemplateElement)b=b.innerHTML;else if(b instanceof iqE)b=LhE(b);else throw Error("Jd`"+b);return E+b+v[F+1]},v[0]);
gvR&&(Q=gvR.createHTML(Q));V.innerHTML=Q;return V};
s1V=function(v,Q){if(!Array.isArray(v)||!Array.isArray(v.raw)||Q.length!==v.length-1)throw new TypeError("Kd");};var tc=LY(HTMLElement);var j1S=FB(function(v){var Q=LY(v);v=function(){var V=Q.call(this)||this;V.__lastItems=null;V.__lastMulti=null;V.__selectedMap=null;return V};
_.f(v,Q);v.prototype.__updateSelection=function(V,E){var b=E.path;b=="items"?(E=E.base||[],b=this.__lastItems,V!==this.__lastMulti&&this.clearSelection(),b&&(b=KhQ(E,b),this.__applySplices(b)),this.__lastItems=E,this.__lastMulti=V):E.path=="items.splices"?this.__applySplices(E.value.indexSplices):(V=b.slice(6),E=parseInt(V,10),V.indexOf(".")<0&&V==E&&this.__deselectChangedIdx(E))};
v.prototype.__applySplices=function(V){for(var E=this,b=this.__selectedMap,F={},t=0;t<V.length;F={s$jscomp$109:void 0},t++){F.s$jscomp$109=V[t];b.forEach(function(w){return function(A,k){A<w.s$jscomp$109.index||(A>=w.s$jscomp$109.index+w.s$jscomp$109.removed.length?b.set(k,A+w.s$jscomp$109.addedCount-w.s$jscomp$109.removed.length):b.set(k,-1))}}(F));
for(var p=0;p<F.s$jscomp$109.addedCount;p++){var Z=F.s$jscomp$109.index+p;b.has(this.items[Z])&&b.set(this.items[Z],Z)}}this.__updateLinks();var d=0;b.forEach(function(w,A){w<0?(E.multi?E.splice("selected",d,1):E.selected=E.selectedItem=null,b.delete(A)):d++})};
v.prototype.__updateLinks=function(){var V=this;this.__dataLinkedPaths={};if(this.multi){var E=0;this.__selectedMap.forEach(function(b){b>=0&&V.linkPaths("items."+b,"selected."+E++)})}else this.__selectedMap.forEach(function(b){V.linkPaths("selected","items."+b);
V.linkPaths("selectedItem","items."+b)})};
v.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
v.prototype.isSelected=function(V){return this.__selectedMap.has(V)};
v.prototype.isIndexSelected=function(V){return this.isSelected(this.items[V])};
v.prototype.__deselectChangedIdx=function(V){var E=this,b=this.__selectedIndexForItemIndex(V);if(b>=0){var F=0;this.__selectedMap.forEach(function(t,p){b==F++&&E.deselect(p)})}};
v.prototype.__selectedIndexForItemIndex=function(V){if(V=this.__dataLinkedPaths["items."+V])return parseInt(V.slice(9),10)};
v.prototype.deselect=function(V){var E=this.__selectedMap.get(V);if(E>=0){this.__selectedMap.delete(V);var b;this.multi&&(b=this.__selectedIndexForItemIndex(E));this.__updateLinks();this.multi?this.splice("selected",b,1):this.selected=this.selectedItem=null}};
v.prototype.deselectIndex=function(V){this.deselect(this.items[V])};
v.prototype.select=function(V){this.selectIndex(this.items.indexOf(V))};
v.prototype.selectIndex=function(V){var E=this.items[V];this.isSelected(E)?this.toggle&&this.deselectIndex(V):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(E,V),this.__updateLinks(),this.multi?this.push("selected",E):this.selected=this.selectedItem=E)};
_.hr.Object.defineProperties(v,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return v}),WVV=j1S(tc),pY=function(){return WVV.apply(this,arguments)||this};
_.f(pY,WVV);_.hr.Object.defineProperties(pY,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(pY.is,pY);var ovZ=window.Polymer;window.Polymer=function(v){return window.Polymer._polymerFn(v)};
ovZ&&Object.assign(Polymer,ovZ);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:ZrS,resolveUrl:_.fW,pathFromUrl:PAT};Polymer.DomModule=sH;Polymer.Async={timeOut:_.b8,animationFrame:_.AR,idlePeriod:kPV,microTask:Ha};Polymer.dedupingMixin=FB;Polymer.wrap=_.Jq;Polymer.PropertiesChanged=YJq;Polymer.telemetry={instanceCount:yMA,incrementInstanceCount:function(){yMA++},
registrations:AxZ,register:kz3,dumpRegistrations:function(){AxZ.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=cMX;Polymer.CaseMap={dashToCamelCase:CW,camelToDashCase:MF};Polymer.PropertyAccessors=DfA;Polymer.TemplateStamp=SJN;Polymer.Path={isPath:OH,root:De,isAncestor:Gzr,isDescendant:Rc,translate:nW,matches:CA0,normalize:lM,split:Mim,get:qF,set:Orb,isDeep:OH};Polymer.Settings={useShadow:V0,useNativeCSSProperties:VTN,useNativeCustomElements:EvN,get rootPath(){return LVa},setRootPath:function(v){LVa=v},
get sanitizeDOMValue(){return NF},setSanitizeDOMValue:function(v){NF=v},
get passiveTouchGestures(){return y_G},setPassiveTouchGestures:function(v){y_G=v},
get strictTemplatePolicy(){return K2},setStrictTemplatePolicy:function(v){K2=v},
get allowTemplateFromDomModule(){return tTR},setAllowTemplateFromDomModule:function(v){tTR=v},
get legacyOptimizations(){return UH},setLegacyOptimizations:function(v){UH=v},
get syncInitialRender(){return pnx},setSyncInitialRender:function(v){pnx=v},
get legacyUndefined(){return Ba},setLegacyUndefined:function(v){Ba=v},
get legacyWarnings(){return F2},setLegacyWarnings:function(v){F2=v},
get orderedComputed(){return e$x},setOrderedComputed:function(v){e$x=v},
get fastDomIf(){return Qg},setFastDomIf:function(v){Qg=v},
get removeNestedTemplates(){return vV},setRemoveNestedTemplates:function(v){vV=v},
get suppressTemplateNotifications(){return Vg},setSuppressTemplateNotifications:Vg};Polymer.rootPath!==void 0&&(LVa=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(NF=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(y_G=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(K2=Polymer.strictTemplatePolicy);tTR=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(UH=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(pnx=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Ba=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(F2=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(e$x=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Qg=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(vV=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Vg=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return NF},
set:function(v){NF=v}});Polymer.PropertyEffects=i8;Polymer.StyleGather={stylesFromModules:mM3,stylesFromModule:Hro,stylesFromTemplate:UMB,stylesFromModuleImports:vGZ,cssFromModules:Vtm,cssFromModule:QCm,cssFromTemplate:EGh,cssFromModuleImports:function(v){return(v=sH.import(v))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v):""}};Polymer.ElementMixin=LY;Polymer.updateStyles=function(v){window.ShadyCSS&&window.ShadyCSS.styleDocument(v)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:KhQ};Polymer.html=_.u6A;Polymer.htmlLiteral=function(v){return new iqE(v,_.aE.apply(1,arguments))};Polymer.Element=tc;Polymer.ArraySelectorMixin=j1S;Polymer.ArraySelector=pY;var XnN=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,a7Z=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,uvT=/@media\s(.*)/;var ZqS=null,eSo=window.HTMLImports&&window.HTMLImports.whenReady||null,PJT;var rMX=null,eO=null,ZL=function(){this.customStyles=[];this.enqueued=!1;d3o(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$fS=function(v){!v.enqueued&&eO&&(v.enqueued=!0,d3o(eO))};
ZL.prototype.addCustomStyle=function(v){v.__seenByShadyCSS||(v.__seenByShadyCSS=!0,this.customStyles.push(v),$fS(this))};
ZL.prototype.getStyleForCustomStyle=function(v){if(v.__shadyCSSCachedStyle)return v.__shadyCSSCachedStyle;var Q;v.getStyle?Q=v.getStyle():Q=v;return Q};
ZL.prototype.processStyles=function(){for(var v=this.customStyles,Q=0;Q<v.length;Q++){var V=v[Q];if(!V.__shadyCSSCachedStyle){var E=this.getStyleForCustomStyle(V);E&&(E=E.__appliedElement||E,rMX&&rMX(E),V.__shadyCSSCachedStyle=E)}}return v};
ZL.prototype.addCustomStyle=ZL.prototype.addCustomStyle;ZL.prototype.getStyleForCustomStyle=ZL.prototype.getStyleForCustomStyle;ZL.prototype.processStyles=ZL.prototype.processStyles;Object.defineProperties(ZL.prototype,{transformCallback:{get:function(){return rMX},
set:function(v){rMX=v}},
validateCallback:{get:function(){return eO},
set:function(v){var Q=!1;eO||(Q=!0);eO=v;Q&&$fS(this)}}});var wZh=!(window.ShadyDOM&&window.ShadyDOM.inUse),hSt,dC;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(dC=window.ShadyCSS.cssBuild);var I7a=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?hSt=window.ShadyCSS.nativeCss:window.ShadyCSS?(A_G(window.ShadyCSS),window.ShadyCSS=void 0):A_G(window.WebComponents&&window.WebComponents.flags);var BBE=hSt;var HhR=new ZL;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(v,Q){HhR.processStyles();ttB(v,Q)},
styleElement:function(){HhR.processStyles()},
styleDocument:function(v){HhR.processStyles();ttB(document.body,v)},
getComputedStyleValue:function(v,Q){return pZB(v,Q)},
flushCustomStyles:function(){},
nativeCss:BBE,nativeShadow:wZh,cssBuild:dC,disableRuntime:I7a});window.ShadyCSS.CustomStyleInterface=HhR;var mfA=window.ShadyCSS.CustomStyleInterface,PV=function(){var v=HTMLElement.call(this)||this;v._style=null;mfA.addCustomStyle(v);return v};
_.f(PV,HTMLElement);PV.prototype.getStyle=function(){if(this._style)return this._style;var v=this.querySelector("style");if(!v)return null;this._style=v;var Q=v.getAttribute("include");Q&&(v.removeAttribute("include"),v.textContent=Vtm(Q)+v.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
PV.prototype.getStyle=PV.prototype.getStyle;window.customElements.define("custom-style",PV);Polymer.CustomStyle=PV;var d9=function(){this._timer=this._callback=this._asyncModule=null},hc,vDX;
d9.prototype.setConfig=function(v,Q){var V=this;this._asyncModule=v;this._callback=Q;this._timer=this._asyncModule.run(function(){V._timer=null;hc.delete(V);V._callback()})};
d9.prototype.cancel=function(){this.isActive()&&(UfN(this),hc.delete(this))};
var UfN=function(v){v.isActive()&&(v._asyncModule.cancel(v._timer),v._timer=null)};
d9.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
d9.prototype.isActive=function(){return this._timer!=null};
_.w9=function(v,Q,V){v instanceof d9?UfN(v):v=new d9;v.setConfig(Q,V);return v};
hc=new Set;_.Ac=function(v){hc.add(v)};
vDX=function(){var v=!!hc.size;hc.forEach(function(Q){try{Q.flush()}catch(V){setTimeout(function(){throw V;})}});
return v};var T3r=typeof document.head.style.touchAction==="string",knG=["mousedown","mousemove","mouseup","click"],D3t=[0,1,4,2],QdA;try{QdA=(new MouseEvent("test",{buttons:1})).buttons===1}catch(v){QdA=!1}var Oqb=QdA,Y$h=!1;(function(){try{var v=Object.defineProperty({},"passive",{get:function(){Y$h=!0}});
window.addEventListener("test",null,v);window.removeEventListener("test",null,v)}catch(Q){}})();
var fo3=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),GnB=[],VMx={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},sCr={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},CJ3=function(v){var Q=v.sourceCapabilities;if(!Q||Q.firesTouchEvents)if(v.__polymerGesturesHandled={skip:!0},v.type==="click"){Q=!1;for(var V=q$Q(v),E=0;E<V.length;E++){if(V[E].nodeType===Node.ELEMENT_NODE)if(V[E].localName==="label")GnB.push(V[E]);
else if(VMx[V[E].localName]){var b=V[E];var F=Array.prototype.slice.call(b.labels||[]);if(!F.length){F=[];try{var t=b.getRootNode();if(b.id){var p=t.querySelectorAll("label[for = '"+b.id+"']");for(b=0;b<p.length;b++)F.push(p[b])}}catch(Z){}}for(b=0;b<F.length;b++)Q=Q||GnB.indexOf(F[b])>-1}if(V[E]===ED8)return}Q||(v.preventDefault(),v.stopPropagation())}},ED8=null,k5=null,zSQ=0,J_Q=0,S$r=-1,N3h=!1;
document.addEventListener("touchend",function(v){k5||Mtt(!0);ED8=q$Q(v)[0];k5=_.w9(k5,_.b8.after(2500),function(){Mtt();k5=ED8=null})},Y$h?{passive:!0}:!1);
var q$Q=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(v){return v.composedPath&&v.composedPath()||[]},ac={},oc=[];
x30({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Wa(this.info)},
mousedown:function(v){if(jz(v)){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),V=this;nGS(this.info,function(E){jz(E)||(mo("up",Q,E),Wa(V.info))},function(E){jz(E)&&mo("up",Q,E);
Wa(V.info)});
mo("down",Q,v)}},
touchstart:function(v){mo("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),v.changedTouches[0],v)},
touchend:function(v){mo("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),v.changedTouches[0],v)}});
x30({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(v){this.moves.length>2&&this.moves.shift();this.moves.push(v)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;Wa(this.info)},
mousedown:function(v){if(jz(v)){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),V=this,E=function(b){var F=b.clientX,t=b.clientY;B3b(V.info,F,t)&&(V.info.state=V.info.started?b.type==="mouseup"?"end":"track":"start",V.info.state==="start"&&XJ("tap"),V.info.addMove({x:F,y:t}),jz(b)||(V.info.state="end",Wa(V.info)),Q&&gGG(V.info,Q,b),V.info.started=!0)};
nGS(this.info,E,function(b){V.info.started&&E(b);Wa(V.info)});
this.info.x=v.clientX;this.info.y=v.clientY}},
touchstart:function(v){v=v.changedTouches[0];this.info.x=v.clientX;this.info.y=v.clientY},
touchmove:function(v){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v=v.changedTouches[0];var V=v.clientX,E=v.clientY;B3b(this.info,V,E)&&(this.info.state==="start"&&XJ("tap"),this.info.addMove({x:V,y:E}),gGG(this.info,Q,v),this.info.state="track",this.info.started=!0)},
touchend:function(v){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v=v.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:v.clientX,y:v.clientY}),gGG(this.info,Q,v))}});
x30({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(v){jz(v)&&(this.info.x=v.clientX,this.info.y=v.clientY)},
click:function(v){jz(v)&&uu0(this.info,v)},
touchstart:function(v){v=v.changedTouches[0];this.info.x=v.clientX;this.info.y=v.clientY},
touchend:function(v){uu0(this.info,v.changedTouches[0],v)}});var bxA=FB(function(v){var Q=function(){return v.apply(this,arguments)||this};
_.f(Q,v);Q.prototype._addEventListenerToNode=function(V,E,b){rX(V,E,b)||v.prototype._addEventListenerToNode.call(this,V,E,b)};
Q.prototype._removeEventListenerFromNode=function(V,E,b){$0(V,E,b)||v.prototype._removeEventListenerFromNode.call(this,V,E,b)};
return Q});var Tj=FB(function(v){var Q=function(){return v.apply(this,arguments)||this};
_.f(Q,v);Q.prototype._shouldPropertyChange=function(V,E,b){return jCr(this,V,E,b,!0)};
return Q}),FdN=FB(function(v){var Q=function(){return v.apply(this,arguments)||this};
_.f(Q,v);Q.prototype._shouldPropertyChange=function(V,E,b){return jCr(this,V,E,b,this.mutableData)};
_.hr.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return Q});
Tj._mutablePropertyChange=jCr;var Wh9=!1;var Kda=bxA(FdN(i8(HTMLElement))),Y5=function(){var v=Kda.call(this)||this;if(K2)throw Error("Md");v.root=null;v.$=null;v.__children=null;return v};
_.f(Y5,Kda);_.K=Y5.prototype;_.K.attributeChangedCallback=function(){this.mutableData=!0};
_.K.connectedCallback=function(){oGB()||(this.style.display="none");this.render()};
_.K.disconnectedCallback=function(){this.__removeChildren()};
_.K.__insertChildren=function(){(0,_.Jq)((0,_.Jq)(this).parentNode).insertBefore(this.root,this)};
_.K.__removeChildren=function(){if(this.__children)for(var v=0;v<this.__children.length;v++)this.root.appendChild(this.__children[v])};
_.K.render=function(){var v=this;if(!this.__children){var Q=Q||this.querySelector("template");if(!Q){var V=new MutationObserver(function(){if(Q=v.querySelector("template"))V.disconnect(),v.render();else throw Error("Nd");});
V.observe(this,{childList:!0});return}this.root=this._stampTemplate(Q);this.$=this.root.$;this.__children=[];for(var E=this.root.firstChild;E;E=E.nextSibling)this.__children[this.__children.length]=E;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.hr.Object.defineProperties(Y5,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Y5);Polymer.Debouncer=d9;Polymer.Gestures={gestures:ac,recognizers:oc,deepTargetFind:loo,addListener:rX,removeListener:$0,register:x30,setTouchAction:_.Ic,prevent:XJ,resetMouseCanceller:function(){k5&&k5.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:rX,remove:$0};Polymer.GestureEventListeners=bxA;Polymer.MutableData=Tj;Polymer.OptionalMutableData=FdN;Polymer.DomBind=Y5;_.yg=function(){do{var v=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var Q=vDX()}while(v||Q)};var XZb=null;aoZ.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:aoZ,writable:!0}});var QqT=i8(aoZ),vK0=Tj(QqT),ixV=i8(function(){}),ES=function(v){var Q=ixV.call(this)||this;
Q._configureProperties(v);Q.root=Q._stampTemplate(Q.__dataHost);var V=[];Q.children=V;for(var E=Q.root.firstChild;E;E=E.nextSibling)V.push(E),E.__templatizeInstance=Q;Q.__templatizeOwner&&Q.__templatizeOwner.__hideTemplateChildren__&&Q._showHideChildren(!0);V=Q.__templatizeOptions;(v&&V.instanceProps||!V.instanceProps)&&Q._enableProperties();return Q};
_.f(ES,ixV);_.K=ES.prototype;_.K._configureProperties=function(v){if(this.__templatizeOptions.forwardHostProp)for(var Q in this.__hostProps)this._setPendingProperty(Q,this.__dataHost["_host_"+Q]);for(var V in v)this._setPendingProperty(V,v[V])};
_.K.forwardHostProp=function(v,Q){this._setPendingPropertyOrPath(v,Q,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.K._addEventListenerToNode=function(v,Q,V){var E=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(v,Q,function(F){F.model=E;V(F)});
else{var b=this.__dataHost.__dataHost;b&&b._addEventListenerToNode(v,Q,V)}};
_.K._showHideChildren=function(v){$3b(v,this.children)};
_.K._setUnmanagedPropertyToNode=function(v,Q,V){v.__hideTemplateChildren__&&v.nodeType==Node.TEXT_NODE&&Q=="textContent"?v.__polymerTextContent__=V:ixV.prototype._setUnmanagedPropertyToNode.call(this,v,Q,V)};
_.K.dispatchEvent=function(){return!0};
_.hr.Object.defineProperties(ES.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var v=this.__parentModel;if(!v){var Q;v=this;do v=v.__dataHost.__dataHost;while((Q=v.__templatizeOptions)&&!Q.parentModel);this.__parentModel=v}return v}}});
var Hqr=Tj(ES);var cV=function(){var v=tc.call(this)||this;v.__renderDebouncer=null;v._lastIf=!1;v.__hideTemplateChildren__=!1;return v};
_.f(cV,tc);_.K=cV.prototype;_.K.__debounceRender=function(){var v=this;this.__renderDebouncer=_.w9(this.__renderDebouncer,Ha,function(){return v.__render()});
_.Ac(this.__renderDebouncer)};
_.K.disconnectedCallback=function(){tc.prototype.disconnectedCallback.call(this);var v=(0,_.Jq)(this).parentNode;v&&(v.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Jq)(v).host)||this.__teardownInstance()};
_.K.connectedCallback=function(){tc.prototype.connectedCallback.call(this);oGB()||(this.style.display="none");this.if&&this.__debounceRender()};
_.K.__ensureTemplate=function(){var v=this;if(!this.__template){var Q=this._templateInfo?this:(0,_.Jq)(this).querySelector("template");if(!Q){var V=new MutationObserver(function(){if((0,_.Jq)(v).querySelector("template"))V.disconnect(),v.__render();else throw Error("Qd");});
V.observe(this,{childList:!0});return!1}this.__template=Q}return!0};
_.K.__ensureInstance=function(){var v=(0,_.Jq)(this).parentNode;if(this.__hasInstance()){var Q=this.__getInstanceNodes();if(Q&&Q.length&&(0,_.Jq)(this).previousSibling!==Q[Q.length-1])for(var V=0,E=void 0;V<Q.length&&(E=Q[V]);V++)(0,_.Jq)(v).insertBefore(E,this)}else{if(!v||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(v)}return!0};
_.K.render=function(){_.yg()};
_.K.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Vg&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.K.__hasInstance=function(){};
_.K.__getInstanceNodes=function(){};
_.K.__createAndInsertInstance=function(){};
_.K.__teardownInstance=function(){};
_.K._showHideChildren=function(){};
_.hr.Object.defineProperties(cV,{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:cV.prototype.__debounceRender},restamp:{type:Boolean,observer:cV.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Ldx=function(){var v=cV.call(this)||this;v.__instance=null;v.__syncInfo=null;return v};
_.f(Ldx,cV);_.K=Ldx.prototype;_.K.__hasInstance=function(){return!!this.__instance};
_.K.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.K.__createAndInsertInstance=function(v){var Q=this,V=this.__dataHost||this;if(K2&&!this.__dataHost)throw Error("Od");var E=V._bindTemplate(this.__template,!0);E.runEffects=function(b,F,t){var p=Q.__syncInfo;if(Q.if)p&&(Q.__syncInfo=null,Q._showHideChildren(),F=Object.assign(p.changedProps,F)),b(F,t);else if(Q.__instance)if(p||(p=Q.__syncInfo={runEffects:b,changedProps:{}}),t)for(var Z in F)b=De(Z),p.changedProps[b]=Q.__dataHost[b];else Object.assign(p.changedProps,F)};
this.__instance=V._stampTemplate(this.__template,E);(0,_.Jq)(v).insertBefore(this.__instance,this)};
_.K.__syncHostProperties=function(){var v=this.__syncInfo;v&&(this.__syncInfo=null,v.runEffects(v.changedProps,!1))};
_.K.__teardownInstance=function(){var v=this.__dataHost||this;this.__instance&&(v._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.K._showHideChildren=function(){var v=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==v&&(this.__instance.__hidden=v,$3b(v,this.__instance.templateInfo.childNodes));v||this.__syncHostProperties()};
var tMa=function(){var v=cV.call(this)||this;v.__ctor=null;v.__instance=null;v.__invalidProps=null;return v};
_.f(tMa,cV);_.K=tMa.prototype;_.K.__hasInstance=function(){return!!this.__instance};
_.K.__getInstanceNodes=function(){return this.__instance.children};
_.K.__createAndInsertInstance=function(v){this.__ctor||(this.__ctor=bu(this.__template,this,{mutableData:!0,forwardHostProp:function(Q,V){this.__instance&&(this.if?this.__instance.forwardHostProp(Q,V):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[De(Q)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Jq)(v).insertBefore(this.__instance.root,this)};
_.K.__teardownInstance=function(){if(this.__instance){var v=this.__instance.children;if(v&&v.length){var Q=(0,_.Jq)(v[0]).parentNode;if(Q){Q=(0,_.Jq)(Q);for(var V=0,E=void 0;V<v.length&&(E=v[V]);V++)Q.removeChild(E)}}this.__instance=this.__invalidProps=null}};
_.K.__syncHostProperties=function(){var v=this.__invalidProps;if(v){this.__invalidProps=null;for(var Q in v)this.__instance._setPendingProperty(Q,this.__dataHost[Q]);this.__instance._flushProperties()}};
_.K._showHideChildren=function(){var v=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==v&&(this.__instance.__hidden=v,this.__instance._showHideChildren(v));v||this.__syncHostProperties()};
_.Ch=Qg?Ldx:tMa;customElements.define(_.Ch.is,_.Ch);Polymer.enqueueDebouncer=_.Ac;Polymer.flush=_.yg;Polymer.Templatize={templatize:bu,modelForElement:iNb};Polymer.TemplateInstanceBase=ES;Polymer.DomIf=_.Ch;var pgN=FdN(tc),GP=function(){var v=pgN.call(this)||this;v.__instances=[];v.__renderDebouncer=null;v.__itemsIdxToInstIdx={};v.__chunkCount=null;v.__renderStartTime=null;v.__itemsArrayChanged=!1;v.__shouldMeasureChunk=!1;v.__shouldContinueChunking=!1;v.__chunkingId=0;v.__sortFn=null;v.__filterFn=null;v.__observePaths=null;v.__ctor=null;v.__isDetached=!0;v.template=null;return v};
_.f(GP,pgN);_.K=GP.prototype;_.K.disconnectedCallback=function(){pgN.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var v=0;v<this.__instances.length;v++)this.__detachInstance(v);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.K.connectedCallback=function(){pgN.prototype.connectedCallback.call(this);oGB()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var v=(0,_.Jq)((0,_.Jq)(this).parentNode),Q=0;Q<this.__instances.length;Q++)this.__attachInstance(Q,v);this.__chunkingId&&this.__render()}};
_.K.__ensureTemplatized=function(){var v=this;if(!this.__ctor){var Q=this.template=this._templateInfo?this:this.querySelector("template");if(!Q){var V=new MutationObserver(function(){if(v.querySelector("template"))V.disconnect(),v.__render();else throw Error("Rd");});
V.observe(this,{childList:!0});return!1}var E={};E[this.as]=!0;E[this.indexAs]=!0;E[this.itemsIndexAs]=!0;this.__ctor=bu(Q,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:E,forwardHostProp:function(b,F){for(var t=this.__instances,p=0,Z=void 0;p<t.length&&(Z=t[p]);p++)Z.forwardHostProp(b,F)},
notifyInstanceProp:function(b,F,t){CA0(this.as,F)&&(b=b[this.itemsIndexAs],F==this.as&&(this.items[b]=t),F=nW(this.as,"items."+b,F),this.notifyPath(F,t))}})}return!0};
_.K.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.K.__functionFromPropertyValue=function(v){if(typeof v==="string"){var Q=this.__getMethodHost();return function(){return Q[v].apply(Q,arguments)}}return v};
_.K.__sortChanged=function(v){this.__sortFn=this.__functionFromPropertyValue(v);this.items&&this.__debounceRender(this.__render)};
_.K.__filterChanged=function(v){this.__filterFn=this.__functionFromPropertyValue(v);this.items&&this.__debounceRender(this.__render)};
_.K.__computeFrameTime=function(v){return Math.ceil(1E3/v)};
_.K.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.K.__handleObservedPaths=function(v){if(this.__sortFn||this.__filterFn)if(!v)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var Q=this.__observePaths,V=0;V<Q.length;V++)v.indexOf(Q[V])===0&&this.__debounceRender(this.__render,this.delay)};
_.K.__itemsChanged=function(v){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(v.path,v.value)||(v.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.K.__debounceRender=function(v,Q){Q=Q===void 0?0:Q;this.__renderDebouncer=_.w9(this.__renderDebouncer,Q>0?_.b8.after(Q):Ha,v.bind(this));_.Ac(this.__renderDebouncer)};
_.K.render=function(){this.__debounceRender(this.__render);_.yg()};
_.K.__render=function(){var v=this;if(this.__ensureTemplatized()){var Q=this.items||[],V=this.__sortAndFilterItems(Q),E=this.__calculateLimit(V.length);this.__updateInstances(Q,E,V);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){v.__chunkingId=null;v.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Vg&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.K.__sortAndFilterItems=function(v){for(var Q=this,V=Array(v.length),E=0;E<v.length;E++)V[E]=E;this.__filterFn&&(V=V.filter(function(b,F,t){return Q.__filterFn(v[b],F,t)}));
this.__sortFn&&V.sort(function(b,F){return Q.__sortFn(v[b],v[F])});
return V};
_.K.__calculateLimit=function(v){var Q=v,V=this.__instances.length;if(this.initialCount){var E;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(Q=Math.min(v,this.initialCount),this.__chunkCount=(E=Math.max(Q-V,0))||1):(E=Math.min(Math.max(v-V,0),this.__chunkCount),Q=Math.min(V+E,v));this.__shouldMeasureChunk=E===this.__chunkCount;this.__shouldContinueChunking=Q<v;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return Q};
_.K.__continueChunking=function(){if(this.__shouldMeasureChunk){var v=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/v*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.K.__updateInstances=function(v,Q,V){var E=this.__itemsIdxToInstIdx={},b;for(b=0;b<Q;b++){var F=this.__instances[b],t=V[b],p=v[t];E[t]=b;F?(F._setPendingProperty(this.as,p),F._setPendingProperty(this.indexAs,b),F._setPendingProperty(this.itemsIndexAs,t),F._flushProperties()):this.__insertInstance(p,b,t)}for(v=this.__instances.length-1;v>=b;v--)this.__detachAndRemoveInstance(v)};
_.K.__detachInstance=function(v){v=this.__instances[v];for(var Q=(0,_.Jq)(v.root),V=0;V<v.children.length;V++)Q.appendChild(v.children[V]);return v};
_.K.__attachInstance=function(v,Q){Q.insertBefore(this.__instances[v].root,this)};
_.K.__detachAndRemoveInstance=function(v){this.__detachInstance(v);this.__instances.splice(v,1)};
_.K.__stampInstance=function(v,Q,V){var E={};E[this.as]=v;E[this.indexAs]=Q;E[this.itemsIndexAs]=V;return new this.__ctor(E)};
_.K.__insertInstance=function(v,Q,V){v=this.__stampInstance(v,Q,V);V=(V=this.__instances[Q+1])?V.children[0]:this;(0,_.Jq)((0,_.Jq)(this).parentNode).insertBefore(v.root,V);return this.__instances[Q]=v};
_.K._showHideChildren=function(v){for(var Q=0;Q<this.__instances.length;Q++)this.__instances[Q]._showHideChildren(v)};
_.K.__handleItemPath=function(v,Q){var V=v.slice(6),E=V.indexOf(".");v=E<0?V:V.substring(0,E);if(v==parseInt(v,10)){V=E<0?"":V.substring(E+1);this.__handleObservedPaths(V);if(v=this.__instances[this.__itemsIdxToInstIdx[v]])v._setPendingPropertyOrPath(this.as+(V?"."+V:""),Q,!1,!0),v._flushProperties();return!0}};
_.K.itemForElement=function(v){return(v=this.modelForElement(v))&&v[this.as]};
_.K.indexForElement=function(v){return(v=this.modelForElement(v))&&v[this.indexAs]};
_.K.modelForElement=function(v){return iNb(this.template,v)};
_.hr.Object.defineProperties(GP,{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:GP.prototype.__sortChanged},filter:{type:Function,observer:GP.prototype.__filterChanged},observe:{type:String,observer:GP.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Vg,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.*)"]}}});
GP.prototype._setRenderedItemCount=function(){};
customElements.define(GP.is,GP);Polymer.DomRepeat=GP;var e1N=function(v,Q){var V=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=v;this.callback=Q;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){V._schedule()};
this.connect();this._schedule()},Zx8=function(v){var Q=(0,_.Jq)(v);
if(iu(v))return Q.assignedNodes({flatten:!0});v=[];for(var V=0;V<Q.childNodes.length;V++){var E=Q.childNodes[V];iu(E)?v.push.apply(v,_.ui((0,_.Jq)(E).assignedNodes({flatten:!0}))):v.push(E)}return v};
_.K=e1N.prototype;_.K.connect=function(){var v=this;iu(this._target)?this._listenSlots([this._target]):(0,_.Jq)(this._target).children&&(this._listenSlots((0,_.Jq)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(Q){v._processMutations(Q)}):(this._nativeChildrenObserver=new MutationObserver(function(Q){v._processMutations(Q)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.K.disconnect=function(){iu(this._target)?this._unlistenSlots([this._target]):(0,_.Jq)(this._target).children&&(this._unlistenSlots((0,_.Jq)(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};
_.K._schedule=function(){var v=this;this._scheduled||(this._scheduled=!0,Ha.run(function(){return v.flush()}))};
_.K._processMutations=function(v){this._processSlotMutations(v);this.flush()};
_.K._processSlotMutations=function(v){if(v)for(var Q=0;Q<v.length;Q++){var V=v[Q];V.addedNodes&&this._listenSlots(V.addedNodes);V.removedNodes&&this._unlistenSlots(V.removedNodes)}};
_.K.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var v={target:this._target,addedNodes:[],removedNodes:[]},Q=Zx8(this._target),V=KhQ(Q,this._effectiveNodes),E=0,b=void 0;E<V.length&&(b=V[E]);E++)for(var F=0,t=void 0;F<b.removed.length&&(t=b.removed[F]);F++)v.removedNodes.push(t);
E=0;for(b=void 0;E<V.length&&(b=V[E]);E++)for(F=b.index;F<b.index+b.addedCount;F++)v.addedNodes.push(Q[F]);this._effectiveNodes=Q;Q=!1;if(v.addedNodes.length||v.removedNodes.length)Q=!0,this.callback.call(this._target,v);return Q};
_.K._listenSlots=function(v){for(var Q=0;Q<v.length;Q++){var V=v[Q];iu(V)&&V.addEventListener("slotchange",this._boundSchedule)}};
_.K._unlistenSlots=function(v){for(var Q=0;Q<v.length;Q++){var V=v[Q];iu(V)&&V.removeEventListener("slotchange",this._boundSchedule)}};var fY=Element.prototype,PdN=fY.matches||fY.matchesSelector||fY.mozMatchesSelector||fY.msMatchesSelector||fY.oMatchesSelector||fY.webkitMatchesSelector,dQN=function(v,Q){return PdN.call(v,Q)},L2=function(v){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(v);
this.node=v},k4a;
_.K=L2.prototype;_.K.observeNodes=function(v){return new e1N(this.node,v)};
_.K.unobserveNodes=function(v){v.disconnect()};
_.K.notifyObserver=function(){};
_.K.deepContains=function(v){if((0,_.Jq)(this.node).contains(v))return!0;var Q=v;for(v=v.ownerDocument;Q&&Q!==v&&Q!==this.node;)Q=(0,_.Jq)(Q).parentNode||(0,_.Jq)(Q).host;return Q===this.node};
_.K.getOwnerRoot=function(){return(0,_.Jq)(this.node).getRootNode()};
_.K.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Jq)(this.node).assignedNodes({flatten:!0}):[]};
_.K.getDestinationInsertionPoints=function(){for(var v=[],Q=(0,_.Jq)(this.node).assignedSlot;Q;)v.push(Q),Q=(0,_.Jq)(Q).assignedSlot;return v};
_.K.importNode=function(v,Q){return(0,_.Jq)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(v,Q)};
_.K.getEffectiveChildNodes=function(){return Zx8(this.node)};
_.K.queryDistributedElements=function(v){for(var Q=this.getEffectiveChildNodes(),V=[],E=0,b=Q.length,F=void 0;E<b&&(F=Q[E]);E++)F.nodeType===Node.ELEMENT_NODE&&dQN(F,v)&&V.push(F);return V};
_.hr.Object.defineProperties(L2.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var v=this.node;return v._activeElement!==void 0?v._activeElement:v.activeElement}}});
var Gj=function(v){this.event=v};
_.hr.Object.defineProperties(Gj.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 h1x=L2;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var wgQ=window.ShadyDOM.Wrapper,ARQ=function(){return wgQ.apply(this,arguments)||this};
_.f(ARQ,wgQ);Object.getOwnPropertyNames(L2.prototype).forEach(function(v){v!="activeElement"&&v!="constructor"&&(ARQ.prototype[v]=L2.prototype[v])});
tmT(ARQ.prototype,["classList"]);h1x=ARQ;Object.defineProperties(Gj.prototype,{localTarget:{get:function(){var v=this.event.currentTarget;v=v&&_.wi(v).getOwnerRoot();for(var Q=this.path,V=0;V<Q.length;V++){var E=Q[V];if(_.wi(E).getOwnerRoot()===v)return E}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else L3b(),tmT(L2.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),pC0();k4a=h1x;_.wi=function(v){v=v||document;if(v instanceof h1x)return v;if(v instanceof Gj)return v;var Q=v.__domApi;Q||(v instanceof Event?Q=new Gj(v):Q=new h1x(v),v.__domApi=Q);return Q};var TEa=/:host\(:dir\((ltr|rtl)\)\)/g,YoN=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,yRX=/:dir\((?:ltr|rtl)\)/,cRq=!(!window.ShadyDOM||!window.ShadyDOM.inUse),p2=[],CY=null,tr="",fMX=FB(function(v){cRq||CY||(tr=document.documentElement.getAttribute("dir"),CY=new MutationObserver(eLr),CY.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var Q=DfA(v);v=function(){var V=Q.call(this)||this;V.__autoDirOptOut=!1;return V};
_.f(v,Q);v._processStyleText=function(V,E){V=Q._processStyleText.call(this,V,E);!cRq&&yRX.test(V)&&(V=this._replaceDirInCssText(V),this.__activateDir=!0);return V};
v._replaceDirInCssText=function(V){V=V.replace(TEa,':host([dir="$1"])');return V=V.replace(YoN,':host([dir="$2"]) $1')};
v.prototype.ready=function(){Q.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
v.prototype.connectedCallback=function(){Q.prototype.connectedCallback&&Q.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(CY&&CY.takeRecords().length&&eLr(),p2.push(this),this.__autoDirOptOut||this.setAttribute("dir",tr))};
v.prototype.disconnectedCallback=function(){Q.prototype.disconnectedCallback&&Q.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var V=p2.indexOf(this);V>-1&&p2.splice(V,1)}};
v.__activateDir=!1;return v});var G4A=function(v){for(;v;){var Q=Object.getOwnPropertyDescriptor(v,"observedAttributes");if(Q)return Q.get;v=Object.getPrototypeOf(v.prototype).constructor}return function(){return[]}};
FB(function(v){var Q=LY(v),V=G4A(Q);v=function(){return Q.call(this)||this};
_.f(v,Q);v.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:Q.prototype._initializeProperties.call(this)};
v.prototype._enableProperties=function(){this.__isUpgradeDisabled||Q.prototype._enableProperties.call(this)};
v.prototype._canApplyPropertyDefault=function(E){return Q.prototype._canApplyPropertyDefault.call(this,E)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(E))};
v.prototype.attributeChangedCallback=function(E,b,F,t){E=="disable-upgrade"?this.__isUpgradeDisabled&&F==null&&(Q.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Jq)(this).isConnected&&Q.prototype.connectedCallback.call(this)):Q.prototype.attributeChangedCallback.call(this,E,b,F,t)};
v.prototype.connectedCallback=function(){this.__isUpgradeDisabled||Q.prototype.connectedCallback.call(this)};
v.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||Q.prototype.disconnectedCallback.call(this)};
_.hr.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V.call(this).concat("disable-upgrade")}}});
return v});var eu=!1,Pqr=[],Z3=[];var AIT=window.ShadyDOM,ksm=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Y7m):document.readyState==="interactive"||document.readyState==="complete"?Y7m():window.addEventListener("DOMContentLoaded",Y7m);var fDB=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=""},yIG=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,cIo=/@import[^;]*;/gim,RLE=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,nKm=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,lDb=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,q70=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ONZ=/^@[^\s]*keyframes/,
Mmh=/\s+/g;var S7o={};var NBr=Promise.resolve();var Cd8=new Set;var MMV=/;\s*/m,Oxq=/^\s*(initial)|(inherit)\s*$/,DQQ=/\s*!important/,R1N=function(){this._map={}};
R1N.prototype.set=function(v,Q){v=v.trim();this._map[v]={properties:Q,dependants:{}}};
R1N.prototype.get=function(v){v=v.trim();return this._map[v]||null};
var nD8=null,M6=function(){this._measureElement=this._currentElement=null;this._map=new R1N};
_.K=M6.prototype;_.K.detectMixin=function(v){v=a7Z.test(v)||XnN.test(v);a7Z.lastIndex=0;XnN.lastIndex=0;return v};
_.K.transformTemplate=function(v,Q){if(v._gatheredStyle===void 0){var V=[];for(var E=v.content.querySelectorAll("style"),b=0;b<E.length;b++){var F=E[b];if(F.hasAttribute("shady-unscoped")){if(!wZh){var t=F.textContent;if(!Cd8.has(t)){Cd8.add(t);var p=document.createElement("style");p.setAttribute("shady-unscoped","");p.textContent=t;document.head.appendChild(p)}F.parentNode.removeChild(F)}}else V.push(F.textContent),F.parentNode.removeChild(F)}(V=V.join("").trim())?(E=document.createElement("style"),
E.textContent=V,v.content.insertBefore(E,v.content.firstChild),V=E):V=null;v._gatheredStyle=V}return(v=v._gatheredStyle)?this.JSC$11347_transformStyle(v,Q):null};
_.K.JSC$11347_transformStyle=function(v,Q){Q=Q===void 0?"":Q;var V=sqZ(v);this.transformRules(V,Q);v.textContent=gKE(V);return V};
_.K.transformCustomStyle=function(v){var Q=this,V=sqZ(v);jq9(V,function(E){E.selector===":root"&&(E.selector="html");Q.transformRule(E)});
v.textContent=gKE(V);return V};
_.K.transformRules=function(v,Q){var V=this;this._currentElement=Q;jq9(v,function(E){V.transformRule(E)});
this._currentElement=null};
_.K.transformRule=function(v){v.cssText=lMp(this,v.parsedCssText,v);v.selector===":root"&&(v.selector=":host > *")};
var lMp=function(v,Q,V){Q=Q.replace(XnN,function(E,b,F,t){return v._produceCssProperties(E,b,F,t,V)});
return v._consumeCssProperties(Q,V)};
_.K=M6.prototype;_.K._getInitialValueForProperty=function(v){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(v)};
_.K._fallbacksFromPreviousRules=function(v){for(var Q=this,V=v;V.parent;)V=V.parent;var E={},b=!1;jq9(V,function(F){(b=b||F===v)||F.selector===v.selector&&Object.assign(E,Q._cssTextToMap(F.parsedCssText))});
return E};
_.K._consumeCssProperties=function(v,Q){for(var V;V=a7Z.exec(v);){var E=V[0],b=V[1];V=V.index;var F=V+E.indexOf("@apply"),t=V+E.length;E=v.slice(0,F);v=v.slice(t);F=Q?this._fallbacksFromPreviousRules(Q):{};Object.assign(F,this._cssTextToMap(E));b=this._atApplyToCssProperties(b,F);v=E+b+v;a7Z.lastIndex=V+b.length}return v};
_.K._atApplyToCssProperties=function(v,Q){v=v.replace(MMV,"");var V=[],E=this._map.get(v);E||(this._map.set(v,{}),E=this._map.get(v));if(E){this._currentElement&&(E.dependants[this._currentElement]=!0);var b,F=E.properties;for(b in F){var t=Q&&Q[b];E=[b,": var(",v,"_-_",b];t&&E.push(",",t.replace(DQQ,""));E.push(")");DQQ.test(F[b])&&E.push(" !important");V.push(E.join(""))}}return V.join("; ")};
_.K._replaceInitialOrInherit=function(v,Q){var V=Oxq.exec(Q);V&&(Q=V[1]?this._getInitialValueForProperty(v):"apply-shim-inherit");return Q};
_.K._cssTextToMap=function(v,Q){Q=Q===void 0?!1:Q;v=v.split(";");for(var V,E,b={},F=0;F<v.length;F++)if(V=v[F])E=V.split(":"),E.length>1&&(V=E[0].trim(),E=E.slice(1).join(":"),Q&&(E=this._replaceInitialOrInherit(V,E)),b[V]=E);return b};
_.K._invalidateMixinEntry=function(v){if(nD8)for(var Q in v.dependants)Q!==this._currentElement&&nD8(Q)};
_.K._produceCssProperties=function(v,Q,V,E,b){var F=this;V&&W39(V,function(c,C){C&&F._map.get(C)&&(E="@apply "+C+";")});
if(!E)return v;var t=this._consumeCssProperties(""+E,b);b=v.slice(0,v.indexOf("--"));var p=t=this._cssTextToMap(t,!0),Z=this._map.get(Q),d=Z&&Z.properties;d?p=Object.assign(Object.create(d),t):this._map.set(Q,p);var w=[],A,k=!1;for(A in p){var T=t[A];T===void 0&&(T="initial");!d||A in d||(k=!0);w.push(Q+"_-_"+A+": "+T)}k&&this._invalidateMixinEntry(Z);Z&&(Z.properties=p);V&&(b=v+";"+b);return b+w.join("; ")+";"};
M6.prototype.detectMixin=M6.prototype.detectMixin;M6.prototype.transformStyle=M6.prototype.JSC$11347_transformStyle;M6.prototype.transformCustomStyle=M6.prototype.transformCustomStyle;M6.prototype.transformRules=M6.prototype.transformRules;M6.prototype.transformRule=M6.prototype.transformRule;M6.prototype.transformTemplate=M6.prototype.transformTemplate;M6.prototype._separator="_-_";Object.defineProperty(M6.prototype,"invalidCallback",{get:function(){return nD8},
set:function(v){nD8=v}});var O5=new M6,qoa=function(){this.customStyleInterface=null;O5.invalidCallback=zL9},DL=function(v){!v.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(v.customStyleInterface=window.ShadyCSS.CustomStyleInterface,v.customStyleInterface.transformCallback=function(Q){O5.transformCustomStyle(Q)},v.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){v.customStyleInterface.enqueued&&v.flushCustomStyles()})})};
_.K=qoa.prototype;_.K.prepareTemplate=function(v,Q){DL(this);oKm(v)===""&&(S7o[Q]=v,Q=O5.transformTemplate(v,Q),v._styleAst=Q)};
_.K.flushCustomStyles=function(){DL(this);if(this.customStyleInterface){var v=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var Q=0;Q<v.length;Q++){var V=this.customStyleInterface.getStyleForCustomStyle(v[Q]);V&&O5.transformCustomStyle(V)}this.customStyleInterface.enqueued=!1}}};
_.K.styleSubtree=function(v,Q){DL(this);Q&&ttB(v,Q);if(v.shadowRoot)for(this.styleElement(v),v=v.shadowRoot.children||v.shadowRoot.childNodes,Q=0;Q<v.length;Q++)this.styleSubtree(v[Q]);else for(v=v.children||v.childNodes,Q=0;Q<v.length;Q++)this.styleSubtree(v[Q])};
_.K.styleElement=function(v){DL(this);var Q=v.localName,V;Q?Q.indexOf("-")>-1?V=Q:V=v.getAttribute&&v.getAttribute("is")||"":V=v.is;Q=S7o[V];if(!(Q&&oKm(Q)!==""||!Q||JI0(Q))){if(JI0(Q)||Q._applyShimValidatingVersion!==Q._applyShimNextVersion)this.prepareTemplate(Q,V),xq3(Q);if(v=v.shadowRoot)if(v=v.querySelector("style"))v.__cssRules=Q._styleAst,v.textContent=gKE(Q._styleAst)}};
_.K.styleDocument=function(v){DL(this);this.styleSubtree(document.body,v)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var l8=new qoa,SoA=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(v,Q){l8.flushCustomStyles();l8.prepareTemplate(v,Q)},
prepareTemplateStyles:function(v,Q,V){window.ShadyCSS.prepareTemplate(v,Q,V)},
prepareTemplateDom:function(){},
styleSubtree:function(v,Q){l8.flushCustomStyles();l8.styleSubtree(v,Q)},
styleElement:function(v){l8.flushCustomStyles();l8.styleElement(v)},
styleDocument:function(v){l8.flushCustomStyles();l8.styleDocument(v)},
getComputedStyleValue:function(v,Q){return pZB(v,Q)},
flushCustomStyles:function(){l8.flushCustomStyles()},
nativeCss:BBE,nativeShadow:wZh,cssBuild:dC,disableRuntime:I7a};SoA&&(window.ShadyCSS.CustomStyleInterface=SoA)}window.ShadyCSS.ApplyShim=O5;var z1Z;z1Z=window.ShadyCSS;_.q6=FB(function(v){v=bxA(LY(v));var Q=BgV?v:fMX(v),V=G4A(Q),E={x:"pan-x",y:"pan-y",none:"none",all:"auto"};v=function(){return Q.call(this)||this};
_.f(v,Q);v.prototype.created=function(){};
v.prototype.__attributeReaction=function(b,F,t){(this.__dataAttributes&&this.__dataAttributes[b]||b==="disable-upgrade")&&this.attributeChangedCallback(b,F,t,null)};
v.prototype.setAttribute=function(b,F){if(ZhZ&&!this._legacyForceObservedAttributes){var t=this.getAttribute(b);Q.prototype.setAttribute.call(this,b,F);this.__attributeReaction(b,t,String(F))}else Q.prototype.setAttribute.call(this,b,F)};
v.prototype.removeAttribute=function(b){if(ZhZ&&!this._legacyForceObservedAttributes){var F=this.getAttribute(b);Q.prototype.removeAttribute.call(this,b);this.__attributeReaction(b,F,null)}else Q.prototype.removeAttribute.call(this,b)};
v.prototype._enableProperties=function(){this.__isUpgradeDisabled||Q.prototype._enableProperties.call(this)};
v.prototype._canApplyPropertyDefault=function(b){return Q.prototype._canApplyPropertyDefault.call(this,b)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(b))};
v.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(Q.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
v.prototype.attached=function(){};
v.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(Q.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
v.prototype.detached=function(){};
v.prototype.attributeChangedCallback=function(b,F,t,p){F!==t&&(b=="disable-upgrade"?this.__isUpgradeDisabled&&t==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Jq)(this).isConnected&&this.connectedCallback()):(Q.prototype.attributeChangedCallback.call(this,b,F,t,p),this.attributeChanged(b,F,t)))};
v.prototype.attributeChanged=function(){};
v.prototype._initializeProperties=function(){if(UH&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var b=Object.getPrototypeOf(this);b.hasOwnProperty("__hasRegisterFinished")||(this._registered(),b.__hasRegisterFinished=!0);Q.prototype._initializeProperties.call(this);this.root=this;this.created();ZhZ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
v.prototype._takeAttributes=function(){for(var b=this.attributes,F=0,t=b.length;F<t;F++){var p=b[F];this.__attributeReaction(p.name,null,p.value)}};
v.prototype._registered=function(){};
v.prototype.ready=function(){this._ensureAttributes();Q.prototype.ready.call(this)};
v.prototype._ensureAttributes=function(){};
v.prototype._applyListeners=function(){};
v.prototype.serialize=function(b){return this._serializeValue(b)};
v.prototype.deserialize=function(b,F){return this._deserializeValue(b,F)};
v.prototype.reflectPropertyToAttribute=function(b,F,t){this._propertyToAttribute(b,F,t)};
v.prototype.serializeValueToAttribute=function(b,F,t){this._valueToNodeAttribute(t||this,b,F)};
v.prototype.extend=function(b,F){if(!b||!F)return b||F;for(var t=Object.getOwnPropertyNames(F),p=0,Z=void 0;p<t.length&&(Z=t[p]);p++){var d=Object.getOwnPropertyDescriptor(F,Z);d&&Object.defineProperty(b,Z,d)}return b};
v.prototype.mixin=function(b,F){for(var t in F)b[t]=F[t];return b};
v.prototype.chainObject=function(b,F){b&&F&&b!==F&&(b.__proto__=F);return b};
v.prototype.instanceTemplate=function(b){b=this.constructor._contentForTemplate(b);return document.importNode(b,!0)};
v.prototype.fire=function(b,F,t){t=t||{};F=F===null||F===void 0?{}:F;b=new Event(b,{bubbles:t.bubbles===void 0?!0:t.bubbles,cancelable:!!t.cancelable,composed:t.composed===void 0?!0:t.composed});b.detail=F;(0,_.Jq)(t.node||this).dispatchEvent(b);return b};
v.prototype.listen=function(b,F,t){b=b||this;var p=this.__boundListeners||(this.__boundListeners=new WeakMap),Z=p.get(b);Z||(Z={},p.set(b,Z));p=F+t;Z[p]||(Z[p]=this._addMethodEventListenerToNode(b,F,t,this))};
v.prototype.unlisten=function(b,F,t){b=b||this;var p=this.__boundListeners&&this.__boundListeners.get(b);t=F+t;var Z=p&&p[t];Z&&(this._removeEventListenerFromNode(b,F,Z),p[t]=null)};
v.prototype.setScrollDirection=function(b,F){_.Ic(F||this,E[b]||"auto")};
v.prototype.$$=function(b){return this.root.querySelector(b)};
v.prototype.distributeContent=function(){var b=_.wi(this);window.ShadyDOM&&b.shadowRoot&&ShadyDOM.flush()};
v.prototype.getEffectiveChildNodes=function(){return _.wi(this).getEffectiveChildNodes()};
v.prototype.queryDistributedElements=function(b){return _.wi(this).queryDistributedElements(b)};
v.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
v.prototype.getEffectiveTextContent=function(){for(var b=this.getEffectiveChildNodes(),F=[],t=0,p;p=b[t];t++)p.nodeType!==Node.COMMENT_NODE&&F.push(p.textContent);return F.join("")};
v.prototype.queryEffectiveChildren=function(b){return(b=this.queryDistributedElements(b))&&b[0]};
v.prototype.queryAllEffectiveChildren=function(b){return this.queryDistributedElements(b)};
v.prototype.getContentChildNodes=function(b){return(b=this.root.querySelector(b||"slot"))?_.wi(b).getDistributedNodes():[]};
v.prototype.getContentChildren=function(b){return this.getContentChildNodes(b).filter(function(F){return F.nodeType===Node.ELEMENT_NODE})};
v.prototype.isLightDescendant=function(b){return this!==b&&(0,_.Jq)(this).contains(b)&&(0,_.Jq)(this).getRootNode()===(0,_.Jq)(b).getRootNode()};
v.prototype.isLocalDescendant=function(b){return this.root===(0,_.Jq)(b).getRootNode()};
v.prototype.scopeSubtree=function(b,F){return TBb(b,F===void 0?!1:F)};
v.prototype.getComputedStyleValue=function(b){return z1Z.getComputedStyleValue(this,b)};
v.prototype.debounce=function(b,F,t){this._debouncers=this._debouncers||{};return this._debouncers[b]=_.w9(this._debouncers[b],t>0?_.b8.after(t):Ha,F.bind(this))};
v.prototype.isDebouncerActive=function(b){this._debouncers=this._debouncers||{};b=this._debouncers[b];return!(!b||!b.isActive())};
v.prototype.flushDebouncer=function(b){this._debouncers=this._debouncers||{};(b=this._debouncers[b])&&b.flush()};
v.prototype.cancelDebouncer=function(b){this._debouncers=this._debouncers||{};(b=this._debouncers[b])&&b.cancel()};
v.prototype.async=function(b,F){return F>0?_.b8.run(b.bind(this),F):~Ha.run(b.bind(this))};
v.prototype.cancelAsync=function(b){b<0?Ha.cancel(~b):_.b8.cancel(b)};
v.prototype.create=function(b,F){b=document.createElement(b);if(F)if(b.setProperties)b.setProperties(F);else for(var t in F)b[t]=F[t];return b};
v.prototype.elementMatches=function(b,F){return dQN(F||this,b)};
v.prototype.toggleAttribute=function(b,F){var t=this;arguments.length===3&&(t=arguments[2]);arguments.length==1&&(F=!t.hasAttribute(b));if(F)return(0,_.Jq)(t).setAttribute(b,""),!0;(0,_.Jq)(t).removeAttribute(b);return!1};
v.prototype.toggleClass=function(b,F,t){t=t||this;arguments.length==1&&(F=!t.classList.contains(b));F?t.classList.add(b):t.classList.remove(b)};
v.prototype.transform=function(b,F){F=F||this;F.style.webkitTransform=b;F.style.transform=b};
v.prototype.translate3d=function(b,F,t,p){this.transform("translate3d("+b+","+F+","+t+")",p||this)};
v.prototype.arrayDelete=function(b,F){if(Array.isArray(b)){if(F=b.indexOf(F),F>=0)return b.splice(F,1)}else if(F=qF(this,b).indexOf(F),F>=0)return this.splice(b,F,1);return null};
v.prototype._logger=function(b,F){Array.isArray(F)&&F.length===1&&Array.isArray(F[0])&&(F=F[0]);switch(b){case "log":case "warn":case "error":console[b].apply(console,_.ui(F))}};
v.prototype._log=function(){this._logger("log",_.aE.apply(0,arguments))};
v.prototype._warn=function(){this._logger("warn",_.aE.apply(0,arguments))};
v.prototype._error=function(){this._logger("error",_.aE.apply(0,arguments))};
v.prototype._logf=function(b){return["[%s::%s]",this.is,b].concat(_.ui(_.aE.apply(1,arguments)))};
_.hr.Object.defineProperties(v.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var b=(0,_.Jq)(this).getRootNode();return b instanceof DocumentFragment?b.host:b}}});
_.hr.Object.defineProperties(v,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return ZhZ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],kz3(this.prototype)),this.__observedAttributes):V.call(this).concat("disable-upgrade")}}});
v.prototype.is="";return v});Polymer.FlattenedNodesObserver=e1N;Polymer.DomApi=k4a;Polymer.EventApi=Gj;Polymer.dom=_.wi;Polymer.dom.matchesSelector=dQN;Polymer.dom.flush=_.yg;Polymer.dom.addDebouncer=_.Ac;Polymer.DirMixin=fMX;Polymer.RenderStatus={beforeNextRender:_.wC3,afterNextRender:_.PE,flush:function(){for(;Pqr.length||Z3.length;)ZNZ(Pqr),ZNZ(Z3);eu=!1}};Polymer.LegacyElementMixin=_.q6;var JRX;JRX=Tj._mutablePropertyChange;var NEV={properties:{mutableData:Boolean},_shouldPropertyChange:function(v,Q,V){return JRX(this,v,Q,V,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(v,Q,V){return JRX(this,v,Q,V,!0)}};
Polymer.OptionalMutableDataBehavior=NEV;var XCS={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},HN9={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},IDr=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},HN9),xQR=(0,_.q6)(HTMLElement),rVB=function(v,Q){v||console.warn("Polymer.Class requires `info` argument");Q=Q?Q(xQR):xQR;Q=mqQ(v,Q,v.behaviors);Q.is=Q.prototype.is=
v.is;return Q};Polymer.Class=rVB;Polymer.mixinBehaviors=function(v,Q){return mqQ({},(0,_.q6)(Q),v)};
Polymer.GenerateClassFromInfo=mqQ;_.fh=function(v){var Q=typeof v==="function"?v:_.fh.Class(v);v._legacyForceObservedAttributes&&(Q.prototype._legacyForceObservedAttributes=v._legacyForceObservedAttributes);customElements.define(Q.is,Q);return Q};
_.fh.Class=rVB;Polymer._polymerFn=_.fh;var BEq=window.onLegacyPolymerFunctionDefinedCallback;BEq&&BEq();var IJZ={templatize:function(v,Q){this._templatizerTemplate=v;this.ctor=bu(v,this,{mutableData:!!Q,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(v){return new this.ctor(v)},
modelForElement:function(v){return iNb(this._templatizerTemplate,v)}};Polymer.Templatizer=IJZ;_.SO=(0,_.q6)(HTMLElement).prototype;Polymer.Base=_.SO;var v$r=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.wC=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(_.wC,PolymerFakeBaseClass);var Ar=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(Ar,PolymerFakeBaseClass);var QMZ=Symbol("Sd"),t3h=[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 gDx=gDx||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},sdS;(function(v){function Q(g,u,r){var v9=a.get(g);if(!v9){if(!r)return;v9=new l;a.set(g,v9)}g=v9.get(u);if(!g){if(!r)return;g=new l;v9.set(u,g)}return g}
function V(g,u,r){if(E(g,u,r))return!0;u=k(u);return u!==null?V(g,u,r):!1}
function E(g,u,r){u=Q(u,r,!1);return u===void 0?!1:!!u.has(g)}
function b(g,u,r){if(E(g,u,r))return F(g,u,r);u=k(u);if(u!==null)return b(g,u,r)}
function F(g,u,r){u=Q(u,r,!1);if(u!==void 0)return u.get(g)}
function t(g,u){var r=p(g,u);g=k(g);if(g===null)return r;var v9=t(g,u);if(v9.length<=0)return r;if(r.length<=0)return v9;u=new S;g=[];r=_.L(r);for(var t3=r.next();!t3.done;t3=r.next())t3=t3.value,u.has(t3)||(u.add(t3),g.push(t3));r=_.L(v9);for(v9=r.next();!v9.done;v9=r.next())v9=v9.value,u.has(v9)||(u.add(v9),g.push(v9));return g}
function p(g,u){g=Q(g,u,!1);var r=[];g&&g.forEach(function(v9,t3){return r.push(t3)});
return r}
function Z(g){return g===void 0}
function d(g){return typeof g==="object"?g!==null:typeof g==="function"}
function w(g){return typeof g==="function"}
function A(g){return typeof g==="symbol"?g:String(g)}
function k(g){var u=Object.getPrototypeOf(g);if(typeof g!=="function"||g===R||u!==R)return u;var r=Object.getPrototypeOf(g.prototype);if(r==null||r===Object.prototype)return u;r=r.constructor;return typeof r!=="function"||r===g?u:r}
function T(){function g(){this._keys=[];this._values=[];this._cache=u}
var u={};g.prototype={get size(){return this._keys.length},has:function(r){return r===this._cache?!0:this._find(r)>=0?(this._cache=r,!0):!1},
get:function(r){var v9=this._find(r);if(v9>=0)return this._cache=r,this._values[v9]},
set:function(r,v9){this.delete(r);this._keys.push(r);this._values.push(v9);this._cache=r;return this},
delete:function(r){r=this._find(r);return r>=0?(this._keys.splice(r,1),this._values.splice(r,1),this._cache=u,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=u},
forEach:function(r){for(var v9=this.size,t3=0;t3<v9;++t3){var h3=this._keys[t3],OB=this._values[t3];this._cache=h3;r.call(this,OB,h3,this)}},
_find:function(r){for(var v9=this._keys,t3=v9.length,h3=0;h3<t3;++h3)if(v9[h3]===r)return h3;return-1}};
return g}
function c(){function g(){this._map=new l}
g.prototype={get size(){return this._map.length},has:function(u){return this._map.has(u)},
add:function(u){this._map.set(u,u);return this},
delete:function(u){return this._map.delete(u)},
clear:function(){this._map.clear()},
forEach:function(u,r){this._map.forEach(u,r)}};
return g}
function C(){function g(){this._key=r()}
function u(yo,xQ){for(var lb=0;lb<xQ;++lb)yo[lb]=Math.random()*255|0}
function r(){do{if(t3)var yo=t3.randomBytes(16);else typeof Uint8Array==="function"?(yo=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(yo):u(yo,16)):(yo=Array(16),u(yo,16));yo[6]=yo[6]&79|64;yo[8]=yo[8]&191|128;for(var xQ="",lb=0;lb<16;++lb){var ep=yo[lb];if(lb===4||lb===6||lb===8)xQ+="-";ep<16&&(xQ+="0");xQ+=ep.toString(16).toLowerCase()}yo="@@WeakMap@@"+xQ}while(h3.call(OB,yo));OB[yo]=!0;return yo}
function v9(yo,xQ){if(!h3.call(yo,kQ)){if(!xQ)return;Object.defineProperty(yo,kQ,{value:Object.create(null)})}return yo[kQ]}
var t3=typeof global!=="undefined"&&typeof gDx==="object"&&typeof require==="function"&&require("crypto"),h3=Object.prototype.hasOwnProperty,OB={},kQ=r();g.prototype={has:function(yo){return(yo=v9(yo,!1))?this._key in yo:!1},
get:function(yo){if(yo=v9(yo,!1))return yo[this._key]},
set:function(yo,xQ){v9(yo,!0)[this._key]=xQ;return this},
delete:function(yo){return(yo=v9(yo,!1))&&this._key in yo?delete yo[this._key]:!1},
clear:function(){this._key=r()}};
return g}
var R=Object.getPrototypeOf(Function),l=typeof Map==="function"?Map:T(),S=typeof Set==="function"?Set:c(),a=new (typeof WeakMap==="function"?WeakMap:C());v.decorate=function(g,u,r,v9){if(Z(v9)){if(Z(r)){if(!Array.isArray(g))throw new TypeError;if(!w(u))throw new TypeError;for(r=g.length-1;r>=0;--r)if(v9=(0,g[r])(u),!Z(v9)){if(!w(v9))throw new TypeError;u=v9}return u}if(!Array.isArray(g))throw new TypeError;if(!d(u))throw new TypeError;r=A(r);for(v9=g.length-1;v9>=0;--v9)(0,g[v9])(u,r)}else{if(Array.isArray(g))if(d(u)){if(Z(r))throw new TypeError;
if(!d(v9))throw new TypeError;}else throw new TypeError;else throw new TypeError;r=A(r);for(var t3=g.length-1;t3>=0;--t3){var h3=(0,g[t3])(u,r,v9);if(!Z(h3)){if(!d(h3))throw new TypeError;v9=h3}}return v9}};
v.metadata=function(g,u){return function(r,v9){if(Z(v9)){if(!w(r))throw new TypeError;Q(r,void 0,!0).set(g,u)}else{if(!d(r))throw new TypeError;v9=A(v9);Q(r,v9,!0).set(g,u)}}};
v.defineMetadata=function(g,u){var r;if(d(u))Z(r)||(r=A(r));else throw new TypeError;Q(u,r,!0).set("parameters",g)};
v.hasMetadata=function(g,u,r){if(d(u))Z(r)||(r=A(r));else throw new TypeError;return V(g,u,r)};
v.hasOwnMetadata=function(g,u,r){if(d(u))Z(r)||(r=A(r));else throw new TypeError;return E(g,u,r)};
v.getMetadata=function(g,u,r){if(d(u))Z(r)||(r=A(r));else throw new TypeError;return b(g,u,r)};
v.getOwnMetadata=function(g,u,r){if(d(u))Z(r)||(r=A(r));else throw new TypeError;return F(g,u,r)};
v.getMetadataKeys=function(g,u){if(d(g))Z(u)||(u=A(u));else throw new TypeError;return t(g,u)};
v.getOwnMetadataKeys=function(g,u){if(d(g))Z(u)||(u=A(u));else throw new TypeError;return p(g,u)};
v.deleteMetadata=function(g,u,r){if(d(u))Z(r)||(r=A(r));else throw new TypeError;var v9=Q(u,r,!1);if(!Z(v9)){if(!v9.delete(g))return!1;if(v9.size>0)return!0;g=a.get(u);g.delete(r);if(g.size>0)return!0;a.delete(u);return!0}};
(function(g){if(typeof g.Reflect!=="undefined"){if(g.Reflect!==v)for(var u in v)g.Reflect[u]=v[u]}else g.Reflect=v})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(sdS||(sdS={}));var frh=self;var uLa=[0,_.WC,_.aq,_.WC];var jdx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(jdx,_.Lf);var WdS=_.YP(jdx,[0,_.m3,_.Iq,uLa,_.aq,_.v7]);var Xga=[0,_.U7,-3,_.v7,_.m3,_.WC,_.khA,_.U7,YdR,hmA,xK,_.oq,_.WC,function(){return oDq},
_.aq],oDq=[0,_.Iq,function(){return Xga},
_.m3,14,_.U7];_.HZ(_.ky,_.J5);_.K=_.ky.prototype;_.K.start=function(){this.stop();this.usingListeners_=!1;var v=aMp(this),Q=rRS(this);v&&!Q&&this.JSC$11390_win_.mozRequestAnimationFrame?(this.JSC$11390_id_=_.wE(this.JSC$11390_win_,"MozBeforePaint",this.callback_),this.JSC$11390_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11390_id_=v&&Q?v.call(this.JSC$11390_win_,this.callback_):this.JSC$11390_win_.setTimeout(gwp(this.callback_),20)};
_.K.stop=function(){if(this.isActive()){var v=aMp(this),Q=rRS(this);v&&!Q&&this.JSC$11390_win_.mozRequestAnimationFrame?Pg(this.JSC$11390_id_):v&&Q?Q.call(this.JSC$11390_win_,this.JSC$11390_id_):this.JSC$11390_win_.clearTimeout(this.JSC$11390_id_)}this.JSC$11390_id_=null};
_.K.fire=function(){this.stop();this.JSC$11392_doAction_()};
_.K.isActive=function(){return this.JSC$11390_id_!=null};
_.K.JSC$11392_doAction_=function(){this.usingListeners_&&this.JSC$11390_id_&&Pg(this.JSC$11390_id_);this.JSC$11390_id_=null;this.JSC$11390_listener_.call(this.handler_,_.IC())};
_.K.disposeInternal=function(){this.stop();_.ky.superClass_.disposeInternal.call(this)};
var aMp=function(v){v=v.JSC$11390_win_;return v.requestAnimationFrame||v.webkitRequestAnimationFrame||v.mozRequestAnimationFrame||v.oRequestAnimationFrame||v.msRequestAnimationFrame||null},rRS=function(v){v=v.JSC$11390_win_;
return v.cancelAnimationFrame||v.cancelRequestAnimationFrame||v.webkitCancelRequestAnimationFrame||v.mozCancelRequestAnimationFrame||v.oCancelRequestAnimationFrame||v.msCancelRequestAnimationFrame||null};_.FK=function(v,Q,V){_.J5.call(this);this.JSC$11393_listener_=V!=null?v.bind(V):v;this.JSC$11393_interval_=Q;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11393_timer_=null};
_.f(_.FK,_.J5);_.K=_.FK.prototype;_.K.fire=function(v){this.args_=arguments;this.JSC$11393_timer_||this.pauseCount_?this.shouldFire_=!0:$Qx(this)};
_.K.stop=function(){this.JSC$11393_timer_&&(_.bb.clearTimeout(this.JSC$11393_timer_),this.JSC$11393_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.K.pause=function(){this.pauseCount_++};
_.K.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11393_timer_||(this.shouldFire_=!1,$Qx(this))};
_.K.disposeInternal=function(){_.J5.prototype.disposeInternal.call(this);this.stop()};
var $Qx=function(v){v.JSC$11393_timer_=SD(function(){v.JSC$11393_timer_=null;v.shouldFire_&&!v.pauseCount_&&(v.shouldFire_=!1,$Qx(v))},v.JSC$11393_interval_);
var Q=v.args_;v.args_=null;v.JSC$11393_listener_.apply(null,Q)};var IMa=function(v,Q){this.childIterator_=v[_.bb.Symbol.iterator]();this.mapFn_=Q};
IMa.prototype[Symbol.iterator]=function(){return this};
IMa.prototype.next=function(){var v=this.childIterator_.next();return{value:v.done?void 0:this.mapFn_.call(void 0,v.value),done:v.done}};
var HxV=function(v,Q){return new IMa(v,Q)};var mQA={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 e70=function(v){var Q=UQZ(v);if(!Q)throw Error("Wd`"+v);return Q},UQZ=function(v){var Q={};
v=String(v);var V=v.charAt(0)=="#"?v:"#"+v;if(vWX.test(V))return Q.hex=E3E(V),Q.type="hex",Q;V=h7Q(v);return V.length?(Q.hex=sV9(V[0],V[1],V[2]),Q.type="rgb",Q):mQA&&(v=mQA[v.toLowerCase()])?(Q.hex=v,Q.type="named",Q):null},QJR=/#(.)(.)(.)/,E3E=function(v){if(!vWX.test(v))throw Error("Yd`"+v);
v.length==4&&(v=v.replace(QJR,"#$1$1$2$2$3$3"));return v.toLowerCase()},ZLG=function(v){v=E3E(v);
v=parseInt(v.slice(1),16);return[v>>16,v>>8&255,v&255]},sV9=function(v,Q,V){v=Number(v);
Q=Number(Q);V=Number(V);if(v!=(v&255)||Q!=(Q&255)||V!=(V&255))throw Error("Zd`"+v+"`"+Q+"`"+V);Q=v<<16|Q<<8|V;return v<16?"#"+(16777216|Q).toString(16).slice(1):"#"+Q.toString(16)},vWX=/^#(?:[0-9a-f]{3}){1,2}$/i,V$8=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,h7Q=function(v){var Q=v.match(V$8);
if(Q){v=Number(Q[1]);var V=Number(Q[2]);Q=Number(Q[3]);if(v>=0&&v<=255&&V>=0&&V<=255&&Q>=0&&Q<=255)return[v,V,Q]}return[]};var EWN={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},Kr=EWN;Kr=EWN;var UGh,b_N,F0Q;UGh=function(v,Q){switch(Q){case 1:return v%4!=0||v%100==0&&v%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
b_N=function(v,Q,V,E,b){v=new Date(v,Q,V);b=b||0;return v.valueOf()+(((E!==void 0?E:3)-b+7)%7-((v.getDay()+6)%7-b+7)%7)*864E5};
_.zj=function(v,Q,V){typeof v==="number"?(this.date=F0Q(v,Q||0,V||1),K0V(this,V||1)):_.rG(v)?(this.date=F0Q(v.getFullYear(),v.getMonth(),v.getDate()),K0V(this,v.getDate())):(this.date=new Date(_.IC()),v=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),K0V(this,v))};
F0Q=function(v,Q,V){Q=new Date(v,Q,V);v>=0&&v<100&&Q.setFullYear(Q.getFullYear()-1900);return Q};
_.K=_.zj.prototype;_.K.firstDayOfWeek_=Kr.FIRSTDAYOFWEEK;_.K.firstWeekCutOffDay_=Kr.FIRSTWEEKCUTOFFDAY;_.K.clone=function(){var v=new _.zj(this.date);v.firstDayOfWeek_=this.firstDayOfWeek_;v.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return v};
_.K.getFullYear=function(){return this.date.getFullYear()};
_.K.getYear=function(){return this.getFullYear()};
_.K.getMonth=function(){return this.date.getMonth()};
_.K.getDate=function(){return this.date.getDate()};
_.K.getTime=function(){return this.date.getTime()};
_.K.getDay=function(){return this.date.getDay()};
_.K.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.K.getUTCMonth=function(){return this.date.getUTCMonth()};
_.K.getUTCDate=function(){return this.date.getUTCDate()};
_.K.getUTCDay=function(){return this.date.getDay()};
_.K.getUTCHours=function(){return this.date.getUTCHours()};
_.K.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.K.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.K.set=function(v){this.date=new Date(v.getFullYear(),v.getMonth(),v.getDate())};
_.K.setFullYear=function(v){this.date.setFullYear(v)};
_.K.setYear=function(v){this.setFullYear(v)};
_.K.setMonth=function(v){this.date.setMonth(v)};
_.K.setDate=function(v){this.date.setDate(v)};
_.K.setTime=function(v){this.date.setTime(v)};
_.K.setUTCFullYear=function(v){this.date.setUTCFullYear(v)};
_.K.setUTCMonth=function(v){this.date.setUTCMonth(v)};
_.K.setUTCDate=function(v){this.date.setUTCDate(v)};
_.K.add=function(v){if(v.years||v.months){var Q=this.getMonth()+v.months+v.years*12,V=this.getYear()+Math.floor(Q/12);Q%=12;Q<0&&(Q+=12);var E=Math.min(UGh(V,Q),this.getDate());this.setDate(1);this.setFullYear(V);this.setMonth(Q);this.setDate(E)}v.days&&(V=this.getYear(),Q=V>=0&&V<=99?-1900:0,v=new Date((new Date(V,this.getMonth(),this.getDate(),12)).getTime()+v.days*864E5),this.setDate(1),this.setFullYear(v.getFullYear()+Q),this.setMonth(v.getMonth()),this.setDate(v.getDate()),K0V(this,v.getDate()))};
_.K.JSC$11406_toIsoString=function(v){var Q=this.getFullYear(),V=Q<0?"-":Q>=1E4?"+":"";return[V+_.iy(Math.abs(Q),V?6:4),_.iy(this.getMonth()+1,2),_.iy(this.getDate(),2)].join(v?"-":"")};
_.K.equals=function(v){return!(!v||this.getYear()!=v.getYear()||this.getMonth()!=v.getMonth()||this.getDate()!=v.getDate())};
_.K.toString=function(){return this.JSC$11406_toIsoString()};
var K0V=function(v,Q){v.getDate()!=Q&&v.date.setUTCHours(v.date.getUTCHours()+(v.getDate()<Q?1:-1))};
_.zj.prototype.valueOf=function(){return this.date.valueOf()};var N6=function(v,Q,V,E,b){this.reversed=!!Q;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!V;v&&Jc(this,v,E);this.depth=b!=void 0?b:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.HZ(N6,ZI);var Jc=function(v,Q,V,E){if(v.node=Q)v.tagType=typeof V==="number"?V:v.node.nodeType!=1?0:v.reversed?-1:1;typeof E==="number"&&(v.depth=E)};
_.K=N6.prototype;_.K.JSC$11421_copyFrom=function(v){this.node=v.node;this.tagType=v.tagType;this.depth=v.depth;this.reversed=v.reversed;this.constrained=v.constrained};
_.K.clone=function(){return new N6(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.K.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return PL;var v=this.node;var Q=this.reversed?-1:1;if(this.tagType==Q){var V=this.reversed?v.lastChild:v.firstChild;V?Jc(this,V):Jc(this,v,Q*-1)}else(V=this.reversed?v.previousSibling:v.nextSibling)?Jc(this,V):Jc(this,v.parentNode,Q*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(v=this.node)?de(v):PL};
_.K.equals=function(v){return v.node==this.node&&(!this.node||v.tagType==this.tagType)};
_.K.splice=function(v){var Q=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;N6.prototype.next.call(this);this.reversed=!this.reversed;V=_.W9(arguments[0])?arguments[0]:arguments;for(var E=V.length-1;E>=0;E--)_.JZ(V[E],Q);_.ng(Q)};var i_q=function(){},x5=function(v){for(var Q=[],V=v.getTextRangeCount(),E=0;E<V;E++)Q.push(v.getTextRange(E));
return Q};
i_q.prototype.isReversed=function(){return!1};
i_q.prototype.getWindow=function(){return jS(_.W4(this.JSC$11423_getStartNode()))};
var L0S=function(v,Q){N6.call(this,v,Q,!0)};
_.HZ(L0S,N6);var BV=function(v,Q,V,E,b){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!b;if(v){this.startNode_=v;this.startOffset_=Q;this.endNode_=V;this.endOffset_=E;if(v.nodeType==1&&v.tagName!="BR")if(v=v.childNodes,Q=v[Q])this.startNode_=Q,this.startOffset_=0;else{v.length&&(this.startNode_=_.z0(v));var F=!0}V.nodeType==1&&((this.endNode_=V.childNodes[E])?this.endOffset_=0:this.endNode_=V)}N6.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);F&&this.next()};
_.HZ(BV,L0S);_.K=BV.prototype;_.K.JSC$11429_getStartNode=function(){return this.startNode_};
_.K.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)};
_.K.next=function(){return this.isLast()?PL:BV.superClass_.next.call(this)};
_.K.JSC$11421_copyFrom=function(v){this.startNode_=v.startNode_;this.endNode_=v.endNode_;this.startOffset_=v.startOffset_;this.endOffset_=v.endOffset_;this.isReversed_=v.isReversed_;BV.superClass_.JSC$11421_copyFrom.call(this,v)};
_.K.clone=function(){var v=new BV(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);v.JSC$11421_copyFrom(this);return v};var t$q=function(){};
t$q.prototype.__iterator__=function(){return new BV(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var g9=function(v){this.range_=v};
_.HZ(g9,t$q);var p_V=function(v){var Q=_.W4(v).createRange();if(v.nodeType==3)Q.setStart(v,0),Q.setEnd(v,v.length);else if(qc(v)||v.nodeType==3){for(var V,E=v;(V=E.firstChild)&&(qc(V)||V.nodeType==3);)E=V;Q.setStart(E,0);for(E=v;(V=E.lastChild)&&(qc(V)||V.nodeType==3);)E=V;Q.setEnd(E,E.nodeType==1?E.childNodes.length:E.length)}else V=v.parentNode,v=Array.prototype.indexOf.call(V.childNodes,v),Q.setStart(V,v),Q.setEnd(V,v+1);return Q},egX=function(v,Q,V,E){var b=_.W4(v).createRange();
b.setStart(v,Q);b.setEnd(V,E);return b};
_.K=g9.prototype;_.K.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.K.getContainer=function(){return this.range_.commonAncestorContainer};
_.K.compareBrowserRangeEndpoints=function(v,Q,V){return this.range_.compareBoundaryPoints(V==1?Q==1?_.bb.Range.START_TO_START:_.bb.Range.START_TO_END:Q==1?_.bb.Range.END_TO_START:_.bb.Range.END_TO_END,v)};
_.K.isCollapsed=function(){return this.range_.collapsed};
_.K.select=function(v){this.selectInternal(jS(_.W4(this.range_.startContainer)).getSelection(),v)};
_.K.selectInternal=function(v){v.removeAllRanges();v.addRange(this.range_)};
_.K.insertNode=function(v,Q){var V=this.range_.cloneRange();V.collapse(Q);V.insertNode(v);V.detach();return v};
_.K.collapse=function(v){this.range_.collapse(v)};_.HZ(TE,g9);TE.prototype.selectInternal=function(v,Q){!Q||this.isCollapsed()?TE.superClass_.selectInternal.call(this,v,Q):(v.collapse(this.range_.endContainer,this.range_.endOffset),v.extend(this.range_.startContainer,this.range_.startOffset))};_.HZ(Yy,g9);Yy.prototype.compareBrowserRangeEndpoints=function(v,Q,V){return Yy.superClass_.compareBrowserRangeEndpoints.call(this,v,Q,V)};
Yy.prototype.selectInternal=function(v,Q){Q?v.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):v.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Z_N=function(v){return _.E7?new Yy(v):_.V2?new TE(v):new g9(v)};var s5=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},PPX;
_.HZ(s5,i_q);PPX=function(v,Q){var V=new s5;V.browserRangeWrapper_=v;V.isReversed_=!!Q;return V};
_.dCN=function(v){v=_.E7?new Yy(p_V(v)):_.V2?new TE(p_V(v)):new g9(p_V(v));return PPX(v)};
_.u8=function(v,Q,V,E){var b=new s5;b.isReversed_=hgA(v,Q,V,E);if(_.t8(v)&&!qc(v)){var F=v.parentNode;Q=Array.prototype.indexOf.call(F.childNodes,v);v=F}_.t8(V)&&!qc(V)&&(F=V.parentNode,E=Array.prototype.indexOf.call(F.childNodes,V),V=F);b.isReversed_?(b.startNode_=V,b.startOffset_=E,b.endNode_=v,b.endOffset_=Q):(b.startNode_=v,b.startOffset_=Q,b.endNode_=V,b.endOffset_=E);return b};
_.K=s5.prototype;_.K.clone=function(){var v=new s5;v.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();v.startNode_=this.startNode_;v.startOffset_=this.startOffset_;v.endNode_=this.endNode_;v.endOffset_=this.endOffset_;v.isReversed_=this.isReversed_;return v};
_.K.JSC$11423_getType=function(){return"text"};
_.K.getBrowserRangeObject=function(){return jO(this).range_};
_.K.getTextRangeCount=function(){return 1};
_.K.getTextRange=function(){return this};
var jO=function(v){var Q;if(!(Q=v.browserRangeWrapper_)){Q=v.JSC$11423_getStartNode();var V=v.JSC$11423_getStartOffset(),E=v.JSC$11423_getEndNode(),b=v.JSC$11423_getEndOffset();Q=_.E7?new Yy(egX(Q,V,E,b)):_.V2?new TE(egX(Q,V,E,b)):new g9(egX(Q,V,E,b));Q=v.browserRangeWrapper_=Q}return Q};
_.K=s5.prototype;_.K.getContainer=function(){return jO(this).getContainer()};
_.K.JSC$11423_getStartNode=function(){return this.startNode_||(this.startNode_=jO(this).range_.startContainer)};
_.K.JSC$11423_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=jO(this).range_.startOffset};
_.K.JSC$11423_getEndNode=function(){return this.endNode_||(this.endNode_=jO(this).range_.endContainer)};
_.K.JSC$11423_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=jO(this).range_.endOffset};
_.K.isReversed=function(){return this.isReversed_};
_.K.JSC$11423_containsRange=function(v,Q){if(v.JSC$11423_getType()=="text"){var V=jO(this);v=jO(v);Q=Q&&!v.isCollapsed();v=v.range_;V=Q?V.compareBrowserRangeEndpoints(v,0,1)>=0&&V.compareBrowserRangeEndpoints(v,1,0)<=0:V.compareBrowserRangeEndpoints(v,0,0)>=0&&V.compareBrowserRangeEndpoints(v,1,1)<=0}else V=!1;return V};
_.K.isCollapsed=function(){return jO(this).isCollapsed()};
_.K.JSC$11423_getText=function(){return jO(this).range_.toString()};
_.K.__iterator__=function(){return new BV(this.JSC$11423_getStartNode(),this.JSC$11423_getStartOffset(),this.JSC$11423_getEndNode(),this.JSC$11423_getEndOffset())};
_.K.select=function(){jO(this).select(this.isReversed_)};
_.K.JSC$11423_removeContents=function(){var v=jO(this).range_;v.extractContents();if(v.startContainer.hasChildNodes()&&(v=v.startContainer.childNodes[v.startOffset])){var Q=v.previousSibling;Jdq(v)==""&&_.ng(v);Q&&Jdq(Q)==""&&_.ng(Q)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.K.insertNode=function(v,Q){v=jO(this).insertNode(v,Q);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return v};
_.K.collapse=function(v){v=this.isReversed()?!v:v;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(v);v?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var w_Q=function(){};
_.HZ(w_Q,i_q);w_Q.prototype.JSC$11423_containsRange=function(v,Q){var V=x5(this);v=x5(v);return(Q?Kp:_.u3b)(v,function(E){return Kp(V,function(b){return b.JSC$11423_containsRange(E,Q)})})};
w_Q.prototype.insertNode=function(v,Q){Q?_.zm(v,this.JSC$11423_getStartNode()):_.JZ(v,this.JSC$11423_getEndNode());return v};var Asp,krN=qN().JSC$9406_document_.documentElement;Asp=krN.requestFullscreen?"fullscreenchange":krN.webkitRequestFullscreen?"webkitfullscreenchange":krN.mozRequestFullScreen?"mozfullscreenchange":krN.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var TSR=function(){var v=qN().JSC$9406_document_;return!!(v.webkitIsFullScreen||v.mozFullScreen||v.msFullscreenElement||v.fullscreenElement)};var WV=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.HZ(WV,w_Q);_.K=WV.prototype;_.K.clone=function(){var v=new WV;v.browserRanges_=_.jZ(this.browserRanges_);return v};
_.K.JSC$11423_getType=function(){return"mutli"};
_.K.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.K.getTextRangeCount=function(){return this.browserRanges_.length};
_.K.getTextRange=function(v){this.ranges_[v]||(this.ranges_[v]=PPX(Z_N(this.browserRanges_[v])));return this.ranges_[v]};
_.K.getContainer=function(){if(!this.container_){for(var v=[],Q=this.getTextRangeCount(),V=0;V<Q;V++)v.push(this.getTextRange(V).getContainer());this.container_=DNX.apply(null,v)}return this.container_};
var o4=function(v){v.sortedRanges_||(v.sortedRanges_=x5(v),v.sortedRanges_.sort(function(Q,V){var E=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();var b=V.JSC$11423_getStartNode();V=V.JSC$11423_getStartOffset();return E==b&&Q==V?0:hgA(E,Q,b,V)?1:-1}));
return v.sortedRanges_};
_.K=WV.prototype;_.K.JSC$11423_getStartNode=function(){return o4(this)[0].JSC$11423_getStartNode()};
_.K.JSC$11423_getStartOffset=function(){return o4(this)[0].JSC$11423_getStartOffset()};
_.K.JSC$11423_getEndNode=function(){return _.z0(o4(this)).JSC$11423_getEndNode()};
_.K.JSC$11423_getEndOffset=function(){return _.z0(o4(this)).JSC$11423_getEndOffset()};
_.K.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.K.JSC$11423_getText=function(){return x5(this).map(function(v){return v.JSC$11423_getText()}).join("")};
_.K.__iterator__=function(){return new XB(this)};
_.K.select=function(){var v=this.getWindow().getSelection();v.removeAllRanges();for(var Q=this.getTextRangeCount(),V=0;V<Q;V++)v.addRange(this.getTextRange(V).getBrowserRangeObject())};
_.K.JSC$11423_removeContents=function(){x5(this).forEach(function(v){v.JSC$11423_removeContents()})};
_.K.collapse=function(v){if(!this.isCollapsed()){var Q=v?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;Q.collapse(v);this.ranges_=[Q];this.sortedRanges_=[Q];this.browserRanges_=[Q.getBrowserRangeObject()]}};
var XB=function(v){this.iterators_=null;this.currentIdx_=0;v&&(this.iterators_=o4(v).map(function(Q){return _.lGR(Q)}));
N6.call(this,v?this.JSC$11429_getStartNode():null,!1,!0)};
_.HZ(XB,L0S);_.K=XB.prototype;_.K.JSC$11429_getStartNode=function(){return this.iterators_[0].JSC$11429_getStartNode()};
_.K.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.K.next=function(){for(;this.currentIdx_<this.iterators_.length;){var v=this.iterators_[this.currentIdx_],Q=v.next();if(Q.done)this.currentIdx_++;else return Jc(this,v.node,v.tagType,v.depth),Q}return PL};
_.K.JSC$11421_copyFrom=function(v){this.iterators_=_.jZ(v.iterators_);XB.superClass_.JSC$11421_copyFrom.call(this,v)};
_.K.clone=function(){var v=new XB(null);v.JSC$11421_copyFrom(this);return v};var YPQ,hgA;_.Qt=function(){var v=window.getSelection();return v&&YPQ(v)};
YPQ=function(v){var Q=!1;if(v.createRange)try{var V=v.createRange()}catch(b){return null}else if(v.rangeCount){if(v.rangeCount>1){V=new WV;Q=v.rangeCount;for(var E=0;E<Q;E++)V.browserRanges_.push(v.getRangeAt(E));return V}V=v.getRangeAt(0);Q=hgA(v.anchorNode,v.anchorOffset,v.focusNode,v.focusOffset)}else return null;return PPX(Z_N(V),Q)};
_.a4=function(v,Q){return _.u8(v,Q,v,Q)};
_.r9=function(v,Q,V,E){return _.u8(v,Q,V,E)};
hgA=function(v,Q,V,E){if(v==V)return E<Q;var b;if(v.nodeType==1&&Q)if(b=v.childNodes[Q])v=b,Q=0;else if(_.HM(v,V))return!0;if(V.nodeType==1&&E)if(b=V.childNodes[E])V=b,E=0;else if(_.HM(V,v))return!1;return(OwV(v,V)||Q-E)>0};var $5=function(){_.DO.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Nz)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Nz)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Nz)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Nz)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Nz)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Nz)(this.dispatchProgressEvent_,this)};
_.HZ($5,_.DO);$5.prototype.abort=function(){try{this.reader_.abort()}catch(v){throw new JYq(v,"aborting read");}};
$5.prototype.getError=function(){return this.reader_.error&&new JYq(this.reader_.error,"reading file")};
$5.prototype.dispatchProgressEvent_=function(v){this.dispatchEvent(new NiA(v,this))};
$5.prototype.disposeInternal=function(){$5.superClass_.disposeInternal.call(this);delete this.reader_};
var csV=function(v){var Q=new $5,V=ysx(Q);Q.reader_.readAsArrayBuffer(v);return V},f1A=function(v){var Q=new $5,V=ysx(Q);
Q.reader_.readAsDataURL(v);return V},ysx=function(v){var Q=new m_;
v.listen("loadend",_.pt(function(V,E){var b=E.reader_.result,F=E.getError();b==null||F?V.errback(F):V.callback(b);E.dispose()},Q,v));
return Q};var I4=function(){_.DO.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11463_eventHandler_=new _.cE(this);this.JSC$11463_isInitialized_=!1};
_.HZ(I4,_.DO);var GrX=new _.cA("d"),CPR=new _.cA("beforedragstart"),M$N=new _.cA("dragstart"),O_V=new _.cA("beforedragmove"),DCa=new _.cA("dragmove"),Rgp=new _.cA("beforedragend"),nWa=new _.cA("dragend"),l1a=new _.cA("e");I4.prototype.isDragging=function(){return!!this.JSC$11463_dragger_};
var qPZ=function(v,Q){Q.dlgGrowthDirection_=0;Q.dlgDragHoverClass_=void 0;Q.dlgDragPermission=0;v.dragLists_.push(Q)},SPQ=function(v,Q){v.getHandleForDragItem_=Q};
I4.prototype.init=function(){if(!this.JSC$11463_isInitialized_){for(var v=this.dragLists_.length,Q=0;Q<v;Q++)for(var V=_.Nc(this.dragLists_[Q]),E=V.length,b=0;b<E;++b){var F=V[b],t=this.getHandleForDragItem_(F),p=_.$Q(t);this.dragItemForHandle_[p]=F;this.dragItemHoverClasses_&&(this.JSC$11463_eventHandler_.listen(F,"mouseover",this.handleDragItemMouseover_),this.JSC$11463_eventHandler_.listen(F,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11463_eventHandler_.listen(t,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11463_eventHandler_.listen(t,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(F);this.JSC$11463_eventHandler_.listen(t,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11463_isInitialized_=!0}};
I4.prototype.disposeInternal=function(){this.JSC$11463_eventHandler_.dispose();for(var v=this.dragLists_.length,Q=0;Q<v;Q++){var V=this.dragLists_[Q];V.dlgGrowthDirection_=void 0;V.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;zga(this);I4.superClass_.disposeInternal.call(this)};
var Js8=function(v,Q){for(var V=v.dragLists_.length,E=0;E<V;E++){var b=v.dragLists_[E];b.dlgBounds_=h5o(b)}V=v.dragItems_.length;for(E=0;E<V;E++)b=v.dragItems_[E],b!=Q&&(b.dlgBounds_=h5o(b))};
_.K=I4.prototype;
_.K.handlePotentialDragStart_=function(v){var Q=_.$Q(v.currentTarget);Q=this.dragItemForHandle_[Q];if(Q.parentElement.dlgDragPermission!=2){this.currDragItem_=Q;a:{Q=this.currDragItem_;for(var V=Q.cloneNode(!0),E=lt("TEXTAREA",Q),b=lt("TEXTAREA",V),F=0;F<E.length;F++)b[F].value=E[F].value;switch(Q.tagName){case "TR":Q=_.no("TABLE",null,_.no("TBODY",null,V));break a;case "TD":case "TH":Q=_.no("TABLE",null,_.no("TBODY",null,_.no("TR",null,V)));break a;case "TEXTAREA":V.value=Q.value;default:Q=V;break a}Q=
void 0}this.draggerEl_=Q;this.draggerElClasses_&&Ig(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.W4(this.currDragItem_).body.appendChild(this.draggerEl_);V=_.ob(this.currDragItem_);Q=this.draggerEl_;E=_.ob(Q);if(V instanceof _.ua){var t=V.y;V=V.x}uy(Q,Q.offsetLeft+(V-E.x),Q.offsetTop+(Number(t)-E.y));this.JSC$11463_dragger_=new _.jN(this.draggerEl_);_.znZ(this.JSC$11463_dragger_,this.hysteresisDistance_);
_.wE(this.JSC$11463_dragger_,"start",this.handleDragStart_,!1,this);_.wE(this.JSC$11463_dragger_,"end",this.handleDragEnd_,!1,this);_.wE(this.JSC$11463_dragger_,"earlycancel",this.JSC$11465_cleanup_,!1,this);this.dispatchEvent(new HV(GrX,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11463_dragger_));this.JSC$11463_dragger_.startDrag(v)}};
_.K.handleDragStart_=function(v){if(this.dispatchEvent(new HV(CPR,this,v.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.GTA(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Ig(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var Q=uHQ(this.draggerEl_);this.draggerEl_.halfWidth=Q.width/2;this.draggerEl_.halfHeight=Q.height/2;Q=this.draggerEl_.getBoundingClientRect();
var V=v.clientY,E=JrR(this.JSC$11463_dragger_,v.clientX);if(E>Q.right){var b=this.currDragItem_.getBoundingClientRect();this.JSC$11463_dragger_.deltaX=E-(E-b.left)/b.width*Q.width}V=NCZ(this.JSC$11463_dragger_,V);V>Q.bottom&&(this.JSC$11463_dragger_.deltaY+=V-Q.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Js8(this,this.currDragItem_);this.currDragItem_.style.display="";_.wE(this.JSC$11463_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new HV(M$N,
this,v.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11463_dragger_))}else v.preventDefault(),this.JSC$11465_cleanup_()};
_.K.handleDragMove_=function(v){var Q=_.ob(this.draggerEl_);Q=new _.ua(Q.x+this.draggerEl_.halfWidth,Q.y+this.draggerEl_.halfHeight);a:{var V=null;if(this.currDragItem_.style.display!="none"){V=this.currDragItem_.parentNode;var E=h5o(V);if(NSQ(Q,E))break a}E=this.dragLists_.length;for(var b=0;b<E;b++){var F=this.dragLists_[b];if(F!=V&&NSQ(Q,F.dlgBounds_)){V=F;break a}}V=null}if(V){if(V==null)throw Error("$d");E=0;b=!1;F=void 0;switch(V.dlgGrowthDirection_){case 0:E=Q.y;var t=xCx;var p=BSX;break;case 4:b=
!0;case 2:E=Q.x;t=gWZ;p=BSX;break;case 5:b=!0;case 3:E=Q.x,t=sJa,p=uKS}for(var Z=null,d,w=_.Nc(V),A=w.length,k=0;k<A;k++){var T=w[k];if(T!=this.currDragItem_){var c=t(T.dlgBounds_);if(b){var C=jJN(T,Q);F===void 0&&(F=C);p(E,c)&&(d==void 0||C<F||C==F&&(p(c,d)||c==d))&&(Z=T,d=c);C<F&&(F=C)}else p(E,c)&&(d==void 0||p(c,d))&&(Z=T,d=c)}}t=Z!==null&&jJN(Z,Q)>F?null:Z}else t=null;if(!this.dispatchEvent(new HV(O_V,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11463_dragger_,Q,V,t)))return!1;if(V&&V.dlgDragPermission!=
1)this.currDragItem_.parentNode==V&&_.GTA(this.currDragItem_)==t||V.insertBefore(this.currDragItem_,t),this.currDragItem_.style.display="",V.dlgDragHoverClass_&&_.so(V,V.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",p=this.dragLists_.length,d=0;d<p;d++)E=this.dragLists_[d],E.dlgDragHoverClass_&&_.Bg(E,E.dlgDragHoverClass_);V!=this.currHoverList_&&(this.currHoverList_=V,Js8(this,this.currDragItem_));this.dispatchEvent(new HV(DCa,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11463_dragger_,
Q,V,t));return!1};
_.K.JSC$11465_cleanup_=function(){zga(this);this.JSC$11463_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var v=this.dragLists_.length,Q=0;Q<v;Q++)this.dragLists_[Q].dlgBounds_=null;v=this.dragItems_.length;for(Q=0;Q<v;Q++)this.dragItems_[Q].dlgBounds_=null};
_.K.handleDragEnd_=function(v){if(!this.dispatchEvent(new HV(Rgp,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11463_dragger_)))return!1;zga(this);this.dispatchEvent(new HV(nWa,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11463_dragger_));this.JSC$11465_cleanup_();return!0};
var zga=function(v){_.t5(v.JSC$11463_dragger_);var Q=v.draggerEl_&&v.draggerEl_.parentElement;v.draggerEl_&&_.ng(v.draggerEl_);v.currDragItem_&&v.currDragItem_.style.display=="none"&&(v.origList_.insertBefore(v.currDragItem_,v.origNextItem_),v.currDragItem_.style.display="");v.currDragItemClasses_&&v.currDragItem_?qfA(v.currDragItem_,v.currDragItemClasses_||[]):v.currDragItem_&&(v.currDragItem_.style.visibility="");for(var V=v.dragLists_.length,E=0;E<V;E++){var b=v.dragLists_[E];b.dlgDragHoverClass_&&
_.Bg(b,b.dlgDragHoverClass_)}Q&&v.dispatchEvent(new HV(l1a,v,null,v.currDragItem_,v.draggerEl_,v.JSC$11463_dragger_))};
_.K=I4.prototype;_.K.getHandleForDragItem_=function(v){return v};
_.K.handleDragItemMouseover_=function(v){Ig(v.currentTarget,this.dragItemHoverClasses_||[])};
_.K.handleDragItemMouseout_=function(v){qfA(v.currentTarget,this.dragItemHoverClasses_||[])};
_.K.handleDragItemHandleMouseover_=function(v){Ig(v.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.K.handleDragItemHandleMouseout_=function(v){qfA(v.currentTarget,this.dragItemHandleHoverClasses_||[])};
var NSQ=function(v,Q){return v.x>Q.left&&v.x<Q.left+Q.width&&v.y>Q.top&&v.y<Q.top+Q.height},jJN=function(v,Q){v=v.dlgBounds_;
return Math.abs(Q.y-(v.top+(v.height-1)/2))},xCx=function(v){return v.top+v.height-1},gWZ=function(v){return v.left+v.width-1},sJa=function(v){return v.left||0},BSX=function(v,Q){return v<Q},uKS=function(v,Q){return v>Q},HV=function(v,Q,V,E,b,F){_.fv.call(this,v);
this.event=V;this.currDragItem=E;this.draggerEl=b;this.JSC$11467_dragger=F};
_.HZ(HV,_.fv);_.HZ(f2,_.J5);var W0X=new _.ua(0,0);f2.prototype.JSC$11471_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
f2.prototype.JSC$11471_onMouseMove=function(v){var Q=this.containerIsActuallyContent_?W0X:nw(qN(this.containerNode_)),V=this.horizontalScrolling_?this.calculateScrollDelta(v.clientX+Q.x,this.scrollBounds_.left,this.scrollBounds_.width):0,E=this.calculateScrollDelta(v.clientY+Q.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=V;this.scrollDelta_.y=E;!(V=!V&&!E)&&(V=this.constrainScroll_)&&(V=v.clientX+Q.x,v=v.clientY+Q.y,Q=this.containerBounds_,V=!(Q.left<=V&&Q.left+Q.width>=
V&&Q.top<=v&&Q.top+Q.height>=v));V?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
f2.prototype.calculateScrollDelta=function(v,Q,V){var E=0;v<Q?E=-8:v>Q+V&&(E=8);return E};
f2.prototype.disposeInternal=function(){f2.superClass_.disposeInternal.call(this);this.JSC$11469_eventHandler_.dispose();this.scrollTimer_.dispose()};var oWa={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"}}},mv=oWa;mv=oWa;var U5={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 X_A=function(){},g8=function(v){if(typeof v=="number"){var Q=new X_A;
Q.standardOffset_=v;var V=v;if(V==0)V="Etc/GMT";else{var E=["Etc/GMT",V<0?"-":"+"];V=Math.abs(V);E.push(Math.floor(V/60)%100);V%=60;V!=0&&E.push(":",_.iy(V,2));V=E.join("")}Q.timeZoneId_=V;V=v;V==0?V="UTC":(E=["UTC",V<0?"+":"-"],V=Math.abs(V),E.push(Math.floor(V/60)%100),V%=60,V!=0&&E.push(":",V),V=E.join(""));v=a1p(v);Q.tzNames_=[V,V];Q.tzNamesExt_={STD_LONG_NAME_GMT:v,STD_GENERIC_LOCATION:v};Q.transitions_=[];return Q}Q=new X_A;Q.timeZoneId_=v.id;Q.standardOffset_=-v.std_offset;Q.tzNames_=v.names;
Q.tzNamesExt_=v.names_ext;Q.transitions_=v.transitions;return Q},a1p=function(v){var Q=["GMT"];
Q.push(v<=0?"+":"-");v=Math.abs(v);Q.push(_.iy(Math.floor(v/60)%100,2),":",_.iy(v%60,2));return Q.join("")},rsR=function(v,Q){Q=Date.UTC(Q.getUTCFullYear(),Q.getUTCMonth(),Q.getUTCDate(),Q.getUTCHours(),Q.getUTCMinutes())/36E5;
for(var V=0;V<v.transitions_.length&&Q>=v.transitions_[V];)V+=2;return V==0?0:v.transitions_[V-1]},$CS=function(v,Q){v=v.standardOffset_-rsR(v,Q);
return v===-1440?0:v};var sx=function(v,Q){this.patternParts_=[];this.JSC$11482_dateTimeSymbols_=Q||Kr;typeof v=="number"?I1S(this,v):H_p(this,v)},mCZ=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],vW=function(v){return v.getHours?v.getHours():0},H_p=function(v,Q){for(fH0&&(Q=Q.replace(/\u200f/g,""));Q;){for(var V=Q,E=0;E<mCZ.length;++E){var b=Q.match(mCZ[E]);
if(b){var F=b[0];Q=Q.substring(F.length);E==0&&(F=="''"?F="'":(F=F.substring(1,b[1]=="'"?F.length-1:F.length),F=F.replace(/''/g,"'")));v.patternParts_.push({text:F,type:E});break}}if(V===Q)throw Error("ae`"+Q);}};
sx.prototype.format=function(v,Q){if(!v)throw Error("be");var V=Q?(v.getTimezoneOffset()-$CS(Q,v))*6E4:0,E=V?new Date(v.getTime()+V):v,b=E;Q&&E.getTimezoneOffset()!=v.getTimezoneOffset()&&(E=new Date(E.getTime()+(E.getTimezoneOffset()-v.getTimezoneOffset())*6E4),b=new Date(v.getTime()+(V+(V>0?-864E5:864E5))));V=[];for(var F=0;F<this.patternParts_.length;++F){var t=this.patternParts_[F].text;1==this.patternParts_[F].type?V.push(UCZ(this,t,v,E,b,Q)):V.push(t)}return V.join("")};
var I1S=function(v,Q){if(Q<4)var V=v.JSC$11482_dateTimeSymbols_.DATEFORMATS[Q];else if(Q<8)V=v.JSC$11482_dateTimeSymbols_.TIMEFORMATS[Q-4];else if(Q<12)V=v.JSC$11482_dateTimeSymbols_.DATETIMEFORMATS[Q-8],V=V.replace("{1}",v.JSC$11482_dateTimeSymbols_.DATEFORMATS[Q-8]),V=V.replace("{0}",v.JSC$11482_dateTimeSymbols_.TIMEFORMATS[Q-8]);else if(Q===12)V=v.JSC$11482_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(Q===13)V=v.JSC$11482_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{I1S(v,10);return}H_p(v,V)},QG=function(v,Q){Q=String(Q);
v=v.JSC$11482_dateTimeSymbols_||Kr;if(v.ZERODIGIT!==void 0&&!cjb){for(var V=[],E=0;E<Q.length;E++){var b=Q.charCodeAt(E);V.push(48<=b&&b<=57?String.fromCharCode(v.ZERODIGIT+b-48):Q.charAt(E))}Q=V.join("")}return Q},cjb=!1,fH0=!1,Q7a=function(v,Q,V,E){V=V.getFullYear();
V<=0&&E&&(V=1-V);return QG(v,vlV(V,Q))},vlV=function(v,Q){Q==2&&(v%=100);
v<0&&Q++;return _.iy(v,Q)},VG=function(v){if(!(v.getHours&&v.getSeconds&&v.getMinutes))throw Error("ce");
},VCa=function(v,Q){VG(Q);
Q=vW(Q);return v.JSC$11482_dateTimeSymbols_.AMPMS[Q>=12&&Q<24?1:0]},UCZ=function(v,Q,V,E,b,F){var t=Q.length;
switch(Q.charAt(0)){case "G":return V=E.getFullYear()>0?1:0,t>=4?v.JSC$11482_dateTimeSymbols_.ERANAMES[V]:v.JSC$11482_dateTimeSymbols_.ERAS[V];case "y":return Q7a(v,t,E,!0);case "Y":return V=(new Date(b_N(E.getFullYear(),E.getMonth(),E.getDate(),v.JSC$11482_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,v.JSC$11482_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),t==2&&(V%=100),QG(v,vlV(V,t));case "u":return Q7a(v,t,E,!1);case "M":a:switch(V=E.getMonth(),t){case 5:t=v.JSC$11482_dateTimeSymbols_.NARROWMONTHS[V];
break a;case 4:t=v.JSC$11482_dateTimeSymbols_.MONTHS[V];break a;case 3:t=v.JSC$11482_dateTimeSymbols_.SHORTMONTHS[V];break a;default:t=QG(v,_.iy(V+1,t))}return t;case "k":return VG(b),QG(v,_.iy(vW(b)||24,t));case "S":return QG(v,(b.getMilliseconds()/1E3).toFixed(Math.min(3,t)).slice(2)+(t>3?_.iy(0,t-3):""));case "E":return V=E.getDay(),t>=4?v.JSC$11482_dateTimeSymbols_.WEEKDAYS[V]:v.JSC$11482_dateTimeSymbols_.SHORTWEEKDAYS[V];case "a":return VCa(v,b);case "b":return VCa(v,b);case "B":return VCa(v,
b);case "h":return VG(b),QG(v,_.iy(vW(b)%12||12,t));case "K":return VG(b),QG(v,_.iy(vW(b)%12,t));case "H":return VG(b),QG(v,_.iy(vW(b),t));case "c":a:switch(V=E.getDay(),t){case 5:t=v.JSC$11482_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[V];break a;case 4:t=v.JSC$11482_dateTimeSymbols_.STANDALONEWEEKDAYS[V];break a;case 3:t=v.JSC$11482_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[V];break a;default:t=QG(v,_.iy(V,1))}return t;case "L":a:switch(V=E.getMonth(),t){case 5:t=v.JSC$11482_dateTimeSymbols_.STANDALONENARROWMONTHS[V];
break a;case 4:t=v.JSC$11482_dateTimeSymbols_.STANDALONEMONTHS[V];break a;case 3:t=v.JSC$11482_dateTimeSymbols_.STANDALONESHORTMONTHS[V];break a;default:t=QG(v,_.iy(V+1,t))}return t;case "Q":return V=Math.floor(E.getMonth()/3),t<4?v.JSC$11482_dateTimeSymbols_.SHORTQUARTERS[V]:v.JSC$11482_dateTimeSymbols_.QUARTERS[V];case "d":return QG(v,_.iy(E.getDate(),t));case "m":return VG(b),QG(v,_.iy(b.getMinutes?b.getMinutes():0,t));case "s":return VG(b),QG(v,_.iy(b.getSeconds(),t));case "v":return(F||g8(V.getTimezoneOffset())).timeZoneId_;
case "V":return v=F||g8(V.getTimezoneOffset()),t<=2?v.timeZoneId_:rsR(v,V)>0?v.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?v.tzNamesExt_.DST_GENERIC_LOCATION:v.tzNamesExt_.DST_GENERIC_LOCATION:v.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?v.tzNamesExt_.STD_GENERIC_LOCATION:v.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return V=b_N(b.getFullYear(),b.getMonth(),b.getDate(),v.JSC$11482_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,v.JSC$11482_dateTimeSymbols_.FIRSTDAYOFWEEK),QG(v,_.iy(Math.floor(Math.round((V-(new Date((new Date(V)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,t));case "z":return v=F||g8(V.getTimezoneOffset()),t<4?v.tzNames_[rsR(v,V)>0?2:0]:v.tzNames_[rsR(v,V)>0?3:1];case "Z":return Q=F||g8(V.getTimezoneOffset()),t<4?(t=-$CS(Q,V),v=[t<0?"-":"+"],t=Math.abs(t),v.push(_.iy(Math.floor(t/60)%100,2),_.iy(t%60,2)),t=v.join("")):t=QG(v,a1p($CS(Q,V))),t;default:return""}};var ElS=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,b4Z=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,GUt=function(v){this.patternParts_=[];this.JSC$11491_dateTimeSymbols_=Kr;if(typeof v=="number"){v>11&&(v=10);if(v<4)var Q=this.JSC$11491_dateTimeSymbols_.DATEFORMATS[v];else v<8?Q=this.JSC$11491_dateTimeSymbols_.TIMEFORMATS[v-4]:(Q=this.JSC$11491_dateTimeSymbols_.DATETIMEFORMATS[v-8],Q=Q.replace("{1}",this.JSC$11491_dateTimeSymbols_.DATEFORMATS[v-8]),Q=Q.replace("{0}",this.JSC$11491_dateTimeSymbols_.TIMEFORMATS[v-
8]));FCZ(this,Q)}else FCZ(this,v)},FCZ=function(v,Q){for(var V=!1,E="",b=0;b<Q.length;b++){var F=Q.charAt(b);
if(ElS.test(F))for(E.length>0&&(v.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1}),E=""),v.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});b<Q.length-1&&Q.charAt(b+1)==" ";)b++;else if(V)F=="'"?b+1<Q.length&&Q.charAt(b+1)=="'"?(E+="'",b++):V=!1:E+=F;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(F)>=0){E.length>0&&(v.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1}),E="");for(var t=Q.charAt(b),p=b+1;p<Q.length&&Q.charAt(p)==t;)p++;t=p-b;t<=0?p=!1:(p="MydhHmsSDkK".indexOf(F),
p=p>0||p==0&&t<3);v.patternParts_.push({text:F,count:t,abutStart:!1,numeric:p});b+=t-1}else F=="'"?b+1<Q.length&&Q.charAt(b+1)=="'"?(E+="'",b++):V=!0:E+=F}E.length>0&&v.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1});Q=!1;for(V=0;V<v.patternParts_.length;V++)v.patternParts_[V].numeric?!Q&&V+1<v.patternParts_.length&&v.patternParts_[V+1].numeric&&(Q=!0,v.patternParts_[V].abutStart=!0):Q=!1};
GUt.prototype.parse=function(v,Q,V){var E=!1,b=!1;V&&(E=V.predictive||!1,b=V.validate||!1);if(E)for(V=0;V<this.patternParts_.length;V++){var F=this.patternParts_[V];if(F.count>0&&("abBhHkKm".indexOf(F.text.charAt(0))<0||F.count>2||F.abutStart))throw Error("de`"+F.text.charAt(0));}F=new KCX;V=[0];F.dayPeriodIndex=-1;for(var t=0;t<this.patternParts_.length&&!(E&&V[0]>=v.length);t++){if(this.patternParts_[t].count==0){a:{var p=v;var Z=V,d=this.patternParts_[t],w=E;if(d.text.match(ElS)!=null){if(d=Z[0],
i4p(p,Z),Z[0]>d){p=!0;break a}}else{if(p.indexOf(d.text,Z[0])==Z[0]){Z[0]+=d.text.length;p=!0;break a}if(w&&d.text.indexOf(p.substring(Z[0]))==0){Z[0]+=p.length-Z[0];p=!0;break a}}p=!1}if(p)continue;return 0}if(this.patternParts_[t].abutStart){a:{Z=v;d=V;w=t;var A=d[0],k=0;for(p=w;p<this.patternParts_.length;p++){var T=this.patternParts_[p],c=T.count;if(c===0)break;if(p==w&&(c-=k,k++,c==0)){p=0;break a}var C=p>w&&T.numeric,R=d[0];if(!LCR(this,Z,d,T,c,F,!1)||C&&d[0]-R<c)p=w-1,d[0]=A}p-=w}if(p<=0)return 0;
t+=p-1}else if(!LCR(this,v,V,this.patternParts_[t],0,F,E))return 0}a:{v=b;if(Q==null)throw Error("ee");F.era!=void 0&&F.year!=void 0&&F.era==0&&F.year>0&&(F.year=-(F.year-1));F.year!=void 0&&Q.setFullYear(F.year);E=Q.getDate();Q.setDate(1);F.month!=void 0&&Q.setMonth(F.month);F.day!=void 0?Q.setDate(F.day):(b=UGh(Q.getFullYear(),Q.getMonth()),Q.setDate(E>b?b:E));typeof Q.setHours==="function"&&(F.hours==void 0&&(F.hours=Q.getHours()),F.hours<12&&(F.ampm!=void 0&&F.ampm>0?F.hours+=12:F.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(F.dayPeriodName)||["night1","night2"].includes(F.dayPeriodName)&&F.hours>=6)&&(F.hours+=12)),Q.setHours(F.hours));typeof Q.setMinutes==="function"&&F.minutes!=void 0&&Q.setMinutes(F.minutes);typeof Q.setSeconds==="function"&&F.seconds!=void 0&&Q.setSeconds(F.seconds);typeof Q.setMilliseconds==="function"&&F.milliseconds!=void 0&&Q.setMilliseconds(F.milliseconds);if(v&&(F.year&&F.year!=Q.getFullYear()||F.month&&F.month!=
Q.getMonth()||F.day&&F.day!=Q.getDate()||F.hours&&F.hours>=24||F.minutes&&F.minutes>=60||F.seconds&&F.seconds>=60||F.milliseconds&&F.milliseconds>=1E3))Q=!1;else{F.tzOffset!=void 0&&Q.setTime(Q.getTime()+(F.tzOffset-Q.getTimezoneOffset())*60*1E3);F.ambiguousYear&&(v=new Date,v.setFullYear(v.getFullYear()-80),Q.getTime()<v.getTime()&&Q.setFullYear(v.getFullYear()+100));if(F.dayOfWeek!=void 0)if(F.day==void 0)F=(7+F.dayOfWeek-Q.getDay())%7,F>3&&(F-=7),v=Q.getMonth(),Q.setDate(Q.getDate()+F),Q.getMonth()!=
v&&Q.setDate(Q.getDate()+(F>0?-7:7));else if(F.dayOfWeek!=Q.getDay()){Q=!1;break a}Q=!0}}return Q?V[0]:0};
var LCR=function(v,Q,V,E,b,F,t){i4p(Q,V);if(E.numeric&&b>0&&V[0]+b>Q.length)return!1;switch(E.text.charAt(0)){case "G":return Ek(Q,V,[v.JSC$11491_dateTimeSymbols_.ERAS],function(p){return F.era=p}),!0;
case "M":case "L":return tCa(v,Q,V,b,E,F);case "E":return Ek(Q,V,[v.JSC$11491_dateTimeSymbols_.WEEKDAYS,v.JSC$11491_dateTimeSymbols_.SHORTWEEKDAYS],function(p){return F.dayOfWeek=p});
case "B":case "b":return b=[],v=[[].concat(v.JSC$11491_dateTimeSymbols_.AMPMS)],b.push("isAm"),b.push("isPm"),Q=Ek(Q,V,v,function(p){return F.dayPeriodIndex=p},t),F.dayPeriodName=b[F.dayPeriodIndex],t?Q:!0;
case "a":return Q=Ek(Q,V,[v.JSC$11491_dateTimeSymbols_.AMPMS],function(p){return F.ampm=p},t),t?Q:!0;
case "y":return pwN(v,Q,V,E,b,F);case "Q":return Ek(Q,V,[v.JSC$11491_dateTimeSymbols_.QUARTERS,v.JSC$11491_dateTimeSymbols_.SHORTQUARTERS],function(p){F.month=p*3;F.day=1});
case "d":return b0(v,Q,V,E,b,function(p){F.day=p}),!0;
case "S":return eqX(v,Q,V,b,F);case "h":case "K":case "H":case "k":return Q=b0(v,Q,V,E,b,function(p){F.hours=E.text.charAt(0)==="h"&&p===12?0:p},t),t?Q:!0;
case "m":return Q=b0(v,Q,V,E,b,function(p){F.minutes=p},t),t?Q:!0;
case "s":return b0(v,Q,V,E,b,function(p){F.seconds=p}),!0;
case "z":case "Z":case "v":return Z4x(v,Q,V,F);default:return!1}},pwN=function(v,Q,V,E,b,F){var t=V[0];
b=FU(v,Q,V,b);b===null&&(b=FU(v,Q,V,0,!0));if(b===null)return!1;b>=0&&V[0]-t==2&&E.count==2?(v=b,Q=(new Date).getFullYear()-80,V=Q%100,F.ambiguousYear=v==V,v+=Math.floor(Q/100)*100+(v<V?100:0),F.year=v):F.year=b;return!0},tCa=function(v,Q,V,E,b,F){return b.numeric&&b0(v,Q,V,b,E,function(t){F.month=t-1})?!0:Ek(Q,V,[v.JSC$11491_dateTimeSymbols_.MONTHS,
v.JSC$11491_dateTimeSymbols_.STANDALONEMONTHS,v.JSC$11491_dateTimeSymbols_.SHORTMONTHS,v.JSC$11491_dateTimeSymbols_.STANDALONESHORTMONTHS],function(t){F.month=t})},eqX=function(v,Q,V,E,b){var F=V[0];
v=FU(v,Q,V,E);if(v===null)return!1;V=V[0]-F;b.milliseconds=V<3?v*Math.pow(10,3-V):Math.round(v/Math.pow(10,V-3));return!0},Z4x=function(v,Q,V,E){Q.indexOf("GMT",V[0])==V[0]&&(V[0]+=3);
if(V[0]>=Q.length)return E.tzOffset=0,!0;var b=V[0],F=FU(v,Q,V,0,!0);if(F===null)return!1;if(V[0]<Q.length&&Q.charAt(V[0])==":"){var t=F*60;V[0]++;F=FU(v,Q,V,0);if(F===null)return!1;t+=F}else t=F,t=t<24&&V[0]-b<=3?t*60:t%100+t/100*60;E.tzOffset=-t;return!0},b0=function(v,Q,V,E,b,F,t){t=t||!1;
var p=V[0];v=FU(v,Q,V,b);if(v===null)return!1;if(t&&V[0]-p<E.count){if(V[0]<Q.length)return!1;v*=Math.pow(10,E.count-(V[0]-p))}F(v);return!0},Ek=function(v,Q,V,E,b){b=b||!1;
for(var F,t=0;t<V.length;t++){F=Q;for(var p=V[t],Z=b,d=0,w=null,A=v.substring(F[0]).toLowerCase(),k=0;k<p.length;k++){var T=p[k].toLowerCase();if(Z&&T.indexOf(A)==0){d=A.length;w=k;break}p[k].length>d&&A.indexOf(T)==0&&(d=p[k].length,w=k)}w!==null&&(F[0]+=d);F=w;if(F!==null)return E(F),!0}return!1},i4p=function(v,Q){(v=v.substring(Q[0]).match(b4Z))&&(Q[0]+=v[0].length)},FU=function(v,Q,V,E,b){Q=E>0?Q.substring(0,V[0]+E):Q;
b=b||!1;if(v.JSC$11491_dateTimeSymbols_.ZERODIGIT){E=[];for(var F=V[0];F<Q.length;F++){var t=Q.charCodeAt(F)-v.JSC$11491_dateTimeSymbols_.ZERODIGIT;E.push(0<=t&&t<=9?String.fromCharCode(t+48):Q.charAt(F))}Q=E.join("")}else Q=Q.substring(V[0]);v=Q.match(new RegExp("^"+(b?"[+-]?":"")+"\\d+"));if(!v)return null;V[0]+=v[0].length;return parseInt(v[0],10)},KCX=function(){};
KCX.prototype.ambiguousYear=!1;var POZ;
POZ={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 dJp={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}"]};
dJp={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 hqa=function(){var v={type:"unit",style:"narrow"};this.listType_=v&&v.type?v.type:"conjunction";this.listStyle_=v&&v.style?v.style:"long";this.listSymbols_=dJp;v=0;switch(this.listStyle_){case "short":v=1;break;case "narrow":v=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[v];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[v];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[v];this.listEndPattern_=
this.listSymbols_.AND_END[v];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[v];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[v];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[v];this.listEndPattern_=this.listSymbols_.OR_END[v];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[v],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[v],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[v],this.listEndPattern_=this.listSymbols_.UNIT_END[v]}};
hqa.prototype.format=function(v){return wwA(this,v)};
var wwA=function(v,Q){var V=Q.length;switch(V){case 0:return"";case 1:return String(Q[0]);case 2:return v.listTwoPattern_.replace("{0}",String(Q[0])).replace("{1}",String(Q[1]))}for(var E=v.listStartPattern_.replace("{0}",String(Q[0])).replace("{1}",String(Q[1])),b=2;b<V-1;++b)E=v.listMiddlePattern_.replace("{0}",E).replace("{1}",String(Q[b]));return v.listEndPattern_.replace("{0}",E).replace("{1}",String(Q[V-1]))};var A2V={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"},kwR=A2V,TWa=A2V;TWa=kwR=A2V;var y2q,KV,LV,t7S,i0,Yua;
_.NS=function(v,Q,V,E){var b;if(b=Q){a:if(Q&&Q.length===3){for(b=0;b<3;b++){var F=Q[b];if(F<"A"||F>"Z"&&F<"a"||F>"z"){b=!1;break a}}b=!0}else b=!1;b=!b}if(b)throw new TypeError("fe");this.intlCurrencyCode_=Q?Q.toUpperCase():null;this.currencyStyle_=V||0;this.overrideNumberFormatSymbols_=E||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=KV(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof v==="number")switch(v){case 1:i0(this,KV(this).DECIMAL_PATTERN);break;case 2:i0(this,KV(this).SCIENTIFIC_PATTERN);break;case 3:i0(this,KV(this).PERCENT_PATTERN);break;case 4:v=KV(this).CURRENCY_PATTERN;Q=["0"];if(V=
U5[LV(this)]){V=V[0]&7;if(V>0)for(Q.push("."),E=0;E<V;E++)Q.push("0");v=v.replace(/0.00/g,Q.join(""))}i0(this,v);break;case 5:Yua(this,1);break;case 6:Yua(this,2);break;default:throw Error("ie");}else i0(this,v)};
y2q=!1;KV=function(v){return v.overrideNumberFormatSymbols_||(y2q?TWa:kwR)};
LV=function(v){return v.intlCurrencyCode_||KV(v).DEF_CURRENCY_CODE};
t7S=function(v,Q){if(Q>308)throw Error("he`"+Q);v.maximumFractionDigits_=Q;return v};
i0=function(v,Q){var V=[0];v.positivePrefix_=c2p(v,Q,V);for(var E=V[0],b=-1,F=0,t=0,p=0,Z=-1,d=Q.length,w=!0;V[0]<d&&w;V[0]++)switch(Q.charAt(V[0])){case "#":t>0?p++:F++;Z>=0&&b<0&&Z++;break;case "0":if(p>0)throw Error("oe`"+Q);t++;Z>=0&&b<0&&Z++;break;case ",":Z>0&&v.groupingArray_.push(Z);Z=0;break;case ".":if(b>=0)throw Error("pe`"+Q);b=F+t+p;break;case "E":if(v.useExponentialNotation_)throw Error("qe`"+Q);v.useExponentialNotation_=!0;v.minExponentDigits_=0;V[0]+1<d&&Q.charAt(V[0]+1)=="+"&&(V[0]++,
v.useSignForPositiveExponent_=!0);for(;V[0]+1<d&&Q.charAt(V[0]+1)=="0";)V[0]++,v.minExponentDigits_++;if(F+t<1||v.minExponentDigits_<1)throw Error("re`"+Q);w=!1;break;default:V[0]--,w=!1}t==0&&F>0&&b>=0&&(t=b,t==0&&t++,p=F-t,F=t-1,t=1);if(b<0&&p>0||b>=0&&(b<F||b>F+t)||Z==0)throw Error("se`"+Q);p=F+t+p;v.maximumFractionDigits_=b>=0?p-b:0;b>=0&&(v.minimumFractionDigits_=F+t-b,v.minimumFractionDigits_<0&&(v.minimumFractionDigits_=0));v.minimumIntegerDigits_=(b>=0?b:p)-F;v.useExponentialNotation_&&(v.maximumIntegerDigits_=
F+v.minimumIntegerDigits_,v.maximumFractionDigits_==0&&v.minimumIntegerDigits_==0&&(v.minimumIntegerDigits_=1));v.groupingArray_.push(Math.max(0,Z));v.decimalSeparatorAlwaysShown_=b==0||b==p;E=V[0]-E;v.positiveSuffix_=c2p(v,Q,V);V[0]<Q.length&&Q.charAt(V[0])==";"?(V[0]++,v.multiplier_!=1&&(v.negativePercentSignExpected_=!0),v.negativePrefix_=c2p(v,Q,V),V[0]+=E,v.negativeSuffix_=c2p(v,Q,V)):(v.negativePrefix_+=v.positivePrefix_,v.negativeSuffix_+=v.positiveSuffix_)};
Yua=function(v,Q){v.compactStyle_=Q;i0(v,KV(v).DECIMAL_PATTERN);v.minimumFractionDigits_=0;t7S(v,2);if(v.minimumFractionDigits_>0)throw Error("ge");v.significantDigits_=2};
_.NS.prototype.parse=function(v,Q){Q=Q||[0];if(this.compactStyle_!==0)throw Error("je");v=v.replace(/ |\u202f/g,"\u00a0");var V=v.indexOf(this.positivePrefix_,Q[0])==Q[0],E=v.indexOf(this.negativePrefix_,Q[0])==Q[0];V&&E&&(this.positivePrefix_.length>this.negativePrefix_.length?E=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(V=!1));V?Q[0]+=this.positivePrefix_.length:E&&(Q[0]+=this.negativePrefix_.length);if(v.indexOf(KV(this).INFINITY,Q[0])==Q[0]){Q[0]+=KV(this).INFINITY.length;var b=
Infinity}else{b=v;var F=!1,t=!1,p=!1,Z=-1,d=1,w=KV(this).DECIMAL_SEP,A=KV(this).GROUP_SEP,k=KV(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");A=A.replace(/\u202f/g,"\u00a0");for(var T="";Q[0]<b.length;Q[0]++){var c=b.charAt(Q[0]),C=fzN(this,c);if(C>=0&&C<=9)T+=C,p=!0;else if(c==w.charAt(0)){if(F||t)break;T+=".";F=!0}else if(c==A.charAt(0)&&("\u00a0"!=A.charAt(0)||Q[0]+1<b.length&&fzN(this,b.charAt(Q[0]+1))>=0)){if(F||t)break}else if(c==k.charAt(0)){if(t)break;T+="E";t=!0;Z=Q[0]}else if(c==
"+"||c=="-"){if(p&&Z!=Q[0]-1)break;T+=c}else if(this.multiplier_==1&&c==KV(this).PERCENT.charAt(0)){if(d!=1)break;d=100;if(p){Q[0]++;break}}else if(this.multiplier_==1&&c==KV(this).PERMILL.charAt(0)){if(d!=1)break;d=1E3;if(p){Q[0]++;break}}else break}this.multiplier_!=1&&(d=this.multiplier_);b=parseFloat(T)/d}if(V){if(v.indexOf(this.positiveSuffix_,Q[0])!=Q[0])return NaN;Q[0]+=this.positiveSuffix_.length}else if(E){if(v.indexOf(this.negativeSuffix_,Q[0])!=Q[0])return NaN;Q[0]+=this.negativeSuffix_.length}return E?
-b:b};
_.NS.prototype.format=function(v){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(v))return KV(this).NAN;var Q=[];var V=v;if(this.compactStyle_==0)V=tC;else{V=Math.abs(V);var E=Gwp(this,V<=1?0:CO8(V)).divisorBase;V=Gwp(this,E+CO8(MCq(this,pV(V,-E)).intValue))}v=pV(v,-V.divisorBase);(E=v<0||v==0&&1/v<0)?V.negative_prefix?Q.push(V.negative_prefix):(Q.push(V.prefix),Q.push(this.negativePrefix_)):(Q.push(V.prefix),Q.push(this.positivePrefix_));if(isFinite(v))if(v*=
E?-1:1,v*=this.multiplier_,this.useExponentialNotation_){var b=v;if(b==0)O4N(this,b,this.minimumIntegerDigits_,Q),DJR(this,0,Q);else{var F=Math.floor(Math.log(b)/Math.log(10)+2E-15);b=pV(b,-F);var t=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(t=F%this.maximumIntegerDigits_,t<0&&(t=this.maximumIntegerDigits_+t),b=pV(b,t),F-=t,t=1):this.minimumIntegerDigits_<1?(F++,b=pV(b,-1)):(F-=this.minimumIntegerDigits_-1,b=pV(b,this.minimumIntegerDigits_-
1));O4N(this,b,t,Q);DJR(this,F,Q)}}else O4N(this,v,this.minimumIntegerDigits_,Q);else Q.push(KV(this).INFINITY);E?V.negative_suffix?Q.push(V.negative_suffix):(isFinite(v)&&Q.push(V.suffix),Q.push(this.negativeSuffix_)):(isFinite(v)&&Q.push(V.suffix),Q.push(this.positiveSuffix_));return Q.join("")};
var MCq=function(v,Q){var V=pV(Q,v.maximumFractionDigits_);v.significantDigits_>0&&(V=Rqa(V,v.significantDigits_,v.maximumFractionDigits_));V=Math.round(V);if(isFinite(V)){var E=Math.floor(pV(V,-v.maximumFractionDigits_));V=Math.floor(V-pV(E,v.maximumFractionDigits_));if(V<0||V>=pV(1,v.maximumFractionDigits_))E=Math.round(Q),V=0}else E=Q,V=0;return{intValue:E,fracValue:V}},O4N=function(v,Q,V,E){if(v.minimumFractionDigits_>v.maximumFractionDigits_)throw Error("le");
E||(E=[]);Q=MCq(v,Q);var b=Q.intValue,F=Q.fracValue,t=v.minimumFractionDigits_>0||F>0||!1;Q=v.minimumFractionDigits_;t&&(Q=v.minimumFractionDigits_);for(var p="",Z=b;Z>1E20;)p="0"+p,Z=Math.round(pV(Z,-1));p=Z+p;var d=KV(v).DECIMAL_SEP;Z=KV(v).ZERO_DIGIT.codePointAt(0);var w=p.length,A=0;if(b>0||V>0){for(b=w;b<V;b++)E.push(String.fromCodePoint(Z));if(v.groupingArray_.length>=2)for(V=1;V<v.groupingArray_.length;V++)A+=v.groupingArray_[V];V=w-A;if(V>0){b=v.groupingArray_;A=w=0;for(var k,T=KV(v).GROUP_SEP,
c=p.length,C=0;C<c;C++)if(E.push(String.fromCodePoint(Z+Number(p.charAt(C)))),c-C>1)if(k=b[A],C<V){var R=V-C;(k===1||k>0&&R%k===1)&&E.push(T)}else A<b.length&&(C===V?A+=1:k===C-V-w+1&&(E.push(T),w+=k,A+=1))}else{V=p;p=v.groupingArray_;b=KV(v).GROUP_SEP;k=V.length;T=[];for(w=p.length-1;w>=0&&k>0;w--){A=p[w];for(c=0;c<A&&k-c-1>=0;c++)T.push(String.fromCodePoint(Z+Number(V.charAt(k-c-1))));k-=A;k>0&&T.push(b)}E.push.apply(E,T.reverse())}}else t||E.push(String.fromCodePoint(Z));(v.decimalSeparatorAlwaysShown_||
t)&&E.push(d);F=String(F);t=F.split("e+");t.length==2&&(F=String(Rqa(parseFloat(t[0]),v.significantDigits_,1)),F=F.replace(".",""),F+=(0,_.t1p)("0",parseInt(t[1],10)-F.length+1));v.maximumFractionDigits_+1>F.length&&(F="1"+(0,_.t1p)("0",v.maximumFractionDigits_-F.length)+F);for(v=F.length;F.charAt(v-1)=="0"&&v>Q+1;)v--;for(Q=1;Q<v;Q++)E.push(String.fromCodePoint(Z+Number(F.charAt(Q))))},DJR=function(v,Q,V){V.push(KV(v).EXP_SYMBOL);
Q<0?(Q=-Q,V.push(KV(v).MINUS_SIGN)):v.useSignForPositiveExponent_&&V.push(KV(v).PLUS_SIGN);Q=""+Q;for(var E=KV(v).ZERO_DIGIT,b=Q.length;b<v.minExponentDigits_;b++)V.push(E);v=E.codePointAt(0)-nlX;for(E=0;E<Q.length;E++)V.push(String.fromCodePoint(v+Q.codePointAt(E)))},fzN=function(v,Q){Q=Q.codePointAt(0);
if(48<=Q&&Q<58)return Q-48;v=KV(v).ZERO_DIGIT.codePointAt(0);return v<=Q&&Q<v+10?Q-v:-1},nlX="0".codePointAt(0),c2p=function(v,Q,V){for(var E="",b=!1,F=Q.length;V[0]<F;V[0]++){var t=Q.charAt(V[0]);
if(t=="'")V[0]+1<F&&Q.charAt(V[0]+1)=="'"?(V[0]++,E+="'"):b=!b;else if(b)E+=t;else switch(t){case "#":case "0":case ",":case ".":case ";":return E;case "\u00a4":if(V[0]+1<F&&Q.charAt(V[0]+1)=="\u00a4")V[0]++,E+=LV(v);else switch(v.currencyStyle_){case 0:t=LV(v);E+=t in U5?U5[t][1]:t;break;case 2:t=LV(v);var p=U5[t];E+=p?t==p[1]?t:t+" "+p[1]:t;break;case 1:t=LV(v),E+=t in U5?U5[t][2]:t}break;case "%":if(!v.negativePercentSignExpected_&&v.multiplier_!=1)throw Error("me");if(v.negativePercentSignExpected_&&
v.multiplier_!=100)throw Error("ne");v.multiplier_=100;v.negativePercentSignExpected_=!1;E+=KV(v).PERCENT;break;case "\u2030":if(!v.negativePercentSignExpected_&&v.multiplier_!=1)throw Error("me");if(v.negativePercentSignExpected_&&v.multiplier_!=1E3)throw Error("ne");v.multiplier_=1E3;v.negativePercentSignExpected_=!1;E+=KV(v).PERMILL;break;default:E+=t}}return E},tC={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Gwp=function(v,Q){v=v.compactStyle_==1?mv.COMPACT_DECIMAL_SHORT_PATTERN:mv.COMPACT_DECIMAL_LONG_PATTERN;v==null&&(v=mv.COMPACT_DECIMAL_SHORT_PATTERN);if(Q<3)return tC;Q=Math.min(14,Q);var V=v[pV(1,Q)];for(--Q;!V&&Q>=3;)V=v[pV(1,Q)],Q--;if(!V)return tC;V=V.other;var E=v="",b=V.indexOf(";");b>=0&&(V=V.substring(0,b),b=V.substring(b+1))&&(E=/([^0]*)(0+)(.*)/.exec(b),v=E[1],E=E[3]);return V&&V!="0"?(V=/([^0]*)(0+)(.*)/.exec(V))?{divisorBase:Q+
1-(V[2].length-1),negative_prefix:v,negative_suffix:E,prefix:V[1],suffix:V[3]}:tC:tC},CO8=function(v){if(!isFinite(v))return v>0?v:0;
for(var Q=0;(v/=10)>=1;)Q++;return Q},pV=function(v,Q){if(!v||!isFinite(v)||Q==0)return v;
v=String(v).split("e");return parseFloat(v[0]+"e"+(parseInt(v[1]||0,10)+Q))},lzq=function(v,Q){return v&&isFinite(v)?pV(Math.round(pV(v,Q)),-Q):v},Rqa=function(v,Q,V){if(!v)return v;
Q=Q-CO8(v)-1;return Q<-V?lzq(v,-V):lzq(v,Q)};var qu8=function(v){return v%10==1&&v%100!=11?"one":v%10==2&&v%100!=12?"two":v%10==3&&v%100!=13?"few":"other"},Sux=qu8;
Sux=qu8;var zqR=function(v,Q){var V=v|0;if(void 0===Q){Q=Math;var E=Q.min,b=v+"",F=b.indexOf(".");Q=E.call(Q,F===-1?0:b.length-F-1,3)}E=Math.pow(10,Q);v={v:Q,f:(v*E|0)%E};return V==1&&v.v==0?"one":"other"},J4=zqR;
J4=zqR;var BW8=function(v){this.JSC$11534_pattern_=v;this.parsedPattern_=this.literals_=this.initialLiterals_=null;v=kwR;var Q=mv;if(J2R!==v||NWa!==Q)J2R=v,NWa=Q,xJq=new _.NS(1);this.numberFormatter_=xJq},J2R=null,NWa=null,xJq=null,gla=RegExp("'([{}#].*?)'","g"),s7V=RegExp("''","g");
BW8.prototype.format=function(v){if(this.JSC$11534_pattern_){this.initialLiterals_=[];var Q=uSZ(this,this.JSC$11534_pattern_);this.parsedPattern_=j78(this,Q);this.JSC$11534_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.jZ(this.initialLiterals_),Q=[],WCX(this,this.parsedPattern_,v,!1,Q),v=Q.join("");this.literals_.length>0;)v=v.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else v="";return v};
var WCX=function(v,Q,V,E,b){for(var F=0;F<Q.length;F++)switch(Q[F].type){case 4:b.push(Q[F].value);break;case 3:var t=Q[F].value;var p=v,Z=b,d=V[t];d===void 0?Z.push("Undefined parameter - "+t):(p.literals_.push(d),Z.push(p.buildPlaceholder_(p.literals_)));break;case 2:t=Q[F].value;p=v;Z=V;d=E;var w=b,A=t.argumentIndex;Z[A]===void 0?w.push("Undefined parameter - "+A):(A=t[Z[A]],A===void 0&&(A=t.other),WCX(p,A,Z,d,w));break;case 0:t=Q[F].value;olR(v,t,V,J4,E,b);break;case 1:t=Q[F].value,olR(v,t,V,
Sux,E,b)}},olR=function(v,Q,V,E,b,F){var t=Q.argumentIndex,p=Q.argumentOffset,Z=+V[t];
isNaN(Z)?F.push("Undefined or invalid parameter - "+t):(p=Z-p,t=Q[V[t]],t===void 0&&(E=E(Math.abs(p)),t=Q[E],t===void 0&&(t=Q.other)),Q=[],WCX(v,t,V,b,Q),V=Q.join(""),b?F.push(V):(v=v.numberFormatter_.format(p),F.push(V.replace(/#/g,v))))},uSZ=function(v,Q){var V=v.initialLiterals_,E=v.buildPlaceholder_.bind(v);
Q=Q.replace(s7V,function(){V.push("'");return E(V)});
return Q=Q.replace(gla,function(b,F){V.push(F);return E(V)})},Xwp=function(v){var Q=0,V=[],E=[],b=/[{}]/g;
b.lastIndex=0;for(var F;F=b.exec(v);){var t=F.index;F[0]=="}"?(V.pop(),V.length==0&&(F={type:1},F.value=v.substring(Q,t),E.push(F),Q=t+1)):(V.length==0&&(Q=v.substring(Q,t),Q!=""&&E.push({type:0,value:Q}),Q=t+1),V.push("{"))}v=v.substring(Q);v!=""&&E.push({type:0,value:v});return E},azN=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,r2x=/^\s*(\w+)\s*,\s*selectordinal\s*,/,$JS=/^\s*(\w+)\s*,\s*select\s*,/,j78=function(v,Q){var V=[];
Q=Xwp(Q);for(var E=0;E<Q.length;E++){var b={};if(0==Q[E].type)b.type=4,b.value=Q[E].value;else if(1==Q[E].type){var F=Q[E].value;switch(azN.test(F)?0:r2x.test(F)?1:$JS.test(F)?2:/^\s*\w+\s*/.test(F)?3:5){case 2:b.type=2;b.value=Izq(v,Q[E].value);break;case 0:b.type=0;b.value=H4Z(v,Q[E].value);break;case 1:b.type=1;b.value=mJq(v,Q[E].value);break;case 3:b.type=3,b.value=Q[E].value}}V.push(b)}return V},Izq=function(v,Q){var V="";
Q=Q.replace($JS,function(p,Z){V=Z;return""});
var E={};E.argumentIndex=V;Q=Xwp(Q);for(var b=0;b<Q.length;){var F=Q[b].value;b++;var t=void 0;1==Q[b].type&&(t=j78(v,Q[b].value));E[F.replace(/\s/g,"")]=t;b++}return E},H4Z=function(v,Q){var V="",E=0;
Q=Q.replace(azN,function(Z,d,w){V=d;w&&(E=parseInt(w,10));return""});
var b={};b.argumentIndex=V;b.argumentOffset=E;Q=Xwp(Q);for(var F=0;F<Q.length;){var t=Q[F].value;F++;var p=void 0;1==Q[F].type&&(p=j78(v,Q[F].value));b[t.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=p;F++}return b},mJq=function(v,Q){var V="";
Q=Q.replace(r2x,function(p,Z){V=Z;return""});
var E={};E.argumentIndex=V;E.argumentOffset=0;Q=Xwp(Q);for(var b=0;b<Q.length;){var F=Q[b].value;b++;var t=void 0;1==Q[b].type&&(t=j78(v,Q[b].value));E[F.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=t;b++}return E};
BW8.prototype.buildPlaceholder_=function(v){return"\ufddf_"+(v.length-1).toString(10)+"_"};var puo=function(){var v={style:1},Q=UJZ;this.style_=(v==null?void 0:v.style)||0;this.durationSymbols_=Q||POZ},vSZ=function(v,Q){switch(Q){default:case "years":return v.durationSymbols_.YEAR;
case "months":return v.durationSymbols_.MONTH;case "weeks":return v.durationSymbols_.WEEK;case "days":return v.durationSymbols_.DAY;case "hours":return v.durationSymbols_.HOUR;case "minutes":return v.durationSymbols_.MINUTE;case "seconds":return v.durationSymbols_.SECOND}},eX=function(v,Q,V){a:{V=vSZ(v,V);
switch(v.style_){case 1:if(V.LONG!=void 0){v=V.LONG;break a}case 2:if(V.NARROW!=void 0){v=V.NARROW;break a}default:v=V.SHORT;break a}v=void 0}return v?(new BW8("{DURATION_VALUE,plural,"+v+"}")).format({DURATION_VALUE:Q}):""};
puo.prototype.format=function(v){var Q=[],V=v.years,E=v.months,b=v.weeks,F=v.days,t=v.hours,p=v.minutes;v=v.seconds;V!=null&&Q.push(eX(this,V,"years"));E!=null&&Q.push(eX(this,E,"months"));b!=null&&Q.push(eX(this,b,"weeks"));F!=null&&Q.push(eX(this,F,"days"));t!=null&&Q.push(eX(this,t,"hours"));p!=null&&Q.push(eX(this,p,"minutes"));v!=null&&Q.push(eX(this,v,"seconds"));return(new hqa).format(Q)};var QIA;
QIA={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 C_t=function(){this.rdtfSymbols_=Viq||QIA;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
C_t.prototype.format=function(v,Q){a:{Q=ES8(this,Q);switch(this.style_){case 2:if(Q.NARROW!=void 0){Q=Q.NARROW;break a}case 1:if(Q.SHORT!=void 0){Q=Q.SHORT;break a}default:Q=Q.LONG;break a}Q=void 0}if(!this.alwaysNumeric_&&Q&&Q.R&&Q.R[""+v])v=Q.R[""+v];else if(Q){var V=Math.abs(v);v=(new BW8("{N,plural,"+(v>0||v==0&&1/v==Infinity?Q.F:Q.P)+"}")).format({N:V})}else v="";return v};
var ES8=function(v,Q){switch(Q){default:case 0:return v.rdtfSymbols_.YEAR;case 1:return v.rdtfSymbols_.QUARTER;case 2:return v.rdtfSymbols_.MONTH;case 3:return v.rdtfSymbols_.WEEK;case 4:return v.rdtfSymbols_.DAY;case 5:return v.rdtfSymbols_.HOUR;case 6:return v.rdtfSymbols_.MINUTE;case 7:return v.rdtfSymbols_.SECOND}};var brQ=function(v,Q,V,E,b,F,t,p){this.x0=v;this.y0=Q;this.x1=V;this.y1=E;this.x2=b;this.y2=F;this.x3=t;this.y3=p};
brQ.prototype.clone=function(){return new brQ(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
brQ.prototype.equals=function(v){return this.x0==v.x0&&this.y0==v.y0&&this.x1==v.x1&&this.y1==v.y1&&this.x2==v.x2&&this.y2==v.y2&&this.x3==v.x3&&this.y3==v.y3};
var F6a=function(v,Q){if(Q==0)return v.x0;if(Q==1)return v.x3;var V=Mc(v.x0,v.x1,Q),E=Mc(v.x1,v.x2,Q);v=Mc(v.x2,v.x3,Q);V=Mc(V,E,Q);E=Mc(E,v,Q);return Mc(V,E,Q)},K6a=function(v,Q){var V=(Q-v.x0)/(v.x3-v.x0);
if(V<=0)return 0;if(V>=1)return 1;for(var E=0,b=1,F=0,t=0;t<8;t++){F=F6a(v,V);var p=(F6a(v,V+1E-6)-F)/1E-6;if(Math.abs(F-Q)<1E-6)return V;if(Math.abs(p)<1E-6)break;else F<Q?E=V:b=V,V-=(F-Q)/p}for(t=0;Math.abs(F-Q)>1E-6&&t<8;t++)F<Q?(E=V,V=(V+b)/2):(b=V,V=(V+E)/2),F=F6a(v,V);return V};var Zb=function(){_.DO.call(this);this.JSC$11555_name_="closure_frame"+irp++;this.iframesForDisposal_=[];L6Q[this.JSC$11555_name_]=this},PW;
_.HZ(Zb,_.DO);var L6Q={},irp=0,tiA=function(v,Q){var V=qN(v);PSa(Q,function(E,b){Array.isArray(E)||(E=[E]);_.bv(E,function(F){F=V.JSC$9408_createDom("INPUT",{type:"hidden",name:b,value:F});v.appendChild(F)})})};
_.K=Zb.prototype;_.K.JSC$11557_form_=null;_.K.JSC$11557_iframe_=null;_.K.iframeName_=null;_.K.nextIframeId_=0;_.K.JSC$11557_active_=!1;_.K.complete_=!1;_.K.success_=!1;_.K.lastContent_=null;_.K.JSC$11557_lastErrorCode_=0;_.K.iframeDisposalTimer_=null;
_.K.send=function(v,Q,V,E){if(this.JSC$11557_active_)throw Error("te");v=new _.uY(v);Q=Q?Q.toUpperCase():"GET";V&&_.dn(v);PW||(PW=_.no("FORM"),PW.acceptCharset="utf-8",V=PW.style,V.position="absolute",V.visibility="hidden",V.top=V.left="-10px",V.width=V.height="10px",V.overflow="hidden",document.body.appendChild(PW));this.JSC$11557_form_=PW;Q=="GET"&&tiA(this.JSC$11557_form_,v.JSC$10112_queryData_);E&&tiA(this.JSC$11557_form_,E);V=v.toString();V=jmr(V);E=this.JSC$11557_form_;V=_.rl(Nj(V));V!==void 0&&
(E.action=V);this.JSC$11557_form_.method=Q;pYN(this);eeN(this)};
_.K.abort=function(v){if(this.JSC$11557_active_){var Q=dm(this);if(Q)if(Cv(Q))Q.removeAllListeners(void 0);else if(Q=MV(Q)){var V=0,E;for(E in Q.listeners)for(var b=Q.listeners[E].concat(),F=0;F<b.length;++F)Pg(b[F])&&++V}this.success_=this.JSC$11557_active_=this.complete_=!1;this.JSC$11557_lastErrorCode_=v||7;this.dispatchEvent("abort");ZrA(this)}};
_.K.disposeInternal=function(){this.JSC$11557_active_&&this.abort();Zb.superClass_.disposeInternal.call(this);this.JSC$11557_iframe_&&PAQ(this);eeN(this);this.JSC$11557_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11557_form_=null;this.JSC$11557_lastErrorCode_=0;delete L6Q[this.JSC$11555_name_]};
_.K.isComplete=function(){return this.complete_};
_.K.isSuccess=function(){return this.success_};
_.K.isActive=function(){return this.JSC$11557_active_};
_.K.getResponseText=function(){return this.lastContent_};
_.K.getLastError=function(){return _.WXa(this.JSC$11557_lastErrorCode_)};
var pYN=function(v){v.JSC$11557_active_=!0;v.complete_=!1;v.JSC$11557_lastErrorCode_=0;v.iframeName_=v.JSC$11555_name_+"_"+(v.nextIframeId_++).toString(36);v.JSC$11557_iframe_=qN(v.JSC$11557_form_).JSC$9408_createDom("IFRAME",{name:v.iframeName_,id:v.iframeName_});var Q=v.JSC$11557_iframe_.style;Q.visibility="hidden";Q.width=Q.height="10px";Q.display="none";_.E7?Q.marginTop=Q.marginLeft="-10px":(Q.position="absolute",Q.top=Q.left="-10px");qN(v.JSC$11557_form_).JSC$9406_document_.body.appendChild(v.JSC$11557_iframe_);
Q=v.iframeName_+"_inner";var V=RD8(v.JSC$11557_iframe_);if(document.baseURI){var E=Qw(Q);E='<head><base href="'+Qw(document.baseURI)+'"></head><body><iframe id="'+E+'" name="'+E+'"></iframe>';E=Hq(E)}else E=Qw(Q),E=Hq('<body><iframe id="'+E+'" name="'+E+'"></iframe>');V.write(U9(E));_.wE(V.getElementById(Q),"load",v.onIframeLoaded_,!1,v);E=lt("TEXTAREA",v.JSC$11557_form_);for(var b=0,F=E.length;b<F;b++){var t=E[b].value;Jdq(E[b])!=t&&(_.x$(E[b],t),E[b].value=t)}E=V.importNode(v.JSC$11557_form_,!0);
E.target=Q;E.action=v.JSC$11557_form_.action;V.body.appendChild(E);b=lt("SELECT",v.JSC$11557_form_);F=lt("SELECT",E);t=0;for(var p=b.length;t<p;t++)for(var Z=lt("OPTION",b[t]),d=lt("OPTION",F[t]),w=0,A=Z.length;w<A;w++)d[w].selected=Z[w].selected;b=lt("INPUT",v.JSC$11557_form_);F=lt("INPUT",E);t=0;for(p=b.length;t<p;t++)if(b[t].type=="file"&&b[t].value!=F[t].value){v.JSC$11557_form_.target=Q;E=v.JSC$11557_form_;break}try{v.errorHandled_=!1,E.submit(),V.close(),_.V2&&setTimeout(v.testForFirefoxSilentError_.bind(v),
250)}catch(k){_.OE(V.getElementById(Q),"load",v.onIframeLoaded_,!1,v),V.close(),hC(v,2)}};
Zb.prototype.onIframeLoaded_=function(){_.OE(dm(this),"load",this.onIframeLoaded_,!1,this);try{var v=this.JSC$11557_iframe_?RD8(dm(this)):null;this.complete_=!0;this.JSC$11557_active_=!1;try{var Q=v.body;this.lastContent_=Q.textContent||Q.innerText}catch(b){var V=1}var E;V||typeof this.errorChecker_!="function"||(E=this.errorChecker_(v))&&(V=4);V?hC(this,V):(this.success_=!0,this.JSC$11557_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),ZrA(this))}catch(b){hC(this,1)}};
var hC=function(v,Q){v.errorHandled_||(v.success_=!1,v.JSC$11557_active_=!1,v.complete_=!0,v.JSC$11557_lastErrorCode_=Q,v.dispatchEvent("complete"),v.dispatchEvent("error"),ZrA(v),v.errorHandled_=!0)},ZrA=function(v){PAQ(v);
eeN(v);v.JSC$11557_form_=null;v.dispatchEvent("ready")},PAQ=function(v){var Q=v.JSC$11557_iframe_;
Q&&(Q.onreadystatechange=null,Q.onload=null,Q.onerror=null,v.iframesForDisposal_.push(Q));v.iframeDisposalTimer_&&(clearTimeout(v.iframeDisposalTimer_),v.iframeDisposalTimer_=null);_.V2?v.iframeDisposalTimer_=setTimeout(v.disposeIframes_.bind(v),2E3):v.disposeIframes_();v.JSC$11557_iframe_=null;v.iframeName_=null};
Zb.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var v=this.iframesForDisposal_.pop();_.ng(v)}};
var eeN=function(v){v.JSC$11557_form_&&v.JSC$11557_form_==PW&&_.S3(v.JSC$11557_form_)},dm=function(v){return v.JSC$11557_iframe_?RD8(v.JSC$11557_iframe_).getElementById(v.iframeName_+"_inner"):null};
Zb.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11557_active_){var v=this.JSC$11557_iframe_?RD8(dm(this)):null;v&&!Jd0(v,"documentUri")?(_.OE(dm(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?hC(this,3):hC(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.wm=function(v){return v=="\r"||v=="\n"||v==" "||v=="\t"};var dMZ;_.AC=function(v){this.errorMessage_=null;this.result_=[];this.JSC$11559_buffer_="";this.stack_=[];this.JSC$11559_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!v||!v.deliverMessageAsRawString)};
dMZ={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};_.AC.prototype.isInputValid=function(){return this.streamState_!=3};
_.AC.prototype.done=function(){return this.streamState_===2};
var km=function(v,Q,V){v.streamState_=3;v.errorMessage_="The stream is broken @"+v.JSC$11559_pos_+"/"+V+". With input:\n"+Q;throw Error(v.errorMessage_);};
_.AC.prototype.acceptsBinaryInput=function(){return!1};
_.AC.prototype.parse=function(v){function Q(){for(;k<v.length;)if(_.wm(v[k]))k++,F.JSC$11559_pos_++;else break;return k<d}
function V(){for(var c;;){c=v[k++];if(!c)break;F.JSC$11559_pos_++;switch(F.state_){case Z.INIT:c==="{"?F.state_=Z.OBJECT_OPEN:c==="["?F.state_=Z.ARRAY_OPEN:_.wm(c)||km(F,v,k);continue;case Z.KEY_START:case Z.OBJECT_OPEN:if(_.wm(c))continue;if(F.state_===Z.KEY_START)t.push(Z.KEY_END);else if(c==="}"){b("{}");F.state_=E();continue}else t.push(Z.OBJECT_END);c==='"'?F.state_=Z.STRING:km(F,v,k);continue;case Z.KEY_END:case Z.OBJECT_END:if(_.wm(c))continue;c===":"?(F.state_===Z.OBJECT_END&&(t.push(Z.OBJECT_END),
F.depth_++),F.state_=Z.VALUE):c==="}"?(F.depth_--,b(),F.state_=E()):c===","?(F.state_===Z.OBJECT_END&&t.push(Z.OBJECT_END),F.state_=Z.KEY_START):km(F,v,k);continue;case Z.ARRAY_OPEN:case Z.VALUE:if(_.wm(c))continue;if(F.state_===Z.ARRAY_OPEN)if(F.depth_++,F.state_=Z.VALUE,c==="]"){F.depth_--;if(F.depth_===0){F.state_=Z.ARRAY_END;return}b("[]");F.state_=E();continue}else t.push(Z.ARRAY_END);c==='"'?F.state_=Z.STRING:c==="{"?F.state_=Z.OBJECT_OPEN:c==="["?F.state_=Z.ARRAY_OPEN:c==="t"?F.state_=Z.TRUE1:
c==="f"?F.state_=Z.FALSE1:c==="n"?F.state_=Z.NULL1:c!=="-"&&("0123456789".indexOf(c)!==-1?F.state_=Z.NUM_DIGIT:km(F,v,k));continue;case Z.ARRAY_END:if(c===",")t.push(Z.ARRAY_END),F.state_=Z.VALUE,F.depth_===1&&(A=k);else if(c==="]"){F.depth_--;if(F.depth_===0)return;b();F.state_=E()}else if(_.wm(c))continue;else km(F,v,k);continue;case Z.STRING:var C=k;a:for(;;){for(;F.unicodeCount_>0;)if(c=v[k++],F.unicodeCount_===4?F.unicodeCount_=0:F.unicodeCount_++,!c)break a;if(c==='"'&&!F.slashed_){F.state_=
E();break}if(c==="\\"&&!F.slashed_&&(F.slashed_=!0,c=v[k++],!c))break;if(F.slashed_)if(F.slashed_=!1,c==="u"&&(F.unicodeCount_=1),c=v[k++])continue;else break;p.lastIndex=k;c=p.exec(v);if(!c){k=v.length+1;break}k=c.index+1;c=v[c.index];if(!c)break}F.JSC$11559_pos_+=k-C;continue;case Z.TRUE1:if(!c)continue;c==="r"?F.state_=Z.TRUE2:km(F,v,k);continue;case Z.TRUE2:if(!c)continue;c==="u"?F.state_=Z.TRUE3:km(F,v,k);continue;case Z.TRUE3:if(!c)continue;c==="e"?F.state_=E():km(F,v,k);continue;case Z.FALSE1:if(!c)continue;
c==="a"?F.state_=Z.FALSE2:km(F,v,k);continue;case Z.FALSE2:if(!c)continue;c==="l"?F.state_=Z.FALSE3:km(F,v,k);continue;case Z.FALSE3:if(!c)continue;c==="s"?F.state_=Z.FALSE4:km(F,v,k);continue;case Z.FALSE4:if(!c)continue;c==="e"?F.state_=E():km(F,v,k);continue;case Z.NULL1:if(!c)continue;c==="u"?F.state_=Z.NULL2:km(F,v,k);continue;case Z.NULL2:if(!c)continue;c==="l"?F.state_=Z.NULL3:km(F,v,k);continue;case Z.NULL3:if(!c)continue;c==="l"?F.state_=E():km(F,v,k);continue;case Z.NUM_DECIMAL_POINT:c===
"."?F.state_=Z.NUM_DIGIT:km(F,v,k);continue;case Z.NUM_DIGIT:if("0123456789.eE+-".indexOf(c)!==-1)continue;else k--,F.JSC$11559_pos_--,F.state_=E();continue;default:km(F,v,k)}}}
function E(){var c=t.pop();return c!=null?c:Z.VALUE}
function b(c){F.depth_>1||(c||(c=A===-1?F.JSC$11559_buffer_+v.substring(w,k):v.substring(A,k)),F.deliverMessageAsRawString_?F.result_.push(c):F.result_.push(JSON.parse(c)),A=k)}
for(var F=this,t=F.stack_,p=F.stringInputPattern_,Z=dMZ,d=v.length,w=0,A=-1,k=0;k<d;)switch(F.streamState_){case 3:return km(F,v,k),null;case 2:return Q()&&km(F,v,k),null;case 0:if(Q()){var T=v[k++];F.JSC$11559_pos_++;if(T==="["){F.streamState_=1;w=k;F.state_=Z.ARRAY_OPEN;continue}else km(F,v,k)}return null;case 1:return V(),F.depth_===0&&F.state_==Z.ARRAY_END?(F.streamState_=2,F.JSC$11559_buffer_=v.substring(k)):F.JSC$11559_buffer_=A===-1?F.JSC$11559_buffer_+v.substring(w):v.substring(A),F.result_.length>
0?(T=F.result_,F.result_=[],T):null}return null};_.HZ(_.C2,g$);Mv.prototype.getValue=function(){return this.JSC$11567_value_};
Mv.prototype.clone=function(){return new Mv(this.JSC$11567_key_,this.JSC$11567_value_)};var TI=function(v){this.nodes_=[];if(v)a:{if(v instanceof TI){var Q=v.getKeys();v=v.getValues();if(this.getCount()<=0){for(var V=this.nodes_,E=0;E<Q.length;E++)V.push(new Mv(Q[E],v[E]));break a}}else Q=_.gI.getKeys(v),v=_.gI.getValues(v);for(V=0;V<Q.length;V++)this.insert(Q[V],v[V])}};
_.K=TI.prototype;_.K.insert=function(v,Q){var V=this.nodes_;V.push(new Mv(v,Q));v=V.length-1;Q=this.nodes_;for(V=Q[v];v>0;){var E=v-1>>1;if(Q[E].JSC$11567_key_>V.JSC$11567_key_)Q[v]=Q[E],v=E;else break}Q[v]=V};
_.K.remove=function(){var v=this.nodes_,Q=v.length,V=v[0];if(!(Q<=0)){if(Q==1)v.length=0;else{v[0]=v.pop();v=0;Q=this.nodes_;for(var E=Q.length,b=Q[v];v<E>>1;){var F=v*2+1,t=v*2+2;F=t<E&&Q[t].JSC$11567_key_<Q[F].JSC$11567_key_?t:F;if(Q[F].JSC$11567_key_>b.JSC$11567_key_)break;Q[v]=Q[F];v=F}Q[v]=b}return V.getValue()}};
_.K.peek=function(){var v=this.nodes_;if(v.length!=0)return v[0].getValue()};
_.K.getValues=function(){for(var v=this.nodes_,Q=[],V=v.length,E=0;E<V;E++)Q.push(v[E].getValue());return Q};
_.K.getKeys=function(){for(var v=this.nodes_,Q=[],V=v.length,E=0;E<V;E++)Q.push(v[E].JSC$11567_key_);return Q};
_.K.containsValue=function(v){return this.nodes_.some(function(Q){return Q.getValue()==v})};
_.K.containsKey=function(v){return this.nodes_.some(function(Q){return Q.JSC$11567_key_==v})};
_.K.clone=function(){return new TI(this)};
_.K.getCount=function(){return this.nodes_.length};
_.K.isEmpty=function(){return this.nodes_.length===0};
_.K.clear=function(){this.nodes_.length=0};_.Ym=function(v,Q){this.JSC$11573_map_={};this.JSC$11573_keys_=[];this.version_=this.size=0;var V=arguments.length;if(V>1){if(V%2)throw Error("ma");for(var E=0;E<V;E+=2)this.set(arguments[E],arguments[E+1])}else v&&this.addAll(v)};
_.K=_.Ym.prototype;_.K.getCount=function(){return this.size};
_.K.getValues=function(){yG(this);for(var v=[],Q=0;Q<this.JSC$11573_keys_.length;Q++)v.push(this.JSC$11573_map_[this.JSC$11573_keys_[Q]]);return v};
_.K.getKeys=function(){yG(this);return this.JSC$11573_keys_.concat()};
_.K.containsKey=function(v){return this.has(v)};
_.K.has=function(v){return cW(this.JSC$11573_map_,v)};
_.K.containsValue=function(v){for(var Q=0;Q<this.JSC$11573_keys_.length;Q++){var V=this.JSC$11573_keys_[Q];if(cW(this.JSC$11573_map_,V)&&this.JSC$11573_map_[V]==v)return!0}return!1};
_.K.equals=function(v,Q){if(this===v)return!0;if(this.size!=v.getCount())return!1;Q=Q||heN;yG(this);for(var V,E=0;V=this.JSC$11573_keys_[E];E++)if(!Q(this.get(V),v.get(V)))return!1;return!0};
var heN=function(v,Q){return v===Q};
_.Ym.prototype.isEmpty=function(){return this.size==0};
_.Ym.prototype.clear=function(){this.JSC$11573_map_={};this.version_=this.size=this.JSC$11573_keys_.length=0};
_.Ym.prototype.remove=function(v){return this.delete(v)};
_.Ym.prototype.delete=function(v){return cW(this.JSC$11573_map_,v)?(delete this.JSC$11573_map_[v],--this.size,this.version_++,this.JSC$11573_keys_.length>2*this.size&&yG(this),!0):!1};
var yG=function(v){if(v.size!=v.JSC$11573_keys_.length){for(var Q=0,V=0;Q<v.JSC$11573_keys_.length;){var E=v.JSC$11573_keys_[Q];cW(v.JSC$11573_map_,E)&&(v.JSC$11573_keys_[V++]=E);Q++}v.JSC$11573_keys_.length=V}if(v.size!=v.JSC$11573_keys_.length){Q={};for(E=V=0;V<v.JSC$11573_keys_.length;){var b=v.JSC$11573_keys_[V];cW(Q,b)||(v.JSC$11573_keys_[E++]=b,Q[b]=1);V++}v.JSC$11573_keys_.length=E}};
_.K=_.Ym.prototype;_.K.get=function(v,Q){return cW(this.JSC$11573_map_,v)?this.JSC$11573_map_[v]:Q};
_.K.set=function(v,Q){cW(this.JSC$11573_map_,v)||(this.size+=1,this.JSC$11573_keys_.push(v),this.version_++);this.JSC$11573_map_[v]=Q};
_.K.addAll=function(v){if(v instanceof _.Ym)for(var Q=v.getKeys(),V=0;V<Q.length;V++)this.set(Q[V],v.get(Q[V]));else for(Q in v)this.set(Q,v[Q])};
_.K.forEach=function(v,Q){for(var V=this.getKeys(),E=0;E<V.length;E++){var b=V[E],F=this.get(b);v.call(Q,F,b,this)}};
_.K.clone=function(){return new _.Ym(this)};
_.K.transpose=function(){for(var v=new _.Ym,Q=0;Q<this.JSC$11573_keys_.length;Q++){var V=this.JSC$11573_keys_[Q];v.set(this.JSC$11573_map_[V],V)}return v};
_.K.keys=function(){return q2N(this.__iterator__(!0)).toEs6()};
_.K.values=function(){return q2N(this.__iterator__(!1)).toEs6()};
_.K.entries=function(){var v=this;return HxV(this.keys(),function(Q){return[Q,v.get(Q)]})};
_.K.__iterator__=function(v){yG(this);var Q=0,V=this.version_,E=this,b=new ZI;b.next=function(){if(V!=E.version_)throw Error("ue");if(Q>=E.JSC$11573_keys_.length)return PL;var F=E.JSC$11573_keys_[Q++];return de(v?F:E.JSC$11573_map_[F])};
return b};
var cW=function(v,Q){return Object.prototype.hasOwnProperty.call(v,Q)};var Axp=function(){this.JSC$11576_map_=new _.Ym;this.JSC$11576_head_=new wYN("");this.JSC$11576_head_.next=this.JSC$11576_head_.prev=this.JSC$11576_head_},kzS=function(v,Q){if(Q=v.JSC$11576_map_.get(Q))Q.remove(),v.insert_(Q);
return Q};
_.K=Axp.prototype;_.K.get=function(v,Q){return(v=kzS(this,v))?v.value:Q};
_.K.set=function(v,Q){var V=kzS(this,v);V?V.value=Q:(V=new wYN(v,Q),this.JSC$11576_map_.set(v,V),this.insert_(V))};
_.K.peek=function(){return this.JSC$11576_head_.next.value};
_.K.shift=function(){return TsZ(this,this.JSC$11576_head_.next)};
_.K.pop=function(){return TsZ(this,this.JSC$11576_head_.prev)};
_.K.remove=function(v){return(v=this.JSC$11576_map_.get(v))?(this.removeNode(v),!0):!1};
_.K.removeNode=function(v){v.remove();this.JSC$11576_map_.remove(v.key)};
_.K.getCount=function(){return this.JSC$11576_map_.getCount()};
_.K.isEmpty=function(){return this.JSC$11576_map_.isEmpty()};
_.K.getKeys=function(){return this.map(function(v,Q){return Q})};
_.K.getValues=function(){return this.map(function(v){return v})};
_.K.contains=function(v){return this.some(function(Q){return Q==v})};
_.K.containsKey=function(v){return this.JSC$11576_map_.containsKey(v)};
_.K.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11576_head_.prev)};
_.K.forEach=function(v,Q){for(var V=this.JSC$11576_head_.next;V!=this.JSC$11576_head_;V=V.next)v.call(Q,V.value,V.key,this)};
_.K.map=function(v,Q){for(var V=[],E=this.JSC$11576_head_.next;E!=this.JSC$11576_head_;E=E.next)V.push(v.call(Q,E.value,E.key,this));return V};
_.K.some=function(v,Q){for(var V=this.JSC$11576_head_.next;V!=this.JSC$11576_head_;V=V.next)if(v.call(Q,V.value,V.key,this))return!0;return!1};
_.K.every=function(v,Q){for(var V=this.JSC$11576_head_.next;V!=this.JSC$11576_head_;V=V.next)if(!v.call(Q,V.value,V.key,this))return!1;return!0};
_.K.insert_=function(v){v.next=this.JSC$11576_head_.next;v.prev=this.JSC$11576_head_;this.JSC$11576_head_.next=v;for(v.next.prev=v;this.getCount()>100;)this.removeNode(this.JSC$11576_head_.prev)};
var TsZ=function(v,Q){v.JSC$11576_head_!=Q&&v.removeNode(Q);return Q.value},wYN=function(v,Q){this.key=v;
this.value=Q};
wYN.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var YIX=function(){TI.apply(this,arguments)};
_.f(YIX,TI);YIX.prototype.enqueue=function(v,Q){this.insert(v,Q)};var yxa=function(){var v=Error();v.name="SecurityError";throw v;},C19=function(){return{get opener(){return null},
get closed(){return!0},get location(){yxa()},get document(){yxa()},postMessage:function(){},
close:function(){},
focus:function(){}}};var w7G={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 T2G={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 cxQ={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(T2G).join("|");var fvS=function(){function v(p){p.substr(-1)!==";"&&(p+=";");return t(p)}
for(var Q=Object.keys(cxQ).sort(kmo),V=Object.keys(T2G).sort(kmo),E=0,b=0;E<V.length;E++)Q[b]===V[E]?(V[E]+=";?",b++):V[E]+=";";var F=new RegExp("&(?:"+V.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),t=Yct();return function(p){return String(p).replace(F,v)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var Gza={};var CAq=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"),MiZ=/[\\&]/,Orx=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),DMV=RegExp('[&<>"]',"g"),Rea=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),nSV=function(v){return v.charCodeAt(0)===92?v.charAt(1):fvS(v)},lvR=function(v){return MiZ.test(v)?v.replace(Orx,nSV):v},qIR=function(v){try{var Q,V="";
if(typeof b!=="string"){var E=b;var b=";/?:@&=+$,-_.!~*'()#"}typeof E==="undefined"&&(E=!0);var F,t=Gza[b];if(t)var p=t;else{t=Gza[b]=[];for(F=0;F<128;F++){var Z=String.fromCharCode(F);/^[0-9a-z]$/i.test(Z)?t.push(Z):t.push("%"+("0"+F.toString(16).toUpperCase()).slice(-2))}for(F=0;F<b.length;F++)t[b.charCodeAt(F)]=b[F];p=t}var d=0;for(Q=v.length;d<Q;d++){var w=v.charCodeAt(d);if(E&&w===37&&d+2<Q&&/^[0-9a-f]{2}$/i.test(v.slice(d+1,d+3)))V+=v.slice(d,d+3),d+=2;else if(w<128)V+=p[w];else if(w>=55296&&
w<=57343){if(w>=55296&&w<=56319&&d+1<Q){var A=v.charCodeAt(d+1);if(A>=56320&&A<=57343){V+=encodeURIComponent(v[d]+v[d+1]);d++;continue}}V+="%EF%BF%BD"}else V+=encodeURIComponent(v[d])}return V}catch(k){return v}},SIN=function(v){switch(v){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return v}},fV=function(v,Q){return DMV.test(v)?Q?v.replace(Rea,SIN):v.replace(DMV,SIN):v};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var Mn;if(String.fromCodePoint)Mn=function(v){try{return String.fromCodePoint(v)}catch(Q){if(Q instanceof RangeError)return String.fromCharCode(65533);throw Q;}};
else{var zex=String.fromCharCode,Jxq=Math.floor;Mn=function(){var v=[],Q=-1,V=arguments.length;if(!V)return"";for(var E="";++Q<V;){var b=Number(arguments[Q]);if(!isFinite(b)||b<0||b>1114111||Jxq(b)!==b)return String.fromCharCode(65533);if(b<=65535)v.push(b);else{b-=65536;var F=(b>>10)+55296;b=b%1024+56320;v.push(F,b)}if(Q+1===V||v.length>16384)E+=zex.apply(null,v),v.length=0}return E}};var Nsq=function(v){this.root=this.current=v;this.entering=!0};
Nsq.prototype.next=function(){var v=this.current,Q=this.entering;if(v===null)return null;a:switch(v._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var V=!0;break a;default:V=!1}Q&&V?v._firstChild?(this.current=v._firstChild,this.entering=!0):this.entering=!1:v===this.root?this.current=null:v._next===null?(this.current=
v._parent,this.entering=!1):(this.current=v._next,this.entering=!0);return{entering:Q,node:v}};
var n2=function(v,Q){this._type=v;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=Q;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};
n2.prototype.appendChild=function(v){v.unlink();v._parent=this;this._lastChild?(this._lastChild._next=v,v._prev=this._lastChild):this._firstChild=v;this._lastChild=v};
n2.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 xMp=function(v,Q){Q.unlink();Q._next=v._next;Q._next&&(Q._next._prev=Q);Q._prev=v;v._next=Q;Q._parent=v._parent;Q._next||(Q._parent._lastChild=Q)};
n2.prototype.insertBefore=function(v){v.unlink();v._prev=this._prev;v._prev&&(v._prev._next=v);v._next=this;this._prev=v;v._parent=this._parent;v._prev||(v._parent._firstChild=v)};
_.hr.Object.defineProperties(n2.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(v){this._literal=v}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(v){this._destination=v}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(v){this._title=v}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(v){this._info=v}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(v){this._level=v}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(v){this._listData.type=v}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(v){this._listData.tight=v}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(v){this._listData.start=v}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(v){this._onEnter=v}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(v){this._onExit=v}}});var yZr=/[ \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,
cZS={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 BsZ=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]/),
gSR=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),sIQ=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),uQa=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),jI8=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),W6Z=/`+/,oSa=/^`+/,XYa=/\.\.\./g,avN=/--+/g,rxa=/^<([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])?)*)>/,
$Mq=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Iva=/^ *(?:\n *)?/,Hr8=/^[ \t\n\x0b\x0c\x0d]/,mMS=/[ \t\n\x0b\x0c\x0d]+/g,UMR=/^\s/,vGp=/ *$/,QCZ=/^ */,VtZ=/^ *(?:\n|$)/,EGN=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),bqp=/^[^\n`\[\]\\!<&*_'"]+/m,Ok=function(v){var Q=new n2("text");Q._literal=v;return Q},Db=function(v){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=v||{}};
Db.prototype.match=function(v){v=v.exec(this.subject.slice(this.pos));if(v===null)return null;this.pos+=v.index+v[0].length;return v[0]};
Db.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var RB=function(v){v.match(Iva);return!0},FhZ=function(v,Q,V){var E=0;
var b=v.pos;if(Q===39||Q===34)E++,v.pos++;else for(;v.peek()===Q;)E++,v.pos++;if(E===0)E=null;else{var F=b===0?"\n":v.subject.charAt(b-1);var t=v.peek();t=t===-1?"\n":Mn(t);var p=UMR.test(t);t=BsZ.test(t);var Z=UMR.test(F);var d=BsZ.test(F);F=!p&&!(t&&!Z&&!d);p=!Z&&!(d&&!p&&!t);Q===95?(Z=F&&(!p||d),t=p&&(!F||t)):(Z=Q===39||Q===34?F&&!p:F,t=p);v.pos=b;E={numdelims:E,can_open:Z,can_close:t}}if(!E)return!1;b=E.numdelims;t=v.pos;v.pos+=b;t=Q===39?"\u2019":Q===34?"\u201c":v.subject.slice(t,v.pos);t=Ok(t);
V.appendChild(t);v.delimiters={cc:Q,numdelims:b,origdelims:b,node:t,previous:v.delimiters,next:null,can_open:E.can_open,can_close:E.can_close};v.delimiters.previous!==null&&(v.delimiters.previous.next=v.delimiters);return!0},Kha=function(v,Q){Q.previous!==null&&(Q.previous.next=Q.next);
Q.next===null?v.delimiters=Q.previous:Q.next.previous=Q.previous},iqZ=function(v,Q){var V,E,b=[],F=!1;
b[95]=Q;b[42]=Q;b[39]=Q;b[34]=Q;for(V=v.delimiters;V!==null&&V.previous!==Q;)V=V.previous;for(;V!==null;){var t=V.cc;if(V.can_close){var p=V.previous;for(E=!1;p!==null&&p!==Q&&p!==b[t];){F=(V.can_open||p.can_close)&&(p.origdelims+V.origdelims)%3===0;if(p.cc===V.cc&&p.can_open&&!F){E=!0;break}p=p.previous}var Z=V;if(t===42||t===95)if(E){var d=V.numdelims>=2&&p.numdelims>=2?2:1;var w=p.node;var A=V.node;p.numdelims-=d;V.numdelims-=d;w._literal=w._literal.slice(0,w._literal.length-d);A._literal=A._literal.slice(0,
A._literal.length-d);var k=new n2(d===1?"emph":"strong");for(d=w._next;d&&d!==A;){var T=d._next;d.unlink();k.appendChild(d);d=T}xMp(w,k);d=p;T=V;d.next!==T&&(d.next=T,T.previous=d);p.numdelims===0&&(w.unlink(),Kha(v,p));V.numdelims===0&&(A.unlink(),p=V.next,Kha(v,V),V=p)}else V=V.next;else t===39?(V.node._literal="\u2019",E&&(p.node._literal="\u2018"),V=V.next):t===34&&(V.node._literal="\u201d",E&&(p.node.literal="\u201c"),V=V.next);E||F||(b[t]=Z.previous,Z.can_open||Kha(v,Z))}else V=V.next}for(;v.delimiters!==
null&&v.delimiters!==Q;)Kha(v,v.delimiters)},LhZ=function(v){v=v.match(gSR);
return v===null?null:lvR(v.substr(1,v.length-2))},ttR=function(v){var Q=v.match(sIQ);
if(Q===null){Q=v.pos;for(var V=0,E;(E=v.peek())!==-1;)if(E===92)v.pos+=1,v.peek()!==-1&&(v.pos+=1);else if(E===40)v.pos+=1,V+=1;else if(E===41)if(V<1)break;else v.pos+=1,--V;else if(Hr8.exec(Mn(E))!==null)break;else v.pos+=1;Q=v.subject.substr(Q,v.pos-Q);return qIR(lvR(Q))}return qIR(lvR(Q.substr(1,Q.length-2)))},pZR=function(v){v=v.match(EGN);
return v===null||v.length>1001?0:v.length},eS8=function(v,Q,V,E){v.brackets!==null&&(v.brackets.bracketAfter=!0);
v.brackets={node:Q,previous:v.brackets,previousDelimiter:v.delimiters,index:V,image:E,active:!0}},ZqA=function(v,Q){var V;
return(V=v.match(bqp))?(v.options.smart?Q.appendChild(Ok(V.replace(XYa,"\u2026").replace(avN,function(E){var b=0,F=0;E.length%3===0?F=E.length/3:E.length%2===0?b=E.length/2:E.length%3===2?(b=1,F=(E.length-2)/3):(b=2,F=(E.length-4)/3);E="";var t;for(t=0;t<F;t++)E+="\u2014";for(t=0;t<b;t++)E+="\u2013";return E}))):Q.appendChild(Ok(V)),!0):!1},PJQ=function(v,Q,V){v.subject=Q;
v.pos=0;Q=v.pos;var E=pZR(v);if(E===0)return 0;var b=v.subject.substr(0,E);if(v.peek()===58)v.pos++;else return v.pos=Q,0;RB(v);E=ttR(v);if(E===null||E.length===0)return v.pos=Q,0;var F=v.pos;RB(v);var t=LhZ(v);t===null&&(t="",v.pos=F);var p=!0;v.match(VtZ)===null&&(t===""?p=!1:(t="",v.pos=F,p=v.match(VtZ)!==null));if(!p)return v.pos=Q,0;b=fyZ(b);if(b==="")return v.pos=Q,0;V[b]||(V[b]={destination:E,title:t});return v.pos-Q},d38=function(v,Q){var V,E=v.peek();
if(E===-1)return!1;switch(E){case 10:v.pos+=1;if((V=Q._lastChild)&&V.type==="text"&&V._literal[V._literal.length-1]===" "){var b=V._literal[V._literal.length-2]===" ";V._literal=V._literal.replace(vGp,"");Q.appendChild(new n2(b?"linebreak":"softbreak"))}else Q.appendChild(new n2("softbreak"));v.match(QCZ);V=!0;break;case 92:V=v.subject;v.pos+=1;v.peek()===10?(v.pos+=1,V=new n2("linebreak"),Q.appendChild(V)):uQa.test(V.charAt(v.pos))?(Q.appendChild(Ok(V.charAt(v.pos))),v.pos+=1):Q.appendChild(Ok("\\"));
V=!0;break;case 96:a:if(V=v.match(oSa),V===null)V=!1;else{b=v.pos;for(var F;(F=v.match(W6Z))!==null;)if(F===V){F=new n2("code");F._literal=v.subject.slice(b,v.pos-V.length).trim().replace(mMS," ");Q.appendChild(F);V=!0;break a}v.pos=b;Q.appendChild(Ok(V));V=!0}break;case 42:case 95:V=FhZ(v,E,Q);break;case 39:case 34:V=v.options.smart&&FhZ(v,E,Q);break;case 91:V=v.pos;v.pos+=1;b=Ok("[");Q.appendChild(b);eS8(v,b,V,!1);V=!0;break;case 33:V=v.pos;v.pos+=1;v.peek()===91?(v.pos+=1,b=Ok("!["),Q.appendChild(b),
eS8(v,b,V+1,!0)):Q.appendChild(Ok("!"));V=!0;break;case 93:var t,p=!1,Z;v.pos+=1;var d=v.pos;b=v.brackets;if(b===null)Q.appendChild(Ok("]"));else if(b.active){V=b.image;var w=v.pos;v.peek()===40&&(v.pos++,RB(v)&&(F=ttR(v))!==null&&RB(v)&&(Hr8.test(v.subject.charAt(v.pos-1))&&(t=LhZ(v)),1)&&RB(v)&&v.peek()===41?(v.pos+=1,p=!0):v.pos=w);if(!p){var A=v.pos,k=pZR(v);k>2?Z=v.subject.slice(A,A+k):b.bracketAfter||(Z=v.subject.slice(b.index,d));k===0&&(v.pos=w);Z&&(Z=v.refmap[fyZ(Z)])&&(F=Z.destination,t=
Z.title,p=!0)}if(p){d=new n2(V?"image":"link");d._destination=F;d._title=t||"";for(F=b.node._next;F;)t=F._next,F.unlink(),d.appendChild(F),F=t;Q.appendChild(d);iqZ(v,b.previousDelimiter);v.brackets=v.brackets.previous;b.node.unlink();if(!V)for(b=v.brackets;b!==null;)b.image||(b.active=!1),b=b.previous}else v.brackets=v.brackets.previous,v.pos=d,Q.appendChild(Ok("]"))}else Q.appendChild(Ok("]")),v.brackets=v.brackets.previous;V=!0;break;case 60:(V=v.match(rxa))?(V=V.slice(1,V.length-1),b=new n2("link"),
b._destination=qIR("mailto:"+V),b._title="",b.appendChild(Ok(V)),Q.appendChild(b),V=!0):(V=v.match($Mq))?(V=V.slice(1,V.length-1),b=new n2("link"),b._destination=qIR(V),b._title="",b.appendChild(Ok(V)),Q.appendChild(b),V=!0):V=!1;V||(V=v.match(CAq),V===null?V=!1:(b=new n2("html_inline"),b._literal=V,Q.appendChild(b),V=!0));break;case 38:(V=v.match(jI8))?(Q.appendChild(Ok(fvS(V))),V=!0):V=!1;break;default:V=ZqA(v,Q)}V||(v.pos+=1,Q.appendChild(Ok(Mn(E))));return!0};
Db.prototype.parseInlines=function(v){this.subject=v._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;d38(this,v););v._string_content=null;iqZ(this,null)};
Db.prototype.parse=Db.prototype.parseInlines;var hSX=[/./,/^<(?: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")],wZN=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],A_V=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,knV=/^[#`~*+_=<>0-9-\|]|\|/,T3a=/[^ \t\f\v\r\n]/,Y$N=/^[*+-]/,y_V=/^(\d{1,9})([.)])/,c_N=/^#{1,6}(?:[ \t]+|$)/,foS=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,GnR=/^(?:`{3,}|~{3,})(?= *$)/,CJS=/^(?:=+|-+)[ \t]*$/,MtX=/\r\n|\n|\r/,Cy9=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,M3b=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Oqx={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(v){return v!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(v,Q){for(v=Q._firstChild;v;){if(Gmo(v)&&v._next){Q._listData.tight=!1;break}for(var V=v._firstChild;V;){if(Gmo(V)&&(v._next||V._next)){Q._listData.tight=!1;break}V=V._next}v=v._next}},
canContain:function(v){return v==="item"},
acceptsLines:!1},block_quote:{continue:function(v){var Q=v.currentLine;if(v.indented||D3(Q,v.nextNonspace)!==62)return 1;nV(v);l0(v,1,!1);OS(D3(Q,v.offset))&&l0(v,1,!0);return 0},
finalize:function(){},
canContain:function(v){return v!=="item"},
acceptsLines:!1},item:{continue:function(v,Q){if(v.blank){if(Q._firstChild==null)return 1;nV(v)}else if(v.indent>=Q._listData.markerOffset+Q._listData.padding)l0(v,Q._listData.markerOffset+Q._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(v){return v!=="item"&&!Ooh(v)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(v,Q){var V=v.currentLine,E=v.indent;if(Q._isFenced){if((E=E<=3&&V.charAt(v.nextNonspace)===Q._fenceChar&&V.slice(v.nextNonspace).match(GnR))&&E[0].length>=Q._fenceLength)return v.finalize(Q,v.lineNumber),2;for(Q=Q._fenceOffset;Q>0&&OS(D3(V,v.offset));)l0(v,1,!0),Q--}else if(E>=4)l0(v,4,!0);else if(v.blank)nV(v);else return 1;return 0},
finalize:function(v,Q){if(Q._isFenced){var V=Q._string_content,E=V.indexOf("\n");v=V.slice(0,E);V=V.slice(E+1);Q.info=lvR(v.trim());Q._literal=V}else Q._literal=Q._string_content.replace(/(\n *)+$/,"\n");Q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(v,Q){return!v.blank||Q._htmlBlockType!==6&&Q._htmlBlockType!==7?0:1},
finalize:function(v,Q){Q._literal=Q._string_content.replace(/(\n *)+$/,"");Q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(v){return v.blank?1:0},
finalize:function(v,Q){for(var V,E=!1;D3(Q._string_content,0)===91&&(V=PJQ(v.inlineParser,Q._string_content,v.refmap));)Q._string_content=Q._string_content.slice(V),E=!0;E&&!T3a.test(Q._string_content)&&Q.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(v){return RT(v.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(v){return v=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(v,Q){if(!Q._rowIsDelimiter){v=Q._isHeader?"th":"td";for(var V=Q._parent._tableColumns,E=Q._string_content,b=0,F="",t,p=Q._sourcepos[0][0];b<E.length;){switch(E[b]){case "|":t&&(t._string_content=F.trim(),F="",t=null,V--,V<=0&&(b=E.length));break;default:if(!t){t=new n2(v,[[p,b],[p,b]]);var Z=Q._parent._columnAlignment,d=Q._parent._tableColumns-V;Z&&d<=Z.length&&d>=0&&(t._alignment=Z[d]);Q.appendChild(t)}F+=E[b];t._sourcepos[1][1]=b}b++}t&&(t._string_content=F.trim());Q._string_content=
""}},
canContain:function(v){return v!=="row"},
acceptsLines:!1}},D3X=[function(v){if(v.indented||D3(v.currentLine,v.nextNonspace)!==62)return 0;nV(v);l0(v,1,!1);OS(D3(v.currentLine,v.offset))&&l0(v,1,!0);qn(v);v.addChild("block_quote",v.nextNonspace);return 1},
function(v){var Q;if(!v.indented&&(Q=v.currentLine.slice(v.nextNonspace).match(c_N))){nV(v);l0(v,Q[0].length,!1);qn(v);var V=v.addChild("heading",v.nextNonspace);V.level=Q[0].trim().length;V._string_content=v.currentLine.slice(v.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");l0(v,v.currentLine.length-v.offset);return 2}return 0},
function(v){var Q;if(!v.indented&&(Q=v.currentLine.slice(v.nextNonspace).match(foS))){var V=Q[0].length;qn(v);var E=v.addChild("code_block",v.nextNonspace);E._isFenced=!0;E._fenceLength=V;E._fenceChar=Q[0][0];E._fenceOffset=v.indent;nV(v);l0(v,V,!1);return 2}return 0},
function(v,Q){if(!v.indented&&D3(v.currentLine,v.nextNonspace)===60){var V=v.currentLine.slice(v.nextNonspace),E;for(E=1;E<=7;E++)if(hSX[E].test(V)&&(E<7||Q.type!=="paragraph"))return qn(v),v.addChild("html_block",v.offset)._htmlBlockType=E,2}return 0},
function(v,Q){var V;if(!v.indented&&Q.type==="paragraph"&&(V=v.currentLine.slice(v.nextNonspace).match(CJS))){qn(v);var E=new n2("heading",Q.sourcepos);E.level=V[0][0]==="="?1:2;E._string_content=Q._string_content;xMp(Q,E);Q.unlink();v.tip=E;l0(v,v.currentLine.length-v.offset,!1);return 2}return 0},
function(v){return!v.indented&&A_V.test(v.currentLine.slice(v.nextNonspace))?(qn(v),v.addChild("thematic_break",v.nextNonspace),l0(v,v.currentLine.length-v.offset,!1),2):0},
function(v,Q){var V,E;if(!(E=v.indented&&Q.type!=="list")){a:{var b=Q,F=v.currentLine.slice(v.nextNonspace);E={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:v.indent};if(V=F.match(Y$N))E.type="bullet",E.bulletChar=V[0][0];else{if(!(V=F.match(y_V))||b.type==="paragraph"&&V[1]!=="1"){V=null;break a}E.type="ordered";E.start=parseInt(V[1],10);E.delimiter=V[2]}var t=D3(v.currentLine,v.nextNonspace+V[0].length);if(t!==-1&&t!==9&&t!==32||b.type==="paragraph"&&!v.currentLine.slice(v.nextNonspace+
V[0].length).match(T3a))V=null;else{nV(v);l0(v,V[0].length,!0);b=v.column;F=v.offset;do l0(v,1,!0),t=D3(v.currentLine,v.offset);while(v.column-b<5&&OS(t));t=D3(v.currentLine,v.offset)===-1;var p=v.column-b;p>=5||p<1||t?(E.padding=V[0].length+1,v.column=b,v.offset=F,OS(D3(v.currentLine,v.offset))&&l0(v,1,!0)):E.padding=V[0].length+p;V=E}}E=!V}if(E)return 0;qn(v);(E=v.tip.type!=="list")||(Q=Q._listData,E=!(Q.type===V.type&&Q.delimiter===V.delimiter&&Q.bulletChar===V.bulletChar));E&&(Q=v.addChild("list",
v.nextNonspace),Q._listData=V);Q=v.addChild("item",v.nextNonspace);Q._listData=V;return 1},
function(v){var Q;return((Q=v.options.shouldParseIndentAsCodeBlock)!=null?Q:1)&&v.indented&&v.tip.type!=="paragraph"&&!v.blank?(l0(v,4,!0),qn(v),v.addChild("code_block",v.offset),2):0},
function(v,Q){var V=RT(v.currentLine),E=RT(v.lookahead);if(V!==0&&E<0&&Math.abs(V)==Math.abs(E)&&!Ooh(Q.type)){qn(v);Q=v.addChild("table",v.nextNonspace);Q._tableRows=1;Q._tableColumns=Math.abs(V);V=v.lookahead;if(M3b.test(V)){E=[];for(var b=0,F=!1,t=0,p=void 0;b<V.length;){var Z=t>=3;switch(V[b]){case "-":t++;break;case "|":F&&(E.push(p),p=void 0,t=0);F=!0;break;case ":":p||Z||(p="left"),!p&&Z&&(p="right"),p==="left"&&Z&&(p="center")}b++}V=E}else V=void 0;Q._columnAlignment=V;Q=v.addChild("row",
v.nextNonspace);Q._isHeader=!0;l0(v,v.currentLine.length-v.offset,!1);Q._string_content=v.currentLine;return 1}return 0},
function(v,Q){if(Q.type=="table"&&RT(v.currentLine)!==0){qn(v);var V=Q;Q=v.addChild("row",v.nextNonspace);RT(v.currentLine)<0?Q._rowIsDelimiter=!0:V._tableRows+=1;l0(v,v.currentLine.length-v.offset,!1);Q._string_content=v.currentLine;return 2}return 0}],C4B=function(){var v={shouldParseIndentAsCodeBlock:!1};
v=v===void 0?{}:v;this.lastMatchedContainer=this.doc=Dct();this.refmap={};this.lastLineLength=0;this.inlineParser=new Db(v);this.options=v;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=Oqx;this.blockStarts=D3X},RSN=function(v){v.partiallyConsumedTab&&(v.offset+=1,v.tip._string_content+=" ".repeat(4-v.column%
4));
v.tip._string_content+=v.currentLine.slice(v.offset)+"\n"};
C4B.prototype.addChild=function(v,Q){for(;!this.blocks[this.tip.type].canContain(v);)this.finalize(this.tip,this.lineNumber-1);v=new n2(v,[[this.lineNumber,Q+1],[0,0]]);v._string_content="";this.tip.appendChild(v);return this.tip=v};
var qn=function(v){if(!v.allClosed){for(;v.oldtip!==v.lastMatchedContainer;){var Q=v.oldtip._parent;v.finalize(v.oldtip,v.lineNumber-1);v.oldtip=Q}v.allClosed=!0}},l0=function(v,Q,V){for(var E=v.currentLine,b,F;Q>0&&(F=E[v.offset]);)F==="\t"?(b=4-v.column%4,V?(v.partiallyConsumedTab=b>Q,b=b>Q?Q:b,v.column+=b,v.offset+=v.partiallyConsumedTab?0:1,Q-=b):(v.partiallyConsumedTab=!1,v.column+=b,v.offset+=1,--Q)):(v.partiallyConsumedTab=!1,v.offset+=1,v.column+=1,--Q)},nV=function(v){v.offset=v.nextNonspace;
v.column=v.nextNonspaceColumn;v.partiallyConsumedTab=!1},nGA=function(v){for(var Q=v.currentLine,V=v.offset,E=v.column,b;(b=Q.charAt(V))!=="";)if(b===" ")V++,E++;
else if(b==="\t")V++,E+=4-E%4;else break;v.blank=b==="\n"||b==="\r"||b==="";v.nextNonspace=V;v.nextNonspaceColumn=E;v.indent=v.nextNonspaceColumn-v.column;v.indented=v.indent>=4};
C4B.prototype.finalize=function(v,Q){var V=v._parent;v._open=!1;v.sourcepos[1]=[Q,this.lastLineLength];this.blocks[v.type].finalize(this,v);this.tip=V};
C4B.prototype.parse=function(v){this.tip=this.doc=Dct();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!v)return this.doc;this.options.time&&console.time("preparing input");var Q=v.split(MtX),V=Q.length;v.charCodeAt(v.length-1)===10&&--V;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(v=0;v<V;v++)a:{var E=void 0,b=Q[v],F=Q[v+1],t=!0,p=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;b.indexOf("\x00")!==-1&&(b=b.replace(/\0/g,"\ufffd"));this.currentLine=b;for(this.lookahead=F;(E=p._lastChild)&&E._open;){p=E;nGA(this);switch(this.blocks[p.type].continue(this,p)){case 0:break;case 1:t=!1;break;case 2:this.lastLineLength=b.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!t){p=p._parent;break}}this.allClosed=p===this.oldtip;this.lastMatchedContainer=
p;E=p.type!=="paragraph"&&Oqx[p.type].acceptsLines;F=this.blockStarts;for(t=F.length;!E;){nGA(this);if(!this.indented&&!knV.test(b.slice(this.nextNonspace))){nV(this);break}for(var Z=0;Z<t;){var d=F[Z](this,p);if(d===1){p=this.tip;break}else if(d===2){p=this.tip;E=!0;break}else Z++}if(Z===t){nV(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){qn(this);this.blank&&p.lastChild&&(p.lastChild._lastLineBlank=!0);E=p.type;F=this.blank&&!(E==="block_quote"||E==="code_block"&&p._isFenced||
E==="item"&&!p._firstChild&&p.sourcepos[0][0]===this.lineNumber);for(t=p;t;)t._lastLineBlank=F,t=t._parent;this.blocks[E].acceptsLines?(RSN(this),E==="html_block"&&p._htmlBlockType>=1&&p._htmlBlockType<=5&&wZN[p._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(p,this.lineNumber)):this.offset<b.length&&!this.blank&&(this.addChild("paragraph",this.offset),nV(this),RSN(this))}else RSN(this);this.lastLineLength=b.length}for(;this.tip;)this.finalize(this.tip,V);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");b=new Nsq(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;V=b.next();)Q=V.node,v=Q.type,V.entering||v!=="paragraph"&&v!=="heading"&&v!=="th"&&v!="td"||this.inlineParser.parse(Q);this.options.time&&console.timeEnd("inline parsing");return this.doc};R5o.prototype.render=function(v){v=new Nsq(v);var Q;this.buffer="";for(this.lastOut="\n";Q=v.next();){var V=Q.node.type;if(this[V])this[V](Q.node,Q.entering)}return this.buffer};
R5o.prototype.out=function(v){SX(this,v)};
var SX=function(v,Q){v.buffer+=Q;v.lastOut=Q};
R5o.prototype.cr=function(){this.lastOut!=="\n"&&SX(this,"\n")};var lo8=/^javascript:|vbscript:|file:|data:/i,q$a=/^data:image\/(?:png|gif|jpeg|webp)/i,S$a=function(v){return lo8.test(v)&&!q$a.test(v)};
lu.prototype=Object.create(R5o.prototype);_.K=lu.prototype;_.K.text=function(v){this.out(v.literal)};
_.K.html_inline=function(v){this.options.safe?SX(this,"\x3c!-- raw HTML omitted --\x3e"):SX(this,v.literal)};
_.K.html_block=function(v){this.cr();this.options.safe?SX(this,"\x3c!-- raw HTML omitted --\x3e"):SX(this,v.literal);this.cr()};
_.K.softbreak=function(){SX(this,this.options.softbreak)};
_.K.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.K.link=function(v,Q){var V=this.attrs(v);Q?(this.options.safe&&S$a(v.destination)||V.push(["href",fV(v.destination,!0)]),v.title&&V.push(["title",fV(v.title,!0)]),this.tag("a",V)):this.tag("/a")};
_.K.image=function(v,Q){Q?(this.disableTags===0&&(this.options.safe&&S$a(v.destination)?SX(this,'<img src="" alt="'):SX(this,'<img src="'+fV(v.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(v.title&&SX(this,'" title="'+fV(v.title,!0)),SX(this,'" />')))};
_.K.emph=function(v,Q){this.tag(Q?"em":"/em")};
_.K.strong=function(v,Q){this.tag(Q?"strong":"/strong")};
_.K.paragraph=function(v,Q){var V=v.parent.parent;v=this.attrs(v);V!==null&&V.type==="list"&&V.listTight||(Q?(this.cr(),this.tag("p",v)):(this.tag("/p"),this.cr()))};
_.K.heading=function(v,Q){var V="h"+v.level;v=this.attrs(v);Q?(this.cr(),this.tag(V,v)):(this.tag("/"+V),this.cr())};
_.K.code=function(v){this.tag("code");this.out(v.literal);this.tag("/code")};
_.K.code_block=function(v){var Q=v.info?v.info.split(/\s+/):[],V=this.attrs(v);Q.length>0&&Q[0].length>0&&V.push(["class","language-"+fV(Q[0],!0)]);this.cr();this.tag("pre");this.tag("code",V);this.out(v.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.K.thematic_break=function(v){v=this.attrs(v);this.cr();this.tag("hr",v,!0);this.cr()};
_.K.block_quote=function(v,Q){v=this.attrs(v);Q?(this.cr(),this.tag("blockquote",v)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.K.list=function(v,Q){var V=v.listType==="bullet"?"ul":"ol",E=this.attrs(v);Q?(v=v.listStart,v!==null&&v!==1&&E.push(["start",v.toString()]),this.cr(),this.tag(V,E)):(this.cr(),this.tag("/"+V));this.cr()};
_.K.item=function(v,Q){v=this.attrs(v);Q?this.tag("li",v):(this.tag("/li"),this.cr())};
_.K.custom_inline=function(v,Q){Q&&v.onEnter?SX(this,v.onEnter):!Q&&v.onExit&&SX(this,v.onExit)};
_.K.custom_block=function(v,Q){this.cr();Q&&v.onEnter?SX(this,v.onEnter):!Q&&v.onExit&&SX(this,v.onExit);this.cr()};
_.K.table=function(v,Q){v=this.attrs(v);Q?(this.cr(),this.tag("table",v)):(this.tag("/table"),this.cr())};
_.K.row=function(v,Q){v._rowIsDelimiter||(v=this.attrs(v),Q?this.tag("tr",v):this.tag("/tr"))};
_.K.td=function(v,Q){var V=this.attrs(v);v._alignment&&V.push(["align",v._alignment]);Q?this.tag("td",V):this.tag("/td")};
_.K.th=function(v,Q){var V=this.attrs(v);v._alignment&&V.push(["align",v._alignment]);Q?this.tag("th",V):this.tag("/th")};
_.K.out=function(v){SX(this,fV(v,!1))};
_.K.tag=function(v,Q,V){if(!(this.disableTags>0)){this.buffer+="<"+v;if(Q&&Q.length>0){v=0;for(var E;(E=Q[v])!==void 0;)this.buffer+=" "+E[0]+'="'+E[1]+'"',v++}V&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.K.attrs=function(v){var Q=[];this.options.sourcepos&&(v=v.sourcepos)&&Q.push(["data-sourcepos",String(v[0][0])+":"+String(v[0][1])+"-"+String(v[1][0])+":"+String(v[1][1])]);return Q};
lu.prototype.text=lu.prototype.text;lu.prototype.html_inline=lu.prototype.html_inline;lu.prototype.html_block=lu.prototype.html_block;lu.prototype.softbreak=lu.prototype.softbreak;lu.prototype.linebreak=lu.prototype.linebreak;lu.prototype.link=lu.prototype.link;lu.prototype.image=lu.prototype.image;lu.prototype.emph=lu.prototype.emph;lu.prototype.strong=lu.prototype.strong;lu.prototype.paragraph=lu.prototype.paragraph;lu.prototype.heading=lu.prototype.heading;lu.prototype.code=lu.prototype.code;
lu.prototype.code_block=lu.prototype.code_block;lu.prototype.thematic_break=lu.prototype.thematic_break;lu.prototype.block_quote=lu.prototype.block_quote;lu.prototype.list=lu.prototype.list;lu.prototype.item=lu.prototype.item;lu.prototype.custom_inline=lu.prototype.custom_inline;lu.prototype.custom_block=lu.prototype.custom_block;lu.prototype.table=lu.prototype.table;lu.prototype.row=lu.prototype.row;lu.prototype.td=lu.prototype.td;lu.prototype.th=lu.prototype.th;lu.prototype.out=lu.prototype.out;
lu.prototype.tag=lu.prototype.tag;lu.prototype.attrs=lu.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 zSa,J_a,dWT;(function(){function v(n,D){return n<D?-1:n>D?1:n>=D?0:NaN}
function Q(n){return function(D,N){return v(n(D),N)}}
function V(){for(var n=0,D=arguments.length,N={},Qo;n<D;++n){if(!(Qo=arguments[n]+"")||Qo in N)throw Error("we`"+Qo);N[Qo]=[]}return new E(N)}
function E(n){this._=n}
function b(n,D){return n.trim().split(/^|\s+/).map(function(N){var Qo="",eZ=N.indexOf(".");eZ>=0&&(Qo=N.slice(eZ+1),N=N.slice(0,eZ));if(N&&!D.hasOwnProperty(N))throw Error("xe`"+N);return{type:N,name:Qo}})}
function F(n,D,N){for(var Qo=0,eZ=n.length;Qo<eZ;++Qo)if(n[Qo].name===D){n[Qo]=YrY;n=n.slice(0,Qo).concat(n.slice(Qo+1));break}N!=null&&n.push({name:D,value:N});return n}
function t(n){var D=n,N=D.indexOf(":");N>=0&&(D=n.slice(0,N))!=="xmlns"&&(n=n.slice(N+1));return II.hasOwnProperty(D)?{space:II[D],local:n}:n}
function p(n){return function(){var D=this.ownerDocument,N=this.namespaceURI;return N==="http://www.w3.org/1999/xhtml"&&D.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?D.createElement(n):D.createElementNS(N,n)}}
function Z(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}
function d(n){n=t(n);return(n.local?Z:p)(n)}
function w(){}
function A(n){return n==null?w:function(){return this.querySelector(n)}}
function k(n){return Array(n.length)}
function T(n,D){this.ownerDocument=n.ownerDocument;this.namespaceURI=n.namespaceURI;this._next=null;this._parent=n;this.__data__=D}
function c(n){return function(){return n}}
function C(n,D,N,Qo,eZ,A3){for(var G0=0,SZ,KZ=D.length,UB=A3.length;G0<UB;++G0)(SZ=D[G0])?(SZ.__data__=A3[G0],Qo[G0]=SZ):N[G0]=new T(n,A3[G0]);for(;G0<KZ;++G0)if(SZ=D[G0])eZ[G0]=SZ}
function R(n,D,N,Qo,eZ,A3,G0){var SZ,KZ,UB={},ix=D.length,wV=A3.length,$a=Array(ix),q$;for(SZ=0;SZ<ix;++SZ)if(KZ=D[SZ])$a[SZ]=q$="$"+G0.call(KZ,KZ.__data__,SZ,D),q$ in UB?eZ[SZ]=KZ:UB[q$]=KZ;for(SZ=0;SZ<wV;++SZ)q$="$"+G0.call(n,A3[SZ],SZ,A3),(KZ=UB[q$])?(Qo[SZ]=KZ,KZ.__data__=A3[SZ],UB[q$]=null):N[SZ]=new T(n,A3[SZ]);for(SZ=0;SZ<ix;++SZ)(KZ=D[SZ])&&UB[$a[SZ]]===KZ&&(eZ[SZ]=KZ)}
function l(n,D){return n<D?-1:n>D?1:n>=D?0:NaN}
function S(n){return function(){this.removeAttribute(n)}}
function a(n){return function(){this.removeAttributeNS(n.space,n.local)}}
function g(n,D){return function(){this.setAttribute(n,D)}}
function u(n,D){return function(){this.setAttributeNS(n.space,n.local,D)}}
function r(n,D){return function(){var N=D.apply(this,arguments);N==null?this.removeAttribute(n):this.setAttribute(n,N)}}
function v9(n,D){return function(){var N=D.apply(this,arguments);N==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,N)}}
function t3(n){return function(){this.style.removeProperty(n)}}
function h3(n,D,N){return function(){this.style.setProperty(n,D,N)}}
function OB(n,D,N){return function(){var Qo=D.apply(this,arguments);Qo==null?this.style.removeProperty(n):this.style.setProperty(n,Qo,N)}}
function kQ(n,D){return n.style.getPropertyValue(D)||(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView).getComputedStyle(n,null).getPropertyValue(D)}
function yo(n){return function(){delete this[n]}}
function xQ(n,D){return function(){this[n]=D}}
function lb(n,D){return function(){var N=D.apply(this,arguments);N==null?delete this[n]:this[n]=N}}
function ep(){this.textContent=""}
function JS(n){return function(){this.textContent=n}}
function fZ(n){return function(){var D=n.apply(this,arguments);this.textContent=D==null?"":D}}
function mS(){this.innerHTML=""}
function PN(n){return function(){this.innerHTML=n}}
function qZ(n){return function(){var D=n.apply(this,arguments);this.innerHTML=D==null?"":D}}
function DX(){return null}
function Th(){var n=this.parentNode;n&&n.removeChild(this)}
function R8(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function LE(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Q8(n,D,N){n=Tq(n,D,N);return function(Qo){var eZ=Qo.relatedTarget;eZ&&(eZ===this||eZ.compareDocumentPosition(this)&8)||n.call(this,Qo)}}
function Tq(n,D,N){return function(){n.call(this,this.__data__,D,N)}}
function Ed(n){return n.trim().split(/^|\s+/).map(function(D){var N="",Qo=D.indexOf(".");Qo>=0&&(N=D.slice(Qo+1),D=D.slice(0,Qo));return{type:D,name:N}})}
function y8(n){return function(){var D=this.__on;if(D){for(var N=0,Qo=-1,eZ=D.length,A3;N<eZ;++N)(A3=D[N],n.type&&A3.type!==n.type||A3.name!==n.name)?D[++Qo]=A3:this.removeEventListener(A3.type,A3.listener,A3.capture);++Qo?D.length=Qo:delete this.__on}}}
function mA(n,D,N){var Qo=hjZ.hasOwnProperty(n.type)?Q8:Tq;return function(eZ,A3,G0){eZ=this.__on;var SZ;A3=Qo(D,A3,G0);if(eZ){G0=0;for(var KZ=eZ.length;G0<KZ;++G0)if((SZ=eZ[G0]).type===n.type&&SZ.name===n.name){this.removeEventListener(SZ.type,SZ.listener,SZ.capture);this.addEventListener(SZ.type,SZ.listener=A3,SZ.capture=N);SZ.value=D;return}}this.addEventListener(n.type,A3,N);SZ={type:n.type,name:n.name,value:D,listener:A3,capture:N};eZ?eZ.push(SZ):this.__on=[SZ]}}
function C$(n,D,N){var Qo=n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView,eZ=Qo.CustomEvent;typeof eZ==="function"?eZ=new eZ(D,N):(eZ=Qo.document.createEvent("Event"),N?(eZ.initEvent(D,N.bubbles,N.cancelable),eZ.detail=N.detail):eZ.initEvent(D,!1,!1));n.dispatchEvent(eZ)}
function oN(n,D){return function(){return C$(this,n,D)}}
function dV(n,D){return function(){return C$(this,n,D.apply(this,arguments))}}
function hS(n,D){this._groups=n;this._parents=D}
function bh(){return new hS([[document.documentElement]],y9j)}
function ah(){this._="@"+(++c9m).toString(36)}
function vs(n,D,N){n.prototype=D.prototype=N;N.constructor=n}
function dl(n,D){n=Object.create(n.prototype);for(var N in D)n[N]=D[N];return n}
function E9(){}
function wY(n){var D;n=(n+"").trim().toLowerCase();return(D=fhs.exec(n))?(D=parseInt(D[1],16),new Gh(D>>8&15|D>>4&240,D>>4&15|D&240,(D&15)<<4|D&15,1)):(D=Gyj.exec(n))?Ws(parseInt(D[1],16)):(D=Cpm.exec(n))?new Gh(D[1],D[2],D[3],1):(D=MvI.exec(n))?new Gh(D[1]*255/100,D[2]*255/100,D[3]*255/100,1):(D=O17.exec(n))?Zg(D[1],D[2],D[3],D[4]):(D=DDs.exec(n))?Zg(D[1]*255/100,D[2]*255/100,D[3]*255/100,D[4]):(D=Rjq.exec(n))?fg(D[1],D[2]/100,D[3]/100,1):(D=n2d.exec(n))?fg(D[1],D[2]/100,D[3]/100,D[4]):wkZ.hasOwnProperty(n)?
Ws(wkZ[n]):n==="transparent"?new Gh(NaN,NaN,NaN,0):null}
function Ws(n){return new Gh(n>>16&255,n>>8&255,n&255,1)}
function Zg(n,D,N,Qo){Qo<=0&&(n=D=N=NaN);return new Gh(n,D,N,Qo)}
function TT(n){n instanceof E9||(n=wY(n));if(!n)return new Gh;n=n.rgb();return new Gh(n.r,n.g,n.b,n.opacity)}
function WN(n,D,N,Qo){return arguments.length===1?TT(n):new Gh(n,D,N,Qo==null?1:Qo)}
function Gh(n,D,N,Qo){this.r=+n;this.g=+D;this.b=+N;this.opacity=+Qo}
function Fn(n){n=Math.max(0,Math.min(255,Math.round(n)||0));return(n<16?"0":"")+n.toString(16)}
function fg(n,D,N,Qo){Qo<=0?n=D=N=NaN:N<=0||N>=1?n=D=NaN:D<=0&&(n=NaN);return new rb(n,D,N,Qo)}
function la(n){if(n instanceof rb)return new rb(n.h,n.s,n.l,n.opacity);n instanceof E9||(n=wY(n));if(!n)return new rb;if(n instanceof rb)return n;n=n.rgb();var D=n.r/255,N=n.g/255,Qo=n.b/255,eZ=Math.min(D,N,Qo),A3=Math.max(D,N,Qo),G0=NaN,SZ=A3-eZ,KZ=(A3+eZ)/2;SZ?(G0=D===A3?(N-Qo)/SZ+(N<Qo)*6:N===A3?(Qo-D)/SZ+2:(D-N)/SZ+4,SZ/=KZ<.5?A3+eZ:2-A3-eZ,G0*=60):SZ=KZ>0&&KZ<1?0:G0;return new rb(G0,SZ,KZ,n.opacity)}
function Ql(n,D,N,Qo){return arguments.length===1?la(n):new rb(n,D,N,Qo==null?1:Qo)}
function rb(n,D,N,Qo){this.h=+n;this.s=+D;this.l=+N;this.opacity=+Qo}
function yN(n,D,N){return(n<60?D+(N-D)*n/60:n<180?N:n<240?D+(N-D)*(240-n)/60:D)*255}
function h8(n){if(n instanceof Dt)return new Dt(n.l,n.a,n.b,n.opacity);if(n instanceof MZ){if(isNaN(n.h))return new Dt(n.l,0,0,n.opacity);var D=n.h*A9A;return new Dt(n.l,Math.cos(D)*n.c,Math.sin(D)*n.c,n.opacity)}n instanceof Gh||(n=TT(n));var N=cs(n.r),Qo=cs(n.g),eZ=cs(n.b);D=gG(.2225045*N+.7168786*Qo+.0606169*eZ);if(N===Qo&&Qo===eZ)var A3=N=D;else A3=gG((.4360747*N+.3850649*Qo+.1430804*eZ)/.96422),N=gG((.0139322*N+.0971045*Qo+.7141733*eZ)/.82521);return new Dt(116*D-16,500*(A3-D),200*(D-N),n.opacity)}
function Dt(n,D,N,Qo){this.l=+n;this.a=+D;this.b=+N;this.opacity=+Qo}
function gG(n){return n>lhY?Math.pow(n,1/3):n/kyp+T4a}
function Xr(n){return n>hu?n*n*n:kyp*(n-T4a)}
function AS(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}
function cs(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}
function qj(n){if(n instanceof MZ)return new MZ(n.h,n.c,n.l,n.opacity);n instanceof Dt||(n=h8(n));if(n.a===0&&n.b===0)return new MZ(NaN,0,n.l,n.opacity);var D=Math.atan2(n.b,n.a)*YrV;return new MZ(D<0?D+360:D,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}
function nj(n,D,N,Qo){return arguments.length===1?qj(n):new MZ(n,D,N,Qo==null?1:Qo)}
function MZ(n,D,N,Qo){this.h=+n;this.c=+D;this.l=+N;this.opacity=+Qo}
function Gq(n,D,N,Qo){if(arguments.length===1){var eZ=n;if(eZ instanceof uh)eZ=new uh(eZ.h,eZ.s,eZ.l,eZ.opacity);else{eZ instanceof Gh||(eZ=TT(eZ));var A3=eZ.g/255,G0=eZ.b/255,SZ=(y9Z*G0+eZ.r/255*-1.7884503806-3.5172982438*A3)/(y9Z+-1.7884503806-3.5172982438);G0-=SZ;var KZ=(1.97294*(A3-SZ)- -.29227*G0)/-.90649;G0=(A3=Math.sqrt(KZ*KZ+G0*G0)/(1.97294*SZ*(1-SZ)))?Math.atan2(KZ,G0)*YrV-120:NaN;eZ=new uh(G0<0?G0+360:G0,A3,SZ,eZ.opacity)}}else eZ=new uh(n,D,N,Qo==null?1:Qo);return eZ}
function uh(n,D,N,Qo){this.h=+n;this.s=+D;this.l=+N;this.opacity=+Qo}
function jc(n,D,N,Qo,eZ){var A3=n*n,G0=A3*n;return((1-3*n+3*A3-G0)*D+(4-6*A3+3*G0)*N+(1+3*n+3*A3-3*G0)*Qo+G0*eZ)/6}
function Ya(n){return function(){return n}}
function rI(n,D){return function(N){return n+N*D}}
function am(n,D,N){return n=Math.pow(n,N),D=Math.pow(D,N)-n,N=1/N,function(Qo){return Math.pow(n+Qo*D,N)}}
function Wq(n,D){var N=D-n;return N?rI(n,N>180||N<-180?N-360*Math.round(N/360):N):Ya(isNaN(n)?D:n)}
function $U(n){return(n=+n)===1?bM:function(D,N){return N-D?am(D,N,n):Ya(isNaN(D)?N:D)}}
function bM(n,D){var N=D-n;return N?rI(n,N):Ya(isNaN(n)?D:n)}
function T2(n){return function(D){var N=D.length,Qo=Array(N),eZ=Array(N),A3=Array(N),G0;for(G0=0;G0<N;++G0){var SZ=WN(D[G0]);Qo[G0]=SZ.r||0;eZ[G0]=SZ.g||0;A3[G0]=SZ.b||0}Qo=n(Qo);eZ=n(eZ);A3=n(A3);SZ.opacity=1;return function(KZ){SZ.r=Qo(KZ);SZ.g=eZ(KZ);SZ.b=A3(KZ);return SZ+""}}}
function Aa(n,D){return n=+n,D-=n,function(N){return n+D*N}}
function ku(n){return function(){return n}}
function Qe(n){return function(D){return n(D)+""}}
function gH(n,D){var N=xKt.lastIndex=BKh.lastIndex=0,Qo,eZ,A3,G0=-1,SZ=[],KZ=[];n+="";for(D+="";(Qo=xKt.exec(n))&&(eZ=BKh.exec(D));)(A3=eZ.index)>N&&(A3=D.slice(N,A3),SZ[G0]?SZ[G0]+=A3:SZ[++G0]=A3),(Qo=Qo[0])===(eZ=eZ[0])?SZ[G0]?SZ[G0]+=eZ:SZ[++G0]=eZ:(SZ[++G0]=null,KZ.push({i:G0,x:Aa(Qo,eZ)})),N=BKh.lastIndex;N<D.length&&(A3=D.slice(N),SZ[G0]?SZ[G0]+=A3:SZ[++G0]=A3);return SZ.length<2?KZ[0]?Qe(KZ[0].x):ku(D):(D=KZ.length,function(UB){for(var ix=0,wV;ix<D;++ix)SZ[(wV=KZ[ix]).i]=wV.x(UB);return SZ.join("")})}
function fD(n,D,N,Qo,eZ,A3){var G0,SZ,KZ;if(G0=Math.sqrt(n*n+D*D))n/=G0,D/=G0;if(KZ=n*N+D*Qo)N-=n*KZ,Qo-=D*KZ;if(SZ=Math.sqrt(N*N+Qo*Qo))N/=SZ,Qo/=SZ,KZ/=SZ;n*Qo<D*N&&(n=-n,D=-D,KZ=-KZ,G0=-G0);return{translateX:eZ,translateY:A3,rotate:Math.atan2(D,n)*c9Q,skewX:Math.atan(KZ)*c9Q,scaleX:G0,scaleY:SZ}}
function wo(n,D,N,Qo){function eZ(UB){return UB.length?UB.pop()+" ":""}
function A3(UB,ix,wV,$a,q$,ff){UB!==wV||ix!==$a?(q$=q$.push("translate(",null,D,null,N),ff.push({i:q$-4,x:Aa(UB,wV)},{i:q$-2,x:Aa(ix,$a)})):(wV||$a)&&q$.push("translate("+wV+D+$a+N)}
function G0(UB,ix,wV,$a){UB!==ix?(UB-ix>180?ix+=360:ix-UB>180&&(UB+=360),$a.push({i:wV.push(eZ(wV)+"rotate(",null,Qo)-2,x:Aa(UB,ix)})):ix&&wV.push(eZ(wV)+"rotate("+ix+Qo)}
function SZ(UB,ix,wV,$a){UB!==ix?$a.push({i:wV.push(eZ(wV)+"skewX(",null,Qo)-2,x:Aa(UB,ix)}):ix&&wV.push(eZ(wV)+"skewX("+ix+Qo)}
function KZ(UB,ix,wV,$a,q$,ff){UB!==wV||ix!==$a?(q$=q$.push(eZ(q$)+"scale(",null,",",null,")"),ff.push({i:q$-4,x:Aa(UB,wV)},{i:q$-2,x:Aa(ix,$a)})):wV===1&&$a===1||q$.push(eZ(q$)+"scale("+wV+","+$a+")")}
return function(UB,ix){var wV=[],$a=[];UB=n(UB);ix=n(ix);A3(UB.translateX,UB.translateY,ix.translateX,ix.translateY,wV,$a);G0(UB.rotate,ix.rotate,wV,$a);SZ(UB.skewX,ix.skewX,wV,$a);KZ(UB.scaleX,UB.scaleY,ix.scaleX,ix.scaleY,wV,$a);UB=ix=null;return function(q$){for(var ff=-1,Xd=$a.length,li;++ff<Xd;)wV[(li=$a[ff]).i]=li.x(q$);return wV.join("")}}}
function MN(n){return function(D,N){var Qo=n((D=Ql(D)).h,(N=Ql(N)).h),eZ=bM(D.s,N.s),A3=bM(D.l,N.l),G0=bM(D.opacity,N.opacity);return function(SZ){D.h=Qo(SZ);D.s=eZ(SZ);D.l=A3(SZ);D.opacity=G0(SZ);return D+""}}}
function Tl(n){return function(D,N){var Qo=n((D=nj(D)).h,(N=nj(N)).h),eZ=bM(D.c,N.c),A3=bM(D.l,N.l),G0=bM(D.opacity,N.opacity);return function(SZ){D.h=Qo(SZ);D.c=eZ(SZ);D.l=A3(SZ);D.opacity=G0(SZ);return D+""}}}
function Zr(n){return function Qo(N){function eZ(A3,G0){var SZ=n((A3=Gq(A3)).h,(G0=Gq(G0)).h),KZ=bM(A3.s,G0.s),UB=bM(A3.l,G0.l),ix=bM(A3.opacity,G0.opacity);return function(wV){A3.h=SZ(wV);A3.s=KZ(wV);A3.l=UB(Math.pow(wV,N));A3.opacity=ix(wV);return A3+""}}
N=+N;eZ.gamma=Qo;return eZ}(1)}
function R4(){return xq||(fhN(hX),xq=Ly.now()+syG)}
function hX(){xq=0}
function nY(){this._call=this._time=this._next=null}
function Py(n,D,N){var Qo=new nY;Qo.restart(n,D,N);return Qo}
function GE(){xq=(u0E=Ly.now())+syG;wU=tA=0;try{R4();++wU;for(var n=jy0,D;n;)(D=xq-n._time)>=0&&n._call.call(null,D),n=n._next;--wU}finally{wU=0;n=jy0;for(var N=Infinity;n;)if(n._call){N>n._time&&(N=n._time);var Qo=n;n=n._next}else D=n._next,n._next=null,n=Qo?Qo._next=D:jy0=D;py=Qo;G6(N);xq=0}}
function w1(){var n=Ly.now(),D=n-u0E;D>1E3&&(syG-=D,u0E=n)}
function G6(n){wU||(tA&&(tA=clearTimeout(tA)),n-xq>24?(n<Infinity&&(tA=setTimeout(GE,n-Ly.now()-syG)),eL&&(eL=clearInterval(eL))):(eL||(u0E=Ly.now(),eL=setInterval(w1,1E3)),wU=1,fhN(GE)))}
function Fa(n,D,N){var Qo=new nY;D=D==null?0:+D;Qo.restart(function(eZ){Qo.stop();n(eZ+D)},D,N);
return Qo}
function Yf(n,D,N,Qo,eZ,A3){var G0=n.__transition;if(!G0)n.__transition={};else if(N in G0)return;gZ(n,N,{name:D,index:Qo,group:eZ,on:qrd,tween:SrI,time:A3.time,delay:A3.delay,duration:A3.duration,ease:A3.ease,timer:null,state:0})}
function Bs(n,D){n=s_(n,D);if(n.state>0)throw Error("ye");return n}
function wl(n,D){n=s_(n,D);if(n.state>2)throw Error("ze");return n}
function s_(n,D){n=n.__transition;if(!n||!(n=n[D]))throw Error("Ae");return n}
function gZ(n,D,N){function Qo(KZ){var UB,ix;if(N.state!==1)return A3();for($a in G0){var wV=G0[$a];if(wV.name===N.name){if(wV.state===3)return Fa(Qo);wV.state===4?(wV.state=6,wV.timer.stop(),wV.on.call("interrupt",n,n.__data__,wV.index,wV.group),delete G0[$a]):+$a<D&&(wV.state=6,wV.timer.stop(),delete G0[$a])}}Fa(function(){N.state===3&&(N.state=4,N.timer.restart(eZ,N.delay,N.time),eZ(KZ))});
N.state=2;N.on.call("start",n,n.__data__,N.index,N.group);if(N.state===2){N.state=3;SZ=Array(ix=N.tween.length);var $a=0;for(UB=-1;$a<ix;++$a)if(wV=N.tween[$a].value.call(n,n.__data__,N.index,N.group))SZ[++UB]=wV;SZ.length=UB+1}}
function eZ(KZ){KZ=KZ<N.duration?N.ease.call(null,KZ/N.duration):(N.timer.restart(A3),N.state=5,1);for(var UB=-1,ix=SZ.length;++UB<ix;)SZ[UB].call(null,KZ);N.state===5&&(N.on.call("end",n,n.__data__,N.index,N.group),A3())}
function A3(){N.state=6;N.timer.stop();delete G0[D];for(var KZ in G0)return;delete n.__transition}
var G0=n.__transition,SZ;G0[D]=N;N.timer=Py(function(KZ){N.state=1;N.timer.restart(Qo,N.delay,N.time);N.delay<=KZ&&Qo(KZ-N.delay)},0,N.time)}
function $b(n,D){var N,Qo;return function(){var eZ=wl(this,n),A3=eZ.tween;if(A3!==N){Qo=N=A3;A3=0;for(var G0=Qo.length;A3<G0;++A3)if(Qo[A3].name===D){Qo=Qo.slice();Qo.splice(A3,1);break}}eZ.tween=Qo}}
function uq(n,D,N){var Qo,eZ;if(typeof N!=="function")throw Error();return function(){var A3=wl(this,n),G0=A3.tween;if(G0!==Qo){eZ=(Qo=G0).slice();G0={name:D,value:N};for(var SZ=0,KZ=eZ.length;SZ<KZ;++SZ)if(eZ[SZ].name===D){eZ[SZ]=G0;break}SZ===KZ&&eZ.push(G0)}A3.tween=eZ}}
function GI(n,D,N){var Qo=n._id;n.each(function(){var eZ=wl(this,Qo);(eZ.value||(eZ.value={}))[D]=N.apply(this,arguments)});
return function(eZ){return s_(eZ,Qo).value[D]}}
function GyZ(n,D){var N;return(typeof D==="number"?Aa:D instanceof wY?CpQ:(N=wY(D))?(D=N,CpQ):gH)(n,D)}
function zj0(n){return function(){this.removeAttribute(n)}}
function J9h(n){return function(){this.removeAttributeNS(n.space,n.local)}}
function N4n(n,D,N){var Qo,eZ;return function(){var A3=this.getAttribute(n);return A3===N?null:A3===Qo?eZ:eZ=D(Qo=A3,N)}}
function xDs(n,D,N){var Qo,eZ;return function(){var A3=this.getAttributeNS(n.space,n.local);return A3===N?null:A3===Qo?eZ:eZ=D(Qo=A3,N)}}
function B4q(n,D,N){var Qo,eZ,A3;return function(){var G0=N(this);if(G0==null)return void this.removeAttribute(n);var SZ=this.getAttribute(n);return SZ===G0?null:SZ===Qo&&G0===eZ?A3:A3=D(Qo=SZ,eZ=G0)}}
function g25(n,D,N){var Qo,eZ,A3;return function(){var G0=N(this);if(G0==null)return void this.removeAttributeNS(n.space,n.local);var SZ=this.getAttributeNS(n.space,n.local);return SZ===G0?null:SZ===Qo&&G0===eZ?A3:A3=D(Qo=SZ,eZ=G0)}}
function su8(n,D){function N(){var Qo=this,eZ=D.apply(Qo,arguments);return eZ&&function(A3){Qo.setAttributeNS(n.space,n.local,eZ(A3))}}
N._value=D;return N}
function uOf(n,D){function N(){var Qo=this,eZ=D.apply(Qo,arguments);return eZ&&function(A3){Qo.setAttribute(n,eZ(A3))}}
N._value=D;return N}
function juI(n,D){return function(){Bs(this,n).delay=+D.apply(this,arguments)}}
function WOm(n,D){return D=+D,function(){Bs(this,n).delay=D}}
function o25(n,D){return function(){wl(this,n).duration=+D.apply(this,arguments)}}
function Xkh(n,D){return D=+D,function(){wl(this,n).duration=D}}
function ahf(n,D){if(typeof D!=="function")throw Error();return function(){wl(this,n).ease=D}}
function r9I(n){return(n+"").trim().split(/^|\s+/).every(function(D){var N=D.indexOf(".");N>=0&&(D=D.slice(0,N));return!D||D==="start"})}
function $D0(n,D,N){var Qo,eZ,A3=r9I(D)?Bs:wl;return function(){var G0=A3(this,n),SZ=G0.on;if(SZ!==Qo)(eZ=(Qo=SZ).copy()).on(D,N);G0.on=eZ}}
function IhI(n){return function(){var D=this.parentNode,N;for(N in this.__transition)if(+N!==n)return;D&&D.removeChild(this)}}
function H18(n,D){var N,Qo,eZ;return function(){var A3=kQ(this,n),G0=(this.style.removeProperty(n),kQ(this,n));return A3===G0?null:A3===N&&G0===Qo?eZ:eZ=D(N=A3,Qo=G0)}}
function mDn(n){return function(){this.style.removeProperty(n)}}
function UDf(n,D,N){var Qo,eZ;return function(){var A3=kQ(this,n);return A3===N?null:A3===Qo?eZ:eZ=D(Qo=A3,N)}}
function vHh(n,D,N){var Qo,eZ,A3;return function(){var G0=kQ(this,n),SZ=N(this);SZ==null&&(SZ=(this.style.removeProperty(n),kQ(this,n)));return G0===SZ?null:G0===Qo&&SZ===eZ?A3:A3=D(Qo=G0,eZ=SZ)}}
function QsI(n,D,N){function Qo(){var eZ=this,A3=D.apply(eZ,arguments);return A3&&function(G0){eZ.style.setProperty(n,A3(G0),N)}}
Qo._value=D;return Qo}
function V2h(n){return function(){this.textContent=n}}
function EHn(n){return function(){var D=n(this);this.textContent=D==null?"":D}}
function CJ(n,D,N,Qo){this._groups=n;this._parents=D;this._name=N;this._id=Qo}
function gXZ(n){return{type:n}}
function sK3(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function WtG(){}
function MvA(n,D){var N=new WtG;if(n instanceof WtG)n.each(function(G0,SZ){N.set(SZ,G0)});
else if(Array.isArray(n)){var Qo=-1,eZ=n.length,A3;if(D==null)for(;++Qo<eZ;)N.set(Qo,n[Qo]);else for(;++Qo<eZ;)N.set(D(A3=n[Qo],Qo,n),A3)}else if(n)for(Qo in n)N.set(Qo,n[Qo]);return N}
function oh0(){}
function O1S(n){return function(D){for(var N={},Qo=0;Qo<n.length;Qo++)N[n[Qo]]=D[Qo]||"";return N}}
function bPI(n,D){var N=O1S(n);return function(Qo,eZ){return D(N(Qo),eZ,n)}}
function Fsn(n){var D=Object.create(null),N=[];n.forEach(function(Qo){for(var eZ in Qo)eZ in D||N.push(D[eZ]=eZ)});
return N}
function DDN(n){function D(G0,SZ){function KZ(){if(ff)return u_E;if(Xd)return Xd=!1,Rjp;var tq,UX=wV,R$;if(G0.charCodeAt(UX)===34){for(;wV++<ix&&G0.charCodeAt(wV)!==34||G0.charCodeAt(++wV)===34;);(tq=wV)>=ix?ff=!0:(R$=G0.charCodeAt(wV++))===10?Xd=!0:R$===13&&(Xd=!0,G0.charCodeAt(wV)===10&&++wV);return G0.slice(UX+1,tq-1).replace(/""/g,'"')}for(;wV<ix;){if((R$=G0.charCodeAt(tq=wV++))===10)Xd=!0;else if(R$===13)Xd=!0,G0.charCodeAt(wV)===10&&++wV;else if(R$!==A3)continue;return G0.slice(UX,tq)}return ff=
!0,G0.slice(UX,ix)}
var UB=[],ix=G0.length,wV=0,$a=0,q$,ff=ix<=0,Xd=!1;G0.charCodeAt(ix-1)===10&&--ix;for(G0.charCodeAt(ix-1)===13&&--ix;(q$=KZ())!==u_E;){for(var li=[];q$!==Rjp&&q$!==u_E;)li.push(q$),q$=KZ();SZ&&(li=SZ(li,$a++))==null||UB.push(li)}return UB}
function N(G0){return G0.map(Qo).join(n)}
function Qo(G0){return G0==null?"":eZ.test(G0)?'"'+G0.replace(/"/g,'""')+'"':G0}
var eZ=new RegExp('["'+n+"\n\r]"),A3=n.charCodeAt(0);return{parse:function(G0,SZ){var KZ,UB;G0=D(G0,function(ix,wV){if(KZ)return KZ(ix,wV-1);UB=ix;KZ=SZ?bPI(ix,SZ):O1S(ix)});
G0.columns=UB||[];return G0},
parseRows:D,format:function(G0,SZ){SZ==null&&(SZ=Fsn(G0));return[SZ.map(Qo).join(n)].concat(G0.map(function(KZ){return SZ.map(function(UB){return Qo(KZ[UB])}).join(n)})).join("\n")},
formatRows:function(G0){return G0.map(N).join("\n")}}}
function Ksh(n){if(!n.ok)throw Error("Be`"+n.status+"`"+n.statusText);return n.text()}
function n2R(n){return function(D,N,Qo){arguments.length===2&&typeof N==="function"&&(Qo=N,N=void 0);return fetch(D,N).then(Ksh).then(function(eZ){return n(eZ,Qo)})}}
function lhV(n,D,N,Qo){if(isNaN(D)||isNaN(N))return n;var eZ,A3=n._root;Qo={data:Qo};var G0=n._x0,SZ=n._y0,KZ=n._x1,UB=n._y1,ix,wV,$a,q$,ff;if(!A3)return n._root=Qo,n;for(;A3.length;)if(($a=D>=(ix=(G0+KZ)/2))?G0=ix:KZ=ix,(q$=N>=(wV=(SZ+UB)/2))?SZ=wV:UB=wV,eZ=A3,!(A3=A3[ff=q$<<1|$a]))return eZ[ff]=Qo,n;var Xd=+n._x.call(null,A3.data);var li=+n._y.call(null,A3.data);if(D===Xd&&N===li)return Qo.next=A3,eZ?eZ[ff]=Qo:n._root=Qo,n;do eZ=eZ?eZ[ff]=Array(4):n._root=Array(4),($a=D>=(ix=(G0+KZ)/2))?G0=ix:KZ=
ix,(q$=N>=(wV=(SZ+UB)/2))?SZ=wV:UB=wV;while((ff=q$<<1|$a)===($a=(li>=wV)<<1|Xd>=ix));return eZ[$a]=A3,eZ[ff]=Qo,n}
function vn(n,D,N,Qo,eZ){this.node=n;this.x0=D;this.y0=N;this.x1=Qo;this.y1=eZ}
function iPI(n){return n[0]}
function Lsn(n){return n[1]}
function jKt(n,D,N,Qo,eZ,A3){this._x=n;this._y=D;this._x0=N;this._y0=Qo;this._x1=eZ;this._y1=A3;this._root=void 0}
function qrR(n){for(var D={data:n.data},N=D;n=n.next;)N=N.next={data:n.data};return D}
function XxE(n,D){if((D=(n=D?n.toExponential(D-1):n.toExponential()).indexOf("e"))<0)return null;var N=n.slice(0,D);return[N.length>1?N[0]+N.slice(2):N,+n.slice(D+1)]}
function t2n(n){return n=XxE(Math.abs(n)),n?n[1]:NaN}
function pIf(n,D){return function(N,Qo){for(var eZ=N.length,A3=[],G0=0,SZ=n[0],KZ=0;eZ>0&&SZ>0;){KZ+SZ+1>Qo&&(SZ=Math.max(1,Qo-KZ));A3.push(N.substring(eZ-=SZ,eZ+SZ));if((KZ+=SZ+1)>Qo)break;SZ=n[G0=(G0+1)%n.length]}return A3.reverse().join(D)}}
function ezd(n){return function(D){return D.replace(/[0-9]/g,function(N){return n[+N]})}}
function Wrr(n){return new oXr(n)}
function oXr(n){if(!(D=ZP5.exec(n)))throw Error("Ce`"+n);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 SrA(n,D){D=XxE(n,D);if(!D)return n+"";n=D[0];D=D[1];return D<0?"0."+Array(-D).join("0")+n:n.length>D+1?n.slice(0,D+1)+"."+n.slice(D+1):n+Array(D-n.length+2).join("0")}
function zjX(n){return n}
function PLY(n){function D(SZ){function KZ(mJ){var fp=R$,a8=bO,cq,pf;if(UX==="c")a8=vU(mJ)+a8,mJ="";else{mJ=+mJ;var J7=mJ<0;mJ=vU(Math.abs(mJ),li);if(tq){var IS=mJ.length,vE=1,pW=-1;a:for(;vE<IS;++vE)switch(mJ[vE]){case ".":pW=cq=vE;break;case "0":pW===0&&(pW=vE);cq=vE;break;default:if(!+mJ[vE])break a;pW>0&&(pW=0)}mJ=pW>0?mJ.slice(0,pW)+mJ.slice(cq+1):mJ}J7&&+mJ===0&&(J7=!1);fp=(J7?wV==="("?wV:"-":wV==="-"||wV==="("?"":wV)+fp;a8=(UX==="s"?J9q[8+N4a/3]:"")+a8+(J7&&wV==="("?")":"");if(Gc)for(J7=-1,
cq=mJ.length;++J7<cq;)if(pf=mJ.charCodeAt(J7),48>pf||pf>57){a8=(pf===46?eZ+mJ.slice(J7+1):mJ.slice(J7))+a8;mJ=mJ.slice(0,J7);break}}Xd&&!q$&&(mJ=N(mJ,Infinity));pf=fp.length+mJ.length+a8.length;J7=pf<ff?Array(ff-pf+1).join(UB):"";Xd&&q$&&(mJ=N(J7+mJ,J7.length?ff-a8.length:Infinity),J7="");switch(ix){case "<":mJ=fp+mJ+a8+J7;break;case "=":mJ=fp+J7+mJ+a8;break;case "^":mJ=J7.slice(0,pf=J7.length>>1)+fp+mJ+a8+J7.slice(pf);break;default:mJ=J7+fp+mJ+a8}return A3(mJ)}
SZ=Wrr(SZ);var UB=SZ.fill,ix=SZ.align,wV=SZ.sign,$a=SZ.symbol,q$=SZ.zero,ff=SZ.width,Xd=SZ.comma,li=SZ.precision,tq=SZ.trim,UX=SZ.type;UX==="n"?(Xd=!0,UX="g"):xDN[UX]||(li==null&&(li=12),tq=!0,UX="g");if(q$||UB==="0"&&ix==="=")q$=!0,UB="0",ix="=";var R$=$a==="$"?Qo[0]:$a==="#"&&/[boxX]/.test(UX)?"0"+UX.toLowerCase():"",bO=$a==="$"?Qo[1]:/[%p]/.test(UX)?G0:"",vU=xDN[UX],Gc=/[defgprs%]/.test(UX);li=li==null?6:/[gprs]/.test(UX)?Math.max(1,Math.min(21,li)):Math.max(0,Math.min(20,li));KZ.toString=function(){return SZ+
""};
return KZ}
var N=n.grouping&&n.thousands?pIf(n.grouping,n.thousands):zjX,Qo=n.currency,eZ=n.decimal,A3=n.numerals?ezd(n.numerals):zjX,G0=n.percent||"%";return{format:D,formatPrefix:function(SZ,KZ){var UB=D((SZ=Wrr(SZ),SZ.type="f",SZ));SZ=Math.max(-8,Math.min(8,Math.floor(t2n(KZ)/3)))*3;var ix=Math.pow(10,-SZ),wV=J9q[8+SZ/3];return function($a){return UB(ix*$a)+wV}}}}
function jm(){this.reset()}
function B4p(n,D,N){var Qo=n.s=D+N,eZ=Qo-D;n.t=D-(Qo-eZ)+(N-eZ)}
function aWG(n){return n>1?HY:n<-1?-HY:Math.asin(n)}
function dIh(){}
function g28(n){var D=n[0];n=n[1];var N=m6(n);return[N*m6(D),N*S0(D),S0(n)]}
function suN(n,D){return[n[1]*D[2]-n[2]*D[1],n[2]*D[0]-n[0]*D[2],n[0]*D[1]-n[1]*D[0]]}
function uOa(n){var D=r8E(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=D;n[1]/=D;n[2]/=D}
function hz5(){var n=[],D;return{point:function(N,Qo){D.push([N,Qo])},
lineStart:function(){n.push(D=[])},
lineEnd:dIh,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},
result:function(){var N=n;n=[];D=null;return N}}}
function $R3(n,D,N,Qo){this.x=n;this.z=D;this.o=N;this.e=Qo;this.v=!1;this.n=this.p=null}
function wI0(n,D,N,Qo,eZ){var A3=[],G0=[];n.forEach(function(wV){if(!(($a=wV.length-1)<=0)){var $a,q$=wV[0],ff=wV[$a],Xd=q$;if(Ml(Xd[0]-ff[0])<1E-6&&Ml(Xd[1]-ff[1])<1E-6){eZ.lineStart();for(SZ=0;SZ<$a;++SZ)eZ.point((q$=wV[SZ])[0],q$[1]);eZ.lineEnd()}else A3.push($a=new $R3(q$,wV,null,!0)),G0.push($a.o=new $R3(q$,null,$a,!1)),A3.push($a=new $R3(ff,wV,null,!1)),G0.push($a.o=new $R3(ff,null,$a,!0))}});
if(A3.length){G0.sort(D);juA(A3);juA(G0);var SZ=0;for(n=G0.length;SZ<n;++SZ)G0[SZ].e=N=!N;N=A3[0];for(var KZ;;){for(var UB=N,ix=!0;UB.v;)if((UB=UB.n)===N)return;D=UB.z;eZ.lineStart();do{UB.v=UB.o.v=!0;if(UB.e){if(ix)for(SZ=0,n=D.length;SZ<n;++SZ)eZ.point((KZ=D[SZ])[0],KZ[1]);else Qo(UB.x,UB.n.x,1,eZ);UB=UB.n}else{if(ix)for(D=UB.p.z,SZ=D.length-1;SZ>=0;--SZ)eZ.point((KZ=D[SZ])[0],KZ[1]);else Qo(UB.x,UB.p.x,-1,eZ);UB=UB.p}UB=UB.o;D=UB.z;ix=!ix}while(!UB.v);eZ.lineEnd()}}}
function juA(n){if(D=n.length){for(var D,N=0,Qo=n[0],eZ;++N<D;)Qo.n=eZ=n[N],eZ.p=Qo,Qo=eZ;Qo.n=eZ=n[0];eZ.p=Qo}}
function A$$(n){return n.length>1}
function kVn(n,D){return((n=n.x)[0]<0?n[1]-HY-1E-6:HY-n[1])-((D=D.x)[0]<0?D[1]-HY-1E-6:HY-D[1])}
function Xuo(){}
function WOQ(n){return function(D,N){var Qo=m6(D),eZ=m6(N);Qo=n(Qo*eZ);return[Qo*eZ*S0(D),Qo*S0(N)]}}
function Zk(n){return function(D,N){var Qo=r8E(D*D+N*N),eZ=n(Qo),A3=S0(eZ);eZ=m6(eZ);return[o28(D*A3,Qo*eZ),aWG(Qo&&N*A3/Qo)]}}
function Tqs(n){var D=0,N=n.children,Qo=N&&N.length;if(Qo)for(;--Qo>=0;)D+=N[Qo].value;else D=1;n.value=D}
function Xkq(n,D){var N=new PT(n);n=+n.value&&(N.value=n.value);var Qo,eZ=[N],A3,G0,SZ,KZ;for(D==null&&(D=Ysm);Qo=eZ.pop();)if(n&&(Qo.value=+Qo.data.value),(G0=D(Qo.data))&&(KZ=G0.length))for(Qo.children=Array(KZ),SZ=KZ-1;SZ>=0;--SZ)eZ.push(A3=Qo.children[SZ]=new PT(G0[SZ])),A3.parent=Qo,A3.depth=Qo.depth+1;return N.eachBefore(y$5)}
function Ysm(n){return n.children}
function c$j(n){n.data=n.data.data}
function y$5(n){var D=0;do n.height=D;while((n=n.parent)&&n.height<++D)}
function PT(n){this.data=n;this.depth=this.height=0;this.parent=null}
function cj(n,D,N,Qo){function eZ(A3){return n(A3=new Date(+A3)),A3}
eZ.floor=eZ;eZ.ceil=function(A3){return n(A3=new Date(A3-1)),D(A3,1),n(A3),A3};
eZ.round=function(A3){var G0=eZ(A3),SZ=eZ.ceil(A3);return A3-G0<SZ-A3?G0:SZ};
eZ.offset=function(A3,G0){return D(A3=new Date(+A3),G0==null?1:Math.floor(G0)),A3};
eZ.range=function(A3,G0,SZ){var KZ=[],UB;A3=eZ.ceil(A3);SZ=SZ==null?1:Math.floor(SZ);if(!(A3<G0&&SZ>0))return KZ;do KZ.push(UB=new Date(+A3)),D(A3,SZ),n(A3);while(UB<A3&&A3<G0);return KZ};
eZ.filter=function(A3){return cj(function(G0){if(G0>=G0)for(;n(G0),!A3(G0);)G0.setTime(G0-1)},function(G0,SZ){if(G0>=G0)if(SZ<0)for(;++SZ<=0;)for(;D(G0,-1),!A3(G0););
else for(;--SZ>=0;)for(;D(G0,1),!A3(G0););})};
N&&(eZ.count=function(A3,G0){aHZ.setTime(+A3);rjo.setTime(+G0);n(aHZ);n(rjo);return Math.floor(N(aHZ,rjo))},eZ.every=function(A3){A3=Math.floor(A3);
return isFinite(A3)&&A3>0?A3>1?eZ.filter(Qo?function(G0){return Qo(G0)%A3===0}:function(G0){return eZ.count(0,G0)%A3===0}):eZ:null});
return eZ}
function Bb(n){return cj(function(D){D.setDate(D.getDate()-(D.getDay()+7-n)%7);D.setHours(0,0,0,0)},function(D,N){D.setDate(D.getDate()+N*7)},function(D,N){return(N-D-(N.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/6048E5})}
function gk(n){return cj(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-n)%7);D.setUTCHours(0,0,0,0)},function(D,N){D.setUTCDate(D.getUTCDate()+N*7)},function(D,N){return(N-D)/6048E5})}
function fZh(n){if(0<=n.y&&n.y<100){var D=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);D.setFullYear(n.y);return D}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}
function IWt(n){if(0<=n.y&&n.y<100){var D=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));D.setUTCFullYear(n.y);return D}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}
function dT(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}
function GV$(n){function D(a8,cq){return function(pf){var J7=[],IS=-1,vE=0,pW=a8.length,Yd,CV;for(pf instanceof Date||(pf=new Date(+pf));++IS<pW;)if(a8.charCodeAt(IS)===37){J7.push(a8.slice(vE,IS));(vE=aha[Yd=a8.charAt(++IS)])!=null?Yd=a8.charAt(++IS):vE=Yd==="e"?" ":"0";if(CV=cq[Yd])Yd=CV(pf,vE);J7.push(Yd);vE=IS+1}J7.push(a8.slice(vE,IS));return J7.join("")}}
function N(a8,cq){return function(pf){var J7=dT(1900);if(Qo(J7,a8,pf,0)!=pf.length)return null;if("Q"in J7)return new Date(J7.Q);"p"in J7&&(J7.H=J7.H%12+J7.p*12);if("V"in J7){if(J7.V<1||J7.V>53)return null;"w"in J7||(J7.w=1);if("Z"in J7){pf=IWt(dT(J7.y));var IS=pf.getUTCDay();pf=IS>4||IS===0?$KQ.ceil(pf):$KQ(pf);pf=r9A.offset(pf,(J7.V-1)*7);J7.y=pf.getUTCFullYear();J7.m=pf.getUTCMonth();J7.d=pf.getUTCDate()+(J7.w+6)%7}else pf=cq(dT(J7.y)),IS=pf.getDay(),pf=IS>4||IS===0?IH3.ceil(pf):IH3(pf),pf=$DX.offset(pf,
(J7.V-1)*7),J7.y=pf.getFullYear(),J7.m=pf.getMonth(),J7.d=pf.getDate()+(J7.w+6)%7}else if("W"in J7||"U"in J7)"w"in J7||(J7.w="u"in J7?J7.u%7:"W"in J7?1:0),IS="Z"in J7?IWt(dT(J7.y)).getUTCDay():cq(dT(J7.y)).getDay(),J7.m=0,J7.d="W"in J7?(J7.w+6)%7+J7.W*7-(IS+5)%7:J7.w+J7.U*7-(IS+6)%7;return"Z"in J7?(J7.H+=J7.Z/100|0,J7.M+=J7.Z%100,IWt(J7)):cq(J7)}}
function Qo(a8,cq,pf,J7){for(var IS=0,vE=cq.length,pW=pf.length,Yd;IS<vE;){if(J7>=pW)return-1;Yd=cq.charCodeAt(IS++);if(Yd===37){if(Yd=cq.charAt(IS++),Yd=fp[Yd in aha?cq.charAt(IS++):Yd],!Yd||(J7=Yd(a8,pf,J7))<0)return-1}else if(Yd!=pf.charCodeAt(J7++))return-1}return J7}
var eZ=n.dateTime,A3=n.date,G0=n.time,SZ=n.periods,KZ=n.days,UB=n.shortDays,ix=n.months,wV=n.shortMonths,$a=hA(SZ),q$=wT(SZ),ff=hA(KZ),Xd=wT(KZ),li=hA(UB),tq=wT(UB),UX=hA(ix),R$=wT(ix),bO=hA(wV),vU=wT(wV),Gc={a:function(a8){return UB[a8.getDay()]},
A:function(a8){return KZ[a8.getDay()]},
b:function(a8){return wV[a8.getMonth()]},
B:function(a8){return ix[a8.getMonth()]},
c:null,d:IhA,e:IhA,f:CL$,H:M2I,I:OPf,j:DI0,L:H1N,m:Rzd,M:nHh,p:function(a8){return SZ[+(a8.getHours()>=12)]},
Q:mDa,s:UDa,S:lZ7,u:qsq,U:Sss,V:zz7,w:J$q,W:Nq8,x:null,X:null,y:xIs,Y:BqY,Z:gHj,"%":vHq},mJ={a:function(a8){return UB[a8.getUTCDay()]},
A:function(a8){return KZ[a8.getUTCDay()]},
b:function(a8){return wV[a8.getUTCMonth()]},
B:function(a8){return ix[a8.getUTCMonth()]},
c:null,d:QsA,e:QsA,f:ss8,H:uWY,I:jss,j:WsI,L:V2x,m:oHs,M:XIs,p:function(a8){return SZ[+(a8.getUTCHours()>=12)]},
Q:mDa,s:UDa,S:aZh,u:r$h,U:$Im,V:IZh,w:HPh,W:mIh,x:null,X:null,y:UIs,Y:vOf,Z:QVn,"%":vHq},fp={a:function(a8,cq,pf){return(cq=li.exec(cq.slice(pf)))?(a8.w=tq[cq[0].toLowerCase()],pf+cq[0].length):-1},
A:function(a8,cq,pf){return(cq=ff.exec(cq.slice(pf)))?(a8.w=Xd[cq[0].toLowerCase()],pf+cq[0].length):-1},
b:function(a8,cq,pf){return(cq=bO.exec(cq.slice(pf)))?(a8.m=vU[cq[0].toLowerCase()],pf+cq[0].length):-1},
B:function(a8,cq,pf){return(cq=UX.exec(cq.slice(pf)))?(a8.m=R$[cq[0].toLowerCase()],pf+cq[0].length):-1},
c:function(a8,cq,pf){return Qo(a8,eZ,cq,pf)},
d:EHa,e:EHa,f:Vs8,H:bPA,I:bPA,j:EOn,L:b5j,m:Fyn,M:KyY,p:function(a8,cq,pf){return(cq=$a.exec(cq.slice(pf)))?(a8.p=q$[cq[0].toLowerCase()],pf+cq[0].length):-1},
Q:i5n,s:Ly7,S:tsm,u:pyj,U:eWd,V:Z58,w:PFn,W:dgd,x:function(a8,cq,pf){return Qo(a8,A3,cq,pf)},
X:function(a8,cq,pf){return Qo(a8,G0,cq,pf)},
y:hWh,Y:wyn,Z:Av5,"%":k$h};Gc.x=D(A3,Gc);Gc.X=D(G0,Gc);Gc.c=D(eZ,Gc);mJ.x=D(A3,mJ);mJ.X=D(G0,mJ);mJ.c=D(eZ,mJ);return{format:function(a8){var cq=D(a8,Gc);cq.toString=function(){return a8};
return cq},
parse:function(a8){var cq=N(a8,fZh);cq.toString=function(){return a8};
return cq},
utcFormat:function(a8){var cq=D(a8,mJ);cq.toString=function(){return a8};
return cq},
utcParse:function(a8){var cq=N(a8,IWt);cq.toString=function(){return a8};
return cq}}}
function cU(n,D,N){var Qo=n<0?"-":"";n=(Qo?-n:n)+"";var eZ=n.length;return Qo+(eZ<N?Array(N-eZ+1).join(D)+n:n)}
function T_8(n){return n.replace(Ym8,"\\$&")}
function hA(n){return new RegExp("^(?:"+n.map(T_8).join("|")+")","i")}
function wT(n){for(var D={},N=-1,Qo=n.length;++N<Qo;)D[n[N].toLowerCase()]=N;return D}
function PFn(n,D,N){return(D=nt.exec(D.slice(N,N+1)))?(n.w=+D[0],N+D[0].length):-1}
function pyj(n,D,N){return(D=nt.exec(D.slice(N,N+1)))?(n.u=+D[0],N+D[0].length):-1}
function eWd(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.U=+D[0],N+D[0].length):-1}
function Z58(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.V=+D[0],N+D[0].length):-1}
function dgd(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.W=+D[0],N+D[0].length):-1}
function wyn(n,D,N){return(D=nt.exec(D.slice(N,N+4)))?(n.y=+D[0],N+D[0].length):-1}
function hWh(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.y=+D[0]+(+D[0]>68?1900:2E3),N+D[0].length):-1}
function Av5(n,D,N){return(D=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(N,N+6)))?(n.Z=D[1]?0:-(D[2]+(D[3]||"00")),N+D[0].length):-1}
function Fyn(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.m=D[0]-1,N+D[0].length):-1}
function EHa(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.d=+D[0],N+D[0].length):-1}
function EOn(n,D,N){return(D=nt.exec(D.slice(N,N+3)))?(n.m=0,n.d=+D[0],N+D[0].length):-1}
function bPA(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.H=+D[0],N+D[0].length):-1}
function KyY(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.M=+D[0],N+D[0].length):-1}
function tsm(n,D,N){return(D=nt.exec(D.slice(N,N+2)))?(n.S=+D[0],N+D[0].length):-1}
function b5j(n,D,N){return(D=nt.exec(D.slice(N,N+3)))?(n.L=+D[0],N+D[0].length):-1}
function Vs8(n,D,N){return(D=nt.exec(D.slice(N,N+6)))?(n.L=Math.floor(D[0]/1E3),N+D[0].length):-1}
function k$h(n,D,N){return(n=yvI.exec(D.slice(N,N+1)))?N+n[0].length:-1}
function i5n(n,D,N){return(D=nt.exec(D.slice(N)))?(n.Q=+D[0],N+D[0].length):-1}
function Ly7(n,D,N){return(D=nt.exec(D.slice(N)))?(n.Q=+D[0]*1E3,N+D[0].length):-1}
function IhA(n,D){return cU(n.getDate(),D,2)}
function M2I(n,D){return cU(n.getHours(),D,2)}
function OPf(n,D){return cU(n.getHours()%12||12,D,2)}
function DI0(n,D){return cU(1+$DX.count(Au(n),n),D,3)}
function H1N(n,D){return cU(n.getMilliseconds(),D,3)}
function CL$(n,D){return H1N(n,D)+"000"}
function Rzd(n,D){return cU(n.getMonth()+1,D,2)}
function nHh(n,D){return cU(n.getMinutes(),D,2)}
function lZ7(n,D){return cU(n.getSeconds(),D,2)}
function qsq(n){n=n.getDay();return n===0?7:n}
function Sss(n,D){return cU(cvn.count(Au(n),n),D,2)}
function zz7(n,D){var N=n.getDay();n=N>=4||N===0?HAE(n):HAE.ceil(n);return cU(HAE.count(Au(n),n)+(Au(n).getDay()===4),D,2)}
function J$q(n){return n.getDay()}
function Nq8(n,D){return cU(IH3.count(Au(n),n),D,2)}
function xIs(n,D){return cU(n.getFullYear()%100,D,2)}
function BqY(n,D){return cU(n.getFullYear()%1E4,D,4)}
function gHj(n){n=n.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+cU(n/60|0,"0",2)+cU(n%60,"0",2)}
function QsA(n,D){return cU(n.getUTCDate(),D,2)}
function uWY(n,D){return cU(n.getUTCHours(),D,2)}
function jss(n,D){return cU(n.getUTCHours()%12||12,D,2)}
function WsI(n,D){return cU(1+r9A.count(kM(n),n),D,3)}
function V2x(n,D){return cU(n.getUTCMilliseconds(),D,3)}
function ss8(n,D){return V2x(n,D)+"000"}
function oHs(n,D){return cU(n.getUTCMonth()+1,D,2)}
function XIs(n,D){return cU(n.getUTCMinutes(),D,2)}
function aZh(n,D){return cU(n.getUTCSeconds(),D,2)}
function r$h(n){n=n.getUTCDay();return n===0?7:n}
function $Im(n,D){return cU(fr8.count(kM(n),n),D,2)}
function IZh(n,D){var N=n.getUTCDay();n=N>=4||N===0?mKT(n):mKT.ceil(n);return cU(mKT.count(kM(n),n)+(kM(n).getUTCDay()===4),D,2)}
function HPh(n){return n.getUTCDay()}
function mIh(n,D){return cU($KQ.count(kM(n),n),D,2)}
function UIs(n,D){return cU(n.getUTCFullYear()%100,D,2)}
function vOf(n,D){return cU(n.getUTCFullYear()%1E4,D,4)}
function QVn(){return"+0000"}
function vHq(){return"%"}
function mDa(n){return+n}
function UDa(n){return Math.floor(+n/1E3)}
function dI(n){for(var D=n.length/6|0,N=Array(D),Qo=0;Qo<D;)N[Qo]="#"+n.slice(Qo*6,++Qo*6);return N}
function HU(n){return G$5(n[n.length-1])}
function Hp3(n){var D=n.length;return function(N){return n[Math.max(0,Math.min(D-1,Math.floor(N*D)))]}}
function Fsa(n){this._context=n}
function Ksq(n){this._curve=n}
function iPA(n,D,N){var Qo=n._x1-n._x0;D-=n._x1;var eZ=(n._y1-n._y0)/(Qo||D<0&&-0);n=(N-n._y1)/(D||Qo<0&&-0);return((eZ<0?-1:1)+(n<0?-1:1))*Math.min(Math.abs(eZ),Math.abs(n),.5*Math.abs((eZ*D+n*Qo)/(Qo+D)))||0}
function Lsa(n,D){var N=n._x1-n._x0;return N?(3*(n._y1-n._y0)/N-D)/2:D}
function UKb(n,D,N){var Qo=n._x0,eZ=n._x1,A3=n._y1,G0=(eZ-Qo)/3;n._context.bezierCurveTo(Qo+G0,n._y0+G0*D,eZ-G0,A3-G0*N,eZ,A3)}
function v2h(n){this._context=n}
function t2a(n){this._context=n}
function AA(n,D,N){this.k=n;this.x=D;this.y=N}
(function(n){n.length===1&&(n=Q(n));return{left:function(D,N,Qo,eZ){Qo==null&&(Qo=0);eZ==null&&(eZ=D.length);for(;Qo<eZ;){var A3=Qo+eZ>>>1;n(D[A3],N)<0?Qo=A3+1:eZ=A3}return Qo},
right:function(D,N,Qo,eZ){Qo==null&&(Qo=0);eZ==null&&(eZ=D.length);for(;Qo<eZ;){var A3=Qo+eZ>>>1;n(D[A3],N)>0?eZ=A3:Qo=A3+1}return Qo}}})(v);
var YrY={value:function(){}};
E.prototype=V.prototype={constructor:E,on:function(n,D){var N=this._,Qo=b(n+"",N),eZ,A3=-1,G0=Qo.length;if(arguments.length<2)for(;++A3<G0;){var SZ;if(SZ=eZ=(n=Qo[A3]).type){a:{SZ=N[eZ];for(var KZ=0,UB=SZ.length;KZ<UB;++KZ)if((eZ=SZ[KZ]).name===n.name){eZ=eZ.value;break a}eZ=void 0}SZ=eZ}if(SZ)return eZ}else{if(D!=null&&typeof D!=="function")throw Error("De`"+D);for(;++A3<G0;)if(eZ=(n=Qo[A3]).type)N[eZ]=F(N[eZ],n.name,D);else if(D==null)for(eZ in N)N[eZ]=F(N[eZ],n.name,null);return this}},
copy:function(){var n={},D=this._,N;for(N in D)n[N]=D[N].slice();return new E(n)},
call:function(n,D){if((eZ=arguments.length-2)>0)for(var N=Array(eZ),Qo=0,eZ,A3;Qo<eZ;++Qo)N[Qo]=arguments[Qo+2];if(!this._.hasOwnProperty(n))throw Error("xe`"+n);A3=this._[n];Qo=0;for(eZ=A3.length;Qo<eZ;++Qo)A3[Qo].value.apply(D,N)},
apply:function(n,D,N){if(!this._.hasOwnProperty(n))throw Error("xe`"+n);n=this._[n];for(var Qo=0,eZ=n.length;Qo<eZ;++Qo)n[Qo].value.apply(D,N)}};
var II={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/"},pIa=function(n){return function(){return this.matches(n)}};
if(typeof document!=="undefined"){var k1=document.documentElement;if(!k1.matches){var CFs=k1.webkitMatchesSelector||k1.msMatchesSelector||k1.mozMatchesSelector||k1.oMatchesSelector;pIa=function(n){return function(){return CFs.call(this,n)}}}}var ezR=pIa;
T.prototype={constructor:T,appendChild:function(n){return this._parent.insertBefore(n,this._next)},
insertBefore:function(n,D){return this._parent.insertBefore(n,D)},
querySelector:function(n){return this._parent.querySelector(n)},
querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};
var hjZ={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(hjZ={mouseenter:"mouseover",mouseleave:"mouseout"}));var y9j=[null];hS.prototype=bh.prototype={constructor:hS,select:function(n){typeof n!=="function"&&(n=A(n));for(var D=this._groups,N=D.length,Qo=Array(N),eZ=0;eZ<N;++eZ)for(var A3=D[eZ],G0=A3.length,SZ=Qo[eZ]=Array(G0),KZ,UB,ix=0;ix<G0;++ix)(KZ=A3[ix])&&(UB=n.call(KZ,KZ.__data__,ix,A3))&&("__data__"in KZ&&(UB.__data__=KZ.__data__),SZ[ix]=UB);return new hS(Qo,
this._parents)},
filter:function(n){typeof n!=="function"&&(n=ezR(n));for(var D=this._groups,N=D.length,Qo=Array(N),eZ=0;eZ<N;++eZ)for(var A3=D[eZ],G0=A3.length,SZ=Qo[eZ]=[],KZ,UB=0;UB<G0;++UB)(KZ=A3[UB])&&n.call(KZ,KZ.__data__,UB,A3)&&SZ.push(KZ);return new hS(Qo,this._parents)},
data:function(n,D){if(!n)return q$=Array(this.size()),UB=-1,this.each(function(UX){q$[++UB]=UX}),q$;
var N=D?R:C,Qo=this._parents,eZ=this._groups;typeof n!=="function"&&(n=c(n));for(var A3=eZ.length,G0=Array(A3),SZ=Array(A3),KZ=Array(A3),UB=0;UB<A3;++UB){var ix=Qo[UB],wV=eZ[UB],$a=wV.length,q$=n.call(ix,ix&&ix.__data__,UB,Qo),ff=q$.length,Xd=SZ[UB]=Array(ff),li=G0[UB]=Array(ff);$a=KZ[UB]=Array($a);N(ix,wV,Xd,li,$a,q$,D);wV=ix=0;for(var tq;ix<ff;++ix)if($a=Xd[ix]){for(ix>=wV&&(wV=ix+1);!(tq=li[wV])&&++wV<ff;);$a._next=tq||null}}G0=new hS(G0,Qo);G0._enter=SZ;G0._exit=KZ;return G0},
enter:function(){return new hS(this._enter||this._groups.map(k),this._parents)},
exit:function(){return new hS(this._exit||this._groups.map(k),this._parents)},
merge:function(n){var D=this._groups;n=n._groups;for(var N=D.length,Qo=Math.min(N,n.length),eZ=Array(N),A3=0;A3<Qo;++A3)for(var G0=D[A3],SZ=n[A3],KZ=G0.length,UB=eZ[A3]=Array(KZ),ix,wV=0;wV<KZ;++wV)if(ix=G0[wV]||SZ[wV])UB[wV]=ix;for(;A3<N;++A3)eZ[A3]=D[A3];return new hS(eZ,this._parents)},
order:function(){for(var n=this._groups,D=-1,N=n.length;++D<N;)for(var Qo=n[D],eZ=Qo.length-1,A3=Qo[eZ],G0;--eZ>=0;)if(G0=Qo[eZ])A3&&A3!==G0.nextSibling&&A3.parentNode.insertBefore(G0,A3),A3=G0;return this},
sort:function(n){function D(wV,$a){return wV&&$a?n(wV.__data__,$a.__data__):!wV-!$a}
n||(n=l);for(var N=this._groups,Qo=N.length,eZ=Array(Qo),A3=0;A3<Qo;++A3){for(var G0=N[A3],SZ=G0.length,KZ=eZ[A3]=Array(SZ),UB,ix=0;ix<SZ;++ix)if(UB=G0[ix])KZ[ix]=UB;KZ.sort(D)}return(new hS(eZ,this._parents)).order()},
call:function(){var n=arguments[0];arguments[0]=this;n.apply(null,arguments);return this},
nodes:function(){var n=Array(this.size()),D=-1;this.each(function(){n[++D]=this});
return n},
node:function(){for(var n=this._groups,D=0,N=n.length;D<N;++D)for(var Qo=n[D],eZ=0,A3=Qo.length;eZ<A3;++eZ){var G0=Qo[eZ];if(G0)return G0}return null},
size:function(){var n=0;this.each(function(){++n});
return n},
empty:function(){return!this.node()},
each:function(n){for(var D=this._groups,N=0,Qo=D.length;N<Qo;++N)for(var eZ=D[N],A3=0,G0=eZ.length,SZ;A3<G0;++A3)(SZ=eZ[A3])&&n.call(SZ,SZ.__data__,A3,eZ);return this},
attr:function(n,D){var N=t(n);if(arguments.length<2){var Qo=this.node();return N.local?Qo.getAttributeNS(N.space,N.local):Qo.getAttribute(N)}return this.each((D==null?N.local?a:S:typeof D==="function"?N.local?v9:r:N.local?u:g)(N,D))},
style:function(n,D,N){return arguments.length>1?this.each((D==null?t3:typeof D==="function"?OB:h3)(n,D,N==null?"":N)):kQ(this.node(),n)},
property:function(n,D){return arguments.length>1?this.each((D==null?yo:typeof D==="function"?lb:xQ)(n,D)):this.node()[n]},
text:function(n){return arguments.length?this.each(n==null?ep:(typeof n==="function"?fZ:JS)(n)):this.node().textContent},
html:function(n){return arguments.length?this.each(n==null?mS:(typeof n==="function"?qZ:PN)(n)):this.node().innerHTML},
append:function(n){var D=typeof n==="function"?n:d(n);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},
insert:function(n,D){var N=typeof n==="function"?n:d(n),Qo=D==null?DX:typeof D==="function"?D:A(D);return this.select(function(){return this.insertBefore(N.apply(this,arguments),Qo.apply(this,arguments)||null)})},
remove:function(){return this.each(Th)},
clone:function(n){return this.select(n?LE:R8)},
datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},
on:function(n,D,N){var Qo=Ed(n+""),eZ=Qo.length,A3;if(arguments.length<2){var G0=this.node().__on;if(G0)for(var SZ=0,KZ=G0.length,UB;SZ<KZ;++SZ){var ix=0;for(UB=G0[SZ];ix<eZ;++ix)if((A3=Qo[ix]).type===UB.type&&A3.name===UB.name)return UB.value}}else{G0=D?mA:y8;N==null&&(N=!1);for(ix=0;ix<eZ;++ix)this.each(G0(Qo[ix],D,N));return this}},
dispatch:function(n,D){return this.each((typeof D==="function"?dV:oN)(n,D))}};
var c9m=0;ah.prototype=function(){return new ah}.prototype={constructor:ah,
get:function(n){for(var D=this._;!(D in n);)if(!(n=n.parentNode))return;return n[D]},
set:function(n,D){return n[this._]=D},
remove:function(n){return this._ in n&&delete n[this._]},
toString:function(){return this._}};
var TK=1/.7,fhs=/^#([0-9a-f]{3})$/,Gyj=/^#([0-9a-f]{6})$/,Cpm=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),MvI=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),O17=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),DDs=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*\\)$"),
Rjq=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),n2d=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*\\)$"),wkZ={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};
vs(E9,wY,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
vs(Gh,WN,dl(E9,{brighter:function(n){n=n==null?TK:Math.pow(TK,n);return new Gh(this.r*n,this.g*n,this.b*n,this.opacity)},
darker:function(n){n=n==null?.7:Math.pow(.7,n);return new Gh(this.r*n,this.g*n,this.b*n,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"#"+Fn(this.r)+Fn(this.g)+Fn(this.b)},
toString:function(){var n=this.opacity;n=isNaN(n)?1:Math.max(0,Math.min(1,n));return(n===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))+(n===1?")":", "+n+")")}}));
vs(rb,Ql,dl(E9,{brighter:function(n){n=n==null?TK:Math.pow(TK,n);return new rb(this.h,this.s,this.l*n,this.opacity)},
darker:function(n){n=n==null?.7:Math.pow(.7,n);return new rb(this.h,this.s,this.l*n,this.opacity)},
rgb:function(){var n=this.h%360+(this.h<0)*360,D=this.l,N=D+(D<.5?D:1-D)*(isNaN(n)||isNaN(this.s)?0:this.s);D=2*D-N;return new Gh(yN(n>=240?n-240:n+120,D,N),yN(n,D,N),yN(n<120?n+240:n-120,D,N),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 A9A=Math.PI/180,YrV=180/Math.PI,T4a=4/29,hu=6/29,kyp=3*hu*hu,lhY=hu*hu*hu;vs(Dt,function(n,D,N,Qo){return arguments.length===1?h8(n):new Dt(n,D,N,Qo==null?1:Qo)},dl(E9,{brighter:function(n){return new Dt(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},
darker:function(n){return new Dt(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},
rgb:function(){var n=(this.l+16)/116,D=isNaN(this.a)?n:n+this.a/500,N=isNaN(this.b)?n:n-this.b/200;D=.96422*Xr(D);n=1*Xr(n);N=.82521*Xr(N);return new Gh(AS(3.1338561*D-1.6168667*n-.4906146*N),AS(-.9787684*D+1.9161415*n+.033454*N),AS(.0719453*D-.2289914*n+1.4052427*N),this.opacity)}}));
vs(MZ,nj,dl(E9,{brighter:function(n){return new MZ(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},
darker:function(n){return new MZ(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},
rgb:function(){return h8(this).rgb()}}));
var y9Z=1.78277*-.29227-.1347134789;vs(uh,Gq,dl(E9,{brighter:function(n){n=n==null?TK:Math.pow(TK,n);return new uh(this.h,this.s,this.l*n,this.opacity)},
darker:function(n){n=n==null?.7:Math.pow(.7,n);return new uh(this.h,this.s,this.l*n,this.opacity)},
rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*A9A,D=+this.l,N=isNaN(this.s)?0:this.s*D*(1-D),Qo=Math.cos(n);n=Math.sin(n);return new Gh(255*(D+N*(-.14861*Qo+1.78277*n)),255*(D+N*(-.29227*Qo+-.90649*n)),255*(D+1.97294*Qo*N),this.opacity)}}));
var CpQ=function N(D){function Qo(A3,G0){var SZ=eZ((A3=WN(A3)).r,(G0=WN(G0)).r),KZ=eZ(A3.g,G0.g),UB=eZ(A3.b,G0.b),ix=bM(A3.opacity,G0.opacity);return function(wV){A3.r=SZ(wV);A3.g=KZ(wV);A3.b=UB(wV);A3.opacity=ix(wV);return A3+""}}
var eZ=$U(D);Qo.gamma=N;return Qo}(1),G$5=T2(function(D){var N=D.length-1;
return function(Qo){var eZ=Qo<=0?Qo=0:Qo>=1?(Qo=1,N-1):Math.floor(Qo*N),A3=D[eZ],G0=D[eZ+1];return jc((Qo-eZ/N)*N,eZ>0?D[eZ-1]:2*A3-G0,A3,G0,eZ<N-1?D[eZ+2]:2*G0-A3)}});
T2(function(D){var N=D.length;return function(Qo){var eZ=Math.floor(((Qo%=1)<0?++Qo:Qo)*N);return jc((Qo-eZ/N)*N,D[(eZ+N-1)%N],D[eZ%N],D[(eZ+1)%N],D[(eZ+2)%N])}});
var xKt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,BKh=new RegExp(xKt.source,"g"),c9Q=180/Math.PI,Quo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},To,VvE,ZP8,mRG,Ms8=wo(function(D){if(D==="none")return Quo;To||(To=document.createElement("DIV"),VvE=document.documentElement,ZP8=document.defaultView);To.style.transform=D;D=ZP8.getComputedStyle(VvE.appendChild(To),null).getPropertyValue("transform");VvE.removeChild(To);D=D.slice(7,-1).split(",");return fD(+D[0],+D[1],+D[2],+D[3],
+D[4],+D[5])},"px, ","px)","deg)"),O5j=wo(function(D){if(D==null)return Quo;
mRG||(mRG=document.createElementNS("http://www.w3.org/2000/svg","g"));mRG.setAttribute("transform",D);if(!(D=mRG.transform.baseVal.consolidate()))return Quo;D=D.matrix;return fD(D.a,D.b,D.c,D.d,D.e,D.f)},", ",")",")");
MN(Wq);MN(bM);Tl(Wq);Tl(bM);Zr(Wq);var E2Z=Zr(bM),wU=0,tA=0,eL=0,jy0,py,u0E=0,xq=0,syG=0,Ly=typeof performance==="object"&&performance.now?performance:Date,fhN=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(D){setTimeout(D,17)};
nY.prototype=Py.prototype={constructor:nY,restart:function(D,N,Qo){if(typeof D!=="function")throw new TypeError("Ee");Qo=(Qo==null?R4():+Qo)+(N==null?0:+N);this._next||py===this||(py?py._next=this:jy0=this,py=this);this._call=D;this._time=Qo;G6()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,G6())}};
var qrd=V("start","end","interrupt"),SrI=[],Dg8=bh.prototype.constructor,PLV=0,YM=bh.prototype;CJ.prototype=function(D){return bh().transition(D)}.prototype={constructor:CJ,
select:function(D){var N=this._name,Qo=this._id;typeof D!=="function"&&(D=A(D));for(var eZ=this._groups,A3=eZ.length,G0=Array(A3),SZ=0;SZ<A3;++SZ)for(var KZ=eZ[SZ],UB=KZ.length,ix=G0[SZ]=Array(UB),wV,$a,q$=0;q$<UB;++q$)(wV=KZ[q$])&&($a=D.call(wV,wV.__data__,q$,KZ))&&("__data__"in wV&&($a.__data__=wV.__data__),ix[q$]=$a,Yf(ix[q$],N,Qo,q$,ix,s_(wV,Qo)));return new CJ(G0,this._parents,N,Qo)},
filter:function(D){typeof D!=="function"&&(D=ezR(D));for(var N=this._groups,Qo=N.length,eZ=Array(Qo),A3=0;A3<Qo;++A3)for(var G0=N[A3],SZ=G0.length,KZ=eZ[A3]=[],UB,ix=0;ix<SZ;++ix)(UB=G0[ix])&&D.call(UB,UB.__data__,ix,G0)&&KZ.push(UB);return new CJ(eZ,this._parents,this._name,this._id)},
merge:function(D){if(D._id!==this._id)throw Error();var N=this._groups;D=D._groups;for(var Qo=N.length,eZ=Math.min(Qo,D.length),A3=Array(Qo),G0=0;G0<eZ;++G0)for(var SZ=N[G0],KZ=D[G0],UB=SZ.length,ix=A3[G0]=Array(UB),wV,$a=0;$a<UB;++$a)if(wV=SZ[$a]||KZ[$a])ix[$a]=wV;for(;G0<Qo;++G0)A3[G0]=N[G0];return new CJ(A3,this._parents,this._name,this._id)},
selection:function(){return new Dg8(this._groups,this._parents)},
transition:function(){for(var D=this._name,N=this._id,Qo=++PLV,eZ=this._groups,A3=eZ.length,G0=0;G0<A3;++G0)for(var SZ=eZ[G0],KZ=SZ.length,UB,ix=0;ix<KZ;++ix)if(UB=SZ[ix]){var wV=s_(UB,N);Yf(UB,D,Qo,ix,SZ,{time:wV.time+wV.delay+wV.duration,delay:0,duration:wV.duration,ease:wV.ease})}return new CJ(eZ,this._parents,D,Qo)},
call:YM.call,nodes:YM.nodes,node:YM.node,size:YM.size,empty:YM.empty,each:YM.each,on:function(D,N){var Qo=this._id;return arguments.length<2?s_(this.node(),Qo).on.on(D):this.each($D0(Qo,D,N))},
attr:function(D,N){var Qo=t(D),eZ=Qo==="transform"?O5j:GyZ;return this.attrTween(D,typeof N==="function"?(Qo.local?g25:B4q)(Qo,eZ,GI(this,"attr."+D,N)):N==null?(Qo.local?J9h:zj0)(Qo):(Qo.local?xDs:N4n)(Qo,eZ,N+""))},
attrTween:function(D,N){var Qo="attr."+D;if(arguments.length<2)return(Qo=this.tween(Qo))&&Qo._value;if(N==null)return this.tween(Qo,null);if(typeof N!=="function")throw Error();var eZ=t(D);return this.tween(Qo,(eZ.local?su8:uOf)(eZ,N))},
style:function(D,N,Qo){var eZ=D==="transform"?Ms8:GyZ;return N==null?this.styleTween(D,H18(D,eZ)).on("end.style."+D,mDn(D)):this.styleTween(D,typeof N==="function"?vHh(D,eZ,GI(this,"style."+D,N)):UDf(D,eZ,N+""),Qo)},
styleTween:function(D,N,Qo){var eZ="style."+D;if(arguments.length<2)return(eZ=this.tween(eZ))&&eZ._value;if(N==null)return this.tween(eZ,null);if(typeof N!=="function")throw Error();return this.tween(eZ,QsI(D,N,Qo==null?"":Qo))},
text:function(D){return this.tween("text",typeof D==="function"?EHn(GI(this,"text",D)):V2h(D==null?"":D+""))},
remove:function(){return this.on("end.remove",IhI(this._id))},
tween:function(D,N){var Qo=this._id;if(arguments.length<2){Qo=s_(this.node(),Qo).tween;for(var eZ=0,A3=Qo.length,G0;eZ<A3;++eZ)if((G0=Qo[eZ]).name===D)return G0.value;return null}return this.each((N==null?$b:uq)(Qo,D,N))},
delay:function(D){var N=this._id;return arguments.length?this.each((typeof D==="function"?juI:WOm)(N,D)):s_(this.node(),N).delay},
duration:function(D){var N=this._id;return arguments.length?this.each((typeof D==="function"?o25:Xkh)(N,D)):s_(this.node(),N).duration},
ease:function(D){var N=this._id;return arguments.length?this.each(ahf(N,D)):s_(this.node(),N).ease}};
var b10={time:null,delay:0,duration:250,ease:function(D){return((D*=2)<=1?D*D*D:(D-=2)*D*D+2)/2}};
bh.prototype.transition=function(D){var N;if(D instanceof CJ){var Qo=D._id;D=D._name}else Qo=++PLV,(N=b10).time=R4(),D=D==null?null:D+"";for(var eZ=this._groups,A3=eZ.length,G0=0;G0<A3;++G0)for(var SZ=eZ[G0],KZ=SZ.length,UB,ix=0;ix<KZ;++ix)if(UB=SZ[ix]){var wV=UB,$a=D,q$=Qo,ff=ix,Xd=SZ,li;if(!(li=N))a:{li=void 0;for(var tq=Qo;!(li=UB.__transition)||!(li=li[tq]);)if(!(UB=UB.parentNode)){li=(b10.time=R4(),b10);break a}}Yf(wV,$a,q$,ff,Xd,li)}return new CJ(eZ,this._parents,D,Qo)};
["e","w"].map(gXZ);["n","s"].map(gXZ);"n e s w nw ne se sw".split(" ").map(gXZ);sK3.prototype=function(){return new sK3}.prototype={constructor:sK3,
moveTo:function(D,N){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+N)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(D,N){this._+="L"+(this._x1=+D)+","+(this._y1=+N)},
bezierCurveTo:function(D,N,Qo,eZ,A3,G0){this._+="C"+ +D+","+ +N+","+ +Qo+","+ +eZ+","+(this._x1=+A3)+","+(this._y1=+G0)},
rect:function(D,N,Qo,eZ){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+N)+"h"+ +Qo+"v"+ +eZ+"h"+-Qo+"Z"},
toString:function(){return this._}};
WtG.prototype=MvA.prototype={constructor:WtG,has:function(D){return" "+D in this},
get:function(D){return this[" "+D]},
set:function(D,N){this[" "+D]=N;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=[],N;for(N in this)N[0]===" "&&D.push(N.slice(1));return D},
values:function(){var D=[],N;for(N in this)N[0]===" "&&D.push(this[N]);return D},
entries:function(){var D=[],N;for(N in this)N[0]===" "&&D.push({key:N.slice(1),value:this[N]});return D},
size:function(){var D=0,N;for(N in this)N[0]===" "&&++D;return D},
empty:function(){for(var D in this)if(D[0]===" ")return!1;return!0},
each:function(D){for(var N in this)N[0]===" "&&D(this[N],N.slice(1),this)}};
var sL=MvA.prototype;oh0.prototype=function(D,N){var Qo=new oh0;if(D instanceof oh0)D.each(function(G0){Qo.add(G0)});
else if(D){var eZ=-1,A3=D.length;if(N==null)for(;++eZ<A3;)Qo.add(D[eZ]);else for(;++eZ<A3;)Qo.add(N(D[eZ],eZ,D))}return Qo}.prototype={constructor:oh0,
has:sL.has,add:function(D){this[" "+D]=D;return this},
remove:sL.remove,clear:sL.clear,values:sL.keys,size:sL.size,empty:sL.empty,each:sL.each};var Rjp={},u_E={},RWY=DDN(",").parse,nOm=DDN("\t").parse;n2R(RWY);n2R(nOm);var QE=function(D,N,Qo){N=new jKt(N==null?iPI:N,Qo==null?Lsn:Qo,NaN,NaN,NaN,NaN);return D==null?N:N.addAll(D)}.prototype=jKt.prototype;
QE.copy=function(){var D=new jKt(this._x,this._y,this._x0,this._y0,this._x1,this._y1),N=this._root,Qo,eZ;if(!N)return D;if(!N.length)return D._root=qrR(N),D;for(Qo=[{source:N,target:D._root=Array(4)}];N=Qo.pop();)for(var A3=0;A3<4;++A3)if(eZ=N.source[A3])eZ.length?Qo.push({source:eZ,target:N.target[A3]=Array(4)}):N.target[A3]=qrR(eZ);return D};
QE.add=function(D){var N=+this._x.call(null,D),Qo=+this._y.call(null,D);return lhV(this.cover(N,Qo),N,Qo,D)};
QE.addAll=function(D){var N,Qo,eZ=D.length,A3,G0,SZ=Array(eZ),KZ=Array(eZ),UB=Infinity,ix=Infinity,wV=-Infinity,$a=-Infinity;for(Qo=0;Qo<eZ;++Qo)isNaN(A3=+this._x.call(null,N=D[Qo]))||isNaN(G0=+this._y.call(null,N))||(SZ[Qo]=A3,KZ[Qo]=G0,A3<UB&&(UB=A3),A3>wV&&(wV=A3),G0<ix&&(ix=G0),G0>$a&&($a=G0));wV<UB&&(UB=this._x0,wV=this._x1);$a<ix&&(ix=this._y0,$a=this._y1);this.cover(UB,ix).cover(wV,$a);for(Qo=0;Qo<eZ;++Qo)lhV(this,SZ[Qo],KZ[Qo],D[Qo]);return this};
QE.cover=function(D,N){if(isNaN(D=+D)||isNaN(N=+N))return this;var Qo=this._x0,eZ=this._y0,A3=this._x1,G0=this._y1;if(isNaN(Qo))A3=(Qo=Math.floor(D))+1,G0=(eZ=Math.floor(N))+1;else if(Qo>D||D>A3||eZ>N||N>G0){var SZ=A3-Qo,KZ=this._root,UB;switch(UB=(N<(eZ+G0)/2)<<1|D<(Qo+A3)/2){case 0:do{var ix=Array(4);ix[UB]=KZ;KZ=ix}while(SZ*=2,A3=Qo+SZ,G0=eZ+SZ,D>A3||N>G0);break;case 1:do ix=Array(4),ix[UB]=KZ,KZ=ix;while(SZ*=2,Qo=A3-SZ,G0=eZ+SZ,Qo>D||N>G0);break;case 2:do ix=Array(4),ix[UB]=KZ,KZ=ix;while(SZ*=
2,A3=Qo+SZ,eZ=G0-SZ,D>A3||eZ>N);break;case 3:do ix=Array(4),ix[UB]=KZ,KZ=ix;while(SZ*=2,Qo=A3-SZ,eZ=G0-SZ,Qo>D||eZ>N)}this._root&&this._root.length&&(this._root=KZ)}else return this;this._x0=Qo;this._y0=eZ;this._x1=A3;this._y1=G0;return this};
QE.data=function(){var D=[];this.visit(function(N){if(!N.length){do D.push(N.data);while(N=N.next)}});
return D};
QE.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]]};
QE.find=function(D,N,Qo){var eZ=this._x0,A3=this._y0,G0,SZ,KZ,UB,ix=this._x1,wV=this._y1,$a=[],q$=this._root,ff;q$&&$a.push(new vn(q$,eZ,A3,ix,wV));Qo==null?Qo=Infinity:(eZ=D-Qo,A3=N-Qo,ix=D+Qo,wV=N+Qo,Qo*=Qo);for(;ff=$a.pop();)if(!(!(q$=ff.node)||(G0=ff.x0)>ix||(SZ=ff.y0)>wV||(KZ=ff.x1)<eZ||(UB=ff.y1)<A3))if(q$.length){ff=(G0+KZ)/2;var Xd=(SZ+UB)/2;$a.push(new vn(q$[3],ff,Xd,KZ,UB),new vn(q$[2],G0,Xd,ff,UB),new vn(q$[1],ff,SZ,KZ,Xd),new vn(q$[0],G0,SZ,ff,Xd));if(q$=(N>=Xd)<<1|D>=ff)ff=$a[$a.length-
1],$a[$a.length-1]=$a[$a.length-1-q$],$a[$a.length-1-q$]=ff}else if(ff=D-+this._x.call(null,q$.data),Xd=N-+this._y.call(null,q$.data),ff=ff*ff+Xd*Xd,ff<Qo){var li=Math.sqrt(Qo=ff);eZ=D-li;A3=N-li;ix=D+li;wV=N+li;li=q$.data}return li};
QE.remove=function(D){if(isNaN(UB=+this._x.call(null,D))||isNaN(ix=+this._y.call(null,D)))return this;var N,Qo=this._root,eZ,A3=this._x0,G0=this._y0,SZ=this._x1,KZ=this._y1,UB,ix,wV,$a,q$,ff,Xd;if(!Qo)return this;if(Qo.length)for(;;){(q$=UB>=(wV=(A3+SZ)/2))?A3=wV:SZ=wV;(ff=ix>=($a=(G0+KZ)/2))?G0=$a:KZ=$a;if(!(N=Qo,Qo=Qo[Xd=ff<<1|q$]))return this;if(!Qo.length)break;if(N[Xd+1&3]||N[Xd+2&3]||N[Xd+3&3]){var li=N;var tq=Xd}}for(;Qo.data!==D;)if(!(eZ=Qo,Qo=Qo.next))return this;(D=Qo.next)&&delete Qo.next;
if(eZ)return D?eZ.next=D:delete eZ.next,this;if(!N)return this._root=D,this;D?N[Xd]=D:delete N[Xd];(Qo=N[0]||N[1]||N[2]||N[3])&&Qo===(N[3]||N[2]||N[1]||N[0])&&!Qo.length&&(li?li[tq]=Qo:this._root=Qo);return this};
QE.removeAll=function(D){for(var N=0,Qo=D.length;N<Qo;++N)this.remove(D[N]);return this};
QE.root=function(){return this._root};
QE.size=function(){var D=0;this.visit(function(N){if(!N.length){do++D;while(N=N.next)}});
return D};
QE.visit=function(D){var N=[],Qo,eZ=this._root,A3,G0,SZ,KZ,UB;for(eZ&&N.push(new vn(eZ,this._x0,this._y0,this._x1,this._y1));Qo=N.pop();)if(!D(eZ=Qo.node,G0=Qo.x0,SZ=Qo.y0,KZ=Qo.x1,UB=Qo.y1)&&eZ.length){Qo=(G0+KZ)/2;var ix=(SZ+UB)/2;(A3=eZ[3])&&N.push(new vn(A3,Qo,ix,KZ,UB));(A3=eZ[2])&&N.push(new vn(A3,G0,ix,Qo,UB));(A3=eZ[1])&&N.push(new vn(A3,Qo,SZ,KZ,ix));(A3=eZ[0])&&N.push(new vn(A3,G0,SZ,Qo,ix))}};
QE.visitAfter=function(D){var N=[],Qo=[],eZ;for(this._root&&N.push(new vn(this._root,this._x0,this._y0,this._x1,this._y1));eZ=N.pop();){var A3=eZ.node;if(A3.length){var G0,SZ=eZ.x0,KZ=eZ.y0,UB=eZ.x1,ix=eZ.y1,wV=(SZ+UB)/2,$a=(KZ+ix)/2;(G0=A3[0])&&N.push(new vn(G0,SZ,KZ,wV,$a));(G0=A3[1])&&N.push(new vn(G0,wV,KZ,UB,$a));(G0=A3[2])&&N.push(new vn(G0,SZ,$a,wV,ix));(G0=A3[3])&&N.push(new vn(G0,wV,$a,UB,ix))}Qo.push(eZ)}for(;eZ=Qo.pop();)D(eZ.node,eZ.x0,eZ.y0,eZ.x1,eZ.y1);return this};
QE.x=function(D){return arguments.length?(this._x=D,this):this._x};
QE.y=function(D){return arguments.length?(this._y=D,this):this._y};
var ZP5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Wrr.prototype=oXr.prototype;oXr.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 N4a,xDN={"%":function(D,N){return(D*100).toFixed(N)},
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,N){return D.toExponential(N)},
f:function(D,N){return D.toFixed(N)},
g:function(D,N){return D.toPrecision(N)},
o:function(D){return Math.round(D).toString(8)},
p:function(D,N){return SrA(D*100,N)},
r:SrA,s:function(D,N){var Qo=XxE(D,N);if(!Qo)return D+"";var eZ=Qo[0];Qo=Qo[1];Qo=Qo-(N4a=Math.max(-8,Math.min(8,Math.floor(Qo/3)))*3)+1;var A3=eZ.length;return Qo===A3?eZ:Qo>A3?eZ+Array(Qo-A3+1).join("0"):Qo>0?eZ.slice(0,Qo)+"."+eZ.slice(Qo):"0."+Array(1-Qo).join("0")+XxE(D,Math.max(0,N+Qo-1))[0]},
X:function(D){return Math.round(D).toString(16).toUpperCase()},
x:function(D){return Math.round(D).toString(16)}},J9q="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),lrf;
(function(D){return lrf=PLY(D)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});jm.prototype={constructor:jm,reset:function(){this.s=this.t=0},
add:function(D){B4p(UR9,D,this.t);B4p(this,UR9.s,this.s);this.s?this.t+=UR9.t:this.s=UR9.t},
valueOf:function(){return this.s}};
var UR9=new jm,Q0=Math.PI,HY=Q0/2,dIx=Q0/4,qm5=Q0*2,FOE=Q0/180,Ml=Math.abs,KO9=Math.atan,o28=Math.atan2,m6=Math.cos,S0=Math.sin,r8E=Math.sqrt;new jm;new jm;new jm;var i13=new jm;(function(D,N,Qo,eZ){return function(A3){function G0(vU,Gc){D(vU,Gc)&&A3.point(vU,Gc)}
function SZ(vU,Gc){q$.point(vU,Gc)}
function KZ(){bO.point=SZ;q$.lineStart()}
function UB(){bO.point=G0;q$.lineEnd()}
function ix(vU,Gc){R$.push([vU,Gc]);Xd.point(vU,Gc)}
function wV(){Xd.lineStart();R$=[]}
function $a(){ix(R$[0][0],R$[0][1]);Xd.lineEnd();var vU=Xd.clean(),Gc=ff.result(),mJ=Gc.length,fp;R$.pop();tq.push(R$);R$=null;if(mJ)if(vU&1){if(mJ=Gc[0],(Gc=mJ.length-1)>0){li||(A3.polygonStart(),li=!0);A3.lineStart();for(vU=0;vU<Gc;++vU)A3.point((fp=mJ[vU])[0],fp[1]);A3.lineEnd()}}else mJ>1&&vU&2&&Gc.push(Gc.pop().concat(Gc.shift())),UX.push(Gc.filter(A$$))}
var q$=N(A3),ff=hz5(),Xd=N(ff),li=!1,tq,UX,R$,bO={point:G0,lineStart:KZ,lineEnd:UB,polygonStart:function(){bO.point=ix;bO.lineStart=wV;bO.lineEnd=$a;UX=[];tq=[]},
polygonEnd:function(){bO.point=G0;bO.lineStart=KZ;bO.lineEnd=UB;var vU=UX,Gc=vU.length;var mJ=-1;for(var fp=0,a8,cq;++mJ<Gc;)fp+=vU[mJ].length;for(a8=Array(fp);--Gc>=0;)for(cq=vU[Gc],mJ=cq.length;--mJ>=0;)a8[--fp]=cq[mJ];UX=a8;vU=tq;Gc=eZ[0];fp=eZ[1];var pf=S0(fp);mJ=[S0(Gc),-m6(Gc),0];cq=a8=0;i13.reset();pf===1?fp=HY+1E-6:pf===-1&&(fp=-HY-1E-6);pf=0;for(var J7=vU.length;pf<J7;++pf)if(vE=(IS=vU[pf]).length){var IS,vE,pW=IS[vE-1],Yd=pW[0],CV=pW[1]/2+dIx,v0t=S0(CV),hz8=m6(CV);for(CV=0;CV<vE;++CV,Yd=
LOZ,v0t=wIX,hz8=Y1,pW=Qc0){var Qc0=IS[CV],LOZ=Qc0[0];Y1=Qc0[1]/2+dIx;var wIX=S0(Y1),Y1=m6(Y1),yV=LOZ-Yd,tv3=yV>=0?1:-1,pkr=tv3*yV,VzS=pkr>Q0;v0t*=wIX;i13.add(o28(v0t*tv3*S0(pkr),hz8*Y1+v0t*m6(pkr)));a8+=VzS?yV+tv3*qm5:yV;VzS^Yd>=Gc^LOZ>=Gc&&(pW=suN(g28(pW),g28(Qc0)),uOa(pW),Yd=suN(mJ,pW),uOa(Yd),Yd=(VzS^yV>=0?-1:1)*aWG(Yd[2]),fp>Yd||fp===Yd&&(pW[0]||pW[1]))&&(cq+=VzS^yV>=0?1:-1)}}vU=(a8<-1E-6||a8<1E-6&&i13<-1E-6)^cq&1;UX.length?(li||(A3.polygonStart(),li=!0),wI0(UX,kVn,vU,Qo,A3)):vU&&(li||(A3.polygonStart(),
li=!0),A3.lineStart(),Qo(null,null,1,A3),A3.lineEnd());li&&(A3.polygonEnd(),li=!1);UX=tq=null},
sphere:function(){A3.polygonStart();A3.lineStart();Qo(null,null,1,A3);A3.lineEnd();A3.polygonEnd()}};
return bO}})(function(){return!0},function(D){var N=NaN,Qo=NaN,eZ=NaN,A3;
return{lineStart:function(){D.lineStart();A3=1},
point:function(G0,SZ){var KZ=G0>0?Q0:-Q0,UB=Ml(G0-N);if(Ml(UB-Q0)<1E-6)D.point(N,Qo=(Qo+SZ)/2>0?HY:-HY),D.point(eZ,Qo),D.lineEnd(),D.lineStart(),D.point(KZ,Qo),D.point(G0,Qo),A3=0;else if(eZ!==KZ&&UB>=Q0){Ml(N-eZ)<1E-6&&(N-=eZ*1E-6);Ml(G0-KZ)<1E-6&&(G0-=KZ*1E-6);UB=N;var ix=Qo,wV=G0,$a,q$,ff=S0(UB-wV);Qo=Ml(ff)>1E-6?KO9((S0(ix)*(q$=m6(SZ))*S0(wV)-S0(SZ)*($a=m6(ix))*S0(UB))/($a*q$*ff)):(ix+SZ)/2;D.point(eZ,Qo);D.lineEnd();D.lineStart();D.point(KZ,Qo);A3=0}D.point(N=G0,Qo=SZ);eZ=KZ},
lineEnd:function(){D.lineEnd();N=Qo=NaN},
clean:function(){return 2-A3}}},function(D,N,Qo,eZ){D==null?(Qo*=HY,eZ.point(-Q0,Qo),eZ.point(0,Qo),eZ.point(Q0,Qo),eZ.point(Q0,0),eZ.point(Q0,-Qo),eZ.point(0,-Qo),eZ.point(-Q0,-Qo),eZ.point(-Q0,0),eZ.point(-Q0,Qo)):Ml(D[0]-N[0])>1E-6?(D=D[0]<N[0]?Q0:-Q0,Qo=Qo*D/2,eZ.point(-D,Qo),eZ.point(0,Qo),eZ.point(D,Qo)):eZ.point(N[0],N[1])},[-Q0,
-HY]);new jm;new jm;new jm;new jm;Xuo.prototype={constructor:Xuo,point:function(D,N){this.stream.point(D,N)},
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()}};
m6(30*FOE);(function(D){return function(N){var Qo=new Xuo,eZ;for(eZ in D)Qo[eZ]=D[eZ];Qo.stream=N;return Qo}})({point:function(D,N){this.stream.point(D*FOE,N*FOE)}});
WOQ(function(D){return r8E(2/(1+D))}).invert=Zk(function(D){return 2*aWG(D/2)});
WOQ(function(D){return(D=D>1?0:D<-1?Q0:Math.acos(D))&&D/S0(D)}).invert=Zk(function(D){return D});
r8E(3);Zk(KO9);Zk(aWG);Zk(function(D){return 2*KO9(D)});
PT.prototype=Xkq.prototype={constructor:PT,count:function(){return this.eachAfter(Tqs)},
each:function(D){var N,Qo=[this],eZ;do{var A3=Qo.reverse();for(Qo=[];N=A3.pop();)if(D(N),N=N.children){var G0=0;for(eZ=N.length;G0<eZ;++G0)Qo.push(N[G0])}}while(Qo.length);return this},
eachAfter:function(D){for(var N,Qo=[this],eZ=[],A3,G0;N=Qo.pop();)if(eZ.push(N),N=N.children)for(A3=0,G0=N.length;A3<G0;++A3)Qo.push(N[A3]);for(;N=eZ.pop();)D(N);return this},
eachBefore:function(D){for(var N,Qo=[this],eZ;N=Qo.pop();)if(D(N),N=N.children)for(eZ=N.length-1;eZ>=0;--eZ)Qo.push(N[eZ]);return this},
sum:function(D){return this.eachAfter(function(N){for(var Qo=+D(N.data)||0,eZ=N.children,A3=eZ&&eZ.length;--A3>=0;)Qo+=eZ[A3].value;N.value=Qo})},
sort:function(D){return this.eachBefore(function(N){N.children&&N.children.sort(D)})},
path:function(D){var N=this;var Qo=N;var eZ=D;if(Qo!==eZ){var A3=Qo.ancestors(),G0=eZ.ancestors(),SZ=null;Qo=A3.pop();for(eZ=G0.pop();Qo===eZ;)SZ=Qo,Qo=A3.pop(),eZ=G0.pop();Qo=SZ}for(eZ=[N];N!==Qo;)N=N.parent,eZ.push(N);for(N=eZ.length;D!==Qo;)eZ.splice(N,0,D),D=D.parent;return eZ},
ancestors:function(){for(var D=this,N=[D];D=D.parent;)N.push(D);return N},
links:function(){var D=this,N=[];D.each(function(Qo){Qo!==D&&N.push({source:Qo.parent,target:Qo})});
return N},
copy:function(){return Xkq(this).eachBefore(c$j)}};
(function(D,N){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=N}).prototype=Object.create(PT.prototype);
var aHZ=new Date,rjo=new Date,A$Z=cj(function(){},function(D,N){D.setTime(+D+N)},function(D,N){return N-D});
A$Z.every=function(D){D=Math.floor(D);return isFinite(D)&&D>0?D>1?cj(function(N){N.setTime(Math.floor(N/D)*D)},function(N,Qo){N.setTime(+N+Qo*D)},function(N,Qo){return(Qo-N)/D}):A$Z:null};
cj(function(D){D.setTime(Math.floor(D/1E3)*1E3)},function(D,N){D.setTime(+D+N*1E3)},function(D,N){return(N-D)/1E3},function(D){return D.getUTCSeconds()});
cj(function(D){D.setTime(Math.floor(D/6E4)*6E4)},function(D,N){D.setTime(+D+N*6E4)},function(D,N){return(N-D)/6E4},function(D){return D.getMinutes()});
cj(function(D){var N=D.getTimezoneOffset()*6E4%36E5;N<0&&(N+=36E5);D.setTime(Math.floor((+D-N)/36E5)*36E5+N)},function(D,N){D.setTime(+D+N*36E5)},function(D,N){return(N-D)/36E5},function(D){return D.getHours()});
var $DX=cj(function(D){D.setHours(0,0,0,0)},function(D,N){D.setDate(D.getDate()+N)},function(D,N){return(N-D-(N.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/864E5},function(D){return D.getDate()-1}),cvn=Bb(0),IH3=Bb(1);
Bb(2);Bb(3);var HAE=Bb(4);Bb(5);Bb(6);cj(function(D){D.setDate(1);D.setHours(0,0,0,0)},function(D,N){D.setMonth(D.getMonth()+N)},function(D,N){return N.getMonth()-D.getMonth()+(N.getFullYear()-D.getFullYear())*12},function(D){return D.getMonth()});
var Au=cj(function(D){D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,N){D.setFullYear(D.getFullYear()+N)},function(D,N){return N.getFullYear()-D.getFullYear()},function(D){return D.getFullYear()});
Au.every=function(D){return isFinite(D=Math.floor(D))&&D>0?cj(function(N){N.setFullYear(Math.floor(N.getFullYear()/D)*D);N.setMonth(0,1);N.setHours(0,0,0,0)},function(N,Qo){N.setFullYear(N.getFullYear()+Qo*D)}):null};
cj(function(D){D.setUTCSeconds(0,0)},function(D,N){D.setTime(+D+N*6E4)},function(D,N){return(N-D)/6E4},function(D){return D.getUTCMinutes()});
cj(function(D){D.setUTCMinutes(0,0,0)},function(D,N){D.setTime(+D+N*36E5)},function(D,N){return(N-D)/36E5},function(D){return D.getUTCHours()});
var r9A=cj(function(D){D.setUTCHours(0,0,0,0)},function(D,N){D.setUTCDate(D.getUTCDate()+N)},function(D,N){return(N-D)/864E5},function(D){return D.getUTCDate()-1}),fr8=gk(0),$KQ=gk(1);
gk(2);gk(3);var mKT=gk(4);gk(5);gk(6);cj(function(D){D.setUTCDate(1);D.setUTCHours(0,0,0,0)},function(D,N){D.setUTCMonth(D.getUTCMonth()+N)},function(D,N){return N.getUTCMonth()-D.getUTCMonth()+(N.getUTCFullYear()-D.getUTCFullYear())*12},function(D){return D.getUTCMonth()});
var kM=cj(function(D){D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,N){D.setUTCFullYear(D.getUTCFullYear()+N)},function(D,N){return N.getUTCFullYear()-D.getUTCFullYear()},function(D){return D.getUTCFullYear()});
kM.every=function(D){return isFinite(D=Math.floor(D))&&D>0?cj(function(N){N.setUTCFullYear(Math.floor(N.getUTCFullYear()/D)*D);N.setUTCMonth(0,1);N.setUTCHours(0,0,0,0)},function(N,Qo){N.setUTCFullYear(N.getUTCFullYear()+Qo*D)}):null};
var aha={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,yvI=/^%/,Ym8=/[\\^$*+?|[\]().{}]/g,E0r;(function(D){E0r=GV$(D);zSa=E0r.utcFormat;J_a=E0r.utcParse;return E0r})({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||zSa("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||J_a("%Y-%m-%dT%H:%M:%S.%LZ");dI("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
dI("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");dI("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");dI("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");dI("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");dI("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");dI("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
dI("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");dI("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");dI("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");dI("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");dI("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Smm=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(dI);HU(Smm);var zW0=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(dI);HU(zW0);var Jvs=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(dI);HU(Jvs);var N_n=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(dI);
HU(N_n);var xgs=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(dI);HU(xgs);var B_8=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(dI);HU(B_8);var gO8=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(dI);HU(gO8);var sVs=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(dI);HU(sVs);var u3h=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(dI);HU(u3h);var jV0=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(dI);HU(jV0);var Wy5=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(dI);HU(Wy5);var oOh=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(dI);HU(oOh);var Xyq=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(dI);HU(Xyq);var arh=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(dI);HU(arh);var rvn=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(dI);HU(rvn);var $g8=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(dI);HU($g8);var Irh=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(dI);HU(Irh);var H5h=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(dI);HU(H5h);var mgn=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(dI);HU(mgn);var Ugf=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(dI);HU(Ugf);var vqj=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(dI);HU(vqj);var Qnn=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(dI);HU(Qnn);var Vn$=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(dI);HU(Vn$);var Eqn=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(dI);HU(Eqn);var bTd=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(dI);HU(bTd);var FMd=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(dI);HU(FMd);var KMd=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(dI);HU(KMd);E2Z(Gq(300,.5,0),Gq(-240,.5,1));E2Z(Gq(-100,.75,.35),Gq(80,1.5,.8));E2Z(Gq(260,.75,.35),Gq(80,1.5,.8));Gq();WN();Hp3(dI("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Hp3(dI("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Hp3(dI("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Hp3(dI("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Fsa.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,N){D=+D;N=+N;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,N):this._context.moveTo(D,N);break;case 1:this._point=2;default:this._context.lineTo(D,N)}}};
(function(D){function N(Qo){return new Ksq(D(Qo))}
N._curve=D;return N})(function(D){return new Fsa(D)});
Ksq.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(D,N){this._curve.point(N*Math.sin(D),N*-Math.cos(D))}};
v2h.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:UKb(this,this._t0,Lsa(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,N){var Qo=NaN;D=+D;N=+N;if(D!==this._x1||N!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,N):this._context.moveTo(D,N);break;case 1:this._point=2;break;case 2:this._point=3;UKb(this,Lsa(this,Qo=iPA(this,D,N)),Qo);break;default:UKb(this,this._t0,Qo=iPA(this,D,N))}this._x0=this._x1;this._x1=D;this._y0=this._y1;this._y1=N;this._t0=Qo}}};
(function(D){this._context=new t2a(D)}.prototype=Object.create(v2h.prototype)).point=function(D,N){v2h.prototype.point.call(this,N,D)};
t2a.prototype={moveTo:function(D,N){this._context.moveTo(N,D)},
closePath:function(){this._context.closePath()},
lineTo:function(D,N){this._context.lineTo(N,D)},
bezierCurveTo:function(D,N,Qo,eZ,A3,G0){this._context.bezierCurveTo(N,D,eZ,Qo,G0,A3)}};
AA.prototype={constructor:AA,scale:function(D){return D===1?this:new AA(this.k*D,this.x,this.y)},
translate:function(D,N){return D===0&N===0?this:new AA(this.k,this.x+this.k*D,this.y+this.k*N)},
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 AA(1,0,0);dWT=wY;II.svg=II.svg;II.xhtml=II.xhtml;II.xlink=II.xlink;II.xml=II.xml;II.xmlns=II.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 N3N="hammer_"+(Math.random()*1E6|0),x3q=function(){var v=document||document;if(!v[N3N]){var Q=function(){(function(V,E,b,F){function t(Dt,gG,Xr){return setTimeout(k(Dt,Xr),gG)}
function p(Dt,gG,Xr){return Array.isArray(Dt)?(Z(Dt,Xr[gG],Xr),!0):!1}
function Z(Dt,gG,Xr){var AS;if(Dt)if(Dt.forEach)Dt.forEach(gG,Xr);else if(Dt.length!==F){var cs=0;for(AS=Dt.length;cs<AS;cs++)gG.call(Xr,Dt[cs],cs,Dt)}else for(cs in Dt)Dt.hasOwnProperty(cs)&&gG.call(Xr,Dt[cs],cs,Dt)}
function d(Dt,gG,Xr){for(var AS=Object.keys(gG),cs=0,qj=AS.length;cs<qj;cs++)if(!Xr||Xr&&Dt[AS[cs]]===F)Dt[AS[cs]]=gG[AS[cs]];return Dt}
function w(Dt,gG){return d(Dt,gG,!0)}
function A(Dt,gG,Xr){gG=gG.prototype;var AS=Dt.prototype=Object.create(gG);AS.constructor=Dt;AS._super=gG;Xr&&d(AS,Xr)}
function k(Dt,gG){return function(){return Dt.apply(gG,arguments)}}
function T(Dt,gG){return typeof Dt=="function"?Dt.apply(gG?gG[0]||F:F,gG):Dt}
function c(Dt,gG,Xr){Z(R(gG),function(AS){Dt.addEventListener(AS,Xr,!1)})}
function C(Dt,gG,Xr){Z(R(gG),function(AS){Dt.removeEventListener(AS,Xr,!1)})}
function R(Dt){return Dt.trim().split(/\s+/g)}
function l(Dt,gG,Xr){if(Dt.indexOf&&!Xr)return Dt.indexOf(gG);for(var AS=0,cs=Dt.length;AS<cs;AS++)if(Xr&&Dt[AS][Xr]==gG||!Xr&&Dt[AS]===gG)return AS;return-1}
function S(Dt,gG,Xr){for(var AS=[],cs=[],qj=0,nj=Dt.length;qj<nj;qj++){var MZ=gG?Dt[qj][gG]:Dt[qj];l(cs,MZ)<0&&AS.push(Dt[qj]);cs[qj]=MZ}Xr&&(AS=gG?AS.sort(function(Gq,uh){return Gq[gG]>uh[gG]}):AS.sort());
return AS}
function a(Dt,gG){for(var Xr,AS=gG[0].toUpperCase()+gG.slice(1),cs=0,qj=dV.length;cs<qj;cs++)if(Xr=(Xr=dV[cs])?Xr+AS:gG,Xr in Dt)return Xr;return F}
function g(Dt,gG){var Xr=this;this.manager=Dt;this.callback=gG;this.element=Dt.element;this.target=Dt.options.inputTarget;this.domHandler=function(AS){T(Dt.options.enable,[Dt])&&Xr.handler(AS)};
this.evEl&&c(this.element,this.evEl,this.domHandler);this.evTarget&&c(this.target,this.evTarget,this.domHandler);this.evWin&&c(V,this.evWin,this.domHandler)}
function u(Dt){var gG;Ws?gG=xQ:Zg?gG=lb:wY?gG=ep:gG=yo;return new gG(Dt,r)}
function r(Dt,gG,Xr){var AS=Xr.pointers.length,cs=Xr.changedPointers.length,qj=gG&1&&AS-cs===0;Xr.isFirst=!!qj;Xr.isFinal=!!(gG&12&&AS-cs===0);qj&&(Dt.session={});Xr.eventType=gG;gG=Dt.session;AS=Xr.pointers;cs=AS.length;gG.firstInput||(gG.firstInput=v9(Xr));cs>1&&!gG.firstMultiple?gG.firstMultiple=v9(Xr):cs===1&&(gG.firstMultiple=!1);qj=gG.firstInput;var nj=(cs=gG.firstMultiple)?cs.center:qj.center,MZ=Xr.center=t3(AS);Xr.timeStamp=vs();Xr.deltaTime=Xr.timeStamp-qj.timeStamp;Xr.angle=kQ(nj,MZ);Xr.distance=
OB(nj,MZ);qj=Xr.center;nj=gG.offsetDelta||{};MZ=gG.prevDelta||{};var Gq=gG.prevInput||{};if(Xr.eventType===1||Gq.eventType===4)MZ=gG.prevDelta={x:Gq.deltaX||0,y:Gq.deltaY||0},nj=gG.offsetDelta={x:qj.x,y:qj.y};Xr.deltaX=MZ.x+(qj.x-nj.x);Xr.deltaY=MZ.y+(qj.y-nj.y);Xr.offsetDirection=h3(Xr.deltaX,Xr.deltaY);cs?(qj=cs.pointers,qj=OB(AS[0],AS[1],WN)/OB(qj[0],qj[1],WN)):qj=1;Xr.scale=qj;cs?(cs=cs.pointers,AS=kQ(AS[1],AS[0],WN)-kQ(cs[1],cs[0],WN)):AS=0;Xr.rotation=AS;nj=gG.lastInterval||Xr;AS=Xr.timeStamp-
nj.timeStamp;Xr.eventType!=8&&(AS>25||nj.velocity===F)?(qj=nj.deltaX-Xr.deltaX,nj=nj.deltaY-Xr.deltaY,MZ=qj/AS||0,Gq=nj/AS||0,AS=MZ,cs=Gq,MZ=ah(MZ)>ah(Gq)?MZ:Gq,qj=h3(qj,nj),gG.lastInterval=Xr):(MZ=nj.velocity,AS=nj.velocityX,cs=nj.velocityY,qj=nj.direction);Xr.velocity=MZ;Xr.velocityX=AS;Xr.velocityY=cs;Xr.direction=qj;gG=Dt.element;a:{for(AS=Xr.srcEvent.target;AS;){if(AS==gG){AS=!0;break a}AS=AS.parentNode}AS=!1}AS&&(gG=Xr.srcEvent.target);Xr.target=gG;Dt.emit("hammer.input",Xr);Dt.recognize(Xr);
Dt.session.prevInput=Xr}
function v9(Dt){for(var gG=[],Xr=0;Xr<Dt.pointers.length;Xr++)gG[Xr]={clientX:bh(Dt.pointers[Xr].clientX),clientY:bh(Dt.pointers[Xr].clientY)};return{timeStamp:vs(),pointers:gG,center:t3(gG),deltaX:Dt.deltaX,deltaY:Dt.deltaY}}
function t3(Dt){var gG=Dt.length;if(gG===1)return{x:bh(Dt[0].clientX),y:bh(Dt[0].clientY)};for(var Xr=0,AS=0,cs=0;cs<gG;cs++)Xr+=Dt[cs].clientX,AS+=Dt[cs].clientY;return{x:bh(Xr/gG),y:bh(AS/gG)}}
function h3(Dt,gG){return Dt===gG?1:ah(Dt)>=ah(gG)?Dt>0?2:4:gG>0?8:16}
function OB(Dt,gG,Xr){Xr||(Xr=TT);var AS=gG[Xr[0]]-Dt[Xr[0]];Dt=gG[Xr[1]]-Dt[Xr[1]];return Math.sqrt(AS*AS+Dt*Dt)}
function kQ(Dt,gG,Xr){Xr||(Xr=TT);return Math.atan2(gG[Xr[1]]-Dt[Xr[1]],gG[Xr[0]]-Dt[Xr[0]])*180/Math.PI}
function yo(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;g.apply(this,arguments)}
function xQ(){this.evEl=la;this.evWin=Ql;g.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function lb(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};g.apply(this,arguments)}
function ep(){g.apply(this,arguments);var Dt=k(this.handler,this);this.touch=new lb(this.manager,Dt);this.mouse=new yo(this.manager,Dt)}
function JS(Dt,gG){this.manager=Dt;this.set(gG)}
function fZ(Dt){if(Dt.indexOf("none")>-1)return"none";var gG=Dt.indexOf("pan-x")>-1,Xr=Dt.indexOf("pan-y")>-1;return gG&&Xr?"pan-x pan-y":gG||Xr?gG?"pan-x":"pan-y":Dt.indexOf("manipulation")>-1?"manipulation":"auto"}
function mS(Dt){this.id=dl++;this.manager=null;this.options=w(Dt||{},this.defaults);Dt=this.options.enable;this.options.enable=Dt===F?!0:Dt;this.state=1;this.simultaneous={};this.requireFail=[]}
function PN(Dt){return Dt==16?"down":Dt==8?"up":Dt==2?"left":Dt==4?"right":""}
function qZ(Dt,gG){return(gG=gG.manager)?gG.get(Dt):Dt}
function DX(){mS.apply(this,arguments)}
function Th(){DX.apply(this,arguments);this.pY=this.pX=null}
function R8(){DX.apply(this,arguments)}
function LE(){mS.apply(this,arguments);this._input=this._timer=null}
function Q8(){DX.apply(this,arguments)}
function Tq(){DX.apply(this,arguments)}
function Ed(){mS.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function y8(Dt,gG){gG=gG||{};var Xr=gG.recognizers;gG.recognizers=Xr===F?y8.defaults.preset:Xr;return new mA(Dt,gG)}
function mA(Dt,gG){gG=gG||{};this.options=w(gG,y8.defaults);this.options.inputTarget=this.options.inputTarget||Dt;this.handlers={};this.session={};this.recognizers=[];this.element=Dt;this.input=u(this);this.touchAction=new JS(this,this.options.touchAction);C$(this,!0);Z(gG.recognizers,function(Xr){var AS=this.add(new Xr[0](Xr[1]));Xr[2]&&AS.recognizeWith(Xr[2]);Xr[3]&&AS.requireFailure(Xr[2])},this)}
function C$(Dt,gG){var Xr=Dt.element;Z(Dt.options.cssProps,function(AS,cs){Xr.style[a(Xr.style,cs)]=gG?AS:""})}
function oN(Dt,gG){var Xr=E.createEvent("Event");Xr.initEvent(Dt,!0,!0);Xr.gesture=gG;gG.target.dispatchEvent(Xr)}
var dV=" webkit moz MS ms o".split(" "),hS=E.createElement("div"),bh=Math.round,ah=Math.abs,vs=Date.now,dl=1,E9=/mobile|tablet|ip(ad|hone|od)|android/i,wY="ontouchstart"in V,Ws=a(V,"PointerEvent")!==F,Zg=wY&&E9.test(navigator.userAgent),TT=["x","y"],WN=["clientX","clientY"];g.prototype={handler:function(){},
destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler);this.evTarget&&C(this.target,this.evTarget,this.domHandler);this.evWin&&C(V,this.evWin,this.domHandler)}};
var Gh={mousedown:1,mousemove:2,mouseup:4};A(yo,g,{handler:function(Dt){var gG=Gh[Dt.type];gG&1&&Dt.button===0&&(this.pressed=!0);gG&2&&Dt.which!==1&&(gG=4);this.pressed&&this.allow&&(gG&4&&(this.pressed=!1),this.callback(this.manager,gG,{pointers:[Dt],changedPointers:[Dt],pointerType:"mouse",srcEvent:Dt}))}});
var Fn={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},fg={2:"touch",3:"pen",4:"mouse",5:"kinect"},la="pointerdown",Ql="pointermove pointerup pointercancel";V.MSPointerEvent&&(la="MSPointerDown",Ql="MSPointerMove MSPointerUp MSPointerCancel");A(xQ,g,{handler:function(Dt){var gG=this.store,Xr=!1,AS=Dt.type.toLowerCase().replace("ms","");AS=Fn[AS];var cs=fg[Dt.pointerType]||Dt.pointerType;AS&1&&(Dt.button===0||cs=="touch")?gG.push(Dt):AS&12&&(Xr=!0);var qj=l(gG,Dt.pointerId,"pointerId");
qj<0||(gG[qj]=Dt,this.callback(this.manager,AS,{pointers:gG,changedPointers:[Dt],pointerType:cs,srcEvent:Dt}),Xr&&gG.splice(qj,1))}});
var rb={touchstart:1,touchmove:2,touchend:4,touchcancel:8};A(lb,g,{handler:function(Dt){var gG=rb[Dt.type];var Xr=Array.prototype.slice.call(Dt.touches,0);var AS=this.targetIds;if(gG&3&&Xr.length===1)AS[Xr[0].identifier]=!0,AS=[Xr,Xr];else{var cs,qj=Array.prototype.slice.call(Dt.targetTouches,0),nj=Array.prototype.slice.call(Dt.changedTouches,0),MZ=[];if(gG===1)for(Xr=0,cs=qj.length;Xr<cs;Xr++)AS[qj[Xr].identifier]=!0;Xr=0;for(cs=nj.length;Xr<cs;Xr++)AS[nj[Xr].identifier]&&MZ.push(nj[Xr]),gG&12&&
delete AS[nj[Xr].identifier];AS=MZ.length?[S(qj.concat(MZ),"identifier",!0),MZ]:void 0}AS&&this.callback(this.manager,gG,{pointers:AS[0],changedPointers:AS[1],pointerType:"touch",srcEvent:Dt})}});
A(ep,g,{handler:function(Dt,gG,Xr){var AS=Xr.pointerType=="mouse";if(Xr.pointerType=="touch")this.mouse.allow=!1;else if(AS&&!this.mouse.allow)return;gG&12&&(this.mouse.allow=!0);this.callback(Dt,gG,Xr)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var yN=a(hS.style,"touchAction"),h8=yN!==F;JS.prototype={set:function(Dt){Dt=="compute"&&(Dt=this.compute());h8&&(this.manager.element.style[yN]=Dt);this.actions=Dt.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Dt=[];Z(this.manager.recognizers,function(gG){T(gG.options.enable,[gG])&&(Dt=Dt.concat(gG.getTouchAction()))});
return fZ(Dt.join(" "))},
preventDefaults:function(Dt){if(!h8){var gG=Dt.srcEvent;Dt=Dt.offsetDirection;if(this.manager.session.prevented)gG.preventDefault();else{var Xr=this.actions,AS=Xr.indexOf("none")>-1,cs=Xr.indexOf("pan-y")>-1;Xr=Xr.indexOf("pan-x")>-1;if(AS||cs&&Xr||cs&&Dt&6||Xr&&Dt&24)return this.preventSrc(gG)}}},
preventSrc:function(Dt){this.manager.session.prevented=!0;Dt.preventDefault()}};
mS.prototype={defaults:{},set:function(Dt){d(this.options,Dt);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Dt){if(p(Dt,"recognizeWith",this))return this;var gG=this.simultaneous;Dt=qZ(Dt,this);gG[Dt.id]||(gG[Dt.id]=Dt,Dt.recognizeWith(this));return this},
dropRecognizeWith:function(Dt){if(p(Dt,"dropRecognizeWith",this))return this;Dt=qZ(Dt,this);delete this.simultaneous[Dt.id];return this},
requireFailure:function(Dt){if(p(Dt,"requireFailure",this))return this;var gG=this.requireFail;Dt=qZ(Dt,this);l(gG,Dt)===-1&&(gG.push(Dt),Dt.requireFailure(this));return this},
dropRequireFailure:function(Dt){if(p(Dt,"dropRequireFailure",this))return this;Dt=qZ(Dt,this);Dt=l(this.requireFail,Dt);Dt>-1&&this.requireFail.splice(Dt,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Dt){return!!this.simultaneous[Dt.id]},
emit:function(Dt){function gG(cs){Xr.manager.emit(Xr.options.event+(cs?AS&16?"cancel":AS&8?"end":AS&4?"move":AS&2?"start":"":""),Dt)}
var Xr=this,AS=this.state;AS<8&&gG(!0);gG();AS>=8&&gG(!0)},
tryEmit:function(Dt){if(this.canEmit())return this.emit(Dt);this.state=32},
canEmit:function(){for(var Dt=0;Dt<this.requireFail.length;Dt++)if(!(this.requireFail[Dt].state&33))return!1;return!0},
recognize:function(Dt){Dt=d({},Dt);T(this.options.enable,[this,Dt])?(this.state&56&&(this.state=1),this.state=this.process(Dt),this.state&30&&this.tryEmit(Dt)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
A(DX,mS,{defaults:{pointers:1},attrTest:function(Dt){var gG=this.options.pointers;return gG===0||Dt.pointers.length===gG},
process:function(Dt){var gG=this.state,Xr=Dt.eventType,AS=gG&6;Dt=this.attrTest(Dt);return AS&&(Xr&8||!Dt)?gG|16:AS||Dt?Xr&4?gG|8:gG&2?gG|4:2:32}});
A(Th,DX,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Dt=this.options.direction;if(Dt===30)return["none"];var gG=[];Dt&6&&gG.push("pan-y");Dt&24&&gG.push("pan-x");return gG},
directionTest:function(Dt){var gG=this.options,Xr=!0,AS=Dt.distance,cs=Dt.direction,qj=Dt.deltaX,nj=Dt.deltaY;cs&gG.direction||(gG.direction&6?(cs=qj===0?1:qj<0?2:4,Xr=qj!=this.pX,AS=Math.abs(Dt.deltaX)):(cs=nj===0?1:nj<0?8:16,Xr=nj!=this.pY,AS=Math.abs(Dt.deltaY)));Dt.direction=cs;return Xr&&AS>gG.threshold&&cs&gG.direction},
attrTest:function(Dt){return DX.prototype.attrTest.call(this,Dt)&&(this.state&2||!(this.state&2)&&this.directionTest(Dt))},
emit:function(Dt){this.pX=Dt.deltaX;this.pY=Dt.deltaY;var gG=PN(Dt.direction);gG&&this.manager.emit(this.options.event+gG,Dt);this._super.emit.call(this,Dt)}});
A(R8,DX,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Dt){return this._super.attrTest.call(this,Dt)&&(Math.abs(Dt.scale-1)>this.options.threshold||this.state&2)},
emit:function(Dt){this._super.emit.call(this,Dt);Dt.scale!==1&&this.manager.emit(this.options.event+(Dt.scale<1?"in":"out"),Dt)}});
A(LE,mS,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Dt){var gG=this.options,Xr=Dt.pointers.length===gG.pointers,AS=Dt.distance<gG.threshold,cs=Dt.deltaTime>gG.time;this._input=Dt;if(!AS||!Xr||Dt.eventType&12&&!cs)this.reset();else if(Dt.eventType&1)this.reset(),this._timer=t(function(){this.state=8;this.tryEmit()},gG.time,this);
else if(Dt.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Dt){this.state===8&&(Dt&&Dt.eventType&4?this.manager.emit(this.options.event+"up",Dt):(this._input.timeStamp=vs(),this.manager.emit(this.options.event,this._input)))}});
A(Q8,DX,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Dt){return this._super.attrTest.call(this,Dt)&&(Math.abs(Dt.rotation)>this.options.threshold||this.state&2)}});
A(Tq,DX,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Th.prototype.getTouchAction.call(this)},
attrTest:function(Dt){var gG=this.options.direction;if(gG&30)var Xr=Dt.velocity;else gG&6?Xr=Dt.velocityX:gG&24&&(Xr=Dt.velocityY);return this._super.attrTest.call(this,Dt)&&gG&Dt.direction&&ah(Xr)>this.options.velocity&&Dt.eventType&4},
emit:function(Dt){var gG=PN(Dt.direction);gG&&this.manager.emit(this.options.event+gG,Dt);this.manager.emit(this.options.event,Dt)}});
A(Ed,mS,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Dt){var gG=this.options,Xr=Dt.pointers.length===gG.pointers,AS=Dt.distance<gG.threshold,cs=Dt.deltaTime<gG.time;this.reset();if(Dt.eventType&1&&this.count===0)return this.failTimeout();if(AS&&cs&&Xr){if(Dt.eventType!=4)return this.failTimeout();Xr=this.pTime?Dt.timeStamp-this.pTime<gG.interval:!0;AS=!this.pCenter||OB(this.pCenter,Dt.center)<gG.posThreshold;this.pTime=Dt.timeStamp;this.pCenter=Dt.center;AS&&Xr?this.count+=1:this.count=1;this._input=Dt;if(this.count%gG.taps===0)return this.hasRequireFailures()?
(this._timer=t(function(){this.state=8;this.tryEmit()},gG.interval,this),2):8}return 32},
failTimeout:function(){this._timer=t(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))}});
y8.VERSION="2.0.2";y8.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Q8,{enable:!1}],[R8,{enable:!1},["rotate"]],[Tq,{direction:6}],[Th,{direction:6},["swipe"]],[Ed],[Ed,{event:"doubletap",taps:2},["tap"]],[LE]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};mA.prototype={set:function(Dt){d(this.options,Dt);return this},
stop:function(Dt){this.session.stopped=Dt?2:1},
recognize:function(Dt){var gG=this.session;if(!gG.stopped){this.touchAction.preventDefaults(Dt);var Xr=this.recognizers,AS=gG.curRecognizer;if(!AS||AS&&AS.state&8)AS=gG.curRecognizer=null;for(var cs=0,qj=Xr.length;cs<qj;cs++){var nj=Xr[cs];gG.stopped===2||AS&&nj!=AS&&!nj.canRecognizeWith(AS)?nj.reset():nj.recognize(Dt);!AS&&nj.state&14&&(AS=gG.curRecognizer=nj)}}},
get:function(Dt){if(Dt instanceof mS)return Dt;for(var gG=this.recognizers,Xr=0;Xr<gG.length;Xr++)if(gG[Xr].options.event==Dt)return gG[Xr];return null},
add:function(Dt){if(p(Dt,"add",this))return this;var gG=this.get(Dt.options.event);gG&&this.remove(gG);this.recognizers.push(Dt);Dt.manager=this;this.touchAction.update();return Dt},
remove:function(Dt){if(p(Dt,"remove",this))return this;var gG=this.recognizers;Dt=this.get(Dt);gG.splice(l(gG,Dt),1);this.touchAction.update();return this},
on:function(Dt,gG){var Xr=this.handlers;Z(R(Dt),function(AS){Xr[AS]=Xr[AS]||[];Xr[AS].push(gG)});
return this},
off:function(Dt,gG){var Xr=this.handlers;Z(R(Dt),function(AS){gG?Xr[AS].splice(l(Xr[AS],gG),1):delete Xr[AS]});
return this},
emit:function(Dt,gG){this.options.domEvents&&oN(Dt,gG);var Xr=this.handlers[Dt]&&this.handlers[Dt].slice();if(Xr&&Xr.length){gG.type=Dt;gG.preventDefault=function(){gG.srcEvent.preventDefault()};
Dt=0;for(var AS=Xr.length;Dt<AS;Dt++)Xr[Dt](gG)}},
destroy:function(){this.element&&C$(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
d(y8,{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:mA,Input:g,TouchAction:JS,Recognizer:mS,AttrRecognizer:DX,Tap:Ed,Pan:Th,Swipe:Tq,Pinch:R8,Rotate:Q8,Press:LE,on:c,off:C,each:Z,merge:w,extend:d,inherit:A,bindFn:k,prefixed:a});
V[b]=y8})(window,document,"Hammer");
return window.Hammer}.call({});
Q.DOCUMENT=v;v[N3N]=Q}return v[N3N]};/*

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

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
*/
_.fh({_template:function(){if(DcX!==void 0)return DcX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;OoN===void 0&&(OoN=document.createElement("template"));var E=OoN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return DcX=v},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.u0,_.JC],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(v){this.$.textarea.selectionStart=v},set selectionEnd(v){this.$.textarea.selectionEnd=v},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var v=this.$.textarea.validity.valid;v&&(this.required&&this.value===""?v=!1:this.hasValidator()&&(v=_.u0.validate.call(this,this.value)));this.invalid=!v;this.fire("iron-input-validate");return v},
_bindValueChanged:function(v){this.value=v},
_valueChanged:function(v){var Q=this.textarea;Q&&(Q.value!==v&&(Q.value=v||v===0?v:""),this.bindValue=v,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(v){var Q=_.wi(v).path;this.value=Q?Q[0].value:v.target.value},
_constrain:function(v){var Q;v=v||[""];for(Q=this.maxRows>0&&v.length>this.maxRows?v.slice(0,this.maxRows):v.slice(0);this.rows>0&&Q.length<this.rows;)Q.push("");return Q.join("\n")+"\u00a0"},
_valueForMirror:function(){var v=this.textarea;if(v)return this.tokens=v&&v.value?v.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var R58;var n$Q;_.fh({_template:function(){if(n$Q!==void 0)return n$Q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;R58===void 0&&(R58=document.createElement("template"));var E=R58;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return n$Q=v},
is:"tp-yt-iron-collapse",behaviors:[_.WW],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(v,Q){v=v==="auto"?"":v;Q=Q&&!this.noAnimation&&this.isAttached&&this._desiredSize!==v;this._desiredSize=v;this._updateTransition(!1);Q&&(Q=this._calcSize(),v===""&&(this.style[this._dimensionMax]="",v=this._calcSize()),this.style[this._dimensionMax]=Q,this.scrollTop=this.scrollTop,this._updateTransition(!0),Q=v!==Q);this.style[this._dimensionMax]=v;Q||this._transitionEnd()},
enableTransition:function(v){_.SO._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!v},
_updateTransition:function(v){this.style.transitionDuration=v&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(v){_.wi(v).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var lya;var qcp;var ScZ=void 0,z5a={properties:{sizingTarget:{type:Object,value:function(){var v;return(v=this.hostElement)!=null?v:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var v,Q=_.wi((v=this.hostElement)!=null?v:
this).parentNode;Q&&Q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(Q=Q.host);return Q},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var v;this._memoizedIsRTL=window.getComputedStyle((v=this.hostElement)!=null?v:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var v;window.getComputedStyle((v=this.hostElement)!=null?v:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var v,Q=window.getComputedStyle((v=this.hostElement)!=null?v:this);v=window.getComputedStyle(this.sizingTarget);var V,E,b;this._fitInfo={inlineStyle:{top:((V=this.hostElement)!=null?V:this).style.top||"",left:((E=this.hostElement)!=null?E:this).style.left||"",position:((b=this.hostElement)!=null?b:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:Q.top!=="auto"?"top":Q.bottom!=="auto"?"bottom":null,horizontally:Q.left!=="auto"?"left":Q.right!=="auto"?"right":null},sizedBy:{height:v.maxHeight!=="none",width:v.maxWidth!=="none",minWidth:parseInt(v.minWidth,10)||0,minHeight:parseInt(v.minHeight,10)||0},margin:{top:parseInt(Q.marginTop,10)||0,right:parseInt(Q.marginRight,10)||0,bottom:parseInt(Q.marginBottom,10)||0,left:parseInt(Q.marginLeft,10)||0}}}},
resetFit:function(){var v=this._fitInfo||{},Q;for(Q in v.sizerInlineStyle)this.sizingTarget.style[Q]=v.sizerInlineStyle[Q];for(Q in v.inlineStyle){var V=void 0;((V=this.hostElement)!=null?V:this).style[Q]=v.inlineStyle[Q]}this._fitInfo=null},
refit:function(){var v=this.sizingTarget.scrollLeft,Q=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=v;this.sizingTarget.scrollTop=Q},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var v;((v=this.hostElement)!=null?v:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var Q;((Q=this.hostElement)!=null?Q:this).style.left="0px";var V;((V=this.hostElement)!=null?V:this).style.top="0px";var E,b=((E=this.hostElement)!=null?E:this).getBoundingClientRect();Q=this.__getNormalizedRect(this.positionTarget);E=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(E={left:E.left+24,right:E.right-24,top:E.top+24,bottom:E.bottom-24});if(this.expandSizingTargetForScrollbars){var F=this.sizingTarget.offsetWidth;var t=this.sizingTarget.offsetHeight;var p=this.sizingTarget.clientWidth;var Z=this.sizingTarget.clientHeight}v=this._fitInfo.margin;Q=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:b.width+v.left+v.right,height:b.height+v.top+v.bottom},b,Q,E);var d=Q.left+v.left,w=Q.top+v.top;V=Math.min(E.right-v.right,d+b.width);var A=Math.min(E.bottom-
v.bottom,w+b.height);d=Math.max(E.left+v.left,Math.min(d,V-this._fitInfo.sizedBy.minWidth));w=Math.max(E.top+v.top,Math.min(w,A-this._fitInfo.sizedBy.minHeight));V=Math.max(V-d,this._fitInfo.sizedBy.minWidth);A=Math.max(A-w,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=V+"px";this.sizingTarget.style.maxHeight=A+"px";d-=b.left;b=w-b.top;var k;((k=this.hostElement)!=null?k:this).style.left=d+"px";var T;((T=this.hostElement)!=null?T:this).style.top=b+"px";if(this.expandSizingTargetForScrollbars){k=
this.sizingTarget.offsetHeight;t=k-this.sizingTarget.clientHeight-(t-Z);if(t>0){this.sizingTarget.style.maxHeight=Math.min(E.height-v.top-v.bottom,A+t)+"px";t=this.sizingTarget.offsetHeight;Z=t-k;var c;Q.verticalAlign==="top"?c=b:Q.verticalAlign==="middle"?c=b-Z/2:Q.verticalAlign==="bottom"&&(c=b-Z);c=Math.max(E.top+v.top,Math.min(c,E.bottom-v.bottom-t));var C;((C=this.hostElement)!=null?C:this).style.top=c+"px"}c=this.sizingTarget.offsetWidth;F=c-this.sizingTarget.clientWidth-(F-p);if(F>0){ScZ!==
void 0?p=ScZ:(p=document.createElement("div"),Object.assign(p.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),C=document.createElement("div"),C.style.width="200px",C.style.height="200px",p.appendChild(C),document.body.appendChild(p),ScZ=Math.abs(p.offsetWidth-100)>1?p.offsetWidth-p.clientWidth:0,document.body.removeChild(p),p=ScZ);this.sizingTarget.style.maxWidth=Math.min(E.width-v.left-v.right,V+F-p)+"px";F=this.sizingTarget.offsetWidth+p;p=F-c;var R;
Q.horizontalAlign==="left"?R=d:Q.horizontalAlign==="center"?R=d-p/2:Q.horizontalAlign==="right"&&(R=d-p);R=Math.max(E.left+v.left,Math.min(R,E.right-v.right-F));var l;((l=this.hostElement)!=null?l:this).style.left=R+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var v=this._fitInfo;if(!v.positionedBy.vertically){var Q;((Q=this.hostElement)!=null?Q:this).style.position="fixed";var V;((V=this.hostElement)!=null?V:this).style.top="0px"}if(!v.positionedBy.horizontally){var E;((E=this.hostElement)!=null?E:this).style.position="fixed";var b;((b=this.hostElement)!=null?b:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var F;Q=((F=this.hostElement)!=null?F:this).getBoundingClientRect();
v.sizedBy.height||this.__sizeDimension(Q,v.positionedBy.vertically,"top","bottom","Height");v.sizedBy.width||this.__sizeDimension(Q,v.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(v,Q,V,E,b){this.__sizeDimension(v,Q,V,E,b)},
__sizeDimension:function(v,Q,V,E,b){var F=this._fitInfo,t=this.__getNormalizedRect(this.fitInto);t=b==="Width"?t.width:t.height;v=(Q=Q===E)?t-v[E]:v[V];V=F.margin[Q?V:E];E="offset"+b;var p;F=((p=this.hostElement)!=null?p:this)[E]-this.sizingTarget[E];this.sizingTarget.style["max"+b]=t-V-v-F+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var v=this._fitInfo.positionedBy;if(!v.vertically||!v.horizontally){var Q;((Q=this.hostElement)!=null?Q:this).style.position="fixed";if(!v.vertically){var V;((V=this.hostElement)!=null?V:this).style.top="0px"}if(!v.horizontally){var E;((E=this.hostElement)!=null?E:this).style.left="0px"}var b;Q=((b=this.hostElement)!=null?b:this).getBoundingClientRect();b=this.__getNormalizedRect(this.fitInto);if(!v.vertically){V=b.top-Q.top+(b.height-
Q.height)/2;var F;((F=this.hostElement)!=null?F:this).style.top=V+"px"}if(!v.horizontally){v=b.left-Q.left+(b.width-Q.width)/2;var t;((t=this.hostElement)!=null?t:this).style.left=v+"px"}}}},
__getNormalizedRect:function(v){return v===document.documentElement||v===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:v.getBoundingClientRect()},
__getOffscreenArea:function(v,Q,V){return Math.abs(Math.min(0,v.top)+Math.min(0,V.bottom-(v.top+Q.height)))*Q.width+Math.abs(Math.min(0,v.left)+Math.min(0,V.right-(v.left+Q.width)))*Q.height},
__getPosition:function(v,Q,V,E,b,F){var t=[{verticalAlign:"top",horizontalAlign:"left",top:b.top+this.verticalOffset,left:b.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:b.top+this.verticalOffset,left:b.right-V.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:b.bottom-V.height-this.verticalOffset,left:b.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:b.bottom-V.height-this.verticalOffset,left:b.right-V.width-
this.horizontalOffset}];if(this.noOverlap){for(var p=0,Z=t.length;p<Z;p++){var d={},w;for(w in t[p])d[w]=t[p][w];t.push(d)}t[0].top=t[1].top+=b.height;t[2].top=t[3].top-=b.height;t[4].left=t[6].left+=b.width;t[5].left=t[7].left-=b.width}Q=Q==="auto"?null:Q;v=v==="auto"?null:v;v&&v!=="center"||(t.push({verticalAlign:"top",horizontalAlign:"center",top:b.top+this.verticalOffset+(this.noOverlap?b.height:0),left:b.left-E.width/2+b.width/2+this.horizontalOffset}),t.push({verticalAlign:"bottom",horizontalAlign:"center",
top:b.bottom-V.height-this.verticalOffset-(this.noOverlap?b.height:0),left:b.left-E.width/2+b.width/2+this.horizontalOffset}));Q&&Q!=="middle"||(t.push({verticalAlign:"middle",horizontalAlign:"left",top:b.top-E.height/2+b.height/2+this.verticalOffset,left:b.left+this.horizontalOffset+(this.noOverlap?b.width:0)}),t.push({verticalAlign:"middle",horizontalAlign:"right",top:b.top-E.height/2+b.height/2+this.verticalOffset,left:b.right-V.width-this.horizontalOffset-(this.noOverlap?b.width:0)}));Q==="middle"&&
v==="center"&&t.push({verticalAlign:"middle",horizontalAlign:"center",top:b.top-E.height/2+b.height/2+this.verticalOffset,left:b.left-E.width/2+b.width/2+this.horizontalOffset});for(p=0;p<t.length;p++){E=t[p];b=E.verticalAlign===Q;Z=E.horizontalAlign===v;if(!this.dynamicAlign&&!this.noOverlap&&b&&Z){var A=E;break}d=(!Q||b)&&(!v||Z);if(this.dynamicAlign||d){E.offscreenArea=this.__getOffscreenArea(E,V,F);if(E.offscreenArea===0&&d){A=E;break}E.alignsOk=b+Z;A=A||E;b=E.offscreenArea-A.offscreenArea;if(b<
0||b===0&&E.alignsOk>A.alignsOk)A=E}}return A}};/*

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 VS,JZV,N2A;VS=Element.prototype;JZV=VS.matches||VS.matchesSelector||VS.mozMatchesSelector||VS.msMatchesSelector||VS.oMatchesSelector||VS.webkitMatchesSelector;N2A=function(){};
_.B28=function(v){var Q=xcq,V=[];return Q._collectTabbableNodes(v,V)?Q._sortByTabIndex(V):V};
_.K=N2A.prototype;_.K.isFocusable=function(v){return JZV.call(v,"input, select, textarea, button, object")?JZV.call(v,":not([disabled])"):JZV.call(v,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.K._normalizedTabIndex=function(v){return this.isFocusable(v)?(v=v.getAttribute("tabindex")||0,Number(v)):-1};
_.K._collectTabbableNodes=function(v,Q){if(v.nodeType!==Node.ELEMENT_NODE||!this._isVisible(v))return!1;var V=this._normalizedTabIndex(v),E=V>0;V>=0&&Q.push(v);if(v.localName==="content"||v.localName==="slot")V=_.wi(v).getDistributedNodes();else{var b;V=((b=_.wi(v).shadowRoot)!=null?b:_.wi(v.root||v)).children}for(v=0;v<V.length;v++)E=this._collectTabbableNodes(V[v],Q)||E;return E};
_.K._isVisible=function(v){var Q=v.style;return Q.visibility!=="hidden"&&Q.display!=="none"?(Q=window.getComputedStyle(v),Q.visibility!=="hidden"&&Q.display!=="none"):!1};
_.K._sortByTabIndex=function(v){var Q=v.length;if(Q<2)return v;var V=Math.ceil(Q/2);Q=this._sortByTabIndex(v.slice(0,V));v=this._sortByTabIndex(v.slice(V));return this._mergeSortByTabIndex(Q,v)};
_.K._mergeSortByTabIndex=function(v,Q){for(var V=[];v.length>0&&Q.length>0;)this._hasLowerTabOrder(v[0],Q[0])?V.push(Q.shift()):V.push(v.shift());return V.concat(v,Q)};
_.K._hasLowerTabOrder=function(v,Q){v=Math.max(v.tabIndex,0);Q=Math.max(Q.tabIndex,0);return v===0||Q===0?Q>v:v>Q};
var xcq=new N2A;var g$A;var sMa;_.fh({_template:function(){if(sMa!==void 0)return sMa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;g$A===void 0&&(g$A=document.createElement("template"));var E=g$A;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return sMa=v},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.wi(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.wi(this.parentNode).removeChild(this)},
_onTransitionend:function(v){v&&v.target===this&&this.complete()},
_openedChanged:function(v){v?this.prepare():(v=window.getComputedStyle(this),v.transitionDuration!=="0s"&&v.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var Ev=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;rX(document.documentElement,"tap",function(){});
document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)};
Ev.prototype._bringOverlayAtIndexToFront=function(v){var Q=this._overlays[v];if(Q){var V=this._overlays.length-1,E=this._overlays[V];E&&this._shouldBeBehindOverlay(Q,E)&&V--;if(!(v>=V)){E=Math.max(this._getZ(_.uZq(this)),this._minimumZ);for(this._getZ(Q)<=E&&this._applyOverlayZ(Q,E);v<V;)this._overlays[v]=this._overlays[v+1],v++;this._overlays[V]=Q}}};
Ev.prototype.addOverlay=function(v){var Q=this._overlays.indexOf(v);if(Q>=0)this._bringOverlayAtIndexToFront(Q);else{Q=this._overlays.length;var V=this._overlays[Q-1],E=Math.max(this._getZ(V),this._minimumZ),b=this._getZ(v);V&&this._shouldBeBehindOverlay(v,V)&&(this._applyOverlayZ(V,E),Q--,E=Math.max(this._getZ(this._overlays[Q-1]),this._minimumZ));b<=E&&this._applyOverlayZ(v,E);this._overlays.splice(Q,0,v)}this.trackBackdrop()};
Ev.prototype.removeOverlay=function(v){v=this._overlays.indexOf(v);v!==-1&&(this._overlays.splice(v,1),this.trackBackdrop())};
_.uZq=function(v){return v._overlays[v._overlays.length-1]};
_.K=Ev.prototype;_.K.trackBackdrop=function(){var v=this._overlayWithBackdrop();if(v||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(v)-1,this.backdropElement.opened=!!v,this.backdropElement.prepare()};
_.K._overlayWithBackdrop=function(){for(var v=this._overlays.length-1;v>=0;v--)if(this._overlays[v].withBackdrop)return this._overlays[v]};
_.K._getZ=function(v){var Q=this._minimumZ;if(v){var V,E,b=Number(((V=v.hostElement)!=null?V:v).style.zIndex||window.getComputedStyle((E=v.hostElement)!=null?E:v).zIndex);b===b&&(Q=b)}return Q};
_.K._setZ=function(v,Q){var V;((V=v.hostElement)!=null?V:v).style.zIndex=Q};
_.K._applyOverlayZ=function(v,Q){this._setZ(v,Q+2)};
_.K._overlayInPath=function(v){v=v||[];for(var Q=0;Q<v.length;Q++){var V=void 0;if(((V=v[Q].polymerController)!=null?V:v[Q])._manager===this)return v[Q]}};
_.K._onCaptureClick=function(v){var Q=this._overlays.length-1;if(Q!==-1)for(var V=_.wi(v).path,E,b;(E=this._overlays[Q])&&this._overlayInPath(V)!==((b=E.hostElement)!=null?b:E);)if(E._onCaptureClick(v),E.allowClickThrough)Q--;else break};
_.K._onCaptureFocus=function(v){var Q=_.uZq(this);Q&&Q._onCaptureFocus(v)};
_.K._onCaptureKeyDown=function(v){var Q=_.uZq(this);Q&&(_.zI.keyboardEventMatchesKeys(v,"esc")?Q._onCaptureEsc(v):_.zI.keyboardEventMatchesKeys(v,"tab")&&Q._onCaptureTab(v))};
_.K._shouldBeBehindOverlay=function(v,Q){return!v.alwaysOnTop&&Q.alwaysOnTop&&!Q.contains(v)};
_.hr.Object.defineProperties(Ev.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var v=document.activeElement;v&&v instanceof Element!==!1||(v=document.body);for(;v.root&&_.wi(v.root).activeElement;)v=_.wi(v.root).activeElement;return v}}});
_.b7=new Ev;var Ac9=0,kjT=0,T9B=null,Y59=[],AY=["wheel","mousewheel","DOMMouseScroll"],ycQ;_.Y("web_no_lock_on_touchstart_killswitch")&&(AY.push("touchstart"),AY.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;_.Ff={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:_.b7},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var v;return this._focusedChild||_.wi((v=this.hostElement)!=null?v:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var v;return _.B28((v=this.hostElement)!=null?v:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var v;this._observer=_.wi((v=this.hostElement)!=null?v:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var v;_.wi((v=this.hostElement)!=null?v:this).unobserveNodes(this._observer)}this._observer=null;for(var Q in this.__rafs)this.__rafs[Q]!==null&&cancelAnimationFrame(this.__rafs[Q]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(v){this.fire("iron-overlay-canceled",v,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var v;((v=this.hostElement)!=null?v:this).style.outline="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display="none"}},
_openedChanged:function(v){if(v){var Q;((Q=this.hostElement)!=null?Q: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 v;if(this.withBackdrop&&!((v=this.hostElement)!=null?v:this).hasAttribute("tabindex")){var Q;((Q=this.hostElement)!=null?Q: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 v;((v=this.hostElement)!=null?v:this).style.display="none";var Q;((Q=this.hostElement)!=null?Q:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var v,Q;((v=this.hostElement)!=null?v:this).style.transition=((Q=this.hostElement)!=null?Q:this).style.webkitTransition="none";var V,E;((V=this.hostElement)!=null?V:this).style.transform=((E=this.hostElement)!=null?E:this).style.webkitTransform="none";var b;((b=this.hostElement)!=null?b:this).style.display=""},
_finishPositioning:function(){var v;((v=this.hostElement)!=null?v:this).style.display="none";this.scrollTop=this.scrollTop;var Q,V;((Q=this.hostElement)!=null?Q:this).style.transition=((V=this.hostElement)!=null?V:this).style.webkitTransition="";var E,b;((E=this.hostElement)!=null?E:this).style.transform=((b=this.hostElement)!=null?b:this).style.webkitTransform="";var F;((F=this.hostElement)!=null?F:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var v=this._manager.deepActiveElement,Q;if(!(Q=v===document.body))a:{for(;v;v=v.assignedSlot||v.parentNode||v.host)if(v===this){Q=!0;break a}Q=!1}Q&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(v){this.noCancelOnOutsideClick||this.cancel(v)},
_onCaptureFocus:function(v){if(this.withBackdrop){var Q=_.wi(v).path;Q.indexOf(this)===-1?(v.stopPropagation(),this._applyFocus()):this._focusedChild=Q[0]}},
_onCaptureEsc:function(v){this.noCancelOnEscKey||this.cancel(v)},
_onCaptureTab:function(v){if(this.withBackdrop){this.__ensureFirstLastFocusables();var Q=v.shiftKey,V=Q?this.__firstFocusableNode:this.__lastFocusableNode;Q=Q?this.__lastFocusableNode:this.__firstFocusableNode;if(V===Q)V=!0;else{var E=this._manager.deepActiveElement;V=E===V||E===this}V&&(v.preventDefault(),this._focusedChild=Q,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var v=this._focusableNodes;this.__firstFocusableNode=v[0];this.__lastFocusableNode=v[v.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(v,Q){var V=this.__rafs;V[v]!==null&&cancelAnimationFrame(V[v]);V[v]=requestAnimationFrame(function(){V[v]=null;Q.call(this)}.bind(this))},
__updateScrollObservers:function(v,Q,V){v&&Q&&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),ycQ=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(v=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),v!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(v,1),ycQ=_._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(V0)for(var v=this;v;)v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&v.host&&this.__rootNodes.push(v),v=v.host||v.assignedSlot||v.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(Q){Q.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(v){v.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(v){return v==="lock"||v==="refit"||v==="cancel"},
__onCaptureScroll:function(v){if(!(this.__isAnimating||_.wi(v).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(v)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.Kd=[z5a,_.WW,_.Ff];_.fh({_template:function(){if(qcp!==void 0)return qcp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;lya===void 0&&(lya=document.createElement("template"));var E=lya;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return qcp=v},
is:"tp-yt-iron-dropdown",behaviors:[_.JC,_.zI,_.Kd,VmZ],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var v=_.wi(this.$.content).getDistributedNodes(),Q=0,V=v.length;Q<V;Q++)if(v[Q].nodeType===Node.ELEMENT_NODE)return v[Q]},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(),_.Ff._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Ff._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Ff._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var v=this.containedElement,Q=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),V=0;V<Q.length;V++)Q[V].node=v;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(v){this._readied&&(v?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var v=this.focusTarget||this.containedElement;v&&this.opened&&!this.noAutoFocus?v.focus():_.Ff._applyFocus.apply(this,arguments)}});var jMa;var WwX;/*

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 o$p=new _.gm({type:"iconset"});
_.fh({_template:function(){if(WwX!==void 0)return WwX;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;jMa===void 0&&(jMa=document.createElement("template"));
var E=jMa;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return WwX=v},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(v){v=(v||"").split(":");this._iconName=v.pop();this._iconsetName=v.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.wi(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=o$p.byKey(this._iconsetName)){var v=this._iconset.applyIcon(this,this._iconName,this.theme);v&&v.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.wi(this.root).appendChild(this._img)}});var X7A;var ayN;_.fh({_template:function(){if(ayN!==void 0)return ayN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;X7A===void 0&&(X7A=document.createElement("template"));var E=X7A;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return ayN=v},
is:"tp-yt-iron-input",behaviors:[_.u0],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(){_.QS.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.wi(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.wi(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var v=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":v=/[0-9.,e-]/}return v},_bindValueChanged:function(v,Q){Q&&(v===void 0?Q.value=null:v!==Q.value&&(this.inputElement.value=v),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:v}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(v){var Q=v.keyCode==19||v.keyCode==20||v.keyCode==45||v.keyCode==46||v.keyCode==144||v.keyCode==145||v.keyCode>32&&v.keyCode<41||v.keyCode>111&&v.keyCode<124;return!(v.keyCode==8||v.keyCode==9||v.keyCode==13||v.keyCode==27)&&!(v.charCode==0&&Q)},
_onKeypress:function(v){if(this.allowedPattern||this.inputElement.type==="number"){var Q=this._patternRegExp;if(Q&&!(v.metaKey||v.ctrlKey||v.altKey)){this._patternAlreadyChecked=!0;var V=String.fromCharCode(v.charCode);this._isPrintable(v)&&!Q.test(V)&&(v.preventDefault(),this._announceInvalidCharacter("Invalid character "+V+" not entered."))}}},
_checkPatternValidity:function(){var v=this._patternRegExp;if(!v)return!0;for(var Q=0;Q<this.inputElement.value.length;Q++)if(!v.test(this.inputElement.value[Q]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var v=this.inputElement.checkValidity();v&&(this.required&&this.bindValue===""?v=!1:this.hasValidator()&&(v=_.u0.validate.call(this,this.bindValue)));this.invalid=!v;this.fire("iron-input-validate");return v},
_announceInvalidCharacter:function(v){this.fire("iron-announce",{text:v})},
_computeValue:function(v){return v}});var rZa;var $cx;var IyR=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),HoA=IyR&&IyR[1]>=8;
_.fh({_template:function(){if($cx!==void 0)return $cx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;rZa===void 0&&(rZa=document.createElement("template"));var E=rZa;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return $cx=v},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[IJZ,_.WW,_.QqQ,NEV],_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 _.wi(_.wi(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var v=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,v-this._physicalCount)},set _virtualStart(v){v=this._clamp(v,0,this._maxVirtualStart);this.grid&&(v-=v%this._itemsPerRow);this._virtualStartVal=v},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(v){v%=this._physicalCount;v<0&&(v=this._physicalCount+v);this.grid&&(v-=v%this._itemsPerRow);this._physicalStartVal=v},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(v){this._physicalCountVal=v},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var v=this._firstVisibleIndexVal;if(v==null){var Q=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
v=this._iterateItems(function(V,E){Q+=this._getPhysicalSizeIncrement(V);if(Q>this._scrollPosition)return this.grid?E-E%this._itemsPerRow:E;if(this.grid&&this._virtualCount-1===E)return E-E%this._itemsPerRow})||0}return v},
get lastVisibleIndex(){var v=this._lastVisibleIndexVal;if(v==null){if(this.grid)v=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var Q=this._physicalTop+this._scrollOffset;this._iterateItems(function(V,E){Q<this._scrollBottom&&(v=E);Q+=this._getPhysicalSizeIncrement(V)})}this._lastVisibleIndexVal=v}return v},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.AR);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(v){this.style.webkitOverflowScrolling=v===this?"touch":"";this.style.overflowY=v===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.AR)},
updateViewportBoundaries:function(){var v=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(v["padding-top"],10);this._isRTL=v.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var v=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),Q=v-this._scrollPosition,V=Q>=0;this._scrollPosition=v;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(Q)>this._physicalSize&&this._physicalSize>0?(Q-=this._scrollOffset,V=Math.round(Q/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&&(v=this._getReusables(V),V?(this._physicalTop=v.physicalTop,this._virtualStart+=v.indexes.length,this._physicalStart+=v.indexes.length):(this._virtualStart=this._virtualStart-v.indexes.length,this._physicalStart=this._physicalStart-v.indexes.length),this._update(v.indexes,V?null:v.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ha))},
_getReusables:function(v){var Q=[],V=this._hiddenContentSize*this._ratio,E=this._virtualStart,b=this._virtualEnd,F=this._physicalCount,t=this._physicalTop+this._scrollOffset;var p=this._physicalBottom+this._scrollOffset;var Z=this._scrollPosition,d=this._scrollBottom;if(v){var w=this._physicalStart;p=Z-t}else w=this._physicalEnd,p-=d;for(;;){var A=this._getPhysicalSizeIncrement(w);p-=A;if(Q.length>=F||p<=V)break;if(v){if(b+Q.length+1>=this._virtualCount)break;if(t+A>=Z-this._scrollOffset)break;Q.push(w);
t+=A;w=(w+1)%F}else{if(E-Q.length<=0)break;if(t+this._physicalSize-A<=d)break;Q.push(w);t-=A;w=w===0?F-1:w-1}}return{indexes:Q,physicalTop:t-this._scrollOffset}},
_update:function(v,Q){if(!(v&&v.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(v);this._updateMetrics(v);if(Q)for(;Q.length;)v=Q.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(v);this._positionItems();this._updateScrollerSize()}},
_createPool:function(v){this._ensureTemplatized();var Q,V=Array(v);for(Q=0;Q<v;Q++){var E=this.stamp(null);V[Q]=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}return V},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(v){v=this._clamp(this._physicalCount+v,3,this._virtualCount-this._virtualStart);v=this._convertIndexToCompleteRow(v);if(this.grid){var Q=v%this._itemsPerRow;Q&&v-Q<=this._physicalCount&&(v+=this._itemsPerRow);v-=Q}v-=this._physicalCount;Q=Math.round(this._physicalCount*.5);if(!(v<0)){if(v>0){Q=window.performance.now();[].push.apply(this._physicalItems,this._createPool(v));for(var V=0;V<v;V++)this._physicalSizes.push(0);this._physicalCount+=v;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=v);this._update();this._templateCost=(window.performance.now()-Q)/v;Q=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||Q===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,Q)),kPV):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,Q),Ha))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var v=this._getReusables(!0);this._physicalTop=v.physicalTop;this._virtualStart+=v.indexes.length;this._physicalStart+=v.indexes.length;this._update(v.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var v={__key__:!0};v[this.as]=!0;v[this.indexAs]=!0;v[this.selectedAs]=!0;v.tabIndex=!0;this._instanceProps=v;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(v,Q){typeof Q!=="undefined"&&(this.notifyResize(),_.yg(),v&&this._updateGridMetrics())},
_itemsChanged:function(v){if(v.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.AR);else if(v.path==="items.splices"){this._adjustVirtualIndex(v.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(v.value.indexSplices.some(function(V){return V.addedCount>0||V.removed.length>0})){var Q=this._getActiveElement();
this.contains(Q)&&Q.blur()}v=v.value.indexSplices.some(function(V){return V.index+V.addedCount>=this._virtualStart&&V.index<=this._virtualEnd},this);
this._isClientFull()&&!v||this._debounce("_render",this._render,_.AR)}else v.path!=="items.length"&&this._forwardItemPath(v.path,v.value)},
_forwardItemPath:function(v,Q){v=v.slice(6);var V=v.indexOf(".");V===-1&&(V=v.length);var E,b=this.modelForElement(this._offscreenFocusedItem),F=parseInt(v.substring(0,V),10);if(E=this._isIndexRendered(F)){var t=this._getPhysicalIndex(F);var p=this.modelForElement(this._physicalItems[t])}else b&&(p=b);p&&p[this.indexAs]===F&&(v=v.substring(V+1),v=this.as+(v?"."+v:""),p._setPendingPropertyOrPath(v,Q,!1,!0),p._flushProperties&&p._flushProperties(),E&&(this._updateMetrics([t]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(v){v.forEach(function(Q){Q.removed.forEach(this._removeItem,this);Q.index<this._virtualStart&&(Q=Math.max(Q.addedCount-Q.removed.length,Q.index-this._virtualStart),this._virtualStart+=Q,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=Q))},this)},
_removeItem:function(v){this.$.selector.deselect(v);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===v&&this._removeFocusedItem()},
_iterateItems:function(v,Q){var V,E;if(arguments.length===2&&Q)for(E=0;E<Q.length;E++){var b=Q[E];var F=this._computeVidx(b);if((V=v.call(this,b,F))!=null)return V}else{b=this._physicalStart;for(F=this._virtualStart;b<this._physicalCount;b++,F++)if((V=v.call(this,b,F))!=null)return V;for(b=0;b<this._physicalStart;b++,F++)if((V=v.call(this,b,F))!=null)return V}},
_computeVidx:function(v){return v>=this._physicalStart?this._virtualStart+(v-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+v},
_assignModels:function(v){this._iterateItems(function(Q,V){var E=this._physicalItems[Q],b=this.items&&this.items[V];if(b!=null){var F=this.modelForElement(E);F.__key__=null;this._forwardProperty(F,this.as,b);this._forwardProperty(F,this.selectedAs,this.$.selector.isSelected(b));this._forwardProperty(F,this.indexAs,V);this._forwardProperty(F,"tabIndex",this._focusedVirtualIndex===V?0:-1);this._physicalIndexForKey[F.__key__]=Q;F._flushProperties&&F._flushProperties(!0);E.removeAttribute("hidden")}else E.setAttribute("hidden",
"")},v)},
_updateMetrics:function(v){_.yg();var Q=0,V=0,E=this._physicalAverageCount,b=this._physicalAverage;this._iterateItems(function(F){V+=this._physicalSizes[F];this._physicalSizes[F]=this._physicalItems[F].offsetHeight;Q+=this._physicalSizes[F];this._physicalAverageCount+=this._physicalSizes[F]?1:0},v);
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+Q-V,this._itemsPerRow=1);this._physicalAverageCount!==E&&(this._physicalAverage=Math.round((b*E+Q)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var v=this._physicalTop;if(this.grid){var Q=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(V,E){var b=Math.floor(E%this._itemsPerRow*this._itemWidth+Q);this._isRTL&&(b*=-1);this.translate3d(b+"px",v+"px",0,this._physicalItems[V]);this._shouldRenderNextRow(E)&&(v+=this._rowHeight)})}else this._iterateItems(function(V){this.translate3d(0,v+"px",0,this._physicalItems[V]);
v+=this._physicalSizes[V]})},
_getPhysicalSizeIncrement:function(v){return this.grid?this._computeVidx(v)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[v]},
_shouldRenderNextRow:function(v){return v%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var v=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(v!==0){this._physicalTop=this._physicalTop-v;var Q=this._scrollPosition;!HoA&&Q>0&&this._resetScrollPosition(Q-v)}},
_resetScrollPosition:function(v){this.scrollTarget&&v>=0&&(this._scrollPosition=this._scrollTop=v)},
_updateScrollerSize:function(v){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((v=(v=(v=v||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(v){return this.scrollToIndex(this.items.indexOf(v))},
scrollToIndex:function(v){if(!(typeof v!=="number"||v<0||v>this.items.length-1)&&(_.yg(),this._physicalCount!==0)){v=this._clamp(v,0,this._virtualCount-1);if(!this._isIndexRendered(v)||v>=this._maxVirtualStart)this._virtualStart=this.grid?v-this._itemsPerRow*2:v-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var Q=this._physicalStart,V=this._virtualStart,E=0,b=this._hiddenContentSize;V<v&&
E<=b;)E+=this._getPhysicalSizeIncrement(Q),Q=(Q+1)%this._physicalCount,V++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+E);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.AR)},
selectItem:function(v){return this.selectIndex(this.items.indexOf(v))},
selectIndex:function(v){if(!(v<0||v>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(v)){var Q=this.modelForElement(this._physicalItems[this._getPhysicalIndex(v)]);Q&&(Q[this.selectedAs]=!0);this.updateSizeForIndex(v)}this.$.selector.selectIndex(v)}},
deselectItem:function(v){return this.deselectIndex(this.items.indexOf(v))},
deselectIndex:function(v){v<0||v>=this._virtualCount||(this._isIndexRendered(v)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(v)])[this.selectedAs]=!1,this.updateSizeForIndex(v)),this.$.selector.deselectIndex(v))},
toggleSelectionForItem:function(v){return this.toggleSelectionForIndex(this.items.indexOf(v))},
toggleSelectionForIndex:function(v){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(v):this.$.selector.isSelected(this.items[v]))?this.deselectIndex(v):this.selectIndex(v)},
clearSelection:function(){this._iterateItems(function(v){this.modelForElement(this._physicalItems[v])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(v){(v?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(v){var Q=this.modelForElement(v.target);if(Q){var V=_.wi(v).path[0];v=this._getActiveElement();var E=this._physicalItems[this._getPhysicalIndex(Q[this.indexAs])];if(V.localName!=="input"&&V.localName!=="button"&&V.localName!=="select"){V=Q.tabIndex;Q.tabIndex=-100;var b=v?v.tabIndex:-1;Q.tabIndex=V;v&&E!==v&&E.contains(v)&&b!==-100||this.toggleSelectionForItem(Q[this.as])}}},
_multiSelectionChanged:function(v){this.clearSelection();this.$.selector.multi=v},
updateSizeForItem:function(v){return this.updateSizeForIndex(this.items.indexOf(v))},
updateSizeForIndex:function(v){if(!this._isIndexRendered(v))return null;this._updateMetrics([this._getPhysicalIndex(v)]);this._positionItems();return null},
_manageFocus:function(){var v=this._focusedVirtualIndex;v>=0&&v<this._virtualCount?this._isIndexRendered(v)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(v){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(v/this._itemsPerRow)*this._itemsPerRow:v},
_isIndexRendered:function(v){return v>=this._virtualStart&&v<=this._virtualEnd},
_isIndexVisible:function(v){return v>=this.firstVisibleIndex&&v<=this.lastVisibleIndex},
_getPhysicalIndex:function(v){return(this._physicalStart+(v-this._virtualStart))%this._physicalCount},
focusItem:function(v){this._focusPhysicalItem(v)},
_focusPhysicalItem:function(v){if(!(v<0||v>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(v)||this.scrollToIndex(v);var Q=this._physicalItems[this._getPhysicalIndex(v)],V=this.modelForElement(Q),E;V.tabIndex=-100;Q.tabIndex===-100&&(E=Q);E||(E=_.wi(Q).querySelector('[tabindex="-100"]'));V.tabIndex=0;this._focusedVirtualIndex=v;E&&E.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var v=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var Q=this.stamp(null);this._focusBackfillItem=Q.root.querySelector("*");this._itemsParent.appendChild(Q.root)}this._offscreenFocusedItem=this._physicalItems[v];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[v]=this._focusBackfillItem;this._focusedPhysicalIndex=v;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var v=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),Q=this._physicalItems[v];if(Q){var V=this.modelForElement(Q),E=this.modelForElement(this._offscreenFocusedItem);V[this.as]===E[this.as]?(this._focusBackfillItem=Q,V.tabIndex=-1,this._physicalItems[v]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(v){v=this.modelForElement(v.target);var Q=this.modelForElement(this._focusedItem),V=this._offscreenFocusedItem!==null,E=this._focusedVirtualIndex;v&&(Q===v?this._isIndexVisible(E)||this.scrollToIndex(E):(this._restoreFocusedItem(),Q&&(Q.tabIndex=-1),v.tabIndex=0,this._focusedVirtualIndex=E=v[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(E),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],V&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(v){switch(v.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&v.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&v.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(v)}},
_clamp:function(v,Q,V){return Math.min(V,Math.max(Q,v))},
_debounce:function(v,Q,V){this._debouncers=this._debouncers||{};this._debouncers[v]=_.w9(this._debouncers[v],V,Q.bind(this));_.Ac(this._debouncers[v])},
_forwardProperty:function(v,Q,V){v._setPendingProperty(Q,V)},
_forwardHostPropV2:function(v,Q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).forwardHostProp(v,Q)},this)},
_notifyInstancePropV2:function(v,Q,V){CA0(this.as,Q)&&(v=v[this.indexAs],Q==this.as&&(this.items[v]=V),this.notifyPath(nW(this.as,"items."+v,Q),V))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(v,Q,V){Q.indexOf(this.as+".")===0&&this.notifyPath("items."+v.__key__+"."+Q.slice(this.as.length+1),V)},
_forwardParentPath:function(v,Q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).notifyPath(v,Q)},this)},
_forwardParentProp:function(v,Q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&(this.modelForElement(V)[v]=Q)},this)},
_getActiveElement:function(){var v=this._itemsParent.node.domHost;return _.wi(v?v.root:document).activeElement},
_scrollTargetChanged:function(v,Q){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(Q)if(v==="document")this.scrollTarget=this._doc;else if(typeof v==="string"){var V,E;this.scrollTarget=(Q=(E=(V=this.domHost)==null?void 0:V.polymerController)!=null?E:this.domHost)&&Q.$?Q.$[v]:_.wi(this.ownerDocument).querySelector("#"+v)}else this._isValidScrollTarget()&&(this._oldScrollTarget=v,this._toggleScrollListener(this._shouldHaveListener,v))}});var mcV;var UcS;var vuQ=function(v,Q,V,E){v-=V;Q-=E;return Math.sqrt(v*v+Q*Q)},QgZ=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
cc9.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var fLT=function(v){v.maxRadius=0;v.mouseDownStart=0;v.mouseUpStart=0;v.xStart=0;v.yStart=0;v.xEnd=0;v.yEnd=0;v.containerMetrics=new cc9(v.element)};
Gjt.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var v=QgZ()-this.mouseDownStart;this.mouseUpStart&&(v-=this.mouseUpElapsed);return v},get mouseUpElapsed(){return this.mouseUpStart?QgZ()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var v=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(v*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-v/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var v=this.radius/(this.containerMetrics.size/2);var Q=this.xNow-this.containerMetrics.width/2;var V=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+Q+"px, "+V+"px)";this.waveContainer.style.transform="translate3d("+Q+"px, "+V+"px, 0)";this.wave.style.webkitTransform="scale("+v+","+v+")";this.wave.style.transform="scale3d("+v+","+v+",1)"},
downAction:function(v){var Q=this.containerMetrics.width/2,V=this.containerMetrics.height/2;fLT(this);this.mouseDownStart=QgZ();this.center?(this.xStart=Q,this.yStart=V):(this.xStart=v?v.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=v?v.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=Q,this.yEnd=V);v=this.containerMetrics;Q=this.xStart;V=this.yStart;this.maxRadius=Math.max(vuQ(Q,V,0,0),vuQ(Q,V,
v.width,0),vuQ(Q,V,0,v.height),vuQ(Q,V,v.width,v.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=QgZ())},
remove:function(){_.wi(_.wi(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.fh({_template:function(){if(UcS!==void 0)return UcS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;mcV===void 0&&(mcV=document.createElement("template"));var E=mcV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return UcS=v},
is:"tp-yt-paper-ripple",behaviors:[_.zI],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(){_.wi(this).parentNode.nodeType==11?this.keyEventTarget=_.wi(this).getOwnerRoot().host:this.keyEventTarget=_.wi(this).parentNode;var v=this.keyEventTarget;this.listen(v,"up","uiUpAction");this.listen(v,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(v){v.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var v=0;v<this.ripples.length;++v)if(!this.ripples[v].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(v){this.noink||this.downAction(v)},
downAction:function(v){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(v),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(v){this.noink||this.upAction(v)},
upAction:function(v){this.holdDown||(this.ripples.forEach(function(Q){Q.upAction(v)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var v=0;v<this.ripples.length;++v){var Q=this.ripples[v];Q.isOpacityFullyDecayed&&!Q.isRestingAtMaxRadius&&this.removeRipple(Q)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var v=new Gjt(this);_.wi(this.$.waves).appendChild(v.waveContainer);this.$.background.style.backgroundColor=v.color;this.ripples.push(v);this._setAnimating(!0);return v},
removeRipple:function(v){var Q=this.ripples.indexOf(v);Q<0||(this.ripples.splice(Q,1),v.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var v;for(v=0;v<this.ripples.length;++v){var Q=this.ripples[v];Q.draw();this.$.background.style.opacity=Q.outerOpacity;Q.isOpacityFullyDecayed&&!Q.isRestingAtMaxRadius&&this.removeRipple(Q)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(v,Q){Q!==void 0&&(v?this.downAction():this.upAction())}});var i7={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(v){Nn._downHandler.call(this,v);this.pressed&&this.ensureRipple(v)},
ensureRipple:function(v){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var Q=this._rippleContainer||this.root;Q&&_.wi(Q).appendChild(this._ripple);if(v){Q=_.wi(this._rippleContainer||this);var V=_.wi(v).rootTarget;Q.deepContains(V)&&this._ripple.uiDownAction(v)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(v){this.hasRipple()&&(this._ripple.noink=v)}};var VDQ={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var v=1;this.disabled?v=0:this.active||this.pressed?v=4:this.receivedFocusFromKeyboard&&(v=3);this._setElevation(v)},
_computeKeyboardClass:function(v){this.toggleClass("keyboard-focus",v)},
_spaceKeyDownHandler:function(v){Nn._spaceKeyDownHandler.call(this,v);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(v){Nn._spaceKeyUpHandler.call(this,v);this.hasRipple()&&this._ripple.uiUpAction()}},EuZ=[WhN,
_.JC,i7,VDQ];_.bv8={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(v){v&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=v)},
_createRipple:function(){var v=i7._createRipple();v.id="ink";v.setAttribute("center","");v.classList.add("circle");return v}};
_.F_p=[WhN,_.JC,i7,_.bv8];_.K_a=[_.F_p,aop,{_checkedChanged:function(){XZx._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){i7._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var ivX;var L_Z;var tDQ=function(){};
_.K=tDQ.prototype;_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._buttonStateChanged=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._createRipple=function(){};
_.K._noinkChanged=function(){};
_.K._computeKeyboardClass=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
_.K._setElevation=function(){};
tDQ=_.fh({_template:function(){if(L_Z!==void 0)return L_Z;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;ivX===void 0&&(ivX=document.createElement("template"));var E=ivX;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return L_Z=v},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[EuZ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?VDQ._calculateElevation.apply(this):this._setElevation(0)}});var pAZ;var evZ;var Zva={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(v){_.Y("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(v)},
_onDialogClickWrapped:function(v){_.Y("dialog_behavior_no_tap_killswitch")||this._onDialogClick(v)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(v,Q){Q&&(v?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(v){if(v){var Q;((Q=this.hostElement)!=null?Q:this).setAttribute("aria-modal","true")}else{var V;((V=this.hostElement)!=null?V:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(v){this.closingReason=this.closingReason||{};this.closingReason.confirmed=v},
_onDialogClick:function(v){for(var Q=_.wi(v).path,V=0,E,b=Q.indexOf((E=this.hostElement)!=null?E:this);V<b;V++)if(E=Q[V],E.hasAttribute&&(E.hasAttribute("dialog-dismiss")||E.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(E.hasAttribute("dialog-confirm"));this.close();v.stopPropagation();break}}},PcV=[_.Kd,
Zva];var dVA=document.createElement("template");_.G(dVA,'<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(dVA.content);var hvV=document.createElement("template");_.G(hvV,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(hvV.content);_.fh({_template:function(){if(evZ!==void 0)return evZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;pAZ===void 0&&(pAZ=document.createElement("template"));var E=pAZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return evZ=v},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[PcV,VmZ],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 wAZ;var AGa;_.fh({_template:function(){if(AGa!==void 0)return AGa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;wAZ===void 0&&(wAZ=document.createElement("template"));var E=wAZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return AGa=v},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var v,Q,V;if(((v=window.ShadyDOM)==null?void 0:v.noPatch)!==!0&&((Q=window.ShadyDOM)==null?void 0:Q.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(Zva)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var klq=_.s$(['<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>']),TLR=_.u6A(klq);TLR.setAttribute("style","display: none;");document.head.appendChild(TLR.content);var YE8;var yGN;var cGQ;var fOa;_.fh({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[oB],configure:function(v){var Q=v.node,V=Q.getBoundingClientRect().height;return this._effect=new KeyframeEffect(Q,[{height:V/2+"px"},{height:V+"px"}],this.timingFromConfig(v))}});
_.fh({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[oB],configure:function(v){var Q=v.node,V=Q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Q,[{width:V/2+"px"},{width:V+"px"}],this.timingFromConfig(v))}});
_.fh({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[oB],configure:function(v){var Q=v.node,V=Q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Q,[{width:V+"px"},{width:V-V/20+"px"}],this.timingFromConfig(v))}});
_.fh({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[oB],configure:function(v){var Q=v.node,V=Q.getBoundingClientRect().height;this.setPrefixedProperty(Q,"transformOrigin","0 0");return this._effect=new KeyframeEffect(Q,[{height:V+"px",transform:"translateY(0)"},{height:V/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(v))}});var Ld={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},GlZ=function(){};
_.K=GlZ.prototype;_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._focusBlurHandler=function(){};
_.K._changedControlState=function(){};
_.K._setFocused=function(){};
GlZ=_.fh({_template:function(){if(fOa!==void 0)return fOa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;cGQ===void 0&&(cGQ=document.createElement("template"));var E=cGQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return fOa=v},
is:"tp-yt-paper-menu-button",behaviors:[_.zI,_.JC],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:Ld.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Ld.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:Ld.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var v=_.wi(this.$.content).getDistributedNodes(),Q=0,V=v.length;Q<V;Q++)if(v[Q].nodeType===Node.ELEMENT_NODE)return v[Q]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(v,Q){v?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):Q!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(v){_.JC._disabledChanged.apply(this,arguments);v&&this.opened&&this.close()},
__onIronOverlayCanceled:function(v){var Q=this.$.trigger;_.wi(v.detail).path.indexOf(Q)>-1&&v.preventDefault()}});
Object.keys(Ld).forEach(function(v){GlZ[v]=Ld[v]});var Cca=_.xm.IronButtonState,MD8=(0,_.q6)(HTMLElement);
_.fh({_template:function(){if(yGN!==void 0)return yGN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;YE8===void 0&&(YE8=document.createElement("template"));var E=YE8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return yGN=v},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Cca,_.JC,i7,_.BW,_.u0],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(v){var Q=(0,_.Jq)(this);Q.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:v});Q.shadowRoot.appendChild(v);return MD8.prototype._attachDom.call(this,v)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var v=this.contentElement;v&&v.selectedItem&&this._setSelectedItem(v.selectedItem)},
get contentElement(){for(var v=_.wi(this.$.content).getDistributedNodes(),Q=0,V=v.length;Q<V;Q++)if(v[Q].nodeType===Node.ELEMENT_NODE)return v[Q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(v){this._setSelectedItem(v.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(v){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)===this&&this.open()},
_selectedItemChanged:function(v){var Q="";v?Q=v.label||v.getAttribute("label")||v.textContent.trim():Q="";this.value=Q;this._setSelectedItemLabel(Q)},
_computeMenuVerticalOffset:function(v,Q){return Q?Q:v?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var v=this.opened?"true":"false",Q=this.contentElement;Q&&Q.setAttribute("aria-expanded",v)},
_computeLabelClass:function(v,Q,V){var E="label";if(v)V&&(E+=" label-is-hidden");else if(V||Q)E+=" label-is-floating";return E},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var Ov8;var DVZ;_.fh({is:"tp-yt-paper-icon-button",_template:function(){if(DVZ!==void 0)return DVZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Ov8===void 0&&(Ov8=document.createElement("template"));var E=Ov8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return DVZ=v},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.F_p],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(v,Q){var V=this.getAttribute("aria-label");V&&Q!=V||this.setAttribute("aria-label",v)}});var RvN;var nuX;_.tB=[WhN,_.JC,{hostAttributes:{role:"option",tabindex:"0"}}];_.fh({_template:function(){if(nuX!==void 0)return nuX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;RvN===void 0&&(RvN=document.createElement("template"));var E=RvN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return nuX=v},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.tB]});var lOQ;var qEx;var SER={attached:function(){this.fire("addon-attached")},
update:function(){}};var zva=1,JGx=1,NLZ=1,xVS=[_.JC,_.zI,{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(v,Q){v?v=v+" "+Q:v=Q;return v},
_onAddonAttached:function(v){v=_.wi(v).rootTarget;if(v.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,v.id);else{var Q="paper-input-add-on-"+JGx++;v.id=Q;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Q)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(v){_.JC._focusBlurHandler.call(this,v);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var v=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",v);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(v){try{var Q=this.inputElement.selectionStart;this.value=v;this.inputElement.selectionStart=Q;this.inputElement.selectionEnd=Q}catch(V){this.value=v}},
_computeAlwaysFloatLabel:function(v,Q){return Q||v},
_updateAriaLabelledBy:function(){var v=_.wi(this.root).querySelector("label");if(v){if(v.id)var Q=v.id;else Q="paper-input-label-"+zva++,v.id=Q;this._ariaLabelledBy=Q}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+NLZ++)},
_onChange:function(v){this.shadowRoot&&this.fire(v.type,{sourceEvent:v},{node:this,bubbles:v.bubbles,cancelable:v.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var v=document.activeElement;v instanceof HTMLElement&&v!==document.body&&v!==document.documentElement||this._focusableElement.focus()}}}];var BLN;var guN;_.fh({_template:function(){if(guN!==void 0)return guN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;BLN===void 0&&(BLN=document.createElement("template"));var E=BLN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return guN=v},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[SER],properties:{_charCounterStr:{type:String,value:"0"}},update:function(v){if(v.inputElement){v.value=v.value||"";var Q=v.value.toString().length.toString();v.inputElement.hasAttribute("maxlength")&&(Q+="/"+v.inputElement.getAttribute("maxlength"));this._charCounterStr=Q}}});var sgR;var u5Z;_.fh({_template:function(){if(u5Z!==void 0)return u5Z;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;sgR===void 0&&(sgR=document.createElement("template"));var E=sgR;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return u5Z=v},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return CW(this.attrForValue)},get _inputElement(){return _.wi(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(v){this._addons||(this._addons=[]);v=v.target;this._addons.indexOf(v)===-1&&(this._addons.push(v),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(v){this._handleValueAndAutoValidate(v.target)},
_onValueChanged:function(v){var Q=v.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,Q.value===void 0||Q.value===""))return;this._handleValueAndAutoValidate(v.target)},
_handleValue:function(v){var Q=this._inputElementValue;Q||Q===0||v.type==="number"&&!v.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:v,value:Q,invalid:this.invalid})},
_handleValueAndAutoValidate:function(v){this.autoValidate&&v&&(this.invalid=!(v.validate?v.validate(this._inputElementValue):v.checkValidity()));this._handleValue(v)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(v){if(this._addons)for(var Q,V=0;Q=this._addons[V];V++)Q.update(v)},
_computeInputContentClass:function(v,Q,V,E,b){var F="input-content";v?(b&&(F+=" label-is-hidden"),E&&!this.noUnfloatedLabelError&&(F+=" is-invalid")):(v=this.querySelector("label"),Q||b?(F+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",E?F+=" is-invalid":V&&(F+=" label-is-highlighted")):(v&&(this.$.labelAndInputContainer.style.position="relative"),E&&!this.noUnfloatedLabelError&&(F+=" is-invalid")));V&&(F+=" focused");return F},
_computeUnderlineClass:function(v,Q){var V="underline";Q?V+=" is-invalid":v&&(V+=" is-highlighted");return V},
_computeAddOnContentClass:function(v,Q){var V="add-on-content";Q?V+=" is-invalid":v&&(V+=" is-highlighted");return V}});var jga;var W_N;_.fh({_template:function(){if(W_N!==void 0)return W_N;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;jga===void 0&&(jga=document.createElement("template"));var E=jga;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return W_N=v},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[SER],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(v){this._setInvalid(v.invalid)}});_.fh({is:"tp-yt-paper-input",_template:function(){if(qEx!==void 0)return qEx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;lOQ===void 0&&(lOQ=document.createElement("template"));var E=lOQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return qEx=v},
behaviors:[xVS,_.BW],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 oua;var XAQ;_.fh({_template:function(){if(XAQ!==void 0)return XAQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=
v.content,V=Q.insertBefore;oua===void 0&&(oua=document.createElement("template"));var E=oua;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return XAQ=v},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.tB]});var aOX;var rGa;_.fh({_template:function(){if(rGa!==void 0)return rGa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;aOX===void 0&&(aOX=document.createElement("template"));var E=aOX;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return rGa=v},
is:"tp-yt-paper-item-body"});var $VQ;var IOR;var HvX=function(){};
_.K=HvX.prototype;_.K.indexOf=function(){};
_.K.selectPrevious=function(){};
_.K.selectNext=function(){};
_.K.selectIndex=function(){};
_.K.forceSynchronousItemUpdate=function(){};
_.K._checkFallback=function(){};
_.K._addListener=function(){};
_.K._removeListener=function(){};
_.K._activateEventChanged=function(){};
_.K._updateItems=function(){};
_.K._selectSelected=function(){};
_.K._filterItem=function(){};
_.K._valueToItem=function(){};
_.K._valueToIndex=function(){};
_.K._indexToValue=function(){};
_.K._valueForItem=function(){};
_.K._observeItems=function(){};
_.K._itemActivate=function(){};
_.K.multiChanged=function(){};
_.K._updateAttrForSelected=function(){};
_.K._updateSelected=function(){};
_.K._selectMulti=function(){};
_.K._selectionChange=function(){};
_.K._toggleSelected=function(){};
_.K._valuesToItems=function(){};
_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K.select=function(){};
_.K._resetTabindices=function(){};
_.K._updateMultiselectable=function(){};
_.K._focusWithKeyboardEvent=function(){};
_.K._clearSearchText=function(){};
_.K._focusPrevious=function(){};
_.K._focusNext=function(){};
_.K._applySelection=function(){};
_.K._focusedItemChanged=function(){};
_.K._onIronItemsChanged=function(){};
_.K._onShiftTabDown=function(){};
_.K._onFocus=function(){};
_.K._onUpKey=function(){};
_.K._onDownKey=function(){};
_.K._onEscKey=function(){};
_.K._onKeydown=function(){};
_.K._activateHandler=function(){};
_.K._disabledChanged=function(){};
_.K._setSelectedItem=function(){};
_.K._setItems=function(){};
_.K._setSelectedItems=function(){};
_.K._setFocusedItem=function(){};
HvX=_.fh({_template:function(){if(IOR!==void 0)return IOR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;$VQ===void 0&&($VQ=document.createElement("template"));var E=$VQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return IOR=v},
is:"tp-yt-paper-listbox",behaviors:[Hqa],hostAttributes:{role:"listbox"}});var mVA;var UVN;var vxx={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(v,Q){return[v||Q?"active":"",Q?"cooldown":""].join(" ")},
__activeChanged:function(v,Q){this.__setAriaHidden(!v);this.__coolingDown=!v&&Q},
__altChanged:function(v){this.setAttribute("aria-label",v||"loading")},
__setAriaHidden:function(v){v?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.fh({_template:function(){if(UVN!==void 0)return UVN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;mVA===void 0&&(mVA=document.createElement("template"));var E=mVA;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return UVN=v},
is:"tp-yt-paper-spinner",behaviors:[vxx]});var QlR;var VNN;_.fh({_template:function(){if(VNN!==void 0)return VNN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;QlR===void 0&&(QlR=document.createElement("template"));var E=QlR;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return VNN=v},
is:"tp-yt-paper-spinner-lite",behaviors:[vxx]});var ExS;var bMV;_.fh({_template:function(){if(bMV!==void 0)return bMV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;ExS===void 0&&(ExS=document.createElement("template"));var E=ExS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return bMV=v},
is:"tp-yt-paper-tab",behaviors:[_.JC,_.xm.IronButtonState,i7],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var v=_.wi(this).parentNode;return!!v&&!!v.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(v){if(this.link){var Q=this.queryEffectiveChildren("a");Q&&v.target!==Q&&Q.click()}}});var FGx;var KGZ;var iMx=_.s$(['<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>']),LGX=_.u6A(iMx);document.head.appendChild(LGX.content);_.fh({_template:function(){if(KGZ!==void 0)return KGZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;FGx===void 0&&(FGx=document.createElement("template"));var E=FGx;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return KGZ=v},
is:"tp-yt-paper-tabs",behaviors:[_.WW,_.U3Z],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(v){_.wi(this).querySelectorAll("tp-yt-paper-tab").forEach(v?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(v){v.setAttribute("noink","")},
_removeNoinkAttribute:function(v){v.removeAttribute("noink")},
_computeScrollButtonClass:function(v,Q,V,E){return!Q||V?"hidden":v?E?"hidden":"not-visible":""},
_computeTabsContentClass:function(v,Q){var V="tabs-content";v&&(V+=" scrollable");if(!v||Q)V+=" fit-container";return V},
_computeSelectionBarClass:function(v,Q){var V="selection-bar";v?V+=" hidden":Q&&(V+=" align-bottom");return V},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(v){return""+v},
_onIronSelect:function(v){this._tabChanged(v.detail.item,this._previousTab);this._previousTab=v.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.jX._activateHandler.apply(this,arguments)},
_scheduleActivation:function(v,Q){this._pendingActivationItem=v;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,Q)},
_delayedActivationHandler:function(){var v=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;v.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(v){v.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(v,Q){this.scrollable&&this._affectScroll(Q&&-Q.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(v){this.$.tabsContainer.scrollLeft+=v;v=this.$.tabsContainer.scrollLeft;this._leftHidden=v===0||this.hideScrollButtons;this._rightHidden=v===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(v,Q){if(v){var V=this.$.tabsContent.getBoundingClientRect(),E=V.width,b=v.getBoundingClientRect();V=b.left-V.left;this._pos={width:this._calcPercent(b.width,E),left:this._calcPercent(V,E)};if(this.noSlide||Q==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var F=Q.getBoundingClientRect();Q=this.items.indexOf(Q);v=this.items.indexOf(v);this.$.selectionBar.classList.add("expand");
v=Q<v;this._isRTL&&(v=!v);v?this._positionBar(this._calcPercent(b.left+b.width-F.left,E)-5,this._left):this._positionBar(this._calcPercent(F.left+F.width-b.left,E)-5,this._calcPercent(V,E)+5);this.scrollable&&this._scrollToSelectedIfNeeded(b.width,V)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(v,Q){Q-=this.$.tabsContainer.scrollLeft;Q<0?this.$.tabsContainer.scrollLeft+=Q:(Q+=v-this.$.tabsContainer.offsetWidth,Q>0&&(this.$.tabsContainer.scrollLeft+=Q))},
_calcPercent:function(v,Q){return 100*v/Q},
_positionBar:function(v,Q){v=v||0;Q=Q||0;this._width=v;this._left=Q;this.transform("translateX("+Q+"%) scaleX("+v/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var v=this.$.selectionBar.classList;v.contains("expand")?(v.remove("expand"),v.add("contract"),this._positionBar(this._pos.width,this._pos.left)):v.contains("contract")&&v.remove("contract")}});var tN8;var pep;_.fh({_template:function(){if(pep!==void 0)return pep;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;tN8===void 0&&(tN8=document.createElement("template"));var E=tN8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return pep=v},
is:"tp-yt-paper-textarea",behaviors:[xVS,_.BW],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(v){this.$.input.textarea.selectionStart=v},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(v){this.$.input.textarea.selectionEnd=v},_ariaLabelledByChanged:function(v){this._focusableElement.setAttribute("aria-labelledby",v)},
_ariaDescribedByChanged:function(v){this._focusableElement.setAttribute("aria-describedby",v)},
get _focusableElement(){return this.inputElement.textarea}});var eKQ;var ZM8;/*

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 PzA=function(){};
_.K=PzA.prototype;_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._noinkChanged=function(){};
_.K._focusedChanged=function(){};
_.K.registered=function(){};
_.K._invalidChanged=function(){};
_.K.hasValidator=function(){};
_.K.validate=function(){};
_.K._getValidity=function(){};
_.K._requiredChanged=function(){};
_.K._valueChanged=function(){};
_.K._checkedChanged=function(){};
_.K._buttonStateChanged=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
PzA=_.fh({is:"tp-yt-paper-toggle-button",_template:function(){if(ZM8!==void 0)return ZM8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;eKQ===void 0&&(eKQ=document.createElement("template"));var E=eKQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return ZM8=v},
behaviors:[_.K_a],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");_.PE(this,function(){_.Ic(this,"pan-y")})},
_ontrack:function(v){v=v.detail;v.state==="start"?this._trackStart(v):v.state==="track"?this._trackMove(v):v.state==="end"&&this._trackEnd(v)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(v){v=v.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+v:v)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+v:v));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var v=i7._createRipple();v.id="ink";v.setAttribute("recenters","");v.classList.add("circle","toggle-ink");return v}});var dkZ;var hKV;_.fh({_template:function(){if(hKV!==void 0)return hKV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;dkZ===void 0&&(dkZ=document.createElement("template"));var E=dkZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return hKV=v},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var v=_.wi(this).parentNode,Q=_.wi(this).getOwnerRoot(),V;this.for?V=_.wi(Q).querySelector("#"+this.for):V=v.nodeType==Node.DOCUMENT_FRAGMENT_NODE?Q.host:v;return V},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(v){v==="entry"?this.show():v==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.wi(this).textContent.trim()===""){for(var v=!0,Q=_.wi(this).getEffectiveChildNodes(),V=0;V<Q.length;V++)if(Q[V].textContent.trim()!==""){v=!1;break}if(v)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var v=this.offset;this.marginTop!=14&&this.offset==14&&(v=this.marginTop);var Q=this.offsetParent.getBoundingClientRect(),V=this._target.getBoundingClientRect(),E=this.getBoundingClientRect(),b=(V.width-E.width)/2,F=(V.height-E.height)/2,t=V.left-Q.left,p=V.top-Q.top;switch(this.position){case "top":var Z=t+b;var d=p-E.height-v;break;case "bottom":Z=t+b;d=p+V.height+v;break;case "left":Z=t-E.width-v;d=p+F;break;case "right":Z=t+V.width+
v,d=p+F}this.fitToVisibleBounds?(Q.left+Z+E.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,Z)+"px",this.style.right="auto"),Q.top+d+E.height>window.innerHeight?(this.style.bottom=Q.height+"px",this.style.top="auto"):(this.style.top=Math.max(-Q.top,d)+"px",this.style.bottom="auto")):(this.style.left=Z+"px",this.style.top=d+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(v){v!==500&&this.updateStyles({"--paper-tooltip-delay-in":v+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(v){if(v==="entry"&&this.animationEntry!=="")return this.animationEntry;if(v==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[v]&&typeof this.animationConfig[v][0].name==="string"){if(this.animationConfig[v][0].timing&&this.animationConfig[v][0].timing.delay&&this.animationConfig[v][0].timing.delay!==0){var Q=this.animationConfig[v][0].timing.delay;v==="entry"?this.updateStyles({"--paper-tooltip-delay-in":Q+"ms"}):v==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":Q+
"ms"})}return this.animationConfig[v][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var wep=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(wep,_.Lf);var A68=_.YP(wep,[0,_.v7]);var pd=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(pd,_.Lf);var kZ8=[3,4],TnZ=[5,6];var YMx=[0,kZ8,TnZ,_.EE,-1,_.HC,_.bc,-1,D$V,Rm8];var y6N=_.YP(pd,YMx),c6N=_.yn(YMx);var fua=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(fua,_.Lf);var GZx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(GZx,_.Lf);var CzN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(CzN,_.Lf);var MNZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(MNZ,_.Lf);var OM8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(OM8,_.Lf);var eh=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(eh,_.Lf);eh.prototype.getSource=function(){return _.Gs(this,1)};
eh.prototype.getMessage=function(){return _.fN(this,4)};
eh.prototype.getData=function(){return _.TY(this,OM8,8)};var DkN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(DkN,_.Lf);var Z2=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Z2,_.Lf);var P2=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(P2,_.Lf);var dA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(dA,_.Lf);dA.prototype.getUrl=function(){return _.fN(this,1)};
dA.prototype.setUrl=function(v){return _.SS(this,1,v)};
dA.prototype.hasUrl=function(){return _.fj(_.em(this,1))!=null};var RKR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(RKR,_.Lf);var nxZ=[3];var luX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(luX,_.Lf);var hB=function(v){var Q=new luX;return _.YF(Q,2,v)};
luX.prototype.getLanguage=function(){return Mq(this,4,wA)};
var qMQ=function(v){var Q=hB(1);return _.O9(Q,6,wA,v)},wA=[3,
4,5,6];var SMA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(SMA,_.Lf);var AB=function(v){var Q=new SMA;return _.YF(Q,1,v)},k9=function(v,Q){return _.O9(v,2,zKq,Q)},zKq=[2,
3,4,5];var J6V=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(J6V,_.Lf);var T5=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(T5,_.Lf);var NnS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(NnS,_.Lf);var xkZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(xkZ,_.Lf);var Bna=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Bna,_.Lf);var gxZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(gxZ,_.Lf);var sla=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(sla,_.Lf);var Y9=function(v){return _.TY(v,P2,5)};var uER=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(uER,_.Lf);uER.prototype.getValue=function(){return y2(this,1)};var jlZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(jlZ,_.Lf);var yS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(yS,_.Lf);yS.prototype.getMetadata=function(){return _.O7(this,Bna,7,c2)};
yS.prototype.hasMetadata=function(){return _.PC(this,Bna,7,c2)};
var WGS=_.reS(yS),c2=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var fd=function(v){this.JSC$12249_name_=v;this.files_=[];this.directories_=[];this.directoryMap_={}};
fd.prototype.getName=function(){return this.JSC$12249_name_};var Cd=function(v,Q){this.callback_=Q;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new fd("");oxa(this,v,this.rootDirectory_);G5(this)},oxa=function(v,Q,V){for(var E=0;E<Q.length;E++){var b=Q[E];
b.isFile?(v.fileOps_++,b.file((0,_.Nz)(v.handleFileSuccess_,v,V),(0,_.Nz)(v.handleFileError_,v))):v.unscannedDirectories_.push(new Xe8(b,V))}},G5=function(v){if(v.unscannedDirectories_.length>0&&v.directoryOps_<5&&!v.hasError_){v.directoryOps_++;
var Q=v.unscannedDirectories_.shift(),V=Q.entry,E=new fd(V.name);Q=Q.parent;Q.directoryMap_[E.getName()]=E;Q.directories_.push(E);V=V.createReader();V.readEntries((0,_.Nz)(v.handleDirectorySuccess_,v,V,E),(0,_.Nz)(v.handleDirectoryError_,v))}v.directoryOps_!=0||v.fileOps_!=0||v.unscannedDirectories_.length!=0&&!v.hasError_||v.callback_(v.rootDirectory_.files_,v.rootDirectory_.directories_,v.hasError_)};
Cd.prototype.handleDirectorySuccess_=function(v,Q,V){oxa(this,V,Q);V.length==0?(this.directoryOps_--,G5(this)):v.readEntries((0,_.Nz)(this.handleDirectorySuccess_,this,v,Q),(0,_.Nz)(this.handleDirectoryError_,this))};
Cd.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;G5(this)};
Cd.prototype.handleFileSuccess_=function(v,Q){v.files_.push(Q);this.fileOps_--;G5(this)};
Cd.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;G5(this)};
var Xe8=function(v,Q){this.entry=v;this.parent=Q};var Md=function(v){_.DO.call(this);_.wE(v,"drop",this.onObjectsDropped_,!1,this);_.wE(v,"dragenter",this.onFilesDragged_,!1,this);_.wE(v,"dragover",this.onFilesDragged_,!1,this);_.wE(v,"dragleave",this.onDragLeave_,!1,this);_.wE(v,"dragend",this.onDragLeave_,!1,this)};
_.HZ(Md,_.DO);var aup=function(v,Q){_.fv.call(this,"f");this.files=v;this.directories=Q};
_.HZ(aup,_.fv);var r6R=function(){_.fv.call(this,"h")};
_.HZ(r6R,_.fv);var $kq=function(){_.fv.call(this,"i")};
_.HZ($kq,_.fv);var IuN=function(){_.fv.call(this,"g")};
_.HZ(IuN,_.fv);Md.prototype.onObjectsDropped_=function(v){var Q=this;v.preventDefault();var V=v.event_.dataTransfer;if((v=V&&V.items)&&v.length>0&&v[0].webkitGetAsEntry){V=[];for(var E=[],b=0;b<v.length;b++){var F=v[b].webkitGetAsEntry();F?V.push(F):E.push(v[b])}new Cd(V,function(t,p,Z){Z?Q.dispatchEvent(new IuN("Error occurred while reading from the file system.")):Q.dispatchEvent(new aup(t,p,E))})}else(v=V&&V.files)&&this.dispatchEvent(new aup(Array.from(v),[]))};
Md.prototype.onFilesDragged_=function(v){v.type==="dragenter"&&this.dispatchEvent(new r6R);v.preventDefault()};
Md.prototype.onDragLeave_=function(){this.dispatchEvent(new $kq)};var HMZ=function(v,Q){this.JSC$12272_name_=v;this.inputElement_=Q};
HMZ.prototype.getName=function(){return this.JSC$12272_name_};
HMZ.prototype.getInputElement=function(){return this.inputElement_};var Ov=function(v,Q,V){Q=Q===void 0?"single_file":Q;V=V===void 0?[]:V;_.DO.call(this);this.overlayTarget_=v;this.parentOverlay_=v!=null?v.parentNode:_.RD("scotty-overlay-parent");this.selectorType_=Q;this.acceptTypes_=V;this.overlay_=mka(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.f(Ov,_.DO);
var mka=function(v,Q,V,E){var b=document.createElement("input");b.setAttribute("type","file");b.setAttribute("name","Filedata");_.wE(b,"change",v.onFilesSelected_,!1,v);V==="multiple_file"&&(b.multiple="true");V==="single_directory"&&(b.webkitdirectory="true");E.length>0&&b.setAttribute("accept",E.join(","));b.style.position="absolute";b.style.overflow="hidden";b.style.height="0px";b.style.width="0px";b.style.opacity="0";b.setAttribute("aria-hidden","true");b.setAttribute("tabIndex",-1);if(v.overlayTarget_!=
null)return b.style.height=Q.offsetHeight+"px",b.style.width=Q.offsetWidth+"px",v.parentOverlay_&&(v.parentOverlay_.style.position="relative"),_.JZ(b,Q),uy(b,new _.ua(Q.offsetLeft,Q.offsetTop)),b;v.parentOverlay_.appendChild(b);return b};
Ov.prototype.click=function(){this.overlay_.click()};
Ov.prototype.onFilesSelected_=function(v){a:{try{var Q=(new XMLHttpRequest).upload!==void 0;break a}catch(d){}Q=!1}if(Q){var V;v=Array.from((V=v.target.files)!=null?V:[]);V=[];if(this.selectorType_==="single_directory"&&(_.E7||ej||_.V2)){V=new fd("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(Q=0;Q<v.length;Q++)for(var E=v[Q],b=E.webkitRelativePath.split("/"),F=V,t=0;t<b.length;t++){var p=b[t];if(t==b.length-1){p!="."&&F.files_.push(E);break}var Z=F.directoryMap_[p];Z==void 0&&(p=
Z=new fd(p),F.directoryMap_[p.getName()]=p,F.directories_.push(p));F=Z}V=V.directories_}this.dispatchEvent(new UkV(v,V,null))}else v=v.target.value,v.match(/^c:\\fakepath\\/i)&&(v=v.substring(12)),this.dispatchEvent(new UkV([],[],new HMZ(v,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=mka(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var UkV=function(v,Q){_.fv.call(this,"j");this.files=v;this.directories=Q};
_.f(UkV,_.fv);var vY8=function(v){this.uploadUrl_=v};var QHa=function(){_.DO.call(this)};
_.HZ(QHa,_.DO);var D2=function(v){_.fv.call(this,v)};
_.HZ(D2,_.fv);var RX=function(v){_.fv.call(this,v)};
_.HZ(RX,_.fv);var Vyp=function(v,Q,V,E,b){_.DO.call(this);V=document.createElement("form");V.setAttribute("method",Q);V.setAttribute("enctype","multipart/form-data");V.setAttribute("encoding","multipart/form-data");Q=document.createElement("input");Q.setAttribute("type","hidden");Q.setAttribute("name","metadata");Q.setAttribute("value",b);V.appendChild(Q);V.appendChild(E);this.JSC$12289_form_=V;v=new _.uY(v);_.Vf(v,"upload_protocol","multipart");this.JSC$12289_url_=v.toString();this.JSC$12289_request_=new Zb;this.state_=
"Ready";this.JSC$12289_errorDescription_=null;this.JSC$12289_eventHandler_=new _.cE(this);_.Cg(this,this.JSC$12289_eventHandler_);this.JSC$12289_eventHandler_.listen(this.JSC$12289_request_,"success",this.onTransferSuccess_);this.JSC$12289_eventHandler_.listen(this.JSC$12289_request_,"error",this.onTransferError_)};
_.f(Vyp,QHa);_.K=Vyp.prototype;_.K.run=function(){this.state_="Transferring";var v=this.JSC$12289_request_,Q=this.JSC$12289_form_;if(v.JSC$11557_active_)throw Error("te");var V=new _.uY(this.JSC$12289_url_||Q.action);v.JSC$11557_form_=Q;Q=v.JSC$11557_form_;V=_.rl(V.toString());V!==void 0&&(Q.action=V);pYN(v)};
_.K.getResponseCode=function(){return null};
_.K.getResponseText=function(){return this.JSC$12289_request_&&this.JSC$12289_request_.getResponseText()||null};
_.K.JSC$29952_getErrorDescription=function(){return this.JSC$12289_errorDescription_};
_.K.cancel=function(){this.JSC$12289_request_&&this.JSC$12289_request_.abort();this.state_="Cancelled";this.dispatchEvent(new D2("o"))};
_.K.pause=function(){};
_.K.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new D2("l"))};
_.K.onTransferError_=function(){this.JSC$12289_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new D2("n"))};var nd=function(){_.NV.call(this)};
_.f(nd,_.NV);nd.prototype.createXhr=function(){var v=_.NV.prototype.createXhr.call(this);v.upload&&(v.upload.onprogress=(0,_.Nz)(this.onProgress_,this));return v};
nd.prototype.onProgress_=function(v){this.dispatchEvent(v)};var EYX=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},FKN=function(v,Q){var V=v.attempt_+1;
if(v.maxAttempts_>0&&V>v.maxAttempts_)return!1;V==0?Q():v.delayCallId_=SD(function(){v.delayCallId_=null;Q()},bBx(v),v);
v.attempt_=V;return!0};
EYX.prototype.reset=function(){this.delayCallId_&&_.bb.clearTimeout(this.delayCallId_);this.attempt_=-1};
var bBx=function(v){var Q=250*Math.pow(2,v.attempt_);v.maxDelayMs_>=0&&(Q=Math.min(Q,v.maxDelayMs_));return Q};var MOm=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var l7=function(){_.DO.call(this);this.JSC$12299_request_=this.state_=null;this.JSC$12299_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12299_bytesTransferred_=0;this.retryIterator_=new EYX;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12299_errorDescription_=null;this.JSC$12299_eventHandler_=new _.cE(this);_.Cg(this,this.JSC$12299_eventHandler_);this.JSC$12299_url_=this.blob_=null;this.JSC$12299_method_=void 0;this.chunkSize_=this.JSC$12299_metadata_=
this.JSC$12299_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12299_responseText_=this.JSC$12299_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.HZ(l7,QHa);_.K=l7.prototype;_.K.run=function(){qd(this)};
_.K.getResponseCode=function(){return this.JSC$12299_responseCode_};
_.K.getResponseText=function(){return this.JSC$12299_responseText_};
_.K.JSC$29952_getErrorDescription=function(){return this.JSC$12299_errorDescription_};
_.K.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12299_eventHandler_.removeAll();this.JSC$12299_request_&&this.JSC$12299_request_.abort();this.retryIterator_.reset();var v=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(v==="Upload"||v==="Query")v=new nd,v.JSC$9876_withCredentials_=this.JSC$12299_withCredentials_,v.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12299_bytesTransferred_=
0;this.dispatchEvent(new D2("o"))}};
_.K.pause=function(){this.pauseRequested_=!0};
var qd=function(v){var Q=v.state_;v.pauseRequested_?(v.pauseRequested_=!1,v.stateAfterUnpausing_=Q,v.state_="Paused"):FKN(v.retryIterator_,function(){switch(v.state_){case "Start":v.JSC$12299_request_=new nd;var V=_.gI.clone(v.JSC$12299_headers_);v.blob_.size!=null&&(V["Content-Length"]=v.blob_.size);V=OYo(V);V["X-Goog-Upload-Protocol"]="resumable";V["X-Goog-Upload-Command"]="start";v.JSC$12299_eventHandler_.removeAll();v.JSC$12299_eventHandler_.listen(v.JSC$12299_request_,"complete",v.onStartComplete_);
v.JSC$12299_request_.JSC$9876_withCredentials_=v.JSC$12299_withCredentials_;v.JSC$12299_request_.send(v.JSC$12299_url_,v.JSC$12299_method_,v.JSC$12299_metadata_,V);v.lastCommandResponseCode_=null;v.dispatchEvent(new RX("q"));break;case "Upload":V=v.transferHandle_.uploadUrl_;var E=v.blob_.size;if(BiV()){var b=v.chunkSize_;var F=v.offset_+b>=E;E=xoA(v.blob_,v.offset_,F?E:v.offset_+b)}else v.offset_=0,E=v.blob_,F=!0;v.JSC$12299_request_=new nd;v.JSC$12299_request_.JSC$9876_withCredentials_=v.JSC$12299_withCredentials_;
v.JSC$12299_eventHandler_.removeAll();v.JSC$12299_eventHandler_.listen(v.JSC$12299_request_,"progress",v.onUploadProgress_);b=(0,_.Nz)(v.JSC$12301_onUploadComplete_,v,v.offset_+E.size,F);v.JSC$12299_eventHandler_.listen(v.JSC$12299_request_,"complete",b);v.lastCommandResponseCode_=null;v.dispatchEvent(new RX("q"));F=Object.assign({},v.JSC$12299_headers_||{},{"X-Goog-Upload-Command":"upload"+(F?", finalize":""),"X-Goog-Upload-Offset":v.offset_});v.JSC$12299_request_.send(V,"POST",E,F);break;case "Query":v.JSC$12299_request_=
new nd;v.JSC$12299_eventHandler_.removeAll();v.JSC$12299_eventHandler_.listen(v.JSC$12299_request_,"complete",v.onQueryComplete_);V=Object.assign({},v.JSC$12299_headers_||{},{"X-Goog-Upload-Command":"query"});v.JSC$12299_request_.send(v.transferHandle_.uploadUrl_,"POST","",V);v.lastCommandResponseCode_=null;v.dispatchEvent(new RX("q"));break;default:throw Error("lf");}})||Sh(v,"Transfer encountered too many consecutive failures.")},Sh=function(v,Q){v.state_="Error";
v.JSC$12299_errorDescription_=Q;v.dispatchEvent(new D2("n"))};
l7.prototype.onStartComplete_=function(v){var Q=v.target;this.lastCommandResponseCode_=Q.getStatus();this.dispatchEvent(new RX("r"));if(KKZ(Q))iBA(this,Q);else if(LKp(Q)){v=Ka(v.target.getAllResponseHeaders());for(var V in v)_.KE(V.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new D2("m"));V=kI(v,"X-Goog-Upload-URL");v=(v=kI(v,"X-Goog-Upload-Chunk-Granularity"))?parseInt(v,10):1;V===void 0||isNaN(v)||v<=0?Sh(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
v)*v,this.transferHandle_=new vY8(V),this.dispatchEvent(new D2("p")),this.state_="Upload",this.retryIterator_.reset(),qd(this))}else qd(this)};
l7.prototype.onUploadProgress_=function(v){this.JSC$12299_bytesTransferred_=this.offset_+v.loaded;this.dispatchEvent(new D2("k"))};
l7.prototype.JSC$12301_onUploadComplete_=function(v,Q,V){var E=this,b,F;return _.e(function(t){switch(t.nextAddress){case 1:b=V.target;E.lastCommandResponseCode_=b.getStatus();E.dispatchEvent(new RX("r"));if(tya(b)||b.getStatus()==404)return E.JSC$12299_bytesTransferred_=v,iBA(E,b),t.return();if(LKp(b)){t.jumpTo(2);break}if(!(F=E.detectCorruptedBlobEnabled_)){t.jumpTo(3);break}return t.yield(pL8(E),4);case 4:F=t.yieldResult;case 3:if(F)return Sh(E,"Blob has been modified or corrupted."),t.return();
E.requireUploadRequestModification_=b.getStatus()==400;E.state_="Query";qd(E);return t.return();case 2:if(Q)return Sh(E,"Got a non-final success response after issuing a finalize command."),t.return();E.JSC$12299_bytesTransferred_=v;E.offset_=v;E.retryIterator_.reset();qd(E);return t.return()}})};
l7.prototype.onQueryComplete_=function(v){var Q=v.target;this.lastCommandResponseCode_=Q.getStatus();this.dispatchEvent(new RX("r"));KKZ(Q)?(Q.getStatus()===200&&(this.JSC$12299_bytesTransferred_=this.blob_.size),iBA(this,Q)):LKp(Q)?(v=Ka(v.target.getAllResponseHeaders()),v=parseInt(kI(v,"X-Goog-Upload-Size-Received"),10),isNaN(v)?Sh(this,"Server did not respond with current offset."):v<this.offset_?Sh(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
v+"."):this.requireUploadRequestModification_&&this.offset_===v?Sh(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<v&&this.retryIterator_.reset(),this.offset_=this.JSC$12299_bytesTransferred_=v,this.state_="Upload",qd(this))):qd(this)};
var iBA=function(v,Q){v.JSC$12299_responseCode_=Q.getStatus();var V=Ka(Q.getAllResponseHeaders());D6b(V);v.JSC$12299_responseText_=Q.getResponseText();v.state_="Response received";v.dispatchEvent(new D2("l"))},LKp=function(v){var Q=v.getStatus();
v=Ka(v.getAllResponseHeaders());v=kI(v,"X-Goog-Upload-Status");return Q===200&&v==="active"},tya=function(v){v=Ka(v.getAllResponseHeaders());
return kI(v,"X-Goog-Upload-Status")==="final"},KKZ=function(v){if(tya(v))return!0;
v=v.getStatus();return v>=400&&v<500},pL8=function(v){var Q;
return _.e(function(V){if(V.nextAddress==1){if(!v.blob_||v.originalBlobSize_<=0)return V.return(!1);if(v.blob_.size!==v.originalBlobSize_)return V.return(!0);_.GC(V,2);if(Q=xoA(v.blob_,0,1)){var E=V.yield,b=new $5,F=ysx(b);b.reader_.readAsBinaryString(Q);V=E.call(V,F,4)}else V=V.return(!0);return V}if(V.nextAddress!=2)return V.return(v.blob_.size!==v.originalBlobSize_);_.n$(V);return V.return(!0)})};var e_R=function(v,Q,V,E,b,F){_.DO.call(this);this.payload_=E;this.JSC$12302_url_=v;this.JSC$12302_method_=Q;this.JSC$12302_headers_=V;this.JSC$12302_metadata_=b;this.encoding_=F||"binary";v=new _.zj;this.boundary_="uploader-"+Uh()+"-"+v.JSC$11406_toIsoString();this.JSC$12302_responseText_=this.JSC$12302_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12302_errorDescription_=null;this.JSC$12302_eventHandler_=new _.cE(this);_.Cg(this,this.JSC$12302_eventHandler_)};
_.f(e_R,QHa);_.K=e_R.prototype;
_.K.run=function(){var v=_.gI.clone(this.JSC$12302_headers_);this.payload_.length!=null&&(v["Content-Length"]=this.payload_.length);v=OYo(v);v["X-Goog-Upload-Protocol"]="multipart";v["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new nd;this.JSC$12302_eventHandler_.removeAll();this.JSC$12302_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12302_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12302_url_,this.JSC$12302_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12302_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",v)};
_.K.getResponseCode=function(){return this.JSC$12302_responseCode_};
_.K.getResponseText=function(){return this.JSC$12302_responseText_};
_.K.JSC$29952_getErrorDescription=function(){return this.JSC$12302_errorDescription_};
_.K.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12302_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new D2("o")))};
_.K.pause=function(){};
_.K.onTransferProgress_=function(){this.dispatchEvent(new D2("k"))};
_.K.onTransferComplete_=function(v){var Q=v.target.getStatus();Q===void 0||Q===-1?(this.JSC$12302_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new D2("n"))):(this.JSC$12302_responseCode_=Q,v=v.target,Q=Ka(v.getAllResponseHeaders()),D6b(Q),this.JSC$12302_responseText_=v.getResponseText(),this.state_="Complete",this.dispatchEvent(new D2("l")))};_.ZB8=function(v,Q,V,E){E=E===void 0?!1:E;if(V instanceof HMZ)return new Vyp(v,"POST",Q,V.getInputElement(),"");if(typeof V==="string"||V instanceof String)return new e_R(v,"POST",Q,V,"");var b=new l7(void 0);b.JSC$12299_url_=v;b.JSC$12299_method_="POST";b.JSC$12299_headers_=Q;b.blob_=V;b.originalBlobSize_=V.size;b.JSC$12299_metadata_="";E&&(b.JSC$12299_withCredentials_=E);b.state_="Start";return b};var z5=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(z5,_.Lf);_.K=z5.prototype;_.K.getEnableSsEngine=function(){return _.YK(this,2)};
_.K.getEnableAwr=function(){return _.YK(this,3)};
_.K.getAlohaAutoGaRollout=function(){return _.YK(this,5)};
_.K.getEnableConfigurator=function(){return _.YK(this,6)};
_.K.getEnableMweb=function(){return _.YK(this,7)};
var d7x=function(){var v=PNp();return _.yC(v,7,!0)};
z5.prototype.getEnableCtlConsentCheckbox=function(){return _.YK(this,8)};
z5.prototype.getEnableIframe=function(){return _.YK(this,9)};
var PNp=function(){var v=new z5;v=_.yC(v,5,!0);v=_.yC(v,2,!0);v=_.yC(v,4,!1);v=_.yC(v,8,!0);return _.yC(v,9,!0)};
z5.prototype.getEnableScreenshotNudge=function(){return _.YK(this,10)};
var h_x=function(){var v=d7x();return _.yC(v,10,!0)};
z5.prototype.getEnableWebStartupConfigEndpoint=function(){return _.YK(this,11)};
z5.prototype.getEnableJunkNudge=function(){return _.YK(this,12)};
var rcQ=function(){var v=h_x();return _.yC(v,12,!0)};
_.K=z5.prototype;_.K.getEnableConfiguratorLocale=function(){return _.YK(this,13)};
_.K.getEnableTinyNoPointer=function(){return _.YK(this,14)};
_.K.getEnableSupportSessionLogging=function(){return _.YK(this,15)};
_.K.getEnableFileUploadForScreenshot=function(){return _.YK(this,16)};
_.K.getEnableDirectDeflectionForSingleCategory=function(){return _.YK(this,17)};
_.K.getEnableImageSanitization=function(){return _.YK(this,18)};
_.K.getEnableAlohaBinarySplit=function(){return _.YK(this,19)};
_.K.getEnableDbFeedbackIntents=function(){return _.YK(this,20)};
_.K.getEnableMarkMandatoryFieldsWithRequired=function(){return _.YK(this,21)};
_.K.getEnableFeedbackCategoryCustomUi=function(){return _.YK(this,22)};
_.K.getEnableRealtimeCtl=function(){return _.YK(this,23)};var aLS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(aLS,_.Lf);var Rwm=[/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 lLr="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 q5t=_.s$(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),S5Q=_.s$(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Ti=function(){var v=Error.call(this,"Form is either loading or already opened");this.message=v.message;"stack"in v&&(this.stack=v.stack);this.name="DuplicateFormError"};
_.f(Ti,Error);var Jc0,B90,N9h,g5r;var JB,wLp;
JB=function(v,Q,V){v.timeOfStartCall=(new Date).getTime();var E=V||_.bb,b=E.document,F=v.nonce||_.E_(E.document);F&&!v.nonce&&(v.nonce=F);if(v.flow=="help"){var t=_.Q9("document.location.href",E);!v.helpCenterContext&&t&&(v.helpCenterContext=t.substring(0,1200));t=!0;if(Q&&JSON&&JSON.stringify){var p=JSON.stringify(Q);(t=p.length<=1200)&&(v.psdJson=p)}t||(Q={invalidPsd:!0})}Q=[v,Q,V];E.GOOGLE_FEEDBACK_START_ARGUMENTS=Q;V=v.feedbackServerUri||"//www.google.com/tools/feedback";if(t=E.GOOGLE_FEEDBACK_START)t.apply(E,Q);
else{E=V+"/load.js?";for(var Z in v)Q=v[Z],Q==null||_.rG(Q)||(E+=encodeURIComponent(Z)+"="+encodeURIComponent(Q)+"&");v=qN(b).createElement("SCRIPT");F&&v.setAttribute("nonce",F);_.L$(v,_.lV(E));b.body.appendChild(v)}};
wLp=function(v,Q,V,E){var b,F;return _.e(function(t){b=V||_.bb;var p=v.serverEnvironment==="DEV",Z=V||_.bb;Z=v.nonce||_.E_(Z.document);p={integrationKeys:{productId:v.productId,feedbackBucket:v.bucket,triggerId:v.triggerId},callbacks:{onClose:v.callback,onLoad:v.onLoadCallback},formContent:{locale:v.locale,disableScreenshot:v.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:v.abuseLink,additionalDataConsent:v.additionalDataConsent},initializationData:{isLocalServer:p,nonce:Z,useNightlyRelease:p,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:v.feedbackServerUri,colorScheme:v.colorScheme},extraData:{productVersion:v.productVersion,authUser:v.authuser,configuratorId:v.configuratorId,customZIndex:v.customZIndex,tinyNoPointer:v.tinyNoPointer,
allowNonLoggedInFeedback:v.allowNonLoggedInFeedback,enableAnonymousFeedback:v.enableAnonymousFeedback}};Q&&(Z=new Map(Object.entries(Q)),p.extraData.productSpecificData=Z);F=p;return t.yield(WvG(F,E,b),0)})};
_.AfA=function(v,Q,V){try{if(v.flow==="help"){var E=v.helpCenterPath.replace(/^\//,"");_.VN(V||window,"https://support.google.com/"+E)}else v.flow==="submit"?JB(v,Q,V):$6r(v.productId,v.feedbackServerUri).then(function(b){b=_.TY(b,z5,1);var F=!X9p||(b==null?void 0:b.getEnableMweb()),t=!v.tinyNoPointer||(b==null?void 0:b.getEnableTinyNoPointer());!b||b.getAlohaAutoGaRollout()&&F&&t?wLp(v,Q,V,b).catch(function(p){!p||p instanceof Ti||JB(v,Q,V)}):JB(v,Q,V)},function(b){!b||b instanceof Ti||JB(v,Q,V)})}catch(b){wLp(v,
Q,V,null).catch(function(F){!F||F instanceof Ti||JB(v,Q,V)})}};
_.Pr("userfeedback.api.startFeedback",_.AfA);var ILm=/https?:\/\/\S+\.\S+/,HYb=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],m6B=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var g8Z=function(v){var Q=v.split(""),V=[-263237435,15,Q,function(E,b,F){var t=b.length;F.forEach(function(p,Z,d){this.push(d[Z]=b[(b.indexOf(p)-b.indexOf(this[Z])+Z+t--)%b.length])},E.split(""))},
function(E,b){E=(E%b.length+b.length)%b.length;b.splice(-E).reverse().forEach(function(F){b.unshift(F)})},
"response",function(){for(var E=64,b=[];++E-b.length-32;){switch(E){case 58:E-=14;case 91:case 92:case 93:continue;case 123:E=47;case 94:case 95:case 96:continue;case 46:E=95}b.push(String.fromCharCode(E))}return b},
null,12,1540023973,65941107,null,Q,function(E,b){for(E=(E%b.length+b.length)%b.length;E--;)b.unshift(b.pop())},
695603893,function(E){for(var b=E.length;b;)E.push(E.splice(--b,1)[0])},
"'[;'[(",function(E,b){E.push(b)},
null,function(E,b,F,t,p){return b(F,t,p)},
"continuation",Q,function(E,b){if(E.length!=0){b=(b%E.length+E.length)%E.length;var F=E[0];E[0]=E[b];E[b]=F}},
function(){for(var E=64,b=[];++E-b.length-32;){switch(E){case 91:E=44;continue;case 123:E=65;break;case 65:E-=18;continue;case 58:E=96;continue;case 46:E=95}b.push(String.fromCharCode(E))}return b},
'"),/]];'];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(E){return"aTlOUOubTO4AP____8P_"+v}return Q.join("")};_.kpZ=new _.FG("runAttestationCommand");var Teq=new _.FG("verifyCommand");_.ds=new _.FG("accessibilityContext");var YCR=new _.FG("accessibilityData");var yfZ=new _.FG("profileCardCommand");var ROt=new _.FG("signInEndpoint");var D9B=new _.FG("signOutEndpoint");var fIZ;_.cfN=new _.FG("accountItemSectionRenderer");fIZ=new _.FG("accountItemRenderer");_.Gpq=new _.FG("saveCommandToSessionStorageAction");var CNx=new _.FG("crossAccountChannelTransferEndpoint");var YWh=new _.FG("getAccountMenuEndpoint");_.ymm=new _.FG("getAccountSwitcherEndpoint");var TNh=new _.FG("getAccountsListEndpoint");var Myx=new _.FG("getAccountsListInnertubeEndpoint");_.OBQ=new _.FG("addToToastAction");var D7Z=new _.FG("hideEnclosingAction");_.Nd=new _.FG("replaceEnclosingAction");var R_Q=new _.FG("buttonRefreshAction");var nYN=new _.FG("adsControlFlowOpportunityReceivedCommand");var lIq=new _.FG("openAdAllowlistInstructionCommand");var qCV=new _.FG("videoMastheadAdPrimaryVideoRenderer");var SCp=new _.FG("displayAdRenderer");_.z_Z=new _.FG("inFeedAdLayoutRenderer");var Jfq=new _.FG("sequenceItemInPlayerAdLayoutRenderer");_.Nea=new _.FG("adSlotRenderer");var x7Z=new _.FG("adAvatarViewModel");var BeA=new _.FG("adBadgeViewModel");var gYN=new _.FG("adButtonViewModel");var sHa=new _.FG("adImageViewModel");var onG=new _.FG("reelsAdCardButtonedViewModel");var uGq=new _.FG("reelsPlayerOverlayLayoutViewModel");var jHS=new _.FG("formDataDecoratorCommand");var WKR=new _.FG("updateConversationIdCommand");var oYQ=new _.FG("showSchedulingPanelCommand");var XLA=new _.FG("backstageCommentsRenderer");var aIN=new _.FG("backstageImageRenderer");var rfx=new _.FG("backstagePostRenderer");var $7Z=new _.FG("backstageZeroStateRenderer");var IIq=new _.FG("postRenderer");var HBR=new _.FG("sharedPostRenderer");var m7N=new _.FG("createBackstagePostEndpoint");var U7A=new _.FG("getPostVideoPreviewEndpoint");var v5Z=new _.FG("updateBackstagePostEndpoint");var Q4V=new _.FG("filterChipTransformCommand");var VOV=new _.FG("insertRichSectionCommand");var wfQ=new _.FG("talkToRecsDeselectCommand");var E5p=new _.FG("talkToRecsNextCommand");var hZG=new _.FG("talkToRecsSelectCommand");var otE=new _.FG("talkToRecsUpdateTextCommand");_.tn=new _.FG("browseEndpoint");_.bYV=new _.FG("confirmDialogEndpoint");var Fvx=new _.FG("expandOnHoverCardRenderer");var Kvx=new _.FG("lumiereShelfDetailsRenderer");var iYN=new _.FG("revealBusinessEmailCommand");var LvQ=new _.FG("validateChannelHandleCommand");var tON=new _.FG("channelCreationFormEndpoint");var pVQ=new _.FG("aboutChannelViewModel");var ewZ=new _.FG("channelThumbnailWithLinkRenderer");var ZYN=new _.FG("channelCreationServiceEndpoint");var P8R=new _.FG("updateChannelPageSettingsEndpoint");var x9=function(v){this.delegate=v},B2=function(){x9.apply(this,arguments)};
_.f(B2,x9);_.hr.Object.defineProperties(B2.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(v){this.delegate.entityMetadata=v}}});var d6V=function(){B2.apply(this,arguments)};
_.f(d6V,B2);d6V.prototype.getAssociations=function(){return[]};
d6V.prototype.getTypeName=function(){return"channelHandle"};var GW0=new _.FG("webThumbnailDetailsExtensionData");_.MJ=new _.FG("commandContext");var hwR=new _.FG("addVideoLinkAction");var wVN=new _.FG("banAuthorAction");var AcN=new _.FG("createCommentAction");var kjQ=new _.FG("createCommentReplyAction");var T9R=new _.FG("createPollAction");var Y5N=new _.FG("hideIdentityChipAction");var yca=new _.FG("openUpdateCommentDialogAction");var ccN=new _.FG("pinCommentAction");var fLQ=new _.FG("removeCommentAction");var GjX=new _.FG("unpinCommentAction");var gA=new _.FG("updateBackstagePollAction");var C8q=new _.FG("updateCommentVoteAction");var MOZ=new _.FG("commentThreadRenderer");var OY8=function(){B2.apply(this,arguments)};
_.f(OY8,B2);OY8.prototype.getAssociations=function(){return[]};
OY8.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var D6x=function(){B2.apply(this,arguments)};
_.f(D6x,B2);D6x.prototype.getAssociations=function(){return[]};
D6x.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.RwZ=new _.FG("commentDialogRenderer");var n58=new _.FG("reloadCommentsCommand");var lLa=new _.FG("updateCommentsSettingsEndpoint");var q5X=new _.FG("commentViewModel");var S5a=new _.FG("triStateButtonViewModel");var zwQ=new _.FG("voiceReplyContainerViewModel");_.E2=new _.FG("commandExecutorCommand");var fx=new _.FG("emoji");var Jcq=new _.FG("updateCreatorChannelInnertubeCommand");_.N9N=new _.FG("appendContinuationItemsAction");_.x6R=new _.FG("changeEngagementPanelVisibilityAction");_.RJ=new _.FG("continuationCommand");var B9q=new _.FG("hideReportedCommentAction");var g5a=new _.FG("listMutationCommand");_.sv=new _.FG("openPopupAction");var s4Z=new _.FG("persistSubscriptionsDisplayPreferencesCommand");var $6a;_.uBS=new _.FG("playlistRemoveVideosAction");_.j4N=new _.FG("updatePlaylistAction");_.WvV=new _.FG("addToPlaylistCommand");_.o5R=new _.FG("endPlaylistCommand");_.XVX=new _.FG("recoverPlaylistCommand");_.aLA=new _.FG("refreshPlaylistCommand");_.rca=new _.FG("refreshFormCommand");$6a=new _.FG("openOnePickAddVideoModalCommand");_.D5Z=new _.FG("reloadContinuationItemsCommand");_.ILZ=new _.FG("scrollToEngagementPanelCommand");var HYx=new _.FG("selectCountryCommand");var m6R=new _.FG("showReloadUiCommand");var U6N=new _.FG("undoFeedbackAction");var vmS=new _.FG("updateButtonAction");var QBV=new _.FG("updateSubscribeButtonAction");var VXa=new _.FG("updateToggleAction");var Emx=new _.FG("webNativeShareCommand");_.Kt=new _.FG("webCommandMetadata");_.u7=new _.FG("webHandleServiceEndpointExtension");var YKo=new _.FG("webNavigationEndpointData");var bVZ=new _.FG("backgroundAudioPlaybackCommand");var FU8=new _.FG("copyLinkCommand");var KUN=new _.FG("playlistVotingRefreshPopupCommand");var iVa=new _.FG("selectChipCommand");var LUV=new _.FG("setCookieCommand");var tXp=new _.FG("setLocalStorageCommand");var pWQ=new _.FG("setPrefStorageEntryCommand");var dnA;_.ehZ=new _.FG("settingsUpdateCheckboxCommand");_.ZVS=new _.FG("settingsUpdateTextCommand");_.P0Z=new _.FG("settingsUpdateOptionsCommand");dnA=new _.FG("settingsUpdateSwitchCommand");_.hhq=new _.FG("settingsUpdateConnectedAppRendererCommand");var wW8=new _.FG("showCreatorChatbotEngagementPanelCommand");var ACp=new _.FG("updateTextInputFormFieldRendererCommand");var kIZ=new _.FG("updateToggleButtonStateCommand");var TmV=new _.FG("updateUrlParamCommand");var YkA=new _.FG("webSubmitFormCommand");var yCa=new _.FG("channelSwitcherPageRenderer"),cCA=new _.FG("updateChannelSwitcherPageAction");_.WY=new _.FG("continuationItemRenderer");_.jh=new _.FG("richItemRenderer");var fbR=new _.FG("richSectionRenderer");_.GIN=new _.FG("richShelfRenderer");_.C0x=new _.FG("metadataBadgeRenderer");_.MXA=new _.FG("multiPageMenuNotificationSectionRenderer");_.OVx=new _.FG("playlistLoopButtonStateRenderer");var DnQ=new _.FG("claimLegacyYoutubeChannelEndpoint");var RhQ=new _.FG("getNotificationMenuEndpoint");var nma=new _.FG("getSearchInVideoCommand");_.lbA=new _.FG("getTranscriptEndpoint");_.F$=new _.FG("signalServiceEndpoint");var qkV=new _.FG("verifyAgeEndpoint");var j29=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(j29,_.Lf);j29.prototype.getPath=function(){return _.fN(this,1)};
j29.prototype.getValue=function(){return _.fN(this,2)};var SkZ=[0,_.aq,-1];var zhS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(zhS,_.Lf);var ueh=_.YP(zhS,[0,_.Iq,SkZ]);var JCa=new _.FG("dismissalEndpoint");var NmZ=new _.FG("elementsCommand");_.Cx=new _.FG("innertubeCommand");var xn8=new _.FG("multipleInlinePlaybackCommand");var b69=new _.FG("loggingDirectives");var Bm8=new _.FG("acknowledgeChannelTouStrikeCommand");var gma=function(){B2.apply(this,arguments)};
_.f(gma,B2);gma.prototype.getAssociations=function(){return[]};
gma.prototype.getTypeName=function(){return"booleanEntity"};var sBx=function(){B2.apply(this,arguments)};
_.f(sBx,B2);sBx.prototype.getAssociations=function(){return[]};
sBx.prototype.getTypeName=function(){return"stringEntity"};var gS=new _.FG("entityBatchUpdate");_.uUZ=new _.FG("entityUpdateCommand");var jBS=function(){B2.apply(this,arguments)};
_.f(jBS,B2);jBS.prototype.getAssociations=function(){var v=[];this.delegate.alternateChannel&&v.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&v.push.apply(v,_.ui(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&v.push(this.delegate.oneofChannelEntity);return[].concat(_.ui(new Set(v)))};
jBS.prototype.getTypeName=function(){return"fakeChannel"};var WUN=function(){B2.apply(this,arguments)};
_.f(WUN,B2);WUN.prototype.getAssociations=function(){var v=[];this.delegate.entryCollection&&v.push(this.delegate.entryCollection);return[].concat(_.ui(new Set(v)))};
WUN.prototype.getTypeName=function(){return"fakePlaylist"};
var omQ=function(){B2.apply(this,arguments)};
_.f(omQ,B2);omQ.prototype.getAssociations=function(){var v=[];this.delegate.parentPlaylist&&v.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var Q=_.L(this.delegate.entries),V=Q.next();!V.done;V=Q.next())v.push.apply(v,_.ui((new XW8(V.value)).getAssociations()));return[].concat(_.ui(new Set(v)))};
omQ.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var XW8=function(){x9.apply(this,arguments)};
_.f(XW8,x9);XW8.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);return[].concat(_.ui(new Set(v)))};var abA=function(){B2.apply(this,arguments)};
_.f(abA,B2);abA.prototype.getAssociations=function(){var v=[];this.delegate.descriptionEntity&&v.push(this.delegate.descriptionEntity);this.delegate.creators&&v.push.apply(v,_.ui(this.delegate.creators));this.delegate.theBiggestFan&&v.push(this.delegate.theBiggestFan);return[].concat(_.ui(new Set(v)))};
abA.prototype.getTypeName=function(){return"fakeVideo"};
var rCA=function(){B2.apply(this,arguments)};
_.f(rCA,B2);rCA.prototype.getAssociations=function(){return[]};
rCA.prototype.getTypeName=function(){return"fakeVideoDescription"};var $nq=new _.FG("fantasyRosterViewModel");var IbZ=new _.FG("addFollowUpSurveyCommand");var HVx=new _.FG("getSurveyCommand");var mna=new _.FG("ratingSurveyOptionRenderer");_.Cq=new _.FG("feedbackEndpoint");var Una=new _.FG("reportHistoryTableCellRenderer"),v9a=new _.FG("reportHistoryTableTextCellRenderer"),QXA=new _.FG("reportHistoryTableReasonCellRenderer");_.Vhp=new _.FG("flagEndpoint");_.E9q=new _.FG("flowNextStepCommand");_.bd8=new _.FG("flowPrevStepCommand");var Fpa=new _.FG("getFlowCommand");var KpS=new _.FG("submitFormWithValidationFlowCommand");_.idZ=new _.FG("updateFlowCommand");var Lp8=function(){B2.apply(this,arguments)};
_.f(Lp8,B2);Lp8.prototype.getAssociations=function(){return[]};
Lp8.prototype.getTypeName=function(){return"flowStateEntity"};var thQ=new _.FG("flowFormState");_.W2=new _.FG("flowStepRenderer");var p28=new _.FG("gameCardRenderer");var efS=new _.FG("accountLinkingStateChangedCommand");var ZdV=function(){B2.apply(this,arguments)};
_.f(ZdV,B2);ZdV.prototype.getAssociations=function(){return[]};
ZdV.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var P7R=new _.FG("changeMiniAppPlayStateCommand");var ddA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(ddA,_.Lf);var oX=[1,2,3];var hfN=[0,oX,ChX,_.$K,A7x];var w2a=_.YP(ddA,hfN),ABq=_.yn(hfN);var k5N=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(k5N,_.Lf);var TAX=[0,_.BC,_.aq];var YvZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(YvZ,_.Lf);var yB8=[0,_.aq,_.BC,-1];var Xf=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Xf,_.Lf);var cBZ=_.yn([0,1,TAX,_.v7,yB8]);var f28=new _.FG("miniAppScoreChallengeViewModel");var G5a=new _.FG("miniGameCardViewModel");var C7Q=new _.FG("teaserCardViewModel");var MhN=function(){B2.apply(this,arguments)};
_.f(MhN,B2);MhN.prototype.getAssociations=function(){return[]};
MhN.prototype.getTypeName=function(){return"logoEntity"};var OdX=new _.FG("feedbackItemRenderer");var DdA=function(){B2.apply(this,arguments)};
_.f(DdA,B2);DdA.prototype.getAssociations=function(){return[]};
DdA.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.RfN=new _.FG("playerInterstitialRenderer");var n9R=new _.FG("getKidsBlocklistPickerCommand");_.l28=new _.FG("updateKidsBlacklistEndpoint");_.nr=new _.FG("likeEndpoint");var qvN,SvN,zfS;qvN=new _.FG("addChatItemAction");SvN=new _.FG("removeChatItemAction");zfS=new _.FG("markChatItemAsDeletedAction");_.JBZ=new _.FG("setLiveChatCollapsedStateAction");var NAa=function(){B2.apply(this,arguments)};
_.f(NAa,B2);NAa.prototype.getAssociations=function(){return[]};
NAa.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var xda=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(xda,_.Lf);xda.prototype.getPayloadCase=function(){return _.wB(this,BAp)};
var BAp=[3,4];var g9S=[0,_.Iq,[0,[1,2],_.$K,_.HC,[0,_.rB,1,_.rB]]];var sXR=[0,_.aq,-1];var ufQ=[0,[1],_.$K];var aX=[0,[1,2],_.$K,_.HC,[0,_.v7]];var rA=[0,_.aq];var jXN=[0,[0,_.oq,_.WC,[0,_.rB,_.QB,_.rB]],1,[0,_.oq]];var Wpx=[0,gB];var o98=[0,gB];var X2V=[0,o98,Wpx];var a2a=[0,_.Iq,[0,[1,2],_.$K,-1],_.oq];var rBV=[0,[2],1,_.HC,[0,_.rB,-1,a2a]];var $da=[0,[1],_.HC,[0,_.rB,_.aq,_.QB,1,a2a]];var I2N=[0,_.WC,-1,wsS,_.v7];var Hdx=[0,[0,xK,-3],-4];var $9=[0,_.oq,-3,_.aq,_.oq,_.EE,_.oq,g9S,_.oq,-2];var IX=[0,_.Iq,[0,[1,2],_.$K,-1],_.oq,_.aq];var mdR=[0,[3],aX,[0,[2,3,4],nfx,_.$K,-2],_.HC,[0,_.aq],_.BC];var UdN=[0,[3,5],_.aq,_.s7,_.HC,[0,1,_.BC,_.v7],_.v7,_.HC,[0,_.v7,_.BC]];var v_X=[0,2,_.s7,_.aq,-1];var Q0A=[0,f0Q];var V5a=[0,[3,4],2,TYS,_.$K,_.aq];var E_p=[0,_.v7,-2,1,_.aq];var bHS=[0,_.aq,-1,_.v7];var F4q=[0,rA,function(){return H2},
rA,_.aq],K4S=[0,_.v7,rA,aX,function(){return H2},
_.aq],H2=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],rA,_.s7,[0,_.oq,1,_.oq,1,_.oq,1,_.v7,-1,rA],[0,1,_.oq,2,_.oq,_.v7,_.oq],1,_.s7,-1,_.aq,_.s7,2,xK,[0,xK,_.s7],_.aq,1,jXN,1,aX,_.EE,1,[0,[0,_.Iq,[0,_.aq,_.oq,_.v7]]],[0,_.oq,[0,_.BC,[0,_.QB]],_.BC,1,[0,y7S,-1]],_.aq,[0,1,_.aq],76,_.HC,[0,aX,IX,jXN,1,[0,_.Iq,IX]],1,_.HC,[0,aX,_.aq,_.oq],
_.HC,[0,aX,ufQ],_.HC,[0,aX,ufQ,_.s7],_.HC,[0,aX,ufQ],_.HC,[0,aX,_.Iq,rA,aX,MqQ],_.HC,[0,aX,rA,_.aq],_.HC,[0,aX,_.oq,$9,-1,_.oq],4,_.HC,[0,aX,_.oq,_.s7,$9,_.oq],_.HC,[0,[4,9],aX,_.v7,_.s7,_.$K,IX,1,jXN,_.aq,_.$K,E_p],_.HC,[0,aX,rA,aX,_.v7,_.aq],_.HC,[0,_.oq,aX,$9,_.oq,_.aq],_.HC,[0,aX,rA,aX,_.v7,_.aq],1,_.HC,[0,aX,_.v7,_.aq,$9],_.HC,[0,aX,_.v7,[0,_.aq,_.s7],_.aq,_.s7,_.aq,_.U7,-2,3,bHS,_.Iq,bHS,bHS,E_p],_.HC,[0,aX,_.v7,$da,_.Iq,[0,o98,rBV],rA,_.Iq,X2V,_.aq,1,_.v7,I2N,Hdx,hmA,-1],_.HC,[0,aX,[0,_.QB,
-1,$da,_.Iq,[0,o98,rBV,Wpx],[0,_.bc],1,_.rB],rA,_.aq],_.HC,[0,aX,IX,_.aq,[0,_.WC]],_.HC,function(){return K4S},
_.HC,[0,aX,_.s7,_.aq,-1,_.oq],_.HC,[0,[6,7],aX,_.Iq,v_X,_.v7,IX,1,_.HC,V5a,_.HC,Q0A],_.HC,[0,_.Iq,v_X,_.v7,_.oq],_.HC,[0,_.aq,CDV,-1],_.HC,[0,rA,_.Iq,X2V,_.aq],_.HC,[0,aX,rA,_.aq],_.HC,[0,_.U7,_.aq],_.HC,[0,sXR],_.HC,[0,sXR],_.HC,[0,IX],_.HC,[0,rA,IX],_.HC,function(){return F4q},
_.HC,[0,rA,_.aq],_.HC,[0,rA,_.aq],1,_.HC,[0,_.oq,aX,$9,_.oq,$9],_.HC,[0,_.bc],1,_.HC,[0],1,_.HC,[0,rA,_.v7,aX,_.v7],_.HC,[0,[1,2],_.HC,V5a,_.HC,Q0A,_.s7],_.HC,[0,_.bc,IX,UdN,_.aq,_.s7],_.HC,[0,UdN,_.aq,_.s7],_.HC,[0,I2N,IX,_.oq,Hdx],_.HC,mdR,_.HC,[0],_.HC,[0,_.aq,-1,_.BC],_.HC,[0,rA,_.aq],_.HC,[0,mdR,_.BC,_.aq],_.HC,[0,aX,$9,_.oq],_.HC,[0,aX,$9,_.oq],_.HC,[0,I2N,Hdx,IX,_.EE,_.oq,hmA,-1],_.HC,[0,aX,$9,_.oq]];var iHS=[0,_.Iq,H2];var L4N=_.YP(xda,[0,BAp,1,_.BC,_.HC,[0,[18,22,24],iHS,3,[0,iHS],1,_.BC,[0,_.Iq,[0,_.s7,xK],_.s7],1,H2,-1,[0,_.Xv,-2,_.EE,_.Xv,-1,_.EE,_.Xv,g9S,_.Xv,-2],Ph8,[!0,_.aq,[0,ufQ,2,_.aq,_.s7,_.oq,2,_.aq,_.U7]],[0,[1,2,3],[5,6],_.HC,[0,_.rB],_.HC,[0,_.rB,-1],_.HC,[0,_.rB],1,_.HC,sXR,_.HC,[0,_.aq]],[0,H2,-1],_.bc,H2,_.HC,H2,[0,iHS],_.BC,H2,_.HC,H2,_.aq,_.HC,H2],_.HC,oDq,_.BC]);var t5Z=new _.FG("liveChatEndpoint");var pma=new _.FG("liveChatItemContextMenuEndpoint");var eYZ=new _.FG("liveChatReplayEndpoint");_.ZHq=new _.FG("emojiPickerRenderer");var P9p=new _.FG("liveChatAuthorBadgeViewModel");var d_Q=new _.FG("deleteLiveChatMessageCommand");var hYN=new _.FG("liveChatActionEndpoint");var wmV=new _.FG("createLiveChatPollEndpoint");var ALN=new _.FG("manageLiveChatUserEndpoint");var kaS=new _.FG("moderateLiveChatEndpoint");_.TJq=new _.FG("sendLiveChatMessageEndpoint");var YOx=new _.FG("sendLiveChatVoteEndpoint");var yLX=new _.FG("clearLocationCommand");var cLZ=new _.FG("resolveLocationCommand");var fqR=new _.FG("interactionLoggingCommandMetadata");var Gap=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Gap,_.Lf);var C9x=function(v,Q){return _.Tc(v,1,Q)};var M5Z=[0,_.oq];var OHR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(OHR,_.Lf);var D_R=function(v,Q){return Sx(v,1,Gap,Q)};OHR.prototype.JSC$12398_serializeBinary=a5G([0,_.Iq,M5Z]);var YkS={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 RYR={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"},
n_8={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 QNh={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.oAE=new _.FG("logFlowLoggingEventCommand");_.px=new _.FG("loggingContext");var lqZ=new _.FG("audioTrackSelectActionCommand");var qOZ=new _.FG("captionLanguageSelectActionCommand");var SOa=new _.FG("showAudioTrackPickerActionCommand");var zYS=new _.FG("showCaptionLanguageSelectActionCommand");var JLR=new _.FG("dismissDialogEndpoint");var NJS=new _.FG("dismissPlayerOverlayCommand");var x_N=new _.FG("hideItemSectionVideosByIdCommand");var BJZ=new _.FG("showMiniplayerCommand");var g_a=function(){B2.apply(this,arguments)};
_.f(g_a,B2);g_a.prototype.getAssociations=function(){return[]};
g_a.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var s0V=function(){B2.apply(this,arguments)};
_.f(s0V,B2);s0V.prototype.getAssociations=function(){return[]};
s0V.prototype.getTypeName=function(){return"downloadStatusEntity"};var uCA=function(){B2.apply(this,arguments)};
_.f(uCA,B2);uCA.prototype.getAssociations=function(){return[]};
uCA.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var j0x=function(){B2.apply(this,arguments)};
_.f(j0x,B2);j0x.prototype.getAssociations=function(){var v=[];this.delegate.downloadsList&&v.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&v.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&v.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&v.push(this.delegate.refresh);return[].concat(_.ui(new Set(v)))};
j0x.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var W4p=function(){B2.apply(this,arguments)};
_.f(W4p,B2);W4p.prototype.getAssociations=function(){var v=[];this.delegate.refresh&&v.push(this.delegate.refresh);if(this.delegate.downloads)for(var Q=_.L(this.delegate.downloads),V=Q.next();!V.done;V=Q.next())v.push.apply(v,_.ui((new o_a(V.value)).getAssociations()));return[].concat(_.ui(new Set(v)))};
W4p.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var o_a=function(){x9.apply(this,arguments)};
_.f(o_a,x9);o_a.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.playlist&&v.push(this.delegate.playlist);this.delegate.videoItem&&v.push(this.delegate.videoItem);this.delegate.playlistItem&&v.push(this.delegate.playlistItem);return[].concat(_.ui(new Set(v)))};var XmZ=function(){B2.apply(this,arguments)};
_.f(XmZ,B2);XmZ.prototype.getAssociations=function(){var v=[];this.delegate.localImageEntities&&v.push.apply(v,_.ui(this.delegate.localImageEntities));return[].concat(_.ui(new Set(v)))};
XmZ.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var aqa=function(){B2.apply(this,arguments)};
_.f(aqa,B2);aqa.prototype.getAssociations=function(){var v=[];this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.localImageEntities&&v.push.apply(v,_.ui(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ui(new Set(v)))};
aqa.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var rLR=function(){B2.apply(this,arguments)};
_.f(rLR,B2);rLR.prototype.getAssociations=function(){return[]};
rLR.prototype.getTypeName=function(){return"offlineabilityEntity"};var $_Q=function(){B2.apply(this,arguments)};
_.f($_Q,B2);$_Q.prototype.getAssociations=function(){var v=[];this.delegate.fakeChildren&&v.push.apply(v,_.ui(this.delegate.fakeChildren));return[].concat(_.ui(new Set(v)))};
$_Q.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Iq8=function(){B2.apply(this,arguments)};
_.f(Iq8,B2);Iq8.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&v.push(this.delegate.offlineVideoPolicy);return[].concat(_.ui(new Set(v)))};
Iq8.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var HHq=function(){B2.apply(this,arguments)};
_.f(HHq,B2);HHq.prototype.getAssociations=function(){return[]};
HHq.prototype.getTypeName=function(){return"continuationTokenEntity"};var m_S=function(){B2.apply(this,arguments)};
_.f(m_S,B2);m_S.prototype.getAssociations=function(){var v=[];this.delegate.channelOwner&&v.push(this.delegate.channelOwner);this.delegate.videos&&v.push.apply(v,_.ui(this.delegate.videos));this.delegate.collaboratorChannels&&v.push.apply(v,_.ui(this.delegate.collaboratorChannels));this.delegate.downloadState&&v.push(this.delegate.downloadState);this.delegate.refresh&&v.push(this.delegate.refresh);return[].concat(_.ui(new Set(v)))};
m_S.prototype.getTypeName=function(){return"mainPlaylistEntity"};var U_x=function(){B2.apply(this,arguments)};
_.f(U_x,B2);U_x.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.channelContributor&&v.push(this.delegate.channelContributor);return[].concat(_.ui(new Set(v)))};
U_x.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var vp8=function(){x9.apply(this,arguments)};
_.f(vp8,x9);vp8.prototype.getAssociations=function(){var v=[];this.delegate.recommendedVideoMetadata&&v.push.apply(v,_.ui((new QZa(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ui(new Set(v)))};
var QZa=function(){x9.apply(this,arguments)};
_.f(QZa,x9);QZa.prototype.getAssociations=function(){var v=[];this.delegate.localImageEntities&&v.push.apply(v,_.ui(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ui(new Set(v)))};var V6V=function(){x9.apply(this,arguments)};
_.f(V6V,x9);V6V.prototype.getAssociations=function(){var v=[];this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);return[].concat(_.ui(new Set(v)))};var EpQ=function(){B2.apply(this,arguments)};
_.f(EpQ,B2);EpQ.prototype.getAssociations=function(){var v=[];this.delegate.owner&&v.push(this.delegate.owner);this.delegate.downloadState&&v.push(this.delegate.downloadState);this.delegate.userState&&v.push.apply(v,_.ui((new V6V(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&v.push.apply(v,_.ui((new vp8(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ui(new Set(v)))};
EpQ.prototype.getTypeName=function(){return"mainVideoEntity"};var bDN=function(){B2.apply(this,arguments)};
_.f(bDN,B2);bDN.prototype.getAssociations=function(){var v=[];this.delegate.userChannelDetails&&v.push(this.delegate.userChannelDetails);return[].concat(_.ui(new Set(v)))};
bDN.prototype.getTypeName=function(){return"ytMainChannelEntity"};var FxX=function(){B2.apply(this,arguments)};
_.f(FxX,B2);FxX.prototype.getAssociations=function(){var v=[];this.delegate.channelOwner&&v.push(this.delegate.channelOwner);this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&v.push.apply(v,_.ui(this.delegate.localImageEntities));this.delegate.downloadStatus&&v.push(this.delegate.downloadStatus);return[].concat(_.ui(new Set(v)))};
FxX.prototype.getTypeName=function(){return"ytMainVideoEntity"};var YAt=new _.FG("downloadsPageSmartDownloadsOptInBannerParams");var G9B=new _.FG("downloadsPageUpsellBannerParams");var Kxp=function(){B2.apply(this,arguments)};
_.f(Kxp,B2);Kxp.prototype.getAssociations=function(){return[]};
Kxp.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var iDA=function(){B2.apply(this,arguments)};
_.f(iDA,B2);iDA.prototype.getAssociations=function(){return[]};
iDA.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var LxZ=function(){B2.apply(this,arguments)};
_.f(LxZ,B2);LxZ.prototype.getAssociations=function(){return[]};
LxZ.prototype.getTypeName=function(){return"macroMarkerEntity"};var t6N=function(){B2.apply(this,arguments)};
_.f(t6N,B2);t6N.prototype.getAssociations=function(){return[]};
t6N.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var pOZ=function(){B2.apply(this,arguments)};
_.f(pOZ,B2);pOZ.prototype.getAssociations=function(){return[]};
pOZ.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var erX=function(){B2.apply(this,arguments)};
_.f(erX,B2);erX.prototype.getAssociations=function(){return[]};
erX.prototype.getTypeName=function(){return"playerStateEntity"};var ZDQ=function(){B2.apply(this,arguments)};
_.f(ZDQ,B2);ZDQ.prototype.getAssociations=function(){return[]};
ZDQ.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Pgx=function(){B2.apply(this,arguments)};
_.f(Pgx,B2);Pgx.prototype.getAssociations=function(){return[]};
Pgx.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var ds8=function(){B2.apply(this,arguments)};
_.f(ds8,B2);ds8.prototype.getAssociations=function(){return[]};
ds8.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.mp=new _.FG("dislikeButtonViewModel");_.Uv=new _.FG("likeButtonViewModel");var hra=new _.FG("videoSummaryContentViewModel");var wON=new _.FG("videoSummaryParagraphViewModel");var AQS=new _.FG("changeTimelyActionVisibilityCommand");var k6R=new _.FG("hideEngagementPanelEndpoint");var TwZ=new _.FG("refreshPanelEndpoint");var YjN=new _.FG("scrollToSectionEndpoint");var yQX=new _.FG("seekToVideoTimestampCommand");_.Gn=new _.FG("showEngagementPanelEndpoint");var cQa=new _.FG("showTransientPlayerScrimOverlayCommand");var fpS=new _.FG("toggleEngagementPanelCommand");_.G6a=new _.FG("createBroadcastCommand");var CgZ=new _.FG("metadataUpdateCommand");var M6p=function(){B2.apply(this,arguments)};
_.f(M6p,B2);M6p.prototype.getAssociations=function(){return[]};
M6p.prototype.getTypeName=function(){return"featuredProductsEntity"};var ODx=function(){B2.apply(this,arguments)};
_.f(ODx,B2);ODx.prototype.getAssociations=function(){return[]};
ODx.prototype.getTypeName=function(){return"pinnedProductEntity"};var Ds8=function(){B2.apply(this,arguments)};
_.f(Ds8,B2);Ds8.prototype.getAssociations=function(){return[]};
Ds8.prototype.getTypeName=function(){return"trendingOfferEntity"};_.RrS=new _.FG("merchandiseShelfRenderer");var npa=new _.FG("shoppingContentLineItemViewModel");var lpa=new _.FG("gridMovieRenderer");_.qja=new _.FG("movieRenderer");var Sjp=function(){B2.apply(this,arguments)};
_.f(Sjp,B2);Sjp.prototype.getAssociations=function(){return[]};
Sjp.prototype.getTypeName=function(){return"compositeSourceEntity"};var zra=function(){B2.apply(this,arguments)};
_.f(zra,B2);zra.prototype.getAssociations=function(){var v=[];this.delegate.compositeSourceKeys&&v.push.apply(v,_.ui(this.delegate.compositeSourceKeys));return[].concat(_.ui(new Set(v)))};
zra.prototype.getTypeName=function(){return"multiviewStagingEntity"};var JQX=function(){B2.apply(this,arguments)};
_.f(JQX,B2);JQX.prototype.getAssociations=function(){var v=[];this.delegate.trackDownloadMetadatas&&v.push.apply(v,_.ui(this.delegate.trackDownloadMetadatas));return[].concat(_.ui(new Set(v)))};
JQX.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Nw8=function(){B2.apply(this,arguments)};
_.f(Nw8,B2);
Nw8.prototype.getAssociations=function(){var v=[];this.delegate.downloadedTracks&&v.push.apply(v,_.ui(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&v.push.apply(v,_.ui(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&v.push.apply(v,_.ui(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&v.push.apply(v,_.ui(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&v.push.apply(v,_.ui(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
v.push.apply(v,_.ui(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&v.push.apply(v,_.ui(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&v.push.apply(v,_.ui(this.delegate.metadataOnlyTracks));return[].concat(_.ui(new Set(v)))};
Nw8.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var xsa=function(){B2.apply(this,arguments)};
_.f(xsa,B2);xsa.prototype.getAssociations=function(){var v=[];this.delegate.trackDownloadMetadatas&&v.push.apply(v,_.ui(this.delegate.trackDownloadMetadatas));return[].concat(_.ui(new Set(v)))};
xsa.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var BwN=function(){B2.apply(this,arguments)};
_.f(BwN,B2);BwN.prototype.getAssociations=function(){var v=[];this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.localImageEntities&&v.push.apply(v,_.ui(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ui(new Set(v)))};
BwN.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var gpR=function(){B2.apply(this,arguments)};
_.f(gpR,B2);
gpR.prototype.getAssociations=function(){var v=[];this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&v.push.apply(v,_.ui(this.delegate.primaryArtists));this.delegate.details&&v.push(this.delegate.details);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.tracks&&v.push.apply(v,_.ui(this.delegate.tracks));this.delegate.share&&v.push(this.delegate.share);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.refresh&&
v.push(this.delegate.refresh);return[].concat(_.ui(new Set(v)))};
gpR.prototype.getTypeName=function(){return"musicAlbumRelease"};
var sZx=function(){B2.apply(this,arguments)};
_.f(sZx,B2);sZx.prototype.getAssociations=function(){var v=[];this.delegate.albumRelease&&v.push(this.delegate.albumRelease);this.delegate.tracks&&v.push.apply(v,_.ui(this.delegate.tracks));return[].concat(_.ui(new Set(v)))};
sZx.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var uYx=function(){B2.apply(this,arguments)};
_.f(uYx,B2);uYx.prototype.getAssociations=function(){var v=[];this.delegate.albumRelease&&v.push(this.delegate.albumRelease);return[].concat(_.ui(new Set(v)))};
uYx.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var jZ8=function(){B2.apply(this,arguments)};
_.f(jZ8,B2);jZ8.prototype.getAssociations=function(){var v=[];this.delegate.details&&v.push(this.delegate.details);this.delegate.userDetails&&v.push(this.delegate.userDetails);return[].concat(_.ui(new Set(v)))};
jZ8.prototype.getTypeName=function(){return"musicArtist"};
var Wxa=function(){B2.apply(this,arguments)};
_.f(Wxa,B2);Wxa.prototype.getAssociations=function(){var v=[];this.delegate.parentArtist&&v.push(this.delegate.parentArtist);return[].concat(_.ui(new Set(v)))};
Wxa.prototype.getTypeName=function(){return"musicArtistDetail"};
var opp=function(){B2.apply(this,arguments)};
_.f(opp,B2);opp.prototype.getAssociations=function(){var v=[];this.delegate.parentArtist&&v.push(this.delegate.parentArtist);return[].concat(_.ui(new Set(v)))};
opp.prototype.getTypeName=function(){return"musicArtistUserDetail"};var XOq=function(){B2.apply(this,arguments)};
_.f(XOq,B2);XOq.prototype.getAssociations=function(){return[]};
XOq.prototype.getTypeName=function(){return"musicLibraryEdit"};var apx=function(){B2.apply(this,arguments)};
_.f(apx,B2);apx.prototype.getAssociations=function(){return[]};
apx.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var rQp=function(){B2.apply(this,arguments)};
_.f(rQp,B2);
rQp.prototype.getAssociations=function(){var v=[];this.delegate.tracks&&v.push.apply(v,_.ui(this.delegate.tracks));this.delegate.refresh&&v.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&v.push(this.delegate.details);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&v.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.entryCollection&&
v.push(this.delegate.entryCollection);this.delegate.share&&v.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&v.push.apply(v,_.ui((new $sN(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ui(new Set(v)))};
rQp.prototype.getTypeName=function(){return"musicPlaylist"};
var $sN=function(){x9.apply(this,arguments)};
_.f($sN,x9);$sN.prototype.getAssociations=function(){var v=[];this.delegate.creatorEntity&&v.push(this.delegate.creatorEntity);return[].concat(_.ui(new Set(v)))};var IpN=function(){B2.apply(this,arguments)};
_.f(IpN,B2);IpN.prototype.getAssociations=function(){return[]};
IpN.prototype.getTypeName=function(){return"musicShare"};var HDa=function(){B2.apply(this,arguments)};
_.f(HDa,B2);
HDa.prototype.getAssociations=function(){var v=[];this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&v.push.apply(v,_.ui(this.delegate.artists));this.delegate.audioModeVersion&&v.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&v.push(this.delegate.videoModeVersion);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.details&&v.push(this.delegate.details);this.delegate.albumRelease&&v.push(this.delegate.albumRelease);this.delegate.share&&
v.push(this.delegate.share);this.delegate.libraryEdit&&v.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);this.delegate.lyrics&&v.push(this.delegate.lyrics);return[].concat(_.ui(new Set(v)))};
HDa.prototype.getTypeName=function(){return"musicTrack"};
var msN=function(){B2.apply(this,arguments)};
_.f(msN,B2);msN.prototype.getAssociations=function(){var v=[];this.delegate.parentTrack&&v.push(this.delegate.parentTrack);return[].concat(_.ui(new Set(v)))};
msN.prototype.getTypeName=function(){return"musicTrackDetail"};
var UsA=function(){B2.apply(this,arguments)};
_.f(UsA,B2);UsA.prototype.getAssociations=function(){var v=[];this.delegate.parentTrack&&v.push(this.delegate.parentTrack);return[].concat(_.ui(new Set(v)))};
UsA.prototype.getTypeName=function(){return"musicTrackUserDetail"};var sI=new _.FG("musicResponsiveListItemRenderer");var lYr=new _.FG("addToPlaylistEndpoint");var vcA=new _.FG("captionPickerEndpoint");var Q5V=new _.FG("suggestStats");var VI8=new _.FG("backstageImageUploadEndpoint");var EcQ=new _.FG("createBackstagePostDialogEndpoint");_.bJ8=new _.FG("createCommentReplyDialogEndpoint");_.Flx=new _.FG("updateCommentDialogEndpoint");_.KlS=new _.FG("updateCommentReplyDialogEndpoint");var iJN=new _.FG("menuEndpoint");var AXb=new _.FG("modalEndpoint");var Lla=new _.FG("playlistEditorEndpoint");var tIZ=new _.FG("copyTextEndpoint");var p6Q,ec8;p6Q=new _.FG("shareEndpoint");ec8=new _.FG("shareEntityEndpoint");_.ZJZ=new _.FG("shareEntityServiceEndpoint");_.fSt=new _.FG("userFeedbackEndpoint");_.sn=new _.FG("watchEndpoint");var KyG=new _.FG("watchPlaylistEndpoint");var P6A=new _.FG("addUpcomingEventReminderEndpoint");_.Qd=new _.FG("getCommentsFromInboxCommand");var dlN=new _.FG("notificationOptOutEndpoint");var hcq=new _.FG("recordNotificationInteractionsEndpoint");var w6Z=new _.FG("removeUpcomingEventReminderEndpoint");_.uP=new _.FG("getDownloadActionCommand");_.ADN=new _.FG("offlineOrchestrationActionCommand");var k9S=function(){B2.apply(this,arguments)};
_.f(k9S,B2);k9S.prototype.getAssociations=function(){return[]};
k9S.prototype.getTypeName=function(){return"captionTrack"};var TxZ=function(){B2.apply(this,arguments)};
_.f(TxZ,B2);TxZ.prototype.getAssociations=function(){return[]};
TxZ.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var YAX=function(){B2.apply(this,arguments)};
_.f(YAX,B2);YAX.prototype.getAssociations=function(){return[]};
YAX.prototype.getTypeName=function(){return"offlineVideoPolicy"};var yDZ=function(){B2.apply(this,arguments)};
_.f(yDZ,B2);yDZ.prototype.getAssociations=function(){return[]};
yDZ.prototype.getTypeName=function(){return"offlineVideoStreams"};var cDR=function(){B2.apply(this,arguments)};
_.f(cDR,B2);cDR.prototype.getAssociations=function(){var v=[];this.delegate.transfer&&v.push(this.delegate.transfer);this.delegate.adsPlaybackData&&v.push.apply(v,_.ui(this.delegate.adsPlaybackData));this.delegate.drmLicense&&v.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&v.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ui(new Set(v)))};
cDR.prototype.getTypeName=function(){return"playbackData"};var f6a=function(){B2.apply(this,arguments)};
_.f(f6a,B2);f6a.prototype.getAssociations=function(){return[]};
f6a.prototype.getTypeName=function(){return"refresh"};var G9R=function(){B2.apply(this,arguments)};
_.f(G9R,B2);G9R.prototype.getAssociations=function(){var v=[];this.delegate.offlineVideoStreams&&v.push.apply(v,_.ui(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&v.push.apply(v,_.ui(this.delegate.captionTrack));return[].concat(_.ui(new Set(v)))};
G9R.prototype.getTypeName=function(){return"transfer"};var C6p=function(){B2.apply(this,arguments)};
_.f(C6p,B2);C6p.prototype.getAssociations=function(){return[]};
C6p.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var MIx=new _.FG("showMoreDrawerCommand");var OJa=new _.FG("updateEngagementPanelContentCommand");var Dlp=new _.FG("getPdgBuyFlowCommand");var RcS=new _.FG("liveChatPurchaseMessageEndpoint");var nc8=new _.FG("openSuperStickerBuyFlowCommand");var l6N=new _.FG("updatePdgFeatureEnablementCommand");var qAZ=function(){B2.apply(this,arguments)};
_.f(qAZ,B2);qAZ.prototype.getAssociations=function(){return[]};
qAZ.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var SAX=function(){B2.apply(this,arguments)};
_.f(SAX,B2);SAX.prototype.getAssociations=function(){return[]};
SAX.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.zcQ=new _.FG("pdgCommentChipRenderer");_.JDp=new _.FG("permissionRoleBottomBarRenderer");_.Nxx=new _.FG("updatePermissionRoleCommand");var xlQ=new _.FG("prefetchWatchCommand");var Bxp=new _.FG("updatePlayerErrorMessageCommand");var cm0=new _.FG("toggleCaptionsVisibilityCommand");var gcZ=new _.FG("playerDisclosureViewModel");_.s5p=new _.FG("quickActionsViewModel");var u4q=new _.FG("playerResponse");var j5Z=new _.FG("playlistRenderer");_.WlZ=new _.FG("playlistVideoListRenderer");_.Vd=new _.FG("playlistEditEndpoint");var ocp=new _.FG("createImagePollCommand");var X6Q=new _.FG("createQuizCommand");var a6R=new _.FG("quizRenderer");var rDN=new _.FG("uploadedVideoRenderer");var $l8=new _.FG("decorateMessageEndpoint");var I6N=new _.FG("lpOfferCardOptionViewModel");var HJN=new _.FG("sfvAudioItemPlaybackCommand");var mlZ=function(){B2.apply(this,arguments)};
_.f(mlZ,B2);mlZ.prototype.getAssociations=function(){return[]};
mlZ.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.EO=new _.FG("reelNonVideoContentEndpoint");_.PH=new _.FG("reelWatchEndpoint");_.b9=new _.FG("reelItemRenderer");var UlN=new _.FG("reelMetapanelViewModel");_.FC=new _.FG("reelNonVideoContentRenderer");_.vX8=new _.FG("reelPlayerOverlayRenderer");var QKx=new _.FG("shortsLockupViewModel");var V4Z=new _.FG("sponsorButtonViewModel");var EXa=new _.FG("reelItemWatchResponse");var bAN=new _.FG("textBadgeRenderer");_.KH=new _.FG("buttonRenderer");_.i9=new _.FG("toggleButtonRenderer");var N5h=new _.FG("switchButtonViewModel");_.FrQ=new _.FG("confirmDialogRenderer");var Krq;Krq=new _.FG("menuRenderer");_.iAR=new _.FG("menuFlexibleItemRenderer");var LrX=new _.FG("pollRenderer");_.t4Q=new _.FG("backgroundPromoRenderer");var e4R;_.pu8=new _.FG("chipCloudRenderer");e4R=new _.FG("chipCloudChipRenderer");var ZAa=new _.FG("dropdownRenderer");var P_S=new _.FG("gridVideoRenderer");_.dKq=new _.FG("itemSectionRenderer");_.h48=new _.FG("messageRenderer");var wux=new _.FG("sortFilterHeaderRenderer");_.LH=new _.FG("videoRenderer");var AjQ=new _.FG("resolveUrlCommandMetadata");var kXN=function(){B2.apply(this,arguments)};
_.f(kXN,B2);kXN.prototype.getAssociations=function(){return[]};
kXN.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.TKR=new _.FG("getAnswerCommand");_.pF=new _.FG("searchEndpoint");var YZX=new _.FG("genAiRichTextViewModel");var Rtr=new _.FG("overviewAnswerViewModel");var yj8=new _.FG("videoOverviewViewModel");var cjx=new _.FG("addToPlaylistServiceEndpoint");var fHq=new _.FG("clearSearchHistoryEndpoint");var GXp=new _.FG("clearWatchHistoryEndpoint");var C_X=new _.FG("webSerializedServiceEndpointExtension");_.M4A=new _.FG("createCommentEndpoint");var OA8=new _.FG("createCommentReplyEndpoint");var DK8=new _.FG("performCommentActionEndpoint");var R4Z=new _.FG("updateCommentEndpoint");var nXN=new _.FG("updateCommentReplyEndpoint");_.tL=new _.FG("createPlaylistServiceEndpoint");var lHa=new _.FG("deletePlaylistEndpoint");var qZZ=new _.FG("deleteVideoEndpoint");var n6r=new _.FG("getReportFormEndpoint");var SZR=new _.FG("modifyChannelNotificationPreferenceEndpoint");var jG9;_.t2=new _.FG("offlinePlaylistEndpoint");jG9={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 WPh;_.L4=new _.FG("offlineVideoEndpoint");WPh={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 z4R=new _.FG("pingingEndpoint");_.Jja=new _.FG("selectActiveIdentityEndpoint");var NKx=new _.FG("setSettingEndpoint");var Apo=new _.FG("undoFeedbackEndpoint");var xKX=new _.FG("unsubscribeEndpoint");_.BKN=new _.FG("updatedMetadataEndpoint");var gXp=function(){B2.apply(this,arguments)};
_.f(gXp,B2);gXp.prototype.getAssociations=function(){return[]};
gXp.prototype.getTypeName=function(){return"settingEntity"};_.sKS=new _.FG("updateLocalAppSettingCommand");var u_Z=new _.FG("saveImageToDeviceEndpoint");var jKX=new _.FG("shareImageCommand");var Wra=new _.FG("sharingProviderDataCommand");var oXa=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(oXa,_.Lf);var Xu8=[0,_.aq,-1];oXa.prototype.JSC$12605_serializeBinary=a5G(Xu8);var aHp=_.yn(Xu8);var rj8=new _.FG("userMentionSuggestionRenderer");var $Ka=new _.FG("liveChatTunnelCommand");var IHS=new _.FG("showSponsorshipsGiftOfferDialogCommand");var HAZ=new _.FG("sponsorshipsScrollableShelfViewModel");var mKQ=new _.FG("updateUpcomingEventReminderButtonStateCommand");var UKx=new _.FG("upcomingEventReminderButtonStateRenderer");var v2N=new _.FG("subscribeEndpoint");var Qu8=new _.FG("registerTasksCommand");var VvZ=new _.FG("hideSheetCommand");var E2p=new _.FG("hideSnackbarCommand");var b1q=new _.FG("showDialogCommand");_.h2=new _.FG("showSheetCommand");var FOZ=new _.FG("showSnackbarCommand");var KON=function(){B2.apply(this,arguments)};
_.f(KON,B2);KON.prototype.getAssociations=function(){return[]};
KON.prototype.getTypeName=function(){return"chipEntity"};var i1S=function(){B2.apply(this,arguments)};
_.f(i1S,B2);i1S.prototype.getAssociations=function(){return[]};
i1S.prototype.getTypeName=function(){return"dismissState"};_.Ou=new _.FG("avatarViewModel");var LOp=new _.FG("badgeViewModel");_.pH=new _.FG("buttonViewModel");_.e5=new _.FG("chipViewModel");var pvm=new _.FG("collectionThumbnailViewModel");var tvS=new _.FG("contentPreviewImageViewModel");var pka=new _.FG("decoratedAvatarViewModel");_.by9=new _.FG("engagementBarViewModel");_.ejR=new _.FG("imageBannerViewModel");var Z18=new _.FG("lockupContentMetadataRowExtension");_.PpX=new _.FG("lockupMetadataViewModel");_.dDq=new _.FG("lockupViewModel");var kVa=new _.FG("avatarStackViewModel");_.TqN=new _.FG("contentMetadataViewModel");var YsQ=function(){B2.apply(this,arguments)};
_.f(YsQ,B2);YsQ.prototype.getAssociations=function(){return[]};
YsQ.prototype.getTypeName=function(){return"pageHeaderEntity"};_.y$8=new _.FG("pageHeaderViewModel");var c$Z=new _.FG("snackbarViewModel");var fZq=new _.FG("thumbnailHoverOverlayToggleActionsViewModel");_.Zq=new _.FG("toggleButtonViewModel");var GVZ=function(){B2.apply(this,arguments)};
_.f(GVZ,B2);GVZ.prototype.getAssociations=function(){return[]};
GVZ.prototype.getTypeName=function(){return"votingEntity"};_.F1B=new _.FG("votingViewModel");var CLZ=new _.FG("sectionHeaderViewModel");var M2A=new _.FG("notifyDropdownOptionSelectedCommand");var pKG=new _.FG("listViewModel");_.wW=new _.FG("listItemViewModel");var tEb=new _.FG("toggleableListItemViewModel");var OPa=new _.FG("dialogHeaderViewModel");var DIX=function(){B2.apply(this,arguments)};
_.f(DIX,B2);DIX.prototype.getAssociations=function(){return[]};
DIX.prototype.getTypeName=function(){return"dataFreshnessEntity"};var TMh=new _.FG("suspenseViewModel");var RzR=new _.FG("tooltipViewModel");var nHx=function(){B2.apply(this,arguments)};
_.f(nHx,B2);nHx.prototype.getAssociations=function(){return[]};
nHx.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var lZS=function(){B2.apply(this,arguments)};
_.f(lZS,B2);lZS.prototype.getAssociations=function(){return[]};
lZS.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var qsp=function(){B2.apply(this,arguments)};
_.f(qsp,B2);qsp.prototype.getAssociations=function(){return[]};
qsp.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.SsN=new _.FG("transcriptSubmitCaptionCorrectionCommand");var zzS=function(){B2.apply(this,arguments)};
_.f(zzS,B2);zzS.prototype.getAssociations=function(){return[]};
zzS.prototype.getTypeName=function(){return"buttonEntity"};var Fn9=new _.FG("unpluggedStringRunImage");var J$p=new _.FG("tabViewModel");var NqN=new _.FG("tabbedViewModel");var xIN=function(){B2.apply(this,arguments)};
_.f(xIN,B2);xIN.prototype.getAssociations=function(){return[]};
xIN.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.BqV=new _.FG("updateDescriptionAction");var gHZ=new _.FG("updateToggleButtonTextAction");var ssN=new _.FG("showFullscreenPlayerControlsCommand");var uWV=new _.FG("updateVideoMetadataCommand");_.jsN=new _.FG("autoplaySwitchButtonRenderer");var Do;_.WsA=new _.FG("multiMarkersPlayerBarRenderer");Do=new _.FG("chapterRenderer");var oHN=new _.FG("heatMarkerRenderer");var DU3=new _.FG("heatmapRenderer");var XIN=new _.FG("smartSkipPlayerScrimOverlayRenderer");var aZx=new _.FG("timedMarkerDecorationRenderer");var WfS=new _.FG("postWebToNativeMessageCommand");var MM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(MM,_.Lf);MM.prototype.getMethodName=function(){return _.fN(this,1)};var r$x=[0,_.aq,-2];MM.prototype.JSC$12627_serializeBinary=a5G(r$x);var $IQ=_.YP(MM,r$x);var IZq=new _.FG("whitelistEditEndpoint");var HPq=new _.FG("clearUrlParamCommand");var mIq=new _.FG("commerceActionCommand");_.UIN=new _.FG("getPaymentInstrumentsParamsCommand");var vOa=new _.FG("getPaymentsClientTokenCommand");var QVa=new _.FG("googlePaymentBillingCommand");var VsN=new _.FG("googlePaymentPurchaseManagerCommand");_.EOa=new _.FG("logGtmCommand");var b5Z=new _.FG("updateCardItemOnClickCommand");_.Fya=new _.FG("ypcPauseSubscriptionCommand");_.KyV=new _.FG("ypcResumeSubscriptionCommand");var i5a=function(){B2.apply(this,arguments)};
_.f(i5a,B2);i5a.prototype.getAssociations=function(){return[]};
i5a.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var LyS=function(){B2.apply(this,arguments)};
_.f(LyS,B2);LyS.prototype.getAssociations=function(){return[]};
LyS.prototype.getTypeName=function(){return"commerceCartListEntity"};var tsQ=function(){B2.apply(this,arguments)};
_.f(tsQ,B2);tsQ.prototype.getAssociations=function(){return[]};
tsQ.prototype.getTypeName=function(){return"iconBadgeEntity"};var pyZ=function(){B2.apply(this,arguments)};
_.f(pyZ,B2);pyZ.prototype.getAssociations=function(){return[]};
pyZ.prototype.getTypeName=function(){return"pdpStateEntity"};var eWR=function(){B2.apply(this,arguments)};
_.f(eWR,B2);eWR.prototype.getAssociations=function(){return[]};
eWR.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var kkB=new _.FG("ypcOffersEndpoint");var Z5N=new _.FG("cardItemRenderer"),PFa=new _.FG("cardItemTextRenderer");var dgR=new _.FG("commerceCartItemQuantityPickerRenderer");var hWq=new _.FG("linkCardRenderer");var NtT=new _.FG("quantityIncrementerButtonViewModel");var wya=new _.FG("quantityIncrementerViewModel");var Av8=new _.FG("themedImageViewModel");_.k$q=new _.FG("ypcCancelRecurrenceEndpoint");var T_N=new _.FG("ypcCompleteTransactionEndpoint");_.YmN=new _.FG("ypcGetCartEndpoint");_.gW=new _.FG("ypcGetOffersEndpoint");_.Pm=new _.FG("ypcHandleTransactionEndpoint");var yvA=new _.FG("ypcLogWalletAnalyticDataEndpoint");_.cva=new _.FG("ypcRedeemCodeEndpoint");var frN=new _.FG("ypcUpdateFopEndpoint");k9(AB(1),hB(4));FJR((new MessageChannel).port2);var G$8=function(){this.register=new Map},cCS=function(v,Q,V){v=v+"_"+Q;
dJ.register.has(v)?V=dJ.register.get(v):(V=V(),dJ.register.set(v,V));return V},CFN=function(v){v=_.L(v.register.values());
for(var Q=v.next();!Q.done;Q=v.next())_.Kq(Q.value,"ABORTED")};
G$8.prototype.clear=function(){CFN(this);this.register.clear()};
var dJ=new G$8;var VXQ=Date.now().toString();var FUo=bVm();var P0E={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 MsN,Gi;MsN=1;Gi=function(v){this.veData=v};
_.dE=function(v){return new Gi({trackingParams:v})};
_.Vw=function(v,Q,V,E,b,F){var t=MsN++;return new Gi({veType:v,veCounter:t,elementIndex:V,dataElement:Q,youtubeData:E,jspbYoutubeData:b,loggingDirectives:F})};
_.K=Gi.prototype;
_.K.getAsJson=function(){var v={};this.veData.trackingParams!==void 0?v.trackingParams=this.veData.trackingParams:(v.veType=this.veData.veType,this.veData.veCounter!==void 0&&(v.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(v.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(v.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(v.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(v.isCounterfactual=!0);
return v};
_.K.getAsJspb=function(){var v=new yyx;this.veData.trackingParams!==void 0?v.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.DD(v,2,this.veData.veType),this.veData.veCounter!==void 0&&_.DD(v,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.DD(v,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Tc(v,5,!0));if(this.veData.dataElement!==void 0){var Q=this.veData.dataElement.getAsJspb();_.Mj(v,7,Q)}this.veData.youtubeData!==void 0&&_.Mj(v,8,this.veData.jspbYoutubeData);
return v};
_.K.toString=function(){return JSON.stringify(this.getAsJson())};
_.K.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.K.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Pr("yt_logging_screen.getRootVeType",pWT);_.Pr("yt_logging_screen.getCurrentCsn",_.Mo);_.Pr("yt_logging_screen.getCttAuthInfo",On);_.Pr("yt_logging_screen.setCurrentScreen",_.Da);var O5Z=function(){this.events=new Map},DgN=function(v){var Q=[];
v=_.L(v.events.values());for(var V=v.next();!V.done;V=v.next())Q.push(V.value);return Q};
O5Z.prototype.clear=function(){this.events.clear()};var nOQ=function(){this.logTransport=new RWV;this.loggedEventRegister=new O5Z;this.unloggedEventRegister=new O5Z;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12664_flushTimer=new _.y0(this.flushInterval);this.JSC$12664_flushTimer.listen("tick",this.flush,!1,this)};
nOQ.prototype.flush=function(){if(this.eventsCount){var v={loggedEvents:DgN(this.loggedEventRegister),unloggedEvents:DgN(this.unloggedEventRegister)};if(_.Y("export_player_version_to_ytconfig")){var Q;(Q=_.r7("PLAYER_CLIENT_VERSION"))?(Q=Q.split("-")[0].replace(/\./g,""),Q=isNaN(Number(Q))?"0":Q):Q="";var V=_.r7("PLAYER_CLIENT_VERSION");if(V){V=V.split("-");var E="";V.length>1&&(E=V[V.length-1]);V=QBG(E.startsWith("canary_experiment")?"canary":E.startsWith("canary_control")?"control":"none")}else V=
"CLIENT_CANARY_STATE_UNKNOWN";v.dimensions={playerClientVersion:Q,playerCanaryState:V}}this.logTransport.flush(v);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12664_flushTimer.enabled&&this.JSC$12664_flushTimer.stop()}};
var lra=function(v){hL==null&&(hL=new nOQ);var Q=hL;var V=Q.loggedEventRegister;v.dimensions=v.dimensions||{};v.dimensions.csn=_.Mo()||"";var E=wWo(v.dimensions).join(";");if(v.records!=null)if(V.events.has(E)){var b;(b=V.events.get(E).records)==null||b.push.apply(b,_.ui(v.records))}else V.events.set(E,v);Q.JSC$12664_flushTimer.enabled||Q.JSC$12664_flushTimer.start();Q.eventsCount++;Q.eventsCount>=100&&Q.flush()};var RWV=function(){};
RWV.prototype.flush=function(v,Q){_.Y("enable_client_sli_logging")&&_.X0("sliEventBatch",v,{sendIsolatedPayload:!!Q})};var hL;var SmQ;SmQ=function(v){var Q=qm8;v=v===void 0?{}:v;Q=Q.name;var V=yCr("SUCCESS");lra({dimensions:v,records:[{name:Q,state:"SLI_STATE_END",status:V}]})};
_.fbB=function(v,Q,V,E){this.name=v;this.sliId=Q;this.timeoutMs=V;this.statusOnTimeout=E;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.fbB.prototype.getId=function(){return this.sliId};
_.Fu=function(v,Q){Q=Q===void 0?{}:Q;v.ongoing||(v.ongoing=!0,v.dimensions=Q,v.logSliId=o$Z(),lra({dimensions:v.dimensions,records:[{name:v.name,state:"SLI_STATE_START",sliId:v.logSliId}]}),v.timeoutMs>0&&(v.timeoutHandle=setTimeout(function(){_.Kq(v,v.statusOnTimeout)},v.timeoutMs)))};
_.Kq=function(v,Q){v.ongoing&&(v.timeoutMs>0&&clearTimeout(v.timeoutHandle),v.ongoing=!1,Q={dimensions:v.dimensions,records:[{name:v.name,status:yCr(Q),state:"SLI_STATE_END",sliId:v.logSliId}]},dJ.register.delete(v.name+"_"+v.sliId),lra(Q))};var qm8=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var zWX=function(){B2.apply(this,arguments)};
_.f(zWX,B2);zWX.prototype.getAssociations=function(){return[]};
zWX.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var u7E=new _.FG("highlightTextDecoratorColorMapExtension");var g3Z=new _.FG("styleRunColorMapExtension");var nmr=_.s$(["data-"]),SkE={};var JCr={};var wJ=function(v){this.wrappedPromise_=v===void 0?null:v;this.state_=0;this.JSC$12695_value_=null};
wJ.prototype.then=function(v,Q,V){return this.wrappedPromise_?this.wrappedPromise_.then(v,Q,V):this.state_===1&&v?(v=v.call(V,this.JSC$12695_value_))&&typeof v.then==="function"?v:_.AL(v):this.state_===2&&Q?(v=Q.call(V,this.JSC$12695_value_))&&typeof v.then==="function"?v:_.JvN(v):this};
wJ.prototype.getValue=function(){return this.JSC$12695_value_};
wJ.prototype.isRejected=function(){return this.state_==2};
kgq(wJ);_.JvN=function(v){var Q=new wJ;v=v===void 0?null:v;Q.state_=2;Q.JSC$12695_value_=v===void 0?null:v;return Q};
_.AL=function(v){var Q=new wJ;v=v===void 0?null:v;Q.state_=1;Q.JSC$12695_value_=v===void 0?null:v;return Q};var HVb="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var N_a=["load","abort","error"],k_=function(v,Q,V){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12715_maxAspectRatio_=v;this.disableAnimation_=Q===void 0?!1:Q;this.disableExifRotation_=V===void 0?!1:V;this.JSC$12715_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12715_reject_=this.resolve_=null};
k_.prototype.transform=function(v){var Q=this;this.mime_=v.type;ve(f1A(v),this.dataUrlRead_,this.readError_,this);ve(csV(v.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(V,E){Q.resolve_=V;Q.JSC$12715_reject_=E})};
k_.prototype.dataUrlRead_=function(v){this.dataUrl_=v;this.angle_!=null&&xgN(this)};
k_.prototype.exifRead_=function(v){if(this.disableExifRotation_)this.angle_=0;else{a:if(v=new DataView(v),v.byteLength<2||v.getUint16(0)!==65496)v=-2;else{for(var Q=2,V=v.byteLength;Q<V;){var E=v.getUint16(Q),b=v.getUint16(Q+2);if(E===65505){Q+=4;E=v.getUint32(Q);b=v.getUint16(Q+4);if(E!==1165519206||b!==0)break;Q+=6;E=v.getUint16(Q)===18761;Q+=v.getUint32(Q+4,E);b=v.getUint16(Q,E);Q+=2;for(var F=0;F<b;F++){if(v.getUint16(Q,E)===274){Q+=8;v=v.getUint16(Q,E);break a}Q+=12}}else if(E>>8!==255)break;
else Q+=b+2}v=-1}switch(v){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&xgN(this)};
k_.prototype.readError_=function(){this.JSC$12715_reject_()};
var xgN=function(v){ZM(v.JSC$12715_image_,N_a,v.completeTransform_,!1,v);v.JSC$12715_image_.src=_.oE(v.dataUrl_).toString();v.JSC$12715_image_.src!=uV.toString()&&v.JSC$12715_image_.src.substr(0,11)==="data:image/"||v.JSC$12715_reject_()};
k_.prototype.completeTransform_=function(){if(this.JSC$12715_image_.src!=uV.toString()){var v=_.oE(this.dataUrl_),Q=this.JSC$12715_image_.naturalHeight?this.JSC$12715_image_.naturalWidth/this.JSC$12715_image_.naturalHeight:null;this.invalidAspectRatio=Q>this.JSC$12715_maxAspectRatio_||Q<1/this.JSC$12715_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var V=this.JSC$12715_image_.naturalWidth,E=this.JSC$12715_image_.naturalHeight,b=Q=0,F=this.JSC$12715_image_.naturalHeight?this.JSC$12715_image_.naturalWidth/
this.JSC$12715_image_.naturalHeight:null;F>this.JSC$12715_maxAspectRatio_?(V=this.JSC$12715_maxAspectRatio_*E,Q=(V-this.JSC$12715_image_.naturalWidth)/2,this.cropped=!0):F<1/this.JSC$12715_maxAspectRatio_?(E=this.JSC$12715_maxAspectRatio_*V,b=(E-this.JSC$12715_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)F=V,V=E,E=F,F=Q,Q=b,b=F;switch(this.angle_){case 90:b-=V;break;case 180:Q-=V;b-=E;break;case 270:Q-=
E}this.cropped||this.angle_%360!==0?(v=document.createElement("canvas"),v.width=V||1,v.height=E||1,this.JSC$12715_image_.naturalWidth&&this.JSC$12715_image_.naturalHeight&&(V=v.getContext("2d"),V.rotate(Math.PI/180*this.angle_),V.drawImage(this.JSC$12715_image_,Q,b,this.JSC$12715_image_.naturalWidth,this.JSC$12715_image_.naturalHeight)),this.transformedData=_.oE(v.toDataURL(this.mime_))):this.transformedData=v}else this.transformedData=v;this.resolve_(this)}};var Ta=function(v,Q){_.fv.call(this,v);this.value=Q};
_.f(Ta,_.fv);
var Y_=function(v,Q,V,E,b,F,t){t=t===void 0?!1:t;_.DO.call(this);var p=this;this.JSC$12720_url_=v;this.channelId_=Q;this.maxFileSizeMb_=V;this.JSC$12720_maxAspectRatio_=E;this.dropZoneEl_=b;this.rejectInvalidAspectRatio_=t;this.selectButtonEl_=F;this.JSC$12720_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Md(this.dropZoneEl_);this.selectOverlay_=new Ov(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12720_image_=this.transfer_=null;this.handler_=new _.cE(this);_.Cg(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(F,"click",function(){p.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.f(Y_,_.DO);Y_.prototype.disposeInternal=function(){for(var v=this.selectButtonEl_.nextSibling;v&&v.parentNode&&v.tagName=="INPUT";)v.parentNode.removeChild(v),v=this.selectButtonEl_.nextSibling;this.cancel();_.DO.prototype.disposeInternal.call(this)};
Y_.prototype.uploadPromise=function(){if(this.JSC$12720_image_==null)return null;this.uploadPromise_||B_N(this);return this.uploadPromise_};
Y_.prototype.cancel=function(){gON(this);this.JSC$12720_image_=null};
var gON=function(v){v.transfer_&&v.transfer_.cancel();v.transfer_=null;v.uploadPromise_=null;v.resolve_=null;v.JSC$12720_reject_=null},B_N=function(v){gON(v);
v.transfer_=_.ZB8(v.JSC$12720_url_,{"X-YouTube-ChannelId":v.channelId_},v.JSC$12720_image_);v.handler_.listenOnce(v.transfer_,"l",v.JSC$12722_onUploadComplete_);v.handler_.listenOnce(v.transfer_,"n",v.onUploadError_);v.transfer_.run();v.uploadPromise_=new Promise(function(Q,V){v.resolve_=Q;v.JSC$12720_reject_=V})};
_.K=Y_.prototype;_.K.onChange_=function(v){v.files.length&&(this.JSC$12720_image_=v.files[0],this.JSC$12720_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12720_image_=null,this.dispatchEvent(new Ta("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(B_N(this),(new k_(this.JSC$12720_maxAspectRatio_)).transform(this.JSC$12720_image_).then((0,_.Nz)(this.onPreview_,this),(0,_.Nz)(this.onPreviewError_,this))))};
_.K.onPreview_=function(v){if(v.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12720_image_=null),this.dispatchEvent(new Ta("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;v.cropped&&this.dispatchEvent(new Ta("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Ta("yt.comments.ImageUploadOverlay.CHANGE_EVENT",v.transformedData))};
_.K.onPreviewError_=function(){this.JSC$12720_image_=null;this.dispatchEvent(new Ta("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.K.onHover_=function(v){v.stopPropagation();v.preventDefault();if(v.type==="dragover")v=!0;else if(v.type==="dragleave")v=!1;else return;this.dispatchEvent(new Ta("yt.comments.ImageUploadOverlay.HOVER_EVENT",v))};
_.K.JSC$12722_onUploadComplete_=function(){var v=(0,_.jSN)(this.transfer_.getResponseText());this.resolve_(v.encryptedBlobId)};
_.K.onUploadError_=function(){this.JSC$12720_reject_();gON(this)};var sVN=function(v){v=v||{};var Q={},V={};this.url=v.url||"";this.args=v.args||_.gI.clone(Q);this.assets=v.assets||{};this.attrs=v.attrs||_.gI.clone(V);this.fallback=v.fallback||null;this.fallbackMessage=v.fallbackMessage||null;this.html5=!!v.html5;this.disable=v.disable||{};this.loaded=!!v.loaded;this.messages=v.messages||{}};
sVN.prototype.clone=function(){var v=new sVN,Q;for(Q in this)if(this.hasOwnProperty(Q)){var V=this[Q];_.UR(V)=="object"?v[Q]=_.gI.clone(V):v[Q]=V}return v};var u3x,jVX,Wy8,gs,Xyp,arx,rva,$gN,Irq,H5x,mga,Uga,vqZ,Qna,VnZ,Eqa,bTR,FMR,KMR,iTx,LMR,tnV,pbQ,eFp,ZTp,PUS,dhN,hF8,wbA,v1S,AkQ,kS8,TkR,YL8,ykV,ck8,f8N,GSR,CUa,Mna,UiB,OTq,Dhx,RFQ,nqQ,l8Z,qLR,SL8,zFS,JkN,NkA,xhq,BkR,gqN,snN,uAZ,yd,jnV,WMN,oqX,Xba,a8a,rk8,$ha,I88,HTN,mhR,Uh8,vCA,QAp,VR8,ECx,b0x,FHR,KHA,i0q,Hu0,LHV,tRq,p8R,ePZ,Z0R,Plq,d0q,hP8,w8N,AVq,k3V,TrR,YQ8,yVZ,cVV,fJp,G3N,ClX,MRZ,O0S,D0V,RPS,nCR,lJa,qQ8;u3x=["account/accounts_list"];jVX=["acknowledge_channel_tou_strike"];Wy8=["notification/add_upcoming_event_reminder"];
_.oOx=["att/get"];gs=["browse","music/browse","streaming_browse","unplugged/browse"];Xyp=["channel/claim_legacy_youtube_channel"];arx=["history/clear_search_history"];rva=["history/clear_watch_history"];$gN=["comment/perform_comment_action"];Irq=["comment/get_comment_replies"];H5x=["ypc/commerce_action"];mga=["backstage/create_post"];Uga=["live/create_broadcast"];vqZ=["channel/create_channel"];Qna=["comment/create_comment_reply"];VnZ=["comment/create_comment"];Eqa=["live_chat/create_poll"];bTR=["playlist/create"];
FMR=["decorate_message"];KMR=["live_chat/delete_message"];iTx=["playlist/delete"];LMR=["video/delete"];tnV=["like/dislike"];pbQ=["dismissal/dismiss"];eFp=["flag/flag"];ZTp=["flow"];PUS=["account/account_menu"];dhN=["playlist/get_add_to_playlist"];hF8=["get_answer"];wbA=["channel/get_channel_creation_form"];v1S=["offline/get_download_action"];AkQ=["kids/get_kids_blocklist_picker"];kS8=["live_chat/get_item_context_menu"];TkR=["live_chat/get_live_chat_message_buy_flow"];YL8=["live_chat/get_live_chat_replay"];
ykV=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];ck8=["live_chat/get_live_chat_super_sticker_buy_flow"];f8N=["notification/get_notification_menu"];GSR=["playlist/get_settings_editor"];CUa=["backstage/get_post_video_preview"];Mna=["account/get_profile_card"];UiB=["share/get_share_panel"];OTq=["share/get_sharing_provider_data"];Dhx=["get_survey"];RFQ=["notification/get_unseen_count"];nqQ=["get_user_mention_suggestions"];l8Z=["get_watch"];qLR=["guide"];
SL8=["feedback"];zFS=["kids/update_blacklist"];JkN=["like/like"];NkA=["live_chat/live_chat_action"];xhq=["live_chat/manage_user"];BkR=["video_manager/metadata_update"];gqN=["live_chat/moderate"];snN=["notification/modify_channel_preference"];uAZ=["notification/opt_out"];yd=["get_panel","get_posts_by_host_panel"];jnV=["player"];WMN=["browse/edit_playlist"];oqX=["notification/record_interactions"];Xba=["reel/reel_item_watch"];a8a=["reel/reel_watch_sequence"];rk8=["like/removelike"];$ha=["notification/remove_upcoming_event_reminder"];
I88=["flag/get_form"];HTN=["miniapp/report_value"];mhR=["navigation/resolve_url"];Uh8=["channel/reveal_business_email"];vCA=["in_video/search"];QAp=["search","sfv/search","unplugged/search"];VR8=["live_chat/send_message"];ECx=["live_chat/send_live_chat_vote"];b0x=["account/set_setting"];FHR=["submit_caption_correction"];KHA=["submit_form"];i0q=["subscription/subscribe"];Hu0=["get_transcript"];LHV=["resolve_location","unplugged/resolve_location"];tRq=["subscription/unsubscribe"];p8R=["backstage/update_post"];
ePZ=["channel_edit/update_channel_page_settings"];Z0R=["comment/update_comment_reply"];Plq=["comment/update_comment"];d0q=["comment/update_comments_settings"];hP8=["creator/update_creator_channel"];w8N=["pdg/update_enablement"];AVq=["updated_metadata"];k3V=["channel_edit/validate_channel_handle"];TrR=["verify_age"];YQ8=["next","unplugged/watch_next"];yVZ=["whitelist/edit"];cVV=["ypc/cancel_recurrence"];fJp=["ypc/complete_transaction"];G3N=["ypc/get_cart"];ClX=["ypc/get_fix_instrument_params"];
MRZ=["ypc/get_offers"];O0S=["ypc/get_payment_instruments_params"];D0V=["ypc/handle_transaction"];RPS=["ypc/log_payment_server_analytics"];nCR=["ypc/pause_subscription"];lJa=["ypc/redeem_code"];qQ8=["ypc/resume_subscription"];var SQQ=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,
221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,
232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,
36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,
65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,173191,
173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,
185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,
45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,
182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,
269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var iI=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Pr("yt.msgs_",iI);var cm=new _.KB("ACTION_ROUTER_TOKEN");_.fH=function(){this.autonavState_=_.Y("kevlar_is_pupi_enabled")?2:thT()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.fH.prototype.getState=function(){return this.autonavState_};
_.fH.prototype.pause=function(v){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=v):this.autonavState_==1&&(this.disabledAutonavPauseReason_=v)};
_.fH.prototype.setState=function(v,Q,V){Q&&(this.autoplayChangedByUser=!0);Q=this.autonavState_===3||v===3;this.autonavState_!=v&&(this.autonavState_=v,v!=3&&_.p2o(v==2),v=_.Y("kevlar_is_pupi_enabled")?V||Q:!0,_.KW.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,v,V))};
_.fH.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.$G(_.fH);var Ga=function(){this.hasRun=!1};var CH={},yBo=(CH.auto_search="LATENCY_ACTION_AUTO_SEARCH",CH.ad_to_ad="LATENCY_ACTION_AD_TO_AD",CH.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",CH.app_startup="LATENCY_ACTION_APP_STARTUP",CH.browse="LATENCY_ACTION_BROWSE",CH.cast_splash="LATENCY_ACTION_CAST_SPLASH",CH.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",CH.channels="LATENCY_ACTION_CHANNELS",CH.chips="LATENCY_ACTION_CHIPS",CH.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",CH.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
CH.editor="LATENCY_ACTION_EDITOR",CH.embed="LATENCY_ACTION_EMBED",CH.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",CH.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",CH.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",CH.explore="LATENCY_ACTION_EXPLORE",CH.favorites="LATENCY_ACTION_FAVORITES",CH.home="LATENCY_ACTION_HOME",CH.inboarding="LATENCY_ACTION_INBOARDING",CH.landing="LATENCY_ACTION_LANDING",CH.learning="LATENCY_ACTION_LEARNING",
CH.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",CH.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",CH.library="LATENCY_ACTION_LIBRARY",CH.live="LATENCY_ACTION_LIVE",CH.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",CH.management="LATENCY_ACTION_MANAGEMENT",CH.mini_app="LATENCY_ACTION_MINI_APP_PLAY",CH.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",CH.onboarding="LATENCY_ACTION_ONBOARDING",CH.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
CH.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",CH.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",CH.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",CH.prebuffer="LATENCY_ACTION_PREBUFFER",CH.prefetch="LATENCY_ACTION_PREFETCH",CH.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",CH.profile_switcher="LATENCY_ACTION_LOGIN",CH.projects="LATENCY_ACTION_PROJECTS",CH.reel_watch="LATENCY_ACTION_REEL_WATCH",CH.results="LATENCY_ACTION_RESULTS",CH.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
CH.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",CH.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",CH.review="LATENCY_ACTION_REVIEW",CH.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",CH.search_ui="LATENCY_ACTION_SEARCH_UI",CH.search_suggest="LATENCY_ACTION_SUGGEST",CH.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",CH.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",CH.seek="LATENCY_ACTION_PLAYER_SEEK",CH.settings="LATENCY_ACTION_SETTINGS",CH.store="LATENCY_ACTION_STORE",
CH.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",CH.tenx="LATENCY_ACTION_TENX",CH.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",CH.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",CH.watch="LATENCY_ACTION_WATCH",CH.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",CH["watch,watch7"]="LATENCY_ACTION_WATCH",CH["watch,watch7_html5"]="LATENCY_ACTION_WATCH",CH["watch,watch7ad"]="LATENCY_ACTION_WATCH",CH["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",CH.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
CH.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",CH.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",CH.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",CH.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",CH.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",CH.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",CH.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",CH),NAQ=0;var jXh=function(v,Q){lN.call(this,1,arguments);this.timer=Q};
_.f(jXh,lN);var ufT=new NHh("aft-recorded",jXh);var C7T=_.bb.ytLoggingGelSequenceIdObj_||{};_.Pr("ytLoggingGelSequenceIdObj_",C7T);var M_=_.bb.ytLoggingLatencyUsageStats_||{};_.Pr("ytLoggingLatencyUsageStats_",M_);var OO=function(){this.cleanupJob=0},DdS=function(){OO.instance||(OO.instance=new OO);
return OO.instance};
_.K=OO.prototype;_.K.baseline=function(v,Q,V){Dq(this,"baseline_"+v)||_.X0("latencyActionBaselined",{clientActionNonce:v},{timestamp:Q,cttAuthInfo:V})};
_.K.tick=function(v,Q,V,E){Dq(this,"tick_"+v+"_"+Q)||_.X0("latencyActionTicked",{tickName:v,clientActionNonce:Q},{timestamp:V,cttAuthInfo:E})};
_.K.info=function(v,Q,V){var E=Object.keys(v).join("");Dq(this,"info_"+E+"_"+Q)||(v=Object.assign({},v),v.clientActionNonce=Q,_.X0("latencyActionInfo",v,{cttAuthInfo:V}))};
_.K.jspbInfo=function(v,Q,V){for(var E="",b=0;b<zh(v).length;b++)zh(v)[b]!==void 0&&(E=b===0?E.concat(""+b):E.concat("_"+b));Dq(this,"info_"+E+"_"+Q)||(_.SS(v,2,Q),Q={cttAuthInfo:V},V=_.Y("jspb_sparse_encoded_pivot")?new Bx([{}]):new Bx,_.O9(V,7,xSp,v),Mhh("latencyActionInfo",V,Q))};
_.K.span=function(v,Q,V){var E=Object.keys(v).join("");Dq(this,"span_"+E+"_"+Q)||(v.clientActionNonce=Q,_.X0("latencyActionSpan",v,{cttAuthInfo:V}))};
var Dq=function(v,Q){M_[Q]=M_[Q]||{count:0};var V=M_[Q];V.count++;V.time=(0,_.wO)();v.cleanupJob||(v.cleanupJob=_.go(_.XT,function(){var E=(0,_.wO)(),b;for(b in M_)M_[b]&&E-M_[b].time>6E4&&delete M_[b];v&&(v.cleanupJob=0)},5E3));
return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new _.xd("CSI data exceeded logging limit with key",Q.split("_")),Q.indexOf("plev")>=0||_.Iy(V)),!0):!1};var zPp,JVR;zPp=window;JVR=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.wD=zPp.performance||zPp.mozPerformance||zPp.msPerformance||zPp.webkitPerformance||new JVR;var sXB=!1,n9B=!1,Wpb=(0,_.Nz)(_.wD.clearResourceTimings||_.wD.webkitClearResourceTimings||_.wD.mozClearResourceTimings||_.wD.msClearResourceTimings||_.wD.oClearResourceTimings||_.c7,_.wD);var Nra=window;Nra.ytcsi&&(Nra.ytcsi.infoGel=_.ft,Nra.ytcsi.tick=_.Mp);var Q0S=function(v){lN.call(this,1,arguments);this.csn=v};
_.f(Q0S,lN);var upQ=new NHh("screen-created",Q0S),ALh=[],v_t=wmG,ka3=0,SP=new Map,V5r=new Map,E_Z=new Map;var $B3=Symbol("Cf"),o$=new WeakMap;var R0=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},eM=function(){R0.instance||(R0.instance=new R0);
return R0.instance};
_.K=R0.prototype;_.K.setClient=function(v){this.client=v};
_.K.JSC$12801_newScreen=function(){this.clear();this.csn=_.Mo()};
_.K.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.K.reportShown=function(v,Q,V){var E=this.JSC$12801_getTrackingParams(v),b=v.visualElement?v.visualElement:E;Q=this.shownElements.has(b);var F=this.visibleState.get(b);this.shownElements.add(b);this.visibleState.set(b,!0);v.impressionLog&&!Q&&v.impressionLog();if(E||v.visualElement)if(V=x0N(this,v,V))if(b=Bra(this,v),nH(this,v)||b){E=v.visualElement?v.visualElement:_.dE(E);var t=v.interactionLoggingClientData;b||Q?nH(this,v)&4?F||eYm(this.client,V,E,t):nH(this,v)&1&&!Q&&L49(this.client,V,E,t):L49(this.client,
V,E,t)}};
_.K.reportHidden=function(v,Q,V){var E=this.JSC$12801_getTrackingParams(v),b=v.visualElement?v.visualElement:E;Q=this.hiddenElements.has(b);var F=this.visibleState.get(b);this.hiddenElements.add(b);this.visibleState.set(b,!1);if(F===!1)return!0;if(!E&&!v.visualElement)return!1;V=x0N(this,v,V);if(!V||!nH(this,v)&&Bra(this,v))return!1;E=v.visualElement?v.visualElement:_.dE(E);nH(this,v)&8?ZH0(this.client,V,E):nH(this,v)&2&&!Q&&(v=this.client,Q=qp({cttAuthInfo:On(V)||void 0},V),E={csn:V,ve:E.getAsJson(),
eventType:2},V==="UNDEFINED_CSN"?Jy("visualElementHidden",Q,E):v?Wx("visualElementHidden",E,v,Q):_.X0("visualElementHidden",E,Q));return!0};
_.K.JSC$12801_getTrackingParams=function(v){var Q=this.getData(v),V,E;if(_.Y("il_use_view_model_logging_context")&&(Q==null?0:(V=Q.context)==null?0:(E=V.loggingContext)==null?0:E.loggingDirectives))return Q.context.loggingContext.loggingDirectives.trackingParams||"";var b,F;if(Q==null?0:(b=Q.rendererContext)==null?0:(F=b.loggingContext)==null?0:F.loggingDirectives)return Q.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(Q==null?0:Q.loggingDirectives)return Q.loggingDirectives.trackingParams||
"";var t;return((t=v.veContainer)==null?0:t.trackingParams)?v.veContainer.trackingParams:(Q==null?void 0:Q.trackingParams)||""};
_.K.JSC$12801_elementShouldLogGesture=function(v,Q){v=this.getData(v);return!!((Math.floor(Number(v&&v.loggingDirectives&&v.loggingDirectives.gestures&&v.loggingDirectives.gestures.types||""))||0)&Q)};
_.K.JSC$12801_getNearestParentVe=function(v){var Q=this.JSC$12801_getTrackingParams(v);return v.visualElement?v.visualElement:Q?_.dE(Q):v.parentElement?this.JSC$12801_getNearestParentVe(v.parentElement):null};
var x0N=function(v,Q,V){var E=_.Mo(V);return v.csn===null||E===v.csn||V?E:(v=new _.xd("VisibilityLogger called before newScreen",{caller:Q.tagName,previous_csn:v.csn,current_csn:E}),_.Iy(v),null)};
R0.prototype.getData=function(v){var Q,V=v.data||((Q=v.props)==null?void 0:Q.data);if(!V||v.isWebComponentWrapper){var E;V=(E=o$.get(v))==null?void 0:E[$B3]}return V};
var Bra=function(v,Q){var V;return!((V=v.getData(Q))==null||!V.loggingDirectives)},nH=function(v,Q){v=v.getData(Q);
return Math.floor(Number(v&&v.loggingDirectives&&v.loggingDirectives.visibility&&v.loggingDirectives.visibility.types||""))||1};var l9;l9=function(){};
_.id=function(){l9.instance||(l9.instance=new l9);return l9.instance};
l9.prototype.setClient=function(v){_.v5(eM().setClient).bind(eM())(v)};
_.gCS=function(){_.id();_.v5(eM().JSC$12801_newScreen).bind(eM())()};
l9.prototype.clear=function(){_.v5(eM().clear).bind(eM())()};
l9.prototype.reportShown=function(v,Q,V){_.v5(eM().reportShown).bind(eM())(v,Q,V)};
l9.prototype.reportHidden=function(v,Q,V){return _.v5(eM().reportHidden).bind(eM())(v,Q,V)};
var sW0=function(v,Q){return _.v5(eM().JSC$12801_getTrackingParams).bind(eM())(Q)},IBm=function(v,Q){return _.v5(eM().JSC$12801_getNearestParentVe).bind(eM())(Q)};var q_,sAX;q_=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};
_.tR=function(){q_.instance||(q_.instance=new q_);return q_.instance};
q_.prototype.setClient=function(v){this.client=v};
sAX=function(v,Q,V){V=V===void 0?{}:V;_.v5(function(){var E,b,F,t=((E=_.y(Q==null?void 0:Q.commandMetadata,_.Kt))==null?void 0:E.rootVe)||((b=_.y(Q==null?void 0:Q.commandMetadata,fqR))==null?void 0:(F=b.screenVisualElement)==null?void 0:F.uiType);if(t){E=_.y(Q==null?void 0:Q.commandMetadata,AjQ);if(E==null?0:E.parentTrackingParams){var p=_.dE(E.parentTrackingParams);if(E.parentCsn)var Z=E.parentCsn}else V.clickedVisualElement?p=V.clickedVisualElement:Q.clickTrackingParams&&(p=_.dE(Q.clickTrackingParams));
a:{E=_.y(Q,_.sn);b=_.y(Q,KyG);if(E){if(b=ef3(E,"VIDEO")){E={token:b,videoId:E.videoId};break a}}else if(b&&(E=ef3(b,"PLAYLIST"))){E={token:E,playlistId:b.playlistId};break a}E=void 0}V=Object.assign({},{cttAuthInfo:E,parentCsn:Z},V);if(_.Y("expectation_logging")){var d;V.loggingExpectations=((d=_.y(Q==null?void 0:Q.commandMetadata,fqR))==null?void 0:d.loggingExpectations)||void 0}_.S5(v,t,p,V)}else _.Iy(new _.xd("Error: Trying to create a new screen without a rootVeType",Q))})()};
_.S5=function(v,Q,V,E){E=E===void 0?{}:E;_.v5(function(){SQQ.includes(Q)||(_.Iy(new _.xd("createClientScreen() called with a non-page VE",Q)),Q=83769);E.isHistoryNavigation||(v.forwardHistoryStack=[],v.backHistoryStack.push({rootVe:Q,key:E.key||""}));v.graftQueue=[];v.stateChangedQueue=[];E.dataPromises?uDx(v,Q,V,E):jAA(v,Q,V,E)})()};
_.WHA=function(v,Q,V){V=V===void 0?0:V;_.v5(function(){Q.then(function(E){v.pendingScreenCreation.has(V)&&v.pendingScreenFn&&v.pendingScreenFn();var b=_.Mo(V),F=_.CC(V);if(b&&F){var t={automatedLogEventSource:3},p;(E==null?0:(p=E.response)==null?0:p.trackingParams)&&z2(v.client,b,F,_.dE(E.response.trackingParams),!1,t);var Z;(E==null?0:(Z=E.playerResponse)==null?0:Z.trackingParams)&&z2(v.client,b,F,_.dE(E.playerResponse.trackingParams),!1,t)}})})()};
q_.prototype.graftServerVe=function(v,Q,V){var E=this;return _.v5(function(){var b=_.dE(v);_.za(E,b,Q,V);return b})()};
_.HGE=function(v,Q,V,E){return _.Y("enable_client_ve_spec")&&Q.clientVeSpec?(Q=_.Vw(Q.clientVeSpec.uiType,void 0,Q.clientVeSpec.elementIndex,Q.clientVeSpec.clientYoutubeData,void 0,Q),_.za(v,Q,V,E)?Q:null):Q.trackingParams?v.graftServerVe(Q.trackingParams,V,E):null};
_.Lx=function(v,Q,V,E){return _.v5(function(){if(!Q.veType)return _.$h(new _.xd("Error: Trying to graft a client VE without a veType.")),null;if(Q.visibilityTypes){var b=Q.visibilityTypes.reduce(function(F,t){return F|t});
b={visibility:{types:String(b)}}}b=_.Vw(Q.veType,Q.visualElement,Q.elementIndex,Q.clientYouTubeData,void 0,b);return _.za(v,b,V,E)?b:null})()};
_.za=function(v,Q,V,E){E=E===void 0?0:E;return _.v5(function(){if(v.pendingScreenCreation.has(E))return v.graftQueue.push([Q,V]),!0;var b=_.Mo(E),F=V||_.CC(E);if(b&&F){if(_.Y("combine_ve_grafts")){var t=v.cachedVisualElements.get(F.toString());t?t.push(Q):(v.cachedRootVisualElements.set(F.toString(),F),v.cachedVisualElements.set(F.toString(),[Q]));v.attachTimeout||(v.attachTimeout=_.go(_.XT,function(){oCa(v,b)},1200))}else z2(v.client,b,F,Q);
return!0}return!1})()};
_.JL=function(v,Q,V){V=V===void 0?0:V;var E=v.recurringGrafts.get(V)||new Map;if(_.Y("smarter_ve_dedupping"))for(var b=Array.from(E.keys()),F=0;F<b.length;F++){var t=void 0,p=void 0;var Z=Q;var d=b[F];d.isClientVe()&&Z.isClientVe()?(t=Z.getAsJson(),p=d.getAsJson(),Z=t.veType!==p.veType||t.elementIndex!==p.elementIndex||t.dataElement!==p.dataElement||Z.getLoggingDirectives()!==d.getLoggingDirectives()?!1:!0):Z=d.veData.trackingParams!==void 0&&Z.veData.trackingParams!==void 0?((p=Z.veData)==null?void 0:
p.trackingParams)===((t=d.veData)==null?void 0:t.trackingParams):!1;if(Z)return}else if(E.has(Q))return;E.set(Q,void 0);v.recurringGrafts.set(V,E);_.Mo(V)==="UNDEFINED_CSN"||v.pendingScreenCreation.has(V)||_.za(v,Q,void 0,V)};
_.N_=function(v,Q,V,E){E=_.Mo(E===void 0?0:E);if(!E)return!1;d_T(v.client,E,Q,V);return!0};
_.x_=function(v,Q,V,E){if(!Q)return!1;E=_.Mo(E===void 0?0:E);if(!E)return!1;d_T(v.client,E,_.dE(Q),V);return!0};
_.zr=function(v,Q){var V=Q.getScreenLayer&&Q.getScreenLayer();if(Q.visualElement)return _.N_(v,Q.visualElement,void 0,V);Q=sW0(_.id(),Q);return _.x_(v,Q,void 0,V)};
q_.prototype.clickCommand=function(v,Q,V){return _.x_(this,v.clickTrackingParams,Q,V===void 0?0:V)};
q_.prototype.stateChanged=function(v,Q,V){this.visualElementStateChanged(_.dE(v),Q,V===void 0?0:V)};
q_.prototype.visualElementStateChanged=function(v,Q,V){V=V===void 0?0:V;V===0&&this.pendingScreenCreation.has(V)?this.stateChangedQueue.push([v,Q]):this.logStateChanged(v,Q,V)};
q_.prototype.logStateChanged=function(v,Q,V){V=V===void 0?0:V;var E=_.Mo(V);v=v||_.CC(V);return E&&v?(hY9(this.client,E,v,Q),!0):!1};
var uDx=function(v,Q,V,E){E=E===void 0?{}:E;v.pendingScreenCreation.add(E.layer||0);v.pendingScreenFn=function(){jAA(v,Q,V,E);var t=_.CC(E.layer);if(t){for(var p=_.L(v.graftQueue),Z=p.next();!Z.done;Z=p.next())Z=Z.value,_.za(v,Z[0],Z[1]||t,E.layer);t=_.L(v.stateChangedQueue);for(p=t.next();!p.done;p=t.next())p=p.value,v.logStateChanged(p[0],p[1])}};
V||_.Mo(E.layer)||v.pendingScreenFn();if(E.dataPromises)for(var b=_.L(E.dataPromises),F=b.next();!F.done;F=b.next())_.WHA(v,F.value,E.layer);else _.ro(Error("Df"))},jAA=function(v,Q,V,E){E=E===void 0?{}:E;
var b=void 0;E.layer||(E.layer=0);b=E.parentLayer!==void 0?E.parentLayer:E.layer;var F=_.Mo(b);b=_.CC(b);var t=V||b,p;t&&(E.parentCsn!==void 0?p={clientScreenNonce:E.parentCsn,visualElement:t}:F&&F!=="UNDEFINED_CSN"&&(p={clientScreenNonce:F,visualElement:t}));var Z,d=_.r7("EVENT_ID");F==="UNDEFINED_CSN"&&d&&(Z={servletData:{serializedServletEventId:d}});_.Y("combine_ve_grafts")&&F&&oCa(v,F);_.Y("no_client_ve_attach_unless_shown")&&t&&F&&iH3(t,F);try{var w=_.bH3(v.client,Q,p,E.csnToClone,E.cttAuthInfo,
Z,E.implicitGestureType,void 0,E.loggingExpectations)}catch(T){_.Hx(T,{rootVeType:Q,rootVe:b,parentVisualElement:V,currentCsn:F,parentEl:p,csnToClone:E.csnToClone});_.ro(T);return}_.Da(w,Q,E.layer,E.cttAuthInfo);F&&F!=="UNDEFINED_CSN"&&b&&!dnS(F)&&ZH0(v.client,F,b,!0);v.backHistoryStack[v.backHistoryStack.length-1]&&!v.backHistoryStack[v.backHistoryStack.length-1].csn&&(v.backHistoryStack[v.backHistoryStack.length-1].csn=w||"");_.ft({clientScreenNonce:w});_.gCS();var A=_.CC(E.layer);F&&F!=="UNDEFINED_CSN"&&
A&&(_.Y("web_mark_root_visible")||_.Y("music_web_mark_root_visible"))&&_.Bp(w,A);v.pendingScreenCreation.delete(E.layer||0);v.pendingScreenFn=void 0;var k;(k=v.recurringGrafts.get(E.layer))==null||k.forEach(function(T,c){T?_.za(v,c,T,E.layer):A&&_.za(v,c,A,E.layer)});
X8a(v)},X8a=function(v){for(var Q=0;Q<v.afterNewScreenOneOffJobs.length;Q++){var V=v.afterNewScreenOneOffJobs[Q];
try{V()}catch(E){_.ro(E)}}for(Q=v.afterNewScreenOneOffJobs.length=0;Q<v.afterNewScreenRecurringJobs.length;Q++){V=v.afterNewScreenRecurringJobs[Q];try{V()}catch(E){_.ro(E)}}},oCa=function(v,Q){if(Q===void 0)for(var V=ZV3(),E=0;E<V.length;E++)V[E]!==void 0&&oCa(v,V[E]);
else v.cachedVisualElements.forEach(function(b,F){(F=v.cachedRootVisualElements.get(F))&&F40(v.client,Q,F,b)}),v.cachedVisualElements.clear(),v.cachedRootVisualElements.clear(),v.attachTimeout=void 0};var Bm=function(v){v=v===void 0?{layer:0}:v;this.hasRun=!1;this.createScreenConfig=v;v={};this.qIq=(v.response=!1,v.playerResponse=!1,v)};
_.f(Bm,Ga);Bm.prototype.validate=function(v){return!(!v.data||!v.data.response&&!v.data.playerResponse)};
Bm.prototype.handle=function(v){var Q=_.tR(),V=this.createScreenConfig.layer;v.data.response&&v.data.response.trackingParams&&!this.qIq.response&&(Q.graftServerVe(v.data.response.trackingParams,void 0,V),this.qIq.response=!0);v.data.playerResponse&&v.data.playerResponse.trackingParams&&!this.qIq.playerResponse&&(Q.graftServerVe(v.data.playerResponse.trackingParams,void 0,V),this.qIq.playerResponse=!0)};var gJ=function(){this.jg=_.B_();this.t2=[];this.qtp=0};
gJ.prototype.processChunk=function(v){if(v){for(var Q=_.L(this.t2),V=Q.next();!V.done;V=Q.next())V=V.value,V.validate(v)&&(V.handle(v),V.hasRun=!0);_.Mp("np"+this.qtp);this.qtp++}};var GaZ=function(v,Q,V){V=V===void 0?{}:V;this.name=v;this.id=X$.nextSpanId++;this.sessionId=X$.sessionId;this.attributes=Q;this.status=0;var E;this.startTime=(E=V.startTime)!=null?E:(0,_.wO)();this.isActiveSpan=V.active;if(v=X$.stack[X$.stack.length-1])this.parentId=v.id,v.children||(v.children=[]),v.children.push(this);v=_.L(X$.processors);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;try{var b=E=void 0;(b=(E=Q).onSpanStart)==null||b.call(E,this)}catch(F){_.Iy(F)}}V.endTime!=null&&(this.isActiveSpan=
!1,this.end(1,V.endTime))};
GaZ.prototype.end=function(v,Q){v=v===void 0?1:v;this.endTime=Q=Q===void 0?(0,_.wO)():Q;this.duration=this.endTime-this.startTime;this.status=v;this.isActiveSpan!==!1&&(X$.stack[X$.stack.length-1]===this?X$.stack.pop():_.Iy(Error("Ef`"+String(this.name))));v=_.L(X$.processors);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;try{var V=void 0,E=void 0;(E=(V=Q).onSpanEnd)==null||E.call(V,this)}catch(b){_.Iy(b)}}};
GaZ.prototype.addAttributes=function(v){Object.assign(this.attributes,v)};
var C9b={end:function(){},
addAttributes:function(){}},X$={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},fqB={rootSpan:function(){return X$.stack[0]}};var D_B={};var FW9=function(v){this.observers=[];this.value=v};
_.K=FW9.prototype;_.K.subscribe=function(v){var Q=this;if(v.idx!=null)throw Error("Gf");v.idx=this.observers.length;this.observers.push(v);try{v(this.value)}catch(V){}return function(){var V=Q.observers[Q.observers.length-1];Q.observers[v.idx]=V;V.idx=v.idx;Q.observers.pop()}};
_.K.update=function(v){this.value=v(this.value);this.notify()};
_.K.mutate=function(v){v(this.value);this.notify()};
_.K.set=function(v){this.value=v;this.notify()};
_.K.notify=function(){for(var v=_.L(this.observers),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;try{Q(this.value)}catch(V){}}};var kfB,aJR,IJp;_.bd=function(v,Q,V,E,b,F,t,p){t=t===void 0?[]:t;p=p===void 0?[]:p;this.buildCommandPayload=v;this.navigate=Q;this.handleServiceRequest=V;this.sendAction=E;this.JSC$12851_screenManager=b;this.commandResolverMap=F;this.autoLogResolverAllowlist=t;this.metaCommandClickLoggingDenylist=p;this.pendingCommands=new Set;this.isTracingEnabled=!1;aJR(this)};
kfB=function(v,Q,V){var E=[_.uUZ,E5p],b=b80,F=FD0,t=_.tR(),p=rVR;V=V===void 0?[]:V;E=E===void 0?[]:E;_.bd.instance=new _.bd(v,Q,b,F,t,p,V,E)};
aJR=function(v){if(!v.isTracingEnabled&&cLm("command")){var Q=v.resolveCommand;v.resolveCommand=function(V,E){a:{for(b in V)if(Object.prototype.hasOwnProperty.call(V,b)){var b={commandType:b};break a}b={}}return OHB("command",b,Q.bind(this,V,E))};
v.isTracingEnabled=!0}};
IJp=function(v,Q,V){if(!v.commandResolverMap)return!1;var E=zY3(Q,v.commandResolverMap);return E?((v.autoLogResolverAllowlist.some(function(b){return!!_.y(Q,b)})||(V==null?0:V.forceClickLogging))&&$0q(v,Q,V),E instanceof Promise?E.then(function(b){b.resolve(Q,V)}):E.resolve(Q,V),!0):!1};
_.bd.prototype.resolveCommand=function(v,Q){var V=this,E=H0S(v);if(IJp(this,v,Q))return!0;if(E)return m0Q(this,v,Q);if(!this.buildCommandPayload)return lqE(v,"Unhandled command by buildCommandPayload"),!1;var b=this.buildCommandPayload(v,Q);if(Q==null?0:Q.commandController)b.commandController=Q.commandController;if(b.type===0){if(!this.navigate)return qOm(v,"navigate"),!1;if(!U0N(b.command))return lqE(v,"Page requests need to specify a url"),!1;_.Y("logging_avoid_blocking_during_navigation")&&_.CPB().transition("application_navigating");
v=this.navigate(b)||[];Ckx(v).then(function(){V.pendingCommands.delete(b.command)});
return!0}if(b.type===1){if(!this.handleServiceRequest)return qOm(v,"handleServiceRequest"),!1;(Q==null?0:Q.forceClickLogging)&&$0q(this,b.command,Q);v=this.handleServiceRequest(b);Ckx(v).then(function(){V.pendingCommands.delete(b.command)});
return!0}if(b.type===2){if(!this.sendAction)return qOm(v,"sendAction"),!1;$0q(this,b.command,Q);this.sendAction(b);return!0}return!1};
var $0q=function(v,Q,V){if((V==null||!V.disableClickTracking)&&v.JSC$12851_screenManager)if(Q.clickTrackingParams&&_.Y("log_click_with_layer_from_element_in_command_handler")){var E;V=V==null?void 0:(E=V.form)==null?void 0:E.element;v.JSC$12851_screenManager.clickCommand(Q,null,V&&V.getScreenLayer&&V.getScreenLayer())}else Q.clickTrackingParams?v.JSC$12851_screenManager.clickCommand(Q):!_.Y("disable_clicked_visual_element_in_command_handler")&&(V==null?0:V.clickedVisualElement)&&_.N_(v.JSC$12851_screenManager,
V.clickedVisualElement)},H0S=function(v){var Q=!!_.y(v,_.E2),V;
v=((V=_.y(v,_.F$))==null?void 0:V.signal)==="CLIENT_SIGNAL";return Q||v},m0Q=function(v,Q,V){var E=_.y(Q,_.E2);
if(E)var b=(E==null?void 0:E.commands)||[];else{var F;if(((F=_.y(Q,_.F$))==null?void 0:F.signal)==="CLIENT_SIGNAL"){var t;b=((t=_.y(Q,_.F$))==null?void 0:t.actions)||[]}}if(b){(E=vkR(v,b))&&$0q(v,Q,V);Q=_.L(b);for(b=Q.next();!b.done;b=Q.next()){b=b.value;try{var p=Object.assign({},V);E&&(p.disableClickTracking=!0);v.resolveCommand(b,p)}catch(Z){Z instanceof Error&&_.ro(Z)}}return!0}lqE(Q,"Could not handle the meta command");return!1},vkR=function(v,Q){return Q.every(function(V){return v.metaCommandClickLoggingDenylist.some(function(E){return!!_.y(V,
E)})})},U0N=function(v){var Q;
return!((Q=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null||!Q.url)};var sO=function(){Ga.apply(this,arguments)};
_.f(sO,Ga);sO.prototype.validate=function(v){var Q,V;return!this.hasRun&&!!((Q=v.data.response)==null?0:(V=Q.onResponseReceivedEndpoints)==null?0:V.length)};
sO.prototype.handle=function(v){var Q=_.bd.instance;v=_.L(v.data.response.onResponseReceivedEndpoints);for(var V=v.next();!V.done;V=v.next())Q.resolveCommand(V.value)};var QwZ,VUA,EkZ;
QwZ=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Vk();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.u9=function(){VUA||(VUA=new QwZ);return VUA};
EkZ=function(){var v=_.u9();v.miniplayerButtonActivation=!1;v.userActivation=!1;v.playlistWatchPageActivation=!1;v.productDetailsPageActivation=!1;v.miniAppPageActivation=!1;v.playablesDestPageActivation=!1;v.lockupActivation=!1;v.showMiniplayerCommandActivation=!1;v.playlistSuggestionsShelfActivation=!1;v.mediaSessionPipActivation=!1;v.watchPipActivation=!1;v.watchWhileActivation=!1;v.shortsPipActivation=!1;v.companionCanvasActivation=!1};
_.bna=function(){var v=_.u9(),Q=v.mediaSessionPipActivation,V=v.watchPipActivation,E=v.watchWhileActivation,b=v.playlistWatchPageActivation,F=v.lockupActivation,t=v.showMiniplayerCommandActivation,p=v.navigatingAwayFromWatchDeletedVideo,Z=v.shortsPipActivation,d=v.playlistSuggestionsShelfActivation,w=v.productDetailsPageActivation,A=v.miniAppPageActivation,k=v.playablesDestPageActivation,T=v.companionCanvasActivation;return!v.miniplayerButtonActivation&&!b&&!d&&!w&&!A&&!k&&!F&&!t&&!Q&&!V&&!E&&!Z&&
!T||p};var a_o;_.j5=_.rD("FEwhat_to_watch","/",3854);_.rhT=_.rD("FEdownloads","/feed/downloads",42352);a_o=_.rD("FEmusic_offline","browse/FEmusic_offline",42352);var WB=function(v,Q){Q=Q===void 0?[]:Q;var V=V===void 0?[]:V;Q=X7S.apply(null,[ay9.apply(null,_.ui(Q))].concat(_.ui(V)));this.store=HoS(v,void 0,Q)};
WB.prototype.getState=function(){return this.store.getState()};
WB.prototype.dispatch=function(v){return this.store.dispatch(v)};
WB.prototype.subscribe=function(v){return this.store.subscribe(v)};
WB.prototype.replaceReducer=function(v){return this.store.replaceReducer(v)};
WB.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Wm=function(v,Q,V){var E=Q(v.getState());return v.subscribe(function(){var b=Q(v.getState());if(b!==E){var F=E;E=b;V(b,F)}})};var CgE;_.dW=function(v,Q,V){return _.U2({type:"REPLACE_ENTITY",payload:{entityPayload:V,entityType:v,key:Q}})};
CgE=function(v){return _.U2({type:"REPLACE_ENTITIES",payload:v})};
_.Gz=function(v,Q,V,E){return _.U2({type:"UPDATE_ENTITY",payload:{entityPayload:V,entityType:v,key:Q,mergeOption:E}})};var rLB=function(v){var Q=this;v=v===void 0?[]:v;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;v.forEach(function(V){Q.append(V)})};
_.K=rLB.prototype;_.K.getLength=function(){return this.totalLength};
_.K.append=function(v){var Q=this.arrays.length===0?!1:(Q=this.arrays[this.arrays.length-1])&&Q.buffer===v.buffer&&Q.byteOffset+Q.length===v.byteOffset;Q?(Q=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(Q.buffer,Q.byteOffset,Q.length+v.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(v);this.totalLength+=v.length};
_.K.split=function(v){for(var Q=new rLB,V=new rLB,E=_.L(this.arrays),b=E.next();!b.done;b=E.next())b=b.value,v>=b.length?(Q.append(b),v-=b.length):v?(Q.append(new Uint8Array(b.buffer,b.byteOffset,v)),V.append(new Uint8Array(b.buffer,b.byteOffset+v,b.length-v)),v=0):V.append(b);return{headView:Q,tailView:V}};
_.K.isFocused=function(v){return v>=this.arrayPos&&v<this.arrayPos+this.arrays[this.arrayIdx].length};
_.K.focus=function(v){if(!this.isFocused(v))for(v<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=v&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var FRZ=function(v,Q){v.focus(Q);return v.arrays[v.arrayIdx][Q-v.arrayPos]};(function(){var v=function(E){return new Uint8Array(E)},Q=function(E){for(var b=new Uint8Array(E.length),F=0;F<E.length;F++)b[F]=E[F];
return b},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?v:Q})();
var uCS=Array(1024),s0G=window.TextDecoder?new TextDecoder:void 0,W4Z=window.TextEncoder?new TextEncoder:void 0;var aqQ=function(v){this.arrayView=v;this.pos=0;this.pendingTagAndType=-1},vB=function(v){var Q=FRZ(v.arrayView,v.pos);
++v.pos;if(Q<128)return Q;for(var V=Q&127,E=1;Q>=128;)Q=FRZ(v.arrayView,v.pos),++v.pos,E*=128,V+=(Q&127)*E;return V},$_T=function(v,Q){var V=v.pendingTagAndType;
for(v.pendingTagAndType=-1;v.pos+1<=v.arrayView.totalLength;){V<0&&(V=vB(v));var E=V>>3,b=V&7;if(E===Q)return!0;if(E>Q){v.pendingTagAndType=V;break}V=-1;switch(b){case 0:vB(v);break;case 1:v.pos+=8;break;case 2:E=vB(v);v.pos+=E;break;case 5:v.pos+=4}}return!1};var HH0=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=XmE(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Ex=function(v,Q){Q=v.pos+Q;
if(!(v.buf.length>=Q)){for(var V=v.buf.length*2;V<Q;)V*=2;v.buf=XmE(V,v.wasm,v.buf.subarray(0,v.pos));v.view=new DataView(v.buf.buffer,v.buf.byteOffset,v.buf.byteLength)}},V_=function(v,Q){if(Q>268435455){Ex(v,4);
for(var V=Q&1073741823,E=0;E<4;E++)v.view.setUint8(v.pos,V&127|128),V>>=7,v.pos+=1;Q=Math.floor(Q/268435456)}for(Ex(v,4);Q>127;)v.view.setUint8(v.pos,Q&127|128),Q>>=7,v.pos+=1;v.view.setUint8(v.pos,Q);v.pos+=1};for(var m_3={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},Iqo={},KRN=_.L(Object.entries(m_3)),inR=KRN.next();!inR.done;inR=KRN.next()){var LRa=_.L(inR.value),tUa=LRa.next().value,plZ=LRa.next().value,el8=tUa,ZnZ=plZ;ZnZ&&(Iqo[ZnZ]=el8)};var vpo=function(v,Q){v=v===void 0?{}:v;switch(Q.type){case "ENTITY_LOADED":return Q.payload.reduce(function(E,b){var F,t=(F=b.options)==null?void 0:F.persistenceOption;if(t&&t!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&t!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return E;if(!b.entityKey)return _.ro(Error("If")),E;if(b.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!b.payload)return b=new _.xd("REPLACE entity mutation is missing a payload",{entityKey:b.entityKey}),_.ro(b),E;var p=(0,_.gI.getAnyKey)(b.payload);
return V6G(E,p,b.entityKey,b.payload[p])}if(b.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{b=b.entityKey;try{var Z=_.Q_(b).entityType;p=V6G(E,Z,b);break a}catch(A){if(A instanceof Error){b=new _.xd("Failed to deserialize entity key",{entityKey:b,originalMessage:A.message});_.ro(b);p=E;break a}throw A;}p=void 0}return p}if(b.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!b.payload)return b=new _.xd("UPDATE entity mutation is missing a payload",{entityKey:b.entityKey}),_.ro(b),E;p=(0,_.gI.getAnyKey)(b.payload);
var d,w;return EpT(E,p,b.entityKey,b.payload[p],(d=b.fieldMask)==null?void 0:(w=d.mergeOptions)==null?void 0:w.repeatedFieldsMergeOption)}return E},v);
case "REPLACE_ENTITY":var V=Q.payload;return V6G(v,V.entityType,V.key,V.entityPayload);case "REPLACE_ENTITIES":return Object.keys(Q.payload).reduce(function(E,b){var F=Q.payload[b];return Object.keys(F).reduce(function(t,p){return V6G(t,b,p,F[p])},E)},v);
case "UPDATE_ENTITY":return V=Q.payload,EpT(v,V.entityType,V.key,V.entityPayload,V.mergeOption);default:return v}};var bDh;var PRq=!1,o0,XC,a0,rJ,$_,dbA=function(v){_.J5.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!PRq){var Q,V=new Uint8Array(256),E=new Uint8Array(256);var b=1;for(Q=0;Q<256;Q++)V[b]=Q,E[Q]=b,b^=b<<1^(b>>7&&283);o0=new Uint8Array(256);XC=K7(256);a0=K7(256);rJ=K7(256);$_=K7(256);for(var F=0;F<256;F++){b=F?E[255^V[F]]:0;b^=b<<1^b<<2^b<<3^b<<4;b=b&255^b>>>8^99;o0[F]=b;Q=b<<1^(b>>7&&283);var t=Q^b;XC[F]=Q<<24|b<<16|b<<8|t;a0[F]=t<<24|XC[F]>>>8;rJ[F]=b<<24|a0[F]>>>
8;$_[F]=b<<24|rJ[F]>>>8}PRq=!0}b=K7(44);for(V=0;V<4;V++)b[V]=v[4*V]<<24|v[4*V+1]<<16|v[4*V+2]<<8|v[4*V+3];for(E=1;V<44;V++)v=b[V-1],V%4||(v=(o0[v>>16&255]^E)<<24|o0[v>>8&255]<<16|o0[v&255]<<8|o0[v>>>24],E=E<<1^(E>>7&&283)),b[V]=b[V-4]^v;this.key=b};
_.f(dbA,_.J5);
dbA.prototype.encrypt=function(v){var Q=v.length;v=new Uint8Array(v.buffer.slice(v.byteOffset,v.byteOffset+Q));for(var V=this.cipherBlock,E=0;E<Q&&this.blockOffset<16;)v[E++]^=V[this.blockOffset++];for(var b=Q-(Q-E)%16;E<b;)hlS(this),v[E++]^=V[0],v[E++]^=V[1],v[E++]^=V[2],v[E++]^=V[3],v[E++]^=V[4],v[E++]^=V[5],v[E++]^=V[6],v[E++]^=V[7],v[E++]^=V[8],v[E++]^=V[9],v[E++]^=V[10],v[E++]^=V[11],v[E++]^=V[12],v[E++]^=V[13],v[E++]^=V[14],v[E++]^=V[15];if(E<Q)for(hlS(this),this.blockOffset=0;E<Q;)v[E++]^=
V[this.blockOffset++];return v};
var hlS=function(v){for(var Q=v.key,V=v.counter[0]^Q[0],E=v.counter[1]^Q[1],b=v.counter[2]^Q[2],F=v.counter[3]^Q[3],t=3;t>=0&&!(v.counter[t]=-~v.counter[t]);t--);for(var p,Z,d=4;d<40;)t=XC[V>>>24]^a0[E>>16&255]^rJ[b>>8&255]^$_[F&255]^Q[d++],p=XC[E>>>24]^a0[b>>16&255]^rJ[F>>8&255]^$_[V&255]^Q[d++],Z=XC[b>>>24]^a0[F>>16&255]^rJ[V>>8&255]^$_[E&255]^Q[d++],F=XC[F>>>24]^a0[V>>16&255]^rJ[E>>8&255]^$_[b&255]^Q[d++],V=t,E=p,b=Z;v=v.cipherBlock;t=Q[40];v[0]=o0[V>>>24]^t>>>24;v[1]=o0[E>>16&255]^t>>16&255;v[2]=
o0[b>>8&255]^t>>8&255;v[3]=o0[F&255]^t&255;t=Q[41];v[4]=o0[E>>>24]^t>>>24;v[5]=o0[b>>16&255]^t>>16&255;v[6]=o0[F>>8&255]^t>>8&255;v[7]=o0[V&255]^t&255;t=Q[42];v[8]=o0[b>>>24]^t>>>24;v[9]=o0[F>>16&255]^t>>16&255;v[10]=o0[V>>8&255]^t>>8&255;v[11]=o0[E&255]^t&255;t=Q[43];v[12]=o0[F>>>24]^t>>>24;v[13]=o0[V>>16&255]^t>>16&255;v[14]=o0[E>>8&255]^t>>8&255;v[15]=o0[b&255]^t&255};var wlQ=!1;(function(){var v=function(E){return new Uint8Array(E)},Q=function(E){for(var b=new Uint8Array(E.length),F=0;F<E.length;F++)b[F]=E[F];
return b},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?v:Q})();
var I0;var T0p=function(v){a:{if(!wlQ&&!ej){if(I0){var Q=I0;break a}I0=(Q=window.crypto)==null?void 0:Q.subtle;var V,E,b;if(((V=I0)==null?0:V.importKey)&&((E=I0)==null?0:E.sign)&&((b=I0)==null?0:b.encrypt)){Q=I0;break a}I0=void 0}Q=void 0}Q&&(this.nativeEncryptor=new Awp(v,Q));this.encryptorPolyfill=new kDZ(v)};
T0p.prototype.encrypt=function(v,Q){var V=this,E;return _.e(function(b){switch(b.nextAddress){case 1:if(!V.nativeEncryptor){b.jumpTo(2);break}_.GC(b,3);return b.yield(V.nativeEncryptor.encrypt(v,Q),5);case 5:return b.return(b.yieldResult);case 3:E=_.n$(b),_.Iy(E),wlQ=!0,V.nativeEncryptor=void 0;case 2:return b.return(V.encryptorPolyfill.encrypt(v,Q))}})};
T0p.prototype.decrypt=function(v,Q){return this.encrypt(v,Q)};
var Awp=function(v,Q){this.JSC$12924_aesKey=v;this.subtleCrypto=Q};
Awp.prototype.encrypt=function(v,Q){var V=this,E;return _.e(function(b){if(b.nextAddress==1)return _.GC(b,2),b.yield(Yap(V,v,Q),4);if(b.nextAddress!=2)return b.return(b.yieldResult);E=_.n$(b);_.Iy(E);wlQ=!0;throw E;})};
var Yap=function(v,Q,V){var E,b;return _.e(function(F){switch(F.nextAddress){case 1:if(v.cryptoKey){F.jumpTo(2);break}return F.yield(v.subtleCrypto.importKey("raw",v.JSC$12924_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:v.cryptoKey=F.yieldResult;case 2:return E={name:"AES-CTR",counter:V,length:128},F.yield(v.subtleCrypto.encrypt(E,v.cryptoKey,Q),4);case 4:return b=F.yieldResult,F.return(new Uint8Array(b))}})},kDZ=function(v){this.JSC$12927_aesKey=v};
kDZ.prototype.encrypt=function(v,Q){this.encryptor||(this.encryptor=new dbA(this.JSC$12927_aesKey));for(var V=this.encryptor,E=0;E<4;E++)V.counter[E]=Q[E*4]<<24|Q[E*4+1]<<16|Q[E*4+2]<<8|Q[E*4+3];V.blockOffset=16;return this.encryptor.encrypt(v)};
kDZ.prototype.decrypt=function(v,Q){return this.encrypt(v,Q)};var ywA={},iDS=hF("yt-idb-pref-storage",{objectStores:(ywA.prefs={addedAtVersion:1},ywA),shared:!1,upgrade:function(v,Q){Q(1)&&vx(Uf(v,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Hm=function(v){this.token=v};
_.Hm.getInstance=function(){return _.e(function(v){return v.return(new Promise(function(Q){_.dO().then(function(V){V?(_.Hm.instance||(_.Hm.instance=new _.Hm(V)),Q(_.Hm.instance)):Q(void 0)})}))})};
_.Hm.prototype.get=function(v){var Q=this,V,E,b;return _.e(function(F){if(F.nextAddress==1)return F.yield(Lxm(Q.token),2);if(F.nextAddress!=3)return V=F.yieldResult,F.yield(V.get("prefs",v),3);E=F.yieldResult;if(!E)return F.return();b=(0,_.wO)();return E.expirationTimestampMs<=b?F.return():F.return(E.value)})};
_.Hm.prototype.set=function(v,Q,V){V=V===void 0?31536E3:V;var E=this,b,F,t;return _.e(function(p){if(p.nextAddress==1)return b=(0,_.wO)(),F={key:v,value:Q,expirationTimestampMs:b+V*1E3},p.yield(Lxm(E.token),2);t=p.yieldResult;return p.yield(t.put("prefs",F),0)})};
_.Hm.prototype.remove=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Lxm(Q.token),2);V=E.yieldResult;return E.yield(V.delete("prefs",v),0)})};var m4={},cwN=(m4.INVALID_ENCODER_VERSION="Invalid encoder version",m4.KEY_CREATION_FAILED="Failed to create encoder key",m4.UNKNOWN_DECODE_ERROR="Failed to decode PES data",m4.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",m4.WRONG_DATA_TYPE="Encoder cannot process the data type",m4),i3=function(v,Q){Q=Q===void 0?{}:Q;_.xd.call(this,cwN[v],Object.assign({},{name:"PESEncoderError",type:v},Q));this.type=v;this.level="WARNING";Object.setPrototypeOf(this,i3.prototype)};
_.f(i3,_.xd);var UO=function(){};
UO.prototype.encode=function(v,Q){try{return this.encodeImpl(v,Q)}catch(V){ZDT(V,pOm)}};
UO.prototype.decode=function(v,Q){try{return this.decodeImpl(v,Q)}catch(V){ZDT(V,ert)}};
var fEA=function(v,Q,V){var E;return _.e(function(b){if(b.nextAddress==1)return _.GC(b,2),b.yield(v.decodeAsyncImpl(Q,V),4);if(b.nextAddress!=2)return b.return(b.yieldResult);E=_.n$(b);ZDT(E,ert);_.q1(b)})};
UO.prototype.decodeAsyncImpl=function(v,Q){return Promise.resolve(this.decodeImpl(v,Q))};var vO=function(v,Q){this.aesEncryptor=v;this.aesEncryptorAsync=Q};
_.f(vO,UO);vO.prototype.encodeImpl=function(v,Q){Q=Pgb(Q);v=(new TextEncoder).encode(JSON.stringify(v));return this.aesEncryptor.encrypt(v,Q)};
vO.prototype.decodeImpl=function(v,Q){if(!(v instanceof Uint8Array))throw t6h(1);var V=new TextDecoder;Q=Pgb(Q);v=this.aesEncryptor.decrypt(v,Q);return JSON.parse(V.decode(v))};
vO.prototype.decodeAsyncImpl=function(v,Q){var V=this,E,b,F;return _.e(function(t){if(t.nextAddress==1){if(!(v instanceof Uint8Array))throw t6h(1);E=new TextDecoder;b=Pgb(Q);return t.yield(V.aesEncryptorAsync.decrypt(v,b),2)}F=t.yieldResult;return t.return(JSON.parse(E.decode(F)))})};var dso={accountLinkStatusEntity:ZdV,booleanEntity:gma,buttonEntity:zzS,captionTrack:k9S,channelHandle:d6V,chipEntity:KON,commerceAcquisitionClientPayloadEntity:i5a,commerceCartListEntity:LyS,compositeSourceEntity:Sjp,multiviewStagingEntity:zra,contextNoteFeedEntityPayload:OY8,contextNoteUserRatingEntityPayload:D6x,continuationTokenEntity:HHq,downloadQualityPickerEntity:g_a,downloadsPageRefreshTokenEntity:uCA,downloadsPageViewConfigurationEntity:Kxp,downloadStatusEntity:s0V,dismissState:i1S,sfvAudioItemCurrentlyPlayingEntity:mlZ,
emojiFountainDataEntity:lZS,emojiCustomizationSetEntity:nHx,fakeChannel:jBS,fakePlaylist:WUN,fakePlaylistEntryCollection:omQ,fakeVideo:abA,fakeVideoDescription:rCA,featuredProductsEntity:M6p,flowStateEntity:Lp8,iconBadgeEntity:tsQ,interstitialInteractionStateEntity:DdA,likeButtonAnimationEntity:iDA,liveChatPollStateEntity:NAa,dataFreshnessEntity:DIX,liveViewerLeaderboardChatEntryPointStateEntity:qAZ,liveViewerLeaderboardPointsEntity:SAX,liveReactionsDataEntity:qsp,logoEntity:MhN,macroMarkerEntity:LxZ,
mainDownloadsLibraryEntity:j0x,mainDownloadsListEntity:W4p,mainPlaylistDownloadStateEntity:XmZ,mainPlaylistEntity:m_S,mainPlaylistVideoEntity:U_x,mainVideoDownloadStateEntity:aqa,mainVideoEntity:EpQ,markersEngagementPanelSyncEntity:t6N,markersVisibilityOverrideEntity:pOZ,musicAlbumReleaseDetail:sZx,musicAlbumReleaseDownloadMetadataEntity:JQX,musicAlbumRelease:gpR,musicAlbumReleaseUserDetail:uYx,musicArtistDetail:Wxa,musicArtist:jZ8,musicArtistUserDetail:opp,musicDownloadsLibraryEntity:Nw8,musicLibraryEdit:XOq,
musicLibraryStatusEntity:apx,musicPlaylist:rQp,musicPlaylistDownloadMetadataEntity:xsa,musicShare:IpN,musicTrackDetail:msN,musicTrackDownloadMetadataEntity:BwN,musicTrack:HDa,musicTrackUserDetail:UsA,offlineOrchestrationActionWrapperEntity:TxZ,offlineVideoPolicy:YAX,offlineVideoStreams:yDZ,offlineabilityEntity:rLR,orchestrationWebSamplingEntity:$_Q,pageHeaderEntity:YsQ,pdpStateEntity:pyZ,pinnedProductEntity:ODx,playbackData:cDR,playerStateEntity:erX,quantityIncrementerEntity:eWR,refresh:f6a,saveToPlaylistListEntity:kXN,
selectedChipIndexEntityPayload:ZDQ,settingEntity:gXp,stringEntity:sBx,suggestedFeedbackChipStateEntity:Pgx,transfer:G9R,trendingOfferEntity:Ds8,videoDownloadContextEntity:C6p,videoOverviewAsyncDataEntity:zWX,videoPlaybackPositionEntity:xIN,votingEntity:GVZ,ytMainChannelEntity:bDN,youchatPendingResponseEntity:ds8,ytMainDownloadedVideoEntity:Iq8,ytMainVideoEntity:FxX};var GDq,MUZ,Zi,cQr,fp3,RlS,lEq,nkV,Db8;GDq=function(v,Q){this.JSC$12946_wrapped=v;this.JSC$12946_encoderRegistry=Q;this.changedKeys={}};
MUZ=function(v,Q){return CRS(v.JSC$12946_encoderRegistry,Q.version).decode(Q.data,Q.key)};
_.OnZ=function(v,Q,V){return v.JSC$12946_wrapped.objectStore("EntityStore").get(Q).then(function(E){if(E){if(V&&E.entityType!==V)throw Error("Jf");return MUZ(v,E)}})};
Zi=function(v,Q,V){return V?(V=V.map(function(E){return _.OnZ(v,E,Q)}),vr.all(V)):v.JSC$12946_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(Q)).then(function(E){return E.map(function(b){return MUZ(v,b)})})};
_.yQt=function(v,Q,V){var E=U_b(Q),b=CRS(v.JSC$12946_encoderRegistry,1),F=Object.assign({},Q);return v.JSC$12946_wrapped.objectStore("EntityStore").get(E).then(function(t){if(t){if(t.entityType!==V)throw Error("Jf");F.entityMetadata||(t=MUZ(v,t),F.entityMetadata=t.entityMetadata)}}).then(function(){var t={key:E,
entityType:V,data:b.encode(F,E),version:1};return vr.all([v.JSC$12946_wrapped.objectStore("EntityStore").put(t),Db8(v,F,V)])}).then(function(){RlS(v,E,V);
return E})};
cQr=function(v,Q){var V=_.Q_(Q).entityType;return vr.all([v.JSC$12946_wrapped.objectStore("EntityStore").delete(Q),nkV(v,Q)]).then(function(){RlS(v,Q,V)})};
fp3=function(v,Q,V,E){var b=CRS(v.JSC$12946_encoderRegistry,1);return _.OnZ(v,Q,E).then(function(F){if(F){F=g_r(F,V);var t={key:Q,entityType:E,data:b.encode(F,Q),version:1};return vr.all([v.JSC$12946_wrapped.objectStore("EntityStore").put(t),Db8(v,F,E)])}}).then(function(){RlS(v,Q,E);
return Q})};
RlS=function(v,Q,V){var E=v.changedKeys[V];E||(E=new Set,v.changedKeys[V]=E);E.add(Q)};
lEq=function(v,Q,V){var E=U_b(Q);V=hrQ(V);if(!V)return vr.resolve([]);V=new V(Q);v=v.JSC$12946_wrapped.objectStore("EntityAssociationStore");Q=[];V=_.L(V.getAssociations());for(var b=V.next();!b.done;b=V.next())Q.push(v.put({parentEntityKey:E,childEntityKey:b.value}));return vr.all(Q).then(function(F){return F.map(function(t){return t[1]})})};
nkV=function(v,Q){return v.JSC$12946_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(Q))};
Db8=function(v,Q,V){var E=U_b(Q);return nkV(v,E).then(function(){return lEq(v,Q,V)})};var qap=function(){};
_.f(qap,UO);qap.prototype.encodeImpl=function(v){return v};
qap.prototype.decodeImpl=function(v){if(v instanceof Uint8Array)throw t6h(0);return v};var k6B=function(){this.cacheMap={};this.cacheMap[0]=new qap;if(!_.Y("aes_pes_encoder_killswitch")){var v=this.cacheMap;try{var Q=_.Jt();var V=Pgb(Q);var E=new vO(new kDZ(V),new T0p(V))}catch(b){throw v=b instanceof Error?new i3("KEY_CREATION_FAILED",{originalMessage:b.message}):new i3("KEY_CREATION_FAILED"),_.ro(v),v;}v[1]=E}},CRS=function(v,Q){Q=Q===void 0?0:Q;
v=v.cacheMap[Q];if(!v)throw Q=new i3("INVALID_ENCODER_VERSION",{encoderVersion:Q}),_.ro(Q),Q;return v};var t4=function(v,Q){_.J5.call(this);this.token=v;this.JSC$12960_encoderRegistry=Q;this.observers=[];v=new _.bb.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Jt());v.onmessage=this.JSC$12960_handleMessage.bind(this);this.channel=v};
_.f(t4,_.J5);_.e0=function(v,Q,V){var E,b,F,t;return _.e(function(p){if(p.nextAddress==1)return p.yield(KxZ(v.token),2);if(p.nextAddress!=3)return E=p.yieldResult,p.yield(_.LO(E,["EntityStore","EntityAssociationStore"],Q,function(Z){b=new GDq(Z,v.JSC$12960_encoderRegistry);return V(b)}),3);
F=p.yieldResult;b&&(t=b.changedKeys,Object.keys(t).length>0&&(v.channel.postMessage(t),SaQ(v,t)));return p.return(F)})};
t4.prototype.observe=function(v){var Q=this;this.observers.push(v);return function(){var V=Q.observers.indexOf(v);V>=0&&Q.observers.splice(V,1)}};
var TFG=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(_.e0(v,{mode:"readonly",enableRetries:!0},function(E){return E.JSC$12946_wrapped.objectStore("EntityStore").getAll()}),2);
Q=V.yieldResult;return V.return(Promise.all(Q.filter(function(E){return!!E}).map(function(E){var b,F;
return _.e(function(t){if(t.nextAddress==1){b=E.key;F=E.entityType;var p=t.yield;var Z=fEA(CRS(v.JSC$12960_encoderRegistry,E.version),E.data,E.key);return p.call(t,Z,2)}return t.return({key:b,entityType:F,data:t.yieldResult})})})))})};
t4.prototype.JSC$12960_handleMessage=function(v){SaQ(this,v.data)};
var SaQ=function(v,Q){v=_.L(v.observers);for(var V=v.next();!V.done;V=v.next())V=V.value,V(Q)};
t4.prototype.disposeInternal=function(){this.channel.close()};
var wO9;var Q3,JwZ,jZo;Q3={};_.zlV=(Q3.mainVideoEntity="mainVideoEntityActionMetadata",Q3.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Q3.musicTrack="musicTrackEntityActionMetadata",Q3.musicPlaylist="musicPlaylistEntityActionMetadata",Q3);JwZ=new _.KB("DOWNLOADS_ENTITY_TYPE_MAP");_.Yz=_.b3("","downloadsPageViewConfigurationEntity");jZo=_.b3("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.cDB=_.b3("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.b3("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.b3("SMART_DOWNLOADS_ENABLED","settingEntity");_.b3("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Dso=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var JQt=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var N0A={isLeaderTab:!0};var p6T={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var V3=window,zO=V3.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",t4T=V3.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||J4,dK0=V3.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Kr,Viq=V3.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||QIA,UJZ=V3.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||POZ,p00=V3.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||TWa;var Lrt;g8({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 OAo=h4o(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(v){return v}}}),RoS=h4o(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(v){return v}}}),TKB=new Map;var R4m=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],GXZ;var xb8=function(v){return _.U2({type:"SET_EPHEMERAL_ACTION",payload:v})};var B08={ephemeralAction:null};var gkQ=Su({ephemeralAction:function(v,Q){v=v===void 0?B08.ephemeralAction:v;switch(Q.type){case "SET_EPHEMERAL_ACTION":return Q.payload;default:return v}}});var swZ=function(v){return _.U2({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:v})};var uxN={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var jw8={sharedUi:uxN,a11y:B08,entities:{}},DD9={sharedUi:function(v,Q){v=v===void 0?uxN:v;switch(Q.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},v,{animatedThumbnailEnabled:Q.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},v,{inlinePreviewEnabled:Q.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},v,{currentPageType:Q.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},v,{currentPageSubType:Q.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},v,{persistentPanelVisible:Q.payload});default:return v}},
a11y:gkQ,entities:QZr};var JjQ={playlistId:"",inviteLinkURL:""};var WRx={continuationCommand:{}};var YrG=Su({continuationCommand:function(v,Q){v=v===void 0?WRx.continuationCommand:v;switch(Q.type){case "SET_CONTINUATION_COMMAND":return Q.payload.continuationCommand;default:return v}}});var ejB={currentFormId:"",commandsMap:{}};var y9E=Su({isLeaderTab:function(v,Q){v=v===void 0?N0A.isLeaderTab:v;switch(Q.type){case "SET_IS_LEADER_TAB":var V,E;return(E=Q==null?void 0:(V=Q.payload)==null?void 0:V.isLeaderTab)!=null?E:v;default:return v}}});var XlR;_.oka=function(v){return _.U2({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:v}})};
XlR=function(v){return _.U2({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:v}})};var Ej={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var O13=Su({isDesktopSmallWidth:function(v,Q){v=v===void 0?Ej.isDesktopSmallWidth:v;switch(Q.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return Q.payload.isDesktopSmallWidth;default:return v}},
isShortsActive:function(v,Q){v=v===void 0?Ej.isShortsActive:v;switch(Q.type){case "SET_IS_SHORTS_ACTIVE":return Q.payload.isShortsActive;default:return v}},
isWatchWhileMode:function(v,Q){v=v===void 0?Ej.isWatchWhileMode:v;switch(Q.type){case "SET_IS_WATCH_WHILE_MODE":return Q.payload.isWatchWhileMode;default:return v}},
playerState:function(v,Q){v=v===void 0?Ej.playerState:v;switch(Q.type){case "SET_PLAYER_STATE":return Q.payload.playerState;default:return v}},
isFullscreen:function(v,Q){v=v===void 0?Ej.isFullscreen:v;switch(Q.type){case "SET_IS_FULLSCREEN":return Q.payload.isFullscreen;default:return v}},
isSmallScreenSqueezeback:function(v,Q){v=v===void 0?Ej.isSmallScreenSqueezeback:v;switch(Q.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return Q.payload.isSmallScreenSqueezeback;default:return v}},
isShortsPipActive:function(v,Q){v=v===void 0?Ej.isShortsPipActive:v;switch(Q.type){case "SET_IS_SHORTS_PIP_ACTIVE":return Q.payload.isShortsPipActive;default:return v}},
isPlaybackStarted:function(v,Q){v=v===void 0?Ej.isPlaybackStarted:v;switch(Q.type){case "SET_IS_PLAYBACK_STARTED":return Q.payload.isPlaybackStarted;default:return v}}});var Ppt={currentMode:"canvas-hidden"};var n2B=function(){return function(v){return function(Q){var V=v(Q);_.mb(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[Q],!0);return V}}};var aER,zOB;aER=new _.bK;_.m0=new _.KB("WATCH_PLAYER_PROMISE_TOKEN");_.rwN=new _.bK;_.$bN=new _.KB("SHORTS_PLAYER_PROMISE_TOKEN");zOB=new _.KB("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var lhG=function(){return function(v){return function(Q){Q.type==="ENTITY_LOADED"&&_.ht().resolve(_.m0).then(function(V){var E;(E=V.dispatchReduxAction)==null||E.call(V,Q)});
return v(Q)}}};var IEQ={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var c9T=Su({additionalContext:function(v,Q){v=v===void 0?IEQ.additionalContext:v;switch(Q.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var V;return(V=Q.payload)!=null?V:"";default:return v}},
impersonatedChannelUrl:function(v,Q){v=v===void 0?IEQ.impersonatedChannelUrl:v;switch(Q.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var V;return(V=Q.payload)!=null?V:"";default:return v}},
selectedVideoIds:function(v,Q){v=v===void 0?IEQ.selectedVideoIds:v;switch(Q.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var V={};return Object.assign({},v,(V[Q.payload]=!0,V));case "VIDEO_UNSELECTED":return Q=Q.payload,v=Object.assign({},v),delete v[Q],v;default:return v}}});var HnV={parentClickTrackingParams:""};var fh9=Su({parentClickTrackingParams:function(v,Q){v=v===void 0?HnV.parentClickTrackingParams:v;switch(Q.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return Q.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return v}}});var mbQ=function(v){return _.U2({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:v})},UbA=function(v){return _.U2({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:v})};var vRR={stepStates:{}};var GyE=Su({stepStates:function(v,Q){v=v===void 0?vRR.stepStates:v;switch(Q.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var V=v,E=Q.payload,b,F,t;v={};Q={selectionStates:Object.assign({},(t=(b=V[E.stepId])==null?void 0:b.selectionStates)!=null?t:{},(v[E.token]={isSelected:E.isSelected},v)),userQuery:(F=V[E.stepId])==null?void 0:F.userQuery};b={};return Object.assign({},V,(b[E.stepId]=Q,b));case "TALK_TO_RECS_UPDATE_USER_QUERY":return b=v,F=Q.payload,t=
{selectionStates:Object.assign({},(E=(V=b[F.stepId])==null?void 0:V.selectionStates)!=null?E:{}),userQuery:{userQuery:F.userQuery,token:F.userQueryToken}},V={},Object.assign({},b,(V[F.stepId]=t,V));default:return v}}});var QRQ,VkR,blN;QRQ=function(v){return _.U2({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:v})};
VkR=function(v){return _.U2({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:v})};
_.cZ=function(v){return _.U2({type:"SET_CURRENT_PAGE_TYPE",payload:v})};
_.ERA=function(v){return _.U2({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:v})};
blN=function(v){return _.U2({type:"SET_CHIP_BAR_IS_STICKY",payload:v})};var hjE={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"};_.FTZ=function(v){return _.U2({type:"SET_PLAYER_STATE",payload:{playerState:v}})};var bg={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:A9S(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var CpT=Su({isTheaterMode:function(v,Q){v=v===void 0?A9S():v;switch(Q.type){case "SET_IS_THEATER_MODE":return Q.payload.isTheaterMode;default:return v}},
isWatchActive:function(v,Q){v=v===void 0?bg.isWatchActive:v;switch(Q.type){case "SET_IS_WATCH_ACTIVE":return Q.payload.isWatchActive;default:return v}},
isLearningJourneyActive:function(v,Q){v=v===void 0?bg.isLearningJourneyActive:v;switch(Q.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return Q.payload.isLearningJourneyActive;default:return v}},
isWatchFullscreen:function(v,Q){v=v===void 0?bg.isWatchFullscreen:v;switch(Q.type){case "SET_IS_WATCH_FULLSCREEN":return Q.payload.isWatchFullscreen;default:return v}},
isWatchNarrowWidth:function(v,Q){v=v===void 0?bg.isWatchNarrowWidth:v;switch(Q.type){case "SET_IS_WATCH_NARROW_WIDTH":return Q.payload.isWatchNarrowWidth;default:return v}},
isSwatcherooActive:function(v,Q){v=v===void 0?bg.isSwatcherooActive:v;switch(Q.type){case "SET_IS_SWATCHEROO_ACTIVE":return Q.payload.isSwatcherooActive;default:return v}},
isWatchRetroMode:function(v,Q){v=v===void 0?bg.isWatchRetroMode:v;switch(Q.type){case "SET_IS_WATCH_RETRO_MODE":return Q.payload.isWatchRetroMode;default:return v}},
isLiveChatCollapsed:function(v,Q){v=v===void 0?bg.isLiveChatCollapsed:v;switch(Q.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return Q.payload.isLiveChatCollapsed;default:return v}},
openEngagementPanels:function(v,Q){v=v===void 0?bg.openEngagementPanels:v;var V=[].concat(_.ui(v));switch(Q.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return V.push(Q.payload.panelToAdd),V;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return V.splice(V.indexOf(Q.payload.panelToRemove),1),V;default:return v}},
playerState:function(v,Q){v=v===void 0?bg.playerState:v;switch(Q.type){case "SET_PLAYER_STATE":return Q.payload.playerState;default:return v}},
watchScrollTop:function(v,Q){v=v===void 0?bg.watchScrollTop:v;switch(Q.type){case "SET_WATCH_SCROLL_TOP":return Q.payload.watchScrollTop;default:return v}},
watchWindowSize:function(v,Q){v=v===void 0?bg.watchWindowSize:v;switch(Q.type){case "SET_WATCH_WINDOW_SIZE":return Q.payload.watchWindowSize;default:return v}}});var KTZ={surveyFeedbackData:{feedbackTokens:[]}};var MvS=Su({surveyFeedbackData:function(v,Q){v=v===void 0?KTZ.surveyFeedbackData:v;switch(Q.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return Q.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},v,Q.payload);default:return v}}});var kyZ={};var SrS=void 0;_.Y("web_enable_redux_store_on_demand")||(SrS=qrB());var ilS=function(v,Q,V){var E=this;this.listId=v;this.JSC$13104_updateCallback=Q;this.isOfflineVideoCallback=V;_.oF().subscribe(function(){E.handleUpdate()})};
ilS.prototype.getPlaylistData=function(){var v=_.oF().getState().entities;if(this.listId&&this.listId!=="PPSV"){var Q=UsS(v,this.listId,!0),V=_.b3(this.listId,"mainPlaylistEntity"),E,b;v=v==null?void 0:(E=v.mainPlaylistEntity)==null?void 0:(b=E[V])==null?void 0:b.title;return zjt(Q,v,this.listId)}Q=_.Nwo(DlZ(v));v=_.Nwo(_.y_(v));v=Q.concat(v);return zjt(v)};
ilS.prototype.getPlaylistId=function(){return this.listId};
ilS.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13104_updateCallback(this.listId,this.getPlaylistData(),{})};var FY=function(v,Q,V,E){E=E===void 0?[]:E;this.JSC$13107_playlistNetworkManager=v;this.listId=Q;this.JSC$13107_updateCallback=V;this.videoIds=E;this.pendingUpdates=[];this.currentIndex=0};
FY.prototype.JSC$13107_setCurrentIndex=function(v){this.currentIndex=v};
FY.prototype.setListId=function(v){this.listId=v};
var LTq=function(v,Q){v.currentCreateRequest&&v.currentCreateRequest.cancel(Q);v.currentUpdateRequest&&v.currentUpdateRequest.cancel(Q);v.currentRefreshRequest&&v.currentRefreshRequest.cancel(Q)};
FY.prototype.delete=function(){LTq(this,"PROXY DELETED")};
FY.prototype.addVideos=function(v,Q,V){var E=this;V!==void 0?this.videoIds.splice.apply(this.videoIds,[V,0].concat(_.ui(v))):this.videoIds.push.apply(this.videoIds,_.ui(v));this.listId||this.currentCreateRequest?(v.forEach(function(b,F){b={addedVideoId:b,action:"ACTION_ADD_VIDEO"};V&&(b.addedVideoPosition=V+F);E.pendingUpdates.push(b)}),KD(this)):tkX(this,Q.onCreateListCommand)};
var pFS=function(v,Q,V,E,b){BGT(v.videoIds,Q,V);Q>v.currentIndex&&V<=v.currentIndex?v.JSC$13107_setCurrentIndex(v.currentIndex+1):Q===v.currentIndex?v.JSC$13107_setCurrentIndex(V):Q<v.currentIndex&&V>=v.currentIndex&&v.JSC$13107_setCurrentIndex(v.currentIndex-1);v.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:E,movedSetVideoIdPredecessor:b});KD(v)},tkX=function(v,Q){LTq(v,"OBSOLETE");
v.currentCreateRequest=e0N(v.JSC$13107_playlistNetworkManager,Q,v.videoIds);_.qV(v.currentCreateRequest,function(){v.currentCreateRequest=void 0}).then(function(V){v.setListId(V.playlistId);
v.pendingUpdates.length>0?KD(v):ZlS(v)})},KD=function(v){if(v.pendingUpdates.length!==0&&(v.currentRefreshRequest&&v.currentRefreshRequest.cancel("OBSOLETE"),!v.currentUpdateRequest&&!v.currentCreateRequest)){var Q=v.pendingUpdates.splice(0,v.pendingUpdates.length);
v.currentUpdateRequest=v.JSC$13107_playlistNetworkManager.updatePlaylist(v.listId,Q);_.qV(v.currentUpdateRequest,function(){v.currentUpdateRequest=void 0}).then(function(){v.pendingUpdates.length>0?KD(v):ZlS(v)}).thenCatch(function(){v.pendingUpdates.unshift.apply(v.pendingUpdates,_.ui(Q))})}},ZlS=function(v){v.currentRefreshRequest=_.Poa(v.JSC$13107_playlistNetworkManager,v.listId,v.currentIndex,v.videoIds[v.currentIndex]);
_.qV(v.currentRefreshRequest,function(){v.currentRefreshRequest=void 0}).then(function(Q){v.JSC$13107_updateCallback(Q.playlistId,Q.playlistPanelRenderer,Q.autoplayRenderer)})};
FY.prototype.size=function(){return this.videoIds.length};var dex=function(v,Q,V,E){E=E===void 0?[]:E;FY.call(this,v,Q,V,E);this.JSC$13107_playlistNetworkManager=v;this.listId=Q;this.JSC$13107_updateCallback=V;this.videoIds=E};
_.f(dex,FY);_.ig=function(v,Q,V,E,b,F,t){b=b===void 0?[]:b;t=t===void 0?pv:t;FY.call(this,v,Q,V,b);this.JSC$13107_playlistNetworkManager=v;this.listId=Q;this.JSC$13107_updateCallback=V;this.onAuthChange=E;this.videoIds=b;this.storage=F;this.cookieReader=t;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.md(_.XT,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f(_.ig,FY);_.K=_.ig.prototype;_.K.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.md(_.XT,this.checkLoggedInStatusChange.bind(this),1E3)};
_.K.JSC$13107_setCurrentIndex=function(v){FY.prototype.JSC$13107_setCurrentIndex.call(this,v);this.store()};
_.K.delete=function(){_.XT.cancelJob(this.queueSapisIdJob);FY.prototype.delete.call(this)};
_.K.setListId=function(v){FY.prototype.setListId.call(this,v);this.store()};
_.K.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var h0N=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],wFN=["playerResponse","videoDetails"],AbA=["response","currentVideoEndpoint","watchEndpoint","videoId"],k8Z=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Tvx=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],YTp=["response","contents","twoColumnWatchNextResults","playlist","playlist"],ybR=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
cbN=["response","contents","twoColumnWatchNextResults"];var LD={},g2o=(LD.WEB_UNPLUGGED="^unplugged/",LD.WEB_UNPLUGGED_ONBOARDING="^unplugged/",LD.WEB_UNPLUGGED_OPS="^unplugged/",LD.WEB_UNPLUGGED_PUBLIC="^unplugged/",LD.WEB_CREATOR="^creator/",LD.WEB_KIDS="^kids/",LD.WEB_EXPERIMENTS="^experiments/",LD.WEB_MUSIC="^music/",LD.WEB_REMIX="^music/",LD.WEB_MUSIC_EMBEDDED_PLAYER="^music/",LD.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",LD);var eWB,e0N;eWB=function(v,Q){this.networkManager=v;this.innertubeTransportService=Q};
e0N=function(v,Q,V){if(!_.y(Q,_.tL))return _.kD(Error("Nf"));_.y(Q,_.tL).videoIds=V;V={create_playlist_title:_.Lt("QUEUE",void 0,"Queue")};return xD9(_.xW(v.innertubeTransportService,Q,V),J90)};
_.Poa=function(v,Q,V,E){Q={videoId:E,playlistId:Q,playlistIndex:V};V=_.Xg(YQ8);return xD9(_.tQ(v.innertubeTransportService,Q,V),B4Z)};
eWB.prototype.updatePlaylist=function(v,Q){return xD9(_.xW(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:v,actions:Q}}),N4r)};var fn8=function(v){this.storage=v},G8a;
fn8.prototype.store=function(v,Q){Q=Q===void 0?0:Q;if(this.storage&&v.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",v),this.storage.set("TLPQindex",String(Q)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(V){}};
fn8.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
fn8.prototype.getPlaylistId=function(){if(!this.storage)return null;var v=null;try{v=this.storage.get("TLPQplaylist")}catch(Q){}return v};var WOT=["navigationEndpoint","watchEndpoint","videoId"],juS=["nextButtonVideo","watchEndpoint","videoId"];_.hn=new _.KB("NETWORK_TOKEN");_.oJ=new _.KB("PAGE_TOKEN");_.pD=new _.KB("PLAYLIST_TOKEN");var CoS;CoS=new _.KB("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.wH=new _.KB("INNERTUBE_TRANSPORT_TOKEN");var MkQ,e6,Deq,R0Z,lnZ,qTA;MkQ=new Set(["ci","cr","carml"]);e6=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13154_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Zp=function(){e6.instance||(e6.instance=new e6);return e6.instance};
e6.prototype.onAny=function(v){return _.OlQ(this,v,2)};
e6.prototype.parkOrScheduleJob=function(v,Q,V,E,b){_.PO(this,V)?_.yX().addJob(v,Q,E):(b&&(v=Deq(v),R0Z(this,v,Q,V,b)),b=this.JSC$13154_parkedJobs.get(V),b||(this.JSC$13154_parkedJobs.set(V,[]),b=this.JSC$13154_parkedJobs.get(V)),b.push({job:v,priority:Q,delay:E}))};
e6.prototype.addListener=function(v,Q,V){V&&(Q=Deq(Q),R0Z(this,Q,0,v,V));V=this.parkedProcessors.get(v);V||(this.parkedProcessors.set(v,[]),V=this.parkedProcessors.get(v));V.push(Q)};
e6.prototype.processSignal=function(v){if(!_.PO(this,v)){this.inProgressSignals.add(v);var Q=this.JSC$13154_parkedJobs.get(v);if(Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,_.yX().addJob(V.job,V.priority,V.delay);this.JSC$13154_parkedJobs.delete(v)}if(Q=this.parkedProcessors.get(v)){Q=_.L(Q);for(V=Q.next();!V.done;V=Q.next())V=V.value,V();this.parkedProcessors.delete(v)}this.signals.push(v);this.inProgressSignals.delete(v)}};
_.PO=function(v,Q){return MkQ.has(Q)||_.mX("IS_HOMEPAGE_COLD")||_.mX("IS_RESULTS_PAGE_COLD")||_.mX("IS_WATCH_PAGE_COLD")?v.signals.indexOf(Q)>=0:!0};
Deq=function(v){var Q=!1;return function(){Q||(Q=!0,v())}};
R0Z=function(v,Q,V,E,b){if(nRZ.has(E))_.yX().addJob(Q,V,b);else{var F=v.compoundSignals.get(E);F&&_.yX().addJob(function(){_.PO(v,E)||(F.isTimeoutConditionSatisfied?_.yX().addJob(Q,V):F.timeoutConditionObservers.push(function(){_.yX().addJob(Q,V)}))},V,b)}};
_.OlQ=function(v,Q,V){if(Q.length>1){var E=[],b=Object.create(null);Q=_.L(Q);for(var F=Q.next();!F.done;F=Q.next())F=F.value,b[F]||(E.push(F),b[F]=!0);Q=E}if(Q.length===1)return Q[0];F=Q;E="";b=V===2?"|":"&";F.sort();F=_.L(F);for(var t=F.next();!t.done;t=F.next())E+=t.value+b;if(!v.compoundSignals.get(E)){b=0;F=[];t=_.L(Q);for(var p=t.next();!p.done;p=t.next())p=p.value,b++,_.PO(v,p)||F.push(p);(V=V===2)&&b>F.length||!V&&!F.length?v.signals.push(E):lnZ(v,E,V,Q,F)}return E};
lnZ=function(v,Q,V,E,b){var F=b.length,t=function(){V||--F===0?v.processSignal(Q):qTA(v,Q)};
b=_.L(b);for(var p=b.next();!p.done;p=b.next())v.addListener(p.value,t);v.compoundSignals.set(Q,{signals:E,isOnAny:V,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});qTA(v,Q)};
qTA=function(v,Q){if(!_.PO(v,Q)){var V=v.compoundSignals.get(Q);if(V&&!V.isTimeoutConditionSatisfied){for(var E=!1,b=0,F=0,t=_.L(V.signals),p=t.next();!p.done;p=t.next()){var Z=p.value;p=!_.PO(v,Z);nRZ.has(Z)?E=!0:(Z=v.compoundSignals.get(Z))?p&&!Z.isTimeoutConditionSatisfied&&(F++,V.isInitialized||Z.timeoutConditionObservers.push(function(){qTA(v,Q)})):p&&b++}V.isInitialized=!0;
V.isOnAny?E&&(V.isTimeoutConditionSatisfied=!0):b===0&&F===0&&(V.isTimeoutConditionSatisfied=!0);if(V.isTimeoutConditionSatisfied)for(V=_.L(V.timeoutConditionObservers),E=V.next();!E.done;E=V.next())E=E.value,E()}}};
e6.prototype.processSignal=e6.prototype.processSignal;e6.prototype.parkOrScheduleJob=e6.prototype.parkOrScheduleJob;e6.prototype.onAny=e6.prototype.onAny;_.Pr("ytsignals.getInstance",_.Zp);e6.prototype.onAny=e6.prototype.onAny;e6.prototype.parkOrScheduleJob=e6.prototype.parkOrScheduleJob;e6.prototype.processSignal=e6.prototype.processSignal;var nRZ=new Set(["eop","eocs","dl","pcl"]);_.lJ=new _.KB("MINIPLAYER_SERVICE");var dw,STV,z0Z;dw=function(v,Q,V){var E=_.KW.getInstance();if(!G8a){var b=new u$G;var F=void 0,t=_.r7("ID_TOKEN");t&&b.isAvailable()&&(F=new uv(b,"yt-queue"+t));G8a=new fn8(F)}b=G8a;F=_.Zp();this.JSC$13161_actionRouter=E;this.JSC$13161_pageManager=v;this.playlistManager=Q;this.JSC$13161_playlistNetworkManager=V;this.storage=b;this.signals=F;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.hQ=function(){if(!STV){var v=_.ht(),Q=v.resolve(_.d$(_.oJ)),V=v.resolve(_.d$(_.hn)),E=v.resolve(_.d$(_.pD));v=v.resolve(_.wH);STV=new dw(Q,E,new eWB(V,v))}return STV};
z0Z=function(v,Q,V){if(V){var E;if(((E=v.responsePlaylistData)==null?void 0:E.playlistId)!==V)return}v.responsePlaylistData&&(V=IhS(Q,v.responsePlaylistData),v.responsePlaylistData=(0,_.gI.unsafeClone)(v.responsePlaylistData),mDr(v.responsePlaylistData,V));V=v.temporaryItems.findIndex(function(b){return b.videoId===Q});
V>-1&&v.temporaryItems.splice(V,1);_.ww(v,_.AQ(v,v.response?v.response.autoplayRenderer:void 0))};
_.Jbx=function(v,Q){if(v.responsePlaylistData){var V=H1h(Q,v.responsePlaylistData);mDr(v.responsePlaylistData,V);if(v.queueProxy){var E=v.queueProxy;V<0||(E.videoIds.splice(V,1),V<E.currentIndex&&E.JSC$13107_setCurrentIndex(E.currentIndex-1),E.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:Q}),KD(E))}}_.ww(v,_.AQ(v,v.response?v.response.autoplayRenderer:void 0))};
dw.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.ww(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
dw.prototype.setPlaylistData=function(v,Q,V){this.temporaryItems=[];this.listId=v;this.responsePlaylistData=Q;_.ww(this,_.AQ(this,V))};
var NvX=function(v){return(v==null?0:v.playlistId)?v.playlistId:"PPSV"},xeV=function(v){return v&&v.playlistId?v.playlistId==="PPSV"?!0:HDr(_.oF().getState().entities,v.playlistId):!1};
dw.prototype.isPlayingOfflineVideo=function(){return this.response?xeV(this.response):!1};
dw.prototype.closeMiniplayer=function(v){var Q=this.queueProxy&&this.queueProxy.size()<=1,V=_.ht().resolve(_.lJ);if(!this.queueProxy||Q)this.queueProxy&&this.clearQueue(),V.close(!0);else{V.pipController.getWindow()&&window.focus();Q=this.responsePlaylistData;var E=this.temporaryItems.length+(Q&&Q.contents?Q.contents.length:0);Q=_.Lt("QUEUE_CLEARED_UNPLURALIZED")||_.ty("QUEUE_CLEARED",E);Q=_.r8(Q);V=_.Lt("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");E=_.Lt("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.ty("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",E);var b=_.Lt("MINIPLAYER_CLOSE",void 0,"Close"),F=_.Lt("CANCEL",void 0,"Cancel");_.uN(this.JSC$13161_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.u3(V),dialogMessages:[_.u3(E)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.u3(b),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
Q]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.u3(F)}}}}}}],v)}};
_.AQ=function(v,Q){var V={},E=v.response;V.autoplayRenderer=Q;if(!v.responsePlaylistData&&!v.temporaryItems.length)return!E||!E.hasRelatedVideoData&&_.Y("kevlar_prefetch_data_augments_network_data")||(V.playerData={rvs:E.relatedVideoArgs,endScreenRenderer:E.endScreenRenderer}),V;V.playerData={};if(v.index===void 0)return _.ro(Error("Pf")),V;V.panel=v.responsePlaylistData?(0,_.gI.unsafeClone)(v.responsePlaylistData):{titleText:_.u3(_.Lt("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
Q=V.panel;if(Q.contents)for(var b=_.L(v.temporaryItems),F=b.next();!F.done;F=b.next())Q.contents.push({playlistPanelVideoRenderer:F.value});v.queueProxy&&E&&E.playingVideo&&E.playingVideoId&&!$Dt(E.playingVideoId,V.panel)&&(Q=E.playingVideo,b=V.panel,F=v.index,b.contents&&b.contents.splice(F===void 0?0:F,0,{playlistPanelVideoRenderer:Q}));E&&E.playingVideoId&&(Q=v.index,b=V.panel,Q=!b.contents||Q>=b.contents.length?void 0:b.contents[Q].playlistPanelVideoRenderer,Q&&Q.videoId===E.playingVideoId||(Q=
IhS(E.playingVideoId,V.panel),v.index=Q!==-1?Q:v.index?v.index-1:0));Q=r9S(v.index+1,V.panel);b=void 0;v.index>0&&(b=r9S(v.index-1,V.panel));if(b||Q)V.autoplayRenderer=o2o(Q,b,V.autoplayRenderer);!Q&&(E==null?0:E.relatedVideoArgs)&&(V.playerData.rvs=E.relatedVideoArgs);E=E?E.playlistIndexOffset:0;v.queueProxy?QsS(V.panel,v.index,E,ahQ,!0,!0,!0):QsS(V.panel,v.index,E);V.playerData.playlistPanelRenderer=V.panel;return V};
dw.prototype.openToast=function(v){_.ht().resolve(_.lJ).openToast(v,_.Lt("ADDED_TO_QUEUE",void 0,"Added to queue"))};
dw.prototype.isMiniplayerActive=function(){return _.ht().resolve(_.lJ).isMiniplayerActive()};
_.ww=function(v,Q){v.playlistManager.setAutoplayRenderer(Q.autoplayRenderer||null);v.playlistManager.setPlaylistData(Q.panel||null);Q.playerData&&v.playlistManager.setPlayerPlaybackControlData(Q.playerData)};var EHr="#";var BvZ={},gRq={},sRp={},u8q={},jRN={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:(BvZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",BvZ),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:(gRq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",gRq),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:(sRp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",sRp),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:(u8q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",u8q),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 gHE=[{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:jRN},{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:jRN}}];var RzB;_.Ep=[[["bjd5OGU0cHJ2cnhraW5kIzM=","aDA3YjlodThnc3ZhbHVlI2Iz"],"TUVOVF9LSU5EX1NUQVJUI24yYWxjdTE2ZjYzZ0FEX1BMQUNF"]];
RzB=[[["aXE0N2lzM2pwcmltYXJ5I2Q4dGI=",null,null],[null,["ZXN1bHRzLXJlbmRlcmVyI3R5YjNjNThlcWQyZnl0ZC10d28tY29sdW1uLWJyb3dzZS1y","cXJ0YXN0eWxlLXNjb3BlI2piNmx3M25q"],null],["Y3JnMG1hc3RoZWFkLWFkI3NyZzNxNnU5",["aC1ncmlkLXJlbmRlcmVyIzR4OWdqcDZhNzBqc3l0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyI21ubWVmeWd1bTRkaHl0ZC1yaWM=","bTQ3cHN0eWxlLXNjb3BlI3V2cGhrbjRp"],null],[null,["LXByb21vLXJlbmRlcmVyI2k1MWlyemw2NjVpaXl0ZC1iYW5uZXI=","cjg5MnN0eWxlLXNjb3BlIzc3dTFwOWd6"],null],[null,["ZC1zbG90LXJlbmRlcmVyI2l3ZG45MTJtMWg5d3l0ZC1h"],
null]],[["eHRuZXhwbGF5ZXItYWRzI3NuZDIxYjQ=",null,null]]];_.VJ=["Z2xvYmFsQ2FsbGJhY2tzI2tzZG5jcmJoZ2ZsZg==","cm1hbGl0eURldGVjdGVkI2VmdTQ2NGYwd3VuY29uQWJubw==","NnoxZXV0OW9uQWRTa2lwI2x0Ymo1","X3BsYXllcl9yZXNwb25zZSM4b2FqN3c0cmkzd3Jhdw==","eGJzYmFjbWlhZFNsb3RzI2t6dWQ="];_.kp="Z2xvYmFsQ2FsbGJhY2tzI2tzZG5jcmJoZ2ZsZg== cm1hbGl0eURldGVjdGVkI2VmdTQ2NGYwd3VuY29uQWJubw== NnoxZXV0OW9uQWRTa2lwI2x0Ymo1 X3BsYXllcl9yZXNwb25zZSM4b2FqN3c0cmkzd3Jhdw== bHRpcGxlX3NraXBzX2tzIzlqc2pneHN2MnpubndlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== djlja3pjcmFiX3NhX2VmIzNmeXVn eGJzYmFjbWlhZFNsb3RzI2t6dWQ=".split(" ");var T6;T6=function(v,Q,V){this.aGv=v;this.vn0=Q;this.pwW=V};
_.mI0=[new T6("b.f_",!1,0),new T6("j.s_",!1,2),new T6("r.s_",!1,4),new T6("e.h_",!1,6),new T6("i.s_",!0,8),new T6("s.t_",!1,10),new T6("p.h_",!1,12),new T6("s.i_",!1,14),new T6("f.i_",!1,16),new T6("a.b_",!1,18),new T6("a.o_",!1),new T6("g.o_",!1,22),new T6("p.i_",!1,24),new T6("p.m_",!1),new T6("n.k_",!0,20),new T6("i.f_",!1),new T6("a.s_",!0),new T6("m.c_",!1),new T6("n.h_",!1,26),new T6("o.p_",!1),new T6("m.p_",!0,28),new T6("o.a_",!1),new T6("d.p_",!1),new T6("e.i_",!1)].reduce(function(v,Q){v[Q.aGv]=
Q;return v},{});var WTa=function(){};
WTa.prototype.flush=function(v,Q){v=v===void 0?[]:v;Q=Q===void 0?!1:Q;if(_.Y("enable_client_streamz_web")){v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=hpA(V.value),this.rootSpec&&_.Mj(V,2,this.rootSpec),V={serializedIncrementBatch:_.Sq(V.JSC$9687_serializeBinary())},_.X0("streamzIncremented",V,{sendIsolatedPayload:Q})}};
var Lsr=function(){};
_.f(Lsr,WTa);var oRZ=function(v){var Q=new L$a;var V=new F$x;V=_.SS(V,1,"botguard");v=_.SS(V,2,v);this.rootSpec=_.O9(Q,1,t_a,v)};
_.f(oRZ,WTa);var Ux,XFZ=new Map;var Ss9,pIQ,Tq9,PLG,wIt,OPQ,J$Z,CLm;Ss9=2;pIQ=2;Tq9=2;PLG=2;wIt=2;OPQ=2;J$Z=2;CLm=new tjp;var rbZ,$ep;rbZ=function(){this.ongoingFlowNonces=new Map};
_.KF=function(){$ep||($ep=new rbZ);return $ep};
_.Fp=function(v,Q,V){return{eventType:{flowEventNamespace:v,flowEventType:Q},metadata:V,statusCode:void 0,csn:void 0,can:void 0}};
_.vOQ=function(v,Q){var V=_.KF(),E=InN(V,Q,!0);V.logFlowEvent(v,Q,E,void 0)};
rbZ.prototype.logFlowEvent=function(v,Q,V,E){Q={flowNonce:V||InN(this,Q),flowType:Q,flowEventType:v.eventType};v.metadata&&(Q.flowMetadata=v.metadata);v.statusCode!==void 0&&(Q.flowEventStatus=v.statusCode);v.csn&&(Q.csn=v.csn);v.can&&(Q.can=v.can);_.X0("flowEvent",Q,E)};
var InN=function(v,Q,V){V=V===void 0?!1:V;var E=v.ongoingFlowNonces.get(Q);if(!E||V)E=fC(16),v.ongoingFlowNonces.set(Q,E);return E};_.HlN=new L7S;var Fyr={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Yp=function(v,Q,V,E,b,F,t){V=V===void 0?!1:V;E=E===void 0?!1:E;F=F===void 0?_.hQ():F;this.hasRun=!1;this.q0p=v;this.aRG=Q;this.bfg=V;this.fromHistory=E;this.previousVideoId=b;this.uqT=F;this.tempData=t;this.eiT=new _.prp};
_.f(Yp,Ga);Yp.prototype.validate=function(v){return!(!v.data.playerResponse||v.data.page!=="watch"&&v.data.page!=="learning_journey_watch"&&v.data.page!=="shorts"||this.hasRun)};
Yp.prototype.handle=function(v){var Q=this,V=_.y(v.endpoint,_.sn),E=_.y(v.endpoint,_.PH);if(_.Y("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.q0p.resolve();else{var b={};V?b.watch_endpoint=V:E&&(b.watch_endpoint=E,E.endTimeSeconds&&(b.end=E.endTimeSeconds));v.data.page==="watch"?(v.data.filler||this.bfg||(_.O2("cfg"),_.KW.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(b,mep(this,v.endpoint)),_.Y("enable_masthead_quartile_ping_fix")&&Object.assign(b,Ue8(this)),Object.assign(b,void 0),v.data.forceExternalPlaylist&&(b.external_list=!0)):v.data.page==="shorts"?_.KW.getInstance().triggerAction("yt-start-loading-shorts"):v.data.page==="learning_journey_watch"&&_.KW.getInstance().triggerAction("yt-start-loading-learning-journey");if(V=this.aRG()){try{V.loadVideoWithPlayerResponse(v.data.playerResponse,b),V.getPlayerPromise().then(this.q0p.resolve)}catch(F){_.ro(F),
this.q0p.resolve()}this.hasRun=!0;V.getPlayerPromise().then(function(F){F.addEventListener("onAbnormalityDetected",function(){var t=v.data.playerResponse,p=F.getVideoData().cpn;J$Z=0;_.anZ=p;if(p=HP0(t))Q.eiT.increment("IN_PLAYER"),_.iK(5),_.Y("ab_st_vid_ks")?F.pauseVideo(!0):F.stopVideo(),t.playabilityStatus=Object.assign({},t.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:p}}),t.videoDetails=void 0,_.KW.getInstance().triggerOptionalAction("yt-updated-playability-status",
t.playabilityStatus)})})}else _.Iy(Error("Sf"))}};
var mep=function(v,Q){var V=_.y(Q,_.sn);if(Q&&V&&V.playlistId&&V.videoId&&(v=v.uqT,v.queueProxy?(v=v.queueProxy,V=v.listId===V.playlistId?v.attributionData.get(V.videoId):void 0):V=void 0,V))return{queue_info:V}},Ue8=function(v){var Q;
if((Q=v.tempData)==null?0:Q.adpings)return{adpings:v.tempData.adpings}};var y3=function(v,Q,V){this.hasRun=!1;this.tgt=v;this.ewm=Q;this.nQp=V};
_.f(y3,Ga);y3.prototype.validate=function(v){return!!_.gI.getValueByKeys.apply(null,[v.data].concat(_.ui(cbN)))};
y3.prototype.handle=function(v){var Q=this;this.tgt.promise.then(function(){var V=v.data;var E=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(h0N))),b=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(YTp))),F=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(AbA)));var t=(t=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(wFN))))?{videoId:t.videoId,thumbnail:t.thumbnail,title:t.title?_.u3(t.title):void 0,shortBylineText:t.author?_.u3(t.author):void 0}:void 0;var p=void 0;_.Y("web_get_playlist_id_from_current_endpoint_ks")||
(p=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(k8Z))));var Z=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(ybR))),d=_.gI.getValueByKeys.apply(null,[V].concat(_.ui(Tvx))),w=!!Z||!!d&&!!d.results&&d.results.length>0,A=0;b&&b.currentIndex&&b.localCurrentIndex&&(A=b.currentIndex-b.localCurrentIndex);b&&b.playlistId&&(p=b.playlistId);V={rawResponse:V,autoplayRenderer:E,hasRelatedVideoData:w,playingVideo:t,playingVideoId:F,playlistPanelRenderer:b,playlistId:p,playlistIndex:b&&b.currentIndex,relatedVideoArgs:Z,
endScreenRenderer:d,playlistIndexOffset:A};a:{E=Q.nQp;b=Q.ewm;E.response=V;if(xeV(V))E.downloadPlaylistProxy&&E.downloadPlaylistProxy.getPlaylistId()===NvX(V)||(E.downloadPlaylistProxy=new ilS(NvX(V),E.setPlaylistData.bind(E),E.isPlayingOfflineVideo.bind(E))),E.responsePlaylistData=E.downloadPlaylistProxy.getPlaylistData(),E.listId=NvX(V),E.index=0;else if(V.playlistPanelRenderer&&V.playlistId&&V.autoplayRenderer)V.playlistId.startsWith("TLPQ")?E.queueProxy?E.listId===V.playlistId?(E.index=V.playlistIndex,
E.responsePlaylistData=V.playlistPanelRenderer,E.queueProxy.JSC$13107_setCurrentIndex(E.index)):V.playingVideoId&&E.index!==void 0&&b.clientParams.autoSaveToQueue&&(E.index+=1,E.queueProxy.JSC$13107_setCurrentIndex(E.index),E.queueProxy.addVideos([V.playingVideoId],{},E.index)):(E.queueProxy=new _.ig(E.JSC$13161_playlistNetworkManager,V.playlistId,E.setPlaylistData.bind(E),E.clearQueue.bind(E),_.UDQ(V.playlistPanelRenderer),E.storage),E.responsePlaylistData=V.playlistPanelRenderer,E.listId=V.playlistId,
E.index=V.playlistIndex):(E.index=V.playlistIndex,E.listId!==V.playlistId&&E.clearQueue(),E.responsePlaylistData=V.playlistPanelRenderer,E.listId=V.playlistId,E.playlistProxy=new dex(E.JSC$13161_playlistNetworkManager,V.playlistId,E.setPlaylistData.bind(E),_.UDQ(V.playlistPanelRenderer)));else if(!E.queueProxy)E.responsePlaylistData=void 0;else if(V.playingVideoId&&b.clientParams.autoSaveToQueue){if(E.index===void 0){_.ro(Error("Of"));E.clearQueue();break a}E.queueProxy.videoIds.includes(V.playingVideoId)||
(E.index+=1,E.queueProxy.JSC$13107_setCurrentIndex(E.index),E.queueProxy.addVideos([V.playingVideoId],{},E.index))}_.ww(E,_.AQ(E,E.response.autoplayRenderer))}})};var vLA=function(v,Q){Q=Q===void 0?_.hQ():Q;gJ.call(this);this.t2.push(new y3(this.jg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Q));this.t2.push(new Yp(this.jg,v,!1,!1));_.Y("web_response_commands_chunk_processor")&&this.t2.push(new sO)};
_.f(vLA,gJ);vLA.prototype.processChunk=function(v){v&&v.data.player===void 0&&this.jg.resolve();gJ.prototype.processChunk.call(this,v)};var cO=function(v,Q){v=v===void 0?{layer:0}:v;this.hasRun=!1;this.createScreenConfig=v;this.zaT=Q};
_.f(cO,Ga);cO.prototype.validate=function(v){return!(this.hasRun||!v.endpoint)};
cO.prototype.handle=function(v){var Q=_.tR(),V,E,b=(E=_.y((V=v.endpoint)==null?void 0:V.commandMetadata,_.Kt))==null?void 0:E.rootVe;this.zaT&&b?_.S5(Q,b,this.zaT,this.createScreenConfig):sAX(Q,v.endpoint,this.createScreenConfig);this.hasRun=!0};var CD=function(v,Q){this.hasRun=!1;this.x5y=v;this.previousVideoId=Q};
_.f(CD,Ga);CD.prototype.validate=function(v){return _.Y("kevlar_continue_playback_without_player_response")&&(v=_.y(v.endpoint,_.sn),(v==null?0:v.videoId)&&this.previousVideoId&&(v==null?void 0:v.videoId)===this.previousVideoId&&(v==null?0:v.continuePlayback))?!1:this.x5y.qtp===0};
CD.prototype.handle=function(v){_.KW.getInstance().triggerAction("yt-stop-old-player",v.data,!0)};var QYQ=function(v){v=v===void 0?{layer:0}:v;gJ.call(this);this.t2.push(new CD(this));this.t2.push(new cO(v));this.t2.push(new Bm(v))};
_.f(QYQ,gJ);var Ms=function(){Ga.apply(this,arguments)};
_.f(Ms,Ga);Ms.prototype.validate=function(v){return!!v.data.preconnect};
Ms.prototype.handle=function(v){_.Mp("bc");v=_.L(v.data.preconnect);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,(new Image).src=Q};var V8A=function(v,Q,V,E,b,F,t){V=V===void 0?{layer:0}:V;F=F===void 0?_.hQ():F;gJ.call(this);if(E)if(b){b=F;this.t2.push(new y3(this.jg,Q,b));this.t2.push(new Ms);var p,Z;this.t2.push(new Yp(this.jg,v,!1,!((p=Q.clientParams)==null||!p.fromHistory),(Z=Q.clientParams)==null?void 0:Z.previousVideoId,b,Q.tempData));var d;this.t2.push(new CD(this,(d=Q.clientParams)==null?void 0:d.previousVideoId));var w;(w=Q.clientParams)!=null&&w.fromHistory||(V.layer||(V=Object.assign({},V,{layer:0})),this.t2.push(new cO(V,
t)),this.t2.push(new Bm(V)))}else this.t2.push(new y3(this.jg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},F)),this.t2.push(new Yp(this.jg,v,!1,!1));else this.t2.push(new CD(this)),this.t2.push(new cO(V)),this.t2.push(new Bm(V));_.Y("web_response_commands_chunk_processor")&&E&&this.t2.push(new sO)};
_.f(V8A,gJ);V8A.prototype.processChunk=function(v){v&&v.data.player===void 0&&this.jg.resolve();gJ.prototype.processChunk.call(this,v)};var ELa=function(){this.hasRun=this.hasRun=!1};
_.f(ELa,Ga);ELa.prototype.validate=function(v){return!this.hasRun&&!(!v.data.csn||!v.data.rootVe)};
ELa.prototype.handle=function(v){this.hasRun=!0;_.Da(v.data.csn,v.data.rootVe,3)};var b9a=function(v,Q,V){V=V===void 0?{layer:0}:V;gJ.call(this);this.t2.push(new Yp(this.jg,v));this.t2.push(new cO(V));this.t2.push(new Bm(V))};
_.f(b9a,gJ);var Fcq=function(v,Q,V,E,b){V=V===void 0?{layer:0}:V;E=E===void 0?_.hQ():E;gJ.call(this);var F=!!Q&&!!Q.clientParams&&!!Q.clientParams.miniplayer;F&&this.t2.push(new ELa);this.t2.push(new y3(this.jg,Q,E));this.t2.push(new Ms);var t,p;this.t2.push(new Yp(this.jg,v,F,!((t=Q.clientParams)==null||!t.fromHistory),(p=Q.clientParams)==null?void 0:p.previousVideoId,E,Q.tempData));var Z;this.t2.push(new CD(this,(Z=Q.clientParams)==null?void 0:Z.previousVideoId));var d;(d=Q.clientParams)!=null&&d.fromHistory||
(V.layer||(V=Object.assign({},V,{layer:F?3:0})),this.t2.push(new cO(V,b)),this.t2.push(new Bm(V)));_.Y("web_response_commands_chunk_processor")&&this.t2.push(new sO)};
_.f(Fcq,gJ);var Oj,LcZ;Oj={};
_.Kca=(Oj["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Oj["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Oj["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Oj["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Oj["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Oj["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Oj["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Oj);_.Dp=new _.Hr("yt-edu");_.i9x=function(){this.JSC$13259_eduDisplayedThisLoad_={}};
LcZ=function(v){var Q=_.i9x.getInstance();var V=_.T_("kevlar_tooltip_impression_cap");Q=V&&parseInt(_.Dp.get(v+"-impression")||0,10)>=V||_.Dp.get(v+"-dismissed")?!1:(V=_.Kca[v])&&!Q.JSC$13259_eduDisplayedThisLoad_[V.setKey||v]&&(V.titleText&&_.Lt(V.titleText)||V.bodyText&&_.Lt(V.bodyText))?!0:!1;if(!Q)return null;Q=_.Kca[v];if(!Q)return null;V=Q.bodyText?_.Lt(Q.bodyText):void 0;var E=Q.titleText?_.Lt(Q.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:Q.position,popup:{bubbleHintRenderer:{text:E?
_.u3(E):void 0,detailsText:V?_.u3(V):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.u3(_.Lt("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:v}}]}}}}}}}},{eduImpressionAction:{key:v}}]};
_.$G(_.i9x);var QVr=!1;for(var t8a="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),poZ=[],RZ=6;RZ>=1;RZ--)poZ.push({columnCount:RZ,query:RZ==1?0:RZ*2*107-4+32,className:"grid-"+RZ+"-columns",width:RZ*2*107+"px"});_.nD=function(v){this.actionRouter_=v=v===void 0?_.KW.getInstance():v;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.eXN(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.eXN=function(v){var Q=v.documentWidth_-(v.miniGuideVisible_?72:0)-(v.guidePersistentAndVisible_?240:0)-(v.persistentPanelVisible_?400:0);return poZ.find(function(V){return Q>V.query})};
_.$G(_.nD);var Z9A=function(){var v=this;this.JSC$13271_keyboardInUse=!1;document.addEventListener("keydown",function(){v.onKeydown()});
document.addEventListener("mousedown",function(){v.JSC$13271_keyboardInUse=!1})},PQV;
Z9A.prototype.isKeyBoardInUse=function(){return this.JSC$13271_keyboardInUse};
Z9A.prototype.onKeydown=function(){this.JSC$13271_keyboardInUse=!0};var dux,S6;_.lg=new _.Hr("yt-mentions");_.qs=function(){};
dux=function(v,Q){return S6(Q,"drag-to-reorder-edu-displayed")};
S6=function(v,Q,V,E,b,F){V=V===void 0?"OPEN_POPUP_POSITION_TOP":V;if(Q){if(_.lg.get(Q))return;_.lg.set(Q,!0,E)}if(b&&F!==void 0){Q=Number(_.lg.get(b)||0);if(Q>=F)return;_.lg.set(b,Q+1)}return[{openPopupAction:{popupType:"HINT",position:V,popup:{bubbleHintRenderer:{detailsText:v,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.$G(_.qs);var hXR,woV,AoZ;hXR=function(v,Q,V,E){this.JSC$13281_taskManager_=v;this.onFulfilled_=typeof Q==="function"?Q:null;this.onRejected_=typeof V==="function"?V:null;this.JSC$13281_context_=E};
woV=function(v,Q){v.onFulfilled_&&_.A2(v.JSC$13281_taskManager_,function(){v.onFulfilled_.call(v.JSC$13281_context_,Q)})};
AoZ=function(v,Q){v.onRejected_&&_.A2(v.JSC$13281_taskManager_,function(){v.onRejected_.call(v.JSC$13281_context_,Q)})};
_.z6=function(v){this.JSC$13284_taskManager_=v;this.callbacks_=[]};
_.z6.prototype.then=function(v,Q,V){this.callbacks_.push(new hXR(this.JSC$13284_taskManager_,v,Q,V));return this};
_.z6.prototype.onSuccess=function(v){this.callbacks_.forEach(function(Q){woV(Q,v)})};
_.z6.prototype.onFailure=function(v){this.callbacks_.forEach(function(Q){AoZ(Q,v)})};
_.z6.prototype.cancel=function(){this.callbacks_.length=0};
kgq(_.z6);_.i5r=null;_.dS=new _.KB("ACTIVITY_TOKEN");var kHV;_.kG=new _.KB("PAGE_REQUEST_TOKEN");kHV=new _.KB("FETCH_PBJ_TOKEN");_.ThS=function(v){if(v.validatedFragments_.length==0)return null;if(!v.mergedPrefetchedData_){for(var Q=[],V=_.L(v.validatedFragments_),E=V.next();!E.done;E=V.next()){E=_.L(v.fragmentConfiguration_[E.value].graftedKeys);for(var b=E.next();!b.done;b=E.next())(b=v.prefetchedData_[b.value].trackingParams)&&Q.push(b)}v.mergedPrefetchedData_={};Object.assign(v.mergedPrefetchedData_,v.prefetchedData_,{clientSideGrafts:Q})}return v.mergedPrefetchedData_};var YyZ;_.JQ=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
YyZ=function(v,Q,V){if(_.Ly3(Q))return v.prefetchCache_.get(_.tsT(Q,V))};_.Ns=new _.KB("NAVIGATION_TOKEN");var yoZ=function(v){var Q=this;var V=V===void 0?Z5h():V;var E=E===void 0?_.ht().resolve(_.Ns):E;this.onePickCommand=v;this.JSC$13356_playlistNetworkManager=V;this.navigationManager=E;this.videoPickerBuilder=_.pyE("yt-addtoplaylist");_.BXZ(laA(qnS(nIp(this.videoPickerBuilder.setTitle(v.modalTitle).setSize(1E3).addView(zdp()).addView(SHZ())).addView("youtube"),v.selectButtonLabel)),function(b){Q.handleAction(b)})};
yoZ.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
yoZ.prototype.handleAction=function(v){var Q=this;if(v&&this.onePickCommand.listId&&v.action==="picked"&&v.docs){var V=[];v.docs.forEach(function(E){V.push({addedVideoId:E.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13356_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,V).then(function(){_.Y("playlist_add_video_hard_reload_killswitch")?Q.navigationManager.reload():coN(Q.navigationManager)})}};var fPQ=function(){if(this.constructor===fPQ)throw new TypeError("Uf");};
_.K=fPQ.prototype;_.K.dispose=function(){};
_.K.disconnect=function(){};
_.K.reconnect=function(){};
_.K.observe=function(v,Q,V){return{element:v,option:V}};
_.K.unobserveByKey=function(){};var PFr=function(v,Q){Q=Q===void 0?0:Q;fPQ.call(this);this.viewroot=v;this.defaultPrescanHeight=Q;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),v?{root:v,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.f(PFr,fPQ);_.K=PFr.prototype;_.K.dispose=function(){this.disconnect();this.handlers.clear()};
_.K.disconnect=function(v){this.isConnected=!1;this.pauseObservingUntilReconnect=v===void 0?!1:v;this.observer.disconnect();v=_.L(this.prescanObservers.values());for(var Q=v.next();!Q.done;Q=v.next())Q.value.disconnect()};
_.K.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var v=_.L(this.handlers),Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;var E=V.next().value;V=!1;E=_.L(E.keys());for(var b=E.next();!b.done;b=E.next())if((b=b.value)&&b.state==="prescan"){V=!0;break}V&&GHZ(this,Q).observe(Q);this.observer.observe(Q)}}};
_.K.handleObserveEvent=function(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=this.handlers.get(Q.target);if(V){var E=Q.isIntersecting;V=_.L(V);for(var b=V.next();!b.done;b=V.next()){var F=_.L(b.value);b=F.next().value;F=F.next().value;b&&(b.state==="visible"&&E||b.state==="hidden"&&!E)&&(F(Q.target,b.state),b.calledOnce&&this.unobserveByKey({element:Q.target,option:b}))}}}};
_.K.handlePrescanEvent=function(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=this.handlers.get(Q.target);if(V&&Q.isIntersecting){V=_.L(V);for(var E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;E&&E.state==="prescan"&&(b(Q.target,E.state),E.calledOnce&&this.unobserveByKey({element:Q.target,option:E}))}}}};
_.K.observe=function(v,Q,V){var E=(E=this.handlers.get(v))&&E.has(V)?{element:v,option:V}:void 0;if(E)return E;E={element:v,option:V};this.handlers.has(v)||this.handlers.set(v,new Map);var b=this.handlers.get(v);b&&!b.has(V)&&b.set(V,Q);this.pauseObservingUntilReconnect||(V.state==="prescan"&&GHZ(this,v).observe(v),this.observer.observe(v));return E};
_.K.unobserveByKey=function(v){var Q=this.handlers.get(v.element);if(Q&&Q.has(v.option)){Q.delete(v.option);if(v&&v.option.state==="prescan")for(var V=_.L(this.prescanObservers.values()),E=V.next();!E.done;E=V.next())E.value.unobserve(v.element);Q.size===0&&(this.handlers.delete(v.element),this.observer.unobserve(v.element))}};
var GHZ=function(v,Q){var V=v.defaultPrescanHeight;Q.hasAttribute("prescan-height")&&(Q=Number(Q.getAttribute("prescan-height")),isNaN(Q)||(V=Q));if(v.prescanObservers.has(V))return v.prescanObservers.get(V);Q="-0.1px -0.1px "+V+"px -0.1px";Q=new IntersectionObserver(v.handlePrescanEvent.bind(v),v.viewroot?{root:v.viewroot,rootMargin:Q}:{rootMargin:Q});v.prescanObservers.set(V,Q);return Q};var CQN=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],M8R=function(){var v,Q=this;this.JSC$13373_actionRouter=v=v===void 0?_.KW.getInstance():v;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return Q.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return Q.visibilityObservedElementHandlerKeys}}},O98,RXV,qy8;
M8R.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.Y("kevlar_use_vimio_behavior")&&_.r7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=dgB())};
M8R.prototype.dispose=function(){this.visibilityMonitor&&_.OE(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
M8R.prototype.handleVisibilityRefreshed=function(){for(var v=_.L(this.targetMap.entries()),Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;V=V.next().value;_.Dua(this,Q,V)}};
_.lPN=function(v,Q,V){RXV(v,V);var E=_.nLS(v,Q);E.element=V;v.targetedElements.set(V,Q);_.Dua(v,Q,E)};
RXV=function(v,Q){var V=v.targetedElements.get(Q);if(V){var E=v.targetMap.get(V);E&&(delete E.element,v.targetMap.set(V,E));v.targetedElements.delete(Q);v.visibilityObserver&&v.visibilityObservedElementHandlerKeys&&(V=v.visibilityObservedElementHandlerKeys.get(Q))&&(v.visibilityObserver.unobserveByKey(V),v.visibilityObservedElementHandlerKeys.delete(Q))}};
_.Dua=function(v,Q,V){var E=V.action,b=V.element;b&&E&&(CQN.includes(Q)||_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||v.visibilityMonitor&&v.visibilityMonitor.isNodeVisible(b)?qy8(v,Q,V):v.visibilityObserver&&(v.visibilityObservedElementHandlerKeys||(v.visibilityObservedElementHandlerKeys=new WeakMap),E=v.visibilityObserver.observe(b,function(){qy8(v,Q,V);v.visibilityObservedElementHandlerKeys.delete(b)},{calledOnce:!0,
state:"visible"}),v.visibilityObservedElementHandlerKeys.set(b,E)))};
qy8=function(v,Q,V){var E=V.action;(V=V.element)&&E&&(_.uN(v.JSC$13373_actionRouter,[E],V),v.targetMap.delete(Q),v.targetedElements.delete(V),v.triggeredTargets.add(Q))};
_.nLS=function(v,Q){var V=v.targetMap.get(Q);V||(V={},v.targetMap.set(Q,V));return V};
_.xp=function(){O98||(O98=new M8R);return O98};var SyV=document.createElement("div");SyV.style.touchAction="pan-down";var hW0=SyV.style.touchAction==="pan-down";var zXa,JoX;zXa=function(){this.hammerFn=x3q();this.JSC$13381_screenManager=_.tR();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Vw(83615);_.JL(this.JSC$13381_screenManager,this.ve);wyr()};
_.BO=function(){JoX||(JoX=new zXa);return JoX};
zXa.prototype.registerTouchEvents=function(v,Q,V){var E=_.aE.apply(3,arguments),b=this.hammerFn(v,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});V&&b.set({touchAction:V});this.nodeManagerMapping.set(v,b);var F=
Avo(Q);E=_.L(E);for(var t=E.next();!t.done;t=E.next()){t=t.value;if(t.includes("swipe")||t.includes("pinch")||t.includes("pan"))t.includes("swipe")?b.get("swipe").set({enable:!0,direction:F,velocity:.2}):t.includes("pinch")?b.get("pinch").set({enable:!0}):t.includes("pan")&&(b.get("pan").set({enable:!0,direction:F}),b.get("swipe").set({enable:!0,direction:F,velocity:.2}),b.get("swipe").recognizeWith("pan"));NhX(this,v,b,t)}};
var NhX=function(v,Q,V,E){V.on(E,function(b){if(E.includes("pinch"))v.lastPinchTime=Date.now();else if(E.includes("swipe")&&Date.now()-v.lastPinchTime<400)return;b.pointerType!=="mouse"&&(b=E==="doubletap"?{coordinates:b.center}:E.includes("pan")?b:E.includes("swipe")?{target:b.target}:{},Q.dispatchEvent(new CustomEvent(E,{bubbles:!0,composed:!0,detail:b})))})};
zXa.prototype.unregisterTouchEvents=function(v){var Q=_.aE.apply(1,arguments),V=this.nodeManagerMapping.get(v);if(V){Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next())V.off(E.value);this.nodeManagerMapping.delete(v);v.style.touchAction="unset"}};var xuZ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var k$0=null;_.An={getLocalStorage:_.fo(function(){try{var v=new s$Q;var Q=v.isAvailable()?v:null}catch(V){return null}return Q?new _.C2(Q):null}),
getSessionStorage:_.fo(function(){var v=new u$G;return v.isAvailable()?new _.C2(v):null})};var Bha=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},N_r=function(){Bha.instance||(Bha.instance=new Bha);
return Bha.instance},xg9=function(v){var Q=v.networkEvents;
v.networkEvents=[];return _.Y("enable_network_monitoring")?Q:[]};var gLN;gLN={};_.sYp=hF("yt-serviceworker-metadata",{objectStores:(gLN.auth={addedAtVersion:1},gLN["resource-manifest-assets"]={addedAtVersion:2},gLN),shared:!0,upgrade:function(v,Q){Q(1)&&Uf(v,"resource-manifest-assets");Q(2)&&Uf(v,"auth")},
version:2});var G$o=self.location.origin+"/";CF9([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);CF9([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);CF9([/\.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\//]);CF9([/purge_shell=1/]);var uoN=void 0;uoN=uoN===void 0?[]:uoN;
for(var jYX=[],WcV=_.L(h9a),oLN=WcV.next();!oLN.done;oLN=WcV.next())jYX.push({key:oLN.value});for(var Xoq=_.L(uoN),aPS=Xoq.next();!aPS.done;aPS=Xoq.next())jYX.push(aPS.value);var roV,yJ=_.bb==null?void 0:(roV=_.bb.performance)==null?void 0:roV.memory,Dgh=!1,B_h={},lrQ={},cH={},fF=navigator;var gw=function(v){this.JSC$13426_expiringStorage=new g$(v)};
gw.prototype.set=function(v,Q,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$13426_expiringStorage.set(v,Q,V)};
gw.prototype.get=function(v){return this.JSC$13426_expiringStorage.get(v)};
gw.prototype.remove=function(v){this.JSC$13426_expiringStorage.remove(v)};var arb=_.s$(["https://www.youtube.com/",""]),rvr=_.s$(["https://studio.youtube.com/",""]),UgQ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Ir0=null,bTB;var $ua=_.s$(["https://www.youtube.com/iframe_api"]),sj=function(){this.playerResolver_=_.B_();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.c7;this.playbackDurationSeconds_=0},IPa=function(v){var Q=function(){return window.YT&&typeof window.YT.ready==="function"};
if(Q())return _.Vk(window.YT);var V=_.B_(),E=_.RD("SCRIPT");E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||(E.onload=_.c7,E.onreadystatechange=_.c7,E.onerror=_.c7,Q()?V.resolve(window.YT):V.reject(new _.xd("Failed to load the iframe player library","script.onload",E.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
E.onerror=function(b){E.onload=_.c7;E.onreadystatechange=_.c7;E.onerror=_.c7;V.reject(new _.xd("Failed to load the iframe player library","script.onerror",b&&b.target&&b.target.src))};
_.L$(E,_.Ad($ua));v.insertBefore(E,v.firstChild);return V.promise},H9N=function(v,Q,V){var E,b;
_.e(function(F){switch(F.nextAddress){case 1:return v.playbackEndedCallback_=V,_.GC(F,2),F.yield(IPa(Q.parentElement||null),4);case 4:E=F.yieldResult;_.FT(F,3);break;case 2:return b=_.n$(F),b instanceof _.xd&&b.args&&b.args[0]=="script.onerror"?_.Iy(b):_.ro(b),F.return();case 3:E.ready(function(){return new E.Player(Q,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:v.onPlayerReady_.bind(v),onStateChange:v.onPlayerStateChange_.bind(v),
onCueRangeExit:v.onCueRangeExit_.bind(v)}})}),_.q1(F)}})};
_.K=sj.prototype;_.K.getPlayerPromise=function(){return this.playerPromise_};
_.K.onPlayerReady_=function(v){this.playerResolver_.resolve(v.target)};
_.K.onPlayerStateChange_=function(v){if(v.data==YT.PlayerState.PLAYING){v=v.target;var Q=v.getCurrentTime();v.addCueRange("playback",Q,Q+this.playbackDurationSeconds_)}};
_.K.onCueRangeExit_=function(v){v.data=="playback"&&(v.target.stopVideo(),this.playbackEndedCallback_())};
_.K.stopVideo=function(){this.playerPromise_.then(function(v){v.stopVideo()})};
var muN=function(v){v.playerVars_&&v.playerPromise_.then(function(Q){typeof Q.cueVideoByPlayerVars!="function"?_.Iy(new _.xd("vmh: player API not ready","cueVideoByPlayerVars",typeof Q.cueVideoByPlayerVars)):Q.cueVideoByPlayerVars(v.playerVars_)})};
sj.prototype.playVideo=function(){var v=this;this.playerVars_&&this.playerPromise_.then(function(Q){typeof Q.loadVideoByPlayerVars!="function"?(Q=new _.xd("vmh: player API not ready","loadVideoByPlayerVars",typeof Q.loadVideoByPlayerVars),_.ro(Q)):Q.loadVideoByPlayerVars(v.playerVars_)})};
var Uua=function(v,Q,V,E,b){Q&&(V===void 0&&(V=0),E===void 0&&(E=0),v.playbackDurationSeconds_=E/1E3,v.playerVars_={adformat:"17_8",videoId:Q,suggestedQuality:"hd720",startSeconds:V/1E3,player_params:b})};
sj.prototype.mute=function(){this.playerPromise_.then(function(v){v.mute()})};
sj.prototype.unMute=function(){this.playerPromise_.then(function(v){v.unMute()})};var eFZ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ug;ug=function(){this.tokenJars={};if(this.cookiesEnabled=_.z_()){var v=_.qY.get("CONSISTENCY",void 0);v&&vA8(this,{encryptedTokenJarContents:v})}};
_.PU3=function(){ug.instance||(ug.instance=new ug);return ug.instance};
ug.prototype.handleResponse=function(v,Q){if(!Q)throw Error("Zf");var V,E;Q=((V=Q.innerTubeRequest.context)==null?void 0:(E=V.request)==null?void 0:E.consistencyTokenJars)||[];var b;(v=(b=v.responseContext)==null?void 0:b.consistencyTokenJar)&&this.replace(Q,v)};
ug.prototype.replace=function(v,Q){v=_.L(v);for(var V=v.next();!V.done;V=v.next())delete this.tokenJars[V.value.encryptedTokenJarContents];vA8(this,Q)};
var vA8=function(v,Q){if(Q.encryptedTokenJarContents&&(v.tokenJars[Q.encryptedTokenJarContents]=Q,typeof Q.expirationSeconds==="string")){var V=Number(Q.expirationSeconds);setTimeout(function(){delete v.tokenJars[Q.encryptedTokenJarContents]},V*1E3);
v.cookiesEnabled&&_.Sw("CONSISTENCY",Q.encryptedTokenJarContents,V,void 0,!0)}};var QWQ,j6;QWQ=window.location.hostname.split(".").slice(-2).join(".");_.Jn=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var v=_.r7("LOCATION_PLAYABILITY_TOKEN");_.r7("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=V9S(this))&&(v=this.localStorage.get("yt-location-playability-token"));v&&(this.locationPlayabilityToken=v,this.mostRecentPosition=void 0)};
_.Jn.getInstance=function(){j6=_.Q9("yt.clientLocationService.instance");j6||(j6=new _.Jn,_.Pr("yt.clientLocationService.instance",j6));return j6};
_.Jn.prototype.setLocationOnInnerTubeContext=function(v){v.client||(v.client={});if(this.mostRecentPosition)v.client.locationInfo||(v.client.locationInfo={}),v.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),v.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),v.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),v.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)v.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Jn.prototype.handleResponse=function(v){var Q;v=(Q=v.responseContext)==null?void 0:Q.locationPlayabilityToken;v!==void 0&&(this.locationPlayabilityToken=v,this.mostRecentPosition=void 0,_.r7("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=V9S(this))&&this.localStorage.set("yt-location-playability-token",v,15552E3):_.Sw("YT_CL",JSON.stringify({loctok:v}),15552E3,QWQ,!0))};
var V9S=function(v){return v.localStorage===void 0?new _.Hr("yt-client-location"):v.localStorage};
_.Jn.prototype.clearLocationPlayabilityToken=function(v){v==="TVHTML5"?(this.localStorage=V9S(this))&&this.localStorage.remove("yt-location-playability-token"):_.S20("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Jn.prototype.getCurrentPositionFromGeolocation=function(){var v=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var Q=!1,V=1E4;_.r7("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Q=!0,V=15E3);return new Promise(function(E,b){navigator.geolocation.getCurrentPosition(function(F){v.mostRecentPosition=F;E(F)},function(F){b(F)},{enableHighAccuracy:Q,
maximumAge:0,timeout:V})})};
_.Jn.prototype.createUnpluggedLocationInfo=function(v){var Q={};v=v.coords;if(v==null?0:v.latitude)Q.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)Q.longitudeE7=Math.floor(v.longitude*1E7);if(v==null?0:v.accuracy)Q.locationRadiusMeters=Math.round(v.accuracy);return Q};
_.Jn.prototype.createLocationInfo=function(v){var Q={};v=v.coords;if(v==null?0:v.latitude)Q.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)Q.longitudeE7=Math.floor(v.longitude*1E7);return Q};var EAN=function(v,Q){var V=qo();v||(v="unknown");Q||(Q="unknown");v="MAIN_APP_WEB_PAGE_TYPE_"+v.toUpperCase();v in RYR||(v="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");Q="MAIN_APP_WEB_REQUEST_TYPE_"+Q.toUpperCase();Q in n_8||(Q="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Fu(V,{mainAppWeb:{pageType:v,requestType:Q,isShellLoad:_.mX("IS_SHELL_LOAD",!1)}})},bLA={start:function(){_.Fu(C0b(),{mainAppWeb:_.N2()})},
success:function(){_.Kq(C0b(),"SUCCESS")},
failure:function(){_.Kq(C0b(),"FAILURE")},
cancelled:function(){_.Kq(C0b(),"CANCELLED")}};var FuQ,Ku8,kSo;FuQ=_.s$(["/sw.js"]);Ku8=_.s$(["/sw.js?0"]);_.iLx=_.Ad(FuQ);kSo=_.Ad(Ku8);var LuX=function(){var v=Error.apply(this,arguments);this.message=v.message;"stack"in v&&(this.stack=v.stack)};
_.f(LuX,Error);_.sp.prototype.load=function(v){this.megabloxUrl_=_.r7("YPC_MB_URL");_.SH(this.megabloxUrl_,(0,_.Nz)(function(){v&&v()},this))};
_.jiZ=function(v,Q,V,E,b,F,t,p,Z,d,w){_.YLo(Z);v.load((0,_.Nz)(function(){try{var A=F?F:_.r7("HL"),k=_.r7("SESSION_INDEX");_.bdo("client",function(){cFN("59",{helpCenterPath:"/youtube",locale:A,window:window}).JSC$10055_loadChatSupport({authuser:String(k)})})}catch(T){throw xN(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),b&&b(T),_.ro(T),T;
}t9a(this,Q,V,E,b,F,t,p,Z,d,w)},v))};
_.sp.prototype.openFixFlowDialog=function(v,Q,V,E){this.load((0,_.Nz)(function(){try{pP8(this,_.Q9("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(v).withIntegratorCallback(Q).load(V,E)}catch(b){throw _.ro(b),b;}},this))};
var pP8=function(v,Q,V,E){var b=Q.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.Y("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle(_.Q9("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));E&&(b=b.usingCloseCallback(E));Q.bootstrap.fromPaymentsUrl(v.megabloxUrl_);v=Q.bootstrap.asMashupMode(b);V=V?V:_.r7("HL");v.usingGaiaIndex(_.r7("SESSION_INDEX")).usingLocale(V).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.Y("enable_google_payments_buyflow_material2_style_web")?
v.usingStyle(":m2;pc=#444;ac=#065fd4"):v.usingStyle(":md;pc=#444;ac=#065fd4");return v},t9a=function(v,Q,V,E,b,F,t,p,Z,d,w){try{var A=_.Q9("payments.business.integration");
if(!A)throw new LuX("payments.business.integration is undefined");var k=A.standaloneContextAuthId.forUserId(),T=pP8(v,A,F,function(){cko(!1);p&&p()});
t&&T.usingServerAnalyticsEventHandler(t);var c=T.inStandaloneContext(k).buyFlow(function(C){if(C&&(!C.integratorData||C.integratorData===""||C.error))if(C.error!=null)if(String(C.error)==="-1")_.ykG(Z);else{var R=String(C.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";xN(10,w,R,C.debugCode);_.BH(R,Z,C.debugCode);R=new _.xd("PAYMENT_ERROR_MESSAGE::"+C.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+C.internalErrorDetails);
_.ro(R)}else xN(10,w,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.BH("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",Z,"EMPTY_INTEGRATOR_DATA"),_.ro(Error("bg"));V&&(cko(!1),V(C))}).withEncryptedParameters(Q);
d&&c.withClientParameters(G08(_.s2B(d)));c.load(function(){xN(24,w);_.DG("ttc",void 0,"commerce_transaction");G2("commerce_transaction");E&&(E(),cko(!0))},function(C){if(C==null?0:C.debugCode)var R=C==null?void 0:C.debugCode;
else if(!C||(C==null?0:C.debugCode))R="EMPTY_LOAD_FAILURE_ERROR",_.ro(Error(R));else{R="EMPTY_LOAD_FAILURE_DEBUG_CODE";var l=new _.xd("LOAD_FAILURE:"+C.message," DEBUG_CODE:"+R);_.ro(l)}xN(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",R);_.BH("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Z,R);_.ro(C);b&&b(C)})}catch(C){throw C instanceof LuX&&(xN(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),b&&b(C)),_.ro(C),C;
}};var e7q;e7q=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.g1t=function(v,Q){Q=Q===void 0?!1:Q;v=e7q.test(v)?_.lV(v):null;!Q&&window.payments||!v?(v=_.B_(),Q=v.promise,v.resolve()):Q=_.tuX(v,{attributes:{"data-payments-main":"",id:"payment-lib"}});return Q};var ZLV;ZLV=_.s$(["//www.googletagmanager.com/gtm.js?id=",""]);_.WO=function(v,Q){_.$W(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:Q}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.r7("GL")}),Q=_.RD("SCRIPT"),Q.async=!0,_.L$(Q,_.Ad(ZLV,v)),Q.id="gtm",v=document.getElementsByTagName("script"),v.length==0?document.head.appendChild(Q):(v=v[0],v.parentNode.insertBefore(Q,v)))};
_.oZ=function(v){if(v=JSON.parse(v))window.dataLayer=window.dataLayer||[],window.dataLayer.push(v)};var Pwx,dWQ;Pwx=_.s$(["https://clients2.google.com/gr/gr_sync.js"]);_.xtT=function(){};
_.xtT.prototype.init=function(){if(dWQ()){var v=_.B_();v.resolve();return v.promise}return _.tuX(_.Ad(Pwx)).then(function(){if(!dWQ())throw Error("cg");},function(){throw Error("dg");
})};
_.BTE=function(){if(!dWQ())return"";var v=window.google.gr;v.init({async:{schedule:"sync"},merchantId:"youtube"});v.start();v=v.finish();return v==null?"":v};
dWQ=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.z,PolymerFakeBaseClassWithoutHtml);_.dg=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.dg,PolymerFakeBaseClassWithoutHtml);var f8h=window.ShadyDOM;var i00,FHB,tR0,p8B,Z0B,Pl0,XY,HH;i00=_.Y("enable_shadydom_free_scoped_query_methods");FHB=_.Y("enable_shadydom_free_scoped_node_methods");tR0=_.Y("enable_shadydom_free_scoped_readonly_properties_batch_one");p8B=_.Y("enable_shadydom_free_parent_node");Z0B=_.Y("enable_shadydom_free_children");Pl0=_.Y("enable_shadydom_free_last_child");XY=window.ShadyDOM;_.bf=XY&&XY.noPatch&&XY.wrap?XY.wrap:XY?function(v){return XY.patch(v)}:function(v){return v};
HH=function(v){if(v instanceof ShadowRoot)this.host=(0,_.bf)(v.host),this.root=v;else if(v.$$){this.host=(0,_.bf)(v);var Q;this.root=(Q=v.root)!=null?Q:this.host}else if(v.polymerController){this.host=(0,_.bf)(v);var V;this.root=(V=this.host.shadowRoot)!=null?V:this.host}else this.root=this.host=(0,_.bf)(v)};
KHS();LHG();d00();hPo();ePm();var h7a={querySelector:function(v,Q){Q=NkS(Q,Xp(v));return _.Y("sunnydom_native_scoped_query_selectors")?CUQ(v,Q):CUQ(_.aO(v),Q)},
querySelectorAll:function(v,Q){Q=NkS(Q,Xp(v));return _.Y("sunnydom_native_scoped_query_selectors")?Array.from(Mnr(v,Q)):Mnr(_.aO(v),Q)}},wPX={appendChild:function(v,Q){var V=Xp(v),E=_.oO(Q);
return _.ECb(_.aO(v),V?_.$N(Q,V,E):Q)},
cloneNode:function(v,Q){var V=_.oO(v);v=_.aO(v);Q=WH(v).prototype.cloneNode.call(v,Q);return V?IO(Q,V):Q},
contains:function(v,Q){var V=Xp(v),E=_.oO(Q);return V!==E?!1:b0b(v,Q)},
insertBefore:function(v,Q,V){var E=Xp(v),b=_.oO(Q);v=_.aO(v);Q=E?_.$N(Q,E,b):Q;return WH(v).prototype.insertBefore.call(v,Q,V)},
removeChild:function(v,Q){var V=Xp(v);v=_.aO(v);Q=V?IO(Q,V):Q;return WH(v).prototype.removeChild.call(v,Q)},
replaceChild:function(v,Q,V){var E=Xp(v),b=_.oO(Q);Q=E?_.$N(Q,E,b):b?IO(Q,b):Q;V=E?IO(V,E):V;v=_.aO(v);return WH(v).prototype.replaceChild.call(v,Q,V)},
getRootNode:function(v,Q){Q=Q===void 0?{composed:!0}:Q;var V;if(((V=Q)!=null?V:{}).composed)v=VRo(v);else{Q=v;for(v=Dhb(v);v;)Q=v,v=BkB(v);v=Q}return v}},AV0=tR0?{firstChild:I8o,
nextSibling:a8Q,previousSibling:$hr,firstElementChild:HT9,lastElementChild:Uho,nextElementSibling:Xbr,previousElementSibling:rko,childNodes:vCS}:{};p8B&&(AV0.parentNode=oqt);Z0B&&(AV0.children=QAZ);Pl0&&(AV0.lastChild=mhB);i00&&w8h(h7a);FHB&&w8h(wPX);k3G();var TrB=function(v){this.node=v instanceof ShadowRoot?v.host:v};
YQo();yVE();var G3h=new WeakMap;var MRE=Symbol("Bd");var lJQ=new Set(["tap","track","down","up"]),qQo=_.Y("pbcm_fi_query_decorators");var aZ=function(){return _.dg.apply(this,arguments)||this};
_.f(aZ,_.dg);_.K=aZ.prototype;_.K.getState=function(){return this.store.getState()};
_.K.dispatch=function(v){this.store.dispatch(v)};
_.K.beforeRegister=function(){if(this&&typeof this==="object"){var v;var Q=!!this.useSignals||!((v=this.polymerController)==null||!v.useSignals)}else Q=!1;if(!Q&&this.properties)for(Q=_.L(Object.keys(this.properties)),v=Q.next();!v.done;v=Q.next()){var V=v.value;v=this.properties[V];if(v.selector){if(v.computed)throw Error("kg");V=["reduxPropertiesRecomputeTrigger",'"'+V+'"'].concat(_.ui(v.selectorArgs||[])).join(",");v.computed="recomputeReduxSelector("+V+")"}}};
_.K.attached=function(){var v=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){v.reduxPropertiesRecomputeTrigger++}));
_.Y("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.K.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.K.recomputeReduxSelector=function(v,Q){var V=_.aE.apply(2,arguments),E=this.properties[Q].selector;if(!E)throw Error("ig`"+Q);return E.apply(null,[this.store.getState()].concat(_.ui(V)))};
_.K.select=function(v){var Q=_.aE.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return v.apply(null,[this.store.getState()].concat(_.ui(Q)))};
_.hr.Object.defineProperties(aZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
aZ.prototype.recomputeReduxSelector=aZ.prototype.recomputeReduxSelector;_.W([_.q(),_.X("design:type",Number)],aZ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.W([_.hM()],aZ);var rw=[],Nrr={},OJ=function(){return Ar.apply(this,arguments)||this};
_.f(OJ,Ar);OJ.prototype._addPropertyEffect=function(v,Q,V){if(Q==="__observeEffects"&&V){var E,b=(E=V.info.method)!=null?E:V.info.methodName;if(b){var F=this[b];this[b]=function(){rw.push(b);try{F==null||F.apply(this,arguments)}finally{rw.pop()}}}}_.SO._addPropertyEffect.apply(this,[v,
Q,V])};
OJ.prototype._setPendingProperty=function(v,Q,V){if(rw.length){var E=rw[rw.length-1],b;(b=Nrr[this.is])!=null&&b.has(E)||(x0h(this.is,E),_.X0("polymerPropertyChangedInObserver",{componentName:this.is,observerName:E}))}return _.SO._setPendingProperty.apply(this,[v,Q,V])};
_.W([E$T()],OJ);var Brr=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),sAt,kv={};_.Y("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=kv);var yE=function(){return _.dg.apply(this,arguments)||this};
_.f(yE,_.dg);yE.prototype._setUnmanagedPropertyToNode=function(v,Q,V){v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!0);if(V!==v[Q]||typeof V==="object")v[Q]=V;v.is&&v.polymerController&&v.polymerController!==v&&TP(v.is,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!1)};
_.W([_.hM()],yE);gC3()&&(ES.prototype._setUnmanagedPropertyToNode=(new yE)._setUnmanagedPropertyToNode);_.Qwm={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(v){},set polymerController(v){}}]};var Mf=function(){var v=Ar.apply(this,arguments)||this;v.json=function(){};
return v};
_.f(Mf,Ar);Mf.prototype.equals=function(v,Q){return v===Q};
Mf.prototype.isEmpty=function(v){var Q;(Q=!v)||(Q=_.W9(v)&&v.length===0);return Q};
_.W([E$T()],Mf);var AEZ=function(v){v=E5Z(v);Uk.call(this,v)};
_.f(AEZ,Uk);AEZ.prototype.addProvider=function(v){v=v.key?v:E5Z([v])[0];var Q=this.keyIdToIndex.get(v.key.id);if(Q){if(X8Q(v,this.providers[Q]))throw Error("lg`"+v.key.displayName);}else Uk.prototype.addProvider.call(this,v)};
var kQR=new AEZ([]);var TyR=!1;var m0T={};TyR||(H03(),TyR=!0);
m0T.InjectBehavior={initializeInjection:function(){var v=this.provide;try{if((v=v!=null?v:[])&&v.length>0)for(var Q=E5Z(v),V=_.L(Q),E=V.next();!E.done;E=V.next())kQR.addProvider(E.value);var b=new Set;aJB(this.behaviors||[],b);Q={};for(var F=_.L(b),t=F.next();!t.done;t=F.next()){var p=t.value;p.inject&&Object.assign(Q,p.inject)}this.inject&&Object.assign(Q,this.inject);for(var Z=_.L(Object.keys(Q)),d=Z.next();!d.done;d=Z.next()){var w=d.value,A=Q[w];try{this[w]=kQR.resolve(A)}catch(k){throw k;}}}catch(k){throw Error(k.message);
}}};var vkB;var VUS=/\bclass\b/.test(function(){}.toString()),FRm=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var YVA=function(v){this.wasDefined=!0;Array.isArray(v)||v instanceof Array?(this.JSC$13584_getImpl=v[0],this.JSC$13584_setImpl=v[1]):this.JSC$13584_getImpl=v};
_.K=YVA.prototype;_.K.getWithPath=function(v){return LRQ(this.JSC$13584_getImpl(),v)};
_.K.setWithPath=function(v,Q){var V=this;if(v.length)throw Error("mg");if(!this.JSC$13584_setImpl)throw Error("ng");na(function(){V.JSC$13584_setImpl(Q)})};
_.K.notifyPath=function(){throw Error("og");};
_.K.notifySplices=function(){throw Error("pg");};
_.K.getChangeRecordSignal=function(v,Q){var V=this;if(v.length)throw Error("qg");return function(){var E=V.getWithPath(v);return{path:Q!=null?Q:"",base:E,value:E}}};
_.K.getSplicesSignal=function(){throw Error("rg");};
_.K.getPathMutationSignal=function(){throw Error("sg");};
_.K.pop=function(){throw Error("tg");};
_.K.push=function(){throw Error("ug");};
_.K.splice=function(){throw Error("vg");};
_.K.unshift=function(){throw Error("wg");};var $p=function(v){var Q=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(v)||v instanceof Array?(this.JSC$13589_getImpl=v[0],this.JSC$13589_setImpl=v[1]):this.JSC$13589_getImpl=v;this.wasDefined=!1;_.fa(function(){Q.wasDefined=Q.JSC$13589_getImpl()!==void 0})};
$p.prototype.getWithPath=function(v){return LRQ(this.JSC$13589_getImpl(),v)};
$p.prototype.setWithPath=function(v,Q){var V=this;if(v[v.length-1]!=="*"&&v[v.length-1]!=="splices"){var E=_.fa(function(){return V.getWithPath([])});
if(v.length===0){if(!this.JSC$13589_setImpl)throw Error("xg");if(E===Q)return;this.wasDefined||(this.wasDefined=Q!==void 0);na(function(){V.JSC$13589_setImpl(Q)})}else{for(var b=0;b<v.length-1;b++){if(!E)return;
E=E[v[b]]}b=v[v.length-1];E&&(E[b]=Q);this.wasDefined||(this.wasDefined=v.length>1||Q!==void 0)}yEa(this,v,{pathComponents:v,value:Q})}};
$p.prototype.notifyPath=function(v,Q){v.length===0?Q&&this.setWithPath(v,Q.value):yEa(this,v,{pathComponents:v,value:Q==null?void 0:Q.value,fallbackWhenUndefined:Q==null?void 0:Q.value})};
var yEa=function(v,Q,V,E){if(v.setMutationSignal){var b=++v.mutationIndex,F=[v.observedPath],t=v.observedPath,p;Q.length===0&&(p=t);for(var Z=0;Z<Q.length;Z++){var d=t.subPaths[Q[Z]];if(!d)break;F.push(d);t=d;Z===Q.length-1&&(p=d)}for(Q=!1;F.length;)t=F.shift(),t.data={index:b,mutation:V,spliceMutationIndex:E},Q||(Q=t===p),Q&&F.push.apply(F,_.ui(Object.values(t.subPaths)));na(function(){v.setMutationSignal(b)})}};
$p.prototype.notifySplices=function(v,Q){var V=this,E=_.fa(function(){return V.getWithPath(v)}),b=[].concat(_.ui(v),["splices"]);
yEa(this,b,{pathComponents:b,value:{indexSplices:Q}});if(E==null?0:E.length)Q=this.mutationIndex,b=[].concat(_.ui(v),["length"]),yEa(this,b,{pathComponents:b,value:E.length},Q)};
var cEV=function(v,Q,V,E,b,F){v.notifySplices(V,[{index:E,addedCount:b,removed:F,object:Q,type:"splice"}])},fcZ=function(v,Q){v=v.observedPath;
for(var V=0;V<Q.length;V++){var E=Q[V],b=v.subPaths[E];b||(b={pathComponents:Q.slice(0,V+1),subPaths:{}},v.subPaths[E]=b);v=b}},Cwp=function(v,Q,V){fcZ(v,Q);
if(!v.getMutationSignal){var E=_.L(_.Ge(v.mutationIndex,void 0,"sNBMCd"));v.getMutationSignal=E.next().value;v.setMutationSignal=E.next().value}var b=v.getMutationSignal;return _.Rr(function(){b();return V(GQq(v,Q))},void 0,"zvsXEd")};
$p.prototype.getChangeRecordSignal=function(v,Q){var V=this,E=this.mutationIndex,b;return Cwp(this,v,function(F){if(F&&F.index>E){var t=F.mutation;E=F.index;b=void 0}F=_.fa(function(){return V.getWithPath(v)});
if(t){var p=t.pathComponents[t.pathComponents.length-1],Z=[].concat(_.ui(t.pathComponents));if(p==="splices"||p==="length")return{base:F,path:(Q?[Q].concat(_.ui(Z)):Z).join("."),value:t.value};var d=v.length>Z.length?v:Z,w;return{base:F!=null?F:t.fallbackWhenUndefined,path:(Q?[Q].concat(_.ui(d)):d).join("."),value:(w=_.fa(function(){return V.getWithPath(d)}))!=null?w:t.fallbackWhenUndefined}}b||(b={base:F,
path:(Q?[Q].concat(_.ui(v)):v).join("."),value:F});return b})};
$p.prototype.getSplicesSignal=function(v){var Q=this.mutationIndex,V;return Cwp(this,v,function(E){if(E&&E.index>Q&&E.spliceMutationIndex!==Q){var b=E.mutation;Q=E.index;V=void 0}return b&&b.pathComponents[b.pathComponents.length-1]==="splices"?V=E=b.value:V})};
$p.prototype.getPathMutationSignal=function(v){var Q=this;fcZ(this,v);if(!this.getMutationSignal){var V=_.L(_.Ge(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=V.next().value;this.setMutationSignal=V.next().value}var E=this.getMutationSignal,b=this.mutationIndex,F;return _.Rr(function(){E();var t=GQq(Q,v);if(t&&t.index>b&&t.mutation&&tUr(t.mutation.pathComponents,v)){var p=t.mutation;b=t.index}if(!F||b!==F.index){var Z,d;t=(d=_.fa(function(){return Q.getWithPath(v)}))!=null?d:(Z=p)==null?
void 0:Z.fallbackWhenUndefined;
F={index:b,value:t}}return F},void 0,"RXYC9b")};
var GQq=function(v,Q){v=v.observedPath;Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())v=v.subPaths[V.value];return v.data};
$p.prototype.pop=function(v){var Q=this,V=_.fa(function(){return Q.getWithPath(v)});
if(!(V instanceof Array))throw Error("yg");var E=V.length>0,b=V.pop();E&&cEV(this,V,v,V.length,0,[b]);return b};
$p.prototype.push=function(v){var Q=_.aE.apply(1,arguments),V=this,E=_.fa(function(){return V.getWithPath(v)});
if(!(E instanceof Array))throw Error("zg");var b=E.length,F=E.push.apply(E,_.ui(Q));Q.length&&cEV(this,E,v,b,Q.length,[]);return F};
$p.prototype.splice=function(v,Q,V){var E=_.aE.apply(3,arguments),b=this,F=_.fa(function(){return b.getWithPath(v)});
if(!(F instanceof Array))throw Error("Ag");Q<0?Q=F.length-Math.floor(-Q):Q&&(Q=Math.floor(Q));var t=F.splice.apply(F,[Q,V].concat(_.ui(E)));(E.length||t.length)&&cEV(this,F,v,Q,E.length,t);return t};
$p.prototype.unshift=function(v){var Q=_.aE.apply(1,arguments),V=this,E=_.fa(function(){return V.getWithPath(v)});
if(!(E instanceof Array))throw Error("Bg");var b=E.unshift.apply(E,_.ui(Q));Q.length&&cEV(this,E,v,0,Q.length,[]);return b};var IZ=function(v,Q,V){this.model=v;this.unknownSignalResolver=Q;this.options=V;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];Q=_.L(kDm());v=Q.next().value;Q=Q.next().value;this.owner=v;this.disposeImpl=Q};
IZ.prototype.dispose=function(){if(!this.isDisposed){for(var v=_.L(this.childSignalProxies),Q=v.next();!Q.done;Q=v.next())Q.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var M9q=function(v,Q){v=_.La(v.owner);try{Q()}finally{_.La(v)}};
IZ.prototype.effect=function(v){M9q(this,function(){_.sX(v,"h")})};
var OLZ=function(v,Q){v.options!=null||(v.options={});var V;(V=v.options).immutableProps!=null||(V.immutableProps=new Set);v.options.immutableProps.add(Q)},WRb=function(v,Q){Q=""+Q;
DWq(v,Q);var V,E;if((V=v.options)==null?0:(E=V.immutableProps)==null?0:E.has(Q))return!0;var b;if((b=v.model.__signalCache)==null?0:b.has(Q))V=v.model.__signalCache.get(Q),Array.isArray(V)&&OLZ(v,Q);var F,t,p;return(p=(F=v.options)==null?void 0:(t=F.immutableProps)==null?void 0:t.has(Q))!=null?p:!1},R7p=function(v,Q){var V;
v.unknownSignalResolver&&(V=v.unknownSignalResolver(Q));var E,b;((E=v.options)==null?0:(b=E.immutableProps)==null?0:b.has(Q))?V!=null||(V=new YVA(_.Ge(v.model[Q],void 0,"By5iP"))):V!=null||(V=new $p(_.Ge(v.model[Q],void 0,"CXghNc")));var F=v.model.hostElement;Object.defineProperty(v.model,Q,{get:function(){jAS(F,Q);return V.getWithPath([])},
set:function(t){Yv(F,Q);v.setWithPath([Q],t)},
configurable:!0});return V},DWq=function(v,Q){var V,E,b;
((V=v.model.__signalCache)==null||!V.has(Q))&&((E=v.options)==null?0:(b=E.externalSignalProps)==null?0:b.has(Q))&&v.model[Q]},lf=function(v,Q){Q=""+Q;
var V=v.signalCache[Q];if(V!==void 0)return V;V=!1;DWq(v,Q);var E;if((E=v.model.__signalCache)==null?0:E.has(Q))if(V=v.model.__signalCache.get(Q),Array.isArray(V))V=!0,OLZ(v,Q);else return v.signalCache[Q]=v.model.__signalCache.get(Q).signal,v.signalCache[Q];var b,F;E=(F=(b=v.options)==null?void 0:b.reactivityMode)!=null?F:0;var t,p;if(!((t=v.options)==null?0:(p=t.reactiveProps)==null?0:p.has(Q))&&!V&&E===1)throw Error("Cg`"+Q);b=V?nAx(v,Q):R7p(v,Q);return v.signalCache[Q]=b},nAx=function(v,Q){var V=
Object.getOwnPropertyDescriptor(v.model.constructor.prototype,Q),E=function(){return v.model[Q]};
return new YVA(V&&V.get&&!V.set?E:[E,function(b){v.model[Q]=b}])};
IZ.prototype.getWithPath=function(v){var Q=_.L(v);v=Q.next().value;Q=Fb(Q);jAS(this.model.hostElement,""+v);return lf(this,v).getWithPath(Q)};
IZ.prototype.setWithPath=function(v,Q){if(v.length){Yv(this.model.hostElement,v.join("."));var V=_.L(v);v=V.next().value;V=Fb(V);lf(this,v).setWithPath(V,Q)}};
IZ.prototype.getPathMutationSignal=function(v){var Q=_.L(v);v=Q.next().value;Q=Fb(Q);return lf(this,v).getPathMutationSignal(Q)};
IZ.prototype.notifyPath=function(v,Q){var V=_.L(v);v=V.next().value;V=Fb(V);lf(this,v).notifyPath(V,Q)};
var lcV=function(v,Q){if(Q.type==="literal")return function(){return{rootWasDefined:!0,value:Q.value}};
var V=R1(Q.path),E=_.L(V),b=E.next().value;E=Fb(E);var F,t;if(Q.type==="path"&&(V.length===1||((F=v.options)==null?0:(t=F.immutableProps)==null?0:t.has(b))))return function(){var A=v.getWithPath(V.slice(0,1));A=LRQ(A,V.slice(1));return{rootWasDefined:lf(v,V[0]).wasDefined,value:A}};
var p=lf(v,b);if(Q.type==="path"){var Z=p.getPathMutationSignal(E);return function(){var A,k=(A=Z())==null?void 0:A.value;return{rootWasDefined:p.wasDefined,value:k}}}if(Q.type==="splices"){var d=p.getSplicesSignal(E);
return function(){var A=d();return{rootWasDefined:p.wasDefined,value:A}}}var w=p.getChangeRecordSignal(E,""+b);
return function(){var A=w();return{rootWasDefined:p.wasDefined,value:A}}},hl3=function(v,Q,V){var E=V.map(function(p){return lcV(v,p)}),b=V.length===0,F=[],t=V.length!==1||V[0].type!=="path"?!1:!0;
v.effect(function(){for(var p=E.length,Z=[],d=!!F.length,w=0;w<p;w++){var A=E[w](),k=A.rootWasDefined;A=A.value;b||(b=k);Z[w]=A;t&&(Z[w+p]=d?F[w]:Z[w],F[w]=A)}b&&Xb(v.owner,function(){return void Q.apply(null,_.ui(Z))})})},plm=function(v,Q,V,E,b){var F=lf(v,Q);
b!==void 0&&F.setWithPath([],b);hl3(v,function(){var t=_.aE.apply(0,arguments);Yv(v.model.hostElement,Q,!0);F.setWithPath([],V.apply(null,_.ui(t)))},E)};
IZ.prototype.arrayPush=function(v){var Q=_.aE.apply(1,arguments),V=_.L(v),E=V.next().value;V=Fb(V);E=lf(this,E);return E.push.apply(E,[V].concat(_.ui(Q)))};
IZ.prototype.arraySplice=function(v,Q,V){var E=_.aE.apply(3,arguments),b=_.L(v),F=b.next().value;b=Fb(b);F=lf(this,F);return F.splice.apply(F,[b,Q,V].concat(_.ui(E)))};
IZ.prototype.arrayUnshift=function(v){var Q=_.aE.apply(1,arguments),V=_.L(v),E=V.next().value;V=Fb(V);E=lf(this,E);return E.unshift.apply(E,[V].concat(_.ui(Q)))};
IZ.prototype.notifySplices=function(v,Q){var V=_.L(v);v=V.next().value;V=Fb(V);lf(this,v).notifySplices(V,Q)};var qVN=!0,SVX=!1,oRE=!1,z7p=!1,JEq=0;z7p=!1;JEq=0;qVN=!0;SVX=oRE=!1;var GD0=/([^\s]+?)\(([\s\S]*)\)/,ywS=/\.([^.]+)$/,MUm=/\\,/g,T0Z=/&comma;/g,YaZ=/\\(.)/g,CR3=[],cw9={"*":"wildcard",splices:"splices"};var N0S=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"),qaZ=/[A-Z]/,NyX=["class","hidden","id","on-dom-change"],B0o=new Set([].concat(_.ui(NyX),
["if","notify-dom-change","restamp"])),gkT=new Set([].concat(_.ui(NyX),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),swm=new Set(["restamp"]);var Bhr=new Set(["className","id"]);var XlB=Symbol(),UbS=window;var il3=window;var deb=0,pF3=0,qf=[],Por=0,tkt=!1,Zl3=document.createTextNode("");(new window.MutationObserver(e0h)).observe(Zl3,{characterData:!0});var zP=new Map,ST=0,xWZ=function(v){this.mappedHandleId=v},wF9=function(v,Q,V,E){this.mappedHandleId=v;
var b=this;this.mappedHandleId=v;this.callback=Q;this.waitTime=V;this.schedulerPriority=E;this.handleId=_.XT.addJob(function(){b.callback();zP.delete(b.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.f(wF9,xWZ);wF9.prototype.cancel=function(){_.XT.cancelJob(this.handleId);zP.delete(this.mappedHandleId)};
var AbS=function(v,Q){this.mappedHandleId=v;var V=this;this.mappedHandleId=v;this.callback=Q;this.handleId=h09(function(){V.callback();zP.delete(V.mappedHandleId)})};
_.f(AbS,xWZ);AbS.prototype.cancel=function(){var v=this.handleId-pF3;v<0||qf.length<=v||(qf[v]=null);zP.delete(this.mappedHandleId)};var ybB=function(){};
ybB.prototype.cancel=function(){this.jobHandle!==void 0&&(k8m(this.jobHandle),this.jobHandle=void 0)};
ybB.prototype.run=function(v,Q,V){var E=this;this.cancel();this.callback=v;this.jobHandle=_.JM(function(){v();E.callback=void 0},Q,V)};
ybB.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Tvb=new WeakMap;var ByS=FB(function(v){for(var Q=v,V=0;V<3;V++)Q=Object.getPrototypeOf(Q);delete Q.prototype.connectedCallback;var E=function(){return v.apply(this,arguments)||this};
_.f(E,v);E.prototype._attachDom=function(b){if(!b)return null;var F=(0,_.bf)(this.hostElement);F.attachShadow({mode:"open",shadyUpgradeFragment:b});F.shadowRoot.appendChild(b);return F.shadowRoot};
E.prototype._takeAttributes=function(){for(var b=this.hostElement.attributes,F=0;F<b.length;F++){var t=b[F],p=void 0,Z=void 0;(Z=(p=this).__attributeReaction)==null||Z.call(p,t.name,null,t.value)}};
E.prototype._readyClients=function(){v.prototype._readyClients.call(this);this.root=this};
E.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);v.prototype.connectedCallback.call(this)};
_.hr.Object.defineProperties(E,{template:{configurable:!0,enumerable:!0,get:function(){return E.prototype._template}}});
return E}),gAZ=FB(function(v){var Q=function(){return v.apply(this,arguments)||this};
_.f(Q,v);Q.prototype.created=function(){if(this.__notifyEffects)for(var V=_.L(Object.values(this.__notifyEffects)),E=V.next();!E.done;E=V.next()){E=_.L(E.value);for(var b=E.next();!b.done;b=E.next())b.value.fn=Co3}if(this.__reflectEffects)for(V=_.L(Object.values(this.__reflectEffects)),E=V.next();!E.done;E=V.next())for(E=_.L(E.value),b=E.next();!b.done;b=E.next())b.value.fn=MkT};
Q.prototype._addEventListenerToNode=function(V,E,b){V=xv(V);rX(V,E,b)||v.prototype._addEventListenerToNode.call(this,V,E,b)};
Q.prototype._removeEventListenerFromNode=function(V,E,b){V=xv(V);$0(V,E,b)||v.prototype._removeEventListenerFromNode.call(this,V,E,b)};
Q.prototype._propertiesChanged=function(V,E,b){if(this.__dataToNotify&&this.__notifyEffects)for(var F=_.L(Object.keys(this.__dataToNotify)),t=F.next();!t.done;t=F.next()){t=t.value;var p=G8r(t);this.__notifyEffects[p]||delete this.__dataToNotify[t]}else this.__dataToNotify=null;v.prototype._propertiesChanged.call(this,V,E,b)};
Q.prototype.fire=function(V,E,b){E=E===void 0?{}:E;var F;return _.Hj(xv((F=b==null?void 0:b.node)!=null?F:this),V,E,b)};
Q.prototype._ensureAttribute=function(V,E){var b=xv(this);b.hasAttribute(V)||nh(b,E,V)};
Q.prototype.isLightDescendant=function(V){var E=xv(this);return xv(E)!==V&&_.m9(E).contains(V)&&_.m9(E).getRootNode()===_.m9(V).getRootNode()};
return Q});
_.JC.ready=function(){var v;((v=this.hostElement)!=null?v:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var Q;((Q=this.hostElement)!=null?Q:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.WW._subscribeIronResize=function(v){var Q;((Q=v.hostElement)!=null?Q:v).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.WW._unsubscribeIronResize=function(v){var Q;((Q=v.hostElement)!=null?Q:v).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var R0m=[Array,Boolean,Date,Number,Object,String],gg=function(v,Q,V,E){this.polySiInfo=v;this.polySiParams=Q;this.polySiContext=V;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;E||this instanceof HTMLElement&&(E=this);if(!E)throw Error("Jg");this.allowedProps=Q.allowedProps;this.hostElement=E;this.is=v.is;this.upgradeDisabled=!!Q.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");v=new Set(Q.reactiveSchemas.filter(function(b){return b.type!==
"observe"}).map(function(b){return b.propertyKey}));
this.signalProxy=new IZ(this,void 0,{reactiveProps:v,reactivityMode:Q.reactivityMode});this.__dataHasAccessor={};Q=_.L(Q.reactiveSchemas);for(v=Q.next();!v.done;v=Q.next())v=v.value,v.type==="signal"&&(this.__dataHasAccessor[v.propertyKey]=!0);this.upgradeDisabled||sWq(this)};
gg.prototype.getExtraMethodsToForward=function(){return[]};
var sWq=function(v){v.polySiContext.didRegister||(v.registered(),v.polySiContext.didRegister=!0);v.polySiContext.finalizedTemplate||(v.polySiContext.finalizedTemplate={},v.polySiParams.templateGetter&&(v.polySiContext.finalizedTemplate.processedTemplate=LT0(v.polySiParams.templateGetter,v.polySiParams.is)));usA(v);var Q=v.hostElement;Q.loggingStatus!=null||(Q.loggingStatus={});Q.loggingStatus.isInitializing=!0;_.fa(function(){return void v.created()});
Q.loggingStatus.isInitializing=!1;v.isPolySiElementConnected&&jWA(v)},jWA=function(v){v.didCallReady||(_.fa(function(){return void v.ready()}),v.didCallReady=!0);
v.isAttached=!0;v.attached()};
_.K=gg.prototype;_.K.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||jWA(this)};
_.K.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.K.attributeChangedCallback=function(v,Q,V){if(this.upgradeDisabled)v==="disable-upgrade"&&V===null&&(this.upgradeDisabled=!1,sWq(this));else if(Q!==V){var E=_.tY(v),b=this.polySiContext.typesForSignals[E];if(b&&(!this.reflecting||_.Y("polysi_attribute_changed_serializing_killswitch"))){switch(b){case Object:try{var F=JSON.parse(V)}catch(p){F=V}break;case Array:try{F=JSON.parse(V)}catch(p){F=null}break;case Date:F=isNaN(V)?String(V):Number(V);F=new Date(F);break;case Boolean:F=V!==null;break;case Number:F=
Number(V);break;default:F=V}this[E]=F}E=_.L(this.polySiParams.behaviors);for(b=E.next();!b.done;b=E.next())F=void 0,(F=b.value.attributeChanged)==null||F.call(this,v,Q,V);var t;(t=this.attributeChanged)==null||t.call(this,v,Q,V)}};
_.K.attributeChangedCallbackWrapper=function(v,Q,V){this.attributeChangedCallback(v,Q,V)};
_.K.setPropertiesFromInitialAttributeValues=function(){for(var v=0;v<this.hostElement.attributes.length;v++){var Q=this.hostElement.attributes[v];(Q.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(Q.name))&&this.attributeChangedCallback(Q.name,null,Q.value)}};
_.K.created=function(){this.provide=this.polySiParams.provide;var v;(v=this.initializeInjection)==null||v.call(this);v=_.L(this.polySiParams.reactiveSchemas);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.type==="signal"&&(this.mutablePropNames.add(Q.propertyKey),lf(this.signalProxy,Q.propertyKey));De0(this,this.polySiInfo,this.polySiParams.behaviors);v=_.L(this.polySiParams.reactiveSchemas);for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.type==="signal"&&Q.value!==void 0&&(this.signalProxy.model[Q.propertyKey]=
typeof Q.value==="function"?Q.value.call(this):Q.value);if(this.polySiParams.signalProperties)for(v=_.L(this.polySiParams.signalProperties),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=void 0;((V=this.__signalCache)==null?0:V.has(Q))||(this.signalProxy.model[Q]=void 0)}z7p||WuN(this);OlT(this);v=_.L(this.polySiParams.behaviors);for(Q=v.next();!Q.done;Q=v.next())V=void 0,(V=Q.value.created)==null||V.call(this);var E;(E=this.polySiInfo.created)==null||E.call(this)};
_.K.registered=function(){var v=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var Q=Object.getPrototypeOf(this);Q.addReactiveSchema=function(p){v.polySiParams.reactiveSchemas.push(p)};
for(var V=_.L(this.polySiParams.behaviors),E=V.next();!E.done;E=V.next()){var b=void 0;(b=E.value.beforeRegister)==null||b.call(Q)}var F;(F=this.polySiInfo.beforeRegister)==null||F.call(Q);Q.addReactiveSchema=lnE;V=_.L(this.polySiParams.behaviors);for(E=V.next();!E.done;E=V.next())b=void 0,(b=E.value.registered)==null||b.call(Q);var t;(t=this.polySiInfo.registered)==null||t.call(Q)};
_.K.ready=function(){var v;(v=this.beforeReady)==null||v.call(this);z7p&&WuN(this);var Q;if(v=(Q=this.polySiContext.finalizedTemplate)==null?void 0:Q.processedTemplate){v=KTm(v.template,v.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:v.hasInsertionPoint,thisCtx:this});Q=v.nodesById;v=v.root;var V=this.hostElement;var E=E===void 0?!1:E;V=(0,_.bf)(V);if(!V.attachShadow)throw Error("Hd");if(!V.shadowRoot||E)V.attachShadow({mode:"open",shadyUpgradeFragment:v}),V.shadowRoot.appendChild(v);
this.root=V.shadowRoot;this.$=Q}oAZ(this);E=_.L(this.polySiParams.behaviors);for(Q=E.next();!Q.done;Q=E.next())v=void 0,(v=Q.value.ready)==null||v.call(this);var b;(b=this.polySiInfo.ready)==null||b.call(this)};
_.K.attached=function(){for(var v=_.L(this.polySiParams.behaviors),Q=v.next();!Q.done;Q=v.next()){var V=void 0;(V=Q.value.attached)==null||V.call(this)}var E;(E=this.polySiInfo.attached)==null||E.call(this)};
_.K.detached=function(){for(var v=_.L(this.polySiParams.behaviors),Q=v.next();!Q.done;Q=v.next()){var V=void 0;(V=Q.value.detached)==null||V.call(this)}var E;(E=this.polySiInfo.detached)==null||E.call(this)};
var usA=function(v){for(var Q=_.L(v.polySiParams.behaviors),V=Q.next();!V.done;V=Q.next())if(V=V.value,V.listeners)for(var E in V.listeners)FTE(v,v.hostElement,E,V.listeners[E]);if(v.polySiInfo.listeners)for(var b in v.polySiInfo.listeners)FTE(v,v.hostElement,b,v.polySiInfo.listeners[b])},FTE=function(v,Q,V,E,b){v=inB(v,E,b);
rX(Q,V,v)||Q.addEventListener(V,v);return v},WuN=function(v){for(var Q=_.L(v.polySiParams.reactiveSchemas),V=Q.next();!V.done;V=Q.next())V=V.value,V.type==="compute"||V.type==="computeWithMethod"?elo(v.signalProxy,V,v):V.type==="redux"?dbS(v.signalProxy,V,v.store):V.type==="signal"&&V.readOnly&&PR0(v.signalProxy,V)},oAZ=function(v){for(var Q=_.L(v.polySiParams.reactiveSchemas),V=Q.next(),E={};!V.done;E={schema$jscomp$12:void 0},V=Q.next())E.schema$jscomp$12=V.value,E.schema$jscomp$12.type==="notify"?
wlT(v.signalProxy,E.schema$jscomp$12,v.hostElement):E.schema$jscomp$12.type==="observe"?AwZ(v.signalProxy,E.schema$jscomp$12,v):E.schema$jscomp$12.type==="reflect"&&v.signalProxy.effect(function(F){return function(){var t=v.signalProxy.getWithPath([F.schema$jscomp$12.propertyKey]);
v.reflecting=!0;Dbo(v.hostElement,F.schema$jscomp$12.propertyKey,t,!0);v.reflecting=!1}}(E));
if(v.reflectedAttributes)for(Q=_.L(Object.entries(v.reflectedAttributes)),E=Q.next(),V={};!E.done;V={key$jscomp$938:void 0,value$jscomp$10177:void 0},E=Q.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;V.key$jscomp$938=E;V.value$jscomp$10177=b;v.signalProxy.effect(function(F){return function(){v.reflecting=!0;Dbo(v.hostElement,F.key$jscomp$938,(0,F.value$jscomp$10177)(),!0);v.reflecting=!1}}(V))}};
_.K=gg.prototype;_.K._setPendingProperty=function(v,Q){this.set(v,Q);return!1};
_.K._enableProperties=function(){};
_.K._setPendingPropertyOrPath=function(v,Q){this.notifyPath(v,Q);return!1};
_.K._addPropertyEffect=function(){};
_.K._stampTemplate=function(){throw Error("Kg");};
_.K.fire=function(v,Q,V){Q=Q===void 0?{}:Q;V=V===void 0?{}:V;var E,b,F={bubbles:(E=V.bubbles)!=null?E:!0,cancelable:!!V.cancelable,composed:(b=V.composed)!=null?b:!0},t;return _.Hj(qTS((t=V.node)!=null?t:this.hostElement),v,Q,F)};
_.K.get=function(v,Q){var V=R1(v);return Q?LRQ(Q,V):v==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(V)};
_.K.linkPaths=function(){};
_.K.listen=function(v,Q,V){v=qTS(v);this.boundListeners!=null||(this.boundListeners=new WeakMap);var E=this.boundListeners.get(v);E||(E={},this.boundListeners.set(v,E));var b=Q+V;E[b]||(E[b]=FTE(this,v,Q,V))};
_.K.notifyPath=function(v,Q){this.signalProxy.notifyPath(R1(v),arguments.length===2?{value:Q}:void 0)};
_.K.canNotifyPath=function(v){return this.mutablePropNames.has(v)&&!WRb(this.signalProxy,v)};
_.K.notifySplices=function(v,Q){this.signalProxy.notifySplices(R1(v),Q)};
_.K.pop=function(v){var Q=this.signalProxy;v=R1(v);var V=_.L(v);v=V.next().value;V=Fb(V);return lf(Q,v).pop(V)};
_.K.push=function(v){var Q=_.aE.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[R1(v)].concat(_.ui(Q)))};
_.K.set=function(v,Q,V){if(V)throw Error("Lg");v==="hidden"?this.hostElement.hidden=!!Q:this.signalProxy.setWithPath(R1(v),Q)};
_.K.setProperties=function(v){v=_.L(Object.entries(v));for(var Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;V=V.next().value;this[Q]=V}};
_.K.splice=function(v,Q,V){var E=_.aE.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[R1(v),Q,V].concat(_.ui(E)))};
_.K.unlinkPaths=function(){};
_.K.unlisten=function(v,Q,V){v=qTS(v);if(this.boundListeners){var E=this.boundListeners.get(v);if(E){V=Q+V;var b=E[V];b&&($0(v,Q,b)||v.removeEventListener(Q,b),delete E[V])}}};
_.K.unshift=function(v){var Q=_.aE.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[R1(v)].concat(_.ui(Q)))};
_.hr.Object.defineProperties(gg.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 WTr=[Array,Boolean,Date,Number,Object,String];var anm=!1;var HO=function(){var v=HTMLElement.apply(this,arguments)||this;v.restamp=!1;v.notifyDomChange=!1;v.JSC$13697_didCallConnected=!1;v.JSC$13697_renderDebouncer=null;v.disableTemplateUpdateSignalImpl=sJ()?void 0:_.Ge(!1,void 0,"Ofhkwb");var Q;v.getDisableTemplateUpdate=(Q=v.disableTemplateUpdateSignalImpl)==null?void 0:Q[0];var V;v.setDisableTemplateUpdate=(V=v.disableTemplateUpdateSignalImpl)==null?void 0:V[1];return v};
_.f(HO,HTMLElement);var XPS=function(v){v.conditionSignalImpl!=null||(v.conditionSignalImpl=new $p(_.Ge(!1,void 0,"gE52Fb")));return v.conditionSignalImpl};
_.K=HO.prototype;_.K.showHideChildren=function(v){acN(this,v,this.if)};
_.K.attributeChangedCallback=function(v,Q,V){if(this.JSC$13697_didCallConnected)throw Error("Pg`"+v);v==="notify-dom-change"?this.notifyDomChange=V!==null:v==="restamp"&&(this.restamp=V!==null)};
_.K.debounceRender=function(){this.JSC$13697_renderDebouncer=_.w9(this.JSC$13697_renderDebouncer,Ha,this.JSC$13697_renderImpl.bind(this));_.Ac(this.JSC$13697_renderDebouncer)};
_.K.disconnectedCallback=function(){var v=(0,_.bf)(this).parentNode;(!v||v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in v&&!v.host)&&rEA(this)};
_.K.connectedCallback=function(){var v=this;this.JSC$13697_didCallConnected=!0;qVN?rbm():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.Y("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){XPS(v).getWithPath([]);v.debounceRender()})};
_.K.render=function(){_.yg()};
_.K.JSC$13697_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var v=this.if,Q=!1;if(v){this.hasInstance()||($WX(this),Q=!0);a:{var V=(0,_.bf)(this).parentNode;if(this.hasInstance()){var E=this.instance.children;if((E==null?0:E.length)&&(0,_.bf)(this).previousSibling!==E[E.length-1])for(var b=0;b<E.length;b++)(0,_.bf)(V).insertBefore(E[b],this)}else{if(!V){V=!1;break a}IcS(this,V)}V=!0}if(!V)return}else this.restamp&&rEA(this);acN(this,!1,v);v&&!Q&&$WX(this);SVX&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.K.hasInstance=function(){return!!this.instance};
var IcS=function(v,Q){var V=v.parentSignalProxy;if(sJ()){var E=_.L(_.Ge(!0,void 0,"dkzufd"));var b=E.next().value;E=E.next().value;V=v.parentSignalProxy}else{var F;var t=new IZ((F=HLR(v))!=null?F:{},function(Z){var d=lf(v.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.Ge(void 0,void 0,"iG8Uwe");var w=new $p(Z);t.effect(function(){if(v.getDisableTemplateUpdate&&!v.getDisableTemplateUpdate()){var A=d();w.notifyPath(R1(A.path),{value:A.value})}});
return w});
v.parentSignalProxy.childSignalProxies.push(t);var p=V=t}V=KTm(v.templateInfo,v.templateInfo.nodeInfoList,V,{eventListenerHost:v.eventListenerHost,hasInsertionPoint:v.templateInfo.hasInsertionPoint,thisCtx:v.eventListenerHost,enabledSignal:sJ()?b:void 0,getModel:function(){return HLR(v)}}).root;
v.instance={root:V,children:[],hidden:!1,signalProxy:p,getTemplateUpdatesEnabled:b,setTemplateUpdatesEnabled:E};p=_.L(V.childNodes);for(b=p.next();!b.done;b=p.next())v.instance.children.push(b.value);(0,_.bf)(Q).insertBefore(v.instance.root,v)},HLR=function(v){if((v=v.parentSignalProxy.model)&&!v.hostElement){var Q={},V;
for(V in v)v.hasOwnProperty(V)&&(Q[V]=v[V]);return Q}},rEA=function(v){if(v.instance){var Q=v.instance.children;
if(Q.length){var V=(0,_.bf)(Q[0]).parentNode;if(V){V=(0,_.bf)(V);for(var E=0;E<Q.length;E++)V.removeChild(Q[E])}}sJ()?v.instance.setTemplateUpdatesEnabled(!1):v.instance.signalProxy.dispose();v.instance=void 0}},acN=function(v,Q,V){Q=Q||!V;
v.instance&&v.instance.hidden!==Q&&(v.instance.hidden=Q,XFE(Q,v.instance.children))},$WX=function(v){if(sJ()){var Q=v.instance;
Q&&Xb(v.parentSignalProxy.owner,function(){return!Q.getTemplateUpdatesEnabled()})&&Q.setTemplateUpdatesEnabled(!0)}else v.setDisableTemplateUpdate(!1)};
_.hr.Object.defineProperties(HO.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var v=this;return Xb(this.parentSignalProxy.owner,function(){return XPS(v).getWithPath([])})},
set:function(v){v||(sJ()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));XPS(this).setWithPath([],!!v)}}});
_.hr.Object.defineProperties(HO,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",HO);var mW8=[],mx=function(){var v=HTMLElement.apply(this,arguments)||this;v.as="item";v.indexAs="index";v.itemsIndexAs="itemsIndex";v.targetFramerate=20;v.notifyDomChange=!1;v.isDetached=!1;v.JSC$13704_renderDebouncer=null;v.instances=[];v.chunkingId=null;v.chunkCount=null;v.shouldMeasureChunk=!1;v.shouldContinueChunking=!1;v.renderStartTime=null;v.JSC$13704_didCallConnected=!1;return v};
_.f(mx,HTMLElement);var UWa=function(v){v.itemSignalImpl!=null||(v.itemSignalImpl=new $p(_.Ge(mW8,void 0,"YBrqgf")));return v.itemSignalImpl},v3S=function(v,Q){Array.isArray(Q)||(Q=mW8);
UWa(v).setWithPath([],Q)};
_.K=mx.prototype;_.K.showHideChildren=function(v){for(var Q=_.L(this.instances),V=Q.next();!V.done;V=Q.next())XFE(v,V.value.children)};
_.K.notifyPath=function(v,Q){v=R1(v);v[0]==="items"&&(v.length===1?v3S(this,Q):UWa(this).setWithPath(v.slice(1),Q))};
_.K.canNotifyPath=function(v){return v==="items"};
_.K.attributeChangedCallback=function(v,Q,V){if(this.JSC$13704_didCallConnected)throw Error("Qg`"+v);v==="as"?this.as=V:v==="index-as"?this.indexAs=V:v==="items-index-as"?this.itemsIndexAs=V:v==="initial-count"?this.initialCount=Number(V):v==="notify-dom-change"?this.notifyDomChange=V!==null:v==="target-framerate"&&(this.targetFramerate=Number(V))};
_.K.disconnectedCallback=function(){this.isDetached=!0;for(var v=0;v<this.instances.length;v++)QjN(this,v);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.K.connectedCallback=function(){var v=this,Q=UWa(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var b=Q(),F=R1(b.path);if(F[0]===void 0||F[0]==="splices"||F[0]==="length")v.debounceRender();else{var t=F[0];if(t=v.instances[typeof t==="string"?Math.floor(Number(t)):t])F=[v.as].concat(_.ui(F.slice(1))),t.signalProxy.notifyPath(F,b)}});
this.JSC$13704_didCallConnected=!0;qVN?rbm():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var V=(0,_.bf)((0,_.bf)(this).parentNode),E=0;E<this.instances.length;E++)V.insertBefore(this.instances[E].root,this);this.chunkingId&&this.render()}};
_.K.debounceRender=function(){this.JSC$13704_renderDebouncer=_.w9(this.JSC$13704_renderDebouncer,Ha,this.JSC$13704_renderImpl.bind(this));_.Ac(this.JSC$13704_renderDebouncer)};
_.K.render=function(){this.debounceRender();_.yg()};
_.K.JSC$13704_renderImpl=function(){var v=this;if(!this.parentSignalProxy.isDisposed){var Q=this.items,V=VAA(this,Q.length);E3Z(this,Q,V);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){v.chunkingId=null;if(v.shouldMeasureChunk){var E=performance.now()-v.renderStartTime;v.chunkCount=Math.round(Math.ceil(1E3/v.targetFramerate)/E*v.chunkCount)||1}v.shouldContinueChunking&&v.debounceRender()}));
SVX&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var VAA=function(v,Q){var V=Q,E=v.instances.length;if(v.initialCount){if(v.chunkCount){var b=Math.min(Math.max(Q-E,0),v.chunkCount);V=Math.min(E+b,Q)}else V=Math.min(Q,v.initialCount),b=Math.max(V-E,0),v.chunkCount=b||1;v.shouldMeasureChunk=b===v.chunkCount;v.shouldContinueChunking=V<Q;v.renderStartTime=performance.now()}return V},E3Z=function(v,Q,V){for(var E=0;E<V;E++){var b=v.instances[E],F=Q[E];
b?(b.signalProxy.setWithPath([v.as],F),b.signalProxy.setWithPath([v.indexAs],E)):b6N(v,F,E)}for(Q=v.instances.length-1;Q>=E;Q--)V=v,b=Q,QjN(V,b),_.L(V.instances.splice(b,1)).next().value.signalProxy.dispose()},QjN=function(v,Q){v=v.instances[Q];
Q=(0,_.bf)(v.root);for(var V=0;V<v.children.length;V++)Q.appendChild(v.children[V])},b6N=function(v,Q,V){var E={};
Q=Object.assign({},FnN(v),(E[v.as]=Q,E[v.indexAs]=V,E[v.itemsIndexAs]=V,E));var b=new IZ(Q,function(t){if(t!==v.as&&t!==v.indexAs){if(t===v.itemsIndexAs)return lf(b,v.indexAs);var p=lf(v.parentSignalProxy,t).getChangeRecordSignal([]);t=_.Ge(void 0,void 0,"T21Pqc");var Z=new $p(t);b.effect(function(){var d=p();Z.notifyPath(R1(d.path),{value:d.value})});
return Z}});
v.parentSignalProxy.childSignalProxies.push(b);E=KTm(v.templateInfo,v.templateInfo.nodeInfoList,b,{eventListenerHost:v.eventListenerHost,getModel:function(){var t={};return Object.assign({},FnN(v),(t[v.as]=b.model[v.as],t[v.indexAs]=b.model[v.indexAs],t[v.itemsIndexAs]=b.model[v.indexAs],t))},
hasInsertionPoint:v.templateInfo.hasInsertionPoint,thisCtx:v.eventListenerHost,methodInvocationRequirement:JEq,enabledSignal:v.stampingEnabled}).root;Q={root:E,children:[],signalProxy:b};E=_.L(E.childNodes);for(var F=E.next();!F.done;F=E.next())Q.children.push(F.value);E=(E=v.instances[V+1])?E.children[0]:v;(0,_.bf)((0,_.bf)(v).parentNode).insertBefore(Q.root,E);v.instances[V]=Q},FnN=function(v){if((v=v.parentSignalProxy.model)&&!v.hostElement){var Q={},V;
for(V in v)v.hasOwnProperty(V)&&(Q[V]=v[V]);return Q}};
mx.prototype.itemForElement=function(v){var Q=this,V=this.instances.find(function(E){return E.children.includes(v)});
if(V)return Xb(this.parentSignalProxy.owner,function(){return V.signalProxy.getWithPath([Q.as])})};
mx.prototype.indexForElement=function(v){var Q=this.instances.findIndex(function(V){return V.children.includes(v)});
return Q>=0?Q:void 0};
_.hr.Object.defineProperties(mx.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var v=this;return Xb(this.parentSignalProxy.owner,function(){return UWa(v).getWithPath([])})},
set:function(v){v3S(this,v)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.hr.Object.defineProperties(mx,{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",mx);var KnZ,i6a;_.Uj=new _.KB("STATE_STORE_TOKEN");KnZ=new _.KB("SELECT_TOKEN");i6a=new _.KB("DISPATCH_TOKEN");var vLS={getSelectFn:function(){var v;return(v=_.ht().resolve(_.d$(KnZ)))!=null?v:$eZ},
getDispatchFn:function(){var v;return(v=_.ht().resolve(_.d$(i6a)))!=null?v:_.uf().dispatch.bind(_.uf())},
getAppStore:function(){return _.ht().resolve(_.Uj)}},Inh,Ueo=!1;var i9b=function(){};var b9Q=void 0;var LnZ=function(){};
LnZ.prototype.hasAttribute=function(v){if(v==="dir")return!1;if(v==="disable-upgrade"){var Q,V;return(V=(Q=this.hostElement)==null?void 0:Q.hasAttribute("disable-upgrade"))!=null?V:!1}throw Error("Rg`"+v);};
LnZ.prototype.attributeChangedCallbackWrapper=function(v,Q,V){if(v==="disable-upgrade"&&this.__isUpgradeDisabled&&V===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var E;((E=this.hostElement)!=null?E:this).isConnected&&this.connectedCallback()}else Q===V||this.__isReflecting||this.attributeChangedCallback(v,Q,V)};
LnZ.prototype.getExtraMethodsToForward=function(){for(var v=this,Q=[],V=_.L(tAN),E=V.next(),b={};!E.done;b={tagName$jscomp$67:void 0,name$jscomp$629:void 0},E=V.next())b.name$jscomp$629=E.value,E=void 0,b.name$jscomp$629==="_setPendingProperty"?(b.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),E=function(F){return function(t,p,Z){TP(F.tagName$jscomp$67,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return v._setPendingProperty(t,p,Z)}}(b)):E=function(F){return function(){return v[F.name$jscomp$629].apply(v,
_.ui(_.aE.apply(0,arguments)))}}(b),Q.push([b.name$jscomp$629,
E]);return Q};
for(var pom=gAZ(ByS((0,_.q6)(LnZ))),dub=["disabled","disable-upgrade"],pdR=(0,_.q6)(function(){}),e8R=new Set(Object.getOwnPropertyNames(pdR.prototype)),Th3=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ui(e8R))),woG=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),tAN=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Z68=new Set([].concat(_.ui(woG),_.ui(tAN),_.ui(e8R))),PCa=_.L(Z68),dEa=PCa.next();!dEa.done;dEa=PCa.next())Brr.add(dEa.value);var kHG={created:function(){OlT(this);this.initializeInjection()}};var Dur=!1,$v=window.ShadyDOM,Nht=["appendChild","insertBefore","removeChild","replaceChild"],Jot=[Node];$v&&Jot.push($v.Wrapper);var WcG,oLh,roG={};var I1,Uur=new WeakMap,IPQ=new Set;var bLS=new Set("context didCallReady is info params signalProxy".split(" ")),Kuo="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),iLb="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var h8Q=Su({entities:QZr}),wdX=new WB(h8Q);var AXx=function(){return _.dg.apply(this,arguments)||this};
_.f(AXx,_.dg);_.hr.Object.defineProperties(AXx.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return wdX}}});
_.W([_.hM()],AXx);_.v6=[aZ.prototype,AXx.prototype];_.QL={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var v=this,Q={};setTimeout(function(){var V;return _.Hj((V=v.hostElement)!=null?V:v,"yt-live-chat-add-tooltip-target",Q)},0);
this.handler_=Q.handler},
detached:function(){if(this.handler_){var v;this.handler_.removeElementFromSupportingTooltips((v=this.hostElement)!=null?v:this)}this.handler_=null}}};_.Eo=new _.KB("ICON_MANAGER_TOKEN");var kux=[48,20,18,16,15,13,12],OLE=new Map,fcE=new Set,YVS=new Set,cEG=new Set,TyB=new Set,yEQ=new Set,CwZ=new Promise(function(v){var Q=!1,V=!1,E=!1,b=[],F=function(t){if("detail"in t)if(t=t.detail,t.name==="yt-icons")GQ0(t),Q=!0;else if(t.name==="yt-sys-icons")GQ0(t),V=!0;else{var p;((p=t.name)==null?0:p.includes("yt-sys-icons"))&&t.size!==24&&(GQ0(t,!0),b.push(t.size),b.length===kux.length&&(E=!0))}Q&&V&&E&&(window.removeEventListener("iron-iconset-added",F),v())};
window.addEventListener("iron-iconset-added",F)}),T1N=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"]]);_.VL={};_.VL.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.j0,computeHref_:function(v,Q){Q=Q===void 0?!1:Q;if(!v||v.commandExecutorCommand)return null;var V=eqt(v,Q);return Q||V!==null?V?_.Y("enable_polymer_resin")?_.oE(V).toString():V:null:(_.Iy(new _.xd("computeHref was null",this.is,v)),null)},
computeOptionalHref_:function(v){return this.computeHref_(v,!0)},
computeNofollow_:function(v){return v?VCQ(v)?"nofollow":null:null},
computeIcon_:function(v){return v&&v.iconType?_.VK(v.iconType):""},
resolveCommand:function(v,Q,V){Q=Q===void 0?{}:Q;return _.FL(v,this.hostElement,Q,V===void 0?!1:V)}};var yXQ,EA;_.YK8={};yXQ=null;
EA={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_=dgB(this.viewroot));_.JM(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var v=this;this.unobserve_();if(_.Y("kevlar_vimio_use_shared_monitor"))qV9(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 Q=[];this.visibilityOptionVisible_&&Q.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&Q.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&Q.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=Q}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){DW0(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var v=_.XH(this.parentNode,function(V){var E,b=(E=V.polymerController)!=null?E:V;return!!b.getVisibilityObserverForChild&&b.getVisibilityObserverForChild()},!0);
if(v){var Q;this.localVisibilityObserver_=((Q=v.polymerController)!=null?Q:v).getVisibilityObserverForChild()}else yXQ||(yXQ=dgB()),this.localVisibilityObserver_=yXQ;return this.localVisibilityObserver_},visibilityCallback:function(v){v?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.Y("kevlar_use_vimio_behavior")||(EA={});EA&&!_.Y("kevlar_use_vimio_behavior")&&(delete EA.attached,delete EA.detached);_.YK8.YtVisibilityObserverBehavior=[EA];var cXN={};cXN.YtVisualElementBehavior=[_.YK8.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.Y("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.Y("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var v=this.getScreenLayer&&this.getScreenLayer(),Q=this.getVisibilityLogger();Q&&Q.reportShown(this,void 0,v)}},
onHidden:function(){if(_.Y("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.Y("kevlar_vimio_use_shared_monitor")){var v=this.getScreenLayer&&this.getScreenLayer(),Q=this.getVisibilityLogger();Q&&Q.reportHidden(this,void 0,v)}},
getVisibilityLogger:function(){return _.Y("kevlar_use_vimio_behavior")?_.id():null},
shouldSkipLogging:function(){if(_.r7("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var v=this.getParentRenderer&&this.getParentRenderer();if(!v)return!1;var Q,V=(Q=v.polymerController)!=null?Q:v;if(!V.data)return!1;v=this.data.trackingParams;v=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:v;var E;Q=(E=V.data)==null?void 0:E.trackingParams;var b,F;Q=((b=V.data)==null?0:b.loggingDirectives)?(F=V.data)==null?void 0:F.loggingDirectives.trackingParams:Q;return v&&Q&&v===
Q}}];var JE0=new Map,hR;var rzB=function(v){this.layer=v},iJ=function(v){return v.layer!==void 0?v.layer:v.parent?iJ(v.parent):v.layer=0};var usS;_.H={};usS=0;_.H.YtRendererBehavior=[_.VL.YtComponentBehavior,cXN.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_:_.Y("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var v,Q;(Q=(v=this.monitorScrollElement)!=null?v:this.hostElement)==null||Q.removeEventListener("scroll",_.Lh(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();SVt(this.hostElement);RXV(_.xp(),this.hostElement);o$.delete(this.hostElement)},
registerRenderer:function(v){var Q;((Q=v.polymerController)!=null?Q:v).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(v),this.markDirty())},
unregisterRenderer_:function(v){this.useVimio_||(this.childCache_.delete(v),this.markDirty())},
attached:function(){var v=this,Q=this.getParentRenderer();if(Q){var V,E,b;(E=(V=(b=Q.polymerController)!=null?b:Q).registerRenderer)==null||E.call(V,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var F,t;(t=(F=this.monitorScrollElement)!=null?F:this.hostElement)==null||t.addEventListener("scroll",_.Lh(this,this.onScroll))}_.XT.addJob(function(){Nyt(v.hostElement)},8);
V=new rzB(this.screenLayer||void 0);(Q=o$.get(Q))&&Q.layerNode&&(V.parent=Q.layerNode);Q={};TJ0(this.hostElement,(Q.isRenderer=!0,Q.layerNode=V,Q[$B3]=this.data,Q))},
getParentRenderer:function(){for(var v=this.hostElement.parentNode,Q,V;v&&((Q=o$.get(v))==null||!Q.isRenderer)&&!((V=v.polymerController)!=null?V:v).isRenderer_;)v=v.parentNode||v.host;return v},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.Y("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.mX("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.Y("debug_web_ve_data")&&this.data.trackingParams){var v="";try{v=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(V){_.ro(V)}if(v){var Q=R9E(v,1);Q!==void 0&&(this.hostElement.dataset.veIndex=String(Q));v=R9E(v,2);
v!==void 0&&(this.hostElement.dataset.ve=String(v))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.Y("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.dE(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Lx(_.tR(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var v=this.data.targetId;_.lPN(_.xp(),v,this.hostElement)}else RXV(_.xp(),this.hostElement)},
onScroll:function(){var v=Date.now();v-this.lastHandledScroll_<50||(this.lastHandledScroll_=v,this.markDirty())},
markDirty:function(){_.Y("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():jWS(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var v=this.getParentRenderer();if(v&&(v=o$.get(v))&&v.layerNode)return iJ(v.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ui(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var v=0;v<this.data.impressionEndpoints.length;v++)this.sendImpression(this.data.impressionEndpoints[v]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(v){v.clickTrackingParams&&delete v.clickTrackingParams;var Q,V;(v==null?0:(Q=v.commandMetadata)==null?0:(V=Q.webCommandMetadata)==null?0:V.sendPost)?_.vp(this.hostElement,[v,{impression:!0}]):_.Qk(this.hostElement,[v],this.hostElement)},
logExplicitClick:function(v){var Q=_.Mo(this.getScreenLayer());if(Q){var V,E=(V=v.polymerController)!=null?V:v;v=E.visualElement;E=E.trackingParams||E.clickTrackingParams;!v&&E&&(v=_.dE(E));v&&_.uI(Q,v)}}}];var fw8={},b6=function(){return _.dg.apply(this,arguments)||this};
_.f(b6,_.dg);b6.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
b6.prototype.onPdgItemBehaviorClick=b6.prototype.onPdgItemBehaviorClick;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],b6.prototype,"data",void 0);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],b6.prototype,"onPdgItemBehaviorClick",null);_.W([_.hM()],b6);fw8.YtPdgLiveChatItemBehavior=[b6.prototype,_.H.YtRendererBehavior];var GuN;var CCQ;_.F4={};_.F4.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var KJ=function(){var v=Ar.apply(this,arguments)||this;v.switchTemplateAtRegistration=!1;return v};
_.f(KJ,Ar);KJ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||ach(this),_.cb9(this,"doRender"),this.doRender())};
KJ.prototype.debounceRender=function(){this.templatingFn&&_.Nf(this,"doRender",this.doRender)};
KJ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.ro(Error("ah"))};
KJ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.W([E$T()],KJ);var MAQ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,i6={},HLB=(i6[1]={filterString:null,isUnwrappable:null,unwrap:null},i6[2]={filterString:function(v,Q,V){return Qw(V)},
isUnwrappable:function(v){return v instanceof IE},
unwrap:function(v){return U9(v)}},i6[3]={filterString:function(v,Q,V){return MAQ.test(V)?V:uV.toString()},
isUnwrappable:function(v){return xP(v)},
unwrap:function(v){return _.Bq(v)}},i6[4]={filterString:function(){return uV.toString()},
isUnwrappable:function(v){return v instanceof nf},
unwrap:function(v){return _.Sc(v).toString()}},i6[5]={filterString:function(v,Q,V){return V},
isUnwrappable:function(v){return typeof v==="string"},
unwrap:function(v){return v.toString()}},i6[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(v){return v instanceof _.bi},
unwrap:function(v){return K$(v)}},i6[8]={filterString:function(v,Q,V){V=String(V).toLowerCase();
return Rd0(v,Q,V)?V:"zClosurez"},
isUnwrappable:null,unwrap:null},i6[10]={filterString:null,isUnwrappable:null,unwrap:null},i6);hq[m$["default"]]=UWr;var v33=[];(function(){var v=pU;pU=function(Q){v==null||v(Q);T4(function(){for(var V=0;V<Q.length;V++)Qj9(Q[V])})}})();var O6x=function(){var v=_.dg.apply(this,arguments)||this;v.hasUnmounted=!1;return v};
_.f(O6x,_.dg);_.K=O6x.prototype;_.K.beforeRegister=function(){var v=this.doIdomRender;this.templatingFn?_.ro(Error("$g")):(this.templatingFn=v,this.switchTemplateAtRegistration=!0,Ic3(this))};
_.K.attached=function(){};
_.K.detached=function(){Qj9(this.hostElement)};
_.K.renderIdom=function(){throw Error("ch");};
_.K.doIdomRender=function(){var v=this;GwZ(this.hostElement,function(){v.renderIdom()})};
_.W([_.hM()],O6x);var DEx=[KJ.prototype,O6x.prototype];var R8N,n3a=function(){return R8N!==void 0?R8N:R8N=document.createElement("template")};
document.head.appendChild(n3a().content);var lwN;var qKR,SKN=function(){return qKR!==void 0?qKR:qKR=document.createElement("template")};
document.head.appendChild(SKN().content);var z8a;var JXA=document.head,N1q=JXA.appendChild,xER;if(z8a===void 0){var B1a=document.createElement("template");_.G(B1a,"\x3c!--css-build:shady--\x3e");B1a.content.insertBefore(SKN().content.cloneNode(!0),B1a.content.firstChild);z8a=B1a}xER=z8a;N1q.call(JXA,xER.content);var g3p,sjA=function(){return g3p!==void 0?g3p:g3p=document.createElement("template")};
document.head.appendChild(sjA().content);var u7Z;var jjx=document.head,WnR=jjx.appendChild,o3q;if(u7Z===void 0){var Xda=document.createElement("template");_.G(Xda,"\x3c!--css-build:shady--\x3e");Xda.content.insertBefore(sjA().content.cloneNode(!0),Xda.content.firstChild);u7Z=Xda}o3q=u7Z;WnR.call(jjx,o3q.content);var awA=document.head,rXN=awA.appendChild,$EZ;if(lwN===void 0){var Iwx=document.createElement("template");_.G(Iwx,"\x3c!--css-build:shady--\x3e");Iwx.content.insertBefore(n3a().content.cloneNode(!0),Iwx.content.firstChild);lwN=Iwx}$EZ=lwN;rXN.call(awA,$EZ.content);var H6Z,mER=function(){return H6Z!==void 0?H6Z:H6Z=document.createElement("template")};
document.head.appendChild(mER().content);var UER;_.JR=new _.KB("DARK_THEME_TOKEN");var WnB=new _.FG("accessibilityProperties");var jjb=new _.FG("layoutProperties");var o30=new _.FG("imageType");var vs8={};if("ytAttributedStringLinkHoverColor"in vs8)throw Error("fh`ytAttributedStringLinkHoverColor");(function(v,Q){vs8[v]="value"in Q&&"unit"in Q?i6r(v,Q):function(V){try{return Q(V)}catch(E){throw Error("dh`"+v+"`"+E.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Q3X=function(v){var Q=this;this.holdTime=v===void 0?500:v;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(V){var E=new CustomEvent("LONG_PRESS"),b;(b=V.changedTouches[0].target)==null||b.dispatchEvent(E)};
this.ontouchstart=function(V){Q.longPressTimeout=_.Lq(_.XT,function(){Q.onlongpress(V);Q.longPressOccurred=!0},Q.holdTime)};
this.ontouchmove=function(){_.XT.cancelJob(Q.longPressTimeout);Q.longPressTimeout=NaN;Q.longPressOccurred=!1;Q.moveOccurred=!0};
this.ontouchend=function(V){if(Q.longPressTimeout&&!Q.longPressOccurred&&!Q.moveOccurred){var E;(E=V.changedTouches[0].target)==null||E.dispatchEvent(new Event("click"))}_.XT.cancelJob(Q.longPressTimeout);Q.longPressTimeout=NaN;Q.longPressOccurred=!1;Q.moveOccurred=!1}};var CCT=function(v,Q){Q3X.call(this,Q);var V=this;this.callback=v;this.onlongpress=function(E){var b;(b=V.callback)==null||b.call(V,E)}};
_.f(CCT,Q3X);var MAT=function(v,Q){var V=Object.assign({},Q);v=_.L(new Map([["ontouchstart",v.ontouchstart],["ontouchend",v.ontouchend],["ontouchmove",v.ontouchmove]]));for(var E=v.next(),b={};!E.done;b={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},E=v.next()){var F=_.L(E.value);E=F.next().value;F=F.next().value;b.eventName$jscomp$103=E;b.eventHandler$jscomp$2=F;Q[b.eventName$jscomp$103]=function(t){return function(p){var Z;(Z=V[t.eventName$jscomp$103])==null||Z.call(V,p);(0,t.eventHandler$jscomp$2)(p)}}(b)}};_.At=new _.KB("COMMAND_HANDLER_TOKEN");var tAh=new _.FG("parallelCommand");var Z6o=new _.FG("performOnceCommand");var e8B=new _.FG("serialCommand");var PCQ=void 0;var VeR=function(){this.data=[];this.consumer=null};
VeR.prototype.push=function(v){this.consumer?this.consumer(v):this.data.push(v)};var Bw={};_.Ge(Bw,void 0,"sgPmTd");_.Ge(null,void 0,"jypsq");_.Ge(null,void 0,"mWiOof");var skB=new VeR;var yXT=[reA,$jN,I5a,mjZ,Hfx,a5V,UjR,vwQ];var sjS=new _.FG("bracketTextDecorator");var SM=new _.FG("highlightTextDecorator");_.xD=new _.KB("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var JXS=function(){},EsN;
(EsN=window.requestIdleCallback)==null||EsN.bind(window);var xEB={calledOnce:!1,state:"visible"},N10={calledOnce:!1,state:"hidden"};var bkS=new _.KB("ICON_WIZ_COMPONENT_TOKEN");_.L_=_.x(function(v){var Q=v.icon;var V=v.active;var E=v.className;var b=v.style;var F=v.dataSelected;var t=v.dataDisabled;var p=v.role;var Z=v.animateIcon;var d=v.themeOverride;var w=v.ariaHidden;var A=v.ariaExpanded;var k=v.ariaLabel;var T=v.tabindex;var c=v.id;var C=v.size;var R=v.iconFilter;var l=v.gradientColor;var S=v.onKeydown;var a=v.title;return _.P(_.h,{cond:Q,then:function(){var g=_.ht().resolve(bkS);return _.P(g,{icon:Q,dataSelected:F,dataDisabled:t,animateIcon:Z,themeOverride:d,ariaExpanded:A,
tabindex:T,id:c,active:V,size:C,role:p,className:E,ariaHidden:w,ariaLabel:k,style:function(){return b!=null&&b()||C==null||!C()?b==null?void 0:b():"width: "+(C==null?void 0:C())+"px;height: "+((C==null?void 0:C())+"px;")},
title:a,iconFilter:R,gradientColor:l,onKeydown:S})}})},"l");
_.L_.idomCompat={callbacks:{onKeydown:!0}};var ik9=window.devicePixelRatio||1;var eGb=new Map([["yt_outline_bag_black_24","bag"]]);var LJ=function(v){var Q=this;this.margin=.1;this.whenInViewportWithMargin=v;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){Q.requestScan()});
window.addEventListener("touchend",function(){Q.requestScan()});
window.addEventListener("updateui",function(){Q.requestScan()});
var V=new _.FK((0,_.Nz)(this.requestScan,this),100);window.addEventListener("scroll",function(){V.fire()},!0);
window.addEventListener("resize",(0,_.Nz)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){Q.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Nz)(this.requestScan,this))};
LJ.prototype.observe=function(v){this.observationTargets.includes(v)||this.observationTargets.push(v)};
LJ.prototype.unobserve=function(v){this.observationTargets=this.observationTargets.filter(function(Q){return Q!==v})};
LJ.prototype.requestScan=function(){var v=this;this.scanRequested||(T4(function(){FZX(v)}),this.scanRequested=!0)};
var FZX=function(v){var Q=(1+v.margin)*(document.documentElement.clientHeight||window.innerHeight);v.observationTargets=v.observationTargets.filter(function(V){var E=V.getBoundingClientRect();(E=Q>E.top&&!!E.height)&&v.whenInViewportWithMargin(V);return!E&&V.parentNode});
v.scanRequested=!1};
LJ.prototype.disconnect=function(){this.observationTargets=[]};var KZR,LZq;KZR=_.L(_.Ge(w$0(),void 0,"O3X2wd"));_.ikN=KZR.next().value;LZq=KZR.next().value;window.addEventListener("resize",function(){LZq(w$0())});var teN={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},p$p=void 0,eGx=window.innerWidth,Zkq=window.innerHeight;window.addEventListener("resize",function(){p$p=void 0});var P$N;if("IntersectionObserver"in window)P$N=TPZ();else{if(p$p===void 0){var daZ;daZ="matchMedia"in window?window.matchMedia(teN.landscape+","+teN.portrait).matches:void 0;p$p=daZ!==void 0?daZ:eGx>=930&&Zkq>=550||eGx>=550&&Zkq>=930}P$N=p$p?{observe:function(v){T4(function(){var Q;(Q=v.onViewportEntered)==null||Q.call(v)})},
unobserve:function(){}}:new LJ(function(v){T4(function(){var Q;
(Q=v.onViewportEntered)==null||Q.call(v)})})}var AWr=P$N;var hGR=_.x(function(v){var Q=!1,V=_.Ze("img",function(E){_.j_(function(){Q=!0;E.onload=null})});
_.uH(function(){var E,b=(E=v.data)==null?void 0:E.call(v),F,t=(F=v.getSrc)==null?void 0:F.call(v).cb,p;E=(p=v.config)==null?void 0:p.call(v);if(p=V.value)if(F=function(d,w){if(!Q)return t?t(d,w):d},cWo(p,E),_.Y("web_image_dont_reload_same_src")&&yWT(p,b,F))_.Y("web_image_dont_reload_same_src_simulate_load")&&p.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var Z;YtG(p,b||null,F,E,(Z=v.lazy)==null?void 0:Z.call(v))}},"zS0jKb");
return _.P("img",{el:V})},"n");
hGR.idomCompat=!0;_.gE=_.x(function(v){var Q=function(){var V,E=v.data(),b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3,OB,kQ,yo,xQ,lb,ep,JS;var fZ={contentMode:(b=v.contentMode)==null?void 0:b.call(v),loadedClass:(F=v.loadedClass)==null?void 0:F.call(v),isPreloaded:(t=v.isPreloaded)==null?void 0:t.call(v),notifyOnLoaded:(p=v.notifyOnLoaded)==null?void 0:p.call(v),notifyOnUnloaded:(Z=v.notifyOnUnloaded)==null?void 0:Z.call(v),preferredThumbnail:(d=v.preferredThumbnail)==null?void 0:d.call(v),preserveHeight:(w=v.preserveHeight)==
null?void 0:w.call(v),preserveWidth:(A=v.preserveWidth)==null?void 0:A.call(v),objectPosition:(k=v.objectPosition)==null?void 0:k.call(v),targetWidth:(T=v.targetWidth)==null?void 0:T.call(v),targetHeight:(c=v.targetHeight)==null?void 0:c.call(v),shouldShowPlaceholder:(C=v.shouldShowPlaceholder)==null?void 0:C.call(v),useWidth:(R=v.useWidth)==null?void 0:R.call(v),isToggled:(l=v.isToggled)==null?void 0:l.call(v),alt:(S=v.alt)==null?void 0:S.call(v),className:(a=v.className)==null?void 0:a.call(v),
onerror:v.onerror,onload:v.onload,style$:((g=v.style$)==null?void 0:g.call(v))||((u=v.style)==null?void 0:u.call(v)),color:(r=v.color)==null?void 0:r.call(v),width:(v9=v.width)==null?void 0:v9.call(v),height:(t3=v.height)==null?void 0:t3.call(v),"aria-hidden$":(ep=(h3=v["aria-hidden$"])==null?void 0:h3.call(v))!=null?ep:(OB=v.ariaHidden)==null?void 0:OB.call(v),draggable:(kQ=v.draggable)==null?void 0:kQ.call(v),"data-disabled$":(JS=(yo=v["data-disabled$"])==null?void 0:yo.call(v))!=null?JS:(xQ=v.dataDisabled)==
null?void 0:xQ.call(v),size:(lb=v.size)==null?void 0:lb.call(v)};return C$B(E,fZ,(V=v.hideOn404)==null?void 0:V.call(v))};
return _.P(_.BU,null,_.P(_.J1,{when:function(){var V;return((V=Q())==null?void 0:V.type)==="image"}},function(){return _.P(hGR,{data:function(){return Q().image},
getSrc:{cb:function(V,E){var b=Q().image.sources,F=Q().config.isPreloaded,t=Q().config.useWidth,p=Q().config.targetWidth,Z=Q().config.targetHeight,d=Q().config.preferredThumbnail;return _.LZ0(E,b,F,t,p,Z,d)||""}},
config:function(){var V=Q().config,E;for(E in V)V[E]===void 0&&delete V[E];return V},
lazy:v.renderLazy})}),_.P(_.J1,{when:function(){var V;
return((V=Q())==null?void 0:V.type)==="icon"}},function(){return _.P(_.L_,{icon:function(){return Q().iconName},
role:function(){return Q().config.role},
className:function(){return Q().config.className},
style:function(){return Q().config.style$+";width: "+(Q().config.width+"px;height: ")+(Q().config.height+"px;color: ")+(Q().config.color+";")},
ariaLabel:function(){return Q().config["aria-label$"]},
ariaHidden:function(){return Q().config["aria-hidden$"]},
dataDisabled:function(){return Q().config["data-disabled$"]},
active:function(){return Q().config.isToggled},
size:function(){return Q().config.size}})}))},"o");
_.gE.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var w$q=function(v){return function(Q){return _.P(uSE,null,function(){var V=Q.data(),E=_.or(Q.config);return _.P(kwB,null,function(){return void v(V,E)})})}}(ns0),DaG=_.x(function(v){var Q=function(b){var F,t=_.ud(function(T){F=WR(function(){for(var c=_.L(A()),C=c.next();!C.done;C=c.next()){C=lKG(C.value);
C=typeof C==="string"?document.createTextNode(C):C;if(!(C instanceof Node)){c=new _.xd("Part is not a node",C,typeof C);_.ro(c);break}T.appendChild(C)}})});
var p=_.Y("web_wiz_attributed_string_skip_empty")?b:jM(function(){return awS(b())},{isEqual:OkZ});
var Z=_.Wn(v.config),d=function(){var T,c=p();return!((T=Z())==null||!T.ariaLabel)||!(c.commandRuns&&c.commandRuns.length!==0||c.paragraphStyleRuns&&c.paragraphStyleRuns.length!==0)},w=jM(Z,{isEqual:StT}),A=function(){var T=XdQ(p(),w());
$EE(T,w());return p().content?Q3t(p().content,T).parts:[]},k=!0;
_.uH(function(){p();w();if(k)k=!1;else{var T=A();Promise.resolve().then(function(){var c=t.value;if(c){c.innerText="";var C;(C=F)==null||C();F=_.si(c,function(){return _.P(qt0,{parts:T})},"p")}})}},"crjTgd");
return _.P("span",{el:t,class:function(){return p()&&lw9(p(),Z())},
dir:function(){var T;return((T=Z())==null?0:T.userInput)?"auto":void 0},
"aria-label":function(){var T;return d()?(T=Z())==null?void 0:T.ariaLabel:void 0},
role:function(){return d()?"text":void 0}})},V=_.Y("web_wiz_attributed_string_skip_empty")?jM(function(){var b,F=(b=v.text)==null?void 0:b.call(v);
if(F)return b=awS(F),(b==null?0:b.content)?b:void 0},{isEqual:OkZ}):v.text,E;
return((E=v.config)==null?0:E.renderedFromFormattedString)?Q(V):_.P(_.h,{cond:V,then:Q})},"r");
DaG.idomCompat=!0;_.tD=_.x(function(v){var Q=_.Wn(v.text),V=zG9(v);v.renderedFromFormattedString!==void 0&&(V.renderedFromFormattedString=!0);return _.Y("attr_string_reactive")?_.P(DaG,{text:Q,config:V}):_.P(_.h,{cond:function(){var E;return Q()&&((E=awS(Q()))==null?void 0:E.content)},
then:function(){return _.P(w$q,{data:v.text,config:V})},
debugInstance:"Apcuac"})},"s");
_.tD.idomCompat=!0;var JWm=function(v,Q,V){Q=Q===void 0?"unknown":Q;V=V===void 0?{}:V;_.xd.call(this,v+" ("+Q+")",Object.assign({},{name:"YtWcwError",tagName:Q},V));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(JWm,_.xd);_.XL=new WeakMap;_.od=!1;var s3E,uhr,gsS;_.pJ=Symbol("hh");_.Wg=Symbol("ih");s3E=Symbol("jh");uhr=new Set(Object.getOwnPropertyNames(Element.prototype));gsS=Symbol("kh");var AWa=_.x(function(v){return _.P("yt-attributed-string",{"aria-label":v.ariaLabel,hidden:v.hidden,id:v.id,class:v.className,"force-default-style":v.forceDefaultStyle},_.P(_.tD,{text:v.data,ariaLabel:v.ariaLabel,ellipsisTruncate:v.ellipsisTruncate,isOverlay:v.isOverlay,linkInheritColor:v.linkInheritColor,noPreWrap:v.noPreWrap,noWrap:v.noWrap,userInput:v.userInput,noEndpoints:v.noEndpoints,headerRuns:v.headerRuns,isHeadline:v.isHeadline}))},"t");
_.Y("web_wiz_attributed_string")&&_.ad(AWa,"yt-attributed-string",{props:{ariaHidden:_.pJ,ariaLabel:_.pJ,className:_.pJ,ellipsisTruncate:_.pJ,isOverlay:_.pJ,linkInheritColor:_.pJ,noEndpoints:_.pJ,noStyleRuns:_.pJ,noLinkColor:_.pJ,noPreWrap:_.pJ,noWrap:_.pJ,skipOnClick:_.pJ,userInput:_.pJ,headerRuns:_.pJ,isHeadline:_.pJ,id:_.pJ,data:_.pJ,hidden:_.pJ,forceDefaultStyle:_.pJ,text:_.Wg,disableUpgrade:_.Wg,disable:_.Wg,slot:_.Wg}});var eI=function(){return _.z.apply(this,arguments)||this};
_.f(eI,_.z);eI.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},ns0(this.data,this.config))};
_.W([_.M(DEx),_.X("design:type",Object)],eI.prototype,"ytIdomTemplatingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],eI.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],eI.prototype,"ariaLabel",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"disable",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"ellipsisTruncate",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"isOverlay",void 0);
_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"linkInheritColor",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"noPreWrap",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"noWrap",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"userInput",void 0);_.W([_.q(),_.X("design:type",Boolean)],eI.prototype,"noEndpoints",void 0);_.W([_.q(),_.X("design:type",Array)],eI.prototype,"headerRuns",void 0);
_.W([_.D7({is:"yt-attributed-string",disableElementRegistration:!0})],eI);
_.Y("web_wiz_attributed_string")||_.B(eI,"yt-attributed-string",function(){if(UER===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
v.content.insertBefore(mER().content.cloneNode(!0),v.content.firstChild);UER=v}v=UER;return v},{mode:2});var kWX,TPp,$aG;kWX=function(){this.firstThumbnailLoaded=!1};
_.YtV=function(){TPp||(TPp=new kWX);return TPp};
$aG=function(v){var Q=_.YtV();Q.firstThumbnailLoaded||(Q.firstThumbnailLoaded=!0,_.Mp("ftl",v))};
kWX.prototype.reset=function(){this.firstThumbnailLoaded=!1};var WZT=0,rWS=new WeakMap,X$Q=0,Id=new Set;var yWQ,cW8=function(){return yWQ!==void 0?yWQ:yWQ=document.createElement("template")};
document.head.appendChild(cW8().content);var fKZ;var Uar,Qft,Z6;_.Uo=_.bb.caches;Z6=function(){};
Z6.prototype.open=function(v){return _.Uo.open(GWq(v))};
Z6.prototype.has=function(v){return _.Uo.has(GWq(v))};
Z6.prototype.delete=function(v){return _.Uo.delete(GWq(v))};
Z6.prototype.match=function(v,Q){var V=this,E,b,F,t,p,Z;return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(V.keys(),2);case 2:E=d.yieldResult,b=_.L(E),F=b.next();case 3:if(F.done){d.jumpTo(5);break}t=F.value;return d.yield(V.open(t),6);case 6:return p=d.yieldResult,d.yield(p.match(v,Q),7);case 7:if(Z=d.yieldResult)return d.return(Z);F=b.next();d.jumpTo(3);break;case 5:return d.return()}})};
var VJm=function(){};
_.f(VJm,Z6);var GWq=function(v){if(v.includes(":"))throw Error("nh`"+v);return v+":"+_.Jt("CacheStorage get")};
VJm.prototype.keys=function(){var v,Q,V,E,b,F,t,p,Z;return _.e(function(d){if(d.nextAddress==1)return v=[],Q=_.Jt("CacheStorage keys"),d.yield(_.Uo.keys(),2);V=d.yieldResult;E=_.L(V);for(b=E.next();!b.done;b=E.next())F=b.value,t=_.maZ(F),p=t.originalName,Z=t.datasyncId,Z===Q&&v.push(p);return d.return(v)})};var P6=function(){var v=_.z.apply(this,arguments)||this;v.objectURL=null;v.loadTime=Infinity;return v};
_.f(P6,_.z);_.K=P6.prototype;_.K.renderIdom=function(){Hkh(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&fKm(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.K.objectFitToContentMode=function(v){switch(v){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.K.logThumbnailFailureVe=function(){var v=_.Vw(197497);_.za(_.tR(),v);var Q=_.Mo();Q&&v&&Q&&_.gD(Q,[v])};
_.K.loadImageFromCacheIfExists=function(v){var Q=this,V=v.target;(V==null?0:V.src)&&bIZ(V.src).then(function(E){Q.objectURL=_.XI(E).toString();Q.setSrc(V,Q.objectURL)}).catch(function(){})};
_.K.onError=function(v){var Q=this;if(_.Y("web_use_cache_for_image_fallback")){var V=v.target;V&&bIZ(V.src).then(function(E){Q.objectURL=_.XI(E).toString();Q.setSrc(V,Q.objectURL)}).catch(function(){_.Y("kevlar_woffle_log_thumbnail_failure_ve")&&Q.logThumbnailFailureVe();
_.Y("kevlar_woffle_fallback_image")&&Q.setSrc(V,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.K.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.K.setConfig=function(){var v=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(Q){v.loadImageFromCacheIfExists(Q);v.revokeObjectURL();IKQ(v.hostElement)},
onerror:function(Q){v.onError(Q)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.Y("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.K.setSrc=function(v,Q){Q&&(v.src=Q)};
_.W([_.M(DEx),_.X("design:type",Object)],P6.prototype,"ytIdomTemplatingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],P6.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],P6.prototype,"alt",void 0);_.W([_.q(),_.X("design:type",Boolean)],P6.prototype,"ftlEligible",void 0);_.W([_.q(),_.X("design:type",Number)],P6.prototype,"height",void 0);_.W([_.q(),_.X("design:type",Boolean)],P6.prototype,"notifyOnLoaded",void 0);
_.W([_.q(),_.X("design:type",Boolean)],P6.prototype,"notifyOnUnloaded",void 0);_.W([_.q(),_.X("design:type",String)],P6.prototype,"objectFit",void 0);_.W([_.q(),_.X("design:type",String)],P6.prototype,"objectPosition",void 0);_.W([_.q(),_.X("design:type",String)],P6.prototype,"preferredThumbnail",void 0);_.W([_.q(),_.X("design:type",Boolean)],P6.prototype,"preserveHeight",void 0);_.W([_.q(),_.X("design:type",Boolean)],P6.prototype,"preserveWidth",void 0);
_.W([_.q({value:!0}),_.X("design:type",Boolean)],P6.prototype,"useWidth",void 0);_.W([_.q({value:function(){return!_.mX("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.X("design:type",Boolean)],P6.prototype,"shouldRenderLazy",void 0);_.W([_.q(),_.X("design:type",Number)],P6.prototype,"width",void 0);_.W([_.D7({is:"yt-image",disableElementRegistration:!0})],P6);
_.B(P6,"yt-image",function(){if(fKZ===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(cW8().content.cloneNode(!0),v.content.firstChild);
fKZ=v}v=fKZ;return v},{mode:2});var dx=function(){return _.z.apply(this,arguments)||this};
_.f(dx,_.z);dx.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var v=_.MQ(this.data.onVisibleCommand);v&&this.ytComponentBehavior.resolveCommand(v)}};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.F4.YtVisibilityBehavior),_.X("design:type",Object)],dx.prototype,"ytVisibilityBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dx.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],dx);
_.B(dx,"yt-bumper-user-edu-content-view-model",function(){if(CCQ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;GuN===void 0&&(GuN=document.createElement("template"));var E=GuN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);CCQ=v}v=CCQ;return v},{mode:0});var C$R;var Mep,Okp=function(){if(Mep!==void 0)return Mep;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;C$R===void 0&&(C$R=document.createElement("template"));var E=C$R;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return Mep=v};var DaV;_.hD={};DaV=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"]);_.hD.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var v=this.getContext_();return v?v.getTaskManager():_.XT},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var v=_.Hj(this.hostElement,"yt-get-context-provider",{});v.detail&&v.detail.contextProvider?this.cachedProviderNode_=v.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return DaV.has(this.hostElement.localName)},
getNetworkManager:function(){var v=this.getContext_();if(v)return v.getNetworkManager()}};var pDo,RGp,lKV,nsq;_.wx=function(v){var Q=RGp.get(v);if(Q&&(Q=Q.pop()))return nsq++,Q;lKV++;try{var V=document.createElement(v)}catch(E){throw new _.xd("ElementPool failed to create element",v,E.message);}return V};
pDo=function(v){var Q=v.is;if(Q){var V=RGp.get(Q);V||(V=[],RGp.set(Q,V));var E=_.r7("ELEMENT_POOL_CONFIG")||{};V.length>=(E[Q]!==void 0?E[Q]:_.r7("ELEMENT_POOL_DEFAULT_CAP",0))||V.push(v)}else _.Iy(new _.xd("Element pool should only handle custom elements:",v.nodeName))};
RGp=new Map;lKV=0;nsq=0;var v_=new WeakMap,tJS=new WeakMap;var StQ;_.AD=function(v,Q,V){V=V===void 0?_.yX():V;this.JSC$13968_defaultPriority=v;this.signal=Q;this.scheduler=V;this.nextJobDescriptor=0;this.JSC$13968_parkedJobs=[];this.scheduledJobs=new Map};
_.kc=function(v,Q){if(Q){var V=_.Zp();v.signal&&!_.PO(V,v.signal)?(V.addListener(v.signal,function(){v.processSignal()}),v.JSC$13968_parkedJobs.push({job:Q,
priority:void 0})):qtq(v,Q)}};
StQ=function(v,Q){if(Q!==v.JSC$13968_defaultPriority){v.JSC$13968_defaultPriority=Q;for(var V=_.L(v.scheduledJobs.values()),E=V.next();!E.done;E=V.next())E=E.value,v.scheduler.cancelJob(E.jobId),E.jobId=v.scheduler.addJob(E.jobWrapper,Q)}};
_.AD.prototype.flushJobs=function(){StQ(this,10);this.processSignal()};
_.AD.prototype.cancel=function(){for(var v=_.L(this.scheduledJobs),Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;V=V.next().value;this.scheduler.cancelJob(V.jobId);this.scheduledJobs.delete(Q)}this.JSC$13968_parkedJobs=[]};
_.AD.prototype.processSignal=function(){for(var v=_.L(this.JSC$13968_parkedJobs),Q=v.next();!Q.done;Q=v.next())Q=Q.value,qtq(this,Q.job,Q.priority);this.JSC$13968_parkedJobs=[]};
var qtq=function(v,Q,V){V=V||v.JSC$13968_defaultPriority;if(V===10)Hg(Q);else{var E=v.nextJobDescriptor++,b=function(){Q();v.scheduledJobs.delete(E)},F=v.scheduler.addJob(b,V);
v.scheduledJobs.set(E,{jobWrapper:b,jobId:F,priority:V})}};var zGN;_.T9={};zGN={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.T9.YtRendererstamperBehavior=[_.hD.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var v in this.stampDom){var Q=this.stampDom[v];Q&&Q.id&&this.addReactiveSchema({type:"observe",method:{methodName:Kgb(Q.id),args:[{type:"wildcard",path:v}]}})}else{(v=(this.constructor.generatedFrom||this).observers)||(v=[]);for(Q in this.stampDom){var V=this.stampDom[Q];V&&V.id&&v.push(Kgb(V.id)+"("+Q+".*)")}this.constructor.generatedFrom.observers=v}},
addStampDomObserverFns_:function(){for(var v in this.stampDom){var Q=this.stampDom[v];Q.id?(this[Kgb(Q.id)]=this.rendererStamperObserver_.bind(this,v,Q.id),this.hasDataPath_[v]=!1):(Q=new _.xd("Bad rendererstamper config",this.is+":"+v),_.ro(Q))}},
rendererStamperObserver_:function(v,Q,V){if(V.path==v){if(V.value===void 0&&!this.hasDataPath_[v])return;this.hasDataPath_[v]=V.value!==void 0}this.rendererStamperApplyChangeRecord_(v,Q,V)},
rendererStamperApplyChangeRecord_:function(v,Q,V){var E=this.renderJobsMap_[Q],b=null;v==V.path?(V=V.value,_.W9(V)||(V=V===void 0||V===null?[]:[V]),v=this.stampDom[v],v.mapping&&(b=this.stampDomArray_.bind(this,V,Q,v.mapping,v.reuseComponents,v.events,v.stamperStableList)),E&&E.cancel(),V=v.usePageScheduler?this.getTaskManager():void 0,E||v.initialRenderPriority==void 0)?v.renderPriority==void 0||E||(E=new _.AD(v.renderPriority,v.waitForSignal,V),this.renderJobsMap_[Q]=E):(E=new _.AD(v.initialRenderPriority,
v.waitForSignal,V),this.renderJobsMap_[Q]=E,b=function(F,t){F();StQ(t,10)}.bind(this,b,E)):b=v+".splices"==V.path?this.stampDomArraySplices_.bind(this,v,Q,V.value):this.forwardRendererStamperChanges_.bind(this,v,Q,V);
E?_.kc(E,b):b()},
forwardRendererStamperChanges_:function(v,Q,V){var E=V.path.slice(v.length+1),b=this.getStampContainer_(Q),F=E.indexOf("."),t=E.substring(0,F),p=!1,Z=0,d=parseInt(t,0);if(t[0]=="#"){p=parseInt(t.substring(1),0);d=this.get(v);var w=this.get([v,t]);d[p]==w?Z=p:Z=d.indexOf(w);p=!0}else isNaN(d)||(Z=d,p=!0);p&&(E=E.substring(t.length+1),F=E.indexOf("."));t=this.polymerDom(b).children[Z];var A;if(b=(A=t==null?void 0:t.polymerController)!=null?A:t)E="data"+E.slice(F),typeof b.notifyPath!=="function"?_.Iy(new _.xd("notifyPath missing",
this.is+": "+v+", "+Q)):V.value?b.notifyPath(E,V.value):b.notifyPath(E)},
stampDomArraySplices_:function(v,Q,V){if(V&&V.indexSplices){var E=this.getStampContainer_(Q);if(E){for(var b=this.polymerDom(E),F=LgB(this.stampDom[v].reuseComponents),t=V.indexSplices.length,p=0;p<t;p++){for(var Z=V.indexSplices[p],d=b.children[Z.index],w=Z.removed.length;w>0;w--)d&&d.parentElement&&(this.polymerDom(d.parentElement).removeChild(d),F&&pDo(d),d=b.children[Z.index]);w=this.stampDom[v].mapping;for(var A=Z.index+Z.addedCount,k=document.createDocumentFragment(),T=F,c=Z.index;c<A;c++){var C=
Z.object[c],R=Fg0(w,C);if(R){var l=w[R];C=C[R];R=this.getComponentName_(l,C);var S=d?v_.has(d):!1;T&&d&&d.is==R&&S?(R=d,this.telemetry_.reuse++,d=d.nextElementSibling):T&&d&&S?(R=this.createComponent_(l,C,F),S=this.polymerDom(d).nextElementSibling,b.insertBefore(R,S),ZI9(this.is,b,d,F),d=S):(T=!1,R=this.createComponent_(l,C,F),k.appendChild(R));this.deferRenderStamperBinding_(R,l,C)}else l=new _.xd("Unimplemented type",v,Q,E.tagName,Object.keys(C)[0]),_.ro(l)}b.insertBefore(k,d)}this.flushRenderStamperComponentBindings_();
this.stampDom[v].events&&_.Hj(this.hostElement,"yt-rendererstamper-finished",{container:E})}else v=new _.xd("Container object not found",Q,this.hostElement?this.hostElement.is:""),_.ro(v)}},
stampDomArray_:function(v,Q,V,E,b,F){var t=this.getStampContainer_(Q);if(t)if(Q=this.polymerDom(t),E=LgB(E),v){var p=0,Z=0,d;if(F=F===void 0?_.mX("STAMPER_STABLE_LIST",!1):F||!1)for(d=Q.firstElementChild;d&&!v_.has(d)&&v.length>Z;){F=v[Z];var w=Fg0(V,F);if(w){if(this.getComponentName_(V[w],F[w])!=d.is){var A=this.createComponent_(V[w],F[w],E),k=_.wi(d).nextElementSibling;k?Q.insertBefore(A,k):Q.appendChild(A);ZI9(this.is,Q,d,E);d=A}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(d,V[w],
F[w]);p++;Z++;d=this.polymerDom(d).nextElementSibling}else Z++}PeT(this.is,Q,p,E);p=d;if(v.length>Z){F=document.createDocumentFragment();for(w=v.length;Z<w;Z++)if(A=v[Z],k=Fg0(V,A))d=this.createComponent_(V[k],A[k],E),this.deferRenderStamperBinding_(d,V[k],A[k]),F.appendChild(d);if(p&&this.polymerDom(p).parentNode&&d&&!v_.has(d))Q.insertBefore(F,p);else try{Q.appendChild(F)}catch(T){_.Iy(new _.xd("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();b&&_.Hj(this.hostElement,"yt-rendererstamper-finished",{container:t})}else PeT(this.is,Q,0,E);else v=new _.xd("Container object not found",Q,this.hostElement?this.hostElement.is:""),_.ro(v)},
polymerDom:function(v){return this.minimizePipBreakages?v:_.wi(v)},
getStampContainer_:function(v){return this.$&&this.$[v]||_.m9(this.hostElement).querySelector("#"+v)},
getComponentName_:function(v,Q){return typeof v==="string"?v:v.matcher?v.matcher.call(this,Q):v.component},
createComponent_:function(v,Q,V){v=this.getComponentName_(v,Q);try{var E=IPQ.has(v);if(V&&!E){var b=_.wx(v);try{_.F6(b)}catch(F){V="Failed to clear styles for "+v+".",F.message&&(V+=" Original error: "+F.message),_.Iy(new _.xd(V))}}else b=document.createElement(v)}catch(F){return b="YtRendererStamperBehavior failed to create "+v+".",F.message&&(b+=" Original description: "+F.message),F.message="YtRendererStamperBehavior failed to create element",_.Hx(F,b),zGN.hasOwnProperty(v)?_.Iy(F):_.ro(F),document.createElement("SPAN")}this.telemetry_.create++;
return b},
deferRenderStamperBinding_:function(v,Q,V){this.deferredBindingTasks_.push({component:v,typeOrConfig:Q,data:V})},
flushRenderStamperComponentBindings_:function(){for(var v=0,Q=this.deferredBindingTasks_.length;v<Q;v++){var V=this.deferredBindingTasks_[v];if(!V)break;var E=void 0,b=void 0,F=void 0,t=void 0,p=V.component,Z=V.typeOrConfig;V=V.data;var d=(t=p.polymerController)!=null?t:p;t=p.loggingStatus;try{t&&(t.isRendererStamper=!0);if(typeof Z!=="string"){for(F in Z.attributes)Z.attributes[F]===!0?p.setAttribute(F,""):Z.attributes[F]===!1?p.removeAttribute(F):p.setAttribute(F,Z.attributes[F]);for(b in Z.params)d[b]=
Z.params[b],p!==d&&TP(p.localName,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(E in Z.properties){var w=Z.properties[E];if(w){var A=iIE(w);d[E]=this.get(A);p!==d&&TP(p.localName,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(E==="on-tap"||E==="on-click"){var k=this.get(A);p.addEventListener("click",k);tJS.set(p,{property:E,listener:{type:"element",eventName:"click",handler:k}})}}else{var T=new _.xd("Undefined property binding",E);_.ro(T)}}}if(Z.classListBinding){var c=iIE(Z.classListBinding),
C=c?this[c]:null;if(C)for(E=0;E<C.length;E++)_.VE(p,C[E],!0)}d.data=V}finally{t&&(t.isRendererStamper=!1)}if(E=v_.get(p))p.hidden=!1,v_.delete(p),_.XT.cancelJob(E)}this.deferredBindingTasks_.length=0}}];_.ad(_.x(function(v){function Q(){V().seconds&&F(FrT({seconds:Number(V().seconds)-Date.now()/1E3}))}
var V=v.targetTimestamp;v=v.className;var E=_.L(_.Ge("",void 0,"U1Q8Ae")),b=E.next().value,F=E.next().value;_.uk(function(){Q();var t=setInterval(function(){Q()},1E3);
_.j_(function(){clearInterval(t)})});
return _.P("yt-countdown",{class:_.QZ("ytCountDownHost",v)},_.P("div",null,b))},"v"),"yt-countdown",{props:{targetTimestamp:_.pJ,
className:_.Wg}});_.Yc=new _.KB("KEY_MANAGER_TOKEN");var yu3={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"};_.yL=_.x(function(v){var Q=_.Ze("a",v.ref),V=v.aTagConfig?v.aTagConfig:_.Rr(function(){var E,b,F,t,p;var Z=(p=_.MQ((F=v.command)==null?void 0:F.call(v)))!=null?p:(t=v.command)==null?void 0:t.call(v);return _.DM({innertubeCommand:Z,skipOnClick:(E=v.skipOnClick)==null?void 0:E.call(v),defaultTarget:(b=v.target)==null?void 0:b.call(v)})||{}},void 0,"TAvz0");
_.uH(function(){_.Y("mweb_get_endpoint_from_atag_command")||(Q.value._data=V()._data,Q.value.params=V().params)},"dcjvAe");
return _.P("a",{el:Q,href:function(){return V().href$},
rel:function(){return V().rel$},
class:function(){var E,b;return(b=V().className)!=null?b:(E=v.className)==null?void 0:E.call(v)},
style:function(){var E;if((E=v.style)==null?0:E.call(v))return v.style();var b;return((b=v.disabled)==null?0:b.call(v))?"pointer-events:none":""},
"aria-haspopup":function(){return!!V()["aria-haspopup$"]},
"force-new-state":bP(function(){return V()["force-new-state$"]}),
title:bP(function(){var E,b;return(b=V().title$)!=null?b:(E=v.title)==null?void 0:E.call(v)}),
role:bP(function(){var E;return((E=v.role)==null?void 0:E.call(v))||V().role$}),
target:bP(function(){return V().target$}),
dir:bP(function(){var E;return((E=v.dir)==null?void 0:E.call(v))||V().dir}),
tabindex:function(){var E;return V().tabindex$?Number(V().tabindex$):(E=v.tabIndex)==null?void 0:E.call(v)},
"aria-hidden":function(){var E,b;return(b=V()["aria-hidden$"])!=null?b:(E=v.ariaHidden)==null?void 0:E.call(v)},
"aria-label":function(){var E,b;return(b=V()["aria-label$"])!=null?b:(E=v.ariaLabel)==null?void 0:E.call(v)},
"aria-current":v.ariaCurrent,"aria-disabled":v.disabled,"aria-labelledby":v.ariaLabelledby,"aria-describedby":v.ariaDescribedby,"aria-selected":v.ariaSelected,"tab-identifier":v.tabIdentifier,"on:pointerdown":_.EP(function(E){var b,F;return void((F=(b=V()).onpointerdown)==null?void 0:F.call(b,E))}),
"on:click":_.EP(function(E){var b,F;(F=(b=V()).onclick)==null||F.call(b,E);var t;(t=v.onClick)==null||t.call(v,E)}),
"on:focusin":_.EP(function(E){var b;(b=v.onFocusin)==null||b.call(v,E)}),
"on:focusout":_.EP(function(E){var b;(b=v.onFocusout)==null||b.call(v,E)})},v.children)},"x");var RRG={duration:1E3,easing:"ease",fill:"forwards"};D8Q.componentType=qA;var q4G={duration:1E3,easing:"ease",fill:"forwards"},xaS=_.x(function(v){var Q=_.Ze("animated-rolling-character"),V=void 0,E=function(){var p,Z;return jH((p=v.character)==null?void 0:p.call(v))||jH((Z=v.previousCharacter)==null?void 0:Z.call(v))},b=_.L(_.Ge(0,void 0,"CYT8Ob")),F=b.next().value,t=b.next().value;
_.uk(function(){if(window.ResizeObserver&&_.Y("web_fix_rolling_numbers_zoom_safari")){var p=new _.FK(function(){var d,w,A=Math.round(((w=(d=Q.value.querySelector("div"))==null?void 0:d.getBoundingClientRect().height)!=null?w:0)*100)/100;A&&t(A)},500),Z=new ResizeObserver(function(){p.fire()});
Z.observe(Q.value);_.j_(function(){Z.disconnect();p.dispose()})}});
_.uH(function(){var p=_.Y("web_fix_rolling_numbers_zoom_safari")?F:v.marginMultiplier;if(p()){var Z;(Z=V)==null||Z.cancel();if(E()){var d;Z=((d=v.previousCharacter)==null?0:d.call(v))?Number(v.previousCharacter())+10:v.rollUp()?0:30;var w;if((w=v.shouldAnimate)==null||!w.call(v)){var A,k;Z-=lUG((A=v.character)==null?void 0:A.call(v),(k=v.previousCharacter)==null?void 0:k.call(v),v.rollUp(),Z)}}else{Z=v.rollUp()?0:2;var T;(T=v.shouldAnimate)!=null&&T.call(v)||(d=Z,w=v.rollUp()?-1:1,Z=d-w)}Q.value.style.marginTop=
"-"+Z*p()+"px";var c;if((c=v.shouldAnimate)==null?0:c.call(v)){var C,R;V=S4h(Q.value,(C=v.character)==null?void 0:C.call(v),(R=v.previousCharacter)==null?void 0:R.call(v),v.rollUp(),Z,E(),p())}else{var l;Q.value.style.display=((l=v.character)==null?0:l.call(v))?"":"none"}}},"CA6Pmf");
return _.P("animated-rolling-character",{el:Q,class:"animatedRollingCharacterHost"},_.P(_.h,{cond:E,then:function(){return _.P(JWZ,null)},
else:function(){return _.P(NPa,{character:v.character})}}))},"A");
xaS.idomCompat=!0;var zRQ=_.Y("web_enable_sink_animated_rolling_character_and_number")?xaS:D8Q,BPA=_.Y("web_enable_sink_animated_rolling_character_and_number")?xaS:nMB(D8Q),JWZ=_.x(function(){for(var v=[],Q=1;Q<30;Q++)v.push(_.P("div",null,Q%10));return _.P(_.w7,null,_.P("div",null,"\u00a0"),v,_.P("div",null,"\u00a0"))},"B"),NPa=_.x(function(v){var Q=v.character;
return _.P(_.w7,null,_.P("div",null,"\u00a0"),_.P(_.h,{cond:function(){return!(Q==null?0:Q())||_.pE(Q==null?void 0:Q())},
then:function(){return _.P("div",null,"\u00a0")},
else:function(){return _.P("div",null,Q)}}),_.P("div",null,"\u00a0"))},"C");Jub.componentType=qA;var gsA=_.x(function(v){var Q=void 0,V=void 0,E=function(){var F;return((F=v.fontSizeMultiplier)==null?0:F.call(v))?v.heightPx()*v.fontSizeMultiplier():v.heightPx()},b=_.Rr(function(){if(!v.numberText())return[];
var F,t,p=((F=v.forceRollUp)==null?void 0:F.call(v))||!V||!((t=v.numberValue)==null?0:t.call(v))||V<v.numberValue(),Z,d=v.numberText();F=E();t=!((Z=v.shouldAnimate)==null||!Z.call(v));Z=[];var w=0,A=0,k=(Q?Q.replace(/\D/g,"").length:0)-(d?d.replace(/\D/g,"").length:0),T=Q?Q.split(/(\d)/).filter(Boolean):[];for(d=d.split(/(\d)/).filter(Boolean);k<0;){var c=d[A];Z.push({character:c,rollUp:p,marginMultiplier:F,shouldAnimate:t});A++;jH(c)&&k++}for(;w<k;)c=T[w],Z.push({previousCharacter:c,rollUp:p,marginMultiplier:F,
shouldAnimate:t}),w++,jH(c)||k++;for(;A<d.length;)k=d[A],c=T[w],jH(k)===jH(c)?(A++,w++):jH(k)?(w++,k=void 0):jH(c)&&(A++,c=void 0),Z.push({character:k,previousCharacter:c,rollUp:p,marginMultiplier:F,shouldAnimate:t});Q=v.numberText();var C;V=(C=v.numberValue)==null?void 0:C.call(v);return Z},void 0,"kWiBv");
return _.P("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return v.numberText()?["height: "+E()+"px;","line-height: "+v.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.P(_.xb,{each:b,keyBy:"INDEX"},function(F){return _.P(BPA,{character:function(){return F().character},
previousCharacter:function(){return F().previousCharacter},
marginMultiplier:function(){return F().marginMultiplier},
rollUp:function(){return F().rollUp},
shouldAnimate:function(){return F().shouldAnimate}})}))},"D");
gsA.idomCompat=!0;_.s3Z=_.Y("web_enable_sink_animated_rolling_character_and_number")?gsA:nMB(Jub);var uha=function(v,Q){this.fillAnimation=new Animation(gMb(v),document.timeline);this.strokeAnimation=new Animation(sfQ(Q),document.timeline)};
uha.prototype.play=function(){var v,Q;(Q=(v=this.fillAnimation).play)==null||Q.call(v);var V,E;(E=(V=this.strokeAnimation).play)==null||E.call(V)};
uha.prototype.cancel=function(){var v,Q;(Q=(v=this.fillAnimation).cancel)==null||Q.call(v);var V,E;(E=(V=this.strokeAnimation).cancel)==null||E.call(V)};_.c6=_.x(function(v){var Q=v.model;var V=v.pointerDownEvent;var E=v.pointerUpEvent;var b=v.pointerLeaveEvent;var F=v.hovered;v=_.Ze("yt-touch-feedback-shape");var t=_.Ze("div"),p=_.Ze("div"),Z=_.L(_.K_(function(){return(E==null?0:E())||(b==null?0:b())?!1:!(V==null||!V())||!1})),d=Z.next().value,w=Z.next().value,A=void 0,k=function(){!A&&p.value&&t.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(A=new uha(p.value,t.value));
var S;(S=A)==null||S.play()},T=function(){var S;
(S=A)==null||S.cancel()},c=function(){var S;
(S=A)==null||S.cancel()};
_.uH(function(){(E==null?0:E())&&k()},"bg756c");
_.uH(function(){(V==null?0:V())&&T()},"QAes8c");
_.uH(function(){(b==null?0:b())&&c()},"YaFbrc");
Z=_.EP(function(){k();w(!1)});
var C=_.EP(function(){T();w(!0)}),R=_.EP(function(){c();
w(!1)});
_.j_(function(){if(A){var S;(S=A)==null||S.cancel();A=void 0}});
var l={};d=_.QZ("yt-spec-touch-feedback-shape",function(){return ukr(Q().color)},function(){return jfB(Q().thumbnailSize,!!Q().isExtended)},(l["yt-spec-touch-feedback-shape--focused"]=function(){return!!Q().focused&&!Q().disabled},l["yt-spec-touch-feedback-shape--circular"]=function(){return!!Q().circular},l["yt-spec-touch-feedback-shape--down"]=d,l["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!Q().triggerEvents},l["yt-spec-touch-feedback-shape--hovered"]=function(){return F==
null?void 0:F()},l));
return _.P("yt-touch-feedback-shape",{el:v,class:d,style:_.iP({"margin-top":function(){return Q().customTopExtend?"-"+Q().customTopExtend+"px":void 0}}),
"on:mousedown":C,"on:mouseup":Z,"on:pointerleave":R,"on:touchstart":C,"on:touchend":Z,"aria-hidden":!0},_.P(_.h,{cond:function(){return!!Q().hoverEffect},
then:function(){return _.P("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.iP({"border-radius":function(){return Q().borderRadius},
background:function(){var S;if(S=Q().hoverEffect){for(var a=[],g=_.L((S==null?void 0:S.lightingTechniques)||[]),u=g.next();!u.done;u=g.next())switch(u.value){case 2:var r=u=void 0,v9=void 0,t3=void 0;a.push("linear-gradient(180deg, "+((u=S)==null?void 0:(r=u.palette)==null?void 0:r.keyLight)+", "+((v9=S)==null?void 0:(t3=v9.palette)==null?void 0:t3.background)+")")}var h3,OB;a.push((h3=Q().hoverEffect)==null?void 0:(OB=h3.palette)==null?void 0:OB.background);S=a.join(", ")}else S=void 0;return S}})})}}),
_.P("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.iP({"border-radius":function(){return Q().borderRadius},
"border-color":function(){var S,a;return(S=Q().touchEffect)==null?void 0:(a=S.palette)==null?void 0:a.background}}),
el:t}),_.P("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.iP({"border-radius":function(){return Q().borderRadius},
"background-color":function(){var S,a;return(S=Q().touchEffect)==null?void 0:(a=S.palette)==null?void 0:a.background}}),
el:p}))},"J");
_.c6.idomCompat=!0;var j3V={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 fJ=_.T0();fJ=fJ.toLowerCase();if(_.Zt(fJ,"android")){var WZQ=fJ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);WZQ&&parseFloat(WZQ[1])<100||fJ.match("("+Object.keys(j3V).join("|")+")")};var osS=_.x(function(v){return _.P(_.h,{cond:v.aTagConfig,then:function(Q){return _.P(_.yL,{aTagConfig:Q,disabled:v.disabled,className:v.className,style:v.style,title:v.title,ariaLabel:v.ariaLabel,ariaCurrent:function(){var V,E;return((V=v.toggleable)==null?void 0:V.call(v))&&((E=v.toggled)==null?void 0:E.call(v))},
ref:v.ref},v.children)},
else:function(){return _.P("button",{el:_.ud(v.ref),"on:click":_.EP(function(Q){var V;return(V=v.onClick)==null?void 0:V.call(v,Q)}),
class:v.className,title:v.title,style:v.style,disabled:v.disabled,"aria-pressed":function(){var Q,V;return((Q=v.toggleable)==null?0:Q.call(v))?!((V=v.toggled)==null||!V.call(v)):void 0},
"aria-label":v.ariaLabel,"aria-disabled":v.visiblyDisabled,"aria-hidden":v.ariaHidden,tabindex:v.tabIndex},v.children)}})},"K"),aKp=_.x(function(v){var Q=v.data;
var V=v.hasIconLeading;var E=v.hasIconLeadingTrailing;var b=v.hasIconTrailing;var F=v.iconButton;var t=v.iconClassName;var p=v.secondaryIconClassName;var Z=v.icon;var d=v.secondaryIcon;var w=v.textContentClassName;return _.P(G9,{className:"",style:"display: inherit; justify-content: center"},_.P(_.h,{debugInstance:"V4z1Uc",cond:function(){return Z&&(V()||E()||(F==null?void 0:F()))},
then:function(){return _.P(G9,null,_.P("div",{class:t,"aria-hidden":"true"},Z==null?void 0:Z()))}}),_.P(_.h,{debugInstance:"ok3btb",
cond:function(){return(Q().buttonText||Q().animatedTextProps||Q().formattedButtonText)&&!(F==null?0:F())},
then:function(){return _.P(G9,null,_.P(X$a,{className:w,iconPosition:function(){return Q().iconPosition},
text:function(){return Q().buttonText},
oneOffCustomTextWrap:function(){return Q().oneOffCustomTextWrap},
formattedButtonText:function(){return Q().formattedButtonText},
animatedTextProps:function(){return Q().animatedTextProps}}))}}),_.P(_.h,{debugInstance:"DO5Rz",
cond:b,then:function(){return _.P(G9,null,_.P("div",{class:t},Z==null?void 0:Z()))}}),_.P(_.h,{debugInstance:"bnojSc",
cond:E,then:function(){return _.P(G9,null,_.P("div",{class:p},d==null?void 0:d()))}}),_.P(_.h,{debugInstance:"HN3kad",
cond:function(){return!Q().disabled&&!0},
then:function(){return _.P(_.c6,{model:function(){var A=Q();return{color:A.style==="overlay-dark"?4:A.style==="overlay"?A.type==="filled"?4:3:A.type==="filled"||A.style==="call-to-action-inverse"||A.style==="mono-inverse"?2:1}}})}}))},"L"),X$a=_.x(function(v){var Q=function(){var V,E;
return((V=v.iconPosition)==null?void 0:V.call(v))==="icon-with-label"||((E=v.oneOffCustomTextWrap)==null?void 0:E.call(v))};
return _.P("div",{class:v.className,"aria-hidden":function(){var V,E,b;return((V=v.ariaHidden)==null?void 0:V.call(v))&&(!((E=v.animatedTextProps)==null||!E.call(v))||!((b=v.formattedButtonText)==null||!b.call(v)))}},_.P(_.BU,null,_.P(_.J1,{when:function(){var V;
return(V=v.animatedTextProps)==null?void 0:V.call(v)}},function(){return _.P(_.s3Z,{numberText:function(){return v.animatedTextProps().numberText},
numberValue:function(){return v.animatedTextProps().numberValue},
heightPx:function(){return v.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return v.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return v.animatedTextProps().shouldAnimate},
forceRollUp:function(){return v.animatedTextProps().forceRollUp}})}),_.P(_.J1,{when:function(){var V;
return(V=v.formattedButtonText)==null?void 0:V.call(v)}},function(){return _.P(_.tD,{text:function(){return Object.assign({},v.formattedButtonText(),{lineBreakMode:Q()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":v.formattedButtonText().lineBreakMode,
alignment:Q()?"TEXT_ALIGNMENT_CENTER":v.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!Q()}})}),_.P(_.J1,{when:function(){var V,E;
return((V=v.iconPosition)==null?void 0:V.call(v))==="icon-with-label"&&((E=v.text)==null?void 0:E.call(v))}},function(){return _.P(_.tD,{text:function(){return{content:v.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.P(_.NP,null,function(){return v.text})))},"M"),rWA=_.x(function(v){return _.P(_.h,{debugInstance:"kM7Sgc",
cond:v.hasLabel,then:function(){var Q;return _.P("label",{class:v.className},v.children,(Q=v.textContent)==null?void 0:Q.call(v))},
else:function(){return v.children}})},"N"),G9=_.x(function(v){return v.children},"O");var $aV=_.x(function(v){function Q(){F(void 0);p(void 0);d(void 0)}
var V=_.ud(),E=_.L(_.Ge(void 0,void 0,"Ug77pc")),b=E.next().value,F=E.next().value;E=_.L(_.Ge(void 0,void 0,"XGf7Zb"));var t=E.next().value,p=E.next().value,Z=_.L(_.Ge(void 0,void 0,"w55oqd"));E=Z.next().value;var d=Z.next().value;Z=_.L(_.Ge(0,void 0,"rBgpzc"));var w=Z.next().value,A=Z.next().value;Z=_.EP(function(){switch(w()){case 1:A(2);break;case 3:var T,c;(c=(T=V.value).hidePopover)==null||c.call(T);A(0);Q()}});
_.uH(function(){if(v.show()){var T;F((T=v.children)==null?void 0:T.call(v));var c;p((c=v.location)==null?void 0:c.call(v));var C;d((C=v.classNames)==null?void 0:C.call(v));switch(w()){case 0:var R,l;(l=(R=V.value).showPopover)==null||l.call(R);A(1);break;case 3:A(1);var S,a;(a=(S=V.value).hidePopover)==null||a.call(S);var g,u;(u=(g=V.value).showPopover)==null||u.call(g)}}else switch(w()){case 2:A(3);break;case 1:var r,v9;(v9=(r=V.value).hidePopover)==null||v9.call(r);Q();A(0)}},"Z8V4Qb");
_.jg(function(){});
var k={};return _.P("yt-popover",{popover:"manual",el:V,style:_.iP({left:function(){var T;return(T=t())==null?void 0:T.left},
top:function(){var T;return(T=t())==null?void 0:T.top},
bottom:function(){var T;return(T=t())==null?void 0:T.bottom},
right:function(){var T;return(T=t())==null?void 0:T.right}}),
class:_.QZ("ytPopoverComponentHost",E,(k.ytPopoverComponentHostClosing=function(){return w()===3},k.ytPopoverComponentHostSeeThrough=function(){var T;
return((T=v.seeThrough)==null?void 0:T.call(v))===!0},k)),
"on:animationend":Z},b)},"Q");var IKa={left:"0px",right:"auto",top:"0px",bottom:"auto"},HkN=function(){var v=this;this.registerTooltipElement=function(V){var E;v.tooltipElement=(E=V.querySelector("yt-popover"))!=null?E:void 0};
var Q=_.L(_.Ge(void 0,void 0,"EIh5sc"));this.state=Q.next().value;this.setState=Q.next().value;Q=_.L(_.Ge(void 0,void 0,"PC1M0b"));this.schedulerJobID=Q.next().value;this.setSchedulerJobID=Q.next().value},m8E=function(v,Q){var V=p_,E=_.XT.addJob(function(){var b=map(V,v,Q);
V.currentConfig=Q;V.setState({text:Q.text,location:_.Y("web_tooltip_location_fix")?void 0:b,anchor:v,offset:Q.offset,style:Q.style})},4,Q.delay);
V.setSchedulerJobID(E)},U89=function(){var v=p_,Q=v.schedulerJobID();
Q&&(_.XT.cancelJob(Q),v.setSchedulerJobID(void 0));v.setState(void 0);v.currentConfig=void 0};
HkN.prototype.notify=function(v,Q){var V;((V=this.state())==null?void 0:V.anchor)===v&&(V=map(this,v,Q),this.currentConfig=Q,this.setState({text:Q.text,location:_.Y("web_tooltip_location_fix")?void 0:V,anchor:v,offset:Q.offset,style:Q.style}))};
var map=function(v,Q,V){var E=Q.getBoundingClientRect();Q=window.innerWidth;var b=window.innerHeight,F=V.location,t=V.offset;V=V.text;if(v=v.tooltipElement){var p=getComputedStyle(v);v=p.font;var Z=ts(p.lineHeight),d=ts(p.paddingLeft),w=ts(p.paddingRight),A=ts(p.paddingTop);p=ts(p.paddingBottom);var k=document.createElement("canvas").getContext("2d");k.font=v;V={width:k.measureText(V).width+d+w,height:Z+A+p}}else V=void 0;v=V;if(!v)return IKa;V=v.width;v=v.height;d=t+v;A=t+V;Z=E.top>=d;d=b-E.bottom>=
d;w=E.left>=A;A=Q-E.right>=A;p=F;switch(F){case "top":!Z&&d&&(p="bottom");break;case "bottom":!d&&Z&&(p="top");break;case "left":!w&&A&&(p="right");break;case "right":!A&&w&&(p="left")}switch(p){case "top":F=E.left+E.width/2-V/2;E=E.top-v-t;break;case "bottom":F=E.left+E.width/2-V/2;E=E.bottom+t;break;case "left":F=E.left-V-t;E=E.top+E.height/2-v/2;break;case "right":F=E.right+t;E=E.top+E.height/2-v/2;break;default:F=E.left+E.width/2-V/2,E=E.bottom+t}t=Object.assign({},IKa);F+V>Q?(t.right="0px",t.left=
"auto"):(t.left=Math.round(Math.max(0,F)+window.scrollX)+"px",t.right="auto");E+v>b?(t.bottom="0px",t.top="auto"):(t.top=Math.round(Math.max(0,E)+window.scrollY)+"px",t.bottom="auto");return t};var p_;p_=new HkN;_.Uaa=_.x(function(){var v=_.Rr(function(){var b;return(b=p_.state())==null?void 0:b.anchor},void 0,"tiGUn"),Q=_.Rr(function(){var b;
return(b=p_.state())==null?void 0:b.text},void 0,"TA2GQe"),V=_.Rr(function(){var b;
return(b=p_.state())==null?void 0:b.style},void 0,"ucvFsf"),E=_.Y("web_tooltip_location_fix")?_.Rr(function(){var b=v();
var F=p_.currentConfig;if(b&&F)return map(p_,b,F)},void 0,"EpDz6"):_.Rr(function(){var b;
return(b=p_.state())==null?void 0:b.location},void 0,"aRJtfd");
return _.P("yt-tooltip",{class:"ytTooltipContainerHost",el:_.ud(p_.registerTooltipElement),"aria-hidden":"true"},_.P($aV,{classNames:function(){switch(V()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:E,show:function(){return!!Q()&&!!E()},
seeThrough:!0},Q))},"R");var NWr=pa("stamper-context");_.OA=_.x(function(v){var Q=v.data;var V=v.icon;var E=v.iconName;var b=v.animateIcon;var F=v.secondaryIcon;var t=v.secondaryIconName;var p=v.focusedOverride;var Z=v.clientOnlyWizTooltipsEnabled;QL3();var d=WgQ(Q),w=d.size,A=d.style;v=d.disabled;var k=d.onTap,T=d.alignByText,c=d.aTagConfig,C=d.customColors,R=d.segmentedPosition,l=d.toggled,S=d.toggleable,a=d.accessibilityLabel,g=d.onToggle,u=d.iconPosition,r=d.oneOffCustomTextWrap,v9=d.disableTextEllipsis,t3=d.disableBackdropFilter,h3=d.tooltipText,
OB=d.ariaHidden,kQ=d.tabIndex,yo=d.buttonText,xQ=d.formattedButtonText,lb=d.animatedTextProps,ep=d.onClickRateLimitMs,JS=rum(Q,V,F,E,t,p,b),fZ=JS.type;V=JS.shouldFocus;E=JS.hasIconLeading;b=JS.hasIconTrailing;var mS=JS.hasIconLeadingTrailing,PN=JS.hasIconOnly;F=JS.hasIconOnly40;var qZ=JS.hasIconWithLabel;t=JS.iconButton;var DX=JS.visiblyDisabled;p=JS.overrideSmallSizeIcon;var Th=JS.iconToRender;JS=JS.secondaryIconToRender;var R8=_.L(vVQ(h3,d.tooltipShape)).next().value,LE=function(y8){k==null||k(y8);
S()&&(g==null||g(y8))},Q8=_.Rr(function(){return ep==null?void 0:ep()},void 0,"siKywb"),Tq=_.Rr(function(){return Q8()?saS(LE,Q8()):LE},void 0,"wDTcN");
d={};var Ed={};return _.P(rWA,{className:_.QZ("yt-spec-button-shape-with-label",(d["yt-spec-button-shape-with-label--is-overlay"]=function(){return A()==="overlay"||A()==="overlay-dark"},d)),
hasLabel:qZ,textContent:function(){return _.P(X$a,{text:yo,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:r,iconPosition:u,formattedButtonText:xQ,animatedTextProps:lb})}},_.P(osS,{aTagConfig:c,
className:_.QZ("yt-spec-button-shape-next",function(){return $8b(fZ())},function(){return DX()?void 0:IUB(A())},function(){return HIS(w())},(Ed["yt-spec-button-shape-next--disabled"]=DX,Ed["yt-spec-button-shape-next--focused"]=V,Ed["yt-spec-button-shape-next--icon-trailing"]=b,Ed["yt-spec-button-shape-next--icon-leading"]=E,Ed["yt-spec-button-shape-next--icon-leading-trailing"]=mS,Ed["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return mS()&&!(yo()||xQ())},Ed["yt-spec-button-shape-next--icon-button"]=
function(){return PN()||qZ()},Ed["yt-spec-button-shape-next--icon-only-default"]=F,Ed["yt-spec-button-shape-next--align-by-text"]=T,Ed["yt-spec-button-shape-next--segmented-start"]=function(){return R()==="start"},Ed["yt-spec-button-shape-next--segmented-end"]=function(){return R()==="end"},Ed["yt-spec-button-shape-next--override-small-size-icon"]=p,Ed["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=r,Ed["yt-spec-button-shape-next--disable-text-ellipsis"]=v9,Ed["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!t3()&&!_.Y("web_disable_backdrop_filter")},Ed)),
style:function(){var y8=C();if(y8){var mA=y8.color;var C$=y8.backgroundColor;y8=y8.borderColor;var oN="";mA&&(oN+="color: "+mA+";");C$&&(oN+="background-color: "+C$+";");y8&&(oN+="border-color: "+y8+";");mA={style:oN}}else mA={};return mA.style},
onClick:function(y8){Tq()(y8)},
disabled:v,ariaLabel:a,toggleable:S,toggled:l,title:function(){return(Z==null?0:Z())||!h3()?"":h3()},
visiblyDisabled:DX,ariaHidden:OB,tabIndex:kQ,ref:function(y8){(Z==null?0:Z())&&R8(y8)}},_.P(aKp,{data:Q,
hasIconLeading:E,hasIconLeadingTrailing:mS,hasIconTrailing:b,iconButton:t,icon:Th,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:JS})))},"T");
_.OA.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.D6=_.x(function(v){var Q=v.data;var V=v.className;var E=v.style;var b=v.useOutlinedIcon;var F=v.buttonOverrides;var t=v.animatedTextProps;var p=v.onClick;var Z=v.target;var d=_.Ze("button-view-model",function(g){g.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var u=Q().targetId;u&&_.lPN(_.xp(),u,g);return function(){RXV(_.xp(),g)}}),w=function(){return Q().iconName},A=_.Z1(function(g){a:{var u=Q().entityKey,r=Q().buttonEntitySelectorType;
if(r&&u)switch(r){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":g=(g=_.VZ(g,u))?{isHidden:g.adsState==="ADS_STATE_NONE"||g.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:g={isHidden:!1};break a}g=void 0}return g}),k,T=(k=_.ht().resolve(_.d$(_.JR)))==null?void 0:k(),c=function(){var g=Q();
var u=F==null?void 0:F(),r=t==null?void 0:t(),v9=Z==null?void 0:Z();if(g){var t3=tBG(g.type);var h3=!!g.title||!!g.titleFormatted;var OB=!(!g.iconName&&!g.iconImage);h3=OB&&!h3?"icon-only":OB?g.iconTrailing||g.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;h3==="icon-only-40"&&(t3="text");var kQ;OB=(kQ=u==null?void 0:u.state)!=null?kQ:p3T(g.state);var yo,xQ=(yo=u==null?void 0:u.disabled)!=null?yo:g.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||g.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.Y("web_button_vm_refactor_disabled")){var lb;xQ=(lb=u==null?void 0:u.disabled)!=null?lb:OB==="disabled"}r=r&&r.numberText&&!isNaN(Number(r.numberValue))?r:void 0;yo=Object;lb=yo.assign;kQ=g.title;var ep=g.titleFormatted,JS=g.accessibilityText,fZ=Lab(g.style),mS=eCZ(g.buttonSize);v9=iQQ(g,d,xQ,p,v9);xQ=xQ&&!g.onDisabledTap;var PN=FaT(g,d),qZ=g.customFontColor,DX=g.customBackgroundColor;var Th=g.customBorderColor;var R8=g.customDarkThemeFontColor,LE=g.customDarkThemeBackgroundColor,Q8=g.customDarkThemeBorderColor;
qZ=T&&R8?R8:qZ;DX=T&&LE?LE:DX;Th=T&&Q8?Q8:Th;Th={color:qZ?_.CF(qZ):void 0,backgroundColor:DX?_.CF(DX):void 0,borderColor:Th?_.CF(Th):void 0};if(Q8=_.y(g.tooltipData,RzR)){var Tq;DX={text:(Tq=Q8.tooltipText)!=null?Tq:"",location:EV0(Q8.placement),style:Q8.style}}else DX=void 0;g=lb.call(yo,{},{buttonText:kQ,formattedButtonText:ep,animatedTextProps:r,accessibilityLabel:JS,style:fZ,type:t3,state:OB,size:mS,iconPosition:h3,onTap:v9,disabled:xQ,aTagConfig:PN,customColors:Th,tooltipText:g.tooltip,tooltipShape:DX},
u)}else g={style:"mono",type:"text",state:"active",size:"M"};g.focused=l();return g},C=function(){return XDm(c(),!!Q().iconName)};
v=_.L(_.Ge(!1,void 0,"yZ8hab"));k=v.next().value;var R=v.next().value,l=k;v=_.EP(function(){var g=_.ht().resolve(_.d$(_.Yc));g&&R(g.isKeyBoardInUse());return!1});
k=_.EP(function(){R(!1);return!1});
_.uH(function(){var g,u=_.y(Q==null?void 0:(g=Q())==null?void 0:g.onVisible,_.Cx);u&&_.Oo(u,{disableClickTracking:!0})},"G9MlKd");
var S=function(){var g;return(Q==null?0:(g=Q())==null?0:g.iconImage)?{sources:[Q().iconImage]}:void 0},a=_.Y("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.P("button-view-model",{el:d,class:_.QZ("ytSpecButtonViewModelHost",V),"on:focusin":v,"on:focusout":k},_.P(_.h,{cond:function(){var g,u;return!((u=Q().entityKey&&Q().buttonEntitySelectorType&&((g=A())==null?void 0:g.isHidden))!=null&&u)},
then:function(){return _.P(_.h,{cond:S,then:function(g){return _.P(_.OA,{data:c,icon:function(){return _.P(_.gE,{data:g,alt:"",targetWidth:C,targetHeight:C,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:a})},
else:function(){return _.P(_.OA,{data:c,icon:function(){return _.P(_.L_,{icon:w,active:function(){return(b==null?0:b())?!1:c().toggled},
animateIcon:function(){var g;return!!(E==null?0:(g=E())==null?0:g.animateIcon)},
size:C})},
clientOnlyWizTooltipsEnabled:a})}})}}))},"V");
_.D6.idomCompat={callbacks:{onClick:!0}};_.ad(_.x(function(v){return _.P("yt-button-view-model",{id:v.id,class:_.QZ(v.scopingClassName,v.classes),icon:function(){var Q;return(Q=v.icon)==null?void 0:Q.call(v)},
"dialog-dismiss":function(){var Q;return((Q=v.dialogDismiss)==null?0:Q.call(v))?"":void 0}},_.P(_.D6,{data:function(){var Q;
return(Q=v.data)==null?void 0:Q.call(v)},
className:function(){var Q;return(Q=v.className)==null?void 0:Q.call(v)},
style:function(){var Q;return(Q=v.style)==null?void 0:Q.call(v)},
useOutlinedIcon:function(){var Q;return(Q=v.useOutlinedIcon)==null?void 0:Q.call(v)},
buttonOverrides:function(){var Q;return(Q=v.buttonOverrides)==null?void 0:Q.call(v)},
animatedTextProps:function(){var Q;return(Q=v.animatedTextProps)==null?void 0:Q.call(v)},
onClick:function(Q){var V;return(V=v.onClick)==null?void 0:V.call(v,Q)}}))},"W"),"yt-button-view-model",{props:{data:_.pJ,
className:_.pJ,style:_.pJ,useOutlinedIcon:_.pJ,buttonOverrides:_.pJ,animatedTextProps:_.pJ,onClick:_.Wg,scopingClassName:_.pJ,id:_.pJ,icon:_.pJ,dialogDismiss:_.pJ,classes:_.pJ,target:_.Wg}});_.ad(_.x(function(v){var Q=v.data;var V=v.id;var E=v.className;var b=v.iconName;var F=v.animateIcon;var t=v.secondaryIconName;v=_.L(_.Ge(!1,void 0,"TtJl8"));var p=v.next().value,Z=v.next().value,d=function(){var A=_.ht().resolve(_.d$(_.Yc));A&&Z(A.isKeyBoardInUse())},w=function(){Z(!1)};
v=_.Ze("yt-button-shape",function(A){if(_.ht().resolve(_.d$(_.Yc)))return A.addEventListener("focusin",d),A.addEventListener("focusout",w),function(){A.removeEventListener("focusin",d);A.removeEventListener("focusout",w)}});
return _.P("yt-button-shape",{el:v,id:V,class:E},_.P(_.h,{cond:Q,then:function(){return _.P(_.OA,{data:Q,iconName:b,secondaryIconName:t,focusedOverride:p,animateIcon:F})}}))},"X"),"yt-button-shape",{props:{data:_.pJ,
id:_.pJ,className:_.pJ,iconName:_.pJ,animateIcon:_.pJ,secondaryIconName:_.pJ,clientOnlyWizTooltipsEnabled:_.pJ,disableUpgrade:_.pJ},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var R5=function(){var v=_.z.apply(this,arguments)||this;v.isGoalActive=!0;return v};
_.f(R5,_.z);R5.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
R5.prototype.progressBarChanged=function(){var v=_.m9(this.hostElement).querySelector("#progress-bar-progress"),Q,V,E,b=(E=Number((Q=this.creatorGoalState)==null?void 0:Q.currentGoalCount)/Number((V=this.creatorGoalState)==null?void 0:V.totalGoalCount)*100)!=null?E:0,F;v.style.width=((F=Math.min(b,100))!=null?F:0)+"%"};
R5.prototype.goalStateChanged=function(){var v;this.isGoalActive=((v=this.creatorGoalState)==null?void 0:v.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var Q;v={"--yt-progress-bar-color":Wu9((Q=this.creatorGoalState)==null?void 0:Q.progressBarColor)};_.F6(this.hostElement,v)};
R5.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.hr.Object.defineProperties(R5.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var v;return this.isGoalActive&&!((v=this.creatorGoalState)==null||!v.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.creatorGoalState)==null?0:v.endTimestampMs){var Q;v=Number((Q=this.creatorGoalState)==null?void 0:Q.endTimestampMs)/1E3;return{seconds:String(v)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.creatorGoalState)==null?0:v.themedTargetImage){var Q;v=_.y((Q=this.creatorGoalState)==null?void 0:Q.themedTargetImage,Av8);return this.isAppDarkTheme()?v==null?void 0:v.imageDark:v==null?void 0:v.imageLight}}}});
_.hr.Object.defineProperties(R5,{template:{configurable:!0,enumerable:!0,get:function(){return Okp()}}});
R5.prototype.goalStateChanged=R5.prototype.goalStateChanged;R5.prototype.progressBarChanged=R5.prototype.progressBarChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],R5.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);
_.W([_.q({selectorArgs:["data.creatorGoalEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"creatorGoalEntity",Q)}}),
_.X("design:type",Object)],R5.prototype,"creatorGoalState",void 0);_.W([_.q(),_.X("design:type",Object)],R5.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],R5.prototype,"isGoalActive",void 0);_.W([_.O("creatorGoalState","isGoalActive"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],R5.prototype,"shouldShowCountdown",null);_.W([_.O("creatorGoalState"),_.X("design:type",Object),_.X("design:paramtypes",[])],R5.prototype,"endTimestamp",null);
_.W([_.O("creatorGoalState"),_.X("design:type",Object),_.X("design:paramtypes",[])],R5.prototype,"targetIconThemedImage",null);_.W([_.ph("creatorGoalState.currentGoalCount"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],R5.prototype,"progressBarChanged",null);_.W([_.ph("creatorGoalState.creatorGoalState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],R5.prototype,"goalStateChanged",null);
_.W([_.D7({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],R5);_.B(R5,"yt-creator-goal-progress-flow-view-model",function(){return Okp()},{mode:0});var vMA;var QfX;var nJ=function(){return _.z.apply(this,arguments)||this};
_.f(nJ,_.z);nJ.prototype.attached=function(){var v,Q,V;if(this==null?0:(v=this.data)==null?0:(Q=v.pdgPurchasedBumperLoggingDirectives)==null?0:(V=Q.loggingDirectives)==null?0:V.trackingParams){var E,b,F;dxm(this==null?void 0:(E=this.data)==null?void 0:(b=E.pdgPurchasedBumperLoggingDirectives)==null?void 0:(F=b.loggingDirectives)==null?void 0:F.trackingParams)}};
nJ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],nJ.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nJ.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],nJ);
_.B(nJ,"yt-live-chat-item-bumper-view-model",function(){if(QfX===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;vMA===void 0&&(vMA=document.createElement("template"));var E=vMA;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);QfX=v}v=QfX;return v},{mode:0});var VJZ;var EMQ;_.sP=function(v,Q){this.data=v;this.actions=Q;this.data=v;this.actions=Q};
_.S$=function(){};_.l6={};_.l6.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(v,Q){hCb(this.hostElement,v,Q)},
getNavigationEndpointPopupAction:function(v){return w3m(v,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(v,Q){AKG(this.hostElement,v,Q,this.openPopupConfig)}};var OQh=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ql={};
_.ql.YtEndpointBehavior=[_.l6.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.r7("openPopupConfig");(this.useClickHandler=_.mX("useClickHandler",!1))?this.hostElement.addEventListener("click",Kh(this,this.onEndpointClick_)):(rX(this.hostElement,"tap",Kh(this,this.onEndpointTap_)),rX(this.hostElement,"touchend",Kh(this,this.onEndpointTouchEnd_)));rX(this.hostElement,"touchstart",Kh(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Kh(this,this.onEndpointTapStart_))},
onEndpointClick_:function(v){Yzm(this.hostElement,v,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(v){var Q=this.hostElement,V=this.openPopupConfig,E=this.disableCommandHandlerOverride;E=E===void 0?!1:E;var b=kGr(v);if(b){b.href&&RO(b.href);var F=v.detail;var t=F.sourceEvent;F=F.preventer;t=t.button!==void 0?t.button===0&&!P_(t):F?!P_(F):!0;b.data&&t&&TzG(Q,b,v,V,E)}},
onEndpointTouchEnd_:function(v){P_(v)||kGr(v)&&v.preventDefault()},
onEndpointTapStart_:function(v){CTB(v)}}];_.SI={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(v){for(var Q=_.KW.getInstance(),V=_.L(Object.keys(v)),E=V.next();!E.done;E=V.next()){var b=E.value;E=v[b];if(this&&this[E]){var F=Q.actionRoutingMap.get(b);F||(F=new Map,Q.actionRoutingMap.set(b,F));Q.registerActionHandler(this,b,this[E].bind(this),F)}else b=Error("ld"),b.params=E,_.Ui(b)}},
unregisterActionMap:function(v){_.LW(_.KW.getInstance(),v,this)}}]};var wS=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_"+(_.Y("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.Y("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.Y("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:_.Y("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:_.Y("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:_.Y("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var hs;var As=new Map;var SzT=window.matchMedia("(forced-colors: active)").matches;var bIp;var Fgq;var Kgx=new _.KB("LOTTIE_LOADER_TOKEN");_.z9=_.x(function(v){var Q=v.data;var V=v.className;var E=v.animationName;var b=v.animationRef;var F=v.elRefForInterop;var t=_.Pa("lottie-component"),p;_.j_(function(){var d;return void((d=p)==null?void 0:d.destroy())});
var Z;_.uH(function(){var d=_.or(E);if(d!==Z){Z=d;var w=Object.assign({},{animationName:d,animationRef:_.or(b)},_.or(Q));try{_.ht().resolve(Kgx)().then(function(T){var c;(c=p)==null||c.destroy();var C,R;c=(R=F==null?void 0:(C=F())==null?void 0:C.value)!=null?R:t.value;C=w.animationRef;R=w.listeners;T=T.loadAnimation(Object.assign({},{container:c},w.animationConfig));C&&(C.lottieEl=T);if(R)for(c=_.L(Object.entries(R)),C=c.next();!C.done;C=c.next())R=_.L(C.value),C=R.next().value,(R=R.next().value)&&
T.addEventListener(C,R);p=T})}catch(T){d=T;
var A="LottieComponent error.";d.message&&(A+=" Original description: "+d.message);_.Hx(d,A);_.Iy(d);var k;((k=w.listeners)==null?0:k.error)&&w.listeners.error(d)}}},"nrJISd");
return _.P(tHr,{cond:function(){return!(F==null?0:F())},
then:function(){return _.P("lottie-component",{class:_.QZ("ytLottieComponentHost",V),el:t})}})},"Z");_.ad(_.x(function(v){return _.P("ytd-lottie-player",{id:v.id,hidden:v.hidden,class:v.className,"aria-label":v.ariaLabel,style:"display: block;"},_.P(_.z9,{data:v.data,animationName:function(){var Q;return((Q=v.data().animationConfig)==null?void 0:Q.name)||""},
animationRef:function(){return v.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.pJ,
id:_.pJ,hidden:_.pJ,className:_.pJ,ariaLabel:_.pJ}});var JD=function(){var v=_.z.apply(this,arguments)||this;v.animationRef={};v.delhiIconsEnabled=_.Y("enable_web_delhi_icons");return v};
_.f(JD,_.z);_.K=JD.prototype;
_.K.handlePropertyChange=function(){var v=this.animatedIcon,Q=this.active,V=this.isDarkTheme;if(v){var E=this.previousActive!==Q;this.previousActive=Q;this.animationRef.lottieEl?E&&this.toggleAnimation(Q,v.totalFrames):Q?this.initializeAnimationAsToggled(v.lottiePlayerProps,v.totalFrames):this.initializeAnimationAsUntoggled(v.lottiePlayerProps);v.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=v.type;this.lottiePlayerProps=this.computeLottiePlayerProps(v,V)}};
_.K.computeLottiePlayerProps=function(v,Q){var V=this.deepCloneLottiePlayerProps(v);Q?(Q=v.nameDarkTheme,v=v.pathDarkTheme):(Q=v.name,v=v.path);V.animationConfig.name=Q;(Q=As.get(v))?V.animationConfig.animationData=Q:V.animationConfig.path=v;return V};
_.K.initializeAnimationAsToggled=function(v,Q){v.animationConfig.initialSegment=[Q-1,Q]};
_.K.initializeAnimationAsUntoggled=function(v){v.animationConfig.initialSegment=void 0};
_.K.toggleAnimation=function(v,Q){if(v){var V;(V=this.animationRef.lottieEl)==null||V.playSegments([0,Q],!0)}else{var E;(E=this.animationRef.lottieEl)==null||E.playSegments([0,1],!0)}};
_.K.deepCloneLottiePlayerProps=function(v){var Q=Object.assign({},v.lottiePlayerProps.animationConfig);v=Object.assign({},v.lottiePlayerProps);v.animationConfig=Q;return v};
JD.prototype.handlePropertyChange=JD.prototype.handlePropertyChange;_.W([_.q(),_.X("design:type",Object)],JD.prototype,"animatedIcon",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JD.prototype,"active",void 0);_.W([_.q(),_.X("design:type",Boolean)],JD.prototype,"isDarkTheme",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],JD.prototype,"animatedIconType",void 0);_.W([_.q(),_.X("design:type",Boolean)],JD.prototype,"previousActive",void 0);
_.W([_.q(),_.X("design:type",Object)],JD.prototype,"lottiePlayerProps",void 0);_.W([_.q(),_.X("design:type",Object)],JD.prototype,"animationRef",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],JD.prototype,"delhiIconsEnabled",void 0);_.W([_.ph("animatedIcon","active","isDarkTheme"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],JD.prototype,"handlePropertyChange",null);_.W([_.D7({is:"yt-animated-icon",disableElementRegistration:!0})],JD);
_.B(JD,"yt-animated-icon",function(){if(Fgq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;bIp===void 0&&(bIp=document.createElement("template"));var E=bIp;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Fgq=v}v=Fgq;return v},{mode:2});var iIZ;var LgR;_.kW=_.x(function(v){var Q={value:null,cancelled:!1};_.j_(function(){Q.cancelled=!0});
var V=_.Rr(v.data,{equals:function(E,b){return E.iconName===b.iconName&&E.iconStyle===b.iconStyle&&E.iconSize===b.iconSize&&E.iconSetName===b.iconSetName&&E.iconSelected===b.iconSelected}},"ck24jb");
return _.P("span",{class:"yt-icon-shape",el:_.ud(function(E){_.uH(function(){var b,F=(b=v.options)==null?void 0:b.call(v);b=V();Bz3(E,Q,b,F)},"v878Je")})})},"ba");
_.kW.idomCompat=!0;var L10=["youtube_fill","youtube_outline"];var tJA=new _.gm({type:"iconset",value:void 0}),Nl=function(){var v=_.z.apply(this,arguments)||this;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.iconName="";v.iconsetName="yt-icons";v.iconset=null;v.missingIconSet=!1;v.iconType=null;v.iconShapeDataSignal=_.Ge(void 0,void 0,"TaEgXd");v.renderingOptionsSignal=_.Ge({iconWidth:"100%",iconHeight:"100%",iconFilter:v.iconFilter,iconColor:v.gradientColor},void 0,"a1vqYe");v.wizHasRendered=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return v};
_.f(Nl,_.z);Nl.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
Nl.prototype.handlePropertyChange=function(){var v=this,Q,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l;return _.e(function(S){switch(S.nextAddress){case 1:if(Q=!v.icon&&!v.iconName||!v.isAttached)return S.return();V=v;E=V.icon;b=V.size;F=V.defaultToFilled;t=V.active;p=V.targetContainer;v.toggleContainerClass(p);_.Y("kevlar_use_wil_icons")&&E&&(Z=kQB(E),v.iconType=Z.length?Z[1]:null);if(E){S.jumpTo(2);break}v.iconsetName="";v.iconName="";return S.yield(v.renderIcon(p,E),3);case 3:return S.return();case 2:d=pD8(E);
w=kQB(d);w.length&&(v.iconsetName=w[0],v.iconName=w[1]);if(!_.Y("kevlar_use_wil_icons")){S.jumpTo(4);break}A=Nl;k=eRN;T=v.iconType;c=v.active;C=v.defaultToFilled;R=v.size;l=v.iconsetName;return S.yield(ZIN(),6);case 6:return S.yield(k.call(A,T,c,C,R,l,S.yieldResult),5);case 5:v.iconShapeData=S.yieldResult;case 4:if(v.shouldRenderIconShape(p)){S.jumpTo(7);break}return S.yield(v.determineIconSet(d,t,F,b,p),7);case 7:return S.yield(v.renderIcon(p,E),0)}})};
Nl.prototype.toggleContainerClass=function(v){v?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var pD8=function(v){return!_.Y("default_to_innertube_icon")||v.indexOf(":")>0?v:_.VK(v)};
_.K=Nl.prototype;_.K.determineIconSet=function(v,Q,V,E){var b=this;return _.e(function(F){return F.nextAddress==1?_.Y("kevlar_system_icons")||_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.r7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?F.yield(b.switchToYtSysIconset(v,Q,V,E),3):F.jumpTo(2):F.nextAddress!=2?F.return():F.yield(b.useYtSysIconsetForMissingIcons(v,Q,V,E),0)})};
_.K.switchToYtSysIconset=function(v,Q,V,E){var b=this,F,t,p,Z,d,w,A;return _.e(function(k){switch(k.nextAddress){case 1:if(!v||b.iconsetName!=="yt-icons"&&b.iconsetName!=="yt-sys-icons"){k.jumpTo(0);break}F=kQB(v);t=F[1];var T=t;if(M90(T))t=T;else{var c=T=T.toLowerCase();(T=T1N.get(T))&&(c=T);t=c}_.Y("enable_polymer_icons_replace_underscores_dash")&&t.includes("_filled")&&(t=t.replace(/_filled/g,"-filled"));return k.yield(QK(t,!0),3);case 3:return p=k.yieldResult,k.yield(QK(t,!1),4);case 4:if((Z=
k.yieldResult)||Q&&p)b.iconsetName="yt-sys-icons";b.iconName=b.getIconName(t,Q,V,Z,p);if(E===24){k.jumpTo(0);break}d="yt-sys-icons"+E+":"+b.iconName;return k.yield(QK(d,!1,!0),6);case 6:return w=k.yieldResult,k.yield(QK(d,!0,!0),7);case 7:A=k.yieldResult;b.iconName=b.getIconName(t,Q,V,w,A);if(!Q&&w||Q&&A)b.iconsetName="yt-sys-icons"+E;_.q1(k)}})};
_.K.getIconName=function(v,Q,V,E,b){v.includes("-filled")&&(v=v.replace("-filled",""));return b&&(Q||V)?v+"-filled":v};
_.K.useYtSysIconsetForMissingIcons=function(v,Q,V,E){var b=this,F,t;return _.e(function(p){if(p.nextAddress==1)return b.iconsetName!=="yt-icons"?p.jumpTo(0):p.yield(QK(b.iconName,!1,!1,!0),3);if(p.nextAddress!=4)return F=p.yieldResult,p.yield(QK(b.iconName,!1),4);t=p.yieldResult;if(F||!t)return p.jumpTo(0);b.iconsetName="yt-sys-icons";return p.yield(b.switchToYtSysIconset(v,Q,V,E),0)})};
_.K.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var ZIN=function(){return _.e(function(v){try{return v.return(_.ht().resolve(_.Eo))}catch(Q){return v.return(new Promise(function(V){_.Zp().parkOrScheduleJob(function(){V(_.ht().resolve(_.Eo))},2,"ci")}))}})},eRN=function(v,Q,V,E,b,F){E=E===void 0?24:E;
if(v){v=v.toLowerCase();var t=v.endsWith("_filled")||v.endsWith("-filled");Q={iconName:v,iconStyle:(Q===void 0?0:Q)||(V===void 0?0:V)||t?"youtube_fill":"youtube_outline",iconSize:E,iconSetName:b===void 0?"yt-icons":b};V=!!F.resolveIcon(Q);V||(Q.iconSize=void 0,V=!!F.resolveIcon(Q));!V&&t&&(Q.iconName=v.substring(0,v.length-7),Q.iconSize=E,V=!!F.resolveIcon(Q),V||(Q.iconSize=void 0,V=!!F.resolveIcon(Q)));V||(Q.iconStyle=void 0,V=!!F.resolveIcon(Q));V||_.Iy(new _.xd("Icon not supported",{iconName:Q.iconName,
iconStyle:Q.iconStyle,iconSize:Q.iconSize,iconType:v}));return V?Q:void 0}};
_.K=Nl.prototype;_.K.shouldRenderIconShape=function(v){if(!_.Y("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;v=this.getContainer(v);return!zCB(v,this.icon)};
_.K.renderIcon=function(v,Q){var V=this,E,b,F,t,p,Z,d,w;return _.e(function(A){switch(A.nextAddress){case 1:if(Q&&V.icon!==Q)return A.return();E=V.getContainer(v);b=zCB(E,V.icon);if(V.shouldRenderIconShape(v)&&V.iconType)return V.applyIconShape(b,E),A.return();V.removeIconShape();if(!E)return A.return();V.iconName===""&&V.iconset&&E&&(V.removeStaticIcon(V.iconset,E),b&&V.removeAnimatedIcon(E));if(V.iconName===""&&V.iconset||!V.iconsetName||!tJA)return A.return();V.iconset=tJA.byKey(V.iconsetName);
if(!V.iconset)return V.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Lh(V,V.onIconsetAdded)),A.return();V.missingIconSet&&(V.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Lh(V,V.onIconsetAdded)));t=(F=b||V.isAnimatedIcon?lS3(V.icon):void 0)&&!F.lazyLoad;Z=F&&((p=F)==null?void 0:p.lazyLoad)&&(F.lottiePlayerProps.animationConfig.animationData?!0:As.get(V.isDarkTheme?F.pathDarkTheme:F.path)?!0:!1);if(t||Z)return V.applyAnimatedIcon(E,F,V.iconset),A.return();if(Z||
(d=F)==null||!d.lazyLoad){A.jumpTo(2);break}w=NzG(F,V.isDarkTheme);V.applyStaticIcon(V.iconset,E,V.iconName,v,b);return A.yield(w,3);case 3:return A.yield(V.renderIcon(V.targetContainer,V.icon),4);case 4:return A.return();case 2:V.applyStaticIcon(V.iconset,E,V.iconName,v,b),_.q1(A)}})};
_.K.getContainer=function(v){var Q,V=(Q=VRo(this.hostElement))==null?void 0:Q.host;Q=!!V&&!!V.polymerController;if(!v||Q)return v?this.getTargetContainer(v,V):this.hostElement};
_.K.getTargetContainer=function(v,Q){var V=_.m9(Q).querySelector("#"+v);V||(v=new _.xd("yt-icon container missing",Q.is,v),_.ro(v));return V};
_.K.applyStaticIcon=function(v,Q,V,E,b){b&&this.removeAnimatedIcon(Q);this.removeIconShape();b=b&&!!this.iconType&&!!this.iconShapeData&&_.Y("kevlar_use_wil_icons");try{b?this.applyIconShape(!1,Q):v.applyIcon(Q,V)}catch(F){this.handleError(F,E,Q)}};
_.K.applyIconShape=function(v,Q){this.iconset&&Q&&(this.removeStaticIcon(this.iconset,Q),v&&this.removeAnimatedIcon(Q));v={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var V=_.L(this.iconShapeDataSignal);Q=V.next().value;V=V.next().value;var E=_.L(this.renderingOptionsSignal),b=E.next().value;E=E.next().value;V(this.iconShapeData);E(v);if(!this.wizHasRendered)for(this.wizHasRendered=!0,v=_.L(gVr(Q,b)).next().value;v.firstChild;)_.m9(this.hostElement).appendChild(v.firstChild)};
_.K.removeIconShape=function(){if(_.Y("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.K.removeStaticIcon=function(v,Q){v.removeIcon(Q)};
_.K.applyAnimatedIcon=function(v,Q,V){this.removeStaticIcon(V,v);this.removeIconShape();var E;V=this.animatedIconElement&&((E=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:E.type)===Q.type;if(this.animatedIconElement&&V){this.animatedIconElement.polymerController.animatedIcon=Q;var b;((b=this.animatedIconElement)==null?void 0:b.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(v),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=Q,this.animatedIconElement.polymerController.active=this.active,_.Y("delhi_modern_web_player_icons")?(Q=qzr(v,this.icon)&&v.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=Q?Q.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.Y("kevlar_use_wil_icons")?
v.insertBefore(this.animatedIconElement,v.childNodes[0]):(v=_.m9(v),v.insertBefore(this.animatedIconElement,v.childNodes[0]))};
_.K.removeAnimatedIcon=function(v){_.Y("kevlar_use_wil_icons")?this.animatedIconElement&&v.contains(this.animatedIconElement)&&v.removeChild(this.animatedIconElement):(v=_.m9(v),this.animatedIconElement&&v.contains(this.animatedIconElement)&&v.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.K.handleError=function(v,Q,V){_.Hx(v,this.iconName,Q,V);Q=zCB(V,this.icon);var E=!1;window.location.href.includes("JpymaW6Lh2w")?E=!0:V._svgIcon&&(V=(V=V._svgIcon.parentNode)?V.tagName:"unknown",_.Hx(v,V),V==="YT-ICON"&&v.name==="NotFoundError"?E=!0:v.name==="NotFoundError"&&Q&&(E=!0));E?_.Iy(v):_.ro(v)};
_.hr.Object.defineProperties(Nl,{template:{configurable:!0,enumerable:!0,get:function(){if(LgR===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;
iIZ===void 0&&(iIZ=document.createElement("template"));var E=iIZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);LgR=v}v=LgR;return v}}});
Nl.prototype.handlePropertyChange=Nl.prototype.handlePropertyChange;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Nl.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",String)],Nl.prototype,"icon",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Nl.prototype,"active",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Nl.prototype,"defaultToFilled",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Nl.prototype,"isAnimatedIcon",void 0);
_.W([_.q({value:24}),_.X("design:type",Number)],Nl.prototype,"size",void 0);_.W([_.q({value:""}),_.X("design:type",String)],Nl.prototype,"targetContainer",void 0);_.W([_.q(),_.X("design:type",Object)],Nl.prototype,"animatedIconElement",void 0);_.W([_.q(),_.X("design:type",Object)],Nl.prototype,"isDarkTheme",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Nl.prototype,"ariaHidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Nl.prototype,"ariaLabel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Nl.prototype,"role",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Nl.prototype,"tabindex",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Nl.prototype,"title",void 0);_.W([_.q(),_.X("design:type",String)],Nl.prototype,"style",void 0);_.W([_.q(),_.X("design:type",String)],Nl.prototype,"iconFilter",void 0);_.W([_.q(),_.X("design:type",String)],Nl.prototype,"gradientColor",void 0);
_.W([_.ph("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],Nl.prototype,"handlePropertyChange",null);_.W([_.D7({is:"yt-icon",noInjection:!0})],Nl);var sL0="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),jLo=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var PeQ={};PeQ.YtPlaintextBehavior=[_.zI,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(v){v.preventDefault();v=v.clipboardData.getData("text/plain");document.execCommand("insertText",!1,v)},
preventRichTextFormatting_:function(v){_.KN&&(v=v.detail.keyboardEvent,v.stopImmediatePropagation(),v.preventDefault())}}];var d8S;var hR8;var xc=function(){var v=_.z.apply(this,arguments)||this;v.ignoreShadyDom=!1;v.hasChange_=!1;v.hasSetTitle_=!1;v.useIOObserverForVisibilityLogging_=_.Y("kevlar_use_vimio_behavior")&&_.r7("INNERTUBE_CLIENT_NAME")==="WEB";v.ytFormattedStringObserverHandlerKeys_=void 0;return v};
_.f(xc,_.z);_.K=xc.prototype;_.K.created=function(){this.useIOObserverForVisibilityLogging_=_.Y("kevlar_use_vimio_behavior")&&_.r7("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.K.ready=function(){_.r7("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_()};
_.K.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.K.detached=function(){this.unobserveIOObservers_()};
_.K.clearContents_=function(){for(var v=this.getRoot(),Q=v.lastChild;Q&&Q.tagName!=="STYLE";){try{v.removeChild(Q)}catch(V){break}Q=v.lastChild}};
_.K.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var v=_.L(this.ytFormattedStringObserverHandlerKeys_),Q=v.next();!Q.done;Q=v.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(Q.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.K.resetForAttributedString=function(){var v=this.getRoot();!v.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),v.appendChild(this.ytAttributedStringElementRef))};
_.K.resetForFormattedString=function(){var v=this.getRoot(),Q=v.querySelector("yt-attributed-string");Q&&(this.ytAttributedStringElementRef=v.removeChild(Q))};
_.K.textChanged=function(){this.textChanged_(this.text)};
_.K.textChanged_=function(v){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!v||!v.runs&&!v.simpleText;if(_.Y("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var Q=this.hostElement.firstChild;Q&&Q.nodeName==="FONT";){var V=Q;Q=Q.nextSibling;this.hostElement.removeChild(V)}Q=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
V=v.simpleText;var E;!V&&((E=v.runs)==null?void 0:E.length)===1&&this.isSimpleString_(v.runs[0])&&(V=v.runs[0].text);V!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.r7("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(V!==void 0){try{Q.textContent=V}catch(b){}Q.textContent||(this.isEmpty=!0)}else v=v.runs,V!==void 0&&(v=[{text:V}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),v&&this.updateText_(v),
Q.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.K.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)};
_.K.computeAriaLabel_=function(v){return v};
_.K.computeEllipsisTruncateStyling=function(v,Q){return v&&!Q};
_.K.computeUseAttributedString=function(v){return _.Y("web_replace_formatted_with_attributed_string")&&KnE(v)&&!this.disableAttributedString&&!this.enableContentEditable};
_.K.setNodeStyle_=function(v,Q){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.Y("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?Q.removeAttribute("dir"):Q.setAttribute("dir","auto");Q.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");Q.style.color="";var V=null;this.noStyles||(v.bold&&(Q.classList.add("bold"),V="bold"),v.deemphasize&&(Q.classList.add("deemphasize"),V="deemphasize"),v.italics&&Q.classList.add("italic"),
v.strikethrough&&Q.classList.add("strikethrough"),v.errorUnderline&&(Q.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),v.bracket&&Q.classList.add("bracket"),v.textColor&&(Q.style.color=_.GA(v.textColor)));V!==Q.getAttribute("style-target")&&(V?Q.setAttribute("style-target",V):Q.removeAttribute("style-target"))};
_.K.setUpVisibilityLogging_=function(v,Q){var V=this;this.setNodeTrackingParams_(v,Q);var E;((E=Q.data)==null?0:E.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(v=this.ytRendererBehavior.visibilityObserver.observe(Q,function(b){var F=V.ytRendererBehavior.getVisibilityLogger();F&&F.reportShown(b)},this.ytRendererBehavior.visibilityOptionVisible_),Q=this.ytRendererBehavior.visibilityObserver.observe(Q,function(b){var F=V.ytRendererBehavior.getVisibilityLogger();
F&&F.reportHidden(b)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(v),this.ytFormattedStringObserverHandlerKeys_.push(Q))};
_.K.setNodeTrackingParams_=function(v,Q){Q.data||(Q.data={});if((v=v.loggingDirectives?v.loggingDirectives.trackingParams:null)||Q.data.trackingParams)Q.data.trackingParams=v};
_.K.computeHasLinkOnly_=function(v){return!(!v||v.length!==1||this.noEndpoints||!v[0].navigationEndpoint)};
_.K.getRoot=function(){var v=this.buildScopeDomOptions();return this.enableContentEditable?_.m9(_.m9(this.hostElement,v).querySelector("[contenteditable]")):_.m9(this.hostElement,v)};
_.K.fixContenteditableScope=function(){var v=function(Q){Q&&(Q.nodeType===1&&Q.classList&&(Q.classList.add("style-scope"),Q.classList.add("yt-formatted-string")),Q.childNodes&&Q.childNodes.forEach(function(V){v(V)}))};
v(this.getRoot())};
_.K.updateText_=function(v){for(var Q=v.length,V=this.getRoot(),E=V.firstChild;E&&E.nodeName==="STYLE";)E=E.nextSibling;for(var b=0;b<Q&&E;){var F=v[b],t=_.Y("remove_cr_char")&&F.text?F.text.replace("\r",""):F.text;if(this.isSimpleString_(F)&&!this.useMixedDirectionFormattedStrings)if(E.nodeName==="#text"){E.textContent!=t&&(E.textContent=t);b++;E=E.nextSibling;continue}else break;if(_.y(F,fx))break;else if(!this.noEndpoints&&F.navigationEndpoint){if(E.nodeName!=="A")break;this.setDataOnAnchor_(E,
F.navigationEndpoint)}else if(E.nodeName!=="SPAN")break;this.setNodeStyle_(F,E);this.setUpVisibilityLogging_(F,E);E.textContent!=t&&(E.textContent=t);b++;E=E.nextSibling}if(E)for(F=V.lastChild,E=b?E.previousSibling:null;F&&F!=E;){try{V.removeChild(F)}catch(p){break}F=V.lastChild}b!==Q&&this.addTextNodes_(v,b)};
_.K.addTextNodes_=function(v,Q){for(var V=document.createDocumentFragment(),E=v.length;Q<E;Q++){var b=v[Q],F=_.Y("remove_cr_char")&&b.text?b.text.replace("\r",""):b.text;if(this.isSimpleString_(b)&&!this.useMixedDirectionFormattedStrings)V.appendChild(document.createTextNode(F));else{var t=_.y(b,fx);if(t){if(t.image){var p=document.createElement("img");t.isCustomEmoji||p.classList.add("small-emoji");p.classList.add("emoji");t.isCustomEmoji&&(p.dataset.emojiId=t.emojiId);p.src=_.rE(t.image.thumbnails,
this.emojiSize);(b=this.get("image.accessibility.accessibilityData.label",t))?p.alt=b:t.shortcuts&&t.shortcuts.length>0?p.alt=t.shortcuts[0]:t.emojiId&&(p.alt=t.emojiId);V.appendChild(p);this.hasEmoji=!0}}else!this.noEndpoints&&b.navigationEndpoint?(p=document.createElement("a"),p.classList.add("yt-simple-endpoint"),p.setAttribute("spellcheck","false"),this.setDataOnAnchor_(p,b.navigationEndpoint)):p=document.createElement("span"),this.setNodeStyle_(b,p),this.setUpVisibilityLogging_(b,p),p.appendChild(document.createTextNode(F)),
V.appendChild(p)}}this.getRoot().appendChild(V)};
_.K.isSimpleString_=function(v){return(this.noEndpoints||!v.navigationEndpoint)&&!_.y(v,fx)&&(this.noStyles||!(v.bold||v.deemphasize||v.italics||v.strikethrough||v.errorUnderline||v.bracket||v.textColor))&&!v.loggingDirectives};
_.K.getRawText=function(){return _.j0(this.text)};
_.K.getFirstRunText=function(){var v;if(((v=this.text)==null?0:v.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.K.setFirstRunText=function(v){var Q;((Q=this.text)==null?0:Q.runs)&&this.text.runs[0]&&(this.text.runs[0].text=v,this.textChanged_(this.text))};
_.K.setDataOnAnchor_=function(v,Q){var V=this;!_.Y("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(Q)||this.isSignalServiceEndpoint_(Q)?(v.onclick=this.serviceEndpointHandler_(Q),$P(v,"#")):vlG({text:this.text,command:Q},function(){Z4b(v,Q,V.target)})};
_.K.isServiceEndpoint_=function(v){var Q;return!((Q=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null||!Q.sendPost)};
_.K.isSignalServiceEndpoint_=function(v){return!!_.y(v,_.F$)};
_.K.serviceEndpointHandler_=function(v){var Q=this;return function(V){_.vp(Q.hostElement,[v]);V.preventDefault()}};
_.K.overrideAriaLabelChanged_=function(){var v=this.getRoot();this.enableContentEditable&&v&&v.setAttribute("aria-label",this.overrideAriaLabel)};
_.K.enableContentEditableChanged_=function(){var v=this,Q=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),Q=_.m9(this.hostElement,Q),!Q.lastChild||Q.lastChild instanceof HTMLElement&&Q.lastChild.id!=="contenteditable-root"){var V=document.createElement("div");V.id="contenteditable-root";V.setAttribute("contenteditable","true");V.setAttribute("dir","auto");V.onfocus=function(){v.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
Q.appendChild(V);this.overrideAriaLabel&&V.setAttribute("aria-label",this.overrideAriaLabel)}}else V=_.Up(this.hostElement).firstChild,V instanceof HTMLElement&&V.id==="contenteditable-root"&&_.m9(this.hostElement,Q).removeChild(V)};
_.K.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.K.getNodesForVisibilityLogging_=function(){return _.U$(this.getRoot().childNodes,function(v){var Q;return!((Q=v.data)==null||!Q.trackingParams)})};
_.K.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.K.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var v=this.ytRendererBehavior.getVisibilityLogger();v&&this.getNodesForVisibilityLogging_().forEach(function(Q){v.reportShown(Q)})}};
_.K.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var v=this.ytRendererBehavior.getVisibilityLogger();v&&this.getNodesForVisibilityLogging_().forEach(function(Q){v.reportHidden(Q)})}};
_.hr.Object.defineProperties(xc.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.Y("enable_mixed_direction_formatted_strings")}}});
xc.prototype.enableContentEditableChanged_=xc.prototype.enableContentEditableChanged_;xc.prototype.overrideAriaLabelChanged_=xc.prototype.overrideAriaLabelChanged_;xc.prototype.ellipsisTruncateChanged_=xc.prototype.ellipsisTruncateChanged_;xc.prototype.textChanged=xc.prototype.textChanged;_.W([_.M(PeQ.YtPlaintextBehavior),_.X("design:type",Object)],xc.prototype,"ytPlaintextBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],xc.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xc.prototype,"text",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"noEndpoints",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"noStyles",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xc.prototype,"isDarkTheme",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],xc.prototype,"splitLines",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xc.prototype,"forceDefaultStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xc.prototype,"ellipsisTruncate",void 0);_.W([_.q(),_.X("design:type",Object)],xc.prototype,"ignoreShadyDom",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.X("design:type",Boolean)],xc.prototype,"ellipsisTruncateStyling",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.X("design:type",String)],xc.prototype,"ariaLabel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xc.prototype,"isEmpty",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.X("design:type",Boolean)],xc.prototype,"hasLinkOnly_",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"hasEmoji",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"disableAttributedString",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"isOverlay",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"linkInheritColor",void 0);
_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"noPreWrap",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"userInput",void 0);_.W([_.q({value:16}),_.X("design:type",Number)],xc.prototype,"emojiSize",void 0);_.W([_.q(),_.X("design:type",String)],xc.prototype,"target",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"enableContentEditable",void 0);_.W([_.q(),_.X("design:type",String)],xc.prototype,"overrideAriaLabel",void 0);
_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"respectHtmlDir",void 0);_.W([_.q(),_.X("design:type",Boolean)],xc.prototype,"respectLangDir",void 0);_.W([_.O("plaintextOnly"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],xc.prototype,"useMixedDirectionFormattedStrings",null);_.W([_.q({computed:"computeUseAttributedString(text)"}),_.X("design:type",Boolean)],xc.prototype,"useYtAttributedString",void 0);
_.W([_.ph("text"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xc.prototype,"textChanged",null);_.W([_.ph("ellipsisTruncate"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xc.prototype,"ellipsisTruncateChanged_",null);_.W([_.ph("overrideAriaLabel"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xc.prototype,"overrideAriaLabelChanged_",null);
_.W([_.ph("enableContentEditable"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xc.prototype,"enableContentEditableChanged_",null);_.W([_.D7({is:"yt-formatted-string",disableElementRegistration:!0})],xc);
_.B(xc,"yt-formatted-string",function(){if(hR8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden$="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;d8S===void 0&&(d8S=document.createElement("template"));var E=d8S;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);hR8=v}v=hR8;return v});var wDZ;var AuA;var kKx;var TUp;var B6=function(){var v=_.z.apply(this,arguments)||this;v.focused=!1;v.disabled=!1;v.isOverlay=!1;return v};
_.f(B6,_.z);B6.prototype.triggerDown=function(){if(!this.disabled){_.VE(this.hostElement,"down",!0);var v;(v=this.currentAnimation)==null||v.cancel()}};
B6.prototype.triggerUp=function(){if(!this.disabled){_.VE(this.hostElement,"down",!1);var v=this.fillElement;var Q=this.strokeElement;typeof GroupEffect==="function"?(v=new GroupEffect([gMb(v),sfQ(Q)]),v=new Animation(v,document.timeline)):v=new uha(v,Q);this.currentAnimation=v;var V;(V=this.currentAnimation)==null||V.play()}};
_.W([_.Z7(".stroke"),_.X("design:type",HTMLElement)],B6.prototype,"strokeElement",void 0);_.W([_.Z7(".fill"),_.X("design:type",HTMLElement)],B6.prototype,"fillElement",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],B6.prototype,"focused",void 0);_.W([_.q(),_.X("design:type",Object)],B6.prototype,"disabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],B6.prototype,"isOverlay",void 0);_.W([_.D7({is:"yt-interaction",disableElementRegistration:!0})],B6);
_.B(B6,"yt-interaction",function(){if(TUp===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;kKx===void 0&&(kKx=document.createElement("template"));var E=kKx;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);TUp=v}v=TUp;return v},{mode:2});var gx=function(){return _.z.apply(this,arguments)||this};
_.f(gx,_.z);_.K=gx.prototype;_.K.ready=function(){var v=this,Q=_.m9(this.hostElement).querySelector("#button");Q.addEventListener("focus",function(){PQV||(PQV=new Z9A);v.keyboardFocused=PQV.isKeyBoardInUse()});
Q.addEventListener("blur",function(){v.keyboardFocused=!1;v.rippleUp_()})};
_.K.computeTabIndex_=function(v){return v?-1:0};
_.K.computeButtonAriaPressed_=function(v){if(this.toggleable)return v?"true":"false"};
_.K.rippleDown_=function(){_.m9(this.hostElement).querySelector("#interaction").triggerDown()};
_.K.rippleUp_=function(){_.m9(this.hostElement).querySelector("#interaction").triggerUp()};
_.K.onPressedChanged_=function(){var v=_.Up(_.m9(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Up(_.m9(this.hostElement).querySelector("#button")).children[0];v&&(v.active=this.pressed)};
gx.prototype.onPressedChanged_=gx.prototype.onPressedChanged_;gx.prototype.rippleUp_=gx.prototype.rippleUp_;gx.prototype.rippleDown_=gx.prototype.rippleDown_;_.W([_.q(),_.X("design:type",String)],gx.prototype,"label",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],gx.prototype,"disabled",void 0);_.W([_.q(),_.X("design:type",Boolean)],gx.prototype,"pressed",void 0);_.W([_.q(),_.X("design:type",Object)],gx.prototype,"toggleable",void 0);
_.W([_.q(),_.X("design:type",Boolean)],gx.prototype,"untabbable",void 0);_.W([_.q(),_.X("design:type",Boolean)],gx.prototype,"keyboardFocused",void 0);_.W([_.tM("down"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gx.prototype,"rippleDown_",null);_.W([_.tM("up"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gx.prototype,"rippleUp_",null);
_.W([_.ph("pressed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gx.prototype,"onPressedChanged_",null);_.W([_.D7({is:"yt-icon-button",disableElementRegistration:!0})],gx);
_.B(gx,"yt-icon-button",function(){if(AuA===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;wDZ===void 0&&(wDZ=document.createElement("template"));var E=wDZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);AuA=v}v=AuA;return v},{mode:2});var Y4N;var yuS=function(){var v=document.body,Q=v.appendChild;if(Y4N===void 0){var V=document.createElement("template");_.G(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>');
Y4N=V}V=Y4N;Q.call(v,V.content)};
document.body?yuS():window.addEventListener("DOMContentLoaded",yuS);var cux=_.s$(["aria-"]),sA={};sA.YtRenderButtonBehavior=[_.H.YtRendererBehavior,_.ql.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!!_.ht().resolve(_.d$(_.Yc))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var v=this.computeHref_(this.endpoint,!0);v?$P(this.elements_.endpoint,v):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){v=this.buttonClass.split(" ");v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,_.VE(this.hostElement,Q,!0),this.elements_.button&&_.VE(this.elements_.button,Q,!0),this.elements_.text&&_.VE(this.elements_.text,Q,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(v=null,this.buttonAccessibility&&(v=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=v:v?_.p$([_.hd(cux)],this.elements_.button,"aria-label",v):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var v=_.ht().resolve(_.d$(_.Yc));v&&(this.keyboardFocused=v.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.wx("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,_.wi(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.wi(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(v,Q){if(Q)for(v=Q.split(" "),v=_.L(v),Q=v.next();!Q.done;Q=v.next())Q=Q.value,_.VE(this.hostElement,Q,!1),this.elements_.button&&_.VE(this.elements_.button,Q,!1),this.elements_.text&&_.VE(this.elements_.text,Q,!1)},
buttonIconChanged_:function(v){this.elements_.icon?v?(this.elements_.icon.icon=v,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.wi(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.EJ(this.hostElement,"is-paper-button-with-icon",!1)):v&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.wi(this.elements_.button).appendChild(this.elements_.icon):_.wi(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.EJ(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(v){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,v){var Q=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(v){case "yt_icon_button_with_label":Q=!0;_.VE(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();v=_.wi(this.elements_.button).firstElementChild;
this.elements_.icon=v;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.wi(this.elements_.endpoint).appendChild(this.elements_.button);_.wi(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.wx("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;_.wi(this.elements_.button).appendChild(this.elements_.text);_.wi(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":Q=!0,this.elements_.button=this.getYtIconButton_(),v=_.wi(this.elements_.button).firstElementChild,this.elements_.icon=v,this.setIconActive_(this.elements_.icon),
_.wi(this.elements_.endpoint).appendChild(this.elements_.button)}_.EJ(this.hostElement,"is-icon-button",Q);_.EJ(this.hostElement,"is-paper-button",!Q);_.EJ(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;_.m9((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&&_.wi(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(v){if(v!=void 0||this.disabled)this.disabled=v,this.elements_.button&&(this.elements_.button.disabled=v)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(v){_.Y("kevlar_system_icons")&&v&&this.data&&(this.data.isSelected!==void 0?v.active=this.data.isSelected:this.data.isToggled!==void 0&&(v.active=this.data.isToggled))},
observeBasicPalette_:function(v){_.Tr(this.hostElement,v)},
disabledChanged_:function(v){this.data&&this.set("data.isDisabled",v)},
onYtButtonTap_:function(v){if(this.disabled)v.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.vp(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(v=this.disableCommandHandlerOverride,!this.data||!this.data.command||v||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.Y("handle_service_request_actions")||_.vp(this.hostElement,[this.serviceEndpoint]),
_.Hj(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.Y("handle_service_request_actions")?(v=[],this.serviceEndpoint&&v.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&v.push(this.data.command),v.length&&_.Qk(this.hostElement,v,this.hostElement)):this.data&&this.data.command&&(v=this.data.command,v.accountUnlinkCommand||v.accountLinkCommand||v.insertAdCommand||v.insertHighlightMarkerCommand||
v.createLivestreamHighlightClipCommand||v.getVideoUploadFeedbackCommand||v.musicDeletePrivatelyOwnedEntityCommand||v.ypcCancelRecurrenceEndpoint||v.getMultiSelectCommandEndpoint?_.vp(this.hostElement,[v]):_.Qk(this.hostElement,[v],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var v,Q=_.m9((v=this.container.hostElement)!=null?v:this.container);Q.lastChild&&Q.lastChild.tagName!="STYLE";)try{Q.removeChild(Q.lastChild)}catch(V){break}},
getYtIconButton_:function(){var v=this.reuseEnabled_()?_.wx("yt-icon-button"):document.createElement("yt-icon-button"),Q=_.wi(v).firstElementChild;if(Q&&Q.is!="yt-icon"){for(Q=_.wi(v);Q.lastChild;)Q.removeChild(Q.lastChild);Q=null}Q||(Q=this.getIcon_(),this.setIconActive_(Q),_.wi(v).appendChild(Q));return v},
reuseEnabled_:function(){return _.Y("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.wx("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.wx("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.fUq={};
_.fUq.YtButtonBehavior=[sA.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var v=this.data;v&&(this._setEndpoint(this.computeEndpoint_(v)),this._setServiceEndpoint(this.computeServiceEndpoint_(v)),this._setCommand(this.computeCommand_(v)),this._setButtonIcon(this.computeButtonIcon_(v)),this._setButtonText(this.computeButtonText_(v,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(v)),this._setButtonTooltip(this.computeTooltip_(v)),this._setButtonClass(this.computeButtonClass_(v)),this._setIconPositionType(this.computeIconPositionType_(v)),this.updateRenderedElements())},
setPressedState:function(v){var Q;if((Q=this.elements_)==null?0:Q.button)this.elements_.button.pressed=!!v},
computeIconPositionType_:function(v){return v&&v.iconPosition||null},
computeEndpoint_:function(v){var Q=v&&v.navigationEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.url"),E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Q?Q:v&&v.command&&v.command.modalEndpoint?v.command:V&&!E&&v.command?v.command:null},
computeServiceEndpoint_:function(v){var Q=v&&v.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Q?Q:V&&v.command?v.command:null},
computeCommand_:function(v){return v&&v.command||null},
computeButtonIcon_:function(v){return v&&v.icon&&v.icon.iconType?_.VK(v.icon.iconType):null},
computeButtonText_:function(v,Q){return!Q&&v&&v.text||null},
computeAccessibility_:function(v){return this.get("accessibilityData.accessibilityData",v)||v&&v.accessibility||(v&&v.text?{label:this.getSimpleString(v.text)}:null)},
computeTooltip_:function(v){return v?v.isDisabled&&v.disabledTooltip||v.tooltip||null:null},
computeButtonClass_:function(v){var Q=v&&v.style?v.style.toLowerCase().replace(/_/g,"-")+" ":"";Q+=v&&v.size?v.size.toLowerCase().replace(/_/g,"-")+" ":"";v.colorData&&v.colorData.basicColorPaletteData&&v.colorData.basicColorPaletteData.borderColor&&(Q+="palette-with-border");return Q.trim()}}];var YW={};var GKZ;var Cep;var MJZ,OI8=function(){return MJZ!==void 0?MJZ:MJZ=document.createElement("template")};
document.head.appendChild(OI8().content);var D8a;var RRV,nMR=function(){return RRV!==void 0?RRV:RRV=document.createElement("template")};
document.head.appendChild(nMR().content);var lUV;var q4V,S4N=function(){return q4V!==void 0?q4V:q4V=document.createElement("template")};
document.head.appendChild(S4N().content);var zRa;var Jux=document.head,NUp=Jux.appendChild,x88;if(zRa===void 0){var BUV=document.createElement("template");_.G(BUV,"\x3c!--css-build:shady--\x3e");BUV.content.insertBefore(S4N().content.cloneNode(!0),BUV.content.firstChild);zRa=BUV}x88=zRa;NUp.call(Jux,x88.content);var gMx=document.head,sfa=gMx.appendChild,uka;if(lUV===void 0){var jfR=document.createElement("template");_.G(jfR,"\x3c!--css-build:shady--\x3e");jfR.content.insertBefore(nMR().content.cloneNode(!0),jfR.content.firstChild);lUV=jfR}uka=lUV;sfa.call(gMx,uka.content);var Wga=document.head,oMa=Wga.appendChild,XDZ;if(D8a===void 0){var aUQ=document.createElement("template");_.G(aUQ,"\x3c!--css-build:shady--\x3e");aUQ.content.insertBefore(OI8().content.cloneNode(!0),aUQ.content.firstChild);D8a=aUQ}XDZ=D8a;oMa.call(Wga,XDZ.content);var ruZ;_.yZ("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ruZ=_.Y("web_button_rework")&&_.mX("BUTTON_REWORK")||_.Y("web_button_rework_with_live");_.u6=function(){return _.z.apply(this,arguments)||this};
_.f(_.u6,_.z);_.u6.prototype.created=function(){this.openPopupConfig=_.r7("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.u6.prototype.onYtNavigate_=function(v){var Q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);Q&&(this.ytOpenPopupBehavior.openPopup(Q),v.stopPropagation(),v.preventDefault())};
_.hr.Object.defineProperties(_.u6,{template:{configurable:!0,enumerable:!0,get:function(){if(Cep===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;GKZ===void 0&&(GKZ=document.createElement("template"));var E=GKZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Cep=v}v=Cep;return v}}});
_.u6.prototype.onYtNavigate_=_.u6.prototype.onYtNavigate_;_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],_.u6.prototype,"ytOpenPopupBehavior",void 0);_.W([_.M(_.fUq.YtButtonBehavior),_.X("design:type",Object)],_.u6.prototype,"ytButtonBehavior",void 0);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],_.u6.prototype,"onYtNavigate_",null);
_.W([_.D7({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ruZ})],_.u6);var $8x;var IUR=_.Y("web_button_rework")&&_.mX("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),jI=function(){var v=_.z.apply(this,arguments)||this;v.isPressed=!1;v.forceIconButton=!1;v.forceIconOnly=!1;v.forceModernIconButton=!1;v.skipCommandHandling=!1;v.alignByText=!1;v.fitToVisibleBounds=!0;v.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};v.onTap=function(Q){_.Hj(v.hostElement,"yt-service-request-sent-button-renderer",Q)};
return v};
_.f(jI,_.z);_.K=jI.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.K.onClick=function(v){var Q,V=this.disabled||((Q=this.data)==null?void 0:Q.isDisabled);Q=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");V&&Q&&v.stopPropagation()};
_.K.computeIcon=function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.icon)==null?void 0:Q.iconType;if(V)return _.VK(V)};
_.K.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.K.handleUpdateButtonAction=function(v){v=_.y(v,vmS);var Q=_.y(v==null?void 0:v.updatedButton,_.KH);if(this.data&&v&&Q){var V=this.data;V.targetId&&v.targetId&&V.targetId===v.targetId&&(this.data=Q)}};
_.hr.Object.defineProperties(jI.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var v=this;if(this.data){var Q=$xr({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Hj(v.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Hj(v.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});Q.alignByText=this.alignByText;return Q}}}});
_.hr.Object.defineProperties(jI,{template:{configurable:!0,enumerable:!0,get:function(){if($8x===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');$8x=v}v=$8x;return v}}});
jI.prototype.onClick=jI.prototype.onClick;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],jI.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"isPressed",void 0);
_.W([_.q(),_.X("design:type",Object)],jI.prototype,"forceIconButton",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"forceIconOnly",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"forceModernIconButton",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"skipCommandHandling",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"alignByText",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"buttonTooltipPosition",void 0);
_.W([_.q(),_.X("design:type",Object)],jI.prototype,"fitToVisibleBounds",void 0);_.W([_.q({computed:"computeTooltip(data)"}),_.X("design:type",Object)],jI.prototype,"tooltip",void 0);_.W([_.q(),_.X("design:type",Object)],jI.prototype,"overrides",void 0);_.W([_.q(),_.X("design:type",Boolean)],jI.prototype,"disabled",void 0);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],jI.prototype,"onClick",null);
_.W([_.O("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.X("design:type",Object),_.X("design:paramtypes",[])],jI.prototype,"computedButtonShape",null);_.W([_.D7({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!IUR,cssBuildOptOut:!0}),_.D7({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!IUR,cssBuildOptOut:!0})],jI);var HIA;var m8Z;var W6=function(){var v=_.z.apply(this,arguments)||this;v.empty_=!0;v.loadTime=Infinity;v.pendingPaint=!1;v.hasChange_=!1;v.oldThumbnail_=null;v.oldDelayedSrc_="";v.objectURL_=null;return v};
_.f(W6,_.z);_.K=W6.prototype;_.K.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.K.ready=function(){var v=this.shouldShowPlaceholder_();_.VE(this.hostElement,"no-transition",!0);v&&this.hostElement.classList.add("with-placeholder")};
_.K.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.K.isThumbPreloaded_=function(v){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",v)};
_.K.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||U8N};
_.K.computeThumbnailSrc_=function(v){return v&&v.thumbnails?_.rE(v.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.K.computeAlt_=function(){var v=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&v||""};
_.K.thumbnailChanged_=function(){var v=_.L([this.thumbnail,this.oldThumbnail_]),Q=v.next().value;v=v.next().value;this.oldThumbnail_=Q;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(v=this.computeThumbnailSrc_(v),this.computeThumbnailSrc_(Q)===v))return;_.Y("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(Q)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):Q&&_.mX("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.PE(this,this.onReload_):_.PE(this,this.onShow_):this.resetImage_();Q&&(this.hostElement.style.opacity=""+Q.opacity)}};
_.K.delayedSrcChanged_=function(){var v=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===v||this.resetImage_()};
_.K.setSrc_=function(v){v?(_.m9(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.m9(this.hostElement).querySelector("#img").src=v):(_.m9(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.K.resetImage_=function(){Hkh(this.hostElement);this.empty_=!0;this.setSrc_(U8N);this.ytRendererBehavior.invalidate(!1)};
_.K.observePlaceholderColor_=function(){var v=this.thumbnail&&this.thumbnail.placeholderColor;v?this.hostElement.style.backgroundColor=_.GA(v):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.K.onLoad_=function(){_.m9(this.hostElement).querySelector("#img").src&&_.m9(this.hostElement).querySelector("#img").src!==U8N&&(IKQ(this.hostElement),this.notifyOnLoaded&&_.Hj(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.K.onError_=function(){var v=this;if(_.Y("web_use_cache_for_image_fallback"))bIZ(_.m9(this.hostElement).querySelector("#img").src).then(function(Q){v.objectURL_=_.XI(Q).toString();v.setSrc_(v.objectURL_)}).catch(function(){_.Y("kevlar_woffle_fallback_image")&&v.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.K.onPrescanVisible=function(){this.onShow_()};
_.K.onVisible=function(){if(_.Y("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.K.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var v=this.computeSrc_();v!==_.m9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(v))}};
_.K.onReload_=function(){this.empty_=!1;var v=this.computeSrc_();v!==_.m9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(v))};
_.K.shouldShowPlaceholder_=function(){return _.Y("kevlar_thumbnail_bg")};
W6.prototype.observePlaceholderColor_=W6.prototype.observePlaceholderColor_;W6.prototype.delayedSrcChanged_=W6.prototype.delayedSrcChanged_;W6.prototype.thumbnailChanged_=W6.prototype.thumbnailChanged_;_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],W6.prototype,"alt",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],W6.prototype,"ariaHidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],W6.prototype,"ariaLabel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W6.prototype,"hidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],W6.prototype,"id",void 0);_.W([_.M(_.F4.YtVisibilityBehavior),_.X("design:type",Object)],W6.prototype,"ytVisibilityBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",String)],W6.prototype,"delayedSrc",void 0);
_.W([_.q(),_.X("design:type",Object)],W6.prototype,"thumbnail",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],W6.prototype,"loaded",void 0);_.W([_.q(),_.X("design:type",Boolean)],W6.prototype,"notifyOnLoaded",void 0);_.W([_.q(),_.X("design:type",Number)],W6.prototype,"height",void 0);_.W([_.q(),_.X("design:type",Number)],W6.prototype,"width",void 0);_.W([_.q({value:function(){return"width"}}),
_.X("design:type",String)],W6.prototype,"dimension",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W6.prototype,"fit",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W6.prototype,"fitHeight",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W6.prototype,"fitWidth",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],W6.prototype,"objectFit",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],W6.prototype,"objectPosition",void 0);_.W([_.q(),_.X("design:type",String)],W6.prototype,"preferredThumbnail",void 0);_.W([_.q({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.X("design:type",String)],W6.prototype,"alt_",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],W6.prototype,"sharedTooltipText",void 0);
_.W([_.q(),_.X("design:type",Boolean)],W6.prototype,"ftlEligible",void 0);_.W([_.q({value:void 0}),_.X("design:type",String)],W6.prototype,"observeHiddenOption",void 0);_.W([_.q({value:"observe_once"}),_.X("design:type",String)],W6.prototype,"observePrescanOption",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W6.prototype,"roundedContainer",void 0);
_.W([_.wg("thumbnail"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],W6.prototype,"thumbnailChanged_",null);_.W([_.wg("delayedSrc"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],W6.prototype,"delayedSrcChanged_",null);_.W([_.ph("thumbnail.placeholderColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],W6.prototype,"observePlaceholderColor_",null);
_.W([_.D7({is:"yt-img-shadow",disableElementRegistration:!0})],W6);var U8N=_.mX("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Hn()(W6,"yt-img-shadow",function(){if(m8Z===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;HIA===void 0&&(HIA=document.createElement("template"));var E=HIA;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);m8Z=v}v=m8Z;return v},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var pfh;_.o5=new _.KB("SCREEN_MANAGER_TOKEN");pfh=new _.KB("LOG_INITIAL_SCREEN_TOKEN");var vVa=f_({entities:{}});_.X4=Gr(vVa)(vVa.entities,{selectSfvAudioItemPlaybackState:function(v,Q){var V,E;v=(E=_.Fg(v,"sfvAudioItemCurrentlyPlayingEntity",Q))!=null?E:void 0;return(V=v==null?void 0:v.sfvAudioItemPlaybackState)!=null?V:void 0},
playlistLoopStateEntitySelector:mxo,toggleMenuServiceItemEntitySelector:Uxo});_.a5=_.x(function(v){function Q(v9){return _.y(v9,_.pH)}
function V(){var v9=E().isTogglingDisabled||C()&&E().toggledIsTogglingDisabled,t3=v9||k()?C():!C();R(t3);S(!1);if(!v9){var h3;(h3=t)==null||h3(!!t3)}var OB;((OB=F)==null?0:OB())||_.x_(_.ht().resolve(_.o5),E().trackingParams);var kQ;if(!t3||!Q(E().defaultButtonViewModel)||(kQ=F)!=null&&kQ()){var yo;!Q(E().toggledButtonViewModel)||((yo=F)==null?0:yo())||_.x_(_.ht().resolve(_.o5),Q(E().toggledButtonViewModel).trackingParams)}else _.x_(_.ht().resolve(_.o5),Q(E().defaultButtonViewModel).trackingParams)}
var E=v.data,b=v.buttonShapeOverrides,F=v.disableExplicitClickLogging,t=v.onToggle,p=v.style,Z=v.useOutlinedIcon,d=v.className,w=function(){var v9,t3;return C()?(v9=v.animatedTextPropsToggled)==null?void 0:v9.call(v):(t3=v.animatedTextPropsDefault)==null?void 0:t3.call(v)},A=_.Rr(function(){return w()?Object.assign({},w(),{shouldAnimate:l()}):void 0},void 0,"Zp4uoe"),k=function(){var v9;
return((v9=u())==null?void 0:v9.isToggled)!==void 0},T=_.L(_.K_(function(){var v9,t3,h3;
return k()?(v9=u())==null?void 0:v9.isToggled:(h3=b==null?void 0:(t3=b())==null?void 0:t3.toggled)!=null?h3:E().isToggled})),c=T.next().value;
T=T.next().value;var C=c,R=T;T=_.L(_.K_(function(){var v9,t3;return(v9=v.animatedTextPropsToggled)==null?void 0:(t3=v9.call(v))==null?void 0:t3.shouldAnimate}));
c=T.next().value;T=T.next().value;var l=c,S=T;c=_.L(_.Ge(!1,void 0,"mq3Zfe"));var a=c.next().value,g=c.next().value,u=_.Z1(function(v9){a:{var t3=E().entityKey,h3=E().toggledStateEntitySelectorType;if(h3)switch(h3){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!t3)break;v9=_.X4.selectSfvAudioItemPlaybackState(v9,t3);if(v9==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){v9={isToggled:!0};break a}if(v9){v9={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":v9=
{isToggled:_.VFS(v9).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":v9={isToggled:_.VFS(v9).includes("engagement-panel-live-chat-item-section")};break a;default:_.Iy(new _.xd("Error: entitySelectorType defined but not matched in selector.",v9,h3))}v9=void 0}return v9}),r=function(){return Object.assign({},b==null?void 0:b(),{onToggle:V,
toggleable:!0,toggled:C(),focused:a()})};
return _.P("toggle-button-view-model",{"on:focusin":_.EP(function(){var v9=_.ht().resolve(_.d$(_.Yc));v9&&g(v9.isKeyBoardInUse());return!1}),
"on:focusout":_.EP(function(){g(!1);return!1})},_.P(_.h,{cond:function(){return C()?Q(E().toggledButtonViewModel):Q(E().defaultButtonViewModel)},
then:function(v9){return _.P(_.D6,{data:v9,className:d,style:p,useOutlinedIcon:Z,buttonOverrides:r,animatedTextProps:A})}}))},"da");
_.a5.idomCompat={callbacks:{onToggle:!0}};_.ad(_.x(function(v){return _.P("yt-toggle-button-view-model",{class:function(){var Q;return(Q=v.scopingClassName)==null?void 0:Q.call(v)}},_.P(_.a5,{data:function(){var Q;
return(Q=v.data)==null?void 0:Q.call(v)},
buttonShapeOverrides:function(){var Q;return(Q=v.overrides)==null?void 0:Q.call(v)},
animatedTextPropsDefault:function(){var Q;return(Q=v.animatedTextPropsDefault)==null?void 0:Q.call(v)},
animatedTextPropsToggled:function(){var Q;return(Q=v.animatedTextPropsToggled)==null?void 0:Q.call(v)},
disableExplicitClickLogging:function(){var Q;return(Q=v.disableExplicitClickLogging)==null?void 0:Q.call(v)},
onToggle:function(Q){var V;return(V=v.onToggle)==null?void 0:V.call(v,Q)},
style:function(){var Q;return(Q=v.style)==null?void 0:Q.call(v)},
useOutlinedIcon:function(){var Q;return(Q=v.useOutlinedIcon)==null?void 0:Q.call(v)},
className:function(){var Q;return(Q=v.className)==null?void 0:Q.call(v)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.pJ,
buttonShapeOverrides:_.pJ,overrides:_.pJ,animatedTextPropsDefault:_.pJ,animatedTextPropsToggled:_.pJ,disableExplicitClickLogging:_.pJ,onToggle:_.Wg,style:_.pJ,useOutlinedIcon:_.pJ,className:_.pJ,scopingClassName:_.pJ}});var rx=function(){return _.z.apply(this,arguments)||this};
_.f(rx,_.z);rx.prototype.onTap=function(v){v.stopPropagation();v=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Gz("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:v})):this.ytLiveChatReduxBehavior.dispatch(_.dW("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:v}))};
_.hr.Object.defineProperties(rx.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.engagementState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=_.y(this.data.toggleButton,_.Zq),Q;if(Number(((Q=this.likeCountState)==null?void 0:Q.likeCountIfIndifferentNumber)||"0")===0){var V;Q=((V=this.data.likeCountPlaceholder)==null?void 0:V.content)||""}else{var E,b,F;Q=((E=this.likeCountState)==null?void 0:(b=E.likeCountIfIndifferent)==null?void 0:b.content)||((F=this.data.likeCountPlaceholder)==null?void 0:F.content)||""}var t,p;V=((t=this.likeCountState)==null?void 0:(p=
t.likeCountIfLiked)==null?void 0:p.content)||"1";t=_.y(v.toggledButtonViewModel,_.pH);return Object.assign({},v,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.y(v.defaultButtonViewModel,_.pH),{title:Q})},toggledButtonViewModel:{buttonViewModel:Object.assign({},t,{title:V})}})}}}});
rx.prototype.onTap=rx.prototype.onTap;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],rx.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],rx.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rx.prototype,"data",void 0);
_.W([_.q({selectorArgs:["data.likeCountEntityKey"],selector:E63}),_.X("design:type",Object)],rx.prototype,"likeCountState",void 0);_.W([_.q({selectorArgs:["data.engagementStateKey"],selector:ZQE}),_.X("design:type",Object)],rx.prototype,"engagementState",void 0);_.W([_.O("data","engagementState"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],rx.prototype,"isLiked",null);
_.W([_.O("data","likeCountState","isLiked"),_.X("design:type",Object),_.X("design:paramtypes",[])],rx.prototype,"toggleButton",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],rx.prototype,"onTap",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],rx);
_.B(rx,"yt-live-chat-like-button-view-model",function(){if(EMQ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;VJZ===void 0&&(VJZ=document.createElement("template"));var E=VJZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);EMQ=v}v=EMQ;return v},{mode:0});var QLS;var VB8;var $c=function(){return _.z.apply(this,arguments)||this};
_.f($c,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$c.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],$c);
_.B($c,"yt-live-chat-paid-message-footer-renderer",function(){if(VB8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;QLS===void 0&&(QLS=document.createElement("template"));var E=QLS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);VB8=v}v=VB8;return v},{mode:0});var EVq;var bQZ;var FaQ;var Kaa,iQa=function(){if(Kaa!==void 0)return Kaa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;FaQ===void 0&&(FaQ=document.createElement("template"));var E=FaQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return Kaa=v};var I5=function(){return _.z.apply(this,arguments)||this};
_.f(I5,_.z);I5.prototype.onTap=function(v){v.stopPropagation()};
_.hr.Object.defineProperties(I5.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=_.y(this.data.replyButton,_.pH),Q,V,E,b,F,t,p,Z=Number(((Q=this.replyCountState)==null?void 0:Q.replyCountNumber)||"0")===0?(V=this.data)==null?void 0:(E=V.replyCountPlaceholder)==null?void 0:E.content:((b=this.replyCountState)==null?void 0:(F=b.replyCount)==null?void 0:F.content)||((t=this.data)==null?void 0:(p=t.replyCountPlaceholder)==null?void 0:p.content)||"",d;return Object.assign({},
v,{title:Z,accessibilityText:(d=this.replyCountState)==null?void 0:d.replyButtonAccessibilityText})}}}});
_.hr.Object.defineProperties(I5,{template:{configurable:!0,enumerable:!0,get:function(){return iQa()}}});
I5.prototype.onTap=I5.prototype.onTap;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],I5.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],I5.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],I5.prototype,"data",void 0);
_.W([_.q({selectorArgs:["data.replyCountEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"replyCountEntity",Q)}}),
_.X("design:type",Object)],I5.prototype,"replyCountState",void 0);_.W([_.O("data","replyCountState"),_.X("design:type",Object),_.X("design:paramtypes",[])],I5.prototype,"buttonViewModel",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],I5.prototype,"onTap",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],I5);_.B(I5,"yt-live-chat-reply-button-view-model",function(){return iQa()},{mode:0});var Lax;var tBV;var H6=function(){var v=_.z.apply(this,arguments)||this;v.ariaLabel="";return v};
_.f(H6,_.z);
H6.prototype.dataChanged=function(){for(var v=(0,_.bf)(_.m9(this.hostElement).querySelector("#image"));v.firstChild;)v.removeChild(v.firstChild);if(this.data)if(this.data.icon){var Q=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(Q.polymerController.icon="yt-sys-icons:shield-filled",Q.polymerController.defaultToFilled=!0):Q.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();v.appendChild(Q)}else if(this.data.customThumbnail){Q=document.createElement("img");
var V=_.j3G(this.data.customThumbnail.thumbnails,16);V?(Q.src=V,v.appendChild(Q),Q.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Iy(new _.xd("Could not compute URL for thumbnail",this.data.customThumbnail))}};
H6.prototype.identity=function(v){return v};
H6.prototype.computeType=function(v){return UJ(v||void 0)};
H6.prototype.dataChanged=H6.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],H6.prototype,"data",void 0);_.W([_.q({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.X("design:type",Object)],H6.prototype,"ariaLabel",void 0);_.W([_.q({computed:"computeType(data)",reflectToAttribute:!0}),_.X("design:type",String)],H6.prototype,"type",void 0);
_.W([_.q({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.X("design:type",String)],H6.prototype,"sharedTooltipText",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("live_chat_enable_new_moderator_badge")}}),
_.X("design:type",Boolean)],H6.prototype,"enableNewModeratorBadge",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],H6.prototype,"dataChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],H6);
_.B(H6,"yt-live-chat-author-badge-renderer",function(){if(tBV===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Lax===void 0&&(Lax=document.createElement("template"));var E=Lax;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);tBV=v}v=tBV;return v},{mode:0});var p3Q;var eCp;var ml=function(){return _.z.apply(this,arguments)||this};
_.f(ml,_.z);_.K=ml.prototype;_.K.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"}}}}};
_.K.computeBadgesInsideChip=function(v){return v?v.filter(function(Q){return UJ(Q.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.K.computeBadgesOutsideChip=function(v){return this.prependChatBadges||!v?[]:v.filter(function(Q){Q=UJ(Q.liveChatAuthorBadgeRenderer);return Q!=="verified"&&Q!=="owner"})};
_.K.computeBadgesBeforeChip=function(v){return this.prependChatBadges&&v?v.filter(function(Q){Q=UJ(Q.liveChatAuthorBadgeRenderer);return Q!=="verified"&&Q!=="owner"}):[]};
_.K.computeIsHighlighted=function(v,Q){var V=!!pPo(v,"owner"),E=!!pPo(v,"verified");v=!!pPo(v,"moderator");return(V||E&&!v)&&!Q};
_.K.computeAuthorType=function(v){return t9r(v)};
_.K.computeAuthorClass=function(v,Q){return Q?(v?v+" ":"")+"single-line":v};
_.K.onSeedColorChanged=function(){_.Y("live_chat_author_name_color_usernames")||_.Y("live_chat_seed_color_usernames")||_.Y("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):_.Y("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
ml.prototype.onSeedColorChanged=ml.prototype.onSeedColorChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ml.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ml.prototype,"authorName",void 0);_.W([_.q(),_.X("design:type",Array)],ml.prototype,"authorBadges",void 0);
_.W([_.q({computed:"computeAuthorType(authorBadges)"}),_.X("design:type",String)],ml.prototype,"authorType",void 0);_.W([_.q({computed:"computeAuthorClass(authorType, singleLine)"}),_.X("design:type",String)],ml.prototype,"authorClass",void 0);_.W([_.q({computed:"computeBadgesInsideChip(authorBadges)"}),_.X("design:type",Array)],ml.prototype,"badgesInsideChip",void 0);_.W([_.q({computed:"computeBadgesOutsideChip(authorBadges)"}),_.X("design:type",Array)],ml.prototype,"badgesOutsideChip",void 0);
_.W([_.q({computed:"computeBadgesBeforeChip(authorBadges)"}),_.X("design:type",Array)],ml.prototype,"badgesBeforeChip",void 0);_.W([_.q({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.X("design:type",Boolean)],ml.prototype,"isHighlighted",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],ml.prototype,"singleLine",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],ml.prototype,"disableHighlighting",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],ml.prototype,"dashboardMoneyFeed",void 0);_.W([_.q({value:_.Y("live_chat_prepend_badges"),reflectToAttribute:!0}),_.X("design:type",Boolean)],ml.prototype,"prependChatBadges",void 0);_.W([_.q(),_.X("design:type",String)],ml.prototype,"authorNameColor",void 0);_.W([_.Z7("#author-name"),_.X("design:type",HTMLDivElement)],ml.prototype,"username",void 0);
_.W([_.ph("authorNameColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ml.prototype,"onSeedColorChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],ml);
_.B(ml,"yt-live-chat-author-chip",function(){if(eCp===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;p3Q===void 0&&(p3Q=document.createElement("template"));var E=p3Q;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);eCp=v}v=eCp;return v},{mode:0});var ZQZ;var PTx;var UA=function(){var v=_.z.apply(this,arguments)||this;v.debounceCommand=_.Gm(function(Q){v.ytComponentBehavior.resolveCommand(Q)},1500);
return v};
_.f(UA,_.z);UA.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var v=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",Q,V,E=this.isHearted?(Q=this.data)==null?void 0:Q.unheartCommand:(V=this.data)==null?void 0:V.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Gz("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:v}));(v=_.MQ(E))&&this.debounceCommand(v)}};
_.hr.Object.defineProperties(UA.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(!((v=this.data)==null?0:(Q=v.creatorThumbnail)==null?0:Q.sources))return{};v={thumbnails:[]};Q={};Q.url=this.data.creatorThumbnail.sources[0].url;v.thumbnails.push(Q);return v}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Q=this.engagementState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.engagementState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.engagementState)==null?void 0:Q.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}}});
UA.prototype.onTap=UA.prototype.onTap;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],UA.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],UA.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UA.prototype,"data",void 0);
_.W([_.q({selectorArgs:["data.engagementStateKey"],selector:ZQE}),_.X("design:type",Object)],UA.prototype,"engagementState",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],UA.prototype,"thumbnailDetails",null);_.W([_.O("data","engagementState"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],UA.prototype,"isHearted",null);_.W([_.O("data","engagementState"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],UA.prototype,"isEditable",null);
_.W([_.O("data","engagementState"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],UA.prototype,"showCreatorView",null);_.W([_.O("data","engagementState"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],UA.prototype,"showButton",null);_.W([_.O("data","isHearted"),_.X("design:type",String),_.X("design:paramtypes",[])],UA.prototype,"label",null);_.W([_.O("data","isHearted"),_.X("design:type",Object),_.X("design:paramtypes",[])],UA.prototype,"heartHoverText",null);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UA.prototype,"onTap",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],UA);
_.B(UA,"yt-live-chat-creator-heart-view-model",function(){if(PTx===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ZQZ===void 0&&(ZQZ=document.createElement("template"));var E=ZQZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);PTx=v}v=PTx;return v},{mode:0});var vu=function(v,Q){this.serviceId=new k7V(v,Q)};
vu.prototype.toString=function(){return this.serviceId.toString()};var dxZ=function(){this.internalMap={}};
_.K=dxZ.prototype;_.K.contains=function(v){return Object.prototype.hasOwnProperty.call(this.internalMap,v)};
_.K.get=function(v){if(this.contains(v))return this.internalMap[v]};
_.K.set=function(v,Q){this.internalMap[v]=Q};
_.K.getKeys=function(){return Object.keys(this.internalMap)};
_.K.remove=function(v){delete this.internalMap[v]};var Qm=function(){this.mappings=new dxZ;this.errorCallbacks=new Set};
Qm.prototype.getModuleId=function(v){return v.serviceId.getModuleId()};
Qm.prototype.get=function(v){var Q=this.mappings.get(v.toString());return hCx(this,Q,v)};
Qm.prototype.getMultipleAsync=function(){var v=_.aE.apply(0,arguments),Q=this,V=v.map(function(Z){return Q.getModuleId(Z)}),E=v.map(function(Z){return Q.mappings.get(Z.toString())}).filter(function(Z){return Z});
if(E.length===v.length)return _.Vk(E.map(function(Z,d){return hCx(Q,Z,v[d])}));
var b=jK().loadMultiple(V);E=_.lc(V.map(function(Z){return b[Z]}));
var F=document.hidden,t=-1,p=_.T_("get_async_timeout_ms",-1);p>-1&&(t=setTimeout(function(){_.Iy(new _.xd("Module timeout.",V,F,document.hidden))},p));
return _.qV(E.then(function(){return v.map(function(Z){return hCx(Q,Q.mappings.get(Z.toString()),Z)})}).thenCatch(function(Z){for(var d=_.L(Q.errorCallbacks),w=d.next();!w.done;w=d.next())w=w.value,w(Z);
throw Z;}),function(){clearTimeout(t)})};
Qm.prototype.registerService=function(v,Q){this.mappings.set(v.toString(),{type:"mapping",value:Q});return v};
var hCx=function(v,Q,V){switch(Q.type){case "mapping":return Q.value;case "factory":return Q=Q.value(),v.mappings.set(V.toString(),{type:"mapping",value:Q}),Q;default:return _.rV(Q)}};
Qm.prototype.onLoadError=function(v){var Q=this;this.errorCallbacks.add(v);return function(){Q.errorCallbacks.delete(v)}};
_.Vm=new Qm;var w3Z=function(){};
_.K=w3Z.prototype;
_.K.JSC$14245_getRequest=function(v,Q,V){Q=Q===void 0?{}:Q;V=V===void 0?cyN:V;var E=Q;if(this.isNavigationCommand()){var b,F=(b=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:b.url;E=_.dh9(v.clickTrackingParams,!0,!1,F,this.JSC$14245_getClientScreen(E))}else E=_.dh9(v.clickTrackingParams,!1,this.includeCsn);E={context:E};if(b=this.getExtension(v))return this.JSC$14245_buildRequest(E,b,Q),b=this.getApiUrl(v),F=Object.assign({},{command:v},this.getRequestConfig(v,Q)),E={input:b,requestShell:Bj(b),
innerTubeRequest:E,config:F},E.config.authStrategy?E.config.authStrategy.identity=V:E.config.authStrategy={identity:V},(v=this.JSC$14245_getRequestKey(v,Q))&&!E.config.requestKey&&(E.config.requestKey=v),E;v=new _.xd("Error: Failed to create Request from Command.",v);_.ro(v)};
_.K.getApiUrl=function(v){var Q=_.Xg(this.getApiPaths(v)),V;(v=(V=_.y(v.commandMetadata,_.Kt))==null?void 0:V.apiUrl)&&(Q=v);return sBb(gmQ(Q))};
_.K.isNavigationCommand=function(){return!1};
_.K.JSC$14245_getClientScreen=function(){};
_.K.JSC$14245_getRequestKey=function(){};
_.K.getRequestConfig=function(){};
_.hr.Object.defineProperties(w3Z.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var EZ=function(){};
_.f(EZ,w3Z);EZ.prototype.JSC$14252_getStoreKey=function(){};
EZ.prototype.JSC$14245_getRequestKey=function(v,Q){Q=Q===void 0?{}:Q;return this.JSC$14252_getStoreKey(v,Q)};var b_=function(){};
_.f(b_,EZ);b_.prototype.JSC$14245_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Bj("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
b_.prototype.getApiPaths=function(){return[]};
b_.prototype.getExtension=function(){};
b_.prototype.JSC$14245_buildRequest=function(){};var AKV={},kGa=(AKV.GET_DATASYNC_IDS=n_(b_),AKV);var TzV,YzZ,yKN,OQN,F_,CTR,cKQ,GGx,fSX;TzV="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");YzZ=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Js=function(v,Q,V,E,b,F,t,p,Z){this.endpointMap=v;this.networkManager=Q;this.authService=V;this.responseProcessorMap=E;this.innertubeResponseStore=b;this.contextProcessors=F;this.asyncContextProcessors=t;this.localInnertubeRouter=p;this.requestSequencer=Z;this.inflightRequests=new Map;v.signalEndpointMap||(v.signalEndpointMap={});v.signalEndpointMap=Object.assign({},kGa,v.signalEndpointMap)};
yKN=function(v,Q,V,E,b,F,t,p,Z){if(_.Js.instance!==void 0){if(E=_.Js.instance,v=[v!==E.endpointMap,Q!==E.networkManager,V!==E.authService,b!==E.innertubeResponseStore,F!==E.contextProcessors,t!==E.asyncContextProcessors,p!==E.localInnertubeRouter],v.some(function(d){return d}))throw new _.xd("InnerTubeTransportService is already initialized",v);
}else _.Js.instance=new _.Js(v,Q,V,E,b,F,t,p,Z)};
_.xW=function(v,Q,V){var E=E===void 0?cyN:E;var b=cKQ(v,Q);return b?new _.Ry(function(F,t){var p,Z,d,w,A;return _.e(function(k){switch(k.nextAddress){case 1:return k.yield(b,2);case 2:p=k.yieldResult;Z=p.JSC$14245_getRequest(Q,V,E);if(!Z){t(new _.xd("Error: Failed to build request for command.",Q));k.jumpTo(0);break}RO(Z.input);w=((d=Z.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(v.authService.syncHeaders){A=fSX(Z.config,w);k.jumpTo(4);break}return k.yield(GGx(Z.config,w),5);case 5:A=
k.yieldResult;case 4:F(CTR(v,Z,A)),_.q1(k)}})}):_.kD(new _.xd("Error: No request builder found for command.",Q))};
OQN=function(v,Q,V,E){var b=b===void 0?cyN:b;var F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r;return _.e(function(v9){switch(v9.nextAddress){case 1:F=icG(Q,v.endpointMap);if(!F)throw new _.xd("Error: No streaming request builder found for command",Q);t=F.JSC$14245_getRequest(Q,V,b);if(!t)throw new _.xd("Failed to build YtRequest for streaming Command",Q);if((p=v.localInnertubeRouter)==null||!p.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){v9.jumpTo(2);break}return v9.yield(v.localInnertubeRouter.localInnertubeResponse(t.input,
t.innerTubeRequest),3);case 3:return Z=v9.yieldResult,d={},Z.playerResponse&&(F_(v,Z.playerResponse,t),d.player=Z.playerResponse,(w=E)==null||w(d,Z)),Z.watchNextResponse&&(F_(v,Z.watchNextResponse,t),d.content=Z.watchNextResponse,(A=E)==null||A(d,Z)),v9.return(d);case 2:T=((k=t.requestShell)==null?void 0:k.mode)==="cors"?"cors":void 0;if(v.authService.syncHeaders){c=fSX(t.config,T);v9.jumpTo(4);break}return v9.yield(GGx(t.config,T),5);case 5:c=v9.yieldResult;case 4:return l=(R=(C=t.requestShell)==
null?void 0:C.headers)!=null?R:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},l,c)}),S=Object.assign({},t.requestShell),a=JSON.stringify(t.innerTubeRequest),t.requestShell.method==="POST"&&(S=Object.assign({},S,{body:a})),g=function(t3,h3){F_(v,h3.playerResponse||h3.watchNextResponse||h3.reelItemWatchResponse||h3.reelWatchSequenceResponse,t);E==null||E(t3,h3);_.Y("web_watch_stop_scheduler_on_player_response")&&h3.playerResponse&&OtZ()},u={},v9.yield(MBR(v.networkManager,
t.input,S,g),6);
case 6:return u=v9.yieldResult,((r=t.config)==null?0:r.responseTick)&&_.Mp(t.config.responseTick),v9.return(u)}})};
_.tQ=function(v,Q,V,E,b){b=b===void 0?{authStrategy:{identity:cyN}}:b;var F=F===void 0?!0:F;var t=function(){};
t=Udh(Hdb(V));Q.context||(Q.context=_.dh9(E,F));return new _.Ry(function(p){var Z,d,w,A,k;return _.e(function(T){if(T.nextAddress==1)return Z=gmQ(V),d=_.xI(Z),v.authService.syncHeaders?(w=fSX(b,d),T.jumpTo(2)):T.yield(GGx(b,d),3);T.nextAddress!=2&&(w=T.yieldResult);A=sBb(gmQ(V));k={input:A,requestShell:Bj(A),innerTubeRequest:Q,config:b};p(CTR(v,k,w,t));_.q1(T)})})};
F_=function(v,Q,V){var E;if(Q&&!(Q==null?0:(E=Q.sequenceMetaData)==null?0:E.skipProcessing)&&v.responseProcessorMap){E=_.L(TzV);for(var b=E.next();!b.done;b=E.next())b=b.value,v.responseProcessorMap[b]&&v.responseProcessorMap[b].handleResponse(Q,V)}};
CTR=function(v,Q,V,E){E=E===void 0?function(){}:E;
var b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3,OB,kQ,yo,xQ,lb,ep,JS,fZ,mS,PN,qZ,DX,Th,R8,LE,Q8,Tq,Ed;return _.e(function(y8){switch(y8.nextAddress){case 1:t=(b=Q.config)==null?void 0:(F=b.storeStrategy)==null?void 0:F.storeKey;if(!(t&&v.innertubeResponseStore&&v.innertubeResponseStore.has(t))||((p=Q.config)==null?0:(Z=p.storeStrategy)==null?0:Z.disableCache)){y8.jumpTo(2);break}return y8.yield(v.innertubeResponseStore.get(t),3);case 3:if((d=y8.yieldResult)&&!d.isExpired())return y8.return(Promise.resolve(_.rs(d)));
case 2:if(!((w=Q)==null?0:(A=w.innerTubeRequest)==null?0:A.context)){y8.jumpTo(4);break}k=Q.innerTubeRequest.context;if(!(v.asyncContextProcessors&&v.asyncContextProcessors.length>0)){y8.jumpTo(5);break}T=[];c=_.L(v.asyncContextProcessors);for(C=c.next();!C.done;C=c.next())R=C.value,l=R.processContext(Q),l.wrappedPromise_&&T.push(l.wrappedPromise_);if(!(T.length>0)){y8.jumpTo(5);break}return y8.yield(Promise.all(T),5);case 5:S=_.L(v.contextProcessors||[]),a=S.next();case 8:if(a.done){y8.jumpTo(4);
break}g=a.value;return y8.yield(g.processContext(k),9);case 9:a=S.next();y8.jumpTo(8);break;case 4:if((u=v.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(Q.input,Q.innerTubeRequest)){y8.jumpTo(12);break}return y8.yield(v.localInnertubeRouter.localInnertubeResponse(Q.input,Q.innerTubeRequest),13);case 13:return r=y8.yieldResult,F_(v,r,Q),y8.return(r);case 12:return(h3=(t3=Q.config)==null?void 0:t3.requestKey)&&v.inflightRequests.has(h3)?v9=v.inflightRequests.get(h3):(OB=JSON.stringify(Q.innerTubeRequest),
xQ=(yo=(kQ=Q.requestShell)==null?void 0:kQ.headers)!=null?yo:{},Q.requestShell=Object.assign({},Q.requestShell,{headers:Object.assign({},xQ,V)}),lb=Object.assign({},Q.requestShell),Q.requestShell.method==="POST"&&(lb=Object.assign({},lb,{body:OB})),((ep=Q.config)==null?0:ep.requestTick)&&_.Mp(Q.config.requestTick),JS=function(){return v.networkManager.fetch(Q.input,lb,Q.config)},v9=v.requestSequencer?DxA(v.requestSequencer,Q,JS):JS(),h3&&v.inflightRequests.set(h3,v9)),y8.yield(v9,14);
case 14:(fZ=y8.yieldResult)&&_.Y("web_streaming_player")&&Array.isArray(fZ)&&(fZ=fZ[0].playerResponse);if(fZ&&"error"in fZ&&((mS=fZ)==null?0:(PN=mS.error)==null?0:PN.details))for(qZ=fZ.error.details,DX=_.L(qZ),Th=DX.next();!Th.done;Th=DX.next())R8=Th.value,(LE=R8["@type"])&&YzZ.indexOf(LE)>-1&&(delete R8["@type"],fZ=R8);h3&&v.inflightRequests.has(h3)&&v.inflightRequests.delete(h3);((Q8=Q.config)==null?0:Q8.responseTick)&&_.Mp(Q.config.responseTick);if(fZ||(Tq=v.localInnertubeRouter)==null||!Tq.canProvideFallbackResponse(Q.input,
Q.innerTubeRequest)){y8.jumpTo(15);break}return y8.yield(v.localInnertubeRouter.localFallbackInnertubeResponse(Q.input,Q.innerTubeRequest),16);case 16:fZ=y8.yieldResult;case 15:return F_(v,fZ,Q),((Ed=Q.config)==null?0:Ed.processorTick)&&_.Mp(Q.config.processorTick),E(),y8.return(fZ||void 0)}})};
_.NC=function(v,Q){return Kzh(Q,v.endpointMap)};
cKQ=function(v,Q){v=Lzm(Q,v.endpointMap);if(v!==void 0)return Promise.resolve(v)};
GGx=function(v,Q){var V,E,b,F;return _.e(function(t){if(t.nextAddress==1){b=(V=v)==null?void 0:(E=V.authStrategy)==null?void 0:E.sessionIndex;var p=t.yield;var Z=_.Vk(r4Q({sessionIndex:b}));return p.call(t,Z,2)}F=t.yieldResult;return t.return(Promise.resolve(Object.assign({},tFb(Q),F)))})};
fSX=function(v,Q){var V;v=v==null?void 0:(V=v.authStrategy)==null?void 0:V.sessionIndex;V=r4Q({sessionIndex:v});return Object.assign({},tFb(Q),V)};var RCp,nVV,lSS,qza,SzQ,zCR,xx8,BzS,LA,gVa,sLq,NzV,uwQ;RCp=0;nVV=/tone[1-5]/;lSS=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");qza="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
SzQ=Number.MAX_SAFE_INTEGER;zCR=RegExp("\ufe0f","g");_.KA=function(v){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;v&&_.JK8(this,v)};
_.JK8=function(v,Q){try{_.D9(Q,{context:v,onSuccess:function(E,b){Array.isArray(b)?v.load(b):(E=new _.xd("Emoji manager JSON response was not an array!",{response:b}),_.ro(E))},
onError:function(E){E=new _.xd("Failed to retrieve emoji manager initial JSON data!",{url:Q,statusCode:_.fi(E).toString()});_.Iy(E)}})}catch(E){var V=new _.xd("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:Q});
_.Iy(V)}};
_.KA.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.KA.prototype.load=function(v,Q){if(Q)if(v.length)v=v.concat(Q.emojis);else{this.emojis=Q.emojis;this.emojiMap=Q.emojiMap;this.emojiShortcutMap=Q.emojiShortcutMap;this.emojiShortcutCharMap=NzV(Q);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=Q.emojiRegex;return}this.emojis=[].concat(_.ui(new Set(this.emojis.concat(v))));this.hasInitializedShortcutCharMap=!1;v=Array(this.emojis.length);for(Q=0;Q<this.emojis.length;Q++){var V=this.emojis[Q];if(V.emojiId){this.emojiMap[V.emojiId]=V;this.emojiMap[V.emojiId].index=
Q;for(var E=0;V.shortcuts&&E<V.shortcuts.length;E++)this.emojiShortcutMap[V.shortcuts[E].toLocaleLowerCase()]=V;v[Q]=V.isCustomEmoji&&V.shortcuts?V.shortcuts[0]:V.emojiId}}v.sort(function(b,F){return F.length-b.length});
if(v.length)try{this.emojiRegex=new RegExp(v.join("|").replace("*","\\*"),"gi")}catch(b){this.emojiRegex=/$./}else this.emojiRegex=/$./};
xx8=function(v,Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){var E=V.value;if(E.emojiId&&v.emojiMap[E.emojiId]){V=Object.assign({},v.emojiMap[E.emojiId],E);v.emojiMap[E.emojiId]=V;var b=void 0;V.index&&((b=v.emojis[V.index])==null?void 0:b.emojiId)===E.emojiId&&(v.emojis[V.index]=V);E=void 0;if((E=V.shortcuts)==null?0:E.length)for(v.hasInitializedShortcutCharMap=!1,E=_.L(V.shortcuts),b=E.next();!b.done;b=E.next())v.emojiShortcutMap[b.value.toLocaleLowerCase()]=V}}};
BzS=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(_.Hm.getInstance(),2);if(E.nextAddress!=3)return(Q=E.yieldResult)?E.yield(Q.get("ytlc-emoji-pref"),3):E.return();(V=E.yieldResult)&&xx8(v,Object.keys(V).map(function(b){return{emojiId:b,stickyPrefId:V[b]}}).filter(function(b){return!!b.emojiId&&!!b.stickyPrefId}));
_.q1(E)})};
_.i_=function(v,Q,V){return(v=v.emojiMap[Q])&&(!v.isLocked||V!==void 0&&V)?v:void 0};
LA=function(v,Q,V){V=_.i_(v,Q,V===void 0?!1:V);var E=Q.match("\u200d");V&&v.skinTone!==0&&(v=(E==null?void 0:E.length)===1?_.i_(v,Q.replace("\u200d",lSS[v.skinTone]+"\u200d")):_.i_(v,Q+lSS[v.skinTone]))&&(V=v);return V};
gVa=function(v,Q){var V=v.emojiMap[Q];return(V==null?0:V.stickyPrefId)?v.emojiMap[V.stickyPrefId]:LA(v,Q)};
_.Uu=function(v,Q){v=v.emojiShortcutMap[Q.toLocaleLowerCase()];return!v||v.isLocked?null:v};
sLq=function(v,Q,V){return NzV(v,V===void 0?!1:V)[Q]||{}};
NzV=function(v,Q){Q=Q===void 0?!1:Q;if(!v.hasInitializedShortcutCharMap){v.hasInitializedShortcutCharMap=!0;for(var V=0;V<v.emojis.length;V++){var E=v.emojis[V];if(!(E.isLocked||Q&&E.isCustomEmoji&&E.emojiId&&!v.pickerCustomEmojiIds.includes(E.emojiId)))for(var b=0;E.shortcuts&&b<E.shortcuts.length;b++){var F=E.shortcuts[b];F.startsWith(":_")&&E.isCustomEmoji&&(v.emojiShortcutCharMap[":_"]==null&&(v.emojiShortcutCharMap[":_"]=Object.create(null)),v.emojiShortcutCharMap[":_"][F]=E);if(!(F.length<3||
!E.isCustomEmoji&&nVV.test(F))){var t=F.substr(0,3).toLocaleLowerCase();v.emojiShortcutCharMap[t]==null&&(v.emojiShortcutCharMap[t]=Object.create(null));v.emojiShortcutCharMap[t][F]=E}}}}return v.emojiShortcutCharMap};
_.KA.prototype.createEmoji=function(v,Q){Q=Q===void 0?!0:Q;var V=document.createElement("img");v.isCustomEmoji||V.classList.add("small-emoji");V.classList.add("emoji");V.classList.add("yt-formatted-string");V.src=v.image?_.rE(v.image.thumbnails,this.emojiSize)||"":"";var E=void 0;v.image&&v.image.accessibility&&v.image.accessibility.accessibilityData&&(E=v.image.accessibility.accessibilityData.label);V.alt=E?E:(v.isCustomEmoji&&v.shortcuts?v.shortcuts[0]:v.emojiId)||"";v.isCustomEmoji&&(V.dataset.emojiId=
v.emojiId);_.Q2&&(V.setAttribute("contenteditable","false"),V.setAttribute("unselectable","on"));Q&&(v.shortcuts&&v.shortcuts.length&&V.setAttribute("shared-tooltip-text",v.shortcuts[0]),V.id="emoji-"+RCp++);return V};
_.KA.prototype.createDocumentFragment=function(v,Q,V,E){Q=Q===void 0?!1:Q;V=V===void 0?!0:V;E=E===void 0?!1:E;v=v.replace(zCR,"");for(var b=document.createDocumentFragment(),F=0,t,p=0;(t=this.emojiRegex.exec(v))!=null;){var Z=_.i_(this,t[0])||_.Uu(this,t[0]);!Z||Z.isCustomEmoji&&!Q||(Z=this.createEmoji(Z,V),F!==t.index&&b.appendChild(document.createTextNode(v.substring(F,t.index))),b.appendChild(Z),F=t.index+t[0].length,p++)}if(!E||p)return b.appendChild(document.createTextNode(v.substr(F))),b};
uwQ=function(v,Q,V){var E,b,F,t,p,Z,d,w,A;return _.e(function(k){if(k.nextAddress==1){if(!Q.emojiId||!v.emojiMap[Q.emojiId])return k.return();E=Object.assign({},v.emojiMap[Q.emojiId],{stickyPrefId:V});v.emojiMap[Q.emojiId]=E;Q.index&&((b=v.emojis[Q.index])==null?void 0:b.emojiId)===Q.emojiId&&(v.emojis[Q.index]=E);if((F=Q.shortcuts)==null?0:F.length)for(v.hasInitializedShortcutCharMap=!1,t=_.L(Q.shortcuts),p=t.next();!p.done;p=t.next())Z=p.value,v.emojiShortcutMap[Z.toLocaleLowerCase()]=E;return k.yield(_.Hm.getInstance(),
2)}if(k.nextAddress!=4)return(d=k.yieldResult)?k.yield(d.get("ytlc-emoji-pref"),4):k.jumpTo(0);A=(w=k.yieldResult)!=null?w:{};A[Q.emojiId]=V;return k.yield(d.set("ytlc-emoji-pref",A,SzQ),0)})};
_.tj=new _.KA;var oVa;_.pA={};
oVa={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.Y("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:_.Y("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 sx(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var v=_.m9(this.hostElement||this).querySelector("#inline-action-button-container");v&&v.setAttribute("aria-hidden","true");this.menuButton=_.m9(this.hostElement).querySelector("#menu-button")},
attached:function(){var v=this.menuButton;v&&(v.addEventListener("focusin",_.Lh(this,this.onMenuButtonFocus_)),v.addEventListener("focusout",_.Lh(this,this.onMenuButtonBlur_)))},
detached:function(){var v=this.menuButton;v&&(v.removeEventListener("focusin",_.Lh(this,this.onMenuButtonFocus_)),v.removeEventListener("focusout",_.Lh(this,this.onMenuButtonBlur_)))},
identity:_.Nm,truthy:function(v){return!!v},
computeTimestampString:function(v){return v?v.timestampText?this.getSimpleString(v.timestampText):this.TIME_FORMATTER.format(new Date(v.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(v){return v},
computeMenuVisible_:function(v,Q){return v||Q},
computeHasInlineActionButtons:function(v){if(!v)return!1;var Q,V;return!((Q=v.inlineActionButtons)==null||!Q.length)||!((V=v.additionalInlineActionButtons)==null||!V.length)},
createDocumentFragmentFromString:function(v){var Q=_.tj.createDocumentFragment.bind(_.tj),V;if((V=this.participantsManager)==null||!V.viewerRegex)return Q(v);V=document.createDocumentFragment();for(var E=0,b;(b=this.participantsManager.viewerRegex.exec(v))!=null;){if(b.index>0){var F=":"+b[0]+":";if((_.i_(_.tj,F)||_.Uu(_.tj,F))&&v.indexOf(F)===b.index-1)continue}V.appendChild(Q(v.substring(E,b.index)));E=document.createElement("span");E.appendChild(Q(b[0]));E.classList.add("mention");V.appendChild(E);
E=b.index+b[0].length}V.appendChild(Q(v.substring(E)));return V},
createDocumentFragment:function(v){var Q=document.createDocumentFragment();if(v.simpleText)return Q.appendChild(this.createDocumentFragmentFromString(v.simpleText)),Q;if(!v.runs)return Q;for(var V=0;V<v.runs.length;V++){var E=v.runs[V];if(E.emoji)Q.appendChild(_.tj.createEmoji(E.emoji));else if(E.text)if(E.navigationEndpoint){var b=document.createElement("a");b.classList.add("yt-simple-endpoint");Z4b(b,E.navigationEndpoint);_.m9(b).appendChild(this.createDocumentFragmentFromString(E.text));Q.appendChild(b)}else Q.appendChild(this.createDocumentFragmentFromString(E.text))}return Q},
hasModerationOverlayVisible:function(){var v;return((v=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:v.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(v){v.composedPath().some(function(Q){return(Q=Q instanceof Element?Q:null)?Q.tagName&&(Q.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||Q.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.Y("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(v)},
colorFromDecimal:function(v){return Wu9(v)},
markAsDeleted:function(v,Q){this.set("data.deletedStateMessage",v);this.set("data.showOriginalContentMessage",Q)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(v){if(this.data.contextMenuEndpoint){var Q=_.ht().resolve(_.hn),V=this.data.contextMenuEndpoint,E;(E=_.Js.instance)&&_.NC(E,V)?(Q=jL8(Q,V),E=_.tQ(E,{},Q)):E=_.WaR(Q,V);E.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);v&&v.stopPropagation()}},
handleGetContextMenuResponse_:function(v){var Q=_.Js.instance;Q&&_.NC(Q,{liveChatEndpoint:{}})||(v=v.response);v.liveChatItemContextMenuSupportedRenderers&&v.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(v.liveChatItemContextMenuSupportedRenderers.menuRenderer);v.actions&&_.mb(this.hostElement,"yt-live-chat-actions",[v.actions])},
handleGetContextMenuError:function(v){if(v instanceof Error||v instanceof Object||v instanceof String)var Q=v;_.ro(new _.xd("Error encountered calling GetLiveChatItemContextMenu",Q))},
showContextMenu_:function(v){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:v}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Hj(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Hj(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.pA.YtLiveChatItemBehavior=[oVa,_.VL.YtComponentBehavior,_.l6.YtOpenPopupBehavior];_.e4=function(){};var X3A;var aSQ;var rKV;var $xa;var ZH=function(){var v=_.z.apply(this,arguments)||this;v.active=!1;v.identity=_.Nm;return v};
_.f(ZH,_.z);ZH.prototype.dataChanged=function(){this.active=!1};
ZH.prototype.onClick=function(){_.Hj(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],ZH.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ZH.prototype,"active",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZH.prototype,"dataChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],ZH);
_.B(ZH,"yt-live-chat-text-input-field-suggestion",function(){if($xa===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;rKV===void 0&&(rKV=document.createElement("template"));var E=rKV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);$xa=v}v=$xa;return v},{mode:0});_.Pu=function(v,Q,V){return CustomEvent.call(this,v,{detail:{value:Q,path:V}})||this};
_.f(_.Pu,CustomEvent);_.dK=function(){var v=_.z.apply(this,arguments)||this;v.viewerName=null;v.actionMap={"yt-live-chat-actions":"onChatMessage_"};v.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];v.PARTICIPANT_TIME_USEC_=3E8;return v};
_.f(_.dK,_.z);_.K=_.dK.prototype;_.K.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.K.addParticipant=function(v){var Q=_.NGB(this.participants,v,function(E,b){E=E[Object.keys(E)[0]];b=b[Object.keys(b)[0]];E=String(_.j0(E.authorName)).toLowerCase();b=String(_.j0(b.authorName)).toLowerCase();return E<b?-1:E==b?0:1}.bind(this));
if(Q>=0){var V=this.participants[Q];V[Object.keys(V)[0]].timestampUsec&&this.splice("participants",Q,1,v)}else this.splice("participants",-Q-1,0,v);v=v[Object.keys(v)[0]];Q=_.j0(v.authorName).toLocaleLowerCase();V=Q.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(V)||(this.allParticipantsCharMap_[V]={});this.allParticipantsCharMap_[V][Q]=v};
_.K.getAuthorsFromPrefix=function(v){return this.allParticipantsCharMap_.hasOwnProperty(v)?this.allParticipantsCharMap_[v]:null};
_.K.computeViewerRegex_=function(v){if(!v)return null;v=v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var Q=v.indexOf("@")===0&&_.Y("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(Q+v.replace(/ /g,"\\s*")+"|^"+v.replace(/ /g,"\\s*")+"$|^"+v.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+v.replace(/ /g,"\\s*")+"$|(?<=\\s)"+v.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.K.checkForStaleParticipants_=function(){var v=this;this.trimOldParticipants_();this.asyncHandle_&&k8m(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.JM(function(){v.checkForStaleParticipants_()},3E4))};
_.K.onChatMessage_=function(v){var Q=this,V=Date.now()*1E3;v.forEach(function(E){if(E=_.y(E,qvN)){E=E.item;var b=Object.keys(E)[0];Q.SUPPORTED_ITEM_TYPES_.indexOf(b)!=-1&&E[b].timestampUsec>=V-Q.PARTICIPANT_TIME_USEC_&&Q.addParticipant(E)}},this);
this.checkForStaleParticipants_()};
_.K.trimOldParticipants_=function(){for(var v=Date.now()*1E3,Q=this.participants.length-1;Q>=0;Q--){var V=this.participants[Q];V=V[Object.keys(V)[0]];V.timestampUsec&&V.timestampUsec<v-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",Q,1)}};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],_.dK.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],_.dK.prototype,"viewerName",void 0);_.W([_.q({computed:"computeViewerRegex_(viewerName)"}),_.X("design:type",Object)],_.dK.prototype,"viewerRegex",void 0);_.W([_.q({value:function(){return[]},
notify:!0}),_.X("design:type",Array)],_.dK.prototype,"participants",void 0);_.W([_.D7({is:"yt-live-chat-participants-manager",noInjection:!0})],_.dK);var ISa=/.*([:@#].*?)$/,hj=/\u00a0/g,HQR=String.fromCharCode(160),mx8={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"},wK=function(){var v=_.z.apply(this,arguments)||this;v.disabled=!1;v.liveChatRichMessageInput=null;v.messageInput=null;v.isValidWithNoInputText=!1;v.suggestions=[];v.emojiManager=_.tj;v.inputMethodEditorActive=
!1;v.suggestionIndex=-1;v.JSC$14303_lastSuggestionRange=null;return v};
_.f(wK,_.z);_.K=wK.prototype;_.K.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.K.attached=function(){_.V2&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.K.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.K.dataChanged=function(){if(!this.ignoreColorMapping){var v=!1,Q={},V;for(V in mx8)this.data&&this.data.hasOwnProperty(V)&&(Q[mx8[V]]=this.colorFromDecimal(this.data[V]),v=!0);v&&_.F6(this.hostElement,Q)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.K.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.K.colorFromDecimal=function(v){v=Math.floor(Number(v));return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
_.K.preventDrag=function(v){v.dataTransfer&&(v.dataTransfer.dropEffect="none");v.preventDefault()};
_.K.preventResize=function(v){v.returnValue=!1};
_.K.onInputChange=function(){var v=this.characterCount,Q=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&Q&&Q.remove();if(!Q&&this.characterCount>this.maxCharacterLimit){var V=window.getSelection();if(V){var E=V.getRangeAt(0);V.removeAllRanges();V.addRange(E)}}if(V=this.getCurrentRange())E=this.calculateTextBeforeRange(V),this.completeEmojisInRange(V,E,!0)||this.updateSuggestions(V,E);E=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(E);
_.Hj(this.hostElement,"yt-live-chat-message-input-change",E);Q&&this.characterCount===0&&Q.remove();V&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>v):V&&!V.collapsed&&V.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(v=this.input.childNodes.length-1;v>=0;v--)this.input.childNodes[v].nodeName==="BR"&&this.input.childNodes[v].remove()};
_.K.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.K.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var v=this.getCurrentRange();v&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.K.mergeOverflowText=function(v){if(v){var Q=document.createRange();Q.selectNodeContents(v);Q=Q.extractContents();this.input.insertBefore(Q,v)}};
_.K.checkRangeAtEndOfInput=function(){var v=this.getCurrentRange();if(v){var Q=_.m9(this.hostElement).querySelector("#overflow-text"),V=document.createRange();Q&&Q.previousSibling?Q.previousSibling instanceof HTMLImageElement?V.selectNode(Q.previousSibling):V.selectNodeContents(Q.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(v.startContainer,
v.startOffset)}return!1};
_.K.handleOverflowText=function(v){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var Q=_.m9(this.hostElement).querySelector("#overflow-text"),V=this.getCurrentRange();this.input.normalize();v=this.checkRangeAtEndOfInput()&&v;this.mergeOverflowText(Q);for(var E,b=0,F=0,t,p=this.input.childNodes,Z=0;Z<p.length;Z++){var d=p[Z];d instanceof Text?(F+=d.textContent.length,F>this.maxCharacterLimit&&(E=d,b=this.maxCharacterLimit+d.textContent.length-F)):d instanceof HTMLImageElement&&
(E=void 0,F=d.dataset.emojiId&&((E=this.data)==null?0:E.emojiCharacterCount)?F+this.data.emojiCharacterCount:F+d.alt.length,E=this.input,b=Z);if(F>this.maxCharacterLimit&&E){t=document.createRange();t.collapse(!1);Q?(F=this.input.lastChild.previousSibling,F instanceof Text?t.setEnd(this.input.lastChild.previousSibling,F.textContent.length):F instanceof HTMLImageElement&&t.setEnd(this.input,this.input.childNodes.length-1)):t.selectNodeContents(this.input);t.setStart(E,b);break}}t&&(E=!1,V&&(v=t.isPointInRange(V.startContainer,
V.startOffset-1)),Q||(Q=document.createElement("span"),Q.id="overflow-text",Q.textContent="",Q.setAttribute("contenteditable","true"),_.m9(_.m9(this.hostElement).querySelector("#input")).appendChild(Q),E=!0),Q&&(V=t.extractContents(),Q.insertBefore(V,Q.firstChild),v&&Q.firstChild&&(V=document.createRange(),E?V.setStartAfter(Q.lastChild):V.setStartAfter(Q.firstChild),V.collapse(!0),Q=window.getSelection(),Q.removeAllRanges(),Q.addRange(V))))}};
_.K.checkForDuplicateSpans=function(){for(var v=0;v<this.input.childNodes.length;v++){var Q=this.input.childNodes[v];if(Q.nodeName==="SPAN"){var V=document.createRange();V.selectNodeContents(Q);V=V.extractContents();this.input.insertBefore(V,Q);Q.remove()}}this.handleOverflowText(!0)};
_.K.getCurrentRange=function(){var v=window.getSelection();return v&&v.rangeCount?v.getRangeAt(0).cloneRange():null};
_.K.getInputRange=function(){var v=this.getCurrentRange();if(v){for(var Q=v.commonAncestorContainer,V=!1,E=_.m9(this.hostElement).querySelector("#input");Q;){if(Q===E){V=!0;break}Q=Q.parentNode}V||(v=null)}v||(v=this.getRangeAtEnd());return v};
_.K.getRangeAtEnd=function(){var v=document.createRange(),Q=_.m9(this.hostElement).querySelector("#input").lastChild;!Q||Q.nodeName!=="#text"&&Q.nodeName!=="SPAN"?(v.selectNodeContents(_.m9(this.hostElement).querySelector("#input")),v.collapse(!1)):Q.nodeName==="#text"?v.setStart(Q,Q.textContent.length):v.setStart(Q,Q.childNodes.length);return v};
_.K.getChatParticipantSuggestions=function(v,Q,V,E){var b=_.Y("live_chat_enable_handles_web_text_input_update");if(Q)for(var F in Q)if(F.indexOf(v)===0||b&&F.indexOf(V+v)===0){var t=Q[F],p=_.j0(t.authorName);E.push({suggestion:{author:!0,authorType:V,image:t.authorPhoto,alt:p,text:p}});if(E.length>=64)break}};
_.K.getSuggestions=function(v){var Q=[],V=v.substring(0,3),E=sLq(_.tj,V,!0);if(E)for(var b in E)if(b.toLocaleLowerCase().indexOf(v)===0){var F=E[b];if(F&&F.emojiId){if(F=gVa(_.tj,F.emojiId)){var t=void 0,p=void 0,Z=void 0,d=void 0,w=((t=F.image)==null?0:(p=t.accessibility)==null?0:(Z=p.accessibilityData)==null?0:Z.label)||F.isCustomEmoji?(d=F.shortcuts)==null?void 0:d[0]:F.emojiId;Q.push({suggestion:{emoji:!0,image:F.image,alt:w,text:b,textToInsertWhenSelected:F.isCustomEmoji?b:w}})}if(Q.length>=
64)break}}if(!this.participantsManager)return null;if(V.indexOf("@")===0||V.indexOf("#")===0)E=V.charAt(0),v=v.substring(1),b=_.Y("live_chat_enable_handles_web_text_input_update"),V.indexOf("@")===0&&b&&(b=this.participantsManager.getAuthorsFromPrefix(V.substring(0,2)),this.getChatParticipantSuggestions(v,b,E,Q)),V=V.substring(1),V=this.participantsManager.getAuthorsFromPrefix(V),this.getChatParticipantSuggestions(v,V,E,Q);return Q?Q.sort(function(A,k){return k.suggestion.text<A.suggestion.text?-1:
k.suggestion.text===A.suggestion.text?0:1}):null};
_.K.insertSuggestion=function(v){var Q=_.Y("live_chat_enable_handles_web_text_input_update"),V=v.authorType;Q=v.text.indexOf(V)===0&&Q?v.text+HQR:V+v.text+HQR;v.emoji?this.insertTextAtRange(this.JSC$14303_lastSuggestionRange,v.textToInsertWhenSelected||""):v.author&&this.insertTextAtRange(this.JSC$14303_lastSuggestionRange,Q)};
_.K.updateSuggestionsAtCaret=function(){var v=this.getCurrentRange();v&&this.updateSuggestions(v,this.calculateTextBeforeRange(v))};
_.K.offsetStartOfRangeBy=function(v,Q){for(;Q>0;)if(v.startOffset-Q>=0){v.setStart(v.startContainer,v.startOffset-Q);break}else{Q=v.startContainer instanceof HTMLImageElement?Q-v.startContainer.alt.length:Q-v.startOffset;var V=v.startContainer.previousSibling;if(!V){v.setStart(v.startContainer,0);break}if(_.Y("live_chat_require_space_for_autocomplete_emoji")){var E=void 0,b=void 0;v.setStart(V,((E=V)==null?void 0:(b=E.textContent)==null?void 0:b.length)||0)}else v.setStart(V,V.childNodes.length||
0)}};
_.K.updateSuggestions=function(v,Q){var V=this;this.JSC$14303_lastSuggestionRange&&(this.JSC$14303_lastSuggestionRange.detach(),this.JSC$14303_lastSuggestionRange=null);if((Q=ISa.exec(Q))&&Q.length&&(Q=Q[Q.length-1].toLocaleLowerCase(),Q.length>2&&(this.offsetStartOfRangeBy(v,Q.length),this.JSC$14303_lastSuggestionRange=v,(v=this.getSuggestions(Q))&&v.length))){this.suggestions=v;_.PE(this,function(){_.m9(V.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(v.length-1);return}this.dropdown.opened=!1};
_.K.completeEmojisInRange=function(v,Q,V){var E=Q.replace(/[\s\xa0]+$/,"");Q=Q.length-E.length;E=E.split(" ");E=E[E.length-1].trim().toLocaleLowerCase();var b=E.lastIndexOf(":");if(V&&!Q&&b!==E.length-1)return!1;b!==-1&&(V=E.lastIndexOf(":",b-1),V!==-1&&(E=E.substring(V)));if((V=_.Uu(_.tj,E))&&V.emojiId){V=gVa(_.tj,V.emojiId)||null;this.offsetStartOfRangeBy(v,E.length+Q);var F,t,p,Z;E=(((F=V)==null?0:F.isCustomEmoji)?(t=V)==null?void 0:(p=t.shortcuts)==null?void 0:p[0]:(Z=V)==null?void 0:Z.emojiId)||
"";Q&&(E+=HQR);this.insertTextAtRange(v,E);this.dropdown.opened=!1;return!0}return!1};
_.K.onSuggestion=function(v){this.insertSuggestion(v.detail);this.dropdown.opened=!1};
_.K.onKeyPress=function(v){v.keyCode===13&&(v.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Hj(this.hostElement,"yt-live-chat-send-message"))};
_.K.completeEmojis=function(){var v=document.createRange(),Q=_.m9(this.hostElement).querySelector("#input").lastChild;Q?v.setStart(Q,Q.childNodes.length):(v.selectNodeContents(_.m9(this.hostElement).querySelector("#input")),v.collapse(!1));this.completeEmojisInRange(v,this.calculateTextBeforeRange(v),_.Y("live_chat_require_space_for_autocomplete_emoji"))};
_.K.maybePreventTextFormatting=function(v){!_.KN||!v.ctrlKey&&!v.metaKey||v.keyCode!==66&&v.keyCode!==73||(v.stopImmediatePropagation(),v.preventDefault())};
_.K.onKeyDown=function(v){this.maybePreventTextFormatting(v);if(this.dropdown.opened)switch(v.keyCode){case 27:this.dropdown.opened=!1;v.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;v.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);v.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),v.preventDefault()}};
_.K.onKeyUp=function(v){switch(v.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Q2)this.onInputChange()};
_.K.changeSuggestionIndex=function(v){if(this.dropdown.opened){var Q=_.m9(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<Q.children.length&&(Q.children[this.suggestionIndex].active=!1);var V=this.suggestions.length;this.suggestionIndex=(v+V)%V;v=Q.children[this.suggestionIndex];v.active=!0;Q.scrollTop=v.offsetTop}};
_.K.onInputPaste=function(v){v.preventDefault();(v=v.clipboardData)&&v.types&&(v=v.getData("text/plain")||"",v=v.replace(/\n/g,""),this.insertText(v));(v=this.getCurrentRange())&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.K.onFocus=function(){this._setFocused(!0)};
_.K.onBlur=function(){this._setFocused(!1)};
_.K.insertText=function(v){this.insertTextAtRange(this.getInputRange(),v)};
_.K.insertTextAtRange=function(v,Q){if(v&&(v.collapsed||v.deleteContents(),Q=_.tj.createDocumentFragment(Q,!0,!1))){for(var V=_.L((Q==null?void 0:Q.childNodes)||[]),E=V.next();!E.done;E=V.next()){E=E.value;var b=void 0,F=void 0,t=void 0,p=void 0,Z=void 0;(t=(b=window)==null?void 0:(F=b.ShadyCSS)==null?void 0:F.ScopingShim)==null||(Z=(p=t).scopeNode)==null||Z.call(p,E,this.hostElement.localName)}V=Q.lastChild;v.insertNode(Q);this.focused||this.input.focus();if(this.focused){v=v.cloneRange();v.selectNodeContents(V);
v.collapse(!1);if(Q=window.getSelection())Q.removeAllRanges(),Q.addRange(v);v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}v=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(v);_.Hj(this.hostElement,"yt-live-chat-message-input-change",v)}};
_.K.setLiveChatRichMessageInput=function(v){_.m9(_.m9(this.hostElement).querySelector("#input")).textContent="";if(v&&v.textSegments){for(var Q=0;Q<v.textSegments.length;Q++){var V=v.textSegments[Q];V.text?_.m9(_.m9(this.hostElement).querySelector("#input")).appendChild(_.tj.createDocumentFragment(V.text,!0,!1)):V.emojiId&&(V=_.i_(_.tj,V.emojiId))&&_.m9(_.m9(this.hostElement).querySelector("#input")).appendChild(_.tj.createEmoji(V,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.K.setText=function(v){this.setLiveChatRichMessageInput(v?{textSegments:[{text:v}]}:null)};
_.K.calculateTextBeforeRange=function(v){var Q="",V=v.startContainer;if(V&&V instanceof Text){var E;Q=((E=V.textContent)==null?void 0:E.substring(0,v.startOffset))||"";V=V.previousSibling}for(;V&&V instanceof Text;)Q=V.textContent+Q,V=V.previousSibling;return Q.replace(hj," ")};
_.K.calculateLiveChatRichMessageInput=function(){for(var v=[],Q="",V=_.m9(_.m9(this.hostElement).querySelector("#input")).childNodes,E=0;E<V.length;E++){var b=V[E];b instanceof Text?Q+=b.textContent:b instanceof HTMLImageElement&&(b.dataset.emojiId?(Q&&(v.push({text:Q.replace(hj," ")}),Q=""),v.push({emojiId:b.dataset.emojiId})):Q+=b.alt)}Q&&v.push({text:Q.replace(hj," ")});if(V=_.m9(this.hostElement).querySelector("#overflow-text")){Q="";V=V.childNodes;for(E=0;E<V.length;E++)b=V[E],b instanceof Text?
Q+=b.textContent:b instanceof HTMLImageElement&&(b.dataset.emojiId?(Q&&(v.push({text:Q.replace(hj," ")}),Q=""),v.push({emojiId:b.dataset.emojiId})):Q+=b.alt);Q&&v.push({text:Q.replace(hj," ")})}return{textSegments:v}};
_.K.computeCharacterCount=function(v){if(!v||!v.textSegments)return 0;for(var Q=0,V=0;V<v.textSegments.length;V++){var E=v.textSegments[V];if(E.text)Q+=E.text.length;else if(E.emojiId){var b=void 0;if((b=this.data)==null?0:b.emojiCharacterCount)Q+=this.data.emojiCharacterCount;else{var F=b=void 0,t=void 0;Q+=((F=_.i_(_.tj,(b=E)==null?void 0:b.emojiId))==null?void 0:(t=F.shortcuts)==null?void 0:t[0].length)||0}}}return Q};
_.K.characterCountChanged=function(){_.Hj(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.K.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Pu("focused-changed",this.focused))};
_.K.focus=function(){this.setFocus(!1)};
_.K.focusAtEnd=function(){this.setFocus(!0)};
_.K.setFocus=function(v){v=v?this.getRangeAtEnd():this.getInputRange();_.m9(this.hostElement).querySelector("#input").focus();var Q=window.getSelection();Q&&(Q.removeAllRanges(),Q.addRange(v))};
_.K.insertEmoji=function(v){var Q,V=((v==null?0:v.isCustomEmoji)?(Q=v.shortcuts)==null?void 0:Q[0]:v==null?void 0:v.emojiId)||"";this.insertText(V)};
_.K.computeText=function(v){if(!v||!v.textSegments)return"";for(var Q="",V=0;V<v.textSegments.length;V++){var E=v.textSegments[V];if(E.text)Q+=E.text;else if(E.emojiId){var b=void 0,F=void 0,t=void 0;Q+=((F=_.i_(_.tj,(b=E)==null?void 0:b.emojiId))==null?void 0:(t=F.shortcuts)==null?void 0:t[0])||""}}return Q};
_.K.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.hr.Object.defineProperties(wK.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
wK.prototype.focusedChanged=wK.prototype.focusedChanged;wK.prototype.characterCountChanged=wK.prototype.characterCountChanged;wK.prototype.onSuggestion=wK.prototype.onSuggestion;wK.prototype.onMessageSet=wK.prototype.onMessageSet;wK.prototype.dataChanged=wK.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],wK.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],wK.prototype,"disabled",void 0);_.W([_.O("disabled"),_.X("design:type",Number),_.X("design:paramtypes",[])],wK.prototype,"inputTabIndex",null);_.W([_.O("data.maxCharacterLimit"),_.q({readOnly:!0,notify:!0}),_.X("design:type",Number),_.X("design:paramtypes",[])],wK.prototype,"maxCharacterLimit",null);
_.W([_.O("liveChatRichMessageInput"),_.q({readOnly:!0,notify:!0}),_.X("design:type",Number),_.X("design:paramtypes",[])],wK.prototype,"characterCount",null);_.W([_.O("maxCharacterLimit, characterCount"),_.q({readOnly:!0,notify:!0}),_.X("design:type",Number),_.X("design:paramtypes",[])],wK.prototype,"remainingCharacterCount",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],wK.prototype,"isChatMessageInput",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],wK.prototype,"inputExpanded",void 0);_.W([_.q({readOnly:!0,notify:!0}),_.X("design:type",Object)],wK.prototype,"liveChatRichMessageInput",void 0);_.W([_.q(),_.X("design:type",Object)],wK.prototype,"messageInput",void 0);_.W([_.q(),_.X("design:type",Boolean)],wK.prototype,"ignoreColorMapping",void 0);_.W([_.O("characterCount"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],wK.prototype,"hasText",null);
_.W([_.q(),_.X("design:type",Object)],wK.prototype,"isValidWithNoInputText",void 0);_.W([_.O("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.q(),_.X("design:type",Boolean),_.X("design:paramtypes",[])],wK.prototype,"isInputValid",null);_.W([_.q({readOnly:!0,value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],wK.prototype,"focused",void 0);_.W([_.q(),_.X("design:type",Array)],wK.prototype,"suggestions",void 0);
_.W([_.q(),_.X("design:type",_.KA)],wK.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",_.dK)],wK.prototype,"participantsManager",void 0);_.W([_.q(),_.X("design:type",Boolean)],wK.prototype,"noUnderline",void 0);_.W([_.q(),_.X("design:type",Object)],wK.prototype,"inputMethodEditorActive",void 0);_.W([_.Z7("#dropdown"),_.X("design:type",Object)],wK.prototype,"dropdown",void 0);_.W([_.Z7("#input"),_.X("design:type",HTMLElement)],wK.prototype,"input",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wK.prototype,"dataChanged",null);_.W([_.ph("messageInput"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wK.prototype,"onMessageSet",null);_.W([_.tM("yt-live-chat-select-suggestion"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],wK.prototype,"onSuggestion",null);
_.W([_.ph("characterCount"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wK.prototype,"characterCountChanged",null);_.W([_.ph("focused"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wK.prototype,"focusedChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],wK);
_.Ux8=_.B(wK,"yt-live-chat-text-input-field-renderer",function(){if(aSQ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;X3A===void 0&&(X3A=document.createElement("template"));var E=X3A;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);aSQ=v}v=aSQ;return v},{mode:0});var Aj=function(){var v=_.z.apply(this,arguments)||this;v.buttonOverrides={style:"overlay",type:"filled"};v.allowAnimations=!1;v.modern=_.Y("web_button_rework_with_live");v.noPadding=!1;return v};
_.f(Aj,_.z);_.K=Aj.prototype;_.K.shouldSupportInlineActionButtons=function(){return!0};
_.K.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"}}}}};
_.K.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.K.attached=function(){this.allowAnimations=!1};
_.K.dataChanged=function(){if(this.data){var v={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.F6(this.hostElement,v);this.allowAnimations=!0}};
_.K.messageChanged=function(){var v,Q=(v=this.data)==null?void 0:v.message;v=_.m9(_.m9(this.hostElement).querySelector("#message"));v.textContent="";Q&&v.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Q))};
_.K.computeShowOnlyHeader=function(v,Q){return!v||v.pdgLikeButton||v.replyButton||v.buyFlowButton?!1:this.isEmpty(v,Q)&&!v.footer};
_.K.computeShowFooterDivider=function(v,Q,V){return v?!!v.footer&&!this.isEmpty(v,Q)&&!V:!1};
_.K.computeIsUserEditable=function(v){return!!v.inputField};
_.K.computeHasHeartButton=function(v){return(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.K.computeNoveltyImage=function(v){if(v.headerOverlayImage&&v.headerOverlayImage.thumbnails.length){var Q=v.headerOverlayImage.thumbnails[0],V,E;if((V=v.pdgPurchasedNoveltyLoggingDirectives)==null?0:(E=V.loggingDirectives)==null?0:E.trackingParams){var b,F;dxm((b=v.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(F=b.loggingDirectives)==null?void 0:F.trackingParams)}return Q.width||0}return 0};
_.K.computeAuthorPhotoSize=function(v){return(v==null?0:v.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.K.inputFocus=function(){var v=_.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");v&&v.focus()};
_.K.inputInsertEmoji=function(v){var Q=_.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Q&&Q.insertEmoji(v)};
_.K.inputMessage=function(){var v=_.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),Q;return v&&((Q=this.data)==null?0:Q.inputField)?(v.completeEmojis(),_.qC(v.liveChatRichMessageInput)):null};
_.K.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.K.isEmpty=function(v,Q){return v?v.empty||!(v.message||v.inputField||Q):!0};
_.K.onLowerBuyButtonClick=function(){var v,Q=_.y((v=this.data)==null?void 0:v.buyButton,_.KH);Q&&Q.trackingParams&&!XP3(Q.command)&&(v=_.dE(Q.trackingParams))&&(Q=_.Mo())&&_.uI(Q,v)};
_.K.shouldSupportWholeItemClick=function(){return!0};
_.hr.Object.defineProperties(Aj.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Aj.prototype.isDeletedChanged=Aj.prototype.isDeletedChanged;Aj.prototype.messageChanged=Aj.prototype.messageChanged;Aj.prototype.dataChanged=Aj.prototype.dataChanged;_.W([_.M(fw8.YtPdgLiveChatItemBehavior),_.X("design:type",Object)],Aj.prototype,"ytPdgLiveChatItemBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],Aj.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],Aj.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Aj.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:ZQE}),_.X("design:type",Object)],Aj.prototype,"engagementState",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.X("design:type",Boolean)],Aj.prototype,"isUserEditable",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.X("design:type",Boolean)],Aj.prototype,"hasHeartButton",void 0);_.W([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Aj.prototype,"showOnlyHeader",void 0);
_.W([_.q({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Aj.prototype,"showFooterDivider",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Object)],Aj.prototype,"allowAnimations",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Aj.prototype,"dashboardMoneyFeed",void 0);_.W([_.q({computed:"computeNoveltyImage(data)"}),_.X("design:type",Number)],Aj.prototype,"noveltyWidth",void 0);
_.W([_.q({computed:"computeAuthorPhotoSize(data)"}),_.X("design:type",Number)],Aj.prototype,"authorPhotoSize",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Aj.prototype,"modern",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Aj.prototype,"noPadding",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Aj.prototype,"dataChanged",null);
_.W([_.ph("data.message"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Aj.prototype,"messageChanged",null);_.W([_.O("data","dashboardMoneyFeed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Aj.prototype,"hideLowerBumper",null);_.W([_.ph("isDeleted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Aj.prototype,"isDeletedChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Aj);
_.B(Aj,"yt-live-chat-paid-message-renderer",function(){if(bQZ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;EVq===void 0&&(EVq=document.createElement("template"));var E=EVq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);bQZ=v}v=bQZ;return v},{mode:0});var v6A;var QoQ;var kX=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;return v};
_.f(kX,_.dg);kX.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.r7("openPopupConfig")};
_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],kX.prototype,"ytOpenPopupBehavior",void 0);_.W([_.hM()],kX);_.TX=[_.l6.YtOpenPopupBehavior,kX.prototype];var VFA;var MFb=[_.tn,tON,_.Vd,_.pF,_.sn,_.lbA,_.PH,_.TKR,_.Cq,_.uP,_.BKN];_.Y("web_continuation_response_processing")&&MFb.push(_.RJ);var S8m=new _.KB("RESPONSE_RECEIVED_COMMANDS"),Cr0=new _.KB("RESPONSE_RECEIVED_COMMANDS");var kBr="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),AmE=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],wJb=["GET_UNSEEN_NOTIFICATION_COUNT"];var YX=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;v.serviceEndpointHandlers=[];return v};
_.f(YX,_.dg);YX.prototype.created=function(){var v=this;this.endpointHandlerActionMap={"yt-service-request":function(Q,V,E,b){var F;return ht3(v.hostElement,Q,V,E,b,v.serviceEndpointHandlers,(F=v.onEntitiesUpdated)==null?void 0:F.bind(v))}}};
YX.prototype.attached=function(){_.iM(_.KW.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
YX.prototype.detached=function(){_.LW(_.KW.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.W([_.hM()],YX);_.E6S=[YX.prototype];var bcA,FzV=function(){return bcA!==void 0?bcA:bcA=document.createElement("template")};
document.head.appendChild(FzV().content);var KzN;var icV=document.head,LzZ=icV.appendChild,tFx;if(KzN===void 0){var pJq=document.createElement("template");_.G(pJq,"\x3c!--css-build:shady--\x3e");pJq.content.insertBefore(FzV().content.cloneNode(!0),pJq.content.firstChild);KzN=pJq}tFx=KzN;LzZ.call(icV,tFx.content);var eta,ZcV=function(){return eta!==void 0?eta:eta=document.createElement("template")};
document.head.appendChild(ZcV().content);var PrS;var d5R=document.head,htS=d5R.appendChild,wJx;if(PrS===void 0){var AmZ=document.createElement("template");_.G(AmZ,"\x3c!--css-build:shady--\x3e");AmZ.content.insertBefore(ZcV().content.cloneNode(!0),AmZ.content.firstChild);PrS=AmZ}wJx=PrS;htS.call(d5R,wJx.content);var kBa;_.yZ("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.yZ("sharingRendererButtons","buttonRenderer","ytd-button-renderer");kBa=_.Y("web_button_rework")&&_.mX("BUTTON_REWORK")||_.Y("web_button_rework_with_live");_.ym=function(){var v=_.z.apply(this,arguments)||this;v.isPressed=!1;v.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return v};
_.f(_.ym,_.z);_.K=_.ym.prototype;_.K.created=function(){this.showTooltips=!0};
_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.onHintIdChanged=function(){var v=this,Q,V,E=(Q=this.ytButtonBehavior.data)==null?void 0:(V=Q.hint)==null?void 0:V.hintRenderer;if(E&&E.hintId){Q=_.Un(this.hostElement,"yt-get-opened-popups-action");Q=(Q&&Q.length===1?Q[0]:[]).length>0;var b=null;E.hintId!=="sponsor-pre-purchase"||Q?E.hintId.startsWith("sponsor-post-purchase")&&!Q?b=LcZ("membership-manage"):E.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!Q&&(b=LcZ("membership-freebie-join")):b=LcZ("membership-join");b&&_.XT.addLowPriorityJob(function(){for(var F=
_.L(b),t=F.next();!t.done;t=F.next())v.ytComponentBehavior.resolveCommand(t.value)})}};
_.K.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.K.onYtNavigate=function(v){var Q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);Q&&(v.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Q))};
_.K.onYtServiceRequestSent=function(v,Q){this.handleServiceRequestActions(Q);_.Hj(this.hostElement,"yt-service-request-sent-button-renderer")};
_.K.onServiceRequestCompleted=function(v,Q){this.handleServiceRequestActions(Q);_.Hj(this.hostElement,"yt-service-request-completed-button-renderer")};
_.K.updateButton=function(v){var Q;if(v=(Q=_.y(v,vmS))==null?void 0:Q.updatedButton)this.ytButtonBehavior.data=_.y(v,_.KH)};
_.K.handleUpdateButtonAction=function(v){var Q=this.ytButtonBehavior.data;Q.targetId&&v.updateButtonAction.targetId&&Q.targetId===v.updateButtonAction.targetId&&this.updateButton(v)};
_.K.handleServiceRequestActions=function(v){if(v=v.actions)for(var Q=0;Q<v.length;Q++)this.updateButton(v[Q])};
_.hr.Object.defineProperties(_.ym,{template:{configurable:!0,enumerable:!0,get:function(){if(VFA===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);VFA=v}v=VFA;return v}}});
_.ym.prototype.onServiceRequestCompleted=_.ym.prototype.onServiceRequestCompleted;_.ym.prototype.onYtServiceRequestSent=_.ym.prototype.onYtServiceRequestSent;_.ym.prototype.onYtNavigate=_.ym.prototype.onYtNavigate;_.ym.prototype.onPressedStateChanged=_.ym.prototype.onPressedStateChanged;_.ym.prototype.onHintIdChanged=_.ym.prototype.onHintIdChanged;_.W([_.q(),_.X("design:type",Object)],_.ym.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],_.ym.prototype,"isPressed",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],_.ym.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.fUq.YtButtonBehavior),_.X("design:type",Object)],_.ym.prototype,"ytButtonBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],_.ym.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],_.ym.prototype,"ytComponentBehavior",void 0);
_.W([_.M(sA.YtRenderButtonBehavior),_.X("design:type",Object)],_.ym.prototype,"ytRenderButtonBehavior",void 0);_.W([_.ph("data.hint.hintRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],_.ym.prototype,"onHintIdChanged",null);_.W([_.ph("isPressed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],_.ym.prototype,"onPressedStateChanged",null);
_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],_.ym.prototype,"onYtNavigate",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],_.ym.prototype,"onYtServiceRequestSent",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],_.ym.prototype,"onServiceRequestCompleted",null);_.W([_.J({is:"ytd-button-renderer",disableElementRegistration:kBa})],_.ym);var cu=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.f(cu,_.z);_.K=cu.prototype;_.K.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"}}}}};
_.K.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.K.dataChanged=function(){if(this.data&&this.data.sticker){var v=_.rE(this.data.sticker.thumbnails,this.stickerWidth);v||_.qWZ(v).thenCatch(function(){_.Iy(new _.xd("Failed to load Super Sticker with url",v))})}};
_.K.computeAuthorPhotoSize=function(v){return(v==null?0:v.isV2Style)?32:40};
_.K.computeIsV2Style=function(v){return(v==null?0:v.isV2Style)?!0:!1};
_.K.onStickerLoaded=function(v){var Q,V,E;(Q=_.jV(v))==null||(V=Q.parentNode)==null||(E=V.classList)==null||E.add("sticker-loaded")};
_.K.computeNoveltyImageWidth=function(v){var Q,V;if(v==null?0:(Q=v.headerOverlayImage)==null?0:(V=Q.thumbnails)==null?0:V.length){Q=v.headerOverlayImage.thumbnails[0];var E,b;if((E=v.pdgPurchasedNoveltyLoggingDirectives)==null?0:(b=E.loggingDirectives)==null?0:b.trackingParams){var F,t;dxm((F=v.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(t=F.loggingDirectives)==null?void 0:t.trackingParams)}return Q.width||0}return 0};
_.K.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.K.updateStickerStyles=function(){var v=this.data;v&&(v={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.authorNameTextColor)},
_.F6(this.hostElement,v))};
_.K.onBuyButtonClick=function(){var v,Q=_.y((v=this.data)==null?void 0:v.buyButton,_.KH);Q&&!XP3(Q.command)&&this.ytRendererBehavior.logExplicitClick(Q)};
_.K.shouldSupportWholeItemClick=function(){return!0};
_.hr.Object.defineProperties(cu.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
cu.prototype.updateStickerStyles=cu.prototype.updateStickerStyles;cu.prototype.isDeletedChanged=cu.prototype.isDeletedChanged;cu.prototype.onStickerLoaded=cu.prototype.onStickerLoaded;cu.prototype.dataChanged=cu.prototype.dataChanged;_.W([_.M(fw8.YtPdgLiveChatItemBehavior),_.X("design:type",Object)],cu.prototype,"ytPdgLiveChatItemBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],cu.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],cu.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cu.prototype,"data",void 0);
_.W([_.q({computed:"computeAuthorPhotoSize(data)"}),_.X("design:type",Number)],cu.prototype,"authorPhotoSize",void 0);_.W([_.q(),_.X("design:type",Boolean)],cu.prototype,"isDeleted",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],cu.prototype,"dashboardMoneyFeed",void 0);_.W([_.q({computed:"computeNoveltyImageWidth(data)"}),_.X("design:type",Number)],cu.prototype,"noveltyWidth",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],cu.prototype,"modern",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.X("design:type",Boolean)],cu.prototype,"isV2Style",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cu.prototype,"dataChanged",null);_.W([_.tM("yt-img-shadow-loaded"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],cu.prototype,"onStickerLoaded",null);
_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],cu.prototype,"stickerWidth",null);_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],cu.prototype,"stickerHeight",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],cu.prototype,"hasHeartButton",null);_.W([_.O("data","dashboardMoneyFeed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],cu.prototype,"hideLowerBumper",null);
_.W([_.ph("isDeleted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cu.prototype,"isDeletedChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cu.prototype,"updateStickerStyles",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],cu);
_.B(cu,"yt-live-chat-paid-sticker-renderer",function(){if(QoQ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;v6A===void 0&&(v6A=document.createElement("template"));var E=v6A;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);QoQ=v}v=QoQ;return v},{mode:0});var TNN;var YWN;var ymZ,cmq=function(){return ymZ!==void 0?ymZ:ymZ=document.createElement("template")};
document.head.appendChild(cmq().content);var fYa,GBq=function(){return fYa!==void 0?fYa:fYa=document.createElement("template")};
document.head.appendChild(GBq().content);var Crq;var MFx,Ocq=function(){return MFx!==void 0?MFx:MFx=document.createElement("template")};
document.head.appendChild(Ocq().content);var D5p;var Rta=document.head,n6a=Rta.appendChild,lYa;if(D5p===void 0){var qWp=document.createElement("template");_.G(qWp,"\x3c!--css-build:shady--\x3e");qWp.content.insertBefore(Ocq().content.cloneNode(!0),qWp.content.firstChild);D5p=qWp}lYa=D5p;n6a.call(Rta,lYa.content);var SWa=document.head,ztx=SWa.appendChild,Jmx;if(Crq===void 0){var fA=document.createElement("template");_.G(fA,"\x3c!--css-build:shady--\x3e");fA.content.insertBefore(GBq().content.cloneNode(!0),fA.content.firstChild);fA.content.insertBefore(cmq().content.cloneNode(!0),fA.content.firstChild);Crq=fA}Jmx=Crq;ztx.call(SWa,Jmx.content);var GX=function(){var v=_.dg.apply(this,arguments)||this;v.focusedIndex=0;v.verticalOffset=0;v.verticalAlign="top";v.dynamicAlign=!0;return v};
_.f(GX,_.dg);GX.prototype.emojiUrl=function(v){v=_.i_(this.emojiManager,v);if(!v)return"";var Q;v=(Q=v.image)==null?void 0:Q.thumbnails;return _.rE(v,24)||""};
var NNR=function(v){var Q;v.emojiVariants&&(Q=v.data)!=null&&Q.target&&_.PE(v,function(){v.set("verticalOffset",-1*v.hostElement.clientHeight);var V=_.m9(v.hostElement).querySelector("img");V&&V.focus()})};
_.K=GX.prototype;_.K.onKeyboardEnter=function(){};
_.K.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.K.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.K.onKeyDown=function(v){switch(v.keyCode){case 13:this.onKeyboardEnter();v.preventDefault();break;case 40:this.changeFocus(1);v.preventDefault();break;case 38:this.changeFocus(-1);v.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.K.onYtEmojiSelect=function(v){var Q=this,V,E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1)return E=(V=Q.data)==null?void 0:V.emoji,t=((b=E)==null?void 0:b.stickyPrefId)||((F=E)==null?void 0:F.emojiId),Z=(p=v.detail)==null?void 0:p.emojiId,t&&Z&&t!==Z?w.yield((d=Q.emojiManager)==null?void 0:uwQ(d,E,Z),2):w.return();_.mb(Q.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[E,Z]);_.q1(w)})};
_.K.changeFocus=function(v){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+v+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(v=_.m9(this.hostElement).querySelector("#variants"))&&v.children[this.focusedIndex].focus())};
_.hr.Object.defineProperties(GX.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
GX.prototype.onYtEmojiSelect=GX.prototype.onYtEmojiSelect;GX.prototype.onKeyDown=GX.prototype.onKeyDown;GX.prototype.onEmojiVariantsChanged=GX.prototype.onEmojiVariantsChanged;GX.prototype.onVerticalOffsetOrPositionTargetChanged=GX.prototype.onVerticalOffsetOrPositionTargetChanged;_.W([_.M(_.Kd),_.X("design:type",Object)],GX.prototype,"ironOverlayBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GX.prototype,"data",void 0);_.W([_.q(),_.X("design:type",_.KA)],GX.prototype,"emojiManager",void 0);
_.W([_.q(),_.X("design:type",Object)],GX.prototype,"emojiVariants",void 0);_.W([_.q(),_.X("design:type",Object)],GX.prototype,"focusedIndex",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],GX.prototype,"positionTarget",null);_.W([_.q({reflectToAttribute:!0}),_.O("verticalOffset","data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],GX.prototype,"isPositioned",null);_.W([_.q(),_.X("design:type",Object)],GX.prototype,"verticalOffset",void 0);
_.W([_.q(),_.X("design:type",Object)],GX.prototype,"verticalAlign",void 0);_.W([_.q(),_.X("design:type",Object)],GX.prototype,"dynamicAlign",void 0);_.W([_.ph("verticalOffset","positionTarget"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],GX.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.W([_.ph("emojiVariants"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],GX.prototype,"onEmojiVariantsChanged",null);
_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],GX.prototype,"onKeyDown",null);_.W([_.tM("yt-emoji-select"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype",Promise)],GX.prototype,"onYtEmojiSelect",null);_.W([_.hM()],GX);var x5V=[GX.prototype];var BNq;var g6p;var soq=/medium-light|medium-dark|light|medium|dark/,umZ=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,joS=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),CA=function(){var v=_.z.apply(this,arguments)||this;v.userSelection={left:null,right:null};v.scrollAction="lock";v.isEmojiDraftInProgress=!1;return v};
_.f(CA,_.z);_.K=CA.prototype;_.K.onClick=function(v){v=_.jV(v);v instanceof HTMLImageElement&&this.selectOrUpdateEmoji(v)};
_.K.selectOrUpdateEmoji=function(v){var Q=v.getAttribute("selection");Q&&(Q==="default"?_.Hj(this.hostElement,"yt-emoji-select",_.i_(this.emojiManager,v.id)):Q==="left"?this.userSelection=Object.assign({},this.userSelection,{left:v.src}):Q==="right"?this.userSelection=Object.assign({},this.userSelection,{right:v.src}):Q==="user"&&this.userSelection.left&&this.userSelection.right&&_.Hj(this.hostElement,"yt-emoji-select",_.i_(this.emojiManager,v.id)))};
_.K.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.K.onMultiSelectorThumbnailRowChanged=function(){var v,Q,V;((v=this.data)==null?0:(Q=v.emoji)==null?0:(V=Q.multiSelectorThumbnailRow)==null?0:V.length)&&this.openSelector()};
_.K.getThumbnailFromEmojiRow=function(v){var Q,V;return(v==null?void 0:(Q=v.thumbnails)==null?void 0:(V=Q[0])==null?void 0:V.url)||""};
_.K.getEmojiAltTextForPartialSelector=function(v){var Q;return((Q=this.getThumbnailFromEmojiRow(v).match(umZ))==null?void 0:Q[0])||""};
_.K.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.K.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.K.getRowSelection=function(v){return["left","right"][v]};
_.K.getIdFromComposedEmoji=function(v){return(v==null?void 0:v.emojiId)||""};
_.K.getEmojiFromPartialSelections=function(v,Q){if(!v&&!Q)return null;var V,E,b=(V=this.data)==null?void 0:(E=V.emoji)==null?void 0:E.variantIds;if(!b||!b.length)return null;var F;v=(F=v.match(soq))==null?void 0:F[0];var t;Q=(t=Q.match(soq))==null?void 0:t[0];if(!v||!Q)return null;var p=joS.get(v);t=joS.get(Q);if(p===t){t=Array.from(joS.values()).filter(function(d){return d!==p}).join("|");
var Z=new RegExp("^((?!("+t+")).)*"+p+"$")}else Z=new RegExp(p+".*"+t);return(b=b.find(function(d){return Z.test(d)}))&&_.i_(this.emojiManager,b)||null};
_.K.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var v,Q=this.ytEmojiSelectorBehavior.emojiUrl(((v=this.data.emoji)==null?void 0:v.emojiId)||"");_.m9(this.hostElement).querySelector('[selection="user"]').src.includes(Q)||(this.isEmojiDraftInProgress=!0)}};
_.K.onDomChange=function(){NNR(this.ytEmojiSelectorBehavior)};
_.K.getFocusableElements=function(){return _.m9(this.hostElement).querySelectorAll("img").filter(function(v){return v.getAttribute("role")==="option"})};
_.K.changeFocus=function(v){var Q=this.getFocusableElements();Q!=null&&Q.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+v+Q.length)%Q.length,this.ytEmojiSelectorBehavior.focusedIndex<Q.length&&(v=Q[this.ytEmojiSelectorBehavior.focusedIndex])&&v.focus())};
_.K.onKeyboardEnter=function(){var v=this.getFocusableElements();v!=null&&v.length&&(v=v[this.ytEmojiSelectorBehavior.focusedIndex])&&v instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(v),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.hr.Object.defineProperties(CA.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var v=this,Q,V,E;return this.emojiManager&&((Q=this.data)==null?0:(V=Q.emoji)==null?0:(E=V.variantIds)==null?0:E.length)?this.data.emoji.variantIds.map(function(b){return!!b&&_.i_(v.emojiManager,b)}).filter(function(b){return!!b}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var v,Q=(v=this.userSelection)==null?void 0:v.left,V;v=(V=this.userSelection)==null?void 0:V.right;return Q&&v?this.getEmojiFromPartialSelections(Q,v):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.composedEmojiSelection)==null?0:v.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var Q;v=(Q=this.userSelection)==null?void 0:Q.left;var V;Q=(V=this.userSelection)==null?void 0:V.right;if(!v&&!Q){var E;return this.ytEmojiSelectorBehavior.emojiUrl(((E=this.data.emoji)==null?void 0:E.emojiId)||"")}return v&&!Q?v:!v&&Q?Q:""}}});
CA.prototype.onMultiSelectorThumbnailRowChanged=CA.prototype.onMultiSelectorThumbnailRowChanged;CA.prototype.onClick=CA.prototype.onClick;_.W([_.M(_.Kd),_.X("design:type",Object)],CA.prototype,"ironOverlayBehavior",void 0);_.W([_.M(x5V),_.X("design:type",Object)],CA.prototype,"ytEmojiSelectorBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CA.prototype,"data",void 0);_.W([_.q(),_.X("design:type",_.KA)],CA.prototype,"emojiManager",void 0);
_.W([_.q(),_.X("design:type",Object)],CA.prototype,"userSelection",void 0);_.W([_.q(),_.X("design:type",Object)],CA.prototype,"scrollAction",void 0);_.W([_.q(),_.X("design:type",Object)],CA.prototype,"isEmojiDraftInProgress",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CA.prototype,"emojiVariants",null);_.W([_.O("data","userSelection"),_.X("design:type",Object),_.X("design:paramtypes",[])],CA.prototype,"composedEmojiSelection",null);
_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[MouseEvent]),_.X("design:returntype")],CA.prototype,"onClick",null);_.W([_.ph("data.emoji.multiSelectorThumbnailRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],CA.prototype,"onMultiSelectorThumbnailRowChanged",null);_.W([_.O("data","userSelection","composedEmojiSelection"),_.X("design:type",String),_.X("design:paramtypes",[])],CA.prototype,"draftEmojiUrl",null);
_.W([_.D7({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],CA);
_.B(CA,"yt-emoji-multi-person-selector",function(){if(g6p===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;BNq===void 0&&(BNq=document.createElement("template"));var E=BNq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);g6p=v}v=g6p;return v},{mode:2});var Wzq;var o6R;var MK=function(){var v=_.z.apply(this,arguments)||this;v.tooltip_=null;return v};
_.f(MK,_.z);_.K=MK.prototype;_.K.dataChanged_=function(){var v;if((v=this.data)==null?0:v.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.m9(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.bf)(this.tooltip_).textContent=this.data.tooltip};
_.K.computeTargetId=function(){var v;return((v=this.data)==null?void 0:v.targetId)||""};
_.K.computeId_=function(v){return v};
_.K.computeIcon_=function(v){return _.VK(v)};
_.K.onTap_=function(){this.active=!this.active;_.Hj(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.K.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("active-changed",this.active))};
_.hr.Object.defineProperties(MK.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var v,Q;if((v=this.data)==null?0:(Q=v.icon)==null?0:Q.iconType)return this.data.icon.iconType==="SUPER_STICKER";var V,E;return((V=this.data)==null?void 0:(E=V.icon)==null?void 0:E.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
MK.prototype.activeChangedForBinding=MK.prototype.activeChangedForBinding;MK.prototype.dataChanged_=MK.prototype.dataChanged_;_.W([_.M(_.QL.YtLiveChatTooltipTargetingBehavior),_.X("design:type",Object)],MK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],MK.prototype,"data",void 0);_.W([_.q({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.X("design:type",String)],MK.prototype,"id",void 0);
_.W([_.q({computed:"computeTargetId(data.targetId)"}),_.X("design:type",String)],MK.prototype,"targetId",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],MK.prototype,"active",void 0);_.W([_.q({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.X("design:type",String)],MK.prototype,"icon",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MK.prototype,"dataChanged_",null);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],MK.prototype,"iconFilled",null);_.W([_.ph("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MK.prototype,"activeChangedForBinding",null);_.W([_.D7({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],MK);
_.B(MK,"yt-emoji-picker-category-button-renderer",function(){if(o6R===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Wzq===void 0&&(Wzq=document.createElement("template"));var E=Wzq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);o6R=v}v=o6R;return v},{mode:2});var XJS;var aYx;var OZ=function(){var v=_.z.apply(this,arguments)||this;v.ariaLabel=null;v.ariaActivedescendant=null;v.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};v.JSC$14368_ignoreNextFocus_=!1;v.longPressTimeoutId=-1;return v};
_.f(OZ,_.z);_.K=OZ.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.K.emojiChanged_=function(){this.changeFocus_(0,!1);for(var v=_.tR(),Q=0;Q<this.emoji.length;Q++){var V={veType:88013,elementIndex:Q},E=this.emoji[Q];E.isCustomEmoji&&(E=document.querySelector(("#"+E.emojiId).replace("/","\\/")))&&(V=_.Lx(v,V))&&(E.visualElement=V)}};
_.K.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.K.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.K.emojiSkinToneChanged_=function(v){this.skinTone=v};
_.K.dataChanged=function(){this.data&&this.data.emojiData&&xx8(this.emojiManager,this.data.emojiData)};
_.K.emojiUrl=function(v){v=this.getEmoji(v);if(!v)return"";var Q;v=(Q=v.image)==null?void 0:Q.thumbnails;return _.rE(v,24)||""};
_.K.emojiAlt=function(v){var Q=this.get("image.accessibility.accessibilityData.label",v);return Q?Q:v.isCustomEmoji?v.shortcuts[0]:v.emojiId};
_.K.emojiAriaLabel=function(v){return v.shortcuts?v.shortcuts[0]:""};
_.K.emojiAriaSelected=function(v,Q,V){return v&&V==Q?"true":"false"};
_.K.getEmoji=function(v){if(this.emojiManager)return this.shouldUseStickyPreferences?gVa(this.emojiManager,v):LA(this.emojiManager,v)};
_.K.computeId_=function(v){return v.categoryId||""};
_.K.computeEmoji=function(v){var Q=this;return this.emojiManager?v.emojiIds?v.emojiIds.map(function(V){return V?_.i_(Q.emojiManager,V):null}).filter(SWr):v.emojiData?v.emojiData.map(function(V){var E=!!V.emojiId&&_.i_(Q.emojiManager,V.emojiId);
return E?Object.assign({},E,V):null}).filter(SWr):[]:[]};
_.K.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.K.computeAriaLabel_=function(v){return _.j0(v)};
_.K.computeAriaActivedescendant_=function(v,Q){return v&&v[Q]?v[Q].emojiId||"":""};
_.K.handleLongPressEmojiWithVariants=function(v,Q){this.changeFocusToEmoji(v.emojiId,!1);this.openVariantSelector(v,Q)};
_.K.onMouseDown=function(v){var Q=this;this.hostElement!==document.activeElement&&(this.JSC$14368_ignoreNextFocus_=!0);if(v.button===0){var V=_.jV(v);if(V instanceof HTMLImageElement){var E=_.m9(this.hostElement).querySelector("#repeat").itemForElement(V);this.emojiContainsVariants(E)&&(this.longPressTimeoutId=setTimeout(function(){Q.handleLongPressEmojiWithVariants(E,V)},500))}}};
_.K.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.K.onFocus=function(){this.JSC$14368_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14368_ignoreNextFocus_=!1};
_.K.onBlur_=function(){this.showFocus=!1};
_.K.emojiContainsVariants=function(v){return!!(v&&v.variantIds&&v.variantIds.length)};
_.K.onClick=function(v){clearTimeout(this.longPressTimeoutId);v=_.jV(v);if(v instanceof HTMLImageElement){var Q=v.id;this.changeFocusToEmoji(Q,!1);var V=this.getEmoji(Q),E;if(E=this.shouldUseStickyPreferences&&this.emojiContainsVariants(V)){var b;E=!((b=this.emojiManager.emojiMap[Q])!=null&&b.stickyPrefId)}E?(b=_.m9(this.hostElement).querySelector("#repeat").itemForElement(v),this.openVariantSelector(b,v)):_.Hj(this.hostElement,"yt-emoji-select",V)}};
_.K.isActiveEmojiWithVariants=function(v,Q){return v&&Q?Q.stickyPrefId?v===Q.stickyPrefId:v===Q.emojiId:!1};
_.K.onCloseEmojiVariantSelector=function(v){this.activeEmojiWithVariantsId===v&&(this.activeEmojiWithVariantsId="")};
_.K.onMouseOver_=function(v){v=_.jV(v);v instanceof HTMLImageElement&&_.Hj(this.hostElement,"yt-emoji-hover",_.i_(this.emojiManager,v.id))};
_.K.changeFocus_=function(v,Q){this.focusedIndex=(this.focusedIndex+v+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(v=this.emoji[this.focusedIndex],Q&&(this.showFocus=!0,_.m9(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Hj(this.hostElement,"yt-emoji-hover",v)))};
_.K.changeFocusToEmoji=function(v,Q){if(v){var V=this.emoji.findIndex(function(E){return E.emojiId===v});
V!==-1&&this.changeFocus_(V-this.focusedIndex,Q)}};
_.K.onKeyDown_=function(v){switch(v.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var Q=this.emoji[this.focusedIndex];if(Q&&Q.emojiId){if(this.emojiContainsVariants(Q)){var V=_.m9(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(Q,V)}else _.Hj(this.hostElement,"yt-emoji-select",LA(this.emojiManager,Q.emojiId)),this.hostElement.focus();v.preventDefault()}}break;case 40:this.changeFocus_(1,!0);v.preventDefault();break;case 38:this.changeFocus_(-1,!0),
v.preventDefault()}};
_.K.onEmojiStickyPreferenceChanged=function(v,Q){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&v.emojiId&&v.variantIds&&v.variantIds.includes(Q)&&this.activeEmojiWithVariantsId!==Q&&this.setStickyEmojiPreference(v.emojiId,Q)};
_.K.openVariantSelector=function(v,Q){this.activeEmojiWithVariantsId=v.stickyPrefId||v.emojiId||"";_.Hj(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:v,target:Q})};
_.K.setStickyEmojiPreference=function(v,Q){if(this.data){var V=this.emoji.findIndex(function(b){return b.emojiId===v});
if(V!==-1){var E=this.emoji[V];E.stickyPrefId=Q;this.set("emoji."+V,Object.assign({},E));this.activeEmojiWithVariantsId=Q}}};
OZ.prototype.onKeyDown_=OZ.prototype.onKeyDown_;OZ.prototype.onMouseOver_=OZ.prototype.onMouseOver_;OZ.prototype.onClick=OZ.prototype.onClick;OZ.prototype.onBlur_=OZ.prototype.onBlur_;OZ.prototype.onFocus=OZ.prototype.onFocus;OZ.prototype.onMouseUp=OZ.prototype.onMouseUp;OZ.prototype.onMouseDown=OZ.prototype.onMouseDown;OZ.prototype.dataChanged=OZ.prototype.dataChanged;OZ.prototype.disableIncrementalLoadingChanged_=OZ.prototype.disableIncrementalLoadingChanged_;OZ.prototype.emojiManagerChanged_=OZ.prototype.emojiManagerChanged_;
OZ.prototype.emojiChanged_=OZ.prototype.emojiChanged_;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],OZ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OZ.prototype,"data",void 0);_.W([_.q({computed:"computeId_(data)"}),_.X("design:type",String)],OZ.prototype,"id",void 0);_.W([_.q({computed:"computeEmoji(data)"}),_.X("design:type",Array)],OZ.prototype,"emoji",void 0);_.W([_.q(),_.X("design:type",Number)],OZ.prototype,"skinTone",void 0);
_.W([_.q(),_.X("design:type",_.KA)],OZ.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",Boolean)],OZ.prototype,"disableIncrementalLoading",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],OZ.prototype,"focusedIndex",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],OZ.prototype,"showFocus",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.X("design:type",Object)],OZ.prototype,"ariaLabel",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.X("design:type",Object)],OZ.prototype,"ariaActivedescendant",void 0);_.W([_.q({value:60}),_.X("design:type",Number)],OZ.prototype,"domRepeatTargetFramerate",void 0);_.W([_.q({value:1}),_.X("design:type",Number)],OZ.prototype,"domRepeatInitialCount",void 0);_.W([_.q({value:""}),_.X("design:type",String)],OZ.prototype,"activeEmojiWithVariantsId",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],OZ.prototype,"shouldUseStickyPreferences",void 0);_.W([_.ph("emoji"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"emojiChanged_",null);_.W([_.ph("emojiManager"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"emojiManagerChanged_",null);
_.W([_.ph("disableIncrementalLoading"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"disableIncrementalLoadingChanged_",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"dataChanged",null);_.W([_.tM("mousedown"),_.X("design:type",Function),_.X("design:paramtypes",[Object]),_.X("design:returntype")],OZ.prototype,"onMouseDown",null);
_.W([_.tM("mouseup"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"onMouseUp",null);_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"onFocus",null);_.W([_.tM("blur"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OZ.prototype,"onBlur_",null);
_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],OZ.prototype,"onClick",null);_.W([_.tM("mouseover"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],OZ.prototype,"onMouseOver_",null);_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],OZ.prototype,"onKeyDown_",null);
_.W([_.D7({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],OZ);
_.B(OZ,"yt-emoji-picker-category-renderer",function(){if(aYx===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;XJS===void 0&&(XJS=document.createElement("template"));var E=XJS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);aYx=v}v=aYx;return v},{mode:2});var rmQ;var $5V;var IYS;var HcZ;var DH=function(){var v=_.z.apply(this,arguments)||this;v.ariaLabel=null;v.ariaActivedescendant=null;v.getFormattedStringRawText=_.j0;v.JSC$14374_ignoreNextFocus_=!1;return v};
_.f(DH,_.z);_.K=DH.prototype;_.K.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")};
_.K.emojiUrl=function(v){var Q,V;v=(Q=LA(this.emojiManager,v,!0))==null?void 0:(V=Q.image)==null?void 0:V.thumbnails;return _.rE(v,24)||""};
_.K.emojiAlt=function(v){var Q=this.get("image.accessibility.accessibilityData.label",v);return Q?Q:v.isCustomEmoji?v.shortcuts[0]:v.emojiId};
_.K.emojiId=function(v){return"emoji"+v};
_.K.computeId_=function(v){return v.categoryId||""};
_.K.computeAriaActivedescendant_=function(v){return this.emoji&&v<this.emoji.length?this.emojiId(v):""};
_.K.emojiChanged_=function(){this.changeFocus_(0,!1);for(var v=_.tR(),Q=0;Q<this.emoji.length;Q++){var V={veType:88013,elementIndex:Q},E=this.emoji[Q];E.isCustomEmoji&&(E=document.querySelector(("#"+E.emojiId).replace("/","\\/")))&&(V=_.Lx(v,V))&&(E.visualElement=V)}};
_.K.computeEmoji_=function(v){var Q=this;return this.emojiManager?v.emojiIds.map(function(V){return _.i_(Q.emojiManager,V,!0)}).filter(ztb):[]};
_.K.titleOffsetChanged_=function(){var v=this.hostElement.getBoundingClientRect(),Q=_.m9(this.hostElement).querySelector("#title").getBoundingClientRect();v=Math.max(0,Math.min(this.titleOffset,v.height-Q.height));_.m9(this.hostElement).querySelector("#title").style.top=v+"px"};
_.K.onEmojiMouseOver_=function(v){_.Hj(this.hostElement,"yt-emoji-hover",v.model.item)};
_.K.onEmojiTap_=function(v){this.data.command&&(v=cKT(_.ht().resolve(_.d$(EH)),this.data.command,v),_.Hj(this.hostElement,"yt-navigate",v))};
_.K.emojiAriaLabel=function(v){return v.shortcuts[0]};
_.K.emojiAriaSelected=function(v,Q,V){return v&&V==Q?"true":"false"};
_.K.changeFocus_=function(v,Q){var V=this.emoji.length;this.focusedIndex=(this.focusedIndex+v+V)%V;v=this.emoji[this.focusedIndex];if(Q){var E;(E=_.m9(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||E.scrollIntoView(!1);_.Hj(this.hostElement,"yt-emoji-hover",v)}};
_.K.onMouseDown_=function(){this.JSC$14374_ignoreNextFocus_=!0};
_.K.onFocus_=function(){this.JSC$14374_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14374_ignoreNextFocus_=!1};
_.K.onBlur_=function(){this.showFocus=!1};
_.K.onKeyDown_=function(v){switch(v.keyCode){case 13:this.onEmojiTap_(v);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);v.preventDefault();break;case 38:this.changeFocus_(-1,!0),v.preventDefault()}};
DH.prototype.onKeyDown_=DH.prototype.onKeyDown_;DH.prototype.onBlur_=DH.prototype.onBlur_;DH.prototype.onFocus_=DH.prototype.onFocus_;DH.prototype.onMouseDown_=DH.prototype.onMouseDown_;DH.prototype.onEmojiTap_=DH.prototype.onEmojiTap_;DH.prototype.titleOffsetChanged_=DH.prototype.titleOffsetChanged_;DH.prototype.emojiChanged_=DH.prototype.emojiChanged_;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],DH.prototype,"data",void 0);_.W([_.q({computed:"computeId_(data)"}),_.X("design:type",String)],DH.prototype,"id",void 0);_.W([_.q({computed:"computeEmoji_(data)"}),_.X("design:type",Array)],DH.prototype,"emoji",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],DH.prototype,"titleOffset",void 0);_.W([_.q({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.X("design:type",Object)],DH.prototype,"ariaLabel",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.X("design:type",Object)],DH.prototype,"ariaActivedescendant",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],DH.prototype,"showFocus",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],DH.prototype,"focusedIndex",void 0);_.W([_.q(),_.X("design:type",_.KA)],DH.prototype,"emojiManager",void 0);
_.W([_.ph("emoji"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DH.prototype,"emojiChanged_",null);_.W([_.ph("titleOffset"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DH.prototype,"titleOffsetChanged_",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],DH.prototype,"onEmojiTap_",null);
_.W([_.tM("mousedown"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DH.prototype,"onMouseDown_",null);_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DH.prototype,"onFocus_",null);_.W([_.tM("blur"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DH.prototype,"onBlur_",null);
_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],DH.prototype,"onKeyDown_",null);_.W([_.D7({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],DH);
_.B(DH,"yt-emoji-picker-upsell-category-renderer",function(){if(HcZ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;IYS===void 0&&(IYS=document.createElement("template"));var E=IYS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);HcZ=v}v=HcZ;return v},{mode:2});var m58;var U5N;var RK=function(){var v=_.z.apply(this,arguments)||this;v.scrollAction="lock";v.verticalAlign="top";return v};
_.f(RK,_.z);_.K=RK.prototype;_.K.onClick=function(v){v=_.jV(v);v instanceof HTMLImageElement&&_.Hj(this.hostElement,"yt-emoji-select",_.i_(this.emojiManager,v.id))};
_.K.openSelector=function(){this.ironOverlayBehavior.open()};
_.K.onDomChange=function(){NNR(this.ytEmojiSelectorBehavior)};
_.K.computeIsFamilySelector=function(v){var Q;return(v==null?void 0:(Q=v.emoji)==null?void 0:Q.emojiId)==="\ud83d\udc6a"};
_.K.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var v=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];v&&v.emojiId&&(_.Hj(this.hostElement,"yt-emoji-select",_.i_(this.emojiManager,v.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.hr.Object.defineProperties(RK.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var v=this,Q,V,E;return this.emojiManager&&((Q=this.data)==null?0:(V=Q.emoji)==null?0:(E=V.variantIds)==null?0:E.length)?this.data.emoji.variantIds.map(function(b){return!!b&&_.i_(v.emojiManager,b)}).filter(function(b){return!!b}):[]}}});
RK.prototype.onClick=RK.prototype.onClick;_.W([_.M(_.Kd),_.X("design:type",Object)],RK.prototype,"ironOverlayBehavior",void 0);_.W([_.M(x5V),_.X("design:type",Object)],RK.prototype,"ytEmojiSelectorBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],RK.prototype,"data",void 0);_.W([_.q(),_.X("design:type",_.KA)],RK.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",Object)],RK.prototype,"scrollAction",void 0);_.W([_.q(),_.X("design:type",Object)],RK.prototype,"verticalAlign",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.X("design:type",Boolean)],RK.prototype,"isFamilySelector",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],RK.prototype,"emojiVariants",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[MouseEvent]),_.X("design:returntype")],RK.prototype,"onClick",null);_.W([_.D7({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],RK);
_.B(RK,"yt-emoji-variant-selector",function(){if(U5N===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;m58===void 0&&(m58=document.createElement("template"));var E=m58;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);U5N=v}v=U5N;return v},{mode:2});var vo8=/:/g,QGN=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],nA=function(){var v=_.z.apply(this,arguments)||this;v.emojiVariantSelector=null;v.emojiMultiPersonSelector=null;v.identity=_.Nm;v.lastAnimationTime_=0;v.animationStart_=null;v.animationEnd_=null;return v};
_.f(nA,_.z);_.K=nA.prototype;
_.K.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}}};
_.K.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.tj)};
_.K.attached=function(){_.Q2&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&BzS(this.emojiManager)};
_.K.dataChanged=function(){var v;if((v=this.data)==null?0:v.categories){v=this.emojiManager;var Q=this.getCustomEmojiIds();v.pickerCustomEmojiIds=[].concat(_.ui(qza),_.ui(Q))}};
_.K.getCustomEmojiIds=function(){var v,Q=(v=this.data.categories)==null?void 0:v.find(function(F){var t;return((t=F.emojiPickerCategoryRenderer)==null?void 0:t.categoryId)&&QGN.includes(F.emojiPickerCategoryRenderer.categoryId)}),V;
v=(V=this.data.categories)==null?void 0:V.find(function(F){return F.emojiPickerUpsellCategoryRenderer});
var E,b;return[Q==null?void 0:(E=Q.emojiPickerCategoryRenderer)==null?void 0:E.emojiIds,v==null?void 0:(b=v.emojiPickerUpsellCategoryRenderer)==null?void 0:b.emojiIds].flat().filter(function(F){return!!F})};
_.K.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.K.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.K.updateCategoriesAndPlaceholderInternal=function(v,Q){var V=this;v&&Q&&(this.categories=v.categories||[],this.categoryButtons=v.categoryButtons||[],this.resetPlaceholder(),this.search="",_.JM(function(){V.updateButtons_()}))};
_.K.computeId_=function(v){return v.id||""};
_.K.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(v){return v.emojiPickerCategoryRenderer&&v.emojiPickerCategoryRenderer.emojiData}):!1};
_.K.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.K.onShowEmojiVariantSelector=function(v){var Q=v.detail.emojiData;Q.variantIds&&Q.variantIds.length&&(Q.multiSelectorThumbnailRow&&Q.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:Q,target:v.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:Q,target:v.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.K.onIronOverlayClosed=function(v){var Q=gVa(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");Q&&v.composedPath&&(v.composedPath().includes(_.m9(this.hostElement).querySelector("#emoji-variant-selector"))||v.composedPath().includes(_.m9(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.mb(this.hostElement,"yt-close-emoji-variant-selector",[Q.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.K.onEmojiVariantSelectorMouseup=function(v){var Q=v.target.firstChild;this.variantSelectorOpened&&Q&&_.JM(function(){Q.noCancelOnOutsideClick=!1},100)};
_.K.onEmojiVariantSelectorMousedown=function(v){v=v.target.firstChild;this.variantSelectorOpened&&v&&(v.noCancelOnOutsideClick=!1)};
_.K.onSelectCategory_=function(v){var Q=this.search!="";this.search="";for(var V=_.m9(this.hostElement).querySelector("#categories").children,E=0;E<V.length;E++){var b=V[E];if(b.id==v.detail.categoryId){Q?(_.m9(this.hostElement).querySelector("#categories").scrollTop=b.offsetTop,this.updateButtons_()):(this.animationStart_=_.m9(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=b.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.K.onEmojiHover_=function(v){this.placeholder=v.detail.shortcuts?v.detail.shortcuts[0]:""};
_.K.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.K.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.K.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.K.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.K.computeSearchCategory_=function(v){v=v.replace(vo8,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();v=v.split(" ");for(var Q=[],V=this.emojiManager.emojis,E=0;E<V.length;E++){var b=V[E];if(b.searchTerms)for(var F=0;F<b.searchTerms.length;F++){for(var t=b.searchTerms[F].toLocaleLowerCase(),p=!1,Z=0;Z<v.length;Z++)if(t.indexOf(v[Z])!=-1){p=!0;break}if(p&&(!b.isCustomEmoji||!b.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(b.emojiId))){Q.push(b.emojiId);
break}}}return{categoryId:-1,emojiIds:Q}};
_.K.computeSearchEmptyMessage_=function(v,Q){return v&&Q&&Q.emojiIds&&Q.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.K.computeSearching_=function(v){return this.emojiManager&&v.replace(vo8,"").length>1};
_.K.computeSkinToneHidden=function(){var v;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((v=this.data)==null||!v.hideSkinTonePicker)};
_.K.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.K.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.K.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.K.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.K.selectSkinTone_=function(v){v=Number(v.target.getAttribute("tone"));this.set("emojiManager.skinTone",v);_.mb(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[v]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.K.skinToneChanged_=function(){_.m9(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var v=_.m9(this.hostElement).querySelector("#dropdown-content").children,Q=0;Q<v.length;Q++)Q===this.skinTone?v[Q].setAttribute("selected",""):v[Q].removeAttribute("selected")};
_.K.animateScroll_=function(v){this.lastAnimationTime_||(this.lastAnimationTime_=v);v-=this.lastAnimationTime_;v<200?(_.m9(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*v/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.m9(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.K.searchChanged_=function(){this.updateButtons_()};
_.K.updateButtons_=function(){var v=null;if(!this.search)for(var Q=_.m9(this.hostElement).querySelector("#categories").scrollTop,V=_.m9(this.hostElement).querySelector("#categories").children,E=0;E<V.length;E++){var b=V[E];b.offsetTop<=Q&&(v=b.id)}Q=_.m9(this.hostElement).querySelector("#category-buttons").children;for(V=0;V<Q.length;V++)E=Q[V],E.active=E.id===v};
nA.prototype.searchChanged_=nA.prototype.searchChanged_;nA.prototype.skinToneChanged_=nA.prototype.skinToneChanged_;nA.prototype.onEmojiHover_=nA.prototype.onEmojiHover_;nA.prototype.onSelectCategory_=nA.prototype.onSelectCategory_;nA.prototype.onShowEmojiVariantSelector=nA.prototype.onShowEmojiVariantSelector;nA.prototype.updateCategoriesAndPlaceholder_=nA.prototype.updateCategoriesAndPlaceholder_;nA.prototype.dataChanged=nA.prototype.dataChanged;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nA.prototype,"data",void 0);_.W([_.q({value:function(){return[]}}),
_.X("design:type",Array)],nA.prototype,"categories",void 0);_.W([_.q({value:function(){return[]}}),
_.X("design:type",Array)],nA.prototype,"categoryButtons",void 0);_.W([_.q({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.X("design:type",Boolean)],nA.prototype,"disableScroll",void 0);_.W([_.q({computed:"computeId_(data)",reflectToAttribute:!0}),_.X("design:type",String)],nA.prototype,"id",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],nA.prototype,"selected",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],nA.prototype,"disableIncrementalLoading",void 0);_.W([_.q(),_.X("design:type",String)],nA.prototype,"placeholder",void 0);_.W([_.q({value:""}),_.X("design:type",String)],nA.prototype,"search",void 0);_.W([_.q({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.X("design:type",Boolean)],nA.prototype,"searching",void 0);_.W([_.q({computed:"computeSearchCategory_(search)"}),_.X("design:type",Object)],nA.prototype,"searchCategory",void 0);
_.W([_.q({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.X("design:type",Object)],nA.prototype,"searchEmptyMessage",void 0);_.W([_.q({computed:"identity(emojiManager.skinTone)"}),_.X("design:type",Number)],nA.prototype,"skinTone",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],nA.prototype,"skinToneOpened",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],nA.prototype,"variantSelectorOpened",void 0);
_.W([_.q({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.X("design:type",Boolean)],nA.prototype,"skinToneHidden",void 0);_.W([_.q(),_.X("design:type",_.KA)],nA.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",Object)],nA.prototype,"emojiVariantSelector",void 0);_.W([_.q(),_.X("design:type",Object)],nA.prototype,"emojiMultiPersonSelector",void 0);
_.W([_.q({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.X("design:type",Boolean)],nA.prototype,"shouldUseStickyPreferences",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],nA.prototype,"dataChanged",null);_.W([_.ph("data","selected"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],nA.prototype,"updateCategoriesAndPlaceholder_",null);
_.W([_.tM("yt-show-emoji-variant-selector"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],nA.prototype,"onShowEmojiVariantSelector",null);_.W([_.tM("yt-emoji-picker-select-category"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],nA.prototype,"onSelectCategory_",null);_.W([_.tM("yt-emoji-hover"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],nA.prototype,"onEmojiHover_",null);
_.W([_.ph("skinTone"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],nA.prototype,"skinToneChanged_",null);_.W([_.ph("search"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],nA.prototype,"searchChanged_",null);_.W([_.D7({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],nA);
_.B(nA,"yt-emoji-picker-renderer",function(){if($5V===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;rmQ===void 0&&(rmQ=document.createElement("template"));var E=rmQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);$5V=v}v=$5V;return v},{mode:2});var l_=function(){var v=_.z.apply(this,arguments)||this;v.emojiManager=_.tj;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.selectedIndex=1;v.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return v};
_.f(l_,_.z);_.K=l_.prototype;_.K.handleEmojiCustomizationVisible=function(v){this.emojiPickerRenderer.selected=v;this.selectedIndex=1;v?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.K.emojiCustomizationSetChanged=function(){var v;(v=this.data)!=null&&v.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Ih(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.K.updateSaveButtonState=function(v){var Q;(Q=this.data)!=null&&Q.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.dW("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:v}))};
_.K.emojiUrl=function(v){v=_.i_(this.emojiManager,v);if(!v)return"";var Q;v=(Q=v.image)==null?void 0:Q.thumbnails;return _.rE(v,24)||""};
_.K.emojiAlt=function(v){var Q=_.i_(this.emojiManager,v);if(!Q)return v;var V,E,b,F=(Q==null?void 0:(V=Q.image)==null?void 0:(E=V.accessibility)==null?void 0:(b=E.accessibilityData)==null?void 0:b.label)||"";return F?F:Q.isCustomEmoji?Q.shortcuts[0]:Q.emojiId||v};
_.K.emojiAriaLabel=function(v){var Q,V;return((Q=_.i_(this.emojiManager,v))==null?void 0:(V=Q.shortcuts)==null?void 0:V[0])||v};
_.K.onEmojiClick=function(v){v.model.index!==0&&(this.selectedIndex=v.model.index)};
_.K.onEmojiSelect=function(v){v=v.detail;var Q,V;((Q=this.data)==null?0:Q.emojiCustomizationSetEntityKey)&&((V=this.emojiCustomizationSet)==null?0:V.emojiId)&&v.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,v.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.dW("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,v.emojiId,this.selectedIndex)}))};
_.K.canEditEmoji=function(v,Q,V){v=v.indexOf(Q);return v===V||v===0||V===0?!1:!0};
_.K.getUpdatedEmojiIdList=function(v,Q,V){var E=v.indexOf(Q);v=[].concat(_.ui(v));E>=0&&(v[E]=v[V]);v[V]=Q;return v};
_.hr.Object.defineProperties(l_,{template:{configurable:!0,enumerable:!0,get:function(){if(YWN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;TNN===void 0&&(TNN=document.createElement("template"));var E=TNN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);YWN=v}v=YWN;return v}}});
l_.prototype.onEmojiSelect=l_.prototype.onEmojiSelect;_.W([_.M(_.v6),_.X("design:type",Object)],l_.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],l_.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Z7("yt-emoji-picker-renderer"),_.X("design:type",Object)],l_.prototype,"emojiPickerRenderer",void 0);
_.W([_.q({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"emojiCustomizationSetEntity",Q)},
observer:"emojiCustomizationSetChanged"}),_.X("design:type",Object)],l_.prototype,"emojiCustomizationSet",void 0);_.W([_.q(),_.X("design:type",Object)],l_.prototype,"originalEmojiSet",void 0);_.W([_.q(),_.X("design:type",_.KA)],l_.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",Object)],l_.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],l_.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",Object)],l_.prototype,"selectedIndex",void 0);
_.W([_.tM("yt-emoji-select"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],l_.prototype,"onEmojiSelect",null);_.W([_.D7({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],l_);var VfS;var EoZ;var b3Q;var FPN;var qK=function(){var v=_.z.apply(this,arguments)||this;v.authorBadges=[];return v};
_.f(qK,_.z);_.K=qK.prototype;_.K.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.K.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]]"}}}}}};
_.K.dataChanged=function(){var v=t9r(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",v)};
_.K.updateMessage=function(){var v=this.data.message,Q=_.m9(_.m9(this.hostElement).querySelector("#message"));Q.textContent="";v&&Q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.K.shouldSupportWholeItemClick=function(){return!0};
_.K.onShowOriginalClick=function(v){v.preventDefault();this.showOriginal=!0};
_.K.computeShowBar=function(v,Q,V){return v&&Q||V};
_.K.computeAuthorBadges=function(v){return v.authorBadges||[]};
_.K.computeAuthorIsOwner=function(v){return!!pPo(v.authorBadges,"owner")};
_.K.computeAuthorNameColor=function(v){var Q;if(_.Y("live_chat_author_name_color_usernames")&&(v==null?0:(Q=v.authorName)==null?0:Q.simpleText))return _.wPt(_.AEm(v.authorName.simpleText));if(_.Y("live_chat_seed_color_usernames")&&(v==null?0:v.authorSeedColorArgb))return _.wPt(_.vg(v.authorSeedColorArgb));if(_.Y("live_chat_colored_usernames"))return"#cc0000";var V;return _.Y("live_chat_simple_color_usernames")&&(v==null?0:(V=v.authorName)==null?0:V.simpleText)&&(v==null?0:v.authorUsernameColorLight)&&
(v==null?0:v.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.vg(v.authorUsernameColorDark):_.vg(v.authorUsernameColorLight):""};
qK.prototype.updateMessage=qK.prototype.updateMessage;qK.prototype.dataChanged=qK.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],qK.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qK.prototype,"data",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"showOriginal",void 0);_.W([_.q({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"isDimmed",void 0);_.W([_.q({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"showBar",void 0);
_.W([_.q({computed:"computeAuthorBadges(data)"}),_.X("design:type",Array)],qK.prototype,"authorBadges",void 0);_.W([_.q({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"authorIsOwner",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"inCollapsedBanner",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"inBanner",void 0);
_.W([_.q({value:_.Y("live_chat_hide_avatars"),reflectToAttribute:!0}),_.X("design:type",Boolean)],qK.prototype,"avatarHidden",void 0);_.W([_.q({computed:"computeAuthorNameColor(data)"}),_.X("design:type",String)],qK.prototype,"authorNameColor",void 0);_.W([_.q(),_.X("design:type",_.dK)],qK.prototype,"participantsManager",void 0);_.W([_.q({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.X("design:type",Object)],qK.prototype,"filledButtonOverrides",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qK.prototype,"dataChanged",null);_.W([_.ph("data.message"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qK.prototype,"updateMessage",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],qK);
_.B(qK,"yt-live-chat-text-message-renderer",function(){if(FPN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;b3Q===void 0&&(b3Q=document.createElement("template"));var E=b3Q;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);FPN=v}v=FPN;return v},{mode:0});var S4=function(){var v=_.z.apply(this,arguments)||this;v.tonalButtonOverrides={type:"tonal",style:"overlay"};return v};
_.f(S4,_.z);
S4.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]]"}}}}}};
S4.prototype.shouldSupportInlineActionButtons=function(){return!0};
S4.prototype.shouldSupportWholeItemClick=function(){return!0};
_.hr.Object.defineProperties(S4.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],S4.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],S4.prototype,"data",void 0);_.W([_.q(),_.X("design:type",_.dK)],S4.prototype,"participantsManager",void 0);
_.W([_.q(),_.X("design:type",Object)],S4.prototype,"tonalButtonOverrides",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.infoDialogButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],S4.prototype,"hasInfoDialogButton",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],S4);
_.B(S4,"yt-live-chat-auto-mod-message-renderer",function(){if(EoZ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;VfS===void 0&&(VfS=document.createElement("template"));var E=VfS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);EoZ=v}v=EoZ;return v},{mode:0});var KPR;var i3N;var LPN;var tfZ=function(){return _.z.apply(this,arguments)||this};
_.f(tfZ,_.z);_.W([_.q(),_.X("design:type",Object)],tfZ.prototype,"data",void 0);_.W([_.J({is:"ytd-factoid-renderer",disableElementRegistration:!0})],tfZ);
_.B(tfZ,"ytd-factoid-renderer",function(){if(LPN!==void 0)return LPN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return LPN=v},{mode:1});var zX=function(){return _.z.apply(this,arguments)||this};
_.f(zX,_.z);zX.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.W([_.q(),_.X("design:type",Object)],zX.prototype,"data",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],zX);
_.B(zX,"yt-live-chat-channel-activity-reputation-renderer",function(){if(i3N===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;KPR===void 0&&(KPR=document.createElement("template"));var E=KPR;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);i3N=v}v=i3N;return v},{mode:0});var phZ;var eOV;var Jj=function(){return _.z.apply(this,arguments)||this};
_.f(Jj,_.z);Jj.prototype.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Boolean)],Jj.prototype,"menuFocused",void 0);_.W([_.q(),_.X("design:type",Object)],Jj.prototype,"data",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],Jj.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Jj);
_.B(Jj,"yt-live-chat-donation-announcement-renderer",function(){if(eOV===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;phZ===void 0&&(phZ=document.createElement("template"));var E=phZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);eOV=v}v=eOV;return v},{mode:0});var Z3S;var P1x,d9Z=function(){if(P1x!==void 0)return P1x;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Z3S===void 0&&(Z3S=document.createElement("template"));var E=Z3S;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return P1x=v};var NK=function(){return _.z.apply(this,arguments)||this};
_.f(NK,_.z);_.hr.Object.defineProperties(NK,{template:{configurable:!0,enumerable:!0,get:function(){return d9Z()}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],NK.prototype,"data",void 0);_.W([_.D7({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],NK);_.B(NK,"yt-live-chat-empty-feed-view-model",function(){return d9Z()},{mode:0});var hOZ;var whp;var xX=function(){return _.z.apply(this,arguments)||this};
_.f(xX,_.z);xX.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"}}}}}};
_.hr.Object.defineProperties(xX.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var v,Q;return{runs:[{text:(v=this.data)==null?void 0:(Q=v.channelName)==null?void 0:Q.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var v=[],Q;if((Q=this.data)==null||!Q.channelBadges)return v;var V;Q=_.L((V=this.data)==null?void 0:V.channelBadges);for(V=Q.next();!V.done;V=Q.next()){V=_.y(V.value,P9p);var E=void 0,b=void 0;if((E=V)==null?0:(b=E.badgeImage)==null?0:b.sources)E=void 0,b={liveChatAuthorBadgeRenderer:{tooltip:V.tooltip,accessibility:{accessibilityData:{label:(E=_.y(V.rendererContext,_.ds))==null?void 0:E.label}}}},V.badgeImage.sources[0].clientResource?b.liveChatAuthorBadgeRenderer.icon=
{iconType:V.badgeImage.sources[0].clientResource.imageName}:b.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:V.badgeImage.sources},v.push(b)}return v}}});
_.W([_.q(),_.X("design:type",Object)],xX.prototype,"data",void 0);_.W([_.O("data.channelName"),_.X("design:type",Object),_.X("design:paramtypes",[])],xX.prototype,"channelName",null);_.W([_.O("data.channelBadges"),_.X("design:type",Array),_.X("design:paramtypes",[])],xX.prototype,"channelBadges",null);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],xX);
_.B(xX,"yt-live-chat-identity-view-model",function(){if(whp===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;hOZ===void 0&&(hOZ=document.createElement("template"));var E=hOZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);whp=v}v=whp;return v},{mode:0});var AlN;var kRA;var Tax;var YNN;var Bu=function(){var v=_.z.apply(this,arguments)||this;v.hidden=!1;v.supportsInlineActionButtons=!0;return v};
_.f(Bu,_.z);Bu.prototype.ready=function(){var v;((v=document.querySelector("yt-live-chat-app"))==null?0:v.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Bu.prototype.dataChanged=function(v){var Q=(0,_.bf)(_.m9(this.hostElement).querySelector("#detail-text"));Q.textContent="";(v==null?0:v.detailText)&&Q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v.detailText))};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],Bu.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({observer:"dataChanged"}),_.X("design:type",Object)],Bu.prototype,"data",void 0);
_.W([_.q({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.X("design:type",Object)],Bu.prototype,"hidden",void 0);_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Bu);
_.B(Bu,"yt-live-chat-legacy-paid-message-renderer",function(){if(YNN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Tax===void 0&&(Tax=document.createElement("template"));var E=Tax;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);YNN=v}v=YNN;return v},{mode:0});var ylS;var cl8;var fNa={},gK=function(){return _.dg.apply(this,arguments)||this};
_.f(gK,_.dg);gK.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
gK.prototype.onLiveChatMembershipItemBehaviorClick=gK.prototype.onLiveChatMembershipItemBehaviorClick;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],gK.prototype,"data",void 0);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],gK.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.W([_.hM()],gK);
fNa.YtLiveChatMembershipItemBehavior=[gK.prototype,_.H.YtRendererBehavior];var sZ=function(){var v=_.z.apply(this,arguments)||this;v.supportsInlineActionButtons=!0;v.hasPrimaryHeaderText=!1;v.showOnlyHeader=!1;v.authorBadges=[];v.modern=_.Y("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.f(sZ,_.z);_.K=sZ.prototype;_.K.shouldSupportInlineActionButtons=function(){return!0};
_.K.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.K.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.K.messageChanged=function(){var v=this.data.message,Q=(0,_.bf)(_.m9(this.hostElement).querySelector("#message"));Q.textContent="";v&&Q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.K.computeHasPrimaryHeaderText=function(v){return!(!v||!v.headerPrimaryText)};
_.K.computeShowOnlyHeader=function(v,Q){return this.isMessageEmpty(v,Q)};
_.K.computeAuthorBadges=function(v){return v.authorBadges||[]};
_.K.isMessageEmpty=function(v,Q){return!v||v.empty?!0:!v.message&&!v.inputField&&!Q};
_.K.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.K.getInputElement=function(){return _.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.K.inputFocus=function(){var v=this.getInputElement();v&&v.focus()};
_.K.inputInsertEmoji=function(v){var Q=this.getInputElement();Q&&Q.insertEmoji(v)};
_.K.inputMessage=function(){var v=this.getInputElement();return v&&this.data.inputField?(v.completeEmojis(),_.qC(v.liveChatRichMessageInput)):null};
_.K.onFooterButtonClick=function(){this.data.footerButton&&_.Hj(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.K.shouldSupportWholeItemClick=function(){return!0};
sZ.prototype.isDeletedChanged=sZ.prototype.isDeletedChanged;sZ.prototype.messageChanged=sZ.prototype.messageChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],sZ.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(fNa.YtLiveChatMembershipItemBehavior),_.X("design:type",Object)],sZ.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],sZ.prototype,"data",void 0);_.W([_.q({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.X("design:type",Object)],sZ.prototype,"hasPrimaryHeaderText",void 0);_.W([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.X("design:type",Object)],sZ.prototype,"showOnlyHeader",void 0);
_.W([_.q({computed:"computeAuthorBadges(data)"}),_.X("design:type",Array)],sZ.prototype,"authorBadges",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sZ.prototype,"modern",void 0);_.W([_.ph("data.message"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sZ.prototype,"messageChanged",null);_.W([_.ph("isDeleted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sZ.prototype,"isDeletedChanged",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],sZ);
_.B(sZ,"yt-live-chat-membership-item-renderer",function(){if(cl8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ylS===void 0&&(ylS=document.createElement("template"));var E=ylS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);cl8=v}v=cl8;return v},{mode:0});var GRN;var C1N;var u_=function(){return _.z.apply(this,arguments)||this};
_.f(u_,_.z);u_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],u_.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],u_);
_.B(u_,"yt-live-chat-mode-change-message-renderer",function(){if(C1N===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;GRN===void 0&&(GRN=document.createElement("template"));var E=GRN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);C1N=v}v=C1N;return v},{mode:0});var MfZ;var O3Q;var j4=function(){return _.z.apply(this,arguments)||this};
_.f(j4,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],j4.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],j4.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],j4);
_.B(j4,"yt-live-chat-moderation-message-renderer",function(){if(O3Q===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;MfZ===void 0&&(MfZ=document.createElement("template"));var E=MfZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);O3Q=v}v=O3Q;return v},{mode:0});var D9R;var ROX;var Wu=function(){return _.z.apply(this,arguments)||this};
_.f(Wu,_.z);Wu.prototype.onClick=function(){var v;if((v=this.data)!=null&&v.onClickCommand){var Q;_.bd.instance.resolveCommand((Q=this.data)==null?void 0:Q.onClickCommand)}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],Wu.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],Wu.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Wu.prototype,"data",void 0);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Wu);
_.B(Wu,"yt-live-chat-offer-click-count-message-renderer",function(){if(ROX===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;D9R===void 0&&(D9R=document.createElement("template"));var E=D9R;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ROX=v}v=ROX;return v},{mode:0});var noV;var lNx=function(){return _.z.apply(this,arguments)||this};
_.f(lNx,_.z);_.W([_.q(),_.X("design:type",Object)],lNx.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],lNx);
_.B(lNx,"yt-live-chat-placeholder-item-renderer",function(){if(noV===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);noV=v}v=noV;return v},{mode:0});var qNN;var SNx;var zOR=new sx(7),oK=function(){var v=_.z.apply(this,arguments)||this;v.data={};return v};
_.f(oK,_.z);oK.prototype.dataChanged=function(){var v;((v=this.data)==null?0:v.class)&&_.VE(this.hostElement,this.data.class,!0);var Q;((Q=this.oldData)==null?0:Q.class)&&_.VE(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
oK.prototype.computeTimestampString=function(v){return zOR.format(new Date(v/1E3))};
oK.prototype.dataChanged=oK.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],oK.prototype,"data",void 0);_.W([_.q({computed:"computeTimestampString(data.timestampUsec)"}),_.X("design:type",String)],oK.prototype,"timestampString",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],oK.prototype,"dataChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],oK);
_.B(oK,"yt-live-chat-server-error-message",function(){if(SNx===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;qNN===void 0&&(qNN=document.createElement("template"));var E=qNN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);SNx=v}v=SNx;return v},{mode:0});var JlN;var Naq;var X_=function(){var v=_.z.apply(this,arguments)||this;v.defaultToFilledIcon=!1;return v};
_.f(X_,_.z);X_.prototype.computeHasPrimaryColorIcon=function(v){return v==="SPARK"||v==="SPONSORSHIP_STAR"};
X_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],X_.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],X_.prototype,"defaultToFilledIcon",void 0);_.W([_.q(),_.X("design:type",Object)],X_.prototype,"data",void 0);
_.W([_.q({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.X("design:type",Boolean)],X_.prototype,"hasPrimaryColorIcon",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],X_);
_.B(X_,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Naq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;JlN===void 0&&(JlN=document.createElement("template"));var E=JlN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Naq=v}v=Naq;return v},{mode:0});var x98;var aK=function(){var v=_.z.apply(this,arguments)||this;v.modernUpdate=!1;v.buttonStyle="overlay";v.buttonType="filled";return v};
_.f(aK,_.z);aK.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
aK.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aK.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],aK.prototype,"modernUpdate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],aK.prototype,"buttonStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],aK.prototype,"buttonType",void 0);
_.W([_.J({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],aK);
_.B(aK,"ytd-ad-hover-text-button-renderer",function(){if(x98!==void 0)return x98;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return x98=v},{mode:1});var BaZ;var rK=function(){var v=_.z.apply(this,arguments)||this;v.buttonOverrides={size:"XS"};return v};
_.f(rK,_.z);rK.prototype.onHelpTap=function(v){this.data&&this.data.informationDialog&&(_.Hj(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),v.preventDefault(),v.stopPropagation())};
_.W([_.q(),_.X("design:type",Object)],rK.prototype,"buttonOverrides",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rK.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],rK);
_.B(rK,"ytd-live-chat-purchased-product-message-renderer",function(){if(BaZ!==void 0)return BaZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return BaZ=v},{mode:1});var goa;var sGS;var $X=function(){var v=_.z.apply(this,arguments)||this;v.isContainerDeleted=!1;return v};
_.f($X,_.z);$X.prototype.onContextMenuClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
$X.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))};
$X.prototype.isContainerDeletedChanged=$X.prototype.isContainerDeletedChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],$X.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$X.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],$X.prototype,"isContainerDeleted",void 0);
_.W([_.q(),_.X("design:type",String)],$X.prototype,"deletedStateMessage",void 0);_.W([_.ph("isContainerDeleted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$X.prototype,"isContainerDeletedChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],$X);
_.B($X,"ytd-sponsorships-live-chat-header-renderer",function(){if(sGS!==void 0)return sGS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return sGS=v},{mode:1});var IK=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.f(IK,_.z);IK.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]]"}}}}}};
IK.prototype.onCtaButtonClick=function(){var v,Q=_.y((v=this.data)==null?void 0:v.optInPrompt,_.KH);if(v=this.maybeGetButtonCommand(Q)){var V;(V=_.tR())==null||V.clickCommand(v)}};
IK.prototype.maybeGetButtonCommand=function(v){return!v||!v.command||_.y(v.command,IHS)===void 0&&_.y(v.command,$Ka)===void 0?null:v.command};
IK.prototype.shouldHideOptinPrompt=function(v,Q){return!v||Q};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],IK.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],IK.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],IK.prototype,"modern",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],IK);
_.B(IK,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(goa!==void 0)return goa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return goa=v},{mode:1});var uqZ;var Hu=function(){return _.z.apply(this,arguments)||this};
_.f(Hu,_.z);Hu.prototype.onContextMenuClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
Hu.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))};
Hu.prototype.isDeletedChanged=Hu.prototype.isDeletedChanged;_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],Hu.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Hu.prototype,"data",void 0);_.W([_.ph("isDeleted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hu.prototype,"isDeletedChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Hu);
_.B(Hu,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(uqZ!==void 0)return uqZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return uqZ=v},{mode:1});var mr=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return v};
_.f(mr,_.z);_.K=mr.prototype;
_.K.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"}}}};
_.K.handleLiveChatAction=function(v){_.y(v,zfS)?this.handleMarkChatItemAsDeletedAction(_.y(v,zfS)):_.y(v,SvN)&&this.handleRemoveChatItemAction(_.y(v,SvN))};
_.K.handleLiveChatActions=function(v){v.forEach(this.handleLiveChatAction,this)};
_.K.handleMarkChatItemAsDeletedAction=function(v){var Q=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(E,b){var F=Object.keys(E)[0];Object.values(E)[0].id===v.targetItemId&&Q.markAsDeleted("data.items",b,F,v.deletedStateMessage,v.showOriginalContentMessage)})};
_.K.handleRemoveChatItemAction=function(v){var Q=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(E,b){Object.values(E)[0].id===v.targetItemId&&Q.splice("data.items",b,1)})};
_.K.markAsDeleted=function(v,Q,V,E,b){v=[v,Q,V].join(".");this.set(v+".deletedStateMessage",E);this.set(v+".showOriginalContentMessage",b)};
_.W([_.q(),_.X("design:type",Object)],mr.prototype,"data",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],mr.prototype,"ytActionHandlerBehavior",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],mr);
_.B(mr,"yt-live-chat-item-display-list-renderer",function(){if(kRA===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;AlN===void 0&&(AlN=document.createElement("template"));var E=AlN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);kRA=v}v=kRA;return v},{mode:0});var jGN;var WPN,oox=function(){if(WPN!==void 0)return WPN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;jGN===void 0&&(jGN=document.createElement("template"));var E=jGN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return WPN=v};var UZ=function(){var v=_.z.apply(this,arguments)||this;v.isHeader=!1;return v};
_.f(UZ,_.z);UZ.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.hr.Object.defineProperties(UZ,{template:{configurable:!0,enumerable:!0,get:function(){return oox()}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UZ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UZ.prototype,"isHeader",void 0);_.W([_.D7({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],UZ);_.B(UZ,"yt-live-chat-item-display-renderer",function(){return oox()},{mode:0});var XhA,aNN,m9x,H3N;
XhA={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}};aNN={home:"eohps",search:"eosps",watch:"eowps"};_.rla=["watch","search","home"];
_.vk=function(){this.JSC$14485_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14485_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.r7("PRECONSTRUCTION_DELAY",0);this.signals_=_.Zp();this.targetPage_=""};
_.vk.prototype.init=function(v,Q){v=v===void 0?"":v;Q=Q===void 0?null:Q;if(this.JSC$14485_isInitialized_)this.abort();else if(this.JSC$14485_isInitialized_=!0,v&&_.$98(this,v),Q){var V=_.PO(this.signals_,"pcl")?0:10,E=function(){for(var b=0,F;F=_.rla[b++];)F!=v&&F!=Q&&this.pendingPages_.push(F);_.INA(this)}.bind(this);
this.signals_.parkOrScheduleJob(E,V,"pcl")}};
_.vk.prototype.abort=function(){this.fragmentJobId_&&(_.XT.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);H3N(this)};
_.$98=function(v,Q){v.JSC$14485_isInitialized_&&!v.targetPage_&&(v.targetPage_=Q,m9x(v,Q),v.isInitialPass_=!1,m9x(v,Q),v.signals_.processSignal(aNN[v.targetPage_]),H3N(v),_.INA(v))};
_.INA=function(v){v.pendingPages_.length&&!v.pagePreparerJobId_&&(v.pagePreparerJobId_=_.go(_.XT,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.$98(this,this.pendingPages_.shift())}.bind(v),v.DEFAULT_DELAY_))};
m9x=function(v,Q){if(Q=XhA[Q])for(var V in Q){var E=!1,b=V;V.charAt(0)=="~"&&(E=!0,b=V.substring(1));var F=Q[V];F=typeof F=="object"?F:{count:F};Q[V]=F;F.componentName=b;F.count>0&&(v.isInitialPass_?E||v.isSeenDuringInitialPass_[b]||(v.JSC$14485_queue_.push({componentName:b,count:1,signals:F.signals}),v.isSeenDuringInitialPass_[b]=!0,F.count--):v.JSC$14485_queue_.push(F))}};
H3N=function(v){v.JSC$14485_queue_.length=0;v.targetPage_="";v.isInitialPass_=!0;v.signals_.processSignal("eop")};
_.vk.getInstance=function(){return _.XQ(_.vk)};var U9A=function(){this.signals=_.Zp();this.init()};
U9A.prototype.startPreconstruction=function(){_.vk.getInstance().init(_.mX("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
U9A.prototype.init=function(){vTN(this);window.Polymer&&itx&&Vsh();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var v=_.bb.ytcsi;if(v&&v.gt&&(v=v.gt())&&v.tick&&(v.tick.aft>0||v.tick.pbs>0)&&(_.mX("IS_HOMEPAGE_COLD")||_.mX("IS_RESULTS_PAGE_COLD")||_.mX("IS_WATCH_PAGE_COLD"))){Q6A(this);break a}gNG(ufT,this.onNotifications,this)}};
var vTN=function(v){var Q=function(){v.signals.processSignal("dl")};
document.readyState==="complete"?(_.V9(Error("th"),"WARNING"),Q()):_.h1b(window,"load",Q)};
U9A.prototype.onNotifications=function(v){v.timer||(_.mX("IS_HOMEPAGE_COLD")||_.mX("IS_RESULTS_PAGE_COLD")||_.mX("IS_WATCH_PAGE_COLD"))&&Q6A(this)};
var Q6A=function(v){v.signals.parkOrScheduleJob(function(){v.signals.processSignal("eocs")},10,"eor")};
new U9A;var VWx=function(){return _.dg.apply(this,arguments)||this};
_.f(VWx,_.dg);_.hr.Object.defineProperties(VWx.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_entity_store_from_dependency_injection")?_.uf():_.oF()}}});
_.W([_.hM()],VWx);_.QU=[aZ.prototype,VWx.prototype];var ET8=["ytd-rich-shelf-renderer"],VU=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;v.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";v.followUpDialogPromise=null;v.followUpDialogPromiseResolve=null;v.followUpDialogPromiseReject=null;return v};
_.f(VU,_.dg);_.K=VU.prototype;_.K.dismissibleItemIsDismissedChanged_=function(v){_.Y("kevlar_fluid_dismiss")&&(v?_.Hj(this.hostElement,"yt-dismissible-item-dismissed"):_.Hj(this.hostElement,"yt-dismissible-item-undismissed"))};
_.K.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.K.dismissibleItemReset_=function(){var v=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.Ry(function(Q,V){v.followUpDialogPromiseResolve=Q;v.followUpDialogPromiseReject=V});
_.Hj(this.hostElement,"yt-enable-lockup-interaction")};
_.K.dismissibleItemOnYtServiceRequestSent_=function(v,Q){Q.actions&&this.dismissibleItemProcessActions(Q.actions,v)};
_.K.dismissibleItemOnRequestSent=function(v){for(var Q=_.L(v.detail),V=Q.next();!V.done;V=Q.next()){var E=void 0;(V=(E=_.y(V.value,_.F$))==null?void 0:E.actions)&&this.dismissibleItemProcessActions(V,v)}};
_.K.dismissibleItemOnCommandSent=function(v,Q){Q&&this.dismissibleItemProcessActions(Q,v)};
_.K.setAndGetDismissedContentId=function(v){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+v};
_.K.replayDismissAction=function(v){this.dismissibleItemProcessActions([v])};
_.K.dismissibleItemProcessActions=function(v,Q){for(var V=0;V<v.length;V++){var E=v[V],b=void 0;((b=_.y(E,_.E2))==null?0:b.commands)&&this.dismissibleItemProcessActions(_.y(E,_.E2).commands,Q);if(_.y(E,_.Nd)){if(b=_.y(E,_.Nd),!b.replaceParentSection||ET8.includes(this.hostElement.nodeName.toLowerCase()))b.groupDismissal&&Jmb(this,b.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(b),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.dW("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:E})),E=void 0,(E=Q)==null||E.stopPropagation()}else if(_.y(E,D7Z))this.dismissibleItemHandleHideEnclosingAction_(),E=void 0,(E=Q)==null||E.stopPropagation();else if(_.y(E,U6N))E=_.y(E,U6N),b=void 0,((b=E)==null?0:b.targetGroupId)&&Jmb(this,{targetGroupId:E.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.dW("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
E=void 0,(E=Q)==null||E.stopPropagation();else if(_.y(E,_.F$))(E=_.y(E,_.F$).actions)&&_.Qk(this.hostElement,E,this.hostElement),E=void 0,(E=Q)==null||E.stopPropagation();else{var F=b=void 0;((b=_.y(E,_.Vi))==null?void 0:b.signal)!=="TELL_US_WHY"||((F=_.y(E,_.Vi))==null?0:F.targetId)&&_.Y("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),E=void 0,(E=Q)==null||E.stopPropagation())}}};
_.K.dismissibleItemOnYtServiceRequestCompleted_=function(v,Q){var V=this.get("feedbackResponses.0.followUpDialog",Q.data);V?this.followUpDialogPromiseResolve(V):Q.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(Q.actions,v)};
_.K.dismissibleItemHandleReplaceEnclosingAction_=function(v){this.dismissedRenderer=v.item;this.isDismissed=!0;var Q=null;(Q=_.m9(this.hostElement).querySelector("#dismissed"))&&_.PE(this,function(){_.Lp(Q)});
_.Hj(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.K.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.K.dismissibleItemHandleUndoFeedbackAction_=function(){_.Hj(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.K.dismissibleItemHandleTellUsWhySignalAction_=function(){var v=this;this.followUpDialogPromise.then(function(Q){v.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:Q}})})};
VU.prototype.dismissibleItemOnYtServiceRequestCompleted_=VU.prototype.dismissibleItemOnYtServiceRequestCompleted_;VU.prototype.dismissibleItemOnCommandSent=VU.prototype.dismissibleItemOnCommandSent;VU.prototype.dismissibleItemOnRequestSent=VU.prototype.dismissibleItemOnRequestSent;VU.prototype.dismissibleItemOnYtServiceRequestSent_=VU.prototype.dismissibleItemOnYtServiceRequestSent_;VU.prototype.dismissibleItemDataChanged_=VU.prototype.dismissibleItemDataChanged_;
VU.prototype.dismissibleItemIsDismissedChanged_=VU.prototype.dismissibleItemIsDismissedChanged_;_.W([_.M(_.TX),_.X("design:type",Object)],VU.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],VU.prototype,"ytdReduxBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],VU.prototype,"isDismissed",void 0);_.W([_.q(),_.X("design:type",Object)],VU.prototype,"dismissedRenderer",void 0);
_.W([_.ph("isDismissed"),_.X("design:type",Function),_.X("design:paramtypes",[Boolean]),_.X("design:returntype")],VU.prototype,"dismissibleItemIsDismissedChanged_",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],VU.prototype,"dismissibleItemDataChanged_",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],VU.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.W([_.tM("yt-service-request-sent-button-renderer"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],VU.prototype,"dismissibleItemOnRequestSent",null);
_.W([_.tM("yt-dismissible-item-action"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Array]),_.X("design:returntype")],VU.prototype,"dismissibleItemOnCommandSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],VU.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.W([_.hM()],VU);_.Er=[_.TX,_.QU,VU.prototype];var bp=function(){var v=_.dg.apply(this,arguments)||this;v.disableGridStateAware=!1;v.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};v.currentGridClass="";return v};
_.f(bp,_.dg);bp.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.PE(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var v=this.gridStateAwareGetElement();_.VE(v,"grid",!0)}};
bp.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
bp.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.m9(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
bp.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var v="grid-disabled";else{v=_.nD.getInstance();var Q=this.get("pageSubtype");v=Q&&t8a.includes(Q)?"grid-disabled":v.currentSnapState_?v.currentSnapState_.className:null}(Q=this.gridStateAwareGetElement())&&v!==this.currentGridClass&&(v&&_.VE(Q,v,!0),this.currentGridClass&&_.VE(Q,this.currentGridClass,!1),this.currentGridClass=v)};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",String)],bp.prototype,"gridStateAwareSizingElementSelector",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bp.prototype,"disableGridStateAware",void 0);_.W([_.hM()],bp);_.FO=[bp.prototype,_.SI.YtActionHandlerBehavior];_.K1=new _.KB("GUIDE_TOKEN");var L1;_.ip={};L1=function(){var v=_.dg.apply(this,arguments)||this;v.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return v};
_.f(L1,_.dg);_.K=L1.prototype;_.K.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.K.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var v=_.ht().resolve(_.d$(_.K1));v&&(this.guidePersistentAndVisible=v.getGuidePersistentAndVisible(),this.activeEndpoint=v.getActiveEndpoint(),this.guideOpened=v.getGuideOpened(),this.miniGuideVisible=v.getMiniGuideVisible())};
_.K.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.K.handleGuideStateAction=function(v){this.guidePersistentAndVisible=v};
_.K.handleMiniGuideStateAction=function(v){this.miniGuideVisible=v};
_.K.handleGuideOpenedAction=function(v){this.guideOpened=v};
_.K.handleActiveEndpointAction=function(v){this.activeEndpoint=v};
L1.prototype.onActiveEndpointChange=L1.prototype.onActiveEndpointChange;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],L1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],L1.prototype,"guidePersistentAndVisible",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],L1.prototype,"miniGuideVisible",void 0);_.W([_.q(),_.X("design:type",Object)],L1.prototype,"activeEndpoint",void 0);
_.W([_.ph("activeEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],L1.prototype,"onActiveEndpointChange",null);_.W([_.q(),_.X("design:type",Boolean)],L1.prototype,"guideOpened",void 0);_.W([_.hM()],L1);_.ip.YtdGuideStateAwareBehavior=[];_.ip.YtdGuideStateAwareBehavior.push(L1.prototype,_.SI.YtActionHandlerBehavior);var beV=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],t9=function(){var v=_.dg.apply(this,arguments)||this;v.hoverJobId=0;v.JSC$14512_touched=!1;return v};
_.f(t9,_.dg);_.K=t9.prototype;_.K.created=function(){this.useExpandableTooltip=!beV.includes(this.is)};
_.K.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.K.detached=function(){this.useExpandableTooltip=!1};
_.K.lockupOnDown=function(v){this.interactionElement&&!_.j$(_.uK(v),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.K.lockupOnUp=function(v){this.interactionElement&&!_.j$(_.uK(v),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.K.onTouchStart=function(){this.JSC$14512_touched=!0};
_.K.lockupOnMouseEnter=function(){var v=this,Q=_.T_("kevlar_lockup_hover_delay",-1);this.JSC$14512_touched&&Q>=0?(_.XT.cancelJob(this.hoverJobId),this.hoverJobId=_.XT.addJob(function(){v.lockupIsHovered=!0},8,Q),this.JSC$14512_touched=!1):this.lockupIsHovered=!0};
_.K.lockupOnMouseLeave=function(){this.hoverJobId&&(_.XT.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.K.lockupOnPopupClosed=function(v,Q){var V;((V=Q.popupRenderer)==null?void 0:V.is)==="ytd-menu-popup-renderer"&&(v=Q.popupRenderer.veData,Q=_.Mo(),v&&Q&&_.s2(Q,[v]))};
_.K.lockupOnLockupRequested=function(v){var Q=v.detail.videoIds[0],V;v.detail&&Q===((V=this.data)==null?void 0:V.videoId)&&(v.detail.returnValue=[this.data])};
_.K.lockupOnYtServiceRequestSent=function(v,Q){if(v=Q.actions)for(var V=0;V<v.length;V++){var E=v[V];if(E.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&Q.ajaxPromise){var b=void 0,F=(b=_.y(Q.endpoint,_.Vd))==null?void 0:b.playlistId;b=void 0;E=(b=E.removedVideoId)!=null?b:"";z0Z(_.hQ(),E,F)}else E.action==="ACTION_REMOVE_VIDEO"&&Q.ajaxPromise&&(F=void 0,E=(F=E.setVideoId)!=null?F:"",_.Jbx(_.hQ(),E))}};
_.K.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.K.lockupOnLockupEnabled=function(){if(!this.$){var v=_.ht().resolve(_.oJ).getCurrentPage(),Q=this.getParentRenderer?this.getParentRenderer():void 0;_.Iy(new _.xd("component not ready",this.is,this.isAttached,v==null?void 0:v.is,Q==null?void 0:Q.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
t9.prototype.lockupOnLockupEnabled=t9.prototype.lockupOnLockupEnabled;t9.prototype.lockupOnLockupDisabled=t9.prototype.lockupOnLockupDisabled;t9.prototype.lockupOnYtServiceRequestSent=t9.prototype.lockupOnYtServiceRequestSent;t9.prototype.lockupOnLockupRequested=t9.prototype.lockupOnLockupRequested;t9.prototype.lockupOnPopupClosed=t9.prototype.lockupOnPopupClosed;t9.prototype.lockupOnMouseLeave=t9.prototype.lockupOnMouseLeave;t9.prototype.lockupOnMouseEnter=t9.prototype.lockupOnMouseEnter;
t9.prototype.onTouchStart=t9.prototype.onTouchStart;t9.prototype.lockupOnUp=t9.prototype.lockupOnUp;t9.prototype.lockupOnDown=t9.prototype.lockupOnDown;_.W([_.q(),_.X("design:type",Object)],t9.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],t9.prototype,"lockupIsHovered",void 0);_.W([_.q(),_.X("design:type",Boolean)],t9.prototype,"lockupTouchTriggered",void 0);_.W([_.q(),_.X("design:type",Boolean)],t9.prototype,"useExpandableTooltip",void 0);
_.W([_.Z7("#interaction"),_.X("design:type",Object)],t9.prototype,"interactionElement",void 0);_.W([_.tM("down"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],t9.prototype,"lockupOnDown",null);_.W([_.tM("up"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],t9.prototype,"lockupOnUp",null);
_.W([_.tM("touchstart"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t9.prototype,"onTouchStart",null);_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t9.prototype,"lockupOnMouseEnter",null);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t9.prototype,"lockupOnMouseLeave",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],t9.prototype,"lockupOnPopupClosed",null);_.W([_.tM("yt-lockup-requested"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],t9.prototype,"lockupOnLockupRequested",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],t9.prototype,"lockupOnYtServiceRequestSent",null);_.W([_.tM("yt-disable-lockup-interaction"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t9.prototype,"lockupOnLockupDisabled",null);
_.W([_.tM("yt-enable-lockup-interaction"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t9.prototype,"lockupOnLockupEnabled",null);_.W([_.hM()],t9);_.p1=[t9.prototype];_.FqQ={YtdReduxBehavior:[]};_.FqQ.YtdReduxBehavior.push.apply(_.FqQ.YtdReduxBehavior,_.QU);var ev=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;v.disableNowPlaying=!1;v.disableTooltips=!1;v.useHoveredProperty=!1;v.hovered=!1;v.isThumbnailHovered_=!1;v.addBackground=_.Y("kevlar_thumbnail_bg");v.nowPlaying=!1;v.disableRounding=!1;v.size="small";return v};
_.f(ev,_.dg);_.K=ev.prototype;_.K.computeThumbnailOverlaySidePanelWidth_=function(v,Q){return v-Q};
_.K.computeSize=function(v,Q){if(!this.disableRounding){if(!v&&!Q)return"small";v=Math.max(v||0,Q||0);return v>=256?"large":v>=96?"medium":"small"}};
_.K.computeFinalHoveredState_=function(v,Q,V){return this.nowPlaying?!1:_.Y("kevlar_thumbnail_fluid")&&v?Q:V};
_.K.computeHoverOverlays_=function(v,Q){return v&&Q?Q:void 0};
_.K.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.K.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.K.checkMiniplayer_=function(){var v;if(((v=this.data)==null?0:v.playlistSetVideoId)&&_.Y("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{v=_.u9();var Q=v.currentEndpoint;!this.disableNowPlaying&&Q&&_.y(Q,_.sn)&&this.data?(Q=_.y(Q,_.sn),this.nowPlaying=this.data.playlistId?Q.playlistId===this.data.playlistId:Q.videoId===this.data.videoId,this.isVideoPlaying=v==null?void 0:v.isVideoPlaying):this.nowPlaying=!1}};
ev.prototype.checkMiniplayer_=ev.prototype.checkMiniplayer_;ev.prototype.onMouseLeave_=ev.prototype.onMouseLeave_;ev.prototype.onMouseEnter_=ev.prototype.onMouseEnter_;ev.prototype.computeHoverOverlays_=ev.prototype.computeHoverOverlays_;ev.prototype.computeFinalHoveredState_=ev.prototype.computeFinalHoveredState_;ev.prototype.computeSize=ev.prototype.computeSize;ev.prototype.computeThumbnailOverlaySidePanelWidth_=ev.prototype.computeThumbnailOverlaySidePanelWidth_;
_.W([_.M(_.QU),_.X("design:type",Object)],ev.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],ev.prototype,"height",void 0);_.W([_.q(),_.X("design:type",Boolean)],ev.prototype,"bottomSidePanel",void 0);_.W([_.q(),_.X("design:type",Number)],ev.prototype,"width",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"disableNowPlaying",void 0);
_.W([_.q({selector:_.MS}),_.X("design:type",Boolean)],ev.prototype,"miniplayerIsActive",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"disableTooltips",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"useHoveredProperty",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"hovered",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"isThumbnailHovered_",void 0);
_.W([_.q({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.X("design:type",Boolean)],ev.prototype,"finalHoveredState_",void 0);_.W([_.q({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.X("design:type",Number)],ev.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ev.prototype,"addBackground",void 0);
_.W([_.q({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.X("design:type",Object)],ev.prototype,"hoverOverlays_",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ev.prototype,"nowPlaying",void 0);_.W([_.q(),_.X("design:type",Boolean)],ev.prototype,"isVideoPlaying",void 0);_.W([_.q(),_.X("design:type",Object)],ev.prototype,"disableRounding",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.X("design:type",Object)],ev.prototype,"size",void 0);_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ev.prototype,"onMouseEnter_",null);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ev.prototype,"onMouseLeave_",null);
_.W([_.ph("data","disableNowPlaying","miniplayerIsActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ev.prototype,"checkMiniplayer_",null);_.W([_.hM()],ev);var KqV=[ev.prototype];_.Zh={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(v,Q){return v+":"+_.$Q(Q)},
getPlayerListener_:function(v,Q,V){v=this.getPlayerListenerKey_(v,Q);Q=this.playerListeners_.get(v);V&&this.playerListeners_.delete(v);return Q},
savePlayerListener_:function(v,Q){var V=Q.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(v,Q),V);return V},
listenToPlayerEvent:function(v,Q,V){V=this.savePlayerListener_(Q,V);v.addEventListener(Q,V)},
listenToPlayerEvents:function(v,Q){Q.forEach(function(V,E){this.listenToPlayerEvent(v,E,V)}.bind(this))},
unlistenFromPlayerEvent:function(v,Q,V){V=this.getPlayerListener_(Q,V,!0);v.removeEventListener(Q,V)},
unlistenFromPlayerEvents:function(v,Q){Q.forEach(function(V,E){this.unlistenFromPlayerEvent(v,E,V)}.bind(this))}}};
_.Pk=function(){};_.ieZ=new _.KB("PLAYER_API_TOKEN");var g6Z=!1,Wz0,umE=!1,XJ3;var IJ=function(v,Q,V,E,b){_.J5.call(this);var F=this;this.playerId=Q;this.webPlayerContextConfig=E;this.noy=b;this.ydH=!1;this.api={};this.pjZ=this.o9E=null;this.i99=new _.ni;this.iC={};this.oJz=this.zdz=this.elementId=this.mYX=this.config=null;this.vJW=!1;this.zb=this.gwz=null;this.ubH={};this.p79=["onReady"];this.lastError=null;this.wmy=NaN;this.c0p={};this.fBz=0;this.nh=this.targetElement=v;_.Cg(this,this.i99);LqN(this);V?this.fBz=setTimeout(function(){F.loadNewVideoConfig(V)},0):E&&(tWR(this),
p1Z(this))};
_.f(IJ,_.J5);IJ.prototype.getId=function(){return this.playerId};
IJ.prototype.loadNewVideoConfig=function(v){if(!this.isDisposed()){this.fBz&&(clearTimeout(this.fBz),this.fBz=0);var Q=v||{};Q instanceof sVN||(Q=new sVN(Q));this.config=Q;this.setConfig(v);p1Z(this);this.isReady()&&eAN(this)}};
var tWR=function(v){var Q;v.webPlayerContextConfig?Q=v.webPlayerContextConfig.rootElementId:Q=v.config.attrs.id;v.elementId=Q||v.elementId;v.elementId==="video-player"&&(v.elementId=v.playerId,v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId=v.playerId:v.config.attrs.id=v.playerId);var V;((V=v.nh)==null?void 0:V.id)===v.elementId&&(v.elementId+="-player",v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId=v.elementId:v.config.attrs.id=v.elementId)};
IJ.prototype.setConfig=function(v){this.mYX=v;this.config=ZeR(v);tWR(this);if(!this.zdz){var Q;this.zdz=Pjp(this,((Q=this.config.args)==null?void 0:Q.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)v=this.config.attrs,(Q=v.width)&&this.nh&&(this.nh.style.width=sc(Number(Q)||Q,!0)),(v=v.height)&&this.nh&&(this.nh.style.height=sc(Number(v)||v,!0))};
IJ.prototype.getConfig=function(){return this.mYX};
var eAN=function(v){if(v.config&&v.config.loaded!==!0)if(v.config.loaded=!0,!v.config.args||v.config.args.autoplay!=="0"&&v.config.args.autoplay!==0&&v.config.args.autoplay!==!1){var Q;v.api.loadVideoByPlayerVars((Q=v.config.args)!=null?Q:null)}else v.api.cueVideoByPlayerVars(v.config.args)},hAZ=function(v){var Q=!0,V=v.getPlayerElement();
V&&v.config&&(Q=V.dataset.version===dO8(v));return Q&&!!_.Q9("yt.player.Application.create")},p1Z=function(v){if(!v.isDisposed()&&!v.vJW){var Q=hAZ(v);
if(Q&&(v.getPlayerElement()?"html5":null)==="html5")v.oJz="html5",v.isReady()||w1A(v);else if(AUa(v),v.oJz="html5",Q&&v.zb&&v.targetElement)v.targetElement.appendChild(v.zb),w1A(v);else{v.config&&(v.config.loaded=!0);var V=!1;v.gwz=function(){V=!0;var E=kbZ(v,"player_bootstrap_method")?_.Q9("yt.player.Application.createAlternate")||_.Q9("yt.player.Application.create"):_.Q9("yt.player.Application.create");var b=v.config?ZeR(v.config):void 0;E&&E(v.targetElement,b,v.webPlayerContextConfig,v.noy);w1A(v)};
v.vJW=!0;Q?v.gwz():(_.SH(dO8(v),v.gwz),(Q=TjN(v))&&Lpo(Q||""),Y6a(v)&&!V&&_.Pr("yt.player.Application.create",null))}}};
IJ.prototype.getPlayerElement=function(){var v=_.$W(document,this.elementId);!v&&this.nh&&this.nh.querySelector&&(v=this.nh.querySelector("#"+this.elementId));return v};
var w1A=function(v){if(!v.isDisposed()){var Q=v.getPlayerElement(),V=!1;Q&&Q.getApiInterface&&Q.getApiInterface()&&(V=!0);if(V){v.vJW=!1;if(!kbZ(v,"html5_remove_not_servable_check_killswitch")){var E;if((Q==null?0:Q.isNotServable)&&v.config&&(Q==null?0:Q.isNotServable((E=v.config.args)==null?void 0:E.video_id)))return}yUq(v)}else v.wmy=setTimeout(function(){w1A(v)},50)}},yUq=function(v){LqN(v);
v.ydH=!0;var Q=v.getPlayerElement();if(Q){v.o9E=cUq(v,Q,"addEventListener");v.pjZ=cUq(v,Q,"removeEventListener");var V=Q.getApiInterface();V=V.concat(Q.getInternalApiInterface());for(var E=v.api,b=0;b<V.length;b++){var F=V[b];E[F]||(E[F]=cUq(v,Q,F))}}for(var t in v.iC)v.iC.hasOwnProperty(t)&&v.o9E&&v.o9E(t,v.iC[t]);eAN(v);v.zdz&&v.zdz(v.api);v.i99.publish("onReady",v.api)},cUq=function(v,Q,V){var E=Q[V];
return function(){var b=_.aE.apply(0,arguments);try{return v.lastError=null,E.apply(Q,b)}catch(F){if(V!=="sendAbandonmentPing")throw F.params=V,v.lastError=F,b=new _.xd("PlayerProxy error in method call",{error:F,method:V,playerId:v.playerId}),b.level="WARNING",b;}}},LqN=function(v){v.ydH=!1;
if(v.pjZ)for(var Q in v.iC)v.iC.hasOwnProperty(Q)&&v.pjZ(Q,v.iC[Q]);for(var V in v.c0p)v.c0p.hasOwnProperty(V)&&clearTimeout(Number(V));v.c0p={};v.o9E=null;v.pjZ=null;Q=v.api;for(var E in Q)Q.hasOwnProperty(E)&&(Q[E]=null);Q.addEventListener=function(b,F){v.addEventListener(b,F)};
Q.removeEventListener=function(b,F){v.removeEventListener(b,F)};
Q.destroy=function(){v.dispose()};
Q.getLastError=function(){return v.getLastError()};
Q.getPlayerType=function(){return v.getPlayerType()};
Q.getCurrentVideoConfig=function(){return v.getConfig()};
Q.loadNewVideoConfig=function(b){v.loadNewVideoConfig(b)};
Q.isReady=function(){return v.isReady()}};
IJ.prototype.isReady=function(){return this.ydH};
IJ.prototype.addEventListener=function(v,Q){var V=this;this.isDisposed();var E=Pjp(this,Q);E&&(_.sB(this.p79,v)||this.iC[v]||(Q=fFZ(this,v),this.o9E&&this.o9E(v,Q)),this.i99.subscribe(v,E),v==="onReady"&&this.isReady()&&setTimeout(function(){E(V.api)},0))};
IJ.prototype.removeEventListener=function(v,Q){this.isDisposed()||(Q=Pjp(this,Q))&&this.i99.unsubscribe(v,Q)};
var Pjp=function(v,Q){var V=Q;if(typeof Q==="string"){if(v.ubH[Q])return v.ubH[Q];V=function(){var E=_.aE.apply(0,arguments),b=_.Q9(Q);if(b)try{b.apply(_.bb,E)}catch(F){throw E=new _.xd("PlayerProxy error when executing callback",{error:F}),E.level="ERROR",E;}};
v.ubH[Q]=V}return V?V:null},fFZ=function(v,Q){var V=function(E){var b=function(){v.isDisposed();
if(!v.isDisposed())try{v.i99.publish(Q,E!=null?E:void 0)}catch(p){var t=new _.xd("PlayerProxy error when creating global callback",{error:p.message,event:Q,playerId:v.playerId,data:E,originalStack:p.stack,componentStack:p.componentStack});t.level="WARNING";throw t;}};
if(kbZ(v,"web_player_publish_events_immediately"))b();else{var F=setTimeout(function(){b();_.gI.remove(v.c0p,String(F))},0);
_.gI.add(v.c0p,String(F),!0)}};
return v.iC[Q]=V};
IJ.prototype.getPlayerType=function(){return this.oJz||(this.getPlayerElement()?"html5":null)};
IJ.prototype.getLastError=function(){return this.lastError};
var AUa=function(v){v.cancel();LqN(v);v.oJz=null;v.config&&(v.config.loaded=!1);var Q=v.getPlayerElement();Q&&(hAZ(v)||!Y6a(v)?v.zb=Q:(Q&&Q.destroy&&Q.destroy(),v.zb=null));v.targetElement&&_.S3(v.targetElement)};
IJ.prototype.cancel=function(){this.gwz&&_.NmE(dO8(this),this.gwz);clearTimeout(this.wmy);this.vJW=!1};
IJ.prototype.disposeInternal=function(){AUa(this);if(this.zb&&this.config&&this.zb.destroy)try{this.zb.destroy()}catch(Q){var v=new _.xd("PlayerProxy error during disposal",{error:Q});v.level="ERROR";throw v;}this.ubH=null;for(v in this.iC)this.iC.hasOwnProperty(v)&&delete this.iC[v];this.mYX=this.config=this.api=null;delete this.targetElement;delete this.nh;_.J5.prototype.disposeInternal.call(this)};
var Y6a=function(v){var Q,V;v=(Q=v.config)==null?void 0:(V=Q.args)==null?void 0:V.fflags;return!!v&&v.indexOf("player_destroy_old_version=true")!==-1},dO8=function(v){return v.webPlayerContextConfig?v.webPlayerContextConfig.jsUrl:(v=v.config.assets)?v.js:""},TjN=function(v){return v.webPlayerContextConfig?v.webPlayerContextConfig.cssUrl:(v=v.config.assets)?v.css:""},kbZ=function(v,Q){if(v.webPlayerContextConfig)var V=v.webPlayerContextConfig.serializedExperimentFlags;
else{var E;if((E=v.config)==null?0:E.args)V=v.config.args.fflags}return(V||"").split("&").includes(Q+"=true")},ZeR=function(v){for(var Q={},V=_.L(Object.keys(v)),E=V.next();!E.done;E=V.next()){E=E.value;
var b=v[E];Q[E]=typeof b==="object"?_.gI.clone(b):b}return Q};var HcE={},IY3="player_uid_"+(Math.random()*1E9>>>0);var d4=function(v,Q,V,E,b,F){Q=Q===void 0?document.createElement("div"):Q;this.webPlayerContextConfig=v;this.container=Q;this.commandResolver=V;this.apiResolver=voo();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.bK;E||F?GbS(this):Cja(this);this.pendingPlayerResponse=E;this.pendingWatchNextResponse=b;this.pendingPlayerVars=F;MWR(this)};
d4.prototype.loadVideoWithPlayerResponse=function(v,Q,V){this.loadVideo(v,Q,V)};
d4.prototype.loadVideoWithPlayerVars=function(v){return this.loadVideo(void 0,void 0,v)};
d4.prototype.destroy=function(v){if(v=_.$W(document,v))v=IY3+"_"+_.$Q(v),(v=HcE[v])&&v.dispose()};
var DOZ=function(v,Q){var V;_.e(function(E){if(E.nextAddress==1)return v.pendingWatchNextResponse=Q,v.synchronousApi?(V=v.synchronousApi,E.jumpTo(2)):E.yield(v.api,3);E.nextAddress!=2&&(V=E.yieldResult);if(!OeZ(v,V))return E.return();v.pendingWatchNextResponse&&(V.updateVideoData({raw_watch_next_response:v.pendingWatchNextResponse}),v.pendingWatchNextResponse=void 0);_.q1(E)})},OeZ=function(v,Q){var V;
if(!(Q==null?0:(V=Q.isReady)==null?0:V.call(Q))){var E;_.Iy(new _.xd("playerApi is falsey",{synchronousApi:v.synchronousApi,apiResolved:v.apiResolver.resolved,playerApiUndefined:Q===void 0,playerApiNull:Q===null,playerApiReady:(Q==null?void 0:(E=Q.isReady)==null?void 0:E.call(Q))===!0,playerApiMethods:Q?Object.keys(Q):[]}));return!1}return!0},RAA=function(v,Q){if(typeof v[Q]==="function")return v[Q]()},nTR=function(v){var Q=window,V,E=(V=Q.ytplayer)==null?void 0:V.bootstrapPlayerContainer;
if((V=E==null?void 0:E.firstElementChild)&&_.$u(V,"html5-video-player")){var b,F,t=(b=Q.ytplayer)==null?void 0:(F=b.bootstrapWebPlayerContextConfig)==null?void 0:F.contextId;b=v.webPlayerContextConfig.contextId;if(t&&t===b){E!==v.container&&(E=!1,RAA(V,"getPlayerState")===2&&(E=!0),v.container.appendChild(V),E||RAA(V,"playVideo"));var p;if((p=Q.ytplayer)==null?0:p.bootstrapPlayerResponse)v.bootstrapPlayerResponse=Q.ytplayer.bootstrapPlayerResponse}}},MWR=function(v){var Q,V,E,b,F;
_.e(function(t){if(t.nextAddress==1)return v.pageReadyOrDataAvailable?t.jumpTo(2):t.yield(v.pageReadyOrDataAvailableResolver.promise,2);if(t.nextAddress!=4)return!_.Y("kevlar_player_unified_player_loading")||so0()&&jo3()?t.jumpTo(4):t.yield(rmT(),4);nTR(v);if(v.pendingPlayerResponse||v.pendingPlayerVars)Q=$5G(v.pendingPlayerResponse,v.pendingWatchNextResponse,v.pendingPlayerVars),v.pendingPlayerResponse&&v.pendingPlayerResponse===v.bootstrapPlayerResponse&&(Q.loaded=!0),v.bootstrapPlayerResponse=
void 0;V=U59(v.container,Q,v.webPlayerContextConfig);((E=Q)==null?0:E.loaded)&&v.pendingWatchNextResponse?(DOZ(v,v.pendingWatchNextResponse),v.pendingPlayerResponse=void 0,v.pendingPlayerVars=void 0):lF8(v);b=function(p){V.removeEventListener("onReady",b);v.synchronousApi=p;v.apiResolver.resolve(p)};
V.addEventListener("onReady",b);v.commandResolver!==void 0&&(F=v.commandResolver,V.addEventListener("innertubeCommand",function(p){F(p)}));
_.q1(t)})};
d4.prototype.loadVideo=function(v,Q,V){var E=this,b,F,t,p,Z,d,w,A,k;return _.e(function(T){if(T.nextAddress==1)return E.pendingPlayerResponse=v,E.pendingWatchNextResponse=Q,E.pendingPlayerVars=V,GbS(E),E.synchronousApi?(b=E.synchronousApi,T.jumpTo(2)):T.yield(E.api,3);T.nextAddress!=2&&(b=T.yieldResult);if(!OeZ(E,b))return T.return(new Promise(function(){}));
t=new Promise(function(c){F=c});
p=function(){var c=b.getPlayerResponse();c&&(b.removeEventListener("onVideoDataChange",p),F(c))};
b.addEventListener("onVideoDataChange",p);if(E.pendingPlayerResponse||E.pendingPlayerVars)E.pendingPlayerResponse&&E.pendingPlayerResponse===E.bootstrapPlayerResponse?(F(E.pendingPlayerResponse),E.pendingWatchNextResponse&&DOZ(E,E.pendingWatchNextResponse)):(Z=$5G(E.pendingPlayerResponse,E.pendingWatchNextResponse,E.pendingPlayerVars),(k=(d=E.pendingPlayerResponse)==null?void 0:(w=d.playerConfig)==null?void 0:(A=w.playbackStartConfig)==null?void 0:A.startPaused)?b.cueVideoByPlayerVars(Z.args):b.loadVideoByPlayerVars(Z.args)),
lF8(E),E.bootstrapPlayerResponse=void 0;return T.return(t)})};
var Cja=function(v){if(document.readyState==="complete"||document.readyState==="interactive")GbS(v);else{var Q=function(){document.removeEventListener("DOMContentLoaded",Q);GbS(v)};
document.addEventListener("DOMContentLoaded",Q)}},GbS=function(v){v.pageReadyOrDataAvailable=!0;
v.pageReadyOrDataAvailableResolver.resolve()},lF8=function(v){v.pendingPlayerResponse=void 0;
v.pendingWatchNextResponse=void 0;v.pendingPlayerVars=void 0};
_.hr.Object.defineProperties(d4.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var h9=function(v){ge.call(this,v===void 0?"document_active":v);var Q=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){Q.transition("document_disposed",{event:V})});
window.addEventListener("beforeunload",function(V){Q.transition("document_disposed_preventable",{event:V})});
window.addEventListener("unload",function(V){Q.transition("document_disposed",{event:V});Q.hasRun=new Map})};
_.f(h9,ge);
h9.prototype.runPreventableDispose=function(v,Q){if(!this.hasRun.get("document_disposed_preventable")){v(Q==null?void 0:Q.event);var V,E;if((Q==null?0:(V=Q.event)==null?0:V.defaultPrevented)||(Q==null?0:(E=Q.event)==null?0:E.returnValue)){Q.event.returnValue||(Q.event.returnValue=!0);Q.event.defaultPrevented||Q.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")};
h9.prototype.runDispose=function(v,Q){this.hasRun.get("document_disposed")?this.transition("document_active"):(v(Q==null?void 0:Q.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
h9.prototype.runFlush=function(v,Q){v(Q==null?void 0:Q.event);this.transition("document_active")};
h9.prototype.runActive=function(){};var w4=function(v){ge.call(this,v===void 0?"document_visibility_unknown":v);var Q=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"?Q.transition("document_visible",{event:V}):Q.transition("document_hidden",
{event:V})});
_.Y("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(V){Q.transition("document_backgrounded",{event:V})}),window.addEventListener("focus",function(V){Q.transition("document_foregrounded",{event:V})}))};
_.f(w4,ge);w4.prototype.runVisible=function(v,Q){v(Q==null?void 0:Q.event);_.Y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
w4.prototype.runHidden=function(v,Q){v(Q==null?void 0:Q.event);_.Y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
w4.prototype.runBackgrounded=function(v,Q){v(Q==null?void 0:Q.event)};
w4.prototype.runForegrounded=function(v,Q){v(Q==null?void 0:Q.event)};var A9=function(){this.teardownLifecycle=new h9;this.visibilityLifecycle=new w4};
A9.prototype.install=function(){var v=_.aE.apply(0,arguments),Q=this;v.forEach(function(V){Q.teardownLifecycle.install(V)});
v.forEach(function(V){Q.visibilityLifecycle.install(V)})};var k2=function(){A9.call(this);var v={};this.install((v.document_disposed={callback:this.abortSlisAndFlush},v));_.Y("combine_ve_grafts")&&(v={},this.install((v.document_disposed={callback:this.flushInteractionLoggingAttachVes},v)));v={};this.install((v.flush_logs={callback:this.logFinalPayload},v));_.Y("web_log_cfg_cee_ks")||_.go(_.XT,q6x)};
_.f(k2,A9);var QG9=function(){k2.loggingInstance||(k2.loggingInstance=new k2);return k2.loggingInstance};
k2.prototype.logFinalPayload=function(){if(_.Y("web_fp_via_jspb")){var v=new N8N,Q=_.Mo();Q&&_.SS(v,1,Q);Q=_.Y("jspb_sparse_encoded_pivot")?new Bx([{}]):new Bx;_.O9(Q,380,xSp,v);Mhh("finalPayload",Q);_.Y("web_fp_via_jspb_and_json")&&_.X0("finalPayload",{csn:_.Mo()})}else _.X0("finalPayload",{csn:_.Mo()})};
k2.prototype.abortSlisAndFlush=function(){CFN(dJ);hL!=null&&hL.flush()};
k2.prototype.flushInteractionLoggingAttachVes=function(){oCa(_.tR())};
var q6x=function(){var v=_.r7("CLIENT_EXPERIMENT_EVENTS");if(v){var Q=Vph();v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,Q(V)&&_.X0("genericClientExperimentEvent",{eventType:V});delete _.X1.CLIENT_EXPERIMENT_EVENTS}};var S6p={};
S6p.YtPlayerBehavior=[_.Zh.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var v=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.bK;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Vf3(function(){v.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Ic(this,"pan-down"),_.Y("kevlar_pinch_fullscreen")&&_.BO().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.Y("kevlar_pinch_fullscreen")&&_.BO().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(v,Q,V){var E=this;H_(this.useUnifiedPlayer_());if(this.mainAppPlayer_)H_(!1,"MainAppPlayer already created.");else{var b=_.Y("kevlar_player_container_query_killswitch")?this.$.container:_.m9(this.hostElement).querySelector("#container");this.mainAppPlayer_=new d4(this.getWebPlayerContextConfig_(),b,function(F){return _.FL(F,E.hostElement)},v,Q,V);
this.mainAppPlayer_.api.then(function(F){E.player_=F;E.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&aER.resolve(F)})}},
loadVideoWithPlayerResponse:function(v,Q){var V=this;if(this.useUnifiedPlayer_()){var E=this.watchNextData,b,F=(b=v.videoDetails)==null?void 0:b.videoId,t,p,Z;(b=(t=this.watchNextData)==null?void 0:(p=t.currentVideoEndpoint)==null?void 0:(Z=p.watchEndpoint)==null?void 0:Z.videoId)&&F!=b&&(E=void 0,_.Y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(v,E,Q):this.createMainAppPlayer_(v,E,Q);this.mainAppPlayer_.api.then(function(){_.Hj(V.hostElement,
"yt-player-updated")})}else this.update(NNB(v,Q))},
loadVideoWithPlayerVars:function(v){var Q=this;this.useUnifiedPlayer_()?(_.Y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(v):this.createMainAppPlayer_(void 0,void 0,v),this.mainAppPlayer_.api.then(function(){_.Hj(Q.hostElement,"yt-player-updated")})):this.update({args:v})},
update:function(v){var Q=this;if(this.useUnifiedPlayer_())H_(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(v);var V=XWo(v.args);V&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==V&&Object.assign(v.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(v).then(function(E){_.Hj(Q.hostElement,"yt-player-updated",_.Y("kevlar_player_updated_obsolete_player_killswitch")?
E:void 0)})}_.$h(new _.xd("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.getPlayerPromise(),2);V=E.yieldResult;if(!V)throw Error("vh");v&&Q.updatePlayerPlaylist_(v);_.q1(E)})},
acquireApi_:function(v){var Q=this;if(this.useUnifiedPlayer_())H_(!1,"Invalid method call in kevlar_unified_player.");else return _.XT.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(H_(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(V){Q.shouldAutoplay_(v)?V.loadVideoByPlayerVars(v.args):V.cueVideoByPlayerVars(v.args)})):this.initPlayerPromise_=this.initPlayerContainer_(v),this.initPlayerPromise_},
initPlayerContainer_:function(v){var Q=this;if(this.useUnifiedPlayer_())H_(!1,"Invalid method call in kevlar_unified_player.");else return H_(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Iy(Error("wh")),H_(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.Y("kevlar_player_container_query_killswitch")?this.$.container:_.m9(this.hostElement).querySelector("#container"),rmT().then(function(){var V=Q.initPlayer_(v);Q.playerResolver_.resolve(V);
return V})},
onPlayerReady_:function(v,Q){this.useUnifiedPlayer_()?H_(!1,"Invalid method call in kevlar_unified_player."):(v.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&aER.resolve(v),Q(v))},
maybeCallApiMethodOnElement_:function(v,Q){if(typeof v[Q]==="function")return v[Q]()},
maybeAdoptBootstrapPlayer_:function(){var v=window,Q,V=(Q=v.ytplayer)==null?void 0:Q.bootstrapPlayerContainer;if((Q=V==null?void 0:V.firstElementChild)&&Q.classList.contains("html5-video-player")){var E,b,F=(E=v.ytplayer)==null?void 0:(b=E.bootstrapWebPlayerContextConfig)==null?void 0:b.contextId;E=this.getWebPlayerContextConfig_().contextId;if(F&&F===E){V!==this.playerContainer_&&(V=!1,this.maybeCallApiMethodOnElement_(Q,"getPlayerState")===2&&(V=!0),this.playerContainer_.appendChild(Q),V||this.maybeCallApiMethodOnElement_(Q,
"playVideo"));var t;if((t=v.ytplayer)==null?0:t.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=v.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(v){var Q=this;if(this.useUnifiedPlayer_())H_(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(V){Q.maybeAdoptBootstrapPlayer_();var E=v?x5G(v):void 0;E&&E==Q.bootstrapPlayerResponse_&&(v.loaded=!0);E=Q.playerContainer_;var b=Q.getWebPlayerContextConfig_();E=U59(E,v,b);Q.player_=E;Q.onPlayerReadyEvent_=Q.onPlayerReady_.bind(Q,Q.player_,V);Q.player_.addEventListener("onReady",Q.onPlayerReadyEvent_);Q.player_.addEventListener("innertubeCommand",
Q.onPlayerInnerTubeCommand_.bind(Q))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(v){v.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(v){v.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var v=_.ht().resolve(_.oJ).getCurrentPage();v&&v.getScrollTop()<=0?_.Ic(this,"pan-down"):_.Ic(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(v){v.isFullscreen()||v.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(v){v.isFullscreen()&&v.toggleFullscreen()})},
updatePlayerPlaylist_:function(v){var Q=this,V,E,b;return _.e(function(F){if(F.nextAddress==1)return V=_.ht().resolve(_.d$(_.pD)),E=!!(V&&V.playlistComponent&&V.playlistComponent.loopOn),F.yield(Q.getPlayerPromise(),2);var t=b=F.yieldResult,p=t.updatePlaylist,Z=[];if(_.Y("kevlar_player_playlist_use_local_index")){var d,w;var A=(w=(d=v.localCurrentIndex)!=null?d:v.currentIndex)!=null?w:0}else{var k;A=(k=v.currentIndex)!=null?k:0}if(v.contents)for(d=0;d<v.contents.length;d++)if((w=v.contents[d])&&w.playlistPanelVideoRenderer)if(Xk0(w)){w=
w.playlistPanelVideoRenderer;k="";w.shortBylineText&&(k=_.j0(w.shortBylineText));var T="";w.title?T=_.j0(w.title):w.unplayableText&&(T=_.j0(w.unplayableText));Z.push({author:k,title:T,encrypted_id:w.videoId})}else d<A&&--A;p.call(t,{index:A,list:v.playlistId?v.playlistId:"",loop:E,playlist_title:v.title,playlist_length:Z.length,video:Z,fetch:0,external_list:"1",title:v.title?v.title:"",playlist_author:v.ownerName?_.j0(v.ownerName):void 0});_.q1(F)})},
focusOnPlayer:function(){_.PE(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var v=this.playerContainer_.querySelector(".html5-video-player");v&&(_.Ty(_.ht().resolve(_.dS)),v.focus())}})},
preparePlayer:function(){var v=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(Q){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")Q();else{var V=function(){document.removeEventListener("DOMContentLoaded",V);Q()};
document.addEventListener("DOMContentLoaded",V)}})).then(function(){return rmT()}).then(function(){v.initPlayerPromise_||v.preparePlayerJobId_||(v.preparePlayerJobId_=_.go(_.XT,function(){v.initPlayerPromise_||(v.initPlayerPromise_=v.initPlayerContainer_())}))}):_.$h(new _.xd("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(v){this.useUnifiedPlayer_()?H_(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(v)||(v.args.autoplay="0")},
shouldAutoplay_:function(v){if(this.useUnifiedPlayer_())H_(!1,"Invalid method call in kevlar_unified_player.");else{var Q=this.get("args.el",v);return Q&&Q!="detailpage"&&this.isMiniplayerActive_()||Q&&(Q=="sponsorshipsoffer"||Q=="handlesclaiming")&&this.get("args.autoplay",v)=="0"?!1:(v=x5G(v))&&this.get("playerConfig.playbackStartConfig.startPaused",v)?!1:!0}},
isMiniplayerActive_:function(){return _.ht().resolve(_.lJ).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var v=this.getPlayer();if(v){var Q=v.getPlayerState();_.Y("kevlar_player_check_ad_state_on_stop")&&(Q=v.getPlayerState(v.getPresentingPlayerType()));Q!=5&&v.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(v,Q,V){V=V===void 0?!1:V;var E=this,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return Q||(Q=E.hostElement),b=E.useUnifiedPlayer_()?!!E.mainAppPlayer_:!!E.initPlayerPromise_,b?Z.yield(E.getPlayerPromise(),2):(V?v.insertBefore(Q,v.firstChild):v.appendChild(Q),Z.return());F=Z.yieldResult;t=F.getPlayerState(F.getPresentingPlayerType());p=!1;if(t==-1||t==1||t==3)p=!0;V?v.insertBefore(Q,v.firstChild):v.appendChild(Q);p&&F.playVideo();F.setSize(NaN,NaN);_.q1(Z)})},
watchNextDataChanged_:function(v){var Q=this;v&&(this.useUnifiedPlayer_()&&_.Y("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&DOZ(this.mainAppPlayer_,v):this.getPlayerPromise().then(function(V){V.updateVideoData(Q.computeWatchNextPlayerVars_(v))}))},
computeWatchNextPlayerVars_:function(v){if(this.useUnifiedPlayer_()&&_.Y("kevlar_unified_player_update_watch_next_killswitch"))H_(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:v}},
maybeSendAbandonmentPing_:function(){var v=this.getPlayer();v&&v.getPlayerState()!=5&&v.getPlayerState()!=0&&v.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var v=_.r7("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(v=Object.assign({},v),v.rootElementId=this.playerId);v.serializedExperimentIds&&v.serializedExperimentFlags||_.Iy(Error("xh"));return v},
hasWebPlayerContextConfig_:function(){return!!_.r7("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(v){this.useUnifiedPlayer_()?H_(!1,"Invalid method call in kevlar_unified_player."):_.FL(v,this.hostElement)},
useUnifiedPlayer_:function(){var v=_.Y("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.Y("kevlar_unified_player")||v}}];var zAa={};zAa.YtPlaylistPanelBehavior=[_.H.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(v){v=v.detail;if(v.actions.loop!=void 0||v.actions["yt-icons:loop"]!=void 0)this.loopOn=v.actions.loop||v.actions["yt-icons:loop"];if(v.actions.shuffle!=void 0||v.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=v.actions.shuffle||v.actions["yt-icons:shuffle"]},
setMenuData_:function(v){if(!v||!v.playlistButtons||v.isInfinite)return null;for(var Q=v.playlistButtons.menuRenderer.topLevelButtons,V=Q.length,E=0;E<V;E++)if(Q[E].toggleButtonRenderer){var b=Q[E].toggleButtonRenderer;b.defaultIcon.iconType=="LOOP"&&this.loopOn?b.isToggled=this.loopOn:b.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(b.isToggled=this.shuffleOn)}return v.playlistButtons}}];_.Y2={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(v,Q,V){var E=this.getClickTarget_(Q);if(E&&this.isClickAllowed_(E)){Q.preventDefault();v=(0,_.gI.unsafeClone)(v);var b=this.getContainerBoundingRect();Q=this.getRelativeClickXy_(Q,b);this.expandEndpointUrlMacros_(v,{NX:Q[0],NY:Q[1],NB:E.code});V&&this.truncateWebCommendMetadataUrl_(v);_.Hj(this.hostElement,"yt-navigate",{endpoint:v})}},
getClickTarget_:function(v){if(!this.clickTargetMap)return null;v=_.uK(v)||[];v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;if(Q===_.m9(this.hostElement).querySelector("#menu"))break;if(Q=this.clickTargetMap.get(Q.id))return Q}return null},
getRelativeClickXy_:function(v,Q){var V=Math.round(v.detail.x-Q.left);v=Math.round(v.detail.y-Q.top);return V<0||v<0?[null,null]:[V,v]},
getContainerBoundingRect:function(){return _.m9(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(v,Q){for(var V=_.L(v.loggingUrls||[]),E=V.next();!E.done;E=V.next())E=E.value,E.baseUrl&&(E.baseUrl=ZaG(E.baseUrl,Q));v.urlEndpoint&&v.urlEndpoint.url&&(v.urlEndpoint.url=ZaG(v.urlEndpoint.url,Q));v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url&&(v.commandMetadata.webCommandMetadata.url=ZaG(v.commandMetadata.webCommandMetadata.url,Q))},
truncateWebCommendMetadataUrl_:function(v){if(v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url){var Q=v.commandMetadata.webCommandMetadata.url,V=Q.indexOf("&pp=");if(V>0){var E=Q.indexOf("&",V+1);v.commandMetadata.webCommandMetadata.url=E>V&&E<Q.length?Q.slice(0,V)+Q.slice(E):Q.slice(0,V)}}},
configureClickTargets:function(v,Q,V){this.containerId=v;this.clickTargetMap=new Map;v=_.L(Q);for(Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.location){var E=V.get(Q.location);E&&(_.VE(_.m9(this.hostElement).querySelector("#"+E),"yt-simple-endpoint",this.isClickAllowed_(Q)),this.clickTargetMap.set(E,Q))}},
isClickAllowed_:function(v){return v.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.yU={};
_.yU.YtLazyListBehavior=[_.hD.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var v=(this.constructor.generatedFrom||this).observers;v||(v=[]);v.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
v}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var v=this.renderElementsOutsideVisibleArea_;v&&(StQ(v,4),v.processSignal())},
deepLazyListObserver_:function(v){var Q=this;if(v){var V=v.value||[];if(this.itemsPath==v.path){var E=this.nonDeferredItemCount;v=0;E>-1&&V.length>E&&(v=_.r7("REMAINING_DOVA_DEFERRED_CHUNKS",-1));v>0?(E>0&&(E=V.slice(0,E),this.setInitialItemsOnDataChanged(E)),(E=this.renderElementsOutsideVisibleArea_)?E.cancel():(E=this.renderElementsOutsideVisibleArea_=new _.AD(2,"eocs"),_.h1b(window,"scroll",function(){return Q.renderDeferredElements()})),_.kc(E,function(){Q.setInitialItemsOnDataChanged(V)}),_.aS("REMAINING_DOVA_DEFERRED_CHUNKS",
v-1)):this.setInitialItemsOnDataChanged(V)}else if(this.itemsPath+".splices"==v.path)this.onItemsUpdated_(V);
else E="shownItems"+v.path.substr(this.itemsPath.length),this.useSignals&&E==="shownItems.length"||this.notifyPath(E,v.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(v){v&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(v),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(v){v=v.indexSplices;for(var Q=0,V=v.length;Q<V;Q++){var E=v[Q];if(E.index<this.shownCount&&(E.removed&&this.splice("shownItems",E.index,E.removed.length),E.addedCount)){var b=E.object.slice(E.index,E.index+E.addedCount);E=["shownItems",E.index,0];E.push.apply(E,b);this.splice.apply(this,E)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(v){this.cancelPendingTasks_();v||(v=[]);this.items_=v;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.mX("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.PE(this,this.tryRenderChunk_)))},
fillRange_:function(v,Q){this.canShowMore&&this.items_&&(v=this.items_.slice(v,Q),v.unshift("shownItems"),this.push.apply(this,v),this.shownCount=Q,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var v=this;this.canShowMore&&_.Nf(this,"renderChunk",function(){v.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.mX("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.A2(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var v=this.renderElementsOutsideVisibleArea_;v&&(v.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var v=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(v-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=v;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(v){return Math.ceil(1E3/v)},
onCanShowMoreUpdated_:function(v){this.data&&this.items_!==null&&(v?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(v){!this.shouldUseTaskManager()&&this.data&&(!v&&this.canShowMore?(_.cb9(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):v&&this.partiallyRenderedItems_.has(this.items_)&&(_.Y("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Gy;_.ck={};
Gy=function(){var v=_.dg.apply(this,arguments)||this;v.atStart=!0;v.atEnd=!0;v.startIndex=0;v.endIndex=0;v.scrollCount=0;v.initialStartIndex=0;v.disableScrollEventListener=!1;v.useFloorScrolling=!1;v.isSearch=!1;v.dragging=!1;v.dragMouseStart=0;v.dragOffsetStart=0;v.disableWheelScroll=!1;v.centerListItems=!1;v.offset=0;v.minComponentWidth=0;v.marginWidthRight=0;v.marginWidthLeft=0;v.setButtonsStateRequested=!1;v.itemsVisibilityObserver=null;v.fullyVisibleItemsIndices=[];v.JSC$14574_onWheelScroll=function(Q){if(v.isSearch&&
!v.disableWheelScroll&&_.Y("desktop_enable_dmpanel_wheel_scroll")){var V=Q.shiftKey?Math.abs(Q.deltaY)>Math.abs(Q.deltaX)?Q.deltaY:Q.deltaX:Q.deltaX;V!==0&&(Q.preventDefault(),v.ytLazyListBehavior.fillRemainingListItems(),v.offset+=V,f1(v),v.reposition_())}};
v.onPointerDown=function(Q){JUQ(v)&&(v.dragMouseStart=Q.clientX,v.dragOffsetStart=v.offset,v.dragging=!0)};
v.onPointerMove=function(Q){JUQ(v)&&v.dragging&&(v.ytLazyListBehavior.fillRemainingListItems(),v.offset=v.dragOffsetStart-(Q.clientX-v.dragMouseStart),f1(v),v.reposition_())};
v.onPointerUp=function(){JUQ(v)&&(v.dragging=!1)};
return v};
_.f(Gy,_.dg);var NjZ=function(v){var Q=_.m9(v.hostElement).querySelector("#items").children;if(!Q)return 0;var V=0;v=_.L(v.fullyVisibleItemsIndices);for(var E=v.next();!E.done;E=v.next())V+=Q[E.value].clientWidth;return V},JUQ=function(v){return v.isSearch&&_.Y("desktop_enable_dmpanel_click_drag_scroll")};
Gy.prototype.created=function(){this.cachedViewportWidth=_.r7("initialInnerWidth")||window.innerWidth;this.JSC$14574_cachedViewportHeight=_.r7("initialInnerHeight")||window.innerHeight;_.r7("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.aS("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Gy.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Y("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();xOS(this)};
Gy.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Y("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var v;(v=this.itemsVisibilityObserver)==null||v.disconnect();this.itemsVisibilityObserver=null;var Q;(Q=this.itemsObserver)==null||Q.disconnect()};
var xOS=function(v){var Q=_.m9(v.hostElement).querySelector("#scroll-container");if(Q){if(!v.itemsVisibilityObserver){var V=window.getComputedStyle(Q).marginRight;v.itemsVisibilityObserver=new IntersectionObserver(function(E){Bjp(v,E)},{root:Q,
rootMargin:V,threshold:.98})}if(Q=_.m9(v.hostElement).querySelector("#items"))v.itemsObserver=new e1N(Q,function(E){gTN(v,E)})}},gTN=function(v,Q){s6a(v)&&(Array.from(Q.addedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){v.itemsVisibilityObserver&&v.itemsVisibilityObserver.observe(V)}),Array.from(Q.removedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){v.itemsVisibilityObserver&&v.itemsVisibilityObserver.unobserve(V)}))},
Bjp=function(v,Q){var V=new Set(v.fullyVisibleItemsIndices);
Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;var b=E.target.parentElement;b?(b=Array.from(b.children).indexOf(E.target),E.isIntersecting?V.add(b):V.has(b)&&V.delete(b)):_.Iy(new _.xd("Parent element not found",E.target.nodeName))}v.fullyVisibleItemsIndices=Array.from(V).sort(function(F,t){return F-t});
V.size===0?_.Iy(new _.xd("No visible entries in horizontal list")):(v.startIndex=v.fullyVisibleItemsIndices[0],v.endIndex=v.fullyVisibleItemsIndices[v.fullyVisibleItemsIndices.length-1])},s6a=function(v){v.data?v=(v=v.data)&&v.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===v.itemSizeConstraint:!1:v=!1;
return v};
_.K=Gy.prototype;_.K.addScrollEventListeners=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container");v.style.touchAction="pan-y";v.addEventListener("wheel",this.JSC$14574_onWheelScroll);v.addEventListener("pointerdown",this.onPointerDown);v.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.K.removeScrollEventListeners=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container");v.removeEventListener("wheel",this.JSC$14574_onWheelScroll);v.removeEventListener("pointerdown",this.onPointerDown);v.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.K.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.PE(this,this.setStartIndex,[this.initialStartIndex])};
_.K.reposition_=function(){var v=_.r7("HTML_DIR")=="rtl"?"":"-",Q=_.m9(this.hostElement).querySelector("#items");Q&&(Q.style.transform="translateX("+v+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.K.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.PE(this,this.setButtonsState_))};
_.K.setButtonsState_=function(){this.setButtonsStateRequested=!1;var v=_.m9(this.hostElement).querySelector("#items").firstElementChild;if(v){this.minComponentWidth||(this.minComponentWidth=uPV(this,v));v=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;var Q=_.m9(this.hostElement).querySelector("#items");Q=_.Y("kevlar_horizontal_list_scroll_width_killswitch")?Q.clientWidth:Q.scrollWidth;var V=this.get(this.ytLazyListBehavior.itemsPath,this);if(V){var E=Math.round(v/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+E,V.length)-1)}this.ytLazyListBehavior.canShowMore?Q+this.minComponentWidth>=this.offset+v&&(this.atEnd=!1):this.atEnd=this.offset+v>=Q-20?!0:!1;this.atStart=this.offset<=20}};
_.K.setStartIndex=function(v){if(!this.minComponentWidth){var Q=_.m9(this.hostElement).querySelector("#items").firstElementChild;if(!Q)return;this.minComponentWidth=uPV(this,Q)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*v;f1(this);this.reposition_()};
_.K.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.yg();var v=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;_.Y("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=uPV(this,_.m9(this.hostElement).querySelector("#items").firstElementChild));v=this.useFloorScrolling?Math.floor(v/this.minComponentWidth)||1:Math.round(v/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&j6x(this);this.offset+=s6a(this)?
NjZ(this):v*this.minComponentWidth;f1(this);this.reposition_();this.scrollCount++};
_.K.prevClick_=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;v=this.useFloorScrolling?Math.floor(v/this.minComponentWidth)||1:Math.round(v/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=s6a(this)?NjZ(this):this.minComponentWidth*this.scrollCount-1):this.offset-=s6a(this)?NjZ(this):v*this.minComponentWidth;this.centerListItems&&j6x(this);f1(this);this.reposition_()};
_.K.onIronResize_=function(){this.resizeSupportEnabled&&_.PE(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.K.onItemsTransitionEnd_=function(v){_.jV(v)===_.m9(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.K.onChildElementFocus_=function(v){v=v.target.closest("#items > *");var Q=_.m9(this.hostElement).querySelector("#scroll-container");if(Q.contains(v)){if(_.Y("web_horizontal_list_behavior_focus_killswitch"))if(v.offsetLeft<this.offset)this.offset=Math.abs(v.offsetLeft)<v.clientWidth?0:v.offsetLeft;else if(v.offsetLeft+v.clientWidth>this.offset+Q.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.yg(),this.offset=v.offsetLeft+v.clientWidth-Q.clientWidth;else return;else{var V=_.m9(this.hostElement).querySelector("#items"),
E=_.r7("HTML_DIR")==="rtl",b=E?V.clientWidth-v.offsetLeft:v.offsetLeft;V=E?V.clientWidth-(v.offsetLeft+v.clientWidth):v.offsetLeft+v.clientWidth;var F=E?b>this.offset+Q.clientWidth:b<this.offset,t=E?V<this.offset:V>this.offset+Q.clientWidth,p=E?F:t;if(E?t:F)Q=E?V:b,this.offset=Math.abs(Q)<v.clientWidth?0:Q;else if(p)this.ytLazyListBehavior.fillRemainingListItems(),_.yg(),this.offset=(E?b:V)-Q.clientWidth;else return}f1(this);this.reposition_()}};
_.K.observeShownItems_=function(){this.reset()};
_.K.checkComponentWidthResize=function(){var v=_.m9(this.hostElement).querySelector("#items").firstElementChild;v&&(v=uPV(this,v),this.centerListItems||v!==this.minComponentWidth)&&(this.minComponentWidth=v,this.offset=v*this.scrollCount,this.centerListItems&&j6x(this),f1(this),this.reposition_())};
var uPV=function(v,Q){var V=window.getComputedStyle(Q).marginRight;V=Math.floor(Number(V.replace("px","")));var E=window.getComputedStyle(Q).marginLeft;E=Math.floor(Number(E.replace("px","")));v.centerListItems&&!v.marginWidthRight&&(v.marginWidthRight=V,v.marginWidthLeft=E);return v.resizeSupportEnabled?Q.getBoundingClientRect().width+V:Q.offsetWidth+V},f1=function(v){var Q=_.m9(v.hostElement).querySelector("#scroll-container").clientWidth,V=_.m9(v.hostElement).querySelector("#items").clientWidth;
v.offset<0?v.offset=0:v.offset+Q>=V&&(v.offset=V-Q)},j6x=function(v){v.offset-=(_.m9(v.hostElement).querySelector("#scroll-container").clientWidth+v.marginWidthRight-v.minComponentWidth)/2-v.marginWidthLeft};
_.hr.Object.defineProperties(Gy.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var v=_.r7("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(v==-1)v=this.JSC$14574_cachedViewportHeight,v=v>1320?5:v>1020?4:v>730?3:v>430?2:1;else if(v==0)return 0;_.aS("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",v-1);v=_.r7("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(v>-1)return v;v=this.cachedViewportWidth;v=v>1600?6:v>1400?5:v>1300?4:v>1090?5:v>870?4:v>660?3:2;_.aS("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
v);return v},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.Y("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Gy.prototype.observeShownItems_=Gy.prototype.observeShownItems_;Gy.prototype.onChildElementFocus_=Gy.prototype.onChildElementFocus_;Gy.prototype.onItemsTransitionEnd_=Gy.prototype.onItemsTransitionEnd_;Gy.prototype.onIronResize_=Gy.prototype.onIronResize_;Gy.prototype.prevClick_=Gy.prototype.prevClick_;Gy.prototype.nextClick_=Gy.prototype.nextClick_;Gy.prototype.setButtonsState_=Gy.prototype.setButtonsState_;Gy.prototype.requestButtonsStateUpdate_=Gy.prototype.requestButtonsStateUpdate_;
Gy.prototype.reposition_=Gy.prototype.reposition_;Gy.prototype.reset=Gy.prototype.reset;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],Gy.prototype,"ytLazyListBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Gy.prototype,"atStart",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Gy.prototype,"atEnd",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"startIndex",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"endIndex",void 0);_.W([_.q({value:6}),_.X("design:type",Number)],Gy.prototype,"initialCount",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"scrollCount",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"initialStartIndex",void 0);
_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"disableScrollEventListener",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"supportComponentResize",void 0);_.W([_.q({value:function(){var v=this;return function(){return v.prevClick_()}}}),
_.X("design:type",Function)],Gy.prototype,"boundPrevClick",void 0);_.W([_.q({value:function(){var v=this;return function(){return v.nextClick_()}}}),
_.X("design:type",Function)],Gy.prototype,"boundNextClick",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"useFloorScrolling",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"isSearch",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"dragging",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"dragMouseStart",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"dragOffsetStart",void 0);
_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"disableWheelScroll",void 0);_.W([_.q(),_.X("design:type",Object)],Gy.prototype,"centerListItems",void 0);_.W([_.tM("iron-resize"),_.ph("guideOpened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Gy.prototype,"onIronResize_",null);_.W([_.tM("transitionend"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Gy.prototype,"onItemsTransitionEnd_",null);
_.W([_.tM("focusin"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Gy.prototype,"onChildElementFocus_",null);_.W([_.ph("shownItems"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Gy.prototype,"observeShownItems_",null);_.W([_.hM()],Gy);_.ck.YtdHorizontalListBehavior=[];_.ck.YtdHorizontalListBehavior.push(_.WW,_.H.YtRendererBehavior,_.yU.YtLazyListBehavior,_.ip.YtdGuideStateAwareBehavior,Gy.prototype);var b3T=["APP_STATE","PI"];var C1,MD=function(v){this.hostElement=v},Or=function(v,Q){if(Q&&(LP9(Q.viewableCommands)||LP9(Q.endOfSessionCommands))){var V=phE(Q.viewableCommands);
Q=phE(Q.endOfSessionCommands);if(!C1){var E=_.T_("custom_active_view_tos_timeout_ms");C1=E>0&&E!==36E5?new z3E(tfm(),E):new z3E(tfm())}NMZ(C1,v.hostElement);xGo(C1,v.hostElement,V,Q)}},Dh=function(v){C1&&NMZ(C1,v.hostElement)};var Wqx=_.s$(["about:blank"]),oT8={pushState:window.history.pushState,replaceState:window.history.replaceState};var Ru=function(v){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=v;this.internalPushState=v.pushState.bind(v);this.internalReplaceState=v.replaceState.bind(v)};
Ru.prototype.init=function(){this.initialized=!0};
Ru.prototype.pushState=function(v,Q){this.initialized||this.init();this.internalPushState&&this.internalPushState(v,"",Q)};
Ru.prototype.replaceState=function(v,Q){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(v,"",Q)};
Ru.prototype.getState=function(){return this.history&&this.history.state};var X1Z=function(v){var Q=function(){var V=v.apply(this,arguments)||this;V.boundHistoryPushState=!1;V.boundHistoryReplaceState=!1;V.debugInfo={};return V};
_.f(Q,v);Q.prototype.init=function(){var V=_.RD("IFRAME");_.vc(V,_.Ad(Wqx));V.sandbox="allow-same-origin";V.style.display="none";this.iframe=V;document.body.appendChild(V);this.bindHistoryStateFunctions();v.prototype.init.call(this)};
Q.prototype.bindHistoryStateFunctions=function(){var V=this,E=[],b;this.iframe&&((b=this.iframe.contentWindow)==null?0:b.history)&&(b=this.iframe.contentWindow.history)&&(E.push(b),Object.getPrototypeOf(b)&&E.push(Object.getPrototypeOf(b)));window.history&&E.push(window.history);b=window.history;Object.getPrototypeOf(b)&&E.push(Object.getPrototypeOf(b));E.push(oT8);b=function(t){for(var p=null,Z=0;Z<E.length;Z++){var d=E[Z][t];if(typeof d==="function"){p=d.bind(window.history);V.debugInfo[t]=Z;break}}return p};
if(!this.boundHistoryReplaceState){var F=b("replaceState");F&&(this.internalReplaceState=F,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(b=b("pushState"))&&(this.internalPushState=b,this.boundHistoryPushState=!0)};
return Q}(Ru),aFq=function(){return X1Z.call(this,window.history)||this};
_.f(aFq,X1Z);aFq.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var n1=function(v){this.browserHistory=v;this.initialized=!1};
n1.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
n1.prototype.pushState=function(v,Q){this.initialized||this.init();this.browserHistory.pushState(v,Q)};
n1.prototype.replaceState=function(v,Q){this.initialized||this.init();this.browserHistory.replaceState(v,Q)};
n1.prototype.handlePopstate=function(v){return v.state};_.rUx=function(v,Q,V,E,b){this.endpoint=v;this.forward=Q;this.historyEntry=V;this.JSC$30645_savedComponentState=E;this.legacyBorder=b===void 0?!1:b};var $ON=function(v,Q){this.rootData=v;this.scrollTop=Q};_.lp=new _.KB("EPHEMERAL_STORE_TOKEN");_.qD=function(v){this.data=Object.assign({},v);var Q;(Q=this.data.innertubeResponse)==null||delete Q.frameworkUpdates};
_.qD.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.wO)()};
_.rs=function(v){return Object.assign({},v.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var IFR=function(){this.maxSize=100;this.timeToDataCache=new Map};
IFR.prototype.get=function(v){var Q=this.timeToDataCache.get(v);Q&&(this.timeToDataCache.delete(v),this.timeToDataCache.set(v,Q));if(Q&&Q.rootData&&(_.Y("web_use_response_store_for_history_cache")||_.Y("mweb_use_new_history_manager"))){var V=_.ht().resolve(_.lp),E=Hep(Q),b=!!E;if(E){if(E.content){var F=Sv(V,E.content);b&&F?Q.rootData.response=_.rs(F):b=!1}E.player&&(F=Sv(V,E.player),b&&F?Q.rootData.playerResponse=_.rs(F):b=!1);E.reelSequence&&(V=Sv(V,E.reelSequence),b&&V?Q.rootData.reelWatchSequenceResponse=
_.rs(V):b=!1)}b||(this.timeToDataCache.delete(v),Q=void 0)}return Q};
IFR.prototype.set=function(v,Q){if(Q.rootData&&(_.Y("web_use_response_store_for_history_cache")||_.Y("mweb_use_new_history_manager"))){var V=Hep(Q),E=Object.assign({},Q.rootData);V&&(V.content&&Q.rootData.response&&(mOZ(this,V.content,Q.rootData.response),E.response=null),V.player&&Q.rootData.playerResponse&&(mOZ(this,V.player,Q.rootData.playerResponse),E.playerResponse=null),V.reelSequence&&Q.rootData.reelWatchSequenceResponse&&(mOZ(this,V.reelSequence,Q.rootData.reelWatchSequenceResponse),E.reelWatchSequenceResponse=
null));Q=new $ON(E,Q.scrollTop)}this.timeToDataCache.has(v)?this.timeToDataCache.delete(v):this.timeToDataCache.size>=this.maxSize&&(V=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(V.value));this.maxSize!==0&&this.timeToDataCache.set(v,Q)};
IFR.prototype.clear=function(){this.timeToDataCache.clear()};
var Hep=function(v){var Q=_.ht().resolve(_.d$(_.kG)),V;if((V=v.rootData)==null?0:V.endpoint)return Q==null?void 0:OSB(Q,v.rootData.endpoint);var E;_.Iy(new _.xd("History snapshot response data does not contain endpoint",(E=v.rootData)==null?void 0:E.url));return null},mOZ=function(v,Q,V){if(v.maxSize>0){var E;
(v=(E=V.responseContext)==null?void 0:E.maxAgeSeconds)&&Number(v)>0&&(E=_.ht().resolve(_.lp),V=vw(V,v),E.put(Q,new _.qD(V)))}};var UOS=function(v,Q,V){this.endpoint=Q;this.JSC$30651_savedComponentState=V===void 0?null:V;this.entryTime=v};var P1b=1;var zy=function(v){var Q=function(){var V=v.apply(this,[].concat(_.ui(_.aE.apply(0,arguments))))||this;V.historyEntryTime=0;V.historySnapshotCache=V.createHistoryCache();return V};
_.f(Q,v);Q.prototype.createHistoryCache=function(){return new IFR};
Q.prototype.saveAndReplace=function(V,E,b){var F=window.location.href;var t=t===void 0?{}:t;var p=(p=this.browserHistory.getState())&&p.entryTime?p.entryTime:d9E();V=this.createNewHistoryEntry(V,t,p);this.saveSnapshot(p,E,b);this.replaceState(V,F||window.location.href)};
Q.prototype.saveAndPush=function(V,E,b,F,t){t=t===void 0?{}:t;this.saveSnapshot(this.historyEntryTime,b,F);b=this.historySnapshotCache;F=this.historyEntryTime;var p=b.timeToDataCache.keys();p=_.L(p);for(var Z=p.next();!Z.done;Z=p.next())Z=Z.value,Z>F&&b.timeToDataCache.delete(Z);E=this.createNewHistoryEntry(E,t);this.pushState(E,V)};
Q.prototype.saveSnapshot=function(V,E,b){this.historySnapshotCache.set(V,new $ON(E,b))};
Q.prototype.createNewHistoryEntry=function(V,E,b){b=b===void 0?d9E():b;return new UOS(b,V,E)};
Q.prototype.handlePopstate=function(V){var E=v.prototype.handlePopstate.call(this,V),b=null,F=null,t=!1,p=null;E&&E.entryTime&&(p=this.historySnapshotCache.get(E.entryTime)||null,t=E.entryTime>this.historyEntryTime,this.historyEntryTime=E.entryTime,b=E.endpoint,F=E.JSC$30651_savedComponentState);this.handleHistoryCacheLoad(new _.rUx(b,t,p,F),V);return E};
Q.prototype.pushState=function(V,E){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);v.prototype.pushState.call(this,V,E)};
Q.prototype.replaceState=function(V,E){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);v.prototype.replaceState.call(this,V,E)};
Q.prototype.handleHistoryCacheLoad=function(){};
return Q}(n1),vZQ=function(){var v=zy.call(this,new aFq)||this;
v.dispatchElement=null;v.entryIndex=0;return v};
_.f(vZQ,zy);_.K=vZQ.prototype;_.K.init=function(v){v=v===void 0?!0:v;zy.prototype.init.call(this);this.initialized||(v||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.K.handlePopstate=function(v){var Q=null;v.state||(Q="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return zy.prototype.handlePopstate.call(this,v);var V=new CustomEvent("yt-history-pop",{cancelable:!0});_.mb(this.dispatchElement,"yt-history-pop",[V,{errorMsg:Q}]);_.Un(this.dispatchElement,"yt-close-all-popups-action");if(!V.defaultPrevented){V=_.ht().resolve(_.oJ);Q=V.getCurrentData();var E=V.getCurrentPage();V=0;E?(E=_.mb(this.dispatchElement,"yt-get-page-offset",
[E]),E.length>0&&(V=E[0])):_.Iy(new _.xd("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:Q?Q.page:"undefined"}));Q&&(Q.csn=_.Mo());this.saveSnapshot(this.historyEntryTime,Q,V)}return zy.prototype.handlePopstate.call(this,v)};
_.K.handleHistoryCacheLoad=function(v,Q){v.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.L(_.Un(this.dispatchElement,"yt-history-will-navigate",[Q])).next().value||_.mb(this.dispatchElement,"yt-history-load",[Q,v]))};
_.K.pushState=function(v,Q){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var V=new _.xd("history.pushState is not a function",this.getDebugString());_.ro(V)}zy.prototype.pushState.call(this,v,Q)};
_.K.replaceState=function(v,Q){if(!this.browserHistory.boundHistoryReplaceState){var V=new _.xd("history.replaceState is not a function",this.getDebugString());_.ro(V)}zy.prototype.replaceState.call(this,v,Q)};
_.K.saveAndPush=function(v,Q,V,E,b){b=b===void 0?{}:b;V&&(V.csn=_.Mo());zy.prototype.saveAndPush.call(this,v,Q,V,E,b)};
_.K.getDebugString=function(){var v=[];this.initialized&&v.push("i");this.browserHistory.boundHistoryReplaceState&&v.push("bhr");this.browserHistory.boundHistoryPushState&&v.push("bhs");"replaceState"in this.browserHistory.debugInfo&&v.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&v.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&v.push("ei:"+String(this.entryIndex));return v.join(",")};
_.J9=function(v,Q){v.init(!0);var V=v.browserHistory.getState();v.replaceState(V,UP(Q))};
vZQ.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ND=new _.KB("DESKTOP_HISTORY_MANAGER_TOKEN");var Qpp=[10,20,30,40,50,60],x2=function(){this.currentPartitionIndex=0},Vlp=function(v){SmQ({mainAppWeb:_.N2(),
survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},EZ8=function(v){SmQ({mainAppWeb:_.N2(),
survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},bXZ=function(v){return v.currentPartitionIndex>=0&&v.currentPartitionIndex<Qpp.length?Qpp[v.currentPartitionIndex]:-1},FBp=function(v){return v.currentPartitionIndex>0&&v.currentPartitionIndex-1<Qpp.length?Qpp[v.currentPartitionIndex-1]:-1};
x2.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var v=FBp(this);v>0&&EZ8(v);v=bXZ(this);v>0&&Vlp(v);KBQ(this)}};
var KBQ=function(v){var Q=bXZ(v);if(Q>0){var V=FBp(v);V<0&&(V=0);v.intervalId=_.XT.addJob(function(){var E=FBp(v);E>0&&EZ8(E);E=bXZ(v);E>0&&Vlp(E);KBQ(v)},3,(Q-V)*6E4);
v.currentPartitionIndex+=1}else v.currentPartitionIndex=-1};var iXA=function(v){f2.call(this,v,132);this.isDocument=v===document.documentElement};
_.f(iXA,f2);iXA.prototype.calculateScrollDelta=function(v,Q,V){var E=0;v<Q?E=v<Q-100?-48:-8:v>Q+V&&(E=v>Q+V+100?48:8);return E};
iXA.prototype.JSC$11471_onMouseMove=function(v){this.isDocument||(v.clientX=v.event_.pageX,v.clientY=v.event_.pageY);f2.prototype.JSC$11471_onMouseMove.call(this,v)};_.LBp=function(v,Q){var V=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14628_dragListGroup=null;this.onDraggerCreated=function(E){var b=E.JSC$11467_dragger;b.scrollTarget_=V.scrollElement;E=E.draggerEl;b&&E.menuOpened&&b.setEnabled(!1)};
this.onDragStart=function(E){var b=E.draggerEl;E=E.currDragItem;var F=Object.assign({},E==null?void 0:E.data);F.trackingParams=void 0;b.data=F;b.style.position="absolute";b.style.width=(E==null?void 0:E.clientWidth)+"px";b.style.zIndex="2030";b.onDrag&&b.onDrag();E=_.W4(b);(F=E.querySelector("ytd-app"))?_.m9(F).appendChild(b):E.body.appendChild(b);V.dragScrollSupport=new iXA(V.scrollElement);V.dragScrollSupport.horizontalScrolling_=!1;b=V.dragScrollSupport;b.constrainScroll_=!!b.margin_&&!1};
this.onDrop=function(E){V.handleDrop(E);V.dragScrollSupport&&(_.t5(V.dragScrollSupport),V.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(V.JSC$14628_dragListGroup){var E=V.JSC$14628_dragListGroup;Js8(E,E.currDragItem_)}};
this.handleDrop=Q};
_.Bk=function(v){v.JSC$14628_dragListGroup&&(_.OE(v.JSC$14628_dragListGroup,M$N,v.onDragStart),_.OE(v.JSC$14628_dragListGroup,nWa,v.onDragStart),v.JSC$14628_dragListGroup.dispose(),v.JSC$14628_dragListGroup=null);v.dragScrollSupport&&(_.t5(v.dragScrollSupport),v.dragScrollSupport=null);v.scrollElement.removeEventListener("scroll",v.onReorderableScroll)};
_.tlX=function(v,Q,V,E){E=E===void 0?"":E;_.Bk(v);V&&(v.scrollElement=V);v.JSC$14628_dragListGroup=new I4;v.JSC$14628_dragListGroup.hysteresisDistance_=2;qPZ(v.JSC$14628_dragListGroup,Q);v.JSC$14628_dragListGroup.draggerElClasses_=dG("dragging").split(" ");E&&SPQ(v.JSC$14628_dragListGroup,function(b){var F=b||document,t=null;F.getElementsByClassName?t=F.getElementsByClassName(E)[0]:t=Zwq("*",E,b);return t||b});
_.wE(v.JSC$14628_dragListGroup,GrX,v.onDraggerCreated);_.wE(v.JSC$14628_dragListGroup,M$N,v.onDragStart);_.wE(v.JSC$14628_dragListGroup,nWa,v.onDrop);v.JSC$14628_dragListGroup.init();v.scrollElement.addEventListener("scroll",v.onReorderableScroll,{passive:!0})};
_.hr.Object.defineProperties(_.LBp.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var pKV=function(){this.skipNextNavigation=!1},eoX=function(v,Q,V){if(!Q)return!1;
if(v.skipNextNavigation)return v.skipNextNavigation=!1;if(_.y(V,_.FJ))return!1;var E,b,F;if((E=_.y(V,_.tn))==null?0:(b=E.browseEndpointContextSupportedConfigs)==null?0:(F=b.browseEndpointContextMainConfig)==null?0:F.skipConfirmation)return!1;var t;return((t=_.y(Q.commandMetadata,_.Kt))==null?void 0:t.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
pKV.prototype.showConfirmationDialog=function(v,Q){this.navigateParams=Q;this.customConfirmationCommand?_.ht().resolve(_.At).resolveCommand(this.customConfirmationCommand):(Q={openPopupAction:{popup:{confirmDialogRenderer:{title:_.u3(_.Lt("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.u3(_.Lt("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.u3(_.Lt("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.u3(_.Lt("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.KW.getInstance().triggerAction("yt-open-popup-action",Q,v))};
pKV.prototype.cancelPendingNavigation=function(){var v;((v=this.navigateParams)==null?void 0:v.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var ZXa=function(){},dH8=function(v,Q,V,E,b,F,t){V=V===void 0?{}:V;
t=t===void 0?{}:t;var p=_.ht().resolve(_.kG),Z,d=(Z=_.y(Q,_.FJ))==null?void 0:Z.url;return d?LD9(p,d,V,window.location.href,function(w,A){PEZ(v,w,A,!1,!0,V,F,E)},function(){return!1}):zn(p,Q,V,window.location.href,eV(Q),function(w,A){PEZ(v,w,A,!1,!0,V,F,E)},b,t)},PEZ=function(v,Q,V,E,b,F,t,p){if(!v.JSC$14643_chunkHandler)if(V.page==="learning_journey_watch"&&_.Y("web_enable_canvas_on_learning_journey")){var Z=!_.y(p,_.tn);
b=b||E;if(Z)if(b){if(_.Y("kevlar_continue_playback_without_player_response")){var d;var w=(d=_.y(p,_.sn))==null?void 0:d.videoId}E={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:E,previousVideoId:w},tempData:F}}else E={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else E={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};v.JSC$14643_chunkHandler=new V8A(_.aJ,E,t,Z,b)}else if(V.page==="watch"||V.page==="learning_journey_watch")if(b||E){if(_.Y("kevlar_continue_playback_without_player_response")){var A;
Z=(A=_.y(p,_.sn))==null?void 0:A.videoId}v.JSC$14643_chunkHandler=new Fcq(_.aJ,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:E,previousVideoId:Z},tempData:F},t)}else v.JSC$14643_chunkHandler=new vLA(_.aJ);else V.page==="shorts"&&b&&!E?v.JSC$14643_chunkHandler=new b9a(_.aJ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:F},t):v.JSC$14643_chunkHandler=new QYQ(t);v.JSC$14643_chunkHandler.processChunk({endpoint:Q,data:V});return v.JSC$14643_chunkHandler.jg.promise},
hoq=function(v,Q,V,E,b){(V=_.ThS(V))&&PEZ(v,Q,V,!1,!0,E,void 0,b)};_.wK8=new _.KB("NAVIGATION_SERVICE_TOKEN");var AOQ=function(){this.pendingNavigationPromise=null};
_.K=AOQ.prototype;_.K.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.K.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.K.addEventListener=function(){throw Error("yh");};
_.K.dispatchEvent=function(){throw Error("yh");};
_.K.removeEventListener=function(){throw Error("yh");};var kLN=new _.KB("APP_ROOT");var whZ=null;var Td8=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],g4=function(){_.DO.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Yba(this)};
_.f(g4,_.DO);g4.prototype.verifyUser=function(){var v=Yba(this),Q=v.logout;if(!v.sessionChange)return!0;this.dispatchEvent("ytsessionchange");Q&&this.dispatchEvent("ytuserinvalid");return!1};
var Yba=function(v){var Q=Td8.map(function(b){var F;return(F=_.qY.get(b))!=null?F:""}),V=Q.some(function(b,F){return v.sessionCookies&&v.sessionCookies[F]!==""&&b===""}),E=Q.some(function(b,F){return v.sessionCookies&&v.sessionCookies[F]!==b});
v.sessionCookies=Q;return{logout:V,sessionChange:E}};
g4.prototype.clearTimeout=function(){this.scheduledJobId&&(_.XT.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var fNQ=new _.KB("POSTMESSAGE_TUNNEL_TOKEN");var YN9=["/parent_tools","/file_download","/artist_roster"],Mfm=[reA,$jN,I5a,mjZ,Hfx,a5V,UjR,vwQ];var sr=new _.KB("NAVIGATION_CONFIRMATION_SERVICE");var yON="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),cOR=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],up=function(v,Q){this.pendingNavigationPromise=null;this.JSC$14666_clientRoot=v;this.historyManager=Q;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 ZXa;this.debugString=v.is;v={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.iM(_.KW.getInstance(),v,this.JSC$14666_clientRoot)},OXa,DHZ,RoA,nZa,Mla;
_.f(up,AOQ);up.prototype.reload=function(){_.nF(window.location.href)};
var coN=function(v){v.currentEndpoint&&_.y(v.currentEndpoint,_.PH)?v.reload():v.currentEndpoint&&v.navigate(v.currentEndpoint,!0,void 0,{disableCache:!0})};
up.prototype.navigate=function(v,Q,V,E,b,F,t,p){Q=Q===void 0?!1:Q;V=V===void 0?{}:V;E=E===void 0?{}:E;var Z=_.ht().resolve(sr),d;if(!t&&eoX(Z,(d=this.currentEndpoint)!=null?d:void 0,v))return Z.showConfirmationDialog(this.JSC$14666_clientRoot.parentElement,{endpoint:v,reload:Q,params:V,tempData:E,requestType:b,createScreenConfig:F}),!1;var w=_.Zp();_.PO(w,"eocs")||w.parkOrScheduleJob(function(){w.processSignal("eocs")},10,"eor");
Al9();t=eV(v);Z=E.autonav==="1";d=_.Mo();g4.instance||(g4.instance=new g4);var A=g4.instance.verifyUser(),k;if(_.Y("enable_dark_theme_only_on_shorts")){var T=document.documentElement.hasAttribute("dark"),c=_.q2(!0)==="USER_INTERFACE_THEME_DARK";if(t==="shorts"){if(!T)if(_.Y("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var C;_.nF((C=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:C.url,void 0,void 0,window.top)}}else{var R;_.nF(_.iv((R=_.y(v==
null?void 0:v.commandMetadata,_.Kt))==null?void 0:R.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.Y("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!T){var l;_.nF(_.iv((l=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:l.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(c!==T){var S;_.nF(_.iv((S=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:S.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(t==="watch"){if(f$V(_.ht().resolve(_.lJ),
v)&&(A||_.Y("fix_miniplayer_navigation_killswitch")))return!1;_.Y("block_all_player_prefetch_requests")||(k=YyZ(_.XQ(_.JQ),v,Z))}else{var a,g=(a=_.y(this.currentEndpoint,_.sn))==null?void 0:a.videoId;g&&_.Hm.getInstance().then(function(xQ){xQ&&xQ.set("yt-miniplayer-shown-video-id",g)})}k&&(V.frags=k.missingFragments_.join(","));
C=null;var u;R=(u=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:u.ignoreNavigation;if(!R)if(_.Y("kevlar_command_url")){var r;C=(r=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?void 0:r.url}else C=_.Q7Q(v,V);if(C&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&C==this.lastNavigationUrl)return _.ft({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Kq(qo(),"CANCELLED")}C&&(this.lastNavigationUrl=C);UI9();_.aS("IS_HOMEPAGE_COLD",
!1);_.aS("IS_RESULTS_PAGE_COLD",!1);_.aS("IS_WATCH_PAGE_COLD",!1);v.loggingUrls&&v.loggingUrls.forEach(function(xQ){xQ.baseUrl&&_.Vp(xQ.baseUrl)});
_.noG(v,F?F.layer:0)&&_.Y("kevlar_flush_logs_on_away_navigation")&&_.ay();if(O3T(v))return!1;EAN(t,b);if(!C)return R||_.Iy(new _.xd("Can't construct url for endpoint",v)),_.Kq(qo(),"FAILURE"),!1;_.kRS();u=v&&_.y(v,_.tn)&&_.y(v,_.tn).browseId.startsWith("UC");V=(r=_.Y("enable_dark_theme_only_on_shorts")&&t==="shorts"?!1:_.SV()&&document.documentElement.hasAttribute("dark")!==_.lK())?{themeRefresh:1}:{};r&&!_.z_()&&_.q2()==="USER_INTERFACE_THEME_DARK"&&(V.theme="dark");u=r||GLZ(C)&&!u&&!_.Y("kevlar_disable_url_allowlist");
A||(u=!0);if(u||_.r7("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var v9;var t3=(v9=window.top)==null?void 0:v9.location.href}catch(xQ){var h3;t3=(h3=xQ)==null?void 0:h3.message}_.Iy(new _.xd("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:t3}))}v=_.Y("kevlar_redirect_on_window_killswitch")?window.top:window;RO(C);_.nF(_.iv(C,V),void 0,void 0,v);_.Kq(qo(),"ABORTED");return!1}_.Y("kevlar_early_popup_close")&&_.mb(this.JSC$14666_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14643_chunkHandler=void 0;var OB;t3=eV((OB=this.currentEndpoint)!=null?OB:void 0);(OB=t==="shorts"&&t3==="shorts")||_.X2G();_.v5(l2o)("nr",void 0);Z&&_.ft({webInfo:{navigationReason:"an"}});v.clickTrackingParams&&(E.itct=v.clickTrackingParams,E.csn=d);mgr(E);E.endpoint=JSON.stringify(v);_.Y("enable_unknown_lact_fix_on_html5")&&(_.ht().resolve(_.dS),E.lact=_.kh());_.gI.isEmpty(E)||_.ox(C,E);!_.Y("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(F=Object.assign({},{layer:0},F,{parentLayer:3}));this.pendingNavigationPromise=F=dH8(this.pageFetcher,v,E,this.currentEndpoint,this.JSC$14666_isNetworkPromiseStale.bind(this),F,p);F=F.then(this.handleNavigateSuccess.bind(this,F,v,k,E),this.handleNavigateFail.bind(this,F,v));_.u9().navigationFinishPromise=F;Q={endpoint:v,pageType:t,url:UP(C),reload:!!Q,noProgressBar:OB};b&&(Q.type=b);var kQ;b=_.LF((kQ=this.currentEndpoint)!=null?kQ:null);kQ=_.LF(v!=null?v:null);this.fireEvent("yt-navigate-start",
Q);var yo;(yo=_.ht().resolve(_.d$(_.wK8)))==null||yo.publish("navigation-start",{sourcePageSubtype:b,destinationPageSubtype:kQ});k&&hoq(this.pageFetcher,v,k,E,this.currentEndpoint);return!0};
up.prototype.JSC$14666_isNetworkPromiseStale=function(v){return v!=this.pendingNavigationPromise};
var CEQ=function(v,Q,V,E,b){var F=eV(Q);Q={endpoint:Q,pageType:F};b&&(Q.errorMessage=b);_.Iy(V);Q.navigationDoneMs=_.Mp("nd");Q.navigationErrorReason=E;v.fireEvent("yt-navigate-error",Q)};
up.prototype.handleNavigateFail=function(v,Q,V){var E=void 0;V instanceof _.lA&&(E=V,UCE(V));if(this.JSC$14666_isNetworkPromiseStale(v))return _.kD(E);_.Kq(qo(),"FAILURE");CEQ(this,Q,V,"101");return _.kD(V)};
up.prototype.handleNavigateSuccess=function(v,Q,V,E,b){if(this.JSC$14666_isNetworkPromiseStale(v))return _.Vk();this.pendingNavigationPromise=null;if(!b)return Q=new _.xd("Missing data in response for navigation endpoint",Q),_.kD(Q);if(b.reload)return window.location.reload(!0),_.Vk();V&&(v={},_.gI.extend(v,_.ThS(V),b),b=v);var F,t;V=(F=b)==null?void 0:(t=F.timing)==null?void 0:t.responseStart;V!=null&&_.Mp("srt",V);_.Mp("pdc");var p,Z;F=(p=b)==null?void 0:(Z=p.timing)==null?void 0:Z.info;F!=null&&
(p=_.v5(_.JBE)(F),_.ft(p));_.Kq(qo(),"SUCCESS");Mla(this,Q,b,1,E);return _.Vk()};
var GLZ=function(v){var Q=v;_.Y("kevlar_no_redirect_to_classic_2_ks")||(Q=(new _.uY(v)).getPath());if(Q==="/"||Q==="/red")return!1;var V=!0;yON.forEach(function(E){v.indexOf(E)===0&&(V=!1)});
cOR.forEach(function(E){var b=E.url;_.Y(E.expFlag)&&v.indexOf(b)===0&&(V=!1)});
return V};
up.prototype.publishPageData=function(v){this.fireEvent("yt-page-data-fetched",{pageData:v})};
OXa=function(v,Q,V,E,b,F){var t=null;Q.page!=="watch"&&Q.page!=="learning_journey_watch"||E?Q.filler||_.mb(v.JSC$14666_clientRoot,"yt-stop-old-player",[Q]):t=PEZ(v.pageFetcher,b,Q,V,!1,F,void 0,v.currentEndpoint);if(t)return t.then(v.publishPageData.bind(v,Q));v.publishPageData(Q);return _.Vk()};
DHZ=function(v,Q,V){var E=null;if(!V)return E=new _.xd("Empty data",v.debugString,Q);var b=V.response;if(!b)return E;var F={endpointType:eV(Q)||"unknown"};b.responseContext?(b=b.responseContext.errors)&&(E=new _.xd("Errors in response context",v.debugString,Q,b,F)):E=b.error||b.errorMetadata?new _.xd("Errors in response",v.debugString,Q,b.error,b.errorMetadata,F):new _.xd("responseContext missing",v.debugString,Q,Object.keys(b).sort().join(","),F);var t,p,Z,d;if(v=V==null?void 0:(t=V.response)==null?
void 0:(p=t.responseContext)==null?void 0:(Z=p.webResponseContextExtensionData)==null?void 0:(d=Z.webResponseContextDebugData)==null?void 0:d.debugErrorMessages)for(t=0;t<v.length;t++);return E};
RoA=function(v){var Q,V,E,b;return v==null?void 0:(Q=v.response)==null?void 0:(V=Q.responseContext)==null?void 0:(E=V.errors)==null?void 0:(b=E.error)==null?void 0:b["0"]};
nZa=function(v,Q){var V;if(V=Q.url&&!Q.url.startsWith("/clip"))V=Q.url,V=!_.Y("webfe_parse_debug_param_in_resolveurl_service")&&v.searchDebugUrlMatcher.test(V)||LLQ(V)?!0:!1;if(V)LLQ(Q.url)&&_.Ki(window.location.href).themeRefresh?(Q=_.Xy(Q.url,"themeRefresh"),_.J9(v.historyManager,Q)):Q.url&&!eOG(Q.url)&&_.J9(v.historyManager,Q.url);else if(Q.endpoint){var E,b,F;(V=(E=Q.endpoint)==null?void 0:(b=E.commandMetadata)==null?void 0:(F=b.webCommandMetadata)==null?void 0:F.url)&&!eOG(V)&&_.J9(v.historyManager,
V);V&&Q.url&&V!=Q.url&&!Q.url.match("playnext=1")&&new _.xd("Response url mismatch in response data",v.debugString,V,Q.url)}};
_.l$p=function(v,Q,V,E,b,F,t,p){F=F===void 0?!1:F;var Z=_.ht().resolve(sr),d;if(!p&&eoX(Z,(d=v.currentEndpoint)!=null?d:void 0,Q))return Z.showConfirmationDialog(v.JSC$14666_clientRoot.parentElement,{endpoint:Q,data:V,navigationType:E,tempData:b,isMiniplayer:F,isForwardHistoryNavigation:t==null?void 0:t.forward}),_.Vk();v.pageFetcher.JSC$14643_chunkHandler=void 0;return Mla(v,Q,V,E,b,F)};
Mla=function(v,Q,V,E,b,F){F=F===void 0?!1:F;v.isMiniplayerExpansion=F;var t=E===2;v.currentEndpoint=Q;v.numNavigations++;v.numNavigations&&(B_h.navigationCount=v.numNavigations);_.aS("NUM_NAV",v.numNavigations);var p=DHZ(v,Q,V);if(p)return CEQ(v,Q,p,"102",RoA(V)),_.kD(p);var Z,d,w,A;p=V.rootVe||(V==null?void 0:(Z=V.response)==null?void 0:(d=Z.responseContext)==null?void 0:(w=d.webResponseContextExtensionData)==null?void 0:(A=w.ytConfigData)==null?void 0:A.rootVisualElementType);!t&&V&&nZa(v,V);var k,
T;Z=V==null?void 0:(k=V.response)==null?void 0:(T=k.responseContext)==null?void 0:T.maxAgeSeconds;if(!t&&!isNaN(Z)){var c;_.Y("kevlar_use_response_ttl_to_invalidate_cache")?c=(0,_.wO)()+1E3*Z:_.Y("kevlar_always_invalidate_cache")&&(c=0);isNaN(c)||(V.expirationTime=c)}_.XQ(_.JQ).prefetchCache_.clear();t||V.page!=="watch"||V.type!=="reduced"&&E!==1?E=OXa(v,V,t,!!F,Q,b):(v.publishPageData(V),E=_.Vk());b=E.then(function(){var C=eV(Q);C={endpoint:Q,pageType:C,fromHistory:t,response:V};C.navigationDoneMs=
_.Mp("nd");v.fireEvent("yt-navigate-finish",C);var R;(R=_.ht().resolve(_.d$(_.wK8)))==null||R.publish("navigation-end")});
V.csn&&p&&V.clientSideGrafts&&E.then(v.attachClientSideGrafts.bind(v,V,_.CC()));return b};
_.K=up.prototype;_.K.attachClientSideGrafts=function(v,Q){v.clientSideGrafts&&Q&&v.clientSideGrafts.forEach(function(V){if(Q&&V){var E=_.dE(V);_.Y("combine_ve_grafts")?_.tR().graftServerVe(V,Q):_.Np(v.csn,Q,E)}})};
_.K.handleSignalActionHistoryBack=function(){window.history.back()};
_.K.handleSignalActionCloseWindow=function(){window.close()};
_.K.handleSignalActionReloadPage=function(){this.reload()};
_.K.handleSignalActionSoftReloadPage=function(){coN(this)};
_.K.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.K.fireEvent=function(v,Q){v=new CustomEvent(v,{bubbles:!0,cancelable:!1,composed:!0,detail:Q});this.dispatchEvent(v)};
_.K.addEventListener=function(v,Q){this.JSC$14666_clientRoot.addEventListener(v,Q)};
_.K.dispatchEvent=function(v){return this.JSC$14666_clientRoot.dispatchEvent(v)};
_.K.removeEventListener=function(v,Q){this.JSC$14666_clientRoot.removeEventListener(v,Q)};
up[w$]=[kLN,_.ND];_.ZS0=new vu("browse","h8y2qb");_.PZr=new vu("search","JzFVk");_.d4r=new vu("shorts","xwEKAe");_.hsB=new vu("watchFixie","nmfa2d");_.wzG=new vu("watchFlexy","CF909");_.AiG=new vu("watchGrid","Tm0L3c");_.kNo=new vu("watchLearningJourney","L3n37");var qbN;var SbX=function(){return _.z.apply(this,arguments)||this};
_.f(SbX,_.z);_.hr.Object.defineProperties(SbX,{template:{configurable:!0,enumerable:!0,get:function(){if(qbN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);qbN=v}v=qbN;return v}}});
_.W([_.M(S6p.YtPlayerBehavior),_.X("design:type",Object)],SbX.prototype,"ytPlayerBehavior",void 0);_.W([_.J({is:"ytd-player"})],SbX);var zop;var JOR;var NdA;var jv=function(){var v=_.z.apply(this,arguments)||this;v.forceModernIconButton=!1;v.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return v};
_.f(jv,_.z);jv.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]]"}}}}}};
jv.prototype.handleAccountLinkingStateChangedCommand=function(v){if(v=_.y(v,efS)){var Q,V=(Q=this.data)==null?void 0:Q.providerKey;Q=v.providerKey;V&&Q&&V.id===Q.id&&V.subject===Q.subject&&(v=v.linked,v!==void 0&&(this.set("data.linked",v),this.notifyPath("data.linked"),_.Y("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(v)))}};
jv.prototype.setPlayerAccountLinkState=function(v){var Q=new OHR;D_R(Q,C9x(new Gap,v));var V=_.aJ();V&&V.getPlayerPromise().then(function(E){E.setAccountLinkState(_.Sq(Q.JSC$12398_serializeBinary(),4));E.updateAccountLinkingConfig(v)})};
jv.prototype.handleShowAccountLinkDialog=function(){var v=this.get("button.buttonRenderer.command");v&&_.bI([v],this.hostElement)};
_.hr.Object.defineProperties(jv.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.W([_.M([_.SI.YtActionHandlerBehavior]),_.X("design:type",Object)],jv.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jv.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],jv.prototype,"overrides",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jv.prototype,"forceModernIconButton",void 0);_.W([_.q({value:"bottom"}),_.X("design:type",String)],jv.prototype,"buttonTooltipPosition",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],jv.prototype,"forceIconButton",void 0);_.W([_.q(),_.X("design:type",Boolean)],jv.prototype,"disableTextTransform",void 0);
_.W([_.O("data","data.linked","data.isWarning"),_.X("design:type",Object),_.X("design:paramtypes",[])],jv.prototype,"button",null);_.W([_.J({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],jv);
_.B(jv,"ytd-account-link-button-renderer",function(){if(NdA!==void 0)return NdA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return NdA=v},{mode:1});var xHQ;var BdZ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Wk=function(){return _.z.apply(this,arguments)||this};
_.f(Wk,_.z);Wk.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Wk.prototype.updateButtonActiveState=function(){var v=this,Q=!!BdZ.find(function(V){return v.currentState===V});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.Y("enable_web_delhi_icons")&&(Q=!1);this.button&&(this.button.isPressed=Q)};
_.hr.Object.defineProperties(Wk.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.playlistLoopStateEntity)==null?void 0:v.state)||((Q=this.data)==null?void 0:Q.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var v=void 0,Q;if(this.currentState&&((Q=this.data)==null?0:Q.states)){Q=_.L(this.data.states);for(var V=Q.next();!V.done;V=Q.next()){V=_.y(V.value,_.OVx);var E=void 0;if(((E=V)==null?void 0:E.state)===this.currentState){v=V;break}}}return v}}});
Wk.prototype.updateButtonActiveState=Wk.prototype.updateButtonActiveState;_.W([_.M(_.QU),_.X("design:type",Object)],Wk.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.X4.playlistLoopStateEntitySelector}),_.X("design:type",Object)],Wk.prototype,"playlistLoopStateEntity",void 0);_.W([_.q(),_.X("design:type",Object)],Wk.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],Wk.prototype,"forceIconOnly",void 0);_.W([_.Z7("ytd-button-renderer"),_.X("design:type",_.ym)],Wk.prototype,"button",void 0);
_.W([_.O("data","playlistLoopStateEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Wk.prototype,"currentState",null);_.W([_.ph("currentButtonStateRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wk.prototype,"updateButtonActiveState",null);_.W([_.O("currentState"),_.X("design:type",Object),_.X("design:paramtypes",[])],Wk.prototype,"currentButtonStateRenderer",null);
_.W([_.J({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Wk);
_.B(Wk,"ytd-playlist-loop-button-renderer",function(){if(xHQ!==void 0)return xHQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return xHQ=v},
{mode:1});var gZV;var spp=_.Lt("DOWNLOAD",{},"Download"),uRV=_.Lt("DOWNLOADING",{},"Downloading"),jpS=_.Lt("DOWNLOADED",{},"Downloaded"),WB8=_.Lt("RETRY",{},"Retry"),ou=function(){var v=_.z.apply(this,arguments)||this;v.forceIconButton=!1;v.forceIconOnly=!1;v.overrides=!1;v.buttonTooltipPosition=!1;v.styleActionButton=!1;v.disableTextTransform=!1;v.downloadProgress=0;v.isDownloadComplete=!1;v.isHidden=!0;v.transferState="TRANSFER_STATE_UNKNOWN";v.isVideoDeletedByUser=!1;v.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return v};
_.f(ou,_.z);_.K=ou.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.dataChanged=function(){var v;(v=this.data)!=null&&v.text||(v=_.RF(_.oF().getState(),this.videoId),this.updateButtonState(v))};
_.K.computeVideoId=function(v){return v};
_.K.computePlayerStateEntityKey=function(v){return v};
_.K.showHideButton=function(){this.updateButtonVisibility()};
_.K.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var v;((v=this.playerStateEntity)==null?void 0:v.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.K.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.K.updateButtonState=function(v){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==uRV||!_.d8(v))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(v){case "TRANSFER_STATE_UNKNOWN":v=spp;var Q="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":v=WB8;Q="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":v=jpS;Q="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":v=
uRV;Q="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":v=WB8;Q="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;default:v=spp,Q="OFFLINE_DOWNLOAD",V="ACTION_ADD"}this.isVideoDeletedByUser&&(v=spp,Q="OFFLINE_DOWNLOAD",V="ACTION_ADD");var E=Object.assign({},this.data);E.text=_.u3(v);E.tooltip=v;E.icon={iconType:Q};E.size="SIZE_DEFAULT";E.style="STYLE_DEFAULT";_.y(E.command,_.L4)&&(_.y(E.command,_.L4).action=V);this.set("data",E)}};
_.K.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var v="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?v="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?v="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?v="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?v="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?v="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(v="OFFLINE_PIN",this.isDownloadComplete=!0);var Q;v!==((Q=this.data.icon)==null?void 0:Q.iconType)&&(Q=Object.assign({},this.data),Q.text=_.u3(uRV),Q.tooltip=uRV,Q.icon={iconType:v},_.y(Q.command,_.L4)&&(_.y(Q.command,_.L4).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Q))}};
ou.prototype.updateProgress=ou.prototype.updateProgress;ou.prototype.onTransferStateChanged=ou.prototype.onTransferStateChanged;ou.prototype.showHideButton=ou.prototype.showHideButton;ou.prototype.dataChanged=ou.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ou.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ou.prototype,"forceIconButton",void 0);
_.W([_.q(),_.X("design:type",Object)],ou.prototype,"forceIconOnly",void 0);_.W([_.q(),_.X("design:type",Object)],ou.prototype,"overrides",void 0);_.W([_.q(),_.X("design:type",Object)],ou.prototype,"buttonTooltipPosition",void 0);_.W([_.q(),_.X("design:type",Object)],ou.prototype,"styleActionButton",void 0);_.W([_.q(),_.X("design:type",Object)],ou.prototype,"disableTextTransform",void 0);
_.W([_.q({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.X("design:type",String)],ou.prototype,"videoId",void 0);_.W([_.q({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.X("design:type",String)],ou.prototype,"playerStateEntityKey",void 0);_.W([_.q(),_.X("design:type",Object)],ou.prototype,"data",void 0);_.W([_.q({selector:l3,selectorArgs:["videoId"]}),_.X("design:type",Object)],ou.prototype,"downloadProgress",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ou.prototype,"isDownloadComplete",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ou.prototype,"isHidden",void 0);_.W([_.q({selector:_.RF,selectorArgs:["videoId"]}),_.X("design:type",String)],ou.prototype,"transferState",void 0);_.W([_.q({selector:_.vXo,selectorArgs:["videoId"]}),_.X("design:type",Object)],ou.prototype,"isVideoDeletedByUser",void 0);
_.W([_.q({selector:rD9,selectorArgs:["videoId"]}),_.X("design:type",Object)],ou.prototype,"offlineabilityState",void 0);_.W([_.q({selector:_.VZ,selectorArgs:["playerStateEntityKey"]}),_.X("design:type",Object)],ou.prototype,"playerStateEntity",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],ou.prototype,"showTooltips",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],ou.prototype,"sendCommandWhenDisabled",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],ou.prototype,"disabled",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ou.prototype,"dataChanged",null);_.W([_.wg("offlineabilityState","playerStateEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ou.prototype,"showHideButton",null);
_.W([_.wg("transferState","isVideoDeletedByUser"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ou.prototype,"onTransferStateChanged",null);_.W([_.wg("downloadProgress"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ou.prototype,"updateProgress",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],ou);
_.B(ou,"ytd-download-button-renderer",function(){if(gZV!==void 0)return gZV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return gZV=v},{mode:2});var oZa;var XKa,a$Z=function(){if(XKa!==void 0)return XKa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return XKa=v};var rOa=_.Y("web_button_rework")&&_.mX("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),$HZ=_.T_("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,XO=function(){var v=_.z.apply(this,arguments)||this;v.isPressed=!1;v.forceIconButton=!1;v.forceIconOnly=!1;v.forceModernIconButton=!1;v.alignByText=!1;v.isShorts=!1;v.animatedText=!1;v.shouldAnimate=!1;v.JSC$14704_browserSupportsAnimation=_.Y("web_supports_animations_api");v.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};v.onTap=function(){var Q;if((Q=v.data)==null||!Q.defaultNavigationEndpoint){var V;Q=!((V=v.data)==null?0:V.isToggled);var E;if((E=v.data)==null||!E.preventAutoToggle){v.shouldAnimate=!1;v.disableTextUpdateJobId&&_.XT.cancelJob(v.disableTextUpdateJobId);v.disableTextUpdateJobId=_.XT.addLowPriorityJob(function(){v.disableTextUpdateJobId=void 0},$HZ);
var b;v.set("data.isToggled",!((b=v.data)==null?0:b.isToggled));V=v.getInnertubeIcon();E={toggled:Q,actions:{}};V&&(E.actions[V.toLowerCase()]=Q);_.Hj(v.hostElement,"yt-toggle-button",E)}}};
return v};
_.f(XO,_.z);_.K=XO.prototype;_.K.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.XT.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.toggle=function(v){var Q;this.set("data.isToggled",v!==void 0?v:!((Q=this.data)==null?0:Q.isToggled))};
_.K.handleUpdateToggleButtonStateCommand=function(v){if(this.data){v=_.y(v,kIZ);var Q,V,E,b=(Q=this.data)==null?void 0:(V=Q.toggleButtonSupportedData)==null?void 0:(E=V.toggleButtonIdData)==null?void 0:E.id;b&&v&&b===(v==null?void 0:v.buttonId)&&this.set("data.isToggled",v.toggled)}};
_.K.handleUpdateToggleButtonTextAction=function(v){if(this.data){v=_.y(v,gHZ);var Q,V,E,b=(Q=this.data)==null?void 0:(V=Q.toggleButtonSupportedData)==null?void 0:(E=V.toggleButtonIdData)==null?void 0:E.id;b&&v&&b===(v==null?void 0:v.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=v.defaultNumericalValue,this.set("data.defaultText",v.defaultText),this.set("data.toggledText",v.toggledText),this.shouldAnimate=!1)}};
_.K.getInnertubeIcon=function(){var v=this.data;if(v){var Q,V,E=((Q=v.defaultIcon)==null?0:Q.iconType)?(V=v.defaultIcon)==null?void 0:V.iconType:null,b,F;Q=((b=v.toggledIcon)==null?0:b.iconType)?(F=v.toggledIcon)==null?void 0:F.iconType:E;return v.isToggled?Q:E}};
_.K.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.hr.Object.defineProperties(XO.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14704_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var Q=v.renderer;var V=v.element;var E=v.toggled;var b=v.onTapCallback;var F=v.commandClientArgs;var t=v.overrides;var p=v.forceIcon;var Z=v.forceModernIconButton;var d=v.forceDisabled;var w=v.useAnimatedText;var A=v.animatedTextProps;v=SNb(Q,E);p=!Q.defaultIcon||!p&&Q.defaultText?Q.defaultIcon?"leading":void 0:Z?"icon-only":"icon-only-40";p==="icon-only-40"&&(v.type="text");var k;Z=Object;var T=Z.assign,c;a:switch((c=
Q.style)==null?void 0:c.styleType){case "STYLE_COMPACT_GRAY":c={size:"S"};break a;default:c={size:"M"}}var C=!!E;var R=(R=E&&Q.toggledText||Q.defaultText)?_.cg(R):void 0;w?(w=_.j0(E&&Q.toggledText||Q.defaultText))&&A&&!isNaN(Number(A.numberValue))?(A.numberText=w,E&&(A.numberValue+=1),w=A):w=void 0:w=void 0;var l,S,a,g;var u=(A=((S=E?Q.toggledAccessibilityData||((u=Q.toggledText)==null?void 0:u.accessibility):Q.accessibilityData||((l=Q.defaultText)==null?void 0:l.accessibility))==null?void 0:(a=S.accessibilityData)==
null?void 0:a.label)||((g=Q.accessibility)==null?void 0:g.label))?A:_.j0(E&&Q.toggledText||Q.defaultText);d=d===void 0?Q.isDisabled:d;V=qN9(Q,E,b,V,F);E=lNb(Q,E);E!=null&&E.length?(E=_.DM({innertubeCommand:T19(E),forceNewState:!0}),E=Rd(E)?E:void 0):E=void 0;Q=T.call(Z,{},v,c,{iconPosition:p},t,{focused:!1,toggled:C,toggleable:!0,formattedButtonText:R,animatedTextProps:w,accessibilityLabel:u,disabled:d,onTap:V,aTagConfig:E},WaB((k=Q.colorData)==null?void 0:k.basicColorPaletteData));Q.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(Q.type="filled");return Q}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var v=this.getInnertubeIcon();if(v)return _.VK(v)}}});
XO.prototype.resetAnimation=XO.prototype.resetAnimation;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],XO.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],XO.prototype,"isPressed",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"forceIconButton",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"forceIconOnly",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"forceModernIconButton",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"alignByText",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"overrides",void 0);
_.W([_.q(),_.X("design:type",Boolean)],XO.prototype,"disabled",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"isShorts",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"buttonTooltipPosition",void 0);_.W([_.q(),_.X("design:type",Object)],XO.prototype,"animatedText",void 0);_.W([_.q(),_.X("design:type",String)],XO.prototype,"textNumberValue",void 0);_.W([_.q({computed:"computeTooltip(data, data.isToggled)"}),_.X("design:type",Object)],XO.prototype,"tooltip",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],XO.prototype,"resetAnimation",null);_.W([_.O("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.X("design:type",Object),_.X("design:paramtypes",[])],XO.prototype,"computedButtonShape",null);_.W([_.O("data.*"),_.X("design:type",Object),_.X("design:paramtypes",[])],XO.prototype,"computedIcon",null);
_.W([_.J({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],XO);rOa&&_.B(XO,"ytd-toggle-button-renderer",a$Z,{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var I$R=_.x(function(v){function Q(d){var w;return _.e(function(A){if(A.nextAddress==1)return(w=!Jlh(d,p())||!p().enabled)?A.jumpTo(2):A.yield(sG3(),3);A.nextAddress!=2&&(w=A.yieldResult);if(w)return A.return();V();setTimeout(function(){t(!1)},1500);
_.q1(A)})}
function V(){setTimeout(function(){t(!0);var d;(d=E.lottieEl)==null||d.goToAndPlay(0)},150)}
var E=_.K4(),b=_.L(_.Ge(!1,void 0,"UfUosc")),F=b.next().value,t=b.next().value,p=_.Wn(v.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.jg(function(){var d,w;((d=v.settings)==null?void 0:(w=d.call(v))==null?void 0:w.uniqueId)==="this is not intended behavior"&&_.Iy(new _.xd("Smartimation Settings is undefined"))});
_.uH(function(){p().experimentEnabled&&(p().enabled?Na0(Q):(t(!1),x9o(Q)),_.j_(function(){x9o(Q)}))},"IHhVmc");
_.uH(function(){p().timings.join("");p().experimentEnabled&&(Bam(p()),_.j_(function(){gor(p())}))},"fsfhOe");
var Z=_.Rr(function(){var d=E,w=p().uniqueId+"-border",A,k;var T="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((k=(A=_.ht().resolve(_.d$(_.JR)))==null?void 0:A())!=null&&k?"dark":"light")+"_v2.json";return{animationRef:d,animationConfig:{name:w,autoplay:!1,loop:!1,path:T}}},void 0,"UWvUGe");
b={};return _.P("yt-smartimation",{class:_.QZ(v.className,"smartimation",(b["smartimation--experiment-enabled"]=function(){return p().experimentEnabled},b["smartimation--active-border"]=F,b["smartimation--enable-masking"]=uqE(),b))},_.P(_.h,{cond:function(){return p().experimentEnabled},
then:function(){return _.P("div",{class:"smartimation__border"},_.P(_.z9,{className:"smartimation__border-gradient",data:Z,animationName:function(){return Z().animationConfig.name}}))}}),_.P("div",{class:"smartimation__content"},v.children))},"ha");
I$R.idomCompat=!0;_.ad(I$R,"yt-smartimation",{props:{className:_.pJ,settings:_.pJ}});var au=function(){var v=_.z.apply(this,arguments)||this;v.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};v.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};v.shouldEnableSmartimation=!1;return v};
_.f(au,_.z);au.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
au.prototype.onDataChanged=function(){var v,Q;this.shouldEnableSmartimation=(((v=this.data)==null?void 0:(Q=v.timedAnimationData)==null?void 0:Q.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
au.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var v=_.y(this.data.likeButton,_.i9),Q=_.y(this.data.dislikeButton,_.i9);return!!((v==null?0:v.isToggled)||(Q==null?0:Q.isToggled))};
au.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]]"}}}}}};
_.hr.Object.defineProperties(au.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=((v=this.data)==null?void 0:(Q=v.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:this.shouldEnableSmartimation,experimentEnabled:V.length>0}}}});
au.prototype.onDataChanged=au.prototype.onDataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],au.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],au.prototype,"likeButtonOverride",void 0);_.W([_.q(),_.X("design:type",Object)],au.prototype,"dislikeButtonOverride",void 0);
_.W([_.O("shouldEnableSmartimation"),_.X("design:type",Object),_.X("design:paramtypes",[])],au.prototype,"smartimationSettings",null);_.W([_.ph("data"),_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],au.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],au);
_.B(au,"ytd-segmented-like-dislike-button-renderer",function(){if(oZa!==void 0)return oZa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return oZa=v},{mode:1});var HXa;var mHX;(mHX=document.body)==null||mHX.setAttribute("rounded-container","");var UHQ={};UHQ.YtToggleButtonBehavior=[_.SI.YtActionHandlerBehavior,sA.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var v=this.data.isToggled;if(!this.isModal_(v)){if(!this.data.preventAutoToggle){this.toggle();var Q={toggled:this.data.isToggled,actions:{}};Q.actions[this.buttonIcon]=this.data.isToggled;_.Hj(this.hostElement,"yt-toggle-button",Q)}Q=this.data.defaultServiceEndpoint||null;var V=this.data.toggledServiceEndpoint||null;if(Q&&V||Q&&this.data.preventAutoToggle)v=v?V:Q,Q=this.disableCommandHandlerOverride,_.Y("killswitch_toggle_button_behavior_resolve_command")||Q?_.vp(this.hostElement,
[v]):_.FL(v,this.hostElement),_.Hj(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:v})}},
stateChanged_:function(){var v=this.data;if(v){var Q=v.isToggled;this._setEndpoint(this.computeEndpoint_(v));this._setServiceEndpoint(this.computeServiceEndpoint_(v));this._setButtonIcon(this.computeButtonIcon_(v,Q));this._setButtonText(this.computeButtonText_(v,Q));this._setButtonAccessibility(this.computeAccessibility_(v,Q));this._setButtonTooltip(this.computeTooltip_(v,Q));this._setButtonClass(this.computeButtonClass_(v,Q));this._setIconPositionType(this.computeIconPositionType_(v));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=Q):this.elements_.button.setAttribute("aria-pressed",Q));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=Q)}},
shouldSetIconActiveState_:function(){return _.Y("kevlar_system_icons")},
toggle:function(v){this.set("data.isToggled",v!==void 0?v:!this.data.isToggled);_.Y("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(v){if(v){var Q,V;return!!((Q=this.data)==null?0:(V=Q.toggledServiceEndpoint)==null?0:V.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(v){return v&&v.defaultNavigationEndpoint||null},
computeButtonIcon_:function(v,Q){var V=v&&v.defaultIcon?_.VK(v.defaultIcon.iconType):null;v=v&&v.toggledIcon?_.VK(v.toggledIcon.iconType):V;return Q?v:V},
handleUpdateToggleButtonStateCommand_:function(v){v=v.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==v.buttonId&&this.toggle(v.toggled)},
computeButtonText_:function(v,Q){return v?Q&&v.toggledText||v.defaultText||null:null},
computeAccessibility_:function(v,Q){return v?(Q?this.get("toggledAccessibilityData.accessibilityData",v):this.get("accessibilityData.accessibilityData",v))||v.accessibility||null:null},
computeTooltip_:function(v,Q){return v?Q&&v.toggledTooltip||v.defaultTooltip||null:null},
computeButtonClass_:function(v,Q){if(!v)return"";var V="",E=v.toggledStyle||v.style;if(Q=Q?E:v.style){Q.styleType&&(Q=Q.styleType);try{V+=Q.toLowerCase().replace(/_/g,"-")+" "}catch(b){_.Hx(b,Q,typeof Q),_.Iy(b)}}if(v=v.size){v.sizeType&&(v=v.sizeType);try{V+=v.toLowerCase().replace(/_/g,"-")+" "}catch(b){_.Hx(b,v,typeof v),_.Iy(b)}}return V.trim()},
computeIconPositionType_:function(v){return v&&v.iconPosition||null},
computeServiceEndpoint_:function(v){var Q=v&&v.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Q?Q:V&&v.command?v.command:null},
handleUpdateToggleButtonTextAction_:function(v){v=v.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==v.buttonId&&(this.set("data.defaultText",v.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",v.toggledText),this.notifyPath("data.toggledText"))}}];_.yZ("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var vgR=_.Y("web_button_rework")&&_.mX("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),r4=function(){var v=_.z.apply(this,arguments)||this;v.systemIcons=_.Y("kevlar_system_icons");v.roundedContainer=!0;return v};
_.f(r4,_.z);r4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
r4.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var v=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var Q={toggled:!!this.data.isToggled,actions:{}};Q.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var V,E;Q.actions.playlistId=(V=this.data.defaultServiceEndpoint)==null?void 0:(E=V.playlistEditEndpoint)==null?void 0:E.playlistId;_.Hj(this.hostElement,"yt-toggle-button",Q)}(v=v?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(v)}};
r4.prototype.onYtNavigate=function(v){var Q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);Q&&(v.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Q))};
_.hr.Object.defineProperties(r4,{template:{configurable:!0,enumerable:!0,get:function(){if(HXa===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);HXa=v}v=HXa;return v}}});
r4.prototype.onYtNavigate=r4.prototype.onYtNavigate;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],r4.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],r4.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(UHQ.YtToggleButtonBehavior),_.X("design:type",Object)],r4.prototype,"ytToggleButtonBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],r4.prototype,"data",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],r4.prototype,"showTooltips",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r4.prototype,"systemIcons",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r4.prototype,"roundedContainer",void 0);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],r4.prototype,"onYtNavigate",null);
_.W([_.J({is:"ytd-toggle-button-renderer",disableElementRegistration:vgR})],r4);var QPA,VYx;_.$2=new _.KB("PANEL_CONTROLLER_TOKEN");_.Iu=new _.KB("SHEET_CONTROLLER_TOKEN");_.Hk=new _.KB("DIALOG_CONTROLLER_TOKEN");QPA=new _.KB("DIALOG_CONTAINER_TOKEN");VYx=new _.KB("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.mO=new _.KB("PERSISTENT_PANEL_CONTROLLER_TOKEN");var H3h=_.Lt("DOWNLOAD",{},"Download"),m9b=_.Lt("DOWNLOADING",{},"Downloading"),U9S=_.Lt("DOWNLOADED",{},"Downloaded"),vT9=_.Lt("RETRY",{},"Retry");var Egq=_.x(function(v){var Q=FqT,V=function(){return""},E=Q6S(v.data),b=VWb(v.data),F=ETo(v.data),t=beG(v.data);
Q=function(){var p=v.data(),Z=$9o(p,E(),b(),F(),t()),d=!!p.videoId,w=Z.text;return{title:d?w:void 0,tooltip:d?void 0:w,accessibilityText:w,onTap:Z.onTap,iconName:Z.iconType,style:p.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:Z.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:p.buttonSize}};
V={};V=_.QZ("ytDownloadButtonViewModelHost",(V.ytDownloadButtonViewModelIsHidden=function(){var p=v.data(),Z=t();return p.playlistId||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},V));
return _.P("download-button-view-model",{class:V},_.P(_.D6,{data:Q}))},"ia");
Egq.idomCompat=!0;var dOo=new _.KB("SUBMIT_API_SERVICE_TOKEN");var eA9,ZeB,hAm={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var q6b=new _.KB("RENDERER_LOGGER_TOKEN");var DOm=new _.KB("RENDERER_STAMPER_OPTIONS_TOKEN");var AUQ;_.Zz=new Axp;AUQ=new Map;var RAS="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),lFo=["notificationTextRenderer","notificationMultiActionRenderer"],
nTB="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),Oem=kbE(function(v){return _.or(v==null?void 0:v.targetId)}).useUpdatableData;var MWB=0;_.Pw.debugName="EjJbCe";var bRR=_.x(function(v){var Q=v.data;v=v.className;_.uk(function(){Q().formId||_.ro(Error("Ch"))});
var V=_.p1m(function(){return Q().formId},function(){return Q().beforeSubmitCommand},function(){return Q().afterSubmitCommand}),E=V.submitForm,b=V.isValid,F=V.isSubmitting,t=function(){return{state:Q().isDisabled||!b()||F()?"disabled":"active"}};
return _.P("yt-submit-button-view-model",{class:_.QZ("ytSubmitButtonViewModelHost",v)},_.P(_.Pw,{data:function(){return Q().button}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data,
buttonOverrides:t,onClick:E})}}))},"la");var K8R=_.x(function(v){var Q=v.backgroundLottieRef;var V=v.foregroundLottieRef;var E=v.children;var b=v.wrapperClass;var F=v.disableAnimation;v=function(){return(_.Y("web_animated_actions")||_.Y("web_animated_actions_v2"))&&!(F==null?0:F())};
return _.P("yt-animated-action",{class:_.QZ("ytAnimatedActionHost",b)},_.P("div",{class:"ytAnimatedActionContentWithBackground"},_.P(_.h,{cond:v,then:function(){return _.P(F8p,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:Q==null?void 0:Q(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(S6Z()?"dark":"light")+"_v5.json"}}}})}}),E),_.P(_.h,{cond:v,
then:function(){return _.P(F8p,{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_"+(S6Z()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
K8R.idomCompat=!0;var F8p=_.x(function(v){var Q=v.wrapperClass;var V=v.lottieClass;var E=v.lottiePlayerProps;return _.P("div",{class:_.QZ("ytAnimatedActionLottie",Q),"aria-hidden":"true"},_.P(_.z9,{className:V,data:E,animationName:function(){return E().animationConfig.name}}))},"na");var zAQ={isOpen:!1};var NjE={isAllowed:!1};var BjZ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var s6Q={isOpen:!1};var j6b={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var iRN={response:void 0};var oTo=function(v,Q){v=v===void 0?iRN:v;switch(Q.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},v,{response:Q.payload});default:return v}};var L8a={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var X1m=function(v,Q){v=v===void 0?L8a:v;switch(Q.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},v,{nextDisabled:Q.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},v,{nextCommand:Q.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},v,{footerSubmissionData:Q.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},v,{isImpersonationValid:Q.payload});default:return v}};var tYS={reportFormData:void 0,reportDetailsFormData:void 0};var aF0=function(v,Q){v=v===void 0?tYS:v;switch(Q.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},v,{reportFormData:Q.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},v,{reportDetailsFormData:Q.payload});default:return v}};var pSA=void 0;_.Y("mweb_enable_redux_store_on_demand")||(pSA=new WB(rUb()));var Ur=_.Y("enable_web_delhi_icons");var exx=_.x(function(v){v=_.o1(v,{themeOverride:void 0,animationRef:{}});var Q=v.animatedIconType,V=v.active,E=v.themeOverride,b=v.animationRef;v=v.staticIconFn;var F=_.L(_.Ge(void 0,void 0,"l48agc")),t=F.next().value,p=F.next().value,Z=function(){a:{var R=Q();var l=E==null?void 0:E();var S;l=(l==null?void 0:l.useDarkTheme)||((S=_.ht().resolve(_.d$(_.JR)))==null?void 0:S());switch(R){case "LIKE":pSA||(pSA=new WB(rUb()));R=(R=Y4h(pSA.getState()))&&R.animationLightUrl&&R.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:l?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:l?R.animationDarkUrl:R.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(R){l=R;break a}l="animated_like_icon_"+(l?"dark":"light")+"_"+(Ur?"v5":"v4");l={lottiePlayerProps:{animationConfig:{name:l,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+l+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Ur?" animated-like-icon-delhi":"")}}},totalFrames:Ur?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":l={lottiePlayerProps:{animationConfig:{name:l?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(l?"dark":"light")+(Ur?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Ur?" animated-subscribe-icon-delhi":"")}}},totalFrames:Ur?120:79,lazyLoad:!1};break a}l=
void 0}return l},d=function(){var R,l;
return(l=(R=Z())==null?void 0:R.lottiePlayerProps.animationConfig.name)!=null?l:""},w=function(){if(Z()){var R=Z().lottiePlayerProps.animationConfig.path;
return As.get(R)||t()}};
F=_.L(_.Ge(!1,void 0,"sDrGId"));var A=F.next().value;F=F.next().value;var k=IFB(F),T=function(){var R=Z(),l,S,a;return(a=R==null?void 0:(l=R.lottiePlayerProps.animationConfig)==null?void 0:(S=l.rendererSettings)==null?void 0:S.className)!=null?a:""},c=void 0,C=void 0;
_.uH(function(){var R=Z(),l=d(),S=w(),a=A(),g=V();if(R&&(C!==l&&(C=l,c=g,l=b(),k.animationConfig=R.lottiePlayerProps.animationConfig,k.animationRef=l,S&&(k.animationConfig.animationData=S,k.animationConfig.path=void 0),l=R.lottiePlayerProps.animationConfig.path,!As.get(l)&&R.lazyLoad&&l&&$O9(l,p)),!(a||R.lazyLoad&&!S))){if(S=!b().lottieEl)g?(a=R.totalFrames,k.animationConfig.initialSegment=[a-1,a]):k.animationConfig.initialSegment=void 0;if(c!==g&&!S)if(S=b(),g){var u;(u=S.lottieEl)==null||u.playSegments([0,
R.totalFrames],!0)}else{var r;(r=S.lottieEl)==null||r.playSegments([0,1],!0)}c=g}},"RQVZ1d");
return _.P("animated-icon",{class:"ytAnimatedIconHost"},_.P(_.h,{cond:function(){var R,l;return!((R=Z())==null||!R.lottiePlayerProps.animationConfig.path||((l=Z())==null?0:l.lazyLoad)&&!w()||A())},
then:function(){return _.P(_.z9,{data:k,animationName:d,className:T,animationRef:b})},
else:v}))},"pa");_.vI=_.x(function(v){var Q=_.Ze("yt-subscribe-button-view-model"),V=_.Ze("div"),E=_.Ze("div"),b=_.K4(),F=_.K4(),t=_.K4(),p=_.p4(vZT,function(){return v.data().stateEntityStoreKey}),Z=_.p4(QpZ,function(){var mS,PN;
return(PN=(mS=v.data().notificationStateEntityStoreKeys)==null?void 0:mS.subsNotificationStateKey)!=null?PN:""}),d=function(){return!v.data().enableSubscribeButtonPostClickAnimation},w=_.L(_.Ge(0,void 0,"YtsSKb")),A=w.next().value,k=w.next().value;
w=_.L(_.Ge(0,void 0,"V6JxRe"));var T=w.next().value,c=w.next().value;w=_.L(_.Ge(!1,void 0,"JUCSZ"));var C=w.next().value,R=w.next().value;w=_.L(_.Ge(!1,void 0,"oV6jwf"));var l=w.next().value,S=w.next().value;w=_.L(_.Ge(!1,void 0,"hK1Whe"));var a=w.next().value,g=w.next().value,u;w=_.L(_.Ge(!1,void 0,"Asaolf"));var r=w.next().value,v9=w.next().value,t3=function(){S(!0);_.A2(_.XT,function(){S(!1)},1500)};
_.uH(function(){var mS=l();_.fa(function(){mS&&!d()&&p()&&dHo(b,F,t)})},"Qq6Hsf");
_.uH(function(){var mS=p();_.fa(function(){if(!d()&&mS){var PN;((PN=v.animateWidth)==null?0:PN.call(v))&&PEE(Q.value,!!mS.subscribed,A(),T());var qZ,DX;((qZ=u)==null?0:qZ.subscribed)||!mS.subscribed||mS.key!==((DX=u)==null?void 0:DX.key)||t3();u=mS}})},"hog8te");
w=_.Rr(function(){var mS,PN,qZ,DX=v.data(),Th=!((mS=p())==null||!mS.subscribed);mS=!((PN=v.isOverlay)==null||!PN.call(v));PN=C()?Q:void 0;var R8=(qZ=Z())==null?void 0:qZ.state;qZ=r();ZXr(DX,R8);return UO3({model:DX,subscribed:Th,isOverlay:mS,element:PN,notificationState:R8,disableTextEllipsis:!0,focused:qZ})},void 0,"hc1PRd");
var h3=function(){var mS;if(!d()&&((mS=v.animateWidth)==null?0:mS.call(v))&&(V==null?0:V.value)&&(E==null?0:E.value)&&!a()){mS=p();var PN=_.L((mS==null?0:mS.subscribed)?[V,E]:[E,V]),qZ=PN.next().value;PN=PN.next().value;qZ=Math.ceil(qZ.value.getBoundingClientRect().width);PN=Math.ceil(PN.value.getBoundingClientRect().width);k(qZ);c(PN);PEE(Q.value,!(mS==null||!mS.subscribed),qZ,PN);g(!0)}},OB=_.EP(function(mS){h3();
var PN=p();PN&&(mS.detail.endpoint.subscribeEndpoint||mS.detail.endpoint.unsubscribeEndpoint)&&tlt(Q.value,!PN.subscribed,PN)}),kQ=function(){var mS=_.ht().resolve(_.d$(_.Yc));
mS&&v9(mS.isKeyBoardInUse())},yo=function(){v9(!1)};
_.ez("yt-player-subscribe",function(mS){var PN=p();PN&&mS===v.data().channelId&&tlt(Q.value,!0,PN)});
_.ez("yt-player-unsubscribe",function(mS){var PN=p();PN&&mS===v.data().channelId&&tlt(Q.value,!1,PN)});
_.ez("yt-update-subscribe-button-action",function(mS){mS=_.y(mS,QBV);var PN=p();PN&&mS&&mS.channelId===v.data().channelId&&tlt(Q.value,!!mS.subscribed,PN)});
_.jg(function(){Q.value&&(Q.value.addEventListener("focusin",kQ),Q.value.addEventListener("focusout",yo));var mS=_.go(_.XT,function(){h3()});
R(!0);_.j_(function(){_.XT.cancelJob(mS);Q.value&&(Q.value.removeEventListener("focusin",kQ),Q.value.removeEventListener("focusout",yo))})});
var xQ=function(){var mS,PN,qZ;if(qZ=!((mS=p())==null||!mS.subscribed))mS=!!v.data().disableNotificationBell,qZ=(PN=Z())==null?void 0:PN.state,qZ=!mS&&!!qZ;return qZ},lb=function(){var mS;
return!((mS=p())==null?0:mS.subscribed)},ep=function(){var mS,PN;
if(PN=lb()){PN=!!v.data().disableNotificationBell;var qZ=(mS=Z())==null?void 0:mS.state;PN=!PN&&!!qZ}return PN},JS={},fZ={};
return _.P("yt-subscribe-button-view-model",{class:_.QZ(v.className,"ytSubscribeButtonViewModelHost",(JS.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var mS,PN;return!((mS=p())==null||!mS.subscribed)&&((PN=v.animateWidth)==null?void 0:PN.call(v))&&l()},JS.ytSubscribeButtonViewModelHostHidden=function(){var mS;
return!((mS=p())==null?0:mS.subscribed)&&v.data().hideWhenUnsubscribed},JS)),
el:Q,"on:yt-service-request-sent":OB},_.P(K8R,{backgroundLottieRef:b,foregroundLottieRef:F,wrapperClass:_.QZ("ytSubscribeButtonViewModelAnimatedActionWrapper",(fZ.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var mS;return((mS=v.animateWidth)==null?void 0:mS.call(v))&&l()},fZ.ytSubscribeButtonViewModelStaticWidth=function(){var mS;
return!((mS=v.animateWidth)==null?0:mS.call(v))},fZ)),
disableAnimation:d},_.P("div",{el:V,class:"ytSubscribeButtonViewModelContainer"},_.P(_.OA,{data:w,icon:function(){return _.P(_.h,{cond:xQ,then:function(){var mS=function(){var PN;return LBZ((PN=Z())==null?void 0:PN.state)};
return _.P(_.h,{cond:function(){return d()||mS()!=="NOTIFICATIONS_NONE"},
then:function(){return _.P(_.L_,{icon:mS})},
else:function(){return _.P(exx,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:t})}})}})},
secondaryIconName:function(){return xQ()?"EXPAND":void 0}}))),_.P("div",{el:E,
class:"ytSubscribeButtonViewModelInvisible"},_.P(_.h,{cond:function(){var mS;return((mS=v.animateWidth)==null?void 0:mS.call(v))&&!d()&&!a()},
then:function(){return _.P(_.OA,{data:_.Rr(function(){var mS;return UO3({model:v.data(),subscribed:lb(),isOverlay:!((mS=v.isOverlay)==null||!mS.call(v)),element:Q,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var mS;return ep()?LBZ((mS=Z())==null?void 0:mS.state):void 0},
secondaryIconName:function(){return ep()?"EXPAND":void 0}})}})))},"sa");
_.vI.idomCompat=!0;var ZRx=_.x(function(v){var Q=v.data;var V=_.p4(vZT,function(){return Q().subscriptionStateEntityKey});
return _.P(_.h,{cond:function(){var E=Q(),b=V();return!E.hideWhenUnsubscribed||(b==null?0:b.subscribed)?_.y(Q().button,_.pH):void 0},
then:function(E){return _.P("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.P(_.D6,{data:E,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
ZRx.idomCompat=!0;var Pmp,Qq;Pmp=_.x(function(v){return _.P(_.Pw,{data:function(){return v.actionRow().actions}},{buttonViewModel:function(Q){var V=Q.data;
return _.P(Qq,{isRow:v.isRow,isIconOnlyButton:function(){return ho0(V())},
useIntrinsicWidth:v.useIntrinsicWidth},_.P(_.D6,{data:V}))},
subscribeButtonViewModel:function(Q){return _.P(Qq,{isRow:v.isRow},_.P(_.vI,{data:Q.data,isOverlay:!1,animateWidth:function(){return!v.isRow()}}))},
downloadButtonViewModel:function(Q){var V=Q.data;return _.P(Qq,{isRow:v.isRow,isIconOnlyButton:function(){return!!V().playlistId}},_.P(Egq,{data:V}))},
submitButtonViewModel:function(Q){var V=Q.data;return _.P(Qq,{isRow:v.isRow,isIconOnlyButton:function(){var E=V();return ho0(_.y(E==null?void 0:E.button,_.pH))}},_.P(bRR,{data:V}))},
toggleButtonViewModel:function(Q){var V=Q.data;return _.P(Qq,{isRow:v.isRow,isIconOnlyButton:function(){var E=V();return ho0(_.y(E.isToggled?E.toggledButtonViewModel:E.defaultButtonViewModel,_.pH))}},_.P(_.a5,{data:V}))},
subscribePlusButtonViewModel:function(Q){return _.P(Qq,{isRow:v.isRow},_.P(ZRx,{data:Q.data}))}})},"ua");
Qq=_.x(function(v){var Q={};return _.P("div",{class:_.QZ("ytFlexibleActionsViewModelAction",(Q.ytFlexibleActionsViewModelActionRowAction=v.isRow,Q.ytFlexibleActionsViewModelActionIntrinsicWidth=v.useIntrinsicWidth,Q.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,Q.ytFlexibleActionsViewModelActionIconOnlyButton=v.isIconOnlyButton,Q))},v.children)},"va");
_.Vq=_.x(function(v){var Q=function(){var E;return((E=v.layout)==null?void 0:E.call(v))===1},V={};
return _.P("yt-flexible-actions-view-model",{class:_.QZ("ytFlexibleActionsViewModelHost",v.className,(V.ytFlexibleActionsViewModelInline=function(){return!Q()},V.ytFlexibleActionsViewModelScrollable=function(){return v.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},V))},_.P(_.xb,{each:function(){return v.data().actionsRows||[]}},function(E){return _.P(_.h,{cond:Q,
then:function(){return _.P("div",{class:"ytFlexibleActionsViewModelActionRow"},_.P(Pmp,{actionRow:E,isRow:Q,useIntrinsicWidth:function(){return!!v.data().respectActionIntrinsicWidth}}))},
else:function(){return _.P(Pmp,{actionRow:E,isRow:Q})}})}))},"wa");_.ad(_.Vq,"yt-flexible-actions-view-model",{props:{data:_.pJ,layout:_.pJ,justifyContentOverride:_.pJ,className:_.pJ}});_.Es=_.x(function(v){var Q=_.p4(D1,function(){var b;return(b=v.data().dislikeEntityKey)!=null?b:""}),V=_.Rr(function(){var b=Q();
return b?b.likeStatus==="DISLIKE":_.y(v.data().toggleButtonViewModel,_.Zq).isToggled},void 0,"fNr9he"),E=_.Rr(function(){return Object.assign({},_.y(v.data().toggleButtonViewModel,_.Zq),{isToggled:V()})},void 0,"AezoCc");
return _.P("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.P(_.a5,{data:E,buttonShapeOverrides:v.buttonShapeOverrideables,onToggle:function(b){var F=Q();F&&b!==(F.likeStatus==="DISLIKE")&&F.key&&_.jT(_.Gz("likeStatusEntity",F.key,{likeStatus:b?"DISLIKE":"INDIFFERENT",hadUserInteraction:b}))}}))},"xa");
_.Es.idomCompat=!0;_.bL=_.x(function(v){var Q=_.Y("web_supports_animations_api"),V=jM(function(k){var T=d();if(!k){var c,C;return{numberText:(C=T==null?void 0:(c=T.likeCountIfIndifferent)==null?void 0:c.content)!=null?C:"",numberValue:Number(T==null?void 0:T.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var R;c=(T==null?void 0:(R=T.likeCountIfIndifferent)==null?void 0:R.content)!==k.numberText;if(p()||!c)return k;var l;return{numberText:(T==null?void 0:(l=T.likeCountIfIndifferent)==null?void 0:l.content)||
"",numberValue:Number(T==null?void 0:T.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!T}}),E=jM(function(k){var T=d();
if(!k){var c,C;return{numberText:(C=T==null?void 0:(c=T.likeCountIfLiked)==null?void 0:c.content)!=null?C:"",numberValue:Number(T==null?void 0:T.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var R;c=(T==null?void 0:(R=T.likeCountIfIndifferent)==null?void 0:R.content)!==k.numberText;if(p()||!c)return k;var l;return{numberText:(T==null?void 0:(l=T.likeCountIfLiked)==null?void 0:l.content)||"",numberValue:Number(T==null?void 0:T.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!T}}),b=_.L(_.Ge(void 0,
void 0,"xYSlUe")),F=b.next().value,t=b.next().value,p=F,Z=_.p4(D1,function(){var k,T;
return(T=(k=v.data())==null?void 0:k.likeStatusEntityKey)!=null?T:""}),d=_.p4(E63,function(){var k,T;
return((k=v.likeCountEntity)==null?void 0:(T=k.call(v))==null?void 0:T.key)||""}),w=_.Rr(function(){var k;
return((k=Z())==null?void 0:k.likeStatus)==="LIKE"},void 0,"DG5Osd"),A=function(){var k;
return Q&&!((k=v.likeCountEntity)==null||!k.call(v))};
return _.P("like-button-view-model",{class:_.QZ("ytLikeButtonViewModelHost",v.className)},_.P(_.a5,{data:function(){var k=Object,T=k.assign,c;var C=_.y((c=v.data())==null?void 0:c.toggleButtonViewModel,_.Zq);return T.call(k,{},C||{},{isToggled:w()})},
buttonShapeOverrides:v.buttonShapeOverrideables,animatedTextPropsDefault:function(){return A()?V():void 0},
animatedTextPropsToggled:function(){return A()?E():void 0},
onToggle:function(k){wKo(k,Z(),p(),t)},
style:function(){var k;return((k=v.disableIconAnimation)==null?0:k.call(v))?void 0:{animateIcon:"true"}}}))},"ya");
_.bL.idomCompat=!0;var dwZ=_.x(function(v){var Q=function(){return _.y(v.data().likeButtonViewModel,_.Uv)},V=function(){var b;
return((b=Q())==null?void 0:b.likeStatusEntityKey)||""},E=_.Rr(function(){var b,F;
var t=(F=_.p4(D1,V)())!=null?F:(b=Q())==null?void 0:b.likeStatusEntity;b=v.data();var p;b=(b==null?void 0:(p=b.timedAnimationData)==null?void 0:p.animationTiming)||[];return{uniqueId:"like-dislike",timings:b,enabled:(t==null?void 0:t.likeStatus)==="INDIFFERENT"&&b.length>0,experimentEnabled:b.length>0}},void 0,"zZ3GQb");
return _.P("segmented-like-dislike-button-view-model",{class:_.QZ("ytSegmentedLikeDislikeButtonViewModelHost",v.className),"button-renderer":!0},_.P(I$R,{settings:E},_.P("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.P(_.h,{cond:Q,then:function(b){return _.P(_.bL,{data:b,likeCountEntity:function(){return v.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.Y("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.P(_.h,{cond:function(){return _.y(v.data().dislikeButtonViewModel,_.mp)},
then:function(b){return _.P(_.Es,{data:b,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
dwZ.idomCompat=!0;_.ad(dwZ,"segmented-like-dislike-button-view-model",{props:{data:_.pJ,className:_.pJ}});var hxR=_.x(function(v){var Q=v.data;var V=v.className;var E=v.setMinWidth;var b=v.forceIconOnly;var F=_.Ze("account-link-button-view-model"),t=_.p4(_.AOT,function(){var k;return(k=Q().accountLinkStatusEntityKey)!=null?k:""}),p=_.p4(_.AOT,function(){var k;
return(k=Q().accountLinkStatusSecondaryEntityKey)!=null?k:""}),Z=function(){if(!_.Y("web_account_link_secondary_killswitch")){var k,T;
return((k=t())==null?void 0:k.linked)||((T=p())==null?void 0:T.linked)}var c;return(c=t())==null?void 0:c.linked};
_.uH(function(){var k=t();if(k){var T=D_R(new OHR,C9x(new Gap,!!k.linked));_.Eu().then(function(c){c&&(c.setAccountLinkState(_.Sq(T.JSC$12398_serializeBinary(),4)),c.updateAccountLinkingConfig(!!k.linked))})}},"IvZF7");
var d=function(){return _.y(Q().toggleButtonViewModel,_.Zq)};
_.ez("yt-signal-action-show-account-link-dialog",function(){if(d()){var k=Z()?d().toggledButtonViewModel:d().defaultButtonViewModel;k=_.y(k,_.pH);var T;if((T=t())==null?0:T.isWarning){T=_.y(Q().warningButtonViewModel,_.pH);if(!T){_.V9(Error("Dh"));return}k=T}var c;(T=_.MQ((c=k)==null?void 0:c.onTap))&&_.bI([T],F.value)}else _.V9(Error("Eh"))});
var w=function(){var k=d();return Object.assign({},k,{isToggled:Z()})},A=function(){return(b==null?0:b())?{iconPosition:"icon-only"}:{}};
return _.P("account-link-button-view-model",{class:_.QZ("ytwAccountLinkButtonViewModelHost",V,function(){return(E==null?0:E())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:F,"button-renderer":!0},_.P("div",null,_.P(_.h,{cond:function(){var k;if((k=t())==null?0:k.isWarning)return(k=_.y(Q().warningButtonViewModel,_.pH))||_.V9(Error("Dh")),k},
then:function(k){return _.P(_.D6,{data:k,buttonOverrides:A})},
else:function(){return _.P(_.a5,{data:w,buttonShapeOverrides:A})}})))},"Ba");_.ad(hxR,"account-link-button-view-model",{props:{data:_.pJ,className:_.Wg,setMinWidth:_.Wg,forceIconOnly:_.Wg}});_.yZ("menuRenderer","menuRenderer","ytd-menu-renderer");
var wSp={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"}},
ANN=_.Y("web_fix_missing_action_buttons")?100:200,FW=function(){var v=_.z.apply(this,arguments)||this;v.safeArea=!_.Y("kevlar_flex_menu_safe_area_killswitch");v.tonalOverride=!1;v.threeDotSize="M";v.isOverlay=!1;v.useOverlayDark=!1;v.topLevelIconsOnly=!1;v.JSC$14837_lastWidth=0;v.maybeUpdateFlexibleMenu=function(){_.Y("web_fix_missing_action_buttons")?requestAnimationFrame(v.maybeUpdateFlexibleMenuImpl):v.maybeUpdateFlexibleMenuImpl()};
v.maybeUpdateFlexibleMenuImpl=function(){var Q;if((Q=v.data)!=null&&Q.flexibleItems){v.maybeFlushDebouncer();Q=v.hostElement.clientWidth;var V=Q>v.JSC$14837_lastWidth,E,b=((E=v.topLevelButtonsContainer)==null?void 0:E.scrollHeight)||0,F;E=((F=v.flexibleItemButtonsContainer)==null?void 0:F.scrollHeight)||0;F=v.hostElement.scrollHeight>Math.max(b,E)+8;V?(v.resetFlexibleItems(),v.JSC$14837_lastWidth=v.hostElement.clientWidth,v.maybeUpdateFlexibleMenu()):F&&(v.shrinkFlexibleMenu(),v.JSC$14837_lastWidth=
Q)}};
v.computeThreeDotButtonShape=function(){if(v.tonalOverride)return Object.assign({},{onTap:function(){v.onOverflowTap()},
iconPosition:"icon-only",style:v.isOverlay?v.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:v.threeDotSize,state:"active",accessibilityLabel:v.computeAccessibilityLabel(v.data)},v.threeDotButtonOverride)};
v.onOverflowTap=function(){if(v.data.fetchMenuCommand)_.ht().resolve(_.At).resolveCommand(v.data.fetchMenuCommand,{form:{element:v.hostElement}});else if(v.data.isDisabled&&v.data.disabledCommand)_.FL(v.data.disabledCommand,v.hostElement);else{var Q=v.createMenuRendererVe(),V={items:v.items};v.data.menuPopupAccessibility&&(V.menuPopupAccessibility=v.data.menuPopupAccessibility);v.data.footer&&(V.footer=v.data.footer);Q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:V},veData:Q}};
_.ht().resolve(_.Iu).openSheet({openPopupActionCommand:Q},v.hostElement)}};
return v};
_.f(FW,_.z);_.K=FW.prototype;_.K.updateButtonOverrides=function(){if(!_.Y("menu_renderer_label_update_upkillswitch")){var v=_.m9(this.hostElement).querySelector("yt-button-view-model");v&&(v.buttonOverrides=this.buttonOverrides)}};
_.K.computeHasItems=function(){var v;return((v=this.topLevelButtonData)==null?void 0:v.length)||this.hasFlexibleItems};
_.K.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.K.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.F6(this.hostElement,{"--ytd-menu-renderer-button-color":_.GA(this.data.iconColor)}))};
_.K.onStamperFinished=function(){this.JSC$14837_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.K.setupFlexibleMenu=function(){var v=this,Q;(Q=this.data)!=null&&Q.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.FK(this.maybeUpdateFlexibleMenu,ANN,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){v.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.K.maybeFlushDebouncer=function(){if(_.Y("web_replace_formatted_with_attributed_string")){var v;(v=this.topLevelButtons)==null||v.forEach(function(V){var E;(V=(E=V.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0])&&fno(V)});
var Q;(Q=this.flexibleItemButtons)==null||Q.forEach(function(V){var E;(V=(E=V.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0])&&fno(V)})}};
_.K.resetFlexibleItems=function(){var v;if((v=this.data)!=null&&v.flexibleItems){_.Y("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var Q;this.flexAsTopLevelButtons=(Q=this.data.flexibleItems)==null?void 0:Q.map(function(V){return _.y(V,_.iAR).topLevelButton});
_.Y("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.K.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.K.shrinkFlexibleMenu=function(){var v;(v=this.flexAsTopLevelButtons)!=null&&v.length&&(this.flexAsTopLevelButtons=[].concat(_.ui(this.flexAsTopLevelButtons.slice(0,-1))))};
_.K.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:wSp,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:wSp,events:!0}}};
_.K.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.K.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.K.detached=function(){this.icon="MORE_VERT"};
_.K.computeTopLevelButtonData=function(v){if(!v)return[];var Q;v=(Q=v==null?void 0:v.topLevelButtons)!=null?Q:[];return _.gI.unsafeClone([].concat(_.ui(v)))};
_.K.computeItems=function(v,Q){if(!v)return[];var V=[];if(Q){var E=(v.flexibleItems||[]).map(function(t){return _.y(t,_.iAR)});
E=_.L(E);for(var b=E.next();!b.done;b=E.next())b=b.value,Q.includes(b.topLevelButton)||(b=b.menuItem)&&V.push(b)}var F;v=(F=v==null?void 0:v.items)!=null?F:[];return[].concat(_.ui(V),_.ui(v))};
_.K.computeMenuActive=function(v,Q){return v||Q};
_.K.onPopupOpened=function(){this.overlayOpen=!0;_.Hj(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.K.onPopupClosed=function(){this.overlayOpen=!1;_.Hj(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.K.onPopupCanceled=function(){this.overlayOpen=!1;_.Hj(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.K.computeAccessibilityLabel=function(v){return this.get("accessibility.accessibilityData.label",v)};
_.K.isHidden=function(v,Q){return this.tonalOverride||!v?!0:v.fetchMenuCommand||v.isDisabled&&v.disabledCommand?!1:!(Q==null?0:Q.length)};
_.K.isModernOverflowHidden=function(v,Q){return this.tonalOverride&&v?v.fetchMenuCommand?!1:!(Q==null?0:Q.length):!0};
_.K.createMenuRendererVe=function(){var v=this.data.trackingParams,Q=_.Mo(),V=_.CC();return v&&Q&&V?(v=_.dE(v),V=_.Vw(7591),_.Y("combine_ve_grafts")?_.za(_.tR(),V,v):_.Np(Q,v,V),V):null};
_.hr.Object.defineProperties(FW.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.flexAsTopLevelButtons)==null||!v.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
FW.prototype.onPopupCanceled=FW.prototype.onPopupCanceled;FW.prototype.onPopupClosed=FW.prototype.onPopupClosed;FW.prototype.onPopupOpened=FW.prototype.onPopupOpened;FW.prototype.tonalOverrideChanged=FW.prototype.tonalOverrideChanged;FW.prototype.resetFlexibleItems=FW.prototype.resetFlexibleItems;FW.prototype.setupFlexibleMenu=FW.prototype.setupFlexibleMenu;FW.prototype.iconButtonColorChanged=FW.prototype.iconButtonColorChanged;FW.prototype.updateButtonOverrides=FW.prototype.updateButtonOverrides;
_.W([_.M(_.TX),_.X("design:type",Object)],FW.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#button-shape"),_.X("design:type",HTMLElement)],FW.prototype,"buttonShape",void 0);_.W([_.Z7("#button"),_.X("design:type",Object)],FW.prototype,"button",void 0);
_.W([_.q(),_.X("design:type",Object)],FW.prototype,"data",void 0);_.W([_.q({computed:"computeTopLevelButtonData(data)"}),_.X("design:type",Array)],FW.prototype,"topLevelButtonData",void 0);_.W([_.q(),_.X("design:type",Array)],FW.prototype,"flexAsTopLevelButtons",void 0);_.W([_.q({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.X("design:type",Array)],FW.prototype,"items",void 0);_.W([_.q({value:"MORE_VERT"}),_.X("design:type",String)],FW.prototype,"icon",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FW.prototype,"safeArea",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.X("design:type",Boolean)],FW.prototype,"menuActive",void 0);_.W([_.q(),_.X("design:type",Boolean)],FW.prototype,"menuFocused",void 0);_.W([_.q({value:"bottom"}),_.X("design:type",String)],FW.prototype,"buttonTooltipPosition",void 0);_.W([_.q(),_.X("design:type",Boolean)],FW.prototype,"overlayOpen",void 0);
_.W([_.q({value:!0}),_.X("design:type",Boolean)],FW.prototype,"forceIconButton",void 0);_.W([_.q(),_.X("design:type",Boolean)],FW.prototype,"styleActionButton",void 0);_.W([_.q(),_.X("design:type",Boolean)],FW.prototype,"disableTextTransformOnButtons",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FW.prototype,"tonalOverride",void 0);_.W([_.q(),_.X("design:type",Object)],FW.prototype,"threeDotSize",void 0);
_.W([_.q(),_.X("design:type",Object)],FW.prototype,"threeDotButtonOverride",void 0);_.W([_.q(),_.X("design:type",Object)],FW.prototype,"isOverlay",void 0);_.W([_.q(),_.X("design:type",Object)],FW.prototype,"useOverlayDark",void 0);_.W([_.q({computed:"computeButtonOverride(tonalOverride)"}),_.X("design:type",Object)],FW.prototype,"buttonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],FW.prototype,"hasCustomIconColor",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("flexAsTopLevelButtons"),_.X("design:type",Object),_.X("design:paramtypes",[])],FW.prototype,"hasFlexibleItems",null);_.W([_.q({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.X("design:type",Boolean)],FW.prototype,"hasItems",void 0);_.W([_.q(),_.X("design:type",Object)],FW.prototype,"topLevelIconsOnly",void 0);
_.W([_.ph("topLevelIconsOnly"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"updateButtonOverrides",null);_.W([_.O("topLevelIconsOnly"),_.X("design:type",Object),_.X("design:paramtypes",[])],FW.prototype,"buttonOverrides",null);_.W([_.Z7("#top-level-buttons-computed"),_.X("design:type",HTMLElement)],FW.prototype,"topLevelButtonsContainer",void 0);_.W([_.Pn(".top-level-buttons > *"),_.X("design:type",Array)],FW.prototype,"topLevelButtons",void 0);
_.W([_.Z7("#flexible-item-buttons"),_.X("design:type",HTMLElement)],FW.prototype,"flexibleItemButtonsContainer",void 0);_.W([_.Pn("#flexible-item-buttons > *"),_.X("design:type",Array)],FW.prototype,"flexibleItemButtons",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"iconButtonColorChanged",null);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"setupFlexibleMenu",null);_.W([_.wg("topLevelIconsOnly"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"resetFlexibleItems",null);_.W([_.ph("tonalOverride"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"tonalOverrideChanged",null);
_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"onPopupOpened",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"onPopupClosed",null);_.W([_.tM("yt-popup-canceled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FW.prototype,"onPopupCanceled",null);
_.B(FW,"ytd-menu-renderer",function(){if(JOR===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);JOR=v}v=JOR;return v},{mode:2});var kJZ;var TcS;_.KP=_.x(function(v){var Q=v.data;var V=function(){if(Q().icon)a:{var b={iconName:Q().icon};for(var F=_.ht().resolve(_.Eo),t=_.L([12,24]),p=t.next();!p.done;p=t.next()){var Z=p.value;p=Object.assign({},b,{iconStyle:"youtube_fill",iconSize:Z});Z=Object.assign({},b,{iconStyle:"youtube_outline",iconSize:Z});if(F.resolveIcon(p)){b=p;break a}if(F.resolveIcon(Z)){b=Z;break a}}b=void 0}else b=void 0;return b};
v={};var E={};return _.P("badge-shape",{class:_.QZ("yt-badge-shape",function(){return f$G(Q().type)},(v["yt-badge-shape--overlay"]=function(){return Q().isOverlay},v["yt-badge-shape--ads-include-dot"]=function(){return Q().adsIncludeDot},v["yt-badge-shape--thumbnail-badge"]=function(){a:switch(Q().type){case 17:case 18:case 19:var b=!0;
break a;default:b=!1}return b},v["yt-badge-shape--status-badge"]=function(){a:switch(Q().type){case 12:case 13:case 14:case 15:case 16:var b=!0;
break a;default:b=!1}return b},v["yt-badge-shape--no-text"]=function(){return!Q().text},v["yt-badge-shape--modern"]=function(){return Q().modern||_.Y("web_modern_badge_shape")},v)),
style:_.iP({"background-color":function(){var b;return(b=Q().customColors)==null?void 0:b.backgroundColor}}),
role:function(){return Q().accessibilityText?"img":void 0},
"aria-label":function(){return Q().accessibilityText}},_.P(_.h,{cond:function(){return Q().animation},
then:function(b){return _.P(_.z9,{className:"yt-badge-shape__icon",data:b,animationName:function(){return b().animationConfig.name||""}})}}),_.P(_.h,{cond:function(){var b;
return V()&&!((b=Q())==null?0:b.animation)},
then:function(){return _.P("div",{class:"yt-badge-shape__icon"},_.P(_.kW,{data:function(){return V()}}))}}),_.P("div",{class:_.QZ("yt-badge-shape__text",(E["yt-badge-shape__text--clip-text-overflow"]=function(){return Q().clipTextOverflow},E["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(Q().numBadgesInRow||0)>1},E))},function(){var b;
return(b=Q())==null?void 0:b.text}))},"Ca");
_.KP.idomCompat=!0;_.ad(_.KP,"badge-shape",{props:{data:_.pJ}});var iL=function(){var v=_.z.apply(this,arguments)||this;v.systemIcons=_.Y("kevlar_system_icons");v.animated=_.Y("animated_live_badge_icon");v.useBadgeShape=_.Y("web_badge_shape_defrag");return v};
_.f(iL,_.z);_.K=iL.prototype;_.K.addTooltips=function(){for(var v=_.m9(this.hostElement).querySelectorAll(".badge"),Q=0,V;V=v[Q++];){var E=this.repeatElement.itemForElement(V);V=_.m9(V);V.lastChild&&V.lastChild.is==="tp-yt-paper-tooltip"&&V.removeChild(V.lastChild);if(E=E.metadataBadgeRenderer&&E.metadataBadgeRenderer.tooltip){var b=_.wx("tp-yt-paper-tooltip");(0,_.bf)(b).textContent=E;b.setAttribute("position","top");b.setAttribute("aria-hidden","true");V.appendChild(b)}}};
_.K.badgesChanged=function(){var v=this;_.Zp().parkOrScheduleJob(function(){v.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.K.standaloneRoundedBadgeChanged=function(){var v=this.useRoundedBadge?this.useRoundedBadge:void 0;v&&(this.useRoundedBadge=v)};
_.K.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.K.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.K.computeStyle=function(v){_.Y("enable_html5_teal_ad_badge")&&v==="BADGE_STYLE_TYPE_AD"&&(v="badge-style-type-ad-alternate");_.Y("kevlar_ytb_live_badges")&&v==="BADGE_STYLE_TYPE_LIVE_NOW"&&(v="badge-style-type-live-now-alternate");return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeRole=function(v){return this.computeAriaLabel(v)?"img":"status"};
_.K.computeAriaLabel=function(v){var Q;return(v==null?void 0:(Q=v.accessibilityData)==null?void 0:Q.label)||(v==null?void 0:v.label)};
_.K.computeBadgeShape=function(v){if(v){var Q,V;var E=yO9(v.style);var b=cOB(v.style),F=v.label,t=((Q=v.accessibilityData)==null?void 0:Q.label)||v.label;a:switch(v.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":Q=!0;break a;default:Q=!1}var p=(V=v.icon)==null?void 0:V.iconType;a:switch(v.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":v=!0;break a;default:v=!1}E={type:E,brNzRatingBadgeType:b,text:F,accessibilityText:t,
isOverlay:Q,icon:p!=="PREMIUM"?p:void 0,modern:_.Y("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:v}}else E={};return E};
_.K.updateComputedBadges=function(v,Q,V){var E=this;(Q=Q?[Q]:V?[V]:void 0)?this.computedBadges=Q:this.computedBadges=v==null?void 0:v.filter(function(b){var F;if((F=b.metadataBadgeRenderer)==null?0:F.groups){F=!1;b=_.L(b.metadataBadgeRenderer.groups);for(var t=b.next();!t.done;t=b.next()){t=t.value;var p=void 0;F=F||((p=E.hiddenBadgeGroups)==null?void 0:p.includes(t))}return!F}return!0})};
_.K.useFilledIcons=function(v){return _.Y("kevlar_system_icons")&&(v==="AUDIO_BADGE"||v==="CHECK_CIRCLE_THICK"||v==="OFFICIAL_ARTIST_BADGE"||v==="SPONSORSHIP_STAR"||v==="PERSON_RADAR_FILLED"||v==="PERSON_RADAR")};
_.K.computeBadgeShapeStyle=function(v){return this.useBadgeShape?v==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||v==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":v==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.K.computeIcon=function(v){var Q,V;v=v==null?void 0:(Q=v.metadataBadgeRenderer)==null?void 0:(V=Q.icon)==null?void 0:V.iconType;if(v!=="PREMIUM"&&v)return _.VK(v)};
_.K.computeStandaloneBadge=function(v){var Q;v=v==null?void 0:(Q=v.icon)==null?void 0:Q.iconType;return v==="PREMIUM_STANDALONE"||v==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
iL.prototype.hiddenBadgeGroupsChanged=iL.prototype.hiddenBadgeGroupsChanged;iL.prototype.standaloneBadgeChanged=iL.prototype.standaloneBadgeChanged;iL.prototype.standaloneRoundedBadgeChanged=iL.prototype.standaloneRoundedBadgeChanged;iL.prototype.badgesChanged=iL.prototype.badgesChanged;_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"hidden",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],iL.prototype,"componentBehavior",void 0);
_.W([_.q(),_.X("design:type",Array)],iL.prototype,"badges",void 0);_.W([_.q(),_.X("design:type",Object)],iL.prototype,"topStandaloneBadge",void 0);_.W([_.q(),_.X("design:type",Object)],iL.prototype,"bottomStandaloneBadge",void 0);_.W([_.q(),_.X("design:type",Object)],iL.prototype,"computedBadges",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"mediumFontAdBadge",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"useRoundedBadge",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"largeFontAdBadge",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"overlayAd",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"overlayPremium",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"noDotAdBadge",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"collectionTruncate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"isThumbnailBadge",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],iL.prototype,"wrapBadges",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Number)],iL.prototype,"numBadgesInRow",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iL.prototype,"systemIcons",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iL.prototype,"animated",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iL.prototype,"useBadgeShape",void 0);_.W([_.q({value:[]}),_.X("design:type",Array)],iL.prototype,"hiddenBadgeGroups",void 0);_.W([_.Z7("#repeat"),_.X("design:type",GP)],iL.prototype,"repeatElement",void 0);_.W([_.wg("badges"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iL.prototype,"badgesChanged",null);
_.W([_.wg("useRoundedBadge"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iL.prototype,"standaloneRoundedBadgeChanged",null);_.W([_.wg("topStandaloneBadge","bottomStandaloneBadge"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iL.prototype,"standaloneBadgeChanged",null);_.W([_.wg("hiddenBadgeGroups"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iL.prototype,"hiddenBadgeGroupsChanged",null);
_.W([_.J({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],iL);
var YwZ=_.Hn()(iL,"ytd-badge-supported-renderer",function(){if(TcS===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);TcS=v}v=TcS;return v},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.mV("kevlar_poly_si_batch_j053")?1:2});var LP=function(){var v=_.z.apply(this,arguments)||this;v.iconType="STAR";v.standardizeIconSize=_.Y("kevlar_system_icons");v.mediaHoverOverlayInitialVisibility=_.Y("enable_top_landscape_image_button_command_web");v.noBottomMargin=!1;v.thumbnailObjectFit="CONTAIN";v.thumbnailFitHeight=!0;v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.f(LP,_.z);_.K=LP.prototype;_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.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"}}}};
_.K.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",LP.JSC$14849_DEFAULT_CLICK_LOCATION_BEHAVIOR,LP.JSC$14849_CLICK_LOCATION_ID_MAP))};
_.K.onTap=function(v){this.onTapOrClick(v)};
_.K.onTapOrClick=function(v){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,v,!1)};
_.K.updateMediaBackgroundImage=function(){var v=this.get("data.image.thumbnail.thumbnails");v&&(v=_.rE(v,0))&&_.F6(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+v+")"})};
_.K.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var v=0;v<this.data.impressionEndpoints.length;v++){var Q=this.data.impressionEndpoints[v];Q.clickTrackingParams&&delete Q.clickTrackingParams;_.ht().resolve(_.At).resolveCommand(Q,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var V;((V=this.data)==null?0:V.activeView)&&Or(this.activeView,this.data.activeView)}};
_.K.handleMuteAd=function(){};
_.K.attached=function(){var v=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dh(v.activeView)})};
_.K.detached=function(){_.Y("stop_av_measurement_on_detach")&&Dh(this.activeView)};
_.hr.Object.defineProperties(LP.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.titleText)return"";var Q;return _.Lt("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((Q=this.data)==null?void 0:Q.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
LP.prototype.onTap=LP.prototype.onTap;LP.prototype.dataChanged=LP.prototype.dataChanged;
LP.JSC$14849_CLICK_LOCATION_ID_MAP=_.Y("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"]]);
LP.JSC$14849_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.Y("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.Er),_.X("design:type",Object)],LP.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],LP.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],LP.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.M([_.SI.YtActionHandlerBehavior]),_.X("design:type",Object)],LP.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],LP.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],LP.prototype,"clickCommand",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],LP.prototype,"miniMode",void 0);_.W([_.q(),_.X("design:type",String)],LP.prototype,"iconType",void 0);_.W([_.O("data.titleText"),_.X("design:type",String),_.X("design:paramtypes",[])],LP.prototype,"titleAriaLabel",null);_.W([_.O("data.rating"),_.X("design:type",Object),_.X("design:paramtypes",[])],LP.prototype,"getRating",null);
_.W([_.O("data.price"),_.X("design:type",Object),_.X("design:paramtypes",[])],LP.prototype,"getPrice",null);_.W([_.O("data.thirdLine"),_.X("design:type",Object),_.X("design:paramtypes",[])],LP.prototype,"getThirdLine",null);_.W([_.O("data.fourthLine"),_.X("design:type",Object),_.X("design:paramtypes",[])],LP.prototype,"getFourthLine",null);_.W([_.O("data.fifthLine"),_.X("design:type",Object),_.X("design:paramtypes",[])],LP.prototype,"getFifthLine",null);
_.W([_.O("getRating"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"computeRatingHidden",null);_.W([_.O("getPrice"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"computePriceHidden",null);_.W([_.O("getThirdLine"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"computeThirdLineHidden",null);_.W([_.O("getFourthLine"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"computeFourthLineHidden",null);
_.W([_.O("getFifthLine"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"computeFifthLineHidden",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.energyIcon"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"hasEnergyIcon",null);_.W([_.O("computePriceHidden","computeRatingHidden"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"computeSecondaryTextHidden",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],LP.prototype,"standardizeIconSize",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],LP.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],LP.prototype,"noBottomMargin",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.layout"),_.X("design:type",String),_.X("design:paramtypes",[])],LP.prototype,"layout",null);
_.W([_.O("data.layout"),_.X("design:type",Object),_.X("design:paramtypes",[])],LP.prototype,"mediaThumbnailWidth",null);_.W([_.O("layout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],LP.prototype,"useRoundedBadge",null);_.W([_.q(),_.X("design:type",String)],LP.prototype,"thumbnailObjectFit",void 0);_.W([_.q(),_.X("design:type",Object)],LP.prototype,"thumbnailFitHeight",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],LP.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],LP.prototype,"onTap",null);_.W([_.J({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],LP);
_.B(LP,"ytd-display-ad-renderer",function(){if(kJZ!==void 0)return kJZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return kJZ=v},{mode:1});var yNp;var cNq;var fsR;var GLE=new Map;var GJZ=!1;var t$=function(){var v=_.z.apply(this,arguments)||this;v.DEFAULT_TOOLTIP_OFFSET="10";v.TOOLTIP_OFFSET_NO_BANNER="-8";v.badges=null;v.noEndpoints=!1;v.wrapText=!1;v.forceVerified=!1;v.tooltipPosition="top";v.compactStyle=!1;v.height=0;v.lineHeight=0;return v};
_.f(t$,_.z);_.K=t$.prototype;_.K.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.K.attached=function(){var v=this;this.observer=new MutationObserver(function(Q,V){v.handleResized();V.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.K.detached=function(){this.observer&&this.observer.disconnect()};
_.K.logTooltipEvent=function(){_.Y("kevlar_wiz_tooltip_event_killswitch")||GJZ||(_.CET("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),GJZ=!0)};
_.K.handleWindowResized=function(){this.handleResized()};
_.K.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")))};
_.K.onHeightChanged=function(){if(this.verified){var v=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.r7("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=v:this.textContainerEl.style.marginRight=v}};
_.K.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.r7("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.K.handleResized=function(){var v=this;this.verified&&_.XT.addLowPriorityJob(function(){v.fitBackgroundToText();var Q=getComputedStyle(v.hostElement).lineHeight;Q&&(Q=Q.match(/\d+/))&&Q.length&&(v.lineHeight=Number(Q[0]));v.height=v.lineHeight&&!v.wrapText?v.lineHeight:v.textEl.offsetHeight})};
_.K.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var v=document.createRange(),Q=_.m9(this.textEl).children;Q.length>0?v.selectNodeContents(Q[0]):v.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(v.getBoundingClientRect().width)+"px"}};
_.K.computeChannelBadgeStyle=function(v){var Q;if((v==null?0:(Q=v.runs)==null?0:Q.length)&&v.runs[0].textColor)return"--ytd-badge-icon-color:"+_.GA(v.runs[0].textColor)+";"};
_.hr.Object.defineProperties(t$.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"?_.u3(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var v=this.get("badges.0.metadataBadgeRenderer.tooltip");if(v)return v}return _.j0(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
t$.prototype.onLineHeightChanged=t$.prototype.onLineHeightChanged;t$.prototype.onHeightChanged=t$.prototype.onHeightChanged;t$.prototype.onChannelNameChanged=t$.prototype.onChannelNameChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],t$.prototype,"badges",void 0);_.W([_.q(),_.X("design:type",Object)],t$.prototype,"channelName",void 0);
_.W([_.q(),_.X("design:type",Object)],t$.prototype,"noEndpoints",void 0);_.W([_.q(),_.X("design:type",Object)],t$.prototype,"wrapText",void 0);_.W([_.q(),_.X("design:type",Object)],t$.prototype,"forceVerified",void 0);_.W([_.q(),_.X("design:type",Object)],t$.prototype,"tooltipPosition",void 0);_.W([_.q(),_.X("design:type",String)],t$.prototype,"tooltip",void 0);_.W([_.q(),_.X("design:type",Boolean)],t$.prototype,"hasChannelArt",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],t$.prototype,"compactStyle",void 0);_.W([_.Z7("#text-container"),_.X("design:type",HTMLElement)],t$.prototype,"textContainerEl",void 0);_.W([_.Z7("#text"),_.X("design:type",Object)],t$.prototype,"textEl",void 0);_.W([_.Z7("#verified-tooltip"),_.X("design:type",HTMLElement)],t$.prototype,"verifiedTooltip",void 0);_.W([_.q(),_.X("design:type",Object)],t$.prototype,"height",void 0);
_.W([_.q(),_.X("design:type",Object)],t$.prototype,"lineHeight",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("badges","forceVerified"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],t$.prototype,"verified",null);_.W([_.O("badges","verified"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],t$.prototype,"hideBadges",null);_.W([_.O("channelName"),_.X("design:type",Object),_.X("design:paramtypes",[])],t$.prototype,"formattedName",null);
_.W([_.O("badges","verified","formattedName"),_.X("design:type",String),_.X("design:paramtypes",[])],t$.prototype,"tooltipText",null);_.W([_.O("hasChannelArt"),_.X("design:type",String),_.X("design:paramtypes",[])],t$.prototype,"tooltipOffset",null);_.W([_.ph("channelName"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t$.prototype,"onChannelNameChanged",null);
_.W([_.ph("height"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t$.prototype,"onHeightChanged",null);_.W([_.ph("lineHeight","height"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],t$.prototype,"onLineHeightChanged",null);_.W([_.J({is:"ytd-channel-name",disableElementRegistration:!0})],t$);
_.B(t$,"ytd-channel-name",function(){if(fsR!==void 0)return fsR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fsR=v},{mode:_.mV("kevlar_poly_si_batch_j036")?1:2});var pP=function(){var v=_.z.apply(this,arguments)||this;v.standardizeIconSize=_.Y("kevlar_system_icons");return v};
_.f(pP,_.z);pP.prototype.basicPaletteChanged=function(){var v;(v=this.data.color)!=null&&v.basicColorPaletteData&&_.Tr(this.hostElement,this.data.color.basicColorPaletteData)};
pP.prototype.useFilledIcons=function(v){return _.Y("kevlar_system_icons")&&(v==="CHECK_CIRCLE_THICK"||v==="OFFICIAL_ARTIST_BADGE")};
_.hr.Object.defineProperties(pP.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return this.data.authorCreator||((v=this.data)==null?void 0:(Q=v.color)==null?void 0:(V=Q.basicColorPaletteData)==null?void 0:V.backgroundColor)}}});
pP.prototype.basicPaletteChanged=pP.prototype.basicPaletteChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pP.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],pP.prototype,"standardizeIconSize",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.authorUnifiedVerified"),_.X("design:type",Object),_.X("design:paramtypes",[])],pP.prototype,"verified",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],pP.prototype,"creator",null);_.W([_.ph("data.color.basicColorPaletteData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pP.prototype,"basicPaletteChanged",null);_.W([_.J({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],pP);
_.B(pP,"ytd-author-comment-badge-renderer",function(){if(cNq!==void 0)return cNq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cNq=v},{mode:1});var CmZ;var e2=function(){return _.z.apply(this,arguments)||this};
_.f(e2,_.z);e2.prototype.computeThumbnailWidth=function(v){if(v==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],e2.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",String)],e2.prototype,"icon",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],e2.prototype,"surface",void 0);
_.W([_.q({reflectToAttribute:!0,value:_.Y("enable_shrink_image_size_on_web_posts_singleton")}),_.X("design:type",Boolean)],e2.prototype,"searchSxsUx",void 0);_.W([_.q({reflectToAttribute:!0,value:_.Y("enable_community_page_on_desktop")}),_.X("design:type",Boolean)],e2.prototype,"useSmallerPostImageAttachments",void 0);_.W([_.J({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],e2);
_.B(e2,"ytd-backstage-image-renderer",function(){if(CmZ!==void 0)return CmZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return CmZ=v},{mode:1});var MYQ;var ZZ=function(){var v=_.z.apply(this,arguments)||this;v.isLoading=!1;v.selectedItemIndex=-1;return v};
_.f(ZZ,_.z);_.K=ZZ.prototype;_.K.computeIsChannelOwner=function(v){if(!v)return!0;v=v[0];return!(v&&(v.signinEndpoint||v.selectServiceEndpoint))};
_.K.computeIsImagePoll=function(v){return(v==null?void 0:v.type)==="POLL_TYPE_IMAGE"};
_.K.computeIsTotalVotesDisabled=function(v){return!(v==null?0:v.totalVotes)};
_.K.thumbnailSrc=function(v){var Q,V,E,b;return(v==null?0:(Q=v.thumbnails)==null?0:(V=Q[0])==null?0:V.url)?_.oE((E=v.thumbnails)==null?void 0:(b=E[0])==null?void 0:b.url):void 0};
_.K.progressWidth=function(v){return"width:"+(v?v*100:0)+"%;"};
_.K.textAreaWidth=function(v){return this.isImagePoll?null:"width:"+(v?v*100:0)+"%;"};
_.K.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.K.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var v=this.data.choices,Q=0;Q<v.length;Q++)if(v[Q].selected){this.selectedItemIndex=Q;break}};
_.K.onPopupClosed=function(v,Q){v=Number(this.pollVotes.selected);Q.confirmed&&(this.selectChoice(v,!1),_.mb(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.K.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.K.onYtCommentPollRevert=function(v,Q){Q&&(this.selectChoice(Q.selectedChoiceIndex,!0),this.set("data.totalVotes",Q.totalVotes))};
_.K.onYtServiceRequestSent=function(v,Q){if(Q.actions)for(v=0;v<Q.actions.length;v++){var V=Q.actions[v];_.y(V,gA)&&this.set("data.totalVotes",_.y(V,gA).totalVotes)}};
_.K.onYtServiceRequestCompleted=function(v){var Q=this.get("detail.data.actionResults.0.feedback",v);v=this.get("detail.data.actionResults.0.status",v);if(Q==="FEEDBACK_DESELECT"||Q==="FEEDBACK_SELECT")this.isLoading=!1,v==="STATUS_FAILED"?_.Hj(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.K.getEndpoint=function(v,Q){return Q===v?this.data.choices[Q].deselectServiceEndpoint||null:this.data.choices[v].selectServiceEndpoint||null};
_.K.selectChoice=function(v,Q){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var V=0;V<this.data.choices.length;V++){var E;if(v===this.selectedItemIndex){var b=!1;var F=E=null}else E=(b=V===v)?this.data.choices[V].voteRatioIfSelected:this.data.choices[V].voteRatioIfNotSelected,F=b?this.data.choices[V].votePercentageIfSelected:this.data.choices[V].votePercentageIfNotSelected;this.set("data.choices."+V+".voteRatio",E);
this.set("data.choices."+V+".votePercentage",F);this.set("data.choices."+V+".selected",b)}Q||(this.isLoading=!0,(Q=this.getEndpoint(v,this.selectedItemIndex))&&_.ht().resolve(_.At).resolveCommand(Q,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===v?-1:v};
_.hr.Object.defineProperties(ZZ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
ZZ.prototype.onYtServiceRequestCompleted=ZZ.prototype.onYtServiceRequestCompleted;ZZ.prototype.onYtServiceRequestSent=ZZ.prototype.onYtServiceRequestSent;ZZ.prototype.onYtCommentPollRevert=ZZ.prototype.onYtCommentPollRevert;ZZ.prototype.onPopupClosed=ZZ.prototype.onPopupClosed;ZZ.prototype.dataChanged=ZZ.prototype.dataChanged;_.W([_.M(_.tB),_.X("design:type",Object)],ZZ.prototype,"paperItemBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],ZZ.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ZZ.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],ZZ.prototype,"isLoading",void 0);_.W([_.q({computed:"computeIsChannelOwner(data.choices)"}),_.X("design:type",Boolean)],ZZ.prototype,"isChannelOwner",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.X("design:type",Boolean)],ZZ.prototype,"isImagePoll",void 0);_.W([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.X("design:type",Boolean)],ZZ.prototype,"isTotalVotesDisabled",void 0);_.W([_.q(),_.X("design:type",Object)],ZZ.prototype,"previousPollInfo",void 0);_.W([_.q(),_.X("design:type",Object)],ZZ.prototype,"selectedItemIndex",void 0);_.W([_.Z7("#poll-votes"),_.X("design:type",Object)],ZZ.prototype,"pollVotes",void 0);
_.W([_.O("isChannelOwner"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZZ.prototype,"endpointStyle",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZZ.prototype,"dataChanged",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],ZZ.prototype,"onPopupClosed",null);
_.W([_.tM("yt-comment-poll-revert"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],ZZ.prototype,"onYtCommentPollRevert",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],ZZ.prototype,"onYtServiceRequestSent",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ZZ.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],ZZ);
_.B(ZZ,"ytd-backstage-poll-renderer",function(){if(MYQ!==void 0)return MYQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return MYQ=v},{mode:2});var ORp;var Dwp={autoplay:!1,loop:!1},Rx8={simpleText:""},PI=function(){var v=_.z.apply(this,arguments)||this;v.isLoading=!1;v.usesPanelLockup=!1;v.selectedItemIndex=-1;v.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Dwp,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});v.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Dwp,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});v.correctnessAnimationProps=[];v.correctnessAnimationRefs=[];return v};
_.f(PI,_.z);_.K=PI.prototype;_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.K.computeIsChannelOwner=function(v){if(!v)return!0;v=v[0];return!(v&&(v.signinEndpoint||v.selectServiceEndpoint))};
_.K.computeIsTotalVotesDisabled=function(v){return!(v==null?0:v.totalVotes)};
_.K.computeIsImageQuiz=function(v){return(v==null?void 0:v.type)==="POLL_TYPE_IMAGE"};
_.K.onExplanationChanged=function(){this.expander.reset()};
_.K.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var v=this.data.choices;if(v){this.maybeInitializeQuizLotties(v);for(var Q=0;Q<v.length;Q++)if(v[Q].isSelected||this.isChannelOwner&&v[Q].isCorrect){this.selectedItemIndex=Q;return}this.selectedItemIndex=-1}}};
_.K.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var v=this.selectedItemIndex,Q=Number(this.quizVotes.selected);this.selectChoice(Q);this.sendVoteAction(Q,v);this.quizVotes.selected=-1;var V;v=!((V=this.data)==null?0:V.enableAnimation);this.maybePlayAnswerAnimations(v)}};
_.K.onYtCommentPollRevert=function(v,Q){Q&&(this.selectChoice(Q.selectedChoiceIndex),this.set("data.totalVotes",Q.totalVotes))};
_.K.onYtServiceRequestSent=function(v,Q){if(Q.actions)for(v=_.L(Q.actions),Q=v.next();!Q.done;Q=v.next())(Q=_.y(Q.value,gA))&&this.set("data.totalVotes",Q.totalVotes)};
_.K.onYtServiceRequestCompleted=function(v){var Q=this.get("detail.data.actionResults.0.feedback",v);v=this.get("detail.data.actionResults.0.status",v);if(Q==="FEEDBACK_DESELECT"||Q==="FEEDBACK_SELECT")this.isLoading=!1,v==="STATUS_FAILED"?_.Hj(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.K.getAnimationPropsForChoiceIndex=function(v,Q){return Q[v]};
_.K.maybePlayAnswerAnimations=function(v){v=v===void 0?!1:v;var Q;if((Q=this.data)!=null&&Q.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){Q=_.L(this.correctnessAnimationRefs);for(var V=Q.next();!V.done;V=Q.next()){var E=void 0,b=void 0;(E=V.value)==null||(b=E.lottieEl)==null||b.stop()}if(!(this.selectedItemIndex<0)){Q=0;v&&(Q=this.isCorrect?37:25);var F,t;(F=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(t=F.lottieEl)==null||t.goToAndPlay(v?Q:0,!0);if(!(this.isCorrect||
(F=this.data.choices.findIndex(function(w){return w.isCorrect}),F<0))){var p,Z;
(Z=(p=this.correctnessAnimationRefs[F])==null?void 0:p.lottieEl)==null||Z.goToAndPlay(37,!0);var d;p=(d=this.fadeContainers)==null?void 0:d.item(F);!v&&p&&this.fadeIn(p)}}}};
_.K.thumbnailSrc=function(v){var Q,V,E,b;return(v==null?0:(Q=v.thumbnails)==null?0:(V=Q[0])==null?0:V.url)?_.oE((E=v.thumbnails)==null?void 0:(b=E[0])==null?void 0:b.url):void 0};
_.K.a11yVotedText=function(v,Q){var V,E,b=((V=this.data)==null?void 0:(E=V.correctVotedText)==null?void 0:E.simpleText)||"",F,t;V=((F=this.data)==null?void 0:(t=F.votedText)==null?void 0:t.simpleText)||"";if(!Q)return"";var p,Z;if((p=this.data)==null?0:(Z=p.choices)==null?0:Z[v].isCorrect)return b;var d,w;return((d=this.data)==null?0:(w=d.choices)==null?0:w[v].isSelected)?V:""};
_.K.getEndpoint=function(v,Q){return Q===v?this.data.choices[v].deselectServiceEndpoint||null:this.data.choices[v].selectServiceEndpoint||null};
_.K.sendVoteAction=function(v,Q){if(v=this.getEndpoint(v,Q))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(v)};
_.K.selectChoice=function(v){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Q=0;Q<this.data.choices.length;Q++)this.set("data.choices."+Q+".isSelected",v===this.selectedItemIndex?!1:Q===v);this.selectedItemIndex=this.selectedItemIndex===v?-1:v};
_.K.maybeInitializeQuizLotties=function(v){var Q=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=v.map(function(V){return{animationConfig:V.isCorrect?Q.baseCorrectLottiePlayerAnimationConfig:Q.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){Q.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(V){return V.animationRef||{}})};
_.K.fadeIn=function(v){v.classList.add("fade-in");_.md(_.XT,function(){v.classList.remove("fade-in")},900)};
_.hr.Object.defineProperties(PI.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.j0(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.choices)==null?void 0:Q.some(function(V){return V.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null||!v.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Rx8:this.data.choices[this.selectedItemIndex].explanation||Rx8}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null||!v.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
PI.prototype.onYtServiceRequestCompleted=PI.prototype.onYtServiceRequestCompleted;PI.prototype.onYtServiceRequestSent=PI.prototype.onYtServiceRequestSent;PI.prototype.onYtCommentPollRevert=PI.prototype.onYtCommentPollRevert;PI.prototype.dataChanged=PI.prototype.dataChanged;PI.prototype.onExplanationChanged=PI.prototype.onExplanationChanged;_.W([_.M(_.tB),_.X("design:type",Object)],PI.prototype,"paperItemBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],PI.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.hD.YtTaskEmitterBehavior),_.X("design:type",Object)],PI.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],PI.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],PI.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],PI.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Object)],PI.prototype,"usesPanelLockup",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.X("design:type",Boolean)],PI.prototype,"isChannelOwner",void 0);_.W([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.X("design:type",Boolean)],PI.prototype,"isTotalVotesDisabled",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.X("design:type",Boolean)],PI.prototype,"isImageQuiz",void 0);_.W([_.q(),_.X("design:type",Object)],PI.prototype,"previousQuizInfo",void 0);_.W([_.q(),_.X("design:type",Object)],PI.prototype,"selectedItemIndex",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data","usesPanelLockup"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PI.prototype,"shouldUseModernUi",null);
_.W([_.Pn(".fade-container"),_.X("design:type",Object)],PI.prototype,"fadeContainers",void 0);_.W([_.q(),_.X("design:type",Array)],PI.prototype,"correctnessAnimationProps",void 0);_.W([_.O("explanation","showCorrectAnswer"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PI.prototype,"showExplanation",null);_.W([_.O("isChannelOwner","isAttempted"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PI.prototype,"showCorrectAnswer",null);
_.W([_.O("isChannelOwner","isAttempted","data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PI.prototype,"isQuizAnsweringDisabled",null);_.W([_.O("isQuizAnsweringDisabled"),_.X("design:type",Object),_.X("design:paramtypes",[])],PI.prototype,"endpointStyle",null);_.W([_.O("data","selectedItemIndex"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PI.prototype,"isAttempted",null);
_.W([_.O("data","selectedItemIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],PI.prototype,"explanation",null);_.W([_.O("data","selectedItemIndex"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PI.prototype,"isCorrect",null);_.W([_.Z7("ytd-expander"),_.X("design:type",Object)],PI.prototype,"expander",void 0);_.W([_.Z7("#quiz-votes"),_.X("design:type",Object)],PI.prototype,"quizVotes",void 0);
_.W([_.ph("explanation"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PI.prototype,"onExplanationChanged",null);_.W([_.ph("data","isChannelOwner"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PI.prototype,"dataChanged",null);_.W([_.tM("yt-comment-quiz-revert"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],PI.prototype,"onYtCommentPollRevert",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],PI.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],PI.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],PI);
_.B(PI,"ytd-backstage-quiz-renderer",function(){if(ORp!==void 0)return ORp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ORp=v},{mode:1});var nga;var dq=function(){return _.z.apply(this,arguments)||this};
_.f(dq,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dq.prototype,"data",void 0);_.W([_.J({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],dq);
_.B(dq,"ytd-post-uploaded-video-renderer",function(){if(nga!==void 0)return nga;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return nga=v},{mode:1});var lsZ;var h$=function(){return _.z.apply(this,arguments)||this};
_.f(h$,_.z);h$.prototype.useFilledIcons=function(v){return v==="SPONSORSHIP_STAR"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],h$.prototype,"data",void 0);_.W([_.J({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],h$);
var qwZ=_.Hn()(h$,"ytd-sponsors-only-badge-renderer",function(){if(lsZ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);lsZ=v}v=lsZ;return v},{allowedProps:["data"],
mode:1});var Swa;var wq=function(){return _.z.apply(this,arguments)||this};
_.f(wq,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],wq.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wq.prototype,"data",void 0);_.W([_.J({is:"ytd-child-video-renderer",disableElementRegistration:!0})],wq);
_.B(wq,"ytd-child-video-renderer",function(){if(Swa!==void 0)return Swa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Swa=v},{mode:1});var zxA;var JNx;var A$=function(){var v=_.z.apply(this,arguments)||this;v.size=0;v.fallbackImageSize={height:void 0,width:9999};v.webModernCollections=!1;return v};
_.f(A$,_.z);_.K=A$.prototype;_.K.computeBlurredImageSize=function(v){return v?{height:v*2,width:v*2}:this.fallbackImageSize};
_.K.computeImageSize=function(v){return v?{height:v,width:v}:this.fallbackImageSize};
_.K.computeObjectFit=function(v){return v?"FILL":"CONTAIN"};
_.K.computePreserve=function(v){return v?!0:!1};
_.K.setBackground=function(){var v,Q;if((v=this.data)==null?0:(Q=v.thumbnail)==null?0:Q.sampledThumbnailColor)v=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+v.red+","+v.green+","+v.blue+",1)"};
A$.prototype.setBackground=A$.prototype.setBackground;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],A$.prototype,"watchFeedThumbnail",void 0);_.W([_.q(),_.X("design:type",Object)],A$.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],A$.prototype,"size",void 0);
_.W([_.q({computed:"computeBlurredImageSize(size)"}),_.X("design:type",Object)],A$.prototype,"blurredImageSize",void 0);_.W([_.q({computed:"computeImageSize(size)"}),_.X("design:type",Object)],A$.prototype,"imageSize",void 0);_.W([_.q({computed:"computePreserve(size)"}),_.X("design:type",String)],A$.prototype,"preserve",void 0);_.W([_.q({computed:"computeObjectFit(size)"}),_.X("design:type",String)],A$.prototype,"objectFit",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],A$.prototype,"webModernCollections",void 0);_.W([_.ph("data.thumbnail.sampledThumbnailColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],A$.prototype,"setBackground",null);_.W([_.J({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],A$);
_.B(A$,"ytd-playlist-custom-thumbnail-renderer",function(){if(JNx!==void 0)return JNx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return JNx=v},{mode:1});var NcQ;var kH=function(){return _.z.apply(this,arguments)||this};
_.f(kH,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kH.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],kH.prototype,"width",void 0);_.W([_.J({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],kH);
_.B(kH,"ytd-playlist-video-thumbnail-renderer",function(){if(NcQ!==void 0)return NcQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return NcQ=v},{mode:1});var xwa;var TV=function(){return _.z.apply(this,arguments)||this};
_.f(TV,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TV.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],TV.prototype,"width",void 0);_.W([_.J({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],TV);
_.B(TV,"ytd-show-custom-thumbnail-renderer",function(){if(xwa!==void 0)return xwa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xwa=v},{mode:1});var BcX;var YH=function(){return _.z.apply(this,arguments)||this};
_.f(YH,_.z);YH.prototype.useFilledIcons=function(v){return v==="MUSIC"||v==="COURSE"};
YH.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=M2(this.overlayColor,"0.8");else if(this.overlayColor){var v=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+v.red+","+v.green+","+v.blue+",0.8)"}};
_.hr.Object.defineProperties(YH.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)}}});
YH.prototype.overlayColorChanged=YH.prototype.overlayColorChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],YH.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],YH.prototype,"overlayColor",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.icon","data.text"),_.X("design:type",Object),_.X("design:paramtypes",[])],YH.prototype,"overlayStyle",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.icon","data.text"),_.X("design:type",Object),_.X("design:paramtypes",[])],YH.prototype,"overlayTextStyle",null);_.W([_.ph("overlayColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],YH.prototype,"overlayColorChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],YH);
_.B(YH,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(BcX!==void 0)return BcX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return BcX=v},{mode:1});var ggX;var yq=function(){var v=_.z.apply(this,arguments)||this;v.active=!1;return v};
_.f(yq,_.z);yq.prototype.computeIsSpinnerHidden=function(v){return(v==null?void 0:v.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
yq.prototype.computeOverlayIcon=function(v){return(v==null?void 0:v.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(v==null?void 0:v.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],yq.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],yq.prototype,"active",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],yq);
_.B(yq,"ytd-thumbnail-overlay-downloading-renderer",function(){if(ggX!==void 0)return ggX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ggX=v},{mode:1});var sPa;var cI=function(){return _.z.apply(this,arguments)||this};
_.f(cI,_.z);_.hr.Object.defineProperties(cI.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cI.prototype,"data",void 0);_.W([_.O("data.text"),_.X("design:type",Object),_.X("design:paramtypes",[])],cI.prototype,"text",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],cI);
_.B(cI,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(sPa!==void 0)return sPa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return sPa=v},{mode:1});var ulN,jPN=function(){if(ulN!==void 0)return ulN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ulN=v};var fP=function(){return _.z.apply(this,arguments)||this};
_.f(fP,_.z);_.hr.Object.defineProperties(fP,{template:{configurable:!0,enumerable:!0,get:function(){return jPN()}}});
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],fP.prototype,"animateEqualizer",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],fP);_.Hn()(fP,"ytd-thumbnail-overlay-equalizer",function(){return jPN()},{allowedProps:["animateEqualizer"],
mode:1});var W8V;var GV=function(){var v=_.z.apply(this,arguments)||this;v.nowPlayingBadge=_.Y("web_now_playing_badge");v.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return v};
_.f(GV,_.z);GV.prototype.activeChanged=function(){var v=this;_.Y("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.PE(this,function(){_.Hj(v.hostElement,"yt-playlist-lockup-now-playing-active",v)})};
GV.prototype.onMiniplayerPlayStateChanged=function(v){var Q,V=(Q=_.y(_.u9().currentEndpoint,_.sn))==null?void 0:Q.videoId;this.isVideoPlaying=v&&(_.Y("web_limit_now_playing_animation_killswitch")||this.videoId===V)};
GV.prototype.activeChanged=GV.prototype.activeChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],GV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GV.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],GV.prototype,"isVideoPlaying",void 0);_.W([_.q(),_.X("design:type",String)],GV.prototype,"videoId",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],GV.prototype,"equalizerOnly",void 0);_.W([_.q(),_.X("design:type",Boolean)],GV.prototype,"isActive",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],GV.prototype,"nowPlayingBadge",void 0);_.W([_.ph("isActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],GV.prototype,"activeChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],GV);
_.B(GV,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(W8V!==void 0)return W8V;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return W8V=v},{mode:1});var oga;var CP=function(){return _.z.apply(this,arguments)||this};
_.f(CP,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CP.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],CP);
_.B(CP,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(oga!==void 0)return oga;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return oga=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var XSa;var MI=function(){return _.z.apply(this,arguments)||this};
_.f(MI,_.z);MI.prototype.onDurationChanged=function(){var v,Q;_.m9(this.hostElement).querySelector("#progress").style.width=((Q=(v=this.data)==null?void 0:v.percentDurationWatched)!=null?Q:0)+"%"};
MI.prototype.onDurationChanged=MI.prototype.onDurationChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],MI.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],MI.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],MI.prototype,"isLive",void 0);_.W([_.ph("data.percentDurationWatched"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MI.prototype,"onDurationChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],MI);
_.B(MI,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(XSa!==void 0)return XSa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return XSa=v},{mode:1});var asN;var Os=function(){var v=_.z.apply(this,arguments)||this;v.bottomPanel=!1;v.richGridOverlay=!1;v.watchFeedOverlay=!1;v.isCompact=!1;return v};
_.f(Os,_.z);Os.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.hr.Object.defineProperties(Os.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.icon)==null?void 0:Q.iconType)==="PLAY_ALL"&&_.Y("kevlar_system_icons")}}});
Os.prototype.widthChanged=Os.prototype.widthChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Os.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],Os.prototype,"width",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Os.prototype,"bottomPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Os.prototype,"richGridOverlay",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Os.prototype,"watchFeedOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Os.prototype,"isCompact",void 0);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Os.prototype,"isIconFilled",null);_.W([_.ph("width","watchFeedOverlay"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Os.prototype,"widthChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Os);
_.B(Os,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(asN!==void 0)return asN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return asN=v},{mode:1});var rNx;var $w8=["CLIP","SHORTS"],DZ=function(){var v=_.z.apply(this,arguments)||this;v.animated=_.Y("animated_live_badge_icon");v.hasIcon=!1;v.updateTimerIntervalId=0;v.timeSinceLive=0;return v};
_.f(DZ,_.z);_.K=DZ.prototype;_.K.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.K.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.K.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.K.hasIconOrText=function(){var v,Q;return!!(((v=this.data)==null?0:v.icon)||((Q=this.data)==null?0:Q.text))};
_.K.initializeLiveBadgeTimer=function(){var v=this,Q,V=(Q=this.liveBadgeData)==null?void 0:Q.startTimestampSec;if(V&&this.canShowLiveBadgeTimer()){var E;Q=Number((E=this.liveBadgeData)==null?void 0:E.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(V);this.updateTimerIntervalId=_.Ci(function(){v.canShowLiveBadgeTimer()?v.timeSinceLive++:(v.timeSinceLive=0,window.clearInterval(v.updateTimerIntervalId))},Q)}else this.timeSinceLive=0};
_.K.canShowLiveBadgeTimer=function(){var v=Date.now(),Q,V;return v<(Number((Q=this.liveBadgeData)==null?void 0:Q.endTimestampSec)-1)*1E3&&v>Number((V=this.liveBadgeData)==null?void 0:V.startTimestampSec)*1E3};
_.hr.Object.defineProperties(DZ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Mlr(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return $w8.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
DZ.prototype.initializeLiveBadgeTimer=DZ.prototype.initializeLiveBadgeTimer;DZ.prototype.dataChanged=DZ.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DZ.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DZ.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",String)],DZ.prototype,"icon",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],DZ.prototype,"animated",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.X("design:type",Boolean)],DZ.prototype,"hideTimeStatus",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DZ.prototype,"hasIcon",void 0);_.W([_.q(),_.X("design:type",Object)],DZ.prototype,"timeSinceLive",void 0);_.W([_.O("data","timeSinceLive"),_.X("design:type",Object),_.X("design:paramtypes",[])],DZ.prototype,"badgeShapeData",null);
_.W([_.O("data","overlayType"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DZ.prototype,"hideBadgeShape",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DZ.prototype,"dataChanged",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.style"),_.X("design:type",Object),_.X("design:paramtypes",[])],DZ.prototype,"overlayStyle",null);
_.W([_.O("data.liveBadgeData"),_.X("design:type",Object),_.X("design:paramtypes",[])],DZ.prototype,"liveBadgeData",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.type"),_.X("design:type",Object),_.X("design:paramtypes",[])],DZ.prototype,"overlayType",null);_.W([_.O("overlayType","overlayStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DZ.prototype,"useFilledIcon",null);
_.W([_.wg("liveBadgeData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DZ.prototype,"initializeLiveBadgeTimer",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],DZ);
_.B(DZ,"ytd-thumbnail-overlay-time-status-renderer",function(){if(rNx!==void 0)return rNx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return rNx=v},{mode:_.mV("kevlar_poly_si_batch_j035")?1:2});var IsV;var Rs=function(){return _.z.apply(this,arguments)||this};
_.f(Rs,_.z);Rs.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"}}}}};
Rs.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(v){if(this.hasPlaybackProgressBar)return{percentDurationWatched:v.percentDurationWatched}};
Rs.prototype.computeHasPlaybackProgressBar=function(v){return!!v.percentDurationWatched&&v.percentDurationWatched>0};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Rs.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Rs.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.X("design:type",Boolean)],Rs.prototype,"hasPlaybackProgressBar",void 0);
_.W([_.J({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Rs);
_.B(Rs,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(IsV!==void 0)return IsV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return IsV=v},{mode:1});var HRV;var mwV=_.x(function(v){var Q=v.data;var V=v.children;var E=function(){return!!Q().doubleStack},b=function(){return!!Q().includeStackHeight};
return _.P("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!Q().experimentEnabled}},_.P(_.h,{cond:Q,
then:function(){var F={};return _.P(_.w7,null,_.P(_.h,{cond:b,then:function(){var t={};return _.P("div",{class:_.QZ("ytCollectionsStackSpacer",(t.ytCollectionsStackSpacerDoubleStack=E,t))})}}),_.P("div",{class:_.QZ((F.ytCollectionsStackRelativeStack=b,F))},_.P(_.h,{cond:E,
then:function(){var t={};return _.P("div",{class:_.QZ("ytCollectionsStackCollectionStack2",function(){return Q().customClassName2ndStack},(t.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return Q().enableResponsiveMode},t)),
style:_.iP({"background-color":function(){return DHE(Q())}})})}}),_.P("div",{class:_.QZ("ytCollectionsStackCollectionStack1",function(){return Q().customClassName1stStack},function(){return OXQ(Q().thumbnailSize?Q().thumbnailSize:"medium")}),
style:_.iP({"background-color":function(){return DHE(Q())}})}),V))}}))},"Da");_.ad(mwV,"yt-collections-stack",{props:{data:_.pJ}});var nP=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};v.webModernCollections=!1;v.isSearch=!1;v.isDoubleStack=!1;v.thumbnailSize="medium";return v};
_.f(nP,_.z);_.K=nP.prototype;
_.K.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]]"}}}}}};
_.K.getThumbnailDetails=function(v){if(v!=null&&v.thumbnailRenderer){var Q=v.thumbnailRenderer,V;if((V=Q.playlistVideoThumbnailRenderer)==null?0:V.thumbnail)return Q.playlistVideoThumbnailRenderer.thumbnail;var E;if((E=Q.playlistCustomThumbnailRenderer)==null?0:E.thumbnail)return Q.playlistCustomThumbnailRenderer.thumbnail;v=v.thumbnailRenderer;var b;if((b=v.showCustomThumbnailRenderer)==null?0:b.thumbnail)return v.showCustomThumbnailRenderer.thumbnail}};
_.K.computeOverlayColor=function(v){var Q,V;if((Q=this.getThumbnailDetails(v))==null?0:(V=Q.darkColorPalette)==null?0:V.section2Color)return this.getThumbnailDetails(v).darkColorPalette.section2Color;var E;return(E=this.getThumbnailDetails(v))==null?void 0:E.sampledThumbnailColor};
_.K.computeWebModernCollections=function(v){if(v==null||!v.thumbnailOverlays)return!1;v=_.L(v.thumbnailOverlays);for(var Q=v.next();!Q.done;Q=v.next()){var V=void 0;if((V=Q.value)==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.K.computeNavigationEndpoint=function(v){return x_h(v==null?void 0:v.navigationEndpoint)};
_.hr.Object.defineProperties(nP.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:v==null?void 0:v.sampledThumbnailColor,vibrantColorPalette:v==null?void 0:v.vibrantColorPalette,darkColorPalette:v==null?void 0:v.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],nP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(KqV),_.X("design:type",Object)],nP.prototype,"ytdThumbnailBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],nP.prototype,"componentBehavior",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],nP.prototype,"watchFeedThumbnail",void 0);_.W([_.q(),_.X("design:type",Number)],nP.prototype,"customThumbnailSize",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],nP.prototype,"hideAria",void 0);_.W([_.q(),_.X("design:type",Object)],nP.prototype,"data",void 0);_.W([_.q({computed:"computeOverlayColor(data)"}),_.X("design:type",Object)],nP.prototype,"overlayColor",void 0);
_.W([_.q({computed:"computeWebModernCollections(data)"}),_.X("design:type",Object)],nP.prototype,"webModernCollections",void 0);_.W([_.q({computed:"computeNavigationEndpoint(data)"}),_.X("design:type",Object)],nP.prototype,"computedNavigationEndpoint",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],nP.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],nP.prototype,"isDoubleStack",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],nP.prototype,"thumbnailSize",void 0);_.W([_.O("data","isDoubleStack","thumbnailSize"),_.X("design:type",Object),_.X("design:paramtypes",[])],nP.prototype,"collectionStack",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],nP);
_.B(nP,"ytd-playlist-thumbnail",function(){if(HRV!==void 0)return HRV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return HRV=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var Uwq;_.ad(_.x(function(v){return _.P("yt-text-view-model",{class:_.QZ("ytTextViewModelHost")},_.P(_.tD,{text:function(){return v.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.pJ}});var lL=function(){var v=_.z.apply(this,arguments)||this;v.noEndpoints=!1;v.amsterdamPostMvp=_.Y("web_amsterdam_post_mvp_playlists");v.badges=[];v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.f(lL,_.z);_.K=lL.prototype;_.K.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.K.getMetadata=function(v){if(!v)return[];var Q=[],V=v.shortViewCountText||v.viewCountText;V&&Q.push(_.j0(V));v.publishedTimeText&&Q.push(_.j0(v.publishedTimeText));v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&Q.push(_.kl(_.j0(v.upcomingEventData.upcomingEventText),Number(v.upcomingEventData.startTime)));return Q};
_.K.observeDataForBylineSeparator=function(){this.data&&_.VE(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.K.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.GA(this.metadataColor)};
_.K.getSimpleString=function(v){return _.j0(v)};
_.K.isBylineHidden=function(v){return this.noByline||!((v==null?0:v.longBylineText)||(v==null?0:v.shortBylineText))};
_.K.isMetadataHidden=function(v){var Q;return((Q=this.getMetadata(v))==null?void 0:Q.length)===0};
_.K.isBylineMetadataSeparatorHidden=function(v){return this.isMetadataHidden(v)||!this.shouldShowVideoInfo};
_.K.isLongByline=function(v,Q){return Q&&!(v==null||!v.longBylineText)};
_.hr.Object.defineProperties(lL.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var v;return this.amsterdamPostMvp&&!((v=this.data)==null||!v.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
lL.prototype.metadataColorChanged=lL.prototype.metadataColorChanged;lL.prototype.observeDataForBylineSeparator=lL.prototype.observeDataForBylineSeparator;_.W([_.M(_.QU),_.X("design:type",Object)],lL.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lL.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],lL.prototype,"noEndpoints",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"isSlimShort",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"radioMeta",void 0);_.W([_.q({selector:_.OP}),_.X("design:type",Object)],lL.prototype,"isGridViewEnabled",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"richMeta",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lL.prototype,"amsterdamPostMvp",void 0);
_.W([_.q(),_.X("design:type",Boolean)],lL.prototype,"noByline",void 0);_.W([_.q({computed:"isLongByline(data, radioMeta)"}),_.X("design:type",Boolean)],lL.prototype,"longByline",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"truncateMetadataLine",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"miniMode",void 0);_.W([_.q(),_.X("design:type",Number)],lL.prototype,"metadataColor",void 0);
_.W([_.q(),_.X("design:type",Array)],lL.prototype,"badges",void 0);_.W([_.q({selector:_.RF,selectorArgs:["data.videoId"]}),_.X("design:type",String)],lL.prototype,"transferState",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"isDownloading",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lL.prototype,"typographyBump",void 0);_.W([_.Z7("#metadata-line"),_.X("design:type",HTMLElement)],lL.prototype,"metadataLine",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lL.prototype,"observeDataForBylineSeparator",null);_.W([_.ph("metadataColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lL.prototype,"metadataColorChanged",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],lL.prototype,"shouldShowVideoInfo",null);
_.W([_.O("badges"),_.X("design:type",String),_.X("design:paramtypes",[])],lL.prototype,"inlineBadgeClass",null);_.W([_.O("longByline"),_.X("design:type",String),_.X("design:paramtypes",[])],lL.prototype,"longBylineClass",null);_.W([_.O("data","longByline"),_.X("design:type",Object),_.X("design:paramtypes",[])],lL.prototype,"bylineText",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],lL.prototype,"hasAttributedBylineText",null);
_.W([_.O("isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],lL.prototype,"watchFeedBigThumbs",null);_.W([_.J({is:"ytd-video-meta-block",disableElementRegistration:!0})],lL);
_.B(lL,"ytd-video-meta-block",function(){if(Uwq!==void 0)return Uwq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Uwq=v},{mode:_.mV("kevlar_poly_si_batch_j080")?1:2});_.yZ("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var qI=function(){var v=_.z.apply(this,arguments)||this;v.displayItemCount=2;v.isBackstagePlaylist=!1;v.isPostCompactPlaylist=!1;v.shouldShowChannelThumbnail=!1;return v};
_.f(qI,_.z);_.K=qI.prototype;_.K.computeFirstVideos=function(v,Q){return v===void 0||Q===void 0?[]:v.slice(0,Q)};
_.K.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var v=this.data.thumbnailRenderer;v.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",v.playlistVideoThumbnailRenderer.thumbnail);v.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",v.playlistCustomThumbnailRenderer.thumbnail)}};
_.K.computeThumbnailHeight=function(v,Q,V,E,b){return E?b==="BIG"?280:b==="MASSIVE"?337:234:V?240:Q?72:v?118:138};
_.K.computeThumbnailWidth=function(v,Q,V,E,b){return E?b==="MEDIUM"?450:b==="BIG"?500:b==="MASSIVE"?600:420:V?360:Q?128:v?210:246};
_.K.computeUseBiggerThumbs=function(v){return v&&_.Y("enable_desktop_search_bigger_thumbs")};
_.K.computeShouldShowChannelThumbnail=function(v,Q){return v&&!(Q==null||!Q.channelThumbnail)};
_.hr.Object.defineProperties(qI.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
qI.prototype.dataChanged=qI.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],qI.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],qI.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qI.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],qI.prototype,"displayItemCount",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qI.prototype,"isBackstagePlaylist",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qI.prototype,"isPostCompactPlaylist",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],qI.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.X("design:type",Boolean)],qI.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],qI.prototype,"biggerThumbsStyle",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],qI.prototype,"isDownloads",void 0);_.W([_.q({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.X("design:type",Object)],qI.prototype,"shouldShowChannelThumbnail",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qI.prototype,"dataChanged",null);
_.W([_.O("isSearch"),_.X("design:type",String),_.X("design:paramtypes",[])],qI.prototype,"stackThumbnailSize",null);_.W([_.J({is:"ytd-playlist-renderer",disableElementRegistration:!0})],qI);
_.B(qI,"ytd-playlist-renderer",function(){if(zxA===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);zxA=v}v=zxA;return v},{mode:1});var vnQ;var Q_X;var S2=function(){var v=_.z.apply(this,arguments)||this;v.startX=0;return v};
_.f(S2,_.z);S2.prototype.onEndpointMouseDown=function(v){this.startX=v.clientX};
S2.prototype.onEndpointClick=function(v){this.startX!==v.clientX&&(v.preventDefault(),v.stopPropagation())};
S2.prototype.computeObjectFit=function(v){return v==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||v==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||v==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
S2.prototype.computeCardStyle=function(v){return v?v.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.hr.Object.defineProperties(S2.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.searchRefinementCardRendererStyle)==null?void 0:Q.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],S2.prototype,"data",void 0);_.W([_.q({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.X("design:type",Number)],S2.prototype,"objectFit",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.X("design:type",String)],S2.prototype,"cardStyle",void 0);
_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],S2.prototype,"roundContainer",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],S2.prototype,"isAlbumCard",null);_.W([_.O("data","isAlbumCard"),_.X("design:type",Object),_.X("design:paramtypes",[])],S2.prototype,"collectionStack",null);_.W([_.J({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],S2);
_.B(S2,"ytd-search-refinement-card-renderer",function(){if(Q_X!==void 0)return Q_X;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Q_X=v},{mode:1});var Vba;var zV=function(){var v=_.z.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.f(zV,_.z);_.W([_.q(),_.X("design:type",Object)],zV.prototype,"data",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],zV.prototype,"componentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],zV.prototype,"isRichGrid",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],zV.prototype,"miniMode",void 0);
_.W([_.J({is:"ytd-game-details-renderer",disableElementRegistration:!0})],zV);
_.B(zV,"ytd-game-details-renderer",function(){if(Vba!==void 0)return Vba;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Vba=v},{mode:1});var Ena;var bbN;var J$=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return v};
_.f(J$,_.z);_.K=J$.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.currentStateData=function(v){var Q=v||this.data;return Q&&Q.states&&Q.currentStateId!=null?Q.states.find(function(V){return V.stateId===Q.currentStateId})||null:null};
_.K.currentStateRendererData=function(v){return(v=this.currentStateData(v))&&v.state&&v.state.buttonRenderer?v.state.buttonRenderer:null};
_.K.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())};
_.K.computeButtonIcon=function(v){v=this.currentStateRendererData(v);var Q;return(v==null?0:(Q=v.icon)==null?0:Q.iconType)?v.icon.iconType.toLowerCase():null};
_.K.computeAccessibility=function(v){return(v=this.currentStateRendererData(v))&&v.accessibilityData?v.accessibilityData.accessibilityData||null:null};
_.K.computeButtonClass=function(v){var Q=this.currentStateRendererData(v);if(!Q)return"";v="";var V=Q.style;V&&(v+=V.toLowerCase().replace(/_/g,"-")+" ");(Q=Q.size)&&(v+=Q.toLowerCase().replace(/_/g,"-")+" ");return v.trim()};
_.K.computeServiceEndpoint=function(v){if(!v)return null;var Q=v&&v.serviceEndpoint,V=this.get("command.commandMetadata.webCommandMetadata.sendPost",v);return Q?Q:V&&v.command?v.command:null};
_.K.computeBellMenuItemParams=function(v){var Q;v=(Q=_.y(v==null?void 0:v.command,_.E2))==null?void 0:Q.commands;if(!v||v.length===0)return null;Q=_.y(v[0],_.sv);var V,E;return(Q==null?0:(V=Q.popup)==null?0:(E=V.menuPopupRenderer)==null?0:E.items)?Q.popup.menuPopupRenderer.items.map(function(b){return b.menuServiceItemRenderer.trackingParams}):null};
_.K.handleBellMenuOpenSelectedAction=function(v){var Q=v.trackingParams,V=this.computeBellMenuItemParams(this.data);this.data&&Q&&V&&V.includes(Q)&&this.ytRenderButtonBehavior._setButtonIcon(v.icon.iconType.toLowerCase())};
_.K.onYtServiceRequestCompleted=function(v,Q){(v=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Q))&&this.set("data",v)};
_.K.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.K.resetState=function(){this.set("data.currentStateId",3)};
_.K.onYtButtonTapHandler=function(){if(this.data){var v=this.currentStateRendererData(this.data);v&&this.ytRendererBehavior.logExplicitClick(v)}};
J$.prototype.onYtServiceRequestError=J$.prototype.onYtServiceRequestError;J$.prototype.onYtServiceRequestCompleted=J$.prototype.onYtServiceRequestCompleted;J$.prototype.stateChanged=J$.prototype.stateChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],J$.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(sA.YtRenderButtonBehavior),_.X("design:type",Object)],J$.prototype,"ytRenderButtonBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],J$.prototype,"data",void 0);_.W([_.wg("data","data.currentStateId"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],J$.prototype,"stateChanged",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],J$.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],J$.prototype,"onYtServiceRequestError",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],J$);
_.B(J$,"ytd-subscription-notification-toggle-button-renderer",function(){if(bbN!==void 0)return bbN;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bbN=v},{mode:1});var Fj8;var NI=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};v.tapHandler=function(){if(v.data){var Q=v.currentStateRendererData();Q&&v.ytRendererBehavior.logExplicitClick(Q)}};
return v};
_.f(NI,_.z);_.K=NI.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.currentStateData=function(){var v=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(Q){return Q.stateId===v.data.currentStateId})||null:null};
_.K.currentStateRendererData=function(){var v=this.currentStateData();return v&&v.state&&v.state.buttonRenderer?v.state.buttonRenderer:null};
_.K.computeAccessibilityLabel=function(){var v,Q,V;return(v=this.currentStateRendererData())==null?void 0:(Q=v.accessibilityData)==null?void 0:(V=Q.accessibilityData)==null?void 0:V.label};
_.K.computeBellMenuItemParams=function(){var v,Q,V=(Q=_.y((v=this.data)==null?void 0:v.command,_.E2))==null?void 0:Q.commands;if(!V||V.length===0)return null;v=_.y(V[0],_.sv);var E,b;return(v==null?0:(E=v.popup)==null?0:(b=E.menuPopupRenderer)==null?0:b.items)?v.popup.menuPopupRenderer.items.map(function(F){return F.menuServiceItemRenderer.trackingParams}):null};
_.K.handleBellMenuOpenSelectedAction=function(v){var Q=v.trackingParams,V=this.computeBellMenuItemParams();if(this.data&&Q&&V&&V.includes(Q)&&(v==null||!v.isDisabled)){var E;((E=_.y(v.serviceEndpoint,_.F$))==null?void 0:E.signal)!=="CLIENT_SIGNAL"&&(this.icon=v.icon.iconType)}};
_.K.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.K.onYtServiceRequestCompleted=function(v,Q){if(v=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Q))this.icon=void 0,this.set("data",v)};
_.K.onYtServiceRequestError=function(){this.icon=void 0};
_.hr.Object.defineProperties(NI.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data,Q=this.textLabel,V=this.hostElement,E=this.computeAccessibilityLabel(),b=this.tapHandler,F=this.isOverlay?"overlay":"mono",t=(v==null?0:v.disableButton)?"disabled":"active";Q=Q?_.cg(Q):void 0;return{style:F,type:"tonal",state:t,size:"M",focused:!1,formattedButtonText:Q,iconPosition:"leading-trailing",onTap:nZr(v,b,V),accessibilityLabel:E}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var v=this.currentStateRendererData(),Q,V,E=(V=this.icon)!=null?V:v==null?void 0:(Q=v.icon)==null?void 0:Q.iconType;if(E)return _.VK(E)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.secondaryIcon)==null?void 0:Q.iconType;if(V)return _.VK(V)}}});
NI.prototype.onYtServiceRequestError=NI.prototype.onYtServiceRequestError;NI.prototype.onYtServiceRequestCompleted=NI.prototype.onYtServiceRequestCompleted;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],NI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],NI.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],NI.prototype,"textLabel",void 0);
_.W([_.q(),_.X("design:type",String)],NI.prototype,"icon",void 0);_.W([_.q(),_.X("design:type",Boolean)],NI.prototype,"isOverlay",void 0);_.W([_.O("data.*","textLabel"),_.X("design:type",Object),_.X("design:paramtypes",[])],NI.prototype,"computedButtonShape",null);_.W([_.O("data.*","icon"),_.X("design:type",Object),_.X("design:paramtypes",[])],NI.prototype,"computedIcon",null);_.W([_.O("computedIcon"),_.X("design:type",Object),_.X("design:paramtypes",[])],NI.prototype,"computedAnimateIcon",null);
_.W([_.O("data.*"),_.X("design:type",Object),_.X("design:paramtypes",[])],NI.prototype,"computedSecondaryIcon",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],NI.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],NI.prototype,"onYtServiceRequestError",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],NI);
_.B(NI,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Fj8!==void 0)return Fj8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Fj8=v},{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var KjZ;_.ad(K8R,"yt-animated-action",{props:{backgroundLottieRef:_.pJ,foregroundLottieRef:_.pJ,wrapperClass:_.pJ,disableAnimation:_.pJ},unsafeExternallySettableAttributes:new Set(["key"])});var xH=function(){var v=_.z.apply(this,arguments)||this;v.animatedActionEnabled=_.Y("web_animated_actions");v.foregroundLottieRef={};v.backgroundLottieRef={};v.forceIconOnly=!1;v.showTextWhileAnimating=!1;v.keyboardFocused=!1;v.isAnimating=!1;v.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return v};
_.f(xH,_.z);_.K=xH.prototype;_.K.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.K.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]]"}}}}}};
_.K.attached=function(){this.keyboardFocused=!1};
_.K.onYtServiceRequestSent=function(v,Q){(this.get("endpoint.subscribeEndpoint",Q)||this.get("endpoint.unsubscribeEndpoint",Q))&&this.updateSubscriptionState(!this.subscribed)};
_.K.onYtServiceRequestCompleted=function(v,Q){(v=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",Q.data))&&this.bellButton&&(this.bellButton.data=v)};
_.K.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.F6(this.hostElement)};
_.K.onPlayerSubscribe=function(v){this.isCompactRed()||v!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.K.onPlayerUnsubscribe=function(v){this.isCompactRed()||v!==this.data.channelId||this.updateSubscriptionState(!1)};
_.K.handleUpdateSubscribeButtonAction=function(v){v=_.y(v,QBV);var Q;v&&v.channelId===((Q=this.data)==null?void 0:Q.channelId)&&this.updateSubscriptionState(!!v.subscribed)};
_.K.computeButtonStyle=function(v){return this.get("style.styleType",v)||null};
_.K.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.K.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.K.updateSubscriptionState=function(v){if(v!==this.subscribed){this.set("data.subscribed",v);var Q,V=(Q=this.data)==null?void 0:Q.subscribedEntityKey;V&&this.ytdReduxBehavior.dispatch(_.dW("subscriptionStateEntity",V,{key:V,subscribed:v}));this.isCompactRed()||_.Hj(this.hostElement,"yt-subscription-changed",v);v||(_.mb(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!v),v&&this.hasBellButton&&this.startAnimation())}};
_.K.startAnimation=function(){var v=this;if(!this.isAnimating){var Q=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var V;(V=this.backgroundLottieRef.lottieEl)==null||V.goToAndPlay(0);var E;(E=this.foregroundLottieRef.lottieEl)==null||E.goToAndPlay(0);_.XT.addJob(function(){v.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.XT.addJob(function(){v.updateContainerToFitContent(!!v.subscribed,!0)},2,1500);
_.XT.addJob(function(){v.isAnimating=!1},2,Q)}};
_.K.maybeAnimateBellIcon=function(){var v=_.Up(this.hostElement).querySelector("yt-animated-icon");if(v){var Q;(Q=v.animationRef.lottieEl)==null||Q.goToAndPlay(0)}};
_.K.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.K.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.K.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var v;this.unsubscribedWidth=(v=this.subscribeButtonShape)==null?void 0:v.getBoundingClientRect().width}var Q;this.subscribedWidth=(Q=this.bellButton)==null?void 0:Q.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.K.updateContainerToFitContent=function(v,Q){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(v?(v=this.subscribedWidth,Q=this.isAnimating&&!Q,this.subscribedIconOnlyWidth===void 0||Q||(v=this.subscribedIconOnlyWidth),this.hostElement.style.width=v+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.K.clearContainerSize=function(){this.hostElement.style.width=""};
_.K.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.K.maybeSetSubscribedButtonIconOnlyWidth=function(){var v=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var Q;v.subscribedIconOnlyWidth=(Q=v.bellButton)==null?void 0:Q.getBoundingClientRect().width;requestAnimationFrame(function(){if(v.bellButton){var V;v.bellButton.textLabel=
(V=v.data)==null?void 0:V.subscribedButtonText}})})))};
_.hr.Object.defineProperties(xH.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var v;return(v=this.data)==null?void 0:v.subscribedButtonText}var Q;return this.forceIconOnly?void 0:(Q=this.data)==null?void 0:Q.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=((v=this.data)==null?void 0:(Q=v.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"subscribe",timings:V,enabled:V.length>0&&!this.subscribed,experimentEnabled:V.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!this.subscribed&&((v=this.data)==null?void 0:v.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var Q=v.renderer;var V=v.element;var E=v.subscribed;var b=v.commandController;var F=v.isOverlay;v=v.stopPropagation;var t=zoZ(Q,E);F&&(t.style="overlay");F=Object;var p=F.assign,Z;a:switch((Z=Q.style)==null?void 0:Z.styleType){case "COMPACT_GRAY":case "COMPACT_RED":Z={size:"S"};break a;default:Z={size:"M"}}var d=Sbt(Q,
E);var w=(w=E?Q.subscribedButtonText:Q.unsubscribedButtonText)?_.cg(w):void 0;return p.call(F,{},t,Z,{focused:!1,toggled:E,accessibilityLabel:d,formattedButtonText:w,onTap:qbh(Q,E,V,b,v)})}}}});
xH.prototype.onMouseDown=xH.prototype.onMouseDown;xH.prototype.onDataChanged=xH.prototype.onDataChanged;xH.prototype.observedSubscribed=xH.prototype.observedSubscribed;xH.prototype.onYtServiceRequestCompleted=xH.prototype.onYtServiceRequestCompleted;xH.prototype.onYtServiceRequestSent=xH.prototype.onYtServiceRequestSent;xH.prototype.maybeUpdateBellButtonText=xH.prototype.maybeUpdateBellButtonText;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],xH.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],xH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],xH.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xH.prototype,"data",void 0);
_.W([_.q({selectorArgs:["data.subscribedEntityKey"],selector:vZT}),_.X("design:type",Object)],xH.prototype,"subscriptionStateEntity",void 0);_.W([_.q({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.X("design:type",Boolean)],xH.prototype,"subscribed",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xH.prototype,"branded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xH.prototype,"animatedActionEnabled",void 0);
_.W([_.q(),_.X("design:type",Object)],xH.prototype,"foregroundLottieRef",void 0);_.W([_.q(),_.X("design:type",Object)],xH.prototype,"backgroundLottieRef",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xH.prototype,"overlayButton",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.X("design:type",Object)],xH.prototype,"buttonStyle",void 0);_.W([_.q(),_.X("design:type",Object)],xH.prototype,"forceIconOnly",void 0);
_.W([_.q(),_.X("design:type",Object)],xH.prototype,"showTextWhileAnimating",void 0);_.W([_.q({value:function(){return!!_.ht().resolve(_.d$(_.Yc))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.X("design:type",Boolean)],xH.prototype,"useKeyboardFocused",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xH.prototype,"keyboardFocused",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xH.prototype,"isAnimating",void 0);_.W([_.O("data.notificationPreferenceButton.*"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"hasBellButton",null);
_.W([_.ph("subscribedButtonText"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xH.prototype,"maybeUpdateBellButtonText",null);_.W([_.O("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"subscribedButtonText",null);_.W([_.O("data.timedAnimationData.animationTiming","subscribed"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"smartimationSettings",null);
_.W([_.q({reflectToAttribute:!0}),_.O("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"subscribeButtonHidden",null);_.W([_.q({reflectToAttribute:!0}),_.O("subscribed","hasBellButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"subscribeButtonInvisible",null);
_.W([_.q({reflectToAttribute:!0}),_.O("subscribed"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"unsubscribeButtonHidden",null);_.W([_.Z7("ytd-subscription-notification-toggle-button-renderer-next"),_.X("design:type",Object)],xH.prototype,"bellButton",void 0);_.W([_.Z7("#subscribe-button-shape"),_.X("design:type",HTMLElement)],xH.prototype,"subscribeButtonShape",void 0);
_.W([_.O("overlayButton","subscribed","data"),_.X("design:type",Object),_.X("design:paramtypes",[])],xH.prototype,"buttonShape",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],xH.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],xH.prototype,"onYtServiceRequestCompleted",null);
_.W([_.ph("subscribed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xH.prototype,"observedSubscribed",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xH.prototype,"onDataChanged",null);_.W([_.tM("mousedown"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xH.prototype,"onMouseDown",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],xH);
_.B(xH,"ytd-subscribe-button-renderer",function(){if(KjZ!==void 0)return KjZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return KjZ=v},{mode:1});var BI=function(){var v=_.z.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.f(BI,_.z);BI.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],BI.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],BI.prototype,"isRichGrid",void 0);_.W([_.J({is:"ytd-game-card-renderer",disableElementRegistration:!0})],BI);
_.B(BI,"ytd-game-card-renderer",function(){if(Ena!==void 0)return Ena;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Ena=v},{mode:1});var gq={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.Y("defer_menus")&&!xuZ?0:void 0,waitForSignal:"eocs"};var ibp;var Ljp;var ss=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return v};
_.f(ss,_.z);_.K=ss.prototype;_.K.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.K.onSeriesReminderStateEntityChange=function(){var v,Q,V;((v=this.eventReminderStateEntity)==null?0:v.key)&&((Q=this.seriesReminderStateEntity)==null?void 0:Q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((V=this.eventReminderStateEntity)==null?void 0:V.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.dW("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.K.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.K.onYtServiceRequestError=function(){var v;this.updateReminderStateEntitiesFromButtonState((v=this.data)==null?void 0:v.currentState)};
_.K.handleUpdateUpcomingEventReminderButtonStateCommand=function(v){if(v=_.y(v,mKQ)){var Q,V=(Q=this.data)==null?void 0:Q.targetId;V&&v.targetId===V&&_.JM(this.updateReminderStateEntitiesFromButtonState.bind(this,v.state))}};
_.K.getButtonStateFromReminderState=function(){var v;if(((v=this.seriesReminderStateEntity)==null?void 0:v.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var Q;if(((Q=this.eventReminderStateEntity)==null?void 0:Q.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var V,E;if(((V=this.seriesReminderStateEntity)==null?void 0:V.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((E=this.eventReminderStateEntity)==
null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var b;return(b=this.data)==null?void 0:b.currentState};
_.K.updateReminderStateEntitiesFromButtonState=function(v){if(v){switch(v){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":v="UPCOMING_EVENT_REMINDER_STATE_NONE";var Q="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":v="UPCOMING_EVENT_REMINDER_STATE_SINGLE";Q="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":v="UPCOMING_EVENT_REMINDER_STATE_NONE";Q="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var V;
((V=this.eventReminderStateEntity)==null?0:V.key)&&this.ytdReduxBehavior.dispatch(_.dW("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:v})));var E;((E=this.seriesReminderStateEntity)==null?0:E.key)&&this.ytdReduxBehavior.dispatch(_.dW("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:Q})))}};
_.hr.Object.defineProperties(ss.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var v=this.getButtonStateFromReminderState(),Q,V;if(v&&((Q=this.data)==null?0:(V=Q.states)==null?0:V.length))for(Q=_.L(this.data.states),V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0;if(((E=_.y(V,UKx))==null?void 0:E.state)===v)return _.y(V,UKx)}}}});
ss.prototype.onYtServiceRequestError=ss.prototype.onYtServiceRequestError;ss.prototype.onYtServiceRequestCompleted=ss.prototype.onYtServiceRequestCompleted;ss.prototype.onSeriesReminderStateEntityChange=ss.prototype.onSeriesReminderStateEntityChange;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ss.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ss.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ss.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:VlZ}),_.X("design:type",Object)],ss.prototype,"eventReminderStateEntity",void 0);
_.W([_.q({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(v,Q){return _.Fg(v.entities,"sportsSeriesReminderStateEntity",Q)}}),
_.X("design:type",Object)],ss.prototype,"seriesReminderStateEntity",void 0);_.W([_.O("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],ss.prototype,"currentButtonStateRenderer",null);_.W([_.ph("seriesReminderStateEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ss.prototype,"onSeriesReminderStateEntityChange",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ss.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ss.prototype,"onYtServiceRequestError",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],ss);
_.B(ss,"ytd-upcoming-event-reminder-button-renderer",function(){if(Ljp!==void 0)return Ljp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return Ljp=v},{mode:1});var tbN;var uL=function(){return _.z.apply(this,arguments)||this};
_.f(uL,_.z);uL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.hr.Object.defineProperties(uL.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(_.Y("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uL.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],uL.prototype,"shelfDismissal",void 0);_.W([_.O("data.responseText"),_.X("design:type",Object),_.X("design:paramtypes",[])],uL.prototype,"text",null);
_.W([_.O("data.responseText"),_.X("design:type",Object),_.X("design:paramtypes",[])],uL.prototype,"textAriaLabel",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],uL);
_.B(uL,"ytd-notification-multi-action-renderer",function(){if(tbN!==void 0)return tbN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tbN=v},{mode:1});var pXV;var j2=function(){return _.z.apply(this,arguments)||this};
_.f(j2,_.z);j2.prototype.ready=function(){var v=this;_.m9(this.hostElement).querySelector("#undo").addEventListener("tap",function(){v.onUndoTap()})};
j2.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],j2.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],j2);
_.B(j2,"ytd-notification-text-renderer",function(){if(pXV!==void 0)return pXV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pXV=v},{mode:1});var e3V;var WI=function(){var v=_.z.apply(this,arguments)||this;v.mouseOverDelayJobId=0;v.fadeInImageDelayJobId=0;v.startTimeMs=-1;v.loadingStartTimeMs=-1;v.loadingEndTimeMs=-1;v.hasVideoPreview=!1;return v};
_.f(WI,_.z);_.K=WI.prototype;_.K.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.K.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.K.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.K.showThumbnail=function(){var v=this;this.csn=_.Mo();_.O2("fmth");_.XT.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.md(_.XT,function(){v.loadingStartTimeMs=(0,_.wO)();var Q=_.m9(v.hostElement).querySelector("#thumbnail");Q.complete?v.displayMouseOverImage():Q.addEventListener("load",_.Lh(v,v.displayMouseOverImage))},150):_.VE(_.m9(this.hostElement).querySelector("#play"),"show",!0)};
_.K.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.K.onTap=function(){this.removeVideoPreview()};
_.K.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var v=this.videoId,Q=this.csn,V=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,E=this.startTimeMs,b=this.hasVideoPreview,F=_.dE(this.trackingParams),t={isMovingThumbnail:b};b&&E>0&&(V>0&&(t.movingThumbnailLoadingDurationMs=Math.round(V)),t.durationHoveredMs=Math.round((0,_.wO)()-E));v&&(t.videoId=v);_.jP(Q,F,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:t});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.K.removeVideoPreview=function(){_.XT.cancelJob(this.mouseOverDelayJobId);_.XT.cancelJob(this.fadeInImageDelayJobId);var v=_.m9(this.hostElement).querySelector("#thumbnail");_.VE(v,"fade-in",!1);v.removeEventListener("load",_.Lh(this,this.displayMouseOverImage));v=_.m9(this.hostElement).querySelector("#play");_.VE(v,"fade-in",!1);_.VE(v,"show",!1)};
_.K.displayMouseOverImage=function(){var v=_.m9(this.hostElement).querySelector("#thumbnail"),Q=_.m9(this.hostElement).querySelector("#play");this.isImageAvailable(v)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.wO)(),this.startTimeMs=(0,_.wO)(),this.fadeInImageDelayJobId=_.md(_.XT,function(){_.VE(v,"fade-in",!0)},50)):_.VE(Q,"fade-in",!0)};
_.K.computeThumbnail=function(v,Q){var V;v&&v.movingThumbnailDetails&&v.movingThumbnailDetails.thumbnails&&Q?V=_.rE(v.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):V=Q?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(V)return _.oE(V)};
_.K.isImageAvailable=function(v){return!(!v.src||v.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||v.naturalWidth===120)};
WI.prototype.onTap=WI.prototype.onTap;WI.prototype.dataChanged=WI.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],WI.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WI.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],WI.prototype,"csn",void 0);_.W([_.q(),_.X("design:type",Object)],WI.prototype,"trackingParams",void 0);
_.W([_.q(),_.X("design:type",String)],WI.prototype,"videoId",void 0);_.W([_.q(),_.X("design:type",Boolean)],WI.prototype,"isAttachedAndDataSet",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],WI.prototype,"dataChanged",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],WI.prototype,"onTap",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],WI);
_.B(WI,"ytd-moving-thumbnail-renderer",function(){if(e3V!==void 0)return e3V;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return e3V=v},{mode:1});var Zba;_.VX=function(v){this.hostElement=v;this.eventSink=null;this.eventList=[]};
_.VX.prototype.shouldForward=function(){var v,Q;return(Q=(v=this.eventSink)==null?void 0:v.isConnected)!=null?Q:document.body.contains(this.eventSink)};
_.VX.prototype.start=function(v,Q){this.eventSink&&this.stop();for(var V=0;V<v.length;V++)this.hostElement.addEventListener(v[V],_.Lh(this,this.forwardEvent));var E;this.eventSink=(E=Q.hostElement)!=null?E:Q;this.eventList=v};
_.VX.prototype.stop=function(){for(var v=0;v<this.eventList.length;v++)this.hostElement.removeEventListener(this.eventList[v],_.Lh(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.VX.prototype.forwardEvent=function(v,Q){this.shouldForward()&&(v.stopPropagation(),this.eventSink instanceof Element?_.Hj(this.eventSink,v.type,Q):_.Iy(new _.xd("eventSink is not an element")))};_.XW={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.VX(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(v,Q){this.forwarder_.start(v,Q)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var as=function(){return _.z.apply(this,arguments)||this};
_.f(as,_.z);_.K=as.prototype;_.K.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=_.r7("HTML_DIR")==="rtl"?"right":"left"};
_.K.dataChanged=function(){this.popupOpen=!1};
_.K.computeAriaLabel=function(v){return _.y(v,YCR).label};
_.K.onTap=function(v){v.stopPropagation();v.preventDefault();this.data.command&&_.ht().resolve(_.At).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.K.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.K.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
as.prototype.onPopupClosed=as.prototype.onPopupClosed;as.prototype.onPopupOpened=as.prototype.onPopupOpened;as.prototype.onTap=as.prototype.onTap;as.prototype.dataChanged=as.prototype.dataChanged;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],as.prototype,"eventForwardingBehavior",void 0);_.W([_.M(_.XU),_.X("design:type",Object)],as.prototype,"ironButtonState",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],as.prototype,"componentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],as.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:-1}),_.X("design:type",Number)],as.prototype,"tabindex",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.X("design:type",Object)],as.prototype,"ariaLabel",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],as.prototype,"disableTooltips",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],as.prototype,"popupOpen",void 0);
_.W([_.q(),_.X("design:type",Element)],as.prototype,"eventSink",void 0);_.W([_.Z7("#tooltip"),_.X("design:type",Object)],as.prototype,"tooltip",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],as.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],as.prototype,"onTap",null);
_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],as.prototype,"onPopupOpened",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],as.prototype,"onPopupClosed",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],as);
_.B(as,"ytd-thumbnail-overlay-button-renderer",function(){if(Zba!==void 0)return Zba;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Zba=v},{mode:1});var P5x;var rq=function(){return _.z.apply(this,arguments)||this};
_.f(rq,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rq.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],rq.prototype,"disableAnimation",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],rq.prototype,"rounded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],rq.prototype,"transparentBackground",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],rq.prototype,"noPadding",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],rq);
_.B(rq,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(P5x!==void 0)return P5x;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return P5x=v},{mode:1});var dGZ;var $H=function(){return _.z.apply(this,arguments)||this};
_.f($H,_.z);$H.prototype.computeIconPosition=function(v){return this.get("iconPosition",v)||null};
$H.prototype.computeIconStyle=function(v){return this.get("iconStyle",v)||null};
$H.prototype.computeIsIconStyleFilled=function(v){if(!v)return!1;var Q;return v.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((Q=v.icon)==null?void 0:Q.iconType)==="ERROR_BLACK"};
_.W([_.q(),_.X("design:type",Object)],$H.prototype,"data",void 0);_.W([_.q({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.X("design:type",Object)],$H.prototype,"iconPosition",void 0);_.W([_.q({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.X("design:type",Object)],$H.prototype,"iconStyle",void 0);_.W([_.q({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],$H.prototype,"iconStyleFilled",void 0);
_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],$H);
_.B($H,"ytd-thumbnail-overlay-icon-renderer",function(){if(dGZ!==void 0)return dGZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dGZ=v},{mode:1});var h38;var Is=function(){return _.z.apply(this,arguments)||this};
_.f(Is,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Is.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Is);
_.B(Is,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(h38!==void 0)return h38;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return h38=v},{mode:1});var wXQ;var HI=function(){var v=_.z.apply(this,arguments)||this;v.isPreviewLoading=!1;return v};
_.f(HI,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],HI.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],HI.prototype,"isPreviewLoading",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],HI);
_.B(HI,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(wXQ!==void 0)return wXQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wXQ=v},{mode:1});var AHA;var ms=function(){return _.z.apply(this,arguments)||this};
_.f(ms,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ms.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],ms);
_.B(ms,"ytd-thumbnail-overlay-pinking-renderer",function(){if(AHA!==void 0)return AHA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return AHA=v},{mode:1});var kkR;var Us=function(){var v=_.z.apply(this,arguments)||this;v.disableTooltips=!1;v.isLoading=!1;v.useExpandableTooltip=!1;v.toggled=!1;v.hovered=!1;v.mouseoverDelayJobId=0;v.toggleDelayJobId=0;v.expandAnimationDelayJobId=0;return v};
_.f(Us,_.z);_.K=Us.prototype;_.K.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");_.m9(this.hostElement).querySelector("#tooltip").position=_.r7("HTML_DIR")==="rtl"?"right":"left"};
_.K.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.XT.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.XT.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.XT.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.K.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.XT.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.XT.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.XT.cancelJob(this.expandAnimationDelayJobId)};
_.K.computeIcon=function(v,Q,V){return(v=V?Q:v)&&v.iconType?_.VK(v.iconType):void 0};
_.K.computeAriaLabel=function(v,Q,V){return _.y(V?Q:v,YCR).label};
_.K.computeTooltip=function(v,Q,V){return V?Q:v};
_.K.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.K.computeIconOnHover=function(v,Q){if((v==null?0:v.iconType)&&!Q)return _.VK(v.iconType)};
_.K.onTap=function(v){var Q=this;v.stopPropagation();v.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(v=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(v),this.useExpandableTooltip&&(this.toggleDelayJobId=_.md(_.XT,function(){Q.hovered=!1;Q.data&&!Q.data.toggledServiceEndpoint&&(Q.expandAnimationDelayJobId=_.md(_.XT,function(){Q.set("data.isToggled",
!1)},200))},2E3))};
_.K.onMouseenter=function(){var v=this;this.mouseoverDelayJobId=_.md(_.XT,function(){v.hovered=!0},300)};
_.K.onMouseleave=function(){_.XT.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.K.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.K.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.K.onServiceRequestCompleted=function(v,Q){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(Q)||this.set("data.isToggled",!this.data.isToggled)};
_.K.serviceRequestWasSuccessful=function(v){return _.y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Vd)?v.data.status==="STATUS_SUCCEEDED":!0};
Us.prototype.onServiceRequestCompleted=Us.prototype.onServiceRequestCompleted;Us.prototype.onPopupClosed=Us.prototype.onPopupClosed;Us.prototype.onPopupOpened=Us.prototype.onPopupOpened;Us.prototype.onMouseleave=Us.prototype.onMouseleave;Us.prototype.dataChanged=Us.prototype.dataChanged;_.W([_.M(_.XU),_.X("design:type",Object)],Us.prototype,"ironButtonState",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Us.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Us.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Us.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.X("design:type",Object)],Us.prototype,"ariaLabel",void 0);_.W([_.q(),_.X("design:type",Object)],Us.prototype,"disableTooltips",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Us.prototype,"popupOpen",void 0);_.W([_.q(),_.X("design:type",Object)],Us.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Element)],Us.prototype,"eventSink",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Us.prototype,"useExpandableTooltip",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.X("design:type",Object)],Us.prototype,"toggled",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Us.prototype,"hovered",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.X("design:type",Object)],Us.prototype,"iconOnHover",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Us.prototype,"dataChanged",null);
_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Us.prototype,"onMouseleave",null);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Us.prototype,"onPopupOpened",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Us.prototype,"onPopupClosed",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],Us.prototype,"onServiceRequestCompleted",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Us);
_.B(Us,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(kkR!==void 0)return kkR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return kkR=v},{mode:_.mV("kevlar_poly_si_batch_j053")?1:2});var TMN;var Y3N=_.x(function(v){var Q=v.data;var V=v.thumbnailSize;var E=function(){return Q().enableSegmentView};
return _.P("yt-thumbnail-overlay-progress-bar-view-model",{class:_.QZ("ytThumbnailOverlayProgressBarHost",function(){return JOB(V==null?void 0:V())})},_.P(_.h,{cond:E,
then:function(){return _.P("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.P("div",{class:_.Yl("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+Q().startPercent+"%"}}),_.P("div",{class:_.Yl("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+Q().segmentDurationPercent+"%"}},_.P("div",{class:_.Yl("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.P("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.P("div",null," ",function(){return Q().segmentLabel})),_.P("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.P("div",{class:_.Yl("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.P(_.h,{cond:function(){return!E()&&Q().startPercent},
then:function(){var b={};return _.P("div",{class:_.Yl("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(b.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.Y("web_enable_modern_progress_bar_overlay"),b))},_.P("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+Q().startPercent+"%"}}))}}))},"Fa");
Y3N.idomCompat=!0;var yHV=_.x(function(v){var Q=_.K4(),V=_.Z1(function(b){var F,t,p;a:{var Z=(F=v.data())==null?void 0:F.animationActivationTargetId;F=((t=v.data())==null?void 0:t.animationActivationEntityKey)||"";t=(p=v.data())==null?void 0:p.animationActivationEntitySelectorType;if(F&&Z)switch(t){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":b=_.VZ(b,F);p=_.ht().resolve(_.d$(_.lJ));Z=!!(b&&b.videoId===Z&&(p==null?0:p.isMiniplayerActive()));Z={activated:Z,playAnimation:Z&&b.playerState==="PLAYER_STATE_PLAYING"};
break a}Z=void 0}return Z});
_.uH(function(){var b;if((b=V())==null?0:b.activated){var F;if((F=V())==null?0:F.playAnimation){var t;(t=Q.lottieEl)==null||t.goToAndPlay(0)}else{var p;(p=Q.lottieEl)==null||p.goToAndStop(0)}}},"DbQiXd");
var E=function(){var b,F=!((b=V())==null||!b.activated);if(v.data()){b=v.data();var t=void 0;b.icon&&(t=_.FZt(b.icon),t=Zk0(t));var p=void 0,Z;if((Z=b.backgroundColor)==null?0:Z.lightTheme){var d;p={backgroundColor:M2((d=b.backgroundColor)==null?void 0:d.lightTheme,"0.8")}}if(b.text||t||F){if(F&&b.lottieData&&Q){d=b.lottieData;var w,A,k;Z={animationConfig:{name:d.url,path:d.url,autoplay:(w=d.settings)==null?void 0:w.autoplay,loop:(k=(A=d.settings)==null?void 0:A.loop)!=null?k:!0},animationRef:Q}}else Z=
void 0;if(F)w=17;else b:switch(b.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":w=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":w=19;break b;default:w=17}F={type:w,text:F&&b.animatedText?b.animatedText:b.text,icon:t,customColors:p,animation:Z}}else F=void 0}else F=void 0;return F};
return _.P("yt-thumbnail-badge-view-model",{class:_.QZ("ytThumbnailBadgeViewModelHost",v.class)},_.P(_.h,{cond:E,then:function(){return _.P(_.KP,{data:function(){return E()}})}}))},"Ha");var cH8=_.x(function(v){var Q={},V={};return _.P("yt-thumbnail-bottom-overlay-view-model",{class:_.QZ("ytThumbnailBottomOverlayViewModelHost",(Q.ytThumbnailBottomOverlayViewModelHostBackground=function(){return v.data().enableGradientBackground},Q))},_.P(_.Pw,{data:function(){return v.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(E){return _.P(Y3N,{data:E.data,
thumbnailSize:v.thumbnailSize})}}),_.P("div",{class:_.QZ("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var E;
return NdS((E=v.thumbnailSize)==null?void 0:E.call(v))},(V.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var E;
return(E=v.isClip)==null?void 0:E.call(v)},V.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var E;
return!_.Y("web_enable_modern_progress_bar_overlay")&&((E=v.thumbnailSize)==null?void 0:E.call(v))==="small"},V))},_.P(_.Pw,{data:function(){return v.data().badge}},{thumbnailBadgeViewModel:function(E){return _.P(yHV,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.P(_.Pw,{data:function(){return v.data().badges}},{thumbnailBadgeViewModel:function(E){return _.P(yHV,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
cH8.idomCompat=!0;_.ad(cH8,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Wg,thumbnailSize:_.Wg,isClip:_.Wg}});var a$m={calledOnce:!1,state:"visible"},rOr={calledOnce:!1,state:"hidden"};var vy=_.x(function(v){var Q=v.data;var V=v.className;v=v.alwaysShow;var E=_.gZG(),b={};return _.P("thumbnail-hover-overlay-view-model",{el:_.ud(_.C4(function(){return Q().rendererContext})),
class:_.QZ("ytThumbnailHoverOverlayViewModelHost",V,(b.ytThumbnailHoverOverlayViewModelHostForceHover=v,b)),"aria-label":function(){var F;return(F=_.y(Q().rendererContext,_.ds))==null?void 0:F.label},
role:function(){return _.f4(Q().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.f4(Q().rendererContext)!==void 0?0:void 0},
"on:keypress":E},_.P("div",{class:_.QZ("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(Q().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var F="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:F="ytThumbnailHoverOverlayViewModelStyleCover"}return F})},_.P(_.h,{cond:function(){return Q().icon},
then:function(F){return _.P(_.gE,{data:F,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.P(_.h,{cond:function(){return Q().text},
then:function(F){return _.P(_.tD,{text:F,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
vy.idomCompat=!0;var fmx=_.x(function(v){var Q=v.data;return _.P(_.Pw,{data:function(){return Q==null?void 0:Q().overlays}},{thumbnailHoverOverlayViewModel:vy})},"La");
fmx.idomCompat=!0;var GkZ={};var C5V=_.x(function(v){var Q=v.data;var V=v.image;var E=v.state;var b=v.iconType;var F=v.overlays;var t=v.isOverlay;var p=_.Pa("div");v=_.L(_.Ge(!0,void 0,"AA4e7b"));var Z=v.next().value,d=v.next().value,w=function(){return!!Q().onTap},A=_.Wn(b,"LIVE");
_.uH(function(){var T=Q();requestAnimationFrame(function(){if(p.value===null)var c=!0;else{var C=p.value;c=T.badgeText;var R=I$B(T.size);c in GkZ?C=GkZ[c]:(C=C.clientWidth,GkZ[c]=C);(c=C>R)?p.value.style.display="none":p.value.style.visibility="visible"}d(c)})},"vNdN8b");
var k=function(){var T={};return T["yt-spec-avatar-shape__image"]=!0,T["yt-spec-avatar-shape__image--ads-app"]=Q().type===1,T["yt-spec-avatar-shape__image--inscribed-square"]=Q().type===2,T};
return _.P("yt-avatar-shape",null,_.P("div",{el:_.ud(mHt(w,{keydown:function(T){if(T.key==="Enter"){var c;(c=T.currentTarget)==null||c.click()}},
click:function(T){var c,C;return void((C=(c=Q()).onTap)==null?void 0:C.call(c,T))}})),
class:function(){var T={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},c=Q();T=(T[c.clusterLayoutConfig?QPS(c.clusterLayoutConfig):VYb(c.size)]=!0,T["yt-spec-avatar-shape__button--tappable"]=w(),T);(c=Q().avatarButtonCustomClassName)&&(T[c]=!0);return _.Yl(T)},
"aria-label":function(){return w()?Q().accessibilityText:""},
role:function(){return w()?"button":void 0},
tabindex:function(){return w()?0:void 0}},_.P("div",{class:function(){var T,c=Q(),C=E==null?void 0:E(),R=t==null?void 0:t(),l=!((T=c.decorations)==null||!T.includes(2)||c.size!=="medium"&&c.size!=="large"),S=c.size==="tiny"||c.size==="extra-small",a,g,u,r,v9={};
T=(v9["yt-spec-avatar-shape--live-ring"]=!!(((a=c.decorations)==null?0:a.includes(0))&&bRB(c.size)),v9["yt-spec-avatar-shape--stories-watched"]=l&&!(C==null||!C.storiesWatched),v9["yt-spec-avatar-shape--stories-unwatched"]=l&&!(C==null?0:C.storiesWatched),v9["yt-spec-avatar-shape--background-border"]=F8Z(c.decorations)&&!S,v9["yt-spec-avatar-shape--background-border-thin"]=F8Z(c.decorations)&&S,v9["yt-spec-avatar-shape__on-select-border"]=!((g=c.decorations)==null||!g.includes(4)),v9["yt-spec-avatar-shape__white-border"]=
!((u=c.decorations)==null||!u.includes(5)),v9["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((r=c.decorations)==null?0:r.includes(5))&&S),v9["yt-spec-avatar-shape--is-overlay"]=!!R,v9);return _.Yl(T)},
style:function(){a:{var T=Q().clusterLayoutConfig;if(T){b:{var c=T.numAvatarsInCluster;var C=T.avatarIndex;if(C!==c-1){switch(T.clusterSize){case "small":T="32";break;case "medium":T="36";break;case "40":T="40";break;default:c=void 0;break b}c="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+T+"x"+T+"_avatars_"+c+"_index_"+C+".svg"}else c=void 0}if(c){c=_.iP({"-webkit-mask-image":"url("+c+")","mask-image":"url("+c+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}c=void 0}return c}},_.P("div",{class:function(){var T={};
var c=Q();T=(T[c.clusterLayoutConfig?UHT(c.clusterLayoutConfig):vgB(c.size)]=!0,T["yt-spec-avatar-shape--no-margin"]=F8Z(Q().decorations),T["yt-spec-avatar-shape--square"]=Q().type===2,T);return _.Yl(T)}},_.P(_.gE,{data:V,
alt:function(){return!w()&&Q().accessibilityText?Q().accessibilityText:""},
targetWidth:function(){return Eg0(Q().size)},
targetHeight:function(){return Eg0(Q().size)},
className:function(){return _.Yl(k())}}),_.P(_.h,{cond:function(){var T;
return((T=Q().decorations)==null?void 0:T.includes(0))&&bRB(Q().size)},
then:function(){return _.P("div",{class:function(){var T={};T=(T["yt-spec-avatar-shape__live-badge"]=!0,T["yt-spec-avatar-shape__live-badge--badge-small"]=Q().size==="small",T["yt-spec-avatar-shape__live-badge--badge-medium"]=Q().size==="medium"||Q().size==="48",T["yt-spec-avatar-shape__live-badge--badge-large"]=Q().size==="large",T["yt-spec-avatar-shape__live-badge--badge-extra-large"]=Q().size==="extra-large"||Q().size==="extra-extra-large"||Q().size==="giant",T);return _.Yl(T)}},_.P(_.h,{cond:function(){return Q().badgeText},
then:function(T){return _.P("div",{class:"yt-spec-avatar-shape__badge-text",el:p},T)}}),_.P(_.h,{cond:Z,
then:function(){return _.P("div",{class:"yt-spec-avatar-shape__badge-icon"},_.P(_.L_,{icon:A,size:function(){a:switch(Q().size){case "extra-large":var T=16;break a;default:T=13}return T}}))}}))}}),_.P(_.h,{cond:function(){var T,c;
return((T=Q().decorations)==null?void 0:T.includes(1))||((c=Q().decorations)==null?void 0:c.includes(0))&&!bRB(Q().size)},
then:function(){return _.P("div",{class:function(){var T=Q(),c,C,R={};var l=(R["yt-spec-avatar-shape__live-dot"]=!((c=T.decorations)==null||!c.includes(0)||bRB(T.size)),R["yt-spec-avatar-shape__new-content"]=!((C=T.decorations)==null||!C.includes(1)),R);return _.Yl(l)}})}}),_.P(_.h,{cond:function(){return!!F},
then:function(){return _.P("div",{class:function(){var T={};T=Object.assign((T["yt-spec-avatar-shape__image-overlays"]=!0,T),k());return _.Yl(T)}},F==null?void 0:F())}})))))},"Oa");
C5V.idomCompat={callbacks:{overlays:!0}};_.QO=_.x(function(v){function Q(){V().endpoint&&_.nx(V().endpoint)}
var V=v.data;var E=v.decorations;var b=v.avatarButtonCustomClassName;var F=v.isOverlay;var t=v.clusterLayoutConfig;return _.P("avatar-view-model",null,_.P(_.h,{cond:function(){return V().image},
then:function(p){return _.P(C5V,{data:function(){return iR9({data:V(),onTap:V().endpoint?Q:void 0,decorations:E==null?void 0:E(),badgeText:void 0,accessibilityText:V().accessibilityText,avatarButtonCustomClassName:b==null?void 0:b(),clusterLayoutConfig:t==null?void 0:t()})},
image:p,iconType:"RADAR_LIVE",overlays:function(){return _.P(fmx,{data:V})},
isOverlay:F})}}))},"Pa");
_.QO.idomCompat=!0;_.VO=_.x(function(v){var Q=v.data;v=v.className;var V=_.Pa("yt-decorated-avatar-view-model"),E=function(){return _.y(Q().avatar,_.Ou)},b=_.Rr(function(){var F,t=Q(),p=E(),Z=_.f4(Q().rendererContext),d=(F=V.value)!=null?F:void 0,w;
if(p){d={data:t,avatar:p,onTap:Z,element:d};F=d.data;t=d.avatar;p=d.onTap;Z=d.element;d=d.commandController;p=p?exb(p,Z,d):void 0;Z=[];F.liveData&&Z.push(0);var A;d=(A=F.liveData)==null?void 0:A.liveBadgeText;A=(w=_.y(F.rendererContext,_.ds))==null?void 0:w.label;w=iR9({data:t,onTap:p,decorations:Z,badgeText:d,accessibilityText:A?A:F.a11yLabel})}else w={size:"medium"};return w},void 0,"c00kWd");
return _.P("yt-decorated-avatar-view-model",{class:_.QZ("ytDecoratedAvatarViewModelHost",v),el:V},_.P(_.h,{cond:function(){var F;return(F=E())==null?void 0:F.image},
then:function(F){return _.P(C5V,{data:b,image:F,iconType:"RADAR_LIVE",overlays:function(){return _.P(fmx,{data:E})}})}}))},"Qa");
_.VO.idomCompat=!0;_.Em=_.x(function(v){var Q=function(){var p;return Object.assign({},v.data(),(p=v.overrides)==null?void 0:p.call(v))},V=function(){return _.Gw(Q().rendererContext)},E=function(){var p=Q().avatars,Z,d;
return(d=(Z=(p==null?0:p[0])?_.y(p[0],_.Ou):void 0)==null?void 0:Z.avatarImageSize)!=null?d:"AVATAR_SIZE_UNKNOWN"},b=function(){return pSS(Q())},F=function(){if(Q().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var p=void 0;
else if((p=v.decorations)==null?0:p.call(v))p=v.decorations();else{p=Q();var Z=0;p.avatars&&(Z+=p.avatars.length);p.decoratedText&&(Z+=1);p=Z>1?[3]:[]}return p},t={};
return _.P("yt-avatar-stack-view-model",{el:_.ud(_.C4(function(){return Q().rendererContext})),
class:_.QZ("yt-avatar-stack-view-model",v.className,(t["yt-avatar-stack-view-model--tappable"]=V,t["yt-avatar-stack-view-model--is-overlay"]=v.isOverlay,t["yt-avatar-stack-view-model--medium-text"]=v.useMediumText,t)),tabindex:function(){return V()?0:void 0},
role:function(){return V()?"link":void 0},
"aria-label":function(){var p,Z;return(Z=(p=_.y(Q().rendererContext,_.ds))==null?void 0:p.label)!=null?Z:""}},_.P(_.h,{cond:function(){var p;
return Q().avatars&&!((p=v.hideAvatar)==null?0:p.call(v))},
then:function(){return _.P("div",{class:"yt-avatar-stack-view-model__avatars"},_.P(_.h,{cond:function(){return Q().decoratedText},
then:function(p){var Z={};return _.P("div",{class:_.QZ("yt-avatar-stack-view-model__text-container",(Z["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return E()==="AVATAR_SIZE_XXS"||E()==="AVATAR_SIZE_XS"},Z["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var d;
return((d=v.isOverlay)==null?void 0:d.call(v))&&(E()==="AVATAR_SIZE_XXS"||E()==="AVATAR_SIZE_XS")},Z)),
style:_.iP({width:function(){return b().avatarSizeInPx+"px"},
height:function(){return b().avatarSizeInPx+"px"}})},_.P(_.tD,{text:p,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.P("div",{style:function(){return _.iP(b().avatarStackStyle)()},
class:function(){return b().avatarStackClass}},_.P(_.Pw,{data:function(){return b().avatars.reverse()}},{avatarViewModel:function(p,Z){return _.P("div",{style:function(){var d,w;
return _.iP((w=(d=b()).avatarStyle)==null?void 0:w.call(d,Z()))()},
class:function(){return b().avatarClass}},_.P(_.QO,{data:p.data,
decorations:F,avatarButtonCustomClassName:function(){return b().avatarButtonCustomClassName},
isOverlay:v.isOverlay,clusterLayoutConfig:function(){var d,w;return(w=(d=b()).clusterLayoutConfig)==null?void 0:w.call(d,Z())}}))},
decoratedAvatarViewModel:function(p,Z){return _.P("div",{style:function(){var d,w;return _.iP((w=(d=b()).avatarStyle)==null?void 0:w.call(d,Z()))()},
class:function(){return b().avatarClass}},_.P(_.VO,{data:p.data}))}})))}}),_.P(_.h,{cond:function(){return Q().text},
then:function(p){return _.P(_.tD,{text:p,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.Em.idomCompat=!0;_.ad(_.x(function(v){var Q=v.data;var V=v.thumbnailSize;return _.P("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.P("div",{class:_.QZ("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return ZRb(V==null?void 0:V())})},_.P(_.Pw,{data:function(){return Q().avatarStack}},{avatarStackViewModel:function(E){return _.P(_.Em,{data:E.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.pJ,
thumbnailSize:_.pJ}});var Mbp=_.x(function(v){v=_.o1(v,{hidden:!1});var Q=v.data;v=v.hidden;return _.P("yt-thumbnail-overlay-title-view-model",{class:_.QZ("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(Q().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var V="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:V="ytThumbnailOverlayTitleViewModelPositionTop"}return V}),
hidden:v},_.P(_.h,{cond:function(){return Q().leadingContent},
then:function(V){return _.P("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.P(_.Pw,{data:V},{decoratedAvatarViewModel:_.VO}))}}),_.P("div",null,_.P(_.tD,{text:function(){return Q().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(){return _.P(_.tD,{text:function(){return Q().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
Mbp.idomCompat=!0;_.ad(Mbp,"yt-thumbnail-overlay-title-view-model",{props:{data:_.pJ,hidden:_.pJ}});_.ObX=_.x(function(v){v=_.o1(v,{isClip:!1});var Q=v.data,V=v.thumbnailSize,E={};return _.P("yt-thumbnail-overlay-badge-view-model",{class:_.QZ("yt-thumbnail-overlay-badge-view-model",function(){a:switch(Q().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var b="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:b="yt-thumbnail-overlay-badge-view-model--bottom-end"}return b},function(){return PmZ(V==null?void 0:V())},(E["yt-thumbnail-overlay-badge-view-model--clip"]=v.isClip,
E))},_.P(_.Pw,{data:function(){return Q().thumbnailBadges}},{thumbnailBadgeViewModel:function(b){return _.P(yHV,{data:b.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.ObX.idomCompat=!0;_.ad(_.ObX,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.pJ,thumbnailSize:_.pJ,isClip:_.pJ}});var DGA=_.x(function(v){var Q=v.data;v=v.hidden;var V=_.Rr(function(){return Q().indicatorCount||0},void 0,"AbKnMc"),E={};
return _.P("yt-page-indicator-view-model",{class:_.QZ("ytPageIndicatorViewModelHost",(E.ytPageIndicatorViewModelIndicatorHidden=function(){return!Q().indicatorCount},E)),
hidden:v},_.P(_.xb,{each:function(){return Array(V())}},function(b,F){var t={};
return _.P("div",{class:_.QZ("ytPageIndicatorViewModelIndicator",(t.ytPageIndicatorViewModelIndicatorSelected=function(){return Q().selectedIndex===F()},t))})}))},"Va");
DGA.idomCompat=!0;_.ad(DGA,"yt-page-indicator-view-model",{props:{data:_.pJ,hidden:_.pJ}});var bF=function(){var v=_.z.apply(this,arguments)||this;v.eventSink=function(){return v};
v.disableInteraction=!1;v.noRoundedCorners=!1;v.isPreviewLoading=!1;v.isOriginalAspectRatio=!1;v.computedObjectFit=!1;v.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return v};
_.f(bF,_.z);_.K=bF.prototype;
_.K.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:_.Y("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"}}};
_.K.onImageLoaded=function(){this.loaded=!0};
_.K.onImageUnloaded=function(){this.loaded=!1};
_.K.computeRichThumbnail=function(v,Q,V,E){if(v&&Q&&!E&&!_.Y("disable_moving_thumbs_handling")&&!V)return Q};
_.K.computeImageWidth=function(v,Q){return Q||9999};
_.K.computeIsOriginalAspectRatio=function(v){return v};
_.K.computeIsLive=function(v){if(v==null?0:v.badges)for(var Q=0;Q<v.badges.length;Q++){var V=v.badges[Q];if(V.metadataBadgeRenderer&&V.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(v==null?0:v.thumbnailOverlays)for(Q=0;Q<v.thumbnailOverlays.length;Q++)if(V=v.thumbnailOverlays[Q],V.thumbnailOverlayTimeStatusRenderer&&V.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.K.computeObjectFit=function(v,Q){return Q||(v?"CONTAIN":"")};
_.K.computeNavigationEndpoint=function(v,Q,V){return v?Q:V};
_.K.computeHasClip=function(v){v=_.L(v||[]);for(var Q=v.next();!Q.done;Q=v.next())if(Q.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.K.computeOverlayColor=function(v){var Q;return(v==null?0:(Q=v.darkColorPalette)==null?0:Q.section2Color)?v.darkColorPalette.section2Color:v==null?void 0:v.sampledThumbnailColor};
_.hr.Object.defineProperties(bF.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.x8o(this.width)}}});
bF.prototype.onImageUnloaded=bF.prototype.onImageUnloaded;bF.prototype.onImageLoaded=bF.prototype.onImageLoaded;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(KqV),_.X("design:type",Object)],bF.prototype,"ytdThumbnailBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],bF.prototype,"componentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],bF.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bF.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],bF.prototype,"circular",void 0);
_.W([_.q({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.X("design:type",Object)],bF.prototype,"richThumbnail",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.X("design:type",Boolean)],bF.prototype,"hasClip",void 0);_.W([_.q(),_.X("design:type",Object)],bF.prototype,"eventSink",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],bF.prototype,"queued",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],bF.prototype,"richGridThumbnail",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],bF.prototype,"useExpandableTooltip",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],bF.prototype,"useUntranslatedNavigationEndpoint",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bF.prototype,"disableInteraction",void 0);
_.W([_.q({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.X("design:type",Object)],bF.prototype,"computedNavigationEndpoint",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],bF.prototype,"nowPlayingEqualizerOnly",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],bF.prototype,"hidePlaybackStatus",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],bF.prototype,"objectFit",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bF.prototype,"noRoundedCorners",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],bF.prototype,"watchFeedThumbnail",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bF.prototype,"isPreviewLoading",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.X("design:type",Object)],bF.prototype,"isOriginalAspectRatio",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.X("design:type",Object)],bF.prototype,"computedObjectFit",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.X("design:type",Boolean)],bF.prototype,"isLiveVideo",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],bF.prototype,"loaded",void 0);_.W([_.q({computed:"computeOverlayColor(data.thumbnail)"}),_.X("design:type",Object)],bF.prototype,"overlayColor",void 0);_.W([_.q(),_.X("design:type",Boolean)],bF.prototype,"minimizePipBreakages",void 0);_.W([_.q({selector:_.Nxb}),_.X("design:type",Boolean)],bF.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.q(),_.X("design:type",Number)],bF.prototype,"width",void 0);
_.W([_.O("inlinePreviewIsEnabled"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],bF.prototype,"isPreviewDisabled",null);_.W([_.O("width"),_.X("design:type",String),_.X("design:paramtypes",[])],bF.prototype,"thumbnailSize",null);_.W([_.tM("image-loaded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bF.prototype,"onImageLoaded",null);
_.W([_.tM("image-unloaded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bF.prototype,"onImageUnloaded",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-thumbnail"})],bF);
var R3q=_.Hn()(bF,"ytd-thumbnail",function(){if(TMN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);TMN=v}v=TMN;return v},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var wSZ=function(v){var Q=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15109_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15109_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(V){nnX(Q,V)};
this.onLockupMouseLeaveFn=function(V){V=V.relatedTarget;var E,b;((E=document.getElementsByTagName("ytd-video-preview"))==null?0:(b=E.item(0))==null?0:b.contains(V))||(Q.terminateVideoPreview(),F3(Q))};
this.onThumbnailMouseDownFn=function(){Q.terminateVideoPreview();F3(Q)};
this.onTouchStart=function(){Q.JSC$15109_touched=!0};
this.mediaRenderer=v.mediaRenderer;this.thumbnailElement=v.thumbnailElement;this.lockupElement=v.lockupElement;this.videoPreviewOptsInput=v.videoPreviewOpts;lmp(this);K5(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)):
_.Iy(Error("Fh")):_.Iy(Error("Gh")):q3N(this)},ji=function(v){q3N(v);
var Q;(Q=v.lockupElement)==null||Q.removeEventListener("mouseenter",v.onMouseMoveFn);var V;(V=v.lockupElement)==null||V.removeEventListener("mouseleave",v.onLockupMouseLeaveFn);var E;(E=v.lockupElement)==null||E.removeEventListener("touchstart",v.onTouchStart);var b;(b=v.thumbnailElement)==null||b.removeEventListener("mousedown",v.onThumbnailMouseDownFn);F3(v)},lmp=function(v){v.inlinePreviewIsEnabledForUser=_.oF().getState().ui.inlinePreviewIsEnabled;
v.unsubscribeFromInlinePreviewIsEnabled=_.Wm(_.oF(),_.Nxb,function(Q){(v.inlinePreviewIsEnabledForUser=Q)||F3(v)});
v.JSC$15109_unsubscribeFromInlinePreviewIsActive=_.Wm(_.oF(),_.JDZ,function(Q){(v.inlinePreviewIsActive=Q)||F3(v)})},q3N=function(v){v.unsubscribeFromInlinePreviewIsEnabled();
v.unsubscribeFromInlinePreviewIsEnabled=function(){};
v.JSC$15109_unsubscribeFromInlinePreviewIsActive();v.JSC$15109_unsubscribeFromInlinePreviewIsActive=function(){}},nnX=function(v,Q){Q.buttons>0||(Q=_.T_("kevlar_lockup_hover_delay",-1),v.JSC$15109_touched&&Q>=0?(_.XT.cancelJob(v.videoPreviewJobId),v.videoPreviewJobId=_.md(_.XT,function(){S3X(v)},Q),v.JSC$15109_touched=!1):S3X(v))},hiG=function(v){v.videoPreviewJobId=_.md(_.XT,function(){return _.e(function(Q){return Q.yield(z3Z(v,{isAutoplay:!0}),0)})})},S3X=function(v){!v.previewTriggered&&K5(v)&&
(v.inlinePreviewIsActive&&v.terminateVideoPreview(),v.previewTriggered=!0,v.mediaRenderer.isInlinePreviewTriggered=!0,_.XT.cancelJob(v.videoPreviewJobId),v.videoPreviewJobId=_.md(_.XT,function(){return _.e(function(Q){return Q.yield(z3Z(v),0)})}))},z3Z=function(v,Q){Q=Q===void 0?{}:Q;
var V=Q.isAutoplay===void 0?!1:Q.isAutoplay;var E,b,F,t;return _.e(function(p){if(p.nextAddress==1){if(!K5(v))return p.return();E=v.getVideoPreviewOpts();if(!E)return p.return();V&&(E.isAutoplay=!0);return(F=(b=_.Un(v.mediaRenderer.hostElement,"yt-open-video-preview-action",[E]))&&b[0])?p.yield(b[0],3):p.jumpTo(2)}p.nextAddress!=2&&(F=p.yieldResult===1);if(F){var Z=(t=v.mediaRenderer)==null?void 0:t.data;Z&&(hxB(Z)?delete Z.inlinePlayerData:"inlinePlaybackEndpoint"in Z&&delete Z.inlinePlaybackEndpoint)}_.q1(p)})};
wSZ.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var v,Q;if((Q=(v=this.videoPreviewOptsInput)==null?void 0:v.videoPreviewData)!=null)v=Q;else if(v=this.mediaRenderer.data)if(hxB(v))v={inlinePlaybackEndpoint:_.MQ(v.inlinePlayerData.onVisible),navigationEndpoint:_.MQ(v.onTap),thumbnail:"image"in v?v.image:v.thumbnail,thumbnailOverlays:void 0,accessibilityText:dwE(v)};else if("multipleInlinePlaybackEndpoint"in v){var V=_.y(_.y(v.multipleInlinePlaybackEndpoint,NmZ),xn8);if(V!=
null&&V.playerDescriptors){Q=[];V=_.L(V.playerDescriptors);for(var E=V.next();!E.done;E=V.next())E=E.value,Q.push({inlinePlaybackEndpoint:E.inlinePlaybackEndpoint,navigationEndpoint:E.navigationEndpoint,thumbnail:E.thumbnail,thumbnailOverlays:E.thumbnailOverlays,accessibilityText:dwE(v)});v=Q}else v=void 0}else v={inlinePlaybackEndpoint:v.inlinePlaybackEndpoint,navigationEndpoint:v.navigationEndpoint,thumbnail:v.thumbnail,thumbnailOverlays:v.thumbnailOverlays,accessibilityText:dwE(v)};else v=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:v,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var K5=function(v){var Q;if(Q=v.inlinePreviewIsEnabledForUser)Q=(v=v.mediaRenderer.data)?"inlinePlaybackEndpoint"in v&&v.inlinePlaybackEndpoint||hxB(v)&&v.inlinePlayerData||"multipleInlinePlaybackEndpoint"in v&&v.multipleInlinePlaybackEndpoint?!0:!1:!1;return Q};
wSZ.prototype.terminateVideoPreview=function(){_.mb(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var F3=function(v){_.XT.cancelJob(v.videoPreviewJobId);v.inlinePreviewIsActive=!1;v.previewTriggered=!1;v.mediaRenderer.isInlinePreviewTriggered=!1};var JHV=_.s$(["#"]),iF=function(){var v=_.z.apply(this,arguments)||this;v.isDisabled=!1;return v};
_.f(iF,_.z);_.K=iF.prototype;
_.K.configureRendererStamper=function(){return{"data.menu":gq,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.getMetadata=function(v){var Q=[];if(v.metadataText&&Object.keys(v.metadataText).length>0){var V=this.ytRendererBehavior.getSimpleString(v.metadataText);v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&(V=_.kl(V,Number(v.upcomingEventData.startTime)));Q.push(V)}else v.shortViewCountText&&Q.push(this.ytRendererBehavior.getSimpleString(v.shortViewCountText)),v.publishedTimeText&&Q.push(this.ytRendererBehavior.getSimpleString(v.publishedTimeText)),v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&
(V=this.ytRendererBehavior.getSimpleString(v.upcomingEventData.upcomingEventText),Q.push(_.kl(V,Number(v.upcomingEventData.startTime))));return Q};
_.K.calculateBylineText=function(v){return v.shortBylineText?v.shortBylineText:v.bylineText?v.bylineText:null};
_.K.calculateIsDisabled=function(v){return!!v.isDisabled};
_.K.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v)||_.Lkh(JHV)};
_.K.onDetailsTap=function(v){var Q=this.data&&this.data.navigationEndpoint;Q&&!_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.Y("kevlar_grid_video_renderer_killswitch")?_.Hj(this.hostElement,"yt-navigate",{endpoint:Q}):this.ytComponentBehavior.resolveCommand(Q))};
_.K.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15116_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:_.m9(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.m9(this.hostElement).querySelector("ytd-thumbnail")})};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15116_inlinePreviewHoverListener)==null||ji(v)};
_.K.computeThumbnailWidth=function(v,Q){return Q&&Q>0?Q:v?360:210};
_.K.computeNumBadgesInRow=function(v){var Q;return((Q=v.badges)==null?void 0:Q.length)||0};
_.K.computeShowChannelThumbnail=function(v,Q){var V;return Q&&!!(v==null?0:(V=v.channelThumbnailSupportedRenderers)==null?0:V.channelThumbnailWithLinkRenderer)};
_.hr.Object.defineProperties(iF.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15116_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
iF.prototype.dataChanged=iF.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],iF.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.p1),_.X("design:type",Object)],iF.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],iF.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],iF.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],iF.prototype,"noEndpoints",void 0);_.W([_.q({computed:"calculateBylineText(data)"}),_.X("design:type",Object)],iF.prototype,"bylineText",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],iF.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],iF.prototype,"isDownloading",void 0);_.W([_.q({reflectToAttribute:!0,value:0}),_.X("design:type",Number)],iF.prototype,"width",void 0);_.W([_.q({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.X("design:type",Object)],iF.prototype,"isDisabled",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iF.prototype,"dataChanged",null);_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],iF.prototype,"isHovered",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],iF.prototype,"hasAttributedBylineText",null);
_.W([_.O("bylineText","hasAttributedBylineText"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],iF.prototype,"showBylineText",null);_.W([_.J({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],iF);
_.B(iF,"ytd-grid-video-renderer",function(){if(ibp!==void 0)return ibp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ibp=v},{mode:_.mV("kevlar_poly_si_batch_j047")?1:2});var NMp;var L5=function(){var v=_.z.apply(this,arguments)||this;v.roundedContainer=!0;v.skipRoundingTop=!1;v.disableTopPadding=!1;v.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");v.extractOverlay=!1;return v};
_.f(L5,_.z);L5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
L5.prototype.onClick=function(v){var Q,V=(Q=this.data)==null?void 0:Q.sourceEndpoint;!_.j$(_.uK(v),this.hostElement,["A".toString()])&&V&&_.Hj(this.hostElement,"yt-navigate",{endpoint:V})};
_.hr.Object.defineProperties(L5.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.data)==null?void 0:v.paragraphMaxLines)!=null?Q:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],L5.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],L5.prototype,"showVerticalDividers",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],L5.prototype,"roundedContainer",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],L5.prototype,"skipRoundingTop",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],L5.prototype,"disableTopPadding",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],L5.prototype,"amsterdamEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],L5.prototype,"extractOverlay",void 0);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],L5.prototype,"showMetadataAtTop",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],L5.prototype,"showMetadataBelowTitle",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.menu"),_.X("design:type",Object),_.X("design:paramtypes",[])],L5.prototype,"hasMenu",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.truncateParagraphs"),_.X("design:type",Object),_.X("design:paramtypes",[])],L5.prototype,"truncateParagraphs",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.paragraphMaxLines"),_.X("design:type",Number),_.X("design:paramtypes",[])],L5.prototype,"paragraphMaxLines",null);
_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.background"),_.X("design:type",Object),_.X("design:paramtypes",[])],L5.prototype,"background",null);_.W([_.J({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],L5);
_.B(L5,"ytd-info-panel-content-renderer",function(){if(NMp!==void 0)return NMp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return NMp=v},{mode:_.mV("kevlar_poly_si_batch_j076")?1:2});var xG8;var BMN;var gnN;var s_a;var tv=function(){return _.z.apply(this,arguments)||this};
_.f(tv,_.z);tv.prototype.computeStyle=function(v){return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tv.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],tv.prototype,"style_",void 0);_.W([_.D7({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],tv);
_.B(tv,"yt-channel-thumbnail-with-link-renderer",function(){if(s_a===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;gnN===void 0&&(gnN=document.createElement("template"));var E=gnN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);s_a=v}v=s_a;return v},{mode:2});var p5=function(){return _.z.apply(this,arguments)||this};
_.f(p5,_.z);p5.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"}}}};
p5.prototype.computeTitleStyle=function(v){return v||null};
p5.prototype.computeAvatarStyle=function(v){return v||null};
p5.prototype.computeShowNavigationButton=function(v,Q){return!(v==null||!v.navigationButton||Q)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],p5.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.X("design:type",String)],p5.prototype,"titleStyle",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.X("design:type",String)],p5.prototype,"avatarStyle",void 0);_.W([_.q(),_.X("design:type",Boolean)],p5.prototype,"hideNavigationButton",void 0);_.W([_.J({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],p5);
_.B(p5,"ytd-rich-list-header-renderer",function(){if(BMN!==void 0)return BMN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return BMN=v},{mode:_.mV("kevlar_poly_si_batch_j058")?1:2});var es=function(){return _.z.apply(this,arguments)||this};
_.f(es,_.z);es.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],es.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],es.prototype,"isSearch",void 0);_.W([_.J({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],es);
_.B(es,"ytd-preview-card-renderer",function(){if(xG8!==void 0)return xG8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xG8=v},{mode:1});var uta;var d_=function(){return _.z.apply(this,arguments)||this};
_.f(d_,_.z);d_.prototype.configureRendererStamper=function(){return{"data.menu":gq}};
d_.prototype.dataChanged=function(){var v=this.get("colorExtractionPalette.section1Color",this.data);v=_.GA(v);_.F6(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":v})};
d_.prototype.computeCardStyle=function(v){return this.get("style.value",v)||null};
d_.prototype.dataChanged=d_.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],d_.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],d_.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.X("design:type",String)],d_.prototype,"cardStyle",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d_.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],d_);
_.B(d_,"ytd-compact-channel-recommendation-card-renderer",function(){if(uta!==void 0)return uta;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return uta=v},{mode:1});var j_p;var WjN;var hv=function(){var v=_.z.apply(this,arguments)||this;v.alignAuto=!1;v.collapsed=!0;v.isToggled=!1;v.alwaysCollapsed=!1;v.canToggle=!0;v.collapsedHeight=80;v.disableToggle=!1;v.alwaysToggleable=!1;v.reversed=!1;v.shouldUseNumberOfLines=!1;v.recomputeOnResize=!1;v.canToggleJobId=0;v.lastReversed=!1;return v};
_.f(hv,_.z);_.K=hv.prototype;_.K.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.K.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.K.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var v=_.m9(this.hostElement),Q=v.childNodes,V=document.createDocumentFragment(),E=v.childNodes.length-1;E>=0;E--)_.m9(V).appendChild(Q[E]);_.Y("enable_shadydom_free_scoped_node_methods")?_.Up(this.hostElement).appendChild(V):v.appendChild(V)}};
_.K.ready=function(){var v=this;_.JM(function(){v.initChildrenObserver()},1)};
_.K.attached=function(){var v;(v=this.resizeObserver)==null||v.observe(this.content)};
_.K.detached=function(){this.detachObserver()};
_.K.toggle=function(v,Q){this.canToggle&&(this.isToggled=Q,_.Hj(this.hostElement,"yt-refit"),v&&v.stopPropagation())};
_.K.reset=function(){this.childrenChanged()};
_.K.onIronResize=function(){this.recomputeOnResize&&!_.Y("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.K.computeIsMoreVisible=function(v,Q){return v&&!Q};
_.K.computeShouldUseNumberOfLines=function(v){try{return!!v&&window.CSS.supports("-webkit-line-clamp","1")}catch(Q){}return!1};
_.K.computeIsLessVisible=function(v,Q){return v&&Q};
_.K.observeCollapsedHeightAndMaxLines=function(){var v=this.collapsedHeight,Q=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.F6(this.hostElement,{"--ytd-expander-max-lines":""+Q,"--ytd-expander-collapsed-height":""}):_.F6(this.hostElement,{"--ytd-expander-collapsed-height":v+"px","--ytd-expander-max-lines":""})};
_.K.handleMoreTap=function(v){this.disableToggle||(_.Hj(this.hostElement,"yt-expander-more-tapped"),this.toggle(v,!0))};
_.K.handleLessTap=function(v){_.Hj(this.hostElement,"yt-expander-less-tapped");this.toggle(v,!1)};
_.K.initChildrenObserver=function(){var v=this;this.observer=new MutationObserver(function(){v.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.Y("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.FK(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var Q;(Q=v.resizeThrottle)==null||Q.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.K.childrenChanged=function(){var v=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Hg(function(){v.canToggleJobId=0;v.calculateCanCollapse()})}))};
_.K.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};
_.K.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.K.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("collapsed-changed",this.collapsed))};
_.K.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("is-toggled-changed",this.isToggled))};
_.K.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("can-toggle-changed",this.canToggle))};
_.hr.Object.defineProperties(hv.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
hv.prototype.canToggleChangedForBinding=hv.prototype.canToggleChangedForBinding;hv.prototype.isToggledChangedForBinding=hv.prototype.isToggledChangedForBinding;hv.prototype.collapsedChangedForBinding=hv.prototype.collapsedChangedForBinding;hv.prototype.observeCollapsedHeightAndMaxLines=hv.prototype.observeCollapsedHeightAndMaxLines;hv.prototype.onIronResize=hv.prototype.onIronResize;hv.prototype.reversedChanged=hv.prototype.reversedChanged;hv.prototype.toggledChanged=hv.prototype.toggledChanged;
hv.prototype.alwaysToggleableChanged=hv.prototype.alwaysToggleableChanged;_.W([_.M(_.WW),_.X("design:type",Object)],hv.prototype,"ironResizableBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hv.prototype,"alignAuto",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hv.prototype,"collapsed",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"isToggled",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"alwaysCollapsed",void 0);
_.W([_.q(),_.X("design:type",Object)],hv.prototype,"canToggle",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"collapsedHeight",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"disableToggle",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"alwaysToggleable",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"reversed",void 0);_.W([_.q(),_.X("design:type",Number)],hv.prototype,"maxNumberOfLines",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.X("design:type",Object)],hv.prototype,"shouldUseNumberOfLines",void 0);_.W([_.q(),_.X("design:type",Object)],hv.prototype,"recomputeOnResize",void 0);_.W([_.Z7("#content"),_.X("design:type",HTMLDivElement)],hv.prototype,"content",void 0);_.W([_.wg("alwaysToggleable"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"alwaysToggleableChanged",null);
_.W([_.wg("isToggled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"toggledChanged",null);_.W([_.O("canToggleJobId"),_.X("design:type",Object),_.X("design:paramtypes",[])],hv.prototype,"isResetting",null);_.W([_.ph("reversed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"reversedChanged",null);
_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"onIronResize",null);_.W([_.ph("maxNumberOfLines","collapsedHeight"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"observeCollapsedHeightAndMaxLines",null);_.W([_.ph("collapsed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"collapsedChangedForBinding",null);
_.W([_.ph("isToggled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"isToggledChangedForBinding",null);_.W([_.ph("canToggle"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hv.prototype,"canToggleChangedForBinding",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-expander"})],hv);
_.B(hv,"ytd-expander",function(){if(WjN!==void 0)return WjN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return WjN=v},{mode:1});var w_=function(){return _.z.apply(this,arguments)||this};
_.f(w_,_.z);w_.prototype.computeIsCarousel=function(v){return!!v.isCarousel};
w_.prototype.observeLightsourcePalette=function(){var v,Q=(v=this.data)==null?void 0:v.vibrantsourceColorPaletteData;Q&&_.Tr(this.hostElement,Q)};
w_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
w_.prototype.observeLightsourcePalette=w_.prototype.observeLightsourcePalette;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],w_.prototype,"data",void 0);_.W([_.q({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],w_.prototype,"isCarousel",void 0);
_.W([_.ph("data.vibrantsourceColorPaletteData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w_.prototype,"observeLightsourcePalette",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],w_);
_.B(w_,"ytd-media-upsell-renderer",function(){if(j_p!==void 0)return j_p;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return j_p=v},{mode:2});var onV;var Av=function(){var v=_.z.apply(this,arguments)||this;v.JSC$15143_playerEvents=new Map;v.listeningToPlayer=!1;v.startX=0;v.active=!1;v.shouldShowButtons=_.Y("web_buttons_hidden_killswitch");v.isHighlighted=!1;v.useHighlightStyling=_.Y("web_enable_deeper_metadata_highlight_styling");v.enableProblemWalkthrough=_.Y("problem_walkthrough_sd");return v};
_.f(Av,_.z);_.K=Av.prototype;
_.K.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}}}}}};
_.K.created=function(){this.JSC$15143_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.K.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Lh(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Lh(this,this.onActiveUpdate))};
_.K.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Lh(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Lh(this,this.onActiveUpdate))};
_.K.onDataChanged=function(){this.removePlayerListeners()};
_.K.onColorPaletteChange=function(){var v={},Q;if(_.q2()==="USER_INTERFACE_THEME_DARK"&&((Q=this.data)==null?0:Q.darkColorPalette)){var V=this.data.darkColorPalette;v["--ytd-macro-markers-list-item-background-color"]=_.CF(this.get("section2Color",V))}else{var E;_.q2()==="USER_INTERFACE_THEME_LIGHT"&&((E=this.data)==null?0:E.lightColorPalette)&&(V=this.data.lightColorPalette,v["--ytd-macro-markers-list-item-background-color"]=_.CF(this.get("section3Color",V)))}V?(v["--ytd-macro-markers-list-item-title-color"]=
_.CF(this.get("primaryTitleColor",V)),v["--ytd-macro-markers-list-item-secondary-color"]=_.CF(this.get("secondaryTitleColor",V)),v["--ytd-macro-markers-list-item-timestamp-background-color"]=_.CF(this.get("section1Color",V)),this.customButtonProperties={customColors:{color:_.CF(this.get("primaryTitleColor",V))}},this.useColorSampling=!0):(v["--ytd-macro-markers-list-item-background-color"]="initial",v["--ytd-macro-markers-list-item-title-color"]="initial",v["--ytd-macro-markers-list-item-secondary-color"]=
"initial",v["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.F6(this.hostElement,v)};
_.K.onEndpointMouseDown=function(v){this.startX=v.clientX};
_.K.onEndpointClick=function(v){var Q=this,V,E,b;return _.e(function(F){if(F.nextAddress==1){if(Q.startX!==v.clientX)return v.preventDefault(),F.return();Q.data&&Q.ytRendererBehavior.logExplicitClick(Q.data);if(!Q.seekWithAnimationOnClick)return F.jumpTo(0);if(v.button!==0||v.shiftKey||v.altKey||v.metaKey||v.ctrlKey||_.j$(_.uK(v),Q.hostElement,["BUTTON".toString()]))return F.return();v.stopPropagation();v.preventDefault();return Q.data?F.yield(_.rS().getPlayerPromise(),3):F.return()}V=F.yieldResult;
b=(E=_.y(Q.data.onTap,_.sn))==null?void 0:E.startTimeSeconds;b!==void 0&&V.seekToTimeWithAnimation(b*1E3,_.j0(Q.data.title));_.q1(F)})};
_.K.computeLayout=function(v){return v};
_.K.computeIsHighlighted=function(v){return!!v};
_.K.computeCarouselType=function(v){return v};
_.K.hideCarousel=function(v){return this.hideThumbnail(v)};
_.K.hideThumbnail=function(v){return this.enableProblemWalkthrough&&v!==null&&v==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.K.onRepeatButtonToggle=function(v){var Q=this;v.detail.toggled&&_.rS().getPlayerPromise().then(function(V){Q.ytPlayerListenerBehavior.listenToPlayerEvents(V,Q.JSC$15143_playerEvents);Q.listeningToPlayer=!0})};
_.K.onLoopRangeChange=function(v){var Q=_.m9(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(Q){var V=Q.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",Q.polymerController.data);if(V){var E=Number(V.endTimeMs);if(Number(V.startTimeMs)!==(v==null?void 0:v.startTimeMs)||E!==(v==null?void 0:v.endTimeMs))Q.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.K.removePlayerListeners=function(){var v=this;this.listeningToPlayer&&_.rS().getPlayerPromise().then(function(Q){v.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Q,v.JSC$15143_playerEvents);v.listeningToPlayer=!1})};
_.K.onActiveUpdate=function(v){this.active=v.detail.active};
Av.prototype.onColorPaletteChange=Av.prototype.onColorPaletteChange;Av.prototype.onDataChanged=Av.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],Av.prototype,"ytPlayerListenerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Av.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Av.prototype,"useCustomColors",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Av.prototype,"active",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Av.prototype,"shouldShowButtons",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.X("design:type",String)],Av.prototype,"layout",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.X("design:type",Object)],Av.prototype,"isHighlighted",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Av.prototype,"useHighlightStyling",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Av.prototype,"enableProblemWalkthrough",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.X("design:type",String)],Av.prototype,"carouselType",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Av.prototype,"useColorSampling",void 0);_.W([_.q(),_.X("design:type",Boolean)],Av.prototype,"seekWithAnimationOnClick",void 0);_.W([_.q(),_.X("design:type",Object)],Av.prototype,"customButtonProperties",void 0);
_.W([_.Z7("#repeat-button"),_.X("design:type",HTMLElement)],Av.prototype,"repeatButton",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Av.prototype,"onDataChanged",null);_.W([_.ph("data.lightColorPalette","data.darkColorPalette"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Av.prototype,"onColorPaletteChange",null);_.W([_.J({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Av);
_.B(Av,"ytd-macro-markers-list-item-renderer",function(){if(onV!==void 0)return onV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return onV=v},{mode:1});var XXa;var amV;var kO=function(){return _.z.apply(this,arguments)||this};
_.f(kO,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kO.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],kO);
_.B(kO,"ytd-title-and-button-list-header-renderer",function(){if(amV!==void 0)return amV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return amV=v},{mode:1});var rHS;var $GX=new _.KB("BUTTON_RENDERER_TOKEN");_.T$=_.x(function(v){var Q=_.ht().resolve($GX);return _.P(Q,Object.assign({},v,{overrides:v.buttonOverrides}))},"Wa");var ImZ=_.x(function(v){var Q=v.data,V=_.Wn(v.useSquareAspectRatio,!1);return _.P("dismissed-mini-game-card-view-model",null,_.P(_.h,{cond:function(){var E,b;return(E=Q().responseText)==null?void 0:(b=E.runs)==null?void 0:b.length},
then:function(){var E={};return _.P("div",{class:_.QZ("yt-mini-game-card-view-model__dismissed-card",(E["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!V()},E["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.Y("web_game_card_force_2_by_3")},E["yt-mini-game-card-view-model--dismissed-square-card"]=V,E))},_.P("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.P(_.h,{cond:function(){return Q().responseText.runs[0].text},
then:function(b){return _.P("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:b},b)}}),_.P(_.Pw,{data:function(){return Q().buttons}},{buttonRenderer:_.T$,
buttonViewModel:_.D6})))}}))},"Xa");var HbA=_.x(function(v){var Q=v.data;return _.P("br-nz-badge-shape",{class:_.QZ(function(){return ANh(Q().brNzRatingBadgeType)}),
role:function(){return Q().accessibilityText?"img":void 0},
"aria-label":function(){return Q().accessibilityText}},function(){var V;
return(V=Q())==null?void 0:V.text})},"Ya");_.YO=_.x(function(v){var Q=function(){var V=v.data(),E,b,F,t;if(V){var p=!((E=v.workaroundShortsIsThumbnailBadge)==null||!E.call(v));E=(b=v.modern)==null?void 0:b.call(v);b=(F=v.numBadgesInRow)==null?void 0:F.call(v);F=(t=v.clipTextOverflow)==null?void 0:t.call(v);var Z;a:switch(V.badgeStyle){case "BADGE_OVERLAY":t=!0;break a;default:t=!1}V={type:p?17:kJm(V.badgeStyle),brNzRatingBadgeType:Tc3(V.badgeStyle),text:V.badgeText,icon:V.iconName,isOverlay:t,modern:E||_.Y("web_modern_badge_view_model"),accessibilityText:V.accessibilityLabel||
((Z=_.y(V.rendererContext,_.ds))==null?void 0:Z.label),numBadgesInRow:b,clipTextOverflow:F}}else V=void 0;return V};
return _.P("yt-badge-view-model",{class:_.QZ("ytBadgeViewModelHost",v.class)},_.P(_.BU,null,_.P(_.J1,{when:function(){var V;return!((V=Q())==null||!V.brNzRatingBadgeType)}},function(){return _.P(HbA,{data:function(){return Q()}})}),_.P(_.J1,{when:function(){return!!Q()&&!Q().brNzRatingBadgeType}},function(){return _.P(_.KP,{data:function(){return Q()}})})))},"Za");
_.YO.idomCompat=!0;var FYN=_.x(function(v){v=_.o1(v,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var Q=v.data,V=v.useFullWidth,E=v.isDesktopWeb,b=v.addSearchResultTopMargin,F=function(){return Q().layout},t=function(){return Q().title},p=function(){return Q().metadataText?Q().metadataText:Q().genre},Z=function(){return Q().channelName},d=function(){return Q().image},w=function(){return Q().colorPalette},A=function(){return Q().actionButton},k=function(){return Q().overflowButton},
T=function(){return Q().avatar},c=function(){return Q().ageRating},C=function(){var a={};
a=_.QZ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(a["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return E()},a));
return _.P("div",{class:a},_.P(mGN,{imageData:d,colorPalette:w}),_.P(UGN,{onTap:function(){return Q().onTap},
imageData:d,accessibilityText:function(){return Q().accessibilityText},
overlayBadgeText:function(){return Q().overlayBadgeText},
iconName:function(){return Q().iconName},
unplayableInlinePlaybackIconName:function(){return Q().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.P(_.h,{cond:function(){return!E()},
then:function(){return _.P(_.w7,null,_.P(vtN,{layout:F,colorPalette:w,isDesktopWeb:E,overflowButton:k,avatar:T,onTap:function(){return Q().onTap},
genre:p,title:t,channelName:Z}),_.P(QvS,{actionButton:A}))}}))},R=function(){var a={};
a=_.QZ((a["yt-mini-game-card-view-model--search-result-desktop"]=function(){return E()},a["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!E()},a["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return b()},a));
return _.P("div",{class:a},C(),_.P(VQN,{description:function(){return Q().description},
isDesktopWeb:E,title:t,genre:p,onTap:function(){return Q().onTap},
actionButton:A,overflowButton:k,avatar:T,channelName:Z}))},l=function(){var a={};
a=_.QZ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(a["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return E()},a["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return E()&&Q().width===135},a["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return E()},a["yt-mini-game-card-view-model--big-metadata-font"]=function(){return Q().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},a["yt-mini-game-card-view-model--use-full-width"]=
function(){return V()},a["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.Y("web_game_card_force_2_by_3")},a));
return _.P("div",{class:a},_.P(Et8,{colorPalette:w,isDesktopWeb:E,onTap:function(){return Q().onTap},
accessibilityText:function(){return Q().accessibilityText},
overlayBadgeText:function(){return Q().overlayBadgeText},
iconName:function(){return Q().iconName},
unplayableInlinePlaybackIconName:function(){return Q().unplayableInlinePlaybackIconName},
actionButton:A,imageData:d}),_.P(vtN,{layout:F,colorPalette:w,isDesktopWeb:E,overflowButton:k,avatar:T,onTap:function(){return Q().onTap},
genre:p,title:t,channelName:Z}),_.P(_.h,{cond:c,then:function(g){return _.P(bma,{ageRating:g})}}))},S=function(){var a={};
a=_.QZ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(a["yt-mini-game-card-view-model--square-card-desktop"]=function(){return E()},a["yt-mini-game-card-view-model--use-full-width"]=function(){return V()},a));
return _.P("div",{class:a},_.P(UGN,{onTap:function(){return Q().onTap},
imageData:d,accessibilityText:function(){return Q().accessibilityText},
overlayBadgeText:function(){return Q().overlayBadgeText},
iconName:function(){return Q().iconName},
unplayableInlinePlaybackIconName:function(){return Q().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.P(vtN,{layout:F,colorPalette:w,isDesktopWeb:E,overflowButton:k,avatar:T,onTap:function(){return Q().onTap},
genre:p,title:t,channelName:Z}),_.P(_.h,{cond:c,then:function(g){return _.P(bma,{ageRating:g})}}))};
return _.P("mini-game-card-view-model",{class:v.className},_.P(_.BU,null,_.P(_.J1,{when:function(){return F()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return l()}),_.P(_.J1,{when:function(){return F()==="MINI_APP_LAYOUT_SQUARE"}},function(){return S()}),_.P(_.J1,{when:function(){return F()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return R()})))},"$a");
FYN.idomCompat=!0;var QvS=_.x(function(v){var Q=_.Wn(v.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.P(_.Pw,{data:v.actionButton},{buttonViewModel:function(V){return _.P("div",{class:Q},_.P(_.D6,{data:V.data}))}})},"ab"),UGN=_.x(function(v){var Q=v.onTap;
var V=v.imageData;var E=v.accessibilityText;var b=v.overlayBadgeText;var F=v.iconName;var t=v.unplayableInlinePlaybackIconName;v=v.isDesktopWeb;return _.P(_.yL,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:Q},_.P(_.gE,{data:V,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(E==null?void 0:E())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.P(KYx,{overlayBadgeText:b,iconName:F,unplayableInlinePlaybackIconName:t,isDesktopWeb:v}))},"bb"),KYx=_.x(function(v){var Q=v.overlayBadgeText;
var V=v.iconName;var E=v.unplayableInlinePlaybackIconName;var b=v.isDesktopWeb;return _.P("div",{class:"yt-mini-game-card-view-model__badge-container"},_.P(_.h,{cond:V,then:function(F){return _.P("div",{class:"yt-mini-game-card-view-model__badge"},_.P("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.P(_.L_,{icon:F,className:"yt-mini-game-card-view-model__icon",size:12}),_.P("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},Q)))}}),_.P(_.h,{cond:function(){return!V()&&
Q()},
then:function(){return _.P("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},Q)}}),_.P(_.h,{cond:function(){return E()&&b()},
then:function(){return _.P("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.P(_.L_,{icon:E,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),mGN=_.x(function(v){var Q=v.colorPalette;
var V=v.imageData;var E=function(){return Q().vibrantColorPalette?Q().vibrantColorPalette.section2Color:Q().sectionTwoColor};
return _.P(_.w7,null,_.P("div",{class:"yt-mini-game-card-view-model__background-base",style:_.iP({"background-color":function(){return M2(E(),"1")}})}),_.P("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.iP({"background-image":function(){return"url("+V().sources[0].url+")"}})}),_.P("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.iP({background:function(){return"linear-gradient(180deg,\n    "+M2(E(),".8")+" 0%,\n    "+M2(E(),".4")+" 25%,\n    "+M2(Q().vibrantColorPalette?Q().vibrantColorPalette.section4Color:Q().sectionFourColor,".8")+" 100%)"}})}))},"db"),vtN=_.x(function(v){var Q=v.layout;
var V=v.colorPalette;var E=v.overflowButton;var b=v.avatar;var F=v.onTap;var t=v.title;var p=v.channelName;var Z=v.genre;var d=function(){var w;return Q()!=="MINI_APP_LAYOUT_SQUARE"&&((w=V())==null?0:w.textPrimaryColor)?"color: "+M2(V().textPrimaryColor,".7"):""};
return _.P("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.P(_.h,{cond:b,then:function(){return _.P("div",{class:"yt-mini-game-card-view-model__avatar"},_.P(_.Pw,{data:b},{avatarViewModel:_.QO}))}}),_.P(_.yL,{command:F,
className:"yt-mini-game-card-view-model__metadata-details"},_.P("h3",{class:"yt-mini-game-card-view-model__title",title:t},t),_.P(_.h,{cond:b,then:function(){return _.P("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.P("span",{class:"yt-mini-game-card-view-model__genre",title:p,style:d},p),_.P("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:d},Z))},
else:function(){return _.P("span",{class:"yt-mini-game-card-view-model__genre",title:Z},Z)}})),_.P("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.P(_.Pw,{data:E},{buttonViewModel:function(w){var A=w.data;
return _.P(_.D6,{data:function(){return Object.assign({},A(),{customFontColor:Q()==="MINI_APP_LAYOUT_SINGLETON"?A().customFontColor:void 0})}})}})))},"eb"),Et8=_.x(function(v){var Q=v.colorPalette;
var V=v.isDesktopWeb;var E=v.onTap;var b=v.accessibilityText;var F=v.overlayBadgeText;var t=v.iconName;var p=v.unplayableInlinePlaybackIconName;var Z=v.actionButton;v=v.imageData;return _.P("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.P(mGN,{imageData:v,colorPalette:Q}),_.P(UGN,{onTap:E,imageData:v,accessibilityText:b,overlayBadgeText:F,iconName:t,unplayableInlinePlaybackIconName:p,isDesktopWeb:V}),_.P(_.h,{cond:function(){return Z==null?void 0:Z()},
then:function(){return _.P(QvS,{actionButton:Z})}}))},"fb"),VQN=_.x(function(v){var Q=v.description;
var V=v.isDesktopWeb;var E=v.title;var b=v.genre;var F=v.onTap;var t=v.actionButton;var p=v.overflowButton;var Z=v.avatar;v=v.channelName;var d={};d=_.QZ("yt-mini-game-card-view-model--search-result-metadata-wrapper",(d["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=V,d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=V,d["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!V()},d));
var w={};w=_.QZ("yt-mini-game-card-view-model__search-result-info-row",(w["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!V()},w));
return _.P("div",{class:d},_.P("div",{class:w},_.P(_.yL,{command:F,className:"yt-mini-game-card-view-model__metadata-details"},_.P("h3",{class:"yt-mini-game-card-view-model__title",title:E},E),_.P("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)),_.P(QvS,{actionButton:t,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.P("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.P(_.Pw,{data:p},{buttonViewModel:_.D6}))),_.P("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.P("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.P("div",{class:"yt-mini-game-card-view-model__avatar"},_.P(_.Pw,{data:Z},{avatarViewModel:function(A){var k=A.data;return _.P(_.QO,{data:function(){return Object.assign({},k(),{avatarImageSize:V()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.P(_.yL,{command:F,
className:"yt-mini-game-card-view-model__description"},_.P("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},v)),_.P(_.yL,{command:F,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.P("div",null)))),_.P(_.h,{cond:V,then:function(){return _.P(_.yL,{command:F,className:"yt-mini-game-card-view-model__description"},Q)}}))},"gb"),bma=_.x(function(v){var Q=v.ageRating;
return _.P("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.P(_.gE,{data:function(){return{sources:[{url:Q().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.P(_.YO,{data:function(){return{badgeText:Q().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.ad(FYN,"mini-game-card-view-model",{props:{data:_.pJ,className:_.pJ,useFullWidth:_.pJ,isDesktopWeb:_.pJ,addSearchResultTopMargin:_.pJ}});_.ad(ImZ,"dismissed-mini-game-card-view-model",{props:{data:_.pJ,useSquareAspectRatio:_.pJ}});var yO=function(){var v=_.z.apply(this,arguments)||this;v.isSearch=!1;v.isRichGrid=!1;return v};
_.f(yO,_.z);_.K=yO.prototype;_.K.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.K.dismissibleItemOnYtServiceRequestSent=function(v,Q){Q.actions&&this.dismissibleItemProcessActions(v,Q.actions)};
_.K.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.K.dataChanged=function(){this.dismissibleItemReset()};
_.K.dismissibleItemProcessActions=function(v,Q){for(var V=0;V<Q.length;V++){var E=Q[V];_.y(E,_.Nd)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.y(E,_.Nd)),v.stopPropagation())}};
_.K.dismissibleItemHandleReplaceEnclosingAction=function(v){this.dismissedRenderer=v.item;this.isDismissed=!0};
_.hr.Object.defineProperties(yO.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var v;return!!this.data&&!((v=this.dismissedRenderer)==null?0:v.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.dismissedRenderer)==null||!v.notificationMultiActionRenderer)}}});
yO.prototype.dataChanged=yO.prototype.dataChanged;yO.prototype.dismissibleItemOnRequestSent=yO.prototype.dismissibleItemOnRequestSent;yO.prototype.dismissibleItemOnYtServiceRequestSent=yO.prototype.dismissibleItemOnYtServiceRequestSent;_.W([_.q(),_.X("design:type",Object)],yO.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],yO.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],yO.prototype,"isDismissed",void 0);
_.W([_.q(),_.X("design:type",Object)],yO.prototype,"dismissedRenderer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],yO.prototype,"isRichGrid",void 0);_.W([_.O("data.layout"),_.X("design:type",Object),_.X("design:paramtypes",[])],yO.prototype,"useSquareAspectRatio",null);_.W([_.O("data","dismissedRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],yO.prototype,"showCard",null);
_.W([_.O("data","dismissedRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],yO.prototype,"showDismissed",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],yO.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.W([_.tM("yt-service-request-sent-button-renderer"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],yO.prototype,"dismissibleItemOnRequestSent",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],yO.prototype,"dataChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],yO);
_.B(yO,"ytd-mini-game-card-view-model",function(){if(rHS!==void 0)return rHS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return rHS=v},{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var imV;var LYa;var cy=function(){return _.wC.apply(this,arguments)||this};
_.f(cy,_.wC);cy.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
cy.prototype.getContinuationUrl=function(v){var Q={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(Q.itct=this.data.clickTrackingParams);return _.Li(v,Q)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cy.prototype,"data",void 0);_.W([_.D7({is:"yt-reload-continuation",noInjection:!0})],cy);var tQS;var piN;var f5=function(){var v=_.z.apply(this,arguments)||this;v.notificationData={};return v};
_.f(f5,_.z);_.K=f5.prototype;_.K.isMenuExpanded=function(v){return v&&v.length<=1?"undefined":"false"};
_.K.dataChanged_=function(){this.selected=void 0;var v=this.computeSelectedIndex_(this.data);v>=0&&(this.selected=v);v=this.data&&this.data.length>1;_.VE(this.hostElement,"has-items",v);_.m9(this.hostElement).querySelector("#label").tabIndex=v?0:-1};
_.K.onDropdownOpen=function(){var v=_.Mo();if(this.parentTrackingParams&&this.data){var Q=_.dE(this.parentTrackingParams);this.data.forEach(function(V){v&&Q&&V.trackingParams&&(V=_.dE(V.trackingParams),_.Np(v,Q,V),_.gD(v,[V]))})}else this.parentTrackingParams||_.Iy(new _.xd("No parent tracking params passed in for yt-dropdown-menu."))};
_.K.hasNotification=function(v){var Q;if(v.targetId&&((Q=this.notificationData)==null?0:Q.targetId)){var V;return v.targetId===((V=this.notificationData)==null?void 0:V.targetId)}};
_.K.computeSelectedIndex_=function(v){if(v)for(var Q=0,V=v.length;Q<V;Q++)if(v[Q].selected)return Q;return-1};
_.K.computeLabel_=function(v){return this.data&&v!=void 0?this.data[v].title:""};
_.K.computeShowIcon_=function(v,Q){return!Q&&!!v};
_.K.computeVerticalOffset_=function(v){return v?36:0};
_.K.computeEndpoint_=function(v){return v.endpoint||v.navigationEndpoint};
_.K.onLabelClick_=function(v){this.data&&this.data.length<=1?v.stopPropagation():this.menuExpanded="true"};
_.K.onIronActivate_=function(v){v=v.detail.item;var Q=_.m9(this.hostElement).querySelector("#repeat").itemForElement(v);if(Q&&Q.trackingParams){var V=_.Mo(),E=_.dE(Q.trackingParams);V&&_.uI(V,E)}if(Q&&Q.serviceEndpoint)_.Y("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(Q.serviceEndpoint):_.vp(this.hostElement,[Q.serviceEndpoint]),_.Hj(this.hostElement,"yt-playlist-reloading");else a:{if((Q=v.querySelector("yt-supported-renderers"))&&
(Q=Q.rendererElement)&&Q.is=="yt-reload-continuation"){Q.trigger();break a}(v=v.querySelector("yt-reload-continuation"))&&v.trigger()}};
_.K.onTap_=function(v){v.preventDefault()};
_.K.onItemTap_=function(v){this.ytEndpointBehavior.onEndpointTap_(v)};
_.K.onLinkFocus_=function(v){try{var Q=v.target}catch(E){}if(Q){var V=Q.querySelector("tp-yt-paper-item");V&&_.Nf(this,"focus",function(){V.focus()})}};
_.K.onMenuClose_=function(){this.menuExpanded="false"};
_.K.isLabelIconActive_=function(v){return v==="true"};
_.K.computeHasSubtitle_=function(v){return!!v};
_.K.computeHrefForItem_=function(v){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(v))};
_.K.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
_.hr.Object.defineProperties(f5.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
f5.prototype.onMenuClose_=f5.prototype.onMenuClose_;f5.prototype.onTap_=f5.prototype.onTap_;f5.prototype.onIronActivate_=f5.prototype.onIronActivate_;f5.prototype.onDropdownOpen=f5.prototype.onDropdownOpen;f5.prototype.dataChanged_=f5.prototype.dataChanged_;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],f5.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],f5.prototype,"ytEndpointBehavior",void 0);
_.W([_.q(),_.X("design:type",Array)],f5.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],f5.prototype,"parentTrackingParams",void 0);_.W([_.q(),_.X("design:type",Object)],f5.prototype,"selected",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],f5.prototype,"useLabel",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],f5.prototype,"useComputedAriaLabel",void 0);_.W([_.q(),_.X("design:type",String)],f5.prototype,"icon",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],f5.prototype,"iconLabel",void 0);_.W([_.q(),_.X("design:type",String)],f5.prototype,"ariaLabel",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],f5.prototype,"disabled",void 0);_.W([_.q({computed:"isMenuExpanded(data)"}),_.X("design:type",String)],f5.prototype,"menuExpanded",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],f5.prototype,"closeOnActivate",void 0);
_.W([_.q({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.X("design:type",Boolean)],f5.prototype,"modernButtons",void 0);_.W([_.q(),_.X("design:type",Object)],f5.prototype,"notificationData",void 0);_.W([_.O("ariaLabel, selected"),_.q(),_.X("design:type",String),_.X("design:paramtypes",[])],f5.prototype,"computedAriaLabel",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],f5.prototype,"dataChanged_",null);
_.W([_.tM("paper-dropdown-open"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],f5.prototype,"onDropdownOpen",null);_.W([_.tM("iron-activate"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],f5.prototype,"onIronActivate_",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],f5.prototype,"onTap_",null);
_.W([_.tM("iron-overlay-closed"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],f5.prototype,"onMenuClose_",null);_.W([_.D7({is:"yt-dropdown-menu",disableElementRegistration:!0})],f5);
_.B(f5,"yt-dropdown-menu",function(){if(piN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;tQS===void 0&&(tQS=document.createElement("template"));var E=tQS;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);piN=v}v=piN;return v},{mode:2});var G$=function(){var v=_.z.apply(this,arguments)||this;v.hasNotification=!1;return v};
_.f(G$,_.z);G$.prototype.computeId=function(v){return v};
G$.prototype.computeHorizontalAlign=function(v){return v?"right":"left"};
G$.prototype.computeAccessibilityLabel=function(v){var Q,V;return((Q=v.accessibility)==null?void 0:(V=Q.accessibilityData)==null?void 0:V.label)||null};
G$.prototype.notificationDataChanged=function(){var v;this.hasNotification=!!this.notificationData&&!((v=this.data)==null?0:v.icon)};
G$.prototype.notificationDataChanged=G$.prototype.notificationDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QL.YtLiveChatTooltipTargetingBehavior),_.X("design:type",Object)],G$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],G$.prototype,"data",void 0);_.W([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.X("design:type",String)],G$.prototype,"id",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],G$.prototype,"isRightAligned",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],G$.prototype,"disabled",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],G$.prototype,"closeOnActivate",void 0);_.W([_.q(),_.X("design:type",Object)],G$.prototype,"notificationData",void 0);_.W([_.q(),_.X("design:type",Object)],G$.prototype,"hasNotification",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],G$.prototype,"useComputedAriaLabel",void 0);_.W([_.ph("notificationData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],G$.prototype,"notificationDataChanged",null);_.W([_.D7({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],G$);
_.B(G$,"yt-sort-filter-sub-menu-renderer",function(){if(LYa===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;imV===void 0&&(imV=document.createElement("template"));var E=imV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);LYa=v}v=LYa;return v},{mode:2});var eMV=_.x(function(v){var Q=v.data;var V=_.EP(function(){var F=Q().onTap;(F=_.y(F,_.Cx))&&_.ht().resolve(_.At).resolveCommand(F);return!1}),E=function(){return{sources:[{url:Q().thumbnailUrl,
width:120,height:90}]}},b=function(){return Q().rating&&Q().ratingA11yLabel&&Q().reviewsCount&&Q().reviewsCountA11yLabel};
return _.P("place-data-view-model",null,_.P(_.h,{cond:function(){return Q().placeName&&Q().placeCategory},
then:function(){return _.P("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":V},_.P(_.gE,{data:E,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.P(_.yL,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return Q().onTap}},_.P("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return Q().placeName}},function(){return Q().placeName})),_.P("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.P(_.h,{cond:b,
then:function(){return _.P("div",{class:_.QZ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.P("span",{class:"score",title:function(){return Q().ratingA11yLabel}},function(){return Q().rating}),_.P("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.P(_.L_,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.P("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return Q().reviewsCountA11yLabel}},function(){return Q().reviewsCount}))},
else:function(){return _.P("div",{class:_.QZ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.P("div",{class:_.QZ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.P("span",{class:"category",
title:function(){return Q().placeCategory}},function(){return Q().placeCategory}))))}}))},"ib");
eMV.idomCompat=!0;_.ad(eMV,"place-data-view-model",{props:{data:_.pJ}});var Zma=new _.KB("INLINE_PLAYBACK_HOOK_TOKEN");var PWX=f_({sharedUi:uxN});_.zw=Gr(PWX)(PWX.sharedUi,{animatedThumbnailEnabledSelector:function(v){return v.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(v){return v.inlinePreviewEnabled},
currentPageTypeSelector:function(v){return v.currentPageType},
currentPageSubTypeSelector:function(v){return v.currentPageSubType},
persistentPanelVisibleSelector:function(v){return v.persistentPanelVisible}});var dyZ=function(v){this.setActiveSlideIndex=v;this.jobIds=[];this.isSlideshowPlaying=!1},Ah8=function(v,Q){v.isSlideshowPlaying||(v.isSlideshowPlaying=!0,hMZ(v),wia(v,Q,0))},hMZ=function(v){_.md(_.XT,function(){v.setActiveSlideIndex(0)},1)},wia=function(v,Q,V){v.jobIds.push(_.md(_.XT,function(){var E=V<Q-1?V+1:0;
v.setActiveSlideIndex(E);wia(v,Q,E)},1800))};var kUS=new _.KB("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN"),TfN=new _.KB("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var Y1p=new _.KB("IMAGE_ON_LOAD_HANDLER_TOKEN");var yhS=_.x(function(v){return _.P("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.P(_.h,{cond:function(){var Q;return(Q=v.data())==null?void 0:Q.thumbnail},
then:function(Q){return _.P(_.gE,{data:Q,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.chS=_.x(function(v){var Q=v.data;var V=v.lockupExperiments;v={};return _.P("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.P("div",{class:_.QZ("ytThumbnailOverlayButtonViewModelButton",(v.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var E;return V&&((E=V())==null?void 0:E.useLegacySizedIconButton)},v))},_.P(_.Pw,{data:function(){return Q().overlayButton}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
buttonOverrides:function(){var b;return V&&((b=V())==null?0:b.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.chS.idomCompat=!0;var f_x=_.x(function(v){return _.P("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.EP(function(Q){Q.preventDefault();return!1})},_.P(_.Pw,{data:function(){return v.data().buttons}},{toggleButtonViewModel:function(Q){return _.P("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.P(_.a5,{data:Q.data}))}}))},"lb");
f_x.idomCompat=!0;var GUX=_.x(function(v){var Q=function(){var V;return((V=_.y(v.data().rendererContext,_.ds))==null?void 0:V.label)||""};
return _.P("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.P(_.h,{cond:function(){return v.data().image},
then:function(){return _.P("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.P(_.gE,{data:function(){return v.data().image},
alt:Q}))}}),_.P(_.h,{cond:function(){return v.data().text},
then:function(){return _.P("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return v.data().text})}}))},"mb");var CWS;CWS=_.zw.animatedThumbnailEnabledSelector;_.C5=_.x(function(v){var Q=[],V=function(){var k,T;return _.x8o((k=v.width)==null?void 0:k.call(v),(T=v.height)==null?void 0:T.call(v))},E=_.ht().resolve(_.d$(Y1p)),b=_.Ze("yt-thumbnail-view-model",function(){Q.push("elRef.value set");
var k;(k=v.playbackRef)==null||k.call(v,{thumbnailElRef:b,thumbnail:v.data().image,thumbnailOverlays:v.data().overlays,thumbnailSize:V()})});
_.jg(function(){Q.push("onInit");_.j_(function(){Q.push("onCleanup")})});
var F=_.Z1(CWS),t=function(){var k,T;return(T=(k=v.aspectRatio)==null?void 0:k.call(v))!=null?T:0},p=function(){return(v.data().image?_.bk3(v.data().image):t())<=1&&t()===0},Z=function(){return p()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},d=function(){b.value||_.Iy(new _.xd("Thumbnail elRef.value is null",Q.join("\n")));
E&&b.value&&E(b.value)},w=function(){var k,T;
return((k=v.hovered)==null?void 0:k.call(v))&&V()!=="large"&&((T=v.data().overlays)==null?void 0:T.some(function(c){return _.y(c,fZq)}))},A={};
return _.P("yt-thumbnail-view-model",{class:_.QZ("ytThumbnailViewModelHost",v.className,function(){return yNZ(t())},function(){var k,T;
a:{var c=V(),C=(k=v.disableRounding)==null?void 0:k.call(v);k=(T=v.isClip)==null?void 0:T.call(v);if(!C&&!k)switch(c){case "large":T="ytThumbnailViewModelLarge";break a;case "small":T="ytThumbnailViewModelSmall";break a;default:T="ytThumbnailViewModelMedium";break a}T=void 0}return T},(A.ytThumbnailViewModelCinematic=p,A)),
style:_.iP({"background-color":function(){var k,T=p()?(k=v.data().backgroundColor)==null?void 0:k.lightTheme:void 0;return T?M2(T,"1"):void 0}}),
el:b},_.P(_.h,{cond:p,then:function(){return _.P("div",{class:"ytThumbnailViewModelBlurredImage"},_.P(_.gE,{data:function(){return v.data().image},
alt:"",contentMode:Z,targetWidth:v.width,onload:d}))}}),_.P("div",{class:"ytThumbnailViewModelImage"},_.P(_.gE,{data:function(){return v.data().image},
alt:"",contentMode:Z,targetWidth:v.width,onload:d}),null),_.P(_.Pw,{data:function(){return w()?void 0:v.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Mbp,thumbnailOverlayBadgeViewModel:function(k){return _.P(_.ObX,{data:k.data,thumbnailSize:V,isClip:v.isClip})},
thumbnailBottomOverlayViewModel:function(k){return _.P(cH8,{data:k.data,thumbnailSize:V,isClip:v.isClip})},
thumbnailOverlayFullViewModel:GUX,thumbnailOverlayButtonViewModel:function(k){return _.P(_.chS,{data:k.data,lockupExperiments:v.lockupExperiments})},
channelDisclosureViewModel:function(k){k=k.data;var T;return _.P("div",null,(T=_.ht().resolve(_.d$(kUS)))==null?void 0:T({data:k}))}}),_.P(_.Pw,{data:function(){var k;
return((k=v.hovered)==null?0:k.call(v))?v.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(k){return _.P(vy,{data:k.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:f_x}),_.P(_.Pw,{data:function(){var k;return((k=v.hovered)==null?0:k.call(v))&&F()?v.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:yhS}),_.P(_.h,{cond:v.isClip,then:function(){return _.P("div",{class:"ytPinkingNsHost"},_.P("svg",{class:"ytPinkingNsPinkingLeft"},_.P("defs",null,_.P("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.P("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.P("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.P("svg",{class:"ytPinkingNsPinkingRight"},_.P("defs",null,_.P("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.P("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.P("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.C5.idomCompat={callbacks:{playbackRef:!0}};var MQR=_.x(function(v){var Q=_.L(_.Ge(-1,void 0,"RW2Ole")),V=Q.next().value,E=Q.next().value;_.jg(function(){var b=new dyZ(E);Ah8(b,v.data().thumbnails.length);_.j_(function(){if(b.isSlideshowPlaying){b.isSlideshowPlaying=!1;for(var F=b.jobIds,t=0,p=F.length;t<p;t++)_.XT.cancelJob(F[t]);b.jobIds.length=0}})});
return _.P("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.P(_.Pw,{data:function(){return v.data().thumbnails}},{thumbnailViewModel:function(b,F){return _.P("div",{class:function(){var t=!v.data().primaryThumbnail,p=F(),Z=V(),d=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
t&&p===0&&d.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");p<=Z&&d.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return d.join(" ")}},_.P(_.C5,{data:b.data,
disableRounding:v.disableRounding}))}}))},"ob");
MQR.idomCompat=!0;var cN0=new _.KB("DWELL_DETECTOR_REGISTRY_TOKEN");var DyS=_.x(function(v){var Q=fsB(v.triggeringElement),V=function(){return!!v.data().primaryThumbnail},E=function(){var F,t=(F=v.data())==null?void 0:F.maxHeight,p;
F=(p=v.maxHeight)==null?void 0:p.call(v);return t!=null&&F!=null?Math.min(t,F):F!=null?F:t},b=function(){var F=E();
if(F){var t;if(V()&&(t=v.includeStackHeight)!=null&&t.call(v)){var p;t=((p=v.doubleStack)==null?0:p.call(v))?8:4}else t=0;F=F-t-1;if(!(F<0)){p=Math;t=p.ceil;var Z,d;var w=NUZ((d=(Z=v.aspectRatio)==null?void 0:Z.call(v))!=null?d:0);return t.call(p,F*w)}}};
return _.P("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.iP({height:function(){return E()?E()+"px":void 0},
width:function(){return b()?b()+"px":void 0}})},_.P(Oma,{stackEnabled:V,
thumbnailSize:function(){var F,t;return _.x8o((F=v.width)==null?void 0:F.call(v),(t=v.height)==null?void 0:t.call(v))},
doubleStack:v.doubleStack,stackColor:function(){return v.data().stackColor},
includeStackHeight:v.includeStackHeight},_.P(_.Pw,{data:function(){return v.data().primaryThumbnail}},{thumbnailViewModel:function(F){var t={};
return _.P(_.C5,{data:F.data,width:v.width,height:v.height,aspectRatio:v.aspectRatio,disableRounding:v.disableRounding,className:_.QZ((t.ytCollectionThumbnailViewModelHostHasStacks=V,t)),hovered:v.hovered,playbackRef:v.playbackRef})}}),_.P(_.h,{cond:function(){var F;
return Q()&&((F=v.data().thumbnails)==null?void 0:F.length)},
then:function(){return _.P("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.P(MQR,{data:v.data,disableRounding:function(){return!V()}}))}})))},"pb");
DyS.idomCompat={callbacks:{playbackRef:!0}};
var Oma=_.x(function(v){var Q=v.children;var V=v.stackEnabled;var E=v.thumbnailSize;var b=v.doubleStack;var F=v.stackColor;var t=v.includeStackHeight;var p,Z=(p=_.ht().resolve(_.d$(_.JR)))==null?void 0:p();return _.P(_.h,{cond:V,then:function(){return _.P(mwV,{data:function(){var d,w;return{experimentEnabled:!0,thumbnailSize:E(),doubleStack:b==null?void 0:b(),color:Z?F==null?void 0:(d=F())==null?void 0:d.darkTheme:F==null?void 0:(w=F())==null?void 0:w.lightTheme,enableResponsiveMode:!1,includeStackHeight:t==
null?void 0:t()}}},Q)},
else:function(){return Q}})},"qb");var RMq=new _.KB("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Om;_.Mg={calledOnce:!0,state:"visible"};Om={calledOnce:!0,state:"hidden"};_.Dr=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;var E=v.className;var b=v.delayedClassName;var F=v.animationEntityKey;var t=v.isCompactWidth;var p=v.isContentWidth;v=_.L(_.Ge(!1,void 0,"pC3tUb"));var Z=v.next().value,d=v.next().value,w=_.Wn(F,""),A=_.p4(kKb,w),k=function(){var kQ,yo;return(yo=(kQ=A())==null?void 0:kQ.value)!=null?yo:!1},T=function(){_.jT(_.dW("booleanEntity",w(),{key:w(),
value:!0}));u=void 0};
F=_.L(_.K_(k));var c=F.next().value,C=F.next().value;F=_.L(_.K_(k));var R=F.next().value,l=F.next().value;F=_.L(_.K_(function(){var kQ;return k()?(kQ=Q().styleTransitionConfig)==null?void 0:kQ.destinationStyle:void 0}));
var S=F.next().value,a=F.next().value,g=function(){var kQ=Object.assign({},Q(),S()&&{style:S()});var yo,xQ,lb=kQ.label,ep=(yo=kQ.interaction)==null?void 0:(xQ=yo.accessibility)==null?void 0:xQ.label;yo=kQ.iconImage?kQ.label&&kQ.label.content?kQ.iconLeading?"leading":"trailing":"icon-only":void 0;kQ={formattedButtonText:lb,accessibilityLabel:ep,style:ORZ(kQ.style),type:DwZ(kQ.style),state:"active",size:MYT(kQ.size),iconPosition:yo,disabled:!1,aTagConfig:Cmm(kQ,V)};_.Y("enable_desktop_vdcbg_components")&&
(kQ.focused=Z());return kQ},u;
F=_.k0({visibilityCallback:function(kQ){var yo,xQ=(yo=Q().interaction)==null?void 0:yo.onFirstVisible;kQ&&xQ&&_.nx(xQ)},
showOption:_.Mg});var r=function(){return XDm(g(),!!Q().iconImage)};
v={};var v9={};E=_.QZ(function(){return"ytwAdButtonViewModelHost"},function(){return Q().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var kQ=!!Q().delayedAppearanceConfig,yo=c();
return kQ?yo?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var kQ=!!Q().delayedAppearanceConfig,yo=R();
return kQ?yo?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!Q().delayedAppearanceConfig||c()?b==null?void 0:b():""},(v.ytwAdButtonViewModelHostCompactWidth=function(){return t==null?void 0:t()},v),(v9.ytwAdButtonViewModelHostContentWidth=function(){return p==null?void 0:p()},v9),E!=null?E:"");
var t3=function(){var kQ,yo=(kQ=Q().delayedAppearanceConfig)==null?void 0:kQ.delayedInvisibleSeconds;yo&&(u=_.A2(_.XT,function(){C(!0);h3()},yo*1E3))},h3=function(){var kQ,yo=(kQ=Q().delayedAppearanceConfig)==null?void 0:kQ.delayedVisibleSeconds;
yo&&(u=_.A2(_.XT,function(){l(!0);OB()},yo*1E3))},OB=function(){var kQ,yo=(kQ=Q().styleTransitionConfig)==null?void 0:kQ.styleTransitionSeconds,xQ,lb=(xQ=Q().styleTransitionConfig)==null?void 0:xQ.destinationStyle;
yo&&lb?u=_.A2(_.XT,function(){a(lb);T()},yo*1E3):T()};
_.jg(function(){t3()});
_.j_(function(){u&&_.XT.cancelJob(u)});
return _.P("ad-button-view-model",{"on:focusin":_.EP(_.Y("enable_desktop_vdcbg_components")?function(){var kQ=_.ht().resolve(_.d$(_.Yc));kQ&&d(kQ.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.EP(_.Y("enable_desktop_vdcbg_components")?function(){d(!1);return!1}:void 0),
class:E,el:_.ud(F),style:_.iP({"transition-duration":"0.3s"})},_.P(_.h,{cond:g,then:function(){return _.P(_.OA,{data:g,icon:function(){return _.P(_.h,{cond:function(){return Q().iconImage},
then:function(kQ){return _.P(_.gE,{data:kQ,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var nta=_.x(function(v){var Q=v.data;v=function(){return Q().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var V=_.k0({visibilityCallback:function(F){var t,p=(t=Q().interaction)==null?void 0:t.onFirstVisible;F&&p&&_.nx(p)},
showOption:_.Mg}),E={},b={};return _.P("ad-button-group-view-model",{class:_.QZ("ytwAdButtonGroupViewModelHost",(E.ytwAdButtonGroupViewModelHostCompactWidth=v,E)),el:_.ud(V)},_.P("div",{class:_.QZ("ytwAdButtonGroupViewModelHostSecondaryButton",(b.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=v,b))},_.P(_.Pw,{data:function(){return Q().secondaryAdButton}},{adButtonViewModel:function(F){return _.P(_.Dr,{data:F.data})}})),_.P("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.P(_.Pw,
{data:function(){return Q().primaryAdButton}},{adButtonViewModel:function(F){return _.P(_.Dr,{data:F.data})}})))},"tb");var l_N=_.x(function(v){var Q=function(){var V;return((V=v.data())==null?void 0:V.answers)||[]};
return _.P("yt-survey-icons",{class:"ytSurveyIconsHost"},_.P("div",{class:"ytSurveyIconsHeader"},_.P("div",{class:"ytSurveyIconsTitle"},function(){var V;return(V=v.data())==null?void 0:V.text}),_.P("div",null,_.P(_.OA,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var V;(V=v.onDismiss)==null||V.call(v)}}},
iconName:"DISMISSAL"}))),_.P("div",null,_.P("div",{class:"ytSurveyIconsAnswers"},_.P(_.xb,{each:function(){return Q()},
keyBy:"INDEX"},function(V,E){return _.P("div",null,_.P(_.OA,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var b;(b=v.onSelect)==null||b.call(v,V(),E)}}},
icon:function(){return _.P(_.L_,{icon:function(){var b,F;return(b=V())==null?void 0:(F=b.icon)==null?void 0:F.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.P("div",{class:"ytSurveyIconsAnswersText"},_.P("div",null,function(){return Q().length?Q()[0].text:""}),_.P("div",null,function(){return Q().length?Q()[Q().length-1].text:""}))))},"ub");var q1p=_.x(function(v){var Q=_.ud(_.C4(function(){var Z;return(Z=v.data())==null?void 0:Z.rendererContext},void 0,void 0,void 0,!0)),V=_.L(_.Ge(!1,void 0,"GW0yjf")),E=V.next().value,b=V.next().value,F=_.p4(kLh,function(){var Z;
return(Z=v.data().keys)==null?void 0:Z.surveyEntityKey}),t=_.p4(Tdo,function(){var Z;
return(Z=v.data().keys)==null?void 0:Z.surveyStateEntityKey});
_.ez("ytd-slimline-survey-show-action",function(){b(!1)});
var p=function(){var Z,d;var w=(Z=t())==null?void 0:(d=Z.questionStack)==null?void 0:d[0];if(w!==void 0){var A,k;return(A=F())==null?void 0:(k=A.questions)==null?void 0:k[w]}};
V={};return _.P("yt-slimline-survey-view-model",{el:Q,class:_.QZ("ytSlimlineSurveyViewModelHost",(V.ytSlimlineSurveyViewModelCollapsed=function(){return E()},V))},_.P("div",{class:"ytSlimlineSurveyViewModelContainer"},_.P(_.h,{cond:function(){var Z;
return((Z=p())==null?void 0:Z.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.P(l_N,{data:function(){return p()},
onSelect:function(Z,d){var w,A;return _.e(function(k){b(!0);if(A=(w=v.data())==null?void 0:w.onSelectRating)_.nx(A),_.jT(QRQ(d));_.q1(k)})},
onDismiss:function(){b(!0);var Z;var d=(Z=F())==null?void 0:Z.dismissalFeedbackToken;Z=d?{feedbackEndpoint:{feedbackToken:d}}:void 0;Z&&_.Oo(Z,{form:{element:Q.value}})}})}})))},"vb");var S1Q=_.x(function(v){return _.P("yt-table-view-model",{class:_.QZ("ytTableViewModelHost",v.className)},_.P(_.xb,{each:function(){return v.data().rows||[]}},function(Q){var V={};
return _.P("div",{class:_.QZ("ytTableViewModelRow",(V.ytTableViewModelRowBottomBorder=function(){return v.data().showSeparators},V))},_.P(_.xb,{each:function(){return(Q==null?void 0:Q.cells)||[]}},function(E,b){var F,t={};
return _.P("span",{class:_.QZ((t.ytTableViewModelRowLabel=function(){return b()===0&&v.data().showHorizontalHeaders},t.ytTableViewModelCell=function(){return!v.data().showHorizontalHeaders||b()>0},t))},(F=E.text)==null?void 0:F.content)}))}))},"wb");var zMa=_.x(function(v){return _.P("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.P(_.Pw,{data:function(){var Q;return(Q=v.data())==null?void 0:Q.attachments}},{flexibleActionsViewModel:function(Q){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(_.Vq,{data:Q.data,
layout:function(){var V;return((V=v.lockupStyle())==null?void 0:V.arrangement)===1?0:1},
justifyContentOverride:function(){var V;return((V=v.lockupStyle())==null?void 0:V.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(Q){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(q1p,{data:Q.data}))},
expandableMetadataViewModel:function(Q){Q=Q.data;var V;return _.P("div",{class:_.QZ("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(V=_.ht().resolve(_.d$(RMq)))==null?void 0:V({data:Q}))},
adButtonGroupViewModel:function(Q){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(nta,{data:Q.data}))},
adButtonViewModel:function(Q){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(_.Dr,{data:Q.data,isCompactWidth:!0}))},
tableViewModel:function(Q){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(S1Q,{data:Q.data}))},
aiCompanionAttachmentViewModel:function(Q){Q=Q.data;var V;return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},(V=_.ht().resolve(_.d$(TfN)))==null?void 0:V({data:Q}))}}))},"xb");var zxS=_.T_("rich_grid_min_item_width",310),qwE=_.T_("rich_grid_max_item_width",500);var W8G,jPh;W8G=16/9;jPh=2/3;_.RV=_.x(function(v){var Q=v.data;var V=v.className;var E=v.imageSizeConfig;var b=v.notifyOnLoaded;var F=function(){return Q().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},t=function(){var k;
return _.Gw((k=Q())==null?void 0:k.rendererContext)};
v={};v=(v.ytContentPreviewImageViewModelHost=!0,v.ytContentPreviewImageViewModelCircleImage=function(){return F()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},v.ytContentPreviewImageViewModelTappable=function(){return t()},v);
var p=function(){var k,T;return(T=(k=_.y(Q().rendererContext,_.ds))==null?void 0:k.label)!=null?T:""},Z=function(){return XSr(Q())},d=function(){var k=ogQ(F(),Q().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",E==null?void 0:E(),as9(Z()),Q().layoutWidth,Q().layoutHeight),T=Object.assign({},k);
k.width&&(T.width=Math.round(k.width));k.height&&(T.height=Math.round(k.height));k.maxWidth&&(T.maxWidth=Math.round(k.maxWidth));k.maxHeight&&(T.maxHeight=Math.round(k.maxHeight));return T},w=_.Rr(function(){return d().height},void 0,"CxFlJb"),A=_.Rr(function(){return d().width},void 0,"lb8Jhd");
return _.P("yt-content-preview-image-view-model",{el:_.ud(_.C4(function(){var k;return(k=Q())==null?void 0:k.rendererContext})),
role:function(){return t()?"link":void 0},
tabindex:function(){return t()?0:void 0},
class:_.QZ(V,v,function(){var k=F();var T=E==null?void 0:E();k=k==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||k==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||k==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||k==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(T==null?void 0:T.size)!=null&&T.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(T==null?void 0:T.size)!=null&&T.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return k}),
style:function(){var k=d(),T=[];k.width&&T.push("width: "+k.width+"px");k.height&&T.push("height: "+k.height+"px");k.maxWidth&&T.push("max-width: "+k.maxWidth+"px");k.maxHeight&&T.push("max-height: "+k.maxHeight+"px");k.fullWidth&&T.push("width: 100%");return T.join(";")}},_.P(_.h,{cond:Z,
then:function(k){return _.P(_.gE,{data:k,alt:p,"data-disabled$":function(){return!p()},
notifyOnLoaded:b,targetWidth:A,targetHeight:w,preserveWidth:function(){return!!A()},
preserveHeight:function(){return!!w()}})}}),_.P(_.Pw,{data:function(){var k;
return(k=Q())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:vy,
thumbnailOverlayButtonViewModel:_.chS}))},"yb");
_.RV.idomCompat=!0;var n5=_.x(function(v){var Q=v.data;var V=v.className;var E=v.useSmallLayout;var b=v.useMediumText;v=v.useHeavyText;var F={};return _.P("yt-attribution-view-model",{el:_.ud(_.C4(function(){var t;return(t=Q())==null?void 0:t.rendererContext})),
class:_.QZ(V,(F.ytAttributionViewModelHost=!0,F.ytAttributionViewModelMediumText=b,F.ytAttributionViewModelHeavyText=v,F))},_.P(_.h,{cond:function(){return _.Gw(Q().rendererContext)},
then:function(){return _.P("button",{class:"ytAttributionViewModelTappable"},_.P(JhV,{data:Q,useSmallLayout:E}))},
else:function(){return _.P(JhV,{data:Q,useSmallLayout:E})}}))},"zb"),JhV=_.x(function(v){var Q=v.data;
var V=v.useSmallLayout;var E=function(){return{size:(V==null?0:V())?16:24}};
return _.P(_.w7,null,_.P(_.Pw,{data:function(){return Q().contentPreviewImage}},{contentPreviewImageViewModel:function(b){return _.P(_.RV,{data:b.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:E})}}),_.P(_.Pw,{data:function(){return Q().badge}},{badgeViewModel:function(b){return _.P(_.YO,{data:b.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.P(_.h,{cond:function(){return Q().text},
then:function(){return _.P(_.tD,{text:function(){return Q().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.P(_.h,{cond:function(){return Q().suffix},
then:function(){return _.P(_.tD,{text:function(){return Q().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
n5.idomCompat=!0;var NfS,xyN,Bfa,gt8,sva;NfS=_.x(function(v){var Q=v.delimiter;var V=v.max;var E=v.index;var b=v.isStandalone;return _.P(_.h,{cond:function(){return V()-1>E()},
then:function(){var F={};return _.P("span",{class:_.QZ("yt-content-metadata-view-model__delimiter",(F["yt-content-metadata-view-model__delimiter--standalone"]=b,F)),"aria-hidden":!0},Q)}})},"Bb");
xyN=_.x(function(v){var Q=v.metadataPart;var V=v.maxLines;return _.P(_.tD,{text:function(){return Q().text},
linkInheritColor:!0,className:function(){return rNb(V())},
userInput:!0})},"Cb");
Bfa=_.x(function(v){var Q=v.metadataPart;var V=v.maxLines;return _.P(_.h,{cond:function(){return Q().tooltip},
then:function(E){return _.P("span",{title:E,role:"tooltip"},_.P(xyN,{metadataPart:Q,maxLines:V}))},
else:function(){return _.P(xyN,{metadataPart:Q,maxLines:V})}})},"Db");
gt8=_.x(function(v){var Q=v.metadataPart;var V=v.isOverlay;var E=v.useMediumText;var b=v.hideAvatar;var F=function(){return Q().maxLines!==void 0?Q().maxLines:1};
return _.P(_.w7,null,_.P(_.Pw,{data:function(){return Q().avatarStack}},{avatarStackViewModel:function(t){return _.P(_.Em,{data:t.data,
isOverlay:V,useMediumText:E,hideAvatar:b})},
badgeViewModel:_.YO}),_.P(_.h,{cond:function(){return Q().leadingIcon},
then:function(t){return _.P(_.L_,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return t().name},
size:function(){return t().width}})}}),_.P(_.h,{cond:function(){return Q().text},
then:function(){return _.P(Bfa,{metadataPart:Q,maxLines:F})}}),_.P(_.h,{cond:function(){return Q().icon},
then:function(t){return _.P(_.L_,{className:"yt-content-metadata-view-model__icon",icon:function(){return t().name},
size:function(){return t().width}})}}))},"Eb");
sva=_.x(function(v){var Q=v.metadataRow;var V=v.isInline;var E=v.delimiter;var b=v.isOverlay;var F=v.useMediumText;var t=v.extensions;var p=function(){var d,w=t==null?void 0:(d=t())==null?void 0:d.lockupMetadata;d=Q();var A,k;return!!((w==null?0:(A=w.byline)==null?0:A.hideAvatar)&&((k=_.y(d,Z18))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},Z=function(){return Q().metadataParts||[]};
v={};return _.P("div",{class:_.QZ("yt-content-metadata-view-model__metadata-row",(v["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=V,v["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var d,w=t==null?void 0:(d=t())==null?void 0:d.lockupMetadata;d=Q();var A,k;return!!((w==null?0:(A=w.byline)==null?0:A.addPadding)&&((k=_.y(d,Z18))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},v["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var d;
return!!(t==null?0:(d=t())==null?0:d.lockupMetadata)&&Q().badges&&!Q().metadataParts},v))},_.P(_.Pw,{data:function(){return Q().badges}},{badgeViewModel:function(d){return _.P("div",{class:"yt-content-metadata-view-model__badge"},_.P(_.YO,{data:d.data,
numBadgesInRow:function(){var w,A;return((w=Q())==null?void 0:(A=w.badges)==null?void 0:A.length)||0}}))}}),_.P(_.xb,{each:Z},function(d,w){return _.P(_.w7,null,_.P(gt8,{metadataPart:d,
isOverlay:b,useMediumText:F,hideAvatar:p}),_.P(NfS,{delimiter:E,max:function(){return Z().length},
index:w,isStandalone:!1}))}),_.P(_.h,{cond:function(){return Q().isSpacerRow&&!V()},
then:function(){return _.P("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.lF=_.x(function(v){v=_.o1(v,{layout:0,isOverlay:!1});var Q=v.data,V=v.layout,E=v.isOverlay,b=v.useMediumText,F=v.extensions,t=function(){return V()===0},p=function(){var d;
return((d=Q().metadataRows)==null?void 0:d.filter(function(w){var A,k=F==null?void 0:(A=F())==null?void 0:A.lockupMetadata,T,c;A=!!((k==null?0:(T=k.description)==null?0:T.hideDescription)&&((c=_.y(w,Z18))==null?void 0:c.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var C,R;return!((k==null?0:(C=k.spacer)==null?0:C.hideSpacer)&&((R=_.y(w,Z18))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||A)}))||[]},Z={};
return _.P("yt-content-metadata-view-model",{class:_.QZ(v.className,"yt-content-metadata-view-model",(Z["yt-content-metadata-view-model--inline"]=t,Z["yt-content-metadata-view-model--tappable"]=function(){return _.Gw(Q().rendererContext)},Z["yt-content-metadata-view-model--medium-text"]=b,Z)),
el:_.ud(_.C4(function(){return Q().rendererContext}))},_.P(_.xb,{each:p},function(d,w){return _.P(_.w7,null,_.P(sva,{metadataRow:d,
isInline:t,delimiter:function(){return Q().delimiter},
isOverlay:E,useMediumText:b,extensions:F}),_.P(_.h,{cond:function(){return t()&&!d.isSpacerRow},
then:function(){return _.P(NfS,{delimiter:function(){return Q().delimiter},
max:function(){return p().length},
index:w,isStandalone:!0})}}))}))},"Gb");
_.lF.idomCompat=!0;var uVV=_.x(function(v){var Q=_.ht().resolve(_.d$(_.JR)),V={};return _.P("yt-lockup-metadata-view-model",{class:_.QZ("yt-lockup-metadata-view-model",function(){a:{var E=v.lockupStyle();if(E==null?0:E.isOverlay)E="yt-lockup-metadata-view-model--overlay";else switch(E==null?void 0:E.arrangement){case 1:E="yt-lockup-metadata-view-model--horizontal";break a;default:E="yt-lockup-metadata-view-model--vertical"}}return E},function(){a:{var E=v.lockupStyle();
switch(E==null?void 0:E.titleMaxLines){case 1:E="yt-lockup-metadata-view-model--title-max-lines-1";break a}E=void 0}return E},function(){a:{var E=v.lockupStyle();
if(E==null?0:E.isTiny)E="yt-lockup-metadata-view-model--tiny";else switch(E==null?void 0:E.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":E="yt-lockup-metadata-view-model--compact";break a;default:E="yt-lockup-metadata-view-model--standard"}}return E},(V["yt-lockup-metadata-view-model--overlay"]=function(){var E;
return(E=v.lockupStyle())==null?void 0:E.isOverlay},V["yt-lockup-metadata-view-model--card"]=function(){var E;
return(E=v.lockupStyle())==null?void 0:E.isCard},V["yt-lockup-metadata-view-model--centered"]=function(){var E;
return(E=v.lockupStyle())==null?void 0:E.isCentered},V["yt-lockup-metadata-view-model--typography-bump"]=function(){var E;
return(E=v.lockupStyle())==null?void 0:E.typographyBump},V["yt-lockup-metadata-view-model--legacy-typography"]=function(){var E;
return(E=v.lockupStyle())==null?void 0:E.useLegacyTypography},V["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var E;
return(E=v.lockupStyle())==null?void 0:E.useRichGridLegacyTypography},V))},_.P(_.Pw,{data:function(){return v.data().image}},{avatarStackViewModel:function(E){return _.P("div",{class:"yt-lockup-metadata-view-model__avatar"},_.P(_.Em,{data:E.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(E){return _.P("div",{class:"yt-lockup-metadata-view-model__avatar"},_.P(_.QO,{data:E.data}))},
decoratedAvatarViewModel:function(E){return _.P("div",{class:"yt-lockup-metadata-view-model__avatar"},_.P(_.VO,{data:E.data}))}}),_.P("div",{class:"yt-lockup-metadata-view-model__text-container"},_.P("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var E;return(E=v.data().title)==null?void 0:E.content}},_.P(_.h,{cond:function(){return v.data().title},
then:function(E){return _.P(_.yL,{command:v.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.iP({color:function(){var b;a:{var F=v.lockupStyle();var t=(b=v.hovered)==null?void 0:b.call(v);b=!(Q==null||!Q());var p;if((F==null?0:(p=F.onFocusEffect)==null?0:p.textPrimaryColor)&&t&&(F=b?F.onFocusEffect.textPrimaryColor.darkTheme:F.onFocusEffect.textPrimaryColor.lightTheme)){F=Op(F);break a}F=void 0}return F}}),
ariaLabel:v.lockupAccessibilityLabel},_.P(_.tD,{text:E,userInput:!0}))}})),_.P("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.iP({color:function(){var E;a:{var b=v.lockupStyle();var F=(E=v.hovered)==null?void 0:E.call(v);E=!(Q==null||!Q());var t;if((b==null?0:(t=b.onFocusEffect)==null?0:t.textSecondaryColor)&&F&&(b=E?b.onFocusEffect.textSecondaryColor.darkTheme:b.onFocusEffect.textSecondaryColor.lightTheme)){b=Op(b);break a}b=void 0}return b}})},_.P(_.Pw,{data:function(){return v.data().metadata}},{contentMetadataViewModel:function(E){return _.P(_.lF,{data:E.data,
layout:function(){var b,F;return(F=(b=v.layout)==null?void 0:b.call(v))!=null?F:1},
useMediumText:function(){var b,F;return((b=v.lockupStyle())==null?void 0:b.typographyBump)||((F=v.lockupStyle())==null?void 0:F.useRichGridLegacyTypography)},
extensions:function(){var b,F,t,p;return{lockupMetadata:{byline:{hideAvatar:((b=v.lockupStyle())==null?void 0:b.arrangement)===0,addPadding:((F=v.lockupStyle())==null?void 0:F.arrangement)===1},description:{hideDescription:!((t=v.lockupStyle())==null||!t.compactMetadata)},spacer:{hideSpacer:!((p=v.lockupStyle())==null||!p.compactMetadata)}}}}})}})),_.P(_.Pw,{data:function(){return v.data().attribution}},{attributionViewModel:function(E){return _.P("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.P(n5,{data:E.data,
useSmallLayout:!0}))}})),_.P("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.P(_.Pw,{data:function(){return v.data().menuButton}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
buttonOverrides:function(){var b;return((b=v.lockupStyle())==null?0:b.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
uVV.idomCompat=!0;var jvQ=_.x(function(v){var Q=_.Ze("notification-multi-action-renderer");_.uk(function(){requestAnimationFrame(function(){_.Lp(Q.value)})});
var V={},E={},b={};return _.P("notification-multi-action-renderer",{class:_.QZ("ytNotificationMultiActionRendererHost",(V.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var F;return(F=v.useLegacyShelfStyle)==null?void 0:F.call(v)},V)),
el:Q},_.P("span",{"aria-live":"polite",class:_.QZ("ytNotificationMultiActionRendererTextContainer",(E.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var F;return(F=v.useLegacyShelfStyle)==null?void 0:F.call(v)},E))},_.P(_.tD,{text:function(){return v.data().responseText}})),_.P("div",{class:_.QZ("ytNotificationMultiActionRendererButtonContainer",(b.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var F;
return(F=v.useLegacyShelfStyle)==null?void 0:F.call(v)},b))},_.P(_.Pw,{data:function(){var F;
return(F=v.data().buttons)==null?void 0:F.map(function(t){if(t=t.buttonRenderer){var p,Z=Object,d=Z.assign,w=(p=t.icon)==null?void 0:p.iconType;p=(p=t.command||t.serviceEndpoint||t.navigationEndpoint)?{innertubeCommand:p}:void 0;t={buttonViewModel:d.call(Z,{},{iconName:w,onTap:p,trackingParams:t.trackingParams,titleFormatted:t.text?_.cg(t.text):void 0},IsG(t))}}else t=void 0;return t}).filter(function(t){return!!t})}},{buttonViewModel:function(F,t){return _.P("div",null,_.P(_.D6,{data:F.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var p;return((p=v.useModernStyles)==null?0:p.call(v))?{type:t()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var WYa=_.x(function(v){var Q=_.Ze("notification-text-renderer");_.uk(function(){requestAnimationFrame(function(){_.Lp(Q.value)})});
return _.P("notification-text-renderer",{el:Q,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.P(_.tD,{text:function(){return v.data().successResponseText}}))},"Lb");_.qg=_.x(function(v){var Q=_.p4(iXS,function(){var E;return HRG((E=v.contentId)==null?void 0:E.call(v))}),V=function(){var E;
return _.y((E=Q())==null?void 0:E.command,_.Nd)};
return _.P(_.h,{cond:function(){var E;if(!(E=V())){var b;E=_.y((b=Q())==null?void 0:b.command,D7Z)}return E},
then:function(){return _.P(_.h,{cond:V,then:function(){var E={};return _.P("div",{class:_.QZ("ytDismissibleItemReplacedContent",function(){var b;return mwG((b=v.aspectRatio)==null?void 0:b.call(v))})},_.P("div",{class:_.QZ((E.ytDismissibleItemAspectRatioContainer=function(){var b;
return((b=v.aspectRatio)==null?void 0:b.call(v))!==void 0},E))},_.P(_.Pw,{data:function(){var b;
return(b=V())==null?void 0:b.item}},{notificationMultiActionRenderer:function(b){return _.P(jvQ,{data:b.data,
useModernStyles:v.useModernStyle,useLegacyShelfStyle:v.useLegacyShelfStyle})},
notificationTextRenderer:WYa})))}})},
else:v.children})},"Mb");_.otZ=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;v=_.ud(_.k0({visibilityCallback:function(F){var t,p=(t=Q().interaction)==null?void 0:t.onFirstVisible;F&&p&&_.nx(p)},
showOption:_.Mg}));var E=function(){var F;return((F=Q().interaction)==null?0:F.onTap)?function(t){var p;GJm(t,(p=Q().interaction)==null?void 0:p.onTap,V)}:void 0},b=function(){var F,t=Q(),p=E(),Z=(F=_.y(Q().rendererContext,_.ds))==null?void 0:F.label;
a:switch(t.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":F=1;break a;default:F=0}return{size:Q_t(t.size),type:F,onTap:p,accessibilityText:Z}};
return _.P("ad-avatar-view-model",{class:function(){var F;return((F=Q().interaction)==null?0:F.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:v},_.P(_.h,{cond:function(){return Q().image},
then:function(F){return _.P(C5V,{data:b,image:F})}}))},"Nb");_.Ss=_.x(function(v){var Q=_.o1(v,{hasDot:!1,usedInMasthead:!1}),V=Object.assign({},Q),E=Q.data,b=Q.hasDot;v=Q.customCommandResolver;var F=Q.usedInMasthead,t=(delete V.data,delete V.hasDot,delete V.customCommandResolver,delete V.usedInMasthead,V);Q=function(){return E().style};
Q!==void 0&&Q!==null||_.V9(Error("Hh"));v=_.n4(function(){return E().interaction},v);
return _.P("ad-badge-view-model",{class:_.QZ(function(){var p;return((p=E().interaction)==null?0:p.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var p=t.adRenderingContextType(),Z=F();
E();return p!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||Z?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.ud(v)},_.P(_.KP,{data:function(){var p;E();return{type:2,text:(p=E().label)==null?void 0:p.content,adsIncludeDot:b(),isOverlay:E().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var XiS;_.z$=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;var E=v.adRenderingContextType;return _.P("ad-details-line-view-model",{class:function(){var b;return((b=Q().interaction)==null?0:b.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(b){var F,t=(F=Q().interaction)==null?void 0:F.onFirstVisible;b&&t&&_.nx(t)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},V))},_.P(_.h,{cond:function(){return Q().style},
then:function(b){return _.P(_.xb,{each:function(){var F;return((F=Q())==null?void 0:F.attributes)||[]},
keyBy:"INDEX"},function(F){return _.P(XiS,{attribute:F,style:b,adRenderingContextType:function(){return E()}})})}}))},"Pb");
XiS=_.x(function(v){var Q=v.attribute;var V=v.style;var E=v.adRenderingContextType;return _.P(_.h,{cond:function(){return Q().text},
then:function(b){return _.P(_.tD,{text:b,className:function(){var F=E();V();return F==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var a_8=_.x(function(v){var Q=v.data;var V=v.typographyBump;var E=function(){return Q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},b=function(){return{size:"M"}};
v={};return _.P(_.w7,null,_.P("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.P(_.tD,{text:function(){return Q().headline},
className:_.QZ("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(v.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return E==null?void 0:E()},v.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(V==null?void 0:V())&&!(E==null?0:E())},v)),
linkInheritColor:!0}),_.P(_.h,{cond:function(){return Q().description},
then:function(F){var t={};return _.P(_.tD,{text:F,className:_.QZ("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return E==null?void 0:E()},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(V==null?void 0:V())&&!(E==null?0:E())},t)),
linkInheritColor:!0})}}),_.P(_.h,{cond:function(){return Q().secondaryDescription},
then:function(F){var t={};return _.P(_.tD,{text:F,className:_.QZ("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return V==null?void 0:V()},t)),
linkInheritColor:!0})}}),_.P("div",{class:function(){return E()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.P(_.h,{cond:function(){return Q().adAvatar},
then:function(){return _.P("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.P(_.Pw,{data:function(){return Q().adAvatar}},{adAvatarViewModel:_.otZ}))}}),_.P(_.Pw,{data:function(){return Q().adBadge}},{adBadgeViewModel:function(F){return _.P(_.Ss,{data:F.data,
hasDot:function(){return!!Q().adDetailsLine},
adRenderingContextType:function(){return Q().adRenderingContextType}})}}),_.P(_.Pw,{data:function(){return Q().adDetailsLine}},{adDetailsLineViewModel:function(F){return _.P(_.z$,{data:F.data,
adRenderingContextType:function(){return Q().adRenderingContextType}})}}))),_.P("div",{class:function(){return _.Y("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":E()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.P(_.Pw,{data:function(){return Q().menu}},{buttonViewModel:function(F){return _.P(_.D6,{data:F.data,
buttonOverrides:_.Y("enable_desktop_vdc_components")?b:function(){a:switch(Q().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var t="S";break a;default:t="M"}return{size:t}}})}})))},"Rb"),rhQ=_.x(function(v){var Q=v.data;
var V=v.noBottomMargin;var E=v.useVideoLockupTopPadding;var b=v.typographyBump;v={};v=_.QZ("ytwFeedAdMetadataViewModelHostMetadata",(v.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return V==null?void 0:V()},v.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return E==null?void 0:E()},v));
var F=function(){return Q().adBadge};
F!==void 0&&F!==null||_.V9(Error("Ih"));F={};var t={};return _.P(_.w7,null,_.P(_.h,{cond:function(){return Q().adAvatar},
then:function(){return _.P("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.P(_.Pw,{data:function(){return Q().adAvatar}},{adAvatarViewModel:function(p){return _.P(_.otZ,{data:p.data})}}))}}),_.P("div",{class:v},_.P("div",{class:_.QZ("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(F.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return b==null?void 0:b()},F.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(b==
null?void 0:b())&&_.Y("web_enable_typography_bump_v2")},F))},_.P(_.tD,{text:function(){return Q().headline},
linkInheritColor:!0})),_.P(_.h,{cond:function(){return Q().description},
then:function(p){return _.P(_.tD,{text:p,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.P("div",{class:function(){return Q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.Y("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.P(_.Pw,{data:function(){return Q().adBadge}},
{adBadgeViewModel:function(p){return _.P(_.Ss,{data:p.data,
hasDot:function(){return!!Q().adDetailsLine},
adRenderingContextType:function(){return Q().adRenderingContextType}})}}),_.P(_.Pw,{data:function(){return Q().adDetailsLine}},{adDetailsLineViewModel:function(p){return _.P(_.z$,{data:p.data,
adRenderingContextType:function(){return Q().adRenderingContextType}})}})),_.P(_.h,{cond:function(){return Q().secondaryDescription},
then:function(p){return _.P(_.tD,{text:p,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.P("div",{class:_.QZ("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(t.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return E==null?void 0:E()},t))},_.P(_.Pw,{data:function(){return Q().menu}},{buttonViewModel:_.D6})))},"Sb"),Jv=_.x(function(v){var Q=v.data;
var V=v.noBottomMargin;var E=v.listenToTapEvent;var b=v.setTouchEndHandler;var F=v.useVideoLockupTopPadding;var t=v.typographyBump;v=_.k0({visibilityCallback:function(A){var k,T=(k=Q().interaction)==null?void 0:k.onFirstVisible;A&&T&&_.nx(T)},
showOption:_.Mg});var p=_.n4(function(){return Q().interaction},void 0,function(){return E==null?void 0:E()}),Z=_.L(_.Ge(!1,void 0,"N3Oquc")),d=Z.next().value,w=Z.next().value;
Z=_.EP(function(A){(b==null?0:b())&&!d()&&(A.currentTarget.click(),w(!0),setTimeout(function(){w(!1)},100));
return!1});
return _.P("feed-ad-metadata-view-model",{class:function(){var A;return((A=Q().interaction)==null?0:A.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.ud(v,p),"on:touchend":Z},_.P(_.BU,null,_.P(_.J1,{when:function(){return Q().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.P(a_8,{data:Q,
typographyBump:t})}),_.P(_.J1,{when:function(){return Q().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.P(rhQ,{data:Q,
noBottomMargin:V,useVideoLockupTopPadding:F,typographyBump:t})})))},"Tb");var $yA,I_R;$yA=_.zw.inlinePreviewEnabledSelector;_.Ng=_.x(function(v){return _.P("yt-lockup-view-model",{class:_.QZ(v.className,"yt-lockup-view-model--wrapper")},_.P(_.qg,{contentId:function(){return v.data().contentId},
useModernStyle:!0,aspectRatio:function(){var Q,V;return((Q=v.containerType)==null?void 0:Q.call(v))!==3?sPQ(v.data().contentType,(V=v.force16By9ThumbnailAspectRatio)==null?void 0:V.call(v)):void 0}},function(){return _.P(I_R,Object.assign({},v))}))},"Ub");
I_R=_.x(function(v){v=_.o1(v,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var Q=v.data,V=v.containerLayoutConfig,E=v.containerType,b=v.sizing,F=v.protectBackground,t=v.typographyBump,p=v.force16By9ThumbnailAspectRatio,Z=v.thumbnailFixedWidth,d=v.thumbnailTargetWidth,w=v.lockupExperiments,A=v.elementsPerRow,
k=_.ht().resolve(_.d$(_.JR));v=_.ud(_.C4(function(){var lb;return(lb=Q())==null?void 0:lb.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 T=_.Z1($yA),c=_.ht().resolve(_.d$(Zma)),C=c?{}:void 0,R=function(){var lb,ep,JS;return(JS=(ep=_.y((lb=Q())==null?void 0:lb.rendererContext,_.ds))==null?void 0:ep.label)!=null?JS:void 0},l=function(){var lb;
return(lb=_.y(Q().metadata,_.PpX))==null?void 0:lb.endorsement},S=function(){var lb=V==null?void 0:V(),ep;
if(lb==null?0:lb.containerType){var JS=(ep=Q())==null?void 0:ep.contentType;ep=w();var fZ=t(),mS=d(),PN=F();lb=Object.assign({},ulh(NcT(lb),qJ(lb.responsiveSize),fZ,JS,lb.force16By9ThumbnailAspectRatio,mS,PN,ep),{thumbnailFixedWidth:lb.contentPreviewWidth})}else lb=ulh(E(),b(),t(),(JS=Q())==null?void 0:JS.contentType,p(),d(),F(),w());return lb};
c&&C&&c({enabled:function(){return T()},
itemPlaybackModel:function(){return Q().itemPlayback},
thumbnailElRef:function(){return C.thumbnailElRef},
containerElRef:v,options:function(){var lb=C.thumbnailOverlays||[],ep=l(),JS;!ep||((JS=w())==null?0:JS.onFocusEffect)||lb.push(ep);var fZ,mS;return{thumbnail:C.thumbnail,thumbnailOverlays:lb,accessibilityText:R(),thumbnailSize:C.thumbnailSize,enableRounding:S().isCollection,containPlayerWithinThumbnail:S().isCollection,mouseleaveCallback:function(){u(!1)},
trackingParams:(fZ=_.y(Q().rendererContext,_.px))==null?void 0:(mS=fZ.loggingDirectives)==null?void 0:mS.trackingParams}}});
var a=0;c=_.L(_.Ge(!1,void 0,"YXogPb"));var g=c.next().value,u=c.next().value;c=_.L(_.Ge(!1,void 0,"vgDaqd"));var r=c.next().value,v9=c.next().value;c=_.EP(function(){r()?(_.XT.cancelJob(a),a=_.XT.addJob(function(){u(!0)},8,32)):u(!0);
return!0});
var t3=_.EP(function(lb){lb=lb.relatedTarget;var ep=document.querySelector("ytd-video-preview");lb&&ep&&ep.contains(lb)||(a&&(_.XT.cancelJob(a),a=0),u(!1))});
_.j_(function(){a&&(_.XT.cancelJob(a),a=0)});
var h3=vnT(function(){v9(!0)}),OB=h3.touchFeedbackEvents,kQ=h3.touchFeedbackOnPointerUp,yo=h3.touchFeedbackOnPointerDown;
h3=h3.touchFeedbackOnPointerLeave;var xQ={};return _.P(_.w7,null,_.P("div",{el:v,class:_.QZ("yt-lockup-view-model",function(){a:{var lb=S();if(lb.isOverlay)lb="yt-lockup-view-model--overlay";else switch(lb.arrangement){case 1:lb="yt-lockup-view-model--horizontal";break a;default:lb="yt-lockup-view-model--vertical"}}return lb},function(){a:{var lb=S();
if(lb.isOverlay)lb="yt-lockup-view-model--overlay";else{switch(lb.collectionStackNumber){case 1:lb="yt-lockup-view-model--collection-stack-1";break a;case 2:lb="yt-lockup-view-model--collection-stack-2";break a}lb=void 0}}return lb},function(){var lb;
return _.$wo((lb=Q())==null?void 0:lb.contentId)},(xQ["yt-lockup-view-model--card"]=function(){return S().isCard},xQ["yt-lockup-view-model--compact"]=function(){return S().isTiny||S().sizing!=="STANDARD"},xQ["yt-lockup-view-model--protect-background"]=F,xQ["yt-lockup-view-model--add-margins"]=function(){return S().addMarginForFullbleed},xQ["yt-lockup-view-model--centered"]=function(){return S().isCentered},xQ["yt-lockup-view-model--fullbleed"]=function(){return S().fullbleed},xQ["yt-lockup-view-model--single-column-grid"]=
function(){return A()===1&&E()===2},xQ["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var lb;
return(lb=w())==null?void 0:lb.useRichGridLegacyMargin},xQ["yt-lockup-view-model--flex-none"]=function(){return!_.Y("lockup_flex_none_killswitch")},xQ)),
"on:mousedown":yo,"on:mouseleave":t3,"on:mouseup":kQ,"on:mouseover":c,"on:touchstart":yo,"on:touchend":kQ,"on:pointerleave":h3},_.P(_.c6,{model:function(){var lb,ep,JS=Object,fZ=JS.assign,mS=(C==null?void 0:C.thumbnailSize)||"small";a:{var PN=S();var qZ=!!(l()&&((lb=w())==null?0:lb.onFocusEffect));switch((C==null?void 0:C.thumbnailSize)||"small"){case "small":lb=4;break;case "large":lb=12;break;default:lb=8}if(qZ)PN=lb+12;else{switch(PN.collectionStackNumber){case 1:PN=lb+8;break a;case 2:PN=lb+12;
break a}PN=void 0}}mS={thumbnailSize:mS,triggerEvents:!0,customTopExtend:PN};var DX;PN=(ep=w())==null?void 0:ep.onFocusEffect;qZ=!(k==null||!k());if(PN){var Th,R8;ep=qZ?(Th=PN.onFocusColor)==null?void 0:Th.darkTheme:(R8=PN.onFocusColor)==null?void 0:R8.lightTheme;var LE,Q8;Th=qZ?(LE=PN.keyLightColor)==null?void 0:LE.darkTheme:(Q8=PN.keyLightColor)==null?void 0:Q8.lightTheme;var Tq;LE=qZ?(DX=PN.touchResponseColor)==null?void 0:DX.darkTheme:(Tq=PN.touchResponseColor)==null?void 0:Tq.lightTheme;DX={background:ep!==
void 0?Op(ep):void 0,keyLight:Th!==void 0?Op(Th):void 0};Tq=[];Q8=_.L(PN.lightingTechniques||[]);for(Th=Q8.next();!Th.done;Th=Q8.next())switch(Th.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Tq.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Tq.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Tq.push(3)}DX={hoverEffect:{palette:DX,lightingTechniques:Tq},touchEffect:{palette:{background:LE!==void 0?Op(LE):void 0}}}}else DX={};return fZ.call(JS,{},mS,DX)},
hovered:function(){return g()},
pointerDownEvent:OB.pointerDownEvent,pointerUpEvent:OB.pointerUpEvent,pointerLeaveEvent:OB.pointerLeaveEvent}),_.P(_.h,{cond:function(){var lb;return l()&&g()&&((lb=w())==null?void 0:lb.onFocusEffect)},
then:function(){return _.P("div",{class:"yt-lockup-view-model__endorsement"},_.P(_.Pw,{data:function(){return l()}},{attributionViewModel:function(lb){return _.P(n5,{data:lb.data,
useHeavyText:!0})}}))}}),_.P(_.yL,{command:function(){var lb;
return _.f4((lb=Q())==null?void 0:lb.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(Z()||S().thumbnailFixedWidth)&&S().arrangement===1?"width: "+(Z()||S().thumbnailFixedWidth):""}},_.P(_.Pw,{data:function(){var lb;
return(lb=Q())==null?void 0:lb.contentImage}},{thumbnailViewModel:function(lb){return _.P(_.C5,{data:lb.data,
aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:d,hovered:function(){return g()&&!(T()&&Q().itemPlayback)},
isClip:function(){var ep;return((ep=Q())==null?void 0:ep.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Ywm(C),lockupExperiments:function(){return w()}})},
collectionThumbnailViewModel:function(lb){return _.P(DyS,{data:lb.data,aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:d,doubleStack:function(){return S().collectionStackNumber===2},
hovered:function(){return g()&&!(T()&&Q().itemPlayback)},
playbackRef:Ywm(C)})},
decoratedAvatarViewModel:_.VO})),_.P("div",{class:"yt-lockup-view-model__metadata"},_.P(_.Pw,{data:function(){var lb;return(lb=Q())==null?void 0:lb.metadata}},{lockupMetadataViewModel:function(lb){return _.P(uVV,{data:lb.data,
hovered:g,lockupStyle:S,lockupCommand:function(){var ep;return _.f4((ep=Q())==null?void 0:ep.rendererContext)},
lockupAccessibilityLabel:function(){return R()},
layout:function(){var ep;return((ep=w())==null?0:ep.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(lb){return _.P(Jv,{data:lb.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:t})}}),_.P(_.Pw,{data:function(){var lb;
return(lb=Q())==null?void 0:lb.attachmentSlot}},{lockupAttachmentsViewModel:function(lb){return _.P(zMa,{data:lb.data,
lockupStyle:S})}}))),_.P(_.Pw,{data:function(){var lb;
return(lb=Q())==null?void 0:lb.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(lb){return _.P(zMa,{data:lb.data,
lockupStyle:S})}}))},"Vb");
_.Ng.idomCompat=!0;_.ad(_.Ng,"yt-lockup-view-model",{props:{data:_.pJ,containerLayoutConfig:_.pJ,containerType:_.pJ,sizing:_.pJ,protectBackground:_.pJ,typographyBump:_.pJ,thumbnailFixedWidth:_.pJ,thumbnailTargetWidth:_.pJ,force16By9ThumbnailAspectRatio:_.pJ,className:_.pJ,lockupExperiments:_.pJ,elementsPerRow:_.pJ}});var Fjo,HmA=_.x(function(v){var Q=_.o1(v,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),V=Q.text,E=Q.alwaysShowTruncationText;v=Q.truncationText;var b=Q.onTextClick,F=Q.maxLines,t=Q.disableTextMask,p=Q.textStyle,Z=Q.accessibilityLabel,d=Q.textSize,w=Q.alwaysTruncateAtMaxLines,A=Q.expandOnClick;Q=_.L(_.Ge(!1,void 0,"EzA1q"));var k=Q.next().value,T=Q.next().value;Q=_.EP(function(){A()&&T(!k());b==null||b()});
var c=function(){a:switch(d()){case "medium":var v9=2;break a;case "large":v9=2.2;break a;default:v9=1.8}return v9},C=LjZ(V,function(){return k()?Infinity:F()},c,t,w,k),R=C.isTruncated;
V=C.displayText;w=C.contentRef;var l=C.hiddenRef,S=C.placeholderTruncationTextRef,a=C.hiddenTruncationTextRef;C=C.truncationTextRef;var g={},u={},r={};return _.P("truncated-text",{class:_.QZ((g["yt-truncated-text"]=!0,g["yt-truncated-text--overlay"]=function(){return p()==="overlay"},g["yt-truncated-text--medium-text"]=function(){return d()==="medium"},g["yt-truncated-text--large-text"]=function(){return d()==="large"},g["yt-truncated-text--primary-text"]=function(){return p()==="primary-text"},g)),
"on:click":Q,style:function(){return"line-height: "+c()+"rem;"}},_.P("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:w,style:function(){return k()?"":"max-height: "+F()*c()+"rem;"}},_.P(_.tD,{text:V}),_.P("button",{"aria-disabled":!0,
disabled:!0,class:_.QZ((u["yt-truncated-text__inline-button"]=!0,u["yt-truncated-text--hidden"]=function(){return!(!k()&&(E!=null&&E()||R()))},u)),
el:S,style:function(){return"line-height: "+c()+"rem;"}},_.P(_.tD,{text:v}))),_.P("truncated-text-content",{class:_.QZ("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:l,style:function(){return k()?"":"max-height: "+F()*c()+"rem;"},
"aria-hidden":"true"},_.P(_.tD,{text:V}),_.P("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:a,style:function(){return"line-height: "+c()+"rem;"}},_.P(_.tD,{text:v}))),_.P("button",{"aria-label":Z,
class:_.QZ((r["yt-truncated-text__absolute-button"]=function(){return!t()},r["yt-truncated-text__bottom-button"]=function(){return t()},r["yt-truncated-text--hidden"]=function(){return!(!k()&&(E!=null&&E()||R()))},r)),
el:C,style:function(){return"line-height: "+c()+"rem;"}},_.P(_.tD,{text:v})))},"Xb");
HmA.idomCompat={callbacks:{onTextClick:!0}};var viV=_.x(function(v){var Q=v.data;v=v.className;var V=_.Rr(function(){return pXG(Q())},void 0,"uDhDke"),E=_.P(_.w7,null,_.P(_.h,{cond:function(){return Q().heroText||Q().image},
then:function(){return _.P(myQ,{data:Q})}}),_.P(Uyq,{data:Q,
sizeSmall:function(){return Q().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.P("yt-video-attribute-view-model",{class:v},_.P("div",{class:function(){var b=Q();a:switch(b.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var F="yt-video-attribute-view-model--vertical";break a;default:F="yt-video-attribute-view-model--horizontal"}a:switch(b.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var t="yt-video-attribute-view-model--image-small";break a;default:t="yt-video-attribute-view-model--image-large"}a:switch(b.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var p=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":p="yt-video-attribute-view-model--image-avatar";break a;default:p=""}a:switch(b.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Z="yt-video-attribute-view-model--metadata-header";break a;default:Z=""}a:switch(b.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var d="yt-video-attribute-view-model--container-card";break a;default:d=""}return["yt-video-attribute-view-model",F,t,
p,Z,d,pXG(b)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.iP({"background-color":function(){var b=Q();if(b.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var F="";else{F=b.lightColorPalette;b=b.darkColorPalette;var t,p=((t=_.ht().resolve(_.d$(_.JR)))==null?0:t())&&b?b:F;F=(F=p==null?void 0:p.section2Color)?_.CF(F):""}return F}})},_.P(_.h,{cond:V,
then:function(){return _.P(_.yL,{className:"yt-video-attribute-view-model__content-container",command:V,role:"group",ariaLabel:function(){return Q().title}},E)},
else:function(){return _.P("div",{class:"yt-video-attribute-view-model__content-container"},E)}})))},"Yb");
viV.idomCompat=!0;var myQ=_.x(function(v){var Q=v.data;var V,E=(V=_.ht().resolve(_.d$(_.JR)))==null?void 0:V(),b=function(){return E&&Q().darkThemeImage?Q().darkThemeImage:Q().image},F=_.Rr(function(){return e3G(Q())},void 0,"UDqj0b");
return _.P("div",{class:"yt-video-attribute-view-model__hero-section"},_.P(_.BU,null,_.P(_.J1,{when:b},function(){return _.P(_.gE,{data:function(){return b()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.P(_.J1,{when:function(){return Q().heroText}},function(){return _.P("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.P("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return Q().heroText}))})),_.P(_.h,{cond:function(){return Q().overflowMenuOnTap},
then:function(){return _.P("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.P(_.OA,{data:F,iconName:"MORE_VERT"}))}}))},"Zb");
myQ.idomCompat=!0;var Uyq=_.x(function(v){var Q=v.data;v=v.sizeSmall;var V=function(){return Q().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},E=_.Rr(function(){return Rd(_.DM({innertubeCommand:pXG(Q())}))?"link":pXG(Q())?"button":"group"},void 0,"e2MmYe"),b={};
return _.P("div",{class:_.QZ("yt-video-attribute-view-model__metadata",(b["yt-video-attribute-view-model--small-font"]=v,b)),role:E},_.P("h1",{class:"yt-video-attribute-view-model__title"},function(){return Q().title}),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(){return _.P("h4",{class:"yt-video-attribute-view-model__subtitle"},_.P(_.h,{cond:V,then:function(){return _.P(HmA,{text:function(){return tb9(Q().subtitle)},
truncationText:function(){return tb9(Q().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.P("span",null,function(){return Q().subtitle})}}))}}),_.P(_.h,{cond:function(){return Q().secondarySubtitle},
then:function(F){return _.P("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.P(_.tD,{text:function(){var t=F();if(t!=null&&t.attachmentRuns){for(var p=[],Z=_.L(t.attachmentRuns),d=Z.next();!d.done;d=Z.next())d=d.value,d.element&&p.push(Object.assign({},d,{element:Object.assign({},d.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));t=Object.assign({},t,{attachmentRuns:p})}return t}}))}}),_.P(_.Pw,
{data:function(){return Q().buttonViewModel}},{buttonViewModel:function(F){return _.P(_.D6,{data:F.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
Uyq.idomCompat=!0;_.ad(viV,"yt-video-attribute-view-model",{props:{data:_.pJ,className:_.pJ}});var xO=function(){var v=_.z.apply(this,arguments)||this;v.useHighlightStyling=_.Y("web_enable_deeper_metadata_highlight_styling");v.isSearch=!1;v.JSC$15359_lastScrollContainerWidth=NaN;v.pageLoadingFromNavigation=!1;v.currentIndex=0;v.supportComponentResize=!1;return v};
_.f(xO,_.z);_.K=xO.prototype;
_.K.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}}}}}};
_.K.attached=function(){document.addEventListener("yt-page-type-changed",_.Lh(this,this.onPageChange))};
_.K.detached=function(){document.removeEventListener("yt-page-type-changed",_.Lh(this,this.onPageChange))};
_.K.getItemsPath=function(){return"data.cards"};
_.K.onIronResize=function(){this.updateListStyles()};
_.K.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var v;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(v=this.data)==null?void 0:v.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.Y("problem_walkthrough_sd")&&!!this.centerItems};
_.K.computeCardListStyle=function(v){return v||null};
_.K.computeEmpty=function(v){return!this.get("cards.length",v)};
_.K.computeThumbnailStyle=function(v){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",v)||null};
_.K.computeHasSubtitle=function(v){return!!this.get("header.richListHeaderRenderer.subtitle",v)};
_.K.computeInitialCountNumber=function(v){return this.hasSquareMiniApp&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.K.computeUseFloorScrolling=function(v){return v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.K.computeHasGameCard=function(v){return(v=this.get("cards",v))?v.some(function(Q){return Q.gameCardRenderer}):!1};
_.K.computeCenterHeaderTitle=function(v){return!(v==null||!v.centerHeaderTitle)};
_.K.computeHasPortraitMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(Q){return Q.miniGameCardViewModel&&Q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.K.computeHasSquareMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(Q){return Q.miniGameCardViewModel&&Q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.K.computeHasSkinnyWidthPortraitMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(Q){return Q.miniGameCardViewModel&&Q.miniGameCardViewModel.width===135}):!1};
_.K.computeCenterItems=function(v){return!!v};
_.K.computeHasInfoPanel=function(v){var Q;return v==null?void 0:(Q=v.cards)==null?void 0:Q.some(function(V){return V.infoPanelContentRenderer})};
_.K.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.K.getItemByIndex=function(v){var Q=this.items.children;return Q&&Q.length>v?Q[v]:void 0};
_.K.onPageChange=function(){var v=this;this.pageLoadingFromNavigation=!0;_.XT.addJob(function(){v.pageLoadingFromNavigation=!1;_.Un(v.hostElement,"yt-terminate-video-preview-action")},8)};
_.K.updateListStyles=function(){if(_.Y("problem_walkthrough_sd")&&this.JSC$15359_scrollContainer!==void 0){var v=this.JSC$15359_scrollContainer.clientWidth;v!==this.JSC$15359_lastScrollContainerWidth&&(this.JSC$15359_lastScrollContainerWidth=v,_.F6(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(v*.8,415)+"px"}),_.Hj(this.hostElement,"iron-resize"))}};
_.hr.Object.defineProperties(xO.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.Y("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.cards)==null?0:(V=Q[0])==null?0:V.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.cards)==null?0:(V=Q[0])==null?0:V.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return _.Y("enable_desktop_amsterdam_info_panels")&&!!((v=this.data)==null?0:(Q=v.cards)==null?0:(V=Q[0])==null?0:V.infoPanelContentRenderer)}}});
xO.prototype.dataChanged=xO.prototype.dataChanged;xO.prototype.onIronResize=xO.prototype.onIronResize;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],xO.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.M(_.Er),_.X("design:type",Object)],xO.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xO.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xO.prototype,"useCustomColors",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xO.prototype,"useHighlightStyling",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.X("design:type",Object)],xO.prototype,"cardListStyle",void 0);_.W([_.q({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.X("design:type",Boolean)],xO.prototype,"empty",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.X("design:type",Boolean)],xO.prototype,"hasSubtitle",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.X("design:type",Boolean)],xO.prototype,"thumbnailStyle",void 0);_.W([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.X("design:type",Boolean)],xO.prototype,"hasGameCard",void 0);_.W([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.X("design:type",Boolean)],xO.prototype,"centerHeaderTitle",void 0);
_.W([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.X("design:type",Boolean)],xO.prototype,"hasPortraitMiniApp",void 0);_.W([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.X("design:type",Boolean)],xO.prototype,"hasSquareMiniApp",void 0);_.W([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.X("design:type",Boolean)],xO.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.W([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.X("design:type",Boolean)],xO.prototype,"hasInfoPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xO.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xO.prototype,"inlineStructuredDescription",void 0);_.W([_.Z7("#scroll-container"),_.X("design:type",HTMLDivElement)],xO.prototype,"JSC$15359_scrollContainer",void 0);
_.W([_.q({computed:"computeInitialCountNumber(data.style.type)"}),_.X("design:type",Number)],xO.prototype,"initialCount",void 0);_.W([_.q({computed:"computeUseFloorScrolling(data.style.type)"}),_.X("design:type",Boolean)],xO.prototype,"useFloorScrolling",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.X("design:type",Boolean)],xO.prototype,"centerItems",void 0);_.W([_.q(),_.X("design:type",Object)],xO.prototype,"pageLoadingFromNavigation",void 0);
_.W([_.q(),_.X("design:type",Object)],xO.prototype,"currentIndex",void 0);_.W([_.q(),_.X("design:type",Number)],xO.prototype,"scrollCount",void 0);_.W([_.q(),_.X("design:type",Object)],xO.prototype,"supportComponentResize",void 0);_.W([_.Z7("#items"),_.X("design:type",HTMLDivElement)],xO.prototype,"items",void 0);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xO.prototype,"onIronResize",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xO.prototype,"dataChanged",null);_.W([_.q({reflectToAttribute:!0}),_.O("inlineStructuredDescription"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],xO.prototype,"hideNavigationButton",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],xO.prototype,"modernChapters",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],xO.prototype,"hasVideoAttributeViewModels",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],xO.prototype,"modernInfoPanels",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],xO);
_.B(xO,"ytd-horizontal-card-list-renderer",function(){if(XXa!==void 0)return XXa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return XXa=v},{mode:_.mV("kevlar_poly_si_batch_j072")?1:2});var Q9q=_.x(function(v){var Q=v.data;var V={};return _.P("video-summary-content-view-model",{class:_.QZ("videoSummaryContentViewModelHost",v.className,(V.videoSummaryContentViewModelHostIsSearch=v.isSearch,V))},_.P(_.xb,{each:function(){var E=[],b=Q().paragraphs;if(b==null||!b.length)return[];for(var F=0;F<b.length;F++){var t=_.y(b[F],wON),p=void 0;F>0&&(p=_.y(b[F-1],wON));p&&!!p.marker===!!t.marker?E[E.length-1].paragraphs.push(t):E.push({isList:!!t.marker,paragraphs:[t]})}return E},
keyBy:"INDEX"},function(E){return _.P(_.h,{cond:function(){return E().isList},
then:function(){return _.P("ul",{class:"videoSummaryContentViewModelList"},_.P(_.xb,{each:function(){return E().paragraphs},
keyBy:"INDEX"},function(b){return _.P("li",{class:"videoSummaryContentViewModelListItem"},_.P(_.tD,{text:function(){return b().text}}))}))},
else:function(){return _.P("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.P(_.xb,{each:function(){return E().paragraphs},
keyBy:"INDEX"},function(b){return _.P("p",{class:"videoSummaryContentViewModelParagraph"},_.P(_.tD,{text:function(){return b().text}}))}))}})}),_.P(_.h,{cond:function(){return!!_.y(Q().likeButtonViewModel,_.Uv)&&!!_.y(Q().dislikeButtonViewModel,_.mp)},
then:function(){return _.P("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.P("div",{class:"videoSummaryContentViewModelLikeButton"},_.P(_.bL,{data:function(){return _.y(Q().likeButtonViewModel,_.Uv)},
disableIconAnimation:!0})),_.P(_.Es,{data:function(){return _.y(Q().dislikeButtonViewModel,_.mp)}}))}}))},"ac");
Q9q.idomCompat=!0;_.ad(Q9q,"video-summary-content-view-model",{props:{data:_.pJ,isSearch:_.pJ,className:_.pJ}});var By=function(){var v=_.z.apply(this,arguments)||this;var Q,V;v.isExpanded=(V=(Q=v.data)==null?void 0:Q.isExpanded)!=null?V:!1;v.disableExpand=!1;v.showProminentLabel=!1;v.showRightSideLabel=!0;v.toggleExpandableContent=function(E){v.disableExpand||(E.stopPropagation(),_.W_(_.uK(E),v.hostElement,["info","expanded-subtitle"])||(v.isExpanded=!v.isExpanded,v.ytRendererBehavior.logExplicitClick(v.data),v.JSC$15370_cardList&&!_.Y("expandable_metadata_a11y_fix_ks")&&_.PE(v,function(){_.iS(v.hostElement)})))};
v.useSquareThumbnail=!1;v.startX=0;return v};
_.f(By,_.z);_.K=By.prototype;_.K.computeUseSquareThumbnail=function(){var v;return(v=this.data)==null?void 0:v.useSquareThumbnail};
_.K.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"}}}}};
_.K.dataChanged=function(){if(this.data){var v,Q;this.isExpanded=(Q=(v=this.data)==null?void 0:v.isExpanded)!=null?Q:!1;var V,E,b,F;if(v=this.isDarkTheme()?(V=this.data)==null?void 0:(E=V.colorData)==null?void 0:E.darkColorPalette:(b=this.data)==null?void 0:(F=b.colorData)==null?void 0:F.lightColorPalette){var t,p;if((t=this.data)==null?0:(p=t.colorData)==null?0:p.vibrantColorPalette)v.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Tr(this.hostElement,v)}}};
_.K.isExpandedChanged=function(){this.isExpanded&&this.JSC$15370_cardList&&_.Hj(this.JSC$15370_cardList,"iron-resize")};
_.K.computeIsExpanded=function(v){return!!v.isExpanded};
_.K.computeShowProminentLabel=function(v,Q){var V;return!!(v==null?0:(V=v.header)==null?0:V.showLeadingCollapsedLabel)&&!Q};
_.K.computeShowRightSideLabel=function(v,Q){var V;return!(v==null?0:(V=v.header)==null?0:V.showLeadingCollapsedLabel)&&!Q};
_.K.captureContentClick=function(v){if(!this.disableExpand)if(_.Y("expandable_metadata_fix_killswitch")){var Q=v.target;_.NI8(Q,"ytd-macro-markers-list-item-renderer")||v.stopPropagation();(Q==null?void 0:Q.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.W_(_.uK(v),this.hostElement,["items"])||_.j$(_.uK(v),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.K.timestampClick=function(v){v.stopPropagation();var Q,V;(v=(Q=this.data)==null?void 0:(V=Q.header)==null?void 0:V.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(v)};
_.K.onDown=function(v){v.stopPropagation();this.startX=v.detail?v.detail.x:0};
_.K.onUp=function(v){this.skipKeyInteraction(v)&&v.stopPropagation()};
_.K.skipKeyInteraction=function(v){var Q=v.target;if((Q==null?void 0:Q.id)==="scroll-container"||(Q==null?void 0:Q.id)==="items"||v.detail&&v.detail.x!==this.startX)return!0;v=_.uK(v);v=_.L(v);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;if(Q===this.hostElement)break;if(Q.hasAttribute&&Q.hasAttribute("skip-key-interaction"))return!0}return!1};
_.K.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.hr.Object.defineProperties(By.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.y((v=this.data)==null?void 0:v.expandedContent,hra)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.y((v=this.data)==null?void 0:v.expandedContent,_.dDq)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.useCustomColors)&&!((Q=this.data)==null||!Q.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!!((v=this.data)==null?0:(Q=v.header)==null?0:Q.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!!((v=this.data)==null?0:(Q=v.header)==null?0:Q.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!!((v=this.data)==null?0:(Q=v.header)==null?0:Q.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
By.prototype.onUp=By.prototype.onUp;By.prototype.onDown=By.prototype.onDown;By.prototype.isExpandedChanged=By.prototype.isExpandedChanged;By.prototype.dataChanged=By.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],By.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],By.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],By.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],By.prototype,"isExpanded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],By.prototype,"disableExpand",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],By.prototype,"isSearch",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],By.prototype,"isWatch",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.X("design:type",Object)],By.prototype,"showProminentLabel",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.X("design:type",Object)],By.prototype,"showRightSideLabel",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"hasVideoSummary",null);_.W([_.q({value:!1,reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"hasLockupViewModel",null);_.W([_.q({reflectToAttribute:!0}),_.O("data","isWatch"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"useCustomColors",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data","isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"showInfoButton",null);_.W([_.O("data","isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"showTimestamp",null);_.W([_.O("data","isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"showExpandedSubtitle",null);
_.W([_.O("data","isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],By.prototype,"showThumbnail",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],By.prototype,"useVppShoppingDestinationStyle",null);_.W([_.q(),_.X("design:type",Object)],By.prototype,"toggleExpandableContent",void 0);_.W([_.Z7("ytd-horizontal-card-list-renderer"),_.X("design:type",Object)],By.prototype,"JSC$15370_cardList",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.X("design:type",Object)],By.prototype,"useSquareThumbnail",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],By.prototype,"dataChanged",null);_.W([_.ph("isExpanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],By.prototype,"isExpandedChanged",null);
_.W([_.tM("down"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],By.prototype,"onDown",null);_.W([_.tM("up"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],By.prototype,"onUp",null);_.W([_.J({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],By);
_.B(By,"ytd-expandable-metadata-renderer",function(){if(vnQ!==void 0)return vnQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vnQ=v},{mode:1});var VrA,EiN=function(){if(VrA!==void 0)return VrA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return VrA=v};_.ad(_.Em,"yt-avatar-stack-view-model",{props:{className:_.pJ,data:_.pJ,overrides:_.pJ,isOverlay:_.pJ,useMediumText:_.pJ,decorations:_.pJ,hideAvatar:_.pJ}});_.yZ("itemSectionRenderer","videoRenderer","ytd-video-renderer");var g_=function(){var v=_.z.apply(this,arguments)||this;v.disableExpand=!1;v.shouldShowChannelInfo=!1;v.hasAttributedBylineText=!1;v.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return v};
_.f(g_,_.z);_.K=g_.prototype;_.K.computeUseSearchUi=function(){var v,Q;return this.isSearch||((v=this.data)==null?void 0:(Q=v.style)==null?void 0:Q.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.K.computeUseThreeLineTitle=function(){var v;return((v=this.data)==null?void 0:v.maxTitleLines)===3};
_.K.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.Y("polymer_video_renderer_defer_menu")&&!xuZ?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.K.attached=function(){_.VE(this.hostElement,"blue-links",_.Y("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.EJ(_.m9(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var v=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Q;v&&((Q=_.y(v.commandMetadata,_.u7))==null?0:Q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(v);this.updateInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15375_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.JSC$15375_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15375_inlinePreviewHoverListener)==null||ji(v)};
_.K.onTextWrapperClick=function(v){var Q,V,E=this.hideTranslation?(Q=this.data)==null?void 0:Q.untranslatedNavigationEndpoint:(V=this.data)==null?void 0:V.navigationEndpoint;Q=_.W_(_.uK(v),this.hostElement,["expandable-metadata"]);!E||Q&&!_.Y("expandable_metadata_fix_killswitch")||_.j$(_.uK(v),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Hj(this.hostElement,"yt-navigate",{endpoint:E})};
_.K.computeThumbnailWidth=function(v,Q,V,E,b){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:E?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:V?360:Q?128:v?210:246};
_.K.computeUseBiggerThumbs=function(v){return v&&_.Y("enable_desktop_search_bigger_thumbs")};
_.K.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.K.computeHasAttributedBylineText=function(){var v;return!((v=this.data)==null||!v.attributedBylineText)};
_.K.computeVideoStyle=function(){if(_.Y("enable_video_style")){var v,Q;return(v=this.data)==null?void 0:(Q=v.style)==null?void 0:Q.value}};
_.K.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.K.handleHideItemSectionVideosByIdCommand=function(v){var Q;v=(Q=_.y(v,x_N))==null?void 0:Q.videoId;this.data&&this.data.videoId===v&&(this.isHidden=!0)};
_.K.getMetadataSnippetContainerClass=function(v){return v?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.K.computeTitleText=function(v,Q,V){return v?V:Q};
_.K.computeDescriptionSnippet=function(v,Q,V){return v?V:Q};
_.K.computeSnippetText=function(v,Q,V){return v?V:Q};
_.K.computeNavigationEndpoint=function(v,Q){return v?Q==null?void 0:Q.untranslatedNavigationEndpoint:Q==null?void 0:Q.navigationEndpoint};
_.K.hideInlineTitleIcon=function(v,Q){return v||!Q};
_.hr.Object.defineProperties(g_.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var v;return(v=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?v:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!(this==null?0:(v=this.data)==null?0:(Q=v.channelThumbnailSupportedRenderers)==null?0:(V=Q.channelThumbnailWithLinkRenderer)==null?0:V.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.y((v=this.data)==null?void 0:v.avatar,kVa)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15375_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.hr.Object.defineProperties(g_,{template:{configurable:!0,enumerable:!0,get:function(){return EiN()}}});
g_.prototype.dataChanged=g_.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],g_.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.p1),_.X("design:type",Object)],g_.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],g_.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],g_.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],g_.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],g_.prototype,"isBackstageVideo",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],g_.prototype,"isPostCompactVideo",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],g_.prototype,"isHistory",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],g_.prototype,"isRichGridVideoPost",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],g_.prototype,"isHidden",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],g_.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.X("design:type",Boolean)],g_.prototype,"useSearchUi",void 0);_.W([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.X("design:type",Boolean)],g_.prototype,"useThreeLineTitle",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.X("design:type",Boolean)],g_.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.X("design:type",Object)],g_.prototype,"videoStyle",void 0);_.W([_.q({computed:"computeDisableExpand(videoStyle)"}),_.X("design:type",Object)],g_.prototype,"disableExpand",void 0);
_.W([_.q({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.X("design:type",Object)],g_.prototype,"shouldShowChannelInfo",void 0);_.W([_.q({computed:"computeHasAttributedBylineText(data)"}),_.X("design:type",Object)],g_.prototype,"hasAttributedBylineText",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],g_.prototype,"biggerThumbsStyle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.X("design:type",String)],g_.prototype,"inlineTitleIcon",void 0);_.W([_.q({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.X("design:type",Object)],g_.prototype,"computedNavigationEndpoint",void 0);_.W([_.q({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"searchVideoResultEntity",Q)}}),
_.X("design:type",Object)],g_.prototype,"searchVideoResultEntity",void 0);_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],g_.prototype,"thumbnail",void 0);_.W([_.Z7("#dismissible"),_.X("design:type",HTMLElement)],g_.prototype,"JSC$15375_dismissibleMedia",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],g_.prototype,"dataChanged",null);
_.W([_.O("searchVideoResultEntity"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],g_.prototype,"hideTranslation",null);_.W([_.O("searchVideoResultEntity"),_.X("design:type",Array),_.X("design:paramtypes",[])],g_.prototype,"hiddenBadgeGroups",null);_.W([_.O("data","useAvatar"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],g_.prototype,"shouldShowChannelThumbnail",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],g_.prototype,"useAvatar",null);
_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],g_.prototype,"isHovered",null);_.W([_.J({is:"ytd-video-renderer",disableElementRegistration:!0})],g_);_.B(g_,"ytd-video-renderer",function(){return EiN()},{mode:_.mV("kevlar_poly_si_batch_j047")?1:2});var sm=function(){var v=_.z.apply(this,arguments)||this;v.editDialog=null;v.roundedContainer=!0;v.isLoading=!1;v.isRichGrid=!1;v.isRichGridRepost=!1;v.reduceSidePaddings=_.Y("reduce_side_paddings_in_shelf");v.JSC$15382_spinnerEl=null;return v};
_.f(sm,_.z);_.K=sm.prototype;
_.K.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"}}}};
_.K.contentTextChanged=function(){this.expander.reset()};
_.K.dataChanged=function(){var v=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var Q=0,V=this.data.actions&&this.data.actions.length;Q<V;Q++)this.openEditDialog(_.y(this.data.actions[Q],yca));if((Q=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(Q=this.get("buttonRenderer.hint.hintRenderer.hintId",Q))&&Q.startsWith("share-post-hint")){var E=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(E){_.qs.getInstance();var b=S6(_.u3(_.Lt("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.XT.addLowPriorityJob(function(){_.Qk(v.hostElement,b,E)})}}}};
_.K.updatePoll=function(v){v>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.K.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15382_spinnerEl||(this.JSC$15382_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.m9(this.hostElement).appendChild(this.JSC$15382_spinnerEl));this.JSC$15382_spinnerEl&&(this.JSC$15382_spinnerEl.active=this.isLoading)};
_.K.onYtNavigate=function(v){var Q=this.get("updateCommentDialogEndpoint",v.detail.endpoint);Q&&(this.openEditDialog(Q),v.stopPropagation())};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null};
_.K.onYtCommentPollRevert=function(v,Q){Q&&this.updatePoll(Q.selectedChoiceIndex)};
_.K.onYtServiceRequestSent=function(v,Q){var V;Q.endpoint&&(_.y(Q.endpoint,R4Z)||_.y(Q.endpoint,DK8)&&((V=_.y(Q.endpoint,DK8))==null||!V.clientActions))&&(this.isLoading=!0);if(Q.actions)for(v=0;v<Q.actions.length;v++)V=Q.actions[v],_.y(V,gA)&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V==void 0&&(V=-1),this.updatePoll(V))};
_.K.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.K.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.editDialogEl.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.K.computeIsPostHidden=function(v,Q){return!!v||Q};
_.K.computeSurfaceType=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeUsesCompactLockup=function(v){return v==="BACKSTAGE_SURFACE_TYPE_HOME"||v==="BACKSTAGE_SURFACE_TYPE_SEARCH"||v==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||v==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||v==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||v==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.K.computeShowWithoutToolbar=function(v){return!v.actionButtons&&!v.actionMenu};
_.K.computePostAttachment=function(v){if(v.backstageAttachment){if(_.y(v.backstageAttachment,LrX))return"poll";if(_.y(v.backstageAttachment,a6R))return"quiz";if(_.y(v.backstageAttachment,_.LH))return"video";if(_.y(v.backstageAttachment,rDN))return"uploaded-videos";if(_.y(v.backstageAttachment,aIN))return v.contentText?"image":"image-only";if(_.y(v.backstageAttachment,j5Z))return"playlist"}return"none"};
_.K.computePostTabIndex=function(v){return v?0:-1};
_.K.computeButtonTooltipPosition=function(v){return this.computeUsesCompactLockup(v)?"top":"bottom"};
_.K.computeHasText=function(v){return!(v==null||!v.contentText)};
_.K.onTap=function(v){var Q,V;if(((Q=this.data)==null?0:Q.navigationEndpoint)&&((V=this.data)==null?void 0:V.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var E;((E=this.data)==null?0:E.navigationEndpoint)&&!_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.hr.Object.defineProperties(sm.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.u3("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,LrX))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,rDN))}}});
sm.prototype.onYtServiceRequestCompleted=sm.prototype.onYtServiceRequestCompleted;sm.prototype.onYtServiceRequestSent=sm.prototype.onYtServiceRequestSent;sm.prototype.onYtCommentPollRevert=sm.prototype.onYtCommentPollRevert;sm.prototype.onYtCommentboxDismiss=sm.prototype.onYtCommentboxDismiss;sm.prototype.onYtNavigate=sm.prototype.onYtNavigate;sm.prototype.isLoadingChanged=sm.prototype.isLoadingChanged;sm.prototype.dataChanged=sm.prototype.dataChanged;sm.prototype.contentTextChanged=sm.prototype.contentTextChanged;
_.W([_.M(_.Er),_.X("design:type",Object)],sm.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],sm.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],sm.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],sm.prototype,"editDialog",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sm.prototype,"roundedContainer",void 0);_.W([_.q(),_.X("design:type",Object)],sm.prototype,"isLoading",void 0);_.W([_.q({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.X("design:type",String)],sm.prototype,"surface",void 0);
_.W([_.q({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.X("design:type",Boolean)],sm.prototype,"usesCompactLockup",void 0);_.W([_.q({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],sm.prototype,"showWithoutToolbar",void 0);_.W([_.q({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.X("design:type",String)],sm.prototype,"attachment",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sm.prototype,"isRichGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sm.prototype,"isRichGridRepost",void 0);_.W([_.q({reflectToAttribute:!0,value:_.Y("use_better_post_dismissals")}),_.X("design:type",Boolean)],sm.prototype,"useBetterPostDismissals",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sm.prototype,"reduceSidePaddings",void 0);
_.W([_.q({computed:"computeHasText(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],sm.prototype,"hasText",void 0);_.W([_.Z7("#expander"),_.X("design:type",Object)],sm.prototype,"expander",void 0);_.W([_.Z7("#action-buttons"),_.X("design:type",Object)],sm.prototype,"actionButtons",void 0);_.W([_.Z7("#edit-dialog"),_.X("design:type",HTMLElement)],sm.prototype,"editDialogEl",void 0);
_.W([_.ph("data.contentText"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sm.prototype,"contentTextChanged",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sm.prototype,"dataChanged",null);_.W([_.ph("isLoading"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sm.prototype,"isLoadingChanged",null);
_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],sm.prototype,"onYtNavigate",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sm.prototype,"onYtCommentboxDismiss",null);_.W([_.tM("yt-comment-poll-revert"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],sm.prototype,"onYtCommentPollRevert",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],sm.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],sm.prototype,"onYtServiceRequestCompleted",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],sm.prototype,"voteCount",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],sm.prototype,"commentCount",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],sm.prototype,"hasPoll",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],sm.prototype,"hasUploadedVideo",null);_.W([_.J({is:"ytd-post-renderer",disableElementRegistration:!0})],sm);
_.B(sm,"ytd-post-renderer",function(){if(yNp!==void 0)return yNp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return yNp=v},{mode:1});var bzZ;var FNx;var uF=function(){return _.z.apply(this,arguments)||this};
_.f(uF,_.z);uF.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],uF.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],uF.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uF.prototype,"data",void 0);
_.W([_.q({value:"$.items.children"}),_.X("design:type",String)],uF.prototype,"itemsPath",void 0);_.W([_.q({value:1}),_.X("design:type",Number)],uF.prototype,"initialCount",void 0);_.W([_.q({reflectToAttribute:!0,value:_.Y("enable_community_page_on_desktop")}),_.X("design:type",Boolean)],uF.prototype,"useSmallerPostImageAttachments",void 0);_.W([_.q(),_.X("design:type",String)],uF.prototype,"surface",void 0);_.W([_.J({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],uF);
_.B(uF,"ytd-post-multi-image-renderer",function(){if(FNx!==void 0)return FNx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return FNx=v},{mode:_.mV("kevlar_poly_si_batch_j079")?1:2});var KNZ={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
js=function(){var v=_.z.apply(this,arguments)||this;v.hasInlineCommentSection=!1;v.editDialog=null;v.isLoading=!1;v.shouldHideAuthor=!1;v.shouldShowVideoTime=!1;v.isInEngagementPanel=!1;v.hideBorder=!1;v.usesFullLockup=!1;v.shouldShowMenuInCompactView=!1;v.JSC$15397_spinnerEl=null;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.f(js,_.z);_.K=js.prototype;_.K.configureRendererStamper=function(){return KNZ};
_.K.computeIsPollHeaderEnabled=function(v){return(v==null?void 0:v.pollMetadataIcon)!=null};
_.K.getPublishTimeStampString=function(v,Q){Q=new Date((Number(Q)-60*((new Date).getTimezoneOffset()-(new Date(Number(Q)*1E3)).getTimezoneOffset()))*1E3);Q=(new sx(10)).format(Q);if(v&&v.runs&&v.runs.length)for(var V=0;V<v.runs.length;V++)v.runs[V].text&&(v.runs[V].text=v.runs[V].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",Q));return v};
_.K.created=function(){this.JSC$15397_spinnerEl=null};
_.K.contentTextChanged=function(){this.expander.reset()};
_.K.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var v;if((v=this.data)==null?0:v.actions){v=_.L(this.data.actions);for(var Q=v.next();!Q.done;Q=v.next())this.openEditDialog(_.y(Q.value,yca))}};
_.K.handleSignalActionOpenPostCommentDialogAction=function(){_.m9(this.hostElement).querySelector("#action-buttons").reply()};
_.K.updatePoll=function(v,Q){Q&&this.set("data.pollMetadataVoteCountText",Q);this.hasInlineCommentSection&&(v=v>=0,Q=_.m9(this.hostElement).querySelector("#action-buttons"),v?Q.reply():Q.hideReplyDialog())};
_.K.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15397_spinnerEl||(this.JSC$15397_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.m9(this.hostElement).appendChild(this.JSC$15397_spinnerEl));this.JSC$15397_spinnerEl&&(this.JSC$15397_spinnerEl.active=this.isLoading)};
_.K.onYtNavigate=function(v){var Q=this.get("updateCommentDialogEndpoint",v.detail.endpoint);Q&&(this.openEditDialog(Q),v.stopPropagation())};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null};
_.K.onYtCommentPollRevert=function(v,Q){Q&&this.updatePoll(Q.selectedChoiceIndex,Q.totalVotes)};
_.K.onYtServiceRequestSent=function(v,Q){v.stopPropagation();v=_.y(Q.endpoint,DK8);if(_.y(Q.endpoint,R4Z)||v&&!v.clientActions)this.isLoading=!0;if(Q.actions)for(v=0;v<Q.actions.length;v++){var V=Q.actions[v],E=_.y(V,gA);E&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V===void 0&&(V=-1),this.updatePoll(V,E.totalVotes))}};
_.K.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.K.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.editDialogElement.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.K.computeIsBodyHidden=function(v,Q){return!!v||Q};
_.hr.Object.defineProperties(js.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var v=this.data,Q=v.showPostAuthorBackgroundHighlight,V=v.postAuthorBadgeType,E=v.authorEndpoint;if(!Q&&V!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&V!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var b,F,t;v=_.u3(((b=v.authorText)==null?void 0:(F=b.runs)==null?void 0:(t=F[0])==null?void 0:t.text)||"");b=void 0;switch(V){case "POST_AUTHOR_BADGE_TYPE_ARTIST":b={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":b={iconType:Q?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:v,authorEndpoint:E,authorCreator:Q,icon:b}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var v,Q;if((v=this.data)==null?0:(Q=v.pollMetadataIcon)==null?0:Q.iconType)return _.VK(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.u3("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,LrX))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,a6R))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,rDN))}}});
js.prototype.onYtServiceRequestCompleted=js.prototype.onYtServiceRequestCompleted;js.prototype.onYtServiceRequestSent=js.prototype.onYtServiceRequestSent;js.prototype.onYtCommentPollRevert=js.prototype.onYtCommentPollRevert;js.prototype.onYtCommentboxDismiss=js.prototype.onYtCommentboxDismiss;js.prototype.onYtNavigate=js.prototype.onYtNavigate;js.prototype.isLoadingChanged=js.prototype.isLoadingChanged;js.prototype.dataChanged=js.prototype.dataChanged;js.prototype.contentTextChanged=js.prototype.contentTextChanged;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],js.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],js.prototype,"rendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],js.prototype,"rendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],js.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Z7("#contentTextExpander"),_.X("design:type",Object)],js.prototype,"expander",void 0);_.W([_.Z7("#edit-dialog"),_.X("design:type",Element)],js.prototype,"editDialogElement",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"hasInlineCommentSection",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"editDialog",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"isLoading",void 0);
_.W([_.q({computed:"computeIsPollHeaderEnabled(data)"}),_.X("design:type",Boolean)],js.prototype,"isPollHeaderEnabled",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"shouldHideAuthor",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"shouldShowVideoTime",void 0);_.W([_.q(),_.X("design:type",Object)],js.prototype,"isInEngagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],js.prototype,"hideBorder",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],js.prototype,"usesFullLockup",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],js.prototype,"shouldShowMenuInCompactView",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],js.prototype,"authorCommentBadge",null);_.W([_.O("isInEngagementPanel"),_.X("design:type",Number),_.X("design:paramtypes",[])],js.prototype,"postTextMaxLines",null);
_.W([_.O("data.icon.iconType"),_.X("design:type",Object),_.X("design:paramtypes",[])],js.prototype,"pollIcon",null);_.W([_.ph("data.contentText"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],js.prototype,"contentTextChanged",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],js.prototype,"dataChanged",null);
_.W([_.ph("isLoading"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],js.prototype,"isLoadingChanged",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],js.prototype,"onYtNavigate",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],js.prototype,"onYtCommentboxDismiss",null);
_.W([_.tM("yt-comment-poll-revert"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],js.prototype,"onYtCommentPollRevert",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],js.prototype,"onYtServiceRequestSent",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],js.prototype,"onYtServiceRequestCompleted",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],js.prototype,"voteCount",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],js.prototype,"commentCount",null);
_.W([_.O("data.backstageAttachment"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],js.prototype,"hasPoll",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],js.prototype,"hasQuiz",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],js.prototype,"hasUploadedVideo",null);_.W([_.J({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],js);
_.B(js,"ytd-backstage-post-renderer",function(){if(bzZ!==void 0)return bzZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bzZ=v},{mode:1});var izA;var Wy=function(){var v=_.z.apply(this,arguments)||this;v.editDialog=null;v.showExpandButton=!1;v.isRichGrid=!1;v.usesFullLockup=!1;return v};
_.f(Wy,_.z);_.K=Wy.prototype;_.K.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"}}}};
_.K.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.K.computeShowExpandButton=function(v){return this.usesCompactLockup||v&&v.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.K.computeUsesCompactLockup=function(v){return!!v.condensedContent};
_.K.computeShowFullContentText=function(v){return!v};
_.K.onYtNavigate=function(v){v=this.get("updateCommentDialogEndpoint",v.detail.endpoint);this.openEditDialog(v)};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null};
_.K.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.repostEditDialogEl.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.K.onTap=function(v){if(this.data){var Q=null;this.usesCompactLockup&&!_.j$(_.uK(v)||[],this.hostElement,["YT-IMG-SHADOW"])?Q=this.get("navigationEndpoint",this.data):v.target===this.moreButtonEl&&(Q=this.get("navigationEndpoint",v.target.data));Q&&_.Hj(this.hostElement,"yt-navigate",{endpoint:Q})}};
Wy.prototype.onYtCommentboxDismiss=Wy.prototype.onYtCommentboxDismiss;Wy.prototype.onYtNavigate=Wy.prototype.onYtNavigate;Wy.prototype.dataChanged=Wy.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Wy.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],Wy.prototype,"editDialog",void 0);_.W([_.q({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Wy.prototype,"usesCompactLockup",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Wy.prototype,"showExpandButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Wy.prototype,"isRichGrid",void 0);
_.W([_.q({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Wy.prototype,"showFullContentText",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Wy.prototype,"usesFullLockup",void 0);_.W([_.Z7("#more"),_.X("design:type",Object)],Wy.prototype,"moreButtonEl",void 0);_.W([_.Z7("#repost-content-text"),_.X("design:type",HTMLElement)],Wy.prototype,"repostContentTextEl",void 0);
_.W([_.Z7("#repost-edit-dialog"),_.X("design:type",HTMLElement)],Wy.prototype,"repostEditDialogEl",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wy.prototype,"dataChanged",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Wy.prototype,"onYtNavigate",null);
_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wy.prototype,"onYtCommentboxDismiss",null);_.W([_.J({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Wy);
_.B(Wy,"ytd-shared-post-renderer",function(){if(izA!==void 0)return izA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return izA=v},{mode:1});var LNN;var trN;var oV=function(){return _.z.apply(this,arguments)||this};
_.f(oV,_.z);oV.prototype.attached=function(){var v=this;this.networkStatusManager||(this.networkStatusManager=new _.bS,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){v.onlineHandler()}))};
oV.prototype.detached=function(){var v=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){v.onlineHandler()}),delete this.networkStatusManager)};
oV.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],oV.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oV.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],oV);
_.B(oV,"ytd-reload-page-button-renderer",function(){if(trN!==void 0)return trN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return trN=v},{mode:1});var pta={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"},X3=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(X3,_.z);_.K=X3.prototype;_.K.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.K.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.K.computeHasBodyText=function(v){return!!v.bodyText};
_.K.computeButtons=function(v){var Q=[];v.ctaButton&&Q.push(v.ctaButton);v.secondaryButton&&Q.push(v.secondaryButton);return Q};
_.K.computeRendererStyle=function(v){return v.style?v.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():v.icon?"":"no-icon"};
_.K.getIconName=function(v,Q){Q=Q===void 0?!1:Q;if(v===void 0)return"";v=this.get("icon.iconType",v);var V;_.Y("enable_hlp_client_icon_pick")?V=this.getThemedIcon(v,Q):V=v;(Q=pta[V])||(Q="yt-icons");return[Q,V].join(":")};
_.K.getThemedIcon=function(v,Q){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(v)?Q?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(v)?Q?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":v};
_.K.isThumbnail=function(v){return!!v.thumbnail};
_.K.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.K.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],X3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],X3.prototype,"data",void 0);
_.W([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.X("design:type",String)],X3.prototype,"rendererStyle",void 0);_.W([_.q({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.X("design:type",String)],X3.prototype,"iconName",void 0);_.W([_.q({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],X3.prototype,"thumbnail",void 0);_.W([_.q({computed:"computeButtons(data)"}),_.X("design:type",Array)],X3.prototype,"buttons",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],X3.prototype,"isDarkTheme",void 0);_.W([_.q({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],X3.prototype,"hasBodyText",void 0);_.W([_.J({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],X3);
_.B(X3,"ytd-background-promo-renderer",function(){if(LNN!==void 0)return LNN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return LNN=v},{mode:1});var eNZ;var aV=function(){return _.z.apply(this,arguments)||this};
_.f(aV,_.z);_.hr.Object.defineProperties(aV.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b,F;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(Q=v.thumbnail)==null?void 0:Q.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(E=V.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(b=this.data)==null?void 0:(F=b.thumbnail)==null?void 0:F.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aV.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],aV.prototype,"collectionStack",null);_.W([_.J({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],aV);
_.B(aV,"ytd-compact-station-renderer",function(){if(eNZ!==void 0)return eNZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return eNZ=v},{mode:1});var ZzZ;var r_=function(){var v=_.z.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.f(r_,_.z);r_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],r_.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r_.prototype,"isRichGrid",void 0);_.W([_.J({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],r_);
_.B(r_,"ytd-grid-channel-renderer",function(){if(ZzZ!==void 0)return ZzZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ZzZ=v},{mode:1});var PXR;var $O=function(){return _.z.apply(this,arguments)||this};
_.f($O,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$O.prototype,"data",void 0);_.W([_.J({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],$O);
_.B($O,"ytd-grid-movie-playlist-renderer",function(){if(PXR!==void 0)return PXR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return PXR=v},{mode:1});var dXQ;var IV=function(){var v=_.z.apply(this,arguments)||this;v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.modernButtons=_.Y("web_modern_buttons");return v};
_.f(IV,_.z);IV.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
IV.prototype.configureRendererStamper=function(){return{"data.menu":gq}};
IV.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
IV.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.Y("woffle_playlist_renderer_killswitch")){var v,Q=SZB(this.entityInfo,this.transferState,this.downloadProgress,(v=this.data)==null?void 0:v.playlistId,this.isOnline);v=Q.viewPlaylistText;var V=Q.badges;Q=Q.thumbnailOverlays;this.isDownloads=!!v||!!V;this.set("data.viewPlaylistText",v);V&&V.length>0&&this.set("data.badges",V);Q&&Q.length>0&&this.set("data.thumbnailOverlays",
Q)}};
_.hr.Object.defineProperties(IV.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.menu)}}});
IV.prototype.transferStateChanged=IV.prototype.transferStateChanged;IV.prototype.dataChanged=IV.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],IV.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],IV.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q({selector:_.ocZ,selectorArgs:["data.playlistId"]}),_.X("design:type",Object)],IV.prototype,"downloadProgress",void 0);_.W([_.q({selector:_.n7,selectorArgs:["data.playlistId"]}),_.X("design:type",Object)],IV.prototype,"transferState",void 0);_.W([_.q({selector:WlE,selectorArgs:["data.playlistId"]}),_.X("design:type",Object)],IV.prototype,"entityInfo",void 0);_.W([_.q({selector:_.Di}),_.X("design:type",Boolean)],IV.prototype,"isOnline",void 0);
_.W([_.q(),_.X("design:type",Object)],IV.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],IV.prototype,"downloadRenderData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],IV.prototype,"modernButtons",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],IV.prototype,"isDownloads",void 0);_.W([_.O("transferState"),_.q({reflectToAttribute:!0}),_.X("design:type",String),_.X("design:paramtypes",[])],IV.prototype,"downloadState",null);
_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],IV.prototype,"menuHidden",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IV.prototype,"dataChanged",null);_.W([_.wg("transferState","downloadProgress","isOnline"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IV.prototype,"transferStateChanged",null);
_.W([_.J({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],IV);
_.B(IV,"ytd-grid-playlist-renderer",function(){if(dXQ!==void 0)return dXQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dXQ=v},{mode:1});var hNZ;var Hy=function(){return _.z.apply(this,arguments)||this};
_.f(Hy,_.z);Hy.prototype.configureRendererStamper=function(){return{"data.menu":gq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.hr.Object.defineProperties(Hy.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b,F;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(Q=v.thumbnail)==null?void 0:Q.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(E=V.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(b=this.data)==null?void 0:(F=b.thumbnail)==null?void 0:F.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],Hy.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],Hy.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Hy.prototype,"data",void 0);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Hy.prototype,"collectionStack",null);_.W([_.J({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Hy);
_.B(Hy,"ytd-grid-radio-renderer",function(){if(hNZ!==void 0)return hNZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hNZ=v},{mode:1});var wtq;var my=function(){return _.z.apply(this,arguments)||this};
_.f(my,_.z);my.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
my.prototype.computeNavigationEndpoint=function(v){return x_h(v==null?void 0:v.navigationEndpoint)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],my.prototype,"ytdLockupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],my.prototype,"data",void 0);_.W([_.q({computed:"computeNavigationEndpoint(data)"}),_.X("design:type",Object)],my.prototype,"computedNavigationEndpoint",void 0);
_.W([_.J({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],my);
_.B(my,"ytd-grid-show-renderer",function(){if(wtq!==void 0)return wtq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wtq=v},{mode:1});var A08;_.Um=function(v){this.playerClient=v};
_.ktp=function(v,Q,V){V=V===void 0?{}:V;return v.playerClient.setOption("ad",Q,V)};
_.Um.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Um.prototype.executeCommand=function(v,Q){this.getOptions().includes("executeCommand")?_.ktp(this,"executeCommand",{command:v,layoutId:Q}):_.J2("Calling executeCommand when adModule is not loaded")};var vb=function(){return _.z.apply(this,arguments)||this};
_.f(vb,_.z);vb.prototype.getLayoutId=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
vb.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var v=_.aJ(),Q=this.getLayoutId(),V=this.data.clickthroughEndpoint;v&&Q&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(E){(new _.Um(E)).executeCommand(V,Q)}):_.Hj(this.hostElement,"yt-navigate",{endpoint:V})}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vb.prototype,"data",void 0);_.W([_.J({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],vb);
_.B(vb,"ytd-shopping-companion-item-renderer",function(){if(A08!==void 0)return A08;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return A08=v},{mode:1});var T58;var Q1=function(){var v=_.z.apply(this,arguments)||this;v.isExpandableContent=!1;return v};
_.f(Q1,_.z);_.hr.Object.defineProperties(Q1.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?void 0:v.price)||((Q=this.data)==null?void 0:(V=Q.dealsData)==null?void 0:V.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var v,Q;if((v=this.data)!=null&&v.dealsData&&((Q=this.data)==null||!Q.priceReplacementText)){v=this.data.dealsData;var V,E,b;return((V=v.salesData)==null?void 0:V.originalPrice)||((E=v.priceDropData)==null?void 0:E.referencePrice)||((b=v.promotionData)==null?void 0:b.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(v=this.data)==null?void 0:(Q=v.dealsData)==null?void 0:Q.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Q1.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Q1.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Q1.prototype,"isExpandableContent",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"showCta",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"ctaText",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"hasPriceTopPosition",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"hasPriceBottomPosition",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"useNewStyle",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"showPriceReplacementText",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"priceValue",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"showDeal",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"showAffiliateDisclaimer",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"useSaleStyle",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"useFromBrandCtaStyle",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"useFromVendorCtaStyle",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q1.prototype,"useShoppingCollectionCtaStyle",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Q1);
_.B(Q1,"ytd-vertical-product-card-renderer",function(){if(T58!==void 0)return T58;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return T58=v},{mode:1});var YU8;var V1=function(){return _.z.apply(this,arguments)||this};
_.f(V1,_.z);V1.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],V1.prototype,"ytdLockupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],V1.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],V1);
_.B(V1,"ytd-grid-movie-renderer",function(){if(YU8!==void 0)return YU8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return YU8=v},{mode:1});var y0a;var EL=function(){var v=_.z.apply(this,arguments)||this;v.roundedFix=_.Y("web_enable_merch_item_rounding_fix");v.itemStyle="small-item";return v};
_.f(EL,_.z);EL.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var v,Q,V,E,b=(Q=_.y((v=this.data)==null?void 0:v.buttonCommand,_.OBQ))==null?void 0:(V=Q.item)==null?void 0:(E=V.notificationTextRenderer)==null?void 0:E.successResponseText;b&&_.Zbr(this.hostElement,b)}};
_.hr.Object.defineProperties(EL.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.isProductPlaceholder)!==void 0&&((Q=this.data)==null?void 0:Q.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],EL.prototype,"roundedFix",void 0);_.W([_.q(),_.X("design:type",Object)],EL.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],EL.prototype,"itemStyle",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"hasPrice",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"hasPriceReplacementText",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"hasAdditionalFeesText",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"hasAffiliateDisclaimer",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"isProductPlaceholder",null);
_.W([_.q(),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"hideOpenInNewIcon",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],EL.prototype,"ariaLabel",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],EL);
_.B(EL,"ytd-merch-shelf-item-renderer",function(){if(y0a!==void 0)return y0a;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return y0a=v},{mode:1});_.ad(_.x(function(v){return _.P("button-card-view-model",{el:_.ud(_.C4(function(){return v.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return v.data().title},
role:"button"},_.P(_.c6,{model:{}}),_.P("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.P("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.P(_.h,{cond:function(){return v.data().image},
then:function(Q){return _.P(_.gE,{data:Q,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.P("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return v.data().title})))},"bc"),"button-card-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){v=_.o1(v,{className:void 0});var Q=v.data;v=v.className;var V=_.Rr(function(){return Q().onTapCommand},void 0,"SXkP9e");
return _.P("ytd-shopping-item-card",{class:_.QZ("ytdShoppingItemCardHost",v)},_.P(_.yL,{command:V,className:"ytdShoppingItemCardHostLink"},_.P("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.P(_.Pw,{data:function(){return Q().thumbnailViewModel}},{thumbnailViewModel:function(E){return _.P(_.C5,{data:E.data,
aspectRatio:3})}})),_.P("div",null,_.P("p",{class:"ytdShoppingItemCardHostItemTitle"},_.P(_.tD,{text:function(){return Q().itemTitle}})),_.P("p",{class:"ytdShoppingItemCardHostPrice"},_.P(_.tD,{text:function(){return Q().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.pJ,
className:_.pJ}});var c0q={isAdsVideo:!0},fRa={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},GtZ={showPlayerControls:!1,videoPreviewDurationMs:15E3},CXa={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},MrZ={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,
hideScrubber:!0};var xl=null,P5b={};var wXT="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(" "),bU={},AHS=(bU.FEwhat_to_watch="home",bU.FEhashtag="hashtag",bU.FEtrending="trending",bU.FEhistory="history",bU.SPunlimited="premium",bU.FEmemberships_and_purchases="paid_memberships",bU.SPredeem_code="redeem",bU.SPverify_location="locate",bU.SPminor_moment="minor_moment",
bU.FEmini_app_container="mini_app",bU.FEnews_destination="news",bU.SPopen_in_app="open_in_app",bU.FEexplore="explore",bU.FEsubscriptions="subscriptions",bU.FEsfv_audio_pivot="sfv_audio_pivot",bU.FEplaylist_aggregation="playlist_aggregation",bU);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");_.Vk("init");var OzS=function(){},lRN=_.x(function(v){var Q=v.data;
var V=v.inlineMetadata;var E=v.aspectRatio;var b=v.scrimStyle;var F=v.className;var t=v.useDefaultStyle;var p=v.titleStyle;var Z=new OzS,d=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",w=_.Rr(function(){return(t==null?0:t())?d==="SHORTS_LOCKUP_STYLE_SLIM":Q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),A=_.Rr(function(){return _.or(V)||w()||!1},void 0,"SEL6Qd"),k=function(){return(b==null?void 0:b())!==void 0?b==null?void 0:b():1},
T=_.Rr(function(){return Q().belowThumbnailMetadata||!A()},void 0,"KAqk1b");
v=_.k0({visibilityCallback:function(t3){var h3=Q().onFirstVisible;t3&&h3&&_.nx(h3)},
showOption:{calledOnce:!0,state:"visible"}});var c=_.ud(),C={},R=_.QZ(function(){return w(),"shortsLockupViewModelHostThumbnailContainer"},(C.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.or(E)===1},C.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.or(E)===2},C.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.Y("web_shorts_2_by_3_lockups_study")&&!_.Y("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
C)),l=_.Rr(function(){if(_.or(E)===1)return 1;
_.or(E);return 2},void 0,"Bg5Es"),S,a=function(){if(Z){var t3;
(t3=S)==null||ji(t3);var h3;if(Z.hostElement&&((h3=Z.data)==null?0:h3.inlinePlayerData)){var OB,kQ;t3=((OB=Z.data)==null?0:(kQ=OB.inlinePlayerData)==null?0:kQ.enableAudioControl)?Object.assign({},MrZ):Object.assign({},CXa);var yo,xQ;((yo=Z.data)==null?void 0:(xQ=yo.inlinePlayerData)==null?void 0:xQ.maxPlaybackLengthSec)!==void 0&&(t3.videoPreviewDurationMs=Z.data.inlinePlayerData.maxPlaybackLengthSec*1E3);S=Dz({mediaRenderer:Z,lockupElement:Z.hostElement,thumbnailElement:c.value,videoPreviewOpts:t3})}}};
_.uH(function(){Z&&(Z.data=Q(),a())},"wo9C7e");
var g=_.Rr(function(){return Q().thumbnail},void 0,"haijYd");
C=_.Rr(function(){return Q().badge},void 0,"RpDeSe");
var u=_.Rr(function(){return Q().onTap},void 0,"hOfuOb"),r={},v9={};
return _.P("ytm-shorts-lockup-view-model",{el:_.ud(function(t3){Z&&(Z.hostElement=t3)},a,v),
class:_.QZ("shortsLockupViewModelHost",F)},_.P(_.w7,null,_.P(_.yL,{command:u,className:_.QZ("shortsLockupViewModelHostEndpoint",(r.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!T()},r),"reel-item-endpoint",""),
ariaHidden:function(){return!A()},
tabIndex:function(){return A()?0:-1}},_.P("div",{el:c,
class:_.QZ("shortsLockupViewModelHostThumbnailParentContainer",(v9.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!w()},v9))},_.P(_.h,{cond:g,
then:function(){return _.P("div",{class:R},_.P(_.gE,{data:function(){var t3;return(t3=g==null?void 0:g())!=null?t3:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.P(_.Pw,{data:function(){return Q().thumbnailViewModel}},{thumbnailViewModel:function(t3){return _.P(_.C5,{data:t3.data,
aspectRatio:function(){return l()},
disableRounding:function(){return w()}})}}),null),_.P(_.h,{cond:A,
then:function(){return _.P(DXa,{data:Q,scrimStyle:k,useDefaultStyle:t,titleStyle:p})}}),_.P(_.Pw,{data:C},{badgeViewModel:function(t3){return _.P(_.YO,{data:t3.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.P(_.h,{cond:function(){return A()&&Q().menuOnTap},
then:function(){return _.P(RNq,{data:Q,inlineMetadata:!0})}}),_.P(_.h,{cond:T,
then:function(){return _.P(niZ,{data:Q,useDefaultStyle:t,inlineMetadata:A})}})))},"ec"),DXa=_.x(function(v){var Q=v.data;
var V=v.scrimStyle;var E=v.useDefaultStyle;var b=v.titleStyle;var F=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",t=E&&_.Y("web_hide_primary_text_for_pivot_panel"),p=_.Rr(function(){return(E==null?0:E())?F==="SHORTS_LOCKUP_STYLE_SLIM":Q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
v={};v=_.QZ("shortsLockupViewModelHostInlineMetadata",(v.shortsLockupViewModelHostMetadataRounded=function(){return!p()},v.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(V==null?void 0:V())===3&&!_.Y("enable_shorts_lockup_new_scrim")},v.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(V==null?void 0:V())===3&&_.Y("enable_shorts_lockup_new_scrim")},v.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(V==null?void 0:V())===2||(V==null?void 0:
V())===4},v.shortsLockupViewModelHostShowOverPlayer=function(){return!0},v),"image-overlay-text");
var Z={};return _.P("div",{class:v},_.P("h3",{class:_.QZ("shortsLockupViewModelHostMetadataTitle",(Z.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(V==null?void 0:V())===4},Z.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return Q().belowThumbnailMetadata},Z.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(b==null?void 0:b())===1},Z.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(b==null?void 0:b())===2},Z)),
"aria-label":function(){return Q().accessibilityText}},_.P(_.h,{cond:function(){var d;
return!((d=Q().overlayMetadata)==null||!d.primaryText)&&!t},
then:function(){return _.P(_.tD,{text:function(){var d;return(d=Q().overlayMetadata)==null?void 0:d.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.P(_.h,{cond:function(){var d;
return(d=Q().overlayMetadata)==null?void 0:d.secondaryText},
then:function(){return _.P(qUx,{data:Q,scrimStyle:V,className:void 0})}}))},"fc"),niZ=_.x(function(v){var Q=v.data;
var V=v.useDefaultStyle;var E=v.inlineMetadata;var b=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=_.Rr(function(){return(V==null?0:V())?b==="SHORTS_LOCKUP_STYLE_SLIM":Q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),t=_.ud(),p;
v=_.EP(function(T){if(_.cw(_.yw(T),t.value,["AVATAR-VIEW-MODEL"]))return!1;var c;(c=p)==null||c.click();return!1});
var Z=_.Rr(function(){return Q().belowThumbnailMetadata||Q().overlayMetadata},void 0,"GwezKf"),d=function(){return Q().menuOnTap&&!E()},w=function(){var T;
return(T=Z())==null?void 0:T.avatar},A={},k={};
return _.P("div",{class:_.QZ(function(){return F()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(A.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!w()},A.shortsLockupViewModelHostOutsideMetadataHasMenu=d,A)),
"on:click":v,el:t,role:"presentation"},_.P(_.Pw,{data:w},{avatarViewModel:function(T){return _.P(_.QO,{data:T.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.P("div",null,_.P("h3",{class:_.QZ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var T,c;
return!((T=Z())==null?0:(c=T.primaryText)==null?0:c.content)},k.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=E,k)),
role:"presentation"},_.P(_.yL,{ref:function(T){return void(p=T)},
command:function(){return Q().onTap},
className:_.QZ("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var T,c;return(T=Z())==null?void 0:(c=T.primaryText)==null?void 0:c.content},
"aria-label":function(){return Q().accessibilityText}},_.P(_.h,{cond:function(){var T;
return(T=Z())==null?void 0:T.primaryText},
then:function(T){return _.P(_.tD,{text:T,noEndpoints:!0,noStyleRuns:!0})}}))),_.P(_.h,{cond:function(){var T;
return(T=Z())==null?void 0:T.secondaryText},
then:function(T){return _.P("div",{class:_.QZ("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.P(_.tD,{text:T,noStyleRuns:!0}))}})),_.P(_.h,{cond:d,
then:function(){return _.P(RNq,{data:Q,inlineMetadata:!1})}}))},"gc"),qUx=_.x(function(v){var Q=v.data;
var V=v.scrimStyle;v=v.className;var E={};return _.P("div",{class:_.QZ((E.shortsLockupViewModelHostMetadataSubhead=function(){return(V==null?void 0:V())!==4},E.shortsLockupViewModelHostMetadataSubheadNew=_.Y("enable_shorts_lockup_new_scrim"),E.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(V==null?void 0:V())===4},E),v),
"aria-hidden":"true"},_.P(_.tD,{text:function(){var b;return(b=Q().overlayMetadata)==null?void 0:b.secondaryText},
noStyleRuns:!0}))},"hc"),RNq=_.x(function(v){var Q=v.data;
var V=v.inlineMetadata;v={};v=_.QZ((v.shortsLockupViewModelHostInlineMetadataMenu=function(){return V()},v.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!V()},v.shortsLockupViewModelHostShowOverPlayer=function(){return!0},v),"image-overlay-text");
return _.P("div",{class:v},_.P(_.OA,{data:function(){return{style:V()?"overlay":"mono",accessibilityLabel:Q().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(E){E.preventDefault();E.stopPropagation();var b=_.DM({elementsCommand:Q().menuOnTap,forceNewState:!0});if(b==null?0:b.onclick)b.onclick(E)}}},
iconName:"MORE_VERT"}))},"ic");var SUN=_.x(function(v){var Q=v.data;var V=v.inlineMetadata;var E=v.aspectRatio;var b=v.scrimStyle;var F=v.className;var t=v.useDefaultStyle;v=_.Rr(function(){var p=Q().entityId;return p?p.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.P("ytm-shorts-lockup-view-model-v2",{class:_.QZ("shortsLockupViewModelHost",F)},_.P(_.qg,{contentId:v,aspectRatio:function(){return(E==null?void 0:E())===1?1:(E==null?void 0:E())===2?2:4}},function(){return _.P(lRN,{data:Q,
inlineMetadata:V,aspectRatio:E,scrimStyle:b,className:F,useDefaultStyle:t})}))},"jc");_.ad(SUN,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Wg,inlineMetadata:_.Wg,aspectRatio:_.Wg,scrimStyle:_.Wg,className:_.Wg,useDefaultStyle:_.Wg,titleStyle:_.Wg}});var zNq=16/9*210,FA=function(){var v=_.z.apply(this,arguments)||this;v.isExpandableContent=!1;v.hideShelfHeader=!1;v.engagementPanel=!1;v.buttonClasses=["arrow"];v.isSearch=!1;v.disableScrollEventListener=!1;v.containsLockup=!1;v.overrideArrowPositionForProductCard=!1;v.overrideArrowPositionForShoppingItemCard=!1;v.overrideArrowPositionForReelItems=!1;v.overrideArrowPositionForGridMovie=!1;v.overrideArrowPositionToCenter=!1;v.isSearchPostShelf=!1;v.overrideArrowPositionForMixedShelf=!1;v.overrideArrowPositionForMixedShelfShortsOnly=
!1;v.hasBigThumbsReelItems=!1;v.shouldUseMixedListHeight=!1;v.shouldUseShortsListHeight=!1;v.gridVideoWidth=0;v.isSearchVodShelf=!1;v.disableWheelScroll=!1;v.sizing="COMPACT";v.shortsLockupAspectRatio=0;return v};
_.f(FA,_.z);_.K=FA.prototype;
_.K.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]]"}}}}};
_.K.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.Y("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.K.computeInitialCountNumber=function(v){if(!v)return 6;var Q=v.items.some(function(F){return!!F.topicRecommendationsChipRenderer}),V=v.items.some(function(F){return!!F.displayAdRenderer}),E=this.computeShouldListItemsHaveEqualHeight(v),b=v.items.some(function(F){return!!F.gridPlaylistRenderer});
v=v.items.some(function(F){return!!F.shoppingItemCardViewModel});
return Q?9:V?8:b||E?10:v?7:6};
_.K.computeContainsPost=function(v){return!!v&&!!v.items&&v.items.some(function(Q){return!!Q.postRenderer})};
_.K.computeContainsLockup=function(){if(_.Y("web_horizontal_list_lockup_arrow_killswitch"))return!1;var v,Q;return(v=this.data)==null?void 0:(Q=v.items)==null?void 0:Q.some(function(V){return!!V.lockupViewModel})};
_.K.maybeUpdateLockupAspectRatio=function(){var v,Q;if(this.computeContainsLockup()&&((v=this.data)==null?0:(Q=v.items)==null?0:Q.length)){var V;v=sPQ((V=this.data.items[0].lockupViewModel)==null?void 0:V.contentType,this.data.force16By9ThumbnailAspectRatio);V=BUG(v);V=this.computeLockupWidth()/V;_.F6(this.hostElement,{"--yt-horizontal-list-content-height":V+"px"})}};
_.K.computeOverrideArrowPositionForProductCard=function(v){if(this.isExpandableContent)return!1;var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){return!!V.verticalProductCardRenderer}))};
_.K.computeOverrideArrowPositionForShoppingItemCard=function(v){var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){return!!V.shoppingItemCardViewModel}))};
_.K.computeOverrideArrowPositionForReelItemRenderer=function(v){return this.containsReelItemRenderer(v)};
_.K.computeHasBigThumbsReelItems=function(v,Q){return v&&this.containsReelItemRenderer(Q)};
_.K.computeShouldListItemsHaveEqualHeight=function(v){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(v==null?void 0:v.itemSizeConstraint)};
_.K.computeShouldListItemsHaveShortsHeight=function(v){return this.computeShouldListItemsHaveEqualHeight(v)&&!this.containsGridVideoRenderer(v)};
_.K.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.K.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.K.containsReelItemRenderer=function(v){var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){return!(!V.reelItemRenderer&&!V.shortsLockupViewModel)}))};
_.K.containsGridVideoRenderer=function(v){var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){return!!V.gridVideoRenderer||!!V.lockupViewModel}))};
_.K.computeContainsGridMovieRenderer=function(v){var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){return!!V.gridMovieRenderer}))};
_.K.computeOverrideArrowPositionToCenter=function(v){return this.computeIsSearchPostShelf(v)};
_.K.computeIsSearchPostShelf=function(v){var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){var E,b;return((b=(E=V.postRenderer)==null?void 0:E.surface)!=null?b:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.K.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(v){var Q;return!!(v==null?0:(Q=v.items)==null?0:Q.some(function(V){var E,b,F;return((F=(E=V.backgroundPromoRenderer)==null?void 0:(b=E.style)==null?void 0:b.value)!=null?F:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.K.computeIsSearchVodShelf=function(v,Q){return v&&this.containsGridVideoRenderer(Q)};
_.K.computeDisableWheelScroll=function(v,Q){return this.computeIsSearchVodShelf(v,Q)};
_.K.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.K.computeShortsLockupAspectRatio=function(){return 1};
_.K.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.F6(this.hostElement,{"--ytd-reel-item-thumbnail-height":zNq+"px"})};
FA.prototype.dataChanged=FA.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],FA.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],FA.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],FA.prototype,"isExpandableContent",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"hideShelfHeader",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Array)],FA.prototype,"buttonClasses",void 0);_.W([_.q(),_.X("design:type",Object)],FA.prototype,"isSearch",void 0);
_.W([_.q(),_.X("design:type",Object)],FA.prototype,"disableScrollEventListener",void 0);_.W([_.q({computed:"computeInitialCountNumber(data)"}),_.X("design:type",Number)],FA.prototype,"initialCount",void 0);_.W([_.q({computed:"computeContainsPost(data)"}),_.X("design:type",Boolean)],FA.prototype,"supportComponentResize",void 0);_.W([_.q({computed:"computeContainsPost(data)"}),_.X("design:type",Boolean)],FA.prototype,"containsPost",void 0);
_.W([_.q({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"containsLockup",void 0);_.W([_.q({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],FA.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.W([_.q({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionForProductCard",void 0);_.W([_.q({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.W([_.q({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionForReelItems",void 0);_.W([_.q({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionForGridMovie",void 0);
_.W([_.q({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionToCenter",void 0);_.W([_.q({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"isSearchPostShelf",void 0);_.W([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.W([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.W([_.q({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"hasBigThumbsReelItems",void 0);
_.W([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"shouldUseMixedListHeight",void 0);_.W([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"shouldUseShortsListHeight",void 0);_.W([_.q({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"gridVideoWidth",void 0);
_.W([_.q({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"isSearchVodShelf",void 0);_.W([_.q({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.X("design:type",Object)],FA.prototype,"disableWheelScroll",void 0);_.W([_.q({computed:"computeSizing(isSearch)"}),_.X("design:type",Object)],FA.prototype,"sizing",void 0);
_.W([_.q({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.X("design:type",Object)],FA.prototype,"shortsLockupAspectRatio",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FA.prototype,"dataChanged",null);
_.B(FA,"yt-horizontal-list-renderer",function(){if(zop===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);zop=v}v=zop;return v},{mode:1});var J0N=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
J0N.prototype.subscribe=function(v,Q){var V=this.subscriptions.get(v);if(!V)return function(){};
V.add(Q);return function(){V.delete(Q)}};
J0N.prototype.unsubscribe=function(v,Q){(v=this.subscriptions.get(v))&&v.delete(Q)};
J0N.prototype.publish=function(v,Q){Q=Q===void 0?{}:Q;(v=this.subscriptions.get(v))&&v.forEach(function(V){V(Q)})};var N5N;var xXN=[10,12,14,16,18,20,24,28,32,36],B5A=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],KT=function(){var v=_.z.apply(this,arguments)||this;v.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";v.hideOverflow=!1;v.useRoboto=!1;v.fontClass="";v.overflown=!1;v.actionMap={"yt-window-resized":"resize"};return v};
_.f(KT,_.z);_.K=KT.prototype;
_.K.attached=function(){var v=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.PE(this,function(){v.resize()});
if(!_.Q2){var Q,V,E;(Q=document)==null||(V=Q.fonts)==null||(E=V.ready)==null||E.then(function(){v.resize()})}};
_.K.dataChanged=function(){this.resize()};
_.K.guideIsExpandedChanged=function(){this.resize()};
_.K.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var v=this.getMaxNumLines(),Q=this.getMinFont(),V=this.getMaxFont(),E=this.useRoboto?xXN:B5A;for(E=E.filter(function(F){return F<=V&&F>=Q});E.length>1;){var b=Math.floor(E.length/2);
this.updateFontSize(E[b]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=v)E=E.slice(b,E.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>v)E=E.slice(0,b);else break}this.updateFontSize(E[E.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(v)}};
_.K.handleOverflow=function(v){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>v&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",v.toString()))};
_.K.updateFontSize=function(v){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+v;this.textNode.classList.add(this.fontClass)};
_.K.getMaxFont=function(){var v=this.useRoboto?xXN:B5A;v=v[v.length-1];return this.maxFontSize&&this.maxFontSize<=v?this.maxFontSize:v};
_.K.getMinFont=function(){var v=(this.useRoboto?xXN:B5A)[0];return this.minFontSize&&this.minFontSize>=v?this.minFontSize:v};
_.K.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.K.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.K.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.j0(this.text).split("\n").length-1:Infinity};
_.K.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
KT.prototype.guideIsExpandedChanged=KT.prototype.guideIsExpandedChanged;KT.prototype.dataChanged=KT.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],KT.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],KT.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],KT.prototype,"text",void 0);
_.W([_.q(),_.X("design:type",String)],KT.prototype,"fontFamily",void 0);_.W([_.q(),_.X("design:type",Number)],KT.prototype,"maxWidth",void 0);_.W([_.q(),_.X("design:type",Number)],KT.prototype,"maxHeight",void 0);_.W([_.q(),_.X("design:type",Number)],KT.prototype,"maxFontSize",void 0);_.W([_.q(),_.X("design:type",Number)],KT.prototype,"minFontSize",void 0);_.W([_.q(),_.X("design:type",Number)],KT.prototype,"maxLines",void 0);_.W([_.q(),_.X("design:type",Object)],KT.prototype,"hideOverflow",void 0);
_.W([_.q({selector:_.l6h}),_.X("design:type",Boolean)],KT.prototype,"guideIsExpanded",void 0);_.W([_.Z7("#container"),_.X("design:type",HTMLElement)],KT.prototype,"containerNode",void 0);_.W([_.Z7("#text"),_.X("design:type",HTMLElement)],KT.prototype,"textNode",void 0);_.W([_.wg("text"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],KT.prototype,"dataChanged",null);
_.W([_.wg("guideIsExpanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],KT.prototype,"guideIsExpandedChanged",null);_.W([_.J({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],KT);
_.B(KT,"yt-dynamic-sizing-formatted-string",function(){if(N5N!==void 0)return N5N;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return N5N=v},{mode:1});var giZ;_.s9N=function(v){_.Vo.call(this,v)};
_.f(_.s9N,_.Vo);var uzx=function(v){_.Vo.call(this,v)};
_.f(uzx,_.s9N);var iU=function(){return _.z.apply(this,arguments)||this};
_.f(iU,_.z);iU.prototype.onTapSuspendedChannel=function(){var v;if((v=this.data)!=null&&v.serviceEndpoint){var Q,V;(v=(V=_.y((Q=this.data)==null?void 0:Q.serviceEndpoint,_.FJ))==null?void 0:V.url)?_.nF(v,void 0,void 0,window.top):(Q=new uzx("Did not handle suspended account tap. No appealUrl."),_.ro(Q))}else Q=new uzx("Did not handle suspended account tap. No serviceEndpoint."),_.ro(Q)};
iU.prototype.onTap=function(){var v=this,Q=_.tR(),V,E=(V=_.Lx(Q,{veType:7116}))!=null?V:void 0;_.zr(Q,{visualElement:E});_.Dl();this.saveRoleText();var b;if((b=this.data)==null?0:b.youtubeSuspended)this.onTapSuspendedChannel();else{var F=!1,t,p;(Q=(p=_.y((t=this.data)==null?void 0:t.serviceEndpoint,_.Jja))==null?void 0:p.supportedTokens)&&Q.forEach(function(Z){if(Z.accountSigninToken)if(F=!0,v.onAccountItemTap)v.onAccountItemTap(Z.accountSigninToken.signinUrl);else _.nF(Z.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!F){if(t=this.get("serviceEndpoint",this.data))F=!0,this.ytComponentBehavior.resolveCommand(t);F||_.$h(new uzx("Did not handle account switch tap. No token."))}}};
iU.prototype.saveRoleText=function(){if(this.data){var v=this.data,Q=v.channelDelegationRole;if(Q){var V,E=(V=_.y(v==null?void 0:v.serviceEndpoint,_.Jja))==null?void 0:V.supportedTokens;if(!E){var b,F,t,p;E=(b=_.y(v==null?void 0:v.serviceEndpoint,_.sv))==null?void 0:(F=b.popup)==null?void 0:(t=F.confirmDialogRenderer)==null?void 0:(p=t.confirmButton)==null?void 0:p.buttonRenderer;var Z;E=(Z=_.y(E==null?void 0:E.command,_.E2))==null?void 0:Z.commands;if(!E)return;var d;E=(d=_.y(E[1],_.Jja))==null?
void 0:d.supportedTokens}if(E){Z=void 0;d=_.L(E);for(E=d.next();!E.done;E=d.next())if(E=E.value,E.datasyncIdToken){Z=E.datasyncIdToken.datasyncIdToken;break}if(Z){var w;a:{if(_.oOb()&&(d=_.j$b(Z+"::pom"))){d=new gw(d);break a}d=void 0}(w=d)==null||w.set("role_text",Q);if((bTB?bTB:window.location).href.indexOf("studio")!==-1&&(w=XyZ())){d=w.src?(new URL(w.src)).origin:"*";var A;(A=w.contentWindow)==null||A.postMessage({action:"save_pom_role",datasyncId:Z,roleText:Q},d)}}}}}};
_.hr.Object.defineProperties(iU.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.accountPhoto)==null?void 0:Q.thumbnails;return V&&V.length>0&&(V[0].height===36||V[0].height===48)?V[0].height:40}}});
iU.prototype.onTap=iU.prototype.onTap;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],iU.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],iU.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Function)],iU.prototype,"onAccountItemTap",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],iU.prototype,"enableRingForActiveAccount",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],iU.prototype,"thumbnailSize",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iU.prototype,"onTap",null);_.W([_.J({is:"ytd-account-item-renderer",disableElementRegistration:!0})],iU);
_.B(iU,"ytd-account-item-renderer",function(){if(giZ!==void 0)return giZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return giZ=v},{mode:1});var j9N;var LT=function(){return _.z.apply(this,arguments)||this};
_.f(LT,_.z);LT.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.ht().resolve(_.At).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],LT.prototype,"data",void 0);_.W([_.J({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],LT);
_.B(LT,"ytd-identity-chip-renderer",function(){if(j9N!==void 0)return j9N;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return j9N=v},{mode:1});var WNp;var oix;var Xtp;var aRA;var tk=function(){var v=_.z.apply(this,arguments)||this;v.richItemMinWidth=_.T_("wn_grid_min_item_width",310);v.isShorts=!1;v.isWatchNext=!1;v.isExploreHub=!1;return v};
_.f(tk,_.z);_.hr.Object.defineProperties(tk.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var v=[],Q=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.F6(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)&&Q)for(Q*=this.data.rows,V=0;V<Q;V++)v.push({});return v}}});
_.W([_.M(_.QU),_.X("design:type",Object)],tk.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tk.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.C7,value:3}),_.X("design:type",Number)],tk.prototype,"itemsPerRow",void 0);_.W([_.q({selector:_.nco,value:6}),_.X("design:type",Number)],tk.prototype,"slimItemsPerRow",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Number)],tk.prototype,"richItemMinWidth",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],tk.prototype,"miniMode",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tk.prototype,"isShorts",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tk.prototype,"isWatchNext",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tk.prototype,"isExploreHub",void 0);
_.W([_.O("isExploreHub"),_.q({reflectToAttribute:!0}),_.X("design:type",Object),_.X("design:paramtypes",[])],tk.prototype,"shimmerAnimation",null);_.W([_.O("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.X("design:type",Array),_.X("design:paramtypes",[])],tk.prototype,"cardItems",null);_.W([_.J({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],tk);
_.r0a=_.Hn()(tk,"ytd-ghost-grid-renderer",function(){if(aRA===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);aRA=v}v=aRA;return v},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.ad(_.x(function(v){var Q=_.o1(v,{numberOfComments:3}).numberOfComments,V=_.o1(v,{isInitialLoad:!1}).isInitialLoad,E=_.o1(v,{engagementPanel:!1}).engagementPanel,b=function(){return Math.min(Number(Q==null?void 0:Q())||20,20)};
return _.P("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.P(_.h,{cond:function(){return!(E==null?0:E())&&(V==null?void 0:V())},
then:function(){return _.P("div",{class:"ytGhostCommentsComments"},_.P("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.P("div",{class:_.QZ("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.P("div",{class:_.QZ("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.P("div",{class:"ytGhostCommentsGhostCard"},_.P("div",{class:"ytGhostCommentsAvatar"},_.P("div",{class:"ytGhostCommentsCircle"})),_.P("div",{class:"ytGhostCommentsComments"},_.P("div",{class:"ytGhostCommentsMeta"},
_.P("div",{class:_.QZ("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.P("div",{class:_.QZ("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.P("div",{class:"ytGhostCommentsComments"},_.P(_.xb,{each:function(){return Array((b==null?void 0:b())||3)}},function(){return _.P("div",{class:"ytGhostCommentsGhostCard"},_.P("div",{class:"ytGhostCommentsAvatar"},_.P("div",{class:"ytGhostCommentsCircle"})),_.P("div",{class:"ytGhostCommentsHost"},_.P("div",{class:"ytGhostCommentsMeta"},
_.P("div",{class:_.QZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.P("div",{class:_.QZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.P("div",{class:_.QZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.P("div",{class:"ytGhostCommentsGhostLikeDislike"},_.P("div",{class:_.QZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.P("div",{class:_.QZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.pJ,
isInitialLoad:_.pJ,engagementPanel:_.pJ},unsafeExternallySettableAttributes:new Set(["hidden"])});_.yZ("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var pT=function(){var v=_.z.apply(this,arguments)||this;v.isOverridable=!1;v.spinnerActive=!1;v.showButton=!1;v.isCommentsSection=!1;v.engagementPanel=!0;v.isShortsGrid=!1;v.isShortsPage=!1;v.isWatchPage=!1;v.originalShowButton=!1;v.endOfList=!1;return v};
_.f(pT,_.z);_.K=pT.prototype;_.K.resetIntersectionObserver=function(){var v;(v=this.observer)==null||v.disconnect();this.observer=void 0};
_.K.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var v,Q;((v=this.data)==null?void 0:v.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((Q=this.data)==null?0:Q.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.K.initializeIntersectionObserver=function(){var v=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V.value.isIntersecting&&(v.triggerContinuation(),v.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.K.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.K.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var v;((v=this.data)==null?0:v.continuationEndpoint)&&(v=_.y(this.data.continuationEndpoint,_.RJ))&&this.ytdReduxBehavior.dispatch(_.U2({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:v}}))};
_.K.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.K.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.K.onServiceRequestCompleted=function(v,Q){if(!_.Y("kevlar_hide_spinner_on_empty_continuation_killswitch")){var V;(V=Q.actions)!=null&&V.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.K.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.K.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.K.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.K.numberOfGhostCommentsChanged=function(){var v=3;if(this.engagementPanel){var Q,V,E;v=Math.floor(((((Q=this.hostElement)==null?void 0:(V=Q.parentElement)==null?void 0:(E=V.parentElement)==null?void 0:E.scrollHeight)||108)-108)/108);v=this.isInitialLoad?Math.max(v,3):3}Q=[].concat(_.ui(this.hostElement.querySelectorAll("yt-ghost-comments")));Q=_.L(Q);for(V=Q.next();!V.done;V=Q.next())V=V.value,V.numberOfComments=v,V.isInitialLoad=this.isInitialLoad,V.engagementPanel=this.engagementPanel};
_.K.detached=function(){this.resetIntersectionObserver()};
_.hr.Object.defineProperties(pT.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
pT.prototype.numberOfGhostCommentsChanged=pT.prototype.numberOfGhostCommentsChanged;pT.prototype.continuationTriggerOffsetChanged=pT.prototype.continuationTriggerOffsetChanged;pT.prototype.showButtonChanged=pT.prototype.showButtonChanged;pT.prototype.onYtServiceRequestCompletedForButtonRenderer=pT.prototype.onYtServiceRequestCompletedForButtonRenderer;pT.prototype.onServiceRequestCompleted=pT.prototype.onServiceRequestCompleted;pT.prototype.onYtServiceRequestSentForButtonRenderer=pT.prototype.onYtServiceRequestSentForButtonRenderer;
pT.prototype.observeData=pT.prototype.observeData;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.F4.YtVisibilityBehavior),_.X("design:type",Object)],pT.prototype,"ytVisibilityBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],pT.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],pT.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pT.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],pT.prototype,"isOverridable",void 0);_.W([_.q(),_.X("design:type",Object)],pT.prototype,"spinnerActive",void 0);_.W([_.q(),_.X("design:type",Object)],pT.prototype,"showButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pT.prototype,"isCommentsSection",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pT.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Object)],pT.prototype,"isShortsGrid",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.zcT}),_.X("design:type",Object)],pT.prototype,"isShortsPage",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.SAt}),_.X("design:type",Object)],pT.prototype,"isWatchPage",void 0);_.W([_.q(),_.X("design:type",Number)],pT.prototype,"continuationTriggerOffset",void 0);
_.W([_.q(),_.X("design:type",Object)],pT.prototype,"endOfList",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],pT.prototype,"isInitialLoad",void 0);_.W([_.Z7("ytd-button-renderer"),_.X("design:type",_.ym)],pT.prototype,"buttonRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],pT.prototype,"buttonOverrides",void 0);
_.W([_.q(),_.O("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.X("design:type",Object),_.X("design:paramtypes",[])],pT.prototype,"showGhostCardComments",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pT.prototype,"observeData",null);
_.W([_.tM("yt-service-request-sent-button-renderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pT.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],pT.prototype,"onServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-completed-button-renderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pT.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.W([_.wg("showButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pT.prototype,"showButtonChanged",null);
_.W([_.wg("continuationTriggerOffset"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pT.prototype,"continuationTriggerOffsetChanged",null);_.W([_.ph("isInitialLoad","engagementPanel"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pT.prototype,"numberOfGhostCommentsChanged",null);_.W([_.J({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],pT);
_.B(pT,"ytd-continuation-item-renderer",function(){if(Xtp!==void 0)return Xtp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Xtp=v},{mode:1});var $XX;var en=function(){var v=_.z.apply(this,arguments)||this;v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.downloadState="DOWNLOAD_STATE_UNKNOWN";v.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";v.offlineVideoPolicyExpirationTimestamp=0;v.downloadedVideoPlaybackPosition=0;return v};
_.f(en,_.z);en.prototype.dataChanged=function(){var v;this.videoData=_.y((v=this.data)==null?void 0:v.renderer,P_S);this.transferStateChanged()};
en.prototype.downloadProgressChanged=function(){if(this.entityInfo){var v=Object.assign({},this.videoData),Q=z4B(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),V=Q.publishedTimeText,E=Q.badges;v.shortViewCountText=Q.shortViewCountText;v.publishedTimeText=V;v.badges=E;this.set("videoData",v)}};
en.prototype.transferStateChanged=function(){if(this.entityInfo){var v=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",Q=_.d8(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!PB(this.entityInfo.policyEntity),V=Object.assign({},this.videoData),E=z4B(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),b=E.publishedTimeText,F=E.badges;V.shortViewCountText=
E.shortViewCountText;V.publishedTimeText=b;V.badges=F;V.isDisabled=Q;V.isWatched=this.downloadedVideoPlaybackPosition>0;V.navigationEndpoint=Q?void 0:JLB(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var t;v&&((t=this.videoData)==null?0:t.videoId)&&!_.Y("dl_resume_click_killswitch")&&(V.isDisabled=!1,V.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});V.thumbnailOverlays=qZE(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",V)}};
en.prototype.transferStateChanged=en.prototype.transferStateChanged;en.prototype.downloadProgressChanged=en.prototype.downloadProgressChanged;en.prototype.dataChanged=en.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],en.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],en.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],en.prototype,"videoData",void 0);_.W([_.q({selector:l3,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"downloadProgress",void 0);_.W([_.q(),_.X("design:type",Number)],en.prototype,"relativeDateReference",void 0);_.W([_.q({selector:_.RF,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"transferState",void 0);
_.W([_.q({selector:QKb,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"downloadState",void 0);_.W([_.q({selector:gcE,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"offlinePolicyAction",void 0);_.W([_.q({selector:s5Z,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.W([_.q({selector:qS,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"downloadedVideoPlaybackPosition",void 0);_.W([_.q({selector:j5m,selectorArgs:["videoData.videoId"]}),_.X("design:type",Object)],en.prototype,"entityInfo",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],en.prototype,"isDownloading",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],en.prototype,"dataChanged",null);
_.W([_.wg("downloadProgress"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],en.prototype,"downloadProgressChanged",null);_.W([_.wg("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],en.prototype,"transferStateChanged",null);
_.W([_.J({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],en);
_.B(en,"ytd-downloaded-video-grid-video-renderer",function(){if($XX!==void 0)return $XX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return $XX=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var IRX;var Z8=function(){};
Z8.prototype.resolve=function(v,Q){var V=this;return _.e(function(E){return E.yield(V.resolveCommand(v,Q),0)})};var HzS,Pb;HzS=kbE(function(v){return v.targetId},{shouldPersist:!1});
Pb=HzS.updateData;_.mXq=HzS.useUpdatableData;var UXN,vjR;UXN=kbE(function(v){return v.targetId});
vjR=UXN.updateData;_.Qkq=UXN.useUpdatableData;var VEa=Y3h.bind(null,Pb),EjN=Y3h.bind(null,vjR);(function(v,Q,V){var E=_.y(V==null?void 0:V.updatedRenderer,_.WlZ);return E?v({targetId:Q},function(){return E}):!1}).bind(null,Pb);var dk=function(){};
_.f(dk,Z8);dk.prototype.resolveCommand=function(v){var Q;return _.e(function(V){Q=_.y(v,_.D5Z);if(!Q)return V.return();VEa(Q.targetId,Q);_.q1(V)})};var hk=function(){var v=_.dg.apply(this,arguments)||this;v.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return v};
_.f(hk,_.dg);_.K=hk.prototype;_.K.configureContinuationPathMap=function(){return{}};
_.K.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.K.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.K.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.K.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.K.handleAppendContinuationItemsAction=function(v){var Q=_.y(v,_.N9N);if(this.data&&this.data.targetId&&Q&&this.continuationPathMap&&Q.targetId===this.data.targetId){var V=FCm(v),E=V&&this.continuationPathMap[V];if(E&&V)if(v=this.get(E,this.data)){a:{for(V=0;V<v.length;V++){var b=v[V],F=void 0,t=!!_.y((F=_.y(b,fbR))==null?void 0:F.content,_.t4Q);if(_.y(b,_.WY)||t)break a}V=v.length}E="data."+E;Q.continuationItems?V===v.length-1?(this.pop(E),this.push.apply(this,[E].concat(_.ui(Q.continuationItems)))):
V===v.length?this.push.apply(this,[E].concat(_.ui(Q.continuationItems))):this.splice.apply(this,[E,V,1].concat(_.ui(Q.continuationItems))):this.splice(E,V,1);(_.Y("web_enable_voting_animation")||_.Y("enable_music_web_cairo_voting_animation"))&&_.Hj(this.hostElement,"yt-append-continuation-items-action-finished");_.Hj(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Iy(new _.xd("append continuation items does not exist",V));else _.Iy(new _.xd("append continuation path does not exist",
V))}};
_.K.handleReloadContinuationItemsCommand=function(v){var Q=_.y(v,_.D5Z);if(this.data&&Q){if(_.Y("web_client_explore_hub")||_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))try{_.ht().resolve(dk).resolveCommand(v)}catch(F){}if(this.data.targetId&&this.continuationPathMap&&Q.targetId===this.data.targetId&&(!_.Y("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||Q.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var V,E=(V=Q.slot)==null?void 0:
V.replace("RELOAD_CONTINUATION_SLOT_","");V=(v=FCm(v)+"-"+(E==null?void 0:E.toLowerCase()))&&this.continuationPathMap[v];if(!V||!v||!E)_.Iy(new _.xd("reload continuation path does not exist",v));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(Q)){if(Q.replaceWithFirstItem){var b;this.set("data."+V,((b=Q.continuationItems)==null?0:b.length)?Q.continuationItems[0]:{})}else this.set("data."+V,Q.continuationItems?Q.continuationItems:[]);this.continuationIsReloading=
!1;_.Hj(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.K.handleShowReloadUiCommand=function(v){v=_.y(v,m6R);var Q;((Q=this.data)==null?0:Q.targetId)&&(v==null?0:v.targetId)&&v.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
hk.prototype.observeData=hk.prototype.observeData;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],hk.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],hk.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hk.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],hk.prototype,"continuationIsReloading",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hk.prototype,"observeData",null);_.W([_.hM()],hk);_.wk=[_.VL.YtComponentBehavior,_.SI.YtActionHandlerBehavior,hk.prototype];_.Ak={};_.Ak.YtNextContinuationBehavior=[_.hD.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",_.Lh(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Lh(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(v,Q){v.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,Q,{}):(v={locationRetrieved:function(V){this.makeNextContinuationRequest_(V,Q,{})}.bind(this)},_.Hj(this.hostElement,"yt-retrieve-location",v))},
makeNextContinuationRequest_:function(v,Q,V){_.O2("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();v=Q(v);var E;this.canUseContextualNetworkManager_()&&(E=this.getNetworkManager());E||(E=_.ht().resolve(_.hn));Q=_.Js.instance;if(_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&Q){E=_.Xg([v.startsWith("/")?v.substr(1):v]);var b,F;V=_.tQ(Q,{},E,V==null?void 0:(b=V.context)==null?void 0:(F=b.clickTracking)==null?void 0:F.clickTrackingParams).then(function(t){return{response:t}})}else V=
this.nextContinuation.usePost?E.postData(v,V):E.fetchData(v);
V.then(this.updateNextContinuationData_.bind(this,v));this.pendingContinuationRequest_=V;this.startListeningForNavigate_()},
updateNextContinuationData_:function(v,Q){var V=this;_.O2("ncl");this.pendingContinuationRequest_=void 0;if(Q){var E={};this.nextContinuation&&(E=this.nextContinuation);if(Q.response&&Q.response.continuationContents&&Q.response.continuationContents[E.continuationType]){v=Q.response.continuationContents[E.continuationType];var b=E.header||"data.header",F=v[E.responseHeaderKey||"header"];F&&this.set(b,F);b=E.contentsArray||"data.contents";F=this.getContents_(v,E.responseContentsKey||"contents")||[];
this.pathExists_(b)?(F.unshift(b),this.push.apply(this,F)):this.set(b,F);F&&(yHG(_.tR(),Q.response,this.hostElement,function(t){_.mb(V.hostElement,"yt-store-grafted-ve-action",[t])}),_.Hj(this.hostElement,"yt-next-continuation-data-updated",{continuationData:Q,
page:this,contentsArray:b}));this.set(E.continuationsArray||"data.continuations",v[E.responseContinuationsKey||"continuations"]||[])}else Q.reload?_.Iy(new _.xd("Reloading from continuation is unsupported")):Q.responseContext&&Q.responseContext.errors||(delete Q.xsrf_token,delete Q.timing,delete Q.endpoint,delete Q.csn,Q.responseContext&&delete Q.responseContext.serviceTrackingParams,b={request:_.iv(v,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(Q).sort()},Q.response&&(b.responseContentKeys=
Object.keys(Q.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(b.continuationType=this.nextContinuation.continuationType.substr(0,256)),Q=new _.xd("Malformed continuation",b),v.indexOf("/comment_service_ajax")==0?_.Iy(Q):_.ro(Q)),this.set(E.continuationsArray||"data.continuations",[])}else _.$h(new _.xd("Missing continuation response",v))},
getContents_:function(v,Q){Q=Q.split(".");return _.gI.getValueByKeys(v,Q)},
pathExists_:function(v){var Q=this;v=v.toString().split(".");for(var V=0;V<v.length;V++)if(Q=Q[v[V]],Q===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var bsZ;var FfN;var kq=function(){var v=_.z.apply(this,arguments)||this;v.triggered_=!1;return v};
_.f(kq,_.z);_.K=kq.prototype;_.K.attached=function(){this.maybeTriggerAutoload()};
_.K.detached=function(){this.hasBeenTriggered_=!1};
_.K.onPrescanVisible=function(){this.onShow()};
_.K.onShow=function(){this.showButton||this.trigger()};
_.K.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Hj(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.K.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.K.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.K.computeLabel_=function(v,Q){return v===void 0?null:v.label||!Q?v.label:this.showMoreText_};
_.K.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.K.getContinuationUrl=function(v){var Q={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(Q.itct=this.data.clickTrackingParams);return _.Li(v,Q)};
_.K.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
kq.prototype.showButtonChanged_=kq.prototype.showButtonChanged_;kq.prototype.observeData_=kq.prototype.observeData_;_.W([_.M(_.F4.YtVisibilityBehavior),_.X("design:type",Object)],kq.prototype,"ytVisibilityBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kq.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],kq.prototype,"showButton",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],kq.prototype,"showIcon",void 0);_.W([_.q({computed:"computeLabel_(data, showButton)"}),_.X("design:type",Object)],kq.prototype,"label",void 0);_.W([_.q({value:_.u3(_.Lt("SHOW_MORE",void 0,"Show More"))}),_.X("design:type",Object)],kq.prototype,"showMoreText_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],kq.prototype,"spinnerActive_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],kq.prototype,"hasBeenTriggered_",void 0);
_.W([_.q({value:void 0}),_.X("design:type",String)],kq.prototype,"observeVisibleOption",void 0);_.W([_.q({value:void 0}),_.X("design:type",String)],kq.prototype,"observeHiddenOption",void 0);_.W([_.q({value:"observe_once"}),_.X("design:type",Object)],kq.prototype,"observePrescanOption",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kq.prototype,"observeData_",null);
_.W([_.ph("showButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kq.prototype,"showButtonChanged_",null);_.W([_.D7({is:"yt-next-continuation",disableElementRegistration:!0})],kq);
_.B(kq,"yt-next-continuation",function(){if(FfN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;bsZ===void 0&&(bsZ=document.createElement("template"));var E=bsZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);FfN=v}v=FfN;return v},{mode:2});var KfQ;var isN;var TS=function(){return _.z.apply(this,arguments)||this};
_.f(TS,_.z);TS.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TS.prototype,"data",void 0);_.W([_.D7({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],TS);
_.B(TS,"yt-music-pass-small-feature-info-renderer",function(){if(isN===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;KfQ===void 0&&(KfQ=document.createElement("template"));var E=KfQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);isN=v}v=isN;return v},{mode:2});_.yZ("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Yq=function(){var v=_.z.apply(this,arguments)||this;v.isCollapsible=!1;v.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return v};
_.f(Yq,_.z);_.K=Yq.prototype;_.K.computeIsCollapsible=function(v){return!!(((v==null?0:v.showMoreText)||(v==null?0:v.visibleRowCount))&&(v==null?0:v.isCollapsible))};
_.K.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"}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.K.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.K.onIronResize=function(){var v=this;_.Nf(this,"updateGridInitItems",function(){v.maybeUpdateInitialItemsDisplayed()})};
_.K.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var v=this.getVisibleWidth();v!==0&&(v=Math.floor(v/214)*(this.data.visibleRowCount||2),v!==this.initialCount&&(this.initialCount=v,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.K.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.K.computeExpandVisible=function(v,Q,V,E){return v&&Q&&V&&!!E&&!!E.showMoreText};
_.K.computeShowMoreButton=function(v){return{text:v,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.K.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.K.initCollapsed=function(){var v=this;this.ytLazyListBehavior.canShowMore=!1;var Q;(this.collapsed=!((Q=this.data)==null||!Q.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.PE(this,function(){_.Un(v.hostElement,"yt-refit-popups-action")})};
_.K.fillRestIfNotCollapsible=function(){var v=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!v||this.ytLazyListBehavior.fillRemainingListItems()};
_.K.computeViewAllHidden=function(v,Q){return v||!Q.viewAllEndpoint};
Yq.prototype.fillRestIfNotCollapsible=Yq.prototype.fillRestIfNotCollapsible;Yq.prototype.initCollapsed=Yq.prototype.initCollapsed;Yq.prototype.onIronResize=Yq.prototype.onIronResize;Yq.prototype.persistentGuideChanged=Yq.prototype.persistentGuideChanged;_.W([_.M(_.WW),_.X("design:type",Object)],Yq.prototype,"ironResizableBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],Yq.prototype,"ytLazyListBehavior",void 0);_.W([_.M(_.Ak.YtNextContinuationBehavior),_.X("design:type",Object)],Yq.prototype,"ytNextContinuationBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],Yq.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.M(_.wk),_.X("design:type",Object)],Yq.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Yq.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],Yq.prototype,"collapsed",void 0);_.W([_.q(),_.X("design:type",Number)],Yq.prototype,"initialCount",void 0);_.W([_.q({computed:"computeShowMoreButton(data.showMoreText)"}),_.X("design:type",Object)],Yq.prototype,"showMoreButton",void 0);
_.W([_.q({computed:"computeIsCollapsible(data)"}),_.X("design:type",Object)],Yq.prototype,"isCollapsible",void 0);_.W([_.Z7("#items"),_.X("design:type",HTMLElement)],Yq.prototype,"items",void 0);_.W([_.wg("guidePersistentAndVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yq.prototype,"persistentGuideChanged",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yq.prototype,"onIronResize",null);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yq.prototype,"initCollapsed",null);_.W([_.wg("canShowMore"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yq.prototype,"fillRestIfNotCollapsible",null);_.W([_.J({is:"ytd-grid-renderer",disableElementRegistration:!0})],Yq);
_.B(Yq,"ytd-grid-renderer",function(){if(IRX!==void 0)return IRX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return IRX=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var y1=function(){return _.z.apply(this,arguments)||this};
_.f(y1,_.z);
y1.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],y1.prototype,"data",void 0);_.W([_.J({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],y1);
_.B(y1,"ytd-carousel-ad-renderer",function(){if(oix!==void 0)return oix;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return oix=v},{mode:1});var Lfx;var cb=function(){return _.z.apply(this,arguments)||this};
_.f(cb,_.z);_.K=cb.prototype;_.K.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"}}}};
_.K.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,cb.JSC$15580_CLICK_LOCATION_ID_MAP))};
_.K.onSitelinkTap=function(v){v.stopPropagation();var Q,V,E=v==null?void 0:(Q=v.model)==null?void 0:(V=Q.item)==null?void 0:V.onTap;E&&this.ytSparklesClickLocationBehavior.handleClick(E,v,!1)};
_.K.onTap=function(v){var Q=this.data&&this.data.content&&this.data.content.navigationEndpoint;Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,v,!1)};
_.K.sendImpression=function(){if(this.data&&this.data.content)for(var v=_.L(this.data.content.impressionEndpoints||[]),Q=v.next();!Q.done;Q=v.next()){Q=_.L(Q.value.loggingUrls||[]);for(var V=Q.next();!V.done;V=Q.next())V=V.value,V.baseUrl&&E0(V.baseUrl,V.attributionSrcMode)}};
cb.prototype.onTap=cb.prototype.onTap;cb.prototype.dataChanged=cb.prototype.dataChanged;cb.JSC$15580_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],cb.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cb.prototype,"data",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cb.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],cb.prototype,"onTap",null);_.W([_.J({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],cb);
_.B(cb,"ytd-promoted-sparkles-text-search-renderer",function(){if(Lfx!==void 0)return Lfx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Lfx=v},{mode:1});var tEx;var fT=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.f(fT,_.z);_.K=fT.prototype;_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.configureRendererStamper=function(){return{"data.menu":{id:_.Y("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]]"}}}}}};
_.K.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.K.computeHasAdBadge=function(v){return!(v==null||!v.adBadge)};
_.K.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",fT.JSC$15589_DEFAULT_AD_BADGE_RENDERER),_.VE(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&Or(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,fT.JSC$15589_CLICK_LOCATION_ID_MAP))};
_.K.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var v;(((v=this.data)==null?void 0:v.impressionCommands)||[]).forEach(function(Q){Q=_.L(Q.loggingUrls||[]);for(var V=Q.next();!V.done;V=Q.next())V=V.value,V.baseUrl&&E0(V.baseUrl,V.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.K.onTap=function(v){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint,E;(Q=(E=this.data)==null?void 0:E.thumbnailNavigationEndpoint)&&_.W_(_.uK(v),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(Q,v,!1):V&&this.ytSparklesClickLocationBehavior.handleClick(V,v,!1)};
_.K.handleMuteAd=function(){this.collapsed=!0};
_.K.attached=function(){var v=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dh(v.activeView)})};
_.K.detached=function(){_.Y("stop_av_measurement_on_detach")&&Dh(this.activeView)};
_.hr.Object.defineProperties(fT.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var v;return!(((v=this.data)==null?void 0:v.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var v;return!(((v=this.data)==null?void 0:v.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
fT.prototype.dataChanged=fT.prototype.dataChanged;
fT.JSC$15589_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"]]);
fT.JSC$15589_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Lt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],fT.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],fT.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fT.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],fT.prototype,"collapsed",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],fT.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],fT.prototype,"biggerThumbsStyle",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.X("design:type",Boolean)],fT.prototype,"fixAlignmentSmallScreens",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs_square")}}),
_.X("design:type",Boolean)],fT.prototype,"useBiggerThumbsSquare",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.mediaHoverOverlay"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"hideHoverOverlay",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"webSearchLayout",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"webSearchLayoutLandscape",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"webSearchLayoutSquare",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"sparklesCtaNoBackground",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.actionButton"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"hideActionButton",null);_.W([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.X("design:type",Object)],fT.prototype,"buttonOverride",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.X("design:type",Boolean)],fT.prototype,"hasNewAdBadge",void 0);_.W([_.O("data.promotedSparklesWebStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fT.prototype,"useRoundedBadge",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fT.prototype,"dataChanged",null);_.W([_.J({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],fT);
_.B(fT,"ytd-promoted-sparkles-web-renderer",function(){if(tEx!==void 0)return tEx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return tEx=v},{mode:1});var pvZ;var GS=function(){var v=_.z.apply(this,arguments)||this;v.isInlinePreviewTriggered=!1;v.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");return v};
_.f(GS,_.z);_.K=GS.prototype;_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.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]]"}}}}}};
_.K.computeShowCta=function(v){return!(v==null||!v.ctaRenderer)};
_.K.onCtaClick=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.ctaRenderer)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.command;E&&this.ytComponentBehavior.resolveCommand(E)};
_.K.onWatchButtonClick=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.watchButtonRenderer)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.command;E&&this.ytComponentBehavior.resolveCommand(E)};
_.K.onTap=function(){};
_.K.dataChanged=function(){if(this.data){var v;_.Y("enable_inline_muted_playback_on_web_search")&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",GS.JSC$15593_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&Or(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",GS.JSC$15593_DEFAULT_CLICK_LOCATION_BEHAVIOR,GS.JSC$15593_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"));var Q;if(((Q=this.data)==null?0:Q.forceImpAutoplay)&&_.Y("enable_force_imp_autoplay_on_desktop_search")){var V;(V=this.JSC$15594_inlinePreviewHoverListener)==null||hiG(V)}}};
_.K.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var v=_.L(this.data.impressionUrls),Q=v.next();!Q.done;Q=v.next())Q=Q.value,WVG(Q,Xnh(Q));this.data.impressionsFired=!0}};
_.K.maybeComputeHref=function(){return null};
_.K.computeIsShortDR=function(v){return!(v==null||!v.watchButtonRenderer)&&!(v==null||!v.ctaRenderer)&&!!this.enableShortDR};
_.K.computeIsNewUiOrShortDr=function(v){return!!this.enableUiUpdate||this.computeIsShortDR(v)};
_.K.computeIsNewUiAndNotShortDr=function(v){return!!this.enableUiUpdate&&!this.computeIsShortDR(v)};
_.K.computeHideAvatar=function(v){return!((v==null?0:v.channelThumbnail)&&this.computeIsNewUiOrShortDr(v))};
_.K.onClick=function(v){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint;if(this.enableShortDR&&V&&(_.y(V,_.sn)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(V,v,!!_.y(V,_.sn)),v.stopPropagation();else if(V&&_.y(V,_.sn))this.ytSparklesClickLocationBehavior.handleClick(V,v,!0),v.stopPropagation();else if(V){var E,b;((E=this.data)==null?0:E.navigationEndpoint)&&((b=this.data)==null?0:b.adPlaybackContextParams)&&(Q=this.data.navigationEndpoint,v=this.data.adPlaybackContextParams,
Q.commandMetadata&&_.y(Q.commandMetadata,_.Kt)&&_.y(Q.commandMetadata,_.Kt).url&&(Q=_.Ki(_.y(Q.commandMetadata,_.Kt).url).adurl)&&_.Xjb(Q)&&_.ox(_.JY(Q),{encoded_ad_playback_context:v}));this.ytComponentBehavior.resolveCommand(V)}};
_.K.computeButtonOverride=function(v){if(this.computeIsNewUiOrShortDr(v))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.K.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.K.onThumbnailContainerClick=function(v){this.onClick(v)};
_.K.computeThumbnailWidth=function(v,Q){return v?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:360};
_.K.attached=function(){var v=this,Q;_.Y("enable_inline_muted_playback_on_web_search")&&((Q=this.data)==null?0:Q.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dh(v.activeView)})};
_.K.detached=function(){var v;_.Y("enable_inline_muted_playback_on_web_search")&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&Dh(this.activeView)};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15594_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:c0q})};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15594_inlinePreviewHoverListener)==null||ji(v)};
GS.prototype.dataChanged=GS.prototype.dataChanged;GS.prototype.onTap=GS.prototype.onTap;GS.JSC$15593_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Lt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};GS.JSC$15593_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
GS.JSC$15593_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],GS.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],GS.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.Z7("#main-container"),_.X("design:type",HTMLElement)],GS.prototype,"mainContainer",void 0);
_.W([_.q(),_.X("design:type",Object)],GS.prototype,"isInlinePreviewTriggered",void 0);_.W([_.q(),_.X("design:type",Object)],GS.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],GS.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_video_display_compact_button_group_for_desktop_search")}}),
_.X("design:type",Boolean)],GS.prototype,"enableShortDR",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_vac_ui_update_for_desktop_search")}}),
_.X("design:type",Boolean)],GS.prototype,"enableUiUpdate",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],GS.prototype,"biggerThumbsStyle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.X("design:type",Boolean)],GS.prototype,"showCta",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.X("design:type",Boolean)],GS.prototype,"isShortDr",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.X("design:type",Boolean)],GS.prototype,"isShortDrOrNewUi",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.X("design:type",Boolean)],GS.prototype,"isNewUiAndNotShortDr",void 0);_.W([_.q({computed:"computeButtonOverride(data)"}),_.X("design:type",Object)],GS.prototype,"buttonOverride",void 0);_.W([_.q({computed:"computeSecondaryButtonOverride(data)"}),_.X("design:type",Object)],GS.prototype,"secondaryButtonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],GS.prototype,"enableMonoStyle",void 0);
_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],GS.prototype,"thumbnail",void 0);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],GS.prototype,"onTap",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],GS.prototype,"dataChanged",null);_.W([_.J({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],GS);
_.B(GS,"ytd-promoted-video-renderer",function(){if(pvZ!==void 0)return pvZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return pvZ=v},{mode:1});var eEZ;var CT=function(){var v=_.z.apply(this,arguments)||this;v.useRoundedBadge=!0;v.sitelinkIds=[];return v};
_.f(CT,_.z);_.K=CT.prototype;
_.K.configureRendererStamper=function(){return{"data.menu":{id:_.Y("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]]"}}}}}};
_.K.dataChanged=function(){var v;(v=this.data)!=null&&v.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,CT.JSC$15599_CLICK_LOCATION_ID_MAP)};
_.K.onTap=function(v){var Q,V=(Q=this.data)==null?void 0:Q.navigationCommand;V&&!_.W_(_.uK(v),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(V,v,!1)};
_.K.onSitelinkTap=function(v){var Q,V,E=v==null?void 0:(Q=v.model)==null?void 0:(V=Q.item)==null?void 0:V.onTap;E&&this.ytSparklesClickLocationBehavior.handleClick(E,v,!1)};
_.K.configureSitelinkClickTargets=function(){var v=this,Q,V,E=(Q=this.data)==null?void 0:(V=Q.clickLocationTargets)==null?void 0:V.find(function(b){return b.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
E&&_.m9(this.hostElement).querySelectorAll(".sitelink").forEach(function(b){_.VE(b,"yt-simple-endpoint",!0);v.sitelinkIds.push(b.id);var F,t;(F=v.ytSparklesClickLocationBehavior)==null||(t=F.clickTargetMap)==null||t.set(b.id,E)})};
_.K.sendImpression=function(){var v,Q,V=((v=this.data)==null?void 0:(Q=v.impressionCommand)==null?void 0:Q.loggingUrls)||[];v=_.L(V);for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.baseUrl&&E0(Q.baseUrl,Q.attributionSrcMode)};
_.K.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.hr.Object.defineProperties(CT.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
CT.prototype.onTap=CT.prototype.onTap;CT.prototype.dataChanged=CT.prototype.dataChanged;CT.JSC$15599_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],CT.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CT.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],CT.prototype,"showFavicon",null);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],CT.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],CT.prototype,"biggerThumbsStyle",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.X("design:type",Boolean)],CT.prototype,"enableThumbnailScalingFix",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],CT.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],CT.prototype,"onTap",null);_.W([_.J({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],CT);
_.B(CT,"ytd-text-image-no-button-layout-renderer",function(){if(eEZ!==void 0)return eEZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return eEZ=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var ZsV;var Mh=function(){var v=_.z.apply(this,arguments)||this;v.isInlinePlaybackState=!1;v.uiUpdate=_.Y("web_modern_buttons");v.hideCta=_.Y("hide_cta_for_home_web_video_ads");v.noBottomMargin=!1;v.animateInTimeStamp=_.T_("hide_cta_for_home_web_video_ads_animate_in_time");v.animateInCta=!1;v.isHovered=!1;v.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");v.player=null;v.JSC$15606_playerEvents=new Map;v.JSC$15606_preventProgressSaveTimer=null;v.delayedCtaJobId=null;return v};
_.f(Mh,_.z);_.K=Mh.prototype;_.K.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]]"}}}}}};
_.K.attached=function(){this.JSC$15606_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15606_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.Y("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.K.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15606_playerEvents)};
_.K.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Mh.JSC$15605_DEFAULT_CLICK_LOCATION_BEHAVIOR,Mh.JSC$15605_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.K.hoverChanged=function(){var v=this;this.delayedCtaJobId&&(_.XT.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.Y("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.A2(_.XT,function(){v.buttonContainer.classList.add("show-delayed-buttons")},_.T_("delayed_cta_on_web_delay_milliseconds")))};
_.K.setPlayer=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return(Q=_.Un(v.hostElement,"yt-get-inline-preview-player-action"))&&Q[0]?V.yield(Q[0].getPlayerPromise(),3):V.jumpTo(0);v.player=V.yieldResult;v.ytPlayerListenerBehavior.listenToPlayerEvents(v.player,v.JSC$15606_playerEvents);_.q1(V)})};
_.K.onPlaybackStart=function(){var v=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15606_preventProgressSaveTimer=_.md(_.XT,function(){v.JSC$15606_preventProgressSaveTimer=null},1E4))};
_.K.onVideoProgress=function(v){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&v>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.K.resetPreventProgressSaveTimer=function(){_.XT.cancelJob(this.JSC$15606_preventProgressSaveTimer);this.JSC$15606_preventProgressSaveTimer=null};
_.K.getSimpleString=function(v){return _.j0(v)};
_.K.onClick=function(v){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint,E;Q=(E=this.data)==null?void 0:E.channelEndpoint;var b,F;((F=_.y((b=this.data)==null?void 0:b.adCtaButton,_.KH))==null?0:F.command)&&_.W_(_.uK(v),this.hostElement,["call-to-action"])||(Q&&_.W_(_.uK(v),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(Q,v,!1):!_.W_(_.uK(v),this.hostElement,
["secondary-button"])&&V&&(_.Y("enable_short_dr_for_desktop_launchable")?(E=!!_.y(V,_.sn),this.isInlinePlaybackState&&E&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,v,E)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,v,!0))))}};
_.K.updateWatchEndpointStartTime=function(){var v,Q;this.player&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&((Q=this.data)==null?0:Q.navigationEndpoint)&&!this.JSC$15606_preventProgressSaveTimer&&(v=Math.floor(this.player.getCurrentTime()),_.y(this.data.navigationEndpoint,_.sn).startTimeSeconds=v,_.y(this.data.inlinePlaybackEndpoint,_.sn).startTimeSeconds=v)};
_.K.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.K.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.hr.Object.defineProperties(Mh.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Y("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.watchButton)&&!((Q=this.data)==null||!Q.adCtaButton)}}});
Mh.prototype.hoverChanged=Mh.prototype.hoverChanged;Mh.prototype.dataChanged=Mh.prototype.dataChanged;
Mh.JSC$15605_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"]]);
Mh.JSC$15605_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Mh.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],Mh.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],Mh.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Mh.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"isInlinePlaybackState",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],Mh.prototype,"miniMode",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"uiUpdate",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"hideCta",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"noBottomMargin",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"animateInCta",void 0);_.W([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.X("design:type",Object)],Mh.prototype,"buttonOverride",void 0);
_.W([_.q({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.X("design:type",Object)],Mh.prototype,"secondaryButtonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"isHovered",void 0);_.W([_.Z7("#button-container"),_.X("design:type",HTMLElement)],Mh.prototype,"buttonContainer",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],Mh.prototype,"typographyBump",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("typographyBump"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Mh.prototype,"typographyBumpV2",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mh.prototype,"enableMonoStyle",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Mh.prototype,"dataChanged",null);
_.W([_.ph("isHovered"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Mh.prototype,"hoverChanged",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Mh.prototype,"isButtonGroup",null);_.W([_.J({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Mh);
_.B(Mh,"ytd-ad-inline-playback-meta-block",function(){if(ZsV!==void 0)return ZsV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ZsV=v},{mode:_.mV("kevlar_poly_si_batch_j065")?1:2});var P4Q;var OL=function(){var v=_.z.apply(this,arguments)||this;v.noBottomMargin=!1;v.isInlinePreviewTriggered=!1;v.JSC$15611_activeViewMeasurementDataResolver=_.B_();return v};
_.f(OL,_.z);_.K=OL.prototype;_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.attached=function(){var v=this;this.updateInlinePreviewHoverListeners();this.JSC$15611_activeViewMeasurementDataResolver.promise.then(function(Q){Or(v.activeView,Q)});
_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dh(v.activeView)})};
_.K.detached=function(){this.clearInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&Dh(this.activeView)};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15611_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.JSC$15611_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:c0q})};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15611_inlinePreviewHoverListener)==null||ji(v)};
_.K.onDataChanged=function(){var v;((v=this.data)==null?0:v.activeView)&&this.JSC$15611_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",OL.JSC$15610_DEFAULT_CLICK_LOCATION_BEHAVIOR,OL.JSC$15610_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"));var Q;if((Q=this.data)==
null?0:Q.forceImpAutoplay){var V;(V=this.JSC$15611_inlinePreviewHoverListener)==null||hiG(V)}};
_.K.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.K.onThumbnailContainerClick=function(v){if(this.data&&this.data.navigationEndpoint){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,v,!!_.y(V,_.sn));v.stopPropagation()}};
_.K.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.K.impressionLog=function(){var v=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Q,V,E=(V=_.y((Q=this.data)==null?void 0:Q.onImpression,_.E2))==null?void 0:V.commands;E&&(E.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;v.ytComponentBehavior.resolveCommand(b)}),this.data.impressionsFired=!0)}};
_.hr.Object.defineProperties(OL.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15611_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
OL.prototype.onTypographyBumpChanged=OL.prototype.onTypographyBumpChanged;OL.prototype.onDataChanged=OL.prototype.onDataChanged;OL.JSC$15610_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);OL.JSC$15610_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],OL.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],OL.prototype,"ytdLockupBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],OL.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],OL.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OL.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],OL.prototype,"noBottomMargin",void 0);_.W([_.q(),_.X("design:type",Object)],OL.prototype,"isInlinePreviewTriggered",void 0);
_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],OL.prototype,"miniMode",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],OL.prototype,"typographyBump",void 0);_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],OL.prototype,"thumbnail",void 0);_.W([_.Z7("#dismissible"),_.X("design:type",HTMLElement)],OL.prototype,"JSC$15611_dismissibleMedia",void 0);
_.W([_.Z7("ytd-ad-inline-playback-meta-block"),_.X("design:type",HTMLElement)],OL.prototype,"adInlinePlaybackMetaBlock",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OL.prototype,"onDataChanged",null);_.W([_.wg("typographyBump"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OL.prototype,"onTypographyBumpChanged",null);
_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],OL.prototype,"isHovered",null);_.W([_.J({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],OL);
_.B(OL,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(P4Q!==void 0)return P4Q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return P4Q=v},{mode:1});var drQ;var D8=function(){var v=_.z.apply(this,arguments)||this;v.isInlinePreviewTriggered=!1;v.JSC$15614_activeViewMeasurementDataResolver=_.B_();return v};
_.f(D8,_.z);_.K=D8.prototype;_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.attached=function(){var v=this;this.updateInlinePreviewHoverListeners();this.JSC$15614_activeViewMeasurementDataResolver.promise.then(function(Q){Or(v.activeView,Q)})};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15614_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.JSC$15614_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:c0q})};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15614_inlinePreviewHoverListener)==null||ji(v)};
_.K.onDataChanged=function(){var v;((v=this.data)==null?0:v.activeView)&&this.JSC$15614_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",D8.JSC$15613_DEFAULT_CLICK_LOCATION_BEHAVIOR,D8.JSC$15613_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"))};
_.K.onThumbnailContainerClick=function(v){if(this.data&&this.data.navigationEndpoint){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,v,!0);v.stopPropagation()}};
_.K.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.K.impressionLog=function(){var v=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Q,V,E=(V=_.y((Q=this.data)==null?void 0:Q.onImpression,_.E2))==null?void 0:V.commands;E&&(E.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;_.ht().resolve(_.At).resolveCommand(b,{form:{element:v.hostElement}})}),this.data.impressionsFired=!0)}};
_.hr.Object.defineProperties(D8.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15614_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
D8.prototype.onDataChanged=D8.prototype.onDataChanged;D8.JSC$15613_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);D8.JSC$15613_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],D8.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],D8.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],D8.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],D8.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],D8.prototype,"isInlinePreviewTriggered",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],D8.prototype,"miniMode",void 0);_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],D8.prototype,"thumbnail",void 0);_.W([_.Z7("#dismissible"),_.X("design:type",HTMLElement)],D8.prototype,"JSC$15614_dismissibleMedia",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],D8.prototype,"onDataChanged",null);_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],D8.prototype,"isHovered",null);_.W([_.J({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],D8);
_.B(D8,"ytd-video-display-full-buttoned-renderer",function(){if(drQ!==void 0)return drQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return drQ=v},{mode:1});var XS=function(v,Q,V,E){E=E===void 0?!1:E;_.Vo.call(this,v);this.adsClientErrorMessage=V;this.aggressivelySample=E;this.args=[];Q&&this.args.push(Q)};
_.f(XS,_.Vo);var Ww=function(v,Q,V,E){E=E===void 0?!1:E;_.Vo.call(this,v);this.adsClientErrorMessage=V;this.aggressivelySample=E;this.args=[];Q&&this.args.push(Q)};
_.f(Ww,_.Vo);var hEA=function(v){_.J5.call(this);var Q=this;this.initializationFunction=v;this.instance=null;this.addOnDisposeCallback(function(){_.t5(Q.instance);Q.instance=null})};
_.f(hEA,_.J5);hEA.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.J2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var R30=function(){var v=new Map;[].forEach(function(Q){v.set(Q.JSC$30958_getType(),Q)});
this.getters=v};new Promise(function(){});var Gkm=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"]]),cHo=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"}]]),wva=function(v){this.experimentApiProvider=v;v=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=v<.1};var Rn=function(v,Q,V,E){_.J5.call(this);this.adsControlFlowEventListeners=Q;this.adEventLogger=V;this.experimentApiProvider=E;this.adsControlFlowManagerHelper=v(this,this,this,this,this);_.Cg(this,this.adsControlFlowManagerHelper);v=_.L(Q);for(Q=v.next();!Q.done;Q=v.next())_.Cg(this,Q.value)};
_.f(Rn,_.J5);var AgN=function(v,Q,V,E){nT(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Q,V,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E);v=_.L(v.adsControlFlowEventListeners);for(E=v.next();!E.done;E=v.next())AgN(E.value,Q,V)};
_.K=Rn.prototype;_.K.onOpportunityProcessedExternallyManaged=function(v,Q,V,E){nT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",v,V,Q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E)};
_.K.onSlotReceivedExternallyManaged=function(v,Q){lU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",v,Q)};
_.K.onSlotEntered=function(v){if(qh(this.adsControlFlowManagerHelper,v)!=null){lU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",v);this.adsControlFlowManagerHelper.onSlotEntered(v);for(var Q=_.L(this.adsControlFlowEventListeners),V=Q.next();!V.done;V=Q.next())V.value.onSlotEntered(v);if(qh(this.adsControlFlowManagerHelper,v)!=null&&qh(this.adsControlFlowManagerHelper,v).isOccupyingSlotType()&&Sn(this.adsControlFlowManagerHelper,v)&&!kMQ(this.adsControlFlowManagerHelper,v)){var E;zS(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",v,(E=Sn(this.adsControlFlowManagerHelper,v))!=null?E:void 0);v=qh(this.adsControlFlowManagerHelper,v);v.slotLifecycleStage!=="entered"&&Jk(v.slot,v.slotLifecycleStage,"enterLayoutForSlot");v.slotLifecycleStage="rendering";v.registeredLayoutRenderingAdapter.startRendering(v.layout)}}};
_.K.onSlotExited=function(v){if(qh(this.adsControlFlowManagerHelper,v)!=null){lU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",v);this.adsControlFlowManagerHelper.onSlotExited(v);for(var Q=_.L(this.adsControlFlowEventListeners),V=Q.next();!V.done;V=Q.next())V.value.onSlotExited(v);qh(this.adsControlFlowManagerHelper,v)!=null&&qh(this.adsControlFlowManagerHelper,v).markedForUnscheduleAfterOutboundAdapterRequests&&TtS(this,v)}};
_.K.onLayoutReceivedExternallyManaged=function(v,Q,V){v.managerLayer!=="core"&&zS(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",v,Q,V)};
var Yg8=function(v,Q,V){if(qh(v.adsControlFlowManagerHelper,Q)!=null){zS(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,V);v=_.L(v.adsControlFlowEventListeners);for(var E=v.next();!E.done;E=v.next())Yg8(E.value,Q,V)}};
Rn.prototype.onLayoutExited=function(v,Q,V){if(qh(this.adsControlFlowManagerHelper,v)!=null){zS(this.adEventLogger,fmb(V),v,Q);this.adsControlFlowManagerHelper.onLayoutExited(v,Q);for(var E=_.L(this.adsControlFlowEventListeners),b=E.next();!b.done;b=E.next())b.value.onLayoutExited(v,Q,V);(V=Sn(this.adsControlFlowManagerHelper,v))&&Q.layoutId===V.layoutId&&ygR(this,v)}};
Rn.prototype.disposeInternal=function(){var v=cga(this.adsControlFlowManagerHelper);v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())TtS(this,Q.value);_.J5.prototype.disposeInternal.call(this)};
var TtS=function(v,Q){if(qh(v.adsControlFlowManagerHelper,Q)!=null)if(qh(v.adsControlFlowManagerHelper,Q).JSC$30988_isSlotExitRequested()||qh(v.adsControlFlowManagerHelper,Q).JSC$30988_isLayoutExitRequested())qh(v.adsControlFlowManagerHelper,Q).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(qh(v.adsControlFlowManagerHelper,Q).isOccupyingSlotType())qh(v.adsControlFlowManagerHelper,Q).markedForUnscheduleAfterOutboundAdapterRequests=!0,ygR(v,Q);else if(qh(v.adsControlFlowManagerHelper,Q).JSC$30988_isSlotFillRequested())qh(v.adsControlFlowManagerHelper,
Q).markedForUnscheduleAfterOutboundAdapterRequests=!0,qh(v.adsControlFlowManagerHelper,Q)!=null&&(lU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Q),Q=qh(v.adsControlFlowManagerHelper,Q),Q.fulfillmentLifecycleStage="fill_cancel_requested",Q.registeredFulfillmentAdapter.cancelSlotFilling());else{var V=Sn(v.adsControlFlowManagerHelper,Q),E;v.experimentApiProvider.get();(E=_.Y("h5_enable_layout_unscheduling_events"))&&(V?f4a(v,Q,V):_.J2(Error("Lh"),Q,V,void 0,!1));lU(v.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Q);var b=qh(v.adsControlFlowManagerHelper,Q),F=Q.slotEntryTrigger,t=b.registeredSlotEntryTriggerAdapters.get(F.triggerId);t&&(t.unregisterTrigger(F),b.registeredSlotEntryTriggerAdapters.delete(F.triggerId));F=_.L(Q.slotFulfillmentTriggers);for(t=F.next();!t.done;t=F.next()){t=t.value;var p=b.registeredFulfillmentTriggerAdapters.get(t.triggerId);p&&(p.unregisterTrigger(t),b.registeredFulfillmentTriggerAdapters.delete(t.triggerId))}F=_.L(Q.slotExpirationTriggers);
for(t=F.next();!t.done;t=F.next())if(t=t.value,p=b.registeredExpirationTriggerAdapters.get(t.triggerId))p.unregisterTrigger(t),b.registeredExpirationTriggerAdapters.delete(t.triggerId);b.hasLayout()&&(F=b.layout,Nh(b,F.layoutExitNormalTriggers),Nh(b,F.layoutExitSkipTriggers),Nh(b,F.layoutExitMuteTriggers),Nh(b,F.layoutExitUserInputSubmittedTriggers),Nh(b,F.layoutExitUserCancelledTriggers));b.registeredFulfillmentAdapter=void 0;b.registeredSlotAdapter!=null&&(b.registeredSlotAdapter.release(),b.registeredSlotAdapter=
void 0);b.registeredLayoutRenderingAdapter!=null&&(b.registeredLayoutRenderingAdapter.release(),b.registeredLayoutRenderingAdapter=void 0);b=v.adsControlFlowManagerHelper;qh(b,Q)&&(b=GMZ(b,Q.slotType+"_"+Q.slotPhysicalPosition))&&b.delete(Q.slotId);lU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Q);v=_.L(v.adsControlFlowEventListeners);for(b=v.next();!b.done;b=v.next())b=b.value,b.onSlotUnscheduled(Q),V&&!E&&f4a(b,Q,V)}},f4a=function(v,Q,V){zS(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
Q,V);
zS(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Q,V);v=_.L(v.adsControlFlowEventListeners);for(var E=v.next();!E.done;E=v.next())E=E.value,V&&f4a(E,Q,V)},ygR=function(v,Q){if(qh(v.adsControlFlowManagerHelper,Q)!=null&&qh(v.adsControlFlowManagerHelper,Q).isOccupyingSlotType()){var V=Sn(v.adsControlFlowManagerHelper,Q);
if(V&&kMQ(v.adsControlFlowManagerHelper,Q)){if(qh(v.adsControlFlowManagerHelper,Q)!=null){var E=v.adEventLogger,b;var F=((b=cHo.get("abandoned"))==null?void 0:b.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";zS(E,F,Q,V);v=qh(v.adsControlFlowManagerHelper,Q);v.slotLifecycleStage!=="rendering"&&Jk(v.slot,v.slotLifecycleStage,"exitLayout");v.slotLifecycleStage="rendering_stop_requested";v.registeredLayoutRenderingAdapter.stopRendering(V,"abandoned")}}else{lU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
Q);try{E=qh(v.adsControlFlowManagerHelper,Q);if(!E)throw new Ww("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");E.slotLifecycleStage!=="enter_requested"&&E.slotLifecycleStage!=="entered"&&E.slotLifecycleStage!=="rendering"&&Jk(E.slot,E.slotLifecycleStage,"exitSlot");E.slotLifecycleStage="exit_requested";if(E.registeredSlotAdapter===void 0)throw E.slotLifecycleStage="scheduled",new Ww("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
E.registeredSlotAdapter.exit()}catch(t){t instanceof Ww&&t.adsClientErrorMessage?(C4R(v.adEventLogger,t.adsClientErrorMessage,Q),_.J2(t,Q,void 0,void 0,t.aggressivelySample)):(C4R(v.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),_.J2(t,Q))}}}};var uU=function(v,Q,V,E,b,F){_.J5.call(this);this.registry=v;this.experimentApiProvider=F;this.slotMap=new Map};
_.f(uU,_.J5);var GMZ=function(v,Q){return(v=v.slotMap.get(Q))?v:new Map},qh=function(v,Q){return GMZ(v,Q.slotType+"_"+Q.slotPhysicalPosition).get(Q.slotId)},cga=function(v){var Q=[];
v.slotMap.forEach(function(V){V=_.L(V.values());for(var E=V.next();!E.done;E=V.next())Q.push(E.value.slot)});
return Q};
uU.prototype.onSlotEntered=function(v){v=qh(this,v);v.slotLifecycleStage!=="enter_requested"&&Jk(v.slot,v.slotLifecycleStage,"onSlotEntered");v.slotLifecycleStage="entered"};
var kMQ=function(v,Q){v=qh(v,Q);return v.hasLayout()&&v.isRendering()},Sn=function(v,Q){(v=qh(v,Q))?v.hasLayout()&&!v.layout&&_.J2("Unexpected empty layout",Q):_.J2("Unexpected undefined slotState",Q);
return(v==null?void 0:v.layout)||null};
uU.prototype.onSlotExited=function(v){v=qh(this,v);v.slotLifecycleStage!=="exit_requested"&&Jk(v.slot,v.slotLifecycleStage,"onSlotExited");v.slotLifecycleStage="scheduled"};
uU.prototype.onLayoutExited=function(v,Q){v=qh(this,v);v.isPrimaryLayout(Q)&&(v.slotLifecycleStage!=="rendering_stop_requested"&&Jk(v.slot,v.slotLifecycleStage,"onLayoutExited"),v.slotLifecycleStage="entered")};
var Nh=function(v,Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=v.registeredLayoutExitTriggerAdapters.get(V.triggerId);E&&(E.unregisterTrigger(V),v.registeredLayoutExitTriggerAdapters.delete(V.triggerId))}},Jk=function(v,Q,V){_.J2("Slot stage was "+Q+" when calling method "+V,v)};var OsS=function(v){_.J5.call(this);this.deps=v;this.JSC$15667_adsControlFlowManager=MER(this)};
_.f(OsS,_.J5);var MER=function(v){var Q=new Rn(function(V,E,b,F){return new uU(v.deps.registry,V,E,b,F,v.deps.experimentApiProvider)},new Set(DGS(v.deps.registry).concat(v.deps.listeners)),v.deps.adEventLogger,v.deps.experimentApiProvider);
_.Cg(v,Q);return Q};var HCQ=function(){};var DrN=function(v,Q){_.J5.call(this);this.experimentApiProvider=v;this.eventLoggingSettingsProvider=Q;this.eventCount=0;this.premiumAdSeenEventLogger=moh()()};
_.f(DrN,_.J5);DrN.prototype.logEvent=function(v){nT(this,v)};
var lU=function(v,Q,V,E){nT(v,Q,void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,void 0,E)},zS=function(v,Q,V,E,b){nT(v,Q,void 0,void 0,void 0,V,E?E:void 0,void 0,void 0,V.adSlotLoggingData,E?E.adLayoutLoggingData:void 0,void 0,b);
V=_.ht().resolve(_.d$(s0))==null?void 0:uS();Q=V==null?void 0:V.adsSeenHotConfig;V=V==null?void 0:V.adsHotConfig;(Q==null?0:Q.logOnAdsSeen)&&(V==null?0:V.webEnablePremiumAdsSeenLogging)&&RES(v,E?E:void 0,b)},C4R=function(v,Q,V){nT(v,"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:Q})},nT=function(v,Q,V,E,b,F,t,p,Z,d,w,A,k){k=k===void 0?0:k;
njX(v.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"slot:",F,"layout:",t,"ping:",p,"Opportunity:",{opportunityType:V,associatedSlotId:E,slotsFromOpportunity:b,triggerBundle:Z,adSlotLoggingData:d,adLayoutLoggingData:w});try{var T=function(){v.experimentApiProvider.get();if(Q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Q||_.J2("Empty PACF event type",F,t);var c=v.eventLoggingSettingsProvider.get();var C;(C=c.alwaysIncludeDebugData)||(c.experimentApiProvider.get(),C=
!1);c=C;C={eventType:Q,eventOrder:++v.eventCount};var R={};F&&(R.slotData=MbZ(c,F));if(t){var l={type:t.layoutType,controlFlowManagerLayer:Gkm.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c&&(l.debugData={layoutId:t.layoutId});R.layoutData=l}p&&(R.pingData={pingDispatchStatus:p.dispatchStatus,serializedAdPingMetadata:p.ping.serializedAdPingMetadata,pingIndex:p.index});Z&&(R.triggerData=C5G(Z.trigger,Z.category));V&&(R.opportunityData=Obt(c,V,E,b));C.adClientData=R;d&&(C.serializedSlotAdServingData=
d.serializedSlotAdServingDataEntry);w&&(C.serializedAdServingData=w.serializedAdServingDataEntry);A&&(C.errorInfo=A);_.X0("adsClientStateChange",{adsClientEvent:C})}};
k&&k>0?_.go(_.yX(),function(){return T()},k):T()}catch(c){njX(v.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.go(_.yX(),function(){_.J2(c instanceof Error?c:String(c),F,t,{pacf_message:"exception during pacf logging"})})}},RES=function(v,Q,V){if(Q){var E=Q.adLayoutLoggingData;
_.go(_.yX(),function(){v.premiumAdSeenEventLogger!=null&&E&&_.X0("adsSeenClientLogging",{serializedAdServingDataEntry:E.serializedAdServingDataEntry})},V!=null?V:0)}};var l48=function(v,Q){DrN.call(this,v,Q)};
_.f(l48,DrN);var qgR=function(){},njX=function(v,Q){return _.Y(Q)};var zEq=function(){var v=new Sga;this.JSC$15692_adsControlFlowManager=(new OsS(v)).JSC$15667_adsControlFlowManager},Sga=function(){_.J5.call(this);
var v=this;this.experimentApiProvider=new hEA(function(){return new qgR});
var Q=new hEA(function(){return new wva(v.experimentApiProvider)});
this.adEventLogger=new l48(this.experimentApiProvider,Q);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.f(Sga,_.J5);var JgR=function(){},NtQ,jn=function(){NtQ||(NtQ=new JgR);
return NtQ},Wb=function(v){if(!v.JSC$15703_externallyManagedSlotAdapterCallback){var Q=(new zEq).JSC$15692_adsControlFlowManager;
v.JSC$15703_externallyManagedSlotAdapterCallback=Q}return v.JSC$15703_externallyManagedSlotAdapterCallback},xrZ=function(v,Q,V){var E=Q.opportunityType,b=Error("Mh");
if(E!==void 0){var F=Wb(v);AgN(F,E,void 0,V)}else _.J2(b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});F=[];if(Q.adSlotAndLayoutMetadata!==void 0){Q=_.L(Q.adSlotAndLayoutMetadata);for(var t=Q.next();!t.done;t=Q.next()){var p=t.value;if(t=p.adSlotMetadata)if(F.push(t),v.onSlotReceivedExternallyManaged(t,V),p.adLayoutMetadata){p=_.L(p.adLayoutMetadata);for(var Z=p.next();!Z.done;Z=p.next())v.onLayoutReceivedExternallyManaged(t,Z.value,V)}else V>0&&_.J2("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else V>0&&_.J2("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else V>0&&_.J2("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(E!==void 0)v.onOpportunityProcessedExternallyManaged(E,F,void 0,V);else _.J2(b,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
JgR.prototype.onSlotReceivedExternallyManaged=function(v,Q){v=o7(v);if(v instanceof Ww)_.J2(v,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Wb(this).onSlotReceivedExternallyManaged(v,Q)};
JgR.prototype.onLayoutReceivedExternallyManaged=function(v,Q,V){v=o7(v);Q=nnt(Q);if(v instanceof Ww)_.J2(v,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(Q instanceof XS)_.J2(Q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Wb(this).onLayoutReceivedExternallyManaged(v,Q,V)};
JgR.prototype.onOpportunityProcessedExternallyManaged=function(v,Q,V,E){var b=[];Q=_.L(Q);for(var F=Q.next();!F.done;F=Q.next())F=o7(F.value),F instanceof Ww?_.J2(F,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):b.push(F);Wb(this).onOpportunityProcessedExternallyManaged(v,b,V,E)};
var BtZ=function(v,Q){Q=o7(Q);if(Q instanceof Ww)_.J2(Q,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var V=Wb(v);lU(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Q);V=_.L(V.adsControlFlowEventListeners);for(var E=V.next();!E.done;E=V.next())E=qh(E.value,Q),E.slotLifecycleStage!=="not_scheduled"&&Jk(E.slot,E.slotLifecycleStage,"onSlotScheduled"),E.slotLifecycleStage="scheduled";v=Wb(v);lU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Q);v=_.L(v.adsControlFlowEventListeners);
for(V=v.next();!V.done;V=v.next())V.value.onSlotEntered(Q)}},gjX=function(v,Q){Q=o7(Q);
if(Q instanceof Ww)_.J2(Q,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var V=Wb(v);lU(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Q);V=_.L(V.adsControlFlowEventListeners);for(var E=V.next();!E.done;E=V.next())E.value.onSlotExited(Q);v=Wb(v);lU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Q);v=_.L(v.adsControlFlowEventListeners);for(V=v.next();!V.done;V=v.next())V.value.onSlotUnscheduled(Q)}},skR=function(v,Q,V){Q=o7(Q);
V=nnt(V);if(Q instanceof Ww)_.J2(Q,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(V instanceof XS)_.J2(V,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var E=Wb(v);zS(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,V);E=_.L(E.adsControlFlowEventListeners);for(var b=E.next();!b.done;b=E.next())b.value.onLayoutScheduled(Q,V);v=Wb(v);zS(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,V);v=_.L(v.adsControlFlowEventListeners);
for(E=v.next();!E.done;E=v.next())Yg8(E.value,Q,V)}},on=function(v,Q,V){Q=o7(Q);
V=nnt(V);if(Q instanceof Ww)_.J2(Q,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(V instanceof XS)_.J2(V,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var E=Wb(v);zS(E.adEventLogger,fmb("normal"),Q,V);E=_.L(E.adsControlFlowEventListeners);for(var b=E.next();!b.done;b=E.next())b.value.onLayoutExited(Q,V,"normal");v=Wb(v);v=_.L(v.adsControlFlowEventListeners);for(E=v.next();!E.done;E=v.next())f4a(E.value,Q,V)}};_.XA=_.x(function(v){var Q=_.o1(v,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});v=Object.assign({},Q);var V=Q.data;Q=Q.customCommandResolver;var E=(delete v.data,delete v.customCommandResolver,v);v=_.k0({visibilityCallback:function(p,Z){var d,w=(d=V().interaction)==null?void 0:d.onFirstVisible;p&&(w&&_.nx(w),E.setOnErrorHandler()&&lmZ(Z))},
showOption:_.Mg});Q=_.n4(function(){return V().interaction},Q,function(){var p;
return(p=E.listenToTapEvent)==null?void 0:p.call(E)});
var b=_.L(_.Ge(!1,void 0,"wAC0Lc")),F=b.next().value,t=b.next().value;b=_.EP(function(p){var Z;((Z=E.setTouchEndHandler)==null?0:Z.call(E))&&!F()&&(p.currentTarget.click(),t(!0),setTimeout(function(){t(!1)},100));
return!1});
return _.P("ad-image-view-model",{class:function(){var p,Z=[((p=V().interaction)==null?0:p.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],d;((d=E.isGridViewEnabled)==null?0:d.call(E))&&Z.push("ytwAdImageViewModelHostInGridView");return Z.join(" ")},
el:_.ud(v,Q),"on:touchend":b},_.P("div",{class:"ytwAdImageViewModelHostImageContainer"},_.P(_.gE,{data:function(){var p;return{sources:V().imageSources,contentMode:(p=V().imageProperties)==null?void 0:p.contentMode}},
alt:function(){var p,Z;return((p=V().interaction)==null?void 0:(Z=p.accessibility)==null?void 0:Z.label)||""},
targetHeight:E.targetHeight,targetWidth:E.targetWidth,preserveHeight:E.preserveHeight,preserveWidth:E.preserveWidth,useWidth:E.useWidth,style:function(){var p,Z;return"vertical-align: bottom;"+(((p=V().background)==null?0:p.color)?"background-color:"+_.GA((Z=V().background)==null?void 0:Z.color)+";":"")},
className:function(){return E.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var p,Z;return(Z=(p=E.setDraggable)==null?void 0:p.call(E))!=null?Z:void 0}})))},"lc");var ui8=_.x(function(v){var Q=v.data,V=v.listenToTapEvent,E=function(){};
return _.P("ad-button-hover-overlay-view-model",{"on:click":_.EP(function(b){if(_.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")){var F,t=(F=Q().interaction)==null?void 0:F.onTap;t&&_.Hj(b.currentTarget,"yt-navigate",{endpoint:_.MQ(t)})}}),
class:function(){var b;return((b=Q().interaction)==null?0:b.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(b){var F,t=(F=Q().interaction)==null?void 0:F.onFirstVisible;b&&t&&_.nx(t)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},void 0,function(){return!_.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(V==null?void 0:V())}))},function(){return _.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.P(_.Pw,{data:function(){return Q().button}},{adButtonViewModel:function(b){return _.P(_.Dr,{data:b.data,
customCommandResolver:E})}}):_.P(_.Pw,{data:function(){return Q().button}},{adButtonViewModel:_.Dr})}())},"mc");var a7;_.ad(_.x(function(v){var Q=v.data;v=_.k0({visibilityCallback:function(p,Z){if(p){var d;(p=(d=Q().interaction)==null?void 0:d.onFirstVisible)&&_.nx(p);var w;if(d=(w=Q().adLayoutData)==null?void 0:w.activeViewData)rW(Z,d),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&$l(Z)})}else _.Y("stop_av_measurement_on_detach")&&$l(Z)},
showOption:_.Mg,hideOption:Om});var V=_.n4(function(){return Q().interaction},void 0,function(){return!0}),E=_.L(_.Ge(!1,void 0,"VNDDT")),b=E.next().value,F=E.next().value;
E=_.EP(function(){F(!0)});
var t=_.EP(function(){F(!1)});
return _.P("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.ud(v,BM9,V),"on:mouseenter":E,"on:mouseleave":t},_.P("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.iP({"max-width":function(){return _.Y("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.P("div",{class:function(){var p;
a:{var Z;switch((p=_.y(Q().thumbnailImage,sHa))==null?void 0:(Z=p.imageProperties)==null?void 0:Z.renderingAspect){case "RENDERING_ASPECT_SQUARE":p="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":p="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}p=void 0}return p}},_.P(_.Pw,{data:function(){return Q().thumbnailImage}},{adImageViewModel:function(p){return _.P(_.XA,
{data:p.data,
listenToTapEvent:!0,setTouchEndHandler:_.Y("enable_top_landscape_image_experiment_dom_id_web")})}})),_.P("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.P(_.h,{cond:function(){var p,Z,d;
return(p=_.y(Q().thumbnailImage,sHa))==null?void 0:(Z=p.imageProperties)==null?void 0:(d=Z.overlayIcon)==null?void 0:d.iconImage},
then:function(p){return _.P(_.gE,{data:p,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.P("div",{class:function(){return b()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.P(_.Pw,{data:function(){return Q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(p){return _.P(ui8,
{data:p.data,
listenToTapEvent:!0})}}))),_.P("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.P(_.Pw,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:function(p){return _.P(Jv,{data:p.data,
listenToTapEvent:!0,setTouchEndHandler:_.Y("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;v=_.k0({visibilityCallback:function(p,Z){if(p){var d;(p=(d=Q().interaction)==null?void 0:d.onFirstVisible)&&_.nx(p);var w;if(d=(w=Q().adLayoutData)==null?void 0:w.activeViewData)rW(Z,d),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&$l(Z)})}else _.Y("stop_av_measurement_on_detach")&&$l(Z)},
showOption:_.Mg,hideOption:Om});var V=_.Z1(_.OP),E=_.n4(function(){return Q().interaction}),b={},F={},t={};
return _.P("square-image-layout-view-model",{class:_.QZ("ytwSquareImageLayoutViewModelHost",(b.ytwSquareImageLayoutViewModelHostColumn=V,b)),el:_.ud(v,gn9,E)},_.P("div",{class:_.QZ("ytwSquareImageLayoutViewModelHostImage",(F.ytwSquareImageLayoutViewModelHostColumnImage=V,F))},function(){return _.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(p){return _.P(_.XA,{data:p.data,
isGridViewEnabled:V,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.P("div",{class:_.QZ("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=V,t))},_.P(_.Pw,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:Jv}),function(){return _.P(_.Pw,{data:function(){return Q().adButton}},{adButtonViewModel:function(p){var Z={};
return _.P(_.Dr,{data:p.data,className:_.QZ((Z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=V,Z))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=v.noBottomMargin;var E=v.typographyBump;v=_.k0({visibilityCallback:function(A,k){if(A){var T;(A=(T=Q().interaction)==null?void 0:T.onFirstVisible)&&_.nx(A);var c;if(T=(c=Q().adLayoutData)==null?void 0:c.activeViewData)rW(k,T),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&$l(k)})}else _.Y("stop_av_measurement_on_detach")&&$l(k)},
showOption:_.Mg,hideOption:Om});var b=_.n4(function(){return Q().interaction},void 0,function(){return _.Y("enable_web_home_top_landscape_image_layout_level_click")}),F=function(){return Q().interaction};
F!==void 0&&F!==null||_.V9(Error("Nh"));var t=function(){var A,k,T;return(A=_.y(Q().thumbnailImage,sHa))==null?void 0:(k=A.background)==null?void 0:(T=k.backgroundImageSource)==null?void 0:T.imageSources};
F=_.L(_.Ge(!1,void 0,"NFjwje"));var p=F.next().value,Z=F.next().value;F=_.EP(function(){Z(!0)});
var d=_.EP(function(){Z(!1)}),w=function(){return p()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.P("top-landscape-image-layout-view-model",{class:function(){var A;return((A=Q().interaction)==null?0:A.onTap)&&_.Y("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.ud(v,s_Q,b),"on:mouseenter":F,"on:mouseleave":d},_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.P(_.h,{cond:function(){return t()&&t().length>0},
then:function(){return _.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.iP({top:"0","background-image":function(){return"url("+String(t()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.P(_.h,{cond:function(){return!!Q().adButtonHoverOverlay},
then:function(){return _.P("div",{class:w},_.P(_.Pw,{data:function(){return Q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:ui8}))}}),_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.P(_.Pw,{data:function(){return Q().thumbnailImage}},{adImageViewModel:function(A){return _.P(_.XA,{data:A.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.Y("enable_web_home_top_landscape_image_layout_level_click")})}})),_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.P(_.gE,{data:{sources:[{clientResource:{imageName:_.Y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.P(_.Pw,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:function(A){return _.P(Jv,{data:A.data,
noBottomMargin:function(){return V==null?void 0:V()},
listenToTapEvent:function(){return _.Y("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return E==null?void 0:E()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.pJ,
noBottomMargin:_.pJ,typographyBump:_.pJ}});var jka=_.x(function(v){var Q=v.data,V=_.k0({visibilityCallback:function(b){var F,t=(F=Q().interaction)==null?void 0:F.onFirstVisible;b&&t&&_.nx(t)},
showOption:_.Mg});v=_.n4(function(){return Q().interaction},v.customCommandResolver);
var E={};return _.P("ad-text-image-view-model",{class:_.QZ("ytwAdTextImageViewModelHost",(E.ytwAdTextImageViewModelHostDarkBackground=function(){return Q().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},E)),
el:_.ud(V,v),"aria-label":function(){var b,F;return(b=Q().interaction)==null?void 0:(F=b.accessibility)==null?void 0:F.label}},_.P("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.P(_.tD,{text:function(){return Q().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.P(_.h,{cond:function(){return Q().overlayIcon},
then:function(b){return _.P("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.P(_.gE,{data:b,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var WfA=_.x(function(v){var Q=v.data;return _.P("feed-ad-sitelink-view-model",{class:function(){var V;return((V=Q().interaction)==null?0:V.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.ud(_.n4(function(){return Q().interaction},v.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var V,E;return(V=Q().interaction)==null?void 0:(E=V.accessibility)==null?void 0:E.label},
role:"link",tabindex:0},_.P(_.tD,{text:function(){return Q().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var ojR=_.x(function(v){var Q=v.data;v={};return _.P("feed-ad-sitelinks-carousel-view-model",{el:_.ud(_.k0({visibilityCallback:function(V){var E,b=(E=Q().interaction)==null?void 0:E.onFirstVisible;V&&b&&_.nx(b)},
showOption:_.Mg})),class:_.QZ("ytwFeedAdSitelinksCarouselViewModelHost",(v.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return Q().style==="FEED_AD_SITELINKS_STYLE_NONE"},v))},_.P(_.Pw,{data:function(){return Q().sitelinks}},{feedAdSitelinkViewModel:WfA}))},"sc");_.ad(_.x(function(v){var Q=v.data;v=_.k0({visibilityCallback:function(t,p){if(t){var Z;(t=(Z=Q().interaction)==null?void 0:Z.onFirstVisible)&&_.nx(t);var d;(Z=(d=Q().adLayoutData)==null?void 0:d.activeViewData)&&rW(p,Z)}},
showOption:_.Mg});var V=_.L(_.Ge(!1,void 0,"BzPhl")),E=V.next().value,b=V.next().value;V=_.EP(function(){b(!0)});
var F=_.EP(function(){b(!1)});
return _.P("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.ud(v),"on:mouseenter":V,"on:mouseleave":F},_.P("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.P("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.P(_.Pw,{data:function(){return Q().textImage}},{adTextImageViewModel:jka})),_.P("div",{class:function(){return E()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.P(_.Pw,{data:function(){return Q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(t){return _.P(ui8,{data:t.data,
listenToTapEvent:!0})}}))),_.P("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.P(_.Pw,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.P(Jv,{data:t.data,
listenToTapEvent:!0})}}),_.P(_.Pw,{data:function(){return Q().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:ojR})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=v.typographyBump;return _.P("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.ud(_.k0({visibilityCallback:function(E,b){if(E){var F;(E=(F=Q().interaction)==null?void 0:F.onFirstVisible)&&_.nx(E);var t;(F=(t=Q().adLayoutData)==null?void 0:t.activeViewData)&&rW(b,F)}},
showOption:_.Mg,hideOption:Om}))},_.P("div",null,_.P(_.Pw,{data:function(){return Q().videoLockup}},{lockupViewModel:function(E){return _.P(_.Ng,{data:E.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.pJ,
noBottomMargin:_.pJ,typographyBump:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=v.className;var E=v.typographyBump;return _.P("video-display-compact-button-group-layout-view-model",{el:_.ud(_.k0({visibilityCallback:function(b,F){if(b){var t;(b=(t=Q().interaction)==null?void 0:t.onFirstVisible)&&_.nx(b);var p;(t=(p=Q().adLayoutData)==null?void 0:p.activeViewData)&&rW(F,t)}},
showOption:_.Mg})),class:_.QZ("videoDisplayCompactButtonGroupLayoutViewModelHost",V)},_.P(_.Pw,{data:function(){return Q().videoLockup}},{lockupViewModel:function(b){return _.P(_.Ng,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:E})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.pJ,
className:_.pJ,typographyBump:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=v.className;var E=v.typographyBump;return _.P("video-display-compact-buttoned-layout-view-model",{el:_.ud(_.k0({visibilityCallback:function(b,F){if(b){var t;(b=(t=Q().interaction)==null?void 0:t.onFirstVisible)&&_.nx(b);var p;(t=(p=Q().adLayoutData)==null?void 0:p.activeViewData)&&rW(F,t)}},
showOption:_.Mg})),class:_.QZ("videoDisplayCompactButtonedLayoutViewModelHost",V)},_.P(_.Pw,{data:function(){return Q().videoLockup}},{lockupViewModel:function(b){return _.P(_.Ng,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:E})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.pJ,
className:_.pJ,typographyBump:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=v.className;var E=v.typographyBump;var b=function(){return Q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},F=_.Z1(_.OP);
v=_.k0({visibilityCallback:function(d,w){if(d){var A=Q();d=A.adLayoutData;var k;(A=(k=A.interaction)==null?void 0:k.onFirstVisible)&&_.nx(A);(k=d==null?void 0:d.activeViewData)&&rW(w,k)}},
showOption:_.Mg});var t=_.Rr(function(){return{containerType:b()&&F()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:b()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),p=_.Rr(function(){return b()&&F()?"":b()?"168px":"50%"},void 0,"Om6kNe"),Z=_.Rr(function(){return b()&&F()?9999:void 0},void 0,"S71lKd");
return _.P("video-display-compact-layout-view-model",{el:_.ud(v),class:_.QZ("videoDisplayCompactLayoutViewModelHost",V)},_.P(_.Pw,{data:function(){return Q().videoLockup}},{lockupViewModel:function(d){return _.P(_.Ng,{data:d.data,
containerLayoutConfig:t,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:p,thumbnailTargetWidth:Z,typographyBump:E})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.pJ,
className:_.pJ,typographyBump:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=v.typographyBump;return _.P("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.ud(_.k0({visibilityCallback:function(E,b){if(E){var F;(E=(F=Q().interaction)==null?void 0:F.onFirstVisible)&&_.nx(E);var t;(F=(t=Q().adLayoutData)==null?void 0:t.activeViewData)&&rW(b,F)}},
showOption:_.Mg,hideOption:Om}))},_.P("div",null,_.P(_.Pw,{data:function(){return Q().videoLockup}},{lockupViewModel:function(E){return _.P(_.Ng,{data:E.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.pJ,
noBottomMargin:_.pJ,typographyBump:_.pJ}});_.XvQ=_.x(function(v){var Q=v.data;v=_.Ze("ad-card-badge-view-model");return _.P("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:v},_.P(_.h,{cond:function(){return Q().imageBadge},
then:function(V){return _.P(_.gE,{data:V,alt:""})}}))},"zc");var a48=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;return _.P("carousel-ad-card-image-view-model",{class:function(){var E;return((E=Q().interaction)==null?0:E.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},V)),
"aria-label":function(){var E,b;return(E=Q().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label}},_.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(E){return _.P(_.XA,{data:E.data,
customCommandResolver:V})}}),_.P("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.P(_.Pw,{data:function(){return Q().badge}},{adCardBadgeViewModel:_.XvQ})),_.P(_.c6,{model:{color:4}}))},"Ac");var rgp=_.x(function(v){var Q=_.L(_.Ge(0,void 0,"JJ0QQc")),V=Q.next().value;Q.next();var E=Q.next().value,b=_.L(_.Ge(!1,void 0,"f6YICe"));Q=b.next().value;var F=b.next().value,t;_.j_(function(){clearTimeout(t)});
b=_.EP(function(){var d;((d=v.animate)==null?0:d.call(v))?(F(!0),t=setTimeout(function(){F(!1);p()},200)):p();
return!1});
var p=function(){E(function(d){return(d+v.numShownItems())%v.data().length})},Z={};
return _.P("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.P("div",{class:_.QZ("ytwHorizontalCarouselCarouselWrapper")},_.P("div",{class:_.QZ("ytwHorizontalCarouselCarouselInnerWrapper",(Z.ytwHorizontalCarouselAnimating=Q,Z))},_.P(_.xb,{each:v.data,keyBy:"INDEX"},function(d,w){return _.P("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.iP({"flex-basis":function(){return"calc((100% - (8px * "+(v.numShownItems()-1)+")) / "+v.numShownItems()+")"},
order:function(){var A=w-V();A<0&&(A+=v.data().length);return A}})},v.children(d,w))}))),_.P("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":b},v.nextButton()))},"Bc");var $rQ=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;var E=v.expansive;return _.P("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.ud(_.k0({visibilityCallback:function(b){var F,t=(F=Q().interaction)==null?void 0:F.onFirstVisible;b&&t&&_.nx(t)},
showOption:_.Mg}))},_.P(rgp,{data:function(){var b;return((b=Q())==null?void 0:b.carouselAdCards)||[]},
nextButton:function(){return _.P(_.Pw,{data:function(){return Q().nextButton}},{buttonViewModel:function(b){var F=b.data;
return _.P(_.D6,{data:function(){return(E==null?0:E())?Object.assign({},F(),{style:"mono"}):F()},
className:_.Y("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(b){return _.P(_.Pw,{data:b},{carouselAdCardImageViewModel:function(F){return _.P(a48,{data:F.data,customCommandResolver:V})}})}))},"Cc");var I4A=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;var E=v.className;var b=v.buttonClassName;var F=v.animationEntityKey;var t=v.expansive;return _.P("carousel-button-view-model",{class:_.QZ("ytwCarouselButtonViewModelHost",E)},_.P(_.Pw,{data:function(){return Q().carousel}},{carouselAdCardCollectionViewModel:function(p){return _.P($rQ,{data:p.data,
customCommandResolver:V,expansive:t})}}),_.P(_.Pw,{data:function(){return Q().button}},{adButtonViewModel:function(p){var Z=p.data;
return _.P(_.Dr,{data:function(){return(t==null?0:t())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_TONAL"}):Z()},
className:b,customCommandResolver:V,animationEntityKey:F})}}))},"Dc");_.Hsa=_.x(function(v){var Q=v.data;v=v.className;var V=_.Ze("pivot-button-view-model");_.jg(function(){var E;((E=Q())==null?0:E.backgroundColor)&&V.value.setAttribute("data-background-color",String(Q().backgroundColor))});
return _.P("pivot-button-view-model",{el:V,class:_.QZ("ytwPivotButtonViewModelHost",v)},_.P(_.yL,{command:function(){var E=Q();E=E.onClickCommand?_.MQ(E.onClickCommand):E.contentDescription?_.r8(E.contentDescription):void 0;return E},
ariaLabel:function(){return Q().contentDescription}},_.P(_.h,{cond:function(){return Q().thumbnail},
then:function(E){return _.P(_.gE,{data:E,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.P(_.h,{cond:function(){return Q().icon},
then:function(E){return _.P(_.L_,{icon:function(){return E().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.mr8=_.x(function(v){var Q=v.data;var V=v.buttonShapeOverrideables;return _.P("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.P(_.Pw,{data:function(){return Q().buttonViewModels}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
buttonOverrides:V})},
likeButtonViewModel:function(E){return _.P(_.bL,{data:E.data,buttonShapeOverrideables:V})},
dislikeButtonViewModel:function(E){return _.P(_.Es,{data:E.data,buttonShapeOverrideables:V})},
toggleButtonViewModel:function(E){return _.P(_.a5,{data:E.data,buttonShapeOverrides:V})}}))},"Fc");var UrR=_.x(function(v){var Q=v.avatar;var V=v.headline;var E=v.badge;var b=v.description;var F=v.expansive;v={};return _.P("yt-ad-metadata-shape",{class:_.QZ("ytAdMetadataShapeHost",(v.ytAdMetadataShapeHostLarge=F,v))},_.P("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.P(_.h,{cond:Q,then:function(t){return _.P(_.otZ,{data:function(){return(F==null?0:F())?Object.assign({},t(),{size:"AD_AVATAR_SIZE_M"}):t()}})}}),_.P("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.P(_.tD,{text:V,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.P(_.h,{cond:E,then:function(t){return _.P(_.Ss,{data:function(){return(F==null?0:F())?Object.assign({},t(),{style:"AD_BADGE_STYLE_STARK"}):t()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.P("h2",{class:"ytAdMetadataShapeHostDescription"},_.P(_.tD,{text:b,
linkInheritColor:!0,isHeadline:function(){return F==null?void 0:F()}})))},"Gc");var v8N=_.x(function(v){var Q=v.data;var V=v.onShow;var E=v.expansive;v=_.n4(function(){return Q().interaction});
_.jg(function(){var F,t=(F=Q().animatedRenderingConfig)==null?void 0:F.delayedSecondsToVisible;if(t){var p=setTimeout(V,t*1E3);_.j_(function(){clearTimeout(p)})}});
var b={};return _.P("reels-ad-card-buttoned-view-model",{class:_.QZ(function(){var F;return((F=Q().interaction)==null?0:F.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(b.ytwReelsAdCardButtonedViewModelHostExpansive=E,b)),
el:_.ud(v)},_.P(UrR,{avatar:function(){return _.y(Q().avatar,x7Z)},
headline:function(){return Q().headline},
badge:function(){return _.y(Q().adBadge,BeA)},
description:function(){return Q().description},
expansive:E}),_.P(_.Pw,{data:function(){return Q().ctaButton}},{adButtonViewModel:function(F){var t=F.data;
return _.P(_.Dr,{data:function(){return(E==null?0:E())?Object.assign({},t(),{style:"AD_BUTTON_STYLE_FILLED"}):t()}})}}))},"Hc");var Q2S=_.x(function(v){var Q=v.data;v=v.expansive;var V=_.Y("web_ad_metadata_clickable")?_.n4(function(){return Q().interaction},void 0,function(){return _.Y("web_ad_metadata_clickable")}):void 0,E={};
E=_.Yl("ytwReelsAdMetadataViewModelHost",(E.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.Y("web_ad_metadata_clickable"),E));return _.P("reels-ad-metadata-view-model",{class:E,el:_.ud(V)},_.P(UrR,{avatar:function(){return _.y(Q().avatar,x7Z)},
headline:function(){return Q().headline},
badge:function(){return _.y(Q().adBadge,BeA)},
description:function(){return Q().description},
expansive:v}))},"Ic");var V7A={iconPosition:"icon-with-label",size:"L"},E8q=_.x(function(v){var Q=v.data;var V=v.overlayDensity;var E=v.extractOverlay;var b=v.extractActionBar;v=_.Ze("reels-player-overlay-layout-view-model");var F=_.Wn(V,0),t=function(){var T;return(T=Q().reelsAdCardButtonedEntityKey)!=null?T:""},p=function(){return t()+"/ad_button"},Z=_.p4(kKb,t),d=function(){var T,c;
return(c=(T=Z())==null?void 0:T.value)!=null?c:!1},w=_.Z1(utQ),A=function(){var T;
return Object.assign({},V7A,(w()||!((T=b==null?void 0:b())!=null&&T))&&{style:"overlay-dark"})};
V={};var k={};return _.P("reels-player-overlay-layout-view-model",{class:_.QZ("ytwReelsPlayerOverlayLayoutViewModelHost",(V.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!Q().extension},V.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},V.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return F()===1&&!(E==null?0:E())},V.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var T;
return(T=E==null?void 0:E())!=null?T:!1},V.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var T;
return(T=b==null?void 0:b())!=null?T:!1},V)),
"overlay-density":function(){return String(F())},
el:v},_.P("div",{class:_.QZ("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(k.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},k))},_.P("div",{"aria-hidden":function(){return d()},
class:_.QZ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return d()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.iP({"transition-duration":function(){return XXr(Q())}})},_.P(_.Pw,{data:function(){return Q().adMetadata}},{reelsAdMetadataViewModel:function(T){return _.P(Q2S,{data:T.data,
expansive:function(){return F()===1}})}}),_.P(_.h,{cond:function(){return Q().extension},
then:function(T){return _.P("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.P(_.Pw,{data:T},{adButtonViewModel:function(c){return _.P(_.Dr,{data:c.data,animationEntityKey:p,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(c){return _.P(I4A,{data:c.data,animationEntityKey:p,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return F()===1}})}}))}})),_.P("div",{"aria-hidden":function(){return!d()},
class:_.QZ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return d()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.iP({"transition-duration":function(){return XXr(Q())}})},_.P(_.Pw,{data:function(){return Q().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(T){return _.P(v8N,{data:T.data,
onShow:function(){_.jT(_.dW("booleanEntity",t(),{key:t(),value:!0}))},
expansive:function(){return F()===1}})}}))),_.P("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.P(_.Pw,{data:function(){return Q().actions}},{reelActionBarViewModel:function(T){return _.P(_.mr8,{data:T.data,
buttonShapeOverrideables:A})}}),_.P(_.Pw,{data:function(){return Q().menu}},{buttonViewModel:function(T){return _.P(_.D6,{data:T.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},A(),{type:"tonal"})}})}}),_.P(_.Pw,{data:function(){return Q().pivotButton}},{pivotButtonViewModel:function(T){return _.P(_.Hsa,{data:T.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.ad(E8q,"reels-player-overlay-layout-view-model",{props:{data:_.pJ,overlayDensity:_.pJ,extractOverlay:_.pJ,extractActionBar:_.pJ}});var an=function(){var v=_.z.apply(this,arguments)||this;v.noBottomMargin=!1;v.overlayDensity=0;v.extractOverlay=!1;v.extractActionBar=!1;return v};
_.f(an,_.z);_.K=an.prototype;
_.K.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.Y("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.K.ready=function(){var v=this;Vf3(function(){v.isAttached&&uO(v.JSC$15749_storedAdSlotMetadata,v.JSC$15749_storedAdLayoutMetadata,v.adSlotMetadata,v.adLayoutMetadata)&&on(jn(),v.JSC$15749_storedAdSlotMetadata,v.JSC$15749_storedAdLayoutMetadata)})};
_.K.attached=function(){uO(this.JSC$15749_storedAdSlotMetadata,this.JSC$15749_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&skR(jn(),this.JSC$15749_storedAdSlotMetadata,this.JSC$15749_storedAdLayoutMetadata)};
_.K.detached=function(){uO(this.JSC$15749_storedAdSlotMetadata,this.JSC$15749_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&on(jn(),this.JSC$15749_storedAdSlotMetadata,this.JSC$15749_storedAdLayoutMetadata)};
_.K.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.K.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15749_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15749_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15749_storedAdLayoutMetadata!==void 0&&this.JSC$15749_storedAdSlotMetadata!==void 0&&on(jn(),this.JSC$15749_storedAdSlotMetadata,this.JSC$15749_storedAdLayoutMetadata),skR(jn(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15749_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15749_storedAdSlotMetadata=this.adSlotMetadata)};
_.hr.Object.defineProperties(an.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.adLayoutMetadata}}});
an.prototype.onAdMetadataChanged=an.prototype.onAdMetadataChanged;an.prototype.onTypographyBumpChanged=an.prototype.onTypographyBumpChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],an.prototype,"rendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],an.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],an.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],an.prototype,"noBottomMargin",void 0);_.W([_.q(),_.X("design:type",Object)],an.prototype,"overlayDensity",void 0);_.W([_.q(),_.X("design:type",Object)],an.prototype,"extractOverlay",void 0);_.W([_.q(),_.X("design:type",Object)],an.prototype,"extractActionBar",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],an.prototype,"typographyBump",void 0);
_.W([_.O("data.adLayoutMetadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],an.prototype,"adLayoutMetadata",null);_.W([_.q(),_.X("design:type",Object)],an.prototype,"adSlotMetadata",void 0);_.W([_.Z7("ytd-video-display-full-buttoned-and-button-group-renderer"),_.X("design:type",HTMLElement)],an.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.W([_.ph("typographyBump"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],an.prototype,"onTypographyBumpChanged",null);_.W([_.ph("adLayoutMetadata","adSlotMetadata"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],an.prototype,"onAdMetadataChanged",null);_.W([_.J({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],an);
_.B(an,"ytd-in-feed-ad-layout-renderer",function(){if(WNp!==void 0)return WNp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return WNp=v},
{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var bu8;var F2N;_.ad(_.Ss,"ad-badge-view-model",{props:{data:_.pJ,hasDot:_.pJ,customCommandResolver:_.Wg,adRenderingContextType:_.Wg,usedInMasthead:_.Wg}});_.ad(_.Dr,"ad-button-view-model",{props:{data:_.pJ,customCommandResolver:_.Wg,className:_.Wg,delayedClassName:_.Wg,animationEntityKey:_.Wg,isCompactWidth:_.Wg,isContentWidth:_.Wg}});var rk=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return v};
_.f(rk,_.z);_.K=rk.prototype;_.K.computeHasLiveDescription=function(v){return!(v==null||!v.liveDescription)};
_.K.computeHasByline=function(v){return!(v==null||!v.byline)};
_.K.computeUsesAdButtonViewModel=function(v){return!!_.y(v==null?void 0:v.cta,gYN)};
_.K.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.K.onYtToggleButton=function(v){var Q,V=(Q=this.data)==null?void 0:Q.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.dW("upcomingEventReminderStateEntity",V,{key:V,state:v.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.K.attached=function(){this.updateChannelBanner()};
_.K.dataChanged=function(){this.updateChannelBanner()};
_.K.videoReminderStateChanged=function(){var v;this.videoReminderState&&_.y((v=this.data)==null?void 0:v.cta,_.i9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.K.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var v=_.rE(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);v&&(v.startsWith("//")&&(v="https:"+v),this.hostElement.classList.add("channel-banner"),_.F6(this.hostElement,{"--ytvmh-channel-banner":"url("+v+")"}))}else _.Y("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.K.onPlayerReady=function(){this.onIronResize()};
_.K.maybeFlushDebouncer=function(){_.Y("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(v){var Q;v=(Q=v.getElementsByTagName("yt-attributed-string"))==null?void 0:Q[0];fno(v==null?void 0:v.polymerController)})};
_.K.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var v=_.m9(this.hostElement).querySelector("#live-description"),Q;v&&((Q=this.data)==null?0:Q.shortLiveDescription)&&v.clientWidth<v.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
rk.prototype.onIronResize=rk.prototype.onIronResize;rk.prototype.videoReminderStateChanged=rk.prototype.videoReminderStateChanged;rk.prototype.dataChanged=rk.prototype.dataChanged;rk.prototype.onYtToggleButton=rk.prototype.onYtToggleButton;_.W([_.M(_.WW),_.X("design:type",Object)],rk.prototype,"ironResizableBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],rk.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],rk.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rk.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:VlZ}),_.X("design:type",Object)],rk.prototype,"videoReminderState",void 0);
_.W([_.q({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.X("design:type",Boolean)],rk.prototype,"rounded",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.X("design:type",Boolean)],rk.prototype,"hasLiveDescription",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.X("design:type",Boolean)],rk.prototype,"hasByline",void 0);
_.W([_.q({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.X("design:type",String)],rk.prototype,"adRenderingContextType",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],rk.prototype,"isMasthead",void 0);_.W([_.q({computed:"computeUsesAdButtonViewModel(data)"}),_.X("design:type",Boolean)],rk.prototype,"usesAdButtonViewModel",void 0);
_.W([_.q({reflectToAttribute:!0,value:_.Y("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.X("design:type",Boolean)],rk.prototype,"resizableAdBannerSafariFix",void 0);_.W([_.Pn("yt-formatted-string"),_.X("design:type",Array)],rk.prototype,"formattedStrings",void 0);_.W([_.Z7("#cta-button"),_.X("design:type",HTMLElement)],rk.prototype,"ctaButton",void 0);
_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],rk.prototype,"onYtToggleButton",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rk.prototype,"dataChanged",null);_.W([_.ph("videoReminderState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rk.prototype,"videoReminderStateChanged",null);
_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rk.prototype,"onIronResize",null);_.W([_.J({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],rk);
_.B(rk,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(F2N!==void 0)return F2N;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return F2N=v},{mode:1});var K2p;var $q=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};v.isLocked=!1;return v};
_.f($q,_.z);_.K=$q.prototype;_.K.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.K.onExpandedChanged=function(){this.expanded&&_.Un(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.K.onMouseOver=function(){this.maybeExpand()};
_.K.onTap=function(){this.maybeExpand()};
_.K.onExpandableTileExpanding=function(v){v!==this&&(this.expanded=!1)};
_.K.onExpandableTileLockAndCollapse=function(v){this.isLocked=!0;v!==this&&(this.expanded=!1)};
_.K.onExpandableTileUnlock=function(){this.isLocked=!1};
$q.prototype.onTap=$q.prototype.onTap;$q.prototype.onMouseOver=$q.prototype.onMouseOver;$q.prototype.onExpandedChanged=$q.prototype.onExpandedChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],$q.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$q.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],$q.prototype,"expanded",void 0);_.W([_.wg("expanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$q.prototype,"onExpandedChanged",null);_.W([_.tM("mouseover"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$q.prototype,"onMouseOver",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$q.prototype,"onTap",null);
_.W([_.J({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],$q);
_.B($q,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(K2p!==void 0)return K2p;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return K2p=v},{mode:1});var iuq;var In=function(){var v=_.z.apply(this,arguments)||this;v.buttonOverrides={style:"overlay"};v.useYtdPlayer=_.Y("use_ytd_player_for_desktop_masthead");v.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};v.playbackFinished=!1;v.JSC$15763_playerManager=null;v.JSC$15763_mastheadCounter=new K7Z;return v};
_.f(In,_.z);_.K=In.prototype;_.K.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"}}}};
_.K.created=function(){this.JSC$15763_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15763_playerManager=new sj)};
_.K.ready=function(){var v=this;this.JSC$15763_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var Q=_.m9(this.hostElement).querySelector("#player");this.useYtdPlayer?Q.style.display="none":(this.ytdPlayer.style.display="none",H9N(this.JSC$15763_playerManager,Q,function(){v.onPlaybackEnded()}),_.m9(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var V;
((V=v.data)==null?0:V.navigationEndpoint)&&_.Hj(v.hostElement,"yt-navigate",{endpoint:v.data.navigationEndpoint})}))};
_.K.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15763_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.K.attached=function(){var v=this;_.JM(function(){v.maybePlayVideo()})};
_.K.maybePlayVideo=function(){var v=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15763_playerManager.playVideo(),this.getPlayerPromise().then(function(){v.JSC$15763_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.K.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15763_playerManager.stopVideo()};
_.K.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var v,Q={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((v=this.data.playbackStartMs)!=null?v:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(Q);this.setupYtdPlayer()}else Uua(this.JSC$15763_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(muN(this.JSC$15763_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.K.getPlayerPromise=function(){return this.JSC$15763_playerManager.getPlayerPromise()};
_.K.onYtToggleButton=function(v){this.useYtdPlayer?this.toggleMute(v.detail.toggled):v.detail.toggled?this.JSC$15763_playerManager.mute():this.JSC$15763_playerManager.unMute()};
_.K.onYtNavigate=function(v){var Q=KMB(v.detail.endpoint),V=iTb(this.data.clickthroughReportingData);Q&&V&&(v.detail.endpoint.watchEndpoint?v.detail.tempData=V:_.ox(Q,V,30))};
_.K.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.K.onExpandedChanged=function(){this.expanded?(_.Un(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.K.onMouseOver=function(){this.maybeExpand()};
_.K.onTap=function(){this.maybeExpand()};
_.K.onExpandableTileExpanding=function(v){v!==this&&(this.stopVideo(),this.expanded=!1)};
_.K.onExpandableTileLockAndCollapse=function(v){v!==this&&(this.isLocked=!0,this.expanded=!1)};
_.K.onExpandableTileUnlock=function(){this.isLocked=!1};
_.K.lockAndCollapseExpandableTiles=function(){_.mb(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.K.unlockExpandableTiles=function(){_.mb(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.K.setupYtdPlayer=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v.ytdPlayer.getPlayerPromise(),2);Q=V.yieldResult;Q.addEventListener("onStateChange",function(E){v.onPlayerStateChange(E)});
Q.addEventListener("onCueRangeExit",function(E){v.onCueRangeExit(E)});
_.q1(V)})};
_.K.onPlayerStateChange=function(v){if(v===1&&(v=this.ytdPlayer.getPlayer())){var Q=v.getCurrentTime(),V,E,b=Q+((E=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?E:0)/1E3;v.addCueRange("playback",Q,b);this.JSC$15763_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.K.onCueRangeExit=function(v){v==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.K.toggleMute=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.ytdPlayer.getPlayerPromise(),2);V=E.yieldResult;v?V.mute():V.unMute();_.q1(E)})};
In.prototype.onTap=In.prototype.onTap;In.prototype.onMouseOver=In.prototype.onMouseOver;In.prototype.onExpandedChanged=In.prototype.onExpandedChanged;In.prototype.onYtNavigate=In.prototype.onYtNavigate;In.prototype.onYtToggleButton=In.prototype.onYtToggleButton;In.prototype.dataChanged=In.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],In.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],In.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],In.prototype,"expanded",void 0);_.W([_.q(),_.X("design:type",Object)],In.prototype,"buttonOverrides",void 0);
_.W([_.q(),_.X("design:type",Object)],In.prototype,"useYtdPlayer",void 0);_.W([_.Z7("#ytd-player"),_.X("design:type",Object)],In.prototype,"ytdPlayer",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],In.prototype,"dataChanged",null);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],In.prototype,"onYtToggleButton",null);
_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],In.prototype,"onYtNavigate",null);_.W([_.wg("expanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],In.prototype,"onExpandedChanged",null);_.W([_.tM("mouseover"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],In.prototype,"onMouseOver",null);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],In.prototype,"onTap",null);_.W([_.J({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],In);
_.B(In,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(iuq!==void 0)return iuq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return iuq=v},{mode:1});var L2Q;var Hb=function(){return _.z.apply(this,arguments)||this};
_.f(Hb,_.z);Hb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Hb.prototype.onShow=function(){var v=_.m9(this.hostElement).querySelector("#live-description"),Q;v&&((Q=this.data)==null?0:Q.shortLiveDescription)&&v.clientWidth<v.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Hb.prototype.onYtToggleButton=function(v){var Q,V=(Q=this.data)==null?void 0:Q.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.dW("upcomingEventReminderStateEntity",V,{key:V,state:v.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Hb.prototype.videoReminderStateChanged=function(){var v;this.videoReminderState&&_.y((v=this.data)==null?void 0:v.cta,_.i9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Hb.prototype.videoReminderStateChanged=Hb.prototype.videoReminderStateChanged;Hb.prototype.onYtToggleButton=Hb.prototype.onYtToggleButton;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Hb.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Hb.prototype,"data",void 0);
_.W([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:VlZ}),_.X("design:type",Object)],Hb.prototype,"videoReminderState",void 0);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Hb.prototype,"onYtToggleButton",null);_.W([_.ph("videoReminderState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hb.prototype,"videoReminderStateChanged",null);
_.W([_.J({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Hb);
_.B(Hb,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(L2Q!==void 0)return L2Q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return L2Q=v},{mode:_.mV("kevlar_poly_si_batch_j065")?1:2});var t7A;var mM=function(){var v=_.z.apply(this,arguments)||this;v.useYtdPlayer=_.Y("use_ytd_player_for_desktop_masthead");v.buttonOverrides={style:"overlay"};v.JSC$15771_playerManager=null;v.JSC$15771_mastheadCounter=new K7Z;v.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return v};
_.f(mM,_.z);_.K=mM.prototype;_.K.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"}}}};
_.K.created=function(){this.JSC$15771_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15771_playerManager=new sj)};
_.K.ready=function(){var v=this;this.JSC$15771_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var Q;(Q=this.embeddedPlayer)==null||Q.remove()}else{var V;(V=this.ytdPlayer)==null||V.remove();H9N(this.JSC$15771_playerManager,this.embeddedPlayer,function(){v.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){v.data&&v.data.navigationEndpoint&&_.Hj(v.hostElement,"yt-navigate",{endpoint:v.data.navigationEndpoint})})}};
_.K.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15771_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.K.dataChanged=function(){var v=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var Q=!this.data.disableAutoPlayback,V,E={autoplay:Q,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(Q?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else Uua(this.JSC$15771_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(muN(this.JSC$15771_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15771_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.mb(v.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");v.JSC$15771_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.K.getPlayerPromise=function(){return this.JSC$15771_playerManager.getPlayerPromise()};
_.K.onYtToggleButton=function(v){this.useYtdPlayer?this.toggleMute(v.detail.toggled):v.detail.toggled?this.JSC$15771_playerManager.mute():this.JSC$15771_playerManager.unMute()};
_.K.onYtNavigate=function(v){var Q=KMB(v.detail.endpoint),V=iTb(this.data.clickthroughReportingData);Q&&V&&(v.detail.endpoint.watchEndpoint?v.detail.tempData=V:_.ox(Q,V,30))};
_.K.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15771_playerManager.stopVideo()};
_.K.setupYtdPlayer=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v.ytdPlayer.getPlayerPromise(),2);Q=V.yieldResult;Q.addEventListener("onStateChange",function(E){v.onPlayerStateChange(E)});
Q.addEventListener("onCueRangeExit",function(E){v.onCueRangeExit(E)});
_.q1(V)})};
_.K.onPlayerStateChange=function(v){if(v===1&&(v=this.ytdPlayer.getPlayer())){var Q=v.getCurrentTime(),V,E,b=Q+((E=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?E:0)/1E3;v.addCueRange("playback",Q,b);_.mb(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15771_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.K.onCueRangeExit=function(v){v==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.K.toggleMute=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.ytdPlayer.getPlayerPromise(),2);V=E.yieldResult;v?V.mute():V.unMute();_.q1(E)})};
_.hr.Object.defineProperties(mM.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(!((v=this.data)==null?0:(Q=v.accessibilityData)==null?0:Q.label))return"Ad primary link";var V,E;return _.Lt("AD_TITLE",{title:(V=this.data)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label})}}});
mM.prototype.onYtMastheadHidden=mM.prototype.onYtMastheadHidden;mM.prototype.onYtNavigate=mM.prototype.onYtNavigate;mM.prototype.onYtToggleButton=mM.prototype.onYtToggleButton;mM.prototype.dataChanged=mM.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],mM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mM.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],mM.prototype,"useYtdPlayer",void 0);_.W([_.Z7("ytd-toggle-button-renderer"),_.X("design:type",Object)],mM.prototype,"muteButton",void 0);_.W([_.q(),_.X("design:type",Object)],mM.prototype,"buttonOverrides",void 0);
_.W([_.O("data.accessibilityData.label"),_.X("design:type",String),_.X("design:paramtypes",[])],mM.prototype,"titleAriaLabel",null);_.W([_.Z7("#replay-button"),_.X("design:type",Object)],mM.prototype,"replayButton",void 0);_.W([_.Z7("#player-container"),_.X("design:type",Object)],mM.prototype,"playerContainer",void 0);_.W([_.Z7("#player"),_.X("design:type",Object)],mM.prototype,"embeddedPlayer",void 0);_.W([_.Z7("#ytd-player"),_.X("design:type",Object)],mM.prototype,"ytdPlayer",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mM.prototype,"dataChanged",null);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],mM.prototype,"onYtToggleButton",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],mM.prototype,"onYtNavigate",null);
_.W([_.tM("yt-masthead-hidden"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mM.prototype,"onYtMastheadHidden",null);_.W([_.J({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],mM);
_.B(mM,"ytd-video-masthead-ad-primary-video-renderer",function(){if(t7A!==void 0)return t7A;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return t7A=v},{mode:2});var p0q;var UL=function(){var v=_.z.apply(this,arguments)||this;v.collapsed=!1;v.impressionResolver=_.B_();v.JSC$15775_activeViewMeasurementDataResolver=_.B_();v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.f(UL,_.z);_.K=UL.prototype;_.K.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"}}}};
_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.ready=function(){var v=this;_.m9(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){v.expandAd()});
this.hostElement.addEventListener("yt-action",function(Q){if(Q.detail.actionName==="yt-service-request"){var V=Q.detail.args[1];V.videoMastheadAdMuteCommand&&(v.collapseAd(V.videoMastheadAdMuteCommand.encryptedMastheadId),Q.stopPropagation())}})};
_.K.attached=function(){var v=this;_.JM(function(){v.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(Q){if(!v.collapsed){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,E0(V.baseUrl,V.attributionSrcMode);v.data.impressionCommand=void 0}});
this.JSC$15775_activeViewMeasurementDataResolver.promise.then(function(Q){Or(v.activeView,Q)});
_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dh(v.activeView)})};
_.K.dataChanged=function(){var v;((v=this.data.impressionCommand)==null?0:v.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var Q;((Q=this.data)==null?0:Q.activeView)&&this.JSC$15775_activeViewMeasurementDataResolver.resolve(this.data.activeView);(v=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(v.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.K.computeWidescreen=function(v){var Q;return!!(v&&((Q=_.y(v,qCV))==null?0:Q.isWidescreen))};
_.K.computeExpandable=function(v){return!!(v&&v.length>0)};
_.K.onIronResize=function(){if(this.expandable){var v=_.m9(this.hostElement).querySelector("#expandable-tile-container :first-child");v&&!v.expanded&&(v.expanded=!0)}};
_.K.handleMuteAd=function(){this.collapseAd(null)};
_.K.restoreCollapsedState=function(v){this.collapsed=_.eP().get("HIDDEN_MASTHEAD_ID")===v};
_.K.collapseAd=function(v){if(v){var Q=_.eP();Q.set("HIDDEN_MASTHEAD_ID",v);Q.save()}(v=_.m9(this.hostElement).querySelector("#video"))&&_.Hj(v,"yt-masthead-hidden");this.collapsed=!0};
_.K.expandAd=function(){var v=_.eP();v.set("HIDDEN_MASTHEAD_ID",!1);v.save();location.reload()};
_.K.detached=function(){_.Y("stop_av_measurement_on_detach")&&Dh(this.activeView)};
UL.prototype.onIronResize=UL.prototype.onIronResize;UL.prototype.dataChanged=UL.prototype.dataChanged;_.W([_.M(_.WW),_.X("design:type",Object)],UL.prototype,"ironResizableBehavior",void 0);_.W([_.M(_.FO),_.X("design:type",Object)],UL.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UL.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.X("design:type",Boolean)],UL.prototype,"widescreen",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.X("design:type",Boolean)],UL.prototype,"expandable",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UL.prototype,"collapsed",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UL.prototype,"dataChanged",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UL.prototype,"onIronResize",null);_.W([_.J({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],UL);
_.B(UL,"ytd-video-masthead-ad-v3-renderer",function(){if(p0q!==void 0)return p0q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return p0q=v},{mode:2});var Qb=function(){return _.z.apply(this,arguments)||this};
_.f(Qb,_.z);_.K=Qb.prototype;_.K.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.K.ready=function(){var v=this;Vf3(function(){v.isAttached&&uO(v.JSC$15780_storedAdSlotMetadata,v.JSC$15780_storedAdLayoutMetadata,v.adSlotMetadata,v.adLayoutMetadata)&&on(jn(),v.JSC$15780_storedAdSlotMetadata,v.JSC$15780_storedAdLayoutMetadata)})};
_.K.attached=function(){uO(this.JSC$15780_storedAdSlotMetadata,this.JSC$15780_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&skR(jn(),this.JSC$15780_storedAdSlotMetadata,this.JSC$15780_storedAdLayoutMetadata)};
_.K.detached=function(){uO(this.JSC$15780_storedAdSlotMetadata,this.JSC$15780_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&on(jn(),this.JSC$15780_storedAdSlotMetadata,this.JSC$15780_storedAdLayoutMetadata)};
_.K.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15780_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15780_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15780_storedAdLayoutMetadata!==void 0&&this.JSC$15780_storedAdSlotMetadata!==void 0&&on(jn(),this.JSC$15780_storedAdSlotMetadata,this.JSC$15780_storedAdLayoutMetadata),skR(jn(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15780_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15780_storedAdSlotMetadata=this.adSlotMetadata)};
_.hr.Object.defineProperties(Qb.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.adLayoutMetadata}}});
Qb.prototype.onAdMetadataChanged=Qb.prototype.onAdMetadataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Qb.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Qb.prototype,"data",void 0);_.W([_.O("data.adLayoutMetadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],Qb.prototype,"adLayoutMetadata",null);
_.W([_.q(),_.X("design:type",Object)],Qb.prototype,"adSlotMetadata",void 0);_.W([_.ph("adLayoutMetadata","adSlotMetadata"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Qb.prototype,"onAdMetadataChanged",null);_.W([_.J({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Qb);
_.B(Qb,"ytd-page-top-ad-layout-renderer",function(){if(bu8!==void 0)return bu8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bu8=
v},{mode:_.mV("kevlar_poly_si_batch_j070")?1:2});var eua;var Vb=function(){var v=_.z.apply(this,arguments)||this;v.noBottomMargin=!1;v.overlayDensity=0;v.typographyBump=!1;v.extractOverlay=!1;v.extractActionBar=!1;return v};
_.f(Vb,_.z);_.K=Vb.prototype;
_.K.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.K.ready=function(){var v=this;Vf3(function(){v.isAttached&&v.adSlotMetadata&&gjX(jn(),v.adSlotMetadata)})};
_.K.attached=function(){if(this.adSlotMetadata){var v;if(this.adSlotMetadata===((v=this.data)==null?void 0:v.adSlotMetadata))BtZ(jn(),this.adSlotMetadata);else{var Q;_.Iy(Error("Oh`"+this.adSlotMetadata+"`"+((Q=this.data)==null?void 0:Q.adSlotMetadata)))}}};
_.K.detached=function(){this.adSlotMetadata&&gjX(jn(),this.adSlotMetadata)};
_.K.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.K.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&gjX(jn(),this.adSlotMetadata),BtZ(jn(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.hr.Object.defineProperties(Vb.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=_.y((v=this.data)==null?void 0:(Q=v.fulfillmentContent)==null?void 0:Q.fulfilledLayout,_.z_Z),E;return(v=(E=_.y(V==null?void 0:V.renderingContent,SCp))==null?void 0:E.layout)?v.toLowerCase().replace(/_/g,"-"):""}}});
Vb.prototype.onAdSlotMetadataChanged=Vb.prototype.onAdSlotMetadataChanged;Vb.prototype.onTypographyBumpChanged=Vb.prototype.onTypographyBumpChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Vb.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Vb.prototype,"rendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Vb.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Vb.prototype,"noBottomMargin",void 0);_.W([_.q(),_.X("design:type",Object)],Vb.prototype,"overlayDensity",void 0);_.W([_.q(),_.X("design:type",Object)],Vb.prototype,"typographyBump",void 0);_.W([_.q(),_.X("design:type",Object)],Vb.prototype,"extractOverlay",void 0);_.W([_.q(),_.X("design:type",Object)],Vb.prototype,"extractActionBar",void 0);
_.W([_.Z7("ytd-in-feed-ad-layout-renderer"),_.X("design:type",HTMLElement)],Vb.prototype,"inFeedAdLayoutRenderer",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],Vb.prototype,"layout",null);_.W([_.ph("typographyBump"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Vb.prototype,"onTypographyBumpChanged",null);
_.W([_.ph("data.adSlotMetadata"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Vb.prototype,"onAdSlotMetadataChanged",null);_.W([_.J({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Vb);
_.B(Vb,"ytd-ad-slot-renderer",function(){if(eua!==void 0)return eua;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return eua=v},{mode:_.mV("kevlar_poly_si_batch_j077")?
1:2});var ZuZ;var EQ=function(){return _.z.apply(this,arguments)||this};
_.f(EQ,_.z);_.K=EQ.prototype;_.K.created=function(){this.activeView=new MD(this.hostElement)};
_.K.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"}}}};
_.K.maybeComputeHref=function(){return null};
_.K.onTap=function(){};
_.K.onThumbnailContainerClick=function(v){this.onClick(v)};
_.K.onClick=function(v){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint;V&&_.y(V,_.sn)&&(this.ytSparklesClickLocationBehavior.handleClick(V,v,!1),v.stopPropagation())};
_.K.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var v=_.L(this.data.impressionUrls),Q=v.next();!Q.done;Q=v.next())Q=Q.value,WVG(Q,Xnh(Q));this.data.activeView&&Or(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",EQ.JSC$15788_DEFAULT_CLICK_LOCATION_BEHAVIOR,EQ.JSC$15788_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"))}};
_.K.attached=function(){var v=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dh(v.activeView)})};
_.K.detached=function(){_.Y("stop_av_measurement_on_detach")&&Dh(this.activeView)};
_.hr.Object.defineProperties(EQ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
EQ.prototype.dataChanged=EQ.prototype.dataChanged;EQ.prototype.onTap=EQ.prototype.onTap;EQ.JSC$15788_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
EQ.JSC$15788_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],EQ.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],EQ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],EQ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.q({selector:_.OP}),_.X("design:type",Object)],EQ.prototype,"isGridViewEnabled",void 0);_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],EQ.prototype,"watchFeedBigThumbs",null);_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",String),_.X("design:paramtypes",[])],EQ.prototype,"thumbnailWidth",null);_.W([_.q(),_.X("design:type",Object)],EQ.prototype,"data",void 0);
_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],EQ.prototype,"thumbnail",void 0);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],EQ.prototype,"onTap",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],EQ.prototype,"dataChanged",null);_.W([_.J({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],EQ);
_.B(EQ,"ytd-compact-promoted-video-renderer",function(){if(ZuZ!==void 0)return ZuZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ZuZ=v},{mode:1});var PBA;_.yZ("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var bl=function(){return _.z.apply(this,arguments)||this};
_.f(bl,_.z);bl.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bl.prototype,"data",void 0);_.W([_.J({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],bl);
_.B(bl,"ytd-search-pyv-renderer",function(){if(PBA!==void 0)return PBA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return PBA=v},{mode:1});var dip;_.yZ("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var FD=function(){var v=_.z.apply(this,arguments)||this;v.roundedContainer=!0;v.JSC$15796_handleOpenPostCommentDialogActionAfterStamp=!1;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.f(FD,_.z);_.K=FD.prototype;
_.K.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}}};
_.K.onStampFinished=function(){this.JSC$15796_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.K.handleSignalActionOpenPostCommentDialogAction=function(){var v=_.m9(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");v?v.openDialog():this.JSC$15796_handleOpenPostCommentDialogActionAfterStamp=!0};
_.K.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.K.computeHideBorder=function(){return this.isInEngagementPanel};
_.K.computeIsCompact=function(){return this.isInEngagementPanel};
_.K.computeUsesCompactLockup=function(v){return v==="BACKSTAGE_SURFACE_TYPE_HOME"||v==="BACKSTAGE_SURFACE_TYPE_SEARCH"||v==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||v==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||v==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||v==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.K.computeUsesFullLockup=function(){var v,Q=(v=this.data)==null?void 0:v.post,V;v=(V=_.y(Q,rfx))==null?void 0:V.surface;var E;V=(E=_.y(Q,HBR))==null?void 0:E.originalPost;var b;if(E=v||((b=_.y(V,rfx))==null?void 0:b.surface))return!this.computeUsesCompactLockup(E)&&this.useUpdatedRepostUi;var F;return((F=_.y(Q,HBR))==null?void 0:F.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.hr.Object.defineProperties(FD.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((Q=_.y((v=this.data)==null?void 0:v.post,rfx))==null?void 0:Q.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.useUpdatedRepostUi}}});
FD.prototype.onYtCommentModerationPanelEmpty=FD.prototype.onYtCommentModerationPanelEmpty;FD.prototype.onStampFinished=FD.prototype.onStampFinished;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],FD.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],FD.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FD.prototype,"roundedContainer",void 0);_.W([_.q({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.X("design:type",Boolean)],FD.prototype,"hideBorder",void 0);_.W([_.q({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.X("design:type",Boolean)],FD.prototype,"isCompact",void 0);
_.W([_.q({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.X("design:type",Boolean)],FD.prototype,"usesFullLockup",void 0);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FD.prototype,"onStampFinished",null);
_.W([_.tM("ytd-comment-moderation-panel-empty"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],FD.prototype,"onYtCommentModerationPanelEmpty",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],FD.prototype,"isInEngagementPanel",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],FD.prototype,"useUpdatedRepostUi",null);
_.W([_.J({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],FD);
_.B(FD,"ytd-backstage-post-thread-renderer",function(){if(dip!==void 0)return dip;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dip=v},{mode:1});var huR;var K0=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(K0,_.z);K0.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
K0.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var v=this.data.thumbnail.thumbnails;this.isDarkTheme&&(v=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(v=_.rE(v,24,void 0,"height"))?v:void 0}};
K0.prototype.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
K0.prototype.computeHasText=function(){var v;return!((v=this.data)==null||!v.text)};
_.hr.Object.defineProperties(K0.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.oE(this.bannerImageUrl))+'");'}}});
K0.prototype.computeHasText=K0.prototype.computeHasText;K0.prototype.computeBannerImageUrl=K0.prototype.computeBannerImageUrl;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],K0.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],K0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],K0.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",String)],K0.prototype,"bannerImageUrl",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.X("design:type",Boolean)],K0.prototype,"hasText",void 0);_.W([_.ph("data","isDarkTheme"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],K0.prototype,"computeBannerImageUrl",null);
_.W([_.ph("data.text"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],K0.prototype,"computeHasText",null);_.W([_.O("bannerImageUrl"),_.X("design:type",Object),_.X("design:paramtypes",[])],K0.prototype,"bannerStyle",null);_.W([_.J({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],K0);
_.B(K0,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(huR!==void 0)return huR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return huR=v},{mode:1});var w0q;var il=function(){return _.z.apply(this,arguments)||this};
_.f(il,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],il.prototype,"data",void 0);_.W([_.J({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],il);
_.B(il,"ytd-backstage-zero-state-renderer",function(){if(w0q!==void 0)return w0q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return w0q=v},{mode:1});var APa;var L0=function(){return _.z.apply(this,arguments)||this};
_.f(L0,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],L0.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",String)],L0.prototype,"icon",void 0);_.W([_.J({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],L0);
_.B(L0,"ytd-post-filter-zero-state-renderer",function(){if(APa!==void 0)return APa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return APa=v},{mode:1});var kxa;var TRZ={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},tV=function(){return _.z.apply(this,arguments)||this};
_.f(tV,_.z);tV.prototype.configureRendererStamper=function(){return TRZ};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],tV.prototype,"rendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tV.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",String)],tV.prototype,"icon",void 0);_.W([_.J({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],tV);
_.B(tV,"ytd-post-scheduling-zero-state-renderer",function(){if(kxa!==void 0)return kxa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return kxa=v},{mode:1});var YeS;var p0=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return v};
_.f(p0,_.z);p0.prototype.onTabsActivate=function(v){this.data&&this.data.tabs&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[v.detail.selected].navigationEndpoint})};
p0.prototype.shouldShowTotalCount=function(v){return v&&v.totalCount!==void 0};
p0.prototype.handleUpdatePostsTotalCountAction=function(v){var Q=this.get(["data.tabs",1,"totalCount"]),V=this.get("updatePostsTotalCountAction.updateType",v);v=this.get("updatePostsTotalCountAction.number",v);Q!==void 0&&V!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&v&&(V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(Q)+v):V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(Q)-v))};
_.hr.Object.defineProperties(p0.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var v=0,Q=this.data.tabs.length;v<Q;v++)if(this.data.tabs[v].selected)return v;return 0}}});
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],p0.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],p0.prototype,"rendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],p0.prototype,"data",void 0);_.W([_.O("data.tabs"),_.X("design:type",Number),_.X("design:paramtypes",[])],p0.prototype,"selected",null);_.W([_.J({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],p0);
_.B(p0,"ytd-post-stream-filter-renderer",function(){if(YeS!==void 0)return YeS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return YeS=v},{mode:1});var yP8;var eR=function(){return _.z.apply(this,arguments)||this};
_.f(eR,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],eR.prototype,"kevlarBehaviors",void 0);_.W([_.q(),_.X("design:type",Object)],eR.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],eR);
_.B(eR,"ytd-channel-age-gate-renderer",function(){if(yP8!==void 0)return yP8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return yP8=v},{mode:1});var cPq;_.yZ("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ZJ=function(){var v=_.z.apply(this,arguments)||this;v.data=null;return v};
_.f(ZJ,_.z);ZJ.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hr.Object.defineProperties(ZJ.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?0:(Q=v.title)==null?0:(V=Q.runs)==null?0:V.length)?147:160}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ZJ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],ZJ.prototype,"imageSizePx",null);_.W([_.J({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ZJ);
_.B(ZJ,"ytd-channel-owner-empty-state-renderer",function(){if(cPq!==void 0)return cPq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cPq=v},{mode:1});var ffp;var GxZ;var P8=function(){var v=_.z.apply(this,arguments)||this;v.boundSubmitSearch=function(){v.submitSearch()};
v.boundClearSearch=function(){v.clearSearch()};
return v};
_.f(P8,_.z);_.K=P8.prototype;_.K.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]]"}}}}}};
_.K.toggleClearButton=function(){this.hideClearButton=oQa||!this.input.value};
_.K.submitOnEnterKeyUp=function(v){v.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.K.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.K.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.K.submit=function(){_.Hj(this.hostElement,"search-query-changed",this.input.value)};
P8.prototype.toggleClearButton=P8.prototype.toggleClearButton;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],P8.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],P8.prototype,"hideClearButton",void 0);_.W([_.q(),_.X("design:type",Object)],P8.prototype,"boundSubmitSearch",void 0);_.W([_.q(),_.X("design:type",Object)],P8.prototype,"boundClearSearch",void 0);_.W([_.Z7("#input"),_.X("design:type",Object)],P8.prototype,"input",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],P8.prototype,"toggleClearButton",null);
_.W([_.J({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],P8);
_.B(P8,"ytd-channel-switcher-search-box-renderer",function(){if(GxZ!==void 0)return GxZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return GxZ=v},{mode:1});var CBA;var dr=function(){var v=_.z.apply(this,arguments)||this;v.boundSubmit=function(){v.submit()};
return v};
_.f(dr,_.z);_.K=dr.prototype;_.K.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"}}}}};
_.K.ready=function(){var v=this;this.form.addEventListener("submit",function(Q){return v.onSubmit(Q)})};
_.K.onSubmit=function(v){v.preventDefault();return!1};
_.K.toggleClearButton=function(){this.hideClearButton=oQa||!this.input.value};
_.K.submitOnEnterKeyUp=function(v){v.keyCode===13&&this.submit()};
_.K.submit=function(){var v=this.data.endpoint,Q=(0,_.gI.unsafeClone)(v);_.y(Q,_.tn)?_.y(Q,_.tn).query=this.input.value:_.y(Q,_.pF)&&(_.y(Q,_.pF).query=this.input.value);var V=_.y(Q.commandMetadata,_.Kt);(V==null?0:V.url)?(V.url=_.va(V.url,"query",this.input.value),_.Hj(this.hostElement,"yt-navigate",{endpoint:Q})):_.y(Q,Myx)?(_.y(Q,Myx).channelSwitcherQuery=this.input.value,_.ht().resolve(_.At).resolveCommand(Q,{form:{element:this.hostElement}})):(v=Error("Ph`"+JSON.stringify(v)),_.ro(v))};
_.K.getUrl=function(v){return this.get("commandMetadata.webCommandMetadata.url",v)};
dr.prototype.toggleClearButton=dr.prototype.toggleClearButton;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dr.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],dr.prototype,"hideClearButton",void 0);
_.W([_.q(),_.X("design:type",Object)],dr.prototype,"boundSubmit",void 0);_.W([_.Z7("#form"),_.X("design:type",HTMLFormElement)],dr.prototype,"form",void 0);_.W([_.Z7("#input"),_.X("design:type",Object)],dr.prototype,"input",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],dr.prototype,"toggleClearButton",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],dr);
_.B(dr,"ytd-search-box-renderer",function(){if(CBA!==void 0)return CBA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return CBA=v},{mode:2});var hV=function(){var v=_.z.apply(this,arguments)||this;v.showSearchBox=!0;return v};
_.f(hV,_.z);hV.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hV.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hV.prototype,"showSearchBox",void 0);_.W([_.J({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],hV);
_.B(hV,"ytd-channel-switcher-header-renderer",function(){if(ffp!==void 0)return ffp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ffp=v},{mode:1});var M7Z;var OuV;var wr=function(){var v=_.z.apply(this,arguments)||this;v.isDisplayed=!0;return v};
_.f(wr,_.z);_.K=wr.prototype;_.K.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.dataChanged=function(){this.isDisplayed=!0};
_.K.computeType=function(v){return v||"UNKNOWN"};
_.K.onYtServiceRequestCompleted=function(v){v.stopPropagation();this.isDisplayed=!1};
_.K.onClose=function(){this.isDisplayed=!1};
wr.prototype.onYtServiceRequestCompleted=wr.prototype.onYtServiceRequestCompleted;wr.prototype.dataChanged=wr.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wr.prototype,"data",void 0);
_.W([_.q({computed:"computeType(data.type)",reflectToAttribute:!0}),_.X("design:type",String)],wr.prototype,"type",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],wr.prototype,"isDisplayed",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wr.prototype,"dataChanged",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],wr.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],wr);
_.B(wr,"ytd-alert-with-button-renderer",function(){if(OuV!==void 0)return OuV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return OuV=v},{mode:1});var AV=function(){var v=_.z.apply(this,arguments)||this;v.noResult=!1;v.enableAlertBanner=!1;v.dismissedAlertBanner=!1;v.hideCreateChannelButton=!1;v.boundDismissAlertBanner=function(){v.dismissAlertBanner()};
v.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return v};
_.f(AV,_.z);_.K=AV.prototype;_.K.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.K.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.K.updateChannelSwitcherAction=function(v){var Q;v=(Q=_.y(v,cCA))==null?void 0:Q.page;_.y(v,yCa)!==void 0&&(this.data=_.y(v,yCa))};
_.K.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]]"}}}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.K.searchQueryChanged=function(v,Q){if(this.data&&this.data.contents&&this.data.contents.length){v=[];var V=[];this.hideCreateChannelButton=this.noResult=!1;for(var E=document.querySelectorAll("ytd-account-item-renderer"),b=_.L(E),F=b.next();!F.done;F=b.next())F=F.value,V.push(F),F.style.display="block";this.resetRightBorder(V);if(Q){this.hideCreateChannelButton=!0;for(V=1;V<this.data.contents.length;V++)if(F=this.data.contents[V],_.y(F,fIZ)){var t=void 0,p=void 0;b=(t=_.y(F,fIZ))==null?void 0:(p=
t.accountName)==null?void 0:p.simpleText;p=t=void 0;F=(t=_.y(F,fIZ))==null?void 0:(p=t.channelHandle)==null?void 0:p.simpleText;(t=E[V-1])&&b&&_.P9(b,Q)?v.push(t):_.Y("enable_handle_search_on_channel_switcher")&&t&&F&&_.P9(F.toString(),Q.toString())?v.push(t):t.style.display="none"}v.length===0&&(this.noResult=!0);this.resetRightBorder(v)}}};
_.K.resetRightBorder=function(v){for(var Q=0;Q<v.length;Q++)v[Q].style.borderRight=!this.hideCreateChannelButton&&(Q+2)%3===0||this.hideCreateChannelButton&&(Q+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.K.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.K.setShowSearchBox=function(v){if(v&&v.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var Q=0;Q<v.contents.length;Q++)_.y(v.contents[Q],_.WY)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.K.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.hr.Object.defineProperties(AV.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.contents)}}});
AV.prototype.onContinuationItemsUpdated=AV.prototype.onContinuationItemsUpdated;AV.prototype.searchQueryChanged=AV.prototype.searchQueryChanged;AV.prototype.onDataChanged=AV.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],AV.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],AV.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],AV.prototype,"data",void 0);_.W([_.Z7("ytd-channel-switcher-header-renderer"),_.X("design:type",Object)],AV.prototype,"channelSwitcherHeaderRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],AV.prototype,"noResult",void 0);
_.W([_.q(),_.X("design:type",Object)],AV.prototype,"enableAlertBanner",void 0);_.W([_.q(),_.X("design:type",Object)],AV.prototype,"dismissedAlertBanner",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],AV.prototype,"hideCreateChannelButton",void 0);_.W([_.O("data.contents"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],AV.prototype,"isLoading",null);_.W([_.q(),_.X("design:type",Object)],AV.prototype,"boundDismissAlertBanner",void 0);
_.W([_.q({computed:"computeButtonOverride()"}),_.X("design:type",Object)],AV.prototype,"buttonOverride",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],AV.prototype,"onDataChanged",null);_.W([_.tM("search-query-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,String]),_.X("design:returntype")],AV.prototype,"searchQueryChanged",null);
_.W([_.tM("yt-next-continuation-data-updated"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],AV.prototype,"onContinuationItemsUpdated",null);_.W([_.J({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],AV);
_.B(AV,"ytd-channel-switcher-page-renderer",function(){if(M7Z!==void 0)return M7Z;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return M7Z=v},{mode:1});var Dix;var RuZ;var kC=function(){var v=_.z.apply(this,arguments)||this;v.images=[];v.selectedImageIndex=0;return v};
_.f(kC,_.z);_.K=kC.prototype;
_.K.ready=function(){_.wE(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.wE(this.JSC$15841_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.wE(this.JSC$15841_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.wE(this.JSC$15841_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.K.onThumbnailClick=function(v){if(v=v.event_.detail)this.selectedImageIndex=this.images.indexOf(v)};
_.K.updateImageThumbnails=function(v){v=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:v.event_.detail});this.images.splice(this.selectedImageIndex,1,v);this.images=[].concat(_.ui(this.images))};
_.K.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Hj(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.K.saveImageRepositions=function(){this.selectedImageIndex=0;_.Hj(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.hr.Object.defineProperties(kC.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var v=this;return(this.images||[]).map(function(Q,V){return{image:Q,selected:V===v.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("ytd-backstage-image-preview-renderer"),_.X("design:type",Object)],kC.prototype,"JSC$15841_imagePreviewContainer",void 0);_.W([_.Z7(".thumbnail-images-container"),_.X("design:type",HTMLElement)],kC.prototype,"thumbnailImagesContainer",void 0);_.W([_.q(),_.X("design:type",Array)],kC.prototype,"images",void 0);
_.W([_.q(),_.X("design:type",Object)],kC.prototype,"repositionInstructions",void 0);_.W([_.q(),_.X("design:type",Object)],kC.prototype,"selectedImageIndex",void 0);_.W([_.O("images","selectedImageIndex"),_.X("design:type",Array),_.X("design:paramtypes",[])],kC.prototype,"thumbnailRendererDatas",null);_.W([_.O("images","selectedImageIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],kC.prototype,"selectedImageData",null);
_.W([_.J({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],kC);
_.B(kC,"ytd-backstage-multi-image-reposition-renderer",function(){if(RuZ!==void 0)return RuZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return RuZ=v},{mode:1});var T3=function(v,Q){_.DO.call(this);this.uploadUrl=v;this.channelId=Q;this.imagesUploadData=[]};
_.f(T3,_.DO);T3.prototype.getAllUploadStatuses=function(){var v=this,Q,V,E;return _.e(function(b){if(b.nextAddress==1)return b.yield(n8a(v),2);Q=b.yieldResult;V=Q.get("succeed");E=Q.get("failed");return b.return(V.concat(E))})};
var qeZ=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(n8a(v),2);Q=E.yieldResult;V=Q.get("failed");V.length>0&&lfa(v,V);return E.return(v.getAllUploadStatuses())})},n8a=function(v){var Q,V,E,b,F,t,p;
return _.e(function(Z){if(Z.nextAddress==1)return Q=new Map,Z.yield(Promise.allSettled(v.imagesUploadData.map(function(d){return d.uploadPromise})),2);
V=Z.yieldResult;E=[];b=_.L(V);for(F=b.next();!F.done;F=b.next())t=F.value,t.status==="fulfilled"&&E.push(t.value);p=v.imagesUploadData.map(function(d){return d.image}).filter(function(d){return E.every(function(w){return w.id!==d.id})});
Q.set("succeed",E);Q.set("failed",p);return Z.return(Q)})},lfa=function(v,Q){Q=_.L(Q);
for(var V=Q.next();!V.done;V=Q.next()){var E=v;V=V.value;SeX(E,V.id)>=0&&E.cancel(V.id);var b=new zux(V),F=_.ZB8(E.uploadUrl,{"X-YouTube-ChannelId":E.channelId},V.imageBlob);b.transfer=F;b.uploadPromise=JPQ(F,V);E.imagesUploadData.push(b);F.run()}};
T3.prototype.cancel=function(v){var Q=SeX(this,v);Q!==-1&&((Q=this.imagesUploadData[Q].transfer)&&Q.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(V){return V.image.id!==v}))};
var SeX=function(v,Q){return v.imagesUploadData.findIndex(function(V){return V.image.id===Q})},JPQ=function(v,Q){return new Promise(function(V,E){v.listen("l",function(){var b=v.getResponseText();
b?(b=JSON.parse(b).encryptedBlobId,Q.encryptedBlobId=b,V(Q)):E("upload failed")});
v.listen("n",function(){E("upload failed")})})},zux=function(v){this.image=v};var amG=function(v,Q,V,E,b){this.id=v;this.imageBlob=Q;this.localImageSrc=V;this.naturalWidth=E;this.naturalHeight=b;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 NRX=[".jpeg",".jpg",".png"],YC=function(){var v=_.z.apply(this,arguments)||this;v.showImagesPreview=!1;v.pollOptions=[];v.errorMessage="";v.optionPlaceholderText="";v.optionDefaultText="";v.JSC$15852_imageId=0;v.maxFileSizeMb=0;v.maxAspectRatio=0;v.invalidFileSizeError="";v.invalidAspectRatioError="";v.invalidFileTypeError="";v.imageSelector=new Ov(null,"single_file",NRX);return v};
_.f(YC,_.z);_.K=YC.prototype;_.K.ready=function(){_.wE(this.imageSelector,"j",this.onImageSelect,!1,this);_.wE(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.wE(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.K.dataChanged=function(){var v,Q,V=_.y((v=this.data)==null?void 0:(Q=v.cellTemplate)==null?void 0:Q.onEmptyCellTap,VI8);if(V&&V.uploadUrl&&V.channelId){var E;this.maxFileSizeMb=((E=V.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0;var b;this.maxAspectRatio=((b=V.imageValidationInfo)==null?void 0:b.allowedMaxAspectRatio)||0;var F;this.invalidFileSizeError=this.getSimpleString((F=this.data)==null?void 0:F.invalidFileSizeError);var t;this.invalidAspectRatioError=this.getSimpleString((t=this.data)==
null?void 0:t.invalidAspectRatioError);var p;this.invalidFileTypeError=this.getSimpleString((p=this.data)==null?void 0:p.invalidFileTypeError);this.uploadManager=new T3(V.uploadUrl,V.channelId)}};
_.K.onEditorInfoChange=function(){this.optionPlaceholderText=_.j0(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.j0(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.K.observeAddImageError=function(){this.errorMessage!==""&&_.Hj(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.K.onPollOptionsChange=function(){for(var v=!1,Q=[],V=0;V<this.pollOptions.length;V++){var E=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(V+1);this.pollOptions[V].placeholderText!==E?(v=!0,Q.push(Object.assign({},this.pollOptions[V],{placeholderText:E}))):Q.push(this.pollOptions[V])}v&&(this.pollOptions=Q);this.isValid()?_.Hj(this.hostElement,"yt-commentbox-post-enable"):_.Hj(this.hostElement,"yt-commentbox-post-disable")};
_.K.createPollOptions=function(v){var Q=[],V;v=(V=v==null?void 0:v.minPollOptions)!=null?V:0;for(V=0;V<v;V++)Q.push(this.createPollOption());return Q};
_.K.onImageSelect=function(v){var Q=this,V,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1){if(Q.selectedImageIndex===void 0)return Z.jumpTo(0);V=v.files[0];Q.errorMessage="";E=Q.validateImage(V);if(E!=="")return Q.errorMessage=E,Z.return();b=new k_(Q.maxAspectRatio,!1,!0);return Z.yield(b.transform(V),3)}if(Z.nextAddress!=4)return F=Z.yieldResult,F.transformedData?F.invalidAspectRatio?(Q.errorMessage=Q.invalidAspectRatioError,Z.return()):Z.yield(rH3(Q.JSC$15852_imageId,v.files[0],F.transformedData),
4):(Q.errorMessage=Q.invalidFileTypeError,Z.return());t=Z.yieldResult;Q.JSC$15852_imageId++;lfa(Q.uploadManager,[t]);p=Object.assign({},Q.pollOptions[Q.selectedImageIndex],{image:t});Q.pollOptions.splice(Q.selectedImageIndex,1,p);Q.refreshPollOptions();_.Hj(Q.hostElement,"yt-backstage-poll-image-select");_.q1(Z)})};
_.K.validateImage=function(v){return v.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.K.refreshPollOptions=function(){this.pollOptions=[].concat(_.ui(this.pollOptions))};
_.K.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ui(this.pollOptions),[this.createPollOption()]))};
_.K.onRemovePollOption=function(v){var Q=this.pollOptions[v.model.index];Q&&Q.image&&this.uploadManager.cancel(Q.image.id);this.pollOptions.splice(v.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Hj(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.K.onTextInput=function(){this.refreshPollOptions()};
_.K.onImageButtonClick=function(v){this.selectedImageIndex=v.model.index;this.imageSelector.click()};
_.K.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.K.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.K.saveImageRepositions=function(v){v=v.event_.detail;for(var Q=0,V=[],E=_.L(this.pollOptions),b=E.next();!b.done;b=E.next())b=b.value,b.image!==void 0?(b=Object.assign({},b,{image:v[Q]}),V.push(b),Q++):V.push(b);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ui(V))};
_.K.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var v=0,Q=_.L(this.pollOptions),V=Q.next();!V.done;V=Q.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;v++}return v>=Number(this.editorInfo.minPollOptions)};
_.K.getAllUploadStatuses=function(){var v=this,Q,V,E,b;return _.e(function(F){if(F.nextAddress==1)return F.yield(v.uploadManager.getAllUploadStatuses(),2);Q=F.yieldResult;V=_.L(Q);for(E=V.next();!E.done;E=V.next())if(b=E.value,b.encryptedBlobId===void 0)return F.return(qeZ(v.uploadManager));return F.return(Q)})};
_.K.getPostCreateOptions=function(){for(var v=[],Q=_.L(this.pollOptions),V=Q.next();!V.done;V=Q.next())V=V.value,V.image!==void 0&&v.push({text:this.hasCustomOptionText?V.optionText:V.placeholderText,image:V.image});return v};
_.K.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.K.createButtonRenderer=function(v,Q){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleString(v)}},isDisabled:Q}};
_.K.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.K.computeThumbnailRendererData=function(v){return v?{image:v,selected:!1}:void 0};
_.K.getSimpleString=function(v){return _.j0(v)};
_.K.updateOptionTextFromBinding=function(v){if(v.target){var Q=Array.from(_.m9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(v.target);if(Q>=0){var V;this.pollOptions[Q].optionText=(V=v.detail.value)!=null?V:""}}};
_.hr.Object.defineProperties(YC.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var v,Q;return this.pollOptions.length<((Q=(v=this.editorInfo)==null?void 0:v.maxPollOptions)!=null?Q:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(v){return v.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(v){return v.image}).map(function(v){return v.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(v){return v.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.data)==null?void 0:v.addOptionButtonText;return Q?this.createButtonRenderer(Q,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.data)==null?void 0:v.repositionImagesButtonLabel;return Q?this.createButtonRenderer(Q,!this.hasImages):void 0}}});
YC.prototype.onPollOptionsChange=YC.prototype.onPollOptionsChange;YC.prototype.observeAddImageError=YC.prototype.observeAddImageError;YC.prototype.onEditorInfoChange=YC.prototype.onEditorInfoChange;YC.prototype.dataChanged=YC.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("ytd-backstage-multi-image-reposition-renderer"),_.X("design:type",Object)],YC.prototype,"imageRepositionContainer",void 0);
_.W([_.q(),_.X("design:type",Object)],YC.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],YC.prototype,"editorInfo",void 0);_.W([_.q(),_.X("design:type",T3)],YC.prototype,"uploadManager",void 0);_.W([_.q(),_.X("design:type",Object)],YC.prototype,"showImagesPreview",void 0);_.W([_.q(),_.X("design:type",Array)],YC.prototype,"pollOptions",void 0);_.W([_.q(),_.X("design:type",Object)],YC.prototype,"errorMessage",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],YC.prototype,"dataChanged",null);_.W([_.wg("editorInfo"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],YC.prototype,"onEditorInfoChange",null);_.W([_.ph("errorMessage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],YC.prototype,"observeAddImageError",null);
_.W([_.wg("pollOptions"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],YC.prototype,"onPollOptionsChange",null);_.W([_.O("pollOptions","editorInfo"),_.X("design:type",Object),_.X("design:paramtypes",[])],YC.prototype,"isAllowedToAddOption",null);_.W([_.O("pollOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],YC.prototype,"hasImages",null);
_.W([_.O("pollOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],YC.prototype,"imagesToReposition",null);_.W([_.O("pollOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],YC.prototype,"hasCustomOptionText",null);_.W([_.O("data","isAllowedToAddOption"),_.X("design:type",Object),_.X("design:paramtypes",[])],YC.prototype,"addOptionButton",null);_.W([_.O("data","hasImages"),_.X("design:type",Object),_.X("design:paramtypes",[])],YC.prototype,"repositionImagesButton",null);
_.W([_.J({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],YC);
_.B(YC,"ytd-backstage-image-poll-editor-renderer",function(){if(Dix!==void 0)return Dix;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Dix=v},{mode:2});var xiQ={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 BRZ;var yb=function(){var v=_.z.apply(this,arguments)||this;v.a11yConfig=xiQ;v.imageDisplayOffsetTop=0;v.imageDisplayOffsetLeft=0;v.pickerDisplayOffsetTop=0;v.pickerDisplayOffsetLeft=0;v.showPreviewContainer=!0;v.startPicker=!1;v.repositionOptional=!1;v.editOnlyMode=!1;v.savedImageDisplayOffsetTop=0;v.savedImageDisplayOffsetLeft=0;return v};
_.f(yb,_.z);_.K=yb.prototype;_.K.created=function(){_.QS.requestAvailability()};
_.K.ready=function(){};
_.K.onArrowKeysDown=function(v){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){v.detail.keyboardEvent.preventDefault();var Q=0,V=0,E="";switch(v.detail.keyboardEvent.key){case "ArrowUp":$Gt(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?E=this.a11yConfig.reachBottomOfImage:Q=this.imageHeight*.05*-1;break;case "ArrowDown":$Gt(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?E=this.a11yConfig.reachTopOfImage:
Q=this.imageHeight*.05;break;case "ArrowLeft":$Gt(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?E=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":$Gt(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?E=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}E&&_.Lt(E)&&_.Hj(this.hostElement,"iron-announce",{text:_.Lt(E)});if(V||Q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Q)),v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),v=_.Lt(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),v=_.Lt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})),v&&_.Hj(this.hostElement,"iron-announce",{text:v})}};
_.K.getPreviewPosition=function(v,Q,V,E){return Math.round(100*(v+Q*.5-V)/E)};
_.K.calculateDisplayPosition=function(){var v=this.imageData.naturalWidth,Q=this.imageData.naturalHeight;this.displayScale=Math.max(200/v,200/Q);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var V=v*this.displayScale*this.imageData.previewCoordinates.left,E=Q*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=Q>v?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-V;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=v>Q?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-E;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=v*this.displayScale;this.imageHeight=Q*this.displayScale};
_.K.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.K.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.K.getSignedPosition=function(v,Q,V){return Q==="X"&&_.r7("HTML_DIR")==="rtl"?V==="-"?v+"px":v*-1+"px":V==="-"?v*-1+"px":v+"px"};
_.K.pickerMove=function(v){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Q=this.pickerOffsetX-v.clientX,V=this.pickerOffsetY-v.clientY;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Q))}};
_.K.pickerMoveStart=function(v){this.startPicker=!0;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY};
_.K.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var v=this.generateCropPreview();v&&_.Hj(this.hostElement,"ytd-backstage-image-preview-coordinates-update",v)};
_.K.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Hj(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.K.deleteImage=function(){_.Hj(this.hostElement,"ytd-backstage-image-preview-delete")};
_.K.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.K.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var v=this.generateCropPreview();v&&_.Hj(this.hostElement,"ytd-backstage-image-preview-coordinates-save",v)};
_.K.getPreviewOffset=function(v,Q,V){return Q&&v?(V==="X"&&_.r7("HTML_DIR")==="rtl"?300/Q*v:300/Q*v*-1)+"px":"0px"};
_.K.getSimpleText=function(v){return v?_.j0(v):""};
_.K.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}};
_.hr.Object.defineProperties(yb.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Lt(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.Lt(this.a11yConfig.verticalRepositionInstruction)}v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Lt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.Lt(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.instruction)==null?void 0:(Q=v.previewInstruction)==null?void 0:Q.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 v,Q,V,E,b=this.editOnlyMode?(v=this.instruction)==null?void 0:(Q=v.editInstruction)==null?void 0:Q.saveImagesButtonLabel:(V=this.instruction)==null?void 0:(E=V.editInstruction)==null?void 0:E.saveButtonLabel;return b?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.instruction)==null?void 0:(Q=v.previewInstruction)==null?void 0:Q.deleteButtonLabel;return V?{size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.instruction)==null?void 0:(Q=v.editInstruction)==null?void 0:Q.cancelButtonLabel;v=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return V?{style:v,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"}}});
yb.prototype.onEditOnlyModeUpdate=yb.prototype.onEditOnlyModeUpdate;yb.prototype.onImageChange=yb.prototype.onImageChange;_.W([_.q(),_.X("design:type",amG)],yb.prototype,"imageData",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"instruction",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"a11yConfig",void 0);_.W([_.q(),_.X("design:type",Number)],yb.prototype,"imageWidth",void 0);_.W([_.q(),_.X("design:type",Number)],yb.prototype,"imageHeight",void 0);
_.W([_.q(),_.X("design:type",Number)],yb.prototype,"displayScale",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"imageDisplayOffsetTop",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"imageDisplayOffsetLeft",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"pickerDisplayOffsetTop",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"pickerDisplayOffsetLeft",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"showPreviewContainer",void 0);
_.W([_.q(),_.X("design:type",Object)],yb.prototype,"startPicker",void 0);_.W([_.q(),_.X("design:type",Number)],yb.prototype,"pickerOffsetX",void 0);_.W([_.q(),_.X("design:type",Number)],yb.prototype,"pickerOffsetY",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"repositionOptional",void 0);_.W([_.q(),_.X("design:type",Object)],yb.prototype,"editOnlyMode",void 0);_.W([_.Z7("#picker-container"),_.X("design:type",HTMLElement)],yb.prototype,"JSC$15865_pickerContainer",void 0);
_.W([_.Z7("#picker"),_.X("design:type",HTMLElement)],yb.prototype,"picker",void 0);_.W([_.Z7("#preview-clipper"),_.X("design:type",HTMLElement)],yb.prototype,"previewClipper",void 0);_.W([_.Z7("#image-in-picker-background"),_.X("design:type",HTMLImageElement)],yb.prototype,"JSC$15865_imageInBackground",void 0);_.W([_.Z7("#image-in-picker"),_.X("design:type",HTMLImageElement)],yb.prototype,"JSC$15865_imageInPicker",void 0);
_.W([_.Z7("#image-in-preview-clipper"),_.X("design:type",HTMLImageElement)],yb.prototype,"JSC$15865_imageInPreviewClipper",void 0);_.W([_.O("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],yb.prototype,"altLabelForImage",null);_.W([_.O("imageHeight","imageWidth"),_.X("design:type",Number),_.X("design:paramtypes",[])],yb.prototype,"pickerSize",null);
_.W([_.O("imageHeight","imageWidth"),_.X("design:type",Object),_.X("design:paramtypes",[])],yb.prototype,"imageOrientationStyle",null);_.W([_.O("instruction"),_.X("design:type",Object),_.X("design:paramtypes",[])],yb.prototype,"editButton",null);_.W([_.O("instruction","editOnlyMode"),_.X("design:type",Object),_.X("design:paramtypes",[])],yb.prototype,"saveButton",null);_.W([_.O("instruction"),_.X("design:type",Object),_.X("design:paramtypes",[])],yb.prototype,"deleteButton",null);
_.W([_.O("instruction","editOnlyMode"),_.X("design:type",Object),_.X("design:paramtypes",[])],yb.prototype,"cancelButton",null);_.W([_.O("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.X("design:type",Number),_.X("design:paramtypes",[])],yb.prototype,"cropOffsetTop",null);_.W([_.O("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.X("design:type",Number),_.X("design:paramtypes",[])],yb.prototype,"cropOffsetLeft",null);
_.W([_.O("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],yb.prototype,"pickerBackgroundStyle",null);_.W([_.O("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],yb.prototype,"pickerDisplayStyle",null);_.W([_.O("cropOffsetLeft","cropOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],yb.prototype,"imageInPickerStyle",null);
_.W([_.O("cropOffsetLeft","cropOffsetTop","pickerSize"),_.X("design:type",String),_.X("design:paramtypes",[])],yb.prototype,"previewClipperStyle",null);_.W([_.wg("imageData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],yb.prototype,"onImageChange",null);_.W([_.wg("editOnlyMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],yb.prototype,"onEditOnlyModeUpdate",null);
_.W([_.O("showPreviewContainer"),_.X("design:type",String),_.X("design:paramtypes",[])],yb.prototype,"pickerModeStyle",null);_.W([_.J({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],yb);
_.B(yb,"ytd-backstage-image-preview-renderer",function(){if(BRZ!==void 0)return BRZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return BRZ=v},{mode:1});var g8p;var s2R={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 ueN;var j2N;var c8=function(){var v=_.z.apply(this,arguments)||this;v.a11yConfig=s2R;v.imageDisplayOffsetTop=0;v.imageDisplayOffsetLeft=0;v.pickerDisplayOffsetTop=0;v.pickerDisplayOffsetLeft=0;v.cropCoordinatesSaved=!1;v.previewSize=0;v.startPicker=!1;v.repositionOptional=!1;return v};
_.f(c8,_.z);_.K=c8.prototype;_.K.created=function(){_.QS.requestAvailability()};
_.K.ready=function(){};
_.K.onArrowKeysDown=function(v){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){v.detail.keyboardEvent.preventDefault();var Q=0,V=0,E="";switch(v.detail.keyboardEvent.key){case "ArrowUp":Imm(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?E=this.a11yConfig.reachBottomOfImage:Q=this.imageHeight*.05*-1;break;case "ArrowDown":Imm(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?E=this.a11yConfig.reachTopOfImage:
Q=this.imageHeight*.05;break;case "ArrowLeft":Imm(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?E=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":Imm(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?E=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}E&&_.Lt(E)&&_.Hj(this.hostElement,"iron-announce",{text:_.Lt(E)});if(V||Q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Q)),v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),v=_.Lt(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),v=_.Lt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})),v&&_.Hj(this.hostElement,"iron-announce",{text:v})}};
_.K.getPreviewPosition=function(v,Q,V,E){return Math.round(100*(v+Q*.5-V)/E)};
_.K.displayImage=function(){var v=this.JSC$15876_pickerContainer.getBoundingClientRect().width,Q=this.JSC$15876_pickerContainer.getBoundingClientRect().height,V=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),E=this.JSC$15876_imageInBackground.naturalWidth,b=this.JSC$15876_imageInBackground.naturalHeight;this.displayScale=Math.max(V/E,V/b);this.imageWidth=E*this.displayScale;this.imageHeight=b*this.displayScale;this.pickerDisplayOffsetLeft=(v-V)/2;this.pickerDisplayOffsetTop=
(Q-V)/2;this.imageDisplayOffsetLeft=b>E?this.pickerDisplayOffsetLeft:(v-this.imageWidth)/2;this.imageDisplayOffsetTop=E>b?this.pickerDisplayOffsetTop:(Q-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.K.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15876_imageInBackground.src=this.imageData.toString(),this.JSC$15876_imageInPicker.src=this.imageData.toString(),this.JSC$15876_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.K.getSignedPosition=function(v,Q,V){return Q==="X"&&_.r7("HTML_DIR")==="rtl"?V==="-"?v+"px":v*-1+"px":V==="-"?v*-1+"px":v+"px"};
_.K.pickerMove=function(v){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Q=this.pickerOffsetX-v.clientX,V=this.pickerOffsetY-v.clientY;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Q))}};
_.K.pickerMoveStart=function(v){this.startPicker=!0;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY};
_.K.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.K.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Hj(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.K.getPreviewOffset=function(v,Q,V,E){return Q&&v&&V?(E==="X"&&_.r7("HTML_DIR")==="rtl"?V/Q*v:V/Q*v*-1)+"px":"0px"};
_.K.getSimpleText=function(v){return v?_.j0(v):""};
_.K.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var v=this.cropOffsetTop/this.imageHeight,Q=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,V=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,E=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.m9(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Hj(this.hostElement,"yt-img-crop-coordinates-update",{top:v,right:Q,bottom:V,left:E})}};
_.hr.Object.defineProperties(c8.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Lt(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.Lt(this.a11yConfig.verticalRepositionInstruction)}v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Lt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.Lt(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var v,Q=(v=this.learnMore.runs[0])==null?void 0:v.navigationEndpoint,V;return((V=_.y(Q,_.FJ))==null?void 0:V.url)||void 0}}}});
c8.prototype.onImageDataChange=c8.prototype.onImageDataChange;_.W([_.q(),_.X("design:type",Object)],c8.prototype,"imageData",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"instruction",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"a11yConfig",void 0);_.W([_.q(),_.X("design:type",Number)],c8.prototype,"imageWidth",void 0);_.W([_.q(),_.X("design:type",Number)],c8.prototype,"imageHeight",void 0);_.W([_.q(),_.X("design:type",Number)],c8.prototype,"displayScale",void 0);
_.W([_.q(),_.X("design:type",Object)],c8.prototype,"imageDisplayOffsetTop",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"imageDisplayOffsetLeft",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"pickerDisplayOffsetTop",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"pickerDisplayOffsetLeft",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"cropCoordinatesSaved",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"previewSize",void 0);
_.W([_.q(),_.X("design:type",Object)],c8.prototype,"startPicker",void 0);_.W([_.q(),_.X("design:type",Number)],c8.prototype,"pickerOffsetX",void 0);_.W([_.q(),_.X("design:type",Number)],c8.prototype,"pickerOffsetY",void 0);_.W([_.q(),_.X("design:type",Object)],c8.prototype,"repositionOptional",void 0);_.W([_.Z7("#picker-container"),_.X("design:type",HTMLElement)],c8.prototype,"JSC$15876_pickerContainer",void 0);_.W([_.Z7("#picker"),_.X("design:type",HTMLElement)],c8.prototype,"picker",void 0);
_.W([_.Z7("#image-in-picker-background"),_.X("design:type",HTMLImageElement)],c8.prototype,"JSC$15876_imageInBackground",void 0);_.W([_.Z7("#image-in-picker"),_.X("design:type",HTMLImageElement)],c8.prototype,"JSC$15876_imageInPicker",void 0);_.W([_.Z7("#image-in-preview-clipper"),_.X("design:type",HTMLImageElement)],c8.prototype,"JSC$15876_imageInPreviewClipper",void 0);_.W([_.Z7("#full-image-as-preview"),_.X("design:type",HTMLImageElement)],c8.prototype,"imageAsPreview",void 0);
_.W([_.O("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],c8.prototype,"altLabelForImage",null);_.W([_.O("imageHeight","imageWidth"),_.X("design:type",Number),_.X("design:paramtypes",[])],c8.prototype,"pickerSize",null);_.W([_.O("imageHeight","imageWidth"),_.X("design:type",Object),_.X("design:paramtypes",[])],c8.prototype,"imageOrientationStyle",null);
_.W([_.O("instruction.previewInstruction.editButtonLabel"),_.X("design:type",Object),_.X("design:paramtypes",[])],c8.prototype,"editButton",null);_.W([_.O("instruction.editInstruction.saveButtonLabel"),_.X("design:type",Object),_.X("design:paramtypes",[])],c8.prototype,"saveButton",null);_.W([_.O("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.X("design:type",Number),_.X("design:paramtypes",[])],c8.prototype,"cropOffsetTop",null);
_.W([_.O("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.X("design:type",Number),_.X("design:paramtypes",[])],c8.prototype,"cropOffsetLeft",null);_.W([_.O("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],c8.prototype,"pickerBackgroundStyle",null);_.W([_.O("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],c8.prototype,"pickerDisplayStyle",null);
_.W([_.O("cropOffsetLeft","cropOffsetTop"),_.X("design:type",String),_.X("design:paramtypes",[])],c8.prototype,"imageInPickerStyle",null);_.W([_.O("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.X("design:type",String),_.X("design:paramtypes",[])],c8.prototype,"previewClipperStyle",null);_.W([_.ph("imageData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],c8.prototype,"onImageDataChange",null);
_.W([_.O("cropCoordinatesSaved"),_.X("design:type",String),_.X("design:paramtypes",[])],c8.prototype,"pickerModeStyle",null);_.W([_.O("instruction.editInstruction.learnMore"),_.X("design:type",Object),_.X("design:paramtypes",[])],c8.prototype,"learnMore",null);_.W([_.O("learnMore"),_.X("design:type",Object),_.X("design:paramtypes",[])],c8.prototype,"learnMoreUrl",null);_.W([_.D7({is:"yt-img-crop-picker",disableElementRegistration:!0})],c8);
_.B(c8,"yt-img-crop-picker",function(){if(j2N===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;ueN===void 0&&(ueN=document.createElement("template"));var E=ueN;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);j2N=v}v=j2N;return v},{mode:2});var f0=function(){var v=_.z.apply(this,arguments)||this;v.errorMessage="";v.hasPreview=!1;v.isBackstagePost=!1;v.dismissButtonOverrides={size:"XS"};return v};
_.f(f0,_.z);_.K=f0.prototype;_.K.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"}}}};
_.K.detached=function(){this.removeOverlay()};
_.K.setPreview=function(v){_.m9(this.hostElement).querySelector("#preview-picker").imageData=v;this.hasPreview=!0;_.Hj(this.hostElement,"yt-backstage-image-select-preview")};
_.K.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var v=_.m9(this.hostElement).querySelector("#dropzone");v.classList.remove("dragover");v.classList.remove("error");_.Hj(this.hostElement,"yt-backstage-image-select-cancel")};
_.K.setupOverlay=function(){var v=this.imageUploadEndpoint;this.removeOverlay();if(v&&v.imageValidationInfo){var Q=_.m9(this.hostElement).querySelector("#dropzone"),V=_.m9(this.hostElement).querySelector("#select");this.overlay=new Y_(v.uploadUrl,v.channelId,v.imageValidationInfo.maxFileSizeMb,v.imageValidationInfo.allowedMaxAspectRatio,Q,V,!0);_.wE(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.wE(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.wE(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.wE(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.wE(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.K.removeOverlay=function(){this.overlay&&(_.OE(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.OE(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.OE(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.OE(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.OE(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.K.onDragOver=function(v){var Q=_.m9(this.hostElement).querySelector("#dropzone");_.VE(Q,"dragover",v.value)};
_.K.onPreview=function(v){this.setPreview(v.value)};
_.K.onImageError=function(v){if(v.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var Q;v=(Q=this.data)==null?void 0:Q.fileSizeError}else if(v.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var V;v=(V=this.data)==null?void 0:V.invalidError}else if(v.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var E;v=(E=this.data)==null?void 0:E.invalidAspectRatioError}else return;this.errorMessage=_.j0(v);_.m9(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.K.onImageAlert=function(v){this.onImageError(v)};
_.K.uploadPromise=function(){var v=this,Q=this.overlay&&this.overlay.uploadPromise();if(Q)return Q.catch(function(){throw Error(v.data?_.j0(v.data.uploadFailureError):"");})};
_.hr.Object.defineProperties(f0.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var v,Q;if((v=this.data)==null?0:(Q=v.icon)==null?0:Q.iconType)return _.VK(this.data.icon.iconType)}}});
f0.prototype.setupOverlay=f0.prototype.setupOverlay;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],f0.prototype,"rendererStamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],f0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],f0.prototype,"imageUploadEndpoint",void 0);_.W([_.q(),_.X("design:type",Object)],f0.prototype,"errorMessage",void 0);
_.W([_.q(),_.X("design:type",Y_)],f0.prototype,"overlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],f0.prototype,"hasPreview",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],f0.prototype,"isBackstagePost",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],f0.prototype,"selectionCancel",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],f0.prototype,"previewCancel",null);
_.W([_.O("data.icon.iconType"),_.X("design:type",Object),_.X("design:paramtypes",[])],f0.prototype,"icon",null);_.W([_.q(),_.X("design:type",Object)],f0.prototype,"dismissButtonOverrides",void 0);_.W([_.ph("imageUploadEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],f0.prototype,"setupOverlay",null);_.W([_.J({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],f0);
_.B(f0,"ytd-backstage-image-select-renderer",function(){if(g8p!==void 0)return g8p;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return g8p=v},{mode:1});var W2R;var o8x;var G3=function(){var v=_.z.apply(this,arguments)||this;v.selected=!1;return v};
_.f(G3,_.z);_.K=G3.prototype;_.K.computeSelected=function(v){return v==null?void 0:v.selected};
_.K.computeTransform=function(v,Q,V){var E,b,F=(b=(E=this.imageContainer)==null?void 0:E.getBoundingClientRect())!=null?b:{width:0,height:0};E=Math.max(F.width/Q,F.height/V);V=V*E*v.top;return"translateX("+this.getSignedPosition(Q*E*v.left,"X","-")+") translateY("+this.getSignedPosition(V,"Y","-")+")"};
_.K.getSignedPosition=function(v,Q,V){return Q==="X"&&_.r7("HTML_DIR")==="rtl"?V==="-"?v+"px":v*-1+"px":V==="-"?v*-1+"px":v+"px"};
_.K.onClick=function(){var v;_.Hj(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(v=this.data)==null?void 0:v.image)};
_.K.onKeyPress=function(v){if(v.keyCode===13)this.onClick()};
_.hr.Object.defineProperties(G3.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.image)==null?void 0:Q.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.image){var Q;v=(Q=this.data)==null?void 0:Q.image;return v.previewCoordinates.top!==0||v.previewCoordinates.left!==0?(Q=this.computeTransform(v.previewCoordinates,v.naturalWidth,v.naturalHeight),v.naturalHeight>=v.naturalWidth?"width:inherit;transform:"+Q+";":"height:inherit;transform:"+Q+";"):v.naturalHeight>=v.naturalWidth?"width:inherit;":"height:inherit;"}}}});
G3.prototype.onKeyPress=G3.prototype.onKeyPress;_.W([_.Z7(".image-container"),_.X("design:type",HTMLElement)],G3.prototype,"imageContainer",void 0);_.W([_.q(),_.X("design:type",Object)],G3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.X("design:type",Object)],G3.prototype,"selected",void 0);_.W([_.O("data.image"),_.X("design:type",Object),_.X("design:paramtypes",[])],G3.prototype,"thumbnailUrl",null);
_.W([_.O("data.image","data.image.previewCoordinates"),_.X("design:type",Object),_.X("design:paramtypes",[])],G3.prototype,"thumbnailStyle",null);_.W([_.tM("keypress"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],G3.prototype,"onKeyPress",null);_.W([_.J({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],G3);
_.B(G3,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(o8x!==void 0)return o8x;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return o8x=v},{mode:2});var C0=function(v,Q,V){V=V===void 0?!1:V;_.DO.call(this);var E=this;this.dropZoneOverlay=new Md(v);this.selectOverlay=V?new Ov(Q,"multiple_file",["image/*"]):new Ov(Q,"single_file",["image/*"]);this.handler=new _.cE(this);_.Cg(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(Q,"click",function(){E.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.f(C0,_.DO);C0.prototype.onChange=function(v){var Q;(Q=v.files)!=null&&Q.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:v.files}))};var M0=function(){var v=_.z.apply(this,arguments)||this;v.addImageErrorMessage="";v.errorMessage="";v.images=[];v.selectedImageIndex=0;v.modern=_.Y("web_modern_buttons");v.maxNumImagesPerPost=_.T_("max_num_images_per_post_web_ui");v.JSC$15891_imageId=0;return v};
_.f(M0,_.z);_.K=M0.prototype;_.K.created=function(){var v=this;this.JSC$15891_ytReorderableController=new _.LBp(100,function(Q){v.handleDrop(Q)})};
_.K.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Hj(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.K.observeDragToReorder=function(){var v=this;if(this.showImagesPreview){var Q,V=dux(_.qs.getInstance(),(Q=this.data)==null?void 0:Q.dragToReorderTooltip);_.XT.addLowPriorityJob(function(){_.Qk(v.hostElement,V,v.thumbnailDragDropArea)})}};
_.K.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}}};
_.K.computeThumbnail=function(v){return(v==null?void 0:v.localImageSrc)||void 0};
_.K.onRendererstamperFinished=function(){_.tlX(this.JSC$15891_ytReorderableController,_.m9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.m9(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.K.handleDrop=function(v){var Q=v.currDragItem;if(Q!=null&&Q.data){v=this.images[this.selectedImageIndex];var V=Q.data.image,E=this.images.indexOf(V)||0;Q=_.B9(Q.parentNode.children,Q);this.images.splice(E,1);this.images.splice(Q,0,V);this.images=[].concat(_.ui(this.images));this.selectedImageIndex=this.images.indexOf(v)}};
_.K.setUpImagePicker=function(){var v=this.imageUploadEndpoint;v&&v.imageValidationInfo&&(this.uploadManager=new T3(v.uploadUrl,v.channelId),this.initialPicker||(this.initialPicker=new C0(this.dropzone,this.selectLink,!0),_.wE(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new C0(this.addImageButtonContainer,this.addImageSelectButton),_.wE(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.wE(this.JSC$15891_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.wE(this.JSC$15891_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.wE(_.m9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.K.detached=function(){this.initialPicker&&(_.OE(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.OE(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Bk(this.JSC$15891_ytReorderableController)};
_.K.onInitialSelectImages=function(v){var Q=this;return _.e(function(V){return V.yield(Q.onSelectImages(v,!1),0)})};
_.K.onAddImage=function(v){var Q=this;return _.e(function(V){return V.yield(Q.onSelectImages(v,!0),0)})};
_.K.onSelectImages=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r;return _.e(function(v9){switch(v9.nextAddress){case 1:Q?V.addImageErrorMessage="":(V.images=[],V.errorMessage="");E=v.detail;b=V.validateImages([].concat(_.ui(E)));if(b!=="")return Q?V.addImageErrorMessage=b:V.errorMessage=b,v9.return();F=[].concat(_.ui(E)).map(function(t3){return(new k_(V.maxAspectRatio,!1,!0)).transform(t3)});
return v9.yield(Promise.allSettled(F),2);case 2:t=v9.yieldResult,p=_.L(t.entries()),Z=p.next();case 3:if(Z.done){v9.jumpTo(5);break}d=Z.value;w=_.L(d);A=w.next().value;k=w.next().value;T=A;c=k;if(c.status!=="fulfilled"){l=R=C=void 0;Q?V.addImageErrorMessage=_.j0((C=V.data)==null?void 0:C.invalidError):V.errorMessage=V.errorMessage===""?_.j0((R=V.data)==null?void 0:R.invalidError):_.j0((l=V.data)==null?void 0:l.multiFileError);v9.jumpTo(4);break}S=c.value;S.cropped&&_.Hj(V.hostElement,"yt-backstage-multi-image-cropped");
if(S.invalidAspectRatio){u=g=a=void 0;Q?V.addImageErrorMessage=_.j0((a=V.data)==null?void 0:a.invalidAspectRatioError):V.errorMessage=V.errorMessage===""?_.j0((g=V.data)==null?void 0:g.invalidAspectRatioError):_.j0((u=V.data)==null?void 0:u.multiFileError);v9.jumpTo(4);break}return v9.yield(rH3(V.JSC$15891_imageId,v.detail[T],S.transformedData),8);case 8:r=v9.yieldResult,V.images.push(r),V.JSC$15891_imageId++;case 4:Z=p.next();v9.jumpTo(3);break;case 5:if(V.errorMessage!==""||V.addImageErrorMessage!==
"")return v9.return();Q?lfa(V.uploadManager,[V.images[V.images.length-1]]):lfa(V.uploadManager,V.images);V.images=[].concat(_.ui(V.images));V.selectedImageIndex=Q?Math.max(V.images.length-1,0):0;_.Hj(V.hostElement,"yt-backstage-multi-image-select");_.q1(v9)}})};
_.K.onThumbnailClick=function(v){if(v=v.event_.detail)this.selectedImageIndex=this.images.indexOf(v)};
_.K.validateImages=function(v){if(v.length>this.maxNumImagesPerPost){var Q;return _.j0((Q=this.data)==null?void 0:Q.multiImageExceedMaxImageCountError)}var V=1048576*this.maxFileSizeMb;v=v.filter(function(F){return F.size>V}).length;
if(v===0)return"";var E,b;v=v>1?(E=this.data)==null?void 0:E.multiFileError:(b=this.data)==null?void 0:b.fileSizeError;return _.j0(v)};
_.K.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ui(this.images));this.selectedImageIndex=0};
_.K.repositionImage=function(v){this.images[this.selectedImageIndex].previewCoordinates=v.event_.detail;this.images=[].concat(_.ui(this.images))};
_.K.getAllUploadStatuses=function(){var v=this,Q,V,E,b;return _.e(function(F){if(F.nextAddress==1)return F.yield(v.uploadManager.getAllUploadStatuses(),2);Q=F.yieldResult;V=_.L(Q);for(E=V.next();!E.done;E=V.next())if(b=E.value,b.encryptedBlobId===void 0)return F.return(qeZ(v.uploadManager));return F.return(Q)})};
_.K.hasImages=function(){return this.images.length>0};
_.K.cancel=function(){for(var v=this.uploadManager,Q=_.L(v.imagesUploadData),V=Q.next();!V.done;V=Q.next())v.cancel(V.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Hj(this.hostElement,"yt-backstage-multi-image-cancel")};
_.hr.Object.defineProperties(M0.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.imageUploadEndpoint)==null?void 0:(Q=v.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.imageUploadEndpoint)==null?void 0:(Q=v.imageValidationInfo)==null?void 0:Q.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var v,Q;if((v=this.data)==null?0:(Q=v.icon)==null?0:Q.iconType)return _.VK(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var v=this;return(this.images||[]).map(function(Q,V){return{renderer:{image:Q,selected:V===v.selectedImageIndex}}})}}});
M0.prototype.setUpImagePicker=M0.prototype.setUpImagePicker;M0.prototype.onRendererstamperFinished=M0.prototype.onRendererstamperFinished;M0.prototype.observeDragToReorder=M0.prototype.observeDragToReorder;M0.prototype.observeAddImageError=M0.prototype.observeAddImageError;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],M0.prototype,"rendererStamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);
_.W([_.Z7("#dropzone"),_.X("design:type",HTMLElement)],M0.prototype,"dropzone",void 0);_.W([_.Z7("#select-link"),_.X("design:type",HTMLElement)],M0.prototype,"selectLink",void 0);_.W([_.Z7("#thumbnail-drag-drop-area"),_.X("design:type",HTMLElement)],M0.prototype,"thumbnailDragDropArea",void 0);_.W([_.Z7("#add-image-button-container"),_.X("design:type",HTMLElement)],M0.prototype,"addImageButtonContainer",void 0);
_.W([_.Z7("#add-image-button"),_.X("design:type",HTMLElement)],M0.prototype,"addImageSelectButton",void 0);_.W([_.Z7("#image-preview-container"),_.X("design:type",Object)],M0.prototype,"JSC$15891_imagePreviewContainer",void 0);_.W([_.q(),_.X("design:type",Object)],M0.prototype,"addImageErrorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],M0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],M0.prototype,"errorMessage",void 0);
_.W([_.q(),_.X("design:type",Object)],M0.prototype,"imageUploadEndpoint",void 0);_.W([_.q(),_.X("design:type",Array)],M0.prototype,"images",void 0);_.W([_.q(),_.X("design:type",C0)],M0.prototype,"initialPicker",void 0);_.W([_.q(),_.X("design:type",C0)],M0.prototype,"addImagePicker",void 0);_.W([_.q(),_.X("design:type",T3)],M0.prototype,"uploadManager",void 0);_.W([_.q(),_.X("design:type",Object)],M0.prototype,"selectedImageIndex",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M0.prototype,"modern",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M0.prototype,"maxNumImagesPerPost",void 0);_.W([_.O("imageUploadEndpoint"),_.X("design:type",Number),_.X("design:paramtypes",[])],M0.prototype,"maxAspectRatio",null);_.W([_.O("imageUploadEndpoint"),_.X("design:type",Number),_.X("design:paramtypes",[])],M0.prototype,"maxFileSizeMb",null);
_.W([_.O("data.icon.iconType"),_.X("design:type",Object),_.X("design:paramtypes",[])],M0.prototype,"dropIcon",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],M0.prototype,"selectionCancel",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],M0.prototype,"previewCancel",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],M0.prototype,"dataForAddImageButton",null);
_.W([_.O("errorMessage"),_.X("design:type",String),_.X("design:paramtypes",[])],M0.prototype,"dropzoneClass",null);_.W([_.O("images"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],M0.prototype,"showImagesPreview",null);_.W([_.O("images"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],M0.prototype,"containMaxImages",null);_.W([_.ph("addImageErrorMessage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M0.prototype,"observeAddImageError",null);
_.W([_.ph("showImagesPreview"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M0.prototype,"observeDragToReorder",null);_.W([_.O("images","selectedImageIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],M0.prototype,"selectedImageData",null);_.W([_.O("images","selectedImageIndex"),_.X("design:type",Array),_.X("design:paramtypes",[])],M0.prototype,"thumbnailRenderers",null);
_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M0.prototype,"onRendererstamperFinished",null);_.W([_.ph("imageUploadEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M0.prototype,"setUpImagePicker",null);_.W([_.J({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],M0);
_.B(M0,"ytd-backstage-multi-image-select-renderer",function(){if(W2R!==void 0)return W2R;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return W2R=v},{mode:1});var X0Z;var afZ;var rPa;var OQ=function(){var v=_.z.apply(this,arguments)||this;v.boundCaptureFocus=function(Q){v.onCaptureFocus(Q)};
return v};
_.f(OQ,_.z);_.K=OQ.prototype;_.K.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.K.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.K.onCaptureFocus=function(v){_.uK(v).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.K.getIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.K.onSelect=function(){var v;if((v=this.data)==null?0:v.onSelectCommand)if(_.Y("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var Q;((Q=_.y(this.data.onSelectCommand.commandMetadata,_.Kt))==null?0:Q.url)?_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.ht().resolve(_.At).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.hr.Object.defineProperties(OQ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.j0(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],OQ.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OQ.prototype,"data",void 0);_.W([_.Z7("#item"),_.X("design:type",HTMLElement)],OQ.prototype,"item",void 0);_.W([_.O("data.label"),_.X("design:type",String),_.X("design:paramtypes",[])],OQ.prototype,"label",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],OQ.prototype,"value",null);_.W([_.J({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],OQ);
_.B(OQ,"ytd-privacy-dropdown-item-renderer",function(){if(rPa!==void 0)return rPa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return rPa=v},{mode:1});var DJ=function(){var v=_.z.apply(this,arguments)||this;v.value="";v.label="";v.disabled=!1;return v};
_.f(DJ,_.z);_.K=DJ.prototype;_.K.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"}}}};
_.K.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.K.dataChanged=function(){this.reset()};
_.K.valueChanged=function(){var v;if(this.value&&(v=this.data)!=null&&v.entries){v=_.L(this.data.entries);for(var Q=v.next();!Q.done;Q=v.next())if((Q=this.getRendererForEntry(Q.value))&&this.getItemRendererValue(Q)===this.value){this.label=this.ytComponentBehavior.getSimpleString(Q.label);break}}};
_.K.setInitialLabel=function(){if(this.data&&this.data.entries)for(var v=_.L(this.data.entries),Q=v.next();!Q.done;Q=v.next())if(Q=this.getRendererForEntry(Q.value)){if(Q.isSelected){this.label=this.ytComponentBehavior.getSimpleString(Q.label);break}this.data.label&&(this.label=this.data.label)}};
_.K.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var v=_.L(this.data.entries),Q=v.next();!Q.done;Q=v.next()){Q=this.getRendererForEntry(Q.value);var V=void 0;if((V=Q)==null?0:V.isSelected)return this.getItemRendererValue(Q)||-1}return-1};
_.K.getItemRendererValue=function(v){return"stringValue"in v||"int32Value"in v?v.stringValue||v.int32Value||null:null};
_.K.getRendererForEntry=function(v){return v.dropdownItemRenderer||v.privacyDropdownItemRenderer||v.navigationDropdownItemRenderer||null};
_.K.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("value-changed",this.value))};
_.K.updateValueFromBinding=function(v){this.value=v.detail.value};
DJ.prototype.valueChangedForBinding=DJ.prototype.valueChangedForBinding;DJ.prototype.valueChanged=DJ.prototype.valueChanged;DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],DJ.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],DJ.prototype,"value",void 0);_.W([_.q(),_.X("design:type",Object)],DJ.prototype,"label",void 0);_.W([_.Z7("#entries"),_.X("design:type",Object)],DJ.prototype,"entries",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DJ.prototype,"disabled",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DJ.prototype,"dataChanged",null);
_.W([_.wg("value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DJ.prototype,"valueChanged",null);_.W([_.ph("value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DJ.prototype,"valueChangedForBinding",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],DJ);
_.B(DJ,"ytd-flat-dropdown-renderer",function(){if(afZ!==void 0)return afZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return afZ=v},{mode:1});var $ix;var RA=function(){var v=_.z.apply(this,arguments)||this;v.quizOptions=[];v.explanationPlaceholderText="";v.optionPlaceholderText="";v.correctAnswerIndex=-1;v.isMarkAnswerTooltipShown=!1;v.timer=0;return v};
_.f(RA,_.z);_.K=RA.prototype;_.K.dataChanged=function(){this.optionPlaceholderText=_.j0(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.j0(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.K.onMarkCorrectAnswer=function(v){var Q,V=((Q=this.quizOptions[this.correctAnswerIndex])==null?void 0:Q.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[v.model.index]=Object.assign({},this.quizOptions[v.model.index],{explanationText:V,isCorrect:!0});this.correctAnswerIndex=v.model.index;this.quizOptions=[].concat(_.ui(this.quizOptions))};
_.K.updatePlaceholderTexts=function(){for(var v=!1,Q=[],V=0;V<this.quizOptions.length;V++){var E=this.optionPlaceholderText+" "+(V+1),b=void 0;((b=this.quizOptions[V])==null?void 0:b.placeholderText)!==E?(v=!0,Q.push(Object.assign({},this.quizOptions[V],{placeholderText:E}))):Q.push(this.quizOptions[V])}v&&(this.quizOptions=Q);this.isValid()?_.Hj(this.hostElement,"yt-commentbox-post-enable"):_.Hj(this.hostElement,"yt-commentbox-post-disable")};
_.K.getSimpleString=function(v){return _.j0(v)};
_.K.createQuizOptions=function(v){var Q=[],V;v=(V=v==null?void 0:v.minQuizOptions)!=null?V:0;for(V=0;V<v;V++)Q.push(this.createQuizOption());return Q};
_.K.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ui(this.quizOptions),[this.createQuizOption()]))};
_.K.onInput=function(){this.quizOptions=[].concat(_.ui(this.quizOptions))};
_.K.onExplanationInput=function(){_.Hj(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.K.onRemoveQuizOption=function(v){this.quizOptions.splice(v.model.index,1);v.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:v.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ui(this.quizOptions));this.quizOptions.length===0&&_.Hj(this.hostElement,"yt-quiz-attachment-dismiss")};
_.K.updateHintRenderer=function(){var v=this;clearTimeout(this.timer);this.timer=setTimeout(function(){v.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.K.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var v=0,Q=0,V=_.L(this.quizOptions),E=V.next();!E.done;E=V.next()){E=E.value;var b=void 0;if(((b=E.optionText)==null?void 0:b.trim())!==""||E.isCorrect){E.isCorrect&&Q++;b=void 0;if(this.hasCustomOptionText&&((b=E.optionText)==null?void 0:b.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;v++}}return v>=
Number(this.editorInfo.minQuizOptions)&&Q===1};
_.K.getPostCreateOptions=function(){for(var v=[],Q=_.L(this.quizOptions),V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0;((E=V.optionText)==null?void 0:E.trim())!==""&&v.push({pollOption:{text:V.optionText,explanation:V.explanationText},isCorrect:V.isCorrect})}return v};
_.K.getExplanationText=function(){var v;return((v=this.quizOptions[this.correctAnswerIndex])==null?void 0:v.explanationText)||""};
_.K.maybeDisplayMarkAnswerEduToolTip=function(){var v,Q,V,E,b,F,t;this.shouldShowMarkAnswerTooltip()&&((v=this.editorInfo)==null?0:(Q=v.markAnswerButton)==null?0:(V=Q.buttonRenderer)==null?0:(E=V.hint)==null?0:(b=E.hintRenderer)==null?0:(F=b.content)==null?0:(t=F.bubbleHintRenderer)==null?0:t.text)&&(_.qs.getInstance(),v=S6(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(v==null?void 0:v.length)>0&&this.optionSelectors&&_.FL(v[0],this.optionSelectors[0]))};
_.K.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var v=0,Q=_.L(this.quizOptions),V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0;((E=V.optionText)==null?void 0:E.trim())!==""&&v++;if(V.isCorrect)return!1}return v<2?!1:!0};
_.K.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.K.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.K.updateOptionTextFromBinding=function(v){if(v.target){var Q=Array.from(_.m9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(v.target);if(Q>=0){var V;this.quizOptions[Q].optionText=(V=v.detail.value)!=null?V:""}}};
_.hr.Object.defineProperties(RA.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.editorInfo)==null?void 0:(Q=v.addOptionButton)==null?void 0:Q.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 v,Q;return this.quizOptions.length<((Q=(v=this.editorInfo)==null?void 0:v.maxQuizOptions)!=null?Q:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(v){var Q;return(Q=v.optionText)==null?void 0:Q.trim()})}}});
RA.prototype.updatePlaceholderTexts=RA.prototype.updatePlaceholderTexts;RA.prototype.dataChanged=RA.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],RA.prototype,"editorInfo",void 0);_.W([_.q(),_.X("design:type",Array)],RA.prototype,"quizOptions",void 0);_.W([_.q(),_.X("design:type",Object)],RA.prototype,"explanationPlaceholderText",void 0);_.W([_.Pn(".option-selector-button"),_.X("design:type",Array)],RA.prototype,"optionSelectors",void 0);
_.W([_.wg("editorInfo"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],RA.prototype,"dataChanged",null);_.W([_.O("editorInfo","isAllowedToAddOption","quizOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],RA.prototype,"addAnswerButton",null);_.W([_.O("editorInfo","quizOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],RA.prototype,"isAllowedToAddOption",null);
_.W([_.wg("quizOptions"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],RA.prototype,"updatePlaceholderTexts",null);_.W([_.O("quizOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],RA.prototype,"hasCustomOptionText",null);_.W([_.J({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],RA);
_.B(RA,"ytd-backstage-quiz-editor-renderer",function(){if($ix!==void 0)return $ix;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return $ix=v},{mode:2});var Ifp;var Huq=(Kr.FIRSTDAYOFWEEK+1)%7;var miX;var UiR=[],v1A=0,Qia=0;v1A=0;Qia=24;if(.25*(Qia-v1A)<0)miX=[];else{for(var VLQ=v1A;VLQ<Qia;VLQ+=.25)UiR.push(VLQ);miX=UiR}var E18=miX.map(function(v){v=v*60*60;return{secondsSinceMidnight:v,text:(new sx(7)).format(new Date(0,0,0,0,0,v))}});var byN;var n0=function(){var v=_.z.apply(this,arguments)||this;v.skipNextOpenDialog=!1;v.errorMessage="";v.previousMonthLabel=_.Lt("PREVIOUS_MONTH_LABEL");v.nextMonthLabel=_.Lt("NEXT_MONTH_LABEL");return v};
_.f(n0,_.z);_.K=n0.prototype;_.K.attached=function(){var v=this,Q=new MutationObserver(function(){v.JSC$15933_calendarMain.scrollHeight>0&&(Q.disconnect(),v.calendarConfig&&v.calendarConfig.selectedDate&&v.scrollToDate())});
Q.observe(this.JSC$15933_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){Q.disconnect()},1E3)};
_.K.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.K.onDateTextChange=function(){if(this.calendarConfig){var v=this.validateDateText();v.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(v.details)):this.textbox.setAttribute("invalid","")}};
_.K.handleDayClick=function(v){v.model.day.date&&(this.commitDate(v.model.day.date),this.dialog.close())};
_.K.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var v=FYh(this.calendarConfig.selectedDate,this.renderData);v!==void 0&&this.JSC$15933_calendarMain.scrollToIndex(v)}};
_.K.scrollToNextMonth=function(){this.JSC$15933_calendarMain.scrollToIndex(this.JSC$15933_calendarMain.firstVisibleIndex+1)};
_.K.scrollToPrevMonth=function(){this.JSC$15933_calendarMain.firstVisibleIndex===0&&this.JSC$15933_calendarMain.scrollTo(0,0);this.JSC$15933_calendarMain.scrollToIndex(this.JSC$15933_calendarMain.firstVisibleIndex-1)};
_.K.onFormSubmit=function(v){v.preventDefault();this.calendarConfig&&(v=this.validateDateText(),v.isValid&&(this.commitDate(v.details),this.dialog.close()))};
_.K.onEscOrClickingOutside=function(v){v=v.detail.path&&!!v.detail.path.length&&v.detail.path[0];if(v.classList.contains("ytd-calendar-date-picker")){v===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var Q=0;Q<this.dropdownButton.children.length;Q++)this.dropdownButton.children[Q]===v&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}v=this.textbox.value!==this.dateText;Q=this.validateDateText();v&&Q.isValid&&this.commitDate(Q.details);this.dialog.close();this.textbox.value=
this.dateText};
_.K.commitDate=function(v){this.calendarConfig&&(this.set("calendarConfig.selectedDate",v),_.Hj(this.hostElement,"ytd-calendar-date-selected",v))};
_.K.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var v=this.textbox.value;var Q=new Date;v=(new GUt(2)).parse(v,Q,{validate:!0})===v.length?Eto(Q):void 0;if(!v)return this.errorMessage=_.Lt("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};Q=this.calendarConfig.start;var V=this.calendarConfig.end;if(mG9(v,Q))return this.errorMessage=_.Lt("ENTER_DATE_OR_LATER",{allowed_date:VQ9(Q)}),{isValid:!1,details:void 0};if(mG9(V,v))return this.errorMessage=
_.Lt("ENTER_DATE_OR_EARLIER",{allowed_date:VQ9(V)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:v}};
_.hr.Object.defineProperties(n0.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?VQ9(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var v=this.calendarConfig,Q=[],V=0;V<7;V++)Q.push(Kr.NARROWWEEKDAYS[(V+Huq)%7]);V=[];for(var E=new Date(v.start.year,v.start.month);E.getFullYear()<v.end.year||E.getFullYear()===v.end.year&&E.getMonth()<=v.end.month;){var b=V,F=b.push,t=E.getFullYear(),p=E.getMonth(),Z=v,d=void 0,w=[],A=Object.freeze({extraCssClass:"invisible",debugClass:""}),k=new Date(t,p),T=Eto(k);k=k.getDay();for(var c=Eto(new Date);T.month===
p;){k!==Huq&&d||(d=Array.from({length:7}).fill(A),w.push(d));var C={date:{year:t,month:p,day:T.day},extraCssClass:"",debugClass:""};Z.selectedDate&&C.date&&HbS(C.date,Z.selectedDate)&&(C.extraCssClass+=" selected");if(mG9(T,Z.start)||mG9(Z.end,T))C.extraCssClass+=" disabled";HbS(T,c)&&(C.extraCssClass+=" today");C.extraCssClass=C.extraCssClass.trim();d[(k-Huq+7)%7]=C;T=vth(T);k=(k+1)%7}F.call(b,{weeks:w,monthLabel:Kr.SHORTMONTHS[p]+" "+t,year:t,month:p,monthLabelExtraCssClass:w[0][2]===A?"shift-down-label":
""});E.setMonth(E.getMonth()+1)}return{months:V,daysOfWeekLabel:Q}}}}});
n0.prototype.onEscOrClickingOutside=n0.prototype.onEscOrClickingOutside;n0.prototype.scrollToDate=n0.prototype.scrollToDate;_.W([_.q(),_.X("design:type",Object)],n0.prototype,"calendarConfig",void 0);_.W([_.q(),_.X("design:type",Object)],n0.prototype,"skipNextOpenDialog",void 0);_.W([_.q(),_.X("design:type",Object)],n0.prototype,"errorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],n0.prototype,"previousMonthLabel",void 0);
_.W([_.q(),_.X("design:type",Object)],n0.prototype,"nextMonthLabel",void 0);_.W([_.Z7("#textbox"),_.X("design:type",HTMLInputElement)],n0.prototype,"textbox",void 0);_.W([_.Z7("#calendar-dialog"),_.X("design:type",Object)],n0.prototype,"dialog",void 0);_.W([_.Z7("#calendar-main"),_.X("design:type",Object)],n0.prototype,"JSC$15933_calendarMain",void 0);_.W([_.Z7("#date-picker"),_.X("design:type",HTMLElement)],n0.prototype,"dropdownButton",void 0);
_.W([_.O("calendarConfig.selectedDate"),_.X("design:type",String),_.X("design:paramtypes",[])],n0.prototype,"dateText",null);_.W([_.O("calendarConfig","calendarConfig.selectedDate"),_.X("design:type",Object),_.X("design:paramtypes",[])],n0.prototype,"renderData",null);_.W([_.ph("renderData","calendarConfig.selectedDate"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],n0.prototype,"scrollToDate",null);
_.W([_.tM("iron-overlay-canceled"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],n0.prototype,"onEscOrClickingOutside",null);_.W([_.D7({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],n0);
_.B(n0,"ytd-calendar-date-picker",function(){if(byN!==void 0)return byN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return byN=v},{mode:2});var F1R=_.Lt("UTC_OFFSET_FORMAT",{utc_offset:(new sx("Z")).format(new Date)}),K1p=(new Date).getTimezoneOffset()*-60,iyZ=new Date,L1q,tLx=g8(iyZ.getTimezoneOffset());L1q=a1p($CS(tLx,iyZ));var pTa=_.Lt("LOCAL_TIME_GMT_LABEL",{gmt_text:L1q.replace("+0","+").replace("-0","-").replace(":00","")}),ll=function(){var v=_.z.apply(this,arguments)||this;v.selectedTimeIndex=0;v.selectedTimezoneIndex=0;v.timeOfDayOptions=E18;return v};
_.f(ll,_.z);_.K=ll.prototype;_.K.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var v=Qv3();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=v,this.selectedTimeIndex=0;else{var Q=bmr(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},v,{selectedDate:Q.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(V){return V.secondsSinceMidnight===Q.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.K.onDatePicked=function(v){this.selectedDate=v.detail};
_.K.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Hj(this.hostElement,"ytd-date-time-selection-cancelled")};
_.K.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var v=this.selectedDate;v=new Date(v.year,v.month,v.day);_.Hj(this.hostElement,"ytd-date-time-selection-update",Math.floor(v.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+v.getTimezoneOffset()*60))}};
_.K.getTimezoneFormat=function(v){return v.localizedDisplayText?v.localizedDisplayText:_.Lt("TIMEZONE_FORMAT",{utc_offset_text:""+v.localizedUtcOffset,city_name:""+v.localizedName})};
_.K.updateSelectedTimeIndexFromBinding=function(v){this.selectedTimeIndex=v.detail.value};
_.K.updateSelectedTimezoneIndexFromBinding=function(v){this.selectedTimezoneIndex=v.detail.value};
_.hr.Object.defineProperties(ll.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data.timezoneOptions;var Q={name:"Etc/Unknown",localizedName:_.Lt("LOCAL_TIME_LABEL"),localizedUtcOffset:F1R,utcOffsetSec:""+K1p,localizedDisplayText:pTa};v?v.length&&v[0].name!==Q.name&&(v[0].localizedDisplayText||(Q.localizedDisplayText=""),v.unshift(Q)):v=[Q];return v}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
ll.prototype.onDateTimeTimezoneChange=ll.prototype.onDateTimeTimezoneChange;ll.prototype.onDatePicked=ll.prototype.onDatePicked;ll.prototype.updateDefaultSelectedValue=ll.prototype.updateDefaultSelectedValue;_.W([_.q(),_.X("design:type",Object)],ll.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],ll.prototype,"calendarConfig",void 0);_.W([_.q(),_.X("design:type",Object)],ll.prototype,"selectedDate",void 0);_.W([_.q(),_.X("design:type",Object)],ll.prototype,"selectedTimeIndex",void 0);
_.W([_.q(),_.X("design:type",Object)],ll.prototype,"selectedTimezoneIndex",void 0);_.W([_.Z7("#time-listbox"),_.X("design:type",Object)],ll.prototype,"timeListBox",void 0);_.W([_.Z7("#timezone-listbox"),_.X("design:type",Object)],ll.prototype,"timezoneListBox",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ll.prototype,"rendererStamperBehavior",void 0);_.W([_.O("data.timezoneOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],ll.prototype,"timeZones",null);
_.W([_.wg("data","timeZones"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ll.prototype,"updateDefaultSelectedValue",null);_.W([_.O("selectedTimezoneIndex","timeZones"),_.X("design:type",Object),_.X("design:paramtypes",[])],ll.prototype,"selectedTimezone",null);_.W([_.O("selectedTimeIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],ll.prototype,"selectedTime",null);
_.W([_.tM("ytd-calendar-date-selected"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ll.prototype,"onDatePicked",null);_.W([_.ph("selectedTimezone","selectedTime","selectedDate"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ll.prototype,"onDateTimeTimezoneChange",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],ll);
_.B(ll,"ytd-date-time-picker-renderer",function(){if(Ifp!==void 0)return Ifp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Ifp=v},{mode:1});var eiZ;var q0=function(){var v=_.z.apply(this,arguments)||this;v.boundOnTapDismissButton=function(){v.dismissTapHandler()};
v.dismissButtonOverrides={size:"XS"};return v};
_.f(q0,_.z);q0.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}}}}}};
q0.prototype.dismissTapHandler=function(){_.Hj(this.hostElement,"yt-backstage-attachment-dismissed")};
q0.prototype.computeAttachmentType=function(v){return v?v.backstageImageRenderer?"image":v.videoRenderer?"video":"none":"none"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],q0.prototype,"attachmentPreview",void 0);_.W([_.q(),_.X("design:type",Object)],q0.prototype,"dismissButton",void 0);_.W([_.q(),_.X("design:type",Object)],q0.prototype,"boundOnTapDismissButton",void 0);
_.W([_.q(),_.X("design:type",Object)],q0.prototype,"dismissButtonOverrides",void 0);_.W([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.X("design:type",String)],q0.prototype,"attachmentType",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],q0);
_.B(q0,"ytd-backstage-dismissable-attachment",function(){if(eiZ!==void 0)return eiZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return eiZ=v},{mode:1});var ZyA;var SR=function(){var v=_.z.apply(this,arguments)||this;v.selectedVideoId=void 0;v.picker=void 0;v.dismissButtonOverrides={size:"XS"};v.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return v};
_.f(SR,_.z);_.K=SR.prototype;_.K.onServiceRequestCompleted=function(v){v.stopPropagation()};
_.K.handleAddVideoPreviewAction=function(v){v=this.get("addVideoPreviewAction",v);this.onGetVideoPreviewSuccess(v)};
_.K.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}}}}}};
_.K.onLaunchVideoPicker=function(v){var Q=this,V=_.j0(this.get("addVideoLinkAction.title",v)),E=this.get("addVideoLinkAction.onePickHostId",v);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",v);E&&(this.picker||(V=_.BXZ(_.pyE(E).setTitle(V).addView(zdp()).addView(SHZ()),function(b){Q.onPickVideo(b)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",v)||V.addView("youtube"),this.picker=V.build()),this.picker.setVisible(!0))};
_.K.onPickVideo=function(v){if(v)if(v.action==="cancel")_.Hj(this.hostElement,"yt-video-link-button-cancel");else if(v.action==="picked"){v=v.docs;if(!v||v.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(v=(v==null?0:v.length)?v[0]:void 0)?v.id:void 0;this.setVideoPreview()}};
_.K.setVideoPreview=function(){var v=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){v.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.K.onGetVideoPreviewSuccess=function(v){if(v&&v.videoPreview&&v.cancelButton)this.videoPreview=v.videoPreview,this.cancelButton=v.cancelButton,_.Hj(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.K.onGetVideoPreviewError=function(){this.cancel()};
_.K.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Hj(this.hostElement,"yt-video-link-cancel")};
_.K.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
SR.prototype.onServiceRequestCompleted=SR.prototype.onServiceRequestCompleted;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],SR.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],SR.prototype,"videoPreview",void 0);_.W([_.q(),_.X("design:type",Object)],SR.prototype,"cancelButton",void 0);_.W([_.q(),_.X("design:type",Object)],SR.prototype,"getVideoPreviewCommand",void 0);_.W([_.q(),_.X("design:type",Object)],SR.prototype,"dismissButtonOverrides",void 0);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],SR.prototype,"onServiceRequestCompleted",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],SR);
_.B(SR,"ytd-backstage-video-link-attachment",function(){if(ZyA!==void 0)return ZyA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ZyA=v},{mode:1});var P2Z;var dtX;var hiV;var z3=function(){return _.z.apply(this,arguments)||this};
_.f(z3,_.z);z3.prototype.dataChanged=function(){this.active=!1};
z3.prototype.onTap=function(){_.Hj(this.hostElement,"yt-select-emoji-suggestion",this.data)};
z3.prototype.identity=function(v){return v};
_.hr.Object.defineProperties(z3.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;if((v=this.data)==null?0:(Q=v.image)==null?0:(V=Q.thumbnails)==null?0:(E=V[0])==null?0:E.url)return v=this.data.image.thumbnails[0].url,v.startsWith("data:image/svg+xml")?Nj(v):_.oE(v)}}});
z3.prototype.dataChanged=z3.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],z3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],z3.prototype,"active",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],z3.prototype,"dataChanged",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],z3.prototype,"imageSrc",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],z3);
_.B(z3,"ytd-emoji-suggestion",function(){if(hiV!==void 0)return hiV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hiV=v},{mode:1});var wTx=/.*([:@#].*?)$/,JV=function(){var v=_.z.apply(this,arguments)||this;v.suggestions=[];v.suggestionIndex=-1;v.JSC$15961_lastSuggestionRange=null;return v};
_.f(JV,_.z);_.K=JV.prototype;_.K.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.K.getSuggestions=function(v){var Q=[],V=sLq(this.emojiManager,v.substr(0,3));if(V)for(var E in V)if(E.toLocaleLowerCase().indexOf(v)===0){var b=V[E];if(b&&b.emojiId){b=LA(this.emojiManager,b.emojiId);var F=void 0,t=void 0,p=void 0,Z=void 0,d=((F=b)==null?0:F.isCustomEmoji)?(t=b)==null?void 0:(p=t.shortcuts)==null?void 0:p[0]:(Z=b)==null?void 0:Z.emojiId;F=void 0;Q.push({suggestion:{image:(F=b)==null?void 0:F.image,alt:d,text:E}});if(Q.length>=64)break}}return Q?Q.sort(function(w,A){return A.suggestion.text<
w.suggestion.text?-1:A.suggestion.text===w.suggestion.text?0:1}):null};
_.K.insertSuggestion=function(v){_.Hj(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15961_lastSuggestionRange,text:v.alt});this.dropdown.opened=!1};
_.K.updateSuggestionsAtCaret=function(v){this.updateSuggestions(v,this.retrieveTextBeforeRange(v))};
_.K.offsetStartOfRangeBy=function(v,Q){v.startOffset>=Q&&v.setStart(v.startContainer,v.startOffset-Q)};
_.K.updateSuggestions=function(v,Q){var V=this;this.JSC$15961_lastSuggestionRange&&(this.JSC$15961_lastSuggestionRange.detach(),this.JSC$15961_lastSuggestionRange=null);if((Q=wTx.exec(Q))&&Q.length&&(Q=Q[Q.length-1].toLocaleLowerCase(),Q.length>2||Q===":_")&&(this.offsetStartOfRangeBy(v,Q.length),this.JSC$15961_lastSuggestionRange=v,(v=this.getSuggestions(Q))&&v.length)){this.suggestions=v;_.PE(this,function(){V.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(v.length-1);return}this.dropdown.opened=!1};
_.K.onKeyDown=function(v){if(this.dropdown.opened)switch(v.key){case "Escape":this.dropdown.opened=!1;v.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);v.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);v.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),v.preventDefault()}};
_.K.onKeyUp=function(v,Q){switch(v.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(Q);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(Q)}};
_.K.onKeyPress=function(v){v.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),v.preventDefault())};
_.K.changeSuggestionIndex=function(v){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(v+this.suggestions.length)%this.suggestions.length,v=this.dropdownContent.children[this.suggestionIndex],v.active=!0,this.dropdownContent.scrollTop=v.offsetTop)};
_.K.retrieveTextBeforeRange=function(v){var Q=v.startContainer;return Q&&Q.nodeType===Node.TEXT_NODE?Q.textContent.substr(0,v.startOffset):""};
JV.prototype.onKeyPress=JV.prototype.onKeyPress;JV.prototype.onKeyUp=JV.prototype.onKeyUp;JV.prototype.onKeyDown=JV.prototype.onKeyDown;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Array)],JV.prototype,"suggestions",void 0);_.W([_.q(),_.X("design:type",_.KA)],JV.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",Number)],JV.prototype,"verticalSuggestionsOffset",void 0);
_.W([_.Z7("#dropdown"),_.X("design:type",Object)],JV.prototype,"dropdown",void 0);_.W([_.Z7("#dropdown-content"),_.X("design:type",HTMLDivElement)],JV.prototype,"dropdownContent",void 0);_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],JV.prototype,"onKeyDown",null);_.W([_.tM("keyup"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent,Range]),_.X("design:returntype")],JV.prototype,"onKeyUp",null);
_.W([_.tM("keypress"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],JV.prototype,"onKeyPress",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-emoji-input"})],JV);
_.B(JV,"ytd-emoji-input",function(){if(dtX!==void 0)return dtX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dtX=v},{mode:2});var AAA;var N0=function(){var v=_.z.apply(this,arguments)||this;v.hasMaxOptions=!1;return v};
_.f(N0,_.z);_.K=N0.prototype;_.K.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.K.setPrefilledChoices=function(v){var Q=this;this.set("pollOptions",[]);var V;for(V=0;V<Math.min(v.length,this.data.maxPollOptions);V++)this.push("pollOptions",v[V].substring(0,this.data.maxPollOptionChars));for(;V<this.data.minPollOptions;V++)this.push("pollOptions","");this.hasMaxOptions=V>=this.data.maxPollOptions;_.PE(this,function(){for(var E=Q.pollOptions,b=_.m9(Q.hostElement).querySelectorAll(".poll-option-input"),F=0;F<b.length;F++)b[F].value=E[F]})};
_.K.focusChanged=function(){_.F6(this.hostElement)};
_.K.onInput=function(){var v=this;_.Nf(this,"onInput",function(){v.isValid()?_.Hj(v.hostElement,"yt-commentbox-post-enable"):_.Hj(v.hostElement,"yt-commentbox-post-disable")},300)};
_.K.setPollOptions=function(){var v=[],Q,V=((Q=this.data)==null?0:Q.minPollOptions)?this.data.minPollOptions:0;for(Q=0;Q<V;Q++)v.push("");return v};
_.K.addPollOption=function(){var v=this;_.Hj(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.XT.addLowPriorityJob(function(){var Q;(Q=_.m9(v.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||Q.focus()})};
_.K.onRemovePollOption=function(v){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Hj(this.hostElement,"yt-poll-attachment-dismiss")):(v=this.repeat.indexForElement(v.target.parentNode),v!==null&&(this.splice("pollOptions",v,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Hj(this.hostElement,"yt-commentbox-post-enable"))))};
_.K.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.K.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var v=0,Q=this.pollOptions.length;v<Q;v++)if(this.pollOptions[v].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.K.getPollOptions=function(){return this.pollOptions};
_.K.setPollOptionsFromInputs=function(){for(var v=_.m9(this.hostElement).querySelectorAll(".poll-option-input"),Q=0;Q<v.length;Q++)this.pollOptions[Q]=v[Q].value.trim()};
_.K.clearPollOptions=function(){var v=_.m9(this.hostElement).querySelectorAll(".poll-option-input");v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())Q.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.K.getSimpleString=function(v){return _.j0(v)};
_.K.updateValueFromBinding=function(v){if(v.target&&this.pollOptions){var Q=Array.from(_.m9(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(v.target);if(Q>=0){var V;this.pollOptions[Q]=(V=v.detail.value)!=null?V:"";this.notifyPath("pollOptions."+Q)}}};
N0.prototype.dataChanged=N0.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],N0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Array)],N0.prototype,"pollOptions",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],N0.prototype,"hasMaxOptions",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],N0.prototype,"enableCreationBox",void 0);
_.W([_.Z7("#repeat"),_.X("design:type",GP)],N0.prototype,"repeat",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],N0.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-poll-attachment"})],N0);
_.B(N0,"ytd-poll-attachment",function(){if(AAA!==void 0)return AAA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return AAA=v},{mode:2});var koV;var TTV;var Yq8;var yAX;var xC=function(){return _.z.apply(this,arguments)||this};
_.f(xC,_.z);_.hr.Object.defineProperties(xC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xC.prototype,"rendererBehaviors",void 0);_.W([_.q(),_.X("design:type",Object)],xC.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],xC.prototype,"focused",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("focused"),_.X("design:type",Object),_.X("design:paramtypes",[])],xC.prototype,"ariaSelected",null);_.W([_.D7({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],xC);
_.B(xC,"yt-user-mention-suggestion-renderer",function(){if(yAX===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Yq8===void 0&&(Yq8=document.createElement("template"));var E=Yq8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);yAX=v}v=yAX;return v},{mode:2});var cAp;var fkR;var B8=function(){var v=_.z.apply(this,arguments)||this;v.focusedSuggestionIndex=-1;return v};
_.f(B8,_.z);_.K=B8.prototype;_.K.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.K.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.K.setFocusedSuggestionIndex=function(v){!this.data||!this.data.suggestions||v<0||v>=this.data.suggestions.length||(this.focusedSuggestionIndex=v,v=this.getSuggestionId(v),this._setFocusedSuggestionId(v))};
_.K.advanceSuggestion=function(v){this.focusedSuggestionIndex===-1||v!==-1&&v!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+v),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.K.ensureSuggestionVisible=function(v){v=this.getSuggestionId(v);v=_.m9(this.hostElement).querySelector("[id="+v+"]");v!=null&&(v.offsetTop<this.hostElement.scrollTop?v.scrollIntoView(!0):v.offsetTop+v.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&v.scrollIntoView(!1))};
_.K.getSuggestionId=function(v){return"user-mention-suggestion-"+v};
_.K.onSuggestionTap=function(v){var Q=_.y(v.model.item,rj8);this.ytRendererBehavior.logExplicitClick(Q);_.Hj(this.hostElement,"yt-user-mention-suggestion-selected",{data:Q,index:v.model.index})};
_.K.onSuggestionMouseMove=function(v){v.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(v.model.index)};
_.K.isSuggestionFocused=function(v,Q){return v===Q};
_.K.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.K.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("focused-suggestion-id-changed",this.focusedSuggestionId))};
B8.prototype.focusedSuggestionIdChangedForBinding=B8.prototype.focusedSuggestionIdChangedForBinding;B8.prototype.onDomChange=B8.prototype.onDomChange;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],B8.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],B8.prototype,"focusedSuggestionIndex",void 0);_.W([_.q({readOnly:!0}),_.X("design:type",String)],B8.prototype,"focusedSuggestionId",void 0);
_.W([_.tM("dom-change"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],B8.prototype,"onDomChange",null);_.W([_.ph("focusedSuggestionId"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],B8.prototype,"focusedSuggestionIdChangedForBinding",null);_.W([_.D7({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],B8);
_.B(B8,"yt-user-mention-suggestions-dropdown",function(){if(fkR===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;cAp===void 0&&(cAp=document.createElement("template"));var E=cAp;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);fkR=v}v=fkR;return v},{mode:2});var gr=function(){var v=_.z.apply(this,arguments)||this;v.suggestionsResponse=null;v.activeMention=null;v.selectionChangeListener=v.onSelectionChange.bind(v);v.handlesEnabled=_.Y("enable_handles_in_mention_suggest_posts");v.handlesInMentionSuggestionsEnabled=_.Y("handles_in_mention_suggest_posts");v.zeroPrefixMentionSuggestionEnabled=_.Y("enable_zero_prefix_mention_suggestion_web");v.pendingQuery=null;v.flowNonce=null;return v};
_.f(gr,_.z);_.K=gr.prototype;_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.K.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.K.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.K.hasSuggestions=function(v){return!!(v&&v.suggestions&&v.suggestions.length>0)};
_.K.onInput=function(){var v=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var Q=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),V=this.activeMention.JSC$11423_getText().slice(-1)===" ",E=this.activeMention.JSC$11423_getText().slice(-2,-1)===" ",b="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11423_getText().slice(-2,
-1))>=0;b=this.zeroPrefixMentionSuggestionEnabled&&b;if(this.activeMention.isCollapsed()||(Q||E||b)&&V)this.cancelActiveMention();else{var F=this.activeMention.JSC$11423_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Nf(this,"requestSuggestions",function(){v.requestSuggestions(F)},100)}}}};
_.K.onServiceRequestSent=function(v){v.stopPropagation()};
_.K.onServiceRequestCompleted=function(v){v.stopPropagation();v=v.detail.data;v.query&&(!this.pendingQuery||this.pendingQuery!==v.query)||!this.zeroPrefixMentionSuggestionEnabled&&v.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=v,this.hasSuggestions(v)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.K.onServiceRequestError=function(v){v.stopPropagation()};
_.K.onUserMentionSuggestionSelected=function(v){this.selectSuggestion(v.detail.data,v.detail.index)};
_.K.onSelectionChange=function(){if(this.activeMention){var v=_.Qt(),Q=this.activeMention.JSC$11423_containsRange(v);v=v&&this.containsHelper(this.dropdown,v.getContainer());Q||v||this.cancelActiveMention()}};
_.K.containsHelper=function(v,Q){var V;if(((V=window.ShadyDOM)==null?void 0:V.noPatch)===!0)return v.contains(Q);for(;Q;){if(Q===v)return!0;Q=Q instanceof ShadowRoot?Q.host:Q.parentNode}return!1};
_.K.maybeStartSuggest=function(){var v=_.Qt();if(v&&v.isCollapsed()){var Q=v.JSC$11423_getStartNode(),V=v.JSC$11423_getStartOffset();if(Q instanceof Text&&!(V<1)){var E=Q.textContent;!(E=E&&E.charAt(V-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(E)<0||(this.activeMention=_.r9(Q,V-1,v.JSC$11423_getEndNode(),v.JSC$11423_getEndOffset()),this.flowNonce=fC(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.K.updateActiveMention=function(){if(this.activeMention){var v=_.Qt();v&&v.isCollapsed()&&(this.activeMention=_.r9(this.activeMention.JSC$11423_getStartNode(),this.activeMention.JSC$11423_getStartOffset(),v.JSC$11423_getEndNode(),v.JSC$11423_getEndOffset()))}};
_.K.requestSuggestions=function(v){if(this.activeMention){var Q={suggestions_query:v};this.pendingQuery=v;_.vp(this.hostElement,[this.suggestionsEndpoint,Q])}};
_.K.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()};
_.K.focusPreviousSuggestion=function(v){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),v.preventDefault())};
_.K.focusNextSuggestion=function(v){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),v.preventDefault())};
_.K.selectFocusedSuggestion=function(v){if(this.hasSuggestions(this.suggestionsResponse)){var Q=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.y(Q,rj8)&&(this.selectSuggestion(_.y(Q,rj8),this.dropdown.focusedSuggestionIndex),v.preventDefault())}};
_.K.selectSuggestion=function(v,Q){if(v){var V=this.activeMention;if(V){var E=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&v.handle?_.x$(E,"\u00a0\u2068@"+v.handle+"\u2069\u00a0"):this.handlesEnabled?_.x$(E,"\u00a0"+v.displayName+"\u00a0"):_.x$(E,"\u00a0@"+v.displayName+"\u00a0");$P(E,"/channel/"+v.channelId);E.classList.add("yt-formatted-string","yt-simple-endpoint");E.setAttribute("spellcheck","false");V.isCollapsed()||V.JSC$11423_removeContents();V.insertNode(E,!0);v=document.createTextNode(" ");
E.parentNode.insertBefore(v,E.nextSibling);window.getSelection().collapse(v,1);Q={suggestionSelected:{suggestionIndex:Q}};if(this.zeroPrefixMentionSuggestionEnabled){var b;Q.suggestionSelected.isZeroPrefix=((b=this.suggestionsResponse)==null?void 0:b.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",Q);this.cancelActiveMention();_.Hj(this.hostElement,"yt-mention-inserted")}}};
_.K.getPositionTarget=function(v){return v&&v.getBrowserRangeObject()};
_.K.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.K.onFocusedSuggestionIdChanged=function(v){var Q=_.fJZ(this.hostElement)[0];Q&&(v.detail.value?Q.setAttribute("aria-activedescendant",v.detail.value):Q.removeAttribute("aria-activedescendant"))};
_.K.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.K.logGELEvent=function(v,Q){v={eventType:v,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};Q&&(v=Object.assign(v,Q));_.X0("userMentionAutoCompleteBoxEvent",v)};
gr.prototype.onDomChange=gr.prototype.onDomChange;gr.prototype.onUserMentionSuggestionSelected=gr.prototype.onUserMentionSuggestionSelected;gr.prototype.onServiceRequestError=gr.prototype.onServiceRequestError;gr.prototype.onServiceRequestCompleted=gr.prototype.onServiceRequestCompleted;gr.prototype.onServiceRequestSent=gr.prototype.onServiceRequestSent;gr.prototype.onInput=gr.prototype.onInput;_.W([_.M(_.zI),_.X("design:type",Object)],gr.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],gr.prototype,"suggestionsEndpoint",void 0);_.W([_.q(),_.X("design:type",Object)],gr.prototype,"suggestionsResponse",void 0);_.W([_.q(),_.X("design:type",Object)],gr.prototype,"activeMention",void 0);_.W([_.Z7("#dropdown"),_.X("design:type",Object)],gr.prototype,"dropdown",void 0);_.W([_.Z7("#iron-dropdown"),_.X("design:type",Object)],gr.prototype,"ironDropdown",void 0);
_.W([_.tM("input"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],gr.prototype,"onInput",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gr.prototype,"onServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gr.prototype,"onServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gr.prototype,"onServiceRequestError",null);_.W([_.tM("yt-user-mention-suggestion-selected"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gr.prototype,"onUserMentionSuggestionSelected",null);
_.W([_.tM("dom-change"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gr.prototype,"onDomChange",null);_.W([_.D7({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],gr);
_.B(gr,"yt-user-mention-autosuggest-input",function(){if(TTV===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;koV===void 0&&(koV=document.createElement("template"));var E=koV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);TTV=v}v=TTV;return v},{mode:2});var sQ=null;
_.fh({is:"ytd-commentbox",_template:function(){if(P2Z!==void 0)return P2Z;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return P2Z=v},
behaviors:[_.Qwm.YtHostElementBehavior,_.zI,_.SI.YtActionHandlerBehavior,_.VL.YtComponentBehavior,_.T9.YtRendererstamperBehavior,_.FqQ.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"aadcGuidelinesStateEntityPayload",Q)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(v,Q){return _.Fg(v.entities,"commentboxStateEntity",Q)},
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 _.tj}},
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:_.Y("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.Y("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",_.Lh(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(v){this.fire(v?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(v){this.set("submitButtonDisabled",void 0);this.clear();v&&this.computeIsEmojiButtonDisplayed_(v)&&(v=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&v.updateEmojiCategories()},
observePrefilledImage_:function(v,Q,V){this.isValidPrefilledImage_(v,Q,V)&&(this.prefilledAttachment_="image",this.prefilledImageData_=Q,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(v,Q){this.isValidPrefilledVideo_(v,Q)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(v){v&&v.pollData&&v.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(v.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.yg();this.focus()},
detached:function(){document.removeEventListener("tap",_.Lh(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(v){v=v.detail;v=v.isCustomEmoji?v.shortcuts[0]:v.emojiId;var Q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Q,v);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var v=_.Qt();if(v){v=v.getBrowserRangeObject();for(var Q=v.commonAncestorContainer;Q;){if(Q===this.getEditableTextArea_())return v;Q=Q.parentNode}}v=this.getEditableTextArea_();v=_.a4(v,v.childNodes.length);v.select();return v.getBrowserRangeObject()},
insertTextWithEmojis_:function(v,Q,V){(Q=this.emojiManager.createDocumentFragment(Q,!0,!1,V===void 0?!0:V))&&Q.childNodes.length!==0&&(v.collapsed||v.deleteContents(),V=Q.lastChild,v.insertNode(Q),_.dCN(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var v=_.Qt();if(v){var Q=v.JSC$11423_getStartNode(),V=v.JSC$11423_getEndNode();if(KYb(Q)&&KYb(V)){var E=v.JSC$11423_getStartOffset(),b;if(_.Fv&&Q.nodeType===Node.ELEMENT_NODE&&(b=_.Pax(Q)))_.a4(b,0).select();else{b=mC(Q)?Q:_.XH(Q,mC);var F=mC(V)?V:_.XH(V,mC);if(b||F)if(v.isCollapsed()){if(Q.nodeType===Node.TEXT_NODE){v=!0;E===Q.length&&(v=!1);if(sQ==="end"||sQ==="right")v=!1;Q=Q.parentNode;v=[].concat(_.ui(Q.parentNode.childNodes)).indexOf(Q)+(v?0:1);_.a4(Q.parentNode,
v).select()}}else b?b.previousSibling&&b.previousSibling.length>0?_.r9(V,v.JSC$11423_getEndOffset(),b.previousSibling,b.previousSibling.length-1).select():(Q=document.createTextNode("\u200b"),b.parentNode.insertBefore(Q,b),_.r9(V,v.JSC$11423_getEndOffset(),Q,0).select()):F&&(F.nextSibling&&F.nextSibling.length>0?_.r9(Q,v.JSC$11423_getStartOffset(),F.nextSibling,1).select():(V=document.createTextNode("\u200b"),F.parentNode.insertBefore(V,F.nextSibling),_.r9(Q,v.JSC$11423_getStartOffset(),V,V.length).select()));
sQ=null}}else sQ=null}else sQ=null},
leftKeyPressed_:function(){sQ="left"},
rightKeyPressed_:function(){sQ="right"},
endKeyPressed_:function(){sQ="end"},
maybeDeleteChip_:function(){var v=Zmr(!0);if(v){var Q=_.Qt(),V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();_.u8(V,Q,v,v.childNodes.length).select()}},
maybeBackspaceChip_:function(){var v=Zmr(!1);if(v){var Q=_.Qt(),V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();_.u8(V,Q,v,0).select()}},
maybeBackspaceChipWordMode_:function(v){var Q=_.Qt();if(Q.isCollapsed()){var V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();var E=PWt(V,Q,!0);E&&(_.u8(V,Q,E,0).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(v){var Q=_.Qt();if(Q.isCollapsed()){var V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();var E=PWt(V,Q,!1);E&&(_.u8(V,Q,E,E.childNodes.length).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
onTap_:function(v){if(!v.defaultPrevented&&(v.currentTarget.tagName==="YTD-COMMENTBOX"&&mC(v.target)&&v.preventDefault(),this.isEmojiPickerDisplayed)){var Q=this.$$("#emojis"),V=this.$$("#emoji-button"),E=this.getEditableTextArea_();if((v=v.path?v.path:v.composedPath&&v.composedPath())&&!v.includes(Q)&&!v.includes(E)&&!v.includes(V))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(v,Q,V){return v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Q!==void 0&&Q.encryptedBlobId!==null&&Q.sourceExternalVideoId!==null&&V!==void 0&&V.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(v,Q){return v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!Q&&!!Q.videoRenderer&&!!Q.videoRenderer.videoId},
isValidPrefilledAttachment_:function(v,Q,V){return this.isValidPrefilledImage_(v,Q,V)||this.isValidPrefilledVideo_(v,V)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.Y("enable_multi_image_post_creation")){var v=this.$$("ytd-backstage-multi-image-select-renderer");v&&v.hasImages()&&v.cancel()}else(v=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&v.cancel();(v=this.$["poll-attachment"])&&this.hasPoll_&&v.clearPollOptions();(v=this.$["image-poll-attachment"])&&this.hasImagePoll_&&v.resetPollOptions();(v=this.$["quiz-attachment"])&&this.hasQuiz_&&v.resetQuizOptions();
(v=this.$["video-link-attachment"])&&this.hasVideo_&&v.cancel();(v=this.$["access-restrictions-selector"].firstElementChild)&&v.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.m9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.m9(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(v,Q){v=LYQ(v,this.emojiManager,Q).cloneNode(!0);for(Q=v.firstChild;Q;)if(Q.nodeType!==1)Q=Q.nextSibling;else switch(Q.tagName){case "BR":var V=_.ly();_.ydq(V,Q);Q=V.nextSibling;break;case "DIV":(V=Q.lastChild)&&Q.nextSibling&&_.JZ(_.ly(),V);Q.previousSibling&&(Q.previousSibling.nodeType===1||Q.previousSibling.nodeType===3&&!Q.previousSibling.textContent.endsWith("\n"))&&_.zm(_.ly(),Q);V&&V.nodeName==="BR"&&_.ng(V);V=Q;Q.hasChildNodes()?(Q=Q.firstChild,
_.cdx(V)):(Q=Q.nextSibling,_.ng(V));break;default:Q=Q.nextSibling}return dym(v)},
onAddImageError_:function(v){v.stopPropagation();this.errorMessage_=_.u3(v.detail)},
setTextAreaValue_:function(v){v||(v="");var Q=this.getEditableFormattedString_();Q.text="";this.getEditableTextArea_().innerText="";typeof v==="string"&&(v={runs:[{text:v}]});Q.text=v},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();sQ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var v=this.getEditableTextArea_();v&&(_.a4(v,v.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.r7("HTML_DIR")==="rtl"){var v=this.getEditableTextArea_(),Q=this.getTextAreaValue()!==""?"auto":"rtl";v.setAttribute("dir",Q)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var v;return U6h((v=this.$["quiz-attachment"])==null?void 0:v.getExplanationText())||U6h(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var v=null;if(this.isEmojiButtonDisplayed){var Q=this.getInputRange_();Q&&(v=this.emojiInput.retrieveTextBeforeRange(Q))}this.insertText_(v,!0);this.updateCharCount_();this.setSubmitButton_();v=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=v.scrollHeight>v.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var v=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:v})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(v){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(v)},
onPasteEmoji_:function(v){v.preventDefault();v.stopImmediatePropagation();v=v.clipboardData.getData("text/plain");this.insertText_(v,!1,!1)},
insertText_:function(v,Q,V){Q=Q===void 0?!1:Q;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&v){var E=this.getInputRange_().cloneRange();this.emojiManager&&E&&(Q&&this.emojiInput.offsetStartOfRangeBy(E,v.length),this.insertTextWithEmojis_(E,v,V),imG(this.getEditableTextArea_().lastChild)||(E=this.getInputRange_().cloneRange()),E&&(this.emojiInput.updateSuggestions(E,v),this.updateSuggestionOffset_(E)))}},
setSubmitButton_:function(){if(this.data){var v=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",Q=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(v||Q){var V=this.getTextAreaValue().trim();Q=V===this.previousText_;V=!V||this.aboveCharLimit_;v&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(V=this.aboveCharLimit_);this.submitButtonDisabled=
Q||V||!this.getTextLength();v&&_.Y("enable_post_scheduling")&&(this.submitButtonDisabled=Q&&!this.scheduledPublishTimeSec_||V)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.j0,computeCreationBoxClass_:function(v){return v?"focused":"not-focused"},
computeFooterMessageClass_:function(v,Q){return Q?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(v,Q){return Q?Q:v},
computeFooterMessageHidden_:function(v,Q){return!Q&&!v},
computePlaceholderText_:function(v,Q,V){return(V==="video"||V==="image")&&(v==null?0:v.prefilledPlaceholderText)?v==null?void 0:v.prefilledPlaceholderText:Q==="poll"||Q==="image-poll"?v==null?void 0:v.pollPostPlaceholderText:Q==="quiz"?v==null?void 0:v.quizPostPlaceholderText:Q==="image"?v==null?void 0:v.imagePostPlaceholderText:v==null?void 0:v.placeholderText},
computeHideAttachmentButtons_:function(v,Q,V,E){return v===void 0?!1:E&&this.getSimpleString(E)===this.getSimpleString(v.rateLimitErrorMessage)?!0:Q!=="none"||V!=="none"||!v.videoLinkButton&&!v.pollButton&&!v.imagePollButton&&!v.quizButton&&!v.imageButton},
computeHideDismissableAttachment_:function(v){return v!=="image"&&v!=="video"},
computeHasVideo_:function(v){return v==="video"},
computeHasImage_:function(v){return v==="image"},
computeHasPoll_:function(v){return v==="poll"},
computeHasImagePoll_:function(v){return v==="image-poll"},
computeHasQuiz_:function(v){return v==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(v){return v&&v.backstageAttachment?v.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!v.backstageAttachment.quizRenderer&&!v.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(v){if(this.isValidPrefilledAttachment_(v.purpose,v.prefilledImageData,v.backstageAttachment))return v.backstageAttachment},
computeEditAttachment_:function(v){if(this.computePrefilledContent_(v)===void 0)return v.backstageAttachment},
computeAuthorThumbnailDimension_:function(v,Q){return v&&!Q?24:40},
computeImageUploadEndpoint_:function(v){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",v)},
computeRateLimitErrorCommands_:function(v){var Q,V;return v==null?void 0:(Q=v.advancedTierFeatures)==null?void 0:(V=Q.rateLimit)==null?void 0:V.rateLimitCommands},
computeIsBackstageComment_:function(v){return!(!v||v!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(v){return this.get("submitButton.buttonRenderer.serviceEndpoint",v)||this.get("replyButton.buttonRenderer.serviceEndpoint",v)||this.get("postButton.buttonRenderer.serviceEndpoint",v)},
computeSubmitButtonOverride:function(){if(_.Y("web_modern_buttons")){var v,Q;return{segmentedPosition:this.dropdownSchedulePanel_||!((v=this.data)==null?0:(Q=v.postOptionsMenu)==null?0:Q.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.Y("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(v,Q){v=this.get("submitButton.buttonRenderer",v)||this.get("replyButton.buttonRenderer",v)||this.get("postButton.buttonRenderer",v);Q&&(v=Q);v&&(v=Object.assign({},v),v.serviceEndpoint=void 0,v.isDisabled=this.submitButtonDisabled);return v},
computeHasExternalLinksAccess_:function(v){if(_.Y("enable_rfa_external_links")){var Q,V,E;return(E=v==null?void 0:(Q=v.advancedTierFeatures)==null?void 0:(V=Q.externalLinks)==null?void 0:V.allowExternalLinks)!=null?E:!0}return!0},
computeIsEmojiButtonDisplayed_:function(v){return v.emojiButton&&v.emojiPicker&&v.emojiPicker.emojiPickerRenderer&&v.emojiPicker.emojiPickerRenderer.categories?v.emojiPicker.emojiPickerRenderer.categories.find(function(Q){return Q.emojiPickerCategoryRenderer?Q.emojiPickerCategoryRenderer.emojiIds&&Q.emojiPickerCategoryRenderer.emojiIds.length>0:Q.emojiPickerUpsellCategoryRenderer?Q.emojiPickerUpsellCategoryRenderer.emojis&&Q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(v){return v.charLimit?v.charLimit:null},
computeDropdownSchedulingPanel_:function(v,Q){if(v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Q)return Q},
computeInlineSchedulingPanel_:function(v,Q){if(v==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Q)return Q},
computeHideAuthorThumbnail_:function(v,Q){return v||this.computeUseIdentityChip_(Q)},
computeHideIdentityChipRenderer_:function(v,Q){return v||!this.computeUseIdentityChip_(Q)},
computeUseIdentityChip_:function(v){return!!v&&!!v.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(v){var Q,V,E,b;(v==null?0:(Q=v.detail)==null?0:(V=Q.endpoint)==null?0:V.ypcGetOffersEndpoint)||(v==null?0:(E=v.detail)==null?0:(b=E.endpoint)==null?0:b.ypcOffersEndpoint)?(v.stopPropagation(),_.vp(this,[v.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",v)&&(v.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(v){this.addedAttachment="video";this.selectedVideoId_=v.detail.videoId},
commentboxStateEntityChanged_:function(v){var Q=this;(v==null?void 0:v.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(v==null?void 0:v.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){Q.focus()})},
onYtServiceRequestSent_:function(v,Q){if(Q.actions)for(v=_.L(Q.actions),Q=v.next();!Q.done;Q=v.next())Q.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(v){this.isLoading=!1;var Q=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",v),V,E,b,F=v==null?void 0:(V=v.detail)==null?void 0:(E=V.data)==null?void 0:(b=E.actionResult)==null?void 0:b.commentboxStateEntityKey;if(Q)this.errorMessage_=Q;else if(F){var t;this.dismissData_=v==null?void 0:(t=v.detail)==null?void 0:t.data;this.commentboxStateKey_=F}else{this.clear();var p;this.fire("yt-commentbox-dismiss",v==null?void 0:(p=v.detail)==
null?void 0:p.data)}},
onYtServiceRequestError_:function(v){v.stopPropagation();this.isLoading=!1;var Q,V;if(((Q=this.data)==null?void 0:Q.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((V=this.data)==null?void 0:V.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(Q=this.get("detail.error.args",v)||[],Q.length>1&&Q[1].message){this.handlePostsServiceRequestError_(Q[1].message);return}(v=this.get("detail.error.message",v))?this.errorMessage_=this.data.errorMessage||_.u3(v):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(v){if(_.Y("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var Q=_.L(this.rateLimitErrorCommands),V=Q.next();!V.done;V=Q.next())if(V=V.value,V.errorLabel===v){_.FL(V.command,this.hostElement);return}this.errorMessage_=_.u3(v)},
submitIfNotBackstagePost_:function(v){if(!this.isBackstagePost)this.onSubmit_(v)},
onSubmit_:function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R;return _.e(function(l){switch(l.nextAddress){case 1:v.stopPropagation();if(!Q.serviceEndpoint||!Q.isValidInput_())return l.return();if(Q.shouldShowPostAadcNotice_())return Q.showPostAadcNotice_(),l.return();if(Q.shouldShowCommentAadcNotice_())return Q.showCommentAadcNotice_(),l.return();if(!(Q.$$("ytd-backstage-multi-image-select-renderer")&&Q.hasImage_&&_.Y("enable_multi_image_post_creation"))){l.jumpTo(2);break}V=Q.$$("ytd-backstage-multi-image-select-renderer");
return l.yield(V.getAllUploadStatuses(),3);case 3:E=l.yieldResult;if(!E)return l.return();b=_.L(E);for(F=b.next();!F.done;F=b.next())if(t=F.value,t.encryptedBlobId===void 0)return Q.isLoading=!1,Z=p=void 0,Q.errorMessage_=(Z=(p=Q.imageUploadEndpoint_)==null?void 0:p.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?Z:null,l.return();return l.return(Q.submitForm_(void 0,void 0,void 0,void 0,V.images,Q.taggedVideoId_));case 2:if(!Q.hasImagePoll_||!Q.$["image-poll-attachment"]){l.jumpTo(4);
break}return l.yield(Q.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:d=l.yieldResult;if(!d)return l.return();w=_.L(d);for(A=w.next();!A.done;A=w.next())if(k=A.value,!k.encryptedBlobId)return Q.isLoading=!1,T=void 0,Q.errorMessage_=(T=Q.data.errorMessage)!=null?T:null,l.return();case 4:C=(c=Q.$$("ytd-backstage-image-select-renderer"))&&c.uploadPromise(),R=Q.getSharedPostId_(),C?C.then(function(){Q.submitForm_.apply(Q,_.ui(_.aE.apply(0,arguments)))}).catch(function(S){Q.isLoading=!1;
Q.errorMessage_=_.u3(S.message)}):Q.selectedVideoId_?Q.submitForm_(void 0,Q.selectedVideoId_):Q.prefilledAttachment_==="image"?Q.submitForm_(Q.prefilledImageData_.encryptedBlobId,void 0,void 0,Q.prefilledImageData_.sourceExternalVideoId,void 0,Q.taggedVideoId_):Q.prefilledAttachment_==="video"?Q.submitForm_(void 0,Q.data.backstageAttachment.videoRenderer.videoId):R?Q.submitForm_(void 0,void 0,R):Q.taggedVideoId_!==void 0?Q.submitForm_(void 0,void 0,void 0,void 0,void 0,Q.taggedVideoId_):Q.submitForm_(),
_.q1(l)}})},
openSchedulingPanel:function(v){v&&v.scheduleButton&&v.scheduleButton.buttonRenderer&&(this.scheduleButton_=v.scheduleButton.buttonRenderer);v&&v.dateTimePicker&&this.set("data.schedulingDateTimePicker",v.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(v){v.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(v){v.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(v){v.stopPropagation();v.detail.alertMessage&&(this.alertMessage_=v.detail.alertMessage)},
onImageSelected_:function(v){v.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(v){v.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(v){v.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(v.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(v){v.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(v){var Q=this.$["video-link-attachment"];Q&&Q.onLaunchVideoPicker(v)},
onAttachmentDismiss_:function(v){v.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.Y("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.Y("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var v;if(this.addedAttachment==="image-poll"&&((v=this.$["image-poll-attachment"])==null||!v.isValid()))return!1;var Q;if(this.addedAttachment==="quiz"&&((Q=this.$["quiz-attachment"])==null||!Q.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;v=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(v=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")v=!0;return v||!!this.getTextAreaValue().trim()},
submitForm_:function(v,Q,V,E,b,F){var t=this.getTextAreaValue().trim(),p={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t===this.previousText_&&(t=void 0);t!==void 0&&(p.comment_text=t);this.isLoading=!0;F!=void 0&&(p.tagged_video_id=F);v?(p.image_blob_id=v,this.imagePreviewCoordinates_&&(p.image_preview_coordinates=this.imagePreviewCoordinates_)):Q?p.attached_video_id=Q:V?p.shared_post_id=V:b&&b.length>0&&(p.images_data=b.map(function(Z){return{encryptedBlobId:Z.encryptedBlobId,
previewCoordinates:Z.previewCoordinates}}));
E&&(p.source_video_id=E);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(p.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(p.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(p.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(p.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.Y("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(p.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.vp(this,[this.serviceEndpoint,p])},
onIsInputFocusChanged_:function(v,Q){v?this.fire("yt-autonav-pause-focus"):Q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(v){var Q=this.getEditableTextArea_();[].concat(_.ui(v.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(E){Q.appendChild(document.createTextNode(E))})});
v.preventDefault()},
preventDefault_:function(v){v.preventDefault()},
onSuggestionInsert_:function(v){this.insertTextWithEmojis_(v.detail.range,v.detail.text)},
onEmojiSuggestionClick_:function(v){this.emojiInput.insertSuggestion(v.detail)},
computeSubmitButtonClass_:function(v,Q){return!Q||v?"":"with-options"},
updateSuggestionOffset_:function(v){if(this.emojiInput&&_.m9(this.emojiInput).querySelector("#dropdown")){var Q=this.getEditableTextArea_().getBoundingClientRect().bottom,V=v.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Q-V)+5;Q=this.getEditableTextArea_().getBoundingClientRect().left;v=v.getBoundingClientRect().left-Q;_.m9(this.emojiInput).querySelector("#dropdown").style.marginLeft=v+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(v){if(_.Y("enable_post_scheduling")&&this.data&&this.data.purpose){v=v.detail;if(Math.floor(Date.now()/1E3)>=v)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var Q=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(Q)||Q!==v?this.scheduledPublishTimeSec_=v:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=v;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var v=["image-button","image-poll-button","poll-button","quiz-button"];_.Y("auto_convert_posts_video_tag")||v.push("video-link-button");return v},
getButtonRenderer:function(v,Q){if(v)switch(Q){case "video-link-button":var V;return((V=v.videoLinkButton)==null?void 0:V.buttonRenderer)||void 0;case "image-button":var E;return((E=v.imageButton)==null?void 0:E.buttonRenderer)||void 0;case "poll-button":var b;return((b=v.pollButton)==null?void 0:b.buttonRenderer)||void 0;case "image-poll-button":var F;return((F=v.imagePollButton)==null?void 0:F.buttonRenderer)||void 0;case "quiz-button":var t;return((t=v.quizButton)==null?void 0:t.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var v;return(v=this.data)==null||!v.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var v,Q;return!((v=this.data)==null||!v.openAadcDialog)&&!((Q=this.aadcGuidelinesState_)==null||!Q.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.r7("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var v;((v=this.data)==null?0:v.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Hr("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(v){v.clickTrackingParams&&_.tR().clickCommand(v);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.mb(this,"yt-close-popup-action")},
onHideIdentityChip:function(v){var Q;this.set("data.placeholderText",(Q=v.hideIdentityChipAction)==null?void 0:Q.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var ul=function(){var v=_.z.apply(this,arguments)||this;v.isOpen=!1;v.modern=_.Y("web_modern_buttons");v.roundedContainer=!0;v.dropdownButtonOverride=_.Y("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;v.inPopupContainer=!1;v.isCommentboxLoading=!1;var Q=["image-button","image-poll-button","poll-button"];_.Y("enable_quiz_creation")&&Q.push("quiz-button");_.Y("auto_convert_posts_video_tag")||Q.push("video-link-button");v.attachmentButtonIds=Q;v.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return v};
_.f(ul,_.z);_.K=ul.prototype;_.K.computeButtonOverride=function(){var v;return((v=this.data)==null?0:v.postOptionsMenu)&&_.Y("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.K.configureRendererStamper=function(){var v={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.Y("auto_convert_posts_video_tag")||(v["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return v};
_.K.ready=function(){var v=this,Q=_.m9(this.hostElement).querySelector("#placeholder-area"),V=function(E){v.onOpen(E)};
Q.addEventListener("tap",V);Q.addEventListener("keypress",V)};
_.K.showButtonEduTooltip=function(){var v,Q,V,E,b,F,t;if(_.Y("enable_quiz_creation")&&((v=this.data)==null?0:(Q=v.quizButton)==null?0:(V=Q.buttonRenderer)==null?0:(E=V.hint)==null?0:(b=E.hintRenderer)==null?0:(F=b.content)==null?0:(t=F.bubbleHintRenderer)==null?0:t.text)&&(_.qs.getInstance(),v=S6(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(v==null?void 0:
v.length)>0)){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.quizButton}});return}var p;if((p=this.data)==null?0:p.imagePollButtonTooltip)if(_.qs.getInstance(),p=S6(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(p==null?void 0:p.length)>0){this.ytComponentBehavior.resolveCommand(p[0],{form:{element:this.imagePollButton}});return}var Z;_.Y("enable_multi_image_post_creation")&&
((Z=this.data)==null?0:Z.multiImageButtonTooltip)&&(_.qs.getInstance(),Z=S6(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(Z==null?void 0:Z.length)>0&&this.ytComponentBehavior.resolveCommand(Z[0],{form:{element:this.imageButton}}))};
_.K.onCreatePollAction=function(v){_.y(v,T9R)&&(this.JSC$16016_commentbox.addedAttachment="poll",this.openDialog())};
_.K.onAddVideoLinkAction=function(v){if(_.y(v,hwR))this.JSC$16016_commentbox.onAddVideoLink(v)};
_.K.onShowSchedulingPanelCommand=function(v){(v=_.y(v,oYQ))&&this.openSchedulingPanel(v)};
_.K.onCreateImagePollCommand=function(v){_.y(v,ocp)&&(this.JSC$16016_commentbox.openImagePollComponent(),this.openDialog())};
_.K.onCreateQuizCommand=function(v){_.y(v,X6Q)&&(this.JSC$16016_commentbox.openQuizComponent(),this.openDialog())};
_.K.openSchedulingPanel=function(v){_.Y("enable_post_scheduling")&&(this.openDialog(),this.JSC$16016_commentbox.openSchedulingPanel(v))};
_.K.onCreateCommentAction=function(v){this.get("createCommentAction.contents",v)&&(this.JSC$16016_commentbox.clear(),this.closeDialog())};
_.K.onOpen=function(v){v instanceof KeyboardEvent&&v.type==="keypress"&&v.keyCode!==13&&v.keyCode!==32||(this.data.prepareAccountEndpoint?_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.K.onYtCommentboxDismiss=function(){this.closeDialog()};
_.K.onYtCommentboxLoadingStart=function(v){v.stopPropagation();this.isCommentboxLoading=!0};
_.K.onYtCommentboxLoadingEnd=function(v){v.stopPropagation();this.isCommentboxLoading=!1};
_.K.onYtVideoLinkButtonCancel=function(v){v.stopPropagation();this.onOpen(v)};
_.K.onYtVideoLinkSelected=function(v){v.stopPropagation();this.onOpen(v)};
_.K.onIronSelect=function(v){v.stopPropagation();v.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=v.detail.item.value&&(this.accessRestriction?(this.accessRestriction=v.detail.item.value,this.onOpen(v)):this.accessRestriction=v.detail.item.value)};
_.K.onYtNavigate=function(v){this.get("detail.endpoint.backstageImageUploadEndpoint",v)&&(this.JSC$16016_commentbox.addedAttachment="image",this.JSC$16016_commentbox.submitButtonDisabled=!0,this.onOpen(v))};
_.K.onRequestSent=function(v){for(var Q=_.L(v.detail),V=Q.next();!V.done;V=Q.next())_.y(V.value,VI8)&&(this.JSC$16016_commentbox.addedAttachment="image",this.JSC$16016_commentbox.submitButtonDisabled=!0,this.onOpen(v))};
_.K.openDialog=function(){var v;(v=this.data)!=null&&v.isIneligibleForCommunityPagePostCreation||(this.JSC$16016_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16016_commentbox.focus())};
_.K.onPopupClosed=function(){_.qs.getInstance()};
_.K.computeCreationDisabled=function(v){return!!v};
_.K.computeIsCreationDialog=function(v){return!!v&&v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.K.computeDisabledPostButton=function(v){if(!v)return null;v.isDisabled=!0;return v};
_.K.computeIsCreationDialogWithHeader=function(v){return!this.inPopupContainer&&!!v&&!!v.authorText&&v.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.K.computeIsHeaderHidden=function(v,Q){return!v||Q};
_.K.computeDropdownRendererClasses=function(v){return v?["text-secondary-style"]:[]};
_.K.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var v=_.m9(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;v&&v.reset()};
ul.prototype.onPopupClosed=ul.prototype.onPopupClosed;ul.prototype.onRequestSent=ul.prototype.onRequestSent;ul.prototype.onYtNavigate=ul.prototype.onYtNavigate;ul.prototype.onIronSelect=ul.prototype.onIronSelect;ul.prototype.onYtVideoLinkSelected=ul.prototype.onYtVideoLinkSelected;ul.prototype.onYtVideoLinkButtonCancel=ul.prototype.onYtVideoLinkButtonCancel;ul.prototype.onYtCommentboxLoadingEnd=ul.prototype.onYtCommentboxLoadingEnd;ul.prototype.onYtCommentboxLoadingStart=ul.prototype.onYtCommentboxLoadingStart;
ul.prototype.onYtCommentboxDismiss=ul.prototype.onYtCommentboxDismiss;ul.prototype.showButtonEduTooltip=ul.prototype.showButtonEduTooltip;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ul.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ul.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ul.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ul.prototype,"isOpen",void 0);_.W([_.q({computed:"computeButtonOverride(data)"}),_.X("design:type",Object)],ul.prototype,"buttonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ul.prototype,"modern",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ul.prototype,"roundedContainer",void 0);_.W([_.q(),_.X("design:type",Object)],ul.prototype,"dropdownButtonOverride",void 0);_.W([_.q({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.X("design:type",Boolean)],ul.prototype,"creationDisabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],ul.prototype,"enableCreationBox",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.X("design:type",Boolean)],ul.prototype,"isCreationDialog",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ul.prototype,"inPopupContainer",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.X("design:type",Boolean)],ul.prototype,"isCreationDialogWithHeader",void 0);_.W([_.q(),_.X("design:type",Object)],ul.prototype,"accessRestriction",void 0);
_.W([_.q({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.X("design:type",Array)],ul.prototype,"dropdownRendererClasses",void 0);_.W([_.q(),_.X("design:type",Object)],ul.prototype,"isCommentboxLoading",void 0);_.W([_.q(),_.X("design:type",Array)],ul.prototype,"attachmentButtonIds",void 0);_.W([_.Z7("#image-button"),_.X("design:type",HTMLElement)],ul.prototype,"imageButton",void 0);
_.W([_.Z7("#image-poll-button"),_.X("design:type",HTMLElement)],ul.prototype,"imagePollButton",void 0);_.W([_.Z7("#quiz-button"),_.X("design:type",HTMLElement)],ul.prototype,"quizButton",void 0);_.W([_.Z7("#commentbox"),_.X("design:type",Object)],ul.prototype,"JSC$16016_commentbox",void 0);_.W([_.ph("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ul.prototype,"showButtonEduTooltip",null);
_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onYtCommentboxDismiss",null);_.W([_.tM("yt-commentbox-loading-start"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onYtCommentboxLoadingStart",null);
_.W([_.tM("yt-commentbox-loading-end"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onYtCommentboxLoadingEnd",null);_.W([_.tM("yt-video-link-button-cancel"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onYtVideoLinkButtonCancel",null);
_.W([_.tM("yt-video-link-selected"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onYtVideoLinkSelected",null);_.W([_.tM("iron-select"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onIronSelect",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onYtNavigate",null);
_.W([_.tM("yt-service-request-sent-button-renderer"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ul.prototype,"onRequestSent",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ul.prototype,"onPopupClosed",null);_.W([_.J({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],ul);
_.B(ul,"ytd-backstage-post-dialog-renderer",function(){if(X0Z!==void 0)return X0Z;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return X0Z=v},{mode:1});var GoQ;var C2X;var jR=function(){return _.z.apply(this,arguments)||this};
_.f(jR,_.z);_.K=jR.prototype;_.K.computeHeartButtonStyle=function(v){return(v==null?0:v.styleType)?v.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.K.onYtButtonTap=function(){if(this.data.isEnabled){var v=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(v=this.getEndpoint(v))&&_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})}else(v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(v)};
_.K.toggle=function(v){this.set("data.isHearted",v!==void 0?v:!this.data.isHearted)};
_.K.getEndpoint=function(v){var Q,V=(Q=this.data)==null?void 0:Q.heartEndpoint,E;Q=(E=this.data)==null?void 0:E.unheartEndpoint;if(V&&Q)return v?Q:V};
_.K.computeButtonAccessibility=function(v,Q){var V,E,b=v==null?void 0:(V=v.heartedAccessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label,F,t;v=v==null?void 0:(F=v.unheartedAccessibility)==null?void 0:(t=F.accessibilityData)==null?void 0:t.label;return Q?b:v};
_.hr.Object.defineProperties(jR.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var v;return _.Y("kevlar_system_icons")&&!((v=this.data)==null||!v.isHearted)}}});
jR.prototype.onYtButtonTap=jR.prototype.onYtButtonTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],jR.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jR.prototype,"data",void 0);_.W([_.O("data.isHearted"),_.X("design:type",Object),_.X("design:paramtypes",[])],jR.prototype,"heartTooltip",null);
_.W([_.O("data.isHearted"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jR.prototype,"iconFilled",null);_.W([_.q({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.X("design:type",String)],jR.prototype,"buttonAccessibility",void 0);_.W([_.q({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.X("design:type",String)],jR.prototype,"heartButtonStyle",void 0);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jR.prototype,"onYtButtonTap",null);_.W([_.J({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],jR);
_.B(jR,"ytd-creator-heart-renderer",function(){if(C2X!==void 0)return C2X;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return C2X=v},{mode:1});var W8=function(){var v=_.z.apply(this,arguments)||this;v.hasCreatorReply=!1;v.buttonOverrides={size:"S",iconPosition:"icon-only"};v.replyButtonOverrides={size:"S",type:"text"};v.forceIconButton=!_.Y("web_modern_buttons");v.modern=_.Y("web_modern_buttons");v.buttonTooltipPosition="bottom";v.systemIcons=_.Y("kevlar_system_icons");v.replyDialog=null;return v};
_.f(W8,_.z);_.K=W8.prototype;
_.K.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]]"}}}}}};
_.K.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.K.dataChange=function(){this.replyDialog&&_.m9(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var v,Q,V;this.isLiked=this.systemIcons&&!!((v=this.data)==null?0:(Q=v.likeButton)==null?0:(V=Q.toggleButtonRenderer)==null?0:V.isToggled)};
_.K.computeShowVoteCountBeginning=function(v,Q){return v===void 0||Q===void 0?!0:v.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Q&&this.ytRendererBehavior.getSimpleString(Q)!=="0"};
_.K.computeShowVoteCountEnd=function(v,Q){return v===void 0||Q===void 0?!0:v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Q&&this.ytRendererBehavior.getSimpleString(Q)!=="0"};
_.K.computeShowCommentCount=function(v,Q){return v===void 0||Q===void 0?!0:v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Q&&this.ytRendererBehavior.getSimpleString(Q)!=="0"};
_.K.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.K.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.K.showReplyDialog=function(v){v&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.m9(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=v,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.K.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.K.onRequestSent=function(v){v=_.L(v.detail);for(var Q=v.next();!Q.done;Q=v.next())(Q=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",Q.value))&&this.showReplyDialog(Q)};
_.K.onYtNavigate=function(v){var Q,V;(v=(Q=_.y(v.detail.endpoint,_.bJ8))==null?void 0:(V=Q.dialog)==null?void 0:V.commentReplyDialogRenderer)&&this.showReplyDialog(v)};
_.K.onYtServiceRequestSent=function(v,Q){v.stopPropagation();if(Q.actions)for(v=0;v<Q.actions.length;v++){var V=_.y(Q.actions[v],C8q);V&&this.handleUpdateCommentVoteAction(V)}};
_.K.handleUpdateCommentVoteAction=function(v){this.voteCount=v.voteCount||_.u3("0");v.voteStatus==="LIKE"?this.JSC$16028_ytdDislikeToggleButtonRenderer.toggle(!1):v.voteStatus==="DISLIKE"?this.JSC$16028_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16028_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16028_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.K.computeReplyButtonHidden=function(v){return v};
_.K.computeReplyButtonBeginning=function(v){return(v==null?0:v.replyButton)&&v.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?v.replyButton:void 0};
_.K.computeReplyButtonEnd=function(v){return(v==null?0:v.replyButton)&&v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?v.replyButton:void 0};
_.K.computeActionButtonStyle=function(v){return(v==null?0:v.style)?v.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.K.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.K.onYtToggleButton=function(v){var Q,V;this.isLiked=this.systemIcons&&!!((Q=v.detail)==null?0:(V=Q.actions)==null?0:V.like)};
W8.prototype.onYtToggleButton=W8.prototype.onYtToggleButton;W8.prototype.onButtonTooltipPositionChanged=W8.prototype.onButtonTooltipPositionChanged;W8.prototype.onYtServiceRequestSent=W8.prototype.onYtServiceRequestSent;W8.prototype.onYtNavigate=W8.prototype.onYtNavigate;W8.prototype.onRequestSent=W8.prototype.onRequestSent;W8.prototype.onYtCommentboxDismiss=W8.prototype.onYtCommentboxDismiss;W8.prototype.dataChange=W8.prototype.dataChange;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"voteCount",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"commentCount",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"replyThumbnail",void 0);
_.W([_.q(),_.X("design:type",Object)],W8.prototype,"hasCreatorReply",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W8.prototype,"enableCreationBox",void 0);_.W([_.q({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.X("design:type",String)],W8.prototype,"actionButtonsStyle",void 0);_.W([_.q({computed:"computeReplyButtonBeginning(data)"}),_.X("design:type",Object)],W8.prototype,"replyButtonBeginning",void 0);
_.W([_.q({computed:"computeReplyButtonEnd(data)"}),_.X("design:type",Object)],W8.prototype,"replyButtonEnd",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"buttonOverrides",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"replyButtonOverrides",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"forceIconButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W8.prototype,"useCommentIcon",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],W8.prototype,"modern",void 0);_.W([_.q(),_.X("design:type",Object)],W8.prototype,"buttonTooltipPosition",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],W8.prototype,"systemIcons",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],W8.prototype,"isLiked",void 0);_.W([_.Z7("ytd-button-renderer"),_.X("design:type",Object)],W8.prototype,"ytdReplyButtonRenderer",void 0);
_.W([_.Z7("#like-button"),_.X("design:type",Object)],W8.prototype,"JSC$16028_ytdLikeToggleButtonRenderer",void 0);_.W([_.Z7("#dislike-button"),_.X("design:type",Object)],W8.prototype,"JSC$16028_ytdDislikeToggleButtonRenderer",void 0);_.W([_.Z7("#reply-dialog"),_.X("design:type",HTMLElement)],W8.prototype,"replyDialogElement",void 0);_.W([_.Z7("#reply-button"),_.X("design:type",HTMLElement)],W8.prototype,"replyButtonElement",void 0);
_.W([_.Z7("#reply-button-end"),_.X("design:type",HTMLElement)],W8.prototype,"replyButtonEndElement",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],W8.prototype,"dataChange",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],W8.prototype,"onYtCommentboxDismiss",null);
_.W([_.tM("yt-service-request-sent-button-renderer"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],W8.prototype,"onRequestSent",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],W8.prototype,"onYtNavigate",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],W8.prototype,"onYtServiceRequestSent",null);_.W([_.ph("buttonTooltipPosition"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],W8.prototype,"onButtonTooltipPositionChanged",null);
_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],W8.prototype,"onYtToggleButton",null);_.W([_.J({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],W8);
_.B(W8,"ytd-comment-action-buttons-renderer",function(){if(GoQ!==void 0)return GoQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return GoQ=v},{mode:1});var MLq;var oA=function(){return _.z.apply(this,arguments)||this};
_.f(oA,_.z);oA.prototype.focus=function(){_.m9(this.hostElement).querySelector("#commentbox").focus()};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oA.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],oA.prototype,"zeroStepChannelCreationRenderer",void 0);_.W([_.J({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],oA);
_.B(oA,"ytd-comment-dialog-renderer",function(){if(MLq!==void 0)return MLq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return MLq=v},{mode:1});var OyN;var XD=function(){var v=_.z.apply(this,arguments)||this;v.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.Y("enable_web_delhi_icons")};v.replyButtonOverrides={size:"S",type:"text"};return v};
_.f(XD,_.z);_.K=XD.prototype;_.K.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.K.detached=function(){this.replyBox&&this.replyBox.remove()};
_.K.showReplyDialog=function(v){if(v){var Q=this.replyBox;Q||(Q=document.createElement("ytd-comment-reply-dialog-renderer"),Q.id="replybox",_.m9(this.replyDialogDiv).appendChild(Q));Q.data=v;this.replyDialogDiv.hidden=!1;Q.openDialog()}};
_.K.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.K.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var v,Q=_.y((v=this.toolbarSurface)==null?void 0:v.subscribersOnlyDisclaimerSnackbarCommand,_.Cx);Q&&_.Hj(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:Q})}};
_.K.onYtServiceRequestSent=function(v,Q){v.stopPropagation();if(Q.actions)for(var V=0;V<Q.actions.length;V++){var E=_.y(Q.actions[V],C8q);E?this.handleUpdateCommentVoteAction(E):v.target===this.heartButton&&this.toggleHeartState()}};
_.K.handleUpdateCommentVoteAction=function(v){var Q;(Q=this.toolbarState)!=null&&Q.key&&this.ytdReduxBehavior.dispatch(_.Gz("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:v.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":v.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.K.toggleHeartState=function(){var v;(v=this.toolbarState)!=null&&v.key&&this.ytdReduxBehavior.dispatch(_.Gz("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.hr.Object.defineProperties(XD.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return(((v=this.toolbarState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(Q=this.toolbarData)==null?void 0:Q.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 v;return((v=this.toolbarSurface)==null?void 0:v.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand)!==void 0&&!_.Y("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,Q=_.y((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand,_.Cx),V,E,b,F,t,p,Z,d,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:Q!=null?Q:_.y((b=this.toolbarSurface)==null?void 0:b.likeCommand,_.Cx),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Q!=null?Q:_.y((F=this.toolbarSurface)==null?void 0:F.unlikeCommand,_.Cx),defaultCommand:this.isVisiblyDisabled?_.y((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.Cx):void 0,defaultTooltip:(p=this.toolbarData)==null?void 0:p.likeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:Z.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(d=this.toolbarData)==null?void 0:d.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,Q=_.y((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand,_.Cx),V,E,b,F,t,p,Z,d,w,A;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:Q!=null?Q:_.y((b=this.toolbarSurface)==null?void 0:b.dislikeCommand,_.Cx),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Q!=null?Q:_.y((F=this.toolbarSurface)==null?void 0:F.undislikeCommand,_.Cx),defaultCommand:this.isVisiblyDisabled?_.y((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.Cx):void 0,defaultTooltip:(p=this.toolbarData)==null?void 0:p.dislikeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:
Z.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(d=this.toolbarSharedData)==null?void 0:d.dislikeReplyButtonA11y:(w=this.toolbarSharedData)==null?void 0:w.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;if(((v=this.toolbarState)==null?void 0:v.heartState)!==void 0&&((Q=this.toolbarState)==null?void 0:Q.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((V=this.toolbarState)==null?void 0:V.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var E,b,F,t,p,Z,d,w,A,k,T,c,C,R;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(E=this.toolbarData)==null?void 0:E.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((F=this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.y((Z=this.toolbarSurface)==null?void 0:Z.heartCommand,
_.Cx),unheartEndpoint:this.isVisiblyDisabled?void 0:_.y((d=this.toolbarSurface)==null?void 0:d.unheartCommand,_.Cx),disabledEndpoint:this.isVisiblyDisabled?_.y((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.Cx):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(A=this.toolbarData)==null?void 0:A.heartActiveTooltip,unheartedTooltip:(k=this.toolbarData)==null?void 0:k.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((T=
this.toolbarState)==null?void 0:T.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(c=this.toolbarSharedData)==null?void 0:c.unheartButtonA11y:(C=this.toolbarSharedData)==null?void 0:C.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(R=this.toolbarSharedData)==null?void 0:R.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.toolbarSurface)==null||!v.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.commentStrings)!=null&&v.replyButtonText){var Q,V,E,b;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(Q=this.commentStrings)==null?void 0:Q.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.y((V=this.toolbarSurface)==null?void 0:V.replyCommand,_.Cx),command:this.isVisiblyDisabled?
_.y((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand,_.Cx):this.isSubsOnlyCommentsIneligibleUser?_.y((b=this.toolbarSurface)==null?void 0:b.subscribersOnlySnackbarCommand,_.Cx):void 0}}}}});
XD.prototype.onYtServiceRequestSent=XD.prototype.onYtServiceRequestSent;XD.prototype.hideReplyDialogDiv=XD.prototype.hideReplyDialogDiv;_.W([_.q(),_.X("design:type",Object)],XD.prototype,"commentStrings",void 0);_.W([_.q(),_.X("design:type",Boolean)],XD.prototype,"isReply",void 0);_.W([_.q(),_.X("design:type",Object)],XD.prototype,"toolbarData",void 0);_.W([_.q(),_.X("design:type",Object)],XD.prototype,"toolbarSharedData",void 0);
_.W([_.q(),_.X("design:type",String)],XD.prototype,"toolbarStateKey",void 0);_.W([_.q(),_.X("design:type",String)],XD.prototype,"toolbarSurfaceKey",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],XD.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],XD.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.TX),_.X("design:type",Object)],XD.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Z7("#reply-dialog"),_.X("design:type",HTMLElement)],XD.prototype,"replyDialogDiv",void 0);_.W([_.Z7("#replybox"),_.X("design:type",Object)],XD.prototype,"replyBox",void 0);_.W([_.Z7("ytd-creator-heart-renderer"),_.X("design:type",Object)],XD.prototype,"heartButton",void 0);_.W([_.q({selector:function(v,Q){return _.Fg(v.entities,"engagementToolbarStateEntityPayload",Q)},
selectorArgs:["toolbarStateKey"]}),_.X("design:type",Object)],XD.prototype,"toolbarState",void 0);_.W([_.q({selector:bXE,selectorArgs:["toolbarSurfaceKey"]}),_.X("design:type",Object)],XD.prototype,"toolbarSurface",void 0);_.W([_.q(),_.X("design:type",Object)],XD.prototype,"buttonOverrides",void 0);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],XD.prototype,"hideReplyDialogDiv",null);
_.W([_.O("toolbarData","toolbarState"),_.X("design:type",String),_.X("design:paramtypes",[])],XD.prototype,"likeCount",null);_.W([_.O("likeCount"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],XD.prototype,"showLikeCount",null);_.W([_.O("toolbarSurface"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],XD.prototype,"isVisiblyDisabled",null);_.W([_.O("toolbarSurface"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],XD.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.W([_.O("toolbarSurface"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],XD.prototype,"isSubsOnlyCommentsEligibleUser",null);_.W([_.O("toolbarSurface"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],XD.prototype,"hasPrepareAccountCommand",null);_.W([_.O("toolbarData","toolbarState","toolbarSurface"),_.X("design:type",Object),_.X("design:paramtypes",[])],XD.prototype,"likeToggleButtonRenderer",null);
_.W([_.O("isReply","toolbarData","toolbarState","toolbarSurface"),_.X("design:type",Object),_.X("design:paramtypes",[])],XD.prototype,"dislikeToggleButtonRenderer",null);_.W([_.O("toolbarData","toolbarState","toolbarSurface"),_.X("design:type",Object),_.X("design:paramtypes",[])],XD.prototype,"creatorHeartSupportedRenderer",null);_.W([_.O("toolbarSurface"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],XD.prototype,"hasReplyCommand",null);
_.W([_.O("toolbarSurface","commentStrings","isVisiblyDisabled"),_.X("design:type",Object),_.X("design:paramtypes",[])],XD.prototype,"replyButtonRenderer",null);_.W([_.q(),_.X("design:type",Object)],XD.prototype,"replyButtonOverrides",void 0);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],XD.prototype,"onYtServiceRequestSent",null);_.W([_.J({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],XD);
_.B(XD,"ytd-comment-engagement-bar",function(){if(OyN!==void 0)return OyN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return OyN=v},{mode:1});var DtN;var aA=function(){return _.z.apply(this,arguments)||this};
_.f(aA,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aA.prototype,"data",void 0);_.W([_.J({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],aA);
_.B(aA,"ytd-comment-inline-thumbnail-renderer",function(){if(DtN!==void 0)return DtN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return DtN=v},{mode:1});var Rip;var rr=function(){return _.z.apply(this,arguments)||this};
_.f(rr,_.z);rr.prototype.onMessageTap=function(){if(this.onTapCommand){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);v&&this.ytdOpenPopupBehavior.openPopup(v)}};
_.hr.Object.defineProperties(rr.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return(v=this.data)==null?void 0:(Q=v.button)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.command}}});
_.W([_.M(_.TX),_.X("design:type",Object)],rr.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rr.prototype,"data",void 0);_.W([_.O("data.button.buttonRenderer.command"),_.X("design:type",Object),_.X("design:paramtypes",[])],rr.prototype,"onTapCommand",null);_.W([_.J({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],rr);
_.B(rr,"ytd-comment-pause-composer-renderer",function(){if(Rip!==void 0)return Rip;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Rip=v},{mode:1});var n1N;var lka;var $C=function(){var v=_.z.apply(this,arguments)||this;v.isOpen=!1;return v};
_.f($C,_.z);_.K=$C.prototype;_.K.dataChanged=function(){this.isOpen=!1};
_.K.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.K.focus=function(){this.JSC$16057_commentbox.focus()};
_.K.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.K.openDialog=function(){this.isOpen=!0;this.JSC$16057_commentbox.focus();this.JSC$16057_commentbox.maybeHeightChanged()};
$C.prototype.onYtCommentboxDismiss=$C.prototype.onYtCommentboxDismiss;$C.prototype.dataChanged=$C.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$C.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],$C.prototype,"isOpen",void 0);_.W([_.Z7("#commentbox"),_.X("design:type",Object)],$C.prototype,"JSC$16057_commentbox",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$C.prototype,"dataChanged",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],$C.prototype,"onYtCommentboxDismiss",null);_.W([_.J({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],$C);
_.B($C,"ytd-comment-reply-dialog-renderer",function(){if(lka!==void 0)return lka;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return lka=v},{mode:1});var qqN;var IA=function(){return _.z.apply(this,arguments)||this};
_.f(IA,_.z);_.hr.Object.defineProperties(IA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.icon)==null?void 0:Q.iconType;return V?"yt-icons:"+V.toLowerCase():null}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],IA.prototype,"data",void 0);_.W([_.q(),_.O("data.icon"),_.X("design:type",Object),_.X("design:paramtypes",[])],IA.prototype,"icon",null);_.W([_.J({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],IA);
_.B(IA,"ytd-pinned-comment-badge-renderer",function(){if(qqN!==void 0)return qqN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return qqN=v},{mode:1});var SqQ;var ziN={},JAR={input:!0,meta:!0,br:!0,link:!0,img:!0},H8=null;ziN.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(){H8==null&&(H8=document.createElement("tp-yt-paper-tooltip"),H8.offset=8,H8.fitToVisibleBounds=!0)},
onMouseOver_:function(v){if(v=_.XH(v.target,function(b){return b==this||b.getAttribute&&b.getAttribute("shared-tooltip-text")}.bind(this),!0)){var Q=v.getAttribute("shared-tooltip-text");
if(Q){var V=this,E=null;v!=this&&(v.tagName.toLowerCase()in JAR?V=v.parentElement:V=v,v.id&&(E=v.id));this.polymerController.createTooltipIfRequired_();if(H8.parentElement!=V||H8.for!=E)(0,_.bf)(H8).textContent=Q,_.m9(V).appendChild(H8),H8.for=E,H8.animationDelay=this.polymerController.sharedTooltipAnimationDelay,H8.position=this.polymerController.sharedTooltipPosition}}}};var mH=function(){return _.z.apply(this,arguments)||this};
_.f(mH,_.z);mH.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]]"}}}}}};
mH.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var v;((v=this.data)==null?0:v.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var Q;((Q=this.data)==null?0:Q.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
mH.prototype.colorChanged=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.color)==null?void 0:(V=Q.basicColorPaletteData)==null?void 0:V.foregroundBodyColor;E&&(this.rgbBadgeColor=_.GA(E));_.m9(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
mH.prototype.tooltipChanged=function(){var v;((v=this.data)==null?0:v.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
mH.prototype.tooltipChanged=mH.prototype.tooltipChanged;mH.prototype.colorChanged=mH.prototype.colorChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(ziN.YtSharedTooltipBehavior),_.X("design:type",Object)],mH.prototype,"ytSharedTooltipBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mH.prototype,"data",void 0);
_.W([_.q({value:"#4285F4"}),_.X("design:type",String)],mH.prototype,"rgbBadgeColor",void 0);_.W([_.ph("data.color"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mH.prototype,"colorChanged",null);_.W([_.ph("data.tooltip"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mH.prototype,"tooltipChanged",null);_.W([_.J({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],mH);
_.B(mH,"ytd-sponsor-comment-badge-renderer",function(){if(SqQ!==void 0)return SqQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return SqQ=v},{mode:1});var NTZ;var xtQ;var UQ=function(){return _.z.apply(this,arguments)||this};
_.f(UQ,_.z);UQ.prototype.computeState=function(v){switch(v==null?void 0:v.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
UQ.prototype.updateStateIdentifier=function(v){if(this.viewModel.triStateKey){var Q=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Gz("triStateButtonStateEntityPayload",Q,{key:Q,stateIdentifier:v}))}};
UQ.prototype.onClick=function(){var v=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){v.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){v.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.hr.Object.defineProperties(UQ.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.buttonText)||""}}});
_.W([_.q(),_.X("design:type",Object)],UQ.prototype,"viewModel",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],UQ.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.W([_.q({selector:FBZ,selectorArgs:["viewModel.triStateKey"]}),_.X("design:type",Object)],UQ.prototype,"triStateButtonStateEntity",void 0);
_.W([_.q({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.X("design:type",String)],UQ.prototype,"state",void 0);_.W([_.O("viewModel","state"),_.X("design:type",Object),_.X("design:paramtypes",[])],UQ.prototype,"data",null);_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],UQ.prototype,"buttonText",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],UQ);
_.B(UQ,"ytd-tri-state-button-view-model",function(){if(xtQ!==void 0)return xtQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xtQ=v},{mode:1});var BTZ;var g1X;var vl=function(){var v=_.z.apply(this,arguments)||this;v.defaultIconToFilled=!_.Y("kevlar_fill_comment_chip_icon_killswitch");return v};
_.f(vl,_.z);vl.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
vl.prototype.dataChanged=function(){if(this.data){var v,Q;((v=this.data.chipColorPalette)==null?0:v.backgroundColor)&&((Q=this.data.chipColorPalette)==null?0:Q.foregroundTitleColor)&&_.F6(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.CF(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.CF(this.data.chipColorPalette.foregroundTitleColor)});var V;((V=this.data)==null?0:V.command)?(_.F6(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.F6(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}};
vl.prototype.onTap=function(){var v;if(this.data&&(v=this.data)!=null&&v.command){var Q;this.ytComponentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.command)}};
vl.prototype.getIconSize=function(){return _.Y("kevlar_fill_comment_chip_icon_killswitch")?24:12};
vl.prototype.onTap=vl.prototype.onTap;vl.prototype.dataChanged=vl.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.zI),_.X("design:type",Object)],vl.prototype,"ironA11yKeysBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vl.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],vl.prototype,"basePriceText",void 0);_.W([_.q(),_.X("design:type",Object)],vl.prototype,"chipIcon",void 0);_.W([_.q(),_.X("design:type",Object)],vl.prototype,"defaultIconToFilled",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vl.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vl.prototype,"onTap",null);
_.W([_.D7({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],vl);
_.B(vl,"yt-pdg-comment-chip-renderer",function(){if(g1X===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;BTZ===void 0&&(BTZ=document.createElement("template"));var E=BTZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);g1X=v}v=g1X;return v},{mode:2});var Q6=function(){var v=_.z.apply(this,arguments)||this;v.useSmallAvatars=_.Y("small_avatars_for_comments");v.commentThreadingEnabled=_.Y("web_delhi_comment_threads");v.webWatchCompactComments=_.Y("web_watch_compact_comments");v.editDialog=null;return v};
_.f(Q6,_.z);_.K=Q6.prototype;_.K.onShow=function(){_.O2("cmv",void 0,"wn_comments")};
_.K.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"}}}};
_.K.detached=function(){this.editDialog=null;this.expander.reset()};
_.K.updateBackgroundColor=function(){if(this.backgroundColor){var v={"--ytd-comment-paid-background-color":_.CF(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.F6(this.hostElement,v)}else _.F6(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.K.resetExpander=function(){var v;(v=this.expander)==null||v.reset()};
_.K.openEditDialog=function(v){v.dialog&&(this.editDialog=v.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.K.onYtNavigate=function(v){var Q=v.detail.endpoint;if(Q=_.y(Q,_.Flx)||_.y(Q,_.KlS))v.stopPropagation(),this.openEditDialog(Q)};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null;_.F6(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.K.onAuthorThumbnailClicked=function(){_.Y("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.K.onYtCommentboxResize=function(v){var Q;(v==null?0:(Q=v.detail)==null?0:Q.height)&&_.F6(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":v.detail.height+"px"})};
_.hr.Object.defineProperties(Q6.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.commentEntity)==null?void 0:v.author;return Q&&(Q.isCreator||Q.isVerified||Q.isArtist)?{renderer:{authorEndpoint:Q.channelPageEndpoint?_.y(Q.channelPageEndpoint,_.Cx):_.y(Q.channelCommand,_.Cx),authorText:{runs:[{text:Q.displayName}]},color:Q.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:Q.isArtist?{iconType:"AUDIO_BADGE"}:
Q.isVerified?{iconType:Q.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:Q.isArtist||Q.isVerified?Q.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.commentEntity)==null?void 0:v.author;return Q!=null&&Q.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:Q.sponsorBadgeUrl}]},tooltip:Q.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return _.y((v=this.commentSurfaceEntity)==null?void 0:v.pdgCommentChip,_.zcQ)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var v;return this.voiceReplyContainerViewModel&&((v=this.voiceReplyContainerViewModel)==null?void 0:v.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return _.y((v=this.commentSurfaceEntity)==null?void 0:v.voiceReplyContainerViewModel,zwQ)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var v;return this.voiceReplyContainerViewModel&&(v=this.voiceReplyContainerViewModel)!=null&&v.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.commentSurfaceEntity)==null?void 0:v.commentBackgroundColor)!=null?Q:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(((v=this.commentEntity)==null?void 0:(Q=v.properties)==null?void 0:Q.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(_.Y("enable_profile_cards_on_comments")&&((v=this.commentEntity)==null?0:(Q=v.author)==null?0:Q.profileCardEndpoint)&&this.viewModel.allowProfileCard){var V,E;return _.y((V=this.commentEntity)==null?void 0:(E=V.author)==null?void 0:E.profileCardEndpoint,_.Cx)}var b,F;return _.y((b=this.commentEntity)==null?void 0:(F=b.avatar)==null?void 0:F.endpoint,_.Cx)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(_.Y("enable_profile_cards_on_comments")&&((v=this.commentEntity)==null?0:(Q=v.author)==null?0:Q.channelPageEndpoint)){var V,E;return _.y((V=this.commentEntity)==null?void 0:(E=V.author)==null?void 0:E.channelPageEndpoint,_.Cx)}var b,F;return _.y((b=this.commentEntity)==null?void 0:(F=b.avatar)==null?void 0:F.endpoint,_.Cx)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b=(v=this.commentEntity)==null?void 0:(Q=v.avatar)==null?void 0:(V=Q.image)==null?void 0:(E=V.sources)==null?void 0:E[0];return b?{thumbnails:[{url:b.url,width:b.width,height:b.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.commentEntity)==null?0:(Q=v.author)==null?0:Q.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.commentEntity)==null?void 0:(Q=v.author)==null?void 0:Q.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.commentEntity)==null?void 0:(Q=v.properties)==null?void 0:Q.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var v;return _.y((v=this.commentSurfaceEntity)==null?void 0:v.publishedTimeCommand,_.Cx)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(((v=this.commentEntity)==null?0:v.translatedContent)&&((Q=this.translateButtonState)==null?void 0:Q.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 E,b;return((E=this.commentEntity)==null?void 0:(b=E.properties)==null?void 0:b.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.commentSharedEntity)==null?void 0:(Q=v.strings)==null?void 0:Q.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.commentSharedEntity)==null?void 0:(Q=v.strings)==null?void 0:Q.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.commentEntity)==null||!v.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var v,Q,V=(Q=_.y((v=this.viewModel)==null?void 0:v.translateButton,S5a))!=null?Q:{},E,b,F,t,p,Z,d,w,A,k,T;return Object.assign({},V,{untoggledStateData:Object.assign({},V.untoggledStateData,{buttonText:(E=this.commentEntity)==null?void 0:(b=E.translateData)==null?void 0:b.text}),togglingStateData:Object.assign({},V.togglingStateData,{buttonText:(F=this.commentSharedEntity)==null?
void 0:(t=F.strings)==null?void 0:t.translatingText}),toggledStateData:Object.assign({},V.toggledStateData,{buttonText:(p=this.commentSharedEntity)==null?void 0:(Z=p.strings)==null?void 0:Z.seeOriginalText}),transitionCommand:((d=this.commentEntity)==null?0:d.translatedContent)?void 0:_.y((w=this.commentEntity)==null?void 0:(A=w.translateData)==null?void 0:A.translateComment,_.Cx),triStateKey:(k=this.commentEntity)==null?void 0:(T=k.properties)==null?void 0:T.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((Q=_.y(_.y((v=this.toolbarSurface)==null?void 0:v.menuCommand,_.Cx),iJN))==null?void 0:(V=Q.menu)==null?void 0:V.menuRenderer)||null}}});
Q6.prototype.onYtCommentboxResize=Q6.prototype.onYtCommentboxResize;Q6.prototype.onYtCommentboxDismiss=Q6.prototype.onYtCommentboxDismiss;Q6.prototype.onYtNavigate=Q6.prototype.onYtNavigate;Q6.prototype.resetExpander=Q6.prototype.resetExpander;Q6.prototype.updateBackgroundColor=Q6.prototype.updateBackgroundColor;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Q6.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Q6.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#author-thumbnail > button"),_.X("design:type",HTMLElement)],Q6.prototype,"authorThumbnailAnchor",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("viewModel"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Q6.prototype,"linked",null);
_.W([_.O("viewModel","linked"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"linkedCommentBadge",null);_.W([_.q({reflectToAttribute:!0}),_.O("viewModel"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Q6.prototype,"pinned",null);_.W([_.O("viewModel","pinned"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"pinnedCommentBadge",null);
_.W([_.O("commentEntity","commentSharedEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"authorCommentBadge",null);_.W([_.q({reflectToAttribute:!0}),_.O("authorCommentBadge"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"hasAuthorBadge",null);_.W([_.O("commentEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"sponsorCommentBadge",null);
_.W([_.q({reflectToAttribute:!0}),_.O("sponsorCommentBadge"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"hasSponsorBadge",null);_.W([_.O("commentSurfaceEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"pdgCommentChipRenderer",null);_.W([_.q({reflectToAttribute:!0}),_.O("voiceReplyContainerViewModel"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"hasVoiceReply",null);
_.W([_.O("commentSurfaceEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"voiceReplyContainerViewModel",null);_.W([_.O("voiceReplyContainerViewModel"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"voiceReplyUnavailableText",null);_.W([_.q(),_.X("design:type",Object)],Q6.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"viewModel",null);
_.W([_.q({selector:function(v,Q){return _.Fg(v.entities,"commentSharedEntityPayload",Q)},
selectorArgs:["viewModel.sharedKey"]}),_.X("design:type",Object)],Q6.prototype,"commentSharedEntity",void 0);_.W([_.q({selector:EZo,selectorArgs:["viewModel.commentKey"]}),_.X("design:type",Object)],Q6.prototype,"commentEntity",void 0);_.W([_.q({selector:function(v,Q){return _.Fg(v.entities,"commentSurfaceEntityPayload",Q)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.X("design:type",Object)],Q6.prototype,"commentSurfaceEntity",void 0);_.W([_.q({selector:bXE,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.X("design:type",Object)],Q6.prototype,"toolbarSurface",void 0);_.W([_.q({selector:FBZ,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.X("design:type",Object)],Q6.prototype,"translateButtonState",void 0);
_.W([_.O("commentSurfaceEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"backgroundColor",null);_.W([_.q({reflectToAttribute:!0}),_.O("viewModel"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Q6.prototype,"optimalReadingWidthComments",null);_.W([_.Z7("ytd-expander"),_.X("design:type",Object)],Q6.prototype,"expander",void 0);
_.W([_.ph("backgroundColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Q6.prototype,"updateBackgroundColor",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Q6.prototype,"useSmallAvatars",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Q6.prototype,"engagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Q6.prototype,"commentThreadingEnabled",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Q6.prototype,"webWatchCompactComments",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("commentEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"isReply",null);_.W([_.O("commentEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"authorThumbnailEndpoint",null);_.W([_.O("commentEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"authorNameEndpoint",null);
_.W([_.O("commentEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"authorThumbnail",null);_.W([_.O("commentEntity"),_.X("design:type",String),_.X("design:paramtypes",[])],Q6.prototype,"authorTextClass",null);_.W([_.O("commentEntity"),_.X("design:type",String),_.X("design:paramtypes",[])],Q6.prototype,"authorChannelName",null);_.W([_.O("commentEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"publishedTime",null);
_.W([_.O("commentSurfaceEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"publishedTimeCommand",null);_.W([_.O("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"contentText",null);_.W([_.ph("contentText"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Q6.prototype,"resetExpander",null);
_.W([_.O("commentEntity"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Q6.prototype,"shouldShowReadMoreInitially",null);_.W([_.O("commentSharedEntity"),_.X("design:type",String),_.X("design:paramtypes",[])],Q6.prototype,"expandText",null);_.W([_.O("commentSharedEntity"),_.X("design:type",String),_.X("design:paramtypes",[])],Q6.prototype,"collapseText",null);_.W([_.O("commentEntity"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Q6.prototype,"shouldShowTranslateButton",null);
_.W([_.O("commentEntity","commentSharedEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"translateButton",null);_.W([_.O("toolbarSurface"),_.X("design:type",Object),_.X("design:paramtypes",[])],Q6.prototype,"overflowMenuRenderer",null);_.W([_.q(),_.X("design:type",Object)],Q6.prototype,"editDialog",void 0);_.W([_.Z7("ytd-comment-dialog-renderer"),_.X("design:type",Object)],Q6.prototype,"editCommentDialogContainer",void 0);
_.W([_.Z7("ytd-comment-reply-dialog-renderer"),_.X("design:type",Object)],Q6.prototype,"editReplyDialogContainer",void 0);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Q6.prototype,"onYtNavigate",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Q6.prototype,"onYtCommentboxDismiss",null);
_.W([_.tM("yt-commentbox-resize"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Q6.prototype,"onYtCommentboxResize",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Q6);
_.B(Q6,"ytd-comment-view-model",function(){if(NTZ!==void 0)return NTZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return NTZ=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});_.ad(_.x(function(v){var Q={};return _.P("yt-sub-thread",{class:_.QZ("ytSubThreadHost",(Q.ytSubThreadHasButton=v.isButton,Q.ytSubThreadHovered=v.hovered,Q.ytSubThreadTopLevelThread=function(){var V,E;return((V=v.topLevelThread)==null?void 0:V.call(v))&&!(_.Y("small_avatars_for_comments")&&((E=v.engagementPanel)==null?0:E.call(v)))},Q))},_.P("div",{class:"ytSubThreadThreadline"},_.P(_.h,{cond:function(){var V;
return!((V=v.isTeaser)==null?0:V.call(v))},
then:function(){return _.P("div",{class:"ytSubThreadConnection"})}}),_.P("div",{class:"ytSubThreadContinuation"}),_.P("div",{class:"ytSubThreadShadow"})),_.P("div",{class:"ytSubThreadSubThreadContent"},v.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.pJ,
isTeaser:_.pJ,hovered:_.pJ,topLevelThread:_.pJ,engagementPanel:_.pJ}});var V6=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_modern_buttons");v.commentThreadingEnabled=_.Y("web_delhi_comment_threads");v.isWatchGrid=_.Y("kevlar_watch_grid");v.buttonOverrides=v.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};v.JSC$16103_spinnerEl=null;return v};
_.f(V6,_.z);_.K=V6.prototype;_.K.configureContinuationPathMap=function(){return _.Y("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.K.shouldShowLegacyTeasers=function(v,Q){return v&&!Q};
_.K.shouldShowExpandedThreads=function(v,Q){return this.commentThreadingEnabled&&Q&&(v==null?void 0:v.length)>0};
_.K.shouldShowCollapsedThreads=function(v,Q){return this.commentThreadingEnabled&&!Q&&v};
_.K.computeCommentViewModel=function(v){return _.y(v,q5X)};
_.K.computeThreadRenderer=function(v){return _.y(v,MOZ)};
_.K.computeIsContinuationItem=function(v){return!!this.computeContinuationItemRenderer(v)};
_.K.computeButtonRenderer=function(v){return _.y(v,_.KH)};
_.K.computeContinuationItemRenderer=function(v){return _.y(v,_.WY)};
_.K.computeShowButton=function(v){var Q;return!((Q=this.computeContinuationItemRenderer(v))==null||!Q.button)};
_.K.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]]"}}}}}};
_.K.attached=function(){this.isShowRepliesVisible=!0};
_.K.dataChanged=function(){var v=this.expanderContents;v&&(v.hidden=!0);this.isLoading=!1};
_.K.endsInContinuation=function(v){return!!v&&v.length>0&&!!this.computeContinuationItemRenderer(v[v.length-1])};
_.K.computeShouldShowHideRepliesButton=function(v,Q){return!v&&Q};
_.K.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.K.isLoadingChanged=function(){this.isLoading&&!this.JSC$16103_spinnerEl&&(this.JSC$16103_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.m9(this.expanderContents).appendChild(this.JSC$16103_spinnerEl));this.JSC$16103_spinnerEl&&(this.JSC$16103_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var v;(v=this.contents)==null||v.classList.remove("reloading")}};
_.K.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var v=_.y(this.data.viewReplies,_.KH);v&&this.ytRendererBehavior.logExplicitClick(v);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.K.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var v=_.y(this.data.hideReplies,_.KH);v&&this.ytRendererBehavior.logExplicitClick(v);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.K.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var v=_.m9(this.hostElement).querySelector("#expander-contents");v&&(v.hidden=this.isShowRepliesVisible)}};
_.K.computeAlign=function(){if(this.modern){var v;return!((v=this.data)==null?0:v.viewRepliesCreatorThumbnail)}};
_.hr.Object.defineProperties(V6.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var v,Q;return this.endsInContinuation((v=this.data)==null?void 0:v.contents)||this.commentThreadingEnabled&&this.endsInContinuation((Q=this.data)==null?void 0:Q.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var v;return(v=this.data)==null?void 0:v.teaserContents}}});
V6.prototype.isShowMoreChanged=V6.prototype.isShowMoreChanged;V6.prototype.isLoadingChanged=V6.prototype.isLoadingChanged;V6.prototype.triggerFirstContinuation=V6.prototype.triggerFirstContinuation;V6.prototype.dataChanged=V6.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.wk),_.X("design:type",Object)],V6.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],V6.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],V6.prototype,"modern",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],V6.prototype,"commentThreadingEnabled",void 0);_.W([_.q(),_.X("design:type",Boolean)],V6.prototype,"expanded",void 0);
_.W([_.q(),_.X("design:type",Function)],V6.prototype,"toggleExpanded",void 0);_.W([_.q(),_.X("design:type",Array)],V6.prototype,"addedReplies",void 0);_.W([_.q(),_.X("design:type",Boolean)],V6.prototype,"hovered",void 0);_.W([_.q(),_.X("design:type",Boolean)],V6.prototype,"topLevelThread",void 0);_.W([_.q(),_.X("design:type",Boolean)],V6.prototype,"isLoading",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],V6.prototype,"isShowRepliesVisible",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],V6.prototype,"useNewFormatting",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],V6.prototype,"engagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],V6.prototype,"isWatchGrid",void 0);_.W([_.q(),_.X("design:type",Object)],V6.prototype,"buttonOverrides",void 0);_.W([_.Z7("#expander-contents"),_.X("design:type",HTMLElement)],V6.prototype,"expanderContents",void 0);
_.W([_.Z7("ytd-continuation-item-renderer"),_.X("design:type",Object)],V6.prototype,"continuationItemRenderer",void 0);_.W([_.Z7("#contents"),_.X("design:type",HTMLElement)],V6.prototype,"contents",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],V6.prototype,"dataChanged",null);_.W([_.O("data.contents","data.subThreads.*"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],V6.prototype,"hasContinuation",null);
_.W([_.O("data.teaserContents"),_.X("design:type",Object),_.X("design:paramtypes",[])],V6.prototype,"subThreadTeasers",null);_.W([_.tM("yt-expander-more-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],V6.prototype,"triggerFirstContinuation",null);_.W([_.ph("isLoading"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],V6.prototype,"isLoadingChanged",null);
_.W([_.ph("isShowRepliesVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],V6.prototype,"isShowMoreChanged",null);_.W([_.J({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],V6);
_.B(V6,"ytd-comment-replies-renderer",function(){if(n1N!==void 0)return n1N;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return n1N=v},{mode:1});var siV;var Ea=function(){var v=_.z.apply(this,arguments)||this;v.isOpen=!1;v.commentDialog=null;v.useSmallAvatars=_.Y("small_avatars_for_comments");v.useSmallAvatarsEngagementPanelOnly=_.Y("small_avatars_for_comments_ep");v.placeholderFocusListener=null;v.hasOpenedDialog=!1;v.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return v};
_.f(Ea,_.z);_.K=Ea.prototype;_.K.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]]"}}}}}};
_.K.ready=function(){var v=this,Q=_.m9(this.hostElement).querySelector("#placeholder-area"),V=_.m9(this.hostElement).querySelector("#simplebox-placeholder"),E=function(b){b.stopPropagation();b instanceof KeyboardEvent&&b.type==="keypress"&&b.keyCode!==13&&b.keyCode!==32||v.openDialog()};
this.placeholderFocusListener=E;V.addEventListener("focus",this.placeholderFocusListener);Q.addEventListener("tap",E);Q.addEventListener("keypress",E)};
_.K.maybeRemoveFocusEventListener=function(){var v;(v=this.data)!=null&&v.prepareAccountEndpoint&&!_.Y("web_comments_simplebox_modal_focus_on_tap_ks")&&(v=_.m9(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(v.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.K.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.K.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.Y("web_comment_simplebox_resolve_polymer_command_ks")?_.bd.instance.resolveCommand(this.data.prepareAccountEndpoint):_.FL(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);v&&this.ytdOpenPopupBehavior.openPopup(v);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.m9(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.K.onYtCommentboxDismiss=function(v){v.stopPropagation();this.isOpen=!1};
_.K.onCreateCommentAction=function(v){this.get("createCommentAction.contents",v)&&(this.isOpen=!1)};
_.K.computeCommentDialog=function(v){return{placeholderText:v.placeholderText,authorThumbnail:v.authorThumbnail,submitButton:v.submitButton,imageButton:v.imageButton,cancelButton:v.cancelButton,emojiButton:v.emojiButton,emojis:v.emojis,emojiPicker:v.emojiPicker,aadcGuidelinesStateEntityKey:v.aadcGuidelinesStateEntityKey,openAadcDialog:v.openAadcDialog,unicodeEmojisUrl:v.unicodeEmojisUrl}};
_.K.onHideIdentityChip=function(v){_.y(v,Y5N)&&this.set("data.placeholderText",_.y(v,Y5N).placeholderText)};
Ea.prototype.onYtCommentboxDismiss=Ea.prototype.onYtCommentboxDismiss;Ea.prototype.dataChanged=Ea.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],Ea.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ea.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ea.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Ea.prototype,"isOpen",void 0);_.W([_.q(),_.X("design:type",Object)],Ea.prototype,"commentDialog",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ea.prototype,"engagementPanel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ea.prototype,"useSmallAvatars",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ea.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ea.prototype,"enableCreationBox",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ea.prototype,"showCreateDialog",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ea.prototype,"dataChanged",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Ea.prototype,"onYtCommentboxDismiss",null);_.W([_.J({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Ea);
_.B(Ea,"ytd-comment-simplebox-renderer",function(){if(siV!==void 0)return siV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return siV=v},{mode:1});var uNq;_.yZ("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var bR=function(){var v=_.z.apply(this,arguments)||this;v.addHoverEffect=_.Y("swatcheroo_comments_hover_effect");v.useSmallAvatars=_.Y("small_avatars_for_comments");v.scrollingEnabled=_.Y("web_comment_threading_scroll_on_collapse");v.isSubThread=!1;v.threadHovered=!1;v.expanded=!1;v.removed=!1;v.addedReplies=[];v.actionMap=v.configureActionMap();v.toggleExpanded=function(){v.expanded=!v.expanded;!v.expanded&&v.scrollingEnabled&&_.mb(v.hostElement,"yt-scroll-to-comment-element",[v.commentElement])};
return v};
_.f(bR,_.z);_.K=bR.prototype;_.K.configureActionMap=function(){return _.Y("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"}:{}};
_.K.createCommentReplyAction=function(v){v=_.y(v,kjQ);if(v!=null&&v.contents){var Q=v.replyToCommentId,V=v.parentCommentId,E,b=(E=this.commentViewModel)==null?void 0:E.commentId;(b===Q||b===V&&!Q)&&this.maybeAttachReply(v.contents)}};
_.K.maybeAttachReply=function(v){var Q,V;(((Q=this.commentEntity)==null?void 0:(V=Q.properties)==null?void 0:V.replyLevel)||0)>=3?_.Hj(this.hostElement,"yt-pushed-create-comment-reply",v):this.attachReply(v)};
_.K.onPushedCreateCommentReply=function(v){var Q,V;(((Q=this.commentEntity)==null?void 0:(V=Q.properties)==null?void 0:V.replyLevel)||0)>=3||(this.attachReply(v.detail),v.stopPropagation())};
_.K.attachReply=function(v){var Q;((Q=this.data)==null?0:Q.replies)?(Q=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+Q+".continuationItemRenderer")?Q===0?this.push("addedReplies",v):this.splice("data.replies.commentRepliesRenderer.subThreads",Q,0,v):this.push("data.replies.commentRepliesRenderer.subThreads",v)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[v],viewReplies:{buttonRenderer:{text:_.I$(_.Lt("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.K.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.ui(this.addedReplies))),this.set("addedReplies",[]))};
_.K.removeCommentAction=function(v){v=_.y(v,fLQ);var Q=v==null?void 0:v.commentId,V;Q&&((V=this.commentViewModel)==null?void 0:V.commentId)===Q&&this.maybeRemoveComment(v.actionResult)};
_.K.banAuthorAction=function(v){v=_.y(v,wVN);var Q=v==null?void 0:v.commentId,V;Q&&((V=this.commentViewModel)==null?void 0:V.commentId)===Q&&this.maybeRemoveComment(v.actionResult)};
_.K.hideReportedCommentAction=function(v){v=_.y(v,B9q);var Q=v==null?void 0:v.commentId,V;Q&&((V=this.commentViewModel)==null?void 0:V.commentId)===Q&&this.maybeRemoveComment(v.actionResult)};
_.K.maybeRemoveComment=function(v){v&&v.status==="STATUS_SUCCEEDED"&&(this.feedbackText=v.feedbackText||_.I$("Reply removed"),this.removed=!0)};
_.K.onTap=function(v){if(this.addHoverEffect&&!this.engagementPanel&&!_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;((Q=window.getSelection())==null?0:Q.toString().length)||_.FL({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.K.attached=function(){var v=this;this.isSubThread&&(this.expanded=!0);var Q;(Q=this.commentThreadHitbox)==null||Q.addEventListener("mouseover",function(){v.threadHovered=!0});
var V;(V=this.commentThreadHitbox)==null||V.addEventListener("mouseout",function(){v.threadHovered=!1});
var E;(E=this.commentThreadHitbox)==null||E.addEventListener("click",function(){v.maybeToggleExpanded()})};
_.K.onDataChanged=function(){var v=_.Y("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(v)&&this.set(v,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.K.maybeToggleExpanded=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.replies)==null?void 0:(V=Q.commentRepliesRenderer)==null?void 0:V.subThreads,b;(E==null?void 0:E.length)===1&&((b=_.y(E[0],_.WY))==null?0:b.button)&&this.expanded||this.toggleExpanded()};
_.hr.Object.defineProperties(bR.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return _.y((v=this.data)==null?void 0:v.commentViewModel,q5X)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return _.Y("web_delhi_comment_threads")&&!!((v=this.data)==null?0:(Q=v.replies)==null?0:(V=Q.commentRepliesRenderer)==null?0:V.subThreads)}}});
bR.prototype.onDataChanged=bR.prototype.onDataChanged;bR.prototype.onTap=bR.prototype.onTap;bR.prototype.onAppendContinuationItemsActionFinished=bR.prototype.onAppendContinuationItemsActionFinished;bR.prototype.onPushedCreateCommentReply=bR.prototype.onPushedCreateCommentReply;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],bR.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],bR.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bR.prototype,"addHoverEffect",void 0);_.W([_.q(),_.X("design:type",Object)],bR.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bR.prototype,"useSmallAvatars",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bR.prototype,"scrollingEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bR.prototype,"isSubThread",void 0);_.W([_.Z7(".thread-hitbox"),_.X("design:type",HTMLElement)],bR.prototype,"commentThreadHitbox",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bR.prototype,"threadHovered",void 0);_.W([_.Z7("#comment"),_.X("design:type",HTMLElement)],bR.prototype,"commentElement",void 0);
_.W([_.q(),_.X("design:type",Object)],bR.prototype,"expanded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bR.prototype,"removed",void 0);_.W([_.q(),_.X("design:type",Object)],bR.prototype,"feedbackText",void 0);_.W([_.q(),_.X("design:type",Array)],bR.prototype,"addedReplies",void 0);_.W([_.q({selector:EZo,selectorArgs:["commentViewModel.commentKey"]}),_.X("design:type",Object)],bR.prototype,"commentEntity",void 0);
_.W([_.tM("yt-pushed-create-comment-reply"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],bR.prototype,"onPushedCreateCommentReply",null);_.W([_.tM("yt-append-continuation-items-action-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bR.prototype,"onAppendContinuationItemsActionFinished",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],bR.prototype,"commentViewModel",null);
_.W([_.O("data.replies.commentRepliesRenderer.subThreads"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],bR.prototype,"hasSubThreading",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],bR.prototype,"engagementPanel",void 0);_.W([_.tM("tap"),_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],bR.prototype,"onTap",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bR.prototype,"onDataChanged",null);_.W([_.J({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],bR);
_.B(bR,"ytd-comment-thread-renderer",function(){if(uNq!==void 0)return uNq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return uNq=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var jip;var Fx=function(){var v=_.z.apply(this,arguments)||this;v.compactHeader=_.Y("web_watch_compact_comments_header");v.hidePanelButton=!1;v.isPostSchedulingEnabled=_.Y("enable_post_scheduling");v.hasFinishedStamping=!1;v.JSC$16126_handleOpenPostCommentDialogActionAfterStamp=!1;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.f(Fx,_.z);_.K=Fx.prototype;
_.K.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"}}}};
_.K.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.K.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16126_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.K.onYtServiceRequestSent=function(v,Q){if(!_.Y("kevlar_command_handler")&&Q.actions)for(v=0;v<Q.actions.length;v++){var V=Q.actions[v];_.y(V,oYQ)&&_.m9(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.y(V,oYQ))}};
_.K.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var v;if(this.getPrefilledBackstagePostDialog((v=this.data)==null?void 0:v.actions)){_.m9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var Q=_.m9(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;Q&&_.PE(this,function(){Q.focus();Q.openDialog&&Q.openDialog()})}}else this.hasActionsChange=!0};
_.K.computeIsBackstage=function(v){return v};
_.K.onYtCommentboxDismiss=function(){_.m9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.K.removePrefilledDialog=function(v){if(v==null?0:v.actions){for(var Q=v.actions.length-1;Q>=0;Q--){var V=void 0;((V=_.y(v.actions[Q],EcQ))==null?0:V.dialog)&&delete v.actions[Q]}this.set("data",void 0);this.set("data",v)}};
_.K.getPrefilledBackstagePostDialog=function(v){if(v)for(var Q=0;Q<v.length;Q++){var V=v[Q],E=void 0;if((E=_.y(V,EcQ))==null?0:E.dialog)return _.y(V,EcQ).dialog}return null};
_.K.computeBackstagePostDialog=function(v){return v&&(this.getPrefilledBackstagePostDialog(v.actions)||v.createRenderer)};
_.K.dataChanged=function(){if(this.data){var v=this.data.customEmojis,Q=this.data.unicodeEmojisUrl;_.tj.clear();Q&&_.JK8(_.tj,Q);v&&_.tj.load(v)}};
_.K.handleSignalActionOpenPostCommentDialogAction=function(){var v=_.m9(this.hostElement).querySelector("ytd-comment-simplebox-renderer");v?v.openDialog():this.JSC$16126_handleOpenPostCommentDialogActionAfterStamp=!0};
_.K.onPostHeaderTap=function(){var v;((v=this.data)==null?0:v.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.hr.Object.defineProperties(Fx.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.Y("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b,F,t;return!this.hidePanelButton&&_.Y("kevlar_watch_comments_panel_button")&&((t=_.y((v=this.data)==null?void 0:(Q=v.sortMenu)==null?void 0:(V=Q.sortFilterSubMenuRenderer)==null?void 0:(E=V.subMenuItems)==null?void 0:(b=E[0])==null?void 0:(F=b.serviceEndpoint)==null?void 0:F.commandMetadata,_.Kt))==null?void 0:t.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Lt("MINIPLAYER_EXPAND_LABEL"),text:_.u3(_.Lt("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Fx.prototype.dataChanged=Fx.prototype.dataChanged;Fx.prototype.onYtCommentboxDismiss=Fx.prototype.onYtCommentboxDismiss;Fx.prototype.observePrefilledBackstagePostDialog=Fx.prototype.observePrefilledBackstagePostDialog;Fx.prototype.onYtServiceRequestSent=Fx.prototype.onYtServiceRequestSent;Fx.prototype.onStampFinished=Fx.prototype.onStampFinished;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Fx.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Fx.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Fx.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fx.prototype,"compactHeader",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Fx.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Object)],Fx.prototype,"hidePanelButton",void 0);_.W([_.q({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Fx.prototype,"isBackstage",void 0);_.W([_.q({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.X("design:type",Object)],Fx.prototype,"backstagePostDialog",void 0);
_.W([_.q(),_.X("design:type",Object)],Fx.prototype,"isPostSchedulingEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data","showCommentsPanelButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],Fx.prototype,"useSpaceBetween",null);_.W([_.q({reflectToAttribute:!0}),_.O("data","hidePanelButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],Fx.prototype,"showCommentsPanelButton",null);
_.W([_.O("data","showCommentsPanelButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],Fx.prototype,"commentsPanelButtonData",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fx.prototype,"onStampFinished",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],Fx.prototype,"onYtServiceRequestSent",null);
_.W([_.ph("data.actions"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fx.prototype,"observePrefilledBackstagePostDialog",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Fx.prototype,"onYtCommentboxDismiss",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fx.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Fx);
_.B(Fx,"ytd-comments-header-renderer",function(){if(jip!==void 0)return jip;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return jip=v},{mode:1});var W1S;var Kn=function(){return _.z.apply(this,arguments)||this};
_.f(Kn,_.z);_.W([_.q(),_.X("design:type",Object)],Kn.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.W([_.J({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Kn);
_.B(Kn,"ytd-destination-button-renderer",function(){if(W1S!==void 0)return W1S;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return W1S=v},{mode:1});var o18;var iR=function(){var v=_.z.apply(this,arguments)||this;v.isRichGrid=!1;v.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return v};
_.f(iR,_.z);_.K=iR.prototype;_.K.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.K.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.K.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.K.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var v;if((v=this.data)==null||!v.isExpanded){v=this.hostElement.clientWidth;var Q;if(v&&(Q=this.data)!=null&&Q.destinationButtons){Q=Math.floor((v+4)/214);v=this.data.destinationButtons.length;var V=Math.ceil(v/Q);this.fullyVisibleRows=v%Q===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}}}};
_.K.updateRichGridDestinationButtonsVisibility=function(){var v,Q;if(this.isRichGrid&&((v=this.data)==null||!v.isExpanded)&&(Q=this.data)!=null&&Q.destinationButtons){v=this.richGridItemsPerRow+1;Q=this.data.destinationButtons.length;var V=Math.ceil(Q/v);this.fullyVisibleRows=Q%v===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
_.K.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
iR.prototype.updateRichGridDestinationButtonsVisibility=iR.prototype.updateRichGridDestinationButtonsVisibility;_.W([_.q(),_.X("design:type",Object)],iR.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Number)],iR.prototype,"fullyVisibleRows",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],iR.prototype,"isShowMoreVisible",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iR.prototype,"isRichGrid",void 0);
_.W([_.q({selector:_.C7,value:0}),_.X("design:type",Number)],iR.prototype,"richGridItemsPerRow",void 0);_.W([_.q(),_.X("design:type",Object)],iR.prototype,"gridStateActionMap",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],iR.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],iR.prototype,"ytdReduxBehavior",void 0);_.W([_.ph("data","richGridItemsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iR.prototype,"updateRichGridDestinationButtonsVisibility",null);_.W([_.J({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],iR);
_.B(iR,"ytd-destination-shelf-renderer",function(){if(o18!==void 0)return o18;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return o18=v},{mode:1});var XTa;var Ln=function(){return _.z.apply(this,arguments)||this};
_.f(Ln,_.z);Ln.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ln.prototype,"data",void 0);_.W([_.J({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Ln);
_.B(Ln,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(XTa!==void 0)return XTa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return XTa=v},{mode:1});var akV;var tw=function(){var v=_.z.apply(this,arguments)||this;v.disableAnimation=!1;v.isSlimlineSurvey=!1;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;return v};
_.f(tw,_.z);tw.prototype.onTap=function(v){v.preventDefault();this.data&&_.Hj(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.hr.Object.defineProperties(tw.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b;return((v=this.data)==null?0:v.checked)?(Q=this.data)==null?void 0:(V=Q.onStateIcon)==null?void 0:V.iconType:(E=this.data)==null?void 0:(b=E.defaultStateIcon)==null?void 0:b.iconType}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tw.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],tw.prototype,"disableAnimation",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tw.prototype,"isSlimlineSurvey",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tw.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tw.prototype,"isShortsStyle",void 0);_.W([_.O("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],tw.prototype,"isAnimatedIcon",null);
_.W([_.O("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.X("design:type",Number),_.X("design:paramtypes",[])],tw.prototype,"iconSize",null);_.W([_.O("isShortsStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],tw.prototype,"isDarkTheme",null);_.W([_.O("data.checked"),_.X("design:type",Object),_.X("design:paramtypes",[])],tw.prototype,"icon",null);_.W([_.J({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],tw);
_.B(tw,"ytd-rating-survey-option-renderer",function(){if(akV!==void 0)return akV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return akV=v},{mode:2});var rAq;var pn=function(){var v=_.z.apply(this,arguments)||this;v.firstResponseText=null;v.lastResponseText=null;v.selectedNonStarOption=null;v.hideOptions=!1;v.hideUndoButton=!0;v.disableAnimation=!1;v.showResponseRangeText=!1;v.selectedRatingIndex=-1;v.isSlimlineSurvey=!1;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;v.slimlineSurveyRatingSelectedIndex=-1;return v};
_.f(pn,_.z);_.K=pn.prototype;_.K.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.K.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.K.onOptionChange=function(v,Q){var V=this;v=Q.onStateIcon&&Q.defaultStateIcon&&Q.onStateIcon.iconType===Q.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(t,p){t.responseText===Q.responseText?V.isSlimlineSurvey?(V.selectedRatingIndex=p,V.ytdReduxBehavior.dispatch(QRQ(p))):(V.setSurveyOptionValue(p,!0,"checked"),V.setSurveyOptionValue(p,!0,"selected")):(V.setSurveyOptionValue(p,!1,"checked"),V.setSurveyOptionValue(p,
!1,"selected"))});
else if(v)this.selectedNonStarOption=Q,this.hideOptions=!0;else{var E=this.ytRendererBehavior.getSimpleString(Q.responseText),b=!0;this.getOptionRenderers().forEach(function(t,p){V.setSurveyOptionValue(p,b,"checked");V.setSurveyOptionValue(p,!1,"selected");V.ytRendererBehavior.getSimpleString(t.responseText)===E&&(b=!1,V.setSurveyOptionValue(p,!0,"selected"))})}v=Q.responseEndpoint;
var F;Q.followUpCommand&&(F=_.y(Q.followUpCommand,IbZ));this.isSlimlineSurvey?(this.resetComponent(),_.mb(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.mb(this.hostElement,"ytd-inline-survey-rating-select-action",[v,F])};
_.K.showSelectedOption=function(){var v=this;_.XT.addJob(function(){var Q=v.getOptionRenderers()[v.slimlineSurveyRatingSelectedIndex];v.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),Q)},8,100)};
_.K.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(v){var Q;return(Q=_.y(v,mna))!=null?Q:{}}):[]};
_.K.onUndoClick=function(){this.resetComponent();_.mb(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.K.setSurveyOptionValue=function(v,Q,V){this.notifyPath("data.ratings."+v+".ratingSurveyOptionRenderer."+V);this.set("data.ratings."+v+".ratingSurveyOptionRenderer."+V,Q)};
_.K.resetComponent=function(){var v=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var Q=this.getOptionRenderers(),V,E;this.firstResponseText=(E=(V=Q[0])==null?void 0:V.responseText)!=null?E:null;var b,F;this.lastResponseText=(F=(b=Q[Q.length-1])==null?void 0:b.responseText)!=null?F:null;Q.forEach(function(t,p){v.setSurveyOptionValue(p,!1,"checked");v.setSurveyOptionValue(p,!1,"selected")})};
_.hr.Object.defineProperties(pn.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
pn.prototype.onOptionChange=pn.prototype.onOptionChange;pn.prototype.dataChanged=pn.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],pn.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],pn.prototype,"firstResponseText",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"lastResponseText",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"selectedNonStarOption",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"hideOptions",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"hideUndoButton",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"disableAnimation",void 0);
_.W([_.q(),_.X("design:type",Object)],pn.prototype,"showResponseRangeText",void 0);_.W([_.q(),_.X("design:type",Object)],pn.prototype,"selectedRatingIndex",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pn.prototype,"isSlimlineSurvey",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pn.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pn.prototype,"isShortsStyle",void 0);_.W([_.q({selector:function(v){return v.ui.slimlineSurveyRatingSelectedIndex}}),
_.X("design:type",Object)],pn.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.W([_.O("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],pn.prototype,"isSingleSelect",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pn.prototype,"dataChanged",null);
_.W([_.tM("ytd-rating-survey-option-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],pn.prototype,"onOptionChange",null);_.W([_.J({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],pn);
_.B(pn,"ytd-rating-survey-renderer",function(){if(rAq!==void 0)return rAq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return rAq=v},{mode:1});var $tQ;var Ika;var Hyp;var yh3=(Kr.FIRSTDAYOFWEEK+1)%7,mtx=function(v,Q,V,E){var b="";if(E.selection&&Aho(E.selection))EI(v,E.selection)&&(b+=" selected");else if(E.selection&&kU3(E.selection)){var F=E.selection.selectionState||"START_DATE";EI(v,E.selection.start)&&(b+=" period-start ",F==="START_DATE"&&(b+="selected"));EI(v,E.selection.end)&&(b+=" period-end ",F==="END_DATE"&&(b+="selected"));bA(v,E.selection.start)||bA(E.selection.end,v)||(b+=" highlighted")}if(bA(Q,E.start)||bA(E.end,Q))b+=" disabled";E.circleToday&&
EI(Q,V)&&(b+=" today");return b};var eU=function(){return _.z.apply(this,arguments)||this};
_.f(eU,_.z);_.K=eU.prototype;_.K.attached=function(){var v=this;_.PE(this,function(){v.JSC$16160_calendarMain.scrollHeight>0&&(v.calendarConfig.selection?v.scrollToDate(Tfh(v.calendarConfig.selection)):v.scrollToDate(v.calendarConfig.end))})};
_.K.updateSelection=function(v){v=ch3(Object.assign({},this.calendarConfig,{selection:v}),mtx);this.splice.apply(this,["renderData.months",0,v.length].concat(_.ui(v)))};
_.K.scrollToDate=function(v){this.renderData&&(v=f_b(v,this.renderData),v!==void 0&&this.JSC$16160_calendarMain.scrollToIndex(v))};
_.K.scrollToNextMonth=function(){this.JSC$16160_calendarMain.scrollToIndex(this.JSC$16160_calendarMain.firstVisibleIndex+1)};
_.K.scrollToPrevMonth=function(){this.JSC$16160_calendarMain.firstVisibleIndex===0&&this.JSC$16160_calendarMain.scrollTo(0,0);this.JSC$16160_calendarMain.scrollToIndex(this.JSC$16160_calendarMain.firstVisibleIndex-1)};
_.K.handleDayClick=function(v){_.mb(this.hostElement,"ytd-calendar-date-clicked",[v.model.day.date])};
_.K.handleDayMouseDown=function(v){v.preventDefault();_.mb(this.hostElement,"ytd-calendar-date-mousedown",[v.model.day.date])};
_.K.handleDayMouseUp=function(v){_.mb(this.hostElement,"ytd-calendar-date-mouseup",[v.model.day.date])};
_.K.handleDayMouseEnter=function(v){v.preventDefault();_.mb(this.hostElement,"ytd-calendar-date-mouseenter",[v.model.day.date])};
_.K.handleDayMouseLeave=function(v){_.mb(this.hostElement,"ytd-calendar-date-mouseleave",[v.model.day.date])};
_.hr.Object.defineProperties(eU.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var v=this.calendarConfig,Q=mtx;Q=Q===void 0?mtx:Q;for(var V=[],E=0;E<7;E++)V.push(Kr.NARROWWEEKDAYS[(E+yh3)%7]);return{months:ch3(v,Q),daysOfWeekLabel:V}}}});
_.W([_.q(),_.X("design:type",Object)],eU.prototype,"calendarConfig",void 0);_.W([_.Z7("#calendar-main"),_.X("design:type",Object)],eU.prototype,"JSC$16160_calendarMain",void 0);_.W([_.O("calendarConfig"),_.X("design:type",Object),_.X("design:paramtypes",[])],eU.prototype,"renderData",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],eU);
_.B(eU,"ytd-scrollable-calendar",function(){if(Hyp!==void 0)return Hyp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Hyp=v},{mode:2});var UtQ;var vrA;var ZE=function(){var v=_.z.apply(this,arguments)||this;v.hideCharCounter=!1;v.hideLabel=!1;v.noLabelFloat=!1;v.autoValidate=!0;v.invalid=!1;v.disabled=!1;v.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return v};
_.f(ZE,_.z);_.K=ZE.prototype;_.K.reset=function(v){this.value=v&&this.data?this.data.value=v:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.K.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.K.focusTextInput=function(){this.input.focus()};
_.K.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()};
_.K.valueChanged=function(){var v,Q;if(((v=this.data)==null?0:v.value)||((Q=this.data)==null?void 0:Q.value)==="")this.value=this.data.value;else{var V;((V=this.data)==null?void 0:V.value)!==void 0||this.value||(this.value="")}};
_.K.computeLabel=function(v,Q){return Q?"":_.j0(v)};
_.K.computeAriaLabel=function(v,Q){return Q?_.j0(v):""};
_.K.computeErrorMessage=function(v,Q,V,E){!v&&Q?v=V||this.strings.REQUIRED_LABEL:(v=_.j0(E),v=_.Zt(v,"&")?"document"in _.bb?i$A(v):LkN(v):v);return v};
_.K.computeType=function(v){return v==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.K.onTextValueChanged=function(v){this.value=v.detail.value;var Q;(Q=this.onValueChanged)==null||Q.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.K.handleUpdateTextInputFormFieldRendererCommand=function(v){(v=_.y(v,ACp))&&this.data&&this.data.id===v.id&&(v.invalid!==void 0&&(this.invalid=v.invalid),v.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",v.invalidValueErrorMessage))};
_.K.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("value-changed",this.value))};
_.K.updateInvalidFromBinding=function(v){this.invalid=v.detail.value};
_.hr.Object.defineProperties(ZE.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var v;return!((v=this.data)==null||!v.isMultiline)}}});
ZE.prototype.valueChangedForBinding=ZE.prototype.valueChangedForBinding;ZE.prototype.valueChanged=ZE.prototype.valueChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ZE.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],ZE.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],ZE.prototype,"value",void 0);_.W([_.q(),_.X("design:type",String)],ZE.prototype,"pattern",void 0);_.W([_.q(),_.X("design:type",String)],ZE.prototype,"errorMessage",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],ZE.prototype,"componentStyle",void 0);_.W([_.q(),_.X("design:type",Object)],ZE.prototype,"hideCharCounter",void 0);
_.W([_.q(),_.X("design:type",Object)],ZE.prototype,"hideLabel",void 0);_.W([_.q(),_.X("design:type",Object)],ZE.prototype,"noLabelFloat",void 0);_.W([_.q(),_.X("design:type",Function)],ZE.prototype,"onValueChanged",void 0);_.W([_.q(),_.X("design:type",Boolean)],ZE.prototype,"isMultilineOverride",void 0);_.W([_.q(),_.X("design:type",Object)],ZE.prototype,"autoValidate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ZE.prototype,"invalid",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ZE.prototype,"disabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],ZE.prototype,"enableOverlayTheme",void 0);_.W([_.q({value:{REQUIRED_LABEL:_.Lt("REQUIRED_LABEL",void 0,"Required")}}),_.X("design:type",Object)],ZE.prototype,"strings",void 0);_.W([_.Z7("#input"),_.X("design:type",Object)],ZE.prototype,"input",void 0);
_.W([_.O("data","isMultilineOverride"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZE.prototype,"isMultiline",null);_.W([_.wg("data.value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZE.prototype,"valueChanged",null);_.W([_.ph("value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZE.prototype,"valueChangedForBinding",null);_.W([_.D7({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],ZE);
_.B(ZE,"yt-text-input-form-field-renderer",function(){if(vrA===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;UtQ===void 0&&(UtQ=document.createElement("template"));var E=UtQ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);vrA=v}v=vrA;return v},{mode:2});var Pl=function(){var v=_.z.apply(this,arguments)||this;v.data=void 0;v.selectionState="START_DATE";v.isStartDateInvalid=!1;v.isEndDateInvalid=!1;v.autoapply=!1;v.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return v};
_.f(Pl,_.z);_.K=Pl.prototype;_.K.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"}}}}};
_.K.focus=function(){this.startDateInput.focus()};
_.K.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:FQ(this.data.selection.start),end:FQ(this.data.selection.end)})};
_.K.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.K.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.rV(this.selectionState)}};
_.K.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.K.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.K.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.K.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var v=this.calendar.calendarConfig,Q=v.end;v=CW3({start:v.start,end:this.endDate||Q},this.startDateInput.value||"");this.isStartDateInvalid=!v.isValid;v.isValid&&(v=v.value,this.selection=this.endDate?{start:v,end:this.endDate}:v,this.calendar.scrollToDate(v));this.updateInvalidState()}};
_.K.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var v=this.calendar.calendarConfig,Q=v.start;v=CW3({start:this.startDate||Q,end:v.end},this.endDateInput.value||"");this.isEndDateInvalid=!v.isValid;v.isValid&&(v=v.value,this.selection={start:this.startDate,end:v},this.calendar.scrollToDate(v));this.updateInvalidState()}};
_.K.handleCalendarDateClicked=function(v){var Q=this.selection&&Tfh(this.selection),V=this.selection&&Y1Z(this.selection);Q&&!bA(v,Q)&&this.selectionState==="END_DATE"?(this.selection={start:Q,end:v},this.selectionState="START_DATE"):(V&&!bA(V,v)?this.selection={start:v,end:V}:this.selection=v,this.selectionState="END_DATE")};
_.K.handleCalendarDateMouseDown=function(v){this.selection&&!Aho(this.selection)&&(this.dragPivot=EI(v,this.selection.start)?this.selection.end:EI(v,this.selection.end)?this.selection.start:v)};
_.K.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.K.handleCalendarDateMouseEnter=function(v){this.dragPivot&&(this.selection={start:function(Q,V){return bA(Q,V)?Q:V}(this.dragPivot,v),
end:function(Q,V){return bA(Q,V)?V:Q}(this.dragPivot,v)},this.dragPivot||(this.selectionState="START_DATE"))};
_.K.handleCalendarDateMouseLeave=function(){};
_.K.handleCalendarSubmitDateRange=function(){this.selection&&!Aho(this.selection)&&_.mb(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.K.updateInvalidState=function(){var v=function(Q,V){V?Q.setAttribute("invalid",""):Q.removeAttribute("invalid")};
v(this.startDateInput,this.isStartDateInvalid);v(this.endDateInput,this.isEndDateInvalid)};
_.K.updateDateStrings=function(){this.selection&&(Aho(this.selection)?wiQ(this.selection):(wiQ(this.selection.start),wiQ(this.selection.end)))};
_.K.updateCalendarSelection=function(v){this.calendar.updateSelection(Object.assign({},v,{selectionState:this.selectionState}))};
_.K.updateIsStartDateInvalidFromBinding=function(v){this.isStartDateInvalid=v.detail.value};
_.K.updateIsEndDateInvalidFromBinding=function(v){this.isEndDateInvalid=v.detail.value};
_.K.updateStartDateStringFromBinding=function(){};
_.K.updateEndDateStringFromBinding=function(){};
_.hr.Object.defineProperties(Pl.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:FQ(this.data.dateRangeStart),end:FQ(this.data.dateRangeEnd),selection:{start:FQ(this.data.selection.start),end:FQ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Tfh(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Y1Z(this.selection)}}});
Pl.prototype.resetTextboxes=Pl.prototype.resetTextboxes;Pl.prototype.observeSelection=Pl.prototype.observeSelection;Pl.prototype.dataChanged=Pl.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Pl.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#calendar"),_.X("design:type",Object)],Pl.prototype,"calendar",void 0);
_.W([_.Z7("#start-date"),_.X("design:type",Object)],Pl.prototype,"startDateInput",void 0);_.W([_.Z7("#end-date"),_.X("design:type",Object)],Pl.prototype,"endDateInput",void 0);_.W([_.q(),_.X("design:type",Object)],Pl.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Pl.prototype,"selection",void 0);_.W([_.q(),_.X("design:type",String)],Pl.prototype,"selectionState",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Pl.prototype,"calendarConfig",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Pl.prototype,"errorMessage",null);_.W([_.O("selection"),_.X("design:type",Object),_.X("design:paramtypes",[])],Pl.prototype,"startDate",null);_.W([_.O("selection"),_.X("design:type",Object),_.X("design:paramtypes",[])],Pl.prototype,"endDate",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pl.prototype,"dataChanged",null);
_.W([_.ph("selection","selectionState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pl.prototype,"observeSelection",null);_.W([_.ph("selectionState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pl.prototype,"resetTextboxes",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Pl);
_.B(Pl,"ytd-date-period-picker-renderer",function(){if(Ika!==void 0)return Ika;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Ika=v},{mode:1});var d0=function(){var v=_.z.apply(this,arguments)||this;var Q={};v.actionMap=(Q["ytd-date-period-picker-apply"]="handleDateRangeUpdated",Q);return v};
_.f(d0,_.z);d0.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
d0.prototype.handleDateRangeUpdated=function(){};
_.W([_.q(),_.X("design:type",Object)],d0.prototype,"data",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],d0.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],d0.prototype,"rendererstamperBehavior",void 0);_.W([_.J({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],d0);
_.B(d0,"ytd-report-history-section-header-renderer",function(){if($tQ!==void 0)return $tQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return $tQ=v},{mode:1});var Qtq;var VdZ;var ErS;var hw=function(){return _.z.apply(this,arguments)||this};
_.f(hw,_.z);_.hr.Object.defineProperties(hw.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?0:(Q=v.icon)==null?0:Q.iconType)?_.VK(this.data.icon.iconType):""}}});
_.W([_.q(),_.X("design:type",Object)],hw.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],hw.prototype,"icon",null);_.W([_.J({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],hw);
_.B(hw,"ytd-report-history-table-text-cell-renderer",function(){if(ErS!==void 0)return ErS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ErS=v},{mode:1});var w0=function(){return _.z.apply(this,arguments)||this};
_.f(w0,_.z);w0.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],w0.prototype,"data",void 0);_.W([_.J({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],w0);
_.B(w0,"ytd-report-history-table-reason-cell-renderer",function(){if(VdZ!==void 0)return VdZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return VdZ=v},{mode:1});var Aw=function(){return _.z.apply(this,arguments)||this};
_.f(Aw,_.z);Aw.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Aw.prototype,"rendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Aw.prototype,"data",void 0);_.W([_.J({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Aw);
_.B(Aw,"ytd-report-history-table-cell-renderer",function(){if(Qtq!==void 0)return Qtq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return Qtq=v},{mode:1});var bKN;var kk=function(){var v=_.z.apply(this,arguments)||this;v.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return v};
_.f(kk,_.z);kk.prototype.onDataChanged=function(){var v;if((v=this.data)==null?0:v.style)this.componentStyle=this.getStyleName(this.data.style)};
kk.prototype.getCellForColumn=function(v){return this.cells.find(function(Q){var V;return((V=_.y(Q==null?void 0:Q.cell,QXA)||_.y(Q==null?void 0:Q.cell,v9a))==null?void 0:V.columnId)===v.type})};
kk.prototype.getClassForColumn=function(v){switch(v){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
kk.prototype.getStyleName=function(v){switch(v){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.hr.Object.defineProperties(kk.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.cells)||[]).map(function(Q){return _.y(Q,Una)})}}});
kk.prototype.onDataChanged=kk.prototype.onDataChanged;_.W([_.q(),_.X("design:type",Object)],kk.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Array)],kk.prototype,"columnRenderData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],kk.prototype,"componentStyle",void 0);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],kk.prototype,"cells",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kk.prototype,"onDataChanged",null);_.W([_.J({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],kk);
_.B(kk,"ytd-report-history-table-row-renderer",function(){if(bKN!==void 0)return bKN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bKN=v},{mode:1});var FEN;var KEa;var MQB={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},OmQ={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var TD=function(){return _.z.apply(this,arguments)||this};
_.f(TD,_.z);TD.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"}}}}}};
TD.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.hr.Object.defineProperties(TD.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.columns)?q1Z(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return ntQ(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var v=this.tableSpec,Q=MQB;Q=Q===void 0?OmQ:Q;Q=l_9(v.columnDimensions,v.columnsToShow||[],Q);v=0;Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,v+=V.minWidth+V.paddingLeft+V.paddingRight;return v}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.W([_.M(_.wk),_.X("design:type",Object)],TD.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TD.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],TD.prototype,"tableSpec",null);_.W([_.O("tableSpec"),_.X("design:type",Array),_.X("design:paramtypes",[])],TD.prototype,"columnRenderData",null);
_.W([_.O("tableSpec"),_.X("design:type",Number),_.X("design:paramtypes",[])],TD.prototype,"totalMinWidth",null);_.W([_.O("totalMinWidth"),_.X("design:type",String),_.X("design:paramtypes",[])],TD.prototype,"tableWidthStyle",null);_.W([_.J({is:"ytd-table-renderer",disableElementRegistration:!0})],TD);
_.B(TD,"ytd-table-renderer",function(){if(KEa!==void 0)return KEa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return KEa=v},{mode:1});var Yk=function(){return _.z.apply(this,arguments)||this};
_.f(Yk,_.z);Yk.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Yk.prototype,"data",void 0);_.W([_.J({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Yk);
_.B(Yk,"ytd-report-reason-history-modal-renderer",function(){if(FEN!==void 0)return FEN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FEN=v},{mode:1});var iKp;var LEV;var td8;var y6=function(){return _.z.apply(this,arguments)||this};
_.f(y6,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],y6.prototype,"data",void 0);_.W([_.J({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],y6);
_.B(y6,"ytd-profile-column-stats-entry-renderer",function(){if(td8!==void 0)return td8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return td8=v},{mode:1});var pGX;var cl=function(){return _.z.apply(this,arguments)||this};
_.f(cl,_.z);cl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cl.prototype,"data",void 0);_.W([_.J({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],cl);
_.B(cl,"ytd-profile-column-stats-renderer",function(){if(pGX!==void 0)return pGX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return pGX=v},{mode:1});var eVp;var fn=function(){return _.z.apply(this,arguments)||this};
_.f(fn,_.z);_.hr.Object.defineProperties(fn.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.useThumbnailSize)return 80;var Q,V;v=(Q=this.data)==null?void 0:(V=Q.thumbnail)==null?void 0:V.thumbnails;var E;return v&&((E=v[0])==null?void 0:E.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.useThumbnailSize)return 80;var Q,V;v=(Q=this.data)==null?void 0:(V=Q.thumbnail)==null?void 0:V.thumbnails;var E;return v&&((E=v[0])==null?void 0:E.height)||80}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fn.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],fn.prototype,"componentStyle",void 0);_.W([_.O("data.useThumbnailSize"),_.X("design:type",Object),_.X("design:paramtypes",[])],fn.prototype,"thumbnailWidth",null);
_.W([_.O("data.useThumbnailSize"),_.X("design:type",Object),_.X("design:paramtypes",[])],fn.prototype,"thumbnailHeight",null);_.W([_.J({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],fn);
_.B(fn,"ytd-profile-column-user-info-renderer",function(){if(eVp!==void 0)return eVp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return eVp=v},{mode:1});var GD=function(){return _.z.apply(this,arguments)||this};
_.f(GD,_.z);GD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GD.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],GD.prototype,"componentStyle",void 0);_.W([_.J({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],GD);
_.B(GD,"ytd-profile-column-renderer",function(){if(LEV!==void 0)return LEV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return LEV=v},{mode:1});var Cn=function(){var v=_.z.apply(this,arguments)||this;v.componentStyle="NON_CENTERED_PROFILE";return v};
_.f(Cn,_.z);Cn.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Cn.prototype.getIcon=function(v){return v?"settings:"+v.toLowerCase():null};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cn.prototype,"data",void 0);_.W([_.J({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Cn);
_.B(Cn,"ytd-page-introduction-renderer",function(){if(iKp!==void 0)return iKp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return iKp=v},{mode:1});var ZKN;var Mb=function(){return _.z.apply(this,arguments)||this};
_.f(Mb,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Mb.prototype,"data",void 0);_.W([_.J({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Mb);
_.B(Mb,"ytd-report-description-renderer",function(){if(ZKN!==void 0)return ZKN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ZKN=v},{mode:1});var PGx;var dTx;var Oa=function(){return _.z.apply(this,arguments)||this};
_.f(Oa,_.z);Oa.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Oa.prototype,"data",void 0);_.W([_.J({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Oa);
_.B(Oa,"ytd-video-report-renderer",function(){if(dTx!==void 0)return dTx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dTx=v},{mode:1});var hVN;_.yZ("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.yZ("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var DE=function(){return _.z.apply(this,arguments)||this};
_.f(DE,_.z);DE.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]]"}}}}}};
DE.prototype.computeMessageStyle=function(v){return v};
DE.prototype.computeButtonOverride=function(v){var Q;if((v==null?0:(Q=v.style)==null?0:Q.value)&&v.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DE.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],DE.prototype,"shelf",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],DE.prototype,"panel",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.X("design:type",Boolean)],DE.prototype,"componentStyle",void 0);_.W([_.q({computed:"computeButtonOverride(data)"}),_.X("design:type",Object)],DE.prototype,"buttonOverride",void 0);_.W([_.J({is:"ytd-message-renderer",disableElementRegistration:!0})],DE);
_.B(DE,"ytd-message-renderer",function(){if(hVN!==void 0)return hVN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hVN=v},{mode:1});var Rw=function(){return _.z.apply(this,arguments)||this};
_.f(Rw,_.z);Rw.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"}}}};
Rw.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Rw.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.hr.Object.defineProperties(Rw.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!!(((v=this.data)==null?0:v.header)&&((Q=this.data)==null?0:Q.table))}}});
Rw.prototype.onRequestError=Rw.prototype.onRequestError;_.W([_.M(_.wk),_.X("design:type",Object)],Rw.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Rw.prototype,"data",void 0);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Rw.prototype,"isUnifiedReportHistory",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Rw.prototype,"onRequestError",null);_.W([_.J({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Rw);
_.B(Rw,"ytd-report-history-section-renderer",function(){if(PGx!==void 0)return PGx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return PGx=v},{mode:1});var wGX;var nn=function(){var v=_.z.apply(this,arguments)||this;v.answerExpanded=!1;return v};
_.f(nn,_.z);nn.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nn.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],nn.prototype,"answerExpanded",void 0);_.W([_.J({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],nn);
_.B(nn,"ytd-handles-claiming-faq-renderer",function(){if(wGX!==void 0)return wGX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return wGX=v},{mode:1});var AJS;var k1S=function(){return _.z.apply(this,arguments)||this};
_.f(k1S,_.z);_.W([_.q(),_.X("design:type",Object)],k1S.prototype,"data",void 0);_.W([_.J({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],k1S);
_.B(k1S,"ytd-handles-claiming-faq-section-renderer",function(){if(AJS!==void 0)return AJS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return AJS=v},{mode:1});var TFV;var lR=function(){var v=_.z.apply(this,arguments)||this;v.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";v.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";v.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";v.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";v.leftSquiggly=v.leftSquigglyLight;v.rightSquiggly=v.rightSquigglyLight;
v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return v};
_.f(lR,_.z);_.K=lR.prototype;_.K.updateLeftSquigglyStyle=function(){_.F6(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.K.updateRightSquigglyStyle=function(){_.F6(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.K.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),v?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
lR.prototype.updateRightSquigglyStyle=lR.prototype.updateRightSquigglyStyle;lR.prototype.updateLeftSquigglyStyle=lR.prototype.updateLeftSquigglyStyle;_.W([_.q(),_.X("design:type",Object)],lR.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],lR.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",String)],lR.prototype,"leftSquiggly",void 0);_.W([_.q(),_.X("design:type",String)],lR.prototype,"rightSquiggly",void 0);
_.W([_.ph("leftSquiggly"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lR.prototype,"updateLeftSquigglyStyle",null);_.W([_.ph("rightSquiggly"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lR.prototype,"updateRightSquigglyStyle",null);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],lR.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lR.prototype,"actionButtonOverride",void 0);_.W([_.J({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],lR);
_.B(lR,"ytd-handles-claiming-header-renderer",function(){if(TFV!==void 0)return TFV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return TFV=v},{mode:1});var YFp;var qb=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";v.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";v.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";v.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
v.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";v.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";v.image0SquigglyBackground=v.image0LightSquigglyBackground;v.image1SquigglyBackground=v.image1LightSquigglyBackground;v.image3SquigglyBackground=v.image3LightSquigglyBackground;return v};
_.f(qb,_.z);_.K=qb.prototype;_.K.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.K.onDataChanged=function(){this.updateTitleAndImages()};
_.K.onThemeChanged=function(){this.updateTitleAndImages()};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.K.updateImage0SquigglyBackground=function(){_.F6(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.K.updateImage1SquigglyBackground=function(){_.F6(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.K.updateImage3SquigglyBackground=function(){_.F6(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.K.updateTitleAndImages=function(){var v,Q;((v=this.data)==null?void 0:(Q=v.titleImages)==null?void 0:Q.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))};
qb.prototype.updateImage3SquigglyBackground=qb.prototype.updateImage3SquigglyBackground;qb.prototype.updateImage1SquigglyBackground=qb.prototype.updateImage1SquigglyBackground;qb.prototype.updateImage0SquigglyBackground=qb.prototype.updateImage0SquigglyBackground;qb.prototype.onThemeChanged=qb.prototype.onThemeChanged;qb.prototype.onDataChanged=qb.prototype.onDataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],qb.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],qb.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"title0",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"title1",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"title2",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"title3",void 0);
_.W([_.q(),_.X("design:type",Object)],qb.prototype,"title4",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"image0",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"image1",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"image2",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"image3",void 0);_.W([_.q(),_.X("design:type",Object)],qb.prototype,"image4",void 0);_.W([_.q(),_.X("design:type",String)],qb.prototype,"image0SquigglyBackground",void 0);
_.W([_.q(),_.X("design:type",String)],qb.prototype,"image1SquigglyBackground",void 0);_.W([_.q(),_.X("design:type",String)],qb.prototype,"image3SquigglyBackground",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qb.prototype,"onDataChanged",null);_.W([_.ph("isDarkTheme"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qb.prototype,"onThemeChanged",null);
_.W([_.ph("image0SquigglyBackground"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qb.prototype,"updateImage0SquigglyBackground",null);_.W([_.ph("image1SquigglyBackground"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qb.prototype,"updateImage1SquigglyBackground",null);
_.W([_.ph("image3SquigglyBackground"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qb.prototype,"updateImage3SquigglyBackground",null);_.W([_.J({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],qb);
_.B(qb,"ytd-handles-claiming-title-images-section-renderer",function(){if(YFp!==void 0)return YFp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return YFp=v},{mode:1});var yJA;var SU=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(SU,_.z);SU.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
SU.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v)};
SU.prototype.onCopyButtonClick=function(){var v=this,Q,V,E;return _.e(function(b){return(Q=v.data)!=null&&Q.primaryChannelUrl?b.yield(navigator.clipboard.writeText(((V=v.data)==null?0:V.encodedChannelUrl)?v.data.encodedChannelUrl:"https://"+_.j0((E=v.data)==null?void 0:E.primaryChannelUrl)),0):b.jumpTo(0)})};
_.W([_.q(),_.X("design:type",Object)],SU.prototype,"data",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],SU.prototype,"isDarkTheme",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.J({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],SU);
_.B(SU,"ytd-handles-claiming-update-social-renderer",function(){if(yJA!==void 0)return yJA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return yJA=v},{mode:1});var cJN;var zD=function(){var v=_.z.apply(this,arguments)||this;v.JSC$16254_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";v.JSC$16254_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.squigglyBackground=v.JSC$16254_squigglyBackgroundLight;return v};
_.f(zD,_.z);zD.prototype.updateSquigglyBackgroundStyle=function(){_.F6(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
zD.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.squigglyBackground=v?this.JSC$16254_squigglyBackgroundDark:this.JSC$16254_squigglyBackgroundLight};
zD.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),this.squigglyBackground=v?this.JSC$16254_squigglyBackgroundDark:this.JSC$16254_squigglyBackgroundLight)};
zD.prototype.updateSquigglyBackgroundStyle=zD.prototype.updateSquigglyBackgroundStyle;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],zD.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zD.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],zD.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",String)],zD.prototype,"squigglyBackground",void 0);_.W([_.ph("squigglyBackground"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zD.prototype,"updateSquigglyBackgroundStyle",null);_.W([_.J({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],zD);
_.B(zD,"ytd-handles-claiming-vanity-info-renderer",function(){if(cJN!==void 0)return cJN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cJN=v},{mode:1});var fCR;var Jw=function(){var v=_.z.apply(this,arguments)||this;v.JSC$16257_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";v.JSC$16257_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";v.squigglyBackground=v.JSC$16257_squigglyBackgroundLight;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(Jw,_.z);_.K=Jw.prototype;_.K.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),this.squigglyBackground=v?this.JSC$16257_squigglyBackgroundDark:this.JSC$16257_squigglyBackgroundLight)};
_.K.updateSquigglyBackgroundStyle=function(){_.F6(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.K.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.K.detached=function(){this.stop()};
_.K.stop=function(){this.playerElement.stop()};
_.K.setupVideoPlayer=function(){var v=this,Q,V;return _.e(function(E){Q=v.data.videoId;V="http://i1.ytimg.com/vi/"+Q+"/maxresdefault.jpg";v.playerElement.loadVideoWithPlayerVars({video_id:Q,iurlhq:V});_.q1(E)})};
Jw.prototype.onDataChanged=Jw.prototype.onDataChanged;Jw.prototype.updateSquigglyBackgroundStyle=Jw.prototype.updateSquigglyBackgroundStyle;_.W([_.q({value:!1}),_.X("design:type",Boolean)],Jw.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",String)],Jw.prototype,"squigglyBackground",void 0);_.W([_.Z7("#player"),_.X("design:type",Object)],Jw.prototype,"playerElement",void 0);_.W([_.q(),_.X("design:type",Object)],Jw.prototype,"data",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Jw.prototype,"ytActionHandlerBehavior",void 0);_.W([_.ph("squigglyBackground"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jw.prototype,"updateSquigglyBackgroundStyle",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jw.prototype,"onDataChanged",null);
_.W([_.J({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Jw);
_.B(Jw,"ytd-handles-claiming-video-item-renderer",function(){if(fCR!==void 0)return fCR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fCR=v},{mode:1});var G1A;var xk=function(){var v=_.dg.apply(this,arguments)||this;v.dragging=!1;v.dragMouseStart=0;v.dragOffsetStart=0;v.containerWidthDiff=0;v.boundPrevClick=function(){v.set("offset",Nb(v,v.offset-(v.scrollDistance||320)))};
v.boundNextClick=function(){v.set("offset",Nb(v,v.offset+(v.scrollDistance||320)))};
v.boundScrollContainerMouseDown=function(Q){v.dragMouseStart=Q.clientX;v.dragOffsetStart=v.offset;v.dragging=!0};
v.boundScrollContainerDrag=function(Q){v.dragging&&v.set("offset",Nb(v,v.dragOffsetStart-(Q.clientX-v.dragMouseStart)))};
v.boundMouseUp=function(){v.onMouseUp()};
v.boundWheelScroll=function(Q){var V=0;Math.abs(Q.deltaX)>=Math.abs(Q.deltaY)?V=Q.deltaX:Q.shiftKey&&(V=Q.deltaY);V!==0&&(v.offset+=V,Q.stopPropagation(),Q.preventDefault())};
v.boundChipCloudChipScrollIntoView=function(Q){(Q=Q.detail)&&v.scrollChipIntoView(Q)};
return v};
_.f(xk,_.dg);xk.prototype.attached=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container");v.addEventListener("wheel",this.boundWheelScroll);v.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);v.style.touchAction="pan-y";v.addEventListener("pointerdown",this.boundScrollContainerMouseDown);v.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
xk.prototype.detached=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container");v.removeEventListener("wheel",this.boundWheelScroll);v.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);v.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);v.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
xk.prototype.reset=function(){this.set("offset",0);_.PE(this,this.setContainerWidthDiff);_.PE(this,this.setButtonsState)};
var Nb=function(v,Q){return Math.min(Math.max(Q,0),v.containerWidthDiff)};
_.K=xk.prototype;_.K.onMouseUp=function(){this.dragging=!1};
_.K.transformContainer=function(){this.offset=Nb(this,this.offset);var v=_.r7("HTML_DIR")==="rtl"?"":"-";_.m9(this.hostElement).querySelector("#chips").style.transform="translateX("+v+this.offset+"px)";_.PE(this,this.setButtonsState)};
_.K.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Nb(this,this.offset));this.atStart=this.offset<=0};
_.K.setContainerWidthDiff=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container"),Q=_.m9(this.hostElement).querySelector("#chips");v&&Q&&(this.containerWidthDiff=Q.clientWidth-v.clientWidth)};
_.K.scrollChipIntoView=function(v){var Q=_.m9(this.hostElement).querySelector("#scroll-container");if(Q){var V=this.atStart?0:106,E=this.atEnd?0:106;v.offsetLeft<this.offset+V?this.offset=Nb(this,v.offsetLeft-V):v.offsetLeft+v.clientWidth>this.offset+Q.clientWidth-E&&(this.offset=Nb(this,v.offsetLeft+v.clientWidth+E-Q.clientWidth))}};
xk.prototype.transformContainer=xk.prototype.transformContainer;_.W([_.q({value:0}),_.X("design:type",Number)],xk.prototype,"offset",void 0);_.W([_.q({value:!0,reflectToAttribute:!0}),_.X("design:type",Boolean)],xk.prototype,"atStart",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xk.prototype,"atEnd",void 0);_.W([_.q(),_.X("design:type",Number)],xk.prototype,"scrollDistance",void 0);
_.W([_.ph("offset"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xk.prototype,"transformContainer",null);_.W([_.hM()],xk);var CGq;var Md8;_.Bl=_.x(function(v){var Q=v.data;v=_.L(_.Ge(!1,void 0,"bob3J"));var V=v.next().value,E=v.next().value;v=function(F){if((Q==null?void 0:Q().state)!==1){var t,p;(p=(t=Q()).onTap)==null||p.call(t,F)}};
var b={};return _.P("chip-shape",{class:"ytChipShapeHost","on:focusin":_.EP(function(){var F=_.ht().resolve(_.d$(_.Yc));if(F){E(F.isKeyBoardInUse());var t,p;(p=(t=Q()).onFocusIn)==null||p.call(t)}return!1}),
"on:focusout":_.EP(function(){E(!1);return!1})},_.P(OKZ,{shouldWrapInButton:function(){return Q().type!==2},
selected:function(){return Q().state===0},
onClick:v,isDropdown:function(){return Q().type===1},
accessibilityLabel:function(){return Q().type===1?void 0:Q().accessibilityLabel}},_.P("div",{class:_.QZ("ytChipShapeChip",function(){a:switch(Q==null?void 0:Q().state){case 0:var F="ytChipShapeActive";
break a;case 1:F="ytChipShapeDisabled";break a;default:F="ytChipShapeInactive"}return F},function(){var F=Q().type===1||Q().type===2,t=Q();
return F||t!=null&&t.startIcon?t==null||!t.startIcon||t!=null&&t.text?F?"ytChipShapeEndIconPadding":(t==null?0:t.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var F=Q();
if((F==null?void 0:F.style)===0&&(F==null?void 0:F.state)===0){var t;F=((t=_.ht().resolve(_.d$(_.JR)))==null?0:t())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else F="";return F},(b.ytChipShapeFocused=function(){var F;
return V()&&((F=Q())==null?void 0:F.state)!==1},b))},_.P(_.h,{cond:function(){return Q().startIcon},
then:function(){return _.P(_.L_,{icon:function(){var F;return(F=Q())==null?void 0:F.startIcon},
className:_.QZ(function(){return Q().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var F=Q(),t,p=(t=_.ht().resolve(_.d$(_.JR)))==null?void 0:t();
return(F==null?void 0:F.style)===0&&(F==null?void 0:F.state)===0&&p?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return Q().text},_.P(DTa,{shape:Q,
onClick:v}),_.P(_.c6,{model:{borderRadius:"8px"}}))))},"Lc");
_.Bl.idomCompat=!0;var OKZ=_.x(function(v){var Q=_.EP(function(V){v.onClick(V);return!1});
return _.P(_.h,{cond:v.shouldWrapInButton,then:function(){return _.P("button",{class:"ytChipShapeButtonReset","on:click":Q,role:function(){return v.isDropdown()?"combobox":"tab"},
"aria-label":v.accessibilityLabel,"aria-selected":v.selected},v.children)},
else:function(){return v.children}})},"Mc"),DTa=_.x(function(v){var Q=v.shape;
var V=v.onClick;var E=_.EP(function(b){V(b);return!1});
return _.P(_.BU,null,_.P(_.J1,{when:function(){return Q().type===1}},function(){return _.P(_.L_,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.P(_.J1,{when:function(){return Q().type===2}},function(){return _.P("button",{class:"ytChipShapeButtonReset",
"on:click":E},_.P(_.L_,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.P(_.J1,{when:function(){return Q().type===0}},function(){return _.P(_.w7,null)}))},"Nc");_.ad(_.Bl,"chip-shape",{props:{data:_.pJ}});var g0=function(){var v=_.z.apply(this,arguments)||this;v.disableDeselectEvent=!1;v.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return v};
_.f(g0,_.z);_.K=g0.prototype;_.K.onSelectChipCommand=function(v){if(!this.selected&&this.data&&(v=_.y(v,iVa),v.targetId&&v.targetId===this.data.targetId))this.onTap()};
_.K.onFilterChipTransformCommand=function(v){if(!this.selected&&this.data){var Q;(v=(Q=_.y(v,Q4V))==null?void 0:Q.chipUniqueId)&&v===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.K.dataChanged=function(){var v=this;_.PE(this,function(){v.data&&v.data.isSelected&&!v.selected&&(v.scrollChipIntoView(),v.onTap())})};
_.K.computeChipStyle=function(v){return v!=null?v:"STYLE_DEFAULT"};
_.K.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)))};
_.K.onFocus=function(){var v=_.ht().resolve(_.d$(_.Yc));v&&v.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.K.scrollChipIntoView=function(){_.Hj(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.hr.Object.defineProperties(g0.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return gto({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
g0.prototype.onFocus=g0.prototype.onFocus;g0.prototype.onTap=g0.prototype.onTap;g0.prototype.dataChanged=g0.prototype.dataChanged;_.W([_.M(_.xm),_.X("design:type",Object)],g0.prototype,"ironButtonState",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],g0.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],g0.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.zI),_.X("design:type",Object)],g0.prototype,"ironA11yKeysBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],g0.prototype,"disableDeselectEvent",void 0);_.W([_.q(),_.X("design:type",Object)],g0.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.icon"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],g0.prototype,"hasIcon",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.uniqueId"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],g0.prototype,"isGnomeChip",null);_.W([_.q({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.X("design:type",String)],g0.prototype,"chipStyle",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],g0.prototype,"selected",void 0);
_.W([_.O("data","selected"),_.X("design:type",Object),_.X("design:paramtypes",[])],g0.prototype,"chipShapeData",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],g0.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],g0.prototype,"onTap",null);
_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],g0.prototype,"onFocus",null);_.W([_.D7({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],g0);
_.B(g0,"yt-chip-cloud-chip-renderer",function(){if(Md8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;CGq===void 0&&(CGq=document.createElement("template"));var E=CGq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Md8=v}v=Md8;return v},{mode:2});var jvT=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.RVA=_.x(function(v){function Q(){if(jvT.has(v.data().displayType)){var d=!E(),w;if((w=v.disableDeselection)==null||!w.call(v)||d){v.data().selected=d;w=Object.assign({},t(),{selected:d});p(w);var A;(A=v.callback)==null||A.call(v,w,d)}}}
var V=_.Ze("chip-view-model"),E=function(){var d,w;return!!(((d=v.selected)==null?void 0:d.call(v))!==void 0?(w=v.selected)==null?0:w.call(v):t().selected)},b=_.L(_.K_(v.data)),F=b.next().value;
b=b.next().value;var t=F,p=b,Z=_.p4(uVG,function(){return v.data().chipEntityKey||""});
return _.P("chip-view-model",{class:"ytChipViewModelHost",el:V},_.P(_.Bl,{data:function(){var d,w=Object.assign({},t(),{selected:E()}),A=Z(),k=(d=v.disableDeselection)==null?void 0:d.call(v);a:switch(w.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":d=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":d=3;break a;default:d=0}return{text:(A==null?void 0:A.text)||w.text,state:w.disabled?1:w.selected?0:2,type:d,onTap:WYr(w,V,Q,
k),accessibilityLabel:w.accessibilityLabel||w.text}}}))},"Oc");
_.RVA.idomCompat={callbacks:{callback:!0}};_.sa=_.x(function(v){var Q=v.data;var V=v.callback;var E=v.selectionBehavior;var b=v.disableChipsScrollAnimation;var F=_.Pa("div");v=_.L(_.Ge(!0,void 0,"aUEsOc"));var t=v.next().value,p=v.next().value;v=_.L(_.Ge(!1,void 0,"V0aKld"));var Z=v.next().value,d=v.next().value,w=!1,A=0;_.uk(function(){p(c());d(C())});
v=_.L(_.K_(function(){var v9={};return Q().autoselectedChipIndex!=null?(v9[Q().autoselectedChipIndex]=!0,v9):{}}));
var k=v.next().value,T=v.next().value,c=function(){var v9=F.value;return v9==null||v9.scrollLeft-1<=0},C=function(){var v9=F.value;
return v9==null?!1:v9.scrollLeft+1>=(v9==null?NaN:v9.scrollWidth)-(v9==null?NaN:v9.clientWidth)},R=function(){return Q().isHorizontallyScrollable},l=function(v9){F.value!=null&&(_.r7("HTML_DIR")==="rtl"&&(v9=-v9),F.value.scrollBy({left:v9,
behavior:(b==null?0:b())?"instant":"smooth"}))},S=function(){l(-320)},a=function(){l(320)},g=_.EP(function(v9){w=!0;
A=v9.clientX}),u=_.EP(function(v9){if(w){v9=v9.clientX;
var t3=v9-A;A=v9;var h3;(h3=F.value)==null||h3.scrollBy({left:-t3})}}),r=_.EP(function(){var v9=c(),t3=C();
v9!==t()&&p(v9);t3!==Z()&&d(t3)});
_.wX("pointerup",function(){w&&(w=!1)});
return _.P("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.P(_.qg,{contentId:function(){return Q().contentId},
useModernStyle:!0},function(){var v9={},t3={};return _.P("div",null,_.P(_.h,{cond:function(){return Q().title},
then:function(){return _.P("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.P("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return Q().title}),_.P(_.Pw,{data:function(){return Q().overflowButton}},{buttonViewModel:_.D6}))}}),_.P("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.P(_.h,{cond:function(){return Q().previousButton},
then:function(){var h3={};return _.P("div",{class:_.QZ("ytChipsShelfViewModelLeftArrowContainer",(h3.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return t()},h3))},_.P(_.Pw,{data:function(){return Q().previousButton}},{buttonViewModel:function(OB){return _.P(_.D6,{data:OB.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:S})}}))}}),_.P("div",{el:F,
"on:pointerdown":g,"on:pointermove":u,"on:scroll":r,class:_.QZ("ytChipsShelfViewModelChipsScrollContainer",(v9.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=R,v9))},_.P("div",{class:_.QZ("ytChipsShelfViewModelChipsContainer",(t3.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=R,t3.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,t3)),role:"tablist"},_.P(_.Pw,{data:function(){return Q().contents}},{chipViewModel:function(h3,OB){return _.P("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.P(_.RVA,{data:h3.data,
callback:function(kQ,yo){var xQ=OB(),lb,ep=(lb=E==null?void 0:E())!=null?lb:0;ep===1||ep===2?(lb={},T((lb[xQ]=yo,lb))):(lb={},T(Object.assign({},k(),(lb[xQ]=yo,lb))));V==null||V(kQ,yo,xQ)},
disableDeselection:function(){return(E==null?void 0:E())===1},
selected:function(){return!!k()[OB()]}}))}}))),_.P(_.h,{cond:function(){return Q().nextButton},
then:function(){var h3={};return _.P("div",{class:_.QZ("ytChipsShelfViewModelRightArrowContainer",(h3.ytChipsShelfViewModelRightArrowContainerIsHidden=Z,h3))},_.P(_.Pw,{data:function(){return Q().nextButton}},{buttonViewModel:function(OB){return _.P(_.D6,{data:OB.data,
className:"ytChipsShelfViewModelRightArrow",onClick:a})}}))}})))}))},"Qc");
_.sa.idomCompat={callbacks:{callback:!0}};var nrN=_.x(function(v){var Q=v.data;var V=v.showChips;var E=v.isUpdateInProgress;var b=function(){return V()&&!E()};
v={};return _.P("ytd-ai-response-box-view-model",{class:_.QZ("ytdAiResponseBoxViewModelHost")},_.P("div",{class:_.QZ("ytdAiResponseBoxViewModelResponseMessageContainer",(v.ytdAiResponseBoxViewModelResponseMessageContainerHidden=b,v))},_.P(_.h,{cond:E,then:function(){return _.P("div",null,_.P(_.tD,{text:function(){return Q().responsePendingMessage}}))},
else:function(){return _.P(_.w7,null,_.P(_.h,{cond:function(){var F;return(F=Q().responseMessageIcon)==null?void 0:F.iconType},
then:function(F){return _.P("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.P(_.L_,{icon:F}))}}),_.P("div",null,_.P(_.tD,{text:function(){return Q().responseMessage}})))}})),_.P(_.Pw,{data:function(){return Q().chipsShelf}},{chipsShelfViewModel:function(F){F=F.data;
var t={};return _.P("div",{class:_.QZ("ytdAiResponseBoxViewModelChipsShelfContainer",(t.ytdAiResponseBoxViewModelChipsShelfContainerShown=b,t))},_.P(_.sa,{data:F}))}}))},"Rc");var lCp;lCp=Object.assign({},{continuation:WRx,download:N0A,canvas:Ppt,reportChannelAbuse:IEQ,ui:hjE,share:HnV,talkToRecs:vRR,watch:bg,ypc:KTZ,radioButtonGroup:ejB,collabInviteLink:JjQ},jw8,{voiceSearch:kyZ,shorts:Ej});_.uR=f_(lCp);_.qFZ=Gr(_.uR);_.SFX=(0,_.qFZ)(_.uR.talkToRecs,{talkToRecsStateSelector:function(v){return v}});_.ad(_.x(function(v){var Q=_.L((0,_.mXq)(v.data)).next().value,V=_.L(svQ()),E=V.next().value;V=V.next().value;var b=_.Z1(_.SFX.talkToRecsStateSelector),F=_.L(_.K_(function(){var a,g,u;return(u=(g=Xi3(Q(),b()))!=null?g:(a=Q().textInputValue)==null?void 0:a.content)!=null?u:""})),t=F.next().value,p=F.next().value;
F=_.L(_.Ge(!1,void 0,"c7rlLe"));var Z=F.next().value,d=F.next().value;F=_.L(_.Ge(!1,void 0,"jmnkf"));var w=F.next().value,A=F.next().value;_.jg(function(){var a=Q().onVisible;a&&_.nx(a,{})});
var k=_.EP(function(){d(!0)});
_.uH(function(){Q()&&(d(!1),A(!1))},"Aq2H4e");
var T=function(a){var g=Q().onUpdateText;g&&_.nx(g,{form:{userQuery:a}})},c=_.Gm(function(a){T(a)},150),C=_.EP(function(a){a=a.target.value.trim();
p(a);c(a);return!1});
_.uH(function(){var a=Xi3(Q(),b());a&&a!==t()&&p(a)},"jerE");
var R=function(){A(!0)},l=_.EP(function(a){if(a.key==="Enter"){T(a.target.value.trim());
var g=_.y(Q().submitButton,_.pH);a=void 0;var u;if(g==null?0:(u=g.loggingDirectives)==null?0:u.trackingParams)a=_.dE(g.loggingDirectives.trackingParams);if(u=g==null?void 0:g.onTap)_.nx(u,{clickedVisualElement:a}),R()}return!1}),S=_.EP(function(){E("yt-feed-customization-scroll-up")});
return _.P("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.ud(V)},_.P(_.h,{cond:function(){var a,g;return!((g=(a=v.isCollapsed)==null?void 0:a.call(v))!=null&&g)},
then:function(){return _.P("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.P("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.P("input",{class:"ytdFeedCustomizationFormViewModelInput",type:"text",placeholder:function(){var a;return(a=Q().textInputPlaceholder)==null?void 0:a.content},
"prop:value":t,"on:focus":k,"on:input":C,"on:keyup":l,maxlength:250}),_.P(_.h,{cond:function(){return w()},
then:function(){return _.P(_.Pw,{data:function(){return Q().inProgressButton}},{buttonViewModel:function(a){return _.P("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.P(_.D6,{data:a.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.P(_.Pw,{data:function(){return Q().submitButton}},{buttonViewModel:function(a){return _.P("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.P(_.D6,{data:a.data,
onClick:R}))}})}}),_.P(_.Pw,{data:function(){return Q().menuButton}},{buttonViewModel:function(a){return _.P("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.P(_.D6,{data:a.data}))}})),_.P(_.Pw,{data:function(){return Q().contents}},{aiResponseBoxViewModel:function(a){return _.P("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.P(nrN,{data:a.data,
showChips:Z,isUpdateInProgress:w}))}}))},
else:function(){return _.P("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":S},_.P("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var a;return t()||((a=Q().textInputPlaceholder)==null?void 0:a.content)}))}}))},"Uc"),"ytd-feed-customization-form-view-model",{props:{data:_.pJ,
isCollapsed:_.pJ}});var zVZ=_.zw.persistentPanelVisibleSelector,jU=function(){var v=_.z.apply(this,arguments)||this;v.isDarkTheme=!1;v.notSticky=!1;v.transparentBackground=!1;v.shouldHide=!1;v.disableSticky=!1;v.fluidWidth=!1;v.isClipList=!1;v.defaultChipIndex=0;v.collapseFeedCustomizationForm=!1;v.isPlaylist=!1;v.playlistVotingAnimationEnabled=_.Y("web_enable_voting_animation");v.toolbarHeight=0;v.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(jU,_.z);_.K=jU.prototype;
_.K.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model",properties:{isCollapsed:"[[collapseFeedCustomizationForm]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.K.attached=function(){var v=this;document.addEventListener("scroll",_.Lh(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var Q;this.toolbarHeight=((Q=document.querySelector("ytd-masthead"))==null?void 0:Q.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(V){v.handleIntersect(V)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){v.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.K.detached=function(){var v;(v=this.intersectionObserver)==null||v.disconnect();var Q;(Q=this.resizeObserver)==null||Q.disconnect();document.removeEventListener("scroll",_.Lh(this,this.updateChipBarWidthAndTop))};
_.K.dataChanged=function(){var v=this,Q,V,E;((E=_.y((Q=this.data)==null?void 0:(V=Q.contents)==null?void 0:V[0],e4R))==null?void 0:E.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var b=this.findSelectedChipIndex();this.selectedIndex!==b&&(this.selectedIndex=-1);_.PE(this,function(){v.selectedIndex=b;v.updateSelectedChipContent(v.selectedIndex);v.updating=!1;v.ytScrollableChipCloudBehavior.reset()})};
_.K.findSelectedChipIndex=function(){var v;if((v=this.data)==null||!v.contents)return 0;v=this.data.contents;for(var Q=0;Q<v.length;Q++){var V=void 0;if((V=_.y(v[Q],e4R))==null?0:V.isSelected)return Q}return 0};
_.K.computeStyle=function(v){return v};
_.K.handleChipCloudChipSelectAction=function(v){v=this.JSC$16297_chipsSelector.indexOf(v);v>-1&&this.JSC$16297_chipsSelector.selectIndex(v)};
_.K.updateSelectedChipContent=function(v){var Q;if((Q=this.data)==null||!Q.contents||v<0||v>=this.data.contents.length)this.selectedChipContent=void 0;else{var V;this.selectedChipContent=(V=_.y(this.data.contents[v],e4R))==null?void 0:V.content}};
_.K.handleChipCloudChipDeselectAction=function(){if(_.Y("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],e4R))==null?void 0:V.navigationEndpoint;E&&_.mb(this.hostElement,"yt-browse-section-list-reload-endpoint",[E]);this.JSC$16297_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.K.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.K.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.K.onResize=function(){this.updateLayout()};
_.K.updateLayout=function(){var v=this.ytScrollableChipCloudBehavior;_.PE(v,v.setContainerWidthDiff);v=this.ytScrollableChipCloudBehavior;_.PE(v,v.setButtonsState)};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.K.handleIntersect=function(v){this.notSticky=this.isChannelPageGrid||this.disableSticky||v[0].intersectionRatio===1};
_.K.updateDimensions=function(){var v=this.ytRendererBehavior.parentComponent;if(v){var Q,V=(Q=v.headerElement)!=null?Q:v;_.F6(this.hostElement,{"--ytd-rich-grid-chips-bar-width":V.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.K.updateSelectedIndexFromBinding=function(v){this.selectedIndex=v.detail.value};
_.K.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var v;(v=this.sortFilterHeaderRendererElement)==null||v.setAttribute("is-playlist-page-with-filters","")}};
_.K.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(blN(!this.notSticky))};
_.hr.Object.defineProperties(jU.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q.find(function(E){return _.y(E,wux)});
return{sortFilterHeaderRenderer:_.y(V,wux)}}}});
jU.prototype.dispatchChipBarIsSticky=jU.prototype.dispatchChipBarIsSticky;jU.prototype.isPlaylistPageChanged=jU.prototype.isPlaylistPageChanged;jU.prototype.updateChipBarWidthAndTop=jU.prototype.updateChipBarWidthAndTop;jU.prototype.onResize=jU.prototype.onResize;jU.prototype.onPersistentPanelVisibleChanged=jU.prototype.onPersistentPanelVisibleChanged;jU.prototype.onGuideIsExpandedChanged=jU.prototype.onGuideIsExpandedChanged;jU.prototype.dataChanged=jU.prototype.dataChanged;
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jU.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],jU.prototype,"ironResizableBehavior",void 0);_.W([_.M(),_.X("design:type",xk)],jU.prototype,"ytScrollableChipCloudBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],jU.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jU.prototype,"data",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],jU.prototype,"selectedIndex",void 0);_.W([_.q({value:320}),_.X("design:type",Number)],jU.prototype,"scrollDistance",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"isDarkTheme",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"notSticky",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"transparentBackground",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.X("design:type",String)],jU.prototype,"componentStyle",void 0);_.W([_.q({selector:_.l6h}),_.X("design:type",Boolean)],jU.prototype,"guideIsExpanded",void 0);
_.W([_.q({selector:zVZ}),_.X("design:type",Boolean)],jU.prototype,"persistentPanelVisible",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"shouldHide",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"disableSticky",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"fluidWidth",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"isClipList",void 0);
_.W([_.q(),_.X("design:type",Object)],jU.prototype,"defaultChipIndex",void 0);_.W([_.q(),_.X("design:type",Object)],jU.prototype,"selectedChipContent",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"collapseFeedCustomizationForm",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jU.prototype,"isPlaylist",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],jU.prototype,"playlistVotingAnimationEnabled",void 0);
_.W([_.Z7("#chips"),_.X("design:type",Object)],jU.prototype,"JSC$16297_chipsSelector",void 0);_.W([_.Z7("ytd-sort-filter-header-renderer"),_.X("design:type",HTMLElement)],jU.prototype,"sortFilterHeaderRendererElement",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],jU.prototype,"updating",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"dataChanged",null);
_.W([_.ph("guideIsExpanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"onGuideIsExpandedChanged",null);_.W([_.ph("persistentPanelVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"onPersistentPanelVisibleChanged",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"onResize",null);
_.W([_.wg("isChannelPageGrid","disableSticky","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"updateChipBarWidthAndTop",null);_.W([_.O("componentStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jU.prototype,"isChannelPageGrid",null);_.W([_.O("componentStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jU.prototype,"isHashtagLandingPage",null);
_.W([_.ph("isPlaylistPage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"isPlaylistPageChanged",null);_.W([_.O("componentStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jU.prototype,"isPlaylistPage",null);_.W([_.O("componentStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jU.prototype,"isDisableDeselectEvent",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],jU.prototype,"sortFilterHeaderRendererData",null);_.W([_.q({reflectToAttribute:!0,selector:_.BxZ}),_.X("design:type",String)],jU.prototype,"frostedGlassMode",void 0);_.W([_.ph("notSticky"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jU.prototype,"dispatchChipBarIsSticky",null);_.W([_.J({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],jU);
_.B(jU,"ytd-feed-filter-chip-bar-renderer",function(){if(G1A!==void 0)return G1A;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return G1A=v},{mode:1});var JJX;var NFp=_.x(function(v){var Q=v.data;var V=v.buttonIndex;var E=v.selectedIndex;var b=v.onSelect;var F=function(){return V()===E()},t=function(){var p,Z;
return(Z=(p=Q().text)==null?void 0:p.content)!=null?Z:""};
v=_.BdE();return _.P("yt-toggleable-image-button-view-model",{class:function(){var p={};p=(p.toggleableImageButtonViewModelHost=!0,p[""]=!0,p.toggleableImageButtonViewModelSemiTransparent=E()!==-1&&!F(),p);return _.Yl(p)},
tabindex:0,"aria-label":t,"aria-pressed":F,role:"button","on:keydown":v,"on:click":_.EP(function(){b(Q().onSubmitCommand);return!1})},_.P(_.h,{cond:function(){return Q().logo},
then:function(p){return _.P(_.gE,{data:p,className:function(){var Z={};Z=(Z.toggleableImageButtonViewModelImage=!0,Z.toggleableImageButtonViewModelCircularRadius=!(!Q().backgroundColor||!Q().backgroundColorDarkMode),Z.toggleableImageButtonViewModelGradientRing=!!(F()&&Q().backgroundColor&&Q().backgroundColorDarkMode),Z);return _.Yl(Z)},
alt:t,useWidth:!1,style:function(){if(F()&&Q().backgroundColor&&Q().backgroundColorDarkMode){var Z=M2(Number(Q().backgroundColorDarkMode),"1");var d=M2(Number(Q().backgroundColor),"1");Z="background: linear-gradient(180deg,"+Z+","+d+") border-box;"}else Z="";return Z}})}}),_.P(_.c6,{model:{borderRadius:"16px"}}),_.P("p",{class:function(){var p={};
p=(p.toggleableImageButtonViewModelLabel=!0,p.toggleableImageButtonViewModelBoldText=F(),p);return _.Yl(p)}},_.P(_.tD,{text:function(){return Q().text}})))},"Vc");
NFp.idomCompat=!0;var BFZ=_.x(function(v){var Q=v.data;v=_.L(_.Ge({index:-1,command:{}},void 0,"GM3umb"));var V=v.next().value,E=v.next().value;return _.P("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.P("div",{class:"nudgeFormViewModelFormOptions"},_.P(_.Pw,{data:function(){return Q().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(b,F){return _.P(NFp,{data:b.data,buttonIndex:F,selectedIndex:function(){return V().index},
onSelect:function(t){E({index:F(),command:t})}})}})),_.P(_.tD,{text:function(){return Q().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.P("div",{class:"nudgeFormViewModelSubmit"},_.P(_.Pw,{data:function(){return Q().submitButton}},{buttonViewModel:function(b){return _.P(xTV,{data:b.data,
isDisabled:function(){return V().index===-1},
onClick:function(){_.nx(V().command)}})}})))},"Wc");
BFZ.idomCompat=!0;var xTV=_.x(function(v){var Q=_.Rr(function(){return Object.assign({},v.data(),{state:v.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.P(_.D6,{data:Q,onClick:v.onClick})},"Xc");_.ad(BFZ,"yt-nudge-form-view-model",{props:{data:_.pJ}});var Wl=function(){var v=_.z.apply(this,arguments)||this;v.roundedContainer=!0;v.buttonUpdate=_.Y("web_modern_buttons");v.isDarkMode=!1;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return v};
_.f(Wl,_.z);_.K=Wl.prototype;_.K.computeNudgeStyle=function(v){return v?"modernized-nudge":""};
_.K.handleDarkModeToggledAction=function(v){this.isDarkMode=v};
_.K.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.K.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"}}}};
_.K.computeIsHorizontalButtons=function(v){return v?!!v.applyModernizedStyle&&!!v.enableHorizontalButtons&&!!v.secondaryButton:!1};
_.hr.Object.defineProperties(Wl.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.data)==null?void 0:v.backgroundStyle)!=null?Q:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.data)==null?void 0:v.contentsLocation)!=null?Q:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.lightIconImage)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],Wl.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Wl.prototype,"actionHandlerBehavior",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("isHideEnclosingAction"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Wl.prototype,"isHidden",null);_.W([_.q(),_.X("design:type",Object)],Wl.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Wl.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Wl.prototype,"buttonUpdate",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.X("design:type",String)],Wl.prototype,"nudgeStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.trimStyle"),_.X("design:type",String),_.X("design:paramtypes",[])],Wl.prototype,"trimStyle",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.backgroundStyle"),_.X("design:type",String),_.X("design:paramtypes",[])],Wl.prototype,"backgroundStyle",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.contentsLocation"),_.X("design:type",String),_.X("design:paramtypes",[])],Wl.prototype,"contentsLocation",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.disableDropShadow"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Wl.prototype,"noShadow",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.lightIconImage"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Wl.prototype,"noIcon",null);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.X("design:type",Boolean)],Wl.prototype,"isHorizontalButtons",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Object)],Wl.prototype,"isDarkMode",void 0);_.W([_.J({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Wl);
_.B(Wl,"ytd-feed-nudge-renderer",function(){if(JJX!==void 0)return JJX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return JJX=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var grN;var stx;var ow=function(){var v=_.z.apply(this,arguments)||this;v.collapsed=!1;v.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return v};
_.f(ow,_.z);ow.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"}}}};
ow.prototype.handleRatingSelect=function(){var v;((v=this.data)==null?0:v.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
ow.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ow.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ow.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.Er),_.X("design:type",Object)],ow.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ow.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ow.prototype,"collapsed",void 0);_.W([_.J({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],ow);
_.B(ow,"ytd-slimline-survey-renderer",function(){if(stx!==void 0)return stx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return stx=v},{mode:1});var uXq;var Xx=function(){return _.z.apply(this,arguments)||this};
_.f(Xx,_.z);Xx.prototype.maybeGetBackgroundColor=function(v){return this.isDarkMode?v.section2Color:v.section3Color};
Xx.prototype.colorPaletteChanged=function(){var v=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;v&&(v==null?0:v.secondaryTitleColor)&&this.maybeGetBackgroundColor(v)?(this.hostElement.style.backgroundColor=_.GA(this.maybeGetBackgroundColor(v)),this.hostElement.style.color=_.GA(v.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Xx.prototype.colorPaletteChanged=Xx.prototype.colorPaletteChanged;_.W([_.M(_.QU),_.X("design:type",Object)],Xx.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xx.prototype,"data",void 0);_.W([_.q({selector:function(v){return v.ui.darkModeIsEnabled}}),
_.X("design:type",Boolean)],Xx.prototype,"isDarkMode",void 0);_.W([_.q(),_.X("design:type",Object)],Xx.prototype,"lightColorPalette",void 0);_.W([_.q(),_.X("design:type",Object)],Xx.prototype,"darkColorPalette",void 0);_.W([_.ph("darkColorPalette","lightColorPalette","data","isDarkMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Xx.prototype,"colorPaletteChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Xx);
_.B(Xx,"ytd-endorsement-header-renderer",function(){if(uXq!==void 0)return uXq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return uXq=v},{mode:1});_.ad(_.VO,"yt-decorated-avatar-view-model",{props:{data:_.pJ,className:_.pJ}});_.aw=new _.KB("VIEW_TRANSITION_MANAGER_TOKEN");var r0=function(){var v=_.z.apply(this,arguments)||this;v.fullHeight=_.Y("web_rich_grid_media_full_height");v.showChannelAvatar=!0;v.hasPlaylistThumbnail=!1;v.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};v.registerThumbnailForPageTransition=function(){_.Y("web_thumbnail_to_watch_transition")&&_.jtZ(_.ht().resolve(_.aw),v.thumbnail)};
return v};
_.f(r0,_.z);_.K=r0.prototype;
_.K.configureRendererStamper=function(){return{lazyLoadMenu:gq,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"}}}};
_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.shouldLazyLoadMenu=function(){var v=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.Y("kevlar_modern_downloads_page")||!v};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16321_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.JSC$16321_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.K.getVideoPreviewOpts=function(){var v={},Q;if((Q=this.data)==null?0:Q.multipleInlinePlaybackEndpoint)v=GtZ;this.isRadio&&(v=fRa);return v};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$16321_inlinePreviewHoverListener)==null||ji(v)};
_.K.getOwner=function(){var v,Q,V;return((v=this.data)==null?void 0:(Q=v.channelThumbnailSupportedRenderers)==null?void 0:Q.channelThumbnailWithLinkRenderer)||_.y((V=this.data)==null?void 0:V.showProviderChannelThumbnail,ewZ)};
_.K.updateLockupSize=function(){var v;((v=this.getOwner())==null?0:v.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.K.getFeedbackEndpoint=function(v){if(_.y(v,_.Cq))return v;var Q,V;v=(V=(Q=_.y(v,_.E2))==null?void 0:Q.commands)!=null?V:[];Q=_.L(v);for(V=Q.next();!V.done;V=Q.next())if(V=this.getFeedbackEndpoint(V.value))return V;return null};
_.K.computeNavigationEndpoint=function(v){return x_h(v==null?void 0:v.navigationEndpoint)};
_.K.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var v=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(v)!==JSON.stringify(this.data)&&this.set("data",v)}};
_.K.onDataChanged=function(){var v=this,Q=this.getOwner();if(Q){this.set("data.owner",Q);var V,E,b,F,t,p=((V=this.data)==null?void 0:(E=V.shortBylineText)==null?void 0:(b=E.runs)==null?void 0:(F=b[0])==null?void 0:F.text)||((t=Q.name)==null?void 0:t.simpleText);this.set("data.owner.title",p)}var Z,d,w,A,k,T;Q=((Z=this.data)==null?void 0:(d=Z.thumbnailRenderer)==null?void 0:d.playlistVideoThumbnailRenderer)||((w=this.data)==null?void 0:(A=w.thumbnailRenderer)==null?void 0:A.playlistCustomThumbnailRenderer)||
((k=this.data)==null?void 0:(T=k.thumbnailRenderer)==null?void 0:T.showCustomThumbnailRenderer);var c;((c=this.data)==null?0:c.thumbnail)||!Q||this.set("data.thumbnail",Q.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){v.updateLockupSize()});
var C;if(Z=((C=this.data)==null?void 0:C.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Z);var R;((R=this.dismissActionToReplayEntity)==null?0:R.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.K.onHiddenChanged=function(){this.updateLockupSize()};
_.K.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.mb(this.hostElement,"yt-terminate-video-preview-action");else{var v;(v=this.videoTitleLink)==null||v.focus()}};
_.K.metadataColorChanged=function(){var v;if(this.metadataColor&&((v=this.videoTitle)==null?0:v.style))this.videoTitle.style.color=_.GA(this.metadataColor);else{var Q,V;!this.metadataColor&&((Q=this.videoTitle)==null?0:(V=Q.style)==null?0:V.color)&&(this.videoTitle.style.color="")}};
_.K.onDetailsClick=function(v){var Q=this.computedNavigationEndpoint;Q&&(_.j$(_.uK(v),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Hj(this.hostElement,"yt-navigate",{endpoint:Q}))};
_.K.onRendererTap=function(){this.registerThumbnailForPageTransition();var v,Q,V=((v=this.data)==null?void 0:v.serviceEndpoint)||this.getFeedbackEndpoint((Q=this.data)==null?void 0:Q.navigationEndpoint);V&&_.y(V,_.Cq)&&this.ytComponentBehavior.resolveCommand(V)};
_.K.onMouseDown=function(v){var Q=v.target,V=this.computedNavigationEndpoint,E;v=Q.href||((E=_.y(V==null?void 0:V.commandMetadata,_.Kt))==null?void 0:E.url);E=Q.data||V;v&&E&&MBB(v,E)};
_.K.computeVideoTitleText=function(){var v;if((v=this.data)==null?0:v.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.K.computeHasPlaylistThumbnail=function(v){var Q,V,E,b,F;if((((Q=v.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((V=v.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer)||((E=v.thumbnailRenderer)==null?0:E.showCustomThumbnailRenderer)||((b=v.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((F=v.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer))&&v.thumbnailOverlays)for(Q=0;Q<v.thumbnailOverlays.length;Q++)if(V=void 0,(V=v.thumbnailOverlays[Q])==
null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.hr.Object.defineProperties(r0.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Y("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var v;return(v=this.data)==null?void 0:v.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var v;return(v=this.data)==null?void 0:v.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$16321_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.b5E(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.videoId)||((Q=this.data)==null?void 0:Q.playlistId)||""}}});
r0.prototype.onMouseDown=r0.prototype.onMouseDown;r0.prototype.metadataColorChanged=r0.prototype.metadataColorChanged;r0.prototype.onIsDismissedChanged=r0.prototype.onIsDismissedChanged;r0.prototype.onHiddenChanged=r0.prototype.onHiddenChanged;r0.prototype.onDataChanged=r0.prototype.onDataChanged;r0.prototype.handleReloadDownloadsInfo=r0.prototype.handleReloadDownloadsInfo;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],r0.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],r0.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],r0.prototype,"ytdReduxBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],r0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],r0.prototype,"entitySelectorType",void 0);_.W([_.q(),_.X("design:type",Boolean)],r0.prototype,"noEndpoints",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],r0.prototype,"isRadio",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],r0.prototype,"miniMode",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r0.prototype,"fullHeight",void 0);
_.W([_.q(),_.X("design:type",Boolean)],r0.prototype,"showDarkVideoMetadata",void 0);_.W([_.q(),_.X("design:type",Boolean)],r0.prototype,"showLightVideoMetadata",void 0);_.W([_.q(),_.X("design:type",Number)],r0.prototype,"metadataColor",void 0);_.W([_.q(),_.X("design:type",Object)],r0.prototype,"showChannelAvatar",void 0);_.W([_.q(),_.X("design:type",Boolean)],r0.prototype,"hidden",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],r0.prototype,"showYtInteraction",void 0);
_.W([_.q(),_.X("design:type",String)],r0.prototype,"dismissedContentId",void 0);_.W([_.q({selectorArgs:["dismissedContentId"],selector:iXS}),_.X("design:type",Object)],r0.prototype,"dismissActionToReplayEntity",void 0);
_.W([_.q({selectorArgs:["entitySelectorType","mediaId"],selector:function(v,Q,V){if(_.Y("kevlar_modern_downloads_page")&&V&&Q&&Q!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Q){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var E=j5m(v,V);if(E){Q=_.RF(v,V);var b=l3(v,V),F=QKb(v,V);v=qS(v,V);var t=z4B(E,Q,b,F);b=t.shortViewCountText;var p=t.publishedTimeText;t=t.badges;var Z=v>0;F=qZE(E,Q,F,v);E=_.d8(Q)||Q==="TRANSFER_STATE_FAILED"||Q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!PB(E.policyEntity)?
void 0:JLB(V,v,E.videoEntity.lengthSeconds);Q==="TRANSFER_STATE_PAUSED_BY_USER"&&V&&!_.Y("dl_resume_click_killswitch")&&(E={offlineVideoEndpoint:{videoId:V,action:"ACTION_RESUME"}});V={shortViewCountText:b,publishedTimeText:p,badges:t,isWatched:Z,navigationEndpoint:E,thumbnailOverlays:F}}else V=void 0;return V;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(Q=WlE(v,V))if(E=_.n7(v,V),F=_.ocZ(v,V),E!=="TRANSFER_STATE_UNKNOWN"){V=SZB(Q,E,F,V,_.Di(v));break a}V=void 0}return V;default:_.Iy(new _.xd("Error: entitySelectorType defined but not matched in selector.",
v,Q))}}}),
_.X("design:type",Object)],r0.prototype,"entityDrivenState",void 0);_.W([_.q({computed:"computeVideoTitleText(data)"}),_.X("design:type",Object)],r0.prototype,"videoTitleText",void 0);_.W([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.X("design:type",Object)],r0.prototype,"hasPlaylistThumbnail",void 0);_.W([_.q({computed:"computeNavigationEndpoint(data)"}),_.X("design:type",Object)],r0.prototype,"computedNavigationEndpoint",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],r0.prototype,"typographyBump",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("typographyBump"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],r0.prototype,"typographyBumpV2",null);_.W([_.Z7("#video-title"),_.X("design:type",HTMLElement)],r0.prototype,"videoTitle",void 0);_.W([_.Z7("#video-title-link"),_.X("design:type",HTMLElement)],r0.prototype,"videoTitleLink",void 0);
_.W([_.Z7("#thumbnail"),_.X("design:type",HTMLElement)],r0.prototype,"thumbnail",void 0);_.W([_.Z7("#dismissible"),_.X("design:type",HTMLElement)],r0.prototype,"JSC$16321_dismissibleMedia",void 0);_.W([_.O("data.menu"),_.X("design:type",Object),_.X("design:paramtypes",[])],r0.prototype,"lazyLoadMenu",null);_.W([_.O("data.menu"),_.X("design:type",Object),_.X("design:paramtypes",[])],r0.prototype,"immediateLoadMenu",null);
_.W([_.wg("entityDrivenState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r0.prototype,"handleReloadDownloadsInfo",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r0.prototype,"onDataChanged",null);_.W([_.wg("hidden"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r0.prototype,"onHiddenChanged",null);
_.W([_.ph("isDismissed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r0.prototype,"onIsDismissedChanged",null);_.W([_.ph("metadataColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r0.prototype,"metadataColorChanged",null);_.W([_.tM("mousedown"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],r0.prototype,"onMouseDown",null);
_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],r0.prototype,"isHovered",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],r0.prototype,"useAvatar",null);_.W([_.O("data","entitySelectorType"),_.X("design:type",String),_.X("design:paramtypes",[])],r0.prototype,"mediaId",null);_.W([_.J({is:"ytd-rich-grid-media",disableElementRegistration:!0})],r0);
var WEZ=_.Hn()(r0,"ytd-rich-grid-media",function(){if(grN!==void 0)return grN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return grN=v},{mode:_.mV("kevlar_poly_si_batch_j072")?1:2});var orV;var $k=function(){var v=_.z.apply(this,arguments)||this;v.removeMaxWidth=!0;v.insetMetadata=!1;return v};
_.f($k,_.z);_.K=$k.prototype;_.K.configureRendererStamper=function(){return{innerMenu:gq,outerMenu:Object.assign({},gq,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.onDataChanged=function(){var v,Q=((v=this.data)==null?void 0:v.trackingParams)||"";Q&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Q));var V;((V=this.dismissActionToReplayEntity)==null?0:V.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16326_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.JSC$16326_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CXa})};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$16326_inlinePreviewHoverListener)==null||ji(v)};
_.K.onRendererTap=function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.serviceEndpoints)==null?void 0:Q[0];_.y(V,_.Cq)&&this.componentBehavior.resolveCommand(V)};
_.K.onDetailsClick=function(v){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint;V&&(_.j$(_.uK(v),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(V))};
_.K.onShow=function(){var v=this.data;v.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(v.onFirstVisibleCommand),delete v.onFirstVisibleCommand)};
_.hr.Object.defineProperties($k.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var v;return this.insetMetadata?void 0:(v=this.data)==null?void 0:v.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var v;return this.insetMetadata?(v=this.data)==null?void 0:v.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var v=this.data;if(v!=null&&v.badge&&(v=_.y(v.badge,bAN))){var Q,V,E;return[{metadataBadgeRenderer:{label:((Q=v.label)==null?void 0:(V=Q.runs)==null?void 0:V[0].text)||((E=v.label)==null?void 0:E.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var v=this.data;return Object.assign({},v.headline,{accessibility:v.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return this.isSlimShort?(v=this.computedTitle)==null?void 0:(Q=v.accessibility)==null?void 0:(V=Q.accessibilityData)==null?void 0:V.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$16326_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
$k.prototype.onDataChanged=$k.prototype.onDataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],$k.prototype,"componentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],$k.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.Er),_.X("design:type",Object)],$k.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],$k.prototype,"ytdReduxBehavior",void 0);_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],$k.prototype,"thumbnail",void 0);_.W([_.Z7("#dismissible"),_.X("design:type",HTMLElement)],$k.prototype,"JSC$16326_dismissibleMedia",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$k.prototype,"removeMaxWidth",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$k.prototype,"insetMetadata",void 0);_.W([_.q(),_.X("design:type",String)],$k.prototype,"dismissedContentId",void 0);_.W([_.q({selectorArgs:["dismissedContentId"],selector:iXS}),_.X("design:type",Object)],$k.prototype,"dismissActionToReplayEntity",void 0);_.W([_.O("insetMetadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],$k.prototype,"thumbnailObjectFit",null);
_.W([_.O("data","insetMetadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],$k.prototype,"innerMenu",null);_.W([_.O("data","insetMetadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],$k.prototype,"outerMenu",null);_.W([_.q(),_.X("design:type",Object)],$k.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],$k.prototype,"miniMode",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$k.prototype,"onDataChanged",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],$k.prototype,"shortsBadges",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$k.prototype,"isShort",null);
_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$k.prototype,"isSlimShort",null);_.W([_.O("data","isShort"),_.X("design:type",Object),_.X("design:paramtypes",[])],$k.prototype,"computedTitle",null);_.W([_.O("isSlimShort","computedTitle"),_.X("design:type",Object),_.X("design:paramtypes",[])],$k.prototype,"computedAccessibilityLabel",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$k.prototype,"shouldForce2By3",null);_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$k.prototype,"isHovered",null);_.W([_.J({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],$k);
_.B($k,"ytd-rich-grid-slim-media",function(){if(orV!==void 0)return orV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return orV=v},{mode:_.mV("kevlar_poly_si_batch_j063")?1:2});var XGp;var aC8;var Iw=function(){return _.z.apply(this,arguments)||this};
_.f(Iw,_.z);Iw.prototype.computeIcon=function(v){return v&&v.iconType?"yt-sys-icons:"+v.iconType.toLowerCase():""};
Iw.prototype.onMouseEnter=function(){this.isHovered=!0};
Iw.prototype.onMouseLeave=function(){this.isHovered=!1};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Iw.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Iw.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Iw.prototype,"isHovered",void 0);
_.W([_.J({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Iw);
_.B(Iw,"ytd-expand-on-hover-card-renderer",function(){if(aC8!==void 0)return aC8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return aC8=v},{mode:1});var rJq,$Tq=function(){if(rJq!==void 0)return rJq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return rJq=v};_.yZ("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Hl=function(){var v=_.z.apply(this,arguments)||this;v.compactStyle=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(Hl,_.z);_.K=Hl.prototype;_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.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"}}}};
_.K.computeHideDot=function(v){return!(v&&v.subscriberCountText&&v.videoCountText)||this.compactStyle};
_.K.hasDualButtons=function(v){return v&&v.purchaseButton&&v.subscribeButton};
_.K.backgroundColorChanged=function(){if(this.data!==void 0){var v=this.data.backgroundColor;this.isDarkTheme&&(v=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=v!=null?_.GA(v):"transparent"}};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.onTap=function(v){var Q,V,E=((Q=this.data)==null?void 0:Q.navigationEndpoint)||((V=this.data)==null?void 0:V.serviceEndpoint);_.y(E,_.gW)&&(E&&_.ht().resolve(_.At).resolveCommand(E,{form:{element:this.hostElement}}),v.preventDefault())};
_.K.computeChannelEndpoint=function(v){return _.y(v,_.gW)?null:v};
_.K.computeHrefEndpoint=function(v){return _.y(v,_.gW)?null:this.componentBehavior.computeHref_(v)};
_.K.computeChannelRendererStyle=function(v){return v};
_.K.computeIconSize=function(v){return v?108:136};
_.hr.Object.defineProperties(Hl,{template:{configurable:!0,enumerable:!0,get:function(){return $Tq()}}});
Hl.prototype.backgroundColorChanged=Hl.prototype.backgroundColorChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],Hl.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Hl.prototype,"componentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Hl.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],Hl.prototype,"isDarkTheme",void 0);_.W([_.q({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.X("design:type",String)],Hl.prototype,"channelRendererStyle",void 0);_.W([_.q({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Hl.prototype,"dualButtons",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],Hl.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],Hl.prototype,"biggerThumbStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Hl.prototype,"compactStyle",void 0);_.W([_.ph("data","isDarkTheme"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hl.prototype,"backgroundColorChanged",null);_.W([_.J({is:"ytd-channel-renderer",disableElementRegistration:!0})],Hl);_.B(Hl,"ytd-channel-renderer",function(){return $Tq()},{mode:1});var ICa;var HKS;_.yZ("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var mR=function(){var v=_.z.apply(this,arguments)||this;v.displayItemCount=2;v.hasPlaylistThumbnail=!1;v.stackThumbnailSize="large";return v};
_.f(mR,_.z);_.K=mR.prototype;_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.K.computeFirstVideos=function(v,Q){return v&&Q?v.slice(0,Q):[]};
_.K.computeThumbnailWidth=function(v,Q){return v?Q==="BIG"?500:Q==="MASSIVE"?600:Q==="MEDIUM"?450:420:360};
_.K.computeThumbnailHeight=function(v,Q){return v?Q==="BIG"?280:Q==="MASSIVE"?337:234:202};
_.K.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$16339_inlinePreviewHoverListener)==null||ji(v)};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16339_inlinePreviewHoverListener=Dz({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:GtZ,thumbnailElement:this.thumbnail})};
_.K.computeHasPlaylistThumbnail=function(v){var Q,V;if((((Q=v.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((V=v.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer))&&v.thumbnailOverlays)for(Q=0;Q<v.thumbnailOverlays.length;Q++)if(V=void 0,(V=v.thumbnailOverlays[Q])==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.hr.Object.defineProperties(mR.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$16339_inlinePreviewHoverListener)==null?0:K5(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mR.prototype.dataChanged=mR.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],mR.prototype,"ytdLockupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mR.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],mR.prototype,"displayItemCount",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],mR.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],mR.prototype,"biggerThumbsStyle",void 0);_.W([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.X("design:type",Object)],mR.prototype,"hasPlaylistThumbnail",void 0);_.W([_.q(),_.X("design:type",String)],mR.prototype,"stackThumbnailSize",void 0);_.W([_.Z7("ytd-thumbnail"),_.X("design:type",HTMLElement)],mR.prototype,"thumbnail",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mR.prototype,"dataChanged",null);
_.W([_.O("lockupIsHovered"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],mR.prototype,"isHovered",null);_.W([_.J({is:"ytd-radio-renderer",disableElementRegistration:!0})],mR);
_.B(mR,"ytd-radio-renderer",function(){if(HKS!==void 0)return HKS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return HKS=v},{mode:_.mV("kevlar_poly_si_batch_j058")?1:2});var mTN;_.yZ("itemSectionRenderer","showRenderer","ytd-show-renderer");var Ua=function(){return _.z.apply(this,arguments)||this};
_.f(Ua,_.z);Ua.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ua.prototype.computeThumbnailWidth=function(v){return v?360:246};
Ua.prototype.computeUseProminentThumbs=function(v){return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ua.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Ua.prototype,"isSearch",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.X("design:type",Boolean)],Ua.prototype,"useProminentThumbs",void 0);_.W([_.J({is:"ytd-show-renderer",disableElementRegistration:!0})],Ua);
_.B(Ua,"ytd-show-renderer",function(){if(mTN!==void 0)return mTN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return mTN=v},{mode:1});_.yZ("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var vF=function(){var v=_.z.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.f(vF,_.z);vF.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vF.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vF.prototype,"isRichGrid",void 0);_.W([_.J({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],vF);
_.B(vF,"ytd-feed-entry-renderer",function(){if(ICa!==void 0)return ICa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ICa=v},{mode:1});var UTR;var Qc=function(){return _.z.apply(this,arguments)||this};
_.f(Qc,_.z);Qc.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.W([_.M(_.QU),_.X("design:type",Object)],Qc.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Qc.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Qc.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.C7,value:3}),_.X("design:type",Number)],Qc.prototype,"itemsPerRow",void 0);
_.W([_.J({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Qc);
_.B(Qc,"ytd-link-card-renderer",function(){if(UTR!==void 0)return UTR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return UTR=v},{mode:1});var vEa;var Vc=function(){return _.z.apply(this,arguments)||this};
_.f(Vc,_.z);_.K=Vc.prototype;_.K.configureRendererStamper=function(){return{"data.menu":gq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.onRendererTap=function(v){if(!this.ytdDismissibleItemBehavior.isDismissed){var Q,V=(Q=this.data)==null?void 0:Q.navigationEndpoint;V&&!_.j$(_.uK(v),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(V)?_.j$(_.uK(v),this.hostElement,["A"])||_.Hj(this.hostElement,"yt-navigate",{endpoint:V}):this.ytComponentBehavior.resolveCommand(V,{}))}};
_.K.maybeComputeHref=function(v){return this.ytComponentBehavior.computeHref_(v,!0)};
_.K.getNavigationCommand=function(v){return this.isNavigationCommand(v)?v:null};
_.K.isNavigationCommand=function(v){return v?_.y(v,_.tn)||_.y(v,_.sn)||_.y(v,_.FJ)?!0:!1:!1};
Vc.prototype.onRendererTap=Vc.prototype.onRendererTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],Vc.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Vc.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Vc.prototype,"data",void 0);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Vc.prototype,"onRendererTap",null);_.W([_.J({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Vc);
_.B(Vc,"ytd-lumiere-promo-item-image-renderer",function(){if(vEa!==void 0)return vEa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vEa=v},{mode:1});var QQS;var ET=function(){return _.z.apply(this,arguments)||this};
_.f(ET,_.z);ET.prototype.computeLandscapeThumbnail=function(){var v;return((v=this.data)==null?void 0:v.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ET.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ET.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],ET.prototype,"miniMode",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.C7}),_.X("design:type",Number)],ET.prototype,"itemsPerRow",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.X("design:type",Boolean)],ET.prototype,"landscapeThumbnail",void 0);_.W([_.J({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ET);
_.B(ET,"ytd-lumiere-shelf-details-renderer",function(){if(QQS!==void 0)return QQS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return QQS=v},{mode:_.mV("kevlar_poly_si_batch_j076")?1:2});var VGa;var bo=function(){return _.z.apply(this,arguments)||this};
_.f(bo,_.z);bo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bo.prototype,"data",void 0);_.W([_.J({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],bo);
_.B(bo,"ytd-primetime-promo-details-renderer",function(){if(VGa!==void 0)return VGa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return VGa=v},{mode:1});var EEN;var F8=function(){return _.z.apply(this,arguments)||this};
_.f(F8,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],F8.prototype,"data",void 0);_.W([_.J({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],F8);
_.B(F8,"ytd-panel-show-style-metadata-renderer",function(){if(EEN!==void 0)return EEN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return EEN=v},{mode:1});var bGN;var Kl=function(){return _.z.apply(this,arguments)||this};
_.f(Kl,_.z);_.K=Kl.prototype;_.K.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.K.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.K.computeThumbnail=function(v){if(v)return v.smallFormFactorBackgroundThumbnail||v.largeFormFactorBackgroundThumbnail};
_.K.maybeComputeHref=function(v){return this.ytComponentBehavior.computeHref_(v,!0)};
_.K.isNavigationCommand=function(v){return v?_.y(v,_.tn)||_.y(v,_.sn)||_.y(v,_.FJ)?!0:!1:!1};
_.K.getNavigationCommand=function(v){return this.isNavigationCommand(v)?v:null};
Kl.prototype.onPanelTap=Kl.prototype.onPanelTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Kl.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Kl.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],Kl.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.X("design:type",Boolean)],Kl.prototype,"modernButtons",void 0);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Kl.prototype,"onPanelTap",null);_.W([_.J({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Kl);
_.B(Kl,"ytd-primetime-promo-panel-renderer",function(){if(bGN!==void 0)return bGN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bGN=v},{mode:1});_.ad(_.x(function(v){v=_.o1(v,{data:{},useFullWidth:!1});var Q=v.data,V=v.useFullWidth;v={};return _.P("teaser-card-view-model",{class:_.QZ("ytTeaserCardViewModelHost",(v.ytTeaserCardViewModelUseFullWidth=function(){return V()},v))},_.P(_.h,{cond:function(){return Q().onTap},
then:function(E){return _.P(_.yL,{className:"ytTeaserCardViewModelLink",command:E},_.P("div",{class:"ytTeaserCardViewModelImageContainer"},_.P(_.h,{cond:function(){return Q().image},
then:function(b){return _.P(_.gE,{data:b,className:"ytTeaserCardViewModelImage",alt:""})}})),_.P("p",{class:"ytTeaserCardViewModelCaption"},function(){return Q().caption}))}}))},"Yc"),"teaser-card-view-model",{props:{data:_.pJ,
useFullWidth:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=function(){var E;return _.SC((E=Q())==null?void 0:E.iconThemedImage)};
return _.P("yt-edu-card-view-model",null,_.P(_.qg,{contentId:function(){return Q().nudgeId}},function(){return _.P("div",{class:_.QZ("ytEduCardViewModelHost",function(){return Q().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.P("div",{class:"ytEduCardViewModelTopCornerButton"},_.P(_.Pw,{data:function(){return Q().dismissButton}},{buttonViewModel:_.D6})),_.P("div",{class:"ytEduCardViewModelContentWrapper"},_.P("div",{class:"ytEduCardViewModelHeaderImage"},_.P(_.h,
{cond:V,
then:function(E){return _.P(_.gE,{data:E,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.P("div",{class:"ytEduCardViewModelTextContainer"},_.P("div",{class:"ytEduCardViewModelTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytEduCardViewModelSubtitle"},_.P(_.tD,{text:function(){return Q().subtitle}}))),_.P("div",{class:"ytEduCardViewModelContent"},_.P(_.Pw,{data:function(){return Q().form}},{nudgeFormViewModel:BFZ}))),_.P("div",{class:_.QZ("ytEduCardViewModelButtonWrapper",
function(){return Q().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.P(_.Pw,{data:function(){return Q().primaryButton}},{buttonViewModel:function(E){return _.P("div",{class:"ytEduCardViewModelPrimaryButton"},_.P(_.D6,{data:E.data}))}}),_.P(_.Pw,{data:function(){return Q().secondaryButton}},{buttonViewModel:function(E){return _.P("div",{class:"ytEduCardViewModelSecondaryButton"},_.P(_.D6,{data:E.data}))}})))}))},"Zc"),"yt-edu-card-view-model",{props:{data:_.pJ}});var FWN=new _.KB("RICH_GRID_VIDEO_RENDERER_TOKEN");_.ad(_.x(function(v){var Q=v.data;var V=v.showYtInteractionInContent;var E=function(){return!!Q().selectableFeedback};
v=_.L(_.Ge(!1,void 0,"qxtgaf"));var b=v.next().value,F=v.next().value;_.jg(function(){var k=_.y(Q().primaryButton,_.Zq);(k==null?0:k.isToggled)&&F(k.isToggled)});
v=_.EP(function(k){if(!E())return!1;if(b()){var T;var c=(T=Q().selectableFeedback)==null?void 0:T.onDeselect}else{var C;c=(C=Q().selectableFeedback)==null?void 0:C.onSelect}c&&_.nx(c,{form:{element:k.target}});F(!b());if(k=_.y(Q().primaryButton,_.Zq))k.isToggled=b();return!1});
var t=function(){if(!E()){var k,T=(k=Q().loggingDirectives)==null?void 0:k.trackingParams;T&&_.x_(_.ht().resolve(_.o5),T)}},p=_.gZG(),Z=function(){var k;
return E()?(k=Q().selectableFeedback)==null?void 0:k.a11yLabel:void 0},d=function(){return E()?{toggled:b()}:{}},w=_.ht().resolve(_.d$(FWN)),A={};
return _.P("yt-feedback-item-renderer",{class:_.QZ("ytFeedbackItemRendererHost",(A.ytFeedbackItemRendererSelectableFeedback=E,A)),"on:click":v,"on:keydown":p,title:Z,"aria-label":Z,"aria-pressed":function(){return E()?b():void 0},
tabindex:function(){return E()?0:void 0},
role:function(){return E()?"button":void 0}},_.P("div",{class:"ytFeedbackItemRendererContentContainer"},_.P(_.Pw,{data:function(){return Q().content}},{videoRenderer:function(k){return _.P(w,{data:k.data,
showYtInteraction:V})},
lockupViewModel:function(k){return _.P(_.Ng,{data:k.data,containerType:2})}})),_.P("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.P(_.Pw,{data:function(){return Q().primaryButton}},{toggleButtonViewModel:function(k){return _.P(_.a5,{data:k.data,
buttonShapeOverrides:d,disableExplicitClickLogging:!0,onToggle:t})}})))},"$c"),"yt-feedback-item-renderer",{props:{data:_.pJ,
showYtInteractionInContent:_.pJ}});var io=function(){var v=_.z.apply(this,arguments)||this;v.isShortsGrid=!1;v.isCompactGrid=!1;v.isShortsPanelGrid=!1;v.renderedFromRichGrid=!1;v.isInFirstColumn=!1;v.noGutterMargins=!1;v.noBottomMargin=!1;v.halfBottomMargin=!1;v.isInlineGroupItem=!1;v.insetMetadata=!1;v.noBottomMarginInAds=!0;v.force16By9ThumbnailAspectRatio=!1;v.useCompactList=!1;v.containerType=2;v.thumbnailTargetWidth=9999;v.isResponsiveGrid=!1;v.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};v.hoverListener=
v.hover.bind(v);v.leaveListener=v.leave.bind(v);v.highlighted=!1;v.JSC$16375_unsubscribeFromInlinePreviewIsActive=function(){};
return v};
_.f(io,_.z);_.K=io.prototype;_.K.computeContainerType=function(){return this.useCompactList?3:2};
_.K.itemWidthChanged=function(){var v;this.thumbnailTargetWidth=(v=this.itemWidth)!=null?v:9999};
_.K.updateIsInFirstColumn=function(){var v;this.isInFirstColumn=((v=this.data)==null?void 0:v.colIndex)===0};
_.K.observerContainerType=function(){if(this.lockup){var v=this.lockup;v.containerType=this.containerType;v.sizing=this.sizing;v.typographyBump=this.typographyBump;v.itemWidth=this.itemWidth}this.richGridMedia&&_.Y("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.Y("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.K.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.K.leave=function(v){v=v.relatedTarget;var Q=document.querySelector("ytd-video-preview");v&&Q&&_.Up(Q).contains(v)||this.removeAndCleanupHighlight()};
_.K.hover=function(){var v;!this.highlighted&&(v=this.data)!=null&&v.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(v=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:v,boxShadow:"0 0 0 10px "+v})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.K.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};
_.K.registerHoverHighlightListeners=function(){var v=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16375_unsubscribeFromInlinePreviewIsActive=_.Wm(_.oF(),_.JDZ,function(Q){v.highlighted&&!Q&&v.removeAndCleanupHighlight()})};
_.K.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16375_unsubscribeFromInlinePreviewIsActive()};
_.K.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.K.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.K.getBackgroundColor=function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.onFocusEffect)==null?void 0:Q.onFocusColor;if(V){if(document.documentElement.hasAttribute("dark")&&(V==null?0:V.darkTheme))return Op(V==null?void 0:V.darkTheme);if(V==null?0:V.lightTheme)return Op(V==null?void 0:V.lightTheme)}};
_.K.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var v=_.Mo(),Q,V,E;v&&((Q=this.data)==null?0:Q.trackingParams)&&((V=this.data)==null?void 0:V.colIndex)!=null&&((E=this.data)==null?void 0:E.rowIndex)!=null&&_.Wp(v,_.dE(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.K.isSlimMediaRenderer=function(v){return!!_.y(v==null?void 0:v.content,_.qja)||!!_.y(v==null?void 0:v.content,lpa)||!!_.y(v==null?void 0:v.content,_.b9)||!!_.y(v==null?void 0:v.content,QKx)};
_.K.isPostRenderer=function(){var v,Q;return!!_.y((v=this.data)==null?void 0:v.content,IIq)||!!_.y((Q=this.data)==null?void 0:Q.content,HBR)};
_.K.computeIsGameCardShelf=function(){var v;return!!_.y((v=this.data)==null?void 0:v.content,p28)};
_.K.computeIsMiniGameCardShelf=function(){var v,Q;return!!_.y((v=this.data)==null?void 0:v.content,G5a)||!!_.y((Q=this.data)==null?void 0:Q.content,C7Q)};
_.K.computeIsTeaserCard=function(){var v;return!!_.y((v=this.data)==null?void 0:v.content,C7Q)};
_.K.computeIsSelectableFeedbackItem=function(){var v,Q;return!((Q=_.y((v=this.data)==null?void 0:v.content,OdX))==null||!Q.selectableFeedback)};
_.K.computeContainsLumierePosters=function(){var v,Q;return((Q=_.y((v=this.data)==null?void 0:v.content,Kvx))==null?void 0:Q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.K.computeIsExpandOnHoverCardShelf=function(){var v;return!!_.y((v=this.data)==null?void 0:v.content,Fvx)};
_.K.computeIsLinkCardShelf=function(){var v;return!!_.y((v=this.data)==null?void 0:v.content,hWq)};
_.K.computeIsReelItemStyleAvatarCircle=function(v){var Q;return((Q=_.y(v==null?void 0:v.content,_.b9))==null?void 0:Q.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.K.computeIsLinkCardFullWidth=function(v,Q){var V;return((V=_.y(v==null?void 0:v.content,hWq))==null?void 0:V.useFullWidth)||Q<=2};
_.hr.Object.defineProperties(io.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var v;return _.Y("web_hover_effect_refactor")&&_.y((v=this.data)==null?void 0:v.content,_.dDq)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.Y("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var v;if(_.Y("web_hover_effect_refactor")&&_.y((v=this.data)==null?void 0:v.content,_.dDq))return!1;var Q;return!((Q=this.data)==null||!Q.onFocusEffect)||_.Y("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var v;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.Y("web_hover_effect_refactor")?(v=this.data)==null?void 0:v.onFocusEffect:void 0}}}});
io.prototype.richGridHoverHighlightChanged=io.prototype.richGridHoverHighlightChanged;io.prototype.observerContainerType=io.prototype.observerContainerType;io.prototype.updateIsInFirstColumn=io.prototype.updateIsInFirstColumn;io.prototype.itemWidthChanged=io.prototype.itemWidthChanged;_.W([_.M(_.QU),_.X("design:type",Object)],io.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],io.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],io.prototype,"ytdLockupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],io.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.X("design:type",Boolean)],io.prototype,"isPost",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.X("design:type",Boolean)],io.prototype,"containsLumierePosters",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.X("design:type",Boolean)],io.prototype,"isSlimMedia",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.X("design:type",Boolean)],io.prototype,"isGameCardShelf",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.X("design:type",Boolean)],io.prototype,"isMiniGameCardShelf",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.X("design:type",Boolean)],io.prototype,"isTeaserCard",void 0);_.W([_.q({computed:"computeIsSelectableFeedbackItem(data)"}),_.X("design:type",Boolean)],io.prototype,"isSelectableFeedbackItem",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"isShortsGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],io.prototype,"isSlimGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"isCompactGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"isShortsPanelGrid",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.X("design:type",Boolean)],io.prototype,"isExpandOnHoverCardShelf",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.X("design:type",Boolean)],io.prototype,"isLinkCardShelf",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.C7,value:3}),_.X("design:type",Number)],io.prototype,"itemsPerRow",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"renderedFromRichGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"isInFirstColumn",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"noGutterMargins",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"noBottomMargin",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"halfBottomMargin",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"isInlineGroupItem",void 0);_.W([_.q(),_.X("design:type",Object)],io.prototype,"insetMetadata",void 0);_.W([_.q(),_.X("design:type",Object)],io.prototype,"noBottomMarginInAds",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],io.prototype,"isShelfItem",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.X("design:type",Boolean)],io.prototype,"isReelItemStyleAvatarCircle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.X("design:type",Boolean)],io.prototype,"isLinkCardFullWidth",void 0);_.W([_.q(),_.X("design:type",Object)],io.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"useCompactList",void 0);_.W([_.q(),_.X("design:type",String)],io.prototype,"sizing",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],io.prototype,"typographyBump",void 0);_.W([_.q(),_.X("design:type",Number)],io.prototype,"itemWidth",void 0);_.W([_.q(),_.X("design:type",Boolean)],io.prototype,"isHomeShelf",void 0);_.W([_.q(),_.X("design:type",Boolean)],io.prototype,"isHomeGrid",void 0);
_.W([_.Z7("yt-lockup-view-model"),_.X("design:type",HTMLElement)],io.prototype,"lockup",void 0);_.W([_.Z7("ytd-rich-grid-media"),_.X("design:type",HTMLElement)],io.prototype,"richGridMedia",void 0);_.W([_.Z7("ytd-ad-slot-renderer"),_.X("design:type",HTMLElement)],io.prototype,"adSlotRenderer",void 0);_.W([_.q({computed:"computeContainerType(useCompactList)"}),_.X("design:type",Object)],io.prototype,"containerType",void 0);_.W([_.q(),_.X("design:type",Object)],io.prototype,"thumbnailTargetWidth",void 0);
_.W([_.O("showYtInteractionOnRichItem"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],io.prototype,"showYtInteractionOnRichGridMedia",null);_.W([_.O("isSelectableFeedbackItem","richGridHoverHighlight"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],io.prototype,"showYtInteractionOnRichItem",null);_.W([_.O("typographyBump","isHomeGrid"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],io.prototype,"richTypographyBump",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data","isShortsGrid","isCompactGrid"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],io.prototype,"richGridHoverHighlight",null);_.W([_.O("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.X("design:type",Number),_.X("design:paramtypes",[])],io.prototype,"shortsLockupViewModelAspectRatio",null);_.W([_.O("isInlineGroupItem"),_.X("design:type",Number),_.X("design:paramtypes",[])],io.prototype,"shortsLockupViewModelScrimStyle",null);
_.W([_.ph("itemWidth"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],io.prototype,"itemWidthChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],io.prototype,"updateIsInFirstColumn",null);_.W([_.ph("containerType","sizing","typographyBump"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],io.prototype,"observerContainerType",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],io.prototype,"isResponsiveGrid",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],io.prototype,"lockupExperiments",null);_.W([_.ph("richGridHoverHighlight"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],io.prototype,"richGridHoverHighlightChanged",null);_.W([_.J({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],io);
_.KWp=_.Hn()(io,"ytd-rich-item-renderer",function(){if(XGp===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);XGp=v}v=XGp;return v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var viG={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var PXB=_.u3(_.Lt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var VrS={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},bzE={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},FNb={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var iG8;var Ll=function(){var v=_.z.apply(this,arguments)||this;v.useResponsiveGrid=!1;v.hidden=!1;v.isShowMoreHidden=!1;v.isShowLessHidden=!0;v.hasExpansionButton=!1;v.isInnerShelf=!1;v.allVideosCount=0;v.allPlaylistCount=0;v.haveSmartDownloadsCompleted=!1;v.restrictContentsOverflow=!1;v.firstShownIndex=0;v.horizontalOffset=0;v.atEnd=!0;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
v.nextClick=function(){var Q;(Q=v.data)!=null&&Q.contents&&(v.firstShownIndex+=v.currentElementsPerRow,v.updateHorizontalOffset(),v.updateHorizontalItemVisibility())};
v.previousClick=function(){var Q;(Q=v.data)!=null&&Q.contents&&(v.firstShownIndex-=v.currentElementsPerRow,v.updateHorizontalOffset(),v.updateHorizontalItemVisibility())};
return v};
_.f(Ll,_.z);_.K=Ll.prototype;
_.K.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.r7("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.K.attached=function(){this.requestElementsPerRow()};
_.K.refreshGridLayoutNew=function(){var v;if((v=this.data)!=null&&v.contents&&this.containerWidth){var Q;((Q=this.data.responsiveContainerConfiguration)==null?0:Q.responsiveSize)?(v=_.wt0(this.data.responsiveContainerConfiguration,this.containerWidth,2),v=_.lO(Object.assign({},v,{standardUnitMinWidth:this.standardUnitMinWidth}))):v=_.lO({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=v.typographyBump;if(this.elementsPerRow!==
v.numItems||this.gutter!==v.gutter)this.elementsPerRow=v.numItems,this.gutter=v.gutter,this.itemWidth=v.itemWidth,_.F6(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.gutter+"px"})}};
_.K.computeSizing=function(){if(!this.isLumiere){var v=_.JNb(this.data);return v?v:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.K.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.K.computeButton=function(v){var Q=_.y(v,_.KH);v=Object.assign({},_.y(v,_.KH));return Q?(v.text||(v.text={simpleText:v.tooltip}),v.style="STYLE_MONO_OUTLINE",v.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",v):Q};
_.K.onRowIndexChange=function(){var v=_.Mo(),Q,V;((Q=this.data)==null?0:Q.trackingParams)&&((V=this.data)==null?void 0:V.rowIndex)!=null&&v&&_.Wp(v,_.dE(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.K.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var v,Q=((v=this.getRichItemRenderers()[0])==null?void 0:v.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*Q;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
_.K.onUpdateElementsPerRowAction=function(v,Q,V,E,b,F){if(this.containerWidth!==F&&(this.containerWidth=F,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&v&&Q&&V&&E&&b&&(this.elementsPerRow!==v||this.postsPerRow!==Q||this.slimItemsPerRow!==V||this.gameCardsPerRow!==E||this.miniGameCardsPerRow!==b)&&(this.elementsPerRow=v,this.postsPerRow=Q,this.slimItemsPerRow=V,this.gameCardsPerRow=E,this.miniGameCardsPerRow=b,this.updateItemVisibility())};
_.K.isExpandedChanged=function(){var v=this.getRichItemRenderers(),Q=this.isExpanded;v.forEach(function(V){V.halfBottomMargin=Q})};
_.K.isCollapsedChanged=function(){var v=this.getRichItemRenderers(),Q=this.isCollapsed;v.forEach(function(V){V.noBottomMargin=Q})};
_.K.getRichItemRenderers=function(){return _.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.K.updateItemVisibility=function(){var v=this;if(this.data&&this.data.contents){var Q=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(E,b){var F;((F=v.data)==null?0:F.isExpanded)?(E.hidden=b>Q-1,E.ytRendererBehavior.markDirty()):E.hidden=b>v.currentElementsPerRow-1||b>Q-1});
var V=this.data.contents.length<=this.currentElementsPerRow;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"}};
_.K.setHeightToSingleRow=function(){var v=this.getRichItemRenderers(),Q=Number.parseInt(getComputedStyle(v[0]).marginBottom,10)||0;v=v.slice(0,this.currentElementsPerRow).reduce(function(V,E){return Math.max(V,E.getBoundingClientRect().height+Q)},0);
this.contents.style.height=v+"px"};
_.K.focusNextExpandedItem=function(){var v;((v=this.data)==null?0:v.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.K.focusItem=function(v,Q){var V=this.getRichItemRenderers();if(V[v]&&(v=V[v].querySelector(".focus-on-expand"))){if(Q){var E;(E=V[this.currentElementsPerRow])==null||E.scrollIntoView({behavior:"smooth",block:"center"})}v.focus({preventScroll:!0})}};
_.K.onDataChange=function(){var v=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var Q;if((Q=this.data)==null?0:Q.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.PE(this,function(){v.updateItemVisibility()});
var V;if((V=this.data)==null?0:V.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.F6(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),Q=0;Q<this.data.contents.length;Q++)V=_.y(this.data.contents[Q],_.jh)||{},V.colIndex=Q,V.rowIndex=this.data.rowIndex};
_.K.handleRerenderDownloadsData=function(){_.Y("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())};
_.K.blockInlinePreview=function(v){var Q=this,V;return _.e(function(E){(V=Q.inlinePreviewIsEnabled)&&Q.ytdReduxBehavior.dispatch(_.ERA(!1));return E.return(new Promise(function(b){v(function(){V&&Q.ytdReduxBehavior.dispatch(_.ERA(!0));b()})}))})};
_.K.expandShelf=function(){var v=this;if(this.data){var Q,V=(Q=_.y(this.data.showMoreButton,_.KH))==null?void 0:Q.trackingParams;V&&_.x_(_.tR(),V);this.set("data.isExpanded",!0);this.blockInlinePreview(function(E){v.setHeightToSingleRow();v.updateItemVisibility();v.contents.style.height=v.contents.scrollHeight+"px";_.XT.addJob(function(){v.contents.style.height="auto";v.focusNextExpandedItem();E()},2,200)})}};
_.K.collapseShelf=function(){var v=this;return _.e(function(Q){if(Q.nextAddress==1){if(!v.data)return Q.return();v.set("data.isExpanded",!1);return Q.yield(v.blockInlinePreview(function(V){v.contents.style.height=v.contents.scrollHeight+"px";v.setHeightToSingleRow();_.XT.addJob(function(){v.updateItemVisibility();v.contents.style.height="auto";V()},2,200)}),2)}_.Hj(v.hostElement,"yt-rich-shelf-renderer-collapse",v.data.trackingParams);
v.focusItem(0,!1);_.q1(Q)})};
_.K.updateArrowButtonStatus=function(){this.getRichItemRenderers();var v,Q;var V=((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=V};
_.K.onChildElementFocus=function(v){this.hasChevronButtons&&(v=v.target.closest("#contents > *"),this.contents.contains(v)&&(v.offsetLeft<this.horizontalOffset?this.previousClick():v.offsetLeft+v.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.K.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.r7("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.K.updateHorizontalOffset=function(){var v=this.getRichItemRenderers(),Q,V;var E=((Q=this.data)==null?void 0:(V=Q.contents)==null?void 0:V.length)||0;var b;v=((b=v[0])==null?void 0:b.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>E?this.firstShownIndex=E-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*v};
_.K.isSlimMediaShelfRenderer=function(){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh))==null?void 0:V.content;return!!(_.y(E,_.qja)||_.y(E,lpa)||_.y(E,_.b9)||_.y(E,QKx))};
_.K.isGameCardShelf=function(){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh))==null?void 0:V.content;return!!_.y(E,p28)};
_.K.isMiniGameCardShelf=function(){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh))==null?void 0:V.content;return!!_.y(E,G5a)||!!_.y(E,C7Q)};
_.K.hasGameBoxArtAvatarStyle=function(){var v;return((v=this.data)==null?void 0:v.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.K.hasRoundedGameBoxArtAvatarStyle=function(){var v;return((v=this.data)==null?void 0:v.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.K.isShortsShelf=function(){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh))==null?void 0:V.content;return!!_.y(E,_.b9)||!!_.y(E,QKx)};
_.K.isPostShelfRenderer=function(){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh))==null?void 0:V.content;return!(!_.y(E,IIq)&&!_.y(E,HBR))};
_.K.isLumiereShelf=function(){var v,Q,V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh);return!!_.y(V==null?void 0:V.content,Kvx)};
_.K.isLumiereShelfWithPosters=function(){var v,Q,V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh),E;return((E=_.y(V==null?void 0:V.content,Kvx))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.K.isExpandOnHoverCardShelf=function(){var v,Q,V,E=(V=_.y((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:Q[0],_.jh))==null?void 0:V.content;return!!_.y(E,Fvx)};
_.K.computeHasFeaturedBadge=function(){var v,Q,V=_.y((v=this.data)==null?void 0:(Q=v.badges)==null?void 0:Q[0],_.C0x);return V?V.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.K.computeHasPaygatedFeaturedBadge=function(){var v,Q,V=_.y((v=this.data)==null?void 0:(Q=v.badges)==null?void 0:Q[0],_.C0x);return V?(V==null?void 0:V.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.K.computeHeaderHidden=function(){var v,Q,V,E,b,F;return!((v=this.data)==null?0:v.icon)&&!((Q=this.data)==null?0:Q.title)&&!((V=this.data)==null?0:V.subtitle)&&!((E=this.data)==null?0:E.thumbnail)&&!((b=this.data)==null?0:b.badges)&&!((F=this.data)==null?0:F.menu)};
_.K.showCtaButton=function(){var v;return!((v=this.data)==null||!v.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.K.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.K.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.K.computeForce16By9ThumbnailAspectRatio=function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.responsiveContainerConfiguration)==null?void 0:Q.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.K.onSectionReactiveDismissal=function(v,Q,V){var E,b;var F=(E=this.data)==null?void 0:(b=E.targetingContext)==null?void 0:b.targetGroupId;this&&F&&Q.targetGroupId&&F.includes(Q.targetGroupId)?(E=this.rowIndex,v=E===void 0?!1:!(Q.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&E<=v)):v=!1;v&&(this.hidden=V)};
_.hr.Object.defineProperties(Ll.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var v=this.elementsPerRow;this.isPostShelfRenderer()?v=this.postsPerRow:this.isSlimMediaShelfRenderer()?v=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?v=this.slimItemsPerRow-1:this.isGameCardShelf()?v=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(v=this.miniGameCardsPerRow);return v}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.previousButton)&&!((Q=this.data)==null||!Q.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.ht().resolve(_.oJ).getCurrentPage())==null?void 0:v.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;return!((v=this.data)==null?0:(Q=v.thumbnail)==null?0:(V=Q.accessibility)==null?0:(E=V.accessibilityData)==null?0:E.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Ll.prototype.onChildElementFocus=Ll.prototype.onChildElementFocus;Ll.prototype.handleRerenderDownloadsData=Ll.prototype.handleRerenderDownloadsData;Ll.prototype.onDataChange=Ll.prototype.onDataChange;Ll.prototype.isCollapsedChanged=Ll.prototype.isCollapsedChanged;Ll.prototype.isExpandedChanged=Ll.prototype.isExpandedChanged;Ll.prototype.onRowIndexChange=Ll.prototype.onRowIndexChange;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],Ll.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ll.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Ll.prototype,"ytdReduxBehavior",void 0);
_.W([_.q({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.X("design:type",Object)],Ll.prototype,"useResponsiveGrid",void 0);_.W([_.q(),_.X("design:type",Object)],Ll.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],Ll.prototype,"standardUnitMinWidth",void 0);_.W([_.q({reflectToAttribute:!0,value:3}),_.X("design:type",Number)],Ll.prototype,"elementsPerRow",void 0);_.W([_.q({value:3}),_.X("design:type",Number)],Ll.prototype,"postsPerRow",void 0);
_.W([_.q({value:6}),_.X("design:type",Number)],Ll.prototype,"slimItemsPerRow",void 0);_.W([_.q({value:6}),_.X("design:type",Number)],Ll.prototype,"gameCardsPerRow",void 0);_.W([_.q({value:6}),_.X("design:type",Number)],Ll.prototype,"miniGameCardsPerRow",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ll.prototype,"hidden",void 0);_.W([_.q(),_.X("design:type",Object)],Ll.prototype,"isShowMoreHidden",void 0);
_.W([_.q(),_.X("design:type",Object)],Ll.prototype,"isShowLessHidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ll.prototype,"hasExpansionButton",void 0);_.W([_.O("data.isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ll.prototype,"isExpanded",null);_.W([_.O("data.isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ll.prototype,"isCollapsed",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ll.prototype,"isInnerShelf",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.X("design:type",Boolean)],Ll.prototype,"isShorts",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.X("design:type",Boolean)],Ll.prototype,"isLumiere",void 0);_.W([_.q({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.X("design:type",Boolean)],Ll.prototype,"hasBoxArtThumbnailStyle",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.X("design:type",Boolean)],Ll.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.X("design:type",Boolean)],Ll.prototype,"hasFeaturedBadge",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.X("design:type",Boolean)],Ll.prototype,"hasPaygatedFeaturedBadge",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.X("design:type",Boolean)],Ll.prototype,"isHeaderHidden",void 0);_.W([_.q({selector:_.u40}),_.X("design:type",Object)],Ll.prototype,"allVideosCount",void 0);_.W([_.q({selector:hNE}),_.X("design:type",Object)],Ll.prototype,"allPlaylistCount",void 0);_.W([_.q({selector:mlm}),_.X("design:type",Object)],Ll.prototype,"haveSmartDownloadsCompleted",void 0);
_.W([_.q({selectorArgs:["entitySelectorType"],selector:function(v,Q){if(_.Y("kevlar_modern_downloads_page")&&Q&&Q!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var V=v.entities;switch(Q){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":Q=_.y_(V);v=Lr(Q);var E=_.h4(Q);V=_.f7(V);V=_.I$(izS(E,V,Q.length));return{contents:v,subtitle:V};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return V=_.y_(V),{contents:Lr(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return V=
_.cB(V),{contents:Lr(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return V=_.k93(V),{contents:Lr(V)};default:_.Iy(new _.xd("Error: entitySelectorType defined but not matched in selector.",v,Q))}}}}),
_.X("design:type",Object)],Ll.prototype,"entityDrivenRichShelfData",void 0);_.W([_.q({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.X("design:type",Boolean)],Ll.prototype,"hasTopCtaButton",void 0);_.W([_.q({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.X("design:type",Boolean)],Ll.prototype,"hasBottomCtaButton",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.X("design:type",Boolean)],Ll.prototype,"force16By9ThumbnailAspectRatio",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ll.prototype,"restrictContentsOverflow",void 0);_.W([_.q({selector:_.Nxb}),_.X("design:type",Boolean)],Ll.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.q({computed:"computeSizing(data)"}),_.X("design:type",String)],Ll.prototype,"sizing",void 0);
_.W([_.q(),_.X("design:type",Boolean)],Ll.prototype,"typographyBump",void 0);_.W([_.q(),_.X("design:type",Number)],Ll.prototype,"itemWidth",void 0);_.W([_.q(),_.X("design:type",Object)],Ll.prototype,"firstShownIndex",void 0);_.W([_.q(),_.X("design:type",Object)],Ll.prototype,"horizontalOffset",void 0);_.W([_.q(),_.X("design:type",Object)],Ll.prototype,"atEnd",void 0);_.W([_.Z7("#contents"),_.X("design:type",HTMLElement)],Ll.prototype,"contents",void 0);
_.W([_.ph("data.rowIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ll.prototype,"onRowIndexChange",null);_.W([_.ph("isExpanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ll.prototype,"isExpandedChanged",null);_.W([_.ph("isCollapsed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ll.prototype,"isCollapsedChanged",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ll.prototype,"onDataChange",null);_.W([_.ph("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ll.prototype,"handleRerenderDownloadsData",null);_.W([_.tM("focusin"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Ll.prototype,"onChildElementFocus",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data","isHomePage"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ll.prototype,"isTruncated",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ll.prototype,"showBottomDivider",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ll.prototype,"hasChevronButtons",null);
_.W([_.O("firstShownIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ll.prototype,"previousButtonOverride",null);_.W([_.O("atEnd"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ll.prototype,"nextButtonOverride",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ll.prototype,"isHomePage",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ll.prototype,"thumbnailAriaHidden",null);
_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],Ll.prototype,"entitySelectorType",null);_.W([_.J({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Ll);
_.LWa=_.Hn()(Ll,"ytd-rich-shelf-renderer",function(){if(iG8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);iG8=v}v=iG8;return v},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var tGZ;_.ad(_.YO,"yt-badge-view-model",{props:{data:_.pJ,class:_.pJ,workaroundShortsIsThumbnailBadge:_.pJ,modern:_.pJ,numBadgesInRow:_.pJ,clipTextOverflow:_.pJ}});_.ad(q1p,"yt-slimline-survey-view-model",{props:{data:_.pJ}});var tb=function(){var v=_.z.apply(this,arguments)||this;v.tileLottieAnimationRef={};v.backgroundLottieAnimationRef={};v.isOnHoverBehaviorForLottieEnabled=!0;v.useBiggerShowcaseImage=_.Y("enable_desktop_search_bigger_thumbs");v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return v};
_.f(tb,_.z);_.K=tb.prototype;_.K.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.K.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"}}}};
_.K.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var v=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);v!==this.hasTile&&this.set("hasTile",v);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.K.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.K.currentColorChanged=function(){this.updateButtonPalette()};
_.K.computeBackgroundStyle=function(v){if(v&&this.data){var Q=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.$D((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&Q.push('background-image: url("'+V+'");')}var E;((E=v.basicColorData)==null?void 0:E.backgroundColor)!==void 0&&Q.push("background-color: "+_.CF(v.basicColorData.backgroundColor)+";");return Q.join("")}};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v)};
_.K.getCurrentLogo=function(v,Q){if(v)return Q?v.darkLogoImage:v.lightLogoImage};
_.K.getCurrentStaticTileImage=function(v,Q){if(this.hasStaticTile(v))return v.darkTileImage?Q?v.darkTileImage:v.tileImage:v.tileImage};
_.K.computeTitleStyle=function(v){if(this.data&&this.data.title&&v&&v.basicColorData&&v.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.GA(v.basicColorData.foregroundTitleColor)+";"};
_.K.computeSubtitleStyle=function(v){if(this.data&&this.data.subtitle&&v&&v.basicColorData&&v.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.GA(v.basicColorData.foregroundBodyColor)+";"};
_.K.computeSupplementalStyle=function(v){if(this.data&&this.data.supplementalText&&v&&v.supplementalTextColor!==void 0)return v=_.GA(v.supplementalTextColor),"color:"+v+";--yt-endpoint-color:"+v+";--yt-endpoint-hover-color:"+v+";--yt-endpoint-visited-color:"+v+";--yt-formatted-string-bold-font-weight:700;"};
_.K.computeDismissIconStyle=function(v){var Q,V;if((v==null?0:(Q=v.dismissButtonColorData)==null?0:Q.foregroundTitleColor)&&(v==null?0:(V=v.dismissButtonColorData)==null?0:V.backgroundColor))return"--yt-button-color:"+_.CF(v.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.CF(v.dismissButtonColorData.backgroundColor)+";"};
_.K.computeOverflowIconStyle=function(v){var Q,V;if((v==null?0:(Q=v.dismissButtonColorData)==null?0:Q.foregroundTitleColor)&&(v==null?0:(V=v.dismissButtonColorData)==null?0:V.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.CF(v.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.CF(v.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.CF(v.dismissButtonColorData.foregroundTitleColor)+";"};
_.K.computeBannerStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeLocation=function(v){switch(v==null?void 0:v.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.K.shouldShowTileSection=function(v,Q,V){return!this.shouldExpandLogo(v,Q,V)&&Q};
_.K.shouldShowExpandedLogoSection=function(v,Q,V){return this.shouldExpandLogo(v,Q,V)&&v!==void 0&&this.hasLogo(v)};
_.K.shouldExpandLogo=function(v,Q,V){return v&&Q?!1:V>=2};
_.K.hasStaticTile=function(v){return!(v==null||!v.tileImage)};
_.K.hasTileLottie=function(v){var Q;return!!(v==null?0:(Q=v.tileLottie)==null?0:Q.url)};
_.K.hasLogo=function(v){return this.getCurrentLogo(v,this.isDarkTheme)!==void 0};
_.K.getLogoHeight=function(v){return this.logoWithPadding(v)?"26":"20"};
_.K.getExpandedLogoHeight=function(v){return this.logoWithPadding(v)?"31":"24"};
_.K.getLogoImageId=function(v){return this.logoWithPadding(v)?"logo-image-with-padding":"logo-image"};
_.K.getMaxTitleFontSize=function(v){return v.overrideTitleMaxFontSize?String(v.overrideTitleMaxFontSize):"36"};
_.K.hasBackgroundLottie=function(v){var Q;return!!(v==null?0:(Q=v.backgroundLottie)==null?0:Q.url)};
_.K.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var v,Q;(v=this.tileLottieAnimationRef)==null||(Q=v.lottieEl)==null||Q.play();var V,E;(V=this.backgroundLottieAnimationRef)==null||(E=V.lottieEl)==null||E.play()}};
_.K.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var v,Q;(v=this.tileLottieAnimationRef)==null||(Q=v.lottieEl)==null||Q.pause();var V,E;(V=this.backgroundLottieAnimationRef)==null||(E=V.lottieEl)==null||E.pause()}};
_.K.pauseLottie=function(){var v,Q;(v=this.tileLottieAnimationRef)==null||(Q=v.lottieEl)==null||Q.pause();var V,E;(V=this.backgroundLottieAnimationRef)==null||(E=V.lottieEl)==null||E.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.K.performPrimaryButtonAction=function(){var v,Q,V;((v=this.data)==null?0:(Q=v.primaryButton)==null?0:(V=Q.buttonRenderer)==null?0:V.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
_.K.updateButtonPalette=function(){if(this.data&&this.currentColorData){var v;((v=this.data.dismissButton)==null?0:v.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var Q;if((Q=this.data.primaryButton)==null?0:Q.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 E;((E=this.data.primaryButton)==null?0:E.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var b;((b=this.data.secondaryButton)==null?0:b.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var F;((F=this.data.primaryButton)==null?0:F.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.K.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var v=this.getTileLottieDataBasedOnTheme(),Q,V;if(v.url!==((Q=this.tileLottiePlayerProps)==null?void 0:(V=Q.animationConfig)==null?void 0:V.path)){var E,b;(E=this.tileLottieAnimationRef)==null||(b=E.lottieEl)==null||b.destroy();var F;this.isOnHoverBehaviorForLottieEnabled=!((F=v.settings)==null?0:F.autoplay);var t,p;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(p=(t=v.settings)==null?void 0:t.autoplay)!=null?p:!1,loop:this.getLottieLoopValue(v.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof v.url==="string"?this.tileLottiePlayerProps.animationConfig.path=v.url:this.tileLottiePlayerProps.animationConfig.animationData=v.url}}};
_.K.getOverflowButton=function(v){return _.y(v.overflowButton,Krq)};
_.K.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var v=this.getBackgroundLottieDataBasedOnTheme(),Q,V;if(v.url!==((Q=this.backgroundLottiePlayerProps)==null?void 0:(V=Q.animationConfig)==null?void 0:V.path)){var E,b;(E=this.backgroundLottieAnimationRef)==null||(b=E.lottieEl)==null||b.destroy();var F;this.isOnHoverBehaviorForLottieEnabled=!((F=v.settings)==null?0:F.autoplay);var t,p;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(p=(t=v.settings)==null?void 0:t.autoplay)!=null?p:!1,loop:this.getLottieLoopValue(v.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof v.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=v.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
v.url}}};
_.K.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var v;((v=this.tileLottieAnimationRef)==null?void 0:v.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var Q;((Q=this.backgroundLottieAnimationRef)==null?void 0:Q.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.K.getTileLottieDataBasedOnTheme=function(){var v;if(this.isDarkTheme&&((v=this.data)==null?0:v.darkThemeTileLottie))return this.data.darkThemeTileLottie;var Q;return((Q=this.data)==null?0:Q.tileLottie)?this.data.tileLottie:{}};
_.K.getBackgroundLottieDataBasedOnTheme=function(){var v;if(this.isDarkTheme&&((v=this.data)==null?0:v.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var Q;return((Q=this.data)==null?0:Q.backgroundLottie)?this.data.backgroundLottie:{}};
_.K.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
_.K.getLottieLoopValue=function(v){return v?v.loop!==void 0?v.loop:v.loopCount?v.loopCount-1:!0:!0};
_.K.logoWithPadding=function(v){var Q,V,E;return(v=(Q=this.getCurrentLogo(v,this.isDarkTheme))==null?void 0:(V=Q.thumbnails)==null?void 0:(E=V[0])==null?void 0:E.height)&&v%31===0?!0:!1};
tb.prototype.currentColorChanged=tb.prototype.currentColorChanged;tb.prototype.themeChanged=tb.prototype.themeChanged;tb.prototype.dataChanged=tb.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],tb.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],tb.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],tb.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"primaryButton",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"secondaryButton",void 0);
_.W([_.q({reflectToAttribute:!0,value:3}),_.X("design:type",Number)],tb.prototype,"elementsPerRow",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],tb.prototype,"isDarkTheme",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],tb.prototype,"hasTile",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],tb.prototype,"hasMetadata",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],tb.prototype,"showLogoImage",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"currentColorData",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.X("design:type",String)],tb.prototype,"bannerStyle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.X("design:type",String)],tb.prototype,"location",void 0);
_.W([_.q(),_.X("design:type",Object)],tb.prototype,"tileLottiePlayerProps",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"tileLottieAnimationRef",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"backgroundLottiePlayerProps",void 0);_.W([_.q(),_.X("design:type",Object)],tb.prototype,"backgroundLottieAnimationRef",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],tb.prototype,"useBiggerShowcaseImage",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],tb.prototype,"isHideEnclosingAction",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tb.prototype,"dataChanged",null);_.W([_.wg("isDarkTheme"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tb.prototype,"themeChanged",null);
_.W([_.wg("currentColorData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tb.prototype,"currentColorChanged",null);_.W([_.J({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],tb);
_.B(tb,"ytd-statement-banner-renderer",function(){if(tGZ!==void 0)return tGZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tGZ=v},{mode:1});var pQ8;var pl=function(){var v=_.z.apply(this,arguments)||this;v.isSearch=!1;v.hideShelfHeader=!1;v.engagementPanel=!1;v.disableMouseScroll=!0;v.useFloorScrolling=!0;return v};
_.f(pl,_.z);pl.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Lt("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Lt("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;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pl.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pl.prototype,"hideShelfHeader",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pl.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Object)],pl.prototype,"disableMouseScroll",void 0);_.W([_.q(),_.X("design:type",Object)],pl.prototype,"useFloorScrolling",void 0);_.W([_.q(),_.X("design:type",Object)],pl.prototype,"data",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pl.prototype,"onDataChanged",null);
_.W([_.J({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],pl);
_.B(pl,"ytd-reel-shelf-renderer",function(){if(pQ8!==void 0)return pQ8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pQ8=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var eUp;var ZGN;ZGN=_.s$(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.PsQ=_.Ad(ZGN);var dBa=_.x(function(v){var Q=v.data;v=v.useSmallFont;var V={},E={};return _.P("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.P(_.h,{cond:function(){return Q().favicon},
then:function(b){return _.P(_.gE,{data:b,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.P("div",{class:"ytChannelExternalLinkViewModelContainer"},_.P(_.tD,{text:function(){return Q().title},
className:_.QZ("ytChannelExternalLinkViewModelTitle",(V.ytChannelExternalLinkViewModelTitleSmallFont=v,V)),ellipsisTruncate:!0,userInput:!0}),_.P(_.tD,{text:function(){return Q().link},
className:_.QZ("ytChannelExternalLinkViewModelLink",(E.ytChannelExternalLinkViewModelLinkSmallFont=v,E)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ad");
dBa.idomCompat=!0;_.ad(dBa,"yt-channel-external-link-view-model",{props:{data:_.pJ,useSmallFont:_.pJ}});_.yZ("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var ek=function(){var v=_.z.apply(this,arguments)||this;v.revealButtonClass="button";v.businessEmailDisplayState="HIDE_SECTION";return v};
_.f(ek,_.z);_.K=ek.prototype;_.K.refit=function(){var v=this;_.JM(function(){_.Un(v.hostElement,"yt-refit-popups-action")});
_.PE(this,function(){_.Un(v.hostElement,"yt-refit-popups-action")})};
_.K.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.SH(_.PsQ),this.businessEmailDisplayState="CAPTCHA")};
_.K.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"};
_.K.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.K.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"}}}};
_.K.computeEmailHref=function(v){return"mailto:"+v};
_.K.computeSafeUrl=function(v){if(v)return _.oE(v)};
_.K.linkEndpoint=function(v){return _.y(v.onTap,_.Cx)};
_.K.linkEndpointToHref=function(v){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(v))};
_.K.onYtServiceRequestCompleted=function(v){var Q;if((Q=v.detail.data)==null?0:Q.businessEmail)this.businessEmail=v.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=v.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=v.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.K.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var v=this.JSC$16488_captchaTextarea.value;if(v){v={recaptcha_response_token:v,channel_id:this.metadata.channelId};var Q=_.y(this.metadata.onBusinessEmailRevealClickCommand,_.Cx);Q&&this.ytComponentBehavior.resolveCommand(Q,{form:v})}}};
_.K.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.hr.Object.defineProperties(ek.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var v;return _.y((v=this.data)==null?void 0:v.metadata,pVQ)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.businessEmailRevealButton,_.pH)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var v=new URL(this.metadata.canonicalChannelUrl);return v.host+v.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.learnMoreOnTap,_.Cx)}}});
ek.prototype.onYtServiceRequestCompleted=ek.prototype.onYtServiceRequestCompleted;ek.prototype.businessEmailMetadataChanged=ek.prototype.businessEmailMetadataChanged;ek.prototype.refit=ek.prototype.refit;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ek.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#g-recaptcha-response"),_.X("design:type",HTMLTextAreaElement)],ek.prototype,"JSC$16488_captchaTextarea",void 0);_.W([_.q(),_.X("design:type",Object)],ek.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],ek.prototype,"revealButtonClass",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],ek.prototype,"metadata",null);
_.W([_.O("metadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],ek.prototype,"revealButton",null);_.W([_.O("metadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],ek.prototype,"channelDisplayUrl",null);_.W([_.wg("metadata"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ek.prototype,"refit",null);_.W([_.O("metadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],ek.prototype,"formattedDescription",null);
_.W([_.O("metadata","learnMoreCommand"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ek.prototype,"shouldRendereVerifiedPhoneStatus",null);_.W([_.O("metadata"),_.X("design:type",Object),_.X("design:paramtypes",[])],ek.prototype,"learnMoreCommand",null);_.W([_.q(),_.X("design:type",String)],ek.prototype,"businessEmailDisplayState",void 0);_.W([_.q(),_.X("design:type",String)],ek.prototype,"businessEmail",void 0);
_.W([_.q(),_.X("design:type",String)],ek.prototype,"businessEmailErrorMessage",void 0);_.W([_.wg("metadata"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ek.prototype,"businessEmailMetadataChanged",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ek.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],ek);
_.B(ek,"ytd-about-channel-renderer",function(){if(eUp!==void 0)return eUp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return eUp=v},{mode:1});var hUZ;var Zn=function(){return _.z.apply(this,arguments)||this};
_.f(Zn,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Zn.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Zn);
_.B(Zn,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(hUZ!==void 0)return hUZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hUZ=v},{mode:1});var wQV;var PF=function(){return _.z.apply(this,arguments)||this};
_.f(PF,_.z);PF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],PF.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],PF.prototype,"aligment",void 0);_.W([_.J({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],PF);
_.B(PF,"ytd-channel-list-sub-menu-renderer",function(){if(wQV!==void 0)return wQV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return wQV=
v},{mode:1});var AzA;var dv=function(){return _.z.apply(this,arguments)||this};
_.f(dv,_.z);dv.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dv.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],dv);
_.B(dv,"ytd-channel-sub-menu-renderer",function(){if(AzA!==void 0)return AzA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return AzA=v},{mode:1});var kFR;var TQQ;var hb=function(){var v=_.z.apply(this,arguments)||this;v.isCompact=!1;return v};
_.f(hb,_.z);_.hr.Object.defineProperties(hb.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((Q=_.y((v=this.data)==null?void 0:v.endpoint,_.FJ))==null?void 0:Q.target)==="TARGET_NEW_WINDOW"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],hb.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hb.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hb.prototype,"isCompact",void 0);_.W([_.O("isCompact"),_.X("design:type",Number),_.X("design:paramtypes",[])],hb.prototype,"thumbnailWidth",null);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],hb.prototype,"openNewWindow",null);_.W([_.J({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],hb);
_.B(hb,"ytd-media-lockup-renderer",function(){if(TQQ!==void 0)return TQQ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return TQQ=v},{mode:1});var YDN;var wv=function(){return _.z.apply(this,arguments)||this};
_.f(wv,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],wv.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wv.prototype,"data",void 0);_.W([_.J({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],wv);
_.B(wv,"ytd-structured-description-channel-lockup-renderer",function(){if(YDN!==void 0)return YDN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return YDN=v},{mode:1});var yzq;var Ab=function(){var v=_.z.apply(this,arguments)||this;v.isCompact=!1;v.collectionsStackColor=_.Y("modernize_structured_description_playlist_lockups_v2");return v};
_.f(Ab,_.z);Ab.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:_.Y("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.hr.Object.defineProperties(Ab.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b,F;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(v=this.data)==null?void 0:(Q=v.thumbnail)==null?void 0:Q.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(V=this.data)==null?void 0:(E=V.thumbnail)==null?void 0:E.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(b=this.data)==null?void 0:(F=b.thumbnail)==null?
void 0:F.vibrantColorPalette:void 0}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ab.prototype,"componentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ab.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ab.prototype,"showSidePanelThumbnailOverlay",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ab.prototype,"isCompact",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ab.prototype,"collectionsStackColor",void 0);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ab.prototype,"twoLineTitle",null);_.W([_.O("data","collectionsStackColor"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ab.prototype,"collectionStack",null);
_.W([_.J({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ab);
_.B(Ab,"ytd-structured-description-playlist-lockup-renderer",function(){if(yzq!==void 0)return yzq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return yzq=v},{mode:1});var czx;var kR=function(){return _.z.apply(this,arguments)||this};
_.f(kR,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],kR.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kR.prototype,"data",void 0);_.W([_.J({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],kR);
_.B(kR,"ytd-structured-description-video-lockup-renderer",function(){if(czx!==void 0)return czx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return czx=v},{mode:2});var T8=function(){return _.z.apply(this,arguments)||this};
_.f(T8,_.z);
T8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],T8.prototype,"data",void 0);_.W([_.J({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],T8);
_.B(T8,"ytd-compact-infocard-renderer",function(){if(kFR!==void 0)return kFR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return kFR=v},{mode:1});var fBp;var YR=function(){return _.z.apply(this,arguments)||this};
_.f(YR,_.z);YR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.hr.Object.defineProperties(YR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],YR.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],YR.prototype,"ytdReduxBehavior",void 0);_.W([_.q({selector:_.OP}),_.X("design:type",Object)],YR.prototype,"isGridViewEnabled",void 0);
_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],YR.prototype,"watchFeedBigThumbs",null);_.W([_.O("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"168"}),_.X("design:type",String),_.X("design:paramtypes",[])],YR.prototype,"thumbnailWidth",null);_.W([_.O("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"94"}),_.X("design:type",String),_.X("design:paramtypes",[])],YR.prototype,"customThumbnailSize",null);
_.W([_.q(),_.X("design:type",Object)],YR.prototype,"data",void 0);_.W([_.J({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],YR);
_.B(YR,"ytd-compact-playlist-renderer",function(){if(fBp!==void 0)return fBp;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fBp=v},{mode:1});var GFN;var yc=function(){var v=_.z.apply(this,arguments)||this;v.roundedContainer=!0;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return v};
_.f(yc,_.z);_.K=yc.prototype;_.K.attached=function(){this.requestElementsPerRow()};
_.K.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"}}}};
_.K.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.K.computeViewStyle=function(v){return v.style?v.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.K.onUpdateElementsPerRowAction=function(v){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&v===1};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
yc.prototype.dataChanged=yc.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],yc.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],yc.prototype,"actionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],yc.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],yc.prototype,"hideThumbnail",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.X("design:type",String)],yc.prototype,"viewStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],yc.prototype,"roundedContainer",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],yc.prototype,"dataChanged",null);_.W([_.J({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],yc);
_.B(yc,"ytd-compact-promoted-item-renderer",function(){if(GFN!==void 0)return GFN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return GFN=v},{mode:1});var CsN;var cF=function(){return _.z.apply(this,arguments)||this};
_.f(cF,_.z);cF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
cF.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
cF.prototype.onYtNavigate=function(v,Q){var V=this;if(Q.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",Q)){var E=this.get("watchEndpoint.videoId",Q.endpoint),b=_.Un(this.hostElement,"yt-get-current-video-id-action")[0];_.Y("kevlar_mix_handle_first_endpoint_different")&&E&&b&&E!==b||(v.stopPropagation(),_.rS().getPlayerPromise().then(function(F){if(F.getPlayerState()===0&&V.data.secondaryNavigationEndpoint)var t=V.data.secondaryNavigationEndpoint;else{t=
Object.assign({},Q.endpoint);var p=_.y(t.commandMetadata,_.Kt);p&&(F=Math.floor(F.getCurrentTime()),p.url=_.Li(p.url,{t:F}),!_.Y("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(p=_.y(t,_.sn)))&&(p.startTimeSeconds=F)}_.Hj(V.hostElement,"yt-navigate",{endpoint:t})}))}};
_.hr.Object.defineProperties(cF.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b,F;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(Q=v.thumbnail)==null?void 0:Q.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(E=V.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(b=this.data)==null?void 0:(F=b.thumbnail)==null?void 0:F.darkColorPalette,experimentEnabled:!0}}}});
cF.prototype.onYtNavigate=cF.prototype.onYtNavigate;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],cF.prototype,"ytEndpointBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],cF.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.p1),_.X("design:type",Object)],cF.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],cF.prototype,"ytdReduxBehavior",void 0);_.W([_.q({selector:_.OP}),_.X("design:type",Object)],cF.prototype,"isGridViewEnabled",void 0);_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],cF.prototype,"watchFeedBigThumbs",null);
_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",String),_.X("design:paramtypes",[])],cF.prototype,"thumbnailWidth",null);_.W([_.q(),_.X("design:type",Object)],cF.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],cF.prototype,"collectionStack",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],cF.prototype,"onYtNavigate",null);
_.W([_.J({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],cF);
_.B(cF,"ytd-compact-radio-renderer",function(){if(CsN!==void 0)return CsN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return CsN=v},{mode:1});var MGA;var fl=function(){return _.z.apply(this,arguments)||this};
_.f(fl,_.z);fl.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
fl.prototype.computeRendererStyle=function(v){return v.style?v.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.W([_.q(),_.X("design:type",Object)],fl.prototype,"data",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fl.prototype,"rendererBehavior",void 0);_.W([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.X("design:type",String)],fl.prototype,"rendererStyle",void 0);_.W([_.J({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],fl);
_.B(fl,"ytd-compact-text-promo-renderer",function(){if(MGA!==void 0)return MGA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return MGA=v},{mode:1});var OGx;var G8=function(){var v=_.z.apply(this,arguments)||this;v.isShortsStyle=!1;return v};
_.f(G8,_.z);_.K=G8.prototype;_.K.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"}}}};
_.K.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Hj(this.hostElement,"yt-disable-lockup-interaction"):_.Hj(this.hostElement,"yt-enable-lockup-interaction"))};
_.K.isMetaBlockEmpty=function(v){return!v||!v.longBylineText&&!v.shortBylineText&&!v.shortViewCountText&&!v.viewCountText};
_.K.computeHasOneLineTitle=function(v){return this.forceOneLineTitle||!(v==null||!v.buttons)};
_.K.computeDisableInteraction=function(){var v;return!((v=this.data)==null?0:v.navigationEndpoint)};
_.K.hasSingularTopStandaloneBadge=function(){var v;return!((v=this.data)==null||!v.topStandaloneBadge)};
_.hr.Object.defineProperties(G8.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var v;return this.hasSingularTopStandaloneBadge()?[(v=this.data)==null?void 0:v.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var v;return this.shouldShowTopBadges?((v=this.data)==null?void 0:v.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
G8.prototype.disableInteractionChanged=G8.prototype.disableInteractionChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],G8.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],G8.prototype,"ytdLockupBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],G8.prototype,"ytdReduxBehavior",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.X("design:type",Boolean)],G8.prototype,"metaBlockEmpty",void 0);_.W([_.q({selector:_.OP}),_.X("design:type",Object)],G8.prototype,"isGridViewEnabled",void 0);_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],G8.prototype,"watchFeedBigThumbs",null);
_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",String),_.X("design:paramtypes",[])],G8.prototype,"thumbnailWidth",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],G8.prototype,"isShortsStyle",void 0);_.W([_.q(),_.X("design:type",Object)],G8.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.X("design:type",Boolean)],G8.prototype,"hasOneLineTitle",void 0);
_.W([_.q(),_.X("design:type",Boolean)],G8.prototype,"hideThumbnail",void 0);_.W([_.q(),_.X("design:type",Boolean)],G8.prototype,"forceOneLineTitle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.X("design:type",Boolean)],G8.prototype,"disableInteraction",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],G8.prototype,"musicMetadataVideoLockup",void 0);
_.W([_.ph("disableInteraction"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],G8.prototype,"disableInteractionChanged",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],G8.prototype,"shouldShowTopBadges",null);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],G8.prototype,"topBadges",null);
_.W([_.O("shouldShowTopBadges","data"),_.X("design:type",Array),_.X("design:paramtypes",[])],G8.prototype,"inlineMetadataBadges",null);_.W([_.O("shouldShowTopBadges"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],G8.prototype,"shouldShowBadgesBelowMetadata",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],G8.prototype,"compactTitleClass",null);_.W([_.J({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],G8);
_.B(G8,"ytd-compact-video-renderer",function(){if(OGx!==void 0)return OGx;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return OGx=v},{mode:_.mV("kevlar_poly_si_batch_j067")?1:2});var DBZ;_.yZ("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Cl=function(){return _.z.apply(this,arguments)||this};
_.f(Cl,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cl.prototype,"data",void 0);_.W([_.J({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Cl);
_.B(Cl,"ytd-counterfactual-renderer",function(){if(DBZ!==void 0)return DBZ;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return DBZ=v},{mode:1});var RUS;var Me=function(){var v=_.z.apply(this,arguments)||this;v.hidden=!1;return v};
_.f(Me,_.z);Me.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.ht().resolve(_.At).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Me.prototype.computeHidden=function(v){return!!v};
_.hr.Object.defineProperties(Me.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Me.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.X("design:type",Object)],Me.prototype,"hidden",void 0);_.W([_.O("data.label"),_.X("design:type",String),_.X("design:paramtypes",[])],Me.prototype,"label",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Me.prototype,"value",null);
_.W([_.J({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Me);
_.B(Me,"ytd-dropdown-item-renderer",function(){if(RUS!==void 0)return RUS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return RUS=v},{mode:1});var nER;var lBV;var OT=function(){return _.z.apply(this,arguments)||this};
_.f(OT,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OT.prototype,"data",void 0);_.W([_.q({computed:"getSimpleString(data.label)"}),_.X("design:type",String)],OT.prototype,"label",void 0);_.W([_.J({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],OT);
_.B(OT,"ytd-navigation-dropdown-item-renderer",function(){if(lBV!==void 0)return lBV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return lBV=v},{mode:1});var Dn=function(){var v=_.z.apply(this,arguments)||this;v.disabled=!1;v.value="";v.noLabelFloat=!1;v.noUnderline=!1;v.usePrimaryColor=!1;v.hasBackground=!1;v.verticalAlign="top";v.autosize=!1;v.minAutosizeWidth=100;v.autosizeFont="14px Roboto";return v};
_.f(Dn,_.z);_.K=Dn.prototype;_.K.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"}}}};
_.K.open=function(){this.inputEl.open()};
_.K.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.K.dataChanged=function(){this.reset()};
_.K.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("value-changed",this.value))};
_.K.stopPropagation=function(v){v.stopPropagation()};
_.K.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var v=this.canvas.getContext("2d");v&&(v.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(v.measureText(this.inputEl.value).width)+24)+"px")}};
_.K.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var v=0,Q=this.data.entries.length;v<Q;v++){var V=this.data.entries[v],E;for(E in V)if(V.hasOwnProperty(E)){var b=V[E];if("isSelected"in b&&b.isSelected)return"stringValue"in b?b.stringValue||"":"int32Value"in b?b.int32Value||0:0}}return null};
_.K.updateValueFromBinding=function(v){this.value=v.detail.value};
_.hr.Object.defineProperties(Dn.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var v=0,Q=this.data.entries.length;v<Q;v++){var V=this.data.entries[v],E;for(E in V)if(V.hasOwnProperty(E)){var b=V[E];if("isSelected"in b&&b.isSelected&&"label"in b)return this.ytRendererBehavior.getSimpleString(b.label)}}return null}}});
Dn.prototype.autoSizeLabel=Dn.prototype.autoSizeLabel;Dn.prototype.stopPropagation=Dn.prototype.stopPropagation;Dn.prototype.valueChangedForBinding=Dn.prototype.valueChangedForBinding;Dn.prototype.dataChanged=Dn.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Dn.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Dn.prototype,"disabled",void 0);_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"value",void 0);_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"noLabelFloat",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Dn.prototype,"noUnderline",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Dn.prototype,"theme",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Dn.prototype,"usePrimaryColor",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Dn.prototype,"hasBackground",void 0);_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"verticalAlign",void 0);_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"autosize",void 0);_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"minAutosizeWidth",void 0);_.W([_.q(),_.X("design:type",Object)],Dn.prototype,"autosizeFont",void 0);
_.W([_.Z7("#entries"),_.X("design:type",Object)],Dn.prototype,"entries",void 0);_.W([_.Z7("#input"),_.X("design:type",Object)],Dn.prototype,"inputEl",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Dn.prototype,"dataChanged",null);_.W([_.wg("value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Dn.prototype,"valueChangedForBinding",null);
_.W([_.tM("iron-overlay-opened"),_.tM("iron-overlay-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Dn.prototype,"stopPropagation",null);_.W([_.tM("iron-select"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Dn.prototype,"autoSizeLabel",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Dn.prototype,"label",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Dn);
_.B(Dn,"ytd-dropdown-renderer",function(){if(nER!==void 0)return nER;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return nER=v},{mode:1});var qDA;var RR=function(){var v=_.z.apply(this,arguments)||this;v.isConstrainedList=!1;return v};
_.f(RR,_.z);RR.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"}}}};
RR.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
RR.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
RR.prototype.computeViewAllHidden=function(v,Q){return v||!Q.viewAllEndpoint};
RR.prototype.fillRestIfNoShowMore=RR.prototype.fillRestIfNoShowMore;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],RR.prototype,"ytLazyListBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],RR.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],RR.prototype,"isConstrainedList",void 0);_.W([_.wg("data","canShowMore"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],RR.prototype,"fillRestIfNoShowMore",null);_.W([_.J({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],RR);
_.B(RR,"ytd-expanded-shelf-contents-renderer",function(){if(qDA!==void 0)return qDA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return qDA=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var SDA;var nl=function(){return _.z.apply(this,arguments)||this};
_.f(nl,_.z);nl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nl.prototype,"data",void 0);_.W([_.J({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],nl);
_.B(nl,"ytd-feed-channel-filter-header-renderer",function(){if(SDA!==void 0)return SDA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return SDA=v},{mode:1});var zUa;var JzN;var NQS;var lo=function(){return _.z.apply(this,arguments)||this};
_.f(lo,_.z);_.K=lo.prototype;_.K.onClick=function(v){var Q,V=(Q=this.data)==null?void 0:Q.sectionEndpoint;!_.j$(_.uK(v),this.hostElement,["A".toString()])&&V&&_.Hj(this.hostElement,"yt-navigate",{endpoint:V})};
_.K.computeHasSectionEndpoint=function(v){return(v==null?void 0:v.sectionEndpoint)!==void 0};
_.K.computeShowHeaderAsLink=function(v){return(v==null?void 0:v.header)!==void 0&&(v==null?void 0:v.sectionEndpoint)!==void 0};
_.K.computeShowSubheaderAsLink=function(v){return(v==null?void 0:v.subheader)!==void 0&&(v==null?void 0:v.sectionEndpoint)!==void 0&&(v==null?void 0:v.header)===void 0};
_.K.getHeaderAsLinkClass=function(v){var Q=[],V;(v==null?0:(V=v.headerIcon)==null?0:V.iconType)&&Q.push("header-link-active");return Q.join(" ")};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lo.prototype,"data",void 0);
_.W([_.q({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],lo.prototype,"hasSectionEndpoint",void 0);_.W([_.q({computed:"computeShowHeaderAsLink(data)"}),_.X("design:type",Boolean)],lo.prototype,"showHeaderAsLink",void 0);_.W([_.q({computed:"computeShowSubheaderAsLink(data)"}),_.X("design:type",Boolean)],lo.prototype,"showSubheaderAsLink",void 0);_.W([_.J({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],lo);
_.B(lo,"ytd-medical-panel-section-renderer",function(){if(NQS!==void 0)return NQS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return NQS=v},{mode:1});var qe=function(){var v=_.z.apply(this,arguments)||this;v.isExpanded=!1;v.roundedContainer=!0;v.skipRoundingTop=!1;v.toggleExpandableSection=function(){v.isExpanded=!v.isExpanded};
return v};
_.f(qe,_.z);
qe.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]]"}}}}}};
qe.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
qe.prototype.dataChanged=qe.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qe.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],qe.prototype,"isExpanded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qe.prototype,"roundedContainer",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qe.prototype,"skipRoundingTop",void 0);_.W([_.q(),_.X("design:type",Object)],qe.prototype,"toggleExpandableSection",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qe.prototype,"dataChanged",null);_.W([_.J({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],qe);
_.B(qe,"ytd-medical-panel-content-renderer",function(){if(JzN!==void 0)return JzN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return JzN=v},{mode:1});_.yZ("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Sk=function(){var v=_.z.apply(this,arguments)||this;v.roundedContainer=!0;v.extractOverlay=!1;v.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");v.hasTitle=!1;v.linkIcon="OPEN_IN_NEW";v.isDismissed=!1;return v};
_.f(Sk,_.z);Sk.prototype.onOverlayConditionsChange=function(){var v=_.m9(this.hostElement).querySelector("ytd-info-panel-content-renderer");v&&(v.set("extractOverlay",this.extractOverlay),v.set("roundedContainer",this.roundedContainer))};
Sk.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Sk.prototype.computeHasTitle=function(v){return!(v==null||!v.title)};
Sk.prototype.onClick=function(v){var Q,V=(Q=this.data)==null?void 0:Q.headerEndpoint;!_.j$(_.uK(v),this.hostElement,["BUTTON".toString()])&&V&&this.ytComponentBehavior.resolveCommand(V)};
_.hr.Object.defineProperties(Sk.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.disableBottomDivider)||!((Q=this.data)==null?0:Q.title)}}});
Sk.prototype.onOverlayConditionsChange=Sk.prototype.onOverlayConditionsChange;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Sk.prototype,"ytdReduxBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Sk.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Sk.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Sk.prototype,"extractOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Sk.prototype,"amsterdamEnabled",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.X("design:type",Object)],Sk.prototype,"hasTitle",void 0);
_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.background"),_.X("design:type",Object),_.X("design:paramtypes",[])],Sk.prototype,"background",null);_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.titleStyle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Sk.prototype,"titleStyle",null);
_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.O("data.titleStyle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Sk.prototype,"showLinkIcon",null);_.W([_.q(),_.X("design:type",String)],Sk.prototype,"linkIcon",void 0);_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Sk.prototype,"hideDivider",null);
_.W([_.q({selectorArgs:["data.dismissStateEntityKey"],selector:function(v,Q){v=_.Fg(v.entities,"dismissState",Q);return(v==null?void 0:v.isDismissed)||(v==null?void 0:v.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(v==null?void 0:v.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.X("design:type",Object)],Sk.prototype,"isDismissed",void 0);_.W([_.ph("roundedContainer","extractOverlay"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Sk.prototype,"onOverlayConditionsChange",null);_.W([_.J({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Sk);
_.B(Sk,"ytd-info-panel-container-renderer",function(){if(zUa!==void 0)return zUa;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return zUa=v},{mode:1});var xBa;_.yZ("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var z8=function(){return _.z.apply(this,arguments)||this};
_.f(z8,_.z);z8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
z8.prototype.computeStyle=function(v){return v?v:""};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],z8.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.X("design:type",String)],z8.prototype,"titleStyle",void 0);
_.W([_.J({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],z8);
_.Hn()(z8,"ytd-item-section-header-renderer",function(){if(xBa===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);xBa=v}v=xBa;return v},{allowedProps:["data"],
mode:1});var BQR;var gER,sQQ=function(){return gER!==void 0?gER:gER=document.createElement("template")};
document.head.appendChild(sQQ().content);var ucN;_.Jb=new _.KB("VOTING_ANIMATION_CONTROLLER_TOKEN");var WWV=_.x(function(v){var Q=v.data;var V=_.Ze("div"),E=_.Ze("div");v=_.L(_.Ge("VOTE_STATUS_NONE",void 0,"YPH5mf"));var b=v.next().value,F=v.next().value,t=_.p4(A0o,function(){var k;return(k=Q())==null?void 0:k.entityKey}),p=_.Y("web_enable_voting_animation")||_.Y("enable_music_web_cairo_voting_animation");
_.jg(function(){var k;((k=Q().initialState)==null?0:k.status)&&F(Q().initialState.status)});
var Z=function(){var k,T,c=(T=(k=Q().initialState)==null?void 0:k.votes)!=null?T:0,C;k=(C=Q().initialState)==null?void 0:C.status;return k==="VOTE_STATUS_UPVOTED"?c-1:k==="VOTE_STATUS_DOWNVOTED"?c+1:c},d=function(){return b()==="VOTE_STATUS_UPVOTED"?Z()+1:b()==="VOTE_STATUS_DOWNVOTED"?Z()-1:Z()},w=function(k){var T=k?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
F(T);var c=d(),C=_.ht().resolve(_.d$(_.Jb)),R=t();R&&(k&&(R==null?0:R.upvoteDefaultButtonOnTap)?_.nx(R.upvoteDefaultButtonOnTap,{form:{element:V.value},disableClickTracking:!0}):(R==null?0:R.upvoteToggledButtonOnTap)&&_.nx(R.upvoteToggledButtonOnTap,{form:{element:V.value},disableClickTracking:!0}));var l;k=(l=R==null?void 0:R.enableOptimisticReordering)!=null?l:Q().enableOptimisticReordering;p&&C&&Q().itemId&&k&&jQq(C,Q().itemId,c,T)},A=function(k){var T=k?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
F(T);var c=d(),C=_.ht().resolve(_.d$(_.Jb)),R=t();R&&(k&&(R==null?0:R.downvoteDefaultButtonOnTap)?_.nx(R.downvoteDefaultButtonOnTap,{form:{element:E.value},disableClickTracking:!0}):(R==null?0:R.downvoteToggledButtonOnTap)&&_.nx(R.downvoteToggledButtonOnTap,{form:{element:E.value},disableClickTracking:!0}));var l;k=(l=R==null?void 0:R.enableOptimisticReordering)!=null?l:Q().enableOptimisticReordering;p&&C&&Q().itemId&&k&&jQq(C,Q().itemId,c,T)};
v={};v=_.QZ("ytVotingViewModelVoteCount",(v.ytVotingViewModelVoteCountDisabled=function(){return Q().isDisabled},v));
return _.P("voting-view-model",{class:"ytVotingViewModelHost"},_.P("div",{el:V},_.P(_.Pw,{data:function(){var k=_.y(Q().upvoteButton,_.Zq);return{toggleButtonViewModel:Object.assign({},k,{isToggled:b()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(k){return _.P(_.a5,{data:k.data,
onToggle:w})}})),_.P("div",{class:v},function(){var k,T,c;
return b()==="VOTE_STATUS_UPVOTED"?(k=Q().initialState)==null?void 0:k.compactVotesUpvoted:b()==="VOTE_STATUS_DOWNVOTED"?(T=Q().initialState)==null?void 0:T.compactVotesDownvoted:(c=Q().initialState)==null?void 0:c.compactVotes}),_.P("div",{el:E},_.P(_.Pw,{data:function(){var k=_.y(Q().downvoteButton,_.Zq);
return{toggleButtonViewModel:Object.assign({},k,{isToggled:b()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(k){return _.P(_.a5,{data:k.data,
onToggle:A})}})))},"bd");_.ad(_.x(function(v){var Q=v.data;return _.P("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.P("div",{class:_.QZ("ytEngagementBarViewModelEngagementBarWrapper",v.className)},_.P(_.Pw,{data:function(){return Q().actions}},{votingViewModel:WWV})))},"cd"),"engagement-bar-view-model",{props:{data:_.pJ,
className:_.pJ}});var Ne=function(){var v=_.z.apply(this,arguments)||this;v.playlistVotingAnimationEnabled=_.Y("web_enable_voting_animation");v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.downloadState="DOWNLOAD_STATE_UNKNOWN";v.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";v.offlineVideoPolicyExpirationTimestamp=0;return v};
_.f(Ne,_.z);_.K=Ne.prototype;_.K.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"}}}};
_.K.canReorderChanged=function(){this.persistentDragHandle=_.Y("kevlar_playlist_drag_handles")&&this.canReorder};
_.K.onDrag=function(){if(this.thumbnail){var v=_.m9(this.thumbnail).querySelector("yt-image");v&&(v.shouldRenderLazy=!1)}};
_.K.onMenuOverlayChanged=function(v,Q){this.menuOpened=Q};
_.K.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.K.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.K.onContentsTap=function(v){var Q,V=(Q=this.data)==null?void 0:Q.serviceEndpoints;if(V&&V.length===1&&_.y(V[0],kkB)&&!_.j$(_.uK(v),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(V[0]);else{var E;(Q=(E=this.data)==null?void 0:E.navigationEndpoint)&&_.Y("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?oES(_.ht().resolve(_.lJ),Q):(_.u9().playlistSuggestionsShelfActivation=
!0,_.XQx(_.ht().resolve(_.lJ),Q)):Q&&!_.j$(_.uK(v),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.Y("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Hj(this.hostElement,"yt-navigate",{endpoint:Q}):this.ytComponentBehavior.resolveCommand(Q))}};
_.K.computeStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeThumbnailWidth=function(v){return v==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.K.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=z4B(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))}};
_.K.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.K.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.K.dataChanged=function(){if(this.data){var v,Q,V,E=((v=this.downloadRenderData)==null?void 0:v.badges)&&((Q=this.downloadRenderData)==null?void 0:Q.badges)!==((V=this.data)==null?void 0:V.badges),b,F,t;v=((b=this.downloadRenderData)==null?void 0:b.thumbnailOverlays)&&((F=this.downloadRenderData)==null?void 0:F.thumbnailOverlays)!==((t=this.data)==null?void 0:t.thumbnailOverlays);(!this.downloadRenderData||E||v)&&this.downloadStateChanged()}};
_.K.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var v,Q,V=(v=this.data.menu)==null?void 0:(Q=v.menuRenderer)==null?void 0:Q.items;if(V)for(v=_.L(V),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,V=void 0,_.y((V=Q.menuServiceItemRenderer)==null?void 0:V.serviceEndpoint,_.Vd)){var E=V=void 0,b=void 0;Q=(V=Q)==null?void 0:(E=V.menuServiceItemRenderer)==null?void 0:(b=E.serviceEndpoint)==null?void 0:b.playlistEditEndpoint;b=E=void 0;if(V=(E=Q)==null?void 0:(b=E.actions)==null?void 0:
b[0])E=void 0,V.setVideoId=(E=this.data)==null?void 0:E.setVideoId;b=E=V=void 0;if(Q=(V=Q)==null?void 0:(E=V.clientActions)==null?void 0:(b=E[0])==null?void 0:b.playlistRemoveVideosAction)V=void 0,Q.setVideoIds=[(V=this.data)==null?void 0:V.setVideoId]}}};
_.hr.Object.defineProperties(Ne.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Ne.prototype.setVideoIdChanged=Ne.prototype.setVideoIdChanged;Ne.prototype.dataChanged=Ne.prototype.dataChanged;Ne.prototype.downloadStateChanged=Ne.prototype.downloadStateChanged;Ne.prototype.onMenuOverlayChanged=Ne.prototype.onMenuOverlayChanged;Ne.prototype.canReorderChanged=Ne.prototype.canReorderChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Ne.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],Ne.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],Ne.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ne.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ne.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ne.prototype,"canReorder",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ne.prototype,"menuOpened",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ne.prototype,"handleIsHovered",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ne.prototype,"persistentDragHandle",void 0);_.W([_.q(),_.X("design:type",Object)],Ne.prototype,"downloadRenderData",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],Ne.prototype,"styleType",void 0);_.W([_.q({computed:"computeThumbnailWidth(data.style)"}),_.X("design:type",Number)],Ne.prototype,"thumbnailWidth",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Ne.prototype,"isDownloads",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ne.prototype,"playlistVotingAnimationEnabled",void 0);
_.W([_.q({selector:l3,selectorArgs:["data.videoId"]}),_.X("design:type",Object)],Ne.prototype,"downloadProgress",void 0);_.W([_.q(),_.X("design:type",Number)],Ne.prototype,"relativeDateReference",void 0);_.W([_.q({selector:_.RF,selectorArgs:["data.videoId"]}),_.X("design:type",Object)],Ne.prototype,"transferState",void 0);_.W([_.q({selector:QKb,selectorArgs:["data.videoId"]}),_.X("design:type",Object)],Ne.prototype,"downloadState",void 0);
_.W([_.q({selector:gcE,selectorArgs:["data.videoId"]}),_.X("design:type",Object)],Ne.prototype,"offlinePolicyAction",void 0);_.W([_.q({selector:s5Z,selectorArgs:["data.videoId"]}),_.X("design:type",Object)],Ne.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.W([_.q({selector:j5m,selectorArgs:["data.videoId"]}),_.X("design:type",Object)],Ne.prototype,"entityInfo",void 0);_.W([_.q({selector:_.MS}),_.X("design:type",Boolean)],Ne.prototype,"miniplayerIsActive",void 0);
_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],Ne.prototype,"playlistVideoId",null);_.W([_.Z7("#thumbnail"),_.X("design:type",Object)],Ne.prototype,"thumbnail",void 0);_.W([_.wg("canReorder"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ne.prototype,"canReorderChanged",null);
_.W([_.tM("yt-menu-overlay-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Boolean]),_.X("design:returntype")],Ne.prototype,"onMenuOverlayChanged",null);_.W([_.wg("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ne.prototype,"downloadStateChanged",null);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ne.prototype,"dataChanged",null);_.W([_.wg("data.setVideoId"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ne.prototype,"setVideoIdChanged",null);_.W([_.J({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Ne);
_.B(Ne,"ytd-playlist-video-renderer",function(){if(ucN!==void 0)return ucN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);v.content.insertBefore(sQQ().content.cloneNode(!0),v.content.firstChild);return ucN=v},{mode:1});var aBA;var xR=function(){return _.z.apply(this,arguments)||this};
_.f(xR,_.z);_.W([_.q(),_.X("design:type",Object)],xR.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xR.prototype,"rendererBehavior",void 0);_.W([_.J({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],xR);
_.B(xR,"ytd-premium-browse-footer-renderer",function(){if(aBA!==void 0)return aBA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return aBA=v},{mode:1});var rzR;var BF=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return v};
_.f(BF,_.z);_.K=BF.prototype;_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.handleDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.computeHeaderLogoThumbnail=function(v,Q){if(v)return Q?v.darkLogo:v.lightLogo};
_.K.computeHeaderLogoHeight=function(v,Q){var V,E,b;return(v=(V=this.computeHeaderLogoThumbnail(v,Q))==null?void 0:(E=V.thumbnails)==null?void 0:(b=E[0])==null?void 0:b.height)&&v%31===0?"31":"24"};
_.K.computeHeaderLogoMarginBottom=function(v,Q){return this.computeHeaderLogoHeight(v,Q)==="24"?"0":"-7"};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],BF.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],BF.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],BF.prototype,"isDarkTheme",void 0);_.W([_.q({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.X("design:type",Object)],BF.prototype,"themeLogo",void 0);
_.W([_.q({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.X("design:type",String)],BF.prototype,"logoHeight",void 0);_.W([_.q({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.X("design:type",String)],BF.prototype,"logoMarginBottom",void 0);_.W([_.J({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],BF);
_.B(BF,"ytd-primetime-promo-header-renderer",function(){if(rzR!==void 0)return rzR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return rzR=v},{mode:1});var $BS;_.gv=_.x(function(v){var Q=v.className;var V=v.data;var E=v.isOverlay;var b=v.maxLinesOverride;var F=v.useMediumText;var t=function(){return V().alwaysShowTruncationText},p=function(){return V().truncationText},Z=function(){return F!==void 0&&F()?"medium":"small"},d=function(){return E!==void 0&&E()?"overlay":"default"},w=function(){var c,C;
return(C=(c=_.y(V().rendererContext,_.ds))==null?void 0:c.label)!=null?C:""};
v=_.L(_.Ge(!1,void 0,"llBUm"));var A=v.next().value,k=v.next().value;v=_.EP(function(){V().expandOnTap&&k(!A());return!1});
var T={};return _.P("yt-description-preview-view-model",{el:_.ud(_.C4(function(){return V().rendererContext})),
class:_.QZ("ytDescriptionPreviewViewModelHost",Q,(T.ytDescriptionPreviewViewModelClickable=function(){var c;return!((c=_.y(V().rendererContext,_.MJ))==null||!c.onTap)},T.ytDescriptionPreviewViewModelIsOverlay=E,T)),
"on:click":v},_.P(_.h,{cond:function(){return V().description},
then:function(c){return _.P(_.h,{cond:A,then:function(){var C={};return _.P("div",{class:_.QZ("ytDescriptionPreviewViewModelDescription",(C.ytDescriptionPreviewViewModelDescriptionMediumText=F,C))},_.P(_.tD,{text:c}))},
else:function(){return _.P(HmA,{text:c,alwaysShowTruncationText:t,truncationText:p,maxLines:function(){var C;return(C=b==null?void 0:b())!=null?C:V().maxLines},
textStyle:d,accessibilityLabel:w,textSize:Z})}})}}))},"dd");
_.gv.idomCompat=!0;var HGZ=_.x(function(v){var Q=_.EP(function(b){var F;(F=v.onClick)==null||F.call(v,b)}),V={},E={};
return _.P("yt-shelf-header-layout",{class:_.QZ("yt-shelf-header-layout",(V["yt-shelf-header-layout--disable-horizontal-padding"]=v.disableHorizontalPadding,V["yt-shelf-header-layout--disable-vertical-padding"]=v.disableVerticalPadding,V["yt-shelf-header-layout--responsive"]=v.useResponsiveLayout,V["yt-shelf-header-layout--narrow"]=function(){var b,F;return((b=v.useResponsiveLayout)==null?void 0:b.call(v))&&((F=v.forceSmallLayout)==null?void 0:F.call(v))},V["yt-shelf-header-layout--is-overlay"]=v.isOverlay,
V["yt-shelf-header-layout--tappable"]=v.isInteractive,V["yt-shelf-header-layout--optional-medium-layout-padding"]=v.useUpdatedPadding,V)),
"on:click":Q,tabindex:function(){var b;return((b=v.isInteractive)==null?0:b.call(v))?0:void 0}},_.P("div",{class:"yt-shelf-header-layout__header-row"},_.P(_.h,{cond:v.leadingIcon,
then:function(b){return _.P("div",{class:"yt-shelf-header-layout__leading-icon"},_.P(_.L_,{icon:b}))},
else:function(){return _.P(_.h,{cond:v.hasLeadingImage,then:function(){var b,F={};return _.P("div",{class:_.QZ("yt-shelf-header-layout__leading-image",(F["yt-shelf-header-layout__leading-image--circular-image"]=v.circularImage,F))},(b=v.leadingImage)==null?void 0:b.call(v))}})}}),_.P("div",{class:"yt-shelf-header-layout__label-container"},_.P(_.h,{cond:v.hasSuperlabel,
then:function(){var b;return _.P("div",{class:"yt-shelf-header-layout__superlabel"},(b=v.superlabel)==null?void 0:b.call(v))}}),_.P("div",{class:"yt-shelf-header-layout__title-row"},_.P(IBZ,{text:v.title,
className:_.QZ("yt-shelf-header-layout__title",(E["yt-shelf-header-layout__title--small-title"]=v.forceSmallLayout,E)),tagLevel:v.tagLevel}),_.P(_.h,{cond:v.hasDetail,then:function(){var b;return _.P("div",{class:"yt-shelf-header-layout__detail"},(b=v.detail)==null?void 0:b.call(v))}})),_.P(_.h,{cond:v.hasSublabel,
then:function(){var b;return _.P("div",{class:"yt-shelf-header-layout__sublabel"},(b=v.sublabel)==null?void 0:b.call(v))}})),_.P(_.h,{cond:v.hasTrailingActions,
then:function(){var b;return _.P("div",{class:"yt-shelf-header-layout__trailing-actions"},(b=v.trailingActions)==null?void 0:b.call(v))}})),_.P(_.h,{cond:v.hasBottomAccessory,
then:function(){var b;return _.P("div",{class:"yt-shelf-header-layout__bottom-accessory"},(b=v.bottomAccessory)==null?void 0:b.call(v))}}))},"ed");
HGZ.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var IBZ=_.x(function(v){var Q=v.text;var V=v.className;var E=v.tagLevel;return _.P(_.BU,null,_.P(_.J1,{when:function(){return(E==null?void 0:E())===0}},function(){return _.P("h2",{class:V},Q())}),_.P(_.J1,{when:function(){return(E==null?void 0:E())===1}},function(){return _.P("h3",{class:V},Q())}),_.P(_.J1,{when:function(){return(E==null?void 0:E())===2}},function(){return _.P("h4",{class:V},Q())}),_.P(_.NP,null,function(){return _.P("h2",{class:V},Q())}))},"fd");var vBa,mBq,UBq;_.sT=_.x(function(v){var Q=v.className;var V=v.data;var E=v.disableHorizontalPadding;var b=v.disableVerticalPadding;var F=v.forceSmallLayout;var t=v.useResponsiveLayout;var p=v.isOverlay;v=v.useUpdatedPadding;return _.P("yt-section-header-view-model",{class:_.QZ("ytSectionHeaderViewModelHost",Q),style:_.iP({"background-color":function(){return tx(V().backgroundColor)?_.CF(tx(V().backgroundColor)):void 0}})},_.P(HGZ,{hasDetail:!1,
title:function(){return _.P(_.tD,{text:function(){return V().headline}})},
hasTitle:!0,sublabel:function(){return _.P(mBq,{data:V})},
hasSublabel:function(){return!!V().sublabel||!!V().bottomBadge},
superlabel:function(){return _.P(UBq,{data:V})},
hasSuperlabel:function(){return!!V().superlabel||!!V().topBadge},
leadingImage:function(){return _.P(vBa,{leadingAccessory:function(){return V().leadingAccessory}})},
hasLeadingImage:function(){return!!V().leadingAccessory},
trailingActions:function(){return _.P(_.Pw,{data:function(){return V().trailingActions}},{flexibleActionsViewModel:_.Vq})},
hasTrailingActions:function(){return!!V().trailingActions},
disableHorizontalPadding:function(){return(E==null?void 0:E())||V().disableHorizontalPadding},
disableVerticalPadding:b,forceSmallLayout:F,useResponsiveLayout:t,isOverlay:p,isInteractive:function(){return!!_.f4(V().rendererContext)},
onClick:function(Z){if(_.Gw(V().rendererContext)){var d=_.f4(V().rendererContext);d&&_.Oo(d,{form:{element:Z.target,event:Z}})}},
bottomAccessory:function(){return _.P(_.Pw,{data:function(){return V().bottomAccessory}},{descriptionPreviewViewModel:function(Z){return _.P(_.gv,{data:Z.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!V().bottomAccessory},
useUpdatedPadding:v}))},"gd");
vBa=_.x(function(v){var Q=v.leadingAccessory;return _.P(_.w7,null,_.P(_.h,{cond:function(){var V;return(V=Q().image)!=null?V:_.SC(Q().themedImage)},
then:function(V){return _.P(_.gE,{data:V,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.P(_.h,{cond:function(){return _.y(Q().avatar,_.Ou)},
then:function(V){return _.P(_.QO,{data:V})}}))},"hd");
mBq=_.x(function(v){var Q=v.data;return _.P(_.w7,null,_.P(_.h,{cond:function(){return _.y(Q().bottomBadge,LOp)},
then:function(V){var E={};return _.P(_.YO,{data:V,class:_.QZ((E.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!Q().sublabel},E))})}}),_.P(_.h,{cond:function(){return Q().sublabel},
then:function(V){return _.P(_.tD,{text:V})}}))},"id");
UBq=_.x(function(v){var Q=v.data;return _.P(_.w7,null,_.P(_.h,{cond:function(){return _.y(Q().topBadge,LOp)},
then:function(V){var E={};return _.P(_.YO,{data:V,class:_.QZ((E.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!Q().superlabel},E))})}}),_.P(_.h,{cond:function(){return Q().superlabel},
then:function(V){return _.P(_.tD,{text:V})}}))},"jd");_.ad(_.sT,"yt-section-header-view-model",{props:{data:_.pJ,className:_.pJ,disableHorizontalPadding:_.pJ,disableVerticalPadding:_.pJ,forceSmallLayout:_.pJ,useResponsiveLayout:_.pJ,isOverlay:_.pJ,useUpdatedPadding:_.pJ}});_.yZ("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var uo=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return v};
_.f(uo,_.z);_.K=uo.prototype;_.K.attached=function(){this.requestElementsPerRow()};
_.K.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"}}}};
_.K.onDataChange=function(){var v=this;_.PE(this,function(){v.updateItemVisibility()})};
_.K.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v,this.updateItemVisibility())};
_.K.updateItemVisibility=function(){var v=this;this.data&&this.data.panels&&_.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(Q,V){Q.hidden=V>v.elementsPerRow-1})};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
uo.prototype.onDataChange=uo.prototype.onDataChange;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],uo.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],uo.prototype,"actionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],uo.prototype,"data",void 0);_.W([_.q({value:3}),_.X("design:type",Number)],uo.prototype,"elementsPerRow",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uo.prototype,"onDataChange",null);_.W([_.J({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],uo);
_.B(uo,"ytd-primetime-promo-renderer",function(){if($BS!==void 0)return $BS;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return $BS=v},{mode:1});var QUN;var jk=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return v};
_.f(jk,_.z);jk.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
jk.prototype.handleButtonRefreshAction=function(v){if(v=_.y(v,R_Q))this.set("data.button",v.membershipButton),this.notifyPath("data.button")};
_.hr.Object.defineProperties(jk.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.avatars)==null?void 0:Q.slice(0,8))||[]}}});
_.W([_.q(),_.X("design:type",Object)],jk.prototype,"data",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jk.prototype,"rendererBehavior",void 0);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],jk.prototype,"avatars",null);
_.W([_.J({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],jk);
_.B(jk,"ytd-recognition-shelf-renderer",function(){if(QUN!==void 0)return QUN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return QUN=v},{mode:1});var VoA;var EBN;var WF=function(){var v=_.z.apply(this,arguments)||this;v.modernButtons=_.Y("web_modern_buttons");return v};
_.f(WF,_.z);_.K=WF.prototype;
_.K.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]]"}}}}}};
_.K.dataChanged=function(){this.collapsed=!0};
_.K.computeVisibleItems=function(v,Q){return v!==void 0&&v.items?Q?v.items.slice(0,this.data.collapsedItemCount):v.items:[]};
_.K.computeHideShowMore=function(v,Q,V){return v>=Q||!V};
_.K.computeHideShowAll=function(v,Q,V){return!(v&&Q)||V};
_.K.onMoreClick=function(){this.collapsed=!1};
_.hr.Object.defineProperties(WF.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Y("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.y9("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Y("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
WF.prototype.dataChanged=WF.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WF.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],WF.prototype,"isSearch",void 0);
_.W([_.q({computed:"computeVisibleItems(data,collapsed)"}),_.X("design:type",Array)],WF.prototype,"visibleItems",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],WF.prototype,"collapsed",void 0);_.W([_.q({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.X("design:type",Boolean)],WF.prototype,"hideShowMore",void 0);
_.W([_.q({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.X("design:type",Boolean)],WF.prototype,"hideShowAll",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],WF.prototype,"modernButtons",void 0);_.W([_.O("isSearch"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],WF.prototype,"typographyBump",null);
_.W([_.O("isSearch"),_.X("design:type",Object),_.X("design:paramtypes",[])],WF.prototype,"lockupExperiments",null);_.W([_.O("isSearch"),_.X("design:type",String),_.X("design:paramtypes",[])],WF.prototype,"thumbnailWidth",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],WF.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],WF);
_.B(WF,"ytd-vertical-list-renderer",function(){if(EBN!==void 0)return EBN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return EBN=v},{mode:1});var b8q=_.s$(["#"]);_.yZ("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var oR=function(){var v=_.z.apply(this,arguments)||this;v.isConstrainedList=!1;return v};
_.f(oR,_.z);_.K=oR.prototype;
_.K.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"}}}};
_.K.computeThumbnailStyle=function(v){return v||""};
_.K.computePlaceAnnotationUnderTitle=function(){var v;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((v=this.data)==null?void 0:v.thumbnailStyle)||"")};
_.K.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v)||_.Lkh(b8q)};
_.K.computeIsPromoShelf=function(v){var Q;return(v=v==null?void 0:(Q=v[0])==null?void 0:Q.metadataBadgeRenderer)?v.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.K.computePlaceBadgeBesideTitle=function(v){var Q;return(v==null?0:(Q=v[0])==null?0:Q.metadataBadgeRenderer)?!this.computeIsPromoShelf(v):!1};
_.K.computeMenuIcon=function(v){return this.computeIsPromoShelf(v)?"yt-icons:more_vert":"yt-icons:more"};
_.K.onDataChange=function(){var v,Q;((v=this.data)==null?0:(Q=v.content)==null?0:Q.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.K.onLockupRequested=function(v){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&v.detail&&v.detail.videoIds){for(var Q=this.data.content.gridRenderer.items,V=new Set,E=_.L(v.detail.videoIds),b=E.next();!b.done;b=E.next())V.add(b.value);v.detail.returnValue=Q.filter(function(F){return F.gridVideoRenderer&&F.gridVideoRenderer.videoId&&V.has(F.gridVideoRenderer.videoId)}).map(function(F){return F.gridVideoRenderer})}};
_.K.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
oR.prototype.onLockupRequested=oR.prototype.onLockupRequested;oR.prototype.onDataChange=oR.prototype.onDataChange;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],oR.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],oR.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],oR.prototype,"ironResizableBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oR.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],oR.prototype,"isSearch",void 0);_.W([_.q(),_.X("design:type",Object)],oR.prototype,"isConstrainedList",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("kevlar_fluid_dismiss")}}),
_.X("design:type",Boolean)],oR.prototype,"enableFluidDismiss",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.X("design:type",String)],oR.prototype,"thumbnailStyle",void 0);_.W([_.q({computed:"computeMenuIcon(data.badges)"}),_.X("design:type",String)],oR.prototype,"menuIcon",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.X("design:type",Boolean)],oR.prototype,"featuredPromo",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],oR.prototype,"onDataChange",null);_.W([_.tM("yt-lockup-requested"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],oR.prototype,"onLockupRequested",null);_.W([_.J({is:"ytd-shelf-renderer",disableElementRegistration:!0})],oR);
_.B(oR,"ytd-shelf-renderer",function(){if(VoA!==void 0)return VoA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return VoA=v},{mode:1});var FDq;var X8=function(){return _.z.apply(this,arguments)||this};
_.f(X8,_.z);X8.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.hr.Object.defineProperties(X8.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],X8.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],X8.prototype,"isPlaylist",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],X8.prototype,"isClipList",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],X8.prototype,"isPlaylistPageWithFilters",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],X8.prototype,"hasTitle",null);_.W([_.q(),_.O("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.X("design:type",Object),_.X("design:paramtypes",[])],X8.prototype,"isRightAligned",null);
_.W([_.J({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],X8);
_.B(X8,"ytd-sort-filter-header-renderer",function(){if(FDq!==void 0)return FDq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FDq=v},{mode:1});var KDX;var aR=function(){var v=_.z.apply(this,arguments)||this;v.enableRightArrowHidden=_.Y("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return v};
_.f(aR,_.z);aR.prototype.attached=function(){var v=this;this.enableRightArrowHidden&&(this.JSC$16618_throttledOnResize=new _.FK(function(){var Q;(Q=v.ytdHorizontalListBehavior)==null||Q.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var Q;
(Q=v.JSC$16618_throttledOnResize)==null||Q.fire()}),this.resizeObserver.observe(this.hostElement))};
aR.prototype.detached=function(){if(this.enableRightArrowHidden){var v;(v=this.resizeObserver)==null||v.disconnect();var Q;(Q=this.JSC$16618_throttledOnResize)==null||Q.dispose()}};
aR.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]]"}}}}}};
aR.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.hr.Object.defineProperties(aR.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.Y("enable_creator_details_shelf_m2")){var v=[],Q;((Q=this.data)==null?0:Q.creatorVideosButton)&&v.push(this.data.creatorVideosButton);var V;((V=this.data)==null?0:V.creatorAboutButton)&&v.push(this.data.creatorAboutButton);Q=_.L(this.data.creatorCustomUrlButtons||[]);for(V=Q.next();!V.done;V=Q.next())v.push(V.value);return v}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.Y("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],aR.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aR.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],aR.prototype,"engagementPanel",void 0);
_.W([_.q(),_.X("design:type",Object)],aR.prototype,"enableRightArrowHidden",void 0);_.W([_.O("enableRightArrowHidden","atEnd"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],aR.prototype,"hideRightArrow",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],aR.prototype,"creatorCustomUrlButtons",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data","creatorCustomUrlButtons"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],aR.prototype,"showCreatorCustomUrlButtons",null);_.W([_.O("showCreatorCustomUrlButtons"),_.X("design:type",Number),_.X("design:paramtypes",[])],aR.prototype,"channelAvatarSize",null);_.W([_.J({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],aR);
_.B(aR,"ytd-video-description-infocards-section-renderer",function(){if(KDX!==void 0)return KDX;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return KDX=v},{mode:_.mV("kevlar_poly_si_batch_j067")?1:2});var i8p;var rv=function(){return _.z.apply(this,arguments)||this};
_.f(rv,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rv.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.infoIcon)"}),_.X("design:type",Object)],rv.prototype,"infoIcon",void 0);_.W([_.J({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],rv);
_.B(rv,"ytd-eom-settings-disclaimer-renderer",function(){if(i8p!==void 0)return i8p;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return i8p=v},{mode:1});var LDN;var $R=function(){return _.z.apply(this,arguments)||this};
_.f($R,_.z);_.hr.Object.defineProperties($R.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.suppressPaddingDisclaimer)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],$R.prototype,"componentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$R.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$R.prototype,"suppressPaddingDisclaimer",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],$R);
_.B($R,"ytd-product-list-header-renderer",function(){if(LDN!==void 0)return LDN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return LDN=v},{mode:1});var toN;var IR=function(){return _.z.apply(this,arguments)||this};
_.f(IR,_.z);IR.prototype.computeThumbnailStyle=function(v){if(v&&(v=_.GA(v)))return"background-color:"+v+";"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IR.prototype,"rendererBehaviors",void 0);_.W([_.q(),_.X("design:type",Object)],IR.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],IR);
_.B(IR,"ytd-hashtag-tile-renderer",function(){if(toN!==void 0)return toN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return toN=v},{mode:1});var pfN;var HF=function(){return _.z.apply(this,arguments)||this};
_.f(HF,_.z);HF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],HF.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],HF);
_.B(HF,"ytd-sponsorships-alert-renderer",function(){if(pfN!==void 0)return pfN;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pfN=v},{mode:1});var eZZ;var mT=function(){return _.z.apply(this,arguments)||this};
_.f(mT,_.z);mT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.hr.Object.defineProperties(mT.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.W([_.M(_.Er),_.X("design:type",Object)],mT.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],mT.prototype,"ytdLockupBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.W([_.q({selector:_.OP}),_.X("design:type",Object)],mT.prototype,"isGridViewEnabled",void 0);
_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],mT.prototype,"watchFeedBigThumbs",null);_.W([_.O("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.X("design:type",String),_.X("design:paramtypes",[])],mT.prototype,"thumbnailWidth",null);_.W([_.q(),_.X("design:type",Object)],mT.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],mT);
_.B(mT,"ytd-compact-movie-renderer",function(){if(eZZ!==void 0)return eZZ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return eZZ=v},{mode:1});var Z8X;var PnX;var dUV=_.r7("HTML_DIR")==="rtl",UT=function(){var v=_.z.apply(this,arguments)||this;v.engagementPanel=!1;v.maxLines=2;v.expandButtonOffset=0;v.showExpandButton=!1;v.isTruncated=!1;v.isExpanded=!1;v.currentSnippetType=2;v.alwaysShowExpandButton=!1;v.JSC$16635_lastWidth=NaN;v.observer=null;v.left=0;v.right=0;v.mid=0;v.longestSnippetLength=0;v.isFinalSnippet=!1;v.isFirstMutation=!1;v.isResetMutation=!1;v.OVERFLOW_THRESHOLD=5;return v};
_.f(UT,_.z);_.K=UT.prototype;_.K.onClick=function(v){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;if((Q=window.getSelection())==null||!Q.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.K.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.K.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.K.updateTextOnSnippetTypeChange=function(){_.Y("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.K.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.K.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Iy(new _.xd("AttributedSnippet is empty when the description is not empty",this.text))};
_.K.mutationCallback=function(){if(this.observer!=null){var v=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var Q=Math.floor(v*this.maxLines/8);this.setSnippetText(this.text,Q);Q!==0||this.attributedTextIsEmpty()||_.Iy(new _.xd("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;v=v*this.maxLines/8;this.left=0;var V;this.right=Math.min(v*2,(V=(Q=this.simpleText)==null?void 0:Q.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)}}};
_.K.mutationObserve=function(v){var Q=this;this.observer||(this.observer=new MutationObserver(function(){Q.mutationCallback()}));
this.observer.observe(v,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.K.attached=function(){var v=this;_.PE(this,function(){v.resize()})};
_.K.isExpandedChanged=function(){_.Hj(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.K.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)};
_.K.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var v="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((dUV?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",v);this.snippetContainer.style.setProperty("mask-image",
v)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(dUV?"right":"left",this.expandButtonOffset+"px")};
_.K.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.K.setSnippetText=function(v,Q){v||(v={});if(_.NQ(v)){var V=z4(v,Q);V.attachmentRuns||V.commandRuns||V.decorationRuns||V.styleRuns||V.alignment||V.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:z4(v,Q),headerRuns:z8Q(Q,this.headerRuns)},this.currentSnippetType=0):_.Iy(new _.xd("Tried to set snippet text when HTML element was null",v)):(this.plainSnippetText.textContent=qQ(v.content||"",Q),this.currentSnippetType=2)}else{a:{V=ktZ(v,Q);if(V.runs){V=_.L(V.runs);for(var E=
V.next();!E.done;E=V.next())if(E=E.value,E.bold||E.deemphasize||E.italics||E.strikethrough||E.textColor||E.navigationEndpoint||_.y(E,fx)){V=!0;break a}}V=!1}V?this.formattedSnippetText?(this.formattedSnippetText.text=ktZ(v,Q),this.currentSnippetType=1):_.Iy(new _.xd("Tried to set snippet text when HTML element was null",v)):(this.plainSnippetText.textContent=qQ(_.j0(v),Q),this.currentSnippetType=2)}};
_.K.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.K.attributedTextIsEmpty=function(){var v=this.text;if(!_.NQ(v))return!0;var Q;return((Q=v.content)==null?void 0:Q.length)===0?!0:!1};
_.K.resize=function(v){if(this.snippetText){if(v===void 0?0:v)this.JSC$16635_lastWidth=NaN;var Q=this.hostElement.offsetWidth;if(Q!==this.JSC$16635_lastWidth&&!this.isExpanded)if(this.JSC$16635_lastWidth=Q,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;v=0;var V,E;Q=Math.min(Q*this.maxLines/8*2,(E=(V=this.simpleText)==null?void 0:V.length)!=null?E:0)-1;for(V=0;v<=Q;)E=Math.floor(v+(Q-v)/2),this.setSnippetText(this.text,E),this.isOverflowing()?Q=E-1:(v=E+1,V=E);this.setSnippetText(this.text,V);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.K.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.K.onExpandClick=function(){var v=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.Y("inline_expander_reset_focus_killswitch")||_.PE(this,function(){var Q;((Q=_.ht().resolve(_.d$(_.Yc)))==null?0:Q.isKeyBoardInUse())&&_.iS(v.hostElement)});
_.Hj(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.K.onCollapseClick=function(){this.collapse();_.Hj(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.K.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.K.computeExpandButtonOffset=function(){var v=this.expandSizer;return v?dUV?v.offsetParent?v.offsetParent.offsetWidth-v.offsetWidth-v.offsetLeft:0:v.offsetLeft:0};
_.hr.Object.defineProperties(UT.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.NQ(this.text)?this.text.content||"":_.j0(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 _.NQ(this.text)?!0:this.text&&_.Y("web_replace_formatted_with_attributed_string")&&KnE(this.text)?(this.text=_.cg(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}}});
UT.prototype.onTextChanged=UT.prototype.onTextChanged;UT.prototype.updateMaskAndExpandButtonOffset=UT.prototype.updateMaskAndExpandButtonOffset;UT.prototype.updateSnippetContainerMaxHeight=UT.prototype.updateSnippetContainerMaxHeight;UT.prototype.isExpandedChanged=UT.prototype.isExpandedChanged;UT.prototype.updateTextOnSnippetTypeChange=UT.prototype.updateTextOnSnippetTypeChange;UT.prototype.updateIsFormattedExpanded=UT.prototype.updateIsFormattedExpanded;UT.prototype.updateIsAttributedExpanded=UT.prototype.updateIsAttributedExpanded;
UT.prototype.onClick=UT.prototype.onClick;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],UT.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UT.prototype,"text",void 0);_.W([_.q(),_.X("design:type",Array)],UT.prototype,"headerRuns",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UT.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Object)],UT.prototype,"maxLines",void 0);
_.W([_.q(),_.X("design:type",String)],UT.prototype,"expandLabel",void 0);_.W([_.q(),_.X("design:type",String)],UT.prototype,"collapseLabel",void 0);_.W([_.q(),_.X("design:type",Object)],UT.prototype,"expandCommand",void 0);_.W([_.q(),_.X("design:type",Object)],UT.prototype,"expandButtonOffset",void 0);_.W([_.O("text"),_.X("design:type",String),_.X("design:paramtypes",[])],UT.prototype,"simpleText",null);
_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],UT.prototype,"onClick",null);_.W([_.O("text","isExpanded"),_.X("design:type",Object),_.X("design:paramtypes",[])],UT.prototype,"expandedText",null);_.W([_.O("headerRuns","isExpanded"),_.X("design:type",Object),_.X("design:paramtypes",[])],UT.prototype,"expandedHeaderRuns",null);
_.W([_.O("text"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],UT.prototype,"hasAttributedStringText",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UT.prototype,"showExpandButton",void 0);_.W([_.O("collapseLabel","isExpanded"),_.X("design:type",Object),_.X("design:paramtypes",[])],UT.prototype,"showCollapseButton",null);_.W([_.q(),_.X("design:type",Object)],UT.prototype,"isTruncated",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UT.prototype,"isExpanded",void 0);_.W([_.q(),_.X("design:type",Boolean)],UT.prototype,"isAttributedExpanded",void 0);_.W([_.ph("isExpanded","hasAttributedStringText"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"updateIsAttributedExpanded",null);_.W([_.q(),_.X("design:type",Boolean)],UT.prototype,"isFormattedExpanded",void 0);
_.W([_.ph("isExpanded","hasAttributedStringText"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"updateIsFormattedExpanded",null);_.W([_.q(),_.X("design:type",Number)],UT.prototype,"currentSnippetType",void 0);_.W([_.O("currentSnippetType"),_.X("design:type",Object),_.X("design:paramtypes",[])],UT.prototype,"useAttributedSnippet",null);
_.W([_.O("currentSnippetType"),_.X("design:type",Object),_.X("design:paramtypes",[])],UT.prototype,"useFormattedSnippet",null);_.W([_.O("currentSnippetType"),_.X("design:type",Object),_.X("design:paramtypes",[])],UT.prototype,"usePlainSnippet",null);_.W([_.q(),_.X("design:type",Object)],UT.prototype,"alwaysShowExpandButton",void 0);_.W([_.ph("currentSnippetType"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"updateTextOnSnippetTypeChange",null);
_.W([_.q(),_.X("design:type",Object)],UT.prototype,"attributedSnippetText",void 0);_.W([_.Z7("#snippet"),_.X("design:type",HTMLElement)],UT.prototype,"snippetContainer",void 0);_.W([_.Z7("#snippet-text"),_.X("design:type",HTMLElement)],UT.prototype,"snippetText",void 0);_.W([_.Z7("#plain-snippet-text"),_.X("design:type",HTMLElement)],UT.prototype,"plainSnippetText",void 0);_.W([_.Z7("#formatted-snippet-text"),_.X("design:type",Object)],UT.prototype,"formattedSnippetText",void 0);
_.W([_.Z7("#attributed-snippet-text"),_.X("design:type",Object)],UT.prototype,"attributedSnippetTextEl",void 0);_.W([_.Z7("#expand"),_.X("design:type",HTMLElement)],UT.prototype,"expandButton",void 0);_.W([_.Z7("#expand-sizer"),_.X("design:type",HTMLElement)],UT.prototype,"expandSizer",void 0);_.W([_.wg("isExpanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"isExpandedChanged",null);
_.W([_.ph("isExpanded","maxLines"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"updateSnippetContainerMaxHeight",null);_.W([_.ph("isTruncated","showExpandButton","expandButtonOffset"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"updateMaskAndExpandButtonOffset",null);
_.W([_.wg("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UT.prototype,"onTextChanged",null);_.W([_.J({is:"ytd-text-inline-expander",disableElementRegistration:!0})],UT);
_.B(UT,"ytd-text-inline-expander",function(){if(PnX===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);PnX=v}v=PnX;return v},{mode:2});var vo=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return v};
_.f(vo,_.z);vo.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
vo.prototype.handleUpdateDescriptionAction=function(v){if(v=_.y(v,_.BqV))if(v.attributedDescription)this.set("data.attributedDescriptionBodyText",v.attributedDescription);else if(v.description){var Q;((Q=this.data)==null?0:Q.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.cg(v.description)):this.set("data.descriptionBodyText",v.description)}};
_.hr.Object.defineProperties(vo.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.attributedDescriptionBodyText)||!((Q=this.data)==null||!Q.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.collapsedLineCount){var Q;return(Q=this.data)==null?void 0:Q.collapsedLineCount}v=_.T_("web_watch_description_collapsed_default_lines",12);if(_.Y("ww_desc_line_page_size_ks"))return v;Q=Math.round(_.Zl().height*_.T_("web_watch_description_screen_height_percentage",.5)/20);return Math.max(Q,v)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return(V=(v=this.data)==null?void 0:v.descriptionBodyText)!=null?V:(Q=this.data)==null?void 0:Q.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.sourceAttributions}}});
vo.prototype.panelContentVisibleChanged=vo.prototype.panelContentVisibleChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],vo.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],vo.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vo.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Boolean)],vo.prototype,"panelContentVisible",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vo.prototype,"engagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vo.prototype,"shortsPanel",void 0);_.W([_.Z7("#inline-expander"),_.X("design:type",Object)],vo.prototype,"inlineExpander",void 0);
_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vo.prototype,"panelContentVisibleChanged",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],vo.prototype,"hasDescriptionText",null);_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],vo.prototype,"collapsedLines",null);
_.W([_.O("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.X("design:type",Object),_.X("design:paramtypes",[])],vo.prototype,"descriptionText",null);_.W([_.O("data","data.headerRuns"),_.X("design:type",Object),_.X("design:paramtypes",[])],vo.prototype,"headerRuns",null);_.W([_.O("data","data.sourceAttributions"),_.X("design:type",Object),_.X("design:paramtypes",[])],vo.prototype,"sourceAttributions",null);
_.W([_.J({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],vo);
_.B(vo,"ytd-expandable-video-description-body-renderer",function(){if(Z8X!==void 0)return Z8X;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Z8X=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var hZV;var wfa=_.x(function(v){var Q=v.data;return _.P("factoid-renderer",{class:"ytwFactoidRendererHost"},_.P("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return Q().accessibilityText}},_.P("span",{class:"ytwFactoidRendererValue"},_.P(_.tD,{text:function(){return Q().value}})),_.P("span",{class:"ytwFactoidRendererLabel"},_.P(_.tD,{text:function(){return Q().label}}))))},"kd");_.ad(wfa,"factoid-renderer",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;return _.P("upload-time-factoid-renderer",null,_.P(_.Pw,{data:function(){return Q().factoid}},{factoidRenderer:wfa}))},"ld"),"upload-time-factoid-renderer",{props:{data:_.Wg}});_.ad(_.x(function(v){var Q=v.data;return _.P("view-count-factoid-renderer",null,_.P(_.Pw,{data:function(){return Q().factoid}},{factoidRenderer:wfa}))},"md"),"view-count-factoid-renderer",{props:{data:_.Wg}});var QH=function(){var v=_.z.apply(this,arguments)||this;v.shortsPanel=!1;v.engagementPanel=!1;v.watchWhileSdp=_.Y("shorts_desktop_watch_while_sdp");return v};
_.f(QH,_.z);QH.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"}}}}};
_.hr.Object.defineProperties(QH.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var v;return(v=this.data)==null?void 0:v.channel}}});
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],QH.prototype,"componentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],QH.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],QH.prototype,"shortsPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],QH.prototype,"engagementPanel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],QH.prototype,"watchWhileSdp",void 0);_.W([_.O("shortsPanel","engagementPanel","data.channel"),_.X("design:type",Object),_.X("design:paramtypes",[])],QH.prototype,"showChannelInfo",null);_.W([_.J({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],QH);
_.B(QH,"ytd-video-description-header-renderer",function(){if(hZV!==void 0)return hZV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hZV=v},{mode:1});var Ap8;var VH=function(){return _.z.apply(this,arguments)||this};
_.f(VH,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],VH.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],VH.prototype,"noPadding",void 0);_.W([_.q(),_.X("design:type",Object)],VH.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],VH);
_.B(VH,"ytd-list-item-view-model",function(){if(Ap8!==void 0)return Ap8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Ap8=v},{mode:1});var kfR;var T6X;var YlR;var ypq;var Ey=function(){var v=_.z.apply(this,arguments)||this;v.adaptiveFullWidth=!1;v.modernButtons=_.Y("web_modern_buttons");v.buttonOverrides={style:"call-to-action",type:"filled"};v.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return v};
_.f(Ey,_.z);Ey.prototype.handleSetTimestamp_=function(v){this.data&&this.data.shortUrl&&(_.m9(this.hostElement).querySelector("#share-url").value=v.isSet?_.XZ(this.data.shortUrl,"t",v.timestamp):this.data.shortUrl)};
Ey.prototype.handleSignalActionCopyShareUrl_=function(v,Q){(_.Y("killswitch_copy_link_target_check")||_.m9(this.hostElement).querySelector("#copy-button")===Q)&&this.copyUrlToClipboard()};
Ey.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.m9(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Ey.prototype.computeStyle_=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ey.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ey.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.X("design:type",String)],Ey.prototype,"rendererStyle",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ey.prototype,"adaptiveFullWidth",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ey.prototype,"modernButtons",void 0);_.W([_.q(),_.X("design:type",Object)],Ey.prototype,"buttonOverrides",void 0);_.W([_.D7({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Ey);
_.B(Ey,"yt-copy-link-renderer",function(){if(ypq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;YlR===void 0&&(YlR=document.createElement("template"));var E=YlR;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ypq=v}v=ypq;return v},{mode:2});_.yZ("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var bQ=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return v};
_.f(bQ,_.z);_.K=bQ.prototype;_.K.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.K.attached=function(){this.keyboardFocused=!1};
_.K.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var v=_.ht().resolve(_.d$(_.Yc));v&&(this.keyboardFocused=v.isKeyBoardInUse())}};
_.K.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.K.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}};
_.K.onChange_=function(){if(this.data){var v=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;v&&this.ytComponentBehavior.resolveCommand(v);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.K.handleUpdateToggleAction_=function(v){(v=_.y(v,VXa))&&this.data&&v.targetId==this.data.targetId&&this.set("data.toggled",v.toggled)};
_.K.toBoolean_=function(v){return!!v};
_.K.reset=function(){};
_.K.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("data-changed",this.data))};
_.K.updateDataToggledFromBinding=function(v){this.set("data.toggled",v.detail.value)};
bQ.prototype.dataChangedForBinding=bQ.prototype.dataChangedForBinding;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],bQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],bQ.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],bQ.prototype,"data",void 0);_.W([_.q({computed:"computeDescription_(data.*)"}),_.X("design:type",Object)],bQ.prototype,"description_",void 0);_.W([_.q({value:function(){return!!_.ht().resolve(_.d$(_.Yc))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.X("design:type",Boolean)],bQ.prototype,"useKeyboardFocused",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],bQ.prototype,"keyboardFocused",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bQ.prototype,"dataChangedForBinding",null);_.W([_.D7({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],bQ);
_.B(bQ,"yt-toggle-form-field-renderer",function(){if(T6X===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;kfR===void 0&&(kfR=document.createElement("template"));var E=kfR;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);T6X=v}v=T6X;return v},{mode:2});var cpZ;var fAZ;var Fo=function(){var v=_.z.apply(this,arguments)||this;v.isDarkTheme=!1;v.isSearch=!1;v.noTopMargin=_.Y("kevlar_watch_no_top_margin");v.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(Fo,_.z);_.K=Fo.prototype;_.K.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}}}}}};
_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.K.dataChanged=function(){var v=this.getSelectedIndex();if(v>0)this.selected=v;else{this.selected=0;var Q,V;(Q=this.ytScrollableChipCloudBehavior)==null||(V=Q.reset)==null||V.call(Q)}};
_.K.getSelectedIndex=function(){var v;if((v=this.data)==null||!v.chips)return-1;v=-1;for(var Q,V=0;V<((Q=this.data)==null?void 0:Q.chips.length);V++){var E=void 0,b=void 0;if((E=this.data)==null?0:(b=E.chips[V].chipCloudChipRenderer)==null?0:b.isSelected){v=V;break}}return v};
_.K.onResize=function(){var v=this.ytScrollableChipCloudBehavior;_.PE(v,v.setContainerWidthDiff);v=this.ytScrollableChipCloudBehavior;_.PE(v,v.setButtonsState)};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.handleRelatedChipCommand=function(v,Q){v=this.JSC$16662_chipsSelector.indexOf(Q);v!==-1&&this.JSC$16662_chipsSelector.selectIndex(v)};
_.K.handleChipCloudChipSelectAction=function(v){v=this.JSC$16662_chipsSelector.indexOf(v);v>-1&&this.JSC$16662_chipsSelector.selectIndex(v)};
_.K.handleChipCloudChipDeselectAction=function(){var v=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16662_chipsSelector&&((v==null?0:v.continuationCommand)?_.vp(this.hostElement,[v]):(v==null?0:v.searchEndpoint)?this.ytComponentBehavior.resolveCommand(v):v&&_.Qk(this.hostElement,[v],this.hostElement),this.JSC$16662_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.K.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
Fo.prototype.onResize=Fo.prototype.onResize;Fo.prototype.dataChanged=Fo.prototype.dataChanged;Fo.prototype.isSearchChanged=Fo.prototype.isSearchChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Fo.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(_.WW),_.X("design:type",Object)],Fo.prototype,"ironResizableBehavior",void 0);_.W([_.M(),_.X("design:type",xk)],Fo.prototype,"ytScrollableChipCloudBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Fo.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Fo.prototype,"data",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Fo.prototype,"selected",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fo.prototype,"isDarkTheme",void 0);_.W([_.q({value:160}),_.X("design:type",Number)],Fo.prototype,"scrollDistance",void 0);_.W([_.q(),_.X("design:type",Object)],Fo.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fo.prototype,"noTopMargin",void 0);_.W([_.Z7("#chips"),_.X("design:type",Object)],Fo.prototype,"JSC$16662_chipsSelector",void 0);
_.W([_.ph("isSearch"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fo.prototype,"isSearchChanged",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fo.prototype,"dataChanged",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fo.prototype,"onResize",null);_.W([_.D7({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Fo);
_.B(Fo,"yt-chip-cloud-renderer",function(){if(fAZ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;cpZ===void 0&&(cpZ=document.createElement("template"));var E=cpZ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);fAZ=v}v=fAZ;return v},{mode:2});var Gfp,CnZ=function(){return Gfp!==void 0?Gfp:Gfp=document.createElement("template")};
document.head.appendChild(CnZ().content);var MoQ;var O8Q=document.head,DUS=O8Q.appendChild,RZa;if(MoQ===void 0){var nBN=document.createElement("template");_.G(nBN,"");nBN.content.insertBefore(CnZ().content.cloneNode(!0),nBN.content.firstChild);MoQ=nBN}RZa=MoQ;DUS.call(O8Q,RZa.content);var lAZ=_.x(function(v){var Q=v.data;return _.P("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.P("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.P("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.P(_.h,{cond:function(){return _.SC(Q().image)},
then:function(V){return _.P("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.P(_.gE,{data:V,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.P("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.P(_.tD,{text:function(){return Q().subtitle}})))),_.P(_.h,{cond:function(){var V;
return(V=Q())==null?void 0:V.hasBottomDivider},
then:function(){return _.P("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"nd");var qla=_.x(function(v){var Q=v.data;return _.P("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.P("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.P(_.Pw,{data:function(){var V;return(V=Q().offerPlanDetailsItem)!=null?V:[]}},{offerPlanDetailsItemViewModel:function(V){return _.P("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.P(lAZ,{data:V.data}))}})),_.P("div",null,_.P(_.h,{cond:function(){return Q().hasBottomDivider},
then:function(){return _.P("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.P("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.P("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.P("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.P("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"od");var SlQ=_.x(function(v){var Q=v.data;v=_.L(_.Ge(!1,void 0,"MrXxy"));var V=v.next().value,E=v.next().value,b=_.EP(function(){E(!V());return!1}),F=function(){var t;
return(t=Q().offerPlanDetailsContainer)!=null?t:[]};
return _.P("lp-complex-offer-card-details-view-model",null,_.P("div",null,_.P(_.h,{cond:function(){return V()},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.P("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":b,"aria-expanded":V},_.P(_.tD,{text:function(){return Q().expandedTitle}})),_.P("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.P(_.Pw,{data:F},{offerPlanDetailsContainerViewModel:function(t){return _.P("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.P(qla,{data:t.data}))}})),_.P("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.P(_.tD,{text:function(){return Q().legalText}})))},
else:function(){return _.P("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":b,"aria-expanded":V},_.P(_.tD,{text:function(){return Q().collapsedTitle}}),_.P("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.P(_.L_,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"pd");var zZ8=_.x(function(v){var Q=v.data;return _.P("lp-complex-offer-card-option-view-model",null,_.P("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.P(_.h,{cond:function(){return Q().topDividerText},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.P("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.P("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.P("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.P(_.tD,{text:function(){return Q().topDividerText}}))))}}),_.P(_.h,{cond:function(){return Q().description},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.P(_.tD,{text:function(){return Q().description}}))}}),_.P(_.h,{cond:function(){return Q().planPricingPrimary},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.P(_.tD,{text:function(){return Q().planPricingPrimary}}))}}),_.P(_.h,{cond:function(){return Q().planPricingSecondary},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.P(_.tD,{text:function(){return Q().planPricingSecondary}}))}}),_.P(_.h,{cond:function(){return Q().primaryButton},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.P(_.Pw,{data:function(){return Q().primaryButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"qd");var Jpp=_.x(function(v){var Q=v.data;var V=function(){var F;return((F=Q())==null?void 0:F.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
v={};var E={},b={};return _.P("ytm-lp-complex-offer-card-view-model",null,_.P("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.P("div",{class:_.QZ((v.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=V,v),"ytmLpComplexOfferCardViewModelCardContainer")},_.P(_.h,{cond:function(){var F;return(F=Q())==null?void 0:F.bannerText},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.P("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.P(_.tD,{text:function(){return Q().bannerText}})))}}),_.P(_.h,{cond:function(){return _.SC(Q().logo)},
then:function(F){var t={};return _.P("div",{class:_.QZ((t.ytmLpComplexOfferCardViewModelLogoAlignLeft=V,t),"ytmLpComplexOfferCardViewModelLogo")},_.P(_.gE,{data:F,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.P("div",{class:_.QZ((E.ytmLpComplexOfferCardViewModelTitleAlignLeft=V,E),"ytmLpComplexOfferCardViewModelTitle")},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.h,{cond:function(){var F;
return(F=Q())==null?void 0:F.subtitle},
then:function(){var F={};return _.P("div",{class:_.QZ((F.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=V,F),"ytmLpComplexOfferCardViewModelSubtitle")},_.P(_.tD,{text:function(){return Q().subtitle}}))}}),_.P(_.h,{cond:function(){return Q().planPricingPrimary},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.P(_.tD,{text:function(){return Q().planPricingPrimary}}))}}),_.P(_.h,{cond:function(){return Q().planPricingSecondary},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.P(_.tD,{text:function(){return Q().planPricingSecondary}}))}}),_.P(_.h,{cond:function(){return Q().purchaseButton},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.P(_.Pw,{data:function(){return Q().purchaseButton}},{buttonViewModel:function(F){return _.P(_.D6,{data:F.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.P(_.h,{cond:function(){var F;
return(F=Q())==null?void 0:F.offerOptions},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.P(_.Pw,{data:function(){return Q().offerOptions}},{lpComplexOfferCardOptionViewModel:zZ8}))}}),_.P("div",{class:_.QZ((b.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=V,b),"ytmLpComplexOfferCardViewModelLegalText")},_.P(_.tD,{text:function(){return Q().legalText}})),_.P(_.h,{cond:function(){var F;
return(F=Q())==null?void 0:F.offerCardDetails},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.P(_.Pw,{data:function(){return Q().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:SlQ}))}}))))},"rd");var N6R=_.x(function(v){var Q=v.data;var V=function(){var t;return((t=Q())==null?void 0:t.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
v={};var E={},b={},F={};return _.P("ytm-lp-complex-offer-card-section-view-model",null,_.P("div",{class:_.QZ("ytmLpComplexOfferCardSectionViewModelHost")},_.P("div",{class:_.QZ((v.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=V,v),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.P("div",{class:_.QZ((E.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=V,E),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.P("h2",{class:_.QZ((b.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
V,b),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.P(_.tD,{text:function(){return Q().title}}))),_.P(_.h,{cond:function(){var t;
return(t=Q())==null?void 0:t.subtitle},
then:function(){var t={},p={};return _.P("div",{class:_.QZ((t.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=V,t),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.P("div",{class:_.QZ((p.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=V,p),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.P(_.tD,{text:function(){return Q().subtitle}})))}}),_.P("div",{class:_.QZ((F.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=V,F),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.P(_.Pw,{data:function(){var t;
return(t=Q().offerPlans)!=null?t:[]}},{lpComplexOfferCardViewModel:function(t){return _.P("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.P(Jpp,{data:t.data}))}})))))},"sd");var xU8=_.x(function(v){return _.P("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.P("div",{class:"ytLpCouponBannerViewModelIcon"},_.P(_.L_,{icon:function(){return"price_tag"}})),_.P("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.P("div",{class:"ytLpCouponBannerViewModelContent"},_.P("div",{class:"ytLpCouponBannerViewModelHeading"},_.P(_.tD,{text:function(){var Q;
return(Q=v.data())==null?void 0:Q.title}})),_.P("div",{class:"ytLpCouponBannerViewModelBody"},_.P(_.tD,{text:function(){var Q;
return(Q=v.data())==null?void 0:Q.subtitle}})))))},"td");
xU8.idomCompat=!0;_.K9=O2Z.getInstance();var B6a;B6a=_.x(function(v){return _.P("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":v.shouldAriaHideContent},_.P("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:v.questionId},_.P(_.tD,{text:v.question})))},"ud");
_.gBV=_.x(function(v){var Q=v.data;var V=v.themeOverride;v=_.L(_.Ge(!1,void 0,"pNli2b"));var E=v.next().value,b=v.next().value;v=_.EP(function(){b(!E());return!1});
var F=function(){return E()?"EXPAND_LESS":"EXPAND_MORE"},t=("faq-container"+_.Be(_.K9)).toString(),p="faq-question-and-answers-section-question"+_.Be(_.K9),Z={},d={};
return _.P("faq-entry-view-model",null,_.P("div",{class:_.QZ("ytLpFaqEntryViewModelHost",(Z.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return V==null?void 0:V().useDarkTheme},Z))},_.P("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":v,role:"button","aria-expanded":E,"aria-labelledby":p.toString(),"tab-index":"0"},_.P(B6a,{question:function(){return Q().question},
questionId:p,shouldAriaHideContent:!0}),_.P(_.h,{cond:function(){return E()!==void 0},
then:function(){return _.P("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.P(_.L_,{icon:F,ariaHidden:!0}),_.P("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.P("div",{class:_.QZ("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(d.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!E()},d))},_.P("div",{id:t},_.P(_.xb,{each:function(){return Q().answers||[]}},function(w){return _.P("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.P(_.tD,
{text:w}))})))))},"vd");
_.gBV.idomCompat=!0;var sUA=_.x(function(v){var Q=v.data;var V=v.themeOverride;v={};return _.P("lp-faq-section-view-model",null,_.P("div",{class:_.QZ("yt-lp-faq-section-view-model",(v["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},v["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},v))},_.P("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.P(_.h,{cond:function(){return Q().header},
then:function(E){return _.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.P(_.tD,{text:E}))}}),_.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.P(_.Pw,{data:function(){return Q().faqs}},{faqEntryViewModel:function(E){return _.P(_.gBV,{data:E.data,
themeOverride:V})}})),_.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.P(_.xb,{each:function(){return Q().footers||[]}},function(E){return _.P(_.tD,{text:E})})),_.P(_.h,{cond:function(){return Q().legal},
then:function(E){return _.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.P(_.tD,{text:E}))}}))))},"wd");
sUA.idomCompat=!0;var ujx=_.x(function(v){var Q=v.data;var V=v.themeOverride;_.jg(function(){var t=Q().gtmId;t&&_.WO(t,_.r7("GL",""))});
var E={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var t,p,Z;return(Z=(t=Q().logo)==null?void 0:(p=t.accessibilityData)==null?void 0:p.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},b=_.ht().resolve(_.d$(_.JR)),F=function(){return b&&b()||(V==null?void 0:V().useDarkTheme)};
return _.P("lp-header-section-view-model",null,_.P("div",{class:function(){var t=Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",p=Q().marginType==="LP_SECTION_MARGIN_TYPE_TOP",Z=V==null?void 0:V().useDarkTheme,d=["lp-header-section-view-model"];t&&d.push("lp-header-section-view-model--ptc-layout-type");p&&d.push("lp-header-section-view-model__lp-header-section-margin");Z&&d.push("lp-header-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.P(_.h,{cond:function(){return Q().logo},
then:function(){return _.P("div",null,_.P(_.h,{cond:F,then:function(){return _.P(_.h,{cond:function(){var t;return(t=Q().logo)==null?void 0:t.imageDark},
then:function(t){return _.P(_.gE,Object.assign({},{data:t},E))}})},
else:function(){return _.P(_.h,{cond:function(){var t;return(t=Q().logo)==null?void 0:t.imageLight},
then:function(t){return _.P(_.gE,Object.assign({},{data:t},E))}})}}))}}),_.P(_.h,{cond:function(){return Q().title},
then:function(t){return _.P("div",{class:"lp-header-section-view-model__lp-header-title"},_.P(_.tD,{text:t}))}}),_.P("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.P(_.h,{cond:function(){return Q().subtitles},
then:function(t){return _.P(_.xb,{each:t},function(p){return _.P("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.P(_.tD,{text:p}))})}})),_.P(_.h,{cond:function(){return Q().additionalInfo},
then:function(t){return _.P("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.P(_.tD,{text:t}))}}),_.P("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.P(_.h,{cond:function(){return Q().primaryButton},
then:function(t){return _.P("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.P(_.Pw,{data:t},{buttonViewModel:_.D6}))}}),_.P(_.h,{cond:function(){return Q().secondaryButton},
then:function(t){return _.P("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.P(_.Pw,{data:t},{buttonViewModel:_.D6}))}})),_.P(_.h,{cond:function(){return Q().otherOffersInfo},
then:function(t){return _.P("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.P(_.tD,{text:t}))}}),_.P("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.P(_.h,{cond:function(){return Q().billingInfo},
then:function(t){return _.P(_.xb,{each:t},function(p){return _.P("div",null,_.P(_.tD,{text:p}))})}}))))},"xd");
ujx.idomCompat=!0;var jUp=_.x(function(v){return _.P("lp-header-upsell-banner-view-model",{class:_.QZ("lpHeaderUpsellBannerViewModelHost",v.className,{})},_.P("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.P(_.L_,{icon:function(){return"CAMPAIGN"}})),_.P("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.P("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.P("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.P("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.P(_.tD,{text:function(){var Q;
return(Q=v.data())==null?void 0:Q.description}})))),_.P(_.Pw,{data:function(){var Q;
return(Q=v.data())==null?void 0:Q.purchaseButton}},{buttonViewModel:function(Q){return _.P(_.D6,{data:Q.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"yd");var WDN=_.x(function(v){var Q=v.data;var V=_.Wn(v.themeOverride,{useDarkTheme:!1});v={};v=_.QZ("ytmLpHeadlineSectionViewModelHost",(v.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return V().useDarkTheme},v));
return _.P("lp-headline-section-view-model",null,_.P("div",{class:v},_.P(_.h,{cond:function(){return Q().title},
then:function(E){return _.P("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.P(_.tD,{text:E}))}}),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(E){return _.P("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.P(_.tD,{text:E}))}})))},"zd");var oBV=_.x(function(v){var Q=v.data;var V=v.themeOverride;var E=_.ht().resolve(_.d$(_.JR)),b=function(){return E&&E()||(V==null?void 0:V().useDarkTheme)},F=function(){var d,w;
var A=b()?(d=Q().textBackgroundImage)==null?void 0:d.imageDark:(w=Q().textBackgroundImage)==null?void 0:w.imageLight;return Es9((A==null?void 0:A.sources)||[])},t=function(){var d,w;
return b()?(d=Q().featureImage)==null?void 0:d.imageDark:(w=Q().featureImage)==null?void 0:w.imageLight},p=function(){return Q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},Z=function(){var d,w;
return b()?(d=Q().logo)==null?void 0:d.imageDark:(w=Q().logo)==null?void 0:w.imageLight};
return _.P("ytm-lp-large-feature-section-view-model",null,_.P("div",{class:function(){var d=Q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",w=Q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",A=(Q().index||0)%2===1,k=V==null?void 0:V().useDarkTheme,T=["yt-lp-large-feature-section-view-model"];d?T.push("yt-lp-large-feature-section-view-model--music-feature-type"):w?T.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):A||T.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
k&&T.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return T.join(" ")}},_.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.P(_.h,{cond:t,
then:function(){return _.P(_.gE,{data:function(){return t()},
alt:function(){var d,w,A;return(A=(d=Q().featureImage)==null?void 0:(w=d.accessibilityData)==null?void 0:w.label)!=null?A:""},
contentMode:p})}})),_.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var d;return((d=F())==null?0:d.url)?"background-image: url("+_.oE(F().url)+");":""}},_.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.P(_.h,{cond:Z,
then:function(){return _.P(_.gE,{data:function(){return Z()},
alt:function(){var d,w,A;return(A=(d=Q().logo)==null?void 0:(w=d.accessibilityData)==null?void 0:w.label)!=null?A:""},
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"})}}),_.P(_.h,{cond:function(){return Q().eyebrowText},
then:function(){return _.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.P(_.tD,{text:function(){return Q().eyebrowText}}))}}),_.P(_.h,{cond:function(){return Q().title},
then:function(){return _.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.P(_.tD,{text:function(){return Q().title}}))}}),_.P(_.h,{cond:function(){return Q().subtitles},
then:function(){return _.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.P(_.xb,{each:function(){return Q().subtitles||[]}},function(d){return _.P(_.tD,{text:d})}))}})))))},"Ad");
oBV.idomCompat=!0;var XfA=_.x(function(v){return _.P("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.P("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.P(_.L_,{icon:function(){var Q;return(Q=v.data())==null?void 0:Q.iconType},
className:function(){var Q;switch((Q=v.data())==null?void 0:Q.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 Q;return((Q=v.data())==null?void 0:Q.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.P("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.P(_.tD,{text:function(){var Q;
return(Q=v.data())==null?void 0:Q.text},
className:function(){var Q;return((Q=v.data())==null?void 0:Q.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Bd");var aAR=_.x(function(v){v=_.o1(v,{config:void 0,themeOverride:void 0});var Q=v.data,V=v.config,E=v.themeOverride;v={};v=_.QZ("ytmLpOfferCardOptionViewModelHost",(v.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var p;return(p=E())==null?void 0:p.useDarkTheme},v));
var b=_.EP(function(){var p,Z;(p=V())==null||(Z=p.handleRadioButtonClick)==null||Z.call(p,Q());return!1}),F=function(){var p;
return(p=V())==null?void 0:p.shouldDisplayRadioButton},t=function(){var p;
return(p=Q().featureListItems)!=null?p:[]};
return _.P("ytm-lp-offer-card-option-view-model",null,_.P("div",{class:v,"on:click":_.EP(function(){if(F()){var p,Z;(p=V())==null||(Z=p.handleRadioButtonClick)==null||Z.call(p,Q())}return!1})},_.P(_.h,{cond:F,
then:function(){return _.P("div",null,_.P("input",{type:"radio","on:click":b,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var p;return!((p=V())==null||!p.isOptionSelected)}}))}}),_.P("div",null,_.P("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.P(_.tD,{text:function(){return Q().eyebrowText}})),_.P("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.P(_.tD,
{text:function(){return Q().subtitle}})),_.P(_.h,{cond:function(){return t().length>0},
then:function(){return _.P("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.P(_.Pw,{data:t},{lpFeatureListItemViewModel:XfA}))}}),_.P("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.P(_.tD,{text:function(){return Q().description}})))))},"Cd");
aAR.idomCompat=!0;var rpZ=_.x(function(v){var Q=v.data;var V=v.themeOverride;v=_.L(_.K_(function(){var F,t=(F=Q().offerOptions)==null?void 0:F[0];return _.y(t,I6N)||{}}));
var E=v.next().value,b=v.next().value;v={};return _.P("ytm-lp-offer-card-view-model",null,_.P("div",{class:_.QZ("ytmLpOfferCardViewModelHost",(v.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(V==null||!V().useDarkTheme)},v))},_.P("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.P(_.h,{cond:function(){return Q().titleIconType},
then:function(){return _.P("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.P(_.L_,{icon:function(){var F;return((F=Q().titleIconType)==null?void 0:F.toString())||""}}))}}),_.P("div",{class:"ytmLpOfferCardViewModelTitleText"},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.Pw,{data:function(){return Q().titleBadge}},{badgeViewModel:function(F){return _.P("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.P(_.YO,{data:F.data}))}})),_.P("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.P(_.Pw,{data:function(){return Q().offerOptions}},{lpOfferCardOptionViewModel:function(F){var t=F.data;
return _.P(_.w7,null,_.P("div",{class:"ytmLpOfferCardViewModelDivider"}),_.P(aAR,{data:t,config:function(){var p;return{shouldDisplayRadioButton:(Q().offerOptions||[]).length>1,isOptionSelected:t().id===((p=E())==null?void 0:p.id),handleRadioButtonClick:function(Z){return void b(Z)}}},
themeOverride:V}))}})),_.P("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.P(_.Pw,{data:function(){var F;
return(F=E())==null?void 0:F.purchaseButtonOverride}},{buttonViewModel:_.D6}))))},"Dd");
rpZ.idomCompat=!0;var $UQ=_.x(function(v){var Q=v.data;var V=v.themeOverride;v={};v=_.QZ("ytmLpOfferCardSectionViewModelHost",(v.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var E;return V==null?void 0:(E=V())==null?void 0:E.useDarkTheme},v));
return _.P("ytm-lp-offer-card-section-view-model",null,_.P("div",{class:v},_.P(_.h,{cond:function(){return Q().title!==void 0},
then:function(){return _.P("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.P("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(){return _.P("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.P(_.tD,{text:function(){return Q().subtitle}}))}}))}}),_.P("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.P(_.Pw,{data:function(){return Q().offerCards}},{lpOfferCardViewModel:function(E){return _.P("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.P(rpZ,{data:E.data,
themeOverride:V}))}})),_.P(_.h,{cond:function(){return Q().footer},
then:function(){return _.P("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.P(_.tD,{text:function(){return Q().footer}}))}})))},"Ed");var IAa=_.x(function(v){var Q=v.data;return _.P("lp-offer-table-cell-content-view-model",null,_.P("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.P(_.BU,null,_.P(_.J1,{when:function(){return Q().title}},function(){return _.P(_.tD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return Q().title}})}),_.P(_.J1,{when:function(){return Q().subTitle}},function(){return _.P(_.tD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return Q().subTitle}})}),_.P(_.J1,{when:function(){return Q().featureDescription}},function(){return _.P(_.tD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return Q().featureDescription}})}),_.P(_.J1,{when:function(){return Q().description}},function(){return _.P(_.tD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return Q().description}})}),_.P(_.J1,{when:function(){return Q().iconType}},function(){return _.P("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.P(_.L_,{icon:function(){return Q().iconType.toString()}}))}),_.P(_.J1,{when:function(){return Q().purchaseButton}},function(){return _.P(_.Pw,{data:function(){return Q().purchaseButton}},{buttonViewModel:function(V){return _.P("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.P(_.D6,
{data:V.data}))}})}),_.P(_.J1,{when:function(){return Q().note}},function(){return _.P(_.tD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return Q().note}})}),_.P(_.J1,{when:function(){return Q().featureDetail}},function(){return _.P(_.tD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return Q().featureDetail}})}),_.P(_.J1,{when:function(){return Q().badge}},function(){return _.P(_.Pw,{data:function(){return Q().badge}},{badgeViewModel:_.YO})}))))},"Fd");
IAa.idomCompat=!0;var H8V=_.x(function(v){var Q=v.data;return _.P("lp-offer-table-cell-view-model",null,_.P("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(Q().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;"}}},_.P(_.Pw,{data:function(){return Q().contents}},{lpOfferTableCellContentViewModel:IAa})))},
"Gd");
H8V.idomCompat=!0;var mUR=_.x(function(v){var Q=v.data;var V=v.lpTableIsFirstRow;var E=v.lpTableIsLastRow;var b=function(){return(V==null?0:V())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},F=function(){return(V==null?0:V())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(E==null?0:E())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.P("ytm-lp-offer-table-row-view-model",null,_.P("div",{class:"ytLpOfferTableRowViewModelHost"},_.P(_.Pw,{data:function(){return Q().rowHeaderCell}},{lpOfferTableCellViewModel:function(t){return _.P("div",{class:b},_.P(H8V,{data:t.data}))}}),_.P(_.Pw,{data:function(){return Q().contentCells}},{lpOfferTableCellViewModel:function(t){return _.P("div",{class:F},_.P(H8V,{data:t.data}))}})))},"Hd");
mUR.idomCompat=!0;var UUq=_.x(function(v){var Q=v.data;var V=v.themeOverride;var E=_.ht().resolve(_.d$(_.JR)),b=function(){return _.y(Q().logo,Av8)||{}};
v={};return _.P("ytm-lp-offer-table-section-view-model",null,_.P("div",{class:"ytLpOfferTableViewModelHost"},_.P(_.h,{cond:function(){var F,t;return E&&E()||(V==null?0:V().useDarkTheme)?(F=b())==null?void 0:F.imageDark:(t=b())==null?void 0:t.imageLight},
then:function(F){return _.P(_.gE,{data:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var t,p,Z;return(Z=(t=b())==null?void 0:(p=t.accessibilityData)==null?void 0:p.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.P(_.tD,{text:function(){return Q().subtitle}})),_.P(_.h,{cond:function(){return Q().disclaimers},
then:function(F){return _.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.P(_.xb,{each:F},function(t){return _.P("div",null,_.P(_.tD,{text:t}))}))}}),_.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.P(_.Pw,{data:function(){return Q().rows}},{lpOfferTableRowViewModel:function(F,t){return _.P(mUR,{data:F.data,
lpTableIsFirstRow:function(){return t()===0},
lpTableIsLastRow:function(){return t()===Q().rows.length-1}})}})),_.P("div",{class:_.QZ((v.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return Q().hasFooterBackground},v))},_.P(_.h,{cond:function(){return Q().footer},
then:function(){return _.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.P(_.tD,{text:function(){return Q().footer}}))}}),_.P(_.h,{cond:function(){return Q().footerTitle},
then:function(){return _.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.P(_.tD,{text:function(){return Q().footerTitle}}))}}),_.P(_.h,{cond:function(){return Q().footerDescription},
then:function(){return _.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.P(_.tD,{text:function(){return Q().footerDescription}}))}}),_.P(_.h,{cond:function(){return Q().footerDescriptions},
then:function(F){return _.P("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.P(_.xb,{each:F},function(t){return _.P("div",null,_.P(_.tD,{text:t}))}))}}))))},"Id");
UUq.idomCompat=!0;var veZ=_.x(function(v){var Q=v.data;var V=v.themeOverride;var E=_.ht().resolve(_.d$(_.JR)),b=function(){var p;return V==null?void 0:(p=V())==null?void 0:p.useDarkTheme},F=function(){var p,Z;
return E&&E()||b()?(p=Q().image)==null?void 0:p.imageDark:(Z=Q().image)==null?void 0:Z.imageLight};
v={};v=_.QZ("ytmLpSmallFeatureSectionViewModelHost",(v.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=b,v));var t=function(){var p,Z,d;return(d=(p=Q().image)==null?void 0:(Z=p.accessibilityData)==null?void 0:Z.label)!=null?d:""};
return _.P("ytm-lp-small-feature-section-view-model",{class:v},_.P(_.h,{cond:function(){return F()&&!bb9},
then:function(){return _.P("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.P(_.gE,{data:function(){return F()},
alt:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.P("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.P("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.P(_.h,{cond:function(){return Q().title},
then:function(p){return _.P(_.tD,{text:p})}})),_.P("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.P(_.tD,{text:function(){return Q().description}}))))},"Jd");
veZ.idomCompat=!0;var QzX=_.x(function(v){var Q=v.data;var V=v.themeOverride;v={};return _.P("ytm-lp-small-feature-section-group-view-model",null,_.P("div",{class:_.QZ("ytmLpSmallFeatureSectionGroupViewModelHost",(v.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(V==null||!V().useDarkTheme)},v))},_.P("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.P(_.Pw,{data:function(){return Q().smallFeatures}},{lpSmallFeatureSectionViewModel:function(E){return _.P("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.P(veZ,{data:E.data,
themeOverride:V}))}}))))},"Kd");
QzX.idomCompat=!0;_.ad(_.x(function(v){var Q=v.data;var V=function(){return Q().forcedTheme==="USER_INTERFACE_THEME_DARK"},E=function(){return Q().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},b=function(){var t="",p,Z;
var d=_.ht().resolve(_.d$(_.JR));d=V()||(d==null?0:d())?(p=Q().themedImageViewModel)==null?void 0:p.imageDark:(Z=Q().themedImageViewModel)==null?void 0:Z.imageLight;(p=Es9((d==null?void 0:d.sources)||[]))&&p.url&&(t=E()?"background-image: linear-gradient(to bottom, transparent, "+(Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.oE(p.url)+");":"background-image: url("+_.oE(p.url)+");");return t},F=function(){return{useDarkTheme:V()}};
v={};return _.P("yt-section-group-view-model",null,_.P("div",{class:_.QZ("yt-lp-section-group-view-model",(v["yt-lp-section-group-view-model--premium-force-dark-mode"]=V,v["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},v))},_.P(_.h,{cond:function(){return b().length},
then:function(){var t={};return _.P("div",{class:_.QZ("yt-lp-section-group-view-model__bg-image",(t["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=E,t)),style:b})}}),_.P("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.P(_.Pw,{data:function(){return Q().sections}},{lpHeaderUpsellBannerViewModel:function(t){return _.P(jUp,{data:t.data})},
lpFaqSectionViewModel:function(t){return _.P(sUA,{data:t.data,themeOverride:F})},
lpHeaderSectionViewModel:function(t){return _.P(ujx,{data:t.data,themeOverride:F})},
lpHeadlineSectionViewModel:function(t){return _.P(WDN,{data:t.data,themeOverride:F})},
lpLargeFeatureSectionViewModel:function(t){return _.P(oBV,{data:t.data,themeOverride:F})},
lpOfferCardSectionViewModel:function(t){return _.P($UQ,{data:t.data,themeOverride:F})},
lpComplexOfferCardSectionViewModel:function(t){return _.P(N6R,{data:t.data})},
lpOfferTableSectionViewModel:function(t){return _.P(UUq,{data:t.data,themeOverride:F})},
lpSmallFeatureSectionGroupViewModel:function(t){return _.P(QzX,{data:t.data,themeOverride:F})},
lpCouponBannerViewModel:function(t){return _.P(xU8,{data:t.data})}}))))},"Ld"),"yt-section-group-view-model",{props:{data:_.pJ}});_.Vax=_.x(function(v){var Q=_.p4(T5o,function(){var t;return(t=v.data())==null?void 0:t.chipBarStateEntityKey}),V=function(){return v.data().disableDeselection},E=_.L(_.K_(function(){var t;
if(((t=Q())==null?void 0:t.selectedIndex)!=void 0)return Q().selectedIndex;var p,Z;t=_.L(((p=v.data())==null?void 0:(Z=p.chips)==null?void 0:Z.entries())||[]);for(p=t.next();!p.done;p=t.next()){p=_.L(p.value);Z=p.next().value;p=p.next().value;var d=void 0;if((d=_.y(p,_.e5))==null?0:d.selected)return Z}return-1})),b=E.next().value,F=E.next().value;
return _.P("chip-bar-view-model",{class:_.QZ("ytChipBarViewModelHost",v.className),role:"tablist"},_.P(_.Pw,{data:function(){return v.data().chips}},{chipViewModel:function(t,p){return _.P("div",{class:"ytChipBarViewModelChipWrapper"},_.P(_.RVA,{data:t.data,
selected:function(){return p()===b()},
callback:function(Z,d){Z=!!d;d=p();F(Z?d:-1);var w,A=(w=v.data())==null?void 0:w.chipBarStateEntityKey;A&&Z&&_.jT(_.dW("chipBarStateEntity",A,{key:A,selectedIndex:d}))},
disableDeselection:v.disableDeselection||V}))}}))},"Md");_.ad(_.Vax,"chip-bar-view-model",{props:{data:_.Wg,className:_.Wg,disableDeselection:_.Wg}});_.EeS=_.x(function(v){var Q=v.data;v={};return _.P("divider-view-model",{class:_.QZ("dividerViewModelHost",(v.dividerViewModelInsetThinPadding=function(){return Q().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},v))},_.P("div",{class:_.QZ("dividerViewModelBaseDivider",function(){return YUo(Q().dividerStyle)})}))},"Nd");
_.EeS.idomCompat=!0;_.ad(_.EeS,"divider-view-model",{props:{data:_.pJ}});var pr=new Map,ei=new Map,fRQ=0,Zv;var RN0=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],qUb={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var bSA,FmA;bSA=function(v){return function(Q){return function(){return(Q==null?void 0:Q())!==void 0?String(Q())+v:void 0}}};
_.iQ=bSA("px");FmA=bSA("s");var KmX=kbE(function(v){return v.targetGroupId}).useUpdatableData;_.LmQ=_.x(function(v){function Q(t3){return function(){var h3=R().numItemsPerGridRow,OB=t3()*h3;h3=OB+h3;var kQ,yo;return(yo=(kQ=E().contents)==null?void 0:kQ.slice(OB,h3))!=null?yo:[]}}
var V=_.o1(v,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),E=V.data,b=V.layoutContainerWidth,F=V.shouldUseOwnContainerSize,t=V.marginSettings,p=V.useUpdatedMargin,Z=QL3(),d=_.L(KmX(function(){var t3,h3;return{targetGroupId:(t3=E().targetingContext)==null?void 0:(h3=t3.targetGroupId)==null?void 0:h3[0]}})).next().value;
V=_.L(_.Ge(!0,void 0,"lKny6d"));var w=V.next().value,A=V.next().value,k=function(){var t3,h3=(t3=_.y(E().showMoreButton,_.pH))==null?void 0:t3.trackingParams;h3&&_.x_(_.tR(),h3);A(!1)},T=function(){var t3,h3=(t3=_.y(E().showLessButton,_.pH))==null?void 0:t3.trackingParams;
h3&&_.x_(_.tR(),h3);A(!0)};
V=_.L(_.PY({canHaveZeroSize:!1}));var c=V.next().value;V=V.next().value;var C=function(){var t3;return(t3=E().contentAspectRatio)!=null?t3:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},R=_.Rr(function(){var t3=F()&&c.width()>0?c.width()||b():b(),h3,OB=(h3=v.data())==null?void 0:h3.responsiveContainerConfiguration;
t3=_.lO({containerWidth:t3,sizing:OB?qJ(OB==null?void 0:OB.responsiveSize):"EXTRA_COMPACT",marginSettings:t(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:t3.maxContainerWidth,numItemsPerGridRow:t3.numItems,contentPadding:F()?t3.margin:t3.contentMargin,itemWidth:t3.itemWidth,itemMargin:t3.gutter/2}},void 0,"XYkF9e"),l=function(){if(E().enableVerticalExpansion){if(w())return S();
var t3,h3,OB=(h3=(t3=E().contents)==null?void 0:t3.length)!=null?h3:0;return Math.ceil(OB/R().numItemsPerGridRow)}return R().numItemsPerGridRow<=2?2:1},S=function(){var t3;
return Math.ceil(((t3=E().minCollapsedItemCount)!=null?t3:1)/R().numItemsPerGridRow)},a=function(){return E().enableVerticalExpansion&&E().showLessButton&&!w()&&l()>S()},g=function(){var t3,h3;
return E().enableVerticalExpansion&&E().showMoreButton&&w()&&((h3=(t3=E().contents)==null?void 0:t3.length)!=null?h3:0)>R().numItemsPerGridRow*S()},u=function(){return!a()},r=function(){return!g()},v9={};
return _.P("grid-shelf-view-model",{class:_.QZ("ytGridShelfViewModelHost",v.className,(v9.ytGridShelfViewModelHostHasBottomButton=function(){return a()||g()},v9.ytGridShelfViewModelHostIsDismissed=function(){var t3,h3=(t3=d())!=null?t3:{};
t3=h3.behavior;var OB=h3.isDismissed,kQ=h3.stamperContextTargetId;h3=h3.stamperIndex;if(!(_.Y("mweb_see_fewer_shorts_group_dismissal")&&OB&&t3&&kQ))return!1;var yo;OB=Z;for(var xQ,lb,ep=((xQ=OB)==null?0:xQ.targetId)?_.or((lb=OB)==null?void 0:lb.targetId):void 0;((yo=OB)==null?0:yo.parent)&&ep!==kQ;)OB=OB.parent,lb=xQ=void 0,ep=((xQ=OB)==null?0:xQ.targetId)?_.or((lb=OB)==null?void 0:lb.targetId):void 0;yo=ep===kQ?OB:void 0;if(!yo)return!1;var JS;kQ=yo==null?void 0:(JS=yo.stamperIndex)==null?void 0:
JS.call(yo);return t3==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||t3==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&kQ!=null&&h3!=null&&kQ>h3},v9.ytGridShelfViewModelHostOptionalMediumLayoutMargin=p,v9)),
el:_.ud(V),style:_.iP({"margin-left":(0,_.iQ)(function(){return R().contentPadding}),
"margin-right":(0,_.iQ)(function(){return R().contentPadding})})},_.P(_.h,{cond:function(){return _.y(E().header,CLZ)},
then:function(t3){return _.P(_.sT,{data:t3,useUpdatedPadding:p,disableHorizontalPadding:!0})}}),_.P("div",null,_.P(_.xb,{each:function(){return Array(l())}},function(t3,h3){return _.P(iSS,{className:v.className,
items:Q(h3),responsiveGridShelfLayout:R,contentAspectRatio:C})})),_.P("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.P(_.Pw,{data:function(){return E().showMoreButton}},{buttonViewModel:function(t3){return _.P("div",{hidden:r},_.P(_.D6,{data:t3.data,
onClick:k}))}}),_.P(_.Pw,{data:function(){return E().showLessButton}},{buttonViewModel:function(t3){return _.P("div",{hidden:u},_.P(_.D6,{data:t3.data,
onClick:T}))}})))},"Pd");
_.LmQ.idomCompat=!0;var iSS=_.x(function(v){var Q=v.items;var V=v.responsiveGridShelfLayout;var E=v.contentAspectRatio;v=v.className;var b=_.Ze("div");c00(b,function(){a:{var t=b.value;for(var p=Q(),Z=[],d=0;d<p.length;d++){var w=_.y(p[d],QKx);if(!w||w==null||!w.inlinePlayerData){t=null;break a}var A=t.children.item(d);if(!A){t=null;break a}Z.push({thumbnailElement:A,videoData:w})}t={gridVideoPreviewData:{gridItems:Z}}}return t});
var F=(0,_.iQ)(function(){return-V().itemMargin});
return _.P("div",{el:b,class:_.QZ("ytGridShelfViewModelGridShelfRow",v),style:_.iP({"margin-left":F,"margin-right":F})},_.P(_.Pw,{data:Q,replacementWrapper:function(t){return _.P(taN,{responsiveGridShelfLayout:V},t)}},{shortsLockupViewModel:function(t){return _.P(taN,{responsiveGridShelfLayout:V},_.P(SUN,{data:t.data,
aspectRatio:function(){return E()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.Y("mweb_enable_one_line_title_on_shorts")?1:_.Y("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(t){return _.P(taN,{responsiveGridShelfLayout:V},_.P(_.Ng,{data:t.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Qd"),taN=_.x(function(v){return _.P("div",{style:_.iP({width:(0,_.iQ)(function(){return v.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+v.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},v.children)},"Rd");
_.LmQ.idomCompat=!0;_.ad(_.LmQ,"grid-shelf-view-model",{props:{data:_.pJ,layoutContainerWidth:_.pJ,shouldUseOwnContainerSize:_.pJ,marginSettings:_.pJ,useUpdatedMargin:_.pJ,className:_.pJ}});_.pza=_.x(function(v){var Q=_.L(_.Ge(!1,void 0,"FVl30c")),V=Q.next().value,E=Q.next().value;Q={};return _.P("yt-alert-banner-view-model",{class:_.QZ("ytAlertBannerViewModelHost",v.className,function(){var b;a:switch((b=v.data())==null?void 0:b.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":b="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":b="ytAlertBannerViewModelWarning";break a;default:b="ytAlertBannerViewModelInformational"}return b},(Q.ytAlertBannerViewModelDismissed=
V,Q.ytAlertBannerViewModelFullbleed=v.fullbleed,Q.ytAlertBannerViewModelNarrow=v.narrow,Q.ytAlertBannerViewModelIsInRichGrid=v.isInRichGrid,Q))},_.P(_.h,{cond:function(){var b;
return!((b=v.data())==null?0:b.hideIcon)},
then:function(){return _.P("div",{class:"ytAlertBannerViewModelIcon"},_.P(_.L_,{icon:function(){return"info_circle"}}))}}),_.P("div",{class:"ytAlertBannerViewModelOuterContainer"},_.P("div",{class:"ytAlertBannerViewModelContainer"},_.P("div",{class:"ytAlertBannerViewModelContent"},_.P("div",{class:"ytAlertBannerViewModelHeading"},_.P(_.tD,{text:function(){var b;
return(b=v.data())==null?void 0:b.heading}})),_.P("div",{class:"ytAlertBannerViewModelBody"},_.P(_.tD,{text:function(){var b;
return(b=v.data())==null?void 0:b.body}})))),_.P(_.Pw,{data:function(){var b;
return(b=v.data())==null?void 0:b.actionButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.P(_.Pw,{data:function(){var b;
return(b=v.data())==null?void 0:b.dismissButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var F;((F=v.data())==null?0:F.disableLocalDismissBehavior)||E(!0)}})}}))},"Sd");_.ad(_.pza,"yt-alert-banner-view-model",{props:{data:_.pJ,fullbleed:_.pJ,narrow:_.pJ,isInRichGrid:_.pJ,className:_.pJ}});var es8;_.ZSq=_.x(function(v){return _.P("basic-content-view-model",{class:_.QZ("ytBasicContentViewModelHost",_.Wn(v.className))},_.P(_.h,{cond:function(){return v.data().headline},
then:function(Q){return _.P("div",{class:"ytBasicContentViewModelHeadline"},_.P(_.tD,{text:Q}))}}),_.P(_.xb,{each:function(){return v.data().paragraphs||[]},
keyBy:"INDEX"},function(Q){return _.P("div",{class:"ytBasicContentViewModelParagraph"},_.P(_.h,{cond:function(){var V=Q();return!!(V.header||V.customHeader||V.headline)},
then:function(){return _.P(es8,{paragraph:Q})}}),_.P(_.h,{cond:function(){return Q().asset||Q().text},
then:function(){return _.P("div",{class:"ytBasicContentViewModelParagraphContent"},_.P(_.h,{cond:function(){return Q().asset},
then:function(V){return _.P("div",{class:"ytBasicContentViewModelParagraphAsset"},_.P(_.Pw,{data:V},{contentPreviewImageViewModel:_.RV}))}}),_.P(_.h,{cond:function(){return Q().text},
then:function(V){return _.P("div",{class:"ytBasicContentViewModelParagraphText"},_.P(_.tD,{text:V}))}}))}}))}))},"Td");
es8=_.x(function(v){var Q=v.paragraph;return _.P(_.w7,null,_.P(_.h,{cond:function(){return Q().headline},
then:function(V){return _.P(_.tD,{text:V,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.P(_.Pw,{data:function(){return Q().header||Q().customHeader}},{sectionHeaderViewModel:function(V){return _.P(_.sT,{data:V.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ud");_.PZa=_.x(function(v){function Q(){var T,c;Z((c=(T=b)==null?void 0:T.isKeyBoardInUse())!=null?c:!1)}
function V(){Z(!1)}
function E(){var T;return p()?(T=v.focusedClassName)==null?void 0:T.call(v):""}
var b=_.ht().resolve(_.d$(_.Yc)),F=_.L(_.Ge(!1,void 0,"SgkTXc")),t=F.next().value;F=F.next().value;var p=t,Z=F,d=function(){var T,c;return((T=v.toggleable)==null?0:T.call(v))?(c=v.toggled)==null?void 0:c.call(v):void 0},w=_.EP(function(T){var c,C=(c=v.command)==null?void 0:c.call(v);
C&&_.ht().resolve(_.At).resolveCommand(C);var R;(R=v.onClick)==null||R.call(v,T)}),A=_.EP(Q),k=_.EP(V);
return _.P(_.h,{cond:function(){var T;if(T=v.command){T=v.command();T=dEQ(T);var c=T.href;T=!(!T.navigatingCommand||!c)}return T},
then:function(){return _.P(_.yL,Object.assign({},{command:v.command,style:v.style,ariaDescribedby:v.ariaDescribedby,ariaHidden:v.ariaHidden,ariaLabel:v.ariaLabel,ariaLabelledby:v.ariaLabelledby,ariaSelected:v.ariaSelected,disabled:v.disabled,dir:v.dir,tabIndex:v.tabIndex,target:v.target,title:v.title,onClick:v.onClick},{className:_.QZ("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",v.className,function(){return E()}),
onFocusin:Q,onFocusout:V,ariaCurrent:function(){var T,c;return(c=(T=v.ariaCurrent)==null?void 0:T.call(v))!=null?c:d()}}),v.children)},
else:function(){return _.P("button",{"on:click":w,"on:focusin":A,"on:focusout":k,class:_.QZ("ytButtonOrAnchorHost","ytButtonOrAnchorButton",v.className,function(){return E()}),
style:v.style,"aria-describedby":v.ariaDescribedby,"aria-hidden":v.ariaHidden,"aria-label":v.ariaLabel,"aria-labelledby":v.ariaLabelledby,"aria-pressed":d,dir:v.dir,disabled:v.disabled,tabindex:v.tabIndex,title:v.title},v.children)}})},"Vd");var d4a=_.x(function(v){v=_.o1(v,{disabled:!1});var Q=v.active,V=v.disabled;v={};v=_.QZ("ytSwitchShapeTrack",(v.ytSwitchShapeTrackActive=function(){return Q()},v.ytSwitchShapeTrackDisabled=function(){return V()},v));
var E={};E=_.QZ("ytSwitchShapeKnob",(E.ytSwitchShapeKnobActive=function(){return Q()},E));
return _.P("switch-shape",{class:"ytSwitchShapeHost"},_.P("div",{class:v}),_.P("div",{class:E}))},"Wd");var hsR=_.x(function(v){var Q=_.o1(v,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),V=Q.data;v=Q.className;var E=Q.handleOnTapEventInParent,b=Q.parentActive,F=Q.onTap;Q=_.L(_.K_(function(){var k;return(k=b())!=null?k:V().switchedOnByDefault||!1}));
var t=Q.next().value,p=Q.next().value,Z=function(){return V().isDisabled},d=_.Ze("button");
Q=_.EP(function(k){return k.key==="Enter"?(k.preventDefault(),d.value.click(),!1):!0});
var w=_.EP(function(k){if(V().handleOnTapEventInParent||E())return!0;if(Z())return!1;if(F)return F(k),!0;J0h(V(),t(),k);p(!t());return!1}),A={};
A=_.QZ("ytSwitchButtonViewModelButton",(A.ytSwitchButtonViewModelTappable=function(){return!Z()},A));
return _.P("switch-button-view-model",{class:_.QZ("ytSwitchButtonViewModelHost",v)},_.P("button",{el:d,class:A,"on:click":w,"on:keydown":Q,"aria-label":function(){return t()?V().a11yLabelSwitchedOn:V().a11yLabelSwitchedOff},
"aria-checked":t,"aria-disabled":Z,role:"switch"},_.P(d4a,{active:t,disabled:Z})))},"Xd");var wzV=_.x(function(v){var Q=v.data;var V=v.isLeading;var E=v.hideSelectionTextChevron;var b=v.isToggled;var F=v.shouldNotFillIcon;var t=function(){if(V())var A=Q().leadingImage;else{var k;A=(k=Q().trailingImage)!=null?k:_.SC(Q().themedTrailingImage)}return A},p=function(){a:switch(Q().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var A="expand_more";
break a;default:A="chevron_right"}return A};
v={};var Z=_.QZ("yt-list-item-view-model__image-container",(v["yt-list-item-view-model__leading"]=V,v["yt-list-item-view-model__trailing"]=function(){return!V()},v)),d=_.QZ("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
v={};var w=_.QZ("yt-list-item-view-model__accessory",(v["yt-list-item-view-model__leading"]=V,v["yt-list-item-view-model__trailing"]=function(){return!V()},v));
return _.P(_.h,{cond:function(){var A=Q(),k=V();return!!(k&&(A.leadingImage||A.leadingAccessory)||!k&&(A.trailingImage||A.trailingButton||A.trailingButtons||A.selectionText||A.themedTrailingImage||A.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.P(_.w7,null,_.P(_.h,{cond:t,then:function(A){return _.P("div",{class:Z,"aria-hidden":"true"},_.P(_.gE,{data:A,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var k=(V()?Q().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":Q().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?V()?B5S(Q().leadingIconAccessorySize):B5S(Q().trailingIconAccessorySize):void 0;return k},
className:d,isToggled:function(){return!(F==null?0:F())&&(b==null?void 0:b())}}))}}),_.P(_.h,{cond:function(){return V()&&Q().leadingAccessory},
then:function(){return _.P("div",{class:Z},_.P(_.Pw,{data:function(){return Q().leadingAccessory}},{avatarViewModel:function(A){return _.P(_.QO,{data:A.data,
avatarButtonCustomClassName:d})},
collectionThumbnailViewModel:function(A){return _.P(DyS,{data:A.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.P(_.h,{cond:function(){return!V()&&Q().trailingButton},
then:function(){return _.P("div",{class:"yt-list-item-view-model__button-container"},_.P(_.Pw,{data:function(){return Q().trailingButton}},{buttonViewModel:function(A){return _.P(_.D6,{data:A.data,
className:w})}}))}}),_.P(_.h,{cond:function(){var A;
return!V()&&((A=Q().trailingButtons)==null?void 0:A.buttons)},
then:function(){return _.P("div",{class:"yt-list-item-view-model__button-container"},_.P(_.Pw,{data:function(){var A;return(A=Q().trailingButtons)==null?void 0:A.buttons}},{buttonViewModel:function(A){return _.P(_.D6,{data:A.data,
className:w})},
accountLinkButtonViewModel:function(A){return _.P(hxR,{data:A.data,className:w})},
switchButtonViewModel:function(A){return _.P(hsR,{data:A.data,className:w})},
subscribeButtonViewModel:function(A){return _.P(_.vI,{data:A.data,isOverlay:!1,animateWidth:!1,className:w})},
toggleButtonViewModel:function(A){return _.P(_.a5,{data:A.data,className:w})}}))}}),_.P(_.h,{cond:function(){return!V()&&!!Q().selectionText},
then:function(){return _.P(_.w7,null,_.P(_.tD,{text:function(){return Q().selectionText},
className:_.QZ("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.P(_.h,{cond:function(){return!(E==null?0:E())},
then:function(){return _.P(_.L_,{icon:p,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.P(_.h,{cond:function(){return!V()&&Q().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.P("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Yd");var AiV=_.x(function(v){var Q=v.data;return _.P(_.h,{cond:function(){return Q().title||Q().subtitle},
then:function(){return _.P("div",{class:"yt-list-item-view-model__text-wrapper"},_.P(_.h,{cond:function(){return Q().title},
then:function(V){return _.P("div",{class:"yt-list-item-view-model__title-wrapper"},_.P(_.tD,{text:V,className:"yt-list-item-view-model__title"}))}}),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(V){return _.P(_.tD,{text:V,className:"yt-list-item-view-model__subtitle"})}}))}})},"Zd");var kN8=_.x(function(v){var Q=v.data;var V=v.hideSelectionTextChevron;var E=v.TrailingAccessory;var b=v.isToggled;var F=v.disabled;var t=v.isSelectItem;var p=v.isCompact;var Z=v.inPopup;var d=v.disableHorizontalPadding;var w=v.isTappableWithoutSelect;var A=v.useButtonOrAnchor;var k=v.onTap;var T=v.shouldNotFillIcon;var c=function(){return _.P(AiV,{data:Q,onTap:k,useButtonOrAnchor:A,isTappableWithoutSelect:w,isToggled:b})};
v={};return _.P("div",{class:_.QZ("yt-list-item-view-model__label",(v["yt-list-item-view-model__container"]=function(){return!(t==null?0:t())},v["yt-list-item-view-model__container--disabled"]=function(){return!!Q().isDisabled||!(F==null||!F())},v["yt-list-item-view-model__container--has-subtitle"]=function(){return!!Q().subtitle},v["yt-list-item-view-model__container--compact"]=p,v["yt-list-item-view-model__container--tappable"]=w,v["yt-list-item-view-model__container--in-popup"]=Z,v["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(d==null?void 0:d())&&!(t==null?0:t())},v))},_.P(wzV,{data:Q,
isLeading:!0,hideSelectionTextChevron:V,isToggled:b,shouldNotFillIcon:T}),_.P(_.h,{cond:function(){return(A==null?void 0:A())&&(w==null?void 0:w())},
then:function(){return _.P(_.PZa,{command:function(){return _.f4(Q().rendererContext)},
onClick:k,className:"yt-list-item-view-model__button-or-anchor",toggleable:b!==void 0,toggled:b},_.P(c,null))},
else:function(){return _.P(c,null)}}),_.P(_.h,{cond:function(){return!!E},
then:function(){return _.P("div",{class:"yt-list-item-view-model__trailing"},E&&_.P(E,null))},
else:function(){return _.P(wzV,{data:Q,isLeading:!1,hideSelectionTextChevron:V,isToggled:b,shouldNotFillIcon:T})}}))},"$d");var Y8a=_.x(function(v){var Q=_.o1(v,{checked:!1});v=Q.name;var V=Q.onChange,E=Q.onClick,b=Q.checked,F=Q.labelRenderable,t=Q.hasLeadingLabel,p=Q.labelClass,Z=Q.isCompact,d=Q.selectElementClass;Q=Q.disableHorizontalPadding;var w="checkbox"+_.Be(_.K9),A=_.EP(function(c){E==null||E(c);return!1}),k=_.EP(function(c){V==null||V(c);
return!1}),T={};
return _.P("checkbox-shape",null,_.P("label",{class:_.QZ("ytCheckboxShapeHost",p,(T.ytCheckboxShapeHostCompact=Z,T.ytCheckboxShapeDisableHorizontalPadding=Q,T))},_.P("input",{class:"ytCheckboxShapeInput",id:w,checked:b,name:v,type:"checkbox","prop:checked":b,"on:change":k,"on:click":A}),_.P(_.h,{cond:function(){return!(t==null?0:t())},
then:function(){return _.P(Tpq,{isLeading:!0,selectElementClass:d})}}),_.P(_.h,{cond:function(){return!!F},
then:function(){return _.P("div",{class:"ytCheckboxShapeLabel"},F==null?void 0:F())}}),_.P(_.h,{cond:t,
then:function(){return _.P(Tpq,{isLeading:!1,selectElementClass:d})}})))},"ae");
Y8a.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Tpq=_.x(function(v){var Q=v.selectElementClass;v={};return _.P("div",{class:_.QZ("ytCheckboxShapeCheckbox",Q,(v.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(Q==null?0:Q())},v)),
"aria-hidden":"true"},_.P(_.L_,{icon:_.Y("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.P(_.L_,{icon:_.Y("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"be");_.L9=_.x(function(v){var Q=v.name;var V=v.onChange;var E=v.onClick;var b=v.checked;var F=v.labelRenderable;var t=v.useCheckIcon;var p=v.hasLeadingLabel;var Z=v.labelClass;var d=v.isCompact;var w=v.selectElementClass;var A=v.ariaLabel;v=v.className;var k="radio"+_.Be(_.K9),T=_.Ze("input"),c=_.EP(function(r){T.value.checked=!(b==null||!b());V==null||V(r);return!1}),C=_.EP(function(r){E==null||E(r);
return!1}),R=_.EP(function(r){_.Y("enable_ios_webview_radio_button_responsiveness")&&(r.preventDefault(),T.value.click())}),l=_.L(_.Ge(!1,void 0,"TcCZlf")),S=l.next().value,a=l.next().value;
l=_.EP(function(){var r;((r=_.ht().resolve(_.d$(_.Yc)))==null?0:r.isKeyBoardInUse())&&a(!0)});
var g=_.EP(function(){a(!1)}),u={};
return _.P("radio-shape",{class:_.QZ("yt-radio-shape",v)},_.P("input",{el:T,class:"yt-radio-shape__input",id:k,"prop:checked":b,name:Q,type:"radio","on:change":c,"on:click":C,"aria-label":A,"on:focusin":l,"on:focusout":g}),_.P("label",{class:_.QZ("yt-radio-shape__label-container",Z,(u["yt-radio-shape--compact"]=d,u["yt-radio-shape__label-container--keyboard-focused"]=S,u)),for:k,"on:click":R},_.P(_.h,{cond:function(){return!(p==null?0:p())},
then:function(){return _.P(yiZ,{checked:b,useCheckIcon:t,isLeading:!0,selectElementClass:w})}}),_.P(_.h,{cond:function(){return!!F},
then:function(){return _.P("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(A==null?0:A())?"true":"false"}},F==null?void 0:F())}}),_.P(_.h,{cond:p,
then:function(){return _.P(yiZ,{checked:b,useCheckIcon:t,isLeading:!1,selectElementClass:w})}})))},"ce");
_.L9.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var yiZ=_.x(function(v){var Q=v.useCheckIcon;var V=v.selectElementClass;v=function(){return(Q==null?0:Q())?"CHECK":_.Y("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var E={};return _.P("div",{class:_.QZ("yt-radio-shape__radio",V,(E["yt-radio-shape__radio--check-icon"]=Q,E["yt-radio-shape__radio--radio-default-style"]=function(){return!(V==null?0:V())},E)),
"aria-hidden":"true"},_.P(_.L_,{icon:v}),_.P(_.L_,{icon:v,active:function(){return!(Q==null?0:Q())}}))},"de");_.to=_.x(function(v){var Q=v.data;var V=v.isMenuItem;var E=v.isCompact;var b=v.onTap;var F=v.trailingAccessory;var t=v.hideSelectionTextChevron;var p=v.disabled;var Z=v.inPopup;var d=v.disableHorizontalPadding;var w=v.isOverlay;var A=v.isToggled;var k=v.ariaLabel;var T=v.ariaPressed;var c=v.shouldNotFillIcon;var C=!_.Y("web_enable_killswitch_for_selectable_list_item_on_tap_fix");v=!_.Y("web_enable_killswitch_for_skip_child_tags");var R=_.Z1(function(JS){return giE(Q(),JS)}),l=function(){return(d==
null?void 0:d())||Q().disableHorizontalPadding},S=function(){return _.Y("enable_web_shorts_captions_language_command")||_.Y("web_shorts_audio_track_picker")||Q().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},a=function(){return S()?Object.assign({},Q(),R().data):Q()},g=_.uzb(function(){return a().rendererContext}),u=function(){return!(a().isSelected===void 0||!a().selectionStyle||a().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},r=function(){return(_.Gw(a().rendererContext)||
b)&&!u()},v9={},t3=_.QZ("yt-list-item-view-model__container",(v9["yt-list-item-view-model__container--tappable"]=function(){return _.Gw(a().rendererContext)||u()},v9["yt-list-item-view-model__container--compact"]=E,v9["yt-list-item-view-model__container--in-popup"]=Z,v9["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(l==null?void 0:l())&&u()},v9)),h3=function(){return a().leadingImage||a().leadingAccessory},OB=_.QZ("yt-list-item-view-model__image-container",function(){return h3()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
v9=_.BdE();var kQ=_.L(_.Ge(!1,void 0,"w9yOLe")),yo=kQ.next().value,xQ=kQ.next().value,lb=function(){return _.P(kN8,{data:a,hideSelectionTextChevron:t,TrailingAccessory:F,isToggled:A,disabled:p,isSelectItem:u,isCompact:E,inPopup:Z,disableHorizontalPadding:l,isTappableWithoutSelect:r,useButtonOrAnchor:ep,onTap:b,shouldNotFillIcon:c})},ep=_.Y("web_button_or_anchor_list_item");
kQ={};return _.P("yt-list-item-view-model",{el:_.ud(_.C4(function(){return a().rendererContext},void 0,void 0,ep?["A".toString(),
"BUTTON".toString()]:[]),s9h(function(JS){var fZ;if(fZ=C)fZ=a().selectionStyle,fZ=fZ==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||fZ==="LIST_ITEM_SELECTION_STYLE_RADIO"||fZ==="LIST_ITEM_SELECTION_STYLE_DEFAULT";fZ||b==null||b(JS)},v?["A".toString(),
"BUTTON".toString()]:[]),mHt(function(){return r==null?void 0:r()},{focusin:function(){var JS;
((JS=_.ht().resolve(_.d$(_.Yc)))==null?0:JS.isKeyBoardInUse())&&xQ(!0)},
focusout:function(){xQ(!1)}})),
class:_.QZ("yt-list-item-view-model",(kQ["yt-list-item-view-model--is-overlay"]=w,kQ["yt-list-item-view-model--keyboard-focused"]=yo,kQ["yt-list-item-view-model--hidden"]=function(){return S()?R().isHidden:!1},kQ)),
role:function(){return(V==null?0:V())?"menuitem":"listitem"},
tabindex:function(){var JS=r();JS=ep?void 0:b||JS?0:void 0;return JS},
"on:keydown":v9,"aria-label":function(){var JS;return(k==null?void 0:k())||((JS=g())==null?void 0:JS.label)},
"aria-pressed":T},_.P(_.h,{cond:u,then:function(){return _.P(_.BU,null,_.P(_.J1,{when:function(){return a().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.P(Y8a,{labelRenderable:lb,
isCompact:E,checked:function(){return a().isSelected},
hasLeadingLabel:function(){return!!h3()},
labelClass:t3,selectElementClass:OB,disableHorizontalPadding:l,onClick:C?b:void 0})}),_.P(_.J1,{when:function(){return a().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.P(_.L9,{labelRenderable:lb,
isCompact:E,checked:function(){return a().isSelected},
hasLeadingLabel:function(){return!!h3()},
labelClass:t3,selectElementClass:OB,onClick:C?b:void 0})}),_.P(_.J1,{when:function(){return a().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.P(_.L9,{labelRenderable:lb,
isCompact:E,checked:function(){return a().isSelected},
hasLeadingLabel:function(){return!!h3()},
labelClass:t3,selectElementClass:OB,useCheckIcon:!0,onClick:C?b:void 0})}),_.P(_.NP,null,lb))},
else:lb}))},"ee");
_.to.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.p9=_.x(function(v){var Q=_.L(_.PY({canHaveZeroSize:!1})),V=Q.next().value;Q=Q.next().value;var E=function(){return vjB(V.width(),v.data().responsiveContainerConfiguration)||$Xt(V.width(),v.data().linearLayoutContainerConfiguration)};
return _.P("yt-linear-layout-view-model",{el:_.ud(Q),class:"ytLinearLayoutViewModelHost"},_.P("div",{class:_.QZ("ytLinearLayoutViewModelContainer",function(){a:switch(v.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var b="ytLinearLayoutViewModelHorizontal";break a;default:b="ytLinearLayoutViewModelVertical"}return b},function(){var b=v.data().linearLayoutContainerConfiguration;
return b?[XtZ(b.flexDirection),aRS(b.justifyContent),r0Q(b.alignItems)].join(" "):""}),
style:function(){var b;var F=((b=E())==null?void 0:b.containerStyles)||{};return _.iP(F)()}},_.P(_.Pw,{data:function(){return v.data().items},
wrapper:function(b,F,t){return _.P("div",{style:function(){var p=t(),Z;if((Z=E())==null)p=void 0;else{var d=Z.itemStyles,w=p===0,A,k;var T=(k=(A=v.data().items)==null?void 0:A.length)!=null?k:0;p=d.call(Z,w,p===T-1)}return _.iP(p||{})()}},b())}},{lockupViewModel:function(b){return _.P(_.Ng,{data:b.data,
containerLayoutConfig:function(){var F;return(F=E())==null?void 0:F.containerLayoutConfig}})},
basicContentViewModel:_.ZSq,linearLayoutViewModel:_.p9,thumbnailViewModel:_.C5,descriptionPreviewViewModel:_.gv,listItemViewModel:_.to,sectionHeaderViewModel:_.sT})))},"fe");_.ad(_.p9,"yt-linear-layout-view-model",{props:{data:_.pJ}});_.ad(_.sa,"chips-shelf-view-model",{props:{data:_.pJ,callback:_.Wg,selectionBehavior:_.pJ,disableChipsScrollAnimation:_.pJ}});_.ad(_.x(function(v){return _.P("yt-comment-filter-context-view-model",{class:_.QZ("ytCommentFilterContextHost",v.className)},_.P(_.tD,{text:function(){return v.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.pJ,
className:_.Wg}});_.cip=_.x(function(v){var Q=v.data;var V=v.onTap;var E=v.onSwitch;var b=v.overrideDisabled;v=v.disableHorizontalPadding;var F=_.L(_.K_(function(){var k;return((k=xXh(w()))==null?void 0:k.switchedOnByDefault)||!1})),t=F.next().value,p=F.next().value;
F=_.L(_.Ge(!1,void 0,"V0hCrd"));var Z=F.next().value,d=F.next().value,w=function(){var k;if(!(k=Q().switchButton)){var T=Q();k=b==null?void 0:b();T={switchOnCommand:T.switchOnCommand,switchOffCommand:T.switchOffCommand,switchedOnByDefault:T.switchedOnByDefault,isDisabled:T.isDisabled,a11yLabelSwitchedOn:T.a11yLabelSwitchedOn,a11yLabelSwitchedOff:T.a11yLabelSwitchedOff};k!==void 0&&(T.isDisabled=k);k={switchButtonViewModel:T}}return k},A=function(k){var T=xXh(w());
!T||T.isDisabled||Q().ignoreTapUntilCommandCompletes&&Z()||(V==null||V(k),J0h(T,t(),k,Q().ignoreTapUntilCommandCompletes,d),p(!t()),E==null||E(t()))};
return _.P("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.P(_.to,{data:function(){return{title:Q().title,subtitle:Q().attributedSubtitle,leadingImage:Q().leadingImage,leadingAccessory:Q().leadingAccessory,isDisabled:Q().isDisabled}},
onTap:A,isToggled:t,shouldNotFillIcon:!0,trailingAccessory:function(){return _.P(_.Pw,{data:w},{switchButtonViewModel:function(k){return _.P(hsR,{data:k.data,parentActive:t,onTap:A})}})},
disableHorizontalPadding:v}))},"he");var fja=_.x(function(v){var Q=_.L(_.K_(function(){var b,F;return!!((b=v.data())==null?0:(F=b.initialState)==null?0:F.isToggled)})),V=Q.next().value,E=Q.next().value;
return _.P("toggleable-list-item-view-model",{el:_.ud(_.C4(function(){return v.data().rendererContext},{onTap:function(b,F){F();
E(!V())}})),
class:_.QZ("toggleableListItemViewModelHost",v.className)},_.P(_.h,{cond:function(){if(V()){var b=v.data().toggledListItem;b=_.y(b,_.wW)}else b=v.data().defaultListItem,b=_.y(b,_.wW);return b},
then:function(b){return _.P(_.to,{data:b,isToggled:V,ariaLabel:function(){var F=V()?v.data().toggledListItem:v.data().defaultListItem,t;F=(t=_.y(F,_.wW))==null?void 0:t.rendererContext;var p;return(p=_.y(F,_.ds))==null?void 0:p.label},
ariaPressed:function(){return V()}})}}))},"ie");var GNa=_.Lt("DOWNLOAD",{},"Download"),CZa=_.Lt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),MaR=_.Lt("RETRY",{},"Retry"),OSR=_.Lt("PAUSE_DOWNLOADING",{},"Pause downloading"),D4S=_.Lt("RESUME_DOWNLOAD",{},"Resume download"),Qk0={text:GNa,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},hx={text:CZa,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},bsE={text:MaR,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
VEQ={text:OSR,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Ej9={text:D4S,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Rsx=_.x(function(v){var Q=function(){var p=v.data();p=_.f4(p.rendererContext);var Z;return(Z=_.y(p,_.L4))==null?void 0:Z.videoId},V=_.Z1(function(p){var Z=Q(),d=is9(v.data());
return Z?_.RF(p,Z):d?_.n7(p,d):"TRANSFER_STATE_UNKNOWN"}),E=_.p4(_.vXo,Q),b=_.Z1(function(p){return _.a6B(p,Q(),is9(v.data()))}),F=function(){return KfT(V(),E(),_.f4(v.data().rendererContext),!!is9(v.data()))},t=function(){return b()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.P("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:t},_.P(_.h,{cond:function(){return!t()},
then:function(){return _.P(_.h,{cond:F,then:function(p){return _.P(_.xb,{each:p},function(Z){return _.P(_.to,{data:Z,isCompact:v.isCompact,isMenuItem:v.isMenuItem,inPopup:v.inPopup,disableHorizontalPadding:v.disableHorizontalPadding})})}})}}))},"je");
Rsx.idomCompat=!0;_.neA=_.x(function(v){var Q=v.data;var V=v.isCompact;var E=v.hideSelectionTextChevron;var b=v.inPopup;var F=v.isOverlay;var t=v.disableHorizontalPadding;var p=function(){return Lfb(Q())&&(b==null?void 0:b())};
v=_.EP(function(d){if(b!=null&&b()&&_.Y("web_enable_arrow_key_navigation_in_dropdown")){var w=_.iEh(d.currentTarget),A=w.length;if(A!==0){var k=Array.prototype.indexOf.call(w,document.activeElement);switch(d.key){case "ArrowDown":d.preventDefault();var T;(T=w[(k+1)%A])==null||T.focus();break;case "ArrowUp":d.preventDefault();var c;(c=w[k===-1?A-1:(k-1+A)%A])==null||c.focus()}}}});
var Z={};return _.P("yt-list-view-model",{class:_.QZ("ytListViewModelHost",(Z.ytListViewModelHostKaiosSpatNav=bb9&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",Z.ytListViewModelCollectionThumbnailClass=function(){return eEm(Q())},Z)),
role:function(){return p()?"menu":"list"},
style:_.iP({"max-height":function(){var d,w=(d=Q())==null?void 0:d.visibleElementCount;if(w)return eEm(Q())?(w+.5)*48+"px":(w+.5)*40+"px"}}),
"on:keydown":v},_.P(_.Pw,{data:function(){return Q().listItems}},{listItemViewModel:function(d){return _.P(_.to,{data:d.data,
isMenuItem:p,isCompact:V,hideSelectionTextChevron:E,inPopup:b,isOverlay:F,disableHorizontalPadding:t})},
toggleableListItemViewModel:function(d){return _.P(fja,{data:d.data})},
downloadListItemViewModel:function(d){return _.P(Rsx,{data:d.data,isMenuItem:p,isCompact:V,inPopup:b,disableHorizontalPadding:t})},
switchListItemViewModel:function(d){return _.P(_.cip,{data:d.data,disableHorizontalPadding:t})}}))},"ke");
_.neA.idomCompat=!0;var lja=_.x(function(v){var Q=v.data;var V=v.isOverlay;v={};return _.P("yt-course-perks-view-model",{class:_.QZ("ytwCoursePerksViewModelHost",(v.ytwCoursePerksViewModelHostOverlay=V,v))},_.P("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",null,_.P(_.h,{cond:function(){return Q().perks},
then:function(E){return _.P(_.neA,{data:function(){return{listItems:E()}},
isCompact:!0,isOverlay:V})}})))},"le");_.ad(lja,"yt-course-perks-view-model",{props:{data:_.Wg,isOverlay:_.Wg}});_.ad(_.x(function(v){var Q=v.data;return _.P("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.P("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.P(_.tD,{text:function(){return Q().progressSummary}})),_.P("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.P("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.iP({width:function(){return Q().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.pJ}});var q8N=_.x(function(v){var Q={};return _.P("yt-progress-view-model",{class:_.QZ("ytwProgressViewModelHost",(Q.ytwProgressViewModelHostOverlay=_.Wn(v.isOverlay,!1),Q))},_.P(_.h,{cond:function(){return v.data().progressSummary},
then:function(V){return _.P("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.P(_.tD,{text:V}))}}),_.P("div",{class:"ytwProgressViewModelHostProgressContainer"},_.P(_.h,{cond:function(){return v.data().leadingLabel},
then:function(V){return _.P("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.P(_.tD,{text:V}))}}),_.P("div",{class:"ytwProgressViewModelHostProgressBar"},_.P("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(v.data().progressPercentage||0)*100+"%"}}))))},"ne");var e8=_.x(function(v){var Q=v.starNumber;var V=v.data;var E=function(){var b;return((b=V())==null?void 0:b.rating)||0};
return _.P(_.h,{cond:function(){return Q()},
then:function(b){return _.P(_.BU,null,_.P(_.J1,{when:function(){return E()>=b()-.25}},function(){return _.P("div",{class:"ytStarRatingViewModelHostStar"},_.P(_.L_,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.P(_.J1,{when:function(){return E()>=b()-.75}},function(){return _.P("div",{class:"ytStarRatingViewModelHostStar"},_.P(_.L_,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.P(_.NP,null,function(){return _.P("div",{class:"ytStarRatingViewModelHostStar"},_.P(_.L_,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),S8Z=_.x(function(v){v=v.data;
return _.P("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.P(e8,{starNumber:1,data:v}),_.P(e8,{starNumber:2,data:v}),_.P(e8,{starNumber:3,data:v}),_.P(e8,{starNumber:4,data:v}),_.P(e8,{starNumber:5,data:v}))},"pe");_.ad(_.x(function(v){var Q=_.o1(v,{}).data;return _.P("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.P("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.P(_.tD,{text:function(){var V;return(V=Q())==null?void 0:V.title}})),_.P("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.P(_.h,{cond:function(){return Q().starProgressViewModels},
then:function(V){return _.P("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.P(_.Pw,{data:V},{progressViewModel:q8N}))}}),_.P("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.P("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.P(_.tD,{text:function(){var V;
return(V=Q())==null?void 0:V.averageRatingLabel}})),_.P(_.h,{cond:function(){return Q().zeroStateText},
then:function(V){return _.P("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.P(_.tD,{text:V}))}}),_.P(_.h,{cond:function(){return Q().starRatingViewModel},
then:function(V){return _.P("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.P(_.Pw,{data:V},{starRatingViewModel:S8Z}))}}),_.P("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.P(_.tD,{text:function(){var V;
return(V=Q())==null?void 0:V.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.Wg}});var zsX;zsX={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"}};_.JiN=_.x(function(v){var Q=_.Ze("yt-learning-journey-loader-view-model"),V=_.K4();_.uk(function(){requestAnimationFrame(function(){var b;(b=V.lottieEl)==null||b.addEventListener("DOMLoaded",function(){var F;(F=v.onLottieLoaded)==null||F.call(v)})});
var E=v.data().browseEndpoint;E&&_.nx(E)});
return _.P("yt-learning-journey-loader-view-model",{class:_.QZ("learningJourneyLoaderViewModelHost",v.className),"data-target-id":function(){return v.data().targetId||""},
el:Q},_.P(_.z9,{className:_.QZ("learningJourneyLoaderViewModelLoader",v.className),animationName:function(){return zsX.animationConfig.name},
data:zsX,animationRef:V}))},"se");_.ad(_.JiN,"yt-learning-journey-loader-view-model",{props:{data:_.pJ,className:_.Wg,onLottieLoaded:_.Wg}});var P4T=new Set,ZsG=null;var Np8=_.x(function(v){var Q=void 0,V=function(){return v.data()},E=function(){return!!_.kS(_.ws(V())).optionColor},b=_.L(_.Ge(-1,void 0,"eTdwcb")),F=b.next().value,t=b.next().value,p=function(k){return F()===k},Z=function(k){return V().correctAnswerIndex===k},d=function(){return F()!==-1};
b=_.L(_.Ge("",void 0,"QwJs6"));var w=b.next().value,A=b.next().value;return _.P("learning-journey-quiz-view-model",{class:_.QZ("learningQuizComponentHost","learningJourneyQuizYoututorHost",v.className),style:_.iP({background:function(){return _.kS(_.ws(V())).backgroundColor}})},_.P("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},w),_.P("div",{class:"learningQuizComponentQuizContainer"},_.P("div",{class:"learningQuizComponentQuiz"},_.P("div",{class:"learningQuizComponentQuizContent"},_.P(_.h,{cond:function(){return!!V().aiGeneratedQuizLabel},
then:function(){return _.P("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.P(_.tD,{text:function(){return V().aiGeneratedQuizLabel}}))}}),_.P("div",{class:"learningQuizComponentQuizHeader",
style:_.iP({"align-items":function(){return V().overflowMenu?"start":"center"}})},_.P("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.iP({"min-height":function(){return V().overflowMenu?"48px":"26px"}})},_.P("div",{class:"learningJourneyQuizYoututorText",
style:_.iP({color:function(){return _.kS(_.ws(V())).primaryTextColor}})},_.P(_.tD,{text:function(){return V().questionHeaderText}})))),_.P("div",{class:"learningQuizComponentQuizSubheader",
style:_.iP({color:function(){return _.kS(_.ws(V())).secondaryTextColor}})},_.P(_.tD,{text:function(){var k=V();
return d()?k.explanationText:k.questionSubheaderText}}))),_.P("div",{role:"group",
class:_.QZ("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.P(_.xb,{each:function(){return V().optionsData||[]}},function(k,T){var c={};
return _.P("button",{class:_.QZ("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(c.learningQuizComponentQuizHover=function(){return!d()},c.learningQuizComponentQuizOptionWithCustomColor=E,c.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return d()&&Z(T())},c.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return F()!==V().correctAnswerIndex&&p(T())},c.learningQuizComponentQuizIncorrectShake=
function(){return F()!==V().correctAnswerIndex&&p(T())},c)),
"on:click":_.EP(function(){if(d())return!1;t(T());var C,R;A(Z(T())?((C=V().successTitle)==null?void 0:C.content)||"":((R=V().failureTitle)==null?void 0:R.content)||"");return!1}),
style:_.iP({background:"transparent"}),"aria-description":function(){var C,R;return d()?Z(T())?(C=V().successTitle)==null?void 0:C.content:(R=V().failureTitle)==null?void 0:R.content:""},
"aria-disabled":d,el:_.ud(function(C){_.Tz(271905,C,Q,function(R){Q=R})}),
"client-ve-type":271905},_.P("div",{class:"learningQuizComponentQuizOptionContainer"},_.P(_.tD,{text:k.optionText}),_.P(_.h,{cond:function(){var C=T();return d()&&(p(C)||Z(C))},
then:function(){var C={};return _.P(_.L_,{className:_.QZ("learningJourneyQuizYoututorOptionIcon",(C.learningQuizComponentQuizPulse=function(){return F()===V().correctAnswerIndex&&Z(T())},C)),
size:24,icon:function(){return Z(T())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.P(_.h,{cond:d,
then:function(){return _.P("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.P("div",{class:"learningJourneyQuizYoututorExplanationText"},_.P(_.tD,{text:function(){return V().explanationHeaderText}})),_.P(_.tD,{text:function(){return V().optionsData[F()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
Np8.idomCompat=!0;var x48;_.BpZ=_.x(function(v){var Q=null,V=null,E=null,b=function(){return v.data()},F=function(){return _.kS(_.ws(b()))},t=function(){return!!F().optionColor},p=_.L(_.Ge(-1,void 0,"gXauJb")),Z=p.next().value,d=p.next().value,w=function(g){return Z()===g},A=function(g){return b().correctAnswerIndex===g},k=function(){return Z()!==-1},T=function(){return Z()===b().correctAnswerIndex},c=function(){var g=b(),u=k(),r=T();
return u?r?g.successTitle:g.failureTitle:g.questionHeaderText},C=function(){var g=k(),u=T();
return g?u?264685:264684:264683},R=function(){var g=b();
return k()?g.explanationText:g.questionSubheaderText},l=function(){return!!b().video},S=function(g){return T()&&A(g)},a=_.EP(function(){d(-1);
return!1});
return _.P(_.h,{cond:function(){return b().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.P(Np8,{data:function(){return b()}})},
else:function(){return _.P("learning-journey-quiz-view-model",{class:_.QZ("learningQuizComponentHost",v.className),style:_.iP({background:function(){return F().backgroundColor}})},_.P(_.h,{cond:l,
then:function(){return _.P("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.iP({background:function(){return F().videoBackgroundColor}})},_.P(_.Pw,{data:function(){return b().video}},{lockupViewModel:function(g){return _.P(_.Ng,{data:g.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.P("div",{class:"learningQuizComponentQuizContainer"},_.P("div",{class:"learningQuizComponentQuiz"},_.P("div",{class:"learningQuizComponentQuizContent"},_.P(_.h,{cond:function(){return!!b().aiGeneratedQuizLabel},
then:function(){return _.P("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.P(_.tD,{text:function(){return b().aiGeneratedQuizLabel}}))}}),_.P("div",{class:"learningQuizComponentQuizHeader",
style:_.iP({"align-items":function(){return b().overflowMenu?"start":"center"}})},_.P("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.iP({"min-height":function(){return b().overflowMenu?"48px":"26px"}})},_.P("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.ud(function(g){_.Tz(C(),g,Q,function(u){Q=u})}),
style:_.iP({color:function(){return F().primaryTextColor}}),
"client-ve-type":C},_.P(_.tD,{text:c}))),_.P("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.P(_.h,{cond:k,then:function(){return _.P("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.ud(function(g){_.Tz(264687,g,V,function(u){V=u})}),
"on:click":a,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.P("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.iP({fill:function(){return F().primaryTextColor}})},_.P("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"})))}}),
_.P(_.Pw,{data:function(){return b().overflowMenu}},{buttonViewModel:function(g){return _.P(_.D6,{data:g.data})}}))),_.P("div",{class:"learningQuizComponentQuizSubheader",
el:_.ud(function(g){_.Tz(264688,g,E,function(u){E=u})}),
style:_.iP({color:function(){return F().secondaryTextColor}}),
"client-ve-type":264688},_.P(_.tD,{text:R}))),_.P("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.P(_.xb,{each:function(){return b().optionsData||[]}},function(g,u){var r={};
return _.P("button",{class:_.QZ("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(r.learningQuizComponentQuizHover=function(){return!k()},r.learningQuizComponentQuizOptionWithCustomColor=t,r.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return S(u())},r.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!T()&&w(u())},r.learningQuizComponentQuizIncorrectShake=function(){return!T()&&
w(u())},r.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return k()&&!w(u())},r)),
"on:click":_.EP(function(){if(k())return!1;d(u());return!1}),
style:_.iP({background:function(){var v9=u();return k()&&w(v9)?"":t()?F().optionColor:"transparent"}}),
"aria-disabled":k,"client-ve-type":264686},_.P("div",{class:"learningQuizComponentQuizOptionContainer"},_.P(_.h,{cond:k,then:function(){return _.P(x48,{isOptionCorrect:A,optionIndex:u,isOptionSelectedAndCorrect:S,colors:F})}}),_.P(_.tD,{text:g.optionText})))})))))}})},"ue");
x48=_.x(function(v){var Q={};return _.P("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var V=v.optionIndex();return v.isOptionCorrect(V)?"0 0 24 24":"0 -960 960 960"},
class:_.QZ("learningJourneyQuizViewModelQuizOptionIconLeading",(Q.learningQuizComponentQuizPulse=function(){return v.isOptionSelectedAndCorrect(v.optionIndex())},Q)),
style:_.iP({fill:function(){return v.colors().primaryTextColor}})},_.P("path",{d:function(){var V=v.optionIndex();
return v.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"}}))},"ve");
_.BpZ.idomCompat=!0;_.ad(_.BpZ,"learning-journey-quiz-view-model",{props:{data:_.pJ,className:_.pJ}});var gea=_.x(function(v){var Q=_.L((0,_.mXq)(function(){var t;return{targetId:(t=v.data().config)==null?void 0:t.suspenseKey,contents:[v.data()]}})).next().value,V=_.ht().resolve(_.At),E=function(){var t=Q().contents.length>0?Q().contents[0]:void 0;
return t==null?void 0:t.config},b=function(){var t;
return(t=E())==null?void 0:t.entityTriggerConfig},F=_.p4(FzG,function(){var t,p;
return(p=(t=b())==null?void 0:t.entityKey)!=null?p:""});
_.uH(function(){var t,p,Z,d=(Z=Number((t=b())==null?void 0:(p=t.invalidationTimestamp)==null?void 0:p.seconds))!=null?Z:0,w,A,k;if(((k=Number((w=F())==null?void 0:(A=w.lastUpdated)==null?void 0:A.seconds))!=null?k:0)>d){var T;(t=(T=E())==null?void 0:T.continuationCommand)&&V.resolveCommand(t)}},"tC8nKe");
return _.P("yt-suspense-view-model",{class:_.QZ("ytSuspenseViewModelHost")},_.P(_.Pw,{data:function(){var t;return(t=E())==null?void 0:t.contents}},{lockupViewModel:_.Ng}))},"xe");var szA=_.x(function(v){var Q=_.o1(v,{palette:void 0,isLastItem:!1}),V=Q.palette,E=Q.isLastItem,b=function(){return v.data().isHighlighted},F=function(){var Z;
return hES((Z=V())==null?void 0:Z.iconDisabledColor)},t=function(){var Z;
return hES((Z=V())==null?void 0:Z.primaryTitleColor)},p=function(){var Z;
return hES((Z=V())==null?void 0:Z.secondaryTitleColor)};
Q={};return _.P("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.ud(_.C4(function(){return v.data().rendererContext}))},_.P(_.Pw,{data:function(){return v.data().thumbnail}},{thumbnailViewModel:_.C5}),_.P("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.P("div",{class:_.QZ("ytMacroMarkerListItemViewModelTimeDescription",(Q.ytMacroMarkerListItemViewModelHighlighted=b,Q)),
style:_.iP({"background-color":function(){return b()?t():F()},
color:function(){return b()?"":p()}})},_.P(_.tD,{text:function(){return v.data().timestamp}})),_.P("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.iP({"background-color":function(){return E()?"transparent":F()}})}),_.P("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(b()?t():p())}},_.P(_.tD,{text:function(){return v.data().title}}))))},"ye");_.ZP=_.x(function(v){function Q(LE){S("transform:translateX("+(_.r7("HTML_DIR")==="rtl"?"":"-")+LE+"px)")}
function V(LE){return Math.min(Math.max(LE,0),l()-v9())}
function E(){var LE=u()+kQ();return b()?(Math.round(v9()/LE)||1)*LE:0}
var b=function(){return v.data().items||[]},F=function(){return v.data().previousButton},t=function(){return v.data().nextButton},p=function(){var LE,Q8;
return(Q8=(LE=v.disableArrows)==null?void 0:LE.call(v))!=null?Q8:!1},Z=function(){var LE;
return!((LE=v.forceNarrowLayout)==null||!LE.call(v))},d=_.Rr(function(){var LE;
return!((LE=v.centerAlignItems)==null||!LE.call(v))&&l()<=v9()},void 0,"Uto0kc"),w=_.Ze("horizontal-shelf-view-model"),A=_.Ze("div"),k=_.L(_.Ge(0,void 0,"G0xZB")),T=k.next().value,c=k.next().value;
k=_.L(_.Ge(0,void 0,"kqCYFf"));var C=k.next().value,R=k.next().value,l=C;C=_.L(_.Ge("",void 0,"Hh6Uye"));k=C.next().value;var S=C.next().value;C=_.L(_.Ge(0,void 0,"yMGBKb"));var a=C.next().value,g=C.next().value,u=a;C=_.L(_.Ge(0,void 0,"VChthd"));a=C.next().value;var r=C.next().value,v9=a;C=_.L(_.Ge(!1,void 0,"qJlhhe"));var t3=C.next().value,h3=C.next().value;C=_.L(_.Ge(0,void 0,"x7H94"));a=C.next().value;var OB=C.next().value,kQ=a;C=_.L(_.Ge(0,void 0,"ksuUee"));var yo=C.next().value,xQ=C.next().value;
C=_.L(_.Ge("50%",void 0,"uxCxde"));var lb=C.next().value,ep=C.next().value,JS=function(){var LE,Q8=(LE=v.data())==null?void 0:LE.responsiveContainerConfiguration,Tq,Ed;return Q8?qJ(Q8==null?void 0:Q8.responsiveSize):(Ed=(Tq=v.sizing)==null?void 0:Tq.call(v))!=null?Ed:"STANDARD"};
C=_.Rr(function(){return!p()&&T()>0},void 0,"XK60w");
a=_.Rr(function(){return!p()&&T()<l()-v9()},void 0,"D22LVd");
var fZ=function(){c(V(T()-E()));Q(T())},mS=function(){c(V(T()+E()));
Q(T())},PN=function(){w.value!==null&&DX()},qZ;
_.jg(function(){DX();window.ResizeObserver?(qZ=new ResizeObserver(_.Gm(PN,0)),qZ.observe(w.value)):window.addEventListener("resize",PN)});
_.j_(function(){if(window.ResizeObserver){var LE;(LE=qZ)==null||LE.disconnect()}else window.removeEventListener("resize",PN)});
var DX=function(){var LE=w.value.clientWidth,Q8=v.includeMargin!==void 0?v.includeMargin():!1,Tq;var Ed=v.hasPeek!==void 0?v.hasPeek():!((Tq=v.data())==null||!Tq.hasPeek);LE=_.lO({containerWidth:LE,hasPeek:Ed,sizing:JS(),marginSettings:Q8?Z()?4:1:0});OB(LE.gutter);xQ(LE.margin);g(LE.itemWidth);h3(LE.maxContainerWidth<528||Z());r(LE.maxContainerWidth);b()&&R((LE.itemWidth+LE.gutter)*b().length-LE.gutter);if(b()){var y8;if(((y8=v.thumbnailAspectRatio)==null?void 0:y8.call(v))!==void 0){var mA;ep(u()/
NUZ((mA=v.thumbnailAspectRatio)==null?void 0:mA.call(v))/2+"px")}else ep("50%")}},Th={},R8={};
return _.P("horizontal-shelf-view-model",{class:_.QZ("ytwHorizontalShelfViewModelHost",v.className),el:w},_.P(_.h,{cond:function(){var LE;return v.data().header&&!((LE=v.horizontalShelfExperiments)==null?0:LE.call(v).hideHeader)},
then:function(){return _.P("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.iP({width:function(){return v9()+"px"},
padding:function(){return"0 "+yo()+"px"}})},_.P(_.Pw,{data:function(){return v.data().header}},{sectionHeaderViewModel:function(LE){return _.P(_.sT,{data:LE.data,
disableHorizontalPadding:!0,forceSmallLayout:t3,useResponsiveLayout:!0})}}))}}),_.P("div",{class:_.QZ("ytwHorizontalShelfViewModelOuterContainer",(Th.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return d()},Th)),
style:_.iP({"margin-top":function(){var LE,Q8=v.data().header&&!((LE=v.horizontalShelfExperiments)==null?0:LE.call(v).hideHeader),Tq;return(((Tq=v.ensureMarginTop)==null?0:Tq.call(v))&&!Q8?12:0)+"px"}})},_.P("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.iP({width:function(){return v9()+"px"},
padding:function(){return"0 "+yo()+"px"},
overflow:function(){return p()?"auto":"hidden"}})},_.P("div",{class:_.QZ("ytwHorizontalShelfViewModelItems",(R8.ytwHorizontalShelfViewModelCenterAlignItems=function(){return d()},R8)),
el:A,style:k},_.P(_.Pw,{data:b},{macroMarkerListItemViewModel:function(LE,Q8){return _.P("div",{style:_.iP({width:function(){return u()+"px"},
"margin-right":function(){return(Q8()===b().length-1?0:kQ())+"px"}})},_.P(szA,{data:LE.data,
palette:_.Wn(v.palette),isLastItem:function(){return Q8()===b().length-1}}))},
lockupViewModel:function(LE,Q8){var Tq=LE.data;return _.P("div",{style:_.iP({width:function(){return u()+"px"},
"margin-right":function(){return(Q8()===b().length-1?0:kQ())+"px"}})},_.P(_.Ng,{data:Tq,
containerType:4,sizing:JS,protectBackground:v.protectBackground,thumbnailFixedWidth:function(){return wvr(Tq())+"px"},
thumbnailTargetWidth:function(){return wvr(Tq())}}))},
suspenseViewModel:function(LE,Q8){return _.P("div",{style:_.iP({width:function(){return u()+"px"},
"margin-right":function(){return(Q8()===b().length-1?0:kQ())+"px"}})},_.P(gea,{data:LE.data}))}}))),_.P(_.h,{cond:C,
then:function(){return _.P("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.iP({top:function(){return lb()}})},_.P(_.Pw,{data:F},{buttonViewModel:function(LE){return _.P(_.D6,{data:LE.data,
onClick:fZ})}}))}}),_.P(_.h,{cond:a,
then:function(){return _.P("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.iP({top:function(){return lb()}})},_.P(_.Pw,{data:t},{buttonViewModel:function(LE){return _.P(_.D6,{data:LE.data,
onClick:mS})}}))}})))},"ze");
_.ZP.idomCompat=!0;var uMN=_.x(function(v){var Q=function(){return v.data().targetId||""},V=function(){var C;
return((C=v.data())==null?void 0:C.expansionEntityKey)||""},E=_.p4(_.bcS,V),b=!0,F=function(){var C;
return((C=E())==null?void 0:C.value)===Q()},t=function(C){_.jT(_.dW("stringEntity",V(),{key:V(),
value:C?Q():""}))};
_.uk(function(){b=!1;v.data().isExpanded&&t(!0)});
var p=function(){if(F()){var C=!0;v.onCollapse!==void 0&&(C=v.onCollapse());C&&t(!1)}else t(!0)},Z=_.EP(p),d=function(){var C;
return(((C=v.accordionStyle)==null?void 0:C.call(v))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},w=_.Ze("div"),A=function(){var C,R;
return(R=(C=_.y(v.data().rendererContext,_.ds))==null?void 0:C.label)!=null?R:""},k=function(){var C,R;
return{disabled:(C=v.hideIfNotExpanded)==null?void 0:C.call(v),ariaHidden:(R=v.hideIfNotExpanded)==null?void 0:R.call(v)}},T={},c={};
return _.P("yt-accordion-item-view-model",{class:_.QZ("ytAccordionItemViewModelHost",v.className,(T.ytAccordionItemViewModelExpanded=function(){return F()},T.ytAccordionItemViewModelHidden=function(){var C;
return(C=v.hideIfNotExpanded)==null?void 0:C.call(v)},T.ytAccordionItemViewModelMini=d,T)),
"data-target-id":Q},_.P("div",{class:"ytAccordionItemViewModelContainer"},_.P("div",{class:"ytAccordionItemViewModelLeftSection","on:click":Z,title:A,"aria-hidden":function(){var C;return(C=v.hideIfNotExpanded)==null?void 0:C.call(v)}},_.P(_.tD,{text:function(){return v.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:A})),_.P("div",{class:"ytAccordionItemViewModelRightSection"},_.P(_.Pw,{data:function(){return F()?v.data().expandButton:v.data().collapseButton}},{buttonViewModel:function(C){return _.P(_.D6,{data:C.data,
className:"ytAccordionItemViewModelToggleButton",onClick:p,buttonOverrides:k})}}))),_.P("div",{class:"ytAccordionItemViewModelContainer"},_.P("div",{class:_.QZ("ytAccordionItemViewModelContent",(c.ytAccordionItemViewModelExpandedSubtitle=function(){return F()},c)),
el:w,style:_.iP({"max-height":function(){return b?"auto":F()?w.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!F()}},_.P(_.h,{cond:function(){return!d()},
then:function(){return _.P(_.tD,{text:function(){return v.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.P(_.Pw,{data:function(){return v.data().content}},{horizontalShelfViewModel:function(C){return _.P(_.ZP,{data:C.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.jzN=_.x(function(v){var Q=_.L((0,_.mXq)(v.data)).next().value,V=function(){return v.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},E=function(){return V()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},b=_.L(_.Ge(!0,void 0,"VFpYAb")),F=b.next().value,t=b.next().value,p=function(){return E()&&F()},Z=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){t(!F())}}},d=_.EP(function(){Q().onTitleTap&&_.nx(Q().onTitleTap||{})});
b={};return _.P("yt-accordion-view-model",{class:_.QZ("ytAccordionViewModelHost",(b.ytAccordionViewModelMinimized=function(){return p()},b)),
"data-target-id":function(){return v.data().targetId||""}},_.P(_.h,{cond:function(){return E()||!!Q().title},
then:function(){return _.P("div",{class:"ytAccordionViewModelHeader"},_.P("div",{class:"ytAccordionViewModelTitleSection"},_.P("div",{class:"ytAccordionViewModelTitleWrapper"},_.P(_.h,{cond:function(){return!!v.data().headerIcon},
then:function(){return _.P(_.L_,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var w;return(w=v.data().headerIcon)==null?void 0:w.iconType}})}}),_.P("div",{class:"ytAccordionViewModelTitle",
"on:click":d},_.P(_.tD,{className:"ytAccordionViewModelTitleText",text:function(){return Q().title}})))),_.P("div",{class:"ytAccordionViewModelButtonSection"},_.P(_.h,{cond:E,
then:function(){return _.P(_.OA,{data:Z,iconName:function(){return p()?"chevron_down":"chevron_collapse"}})}})))}}),_.P("div",{class:"ytAccordionViewModelContent"},_.P(_.Pw,{data:function(){return Q().contents}},{accordionItemViewModel:function(w){return _.P(uMN,{data:w.data,
className:"ytAccordionViewModelRow",accordionStyle:V,hideIfNotExpanded:p,onCollapse:function(){return E()?(t(!0),!1):!0}})}})),_.P("div",null,_.P(_.h,{cond:function(){return!E()&&(!!Q().disclaimerFooter||!!Q().footer)},
then:function(){return _.P("div",{class:"ytAccordionViewModelFooter"},_.P(_.tD,{text:function(){return Q().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.P(_.Pw,{data:function(){return v.data().footer}},{flexibleActionsViewModel:function(w){return _.P(_.Vq,{data:w.data,
layout:0})}}))}})))},"Ce");_.ad(_.jzN,"yt-accordion-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=null,V=null,E,b=(E=_.ht().resolve(_.d$(_.JR)))==null?void 0:E(),F=_.L(_.Ge(!1,void 0,"CmEVtc"));E=F.next().value;var t=F.next().value;F=_.L(_.Ge(!0,void 0,"yo9dR"));var p=F.next().value,Z=F.next().value,d=_.Ze("textarea",function(R){_.Tz(264503,R,Q,function(l){Q=l})}),w=function(R){t(!0);
R={learningJourneyFormData:{query:R}};_.nx(v.data().searchEndpoint||{},{form:{formData:R}});return!1},A=_.EP(function(R){R.target.closest("button-view-model")&&t(!0)});
F=_.EP(function(){Z(d.value.value.length===0)});
var k=_.EP(function(R){if(R.key==="Enter"&&!R.shiftKey&&!p()){var l=R.target;R.preventDefault();w(l.value)}}),T={},c={},C={};
return _.P("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.P("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.P(_.gE,{data:function(){return v.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.P("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.P("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.P("div",{class:_.QZ("ytLearningJourneyZeroStateSearchBar",(T.ytLearningJourneyZeroStateSearchBarDark=b,T))},_.P("textarea",{class:_.QZ("ytLearningJourneyZeroStateTextInput",(c.ytLearningJourneyZeroStateTextInputDark=b,c)),el:d,"on:keyup":F,"on:keydown":k,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.P("div",{class:_.QZ("ytLearningJourneyZeroStateSearchButtonContainer",(C.ytLearningJourneyZeroStateSearchButtonContainerDark=b,C))},_.P(_.D6,{data:function(){return _.y(v.data().searchButton,_.pH)},
className:"search-button",onClick:function(){return w(d.value.value)},
buttonOverrides:function(){return{disabled:p(),style:b?"mono-inverse":"mono",size:"XL"}}}))),_.P(_.h,{cond:function(){return!!v.data().errorBanner},
then:function(){return _.P("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.ud(function(R){_.Tz(264617,R,V,function(l){V=l})})},_.P(_.Pw,{data:function(){return v.data().errorBanner}},{alertBannerViewModel:function(R){return _.P(_.pza,{data:R.data,
"client-ve-type":264617})}}))}})),_.P(_.h,{cond:E,
then:function(){return _.P("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.P(_.Pw,{data:function(){return v.data().loader}},{learningJourneyLoaderViewModel:function(R){return _.P(_.JiN,{data:R.data})}}))},
else:function(){return _.P("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.P(_.h,{cond:function(){return!!v.data().learningJourneyShelf},
then:function(){return _.P("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.P("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return v.data().learningJourneySectionTitle}),_.P(_.Pw,{data:function(){return v.data().learningJourneyShelf}},{horizontalShelfViewModel:function(R){return _.P(_.ZP,{data:R.data,
centerAlignItems:!0})}}))}}),_.P("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.P("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return v.data().suggestedJourneySectionTitle}),_.P("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":A},_.P(_.Pw,{data:function(){return v.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(R){return _.P(_.Vq,{data:R.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.pJ}});var WmA=_.x(function(v){var Q=v.data;return _.P("ytvl-live-leaderboard-item-action-content-view-model",{class:_.QZ("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.P(_.tD,{text:function(){var V;return(V=Q())==null?void 0:V.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.P(_.Pw,{data:function(){return Q().actionButton}},{buttonViewModel:function(V){return _.P(_.D6,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:V.data})}}))},"Ee");var oeZ=_.x(function(v){var Q=v.data;return _.P("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.QZ("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.P(_.tD,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var V;return(V=Q())==null?void 0:V.displayName},
ellipsisTruncate:!0}),_.P(_.Pw,{data:function(){return Q().badge}},{buttonViewModel:function(V){return _.P(_.D6,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:V.data})}}))},"Fe");_.ad(_.x(function(v){var Q=v.data;return _.P("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.P("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.P(_.tD,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var V;return(V=Q())==null?void 0:V.rank}})),_.P("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO})),_.P("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.P(_.Pw,{data:function(){return Q().content}},{liveLeaderboardItemChannelContentViewModel:oeZ,
liveLeaderboardItemActionContentViewModel:WmA})),_.P(_.tD,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var V;return(V=Q())==null?void 0:V.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;return _.P("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.P(_.tD,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var V,E;return(V=Q())==null?void 0:(E=V.ranking)==null?void 0:E.rank}}),_.P("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO})),_.P(_.tD,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var V,E;return(V=Q())==null?void 0:(E=V.channelContent)==null?void 0:E.channelName}}),_.P(_.tD,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var V;return(V=Q())==null?void 0:V.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.pJ}});var Xza=_.x(function(v){v=_.o1(v,{wrapper:!1}).wrapper;return _.P(_.h,{cond:v,then:function(){return _.P("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.P("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.P("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
Xza.idomCompat=!0;var ajQ=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],riq=_.x(function(v){var Q=v.data;var V=_.ud(),E=_.Rr(function(){return Q().command},void 0,"fyYsT");
_.uH(function(){E()&&_.Oo(E(),{form:{element:V.value}})},"B0nxdb");
return _.P("div",{el:V,class:"YtQrCodeRendererHostContainer"},_.P(_.h,{cond:function(){return Q().qrCodeImage},
then:function(b){return _.P(_.gE,{data:b,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.P(_.h,{cond:function(){return Q().spinner},
then:function(){return _.P(Xza,null)}})}}),_.P(_.h,{cond:function(){return Q().label},
then:function(b){return _.P(_.tD,{text:b,className:"YtQrCodeRendererHostLabel"})}}),_.P(_.h,{cond:function(){return Q().labels},
then:function(b){return _.P("div",{class:"YtQrCodeRendererHostLabels"},_.P(_.xb,{each:b},function(F){return _.P(_.tD,{text:F})}))}}))},"Le");_.ad(_.x(function(v){var Q=v.data;var V=_.Rr(function(){return Q().qrEntityKey},void 0,"LmZ2xf"),E=_.Rr(function(){return Q().deleteEntityOnDismiss},void 0,"my0Tzb"),b=_.Rr(function(){return Q().command},void 0,"hzECIb"),F=_.p4(TUZ,V);
v=_.Rr(function(){return Q().qrCodeImage},void 0,"AnD9rc");
var t=_.Rr(function(){return Q().style&&ajQ.includes(Q().style)},void 0,"f5fZv"),p=_.k0({visibilityCallback:function(Z){Z&&b()&&_.Oo(b())},
showOption:{calledOnce:!0,state:"visible"}});_.jg(function(){_.j_(function(){E()&&V()&&_.uf().dispatch(_.dW("qrCodeEntity",V()))})});
return _.P("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.ud(p)},_.P(_.h,{cond:t,then:function(){return _.P(_.h,{cond:F,then:function(Z){return _.P(riq,{data:Z})}})}}),_.P(_.h,{cond:v,
then:function(Z){return _.P(_.gE,{data:Z,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.pJ}});var IjS=_.x(function(v){var Q=function(){return _.CF(1728053247&(v.barColor!==void 0?tx(v.barColor()):4278190080))};
return _.P("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.P("div",{class:"ytVideoOverviewGhostCardDetails"},_.P($4Z,{animationDelay:0,percentWidth:100,barColor:function(){return Q()}}),_.P($4Z,{animationDelay:600,
percentWidth:60,barColor:function(){return Q()}})))},"Me"),$4Z=_.x(function(v){return _.P("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+v.percentWidth()+"%"}},_.P("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var Q=v.animationDelay(),V=v.barColor();return"animation-delay:"+Q+"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    );"}}))},"Ne");var HSN;_.m4N=_.x(function(v){function Q(l){t(l)}
var V=v.data;var E=_.Ze("yt-video-overview-view-model"),b=_.Pa("div");v=_.L(_.Ge(-1,void 0,"dW11He"));var F=v.next().value,t=v.next().value;v=_.L(_.Ge(0,void 0,"LqrsK"));var p=v.next().value,Z=v.next().value,d={},w=_.p4(Agh,function(){return V().asyncDataEntityKey}),A=function(){var l;
if((l=w())==null?0:l.videoOverviewViewModel){var S;return _.y((S=w())==null?void 0:S.videoOverviewViewModel,yj8)}return V()};
_.jg(function(){Z(Math.min((E.value.clientWidth-24)/4-8,72))});
var k=function(l){t(l);(b==null?0:b.value)&&b.value.children[l]&&b.value.children[l].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
c00(E,function(){var l;if((l=A())==null||!l.inlinePlaybackEndpoint)return null;var S;l=d==null?void 0:(S=d.thumbnailElRef)==null?void 0:S.value;if(!l)return null;var a;S=(a=A())==null?void 0:a.inlinePlaybackEndpoint;a=_.y(S,xn8);return{multipleVideoPreviewData:{data:(a==null?0:a.playerDescriptors)&&(a==null?0:a.playerDescriptors.length)?a.playerDescriptors:[],thumbnailElement:l,trackingParams:"test",callbacks:{onPlaybackStarted:k},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var T=function(){var l;return((l=A())==null?void 0:l.headerSubtext)!==void 0?!0:!1},c=function(){var l,S=tx((l=A())==null?void 0:l.titleColor);
return S?"color: "+_.CF(S)+";":void 0},C=function(){var l,S=tx((l=A())==null?void 0:l.subtextColor);
return S?"color: "+_.CF(S)+";":void 0},R=function(){return _.P("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.P("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return c()}},_.P(_.tD,{text:function(){var l;
return(l=A())==null?void 0:l.headerText}})),_.P(_.h,{cond:T,
then:function(){return _.P("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.P("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return C()}},_.P(_.L_,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.P("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return C()}},_.P(_.tD,{text:function(){var l;
return(l=A())==null?void 0:l.headerSubtext}})))}}))};
v={};return _.P("yt-video-overview-view-model",{class:_.QZ("ytGenAiVideoOverviewViewModelHost",(v.ytGenAiVideoOverviewViewModelMweb=!1,v.ytGenAiVideoOverviewViewModelDesktop=!0,v)),el:E,style:function(){var l,S=tx((l=A())==null?void 0:l.backgroundColor);return S?"background-color: "+_.CF(S)+";":void 0}},_.P(_.h,{cond:function(){var l;
return(l=A())==null?void 0:l.isLoading},
then:function(){return _.P(IjS,{barColor:function(){var l;return(l=A())==null?void 0:l.titleColor}})},
else:function(){return _.P(_.w7,null,null,_.P("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.P(_.Pw,{data:function(){var l;return(l=A())==null?void 0:l.thumbnail}},{thumbnailViewModel:function(l){return _.P(_.C5,{data:l.data,
aspectRatio:0,playbackRef:Ywm(d)})}})),_.P("div",{class:"ytGenAiVideoOverviewViewModelDetails"},R(),_.P(_.h,{cond:function(){var l,S,a,g;
return((l=A())==null?void 0:(S=l.listItems)==null?void 0:S.length)!==void 0&&((a=A())==null?void 0:(g=a.listItems)==null?void 0:g.length)>0?!0:!1},
then:function(){return _.P("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:b},_.P(_.xb,{each:function(){var l;return(l=A())==null?void 0:l.listItems}},function(l,S){return _.P(HSN,{image:l.image,
index:S,isSelected:function(){return S()===F()},
onClick:Q,itemWidth:p})}))}}),_.P("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.P("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return c()}},_.P(_.tD,{text:function(){var l,S,a,g,u,r,v9;
return(v9=(l=A())==null?void 0:(S=l.listItems)==null?void 0:(a=S[F()])==null?void 0:a.headline)!=null?v9:(g=A())==null?void 0:(u=g.listItems)==null?void 0:(r=u[0])==null?void 0:r.headline}})),_.P("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return C()}},_.P(_.tD,{text:function(){var l,S,a,g,u,r,v9;
return(v9=(l=A())==null?void 0:(S=l.listItems)==null?void 0:(a=S[F()])==null?void 0:a.subtext)!=null?v9:(g=A())==null?void 0:(u=g.listItems)==null?void 0:(r=u[0])==null?void 0:r.subtext}})))))}}))},"Oe");
HSN=_.x(function(v){var Q=v.image;var V=v.itemWidth;var E=v.index;var b=v.isSelected;var F=v.onClick;v=_.EP(function(){E!==void 0&&F!==void 0&&F(E());return!1});
var t={};return _.P("div",{class:_.QZ("ytGenAiVideoOverviewViewModelCarouselItem",(t.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return b==null?void 0:b()},t)),
style:function(){return"width: "+V()+"px;"},
"on:click":v},_.P(_.gE,{data:Q,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.P(_.h,{cond:function(){return b==null?void 0:b()},
then:function(){return _.P("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.P("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.m4N.idomCompat=!0;_.ad(_.m4N,"yt-video-overview-view-model",{props:{data:_.pJ}});_.U4x=_.x(function(v){var Q=v.data;var V=v.topbarOffset;var E,b=((E=_.ht().resolve(_.d$(_.JR)))==null?void 0:E())||!1;return _.P("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var F=Q();var t,p,Z=b?(t=F.config)==null?void 0:t.darkThemeBackgroundColor:(p=F.config)==null?void 0:p.lightThemeBackgroundColor;F=Z?_.GA(Z):void 0;F="background-color: "+F+";";V!==void 0&&(F+="top: -"+V()+"px;");return F},
"aria-hidden":!0},_.P(_.h,{cond:function(){var F,t,p;return!!((F=Q().backgroundImageConfig)==null?0:(t=F.image)==null?0:(p=t.sources)==null?0:p.length)},
then:function(){return _.P(_.gE,{data:function(){var F;return(F=Q().backgroundImageConfig)==null?void 0:F.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.P("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+kMT(b,Q().gradientColorConfig)+";"}}))},"Qe");
_.U4x.idomCompat=!0;var vQ8=_.x(function(v){var Q=v.data;var V=v.isOverlay;return _.P("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.P("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.P(_.Pw,{data:function(){return Q().header}},{sectionHeaderViewModel:function(E){return _.P(_.sT,{data:E.data,
isOverlay:V})}})),_.P("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.P(_.Pw,{data:function(){return Q().channelInfoButtons}},{flexibleActionsViewModel:_.Vq})),_.P("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.P(_.Pw,{data:function(){return Q().description}},{descriptionPreviewViewModel:function(E){return _.P(_.gv,{data:E.data,
isOverlay:V})}})))},"Re");
vQ8.idomCompat=!0;var Qhd=_.x(function(v){var Q=v.data;var V={};return _.P("factoid-view-model",{class:_.QZ("ytwFactoidViewModelHost",(V.ytwFactoidViewModelHostOverlay=v.isOverlay,V))},_.P(_.tD,{text:function(){return Q().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.P(_.tD,{text:function(){return Q().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
Qhd.idomCompat=!0;var VZ7=_.x(function(v){var Q=v.data;var V=v.isOverlay;return _.P("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.P(_.Pw,{data:function(){return Q().factoids}},{factoidViewModel:function(E){return _.P(Qhd,{data:E.data,
isOverlay:V})}}))},"Te");
VZ7.idomCompat=!0;_.EQm=_.x(function(v){var Q=v.data;var V=v.isOverlay;return _.P("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.P(_.Pw,{data:function(){return Q().items}},{channelInfoViewModel:function(E){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(vQ8,{data:E.data,
isOverlay:V}))},
coursePerksViewModel:function(E){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(lja,{data:E.data,isOverlay:V}))},
descriptionPreviewViewModel:function(E){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(_.gv,{data:E.data,isOverlay:V}))},
factoidsRowViewModel:function(E){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(VZ7,{data:E.data,isOverlay:V}))},
progressViewModel:function(E){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(q8N,{data:E.data,isOverlay:V}))}}))},"Ue");var bE0=_.x(function(v){return _.P("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.P(_.Pw,{data:function(){return v.data().content}},{courseMetadataViewModel:function(Q){return _.P(_.EQm,{data:Q.data,
isOverlay:v.isOverlay})},
progressViewModel:function(Q){return _.P(q8N,{data:Q.data})}}))},"Ve");var FSf=_.x(function(v){var Q=v.data;v=v.className;var V=function(){var b;return _.Gw((b=Q())==null?void 0:b.rendererContext)},E={};
E=(E.dynamicTextViewModelHost=!0,E.dynamicTextViewModelHostTappable=function(){return V()},E);
return _.P("yt-dynamic-text-view-model",{el:_.ud(_.C4(function(){var b;return(b=Q())==null?void 0:b.rendererContext})),
role:function(){return V()?"link":void 0},
tabindex:function(){return V()?0:void 0},
class:_.QZ(v,E)},_.P("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var b,F,t;return(t=(F=_.y((b=Q())==null?void 0:b.rendererContext,_.ds))==null?void 0:F.label)!=null?t:""}},_.P(_.tD,{text:function(){return Q().text},
userInput:!0})))},"We");
FSf.idomCompat=!0;_.Po=_.x(function(v){var Q=v.data;var V=v.isPositionRelative;var E=_.Ygo("(max-width: 527.9px)"),b=function(){var F,t;return(t=(F=Q())==null?void 0:F.style)!=null?t:"IMAGE_BANNER_STYLE_FULL_BLEED"};
v={};return _.P("yt-image-banner-view-model",{el:_.ud(_.C4(function(){var F;return(F=Q())==null?void 0:F.rendererContext})),
class:_.QZ((v.ytImageBannerViewModelHost=!0,v.ytImageBannerViewModelInset=function(){return ygB(b())},v.ytImageBannerViewModelPositionAbsolute=function(){return _.or(!0)&&!(V==null?0:V())},v.ytImageBannerViewModelSmallInset=function(){return ygB(b())&&E()},v.ytImageBannerViewModelTappable=function(){var F;
return _.Gw((F=Q())==null?void 0:F.rendererContext)},v))},_.P(_.h,{cond:function(){var F;
return(F=Q())==null?void 0:F.image},
then:function(){return _.P(_.gE,{data:function(){return Q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.P(_.Pw,{data:function(){var F;
return(F=Q())==null?void 0:F.overlays}},{thumbnailHoverOverlayViewModel:vy}))},"Xe");
_.Po.idomCompat=!0;var KS0;KS0=_.x(function(v){var Q=v.condition;var V=v.content;return _.P(_.h,{cond:Q,then:function(){return _.P("div",{class:"yt-page-header-view-model__scroll-container"},V())},
else:function(){return V()}})},"Ye");
_.iE8=_.x(function(v){var Q=v.data;var V=v.noPadding;var E=v.enableBanner;var b=v.cinematicContainerTopbarOffset;var F=v.allowCinematicContainerOverflow;var t=v.displayAsSidebar;var p=v.displayAsPanel;var Z=v.alwaysUseMediumTextDescription;var d=cgr(),w=function(){return!!Q().image||!!Q().animatedImage},A=function(){return!!Q().background},k=function(){return(t==null?0:t())||(p==null?0:p())?1:d()},T=function(){return k()===1},c=function(){return T()||k()===2},C=function(){return k()===4},R=function(){var yo=
Q();
var xQ=!!Q().heroImage;var lb=k(),ep=f4Q(Q()),JS=t==null?void 0:t(),fZ=!yo.metadata,mS;if(mS=xQ?_.y(yo.heroImage,tvS):_.y(yo.animatedImage||yo.image,tvS)){yo=mS.style;var PN=mS.layoutMode;if(PN!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(mS=as9(XSr(mS)),xQ)xQ=Tt3(lb,yo,PN,mS,JS);else b:if(fZ)xQ=lb===1?{size:48}:{size:72};else switch(lb){case 1:xQ={size:72};break b;case 2:xQ={size:120};break b;default:xQ=ep<4?{size:120}:{size:160}}else xQ=void 0}else xQ={size:0};return xQ};
v={};v=_.QZ((v["yt-page-header-view-model"]=!0,v["yt-page-header-view-model--no-padding"]=function(){return!(V==null||!V())},v["yt-page-header-view-model--small-top-padding"]=function(){return T()&&!Q().actions&&!(p==null?0:p())||k()===2&&!(w()||Q().heroImage)},v["yt-page-header-view-model--small-bottom-padding"]=function(){return c()&&!Q().actions&&!(p==null?0:p())},v["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(F==null?0:F())},v["yt-page-header-view-model--display-as-sidebar"]=
t,v));
var l={},S=_.QZ((l["yt-page-header-view-model__page-header-headline"]=!0,l["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var yo;return(yo=R())==null?void 0:yo.allowFullWidth},l)),a=function(){var yo;
return c()&&!((yo=R())==null?0:yo.allowFullWidth)},g=function(){return T()&&(!!Q().heroImage||w())&&f4Q(Q())>0},u=function(){return g()&&(p==null?void 0:p())};
l={};var r=_.QZ((l["yt-page-header-view-model__page-header-title"]=!0,l["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!g()},l["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return g()&&!u()},l["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=u,l["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=A,l));
l={};var v9=_.QZ((l["yt-page-header-view-model__page-header-headline-image"]=!0,l["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!Q().heroImage&&c()},l));
l={};var t3=_.QZ((l["yt-page-header-view-model__page-header-banner-container"]=E,l["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var yo;return(E==null?void 0:E())&&((yo=_.y(Q().banner,_.ejR))==null?void 0:yo.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},l));
l={};var h3=_.QZ((l["yt-page-header-view-model__page-header-content-metadata"]=!0,l["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=A,l));l={};var OB=_.QZ((l["yt-page-header-view-model__page-header-flexible-actions"]=!0,l["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!Q().metadata||c()},l["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!c()},l));
l={};var kQ=_.QZ((l["yt-page-header-view-model__page-header-attribution"]=!0,l["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=A,l));return _.P("yt-page-header-view-model",{class:v},_.P(_.h,{cond:A,then:function(){return _.P("div",{class:"yt-page-header-view-model__page-header-background"},_.P(_.Pw,{data:function(){return Q().background}},{cinematicContainerViewModel:function(yo){return _.P(_.U4x,{data:yo.data,
topbarOffset:b})}}))}}),_.P(KS0,{condition:function(){return!(t==null||!t())},
content:function(){return _.P("div",{class:"yt-page-header-view-model__page-header-content"},_.P(_.h,{cond:function(){return(E==null?void 0:E())&&Q().banner},
then:function(){return _.P("div",{class:t3},_.P(_.Pw,{data:function(){return Q().banner}},{imageBannerViewModel:_.Po}))}}),_.P("div",{class:S},_.P(_.h,{cond:w,
then:function(){return _.P(_.Pw,{data:function(){var yo;if(!(yo=Q().animatedImage)){yo=Q();if(w()){var xQ=yo=Object.assign({},yo),lb=k(),ep=f4Q(Q()),JS=xQ.image,fZ=_.y(JS,pka),mS=fZ==null?void 0:fZ.avatar,PN=_.y(mS,_.Ou);if(JS&&mS&&PN){switch(lb){case 1:PN.avatarImageSize="AVATAR_SIZE_XL";break;case 2:PN.avatarImageSize="AVATAR_SIZE_XXL";break;default:ep<4?PN.avatarImageSize="AVATAR_SIZE_XXL":PN.avatarImageSize="AVATAR_SIZE_XXXL"}_.yK(mS,_.Ou,Object.assign({},PN));fZ.avatar=Object.assign({},mS);_.yK(JS,
pka,Object.assign({},fZ));xQ.image=Object.assign({},JS)}}yo=yo.image}return yo}},{contentPreviewImageViewModel:function(yo){return _.P(_.RV,{data:yo.data,
className:v9,imageSizeConfig:R})},
decoratedAvatarViewModel:function(yo){return _.P(_.VO,{data:yo.data,className:v9})}})}}),_.P(_.h,{cond:function(){return!!Q().heroImage&&!a()},
then:function(){return _.P(_.Pw,{data:function(){return Q().heroImage}},{contentPreviewImageViewModel:function(yo){return _.P(_.RV,{data:yo.data,
className:v9,imageSizeConfig:R})}})}}),_.P("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.P(_.h,{cond:function(){return!!Q().heroImage&&a()},
then:function(){return _.P("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.P(_.Pw,{data:function(){return Q().heroImage}},{contentPreviewImageViewModel:function(yo){return _.P(_.RV,{data:yo.data,
className:v9,imageSizeConfig:R})}}))}}),_.P(_.Pw,{data:function(){return Q().title}},{dynamicTextViewModel:function(yo){return _.P(FSf,{data:yo.data,
className:r})}}),_.P(_.Pw,{data:function(){return Q().metadata}},{contentMetadataViewModel:function(yo){return _.P(_.lF,{data:yo.data,
layout:function(){return T()?1:0},
className:h3,isOverlay:A,useMediumText:C})}}),_.P(_.h,{cond:function(){return Q().description&&!T()},
then:function(){return _.P(_.Pw,{data:function(){return Q().description}},{descriptionPreviewViewModel:function(yo){return _.P(_.gv,{data:yo.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:A,maxLinesOverride:function(){return T()?void 0:1},
useMediumText:function(){return(Z==null?void 0:Z())||C()}})}})}}),_.P(_.h,{cond:function(){return Q().attribution&&!c()},
then:function(){return _.P(_.Pw,{data:function(){return Q().attribution}},{attributionViewModel:function(yo){return _.P(n5,{data:yo.data,
className:kQ,useMediumText:C})}})}}),_.P(_.h,{cond:function(){return Q().actions&&!c()},
then:function(){return _.P(_.Pw,{data:function(){return Q().actions}},{flexibleActionsViewModel:function(yo){return _.P(_.Vq,{data:yo.data,
layout:function(){return GME(k())},
className:OB})}})}}))),_.P("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.P(_.h,{cond:function(){return Q().description&&T()},
then:function(){return _.P(_.Pw,{data:function(){return Q().description}},{descriptionPreviewViewModel:function(yo){return _.P(_.gv,{data:yo.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:A,maxLinesOverride:function(){return T()?void 0:1},
useMediumText:function(){return(Z==null?void 0:Z())||C()}})}})}}),_.P(_.h,{cond:function(){return Q().attribution&&c()},
then:function(){return _.P(_.Pw,{data:function(){return Q().attribution}},{attributionViewModel:function(yo){return _.P(n5,{data:yo.data,
className:kQ,useMediumText:C})}})}}),_.P(_.h,{cond:function(){return Q().actions&&c()},
then:function(){return _.P(_.Pw,{data:function(){return Q().actions}},{flexibleActionsViewModel:function(yo){return _.P(_.Vq,{data:yo.data,
layout:function(){return GME(k())},
className:OB})}})}})),_.P("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.P(_.Pw,{data:function(){return Q().bottomMetadataFlexibleContainer}},{flexibleContainer:function(yo){return _.P(bE0,{data:yo.data,
isOverlay:A})}})))}}))},"Ze");
_.iE8.idomCompat=!0;_.ad(_.x(function(v){var Q=_.L(_.Ge(!1,void 0,"qvRy4d")),V=Q.next().value,E=Q.next().value;return _.P("yt-official-card-view-model",{class:_.QZ("ytOfficialCardViewModelHost",v.className),style:_.iP({"background-color":function(){var b,F=tx((b=v.data())==null?void 0:b.backgroundColor);return F?_.CF(F):void 0}})},_.P(_.Pw,{data:function(){return v.data().header}},{pageHeaderViewModel:function(b){return _.P(_.iE8,{data:b.data,
noPadding:!0})}}),_.P(_.Pw,{data:function(){return v.data().contents}},{horizontalShelfViewModel:function(b){return _.P(_.ZP,{data:b.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.P(_.h,{cond:V,
then:function(){return _.P("div",{class:"ytOfficialCardViewModelExpandedContent"},_.P(_.Pw,{data:function(){return v.data().expandedContents}},{horizontalShelfViewModel:function(b){return _.P(_.ZP,{data:b.data,
sizing:"MINI"})}}),_.P("div",{class:"ytOfficialCardViewModelCollapseButton"},_.P(_.Pw,{data:function(){return v.data().collapseButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
onClick:function(){E(!V())}})}})))},
else:function(){return _.P("div",{class:"ytOfficialCardViewModelExpandButton"},_.P(_.Pw,{data:function(){return v.data().expandButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
onClick:function(){E(!V())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.pJ,
className:_.pJ}});var LS0=_.x(function(v){var Q,V=(Q=_.ht().resolve(_.d$(_.JR)))==null?void 0:Q();return _.P("ytw-search-friction-view-model",{class:_.QZ("ytwSearchFrictionViewModelHost",v.className)},_.P("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.P("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.P(_.h,{cond:function(){return V&&v.data().darkThemeImage?v.data().darkThemeImage:v.data().image},
then:function(E){return _.P(_.gE,{data:E,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.P(_.Pw,{data:function(){return v.data().overflowMenuButton}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.P(_.tD,{text:function(){return v.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.P(_.xb,{each:function(){return v.data().bodyText||[]}},function(E){return _.P(_.tD,{text:E,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.P(_.Pw,{data:function(){return v.data().actions}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.P(_.tD,{text:function(){return v.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.P(_.tD,{text:function(){return v.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
LS0.idomCompat=!0;_.ad(LS0,"ytw-search-friction-view-model",{props:{data:_.pJ,className:_.pJ}});_.dh=_.x(function(v){var Q=_.Ze("markdown-div"),V,E=(V=_.ht().resolve(_.d$(_.JR)))==null?void 0:V();_.uH(function(){var b=Q.value;var F=new bwN,t=new Map(F.JSC$9378_sanitizerTable.globalAttributePolicies);t.set("style",{policyAction:4});F.JSC$9378_sanitizerTable=new Co(F.JSC$9378_sanitizerTable.allowedElements,F.JSC$9378_sanitizerTable.elementPolicies,F.JSC$9378_sanitizerTable.allowedGlobalAttributes,t,F.JSC$9378_sanitizerTable.globallyAllowedAttributePrefixes);var p=["data-time"];if(p===void 0)t=
new Set(F.JSC$9378_sanitizerTable.globallyAllowedAttributePrefixes),t.add("data-"),F.JSC$9378_sanitizerTable=new Co(F.JSC$9378_sanitizerTable.allowedElements,F.JSC$9378_sanitizerTable.elementPolicies,F.JSC$9378_sanitizerTable.allowedGlobalAttributes,F.JSC$9378_sanitizerTable.globalAttributePolicies,t);else{t=new Set(F.JSC$9378_sanitizerTable.allowedGlobalAttributes);p=_.L(p);for(var Z=p.next();!Z.done;Z=p.next()){Z=Z.value;if(Z.indexOf("data-")!==0)throw Error("ka`"+Z);t.add(Z)}F.JSC$9378_sanitizerTable=
new Co(F.JSC$9378_sanitizerTable.allowedElements,F.JSC$9378_sanitizerTable.elementPolicies,t,F.JSC$9378_sanitizerTable.globalAttributePolicies,F.JSC$9378_sanitizerTable.globallyAllowedAttributePrefixes)}t=new Set(F.JSC$9378_sanitizerTable.allowedGlobalAttributes);t.add("class");F.JSC$9378_sanitizerTable=new Co(F.JSC$9378_sanitizerTable.allowedElements,F.JSC$9378_sanitizerTable.elementPolicies,t,F.JSC$9378_sanitizerTable.globalAttributePolicies,F.JSC$9378_sanitizerTable.globallyAllowedAttributePrefixes);
_.tT(b,_.U1Z(F.build(),MEB(v.text())));Os3(Q.value)},"OZ439c");
V={};return _.P("div",null,_.P("markdown-div",{class:_.QZ("ytwMarkdownDivHost",(V.ytwMarkdownDivDark=E,V.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var b;return((b=v.isSmallText)==null?void 0:b.call(v))||!1},V.ytwMarkdownDivHostWrapCodeBlocks=function(){var b;
return((b=v.wrapCodeBlocks)==null?void 0:b.call(v))||!1},V.ytwMarkdownDivHostEnableDefaultStyling=function(){var b;
return!((b=v.disableDefaultStyling)==null?0:b.call(v))},V)),
el:Q}))},"cf");
_.dh.idomCompat=!0;var tZm=_.x(function(v){var Q=v.imageData;var V=_.Wn(v.isInList,!1),E=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 _.P("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.P(_.h,{cond:function(){return Q().image},
then:function(b){return _.P(_.gE,{data:b,alt:function(){return E().alt},
contentMode:function(){return E().contentMode},
targetWidth:function(){return E().targetWidth},
targetHeight:function(){return E().targetHeight},
className:function(){return E().className}})}}),_.P("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.P("div",{class:_.QZ("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.xb,{each:function(){var b;
return(b=Q().description)!=null?b:[]}},function(b){return _.P("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.P(ho,{content:b}))})))},"df"),p9h=_.x(function(v){var Q=v.list;
var V=function(){var E;return(E=Q().items)!=null?E:[]};
return _.P("div",{class:"ytwGenAiRichTextViewModelListContent"},_.P(_.h,{cond:function(){return Q().title},
then:function(E){return _.P("div",{class:_.QZ("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.P(_.tD,{text:E}))}}),_.P(_.h,{cond:function(){return Q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.P("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.P(_.xb,{each:V},function(E){return _.P("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.P(ho,{content:E,isInList:!0}))}))}}),_.P(_.h,{cond:function(){return Q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.P("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.P(_.xb,{each:V},function(E){return _.P("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.P(ho,{content:E,isInList:!0}))}))}}),_.P(_.h,{cond:function(){return Q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.P("div",{class:"ytwGenAiRichTextViewModelImageList"},_.P(_.xb,{each:V},function(E){return _.P("div",{class:"ytwGenAiRichTextViewModelListItem"},_.P(ho,{content:E,isInList:!0}))}))}}))},"ef"),eTn=_.x(function(v){var Q=v.table;
return _.P("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.P("thead",null,_.P("tr",null,_.P(_.xb,{each:function(){var V,E;return(E=(V=Q().header)==null?void 0:V.cells)!=null?E:[]}},function(V){return _.P("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.P(_.xb,{each:function(){return V.contents}},function(E){return _.P(ho,{content:E})}))}))),_.P("tbody",null,_.P(_.xb,{each:function(){var V;
return(V=Q().rows)!=null?V:[]}},function(V){return _.P("tr",null,_.P(_.xb,{each:function(){return V.cells}},function(E){return _.P("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.P(_.xb,{each:function(){return E.contents}},function(b){return _.P(ho,{content:b})}))}))})))},"ff"),ho=_.x(function(v){var Q=v.content;
var V=_.Wn(v.isInList,!1),E=function(){var b,F;return(F=(b=Q().contentBlock)==null?void 0:b.contents)!=null?F:[]};
return _.P("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.P(_.h,{cond:function(){return Q().text},
then:function(b){return _.P(_.tD,{className:"ytwGenAiRichTextViewModelText",text:b})}}),_.P(_.h,{cond:function(){return Q().image},
then:function(b){return _.P(tZm,{imageData:b,isInList:V})}}),_.P(_.h,{cond:function(){return Q().list},
then:function(b){return _.P(p9h,{list:b})}}),_.P(_.h,{cond:function(){return Q().contentBlock},
then:function(){return _.P("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.P(_.xb,{each:E},function(b){return _.P(ho,{content:b,isInList:!1})}))}}),_.P(_.h,{cond:function(){return Q().table},
then:function(b){return _.P(eTn,{table:b})}}))},"gf"),ZE0=_.x(function(v){var Q={};
Q=_.Yl("ytwGenAiRichTextViewModelHost",(Q.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.y9("search_overview_link_style")),Q));return _.P("gen-ai-rich-text-view-model",{class:Q},_.P(ho,{content:function(){return v.data().content}}))},"hf");_.Pbq=_.x(function(v){var Q=v.data;var V=function(){var C;return((C=Q().loadingUi)!=null?C:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},E=function(){return Q().isLoading&&(V()==="UNSPECIFIED"||V()==="GHOST_CARD")},b=function(){return!Q().isLoading},F=function(){return!!Q().content&&!Q().contents},t=function(){return!!Q().contents},p=function(){return!!Q().nextQueryButtons},Z=function(){return Q().isLoading&&V()==="INVISIBLE"},d=function(){var C,R;
return(R=(C=Q().headerIcon)==null?void 0:C.iconType)!=null?R:""},w=function(){var C;
return(C=Q().content)!=null?C:""},A=function(){return!!Q().sourcesSection},k,T=!((k=_.ht().resolve(_.d$(_.JR)))==null||!k()),c=_.Rr(function(){var C=[],R=Q().contents;
if(R)for(var l=0;l<R.length;l++){var S=_.y(R&&R[l],YZX);S&&C.push(S)}return C},void 0,"gcCsZb");
_.jg(function(){Q().isLoading||_.Mp("so_re",void 0,"search_overview_answer")});
return _.P("ytd-overview-answer-view-model",{class:function(){var C={};C=(C.ytdOverviewAnswerViewModelHost=!0,C.ytdOverviewAnswerViewModelDarkBackground=T&&!Z(),C.ytdOverviewAnswerViewModelLightBackground=!T&&!Z(),C);return _.Yl(C)}},_.P(_.h,{cond:function(){return!Z()},
then:function(){return _.P(_.w7,null,_.P("h2",null,_.P("div",{class:"ytdOverviewAnswerViewModelHeader"},_.P(_.h,{cond:d,then:function(C){return _.P("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.P(_.L_,{icon:C}))}}),_.P("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.P("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return Q().headerText}),_.P("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.P(_.tD,{text:function(){return Q().headerSubtext}}))))),_.P(_.h,{cond:E,
then:function(){return _.P(Dr9,null)}}),_.P(_.h,{cond:b,
then:function(){return _.P(_.w7,null,_.P(_.h,{cond:F,then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelText"},_.P(_.dh,{text:w,isSmallText:!0}))}}),_.P(_.h,{cond:t,
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelRichText"},_.P(_.xb,{each:c},function(C){return _.P(ZE0,{data:C})}))}}),_.P(_.h,{cond:p,
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.P(_.Pw,{data:function(){return Q().nextQueryButtons}},{buttonViewModel:function(C){return _.P(_.D6,{data:C.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.ZP}))}}),_.P("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.P("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.P(_.h,{cond:function(){return!!_.y(Q().likeButtonViewModel,_.Uv)&&!!_.y(Q().dislikeButtonViewModel,_.mp)},
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.P(_.bL,{data:function(){return _.y(Q().likeButtonViewModel,_.Uv)},
disableIconAnimation:!0}),_.P(_.Es,{data:function(){return _.y(Q().dislikeButtonViewModel,_.mp)}}))}})),_.P(_.h,{cond:function(){var C;
return(C=Q().sourcesSection)==null?void 0:C.headerText},
then:function(C){return _.P("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.P(_.tD,{text:C}))}})),_.P(_.h,{cond:A,
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelSources"},_.P(_.Pw,{data:function(){var C;return(C=Q().sourcesSection)==null?void 0:C.sourcesShelf}},{buttonViewModel:_.D6,
horizontalShelfViewModel:function(C){return _.P(_.ZP,{data:C.data,includeMargin:!0,hasPeek:!0})}}))}}),_.P(_.h,{cond:function(){return Q().disclaimerText},
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.P(_.tD,{text:function(){return Q().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var dmn=_.x(function(v){var Q=_.o1(v,{}).data;return _.P("yt-shopping-content-line-item-view-model",{class:_.QZ("ytShoppingContentLineItemViewModelHost")},_.P(_.tD,{text:function(){var V;return(V=Q().text)==null?void 0:V.attributedString}}))},"kf");_.wh=_.x(function(v){v=_.o1(v,{});var Q=v.data,V={};return _.P("yt-shopping-content-line-view-model",{class:_.QZ("ytShoppingContentLineViewModelHost",v.className,(V.ytShoppingContentLineViewModelTruncateText=function(){return!Q().wrapContent},V)),
style:_.iP({"--shopping-content-line-gap":function(){return Q().itemGap?Q().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return Q().lineHeight?Q().lineHeight+"px":void 0}})},_.P(_.xb,{each:function(){return(Q().items||[]).map(function(E){return _.y(E,npa)}).filter(function(E){return!!E})}},function(E){return _.P(dmn,{data:E})}))},"lf");var hTI=_.x(function(v){var Q=v.data;var V=function(){var F;return((F=Q().image)==null?void 0:F.height)||48},E=function(){var F;
return((F=Q().image)==null?void 0:F.width)||48},b=function(){return"width: "+E()+"px; height: "+V()+"px;"};
return _.P("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var F,t,p,Z=((F=_.ht().resolve(_.d$(_.JR)))==null?0:F())?(t=Q())==null?void 0:t.darkThemeBackgroundColor:(p=Q())==null?void 0:p.lightThemeBackgroundColor;return"background-color: "+(Z?_.CF(Z):"")+";"},
el:_.ud(_.C4(function(){var F;return(F=Q())==null?void 0:F.rendererContext}))},_.P(_.h,{cond:function(){var F,t;
return(t=(F=Q().image)==null?void 0:F.image)!=null?t:Q().thumbnail},
then:function(F){return _.P("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var t;return"background-color: "+(((t=Q().image)==null?0:t.backgroundColor)?_.CF(Q().image.backgroundColor):"")+";"+b()}},_.P(_.gE,{data:F,
height:V,width:E,style:b,alt:""}))}}),_.P("div",{class:"ytShoppingDescriptionItemViewModelText"},_.P(_.Pw,{data:function(){return Q().line1}},{shoppingContentLineViewModel:function(F){return _.P(_.wh,{data:F.data})}}),_.P(_.Pw,{data:function(){return Q().line2}},{shoppingContentLineViewModel:function(F){return _.P(_.wh,{data:F.data})}}),_.P(_.Pw,{data:function(){return Q().line3}},{shoppingContentLineViewModel:function(F){return _.P(_.wh,{data:F.data})}})))},"mf");var w95=_.x(function(v){var Q=v.data;var V=v.active;var E=_.Ze("transcript-segment-view-model");_.uH(function(){var b,F,t,p=((b=_.ht().resolve(_.d$(_.JR)))==null?0:b())?(F=Q())==null?void 0:F.darkThemeColorPalette:(t=Q())==null?void 0:t.lightThemeColorPalette;p&&(p.additiveBackground&&E.value.style.setProperty("--timestamp-active-background-color",_.CF(p.additiveBackground)),p.textSecondary&&E.value.style.setProperty("--timestamp-active-color",_.GA(p.textSecondary)))},"TnVCnb");
v={};return _.P("transcript-segment-view-model",{class:_.QZ("ytwTranscriptSegmentViewModelHost",(v.ytwTranscriptSegmentViewModelHostActive=V,v.ytwTranscriptSegmentViewModelHostModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),v)),el:E},_.P(_.h,{cond:function(){var b;return(b=Q())==null?void 0:b.timestamp},
then:function(b){var F={};return _.P(_.w7,null,_.P("div",{class:_.QZ("ytwTranscriptSegmentViewModelTimestamp",(F.ytwTranscriptSegmentViewModelTimestampActive=V,F)),"aria-hidden":!0},b),_.P("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var t=b().split(":").map(Number),p=_.L(t.reverse());t=p.next().value;var Z=p.next().value;p=p.next().value;return _.iAB({hours:p,minutes:Z,seconds:t})}))}}),_.P(_.tD,{text:function(){var b,F,t;
return(t=(b=Q())==null?void 0:b.attributedText)!=null?t:{content:(F=Q())==null?void 0:F.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var A35=_.x(function(v){var Q=v.data;return _.P("div",{class:"videoAttributesSectionViewModelHeader"},_.P("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.P("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return Q().headerTitle}),_.P(_.h,{cond:function(){return Q().headerInfoButton},
then:function(){return _.P(_.Pw,{data:function(){return Q().headerInfoButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.P(_.h,{cond:function(){return Q().headerSubtitle},
then:function(){return _.P("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return Q().headerSubtitle})}}))},"pf"),k05=_.x(function(v){function Q(C){return Math.max(Math.min(C,0),d()-p())}
var V=v.data;var E;v=_.Ze("div",function(C){var R=function(){w(C.clientWidth)};
R();window.ResizeObserver&&(E=new ResizeObserver(R),E.observe(C))});
var b=_.Ze("div",function(C){Z(C.scrollWidth)}),F=_.L(_.Ge(0,void 0,"C3XQAe")),t=F.next().value;
F=F.next().value;var p=t,Z=F;F=_.L(_.Ge(0,void 0,"db7y3"));t=F.next().value;F=F.next().value;var d=t,w=F;t=_.L(_.Ge(0,void 0,"RchC7"));var A=t.next().value,k=t.next().value;_.j_(function(){var C;(C=E)==null||C.disconnect()});
var T=function(){k(Q(A()+d()))},c=function(){k(Q(A()-d()))};
return _.P("yt-video-attributes-section-view-model",null,_.P("div",{class:"videoAttributesSectionViewModelHost"},_.P(_.h,{cond:function(){return V().headerTitle},
then:function(){return _.P(A35,{data:V})}}),_.P("div",{class:_.QZ("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:v},_.P("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.iP({transform:function(){var C=A();_.r7("HTML_DIR")==="rtl"&&(C*=-1);return"translateX("+C+"px)"}}),
el:b},_.P(_.Pw,{data:function(){return V().videoAttributeViewModels}},{videoAttributeViewModel:viV}))),_.P(_.Pw,{data:function(){return V().footerButton}},{buttonViewModel:function(C){return _.P(_.D6,{data:C.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.P(_.h,{cond:function(){return A()<0&&V().previousButton},
then:function(){return _.P("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.P(_.Pw,{data:function(){return V().previousButton}},{buttonViewModel:function(C){return _.P(_.D6,{data:C.data,
onClick:T})}}))}}),_.P(_.h,{cond:function(){return A()>d()-p()&&V().nextButton},
then:function(){return _.P("div",{class:"videoAttributesSectionViewModelRightArrow"},_.P(_.Pw,{data:function(){return V().nextButton}},{buttonViewModel:function(C){return _.P(_.D6,{data:C.data,
onClick:c})}}))}})))},"qf");
k05.idomCompat=!0;var TGn=_.x(function(v){var Q=v.data;var V=v.active;var E={},b={};return _.P("timeline-item-view-model",{class:_.QZ("ytwTimelineItemViewModelHost",(E.ytwTimelineItemViewModelHostChapterChild=v.chapterChild,E.ytwTimelineItemViewModelModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),E))},_.P("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.P("div",{class:_.QZ("ytwTimelineItemViewModelTimestamp",(b.ytwTimelineItemViewModelTimestampActive=
V,b))},function(){return Q().timestamp})),_.P("div",{class:"ytwTimelineItemViewModelContentItems"},_.P(_.Pw,{data:function(){return Q().contentItems}},{transcriptSegmentViewModel:function(F){return _.P(w95,{data:F.data,
active:V})},
videoAttributesSectionViewModel:k05})))},"rf");var YB$=_.x(function(v){var Q=v.data;v={};return _.P("timeline-chapter-view-model",{class:_.QZ("ytwTimelineChapterViewModelHost")},_.P("div",{class:_.QZ("ytwTimelineChapterViewModelTitle",(v.ytwTimelineChapterViewModelModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),v))},function(){return Q().title}),_.P(_.Pw,{data:function(){return Q().contents}},{timelineItemViewModel:function(V){return _.P(TGn,{data:V.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(V){return _.P(k05,{data:V.data})}}))},"sf");var y3Y=_.x(function(v){var Q=v.data;var V=_.Ze("macro-markers-panel-item-view-model"),E=_.p4(_.d83,function(){var F;return(F=Q().markersEngagementPanelSyncEntityKey)!=null?F:""}),b=function(){var F;
return((F=E())==null?void 0:F.activeItemIndex)===Q().index};
v=_.EP(function(F){var t,p,Z,d,w;return _.e(function(A){if(A.nextAddress==1)return F.stopPropagation(),_.cw(_.yw(F),V.value,["A".toString(),"BUTTON".toString()])?A.return():(t=_.MQ(Q().onTap))?A.yield(_.Eu(),2):A.return();p=A.yieldResult;d=(Z=_.y(t,_.sn))==null?void 0:Z.startTimeSeconds;d===void 0||(w=p)!=null&&w.seekTo(d,!0);_.q1(A)})});
return _.P("macro-markers-panel-item-view-model",{class:_.QZ("ytwMacroMarkersPanelItemViewModelHost",{"is-active":b}),el:V,"on:click":v,tabindex:0,role:"button"},_.P(_.Pw,{data:function(){var F;return(F=Q())==null?void 0:F.item}},{timelineChapterViewModel:function(F){return _.P(YB$,{data:F.data,
active:b})},
timelineItemViewModel:function(F){return _.P(TGn,{data:F.data,active:b})},
videoAttributeViewModel:viV,shoppingDescriptionItemViewModel:hTI}))},"tf");
y3Y.idomCompat=!0;_.ad(y3Y,"macro-markers-panel-item-view-model",{props:{data:_.pJ}});_.ad(k05,"yt-video-attributes-section-view-model",{props:{data:_.pJ}});var c3n=_.x(function(v){var Q=function(){var V,E,b;return(b=(V=v.data().leadingLogoAccessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label)!=null?b:""};
return _.P("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.P(_.h,{cond:function(){return v.data().leadingLogo},
then:function(V){return _.P(_.gE,{className:"ytwFantasySectionHeaderViewModelLogo",data:V,alt:Q})}}),_.P("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.P(_.tD,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return v.data().title}}),_.P(_.tD,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return v.data().subtitle}})),_.P(_.Pw,{data:function(){return v.data().trailingButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var fts=_.x(function(v){var Q={};Q=_.QZ("ytwFantasyTeamViewModelHost",(Q.ytwFantasyTeamViewModelCompact=function(){var b;return!((b=v.compact)==null||!b.call(v))},Q.ytwFantasyTeamViewModelUser=function(){return v.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},Q.ytwFantasyTeamViewModelOpponent=function(){return v.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},Q));
var V=function(){var b,F,t;return(t=(b=v.data().teamLogoAccessibility)==null?void 0:(F=b.accessibilityData)==null?void 0:F.label)!=null?t:""},E=_.p4(wDm,function(){return v.data().teamEntityKey});
return _.P("ytw-fantasy-team-view-model",{class:Q},_.P(_.h,{cond:function(){return v.data().teamLogo},
then:function(b){return _.P(_.gE,{className:"ytwFantasyTeamViewModelLogo",data:b,alt:V})}}),_.P("div",{class:"ytwFantasyTeamViewModelMetadata"},_.P("div",{class:"ytwFantasyTeamViewModelHeader"},_.P(_.tD,{className:"ytwFantasyTeamViewModelScore",
text:function(){var b;return(b=E())==null?void 0:b.score}}),_.P(_.L_,{icon:function(){var b;
return(b=E())==null?void 0:b.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.P(_.tD,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var b;return(b=E())==null?void 0:b.projectedScore}})),_.P(_.tD,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return v.data().primaryText}}),_.P(_.tD,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return v.data().secondaryText}}),_.P(_.tD,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return v.data().tertiaryText}})),_.P(_.tD,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var b;return(b=E())==null?void 0:b.score}}))},"vf");_.ad(_.x(function(v){return _.P("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.P("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.P(_.Pw,{data:function(){return v.data().summaryHeader}},{fantasySectionHeaderViewModel:c3n})),_.P(_.Pw,{data:function(){return v.data().userTeam}},{fantasyTeamViewModel:fts}),_.P(_.Pw,{data:function(){return v.data().opponentTeam}},{fantasyTeamViewModel:fts}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.pJ}});var G05=_.x(function(v){var Q=_.o1(v,{shape:{},useCustomTabRenderable:!1}),V=Q.shape;Q=Q.useCustomTabRenderable;var E=v.customTabRenderable,b=function(){return V().disabled},F=function(){return V().selected},t=function(){return V().title},p=function(){return V().icon},Z=_.Ze("yt-tab-shape");
v=_.EP(function(A){var k;if(!b()&&((k=V().aTagConfig)==null?0:k.onclick))V().aTagConfig.onclick(A);return!1});
var d=_.EP(function(A){if(A.key==="Enter"||A.key==="ArrowUp"||A.key==="ArrowDown")A.preventDefault(),Z.value.click();return!1}),w={};
return _.P("yt-tab-shape",{class:_.QZ("yt-tab-shape",function(){return V().className},(w["yt-tab-shape__tab--last-tab"]=function(){return V().isLastTab},w["yt-tab-shape--host-disabled"]=b,w["yt-tab-shape--host-clickable"]=!E,w)),
role:E?void 0:"tab","aria-selected":F!=null?F:!1,"aria-disabled":b,tabindex:E?void 0:0,"on:click":v,"on:keydown":d,el:Z,"tab-identifier":function(){return V().identifier},
"tab-title":t},_.P(_.h,{cond:Q,then:function(){return E()},
else:function(){var A={},k={};return _.P(_.w7,null,_.P("div",{class:_.QZ("yt-tab-shape__tab",(A["yt-tab-shape__tab--tab-selected"]=F,A))},_.P(_.h,{cond:p,then:function(T){return _.P(_.L_,{className:"yt-tab-shape__tab-icon",icon:function(){return T().iconType}})}}),t),_.P("div",{class:_.QZ("yt-tab-shape__tab-bar",(k["yt-tab-shape__tab-bar--tab-bar-selected"]=F,k))}))}}))},"xf");
G05.idomCompat={callbacks:{customTabRenderable:!0}};_.MZ0=_.x(function(v){var Q=v.shape;v=_.L(_.Ge(48,void 0,"nDAx4"));var V=v.next().value,E=v.next().value;v=_.L(_.Ge(0,void 0,"GCgjqb"));var b=v.next().value,F=v.next().value,t=function(){return Q().tabs},p=_.Ze("yt-tab-group-shape"),Z=function(){var k,T;
return(T=(k=t())==null?void 0:k.findIndex(function(c){return c.selected}))!=null?T:-1};
v=_.L(_.Ge(!1,void 0,"SU01tf"));var d=v.next().value,w=v.next().value,A=function(){d()||_.XT.addJob(function(){w(!0)},0)};
_.uH(function(){var k=Z(),T=_.XT.addJob(function(){var c,C=((c=p.value)==null?void 0:c.querySelectorAll("yt-tab-shape"))||[],R;E(((R=k>-1?C[k]:void 0)==null?void 0:R.getBoundingClientRect().width)||0);for(R=c=0;R<k;R++)c+=C[R].offsetWidth+24;_.r7("HTML_DIR")==="rtl"&&(c=-c);F(c);A()},8,0);
_.j_(function(){_.XT.cancelJob(T)})},"PMwgb");
v={};return _.P("yt-tab-group-shape",{class:_.QZ("tabGroupShapeHost",(v.tabGroupShapeOverflowHidden=function(){return Q().isOverflowHidden},v)),
el:p},_.P(_.h,{cond:t,then:function(k){return _.P(_.w7,null,_.P("div",{class:"tabGroupShapeTabs",role:"tablist"},_.P(_.xb,{each:k},function(T,c){return _.P(G05,{shape:function(){return Object.assign({},T,{isLastTab:c()===k().length-1})},
customTabRenderable:T.customTabRenderable,useCustomTabRenderable:!!T.customTabRenderable})})),_.P(Cbj,{width:V,
sliderOffset:b,enableTransition:d}))}}))},"zf");
_.MZ0.idomCompat=!0;var Cbj=_.x(function(v){var Q=_.Wn(v.sliderOffset,0),V=v.width,E=v.enableTransition;v={};return _.P("div",{class:_.QZ("tabGroupShapeSlider",(v.tabGroupShapeSliderTransition=function(){return E()},v)),
style:_.iP({width:function(){return V()+"px"},
transform:function(){return"translateX("+Q()+"px)"}})})},"Af");var OEY=_.x(function(v){var Q=function(){var F,t,p;return(p=(F=v.data().playerLogoAccessibility)==null?void 0:(t=F.accessibilityData)==null?void 0:t.label)!=null?p:""},V=_.p4(AuS,function(){return v.data().playerEntityKey}),E={};
E=_.QZ("ytwFantasyPlayerViewModelHost",(E.ytwFantasyPlayerViewModelPlaying=function(){var F;return!((F=V())==null||!F.isPlayerPlaying)},E.ytwFantasyPlayerViewModelOnField=function(){var F;
return((F=V())==null?void 0:F.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},E.ytwFantasyPlayerViewModelRedZone=function(){var F;
return((F=V())==null?void 0:F.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},E));
var b=function(){var F,t,p,Z=((F=_.ht().resolve(_.d$(_.JR)))==null?0:F())?(t=v.data().playerLogoBackgroundColor)==null?void 0:t.darkTheme:(p=v.data().playerLogoBackgroundColor)==null?void 0:p.lightTheme;return Z===void 0?"":_.CF(Z)};
return _.P("ytw-fantasy-player-view-model",{class:E},_.P(_.h,{cond:function(){return v.data().playerLogo},
then:function(F){return _.P("div",{class:"ytwFantasyPlayerViewModelLogo"},_.P("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.P(_.gE,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.iP({"background-color":b}),data:F,alt:Q})),_.P("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.P(_.L_,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.P("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.P("div",{class:"ytwFantasyPlayerViewModelHeader"},_.P(_.tD,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var F;return(F=v.data())==null?void 0:F.playerNameText}}),_.P(_.tD,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var F;return(F=v.data())==null?void 0:F.playerDescriptionText}})),_.P("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.P(_.tD,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var F;return(F=V())==null?void 0:F.gamePeriodText}}),_.P(_.tD,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var F;return(F=v.data())==null?void 0:F.opponentTeamText}}),_.P(_.tD,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var F;return(F=V())==null?void 0:F.gameStatusText}}),_.P(_.tD,{className:_.QZ("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var F;return(F=V())==null?void 0:F.playerStatusText}})),_.P("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.P(_.tD,{text:function(){var F;
return(F=V())==null?void 0:F.playerStatsText}}))),_.P(_.tD,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var F;return(F=V())==null?void 0:F.fantasyScore}}))},"Bf");var Dm8=_.x(function(v){return _.P("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.P(_.h,{cond:function(){return v.data().players},
then:function(Q){return _.P(_.Pw,{data:Q},{fantasyPlayerViewModel:OEY})}}))},"Cf");var RTn=_.x(function(v){var Q=_.L(_.K_(function(){var b;return(b=v.data().selectedTabIdentifierKey)!=null?b:""})),V=Q.next().value,E=Q.next().value;
_.uk(function(){var b;(b=v.setSelectedTabSignal)==null||b.call(v,V)});
return _.P("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.P("div",{class:"ytTabbedViewModelTabGroup"},_.P(_.MZ0,{shape:function(){var b=v.data(),F=[],t={tabs:F};if(!b.tabs)return t;b=_.L(b.tabs);for(var p=b.next(),Z={};!p.done;Z={tabViewModel:void 0},p=b.next())if(Z.tabViewModel=_.y(p.value,J$p),Z.tabViewModel){var d=p=void 0;F.push({aTagConfig:{onclick:function(w){return function(){var A;E((A=w.tabViewModel.tabIdentifier)!=null?A:"")}}(Z)},
identifier:Z.tabViewModel.tabIdentifier,selected:V()===Z.tabViewModel.tabIdentifier,title:(d=(p=Z.tabViewModel.title)==null?void 0:p.content)!=null?d:""})}return t}})),_.P(_.Pw,{data:function(){var b,F=_.L((b=v.data().tabs)!=null?b:[]);
for(b=F.next();!b.done;b=F.next())if((b=_.y(b.value,J$p))&&b.tabIdentifier===V())return b.content}},{fantasyRosterViewModel:Dm8}))},"Ef");_.ad(_.x(function(v){var Q=_.L(RE3()),V=Q.next().value,E=Q.next().value;return _.P("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.P(_.tD,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return v.data().title}}),_.P(_.h,{cond:function(){return v.data().tabbedViewModel},
then:function(b){return _.P(_.Pw,{data:b},{tabbedViewModel:function(F){return _.P(RTn,{data:F.data,setSelectedTabSignal:E})}})}}),_.P(_.h,{cond:function(){var b,F=(b=_.y(v.data().tabbedViewModel,NqN))==null?void 0:b.tabs;
b=_.y(F==null?void 0:F[0],J$p);F=_.y(F==null?void 0:F[1],J$p);var t=b==null?void 0:b.tabIdentifier;if(V()===t){var p,Z;if(!((p=_.y(b==null?void 0:b.content,$nq))==null?0:(Z=p.players)==null?0:Z.length))return v.data().noUserTeamPlayersText}else{var d,w;if(!((d=_.y(F==null?void 0:F.content,$nq))==null?0:(w=d.players)==null?0:w.length))return v.data().noOpponentTeamPlayersText}},
then:function(b){return _.P(_.tD,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:b})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){return _.P("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.P(_.tD,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return v.data().title}}),_.P(_.h,{cond:function(){return v.data().matchupTeamPairs},
then:function(Q){return _.P(_.xb,{each:Q,keyBy:"INDEX"},function(V){return _.P("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.P(_.Pw,{data:function(){return[V().firstTeam,V().secondTeam]}},{fantasyTeamViewModel:function(E){return _.P(fts,{data:E.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=function(){var b,F,t;return(t=(b=v.data().userLogoAccessibility)==null?void 0:(F=b.accessibilityData)==null?void 0:F.label)!=null?t:""},V=function(){var b,F,t;
return(t=(b=v.data().opponentLogoAccessibility)==null?void 0:(F=b.accessibilityData)==null?void 0:F.label)!=null?t:""},E=_.p4(hRo,function(){return v.data().entityKey});
return _.P("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.P("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.P(_.h,{cond:function(){return v.data().userLogo},
then:function(b){return _.P(_.gE,{className:"ytwFantasyWinProbabilityViewModelLogo",data:b,alt:Q})}}),_.P("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.P(_.tD,{text:function(){return v.data().title}})),_.P(_.h,{cond:function(){return v.data().opponentLogo},
then:function(b){return _.P(_.gE,{className:"ytwFantasyWinProbabilityViewModelLogo",data:b,alt:V})}})),_.P("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.P("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.P(_.tD,{text:function(){var b;
return(b=E())==null?void 0:b.userWinNumberLabel}})),_.P("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.P("div",{class:_.QZ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.iP({flex:function(){var b,F;return(F=(b=E())==null?void 0:b.userWinNumber)!=null?F:50}})}),_.P("div",{class:_.QZ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.iP({flex:function(){var b,F;return(F=(b=E())==null?void 0:b.opponentWinNumber)!=null?F:50}})})),_.P("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.P(_.tD,{text:function(){var b;
return(b=E())==null?void 0:b.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.pJ}});var nQd={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},lth=_.x(function(v){return _.P(_.Pw,{data:v.button},{buttonViewModel:function(Q){return _.P(_.D6,{data:Q.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),qB7=_.x(function(v){return _.P("ytd-backstage-locked-post-view-model",{class:_.QZ("ytdBackstageLockedPostViewModelHost",v.className)},_.P("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.P("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.P(_.Pw,
{data:function(){return v.data().authorAvatar}},{decoratedAvatarViewModel:_.VO})),_.P("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.P("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.P(_.tD,{text:function(){return v.data().authorText}})),_.P("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.P(_.tD,{text:function(){return v.data().publishedTimeText}}),_.P(_.Pw,{data:function(){return v.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(Q){return _.P(qwZ,
{data:Q.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.P("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.P(_.tD,{text:function(){return v.data().contentText}})),_.P(_.BU,null,_.P(_.J1,{when:function(){return v.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.P("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.P(_.gE,{data:nQd,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.P(_.tD,{text:function(){return v.data().lockedText}}))}),_.P(_.J1,{when:function(){return v.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.P("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.P("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.P(_.gE,{data:nQd,
alt:""})),_.P(_.tD,{text:function(){return v.data().lockedText}}))})),_.P("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.P(lth,{button:function(){return v.data().likeButton}}),_.P("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return v.data().voteCountA11y}},_.P(_.tD,{text:function(){return v.data().voteCount}})),_.P(lth,{button:function(){return v.data().dislikeButton}}),_.P(lth,{button:function(){return v.data().commentButton}}),_.P("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return v.data().commentCountA11y}},_.P(_.tD,{text:function(){return v.data().commentCount}}))))},"Jf");
qB7.idomCompat=!0;_.ad(qB7,"ytd-backstage-locked-post-view-model",{props:{data:_.pJ,className:_.pJ}});_.yZ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Ao=function(){var v=_.z.apply(this,arguments)||this;v.darkerPanels=_.Y("web_watch_darker_panels");v.commentsHidePanelButton=!1;v.isWatchGrid=!1;v.continuationShowButton=!1;v.isSearch=!1;v.isConstrainedList=!1;v.isWatch=!1;v.eligibleToSwitchToGrid=!1;v.useBigThumbs=!1;v.notSticky=!1;v.epRestyle=!1;v.isCarouselInFeed=!0;v.topSpacingZero=!1;v.continuationIsInitialLoad=!0;v.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");v.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");
v.mastheadHeight=0;v.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};v.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return v};
_.f(Ao,_.z);_.K=Ao.prototype;_.K.updateLockupContainerTypes=function(v){if(this.eligibleToSwitchToGrid){var Q;(Q=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||Q.forEach(function(V){V.containerType=v})}};
_.K.getItemsPath=function(){return"data.contents"};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.K.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.Y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Y("kevlar_low_priority_continuation")}}};
_.K.created=function(){};
_.K.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.K.handleIntersect=function(v){this.notSticky=v[0].intersectionRatio===1};
_.K.attached=function(){var v=this;if(_.Y("web_fix_sticky_playlist_header_v2")){var Q=_.Y("web_item_section_sticky_header_use_scroll_as_fallback");Q||document.addEventListener("scroll",_.Lh(this,this.updateHeaderState));var V;this.mastheadHeight=((V=document.querySelector("ytd-masthead"))==null?void 0:V.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(E){v.handleIntersect(E)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):Q&&document.addEventListener("scroll",_.Lh(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){v.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.K.detached=function(){if(_.Y("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.Lh(this,this.updateHeaderState));var v;(v=this.intersectionObserver)==null||v.disconnect();var Q;(Q=this.resizeObserver)==null||Q.disconnect()}};
_.K.updated=function(v){v.has("data")&&_.Y("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.K.dispatchChipBarIsSticky=function(){_.Y("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(blN(!this.notSticky))};
_.K.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var v=_.m9(this.hostElement).querySelector("ytd-comments-header-renderer");v&&(v.hidePanelButton=this.commentsHidePanelButton)}};
_.K.onRetrieveLocation=function(v,Q){this.containsComments()&&(this.firstCommentsLoaded=Q.hasComments=!0)};
_.K.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.K.onLoadReloadContinuation=function(v,Q){var V=this;v.stopPropagation();this.isReloading=!0;_.Hj(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(E){var b=_.ht().resolve(_.hn);E=Q(E);b.postData(E).then(function(F){V.onReloadContinuationData(F)})}})};
_.K.onReloadContinuationData=function(v){if(v=this.get("response.continuationContents.itemSectionContinuation",v)||this.get("response.contents.itemSectionRenderer",v)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",v)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",v))this.set("data.contents",v.contents||v.results),v.header&&this.set("data.header",v.header),this.set("data.continuations",
v.continuations||[]);this.isReloading=!1};
_.K.computeContentsClass=function(v){return v?"reloading":""};
_.K.computeSectionIdentifier=function(v){return v==null?void 0:v.sectionIdentifier};
_.K.computeFitContainer=function(v){return(v==null?void 0:v.sectionIdentifier)==="youchat-item-section"};
_.K.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.Y("kevlar_disable_comments_auto_load")};
_.K.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.K.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.K.computeHasDestinationShelfRenderer=function(v){var Q,V;return!!(v==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:V.destinationShelfRenderer)};
_.K.computeHasSectionGroupViewModel=function(v){var Q,V;return!!(v==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:V.sectionGroupViewModel)};
_.K.computeHasQrCodeRenderer=function(v){var Q,V;return!!(v==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:V.qrCodeRenderer)};
_.K.computeStaticCommentsHeader=function(v){return v&&this.containsComments()};
_.K.computeEpRestyle=function(v){return _.Y("web_ep_restyling")&&v&&this.containsComments()};
_.K.computeIsContinuationCommentSection=function(v){return(v==null?void 0:v.targetId)==="shorts-engagement-panel-comments-section"||(v==null?void 0:v.targetId)==="comments-section"||(v==null?void 0:v.targetId)==="engagement-panel-comments-section"};
_.K.computeSuppressPaddingDisclaimer=function(){var v,Q,V,E;return!!((v=this.data)==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:(E=V.productListHeaderRenderer)==null?0:E.suppressPaddingDisclaimer)};
_.K.computeHeaderStyle=function(v){switch(v==null?void 0:v.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.K.dataChanged=function(){this.firstCommentsLoaded=!1};
_.K.observeDataContentsLength=function(){var v,Q;((v=this.data)==null?0:(Q=v.contents)==null?0:Q.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.K.onYtDismissibleItemDismissedChange=function(v){this._setItemDismissed(v.type==="yt-dismissible-item-dismissed")};
_.K.triggerContinuations=function(){for(var v=_.m9(this.hostElement).querySelector("#continuations").children,Q=0;Q<v.length;Q++)v[Q].trigger()};
_.K.triggerInitialContinuations=function(){for(var v=_.m9(this.hostElement).querySelector("#continuations").children,Q=0;Q<v.length;Q++)v[Q].triggerIfNotPreviouslyTriggered()};
_.K.handleYtItemSectionContinuation=function(v,Q){var V;Q&&((V=this.data)==null?void 0:V.sectionIdentifier)!==Q||(this.set("data.continuations",[v]),this.triggerContinuations())};
_.K.handleYtItemSectionReplace=function(v,Q){var V;Q&&((V=this.data)==null?void 0:V.sectionIdentifier)!==Q||(this.set("data.contents",v),this.set("data.continuations",[]))};
_.K.computeUseHeightHack=function(v){return v&&!_.Y("kevlar_disable_height_hack")};
_.K.computeTopSpacingZero=function(v){return v};
_.K.continuationShowButtonChanged=function(){var v=_.m9(this.hostElement).querySelector("ytd-continuation-item-renderer");v&&(v.showButton=this.continuationShowButton)};
_.K.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("data-changed",this.data))};
_.hr.Object.defineProperties(Ao.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Y("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:V.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E,b,F,t;return!!((v=this.data)==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:(E=V.shelfRenderer)==null?0:(b=E.content)==null?0:(F=b.gridRenderer)==null?0:(t=F.targetId)==null?0:t.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:V.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.contents)==null?0:(V=Q[0])==null?0:V.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.y9("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Y("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Y("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Ao.prototype.dataChangedForBinding=Ao.prototype.dataChangedForBinding;Ao.prototype.continuationShowButtonChanged=Ao.prototype.continuationShowButtonChanged;Ao.prototype.onYtDismissibleItemDismissedChange=Ao.prototype.onYtDismissibleItemDismissedChange;Ao.prototype.observeDataContentsLength=Ao.prototype.observeDataContentsLength;Ao.prototype.dataChanged=Ao.prototype.dataChanged;Ao.prototype.onServiceRequestCompleted=Ao.prototype.onServiceRequestCompleted;Ao.prototype.onLoadReloadContinuation=Ao.prototype.onLoadReloadContinuation;
Ao.prototype.onRetrieveLocation=Ao.prototype.onRetrieveLocation;Ao.prototype.commentsHidePanelButtonChanged=Ao.prototype.commentsHidePanelButtonChanged;Ao.prototype.dispatchChipBarIsSticky=Ao.prototype.dispatchChipBarIsSticky;Ao.prototype.updateLockupContainerTypes=Ao.prototype.updateLockupContainerTypes;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ao.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],Ao.prototype,"ytLazyListBehavior",void 0);_.W([_.M(_.Ak.YtNextContinuationBehavior),_.X("design:type",Object)],Ao.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.M(_.wk),_.X("design:type",Object)],Ao.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ao.prototype,"darkerPanels",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Boolean)],Ao.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"commentsHidePanelButton",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"isWatchGrid",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"continuationShowButton",void 0);_.W([_.q({computed:"computeIsContinuationCommentSection(data)"}),_.X("design:type",Boolean)],Ao.prototype,"continuationIsCommentsSection",void 0);
_.W([_.q({value:!0}),_.X("design:type",Boolean)],Ao.prototype,"autoFill",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ao.prototype,"continuationDisablePrescanVisibility",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ao.prototype,"isReloading",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"isSearch",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"isConstrainedList",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"isWatch",void 0);
_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"eligibleToSwitchToGrid",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"useBigThumbs",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ao.prototype,"notSticky",void 0);_.W([_.q({selector:_.OP,reflectToAttribute:!0}),_.X("design:type",Object)],Ao.prototype,"isGridViewEnabled",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.X("design:type",Object)],Ao.prototype,"epRestyle",void 0);_.W([_.O("isWatch"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"hideShortsShelfHeader",null);_.W([_.O("isSearch","isWatch"),_.X("design:type",String),_.X("design:paramtypes",[])],Ao.prototype,"thumbnailWidth",null);
_.W([_.O("isSearch","containerWidth"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ao.prototype,"thumbnailTargetWidth",null);_.W([_.O("isSearch","isWatch","useBigThumbs"),_.X("design:type",String),_.X("design:paramtypes",[])],Ao.prototype,"sizing",null);_.W([_.O("isWatch","isGridViewEnabled","useBigThumbs","data"),_.q({reflectToAttribute:!0}),_.X("design:type",Number),_.X("design:paramtypes",[])],Ao.prototype,"lockupContainerType",null);
_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"hasHeader",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"expFixPlaylistHeader",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"expFixPlaylistHeaderV2",null);
_.W([_.ph("lockupContainerType","data"),_.X("design:type",Function),_.X("design:paramtypes",[Number]),_.X("design:returntype")],Ao.prototype,"updateLockupContainerTypes",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Ao.prototype,"pageSubtype",void 0);_.W([_.q(),_.X("design:type",Number)],Ao.prototype,"containerWidth",void 0);_.W([_.q(),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"isPlaylist",null);
_.W([_.q(),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"isClipList",null);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"isCarouselInFeed",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"isPlaylistVideoContainer",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"isSearchFrictionPage",null);
_.W([_.q({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.X("design:type",Boolean)],Ao.prototype,"useHeightHack",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.X("design:type",Object)],Ao.prototype,"topSpacingZero",void 0);_.W([_.q({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.X("design:type",Boolean)],Ao.prototype,"showButton",void 0);
_.W([_.q(),_.X("design:type",Boolean)],Ao.prototype,"firstCommentsLoaded",void 0);_.W([_.q(),_.X("design:type",Object)],Ao.prototype,"continuationIsInitialLoad",void 0);_.W([_.q({reflectToAttribute:!0,readOnly:!0}),_.X("design:type",Boolean)],Ao.prototype,"itemDismissed",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.X("design:type",String)],Ao.prototype,"sectionIdentifier",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.X("design:type",String)],Ao.prototype,"fitContainer",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.X("design:type",Boolean)],Ao.prototype,"hasDestinationShelfRenderer",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.X("design:type",Boolean)],Ao.prototype,"staticCommentsHeader",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ao.prototype,"enableSqueezebackPanels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ao.prototype,"enableAnchoredPanel",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.X("design:type",Boolean)],Ao.prototype,"hasSectionGroupViewModel",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.X("design:type",Boolean)],Ao.prototype,"hasQrCodeRenderer",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.X("design:type",Boolean)],Ao.prototype,"suppressDisclaimerSeparator",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.X("design:type",String)],Ao.prototype,"headerStyle",void 0);
_.W([_.O("isSearch","isWatch","useBigThumbs"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ao.prototype,"lockupExperiments",null);_.W([_.O("isSearch"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Ao.prototype,"typographyBump",null);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],Ao.prototype,"header",void 0);_.W([_.ph("notSticky"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"dispatchChipBarIsSticky",null);
_.W([_.ph("commentsHidePanelButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"commentsHidePanelButtonChanged",null);_.W([_.tM("yt-retrieve-location"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Ao.prototype,"onRetrieveLocation",null);
_.W([_.tM("yt-load-reload-continuation"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Function]),_.X("design:returntype")],Ao.prototype,"onLoadReloadContinuation",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"onServiceRequestCompleted",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"dataChanged",null);
_.W([_.wg("data.contents.length"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"observeDataContentsLength",null);_.W([_.tM("yt-dismissible-item-dismissed"),_.tM("yt-dismissible-item-undismissed"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Ao.prototype,"onYtDismissibleItemDismissedChange",null);
_.W([_.ph("continuationShowButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"continuationShowButtonChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ao.prototype,"dataChangedForBinding",null);_.W([_.J({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Ao);
_.B(Ao,"ytd-item-section-renderer",function(){if(BQR!==void 0)return BQR;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return BQR=v},{mode:1});var SBf;var qgB=_.u3(_.Lt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var zT5={},l4o=(zT5[0]={title:_.I$(_.Lt("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I$(_.Lt("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.rD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},zT5[1]={title:_.I$(_.Lt("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.rD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},zT5);_.yZ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var kL=function(){var v=_.z.apply(this,arguments)||this;v.allVideosCount=0;v.allPlaylistCount=0;v.isOnline=!1;v.shouldRenderDownloadsBanner=!1;v.shouldRenderDownloadsBannerUpsell=!1;v.hasOptedIntoSmartDownloads=!1;v.areAllSmartDownloadsDeleted=!1;v.smartDownloadsCompleted=!1;return v};
_.f(kL,_.z);kL.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
kL.prototype.attached=function(){this.downloadsToRenderChanged()};
kL.prototype.detached=function(){this.set("renderableData",{})};
kL.prototype.downloadsToRenderChanged=function(){var v=_.oF().getState().entities,Q=_.y_(v),V=_.Y("kevlar_playlist_dl_page_killswitch")?DlZ(v):_.cB(v),E=_.yDE(v),b=_.C6Z(v),F=_.h4(Q);v=_.f7(v);this.set("renderableData",zE0(V,Q,E,b,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,F,v))};
kL.prototype.downloadsToRenderChanged=kL.prototype.downloadsToRenderChanged;_.W([_.M(_.QU),_.X("design:type",Object)],kL.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],kL.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],kL.prototype,"renderableData",void 0);_.W([_.q({selector:_.u40}),_.X("design:type",Object)],kL.prototype,"allVideosCount",void 0);_.W([_.q({selector:hNE}),_.X("design:type",Object)],kL.prototype,"allPlaylistCount",void 0);_.W([_.q({selector:_.Di}),_.X("design:type",Object)],kL.prototype,"isOnline",void 0);_.W([_.q({selector:_.$lo}),_.X("design:type",Object)],kL.prototype,"shouldRenderDownloadsBanner",void 0);
_.W([_.q({selector:_.Ulh}),_.X("design:type",Object)],kL.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.W([_.q({selector:_.I69}),_.X("design:type",Object)],kL.prototype,"hasOptedIntoSmartDownloads",void 0);_.W([_.q({selector:_.HJ9}),_.X("design:type",Object)],kL.prototype,"areAllSmartDownloadsDeleted",void 0);_.W([_.q({selector:mlm}),_.X("design:type",Object)],kL.prototype,"smartDownloadsCompleted",void 0);
_.W([_.wg("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kL.prototype,"downloadsToRenderChanged",null);_.W([_.J({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],kL);
_.B(kL,"ytd-offline-item-section-renderer",function(){if(SBf!==void 0)return SBf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return SBf=v},
{mode:1});var J37;var NGd;var TH=function(){return _.z.apply(this,arguments)||this};
_.f(TH,_.z);
TH.prototype.onDataChanged=function(){if(this.JSC$16927_lastData){var v=this.getFilterClass(this.JSC$16927_lastData.status);v&&this.hostElement.classList.remove(v)}var Q;(v=this.getFilterClass((Q=this.data)==null?void 0:Q.status))&&this.hostElement.classList.add(v);v==="selected"?_.m9(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.m9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");v==="disabled"?_.m9(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.m9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16927_lastData=this.data};
TH.prototype.getFilterClass=function(v){switch(v){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
TH.prototype.onDataChanged=TH.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TH.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],TH.prototype,"onDataChanged",null);_.W([_.J({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],TH);
_.B(TH,"ytd-search-filter-renderer",function(){if(NGd!==void 0)return NGd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return NGd=v},{mode:_.mV("kevlar_poly_si_batch_j075")?1:2});var YL=function(){return _.z.apply(this,arguments)||this};
_.f(YL,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],YL.prototype,"data",void 0);_.W([_.J({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],YL);
_.B(YL,"ytd-search-filter-group-renderer",function(){if(J37!==void 0)return J37;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return J37=v},{mode:_.mV("kevlar_poly_si_batch_j075")?1:2});var xmf;var yH=function(){return _.z.apply(this,arguments)||this};
_.f(yH,_.z);yH.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.yg());this.isCollapsed=!this.isCollapsed};
yH.prototype.navigateToAboutTheseResultsPage=function(){var v=_.s9("https://www.youtube.com/howyoutubeworks/product-features/search/");v?_.VN(window,v,"_blank"):_.Ui(Error("Uh"))};
yH.prototype.dataChanged=function(){this.isCollapsed=!0};
yH.prototype.computeShowBottomBorder=function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.button)==null?0:Q.toggleButtonRenderer)||!((V=this.data)==null||!V.aboutTheseResultsButton)};
yH.prototype.dataChanged=yH.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],yH.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.X("design:type",Boolean)],yH.prototype,"showBottomBorder",void 0);_.W([_.q(),_.X("design:type",Boolean)],yH.prototype,"renderCollapsibleMenu",void 0);
_.W([_.q(),_.X("design:type",Boolean)],yH.prototype,"isCollapsed",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],yH.prototype,"dataChanged",null);_.W([_.J({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],yH);
_.B(yH,"ytd-search-sub-menu-renderer",function(){if(xmf!==void 0)return xmf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xmf=v},{mode:1});var BGm;var gQd=new _.KB("SECTION_LIST_RENDERER_TOKEN");var shs;var co=function(){return _.z.apply(this,arguments)||this};
_.f(co,_.z);co.prototype.computeStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],co.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],co.prototype,"headerStyle",void 0);_.W([_.J({is:"ytd-text-header-renderer",disableElementRegistration:!0})],co);
_.B(co,"ytd-text-header-renderer",function(){if(shs!==void 0)return shs;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return shs=v},{mode:1});var ur5;var f9=function(){return _.z.apply(this,arguments)||this};
_.f(f9,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],f9.prototype,"data",void 0);_.W([_.J({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],f9);
_.B(f9,"ytd-minor-moment-header-renderer",function(){if(ur5!==void 0)return ur5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ur5=v},{mode:1});var jhm;var GH=function(){return _.z.apply(this,arguments)||this};
_.f(GH,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GH.prototype,"data",void 0);_.W([_.J({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],GH);
_.B(GH,"ytd-minor-moment-setting-alert-renderer",function(){if(jhm!==void 0)return jhm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return jhm=v},{mode:1});var WS8;var oQf;var C9=function(){var v=_.z.apply(this,arguments)||this;v.booleanSettingById=!1;v.smartDownloadsEnabledVE=_.Vw(128287);v.smartDownloadsDisabledVE=_.Vw(128286);v.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return v};
_.f(C9,_.z);_.K=C9.prototype;_.K.attachSmartDownloadsSettingVes=function(){var v;this.activeVeForLogging||((v=this.data)==null?void 0:v.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.za(_.tR(),this.smartDownloadsEnabledVE),_.za(_.tR(),this.smartDownloadsDisabledVE))};
_.K.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Hj(this.hostElement,"yt-settings-switch-ready")};
_.K.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.K.onSwitchChange=function(v){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(v=_.jV(v).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.Y("kevlar_settings_switch_resolve_command_killswitch")?_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(v)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.K.handleUpdateSettingsSwitch=function(v){(v=_.y(v,dnA))&&this.data&&this.data.id===v.id&&this.set("data.enabled",!!v.enabled)};
_.K.onToggleSettingsSwitch=function(v,Q){this.data&&this.data.id===v&&this.set("data.enabled",Q!=null?Q:!this.data.enabled)};
_.K.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.fH.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.K.maybeLogSmartDownloadsSettingVisibility=function(){var v=_.Mo(),Q;v&&((Q=this.data)==null?void 0:Q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.gD(v,[this.smartDownloadsEnabledVE]),_.s2(v,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.gD(v,[this.smartDownloadsDisabledVE]),_.s2(v,[this.smartDownloadsEnabledVE])))};
_.K.maybeLogSmartDownloadsSettingClick=function(){var v;((v=this.data)==null?void 0:v.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.N_(_.tR(),this.activeVeForLogging)};
_.K.updateDataEnabledFromBinding=function(v){this.set("data.enabled",v.detail.value)};
_.hr.Object.defineProperties(C9.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!v&&(v=this.ytRendererBehavior.getSimpleString(this.data.title));return v}}});
C9.prototype.dataChanged=C9.prototype.dataChanged;_.W([_.M(_.QU),_.X("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],C9.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],C9.prototype,"data",void 0);_.W([_.q({selector:function(v,Q){if(Object.keys(v==null?void 0:v.entities).length)switch(Q){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Rc3(v.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.X("design:type",Object)],C9.prototype,"booleanSettingById",void 0);_.W([_.q(),_.X("design:type",Gi)],C9.prototype,"activeVeForLogging",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],C9.prototype,"toggleAriaLabel",null);_.W([_.wg("data"),_.wg("booleanSettingById"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],C9.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],C9);
_.B(C9,"ytd-settings-switch-renderer",function(){if(oQf!==void 0)return oQf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return oQf=v},{mode:1});var Mu=function(){return _.z.apply(this,arguments)||this};
_.f(Mu,_.z);Mu.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}}}}};
_.hr.Object.defineProperties(Mu.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var v=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(v+=" remove-left-margin");this.data.extraBottomSpace&&(v+=" extra-bottom-space");return v}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Mu.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Mu.prototype,"contentsClassName",null);_.W([_.J({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Mu);
_.B(Mu,"ytd-minor-moment-setting-section-renderer",function(){if(WS8!==void 0)return WS8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return WS8=v},{mode:1});var X9q;var Oy=function(){return _.z.apply(this,arguments)||this};
_.f(Oy,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Oy.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Oy.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Oy);
_.B(Oy,"ytd-empty-product-details-renderer",function(){if(X9q!==void 0)return X9q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return X9q=v},{mode:1});var atj;var r3s;var DP=function(){var v=_.z.apply(this,arguments)||this;v.expanded=!0;return v};
_.f(DP,_.z);DP.prototype.getBadgeRowClass=function(v,Q,V){for(var E=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),b=E.next();!b.done;b=E.next())b.value.onShow();v=v.selected;return V?v!==-1?v===Q?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(v!==void 0?v:0)===Q?"badge-line":"badge-hidden"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DP.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],DP.prototype,"expanded",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],DP);
_.B(DP,"ytd-sponsorships-loyalty-badges-renderer",function(){if(r3s!==void 0)return r3s;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return r3s=v},{mode:1});var $m0;var RY=function(){var v=_.z.apply(this,arguments)||this;v.expanded=!0;return v};
_.f(RY,_.z);RY.prototype.getContainerClasses=function(v,Q){v=v?"expanded":"collapsed";Q&&(v+=" item");return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],RY.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],RY.prototype,"expanded",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],RY);
_.B(RY,"ytd-sponsorships-perk-renderer",function(){if($m0!==void 0)return $m0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return $m0=v},{mode:1});var It$;var n9=function(){var v=_.z.apply(this,arguments)||this;v.expanded=!0;return v};
_.f(n9,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],n9.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],n9.prototype,"expanded",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],n9);
_.B(n9,"ytd-sponsorships-perks-renderer",function(){if(It$!==void 0)return It$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return It$=v},{mode:1});var lQ=function(){var v=_.z.apply(this,arguments)||this;v.isCollapsed=!1;return v};
_.f(lQ,_.z);lQ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
lQ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
lQ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var v;this.expandCollapseButton=_.y((v=this.data)==null?void 0:v.expandButton,_.KH)}else{var Q;this.expandCollapseButton=_.y((Q=this.data)==null?void 0:Q.collapseButton,_.KH)}};
lQ.prototype.updateExpandCollapseButton=lQ.prototype.updateExpandCollapseButton;lQ.prototype.onDataChanged=lQ.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lQ.prototype,"isCollapsed",void 0);_.W([_.q(),_.X("design:type",Object)],lQ.prototype,"expandCollapseButton",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lQ.prototype,"onDataChanged",null);_.W([_.wg("data","isCollapsed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lQ.prototype,"updateExpandCollapseButton",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],lQ);
_.B(lQ,"ytd-sponsorships-expandable-perks-renderer",function(){if(atj!==void 0)return atj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return atj=v},{mode:1});var HE5;var qu=function(){return _.z.apply(this,arguments)||this};
_.f(qu,_.z);qu.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],qu.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qu.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],qu);
_.B(qu,"ytd-sponsorships-actionable-message-renderer",function(){if(HE5!==void 0)return HE5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return HE5=v},{mode:1});var mmq;var S8=function(){return _.z.apply(this,arguments)||this};
_.f(S8,_.z);_.K=S8.prototype;_.K.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.K.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
_.K.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.K.computeMessageContainerStyle=function(v){var Q=v.expandableItems?" style-clickable":"";return v.messageContainerStyle?v.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+Q:"style-unspecified"+Q};
_.K.isSinglePerk=function(v){return!!v.messageContainerStyle&&(v.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||v.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.K.onExpandedChanged=function(){var v=this;if(this.expanded)for(var Q=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),V=Q.next();!V.done;V=Q.next())V.value.onShow();_.PE(this,function(){_.Hj(v.hostElement,"yt-refit")})};
_.K.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
S8.prototype.onDataChanged=S8.prototype.onDataChanged;S8.prototype.onExpandedChanged=S8.prototype.onExpandedChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],S8.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],S8.prototype,"expanded",void 0);
_.W([_.ph("expanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],S8.prototype,"onExpandedChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],S8.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],S8);
_.B(S8,"ytd-sponsorships-expandable-message-renderer",function(){if(mmq!==void 0)return mmq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return mmq=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var Umh;var zH=function(){return _.z.apply(this,arguments)||this};
_.f(zH,_.z);zH.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"}}}}};
zH.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.y(this.data.endButton,_.KH).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
zH.prototype.onDataChanged=zH.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zH.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zH.prototype,"onDataChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],zH);
_.B(zH,"ytd-sponsorships-heading-renderer",function(){if(Umh!==void 0)return Umh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Umh=v},{mode:1});var vaf;var Jo=function(){return _.z.apply(this,arguments)||this};
_.f(Jo,_.z);_.W([_.q(),_.X("design:type",Object)],Jo.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Jo);
_.B(Jo,"ytd-sponsorships-links-renderer",function(){if(vaf!==void 0)return vaf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vaf=v},{mode:1});var QN8;var Nu=function(){return _.z.apply(this,arguments)||this};
_.f(Nu,_.z);_.K=Nu.prototype;_.K.onDataChanged=function(){if(this.data&&this.data.expandableItems){var v;(v=_.m9(this.hostElement).querySelector("tp-yt-paper-button"))==null||v.setAttribute("role","button")}else{var Q;(Q=_.m9(this.hostElement).querySelector("tp-yt-paper-button"))==null||Q.removeAttribute("role")}};
_.K.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.K.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
_.K.getTileClasses=function(v){return v?"tile expandable-tile":"tile"};
_.K.getButtonDisabled=function(v){return v?void 0:""};
Nu.prototype.onDataChanged=Nu.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Nu.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Nu.prototype,"expanded",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Nu.prototype,"onDataChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Nu);
_.B(Nu,"ytd-sponsorships-list-tile-renderer",function(){if(QN8!==void 0)return QN8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return QN8=v},{mode:1});var Vp8;var Eaj;var xL=function(){return _.z.apply(this,arguments)||this};
_.f(xL,_.z);xL.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xL.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],xL);
_.B(xL,"ytd-sponsorships-promotion-renderer",function(){if(Eaj!==void 0)return Eaj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Eaj=v},{mode:1});var bZd;var Bo=function(){return _.z.apply(this,arguments)||this};
_.f(Bo,_.z);Bo.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Bo.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Bo);
_.B(Bo,"ytd-sponsorships-purchase-option-renderer",function(){if(bZd!==void 0)return bZd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bZd=v},{mode:1});var FAd;var KA$;var iZh=function(){return _.z.apply(this,arguments)||this};
_.f(iZh,_.z);_.W([_.q(),_.X("design:type",Object)],iZh.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],iZh);
_.B(iZh,"ytd-ypc-offer-promo-renderer",function(){if(KA$!==void 0)return KA$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return KA$=v},{mode:1});var gh=function(){return _.z.apply(this,arguments)||this};
_.f(gh,_.z);_.K=gh.prototype;
_.K.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"}}}}};
_.K.expansionCTA=function(v,Q){return v&&(Q?v.collapseCallToAction:v.expansionCallToAction)};
_.K.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
_.K.expansionCallToActionTap=function(){var v=this;this.expanded=!this.expanded;_.PE(this,function(){_.Hj(v.hostElement,"yt-refit")})};
_.K.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var v,Q=(v=this.data)==null?void 0:v.onVisible;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.K.computeDisplayTitle=function(v){return!(!v||this.titledisplaystatus!=="show")};
_.K.computeDisplaySeparator=function(){return!1};
_.K.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
gh.prototype.onDataChanged=gh.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],gh.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],gh.prototype,"data",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],gh.prototype,"expanded",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],gh.prototype,"purchaseButtonClicked",void 0);_.W([_.q({reflectToAttribute:!0,value:"show"}),_.X("design:type",String)],gh.prototype,"titledisplaystatus",void 0);_.W([_.q({computed:"computeDisplayTitle(data.title)"}),_.X("design:type",Boolean)],gh.prototype,"displayTitle",void 0);
_.W([_.q({computed:"computeDisplaySeparator(data)"}),_.X("design:type",Boolean)],gh.prototype,"displaySeparator",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gh.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],gh);
_.B(gh,"ytd-sponsorships-tier-renderer",function(){if(FAd!==void 0)return FAd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FAd=v},{mode:2});var sy=function(){return _.z.apply(this,arguments)||this};
_.f(sy,_.z);
sy.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],sy.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],sy);
_.B(sy,"ytd-sponsorships-management-renderer",function(){if(Vp8!==void 0)return Vp8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Vp8=v},{mode:1});var LAs;var uQ=function(){return _.z.apply(this,arguments)||this};
_.f(uQ,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uQ.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],uQ);
_.B(uQ,"ytd-open-in-native-app-view-model",function(){if(LAs!==void 0)return LAs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return LAs=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var tph;var pNj;var eQ5=_.s$(["top-"]),ZZY=_.s$(["bottom-"]),PxI=_.s$(["left-"]),dZ0=_.s$(["right-"]),hQh={},wNf=function(v,Q,V){v.removeAttribute("top-"+V);v.removeAttribute("bottom-"+V);v.removeAttribute("left-"+V);v.removeAttribute("right-"+V);Q&&(Q.top&&_.p$([_.hd(eQ5)],v,"top-"+V,Q.top),Q.bottom&&_.p$([_.hd(ZZY)],v,"bottom-"+V,Q.bottom),Q.left&&_.p$([_.hd(PxI)],v,"left-"+V,Q.left),Q.right&&_.p$([_.hd(dZ0)],v,"right-"+V,Q.right))};
hQh.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(v){var Q,V=_.m9((Q=this.hostElement)!=null?Q:this),E;Q=this.cardItemBoxBehaviorMarginTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(E=this.hostElement)!=null?E:this;wNf(Q,v,"margin")},
cardItemContainerPaddingChanged_:function(v){var Q,V=_.m9((Q=this.hostElement)!=null?Q:this),E;Q=this.cardItemBoxBehaviorPaddingTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(E=this.hostElement)!=null?E:this;wNf(Q,v,"padding")}}];var j8={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 ASh;var kqm;var Wo=function(){return _.z.apply(this,arguments)||this};
_.f(Wo,_.z);Wo.prototype.textColorChanged_=function(){this.hostElement.style.color=j8[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Wo.prototype.textColorChanged_=Wo.prototype.textColorChanged_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.W([_.M(hQh.YtCardItemBoxBehavior),_.X("design:type",Object)],Wo.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Wo.prototype,"data",void 0);_.W([_.ph("data.textColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wo.prototype,"textColorChanged_",null);
_.W([_.D7({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Wo);
_.B(Wo,"yt-card-item-text-renderer",function(){if(kqm===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ASh===void 0&&(ASh=document.createElement("template"));var E=ASh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);kqm=v}v=kqm;return v},{mode:2});var TVn;var YRd;var oY=function(){return _.z.apply(this,arguments)||this};
_.f(oY,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oY.prototype,"data",void 0);_.W([_.D7({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],oY);
_.B(oY,"yt-card-item-badge-renderer",function(){if(YRd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;TVn===void 0&&(TVn=document.createElement("template"));var E=TVn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);YRd=v}v=YRd;return v},{mode:2});var ySn;var cSf;var Xo=function(){return _.z.apply(this,arguments)||this};
_.f(Xo,_.z);Xo.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xo.prototype,"data",void 0);_.W([_.D7({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Xo);
_.B(Xo,"yt-card-item-text-collection-renderer",function(){if(cSf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ySn===void 0&&(ySn=document.createElement("template"));var E=ySn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);cSf=v}v=cSf;return v},{mode:2});var fXf;var Gqm;var aY=function(){return _.z.apply(this,arguments)||this};
_.f(aY,_.z);aY.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aY.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Number)],aY.prototype,"iconSize",void 0);_.W([_.D7({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],aY);
_.B(aY,"yt-card-item-text-with-button-renderer",function(){if(Gqm===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;fXf===void 0&&(fXf=document.createElement("template"));var E=fXf;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Gqm=v}v=Gqm;return v},{mode:2});var rh=function(){return _.z.apply(this,arguments)||this};
_.f(rh,_.z);rh.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],rh.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rh.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],rh);
_.B(rh,"ytd-commerce-cart-summary-line-item-renderer",function(){if(pNj!==void 0)return pNj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return pNj=v},{mode:1});_.yZ("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var $L=function(){var v=_.z.apply(this,arguments)||this;v.hidden=!1;return v};
_.f($L,_.z);_.K=$L.prototype;_.K.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"}}}}};
_.K.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.K.updateSummary=function(){var v=this.commerceCartCheckoutButtonEntity,Q;if(((Q=this.data)==null?0:Q.cartButton)&&v.checkoutSummaryText){var V,E=cY((V=this.data)==null?void 0:V.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",fr(v.checkoutSummaryText));if(v.checkoutDetailText){var b;V=cY((b=this.data)==null?void 0:b.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",fr(v.checkoutDetailText))}if(v.checkoutAdditionalMetadataText){var F;
b=cY((F=this.data)==null?void 0:F.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",fr(v.checkoutAdditionalMetadataText))}}else v.estimatedTotalPrice&&(F=cY((E=this.data)==null?void 0:E.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",fr(v.estimatedTotalPrice)))};
_.K.updateIsHidden=function(){var v,Q=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isHidden;Q!==void 0&&(this.hidden=Q)};
_.K.updateCheckoutButton=function(){var v,Q=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isDisabled;Q!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",Q);var V;v=(V=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:V.innertubeCommand;v!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",v);var E;V=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.checkoutButtonText;V!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:V})};
$L.prototype.entityChanged=$L.prototype.entityChanged;_.W([_.M(_.QU),_.X("design:type",Object)],$L.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],$L.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],$L.prototype,"fullWidth",void 0);_.W([_.q(),_.X("design:type",Object)],$L.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],$L.prototype,"compact",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$L.prototype,"hidden",void 0);
_.W([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:KBT}),_.X("design:type",Object)],$L.prototype,"commerceCartCheckoutButtonEntity",void 0);_.W([_.ph("commerceCartCheckoutButtonEntity","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$L.prototype,"entityChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],$L);
_.B($L,"ytd-commerce-cart-checkout-button-renderer",function(){if(tph!==void 0)return tph;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return tph=v},{mode:2});var Cxm;_.Mp8={};
_.Mp8.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",_.Lh(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Lh(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(v){!this.tappableItemBehaviorTapEnabled||v.keyCode!==13&&v.keyCode!==32||v.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var v=this.data.onTap;v.ypcGetCartEndpoint?(_.vp(this.hostElement,[v]),this.tappableItemBehaviorTapEnabled=!1):v.ypcOffersEndpoint?_.vp(this.hostElement,[v]):_.Qk(this.hostElement,[v],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(v){this.tappableItemBehaviorTapEnabled=!!v},
tappableItemBehaviorOnTapEnabledChanged_:function(){var v=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(v.setAttribute("tabIndex",0),v.setAttribute("role","button")):(v.removeAttribute("tabIndex"),v.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(v){v.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var OZ5;var DZ8;var IY=function(){return _.z.apply(this,arguments)||this};
_.f(IY,_.z);IY.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.c_("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.c_("sharingToggleButtonAndDefaultButton")}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],IY.prototype,"data",void 0);_.W([_.D7({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],IY);
_.B(IY,"yt-card-item-actions-renderer",function(){if(DZ8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;OZ5===void 0&&(OZ5=document.createElement("template"));var E=OZ5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);DZ8=v}v=DZ8;return v},{mode:2});var RQq;var na5;var lXY;var qRY;var SRj;var zQI;var Ho=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return v};
_.f(Ho,_.z);Ho.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Ho.prototype.handleDarkModeToggledAction_=function(v){this.isDarkTheme_=v};
Ho.prototype.computeThemeImage_=function(v,Q){if(!v||!v.imageLight)return!1;this.isCircular_=v.isCircular;v.imageWidth&&(this.hostElement.style.width=v.imageWidth+"px");v.imageHeight&&(this.hostElement.style.height=v.imageHeight+"px");v.borderWidth&&(this.image.style.borderWidth=v.borderWidth+"px",this.image.style.borderStyle="solid");v.borderColor&&(this.image.style.borderColor=_.CF(v.borderColor));return Q&&v.imageDark?v.imageDark:v.imageLight};
Ho.prototype.computeThemeIcon_=function(v){var Q,V;if(!(v==null?0:(Q=v.themedIcon)==null?0:(V=Q.icon)==null?0:V.iconType))return!1;this.icon.style.color=j8[v.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(v.imageWidth||18)+"px";this.icon.style.height=(v.imageHeight||18)+"px";return _.VK(v.themedIcon.icon.iconType)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(hQh.YtCardItemBoxBehavior),_.X("design:type",Object)],Ho.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ho.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ho.prototype,"data",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],Ho.prototype,"fit",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ho.prototype,"isDarkTheme_",void 0);_.W([_.q({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.X("design:type",Object)],Ho.prototype,"themeImage_",void 0);_.W([_.q({computed:"computeThemeIcon_(data)"}),_.X("design:type",Object)],Ho.prototype,"themeIcon_",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Object)],Ho.prototype,"isCircular_",void 0);
_.W([_.Z7("#image"),_.X("design:type",Object)],Ho.prototype,"image",void 0);_.W([_.Z7("#icon"),_.X("design:type",Object)],Ho.prototype,"icon",void 0);_.W([_.D7({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Ho);
_.B(Ho,"yt-themed-image-renderer",function(){if(zQI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;SRj===void 0&&(SRj=document.createElement("template"));var E=SRj;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);zQI=v}v=zQI;return v},{mode:2});var mc=function(){return _.z.apply(this,arguments)||this};
_.f(mc,_.z);mc.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"}}}}};
mc.prototype.computeImagePlacement_=function(v){return v||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mc.prototype,"data",void 0);_.W([_.q({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.X("design:type",String)],mc.prototype,"imagePlacement",void 0);
_.W([_.D7({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],mc);
_.B(mc,"yt-card-item-text-with-image-renderer",function(){if(qRY===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;lXY===void 0&&(lXY=document.createElement("template"));var E=lXY;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);qRY=v}v=qRY;return v},{mode:2});var Uy=function(){return _.z.apply(this,arguments)||this};
_.f(Uy,_.z);Uy.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Uy.prototype,"data",void 0);_.W([_.D7({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Uy);
_.B(Uy,"yt-card-item-error-renderer",function(){if(na5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;RQq===void 0&&(RQq=document.createElement("template"));var E=RQq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);na5=v}v=na5;return v},{mode:2});var JSY;var NV0;_.yZ("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var vP=function(){return _.z.apply(this,arguments)||this};
_.f(vP,_.z);_.K=vP.prototype;
_.K.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"}}}}};
_.K.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.K.backgroundColorChanged_=function(){var v,Q=(v=this.data)==null?void 0:v.backgroundColor;v=j8[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.m9(this.hostElement).querySelector("#main-content").style.backgroundColor=v};
_.K.headerPromoBackgroundColorChanged_=function(){var v,Q=(v=this.data)==null?void 0:v.headerPromoBackgroundColor;v=j8[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.m9(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=v};
_.K.errorRendererVisibilityChanged_=function(){var v=this.isExpanded_,Q;this.isErrorRendererVisible_=!((Q=this.data)==null||!Q.errorRenderer)&&!v};
_.K.onYtToggleButton_=function(v,Q){this.isExpanded_=Q.toggled};
vP.prototype.onYtToggleButton_=vP.prototype.onYtToggleButton_;vP.prototype.errorRendererVisibilityChanged_=vP.prototype.errorRendererVisibilityChanged_;vP.prototype.headerPromoBackgroundColorChanged_=vP.prototype.headerPromoBackgroundColorChanged_;vP.prototype.backgroundColorChanged_=vP.prototype.backgroundColorChanged_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(hQh.YtCardItemBoxBehavior),_.X("design:type",Object)],vP.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.M(_.Mp8.YtTappableItemBehavior),_.X("design:type",Object)],vP.prototype,"ytTappableItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vP.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],vP.prototype,"isExpanded_",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],vP.prototype,"isErrorRendererVisible_",void 0);_.W([_.ph("data.backgroundColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vP.prototype,"backgroundColorChanged_",null);_.W([_.ph("data.headerPromoBackgroundColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vP.prototype,"headerPromoBackgroundColorChanged_",null);
_.W([_.ph("data.errorRenderer","isExpanded_"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vP.prototype,"errorRendererVisibilityChanged_",null);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[Event,Object]),_.X("design:returntype")],vP.prototype,"onYtToggleButton_",null);_.W([_.D7({is:"yt-card-item-renderer",disableElementRegistration:!0})],vP);
_.B(vP,"yt-card-item-renderer",function(){if(NV0===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;JSY===void 0&&(JSY=document.createElement("template"));var E=JSY;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);NV0=v}v=NV0;return v},{mode:2});_.yZ("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var QQ=function(){var v=_.z.apply(this,arguments)||this;v.hidden=!1;return v};
_.f(QQ,_.z);_.K=QQ.prototype;_.K.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.K.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.K.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var v,Q=(v=this.commerceCartHeaderEntity)==null?void 0:v.isHidden;Q!==void 0&&(this.hidden=Q)}};
_.K.updateTitle=function(){var v=this.commerceCartHeaderEntity.isDisabled,Q,V,E=(V=_.y((Q=this.data)==null?void 0:Q.item,Z5N))==null?void 0:V.headingRenderer;E&&(Q=cY(E,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Q+".0.cardItemTextRenderer.textColor",v?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.K.updateSummaryText=function(){var v=this.commerceCartHeaderEntity;if(this.compact){var Q,V,E=(V=_.y((Q=this.data)==null?void 0:Q.item,Z5N))==null?void 0:V.headingRenderer;E&&(Q=cY(E,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Q+".1.cardItemTextRenderer.text",v.shortHeaderSummaryText?fr(v.shortHeaderSummaryText):v.headerSummaryText?fr(v.headerSummaryText):""))}else{var b;if(Q=(b=_.y((E=this.data)==null?void 0:E.item,Z5N))==null?void 0:b.additionalInfoRenderer)Q=cY(Q,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Q+".text",v.headerSummaryText?fr(v.headerSummaryText):"")}};
_.K.updateCheckoutButton=function(){var v=this.commerceCartHeaderEntity,Q,V,E=(V=_.y((Q=this.data)==null?void 0:Q.item,Z5N))==null?void 0:V.additionalInfoRenderer;Q=cY(E,"buttonRenderer");var b;V=(b=this.commerceCartHeaderEntity)==null?void 0:b.isButtonDisabled;var F;b=(F=this.commerceCartHeaderEntity)==null?void 0:F.isButtonHidden;V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Q+".buttonRenderer.isDisabled",V);b!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
b);var t;v=(t=v.checkoutButtonCommand)==null?void 0:t.innertubeCommand;v!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Q+".buttonRenderer.command",v)};
QQ.prototype.entityChanged=QQ.prototype.entityChanged;_.W([_.M(_.QU),_.X("design:type",Object)],QQ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],QQ.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],QQ.prototype,"compact",void 0);_.W([_.q({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"commerceCartHeaderEntity",Q)}}),
_.X("design:type",Object)],QQ.prototype,"commerceCartHeaderEntity",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],QQ.prototype,"hidden",void 0);_.W([_.ph("commerceCartHeaderEntity","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],QQ.prototype,"entityChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],QQ);
_.B(QQ,"ytd-commerce-cart-header-renderer",function(){if(Cxm!==void 0)return Cxm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Cxm=v},{mode:1});var xZ5;var BVq=_.Gm(function(v,Q){var V;return(V=v.onChangeCallback)==null?void 0:V.call(v,Q)},1E3),gaf=_.x(function(v){var Q=v.data;
var V=v.iconMinus;v=v.iconPlus;var E=function(){return!!Q().disabled},b=_.L(_.Ge(0,void 0,"mKh0af")),F=b.next().value,t=b.next().value;
b=_.EP(function(){if(F()===1){var A,k;(k=(A=Q()).onRemoveCommand)==null||k.call(A)}A=F()>Q().maxValue?Q().maxValue:F()-1;t(A);BVq(Q(),A);return!1});
var p=_.EP(function(){if(F()===Q().maxValue)return!1;var A=F()+1;t(A);BVq(Q(),A);return!1});
_.uk(function(){t(Q().value)});
var Z={},d={},w={};return _.P("quantity-incrementer-shape",null,_.P("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.P("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return F()===(Q().onRemoveCommand?0:1)||E()},
"aria-label":function(){return F()!==1?Q().minusLabel:Q().minimumReachedLabel},
"on:click":b},_.P(_.c6,{model:{circular:!0}}),_.P("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.P("div",{class:_.QZ("ytSpecQuantityIncrementerShapeIcon",(Z.ytSpecQuantityIncrementerShapeIconDisabled=function(){return E()||F()===(Q().onRemoveCommand?0:1)},Z))},V()))),_.P("div",{class:_.QZ("ytSpecQuantityIncrementerShapeText",(d.ytSpecQuantityIncrementerShapeTextInvalid=function(){return F()>Q().maxValue},d.ytSpecQuantityIncrementerShapeTextDisabled=E,d))},F),_.P("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return F()>=Q().maxValue||E()},
"aria-label":function(){return F()!==Q().maxValue?Q().plusLabel:Q().maximumReachedLabel},
"on:click":p},_.P(_.c6,{model:{circular:!0}}),_.P("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.P("div",{class:_.QZ("ytSpecQuantityIncrementerShapeIcon",(w.ytSpecQuantityIncrementerShapeIconDisabled=function(){return F()>=Q().maxValue||E()},w))},v())))))},"Lf");_.ad(_.x(function(v){function Q(){V().onRemoveCommand&&_.nx(V().onRemoveCommand)}
var V=v.data;var E=_.p4(YbQ,function(){return V().quantityIncrementerEntityKey});
return _.P("yt-quantity-incrementer-view-model",null,_.P(gaf,{data:function(){var b=V(),F;var t=E()?!((F=E())==null||!F.disabled):!1;var p;F=E()?(p=E())==null?void 0:p.quantity:V().quantity;return xrE(b,t,Q,F)},
iconMinus:function(){return _.P(_.L_,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.P(_.L_,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.pJ}});var VQ=function(){var v=_.z.apply(this,arguments)||this;v.compact=!1;v.hasQuantityIncrementer=!1;return v};
_.f(VQ,_.z);VQ.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"}}}};
VQ.prototype.computeHasQuantityIncrementer=function(){var v;return!!_.y((v=this.data)==null?void 0:v.picker,wya)};
VQ.prototype.onLabelClick=function(){var v;(v=this.dropdownEl)==null||v.open()};
_.W([_.Z7("ytd-dropdown-renderer"),_.X("design:type",Object)],VQ.prototype,"dropdownEl",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],VQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],VQ.prototype,"quantityColor",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],VQ.prototype,"compact",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.X("design:type",Object)],VQ.prototype,"hasQuantityIncrementer",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],VQ);
_.B(VQ,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(xZ5!==void 0)return xZ5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xZ5=v},{mode:1});var sNs;var uaq;var EV=function(){return _.z.apply(this,arguments)||this};
_.f(EV,_.z);EV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EV.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
EV.prototype.updateTitle=function(){var v=this.disabledCartItemEntity;v.disableActionName&&this.set("data.title",fr(v.disableActionName))};
EV.prototype.updateButton=function(){var v,Q=(v=this.disabledCartItemEntity.undoCommand)==null?void 0:v.innertubeCommand;Q!==void 0&&(this.set("data.actionButton.buttonRenderer.command",Q),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
EV.prototype.entityChanged=EV.prototype.entityChanged;_.W([_.M(_.QU),_.X("design:type",Object)],EV.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"disabledCartItemEntity",Q)}}),
_.X("design:type",Object)],EV.prototype,"disabledCartItemEntity",void 0);_.W([_.q(),_.X("design:type",Object)],EV.prototype,"data",void 0);_.W([_.ph("disabledCartItemEntity","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],EV.prototype,"entityChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],EV);
_.B(EV,"ytd-disabled-cart-item-renderer",function(){if(uaq!==void 0)return uaq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return uaq=v},{mode:1});_.yZ("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var bw=function(){var v=_.z.apply(this,arguments)||this;v.compact=!1;v.hidden=!1;v.errorHidden=!1;v.noOnTap=!1;return v};
_.f(bw,_.z);_.K=bw.prototype;
_.K.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"}}}};
_.K.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.K.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var v=this.firstButtonElement;v.alignByText=!0;v.iconAlignByText=!0}};
_.K.computeNoOnTap=function(v){return!v};
_.K.updateQuantityColor=function(){if(this.pickerElement){var v,Q=(v=this.commerceCartItemEntity)==null?void 0:v.quantityColor;this.pickerElement.quantityColor=Q}};
_.K.updateTotalPriceColor=function(){var v,Q=(v=this.commerceCartItemEntity)==null?void 0:v.totalPriceColor;if(Q){var V;v=_.y((V=this.data)==null?void 0:V.quantityPicker,dgR);if(V=_.y(v==null?void 0:v.price,PFa))V.textColor=Q}};
_.K.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var v,Q=(v=this.commerceCartItemEntity)==null?void 0:v.isHidden;Q!==void 0&&(this.hidden=Q)}};
_.K.updateHideErrorMessage=function(){var v,Q=(v=this.commerceCartItemEntity)==null?void 0:v.hideErrorMessage;Q!==void 0&&(this.errorHidden=Q)};
_.K.updateQuantity=function(){var v=this,Q,V=(Q=this.commerceCartItemEntity)==null?void 0:Q.quantity,E;Q=(E=this.commerceCartItemEntity)==null?void 0:E.totalPrice;if(V){this.updateTotalPriceColor();this.updateQuantityColor();var b;E=_.y((b=this.data)==null?void 0:b.quantityPicker,dgR);if(b=_.y(E==null?void 0:E.price,PFa))b.text=Q?{simpleText:Q.content}:void 0;if(Q=_.y(E==null?void 0:E.picker,wya))Q.quantity=V;var F;if(b=(F=_.y(E==null?void 0:E.picker,ZAa))==null?void 0:F.entries){F=!1;Q=void 0;b=
_.L(b);for(E=b.next();!E.done;E=b.next())E=E.value,E.dropdownItemRenderer&&(Q||(Q=E.dropdownItemRenderer),E.dropdownItemRenderer.isSelected=!1,V===E.dropdownItemRenderer.int32Value&&(F=!0,E.dropdownItemRenderer.isSelected=!0));!F&&Q&&(Q.isSelected=!0)}_.PE(this,function(){var t;v.set("data.quantityPicker",_.gI.unsafeClone((t=v.data)==null?void 0:t.quantityPicker))})}};
bw.prototype.onYtRendererstamperFinished=bw.prototype.onYtRendererstamperFinished;bw.prototype.entityChanged=bw.prototype.entityChanged;_.W([_.q(),_.X("design:type",Object)],bw.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bw.prototype,"compact",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],bw.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],bw.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"commerceCartItemEntity",Q)}}),
_.X("design:type",Object)],bw.prototype,"commerceCartItemEntity",void 0);_.W([_.q(),_.X("design:type",Object)],bw.prototype,"quantityPicker",void 0);_.W([_.q(),_.X("design:type",Object)],bw.prototype,"compactQuantityPicker",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bw.prototype,"hidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],bw.prototype,"errorHidden",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.X("design:type",Object)],bw.prototype,"noOnTap",void 0);_.W([_.Z7("ytd-commerce-cart-item-quantity-picker-renderer"),_.X("design:type",Object)],bw.prototype,"pickerElement",void 0);_.W([_.Z7("yt-button-renderer"),_.X("design:type",Element)],bw.prototype,"firstButtonElement",void 0);
_.W([_.ph("commerceCartItemEntity","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bw.prototype,"entityChanged",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bw.prototype,"onYtRendererstamperFinished",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],bw);
_.B(bw,"ytd-commerce-cart-item-renderer",function(){if(sNs!==void 0)return sNs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return sNs=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var jN5;var WAh;var Fs=function(){return _.z.apply(this,arguments)||this};
_.f(Fs,_.z);Fs.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}}}}}};
Fs.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Fs.prototype.updateCheckoutLineItems=function(){var v,Q=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.checkoutLineItems;Q&&(v=Q.map(function(V){a:{var E=V.price,b=V.description;switch(V.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:fr(b),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:fr(E),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:fr(b),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:fr(E),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return V}),this.set("data.summaryLineItems",v))};
Fs.prototype.updateIsHidden=function(){var v,Q=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isHidden;Q!==void 0&&(this.hostElement.hidden=Q)};
Fs.prototype.entityChanged=Fs.prototype.entityChanged;_.W([_.M(_.QU),_.X("design:type",Object)],Fs.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Fs.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:KBT}),_.X("design:type",Object)],Fs.prototype,"commerceCartCheckoutButtonEntity",void 0);_.W([_.ph("commerceCartCheckoutButtonEntity","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fs.prototype,"entityChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Fs);
_.B(Fs,"ytd-commerce-cart-summary-renderer",function(){if(WAh!==void 0)return WAh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return WAh=v},{mode:1});var oaj={};oaj.InjectBehavior=[m0T.InjectBehavior];var XN7;var aX8;var KL=function(){return _.z.apply(this,arguments)||this};
_.f(KL,_.z);
KL.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:_.c_("menuRenderer")}}};
KL.prototype.onMenuTap=function(v){v.stopPropagation()};
_.hr.Object.defineProperties(KL.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!(((v=this.data)==null||!v.sectionHeading)&&((Q=this.data)==null?void 0:Q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!(((v=this.data)==null||!v.image)&&((Q=this.data)==null?void 0:Q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!(((v=this.data)==null||!v.menu)&&((Q=this.data)==null?void 0:Q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Mp8.YtTappableItemBehavior),_.X("design:type",Object)],KL.prototype,"ytTappableItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],KL.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data.accessibilityData"),_.X("design:type",String),_.X("design:paramtypes",[])],KL.prototype,"ariaLabel",null);_.W([_.O("data.sectionHeading","data.layout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],KL.prototype,"sectionHeadingVisible",null);_.W([_.O("data.image","data.layout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],KL.prototype,"imageVisible",null);
_.W([_.O("data.menu","data.layout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],KL.prototype,"menuVisible",null);_.W([_.D7({is:"yt-activity-item-renderer",disableElementRegistration:!0})],KL);
_.B(KL,"yt-activity-item-renderer",function(){if(aX8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;XN7===void 0&&(XN7=document.createElement("template"));var E=XN7;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);aX8=v}v=aX8;return v},{mode:2});var rSn;var $Zm;var IX0;var HZn;var iw=function(){return _.z.apply(this,arguments)||this};
_.f(iw,_.z);
iw.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"}}}}};
iw.prototype.backgroundColorChanged_=function(){var v,Q=(v=this.data)==null?void 0:v.backgroundColor;this.hostElement.style.backgroundColor=j8[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
iw.prototype.backgroundColorChanged_=iw.prototype.backgroundColorChanged_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],iw.prototype,"data",void 0);
_.W([_.ph("data.backgroundColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iw.prototype,"backgroundColorChanged_",null);_.W([_.D7({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],iw);
_.B(iw,"yt-offer-item-upsell-renderer",function(){if(HZn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;IX0===void 0&&(IX0=document.createElement("template"));var E=IX0;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);HZn=v}v=HZn;return v},{mode:2});_.yZ("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var LL=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};v.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return v};
_.f(LL,_.z);_.K=LL.prototype;
_.K.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:_.c_("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.K.computeContainerStyle_=function(v){return v};
_.K.computeContainerIsHidden_=function(v){return v&&!!v.isHidden};
_.K.computeShowSpinner_=function(v,Q){return v&&Q==="in-progress"};
_.K.computeShowMoreContentsButton_=function(v,Q,V,E,b){return!(!(E&&E.length||b&&b.length&&V)||!v||Q)};
_.K.onToggleButton_=function(v){var Q=this;v.stopPropagation();this.isExpanded_=v.detail&&v.detail.toggled;var V,E;this.isExpanded_&&!this.data.continuationSection.length&&((V=this.data)==null?0:(E=V.continuation)==null?0:E.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Hj(this.hostElement,"yt-load-next-continuation",function(b){return Q.getContinuationUrl_(Q.data.continuation.onClickContinuationData,b)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.vp(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.K.onShowMoreContentsButtonClicked_=function(v){var Q=this;v.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Hj(this.hostElement,"yt-load-next-continuation",function(V){return Q.getContinuationUrl_(Q.data.continuations[0].nextContinuationData,V)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.vp(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.K.getContinuationUrl_=function(v,Q){var V=v.continuation;v=v.clickTrackingParams;var E=_.Mo();v&&E&&_.uI(E,_.dE(v));return _.Li(Q,{continuation:V})};
_.K.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var v=_.m9(this.hostElement).querySelector("#continuation-section");v&&(v=v.querySelectorAll("ytmusic-item-section-renderer"))&&v.forEach(function(Q){return Q.classList.add("memberships-and-purchases")})};
_.K.dataChanged_=function(){var v;this.isExpanded_=!((v=this.data)==null||!v.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.K.updateCardOnClickCommand_=function(v){v=_.y(v,b5Z);var Q,V;this.data&&((Q=this.data)==null?0:Q.targetId)&&v&&v.targetId===((V=this.data)==null?void 0:V.targetId)&&v.onClickCommand&&(this.data.onClickCommand=v.onClickCommand,this.isOnClickCommand_=!0)};
_.K.backgroundColorChanged_=function(){var v,Q=(v=this.data)==null?void 0:v.backgroundColor;this.hostElement.style.backgroundColor=j8[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
LL.prototype.backgroundColorChanged_=LL.prototype.backgroundColorChanged_;LL.prototype.dataChanged_=LL.prototype.dataChanged_;LL.prototype.nextContinuationDataUpdated_=LL.prototype.nextContinuationDataUpdated_;LL.prototype.onToggleButton_=LL.prototype.onToggleButton_;_.W([_.M(_.wk),_.X("design:type",Object)],LL.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],LL.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Ak.YtNextContinuationBehavior),_.X("design:type",Object)],LL.prototype,"ytNextContinuationBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.W([_.M(oaj.InjectBehavior),_.X("design:type",Object)],LL.prototype,"injectBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],LL.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],LL.prototype,"compact",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],LL.prototype,"isExpanded_",void 0);_.W([_.q({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.X("design:type",String)],LL.prototype,"containerStyle_",void 0);_.W([_.q({value:"not-started"}),_.X("design:type",String)],LL.prototype,"continuationStatus_",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.X("design:type",Boolean)],LL.prototype,"showSpinner_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],LL.prototype,"isOnClickCommand_",void 0);_.W([_.q({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.X("design:type",Boolean)],LL.prototype,"showMoreContentsButton_",void 0);
_.W([_.q({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(v,Q){return!Q||v.entities?null:_.Fg(v.entities,"cardItemContainerEntity",Q)}}),
_.X("design:type",Object)],LL.prototype,"cardItemContainerEntity_",void 0);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],LL.prototype,"onToggleButton_",null);_.W([_.tM("yt-next-continuation-data-updated"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],LL.prototype,"nextContinuationDataUpdated_",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],LL.prototype,"dataChanged_",null);_.W([_.ph("data.backgroundColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],LL.prototype,"backgroundColorChanged_",null);_.W([_.D7({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],LL);
_.B(LL,"yt-card-item-container-renderer",function(){if($Zm===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;rSn===void 0&&(rSn=document.createElement("template"));var E=rSn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);$Zm=v}v=$Zm;return v},{mode:2});var tE=function(){return _.z.apply(this,arguments)||this};
_.f(tE,_.z);tE.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"}}}};
tE.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
tE.prototype.computeLoadingHidden=function(){var v;return!((v=this.commerceCartPageStateEntity)==null?0:v.cartActionInProgress)};
tE.prototype.updateNotification=function(){var v,Q=(v=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:v.summaryText;Q&&this.set("data.cartNotification",fr(Q))};
tE.prototype.notificationEntityChanged=tE.prototype.notificationEntityChanged;_.W([_.M(_.QU),_.X("design:type",Object)],tE.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],tE.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"commerceCartExpandableNotificationEntity",Q)}}),
_.X("design:type",Object)],tE.prototype,"commerceCartExpandableNotificationEntity",void 0);_.W([_.q({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"commerceCartPageStateEntity",Q)}}),
_.X("design:type",Object)],tE.prototype,"commerceCartPageStateEntity",void 0);_.W([_.Z7("#spinner"),_.X("design:type",HTMLElement)],tE.prototype,"spinner",void 0);_.W([_.ph("commerceCartExpandableNotificationEntity","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tE.prototype,"notificationEntityChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],tE);
_.B(tE,"ytd-commerce-cart-renderer",function(){if(jN5!==void 0)return jN5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return jN5=v},{mode:1});var mZh;var pL=function(){var v=_.z.apply(this,arguments)||this;v.bigImage=!1;return v};
_.f(pL,_.z);_.hr.Object.defineProperties(pL.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.placeholderImageUrl}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pL.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pL.prototype,"bigImage",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],pL.prototype,"placeholderImageUrl",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],pL);
_.B(pL,"ytd-empty-product-shelf-renderer",function(){if(mZh!==void 0)return mZh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return mZh=v},{mode:1});var UZ8;var e9=function(){var v=_.z.apply(this,arguments)||this;v.itemStyle="link-item";v.watchMetadataRefresh=!1;v.skinnyMode=!1;v.metaPanel=!1;v.inStructuredDescription=!1;v.detailedDescriptionOverride=!1;v.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};v.updateOnResizeDebouncer=null;return v};
_.f(e9,_.z);_.K=e9.prototype;_.K.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.K.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"}}}}};
_.K.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.K.attachVEs=function(v){v.trackingParams&&_.tR().graftServerVe(v.trackingParams)};
_.K.handleUpdateMerchShelfAction=function(v){var Q=this,V=_.y(v.updateMerchandiseShelfAction.merchandiseShelf,_.RrS);V&&(V.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){Q.attachVEs(V);Q.data=V},Number(V.renderDelayMs))):(this.attachVEs(V),this.data=V))};
_.K.updateOnResize=function(){if(this.JSC$17095_scrollContainer!==void 0&&this.JSC$17095_scrollContainer.clientWidth!==0&&this.items!==void 0){var v=this.JSC$17095_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-v));this.ytdHorizontalListBehavior.reposition_();var Q;switch((Q=this.data)==null?void 0:Q.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var V,
E;((V=this.data)==null?void 0:(E=V.items)==null?void 0:E.length)===1?this.itemStyle="cta-item":this.itemStyle=v>=740?"large-item":"small-item"}}};
_.K.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.w9(this.updateOnResizeDebouncer,_.b8.after(100),this.updateOnResize)};
e9.prototype.debouncedUpdateOnResize=e9.prototype.debouncedUpdateOnResize;e9.prototype.dataChanged=e9.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],e9.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],e9.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],e9.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],e9.prototype,"itemStyle",void 0);_.W([_.q({value:6}),_.X("design:type",Number)],e9.prototype,"initialCount",void 0);
_.W([_.q({value:"data.items"}),_.X("design:type",String)],e9.prototype,"itemsPath",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],e9.prototype,"watchMetadataRefresh",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],e9.prototype,"skinnyMode",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],e9.prototype,"metaPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],e9.prototype,"inStructuredDescription",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],e9.prototype,"detailedDescriptionOverride",void 0);_.W([_.Z7("#items"),_.X("design:type",HTMLDivElement)],e9.prototype,"items",void 0);_.W([_.Z7("#scroll-container"),_.X("design:type",HTMLDivElement)],e9.prototype,"JSC$17095_scrollContainer",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],e9.prototype,"dataChanged",null);
_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],e9.prototype,"debouncedUpdateOnResize",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],e9);
_.B(e9,"ytd-merch-shelf-renderer",function(){if(UZ8!==void 0)return UZ8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return UZ8=v},{mode:2});var vfj;var Zc=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return v};
_.f(Zc,_.z);_.K=Zc.prototype;
_.K.addBackstagePostAction=function(v){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(v=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",v))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:v}):this.set("data.contents",[{backstagePostThreadRenderer:v}]))};
_.K.addBackstageCommentAction=function(v){var Q=this.get("addBackstageCommentAction.parentId",v);v=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",v);if(Q&&v){Q=this.postIdToIndices(Q);for(var V=0;V<Q.length;V++){var E=Q[V];if(E<0)break;E="data.contents."+E+".backstagePostThreadRenderer.comments";this.get(E)&&(this.get(E+".backstageCommentsRenderer.contents")&&this.push(E+".backstageCommentsRenderer.contents",{commentThreadRenderer:v}),this.get(E+".backstageCommentsRenderer.teaserContents")?
this.push(E+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:v}):this.set(E+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:v}]))}}};
_.K.addBackstageReplyAction=function(v){var Q=this.get("addBackstageReplyAction.parentId",v);v=this.get("addBackstageReplyAction.renderer.commentRenderer",v);Q&&v&&this.setCreatorReply(Q,v)};
_.K.banAuthorAction=function(v){var Q=this.get("banAuthorAction.commentId",v);Q&&(v=this.get("banAuthorAction.parentCommentId",v)||this.getParentPostId(Q),this.removeFromStream(Q,v))};
_.K.hideReportedCommentAction=function(v){var Q=this.get("hideReportedCommentAction.commentId",v);Q&&((v=this.get("hideReportedCommentAction.parentCommentId",v))||(v=this.getParentPostId(Q)),this.removeFromStream(Q,v))};
_.K.replaceBackstageCommentAction=function(v){var Q=this.get("replaceBackstageCommentAction.commentId",v),V=this.get("replaceBackstageCommentAction.parentId",v);v=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",v);if(Q&&V&&v){V=this.postIdToIndices(V);for(var E=0;E<V.length;E++){var b=V[E];if(b<0)break;var F=this.commentIdToIndex(Q,b,!1);if(F>=0){var t=this.get("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+F+".commentThreadRenderer.replies.commentRepliesRenderer");
t&&(v.replies={commentRepliesRenderer:t});this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",F,1,{commentThreadRenderer:v})}F=this.commentIdToIndex(Q,b,!0);if(F>=0){if(t=this.get("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(F+".commentThreadRenderer.replies.commentRepliesRenderer")))v.replies={commentRepliesRenderer:t};this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
F,1,{commentThreadRenderer:v})}}}};
_.K.replaceBackstagePostAction=function(v){var Q=this.get("replaceBackstagePostAction.itemId",v);if(Q){Q=this.postIdToIndices(Q);for(var V=0;V<Q.length;V++){var E=Q[V];if(E<0)break;var b=this.getPostRendererType(E),F=this.get("replaceBackstagePostAction.renderer."+b,v);if(!F&&b!=="sharedPostRenderer")break;var t=!1;F||(t=!0,F=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",v));if(!F)break;var p={};t?(_.yK(p,rfx,F),this.set("data.contents."+E+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
p)):(_.yK(p,new _.FG(b),F),this.set("data.contents."+E+".backstagePostThreadRenderer.post",p))}}};
_.K.replaceBackstageReplyAction=function(v){var Q=this.get("replaceBackstageReplyAction.replyId",v),V=this.get("replaceBackstageReplyAction.parentId",v);v=this.get("replaceBackstageReplyAction.renderer.commentRenderer",v);Q&&v&&V&&this.setCreatorReply(V,v)};
_.K.removeCommentAction=function(v){var Q=this.get("removeCommentAction.commentId",v);if(Q){var V=this.get("removeCommentAction.parentCommentId",v);V&&this.get("removeCommentAction.isCreatorReply",v)?this.setCreatorReply(V,void 0):(V||(V=this.getParentPostId(Q)),this.removeFromStream(Q,V))}};
_.K.setCreatorReply=function(v,Q){var V=this.getParentPostId(v);if(V){V=this.postIdToIndices(V);for(var E=0;E<V.length;E++){var b=V[E];if(b<0)break;var F=this.commentIdToIndex(v,b,!1);if(F>=0){var t="data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+F;F=t+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";t+=".commentThreadRenderer.replies";Q==void 0?(this.set(t,{}),this.set(F,!1)):(this.set(t,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Q}]}}),
this.set(t+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(F,!0))}F=this.commentIdToIndex(v,b,!0);F>=0&&(F="data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+F,b=F+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",F+=".commentThreadRenderer.replies",Q==void 0?(this.set(F,{}),this.set(b,!1)):(this.set(F,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Q}]}}),this.set(b,!0)))}}};
_.K.removeFromStream=function(v,Q){if(Q){Q=this.postIdToIndices(Q);for(var V=0;V<Q.length;V++){var E=Q[V];if(E<0)break;var b=this.commentIdToIndex(v,E,!1);b>=0&&this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",b,1);b=this.commentIdToIndex(v,E,!0);b>=0&&this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",b,1);E="data.contents."+E+".backstagePostThreadRenderer.post.backstagePostRenderer";
b=E+".backstageAttachment.pollRenderer.votedCommentId";this.get(b)===v&&(this.set(b,null),this.set(E+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(Q=this.postIdToIndices(v).reverse(),V=0;V<Q.length;V++){E=Q[V];if(E<0)break;b=this.getPostRendererType(E);var F=this.get("backstagePostThreadRenderer.post."+b,this.data.contents[E]);F.postId===v?this.splice("data.contents",E,1):b==="sharedPostRenderer"&&this.set("data.contents."+E+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);F.scheduledPublishTimeSec&&_.mb(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.K.postIdToIndices=function(v){for(var Q=[],V=0;V<this.data.contents.length;V++){var E=this.getPostRendererType(V);this.get("backstagePostThreadRenderer.post."+E+".postId",this.data.contents[V])===v&&Q.push(V);if(E==="sharedPostRenderer"){var b=this.get("backstagePostThreadRenderer.post."+E+".originalPost.backstagePostRenderer.postId",this.data.contents[V]);E=this.get("backstagePostThreadRenderer.post."+E+".originalPost.postRenderer.postId",this.data.contents[V]);b!==v&&E!==v||Q.push(V)}}return Q};
_.K.commentIdToIndex=function(v,Q,V){if(Q<0)return-1;var E,b,F,t,p=_.y((E=this.data)==null?void 0:(b=E.contents)==null?void 0:(F=b[Q])==null?void 0:(t=F.backstagePostThreadRenderer)==null?void 0:t.comments,XLA);return(Q=V?p==null?void 0:p.teaserContents:p==null?void 0:p.contents)&&Q.length?Q.findIndex(function(Z){return _.y(Z,MOZ).comment.commentRenderer.commentId===v}):-1};
_.K.getParentPostId=function(v){v=v.split(".");if(v[1])return v[0]};
_.K.getPostRendererType=function(v){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[v])?"sharedPostRenderer":"backstagePostRenderer"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Zc.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Zc.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:_.Y("enable_community_page_on_desktop")}),_.X("design:type",Boolean)],Zc.prototype,"useSmallerPostContainer",void 0);
_.W([_.J({disableElementRegistration:!0,is:"ytd-backstage-items"})],Zc);
_.B(Zc,"ytd-backstage-items",function(){if(vfj!==void 0)return vfj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return vfj=
v},{mode:1});var Q8h;var Vqm={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},PP=function(){var v=_.z.apply(this,arguments)||this;v.disablePrescanVisibility=!0;v.canScheduleJobs=!0;v.engagementPanel=!1;v.hidePanelButton=!1;v.isWatchGrid=
!1;v.hasShownSubscribersOnlyDisclaimer=!1;v.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};v.TEST_ONLY=void 0;return v};
_.f(PP,_.z);_.K=PP.prototype;_.K.created=function(){this.initCommentsCsi_();_.Y("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.Y("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.K.contentsChanged_=function(){var v;(v=this.data)!=null&&v.contents&&this.tickForCommentsTimer_("cml")};
_.K.headerChanged_=function(){var v;(v=this.data)!=null&&v.header&&this.tickForCommentsTimer_("cmhl")};
_.K.initCommentsCsi_=function(){_.Ct("wn_comments");var v=_.Mo();v&&_.ft({clientScreenNonce:v},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.K.createCommentAction_=function(v){v=_.gI.unsafeClone(v);var Q,V;if(v=(Q=_.y(v,AcN))==null?void 0:(V=Q.contents)==null?void 0:V.commentThreadRenderer){var E,b,F,t,p,Z;!this.isBackstage&&((E=this.data)==null?0:(b=E.header)==null?0:(F=b.commentsHeaderRenderer)==null?0:(t=F.createRenderer)==null?0:(p=t.commentSimpleboxRenderer)==null?0:(Z=p.zeroStep)==null?0:Z.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var d,
w,A;this.isBackstage&&_.y((d=this.data)==null?void 0:(w=d.header)==null?void 0:(A=w.commentsHeaderRenderer)==null?void 0:A.zeroStateMessage,$7Z)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(v)}};
_.K.doReplyInsert_=function(v,Q,V,E){E?this.splice(v,E,0,Q):this.push(v,Q)};
_.K.getRepliesPath_=function(v){return"data.contents."+v+".commentThreadRenderer.replies"};
_.K.getRepliesContentsPath_=function(v,Q){v=this.getRepliesPath_(v);return Q?v+".commentRepliesRenderer.teaserContents":v+".commentRepliesRenderer.contents"};
_.K.showSubscribersOnlyDisclaimer_=function(v){(v=v.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&(_.mb(this.hostElement,"yt-open-popup-action",[v,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.K.createCommentReplyAction_=function(v){v=_.gI.unsafeClone(v);var Q=_.y(v,kjQ);if(v=Q==null?void 0:Q.contents){var V=this.commentIdToIndex_(Q==null?void 0:Q.parentCommentId);if(!(V<0)){var E=this.getRepliesPath_(V);if(this.get(E)){Q=Q.replyToCommentId;E=this.getRepliesContentsPath_(V,!1);if(this.get(E)){var b=this.get(E).length,F=E+"."+(b-1)+".continuationItemRenderer";this.get(F+".button")?(F=this.replyIdToIndex_(Q,V,!1),this.doReplyInsert_(E,v,F,b-1)):this.get(F)||(b=this.replyIdToIndex_(Q,V,
!1),this.doReplyInsert_(E,v,b,null))}E=this.getRepliesContentsPath_(V,!0);this.get(E)?(V=this.replyIdToIndex_(Q,V,!0),(!Q||V>=0)&&this.doReplyInsert_(E,v,V,null)):this.set(E,[v])}else this.set(E,{commentRepliesRenderer:{teaserContents:[v]}})}}};
_.K.hideReportedCommentAction_=function(v){var Q=_.y(v,B9q);if(v=Q==null?void 0:Q.commentId)(Q=this.get("parentCommentId",Q))||(Q=this.getParentCommentId_(v)),this.remove_(v,Q)};
_.K.getParentCommentId_=function(v){v=v.split(".");if(v[1])return v[0]};
_.K.removeCommentAction_=function(v){var Q=_.y(v,fLQ);if(v=Q==null?void 0:Q.commentId)Q=(Q==null?void 0:Q.parentCommentId)||this.getParentCommentId_(v),this.remove_(v,Q)};
_.K.pinCommentAction_=function(v){v=_.gI.unsafeClone(v);var Q=_.y(v,ccN);Q!=null&&Q.commentId&&(v=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",v))&&(this.remove_(Q.commentId),this.insert_(v,!0))};
_.K.unpinCommentAction_=function(v){v=_.gI.unsafeClone(v);v=_.y(v,GjX);if(v!=null&&v.commentId){var Q,V,E=(Q=v.actionResult)==null?void 0:(V=Q.update)==null?void 0:V.commentThreadRenderer;E&&(this.remove_(v.commentId),this.insert_(E))}};
_.K.banAuthorAction_=function(v){var Q=_.y(v,wVN);Q!=null&&Q.commentId&&(v=Q.commentId,Q=Q.parentCommentId||this.getParentCommentId_(v),this.remove_(v,Q))};
_.K.handleScrollToCommentElement_=function(v){this.hostElement.contains(v)&&(this.nearestScrollParent||(this.nearestScrollParent=Btm(v)),this.isCommentVisibleInScrollParent(v)||v.scrollIntoView({behavior:"smooth",block:"start"}))};
_.K.isCommentVisibleInScrollParent=function(v){if(!this.nearestScrollParent)return!1;v=v.getBoundingClientRect();var Q=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return v.top>=Q.top&&v.bottom<=Q.bottom};
_.K.commentIdToIndex_=function(v){var Q;return v&&(Q=this.data)!=null&&Q.contents?this.data.contents.findIndex(function(V){V=V.commentThreadRenderer;var E;return v===((V==null?void 0:V.commentViewModel)&&((E=_.y(V.commentViewModel,q5X))==null?void 0:E.commentId))}):-1};
_.K.insert_=function(v,Q){Q=Q===void 0?!1:Q;var V,E;if((V=this.data)==null?0:(E=V.contents)==null?0:E.some(function(F){return!!F.commentThreadRenderer}))for(V=0,E=this.data.contents.length;V<E;V++){var b=this.data.contents[V].commentThreadRenderer;
if(Vqm[v.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Vqm[b.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){Q&&Vqm[v.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Vqm[b.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",V,1,{commentThreadRenderer:v}):this.splice("data.contents",V,0,{commentThreadRenderer:v});break}}else this.set("data.contents",[{commentThreadRenderer:v}])};
_.K.doReplyRemove_=function(v,Q,V){v=this.replyIdToIndex_(v,Q,V);v<0||(Q=this.getRepliesContentsPath_(Q,V),this.splice(Q,v,1))};
_.K.remove_=function(v,Q){Q=this.commentIdToIndex_(Q);Q<0?(Q=this.commentIdToIndex_(v),Q<0||this.splice("data.contents",Q,1)):_.Y("web_delhi_comment_threads")||(this.doReplyRemove_(v,Q,!1),this.doReplyRemove_(v,Q,!0))};
_.K.replyIdToIndex_=function(v,Q,V){if(Q<0)return-1;Q=this.getRepliesContentsPath_(Q,V);Q=this.get(Q);if(!Q||!Q.length)return-1;V=0;for(var E=Q.length;V<E;V++){var b=void 0,F=void 0;if(((b=Q[V])==null?void 0:(F=b.commentViewModel)==null?void 0:F.commentId)===v)return V}return-1};
_.K.tickForCommentsTimer_=function(v){_.O2(v,void 0,"wn_comments")};
_.K.reloadComments_=function(v){v=_.y(v,n58);_.y(v==null?void 0:v.command,_.RJ)&&_.vp(this.hostElement,[v==null?void 0:v.command])};
_.hr.Object.defineProperties(PP.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.data)==null?0:(Q=v.header)==null?0:(V=Q.commentsHeaderRenderer)==null?0:V.isBackstageContent)}}});
_.hr.Object.defineProperties(PP,{template:{configurable:!0,enumerable:!0,get:function(){if(Q8h===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);Q8h=v}v=Q8h;return v}}});
PP.prototype.showSubscribersOnlyDisclaimer_=PP.prototype.showSubscribersOnlyDisclaimer_;PP.prototype.headerChanged_=PP.prototype.headerChanged_;PP.prototype.contentsChanged_=PP.prototype.contentsChanged_;_.W([_.M(_.TX),_.X("design:type",Object)],PP.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",Function)],PP.prototype,"ytPlayerListenerBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],PP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],PP.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.header.commentsHeaderRenderer.isBackstageContent"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],PP.prototype,"isBackstage",null);
_.W([_.q(),_.X("design:type",Object)],PP.prototype,"disablePrescanVisibility",void 0);_.W([_.q(),_.X("design:type",Object)],PP.prototype,"canScheduleJobs",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],PP.prototype,"engagementPanel",void 0);_.W([_.q(),_.X("design:type",Object)],PP.prototype,"hidePanelButton",void 0);_.W([_.q(),_.X("design:type",Object)],PP.prototype,"isWatchGrid",void 0);_.W([_.q(),_.X("design:type",Object)],PP.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.W([_.ph("data.contents"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PP.prototype,"contentsChanged_",null);_.W([_.ph("data.header"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PP.prototype,"headerChanged_",null);_.W([_.tM("yt-show-subscribers-only-disclaimer"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],PP.prototype,"showSubscribersOnlyDisclaimer_",null);
_.W([_.J({is:"ytd-comments"})],PP);var dy=function(){return _.dg.apply(this,arguments)||this};
_.f(dy,_.dg);_.K=dy.prototype;_.K.bindIf=function(v,Q,V){return v?Q:V};
_.K.bindIfDefined=function(v,Q){return v!==void 0?v:Q};
_.K.booleanString=function(v){return(!!v).toString()};
_.K.equals=function(){for(var v=_.aE.apply(0,arguments),Q=v[0],V=1;V<v.length;V++)if(Q!=v[V])return!1;return!0};
_.K.isGreaterThan=function(v,Q){return v>Q};
_.K.isLessThan=function(v,Q){return v<Q};
_.K.logicalAND=function(){for(var v=_.aE.apply(0,arguments),Q=!!v[0],V=1;V<v.length;V++)Q=Q&&!!v[V];return Q};
_.K.logicalOR=function(){for(var v=_.aE.apply(0,arguments),Q=!!v[0],V=1;V<v.length;V++)Q=Q||!!v[V];return Q};
_.K.toBool=function(v){return!!v};
dy.prototype.toBool=dy.prototype.toBool;dy.prototype.logicalOR=dy.prototype.logicalOR;dy.prototype.logicalAND=dy.prototype.logicalAND;dy.prototype.isLessThan=dy.prototype.isLessThan;dy.prototype.isGreaterThan=dy.prototype.isGreaterThan;dy.prototype.equals=dy.prototype.equals;dy.prototype.booleanString=dy.prototype.booleanString;dy.prototype.bindIfDefined=dy.prototype.bindIfDefined;dy.prototype.bindIf=dy.prototype.bindIf;_.W([_.hM()],dy);_.Efd=[dy.prototype];var bjY;var FI0;var hE=function(){return _.z.apply(this,arguments)||this};
_.f(hE,_.z);hE.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
hE.prototype.onBackIconTap_=function(){window.history.back()};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hE.prototype,"data",void 0);_.W([_.D7({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],hE);
_.B(hE,"yt-header-with-back-renderer",function(){if(FI0===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;bjY===void 0&&(bjY=document.createElement("template"));var E=bjY;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);FI0=v}v=FI0;return v},{mode:2});var KI0;var ij8;var wy=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(wy,_.z);_.K=wy.prototype;_.K.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v,this.setUrl())};
_.K.dataChanged=function(){var v=this;if(this.data){var Q=this.setUrl();Q&&_.by({destination:window,iframe:this.iframe,origin:_.igZ(Q.toString()),channelName:"yt-iframe",onMessage:function(V){(V=v.getCommunicationCommand(V.data))&&v.ytComponentBehavior.resolveCommand(V)},
onEstablished:function(){}})}};
_.K.setUrl=function(){if(this.data&&this.data.iframeUrl){var v=_.ae(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(v)return _.vc(this.iframe,v),v}};
_.K.getCommunicationCommand=function(v){var Q;if((Q=this.data)!=null&&Q.onCommunicationCommandsMap){Q=this.data.onCommunicationCommandsMap.find(function(b){return b.key===v});
if(Q==null?0:Q.value)return Q==null?void 0:Q.value;try{var V=$IQ(_.H9(v)),E=this.data.onCommunicationCommandsMap.find(function(b){return b.key===(V==null?void 0:V.getMethodName())});
if(E==null?0:E.value)return E==null?void 0:E.value}catch(b){}}};
wy.prototype.dataChanged=wy.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],wy.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wy.prototype,"data",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],wy.prototype,"isDarkTheme",void 0);_.W([_.Z7("#iframe"),_.X("design:type",HTMLIFrameElement)],wy.prototype,"iframe",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wy.prototype,"dataChanged",null);_.W([_.D7({is:"yt-iframe-renderer",disableElementRegistration:!0})],wy);
_.B(wy,"yt-iframe-renderer",function(){if(ij8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;KI0===void 0&&(KI0=document.createElement("template"));var E=KI0;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ij8=v}v=ij8;return v},{mode:2});_.AE=function(v){_.J5.call(this);this.callback=v;this.bezier=new brQ(0,0,.4,0,.2,1,1,1);this.delay=new _.ky(this.next,window,this);this.JSC$17136_animating=!1;_.Cg(this,this.delay)};
_.f(_.AE,_.J5);_.AE.prototype.isAnimating=function(){return this.JSC$17136_animating};
_.AE.prototype.start=function(v,Q,V){this.config={from:v,to:Q,duration:V,startTime:(0,_.wO)()};this.JSC$17136_animating=!0;this.next()};
_.AE.prototype.stop=function(){this.delay.stop();this.JSC$17136_animating=!1;this.config=void 0};
_.AE.prototype.next=function(){if(this.config){var v=this.config,Q=v.from,V=v.to,E=v.duration;v=v.startTime;var b=(0,_.wO)()-v;v=this.bezier;E=K6a(v,b/E);if(E==0)v=v.y0;else if(E==1)v=v.y3;else{b=Mc(v.y0,v.y1,E);var F=Mc(v.y1,v.y2,E);v=Mc(v.y2,v.y3,E);b=Mc(b,F,E);F=Mc(F,v,E);v=Mc(b,F,E)}v=_.O$(v,0,1);this.callback(Q+(V-Q)*v);v<1?this.delay.start():this.JSC$17136_animating=!1}};_.kA=new _.KB("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var LI8={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},psY=function(v,Q,V,E){_.J5.call(this);this.JSC$17147_miniAppId=v;this.localReleaseId=Q;this.derivedDeviceInterface=V;this.isForeground=E;this.JSC$17147_playNonceResolver=new _.bK;this.playPingTimerId=NaN;this.playPingIntervalMs=_.T_("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.T_("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.Y("enable_displaying_ppn");this.JSC$17147_miniAppClientDataProvider=_.ht().resolve(_.kA);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;tqj(this);var b=setTimeout(function(){_.Iy(new _.xd("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17147_playNonceResolver.promise.then(function(){clearTimeout(b)})};
_.f(psY,_.J5);var Zjn=function(v,Q){v.JSC$17147_playNonceResolver.resolve(Q!=null?Q:fC(8));v.enableDisplayingPpn&&emI(v).then(function(V){v.JSC$17147_miniAppClientDataProvider.clientData.set("post_play_nonce",V)})},emI=function(v){return _.e(function(Q){return Q.nextAddress==1?Q.yield(v.JSC$17147_playNonceResolver.promise,2):Q.return(Q.yieldResult)})},tqj=function(v){var Q,V;
_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$17147_playNonceResolver.promise,2);Q=E.yieldResult;V={miniAppInfo:{externalPostId:v.JSC$17147_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:Q,derivedDeviceInterface:v.derivedDeviceInterface}};_.ft(V);_.q1(E)})},d$I=function(v){v.state!==0?_.Iy(new _.xd("[MiniAppPlayLogger] recordPlayStart failed with state "+LI8[v.state])):(v.state=1,TQ(v,"ma_cl"),YA(v,"PLAY_EVENT_TYPE_PLAY_START"),Ph5(v))},hmI=function(v){v.isForeground=!1;
YA(v,"PLAY_EVENT_TYPE_PLAY_PAUSE")},ws7=function(v){v.state!==1&&v.state!==2?_.Iy(new _.xd("[MiniAppPlayLogger] recordPlayEnd failed with state "+LI8[v.state])):(v.state=3,window.clearInterval(v.playPingTimerId),v.playPingTimerId=NaN,a2Q(),YA(v,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},A7h=function(v,Q){v.state===2&&v.gameReady&&(v.firstClickRecorded?Date.now()-v.clickRecordedMs<v.playClickIntervalMs||(v.clickRecordedMs=Date.now(),YA(v,"PLAY_EVENT_TYPE_PLAY_CLICK")):Q&&(TQ(v,"ma_fua"),YA(v,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),v.firstClickRecorded=!0,v.clickRecordedMs=Date.now()))};
psY.prototype.logError=function(v){var Q=this,V;_.e(function(E){if(E.nextAddress==1)return v.metadata.externalPostId=Q.JSC$17147_miniAppId,V=v.metadata,E.yield(Promise.race([Q.JSC$17147_playNonceResolver.promise,new Promise(function(b){setTimeout(function(){b("")},3E4)})]),2);
V.postPlayNonce=E.yieldResult;v.metadata.localReleaseId=Q.localReleaseId;v.loggingError.level="WARNING";_.ro(v.loggingError,v.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:v.metadata});_.q1(E)})};
var khI=function(v,Q,V,E){var b,F,t,p,Z,d;_.e(function(w){if(w.nextAddress==1)return w.yield(v.JSC$17147_playNonceResolver.promise,2);b=w.yieldResult;F={externalPostId:v.JSC$17147_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:b,sdkVersion:V,api:Q};E!==void 0&&(F.networkRequestsMeasurement={networkRequests:_.h5(E,1),cachedRequests:_.h5(E,2),transferredBytes:_.h5(E,3)},(t=E)==null?0:_.ZD(t,Z2,6))&&(F.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((p=_.TY(E,
Z2,6))==null?void 0:CN(p,1))||"0",cacheHits:((Z=_.TY(E,Z2,6))==null?void 0:CN(Z,2))||"0",cachedBytes:((d=_.TY(E,Z2,6))==null?void 0:CN(d,3))||"0"});_.X0("miniAppSdkUsage",F);_.q1(w)})},Ydd=function(v,Q,V){var E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S;
_.e(function(a){if(a.nextAddress==1)return a.yield(v.JSC$17147_playNonceResolver.promise,2);E=a.yieldResult;b={externalPostId:v.JSC$17147_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:E,sdkVersion:V,measurementWindow:{startTimestampMs:String(y2(Q,1)),endTimestampMs:String(y2(Q,2))},frameRate:{averageFrameTimeDeltaMs:cC(Q,3),averageFrameIdleTimeMs:cC(Q,4)}};_.ZD(Q,P2,5)&&(b.networkRequests={networkRequests:(F=Y9(Q))==null?void 0:_.h5(F,1),cachedRequests:(t=Y9(Q))==null?void 0:_.h5(t,2),transferredBytes:(p=
Y9(Q))==null?void 0:_.h5(p,3),sameOriginStatusCodeToCounts:TY7((Z=Y9(Q))==null?void 0:zmG(Z,4)),crossOriginStatusCodeToCounts:TY7((d=Y9(Q))==null?void 0:zmG(d,5))},(w=Y9(Q))==null?0:_.ZD(w,Z2,6))&&(b.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((A=Y9(Q))==null?void 0:(k=_.TY(A,Z2,6))==null?void 0:CN(k,1))||"0",cacheHits:((T=Y9(Q))==null?void 0:(c=_.TY(T,Z2,6))==null?void 0:CN(c,2))||"0",cachedBytes:((C=Y9(Q))==null?void 0:(R=_.TY(C,Z2,6))==null?void 0:CN(R,3))||"0"});_.ZD(Q,
gxZ,7)&&(b.gameCapture={averageFrameTimeDeltaMs:(l=_.TY(Q,gxZ,7))==null?void 0:cC(l,1),averageFrameIdleTimeMs:(S=_.TY(Q,gxZ,7))==null?void 0:cC(S,2)});_.X0("miniAppPerformanceMetrics",b);_.q1(a)})},y77=function(v,Q){var V,E;
return _.e(function(b){if(b.nextAddress==1)return b.yield(v.JSC$17147_playNonceResolver.promise,2);V=b.yieldResult;E={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:v.JSC$17147_miniAppId,postPlayNonce:V,miniAppReleaseId:v.localReleaseId},derivedDeviceInterface:v.derivedDeviceInterface,adTriggerType:Q,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.X0("miniAppAdEvent",E);_.q1(b)})};
psY.prototype.disposeInternal=function(){_.J5.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var YA=function(v,Q,V,E){V=V===void 0?{}:V;E=E===void 0?!1:E;var b,F,t,p;_.e(function(Z){if(Z.nextAddress==1)return b=v.isForeground,F=v.beforeReady,Z.yield(v.JSC$17147_playNonceResolver.promise,2);t=Z.yieldResult;p={externalPostId:v.JSC$17147_miniAppId,localReleaseId:v.localReleaseId,derivedDeviceInterface:v.derivedDeviceInterface,postPlayNonce:t,type:Q};V.sequenceGroup=t;p.playState=F?"PLAY_STATE_NOT_READY":b?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.X0("miniAppPlayEvent",p,
V);E&&_.ay();_.q1(Z)})},TQ=function(v,Q){var V;
_.e(function(E){if(E.nextAddress==1)return V=(0,_.wO)(),E.yield(v.JSC$17147_playNonceResolver.promise,2);_.Mp(Q,V);_.q1(E)})},Ph5=function(v){isNaN(v.playPingTimerId)&&(v.playPingTimerId=_.Ci(function(){v.state!==1&&v.state!==2?_.Iy(new _.xd("[MiniAppPlayLogger] reportPlayPing failed with state "+LI8[v.state])):YA(v,"PLAY_EVENT_TYPE_PLAY_PING")},v.playPingIntervalMs))},TY7=function(v){return Array.from(v.entries()).map(function(Q){var V=_.L(Q);
Q=V.next().value;V=V.next().value;return{key:Q,value:V}})};var c7Y=function(){},f0m=function(v,Q){v.showMiniAppAdCommand=Q.showMiniAppAdCommand;
v.isEmbeddedInWebview=Q.isEmbeddedInWebview;v.playLogger=Q.playLogger},Ch0=function(v,Q){var V;
return _.e(function(E){if(E.nextAddress==1){if(!v.showMiniAppAdCommand||!v.isEmbeddedInWebview)return E.return(Gh$(v,Q));v.adResolver=new _.bK;var b=new Xf;V=_.YF(b,3,Q);OI(v.showMiniAppAdCommand,cBZ(V));return E.yield(v.adResolver.promise,2)}return E.return(E.yieldResult)})};
c7Y.prototype.onAdFinished=function(v){v=A68(v);var Q;(Q=this.adResolver)==null||Q.resolve(v)};
var Gh$=function(v,Q){var V;return _.e(function(E){if(E.nextAddress==1)E=E.yield((V=v.playLogger)==null?void 0:y77(V,XvT(Q)),2);else{var b=E.return;var F=new wep;F=_.YF(F,1,2);E=b.call(E,F)}return E})};var Mqm=new _.KB("INNERTUBE_MANAGER_TOKEN");var Oj7=function(){this.callbacks={}};
Oj7.prototype.initialize=function(v){var Q=this;this.callbacks=v;window.youtubewebview?window.youtubewebview.onmessage=function(V){D$Y(Q,V)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(V){D$Y(Q,V)})};
var D$Y=function(v,Q){if(Q.data)try{var V=$IQ(Q.data);if(_.fj(_.em(V,1))!=null){var E=w2a(_.fN(V,2));switch(V.getMethodName()){case "yt-mini-app-load-audio-state":var b,F;(F=(b=v.callbacks).onAudioStateLoaded)==null||F.call(b,_.YK(E,J8(E,oX,1)));break;case "yt-mute-mini-app":var t,p;(p=(t=v.callbacks).onMuteMiniApp)==null||p.call(t);break;case "yt-unmute-mini-app":var Z,d;(d=(Z=v.callbacks).onUnmuteMiniApp)==null||d.call(Z);break;case "yt-playable-exit":var w,A;(A=(w=v.callbacks).onExit)==null||A.call(w);
break;case "yt-post-play-nonce":var k,T;(T=(k=v.callbacks).onPostPlayNonceReceived)==null||T.call(k,Mq(E,2,oX));break;case "yt-confirm-exit-mini-app":var c,C;(C=(c=v.callbacks).confirmExitMiniApp)==null||C.call(c);break;case "yt-confirm-exit-mini-app-edu":var R,l;(l=(R=v.callbacks).confirmExitMiniAppEdu)==null||l.call(R);break;case "yt-benchmarking-response":var S,a;(a=(S=v.callbacks).onNativeBenchmarkingMessageReceived)==null||a.call(S,Mq(E,2,oX));break;case "yt-mini-app-load-3p-consent-state":var g,
u;(u=(g=v.callbacks).multiplayer3pAckStateLoaded)==null||u.call(g,_.YK(E,J8(E,oX,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var r,v9;(v9=(r=v.callbacks).exitMiniAppSeenStateLoaded)==null||v9.call(r,_.YK(E,J8(E,oX,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var t3,h3;(h3=(t3=v.callbacks).onNavigateToNewMiniApp)==null||h3.call(t3);break;case "yt-game-data-available":var OB,kQ;(kQ=(OB=v.callbacks).onGameDataAvailable)==null||kQ.call(OB,Mq(E,2,oX));break;case "yt-pause-mini-app":var yo,
xQ;(xQ=(yo=v.callbacks).onPauseMiniApp)==null||xQ.call(yo);break;case "yt-resume-mini-app":var lb,ep;(ep=(lb=v.callbacks).onResumeMiniApp)==null||ep.call(lb);break;case "yt-playable-ad-finished":var JS,fZ;(fZ=(JS=v.callbacks).onAdFinished)==null||fZ.call(JS,Mq(E,2,oX))}}else _.Iy(Error("Vh"))}catch(mS){_.ro(Error("Wh"))}else _.Iy(Error("Xh"))};var rgZ=function(v){this.rpcErrorCode=v};var yQ=function(v,Q,V){this.intervalMs=v;this.apiFunc=Q;this.type=V;this.schedulerReady=!0};
yQ.prototype.call=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1){if(Q.type!==1&&v===Q.cachedValue)return E.return();Q.pendingApiRequestResolver||(Q.pendingApiRequestResolver=new _.bK);V=Q.pendingApiRequestResolver.promise;Q.cachedValue=v;return E.yield(Rm5(Q),2)}return E.return(V)})};
yQ.prototype.flush=function(v){v=v===void 0?!1:v;var Q=this;return _.e(function(V){return Q.cachedValue===void 0?V.return():V.yield(Q.apiFunc(Q.cachedValue,v),0)})};
var Rm5=function(v){var Q,V,E;return _.e(function(b){switch(b.nextAddress){case 1:if(!v.schedulerReady||!v.pendingApiRequestResolver)return b.return();v.schedulerReady=!1;Q=v.pendingApiRequestResolver;v.pendingApiRequestResolver=void 0;_.GC(b,2);if(v.cachedValue===void 0){b.jumpTo(4);break}return b.yield(v.apiFunc(v.cachedValue),5);case 5:V=b.yieldResult,Q.resolve(V);case 4:_.FT(b,3);break;case 2:E=_.n$(b),Q.reject(E);case 3:setTimeout(function(){return _.e(function(F){v.schedulerReady=!0;return F.yield(Rm5(v),
0)})},v.intervalMs),_.q1(b)}})};var Hsr=window.location.origin+"/miniapp_cloudsaves",$rT=[400,401],nfh=_.T_("cloud_save_game_data_rate_limit_ms",3E3),SdY=function(v){var Q=this;this.JSC$17191_miniAppId=v;this.loadAttempts=0;this.cloudSaveIntervalMs=nfh;this.initialDownloadDataSucceeded=!1;this.JSC$17191_playNonceResolver=new _.bK;this.scottyUploadRateLimiter=new yQ(this.cloudSaveIntervalMs,function(V,E){return l0n(Q,V,E)},2);
this.downloadDataPromise=qd8(this);this.downloadDataPromise.then(function(){Q.initialDownloadDataSucceeded=!0}).catch(function(){})},zmY=function(v,Q){Q.then(function(V){return v.JSC$17191_playNonceResolver.resolve(V)})},J7$=function(v){return _.e(function(Q){return v.cachedData===void 0?Q.return(v.downloadDataPromise):Q.return(v.cachedData)})},NYf=function(v,Q){return _.e(function(V){v.cachedData=Q;
if(!v.initialDownloadDataSucceeded)throw Error("Yh");return V.yield(v.scottyUploadRateLimiter.call(Q),0)})},x$s=function(){return new Promise(function(v){setTimeout(v,1E3,"")})},BY$=function(v,Q){var V,E;
return _.e(function(b){if(b.nextAddress==1)return V=v.JSC$17191_miniAppId,b.yield(Promise.race([v.JSC$17191_playNonceResolver.promise,x$s()]),2);E={"X-YouTube-MiniAppId":V,"X-YouTube-PostPlayNonce":b.yieldResult};"DELEGATED_SESSION_ID"in _.X1&&ppS(Q,E);return b.return(E)})},l0n=function(v,Q,V){V=V===void 0?!1:V;
return _.e(function(E){return a4o()?_.Y("enable_cloud_save_error_popup_after_retry")?E.return(new Promise(function(b,F){var t,p,Z,d,w;return _.e(function(A){switch(A.nextAddress){case 1:t=0,p=!0,d=Z=null;case 2:if(!(p&&t++<2)){A.jumpTo(4);break}_.GC(A,5);return A.yield(gfs(v,Q,V),7);case 7:Z=A.yieldResult;p=Z.ok?!1:!$rT.includes(Z.status);_.FT(A,2);break;case 5:d=w=_.n$(A);p=I4S(d);A.jumpTo(2);break;case 4:Z?Z.ok?(cP(v,nfh),b()):(cP(v,v.cloudSaveIntervalMs*2),F(Error("Zh`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))):
(cP(v,v.cloudSaveIntervalMs*2),F(d||Error("$h"))),_.q1(A)}})})):E.return(new Promise(function(b,F){var t,p;
return _.e(function(Z){if(Z.nextAddress==1){if(v.JSC$17191_miniAppId==="")return F(Error("ai")),Z.return();_.GC(Z,2);return Z.yield(gfs(v,Q,V),4)}if(Z.nextAddress!=2)return t=Z.yieldResult,t.ok?(cP(v,nfh),b()):(cP(v,v.cloudSaveIntervalMs*2),F(Error("Zh`"+String(t.status),{cause:{rpcErrorCode:t.status}}))),_.FT(Z,0);p=_.n$(Z);cP(v,v.cloudSaveIntervalMs*2);F(p);_.q1(Z)})})):E.return()})},gfs=function(v,Q,V){V=V===void 0?!1:V;
var E,b,F;return _.e(function(t){if(t.nextAddress==1)return E=_.Sq((new TextEncoder).encode(Q)),b=mro(),t.yield(BY$(v,b),2);F=t.yieldResult;return t.return(fetch(b,{method:"POST",body:new Blob([E]),headers:F,keepalive:V}))})},qd8=function(v){var Q,V;
return _.e(function(E){if(E.nextAddress==1){if(!a4o())return E.return("");if(v.JSC$17191_miniAppId==="")throw Error("ai");if(v.loadAttempts>2)return E.return(v.downloadDataPromise);_.GC(E,2);return E.yield(s8Y(v),4)}if(E.nextAddress!=2)return Q=E.yieldResult,E.return(Q);V=_.n$(E);if(I4S(V)&&++v.loadAttempts<2)return E.return(qd8(v));throw V;})},s8Y=function(v){var Q,V,E,b,F;
return _.e(function(t){switch(t.nextAddress){case 1:return _.GC(t,2),Q=mro(),t.yield(BY$(v,Q),4);case 4:return V=t.yieldResult,t.yield(fetch(Q,{method:"GET",headers:V}),5);case 5:return E=t.yieldResult,E.ok?t.yield(E.text(),6):t.return(Promise.reject(Error("bi`"+String(E.status),{cause:new rgZ(E.status)})));case 6:return b=t.yieldResult,t.return((new TextDecoder).decode(_.H9(b)));case 2:return F=_.n$(t),t.return(Promise.reject(F))}})},cP=function(v,Q){v.cloudSaveIntervalMs=Q;
v.scottyUploadRateLimiter.intervalMs=v.cloudSaveIntervalMs};
SdY.prototype.flush=function(){var v=this;return _.e(function(Q){return v.initialDownloadDataSucceeded?Q.yield(v.scottyUploadRateLimiter.flush(!0),0):Q.return()})};var unq=k9(AB(1),hB(1)),j8f=k9(AB(1),hB(3)),fL=function(v){this.callbacks=v};
_.K=fL.prototype;_.K.onAudioToggled=function(v,Q){(Q===void 0||Q)&&_.kN("yt-mini-app-is-audio-enabled",v,2592E3)};
_.K.onPause=function(){this.onAudioToggled(!1,!1)};
_.K.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.K.returnNativeBenchmarkingMessage=function(){};
_.K.sendGameData=function(){};
_.K.sendStartGameFrameCapture=function(){};
var UrB=function(v,Q,V){this.callbacks=v;var E=this;this.sdkVersion=new _.bK;this.channel=new PVR(_.by({destination:window,iframe:Q,origin:(new URL(V.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var b=GQ;var F=AB(5);var t=new MNZ;t=_.DD(t,1,1E4);F=_.O9(F,4,zKq,t);b(E,F);E.onAudioToggled(E.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){E.sdkVersion.resolve("")},1E4)};
_.f(UrB,fL);_.K=UrB.prototype;_.K.onAudioToggled=function(v,Q){fL.prototype.onAudioToggled.call(this,v,Q===void 0?!0:Q);Q=GQ;var V=AB(2),E=new GZx;v=_.Tc(E,1,v);v=_.O9(V,3,zKq,v);Q(this,v)};
_.K.onPause=function(){fL.prototype.onPause.call(this);GQ(this,AB(3))};
_.K.onResume=function(){fL.prototype.onResume.call(this);GQ(this,AB(4))};
_.K.returnNativeBenchmarkingMessage=function(v){var Q=GQ,V=AB(6);var E=hB(_.ZD(v,IM,1)?1:2);v=_.ZD(v,IM,1)?v:null;E=_.O9(E,5,wA,v);Q(this,k9(V,E))};
_.K.sendGameData=function(v){var Q=GQ,V=AB(7);v=_.O9(V,5,zKq,v);Q(this,v)};
_.K.sendStartGameFrameCapture=function(){GQ(this,AB(9))};
var CL=function(v,Q,V){var E,b,F;return _.e(function(t){if(t.nextAddress==1)return E=v.callbacks,b=E.onSdkCalled,F=Q,t.yield(v.sdkVersion.promise,2);b.call(E,F,t.yieldResult,V);_.q1(t)})};
UrB.prototype.onMessage=function(){var v=this;return wqx(yS,function(Q){var V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3,OB,kQ,yo,xQ,lb,ep,JS,fZ,mS,PN,qZ,DX,Th,R8,LE,Q8,Tq,Ed,y8,mA,C$,oN;return _.e(function(dV){switch(dV.nextAddress){case 1:if(!WGS(Q.data))return _.Iy(Error("ci")),dV.return();V=_.Gs(Q.data,1);_.Y("enable_iframe_message_get_type_via_fields")&&(E=Q.data,V=b=_.Gs(E,1));switch(V){case 8:if(Q.data.hasMetadata()){var hS=v.sdkVersion,bh=hS.resolve;var ah=Q.data.getMetadata();ah=_.fN(ah,
1);bh.call(hS,ah);clearTimeout(v.sdkVersionTimeoutId)}break;case 6:return dV.jumpTo(2);case 16:if(!_.PC(Q.data,xkZ,14,c2))return dV.return();F=_.O7(Q.data,xkZ,14,c2);(p=(t=v.callbacks).onGameFrameReceived)==null||p.call(t,F);return dV.return();case 17:if(!_.PC(Q.data,NnS,15,c2))return dV.return();(d=(Z=v.callbacks).onGameAudioReceived)==null||d.call(Z,_.O7(Q.data,NnS,15,c2));return dV.return();case 1:if(hS=_.O7(Q.data,RKR,2,c2))switch(_.Gs(hS,1)){case 1:v.callbacks.onFirstFrameReady();if(_.Y("enable_network_request_logging_on_game_events")&&
_.ZD(hS,P2,4)){CL(v,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.TY(hS,P2,4));break}CL(v,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(ah=(bh=v.callbacks).onGameReady)==null||ah.call(bh);if(_.Y("enable_network_request_logging_on_game_events")&&_.ZD(hS,P2,4)){CL(v,"MINI_APP_SDK_API_GAME_READY",_.TY(hS,P2,4));break}CL(v,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.PC(hS,dA,3,nxZ))v.callbacks.onResourceLoaded(_.O7(hS,dA,3,nxZ))}return dV.return();case 3:return dV.jumpTo(3);case 4:return dV.jumpTo(4);
case 2:return dV.jumpTo(5);case 9:return dV.jumpTo(6);case 10:return v.callbacks.onClick(),dV.return();case 5:return dV.jumpTo(7);case 11:if(!_.PC(Q.data,pd,9,c2))return dV.return();w=_.O7(Q.data,pd,9,c2);(k=(A=v.callbacks).onBenchmarkingMessageReceived)==null||k.call(A,w);hS=Q.reply;bh=AB(1);ah=hB(1);var vs=new pd;var dl=new Uint8Array(qRV(w,J8(w,TnZ,6))|0);vs=np(vs,5,TnZ,_.lx(dl,!1));ah=_.O9(ah,5,wA,vs);hS.call(Q,k9(bh,ah));return dV.return();case 12:return dV.jumpTo(8);case 13:return dV.jumpTo(9);
case 15:if(!_.Y("enable_open_yt_content"))return Q.reply(j8f),dV.return();if(!_.PC(Q.data,J6V,12,c2))return Q.reply(k9(AB(1),hB(2))),dV.return();hS=_.O7(Q.data,J6V,12,c2);T=_.fN(hS,1);v.callbacks.onOpenYTContent(T);Q.reply(unq);return dV.return();case 14:return dV.jumpTo(10);default:return dV.return()}dV.jumpTo(0);break;case 2:if(!_.PC(Q.data,T5,5,c2))return dV.return();bh=Q.data;hS=J8(bh,c2,5);bh=bh.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=BYm(bh,bh[_.bx]|0,T5,hS)||T5[gaQ]||(T5[gaQ]=
sN9(T5));hS=_.PM(c,eh,1,_.dZ());C=_.L(hS);R=C.next();case 12:if(R.done){dV.jumpTo(14);break}l=R.value;S=new _.xd;S.level=_.Gs(l,2)===1?"WARNING":"ERROR";a=Q23(l.getSource());return dV.yield(v.sdkVersion.promise,15);case 15:g={source:a,sdkVersion:dV.yieldResult};_.ih(_.em(l,6))!=null?(S.message=l.getMessage(),S.stack=_.fN(l,5),g.sdkErrorType=V7S(_.Gs(l,6)),_.ih(_.em(l,7))!=null&&(g.sdkApi=E80(_.Gs(l,7)))):S.stack=void 0;r=u=void 0;(r=(u=v.callbacks).onError)==null||r.call(u,{loggingError:S,metadata:g});
R=C.next();dV.jumpTo(12);break;case 14:return dV.return();case 3:return _.GC(dV,16),hS=dV.yield,bh=v.callbacks,ah=bh.onSave,vs=_.O7(Q.data,CzN,4,c2),vs=_.fN(vs,1),hS.call(dV,ah.call(bh,vs),18);case 18:Q.reply(unq);_.FT(dV,17);break;case 16:return v9=_.n$(dV),t3=Dv,h3=v9,OB=v.callbacks,kQ="MINI_APP_SDK_API_SAVE_DATA",dV.yield(v.sdkVersion.promise,19);case 19:t3(h3,OB,kQ,dV.yieldResult),Q.reply(j8f);case 17:return dV.yield(CL(v,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return dV.return();case 4:return _.GC(dV,
21),dV.yield(v.callbacks.onLoad(),23);case 23:yo=dV.yieldResult;hS=Q.reply;bh=AB(1);ah=hB(1);vs=new CzN;vs=_.SS(vs,1,yo);ah=_.O9(ah,3,wA,vs);hS.call(Q,k9(bh,ah));_.FT(dV,22);break;case 21:return xQ=_.n$(dV),lb=Dv,ep=xQ,JS=v.callbacks,fZ="MINI_APP_SDK_API_LOAD_DATA",dV.yield(v.sdkVersion.promise,24);case 24:lb(ep,JS,fZ,dV.yieldResult),Q.reply(j8f);case 22:return dV.yield(CL(v,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return dV.return();case 5:_.GC(dV,26);v.callbacks.onSendHighScore(X9(_.O7(Q.data,
uER,3,c2).getValue()));Q.reply(k9(AB(1),hB(1)));_.FT(dV,27);break;case 26:return mS=_.n$(dV),PN=Dv,qZ=mS,DX=v.callbacks,Th="MINI_APP_SDK_API_SEND_SCORE",dV.yield(v.sdkVersion.promise,28);case 28:PN(qZ,DX,Th,dV.yieldResult),Q.reply(j8f);case 27:return dV.yield(CL(v,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return dV.return();case 6:if(!_.PC(Q.data,jlZ,8,c2)){dV.jumpTo(30);break}hS=dV.yield;bh=_.O7(Q.data,jlZ,8,c2);bh=_.Gs(bh,1);return hS.call(dV,CL(v,E80(bh)),30);case 30:return dV.return();case 7:return hS=
Q.reply,bh=AB(1),ah=hB(1),vs=v.callbacks.getLanguage(),ah=np(ah,4,wA,y5(vs)),hS.call(Q,k9(bh,ah)),dV.yield(CL(v,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return dV.return();case 8:if(!_.PC(Q.data,sla,10,c2))return dV.return();R8=_.O7(Q.data,sla,10,c2);LE=v.callbacks;Q8=LE.onSdkPerformanceUpdate;return dV.yield(v.sdkVersion.promise,33);case 33:return Q8.call(LE,R8,dV.yieldResult),dV.return();case 9:hS=Q.data;bh=J8(hS,c2,11);if(_.fj(_.em(hS,bh))==null)return Q.reply(k9(AB(1),hB(2))),dV.return();
Tq=Mq(Q.data,11,c2);v.callbacks.onShareInviteCode(Tq);Q.reply(unq);return dV.yield(CL(v,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return dV.return();case 10:if(_.PC(Q.data,fua,13,c2)){dV.jumpTo(35);break}return dV.yield(v.callbacks.onShowMiniAppAd(2),36);case 36:return Ed=dV.yieldResult,Q.reply(k9(AB(1),qMQ(Ed))),dV.yield(CL(v,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return dV.return();case 35:hS=_.O7(Q.data,fua,13,c2);a:switch(_.Gs(hS,1)){case 1:hS={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:hS={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:hS={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}y8=hS;mA=y8.adType;C$=y8.sdkApi;hS=dV.yield;bh=v.callbacks;ah=bh.onShowMiniAppAd;vs=_.O7(Q.data,fua,13,c2);vs=_.fN(vs,2);return hS.call(dV,ah.call(bh,mA,vs||void 0),38);case 38:return oN=dV.yieldResult,Q.reply(k9(AB(1),qMQ(oN))),dV.yield(CL(v,C$),39);case 39:return dV.return()}})})};
var GQ=function(v,Q){_.e(function(V){v.channel.send(Q);_.q1(V)})},RI=function(v,Q,V){this.callbacks=v;
var E=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;v=UjB(Q,(new URL(V.toString())).origin);this.gameSnacks=new Rbx(v);this.gameSnacks.page.onReady(function(){E.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){E.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var b,F;(F=(b=E.callbacks).onGameReady)==null||F.call(b)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(b,F){try{E.callbacks.onSendHighScore(F)}catch(t){Dv(t,E.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(b,F){var t;return _.e(function(p){if(p.nextAddress==1)return _.GC(p,2),p.yield(E.callbacks.onSave(E.decoder.decode(F)),4);if(p.nextAddress!=2)return _.FT(p,0);t=_.n$(p);Dv(t,E.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return p.return()})});
this.gameSnacks.storage.onLoad(function(){var b,F;return _.e(function(t){if(t.nextAddress==1)return _.GC(t,2),t.yield(E.callbacks.onLoad(),4);if(t.nextAddress!=2)return b=t.yieldResult,t.return(E.encoder.encode(b));F=_.n$(t);Dv(F,E.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return t.return(E.encoder.encode(""))})});
this.gameSnacks.init()};
_.f(RI,fL);RI.prototype.onAudioToggled=function(v,Q){fL.prototype.onAudioToggled.call(this,v,Q===void 0?!0:Q);var V;(V=this.gameSnacks)==null||V.audio.update(v)};
RI.prototype.onPause=function(){fL.prototype.onPause.call(this);var v;(v=this.gameSnacks)==null||v.game.pause()};
RI.prototype.onResume=function(){fL.prototype.onResume.call(this);var v;(v=this.gameSnacks)==null||v.game.resume()};var WIm=buo,ofI=_.x(function(v){var Q=v.data;var V=v.loadingProgress;var E=v.forPaused;v=_.L(_.Ge("",void 0,"LYYTdd"));var b=v.next().value,F=v.next().value;v=_.L(_.Ge(!1,void 0,"K0waae"));var t=v.next().value,p=v.next().value,Z=[],d=function(){return"transform: scaleX("+(_.or(V)||0)+")"},w=null,A=function(){return Q()&&w!==null&&w!==void 0?w:w=Q().showAnniversaryAnimation?6:WIm()};
_.uH(function(){var C;if(Q().timeOutMessages&&((C=Q().timeOutMessages)==null?0:C.length)){w=null;C=_.L(Z);for(var R=C.next();!R.done;R=C.next())clearTimeout(R.value);Z.length=0;F29(Q().timeOutMessages,Z,F,p)}},"BNu9j");
var k=function(){return!!Q().persistentErrorMessageTitle},T=function(){return V!==void 0},c=function(){return Q().title};
return _.P("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.P("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.P("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.P("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var C,R=(C=Q().backgroundImage)==null?void 0:C.sources,l;return(R==null?0:R.length)?"background-image: url("+((l=R[0])==null?void 0:l.url)+")":""}}),_.P("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.P(_.h,{cond:function(){return!k()&&!(E==null?0:E())},
then:function(){var C={};return _.P("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.P("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.P(_.z9,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+A()},
data:function(){var R="loading_animation_"+A();return{animationConfig:{name:R,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+R+".json",loop:!0,autoplay:!0}}}})),_.P("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.P(_.h,{cond:c,
then:function(){return _.P("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},c)}}),_.P("p",{class:_.QZ("miniAppSplashScreenViewModelTimeoutMessage",(C.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return t()},C)),
"aria-live":"polite"},b),_.P(_.h,{cond:T,then:function(){return _.P("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.P("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:d}))}})))}}),_.P(_.h,{cond:k,
then:function(){return _.P("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.P("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return Q().persistentErrorMessageTitle}),_.P(_.h,{cond:function(){return!!Q().persistentErrorMessageDescription},
then:function(){return _.P("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return Q().persistentErrorMessageDescription})}}))}}),_.P(_.h,{cond:E,
then:function(){return _.P("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.P("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.P("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},c))}})))},"Of");var Xs$=new _.KB("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var a0d=pU;pU=function(v){function Q(V){if(V){var E,b;(E=V.__spec)==null||(b=E.didUnmount)==null||b.call(E);for(E=0;E<V.childNodes.length;E++)Q(V.childNodes[E])}}
a0d==null||a0d(v);T4(function(){for(var V=0;V<v.length;V++)Q(v[V])})};var r7n=_.x(function(v){var Q=v.data;var V=v.score;var E=v.formattedScore;var b=v.onScoreChanged;var F=v.isEmbeddedInWebview;var t=_.Pa("yt-mini-app-score-button-view-model"),p=function(){var T;return _.y(Q==null?void 0:(T=Q())==null?void 0:T.buttonViewModel,_.pH)},Z=function(){var T;
return(V==null?void 0:V())||Number(Q==null?void 0:(T=Q())==null?void 0:T.lastScore)||0},d=function(){var T;
return(E==null?void 0:E())||((T=p())==null?void 0:T.title)||""},w,A=1;
if(v=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))v=Number(v),A=isNaN(v)?1:v/100;_.uH(function(){b==null||b(Z());var T;var c=_.MQ((T=p())==null?void 0:T.onTap);if(c){T=_.y(c,b1q);var C,R,l;T=_.y(T==null?void 0:(C=T.panelLoadingStrategy)==null?void 0:(R=C.inlineContent)==null?void 0:(l=R.dialogViewModel)==null?void 0:l.customContent,f28)}else T=void 0;if(C=T)C.score=d()},"Aekez");
v=_.EP(function(){var T,c,C=Q==null?void 0:(T=Q())==null?void 0:(c=T.loggingDirectives)==null?void 0:c.trackingParams;C&&_.x_(_.ht().resolve(_.o5),C);return!1});
_.jg(function(){if(t.value){var T=t.value.querySelector("button"),c=p();T&&c&&K2Z(T,c);_.wX("yt-share-playable-with-high-score",function(){var C=Z().toString(),R=Q==null?void 0:Q().onShareHighScoreCommand,l=Q==null?void 0:Q().highScoreShareClientParamIdentifier,S=F==null?void 0:F();R&&(S?(l=new oXa,C=_.SS(l,2,C),OI(R,C.JSC$12605_serializeBinary())):l&&(_.ht().resolve(Xs$).clientParams.set(l,{miniAppClientParams:{highScore:C}}),uio(R,!1)))})}});
var k=function(){var T=p();T&&(V==null?0:V())&&T.accessibilityText&&(T.accessibilityText=T.accessibilityText.replace(w,d()));w=d();return{numberValue:Z(),numberText:d(),heightPx:36,fontSizeMultiplier:A,shouldAnimate:!(V==null||!V())&&!0}};
return _.P("yt-mini-app-score-button-view-model",{class:function(){var T={};return _.Yl("miniAppScoreButtonViewModelHost",(T.miniAppScoreButtonViewModelIsVisible=Z()!==0,T))},
el:t,"on:click":v},hBS(!1,function(){return _.P("span",{style:"display:none;"},Z)}),_.P(_.Pw,{data:function(){var T;
return Q==null?void 0:(T=Q())==null?void 0:T.buttonViewModel}},{buttonViewModel:function(T){return _.P(_.D6,{data:T.data,
animatedTextProps:k})}}))},"Qf");var U$q=_.x(function(v){var Q,V=(Q=_.TA("yt-mini-app-is-theater-mode-enabled"))!=null?Q:!1,E=_.Y("enable_playable_container_save_button"),b=_.Y("enable_play_next_destination_page_in_toolbar");Q={};return _.P("ytm-mini-app-top-bar-view-model",null,_.P("div",{class:_.QZ("yt-mini-app-top-bar-view-model",(Q["yt-mini-app-top-bar-view-model--mobile"]=!1,Q["yt-mini-app-top-bar-view-model--desktop"]=!0,Q))},_.P("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.P(_.h,{cond:function(){var F;return!!v.data().backButtonEdu&&
!((F=v.isExitMiniAppSeen)==null?0:F.call(v))},
then:function(){return _.P(_.Pw,{data:function(){return v.data().backButtonEdu}},{buttonViewModel:_.D6})},
else:function(){return _.P(_.Pw,{data:function(){return v.data().backButton}},{buttonViewModel:_.D6})}}),_.P(_.h,{cond:function(){return v.data().viewAllButton&&!0},
then:function(){return _.P(_.Pw,{data:function(){return v.data().viewAllButton}},{buttonViewModel:_.D6})}}),_.P(_.h,{cond:function(){return v.data().title&&!0},
then:function(){return _.P("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return v.data().title})}})),_.P("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.P(_.h,{cond:function(){var F;
return(F=v.isDesktopPlayPage)==null?void 0:F.call(v)},
then:function(){return _.P(_.w7,null,_.P($$f,{highScoreButton:function(){return v.data().highScoreButton},
score:v.score,formattedScore:v.formattedScore,onScoreChanged:v.onScoreChanged,isEmbeddedInWebview:v.isEmbeddedInWebview}),_.P(I0q,{enableSaveButton:function(){return _.or(E)},
saveButton:function(){return v.data().saveButton},
isSaved:v.isSaved,onSaveToggled:function(){return v.onSaveToggled}}),_.P(Hj7,{menuButton:function(){return v.data().menuButton}}))},
else:function(){return _.P(_.h,{cond:function(){return!1},
then:function(){return _.P(_.Pw,{data:function(){return v.data().playPageButton}},{buttonViewModel:function(F){return _.P(_.D6,{data:F.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.P($$f,{highScoreButton:function(){return v.data().highScoreButton},
score:v.score,formattedScore:v.formattedScore,onScoreChanged:v.onScoreChanged,isEmbeddedInWebview:v.isEmbeddedInWebview})}})}})),_.P("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.P(_.Pw,{data:function(){return v.data().muteButton}},{toggleButtonViewModel:function(F){var t=F.data;
return _.P(_.a5,{data:function(){var p,Z;return Object.assign({},t(),{isToggled:(Z=(p=v.isAudioEnabled)==null?void 0:p.call(v))!=null?Z:!0})},
onToggle:v.onAudioToggled,useOutlinedIcon:!0})}}),_.P(_.Pw,{data:function(){return v.data().theatreModeButton}},{toggleButtonViewModel:function(F){var t=F.data;
return _.P("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.P(_.a5,{data:function(){return Object.assign({},t(),{isToggled:V})},
useOutlinedIcon:!0}))}}),_.P(m$I,{fullscreenButton:function(){return v.data().fullscreenButton}}),_.P(_.h,{cond:function(){return _.or(b)&&v.data().viewAllButton&&!1},
then:function(){return _.P(_.Pw,{data:function(){return v.data().viewAllButton}},{buttonViewModel:_.D6})}}),_.P(_.h,{cond:function(){var F;
return!((F=v.isDesktopPlayPage)==null?0:F.call(v))},
then:function(){return _.P(_.w7,null,_.P(I0q,{enableSaveButton:function(){return _.or(E)},
saveButton:function(){return v.data().saveButton},
isSaved:v.isSaved,onSaveToggled:function(){return v.onSaveToggled}}),_.P(Hj7,{menuButton:function(){return v.data().menuButton}}))}}))))},"Rf");
U$q.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Hj7=_.x(function(v){return _.P(_.Pw,{data:v.menuButton},{buttonViewModel:_.D6})},"Sf"),I0q=_.x(function(v){var Q=v.enableSaveButton;
var V=v.saveButton;var E=v.isSaved;var b=v.onSaveToggled;return _.P(_.h,{cond:function(){return Q()&&!(V==null||!V())},
then:function(){return _.P(_.Pw,{data:function(){var F=_.y(V==null?void 0:V(),_.Zq),t;return{toggleButtonViewModel:Object.assign({},F,{isToggled:(t=E==null?void 0:E())!=null?t:!(F==null||!F.isToggled)})}}},{toggleButtonViewModel:function(F){return _.P(_.a5,{data:F.data,
onToggle:b})}})}})},"Tf"),$$f=_.x(function(v){var Q=v.highScoreButton;
var V=v.score;var E=v.formattedScore;var b=v.onScoreChanged;var F=v.isEmbeddedInWebview;return _.P(_.Pw,{data:Q},{miniAppScoreButtonViewModel:function(t){return _.P(r7n,{data:t.data,score:V,formattedScore:E,onScoreChanged:b,isEmbeddedInWebview:F})}})},"Uf"),m$I=_.x(function(v){v=v.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.P(_.w7,null):_.P(_.Pw,{data:v},{buttonViewModel:_.D6})},"Vf");_.vP5=_.x(function(v){var Q=v.data;var V=v.extractOverlay;v={};return _.P("player-disclosure-view-model",{class:_.QZ("ytwPlayerDisclosureViewModelHost",(v.ytwPlayerDisclosureViewModelExtractOverlay=function(){return V==null?void 0:V()},v))},_.P(_.yL,{command:function(){return Q().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.P(_.h,{cond:function(){return Q().iconName},
then:function(E){return _.P(_.L_,{icon:E})}}),_.P(_.h,{cond:function(){return Q().iconName?void 0:Q().image},
then:function(E){return _.P(_.gE,{data:E,alt:function(){return Q().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.P(_.h,{cond:function(){return Q().title||Q().secondaryText},
then:function(){return _.P("div",null,_.P("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return Q().title}),_.P("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return Q().text}),_.P(_.h,{cond:function(){return Q().secondaryText},
then:function(E){return _.P(_.w7,null,_.P("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.P("div",{class:"ytwPlayerDisclosureViewModelText"},E))}}))},
else:function(){return _.P("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return Q().text})}}),_.P(_.h,{cond:function(){return Q().showEndChevron},
then:function(){return _.P(_.L_,{icon:"CHEVRON_RIGHT"})}})))},"Wf");_.QEd=new _.KB("DESKTOP_CURRENT_PAGE");var if8=_.x(function(v){var Q=v.data;var V=_.Y("force_active_time_logging_webview"),E=!1,b=new Oj7,F=void 0,t=void 0,p=_.ht().resolve(Mqm),Z=new c7Y,d=void 0,w=void 0,A=[],k=void 0,T=void 0,c=!1,C=!1,R=!1,l=!1,S=new _.bK,a=_.ht().resolve(Xs$),g=_.ht().resolve(_.kA),u=_.ht().resolve(_.d$(sr)),r,v9=(r=_.ht().resolve(_.d$(_.QEd)))==null?void 0:r.getCurrentPage(),t3=!1,h3=0,OB=function(Fa){Fa.preventDefault();return Fa.returnValue=""},kQ,yo=_.L(_.Ge(!((kQ=_.TA("yt-mini-app-is-audio-enabled"))!=null&&
!kQ),void 0,"wBOrKf")),xQ=yo.next().value,lb=yo.next().value,ep,JS=_.L(_.Ge(!((ep=_.TA("exit-mini-app-seen-state"))==null||!ep),void 0,"a2xYg")),fZ=JS.next().value,mS=JS.next().value,PN=_.L(_.Ge(!1,void 0,"i8BH4")),qZ=PN.next().value,DX=PN.next().value,Th=_.L(_.Ge(void 0,void 0,"UGqFqe")),R8=Th.next().value,LE=Th.next().value,Q8=_.L(_.Ge(void 0,void 0,"jrV5Ob")),Tq=Q8.next().value,Ed=Q8.next().value,y8=_.L(_.Ge(!0,void 0,"u5JS3d")),mA=y8.next().value,C$=y8.next().value,oN=_.L(_.Ge(!1,void 0,"MjPdB")),
dV=oN.next().value,hS=oN.next().value,bh=_.L(_.Ge(!1,void 0,"nT6Yxf")),ah=bh.next().value,vs=bh.next().value,dl=_.L(_.Ge(void 0,void 0,"nkG6")),E9=dl.next().value,wY=dl.next().value,Ws=_.L(_.Ge(0,void 0,"KH4u0b")),Zg=Ws.next().value,TT=Ws.next().value,WN=_.Ze("mini-app-container-view-model"),Gh=_.L(_.Ge(!1,void 0,"NsE4qb")),Fn=Gh.next().value,fg=Gh.next().value,la=function(){return Q().isEmbeddedInWebview},Ql=function(){return Q().hasPlayNextShelf};
_.uk(function(){var Fa,Yf=(Fa=_.y(Q().contentDisclosure,gcZ))==null?void 0:Fa.animationParams;if((Yf==null?0:Yf.shouldHide)&&(Yf==null?0:Yf.hideDelaySecs)){var Bs=setTimeout(function(){fg(!0)},Yf.hideDelaySecs*1E3);
_.j_(function(){clearTimeout(Bs)})}});
_.wX("yt-page-type-changed",function(Fa){if(_.Y("enable_is_mini_app_page_active_bugfix"))Fa.detail.newPageSubtype==="mini_app"&&Fa.detail.newPageType==="ytd-browse"||!mA()||h8();else if(Fa=_.su()==="mini_app",Fa!==mA())if(C$(Fa),Fa){var Yf;Fa=(Yf=Q().playableId)==null?void 0:Yf.toString();Fa!==void 0&&window.location.href.includes(Fa)&&!C&&(l=!0,rb(),wo.value&&Tl(wo.value))}else Fa||h8()});
_.wX("yt-action",function(Fa){Fa.detail.actionName==="yt-engagement-panel-visible-changed"&&Fa.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Fa.detail.args[2]==="PAmini_app_panel"&&h8();_.Y("enable_is_mini_app_page_active_bugfix")?Fa.detail.actionName==="yt-history-load"&&!mA()&&(v9==null?0:v9.active)?(C$(!0),rb(),wo.value&&Tl(wo.value)):Fa.detail.actionName==="yt-history-load"&&mA()&&!Q().isEmbeddedInWebview&&AS():mA()&&Fa.detail.actionName==="yt-history-load"&&(l?l=!1:Q().isEmbeddedInWebview||
AS())});
_.j_(function(){yN()});
_.uH(function(){rb()},"bzUf2c");
var rb=function(){var Fa=Q().playableId,Yf=Q().localReleaseId,Bs=Q().derivedDeviceInterface;if(C)_.Iy(new _.xd("[MiniAppContainerViewModel] onEnter was called more than once"));else{C=!0;F=new psY(Fa,Yf,Bs,document.visibilityState==="visible");d$I(F);t=new SdY(Fa);Vc0(p,Fa);f0m(Z,{showMiniAppAdCommand:Q().showMiniAppAdCommand,isEmbeddedInWebview:Q().isEmbeddedInWebview,playLogger:F});IGB()&&(T=document.body.style.backgroundColor,_.g2(document.body,"background-color","black"));nY();fD();S=new _.bK;
if(Q().isEmbeddedInWebview){if(Fa=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Zjn(F,Fa),t3=!0;b.initialize({onAudioStateLoaded:function(wl){Xr(wl)},
onMuteMiniApp:function(){Xr(!1)},
onUnmuteMiniApp:function(){Xr(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(wl){t3||(Zjn(F,wl),t3=!0)},
confirmExitMiniApp:function(){var wl,s_,gZ;return _.e(function($b){if($b.nextAddress==1)return Q().confirmExitMiniAppCommand?$b.yield(Promise.race([S.promise,Promise.resolve(!1)]),2):$b.return();(wl=$b.yieldResult)?!Q().confirmExitMiniAppCommandEdu||(gZ=(s_=fZ)==null?void 0:s_())!=null&&gZ?GE(Q().confirmExitMiniAppCommand):(GE(Q().confirmExitMiniAppCommandEdu),_.kN("exit-mini-app-seen-state","true",2592E6)):GE(Q().closeMiniAppCommand);_.q1($b)})},
onNativeBenchmarkingMessageReceived:function(wl){wl=y6N(_.s2B(wl));if(_.PC(wl,_.Cr,3,kZ8)){var s_=_.O7(wl,_.Cr,3,kZ8),gZ=jkr();var $b=X9(gZ.getSeconds())-X9(s_.getSeconds());s_=_.h5(gZ,2)-_.h5(s_,2);$b<0&&s_>0?($b+=1,s_-=1E9):$b>0&&s_<0&&(--$b,s_+=1E9);$b=(new IM).setSeconds($b);$b=_.vq($b,2,_.Lj(s_),0);_.Mj(wl,1,$b)}var uq;(uq=w)==null||uq.returnNativeBenchmarkingMessage(wl)},
multiplayer3pAckStateLoaded:function(wl){AS(wl)},
exitMiniAppSeenStateLoaded:function(wl){Q().confirmExitMiniAppCommandEdu&&mS(wl)},
onNavigateToNewMiniApp:function(){GE(Q().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(wl){wl=new URLSearchParams(wl);var s_=void 0;wl.has("invite_code")&&(s_=new DkN,wl=wl.get("invite_code"),s_=_.SS(s_,1,wl));if(wl=s_){var gZ;(gZ=w)==null||gZ.sendGameData(wl)}},
onPauseMiniApp:function(){E=!0;Dt()},
onResumeMiniApp:function(){E=!0;gG()},
onAdFinished:function(wl){Z.onAdFinished(wl)}});
Q().showMultiplayer3pConsentDialogCommand||S.resolve(!0);GE(Q().onContainerReadyCommand)}else Zjn(F),S.resolve(!0);zmY(t,emI(F));emI(F).then(function(wl){wl={miniAppPlayData:{postPlayNonce:wl}};var s_,gZ=(s_=Q().loggingDirectives)==null?void 0:s_.trackingParams;gZ&&_.tR().stateChanged(gZ,wl)});
Fa=Q().showSignInDialogCommand;!a4o()&&Fa&&(_.kN("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),GE(Fa));Q().confirmExitMiniAppCommand&&u&&(Fa=gjt(Q().confirmExitMiniAppCommand))&&(u.customConfirmationCommand=Fa)}},yN=function(){T&&_.g2(document.body,"background-color",T);
c=!1;k&&k.release();t.flush().catch(function(Fa){_.Iy(Fa)});
p.flush().catch(function(Fa){_.Iy(Fa)});
ws7(F);Py();w=void 0;EP8(a)},h8=function(){C$(!1);
yN();DX(!1);wY(void 0);LE(void 0);Ed(void 0);h3=0;TT(0);C=!1},Dt=function(){var Fa;
(Fa=w)==null||Fa.onPause();k&&k.release();t.flush().catch(function(Yf){_.Iy(Yf)});
p.flush().catch(function(Yf){_.Iy(Yf)});
hmI(F);hS(!0)},gG=function(){var Fa;
(Fa=w)==null||Fa.onResume();fD();Fa=F;Fa.isForeground=!0;YA(Fa,"PLAY_EVENT_TYPE_PLAY_RESUME");hS(!1)},Xr=function(Fa){var Yf;
(Yf=w)==null||Yf.onAudioToggled(Fa);lb(Fa)},AS=function(Fa){Q().showMultiplayer3pConsentDialogCommand&&(Q().isEmbeddedInWebview&&Fa!==void 0&&S.resolve(Fa),!Fa&&_.su()==="mini_app"&&GE(Q().showMultiplayer3pConsentDialogCommand))},cs=function(){var Fa,Yf,Bs,wl;
return _.e(function(s_){if(s_.nextAddress==1){!Q().isLivestream||Q().disableVideoCapture||(Fa=w)!=null&&Fa.sendStartGameFrameCapture();Yf=(new URL(window.location.href)).searchParams;if(Yf.has("invite_code")){var gZ=new DkN,$b=Yf.get("invite_code");Bs=_.SS(gZ,1,$b);(wl=w)==null||wl.sendGameData(Bs)}qZ()||(DX(!0),gZ=F,gZ.state!==1?_.Iy(new _.xd("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+LI8[gZ.state])):(_.c5("mini_app_ids_without_game_ready").includes(gZ.JSC$17147_miniAppId)&&(gZ.gameReady=
!0),gZ.state=2,gZ.beforeReady=!1,TQ(gZ,"ma_ffr"),YA(gZ,"PLAY_EVENT_TYPE_PLAY_READY")));return s_.yield(S.promise,2)}GE(Q().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();Q().isEmbeddedInWebview||AS();_.q1(s_)})},qj=function(){var Fa=F;
Fa.gameReady=!0;TQ(Fa,"ma_gr")},nj=function(Fa){var Yf;
return _.e(function(Bs){if(Bs.nextAddress==1)return _.GC(Bs,2),Bs.yield(NYf(t,Fa),4);if(Bs.nextAddress!=2)return _.FT(Bs,0);Yf=_.n$(Bs);GE(Q().showSavingErrorPopupCommand);throw Yf;})},MZ=function(){var Fa,Yf;
return _.e(function(Bs){if(Bs.nextAddress==1)return _.GC(Bs,2),Bs.yield(J7$(t),4);if(Bs.nextAddress!=2)return Fa=Bs.yieldResult,Bs.return(Fa);Yf=_.n$(Bs);GE(Q().showLoadingErrorDialogCommand);throw Yf;})},Gq=function(Fa){F.logError(Fa)},uh=function(Fa,Yf,Bs){khI(F,Fa,Yf,Bs)},jc=function(Fa,Yf){Ydd(F,Fa,Yf)},Ya=function(){!V&&Q().isEmbeddedInWebview||_.A8();
A7h(F,!0);c||(window.addEventListener("beforeunload",OB,{capture:!0}),c=!0)},rI=function(Fa){var Yf,Bs,wl,s_,gZ,$b,uq;
return _.e(function(GI){if(GI.nextAddress==1)return p&&(!d||d<Fa)&&Fa>0?GI.yield(bfh(p,Fa),3):GI.jumpTo(0);Yf=GI.yieldResult;Bs=_.L(Yf);wl=Bs.next().value;s_=Bs.next().value;gZ=wl;$b=s_;((uq=gZ)==null?0:uq.displayString)&&$b&&(LE($b),Ed(gZ.displayString));_.q1(GI)})},am=function(Fa){var Yf=Q().onBenchmarkingMessageReceivedCommand;
if(Yf){var Bs=jkr();_.O9(Fa,3,kZ8,Bs);OI(Yf,c6N(Fa))}},Wq=function(Fa){var Yf=Q().onGameFrameReceivedCommand;
if(Yf){var Bs=new Xf;var wl=new k5N;var s_=y2(Fa,1);wl=_.xh(wl,1,s_);Fa=_.fN(Fa,2);Fa=_.SS(wl,2,Fa);Bs=_.Mj(Bs,2,Fa);OI(Yf,cBZ(Bs))}},$U=function(Fa){var Yf=Q().onGameAudioDataReceivedCommand;
if(Yf){var Bs=new Xf;var wl=new YvZ;Fa=_.fN(Fa,1);wl=_.SS(wl,1,Fa);Bs=_.Mj(Bs,4,wl);OI(Yf,cBZ(Bs))}},bM=function(){var Fa=new URLSearchParams(window.location.search);
if(Q().isEmbeddedInWebview&&Fa&&Fa.get("override_hl")==="true"&&Fa.get("hl"))return Fa.get("hl");Fa=document.documentElement.lang;return Fa!==""?Fa:zO},T2=function(Fa){var Yf=Q().onShareInviteCodeCommand;
if(Yf)if(Q().isEmbeddedInWebview){var Bs=new oXa;Fa=_.SS(Bs,1,Fa);OI(Yf,aHp(Fa))}else Bs=Q().inviteCodeShareClientParamIdentifier,a.clientParams.set(Bs,{miniAppClientParams:{inviteCode:Fa}}),GE(Yf)},Aa=function(Fa){var Yf,Bs,wl;
return _.e(function(s_){if(s_.nextAddress==1)return Yf=Q().onMiniAppOpenYtContentRequested,p&&_.Y("enable_open_yt_content")&&Yf?s_.yield(FJd(p,Fa),3):s_.jumpTo(0);Bs=s_.yieldResult;if(Bs==="OK")if(Q().isEmbeddedInWebview){var gZ=new ddA;wl=np(gZ,2,oX,y5(Fa));OI(Yf,ABq(wl))}else g.clientData.set("video_id",Fa),GE(Yf);_.q1(s_)})},ku=function(Fa){h3+=_.h5(Fa,3);
Fa=Math.min(Math.log(1+h3/15E6*9)/Math.log(10),.99);TT(Fa);Qe(Fa)},Qe=_.Gm(function(Fa){var Yf=Q().updateLoadingProgressCommand;
if(Yf){var Bs=new ddA;Fa=np(Bs,3,oX,_.IN(Fa));OI(Yf,ABq(Fa))}},100),gH=function(Fa){return Ch0(Z,Fa)},fD=function(){var Fa,Yf;
((Fa=_.CG0())==null?void 0:(Yf=Fa.wakeLock)==null?void 0:Yf.request)!=null&&_.CG0().wakeLock.request("screen").then(function(Bs){k=Bs}).catch(function(){})},wo=_.Pa("iframe");
_.uH(function(){Q().isSupportedCountry&&(a4o()||_.Y("enable_sign_in_promo")||!Q().showSignInDialogCommand?wo.value&&Tl(wo.value):GE(Q().onMiniAppReadyCommand))},"VjCqQ");
var MN=function(){return _.P("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return qZ()?0:-1},
el:wo})},Tl=function(Fa,Yf){Yf=Yf===void 0?!1:Yf;
var Bs=Zr();Bs&&(Yf||Bs.toString()!==Fa.getAttribute("src"))&&(w=v89(Q().source,{isAudioEnabled:xQ,onFirstFrameReady:cs,onGameReady:qj,onSave:nj,onLoad:MZ,onError:Gq,onSdkCalled:uh,onSdkPerformanceUpdate:jc,onClick:Ya,onSendHighScore:rI,onBenchmarkingMessageReceived:am,getLanguage:bM,onShareInviteCode:T2,onResourceLoaded:ku,onOpenYTContent:Aa,onShowMiniAppAd:gH,onGameFrameReceived:Wq,onGameAudioReceived:$U},Fa,Bs),ZM(Fa,"load",function(){TQ(F,"ma_il");ZM(Fa,"load",function(){Tl(Fa,!0)})}),_.vc(Fa,
Bs))},Zr=function(){var Fa=Q().url;
if(Fa&&(Fa=_.ae(Fa),Fa!==null)){if(Q().source&&Q().source==="MINI_APP_SOURCE_GAMESNACKS")Fa=_.k4(Fa,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.Y("enable_origin_query_parameter_bugfix")){var Yf=_.YG(_.Z33(Fa.toString()));Yf=new URLSearchParams(Yf||"");Yf.set("origin",window.location.origin);Yf=Yf.toString();Fa=_.Sc(Fa).toString();Fa=_.lV(FQq.exec(Fa)[0]+(Yf.trim()?"#"+Yf:""))}return Fa}},R4=function(){var Fa={};
Fa=_.QZ("yt-mini-app-container-view-model__loading-screen",(Fa["yt-mini-app-container-view-model__loading-screen--fade-out"]=qZ,Fa));var Yf=function(){return qZ()?1:Zg()};
return _.P("div",{class:Fa},_.P(_.Pw,{data:function(){return Q().splashScreen}},{miniAppSplashScreenViewModel:function(Bs){return _.P(ofI,{data:Bs.data,
loadingProgress:Yf})}}))},hX=function(){var Fa={};
return _.P("div",{class:_.QZ("yt-mini-app-container-view-model__pause-interstitial",(Fa["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!dV()},Fa["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=dV,Fa))},_.P(_.Pw,{data:function(){return Q().splashScreen}},{miniAppSplashScreenViewModel:function(Yf){return _.P(ofI,{data:Yf.data,
forPaused:!0})}}))},nY=function(){A=[];
A.push(_.wE(window,"visibilitychange",function(){R||E&&la()||(document.visibilityState==="visible"?gG():Dt())}));
A.push(_.wE(window,"pagehide",function(){yN()}));
A.push(_.wE(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&WN.value.dispatchEvent(new Event("tap"))},0)}));
A.push(_.wE(WN.value,"pointerdown",function(){A7h(F,!1)},!0));
A.push(_.wE(WN.value,"pause",function(){R=!0;Dt()}));
A.push(_.wE(WN.value,"play",function(){R=!1;gG()}));
A.push(_.wE(WN.value,"exit",function(){yN()}));
var Fa=navigator.keyboard,Yf=Fa&&Fa.lock;A.push(_.wE(window,Asp,function(){vs(TSR());TSR()?(Q().hasPlayNextShelf&&G6("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),w1("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Yf&&Fa.lock(["Escape"])):(Q().hasPlayNextShelf&&w1("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),G6("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Yf&&Fa.unlock())}));
Q().showMultiplayer3pConsentDialogCommand&&A.push(_.wE(window,"yt-playables-ack-3p-data-usage",function(){KJh(p)}));
Q().confirmExitMiniAppCommandEdu&&A.push(_.wE(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.kN("exit-mini-app-seen-state","true",2592E6)}));
Q().onGameAudioDataReceivedCommand&&A.push(_.wE(window,"message",function(Bs){Bs=Bs.event_;var wl,s_=(wl=wo.value)==null?void 0:wl.src;if(s_&&Bs.origin===(new URL(s_)).origin&&Bs.data&&Bs.data.type==="GAME_AUDIO"&&Bs.data.audio&&Bs.data.audio.length>0)if(_.Y("enable_sending_unwrapped_game_audio_as_serialized_metadata"))ojB(Q().onGameAudioDataReceivedCommand,Bs.data.audio);else{var gZ=new FileReader;gZ.onload=function(){var $b=new Xf;var uq=new YvZ;uq=_.SS(uq,1,gZ.result);$b=_.Mj($b,4,uq);OI(Q().onGameAudioDataReceivedCommand,
cBZ($b))};
gZ.readAsDataURL(new Blob([Bs.data.audio]))}}))},Py=function(){A.forEach(function(Fa){Pg(Fa)});
window.removeEventListener("beforeunload",OB,{capture:!0})},GE=function(Fa){Fa&&uio(Fa,Q().isEmbeddedInWebview||!1)},w1=function(Fa,Yf){Fa=_.L(WN.value.getElementsByClassName(Fa));
for(var Bs=Fa.next();!Bs.done;Bs=Fa.next())Bs.value.classList.add(Yf)},G6=function(Fa,Yf){Fa=_.L(WN.value.getElementsByClassName(Fa));
for(var Bs=Fa.next();!Bs.done;Bs=Fa.next())Bs.value.classList.remove(Yf)};
return function(){var Fa={};Fa=_.QZ("yt-mini-app-container-view-model",(Fa["yt-mini-app-container-view-model--desktop"]=!0,Fa["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return Q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Fa["yt-mini-app-container-view-model--ios-web-view"]=IGB(),Fa["yt-mini-app-container-view-model--no-top-bar"]=function(){return!Q().topBar},Fa["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return Q().hasPlayNextShelf},Fa["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return Q().hasPlayNextShelf},Fa["yt-mini-app-container-view-model--show-peek-below"]=function(){return!ah()&&Q().hasPlayNextShelf},Fa));
var Yf={};Yf=_.QZ("yt-mini-app-container-view-model__content",(Yf["yt-mini-app-container-view-model__content--desktop-content"]=!0,Yf["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return Q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Yf["yt-mini-app-container-view-model--desktop-play-page"]=function(){return Q().hasPlayNextShelf},Yf));
return _.P("mini-app-container-view-model",{el:WN},_.P("div",{class:Fa},_.P(_.h,{cond:function(){return Q().topBar&&!ah()},
then:function(){return _.P(_.Pw,{data:function(){return Q().topBar}},{miniAppTopBarViewModel:function(Bs){return _.P(U$q,{data:Bs.data,
isAudioEnabled:xQ,onAudioToggled:function(wl){Xr(wl)},
score:R8,formattedScore:Tq,onScoreChanged:function(wl){d=wl},
isEmbeddedInWebview:la,isSaved:E9,onSaveToggled:function(wl){wY(wl)},
isExitMiniAppSeen:fZ,isDesktopPlayPage:Ql})}})}}),_.P("div",{class:Yf},_.P(_.h,{cond:mA,
then:function(){return MN()}}),_.P(_.h,{cond:function(){return Q().isLivestream},
then:function(){return hX()}}),_.P(_.h,{cond:function(){return!Q().isEmbeddedInWebview},
then:function(){return R4()}}),_.P(_.Pw,{data:function(){return Q().contentDisclosure}},{playerDisclosureViewModel:function(Bs){Bs=Bs.data;
var wl={};return _.P("div",{class:_.QZ("yt-mini-app-container-view-model__content-disclosure-overlay",(wl["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=Fn,wl))},_.P(_.vP5,{data:Bs}))}}))))}()},"$f");
if8.idomCompat=!0;_.ad(if8,"mini-app-container-view-model",{props:{data:_.pJ}});var LJm=_.x(function(v){var Q=v.data;return _.P("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.P("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.EP(function(){var V=Q().onTap;V&&_.nx(V)})},_.P(_.h,{cond:function(){return Q().icon},
then:function(V){return _.P(_.L_,{icon:function(){return V().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.P("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return Q().title})))},"ag");
LJm.idomCompat=!0;var tc7=_.x(function(v){var Q=_.Ze("div"),V=_.L(_.Ge(void 0,void 0,"dg3xff")),E=V.next().value,b=V.next().value;V=_.L(_.Ge(void 0,void 0,"AgHNfc"));var F=V.next().value,t=V.next().value;V=_.L(_.Ge(void 0,void 0,"fuTKCc"));var p=V.next().value,Z=V.next().value,d=function(){var l=E();return l!==void 0?Math.abs(l):void 0},w=function(){var l=d();
return l===void 0||l<=3},A=function(){var l=d();
var S=F(),a=p();l=l!==void 0&&S!==void 0&&a!==void 0?S-a-l:void 0;return l===void 0||l<=3},k=function(l){Q.value&&Q.value.scrollBy({top:0,
left:(_.r7("HTML_DIR")==="rtl"?-1:1)*l*Q.value.clientWidth,behavior:"smooth"})},T=function(){var l;
b((l=Q.value)==null?void 0:l.scrollLeft);var S;t((S=Q.value)==null?void 0:S.scrollWidth);var a;Z((a=Q.value)==null?void 0:a.clientWidth)},c=function(){k(-.5)},C=function(){k(.5)};
V=_.EP(function(){T()});
_.uk(function(){T();if(Q.value&&window.ResizeObserver){var l=new ResizeObserver(T);l.observe(Q.value);_.j_(function(){l.disconnect()})}});
var R={};return _.P("yt-sponsorships-scrollable-shelf",{class:_.QZ("ytdSponsorshipsScrollableShelfHost",v.className)},_.P("div",{class:_.QZ("ytdSponsorshipsScrollableShelfContent",(R.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return v.data().previousButton&&v.data().nextButton&&!w()&&!A()},R.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return v.data().previousButton&&!w()&&A()},R.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return v.data().nextButton&&
w()&&!A()},R)),
el:Q,"on:scroll":V},v.children),_.P(_.h,{cond:function(){return!w()},
then:function(){return _.P(_.Pw,{data:function(){return v.data().previousButton}},{buttonViewModel:function(l){return _.P(_.D6,{data:l.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:c})}})}}),_.P(_.h,{cond:function(){return!A()},
then:function(){return _.P(_.Pw,{data:function(){return v.data().nextButton}},{buttonViewModel:function(l){return _.P(_.D6,{data:l.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:C})}})}}))},"cg");
tc7.idomCompat=!0;var ebY=_.x(function(v){var Q=v.data;v={};return _.P("yt-sponsorships-hub",{class:_.QZ("ytdSponsorshipsHubHost",(v.ytdSponsorshipsHubHostIndented=function(){return Q().indented},v))},_.P("div",{class:"ytdSponsorshipsHubHeader"},_.P("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.P("div",{class:"ytdSponsorshipsHubAvatar"},_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO})),_.P(_.h,{cond:function(){return Q().badgeImage},
then:function(V){return _.P("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.P("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.P("div",{class:"ytdSponsorshipsHubBadge"},_.P(_.gE,{data:V,targetWidth:24,targetHeight:24,alt:""}))))}})),_.P("div",{class:"ytdSponsorshipsHubDetails"},_.P("div",{class:"ytdSponsorshipsHubTierName"},function(){return Q().tierName}),_.P("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return Q().membershipType}),_.P("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return Q().membershipDurationOrExpiry})),_.P("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.P(_.Pw,{data:function(){return Q().manageButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.P(_.Pw,{data:function(){return Q().actionMenuButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.P("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return Q().perksTitle}),_.P(tc7,{data:function(){return{previousButton:Q().previousPerkButton,
nextButton:Q().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.P("div",{class:"ytdSponsorshipsHubPerkCards"},_.P(_.Pw,{data:function(){return Q().perkCards}},{sponsorshipsHubPerkCardViewModel:LJm}),_.P(_.h,{cond:function(){return Q().viewAllPerksButton},
then:function(V){return _.P(pqj,{data:V})}}))))},"dg");
ebY.idomCompat=!0;var pqj=_.x(function(v){var Q=v.data;return _.P("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.P(_.Pw,{data:function(){return Q().button}},{buttonViewModel:_.D6}),_.P("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.P("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return Q().title}),_.P("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return Q().subtitle})))},"eg");
pqj.idomCompat=!0;_.ad(ebY,"yt-sponsorships-hub",{props:{data:_.pJ}});_.Zfd=_.x(function(v){var Q=v.data;return _.P("yt-dual-avatar-view-model",{class:_.QZ("ytDualAvatarViewModelHost",v.className),style:_.iP({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var V;return((V=Q().badgeCutoutRadius)!=null?V:14)+"px"}})},_.P("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.P(_.Pw,{data:function(){return Q().startAvatar}},{avatarViewModel:_.QO}),_.P(_.Pw,{data:function(){return Q().endAvatar}},{avatarViewModel:_.QO})),_.P(_.Pw,{data:function(){return Q().badge}},
{contentPreviewImageViewModel:function(V){return _.P("div",{class:"ytDualAvatarViewModelBadge"},_.P(_.RV,{data:V.data}))}}))},"fg");
_.Zfd.idomCompat=!0;var djY=_.x(function(v){var Q=v.data;var V,E=!((V=_.ht().resolve(_.d$(_.JR)))==null||!V());v=_.Rr(function(){var w,A,k=E?(w=Q().header)==null?void 0:w.backgroundColorDarkMode:(A=Q().header)==null?void 0:A.backgroundColorLightMode;if(k!==void 0)return _.CF(k)},void 0,"TDdh7d");
V=_.Rr(function(){var w,A;return E?(w=Q().header)==null?void 0:w.backgroundImagePart1Dark:(A=Q().header)==null?void 0:A.backgroundImagePart1Light},void 0,"X0peMe");
var b=_.Rr(function(){var w,A;return E?(w=Q().header)==null?void 0:w.backgroundImagePart2Dark:(A=Q().header)==null?void 0:A.backgroundImagePart2Light},void 0,"an0Hzd"),F=_.Rr(function(){return _.r7("HTML_DIR")==="rtl"},void 0,"BltEgb"),t=_.Ze("yt-sponsorships-perks-list"),p=!1,Z=function(){var w=t.value;
if(w&&!p){var A,k=(A=w.parentElement)==null?void 0:A.parentElement;if(k)for(w=w.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),A=0;A<w.length;++A){var T=w[A];if(T instanceof HTMLElement){k.scrollTo({top:T.offsetTop+T.clientHeight/2-k.clientHeight/2,behavior:"smooth"});p=!0;break}}}};
_.jg(function(){var w=t.value;if(w&&window.ResizeObserver){var A=new ResizeObserver(Z);A.observe(w);_.j_(function(){A.disconnect()})}});
var d={};return _.P("yt-sponsorships-perks-list",{el:t,class:_.QZ("ytdSponsorshipsPerksListHost",(d.ytdSponsorshipsPerksListHorizontalPadding=function(){return Q().horizontalPaddingEnabled},d))},_.P("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.P("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.iP({"background-color":v})},_.P("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.P(_.h,{cond:V,then:function(w){var A={};return _.P("div",{class:_.QZ((A.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=E,A.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!E,A.ytdSponsorshipsPerksListFlipped=F,A))},_.P(_.gE,{data:w,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.P("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.P(_.h,{cond:b,
then:function(w){var A={};return _.P("div",{class:_.QZ((A.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=E,A.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!E,A.ytdSponsorshipsPerksListFlipped=F,A))},_.P(_.gE,{data:w,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.P("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.P(_.Pw,{data:function(){var w;
return(w=Q().header)==null?void 0:w.dualAvatar}},{dualAvatarViewModel:_.Zfd})))),_.P("div",{class:"ytdSponsorshipsPerksListBody"},_.P("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return Q().title}),_.P(_.h,{cond:function(){return Q().perks},
then:function(w){return _.P(_.xb,{each:w},function(A,k){var T={};return _.P("div",{class:_.QZ("ytdSponsorshipsPerksListPerkContainer",(T.ytdSponsorshipsPerksListSelectedPerk=function(){var c=k(),C=Q().selectedPerkIndex;return c===C},T))},_.P(_.h,{cond:function(){return k()>0},
then:function(){return _.P("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.P("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.P(_.h,{cond:function(){return A.icon},
then:function(c){return _.P(_.L_,{icon:function(){return c().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.P("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.P("div",{class:"ytdSponsorshipsPerksListPerkTitle"},A.title),_.P("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.P(_.tD,{text:A.description})),_.P(_.h,{cond:function(){return A.instructions},
then:function(){var c,C;return _.P("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.P("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(c=A.instructions)==null?void 0:c.title),_.P("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.P(_.tD,{text:(C=A.instructions)==null?void 0:C.text})))}}))),_.P(_.h,{cond:function(){return A.emoji},
then:function(c){return _.P("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.P(_.xb,{each:function(){return c()}},function(C){return _.P(_.gE,{data:C,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.P(PVd,{data:A}))})}})))},"gg");
djY.idomCompat=!0;var PVd=_.x(function(v){var Q=v.data;var V=function(t,p){return t===p},E=function(){var t=Q();
t=_.y(t==null?void 0:t.badgesShelf,HAZ);return t!==void 0&&t!==null?t:{previousButton:{},nextButton:{}}},b=_.Pa("div"),F=function(){var t=b.value;
if(t){var p=t.parentElement;if(p){t=t.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var Z=0;Z<t.length;++Z){var d=t[Z];if(d instanceof HTMLElement){p.scrollTo({left:d.offsetLeft+d.clientWidth/2-p.clientWidth/2,behavior:"instant"});break}}}}};
_.jg(function(){var t=b.value;if(t){var p=new ResizeObserver(F);p.observe(t);_.j_(function(){p.disconnect()})}});
return _.P("div",null,_.P(_.h,{cond:function(){return Q().badges},
then:function(t){return _.P(tc7,{data:E},_.P("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:b},_.P(_.xb,{each:function(){return t()}},function(p,Z){var d={},w={},A={};
return _.P("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.P(_.h,{cond:function(){return Z()>0},
then:function(){return _.P("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.P("div",{class:_.QZ("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return V(Z(),Q().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!V(Z(),Q().currentBadgeIndex)},d))},_.P("div",{class:_.QZ("ytdSponsorshipsPerksListLoyaltyBadge",(w.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return V(Z(),
Q().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!V(Z(),Q().currentBadgeIndex)},w))},_.P(_.h,{cond:function(){return p.image},
then:function(k){var T={};return _.P("div",{class:_.QZ((T.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return V(Z(),Q().currentBadgeIndex)},T.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!V(Z(),Q().currentBadgeIndex)},T))},_.P(_.gE,{data:k,
alt:""}))}})),_.P("div",{class:_.QZ("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(A.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return V(Z(),Q().currentBadgeIndex)},A))},p.title)))})))}}))},"hg");
PVd.idomCompat=!0;_.ad(djY,"yt-sponsorships-perks-list",{props:{data:_.pJ}});_.ad(_.x(function(v){return _.P("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.P(_.h,{cond:function(){return v.data().image},
then:function(Q){return _.P(_.gE,{className:"ytwFantasyEmptyStateViewModelImage",data:Q,ariaHidden:!0,alt:""})}}),_.P(_.tD,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return v.data().title}}),_.P(_.tD,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return v.data().subtitle}}),_.P(_.Pw,{data:function(){return v.data().primaryButton}},{buttonViewModel:function(Q){return _.P(_.D6,{data:Q.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ig"),"ytw-fantasy-empty-state-view-model",{props:{data:_.pJ}});var hb5;var wqh=_.x(function(v){var Q=v.data;var V=v.uniqueId;var E=v.overrides;v=_.Rr(function(){var b,F=((b=Q().timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:V(),timings:F,experimentEnabled:F.length>0,enabled:F.length>0}},void 0,"hiuXI");
return _.P("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.P(I$R,{settings:v},_.P(_.Pw,{data:function(){return Q().buttonRenderer}},{buttonRenderer:function(b){return _.P(_.T$,{data:b.data,
buttonOverrides:E})}})))},"jg");
wqh.idomCompat=!0;_.ad(wqh,"timed-animation-button-renderer",{props:{data:_.pJ,uniqueId:_.pJ,overrides:_.pJ}});var MW=function(){var v=_.z.apply(this,arguments)||this;v.hideJoinButtonBeforeSubscribed=_.Y("hide_join_button_before_subscribed");v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return v};
_.f(MW,_.z);_.K=MW.prototype;_.K.hasShowDialogCommand=function(v){return!!_.y(v,b1q)};
_.K.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"}}}};
_.K.updateJoinButtonOverrides=function(){var v,Q;(v=_.m9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(Q=v.polymerController)==null||Q.set("overrides",this.joinButtonOverrides);if(v=_.m9(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))v.overrides=this.joinButtonOverrides};
_.K.handleButtonRefreshAction=function(v){if(v=_.y(v,R_Q))this.set("data.membershipButton",v.membershipButton),this.notifyPath("data.membershipButton")};
_.K.onYtServiceRequestError=function(v){_.NJ(this.hostElement,v.detail.error.message)};
_.K.onKeydown=function(v){if(v.key==="Enter"){var Q;(Q=this.data)!=null&&Q.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.K.handleUnsubscribeAction=function(){var v,Q,V;((v=this.data)==null?void 0:(Q=v.membershipButton)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.style)==="STYLE_PRIMARY"&&_.m9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.hr.Object.defineProperties(MW.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.subscriptionStateEntity)==null||!v.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.data)==null?void 0:v.membershipButton,V;v=(Q==null?void 0:Q.buttonRenderer)||_.y(Q==null?void 0:(V=Q.timedAnimationButtonRenderer)==null?void 0:V.buttonRenderer,_.KH);return(v==null?void 0:v.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(v==null?void 0:v.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(v==null?void 0:v.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var v;if(this.hasShowDialogCommand((v=this.data)==null?void 0:v.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var v;if(this.hasShowDialogCommand((v=this.data)==null?void 0:v.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.attributedTitle)}}});
MW.prototype.onYtServiceRequestError=MW.prototype.onYtServiceRequestError;MW.prototype.updateJoinButtonOverrides=MW.prototype.updateJoinButtonOverrides;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],MW.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],MW.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.XU),_.X("design:type",Object)],MW.prototype,"ironButtonState",void 0);_.W([_.q(),_.X("design:type",Object)],MW.prototype,"data",void 0);_.W([_.O("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.X("design:type",Object),_.X("design:paramtypes",[])],MW.prototype,"hideJoin",null);
_.W([_.q(),_.X("design:type",String)],MW.prototype,"subscribeKey",void 0);_.W([_.q({selectorArgs:["subscribeKey"],selector:vZT}),_.X("design:type",Object)],MW.prototype,"subscriptionStateEntity",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MW.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.W([_.O("subscriptionStateEntity"),_.q({reflectToAttribute:!0}),_.X("design:type",Object),_.X("design:paramtypes",[])],MW.prototype,"subscribed",null);
_.W([_.O("subscribed","data.membershipButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],MW.prototype,"joinButtonOverrides",null);_.W([_.O("data.navigationEndpoint"),_.X("design:type",Object),_.X("design:paramtypes",[])],MW.prototype,"channelNameTabIndex",null);_.W([_.O("data.navigationEndpoint"),_.X("design:type",Object),_.X("design:paramtypes",[])],MW.prototype,"channelNameRole",null);
_.W([_.O("data.attributedTitle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],MW.prototype,"hasAttributedTitle",null);_.W([_.ph("joinButtonOverrides"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MW.prototype,"updateJoinButtonOverrides",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],MW.prototype,"onYtServiceRequestError",null);
_.W([_.J({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],MW);
var Aej=_.Hn()(MW,"ytd-video-owner-renderer",function(){if(hb5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);hb5=v}v=hb5;return v},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.ad(_.x(function(v){var Q=v.data;var V;v=_.L(_.Ge(!((V=_.TA("yt-mini-app-is-theater-mode-enabled"))==null||!V),void 0,"i2pjVd"));var E=v.next().value,b=v.next().value;V=_.L(_.Ge(!1,void 0,"ga7V5c"));var F=V.next().value,t=V.next().value;_.jg(function(){var d=_.wE(window,Asp,function(){t(TSR())});
_.j_(function(){Pg(d)})});
var p;V=(p=_.ht().resolve(_.d$(gQd)))!=null?p:function(){return _.P("div",null)};
_.ez("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){b(!0);_.kN("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.ez("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){b(!1);_.kN("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
p={};v={};var Z={};return _.P("mini-app-play-page-renderer",{class:_.QZ("miniAppPlayPageRendererHost",(p.miniAppPlayPageRendererHostDetailsView=function(){return!E()},p))},_.P("div",{class:_.QZ("miniAppPlayPageRendererGameContainer",(v.miniAppPlayPageRendererGameContainerDetailsView=function(){return!E()},v))},_.P(_.Pw,{data:function(){return Q().containerViewModel}},{miniAppContainerViewModel:if8}),_.P(_.h,{cond:function(){return Q().channel&&Q().subscribeButton},
then:function(){var d={};return _.P("div",{class:_.QZ("miniAppPlayPageRendererChannelContainer",(d.miniAppPlayPageRendererHideVisibility=function(){return F()},d))},_.P(_.Pw,{data:function(){return Q().channel}},{videoOwnerRenderer:function(w){return _.P(Aej,{data:w.data})}}),_.P(_.Pw,{data:function(){return Q().subscribeButton}},{subscribeButtonViewModel:function(w){return _.P(_.vI,{data:w.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.P(_.h,{cond:function(){return!E()&&Q().description},
then:function(){var d={};return _.P("div",{class:_.QZ("miniAppPlayPageRendererMiniAppDescriptionWrapper",(d.miniAppPlayPageRendererHideVisibility=function(){return F()},d))},_.P("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return Q().description}))}})),_.P("div",{class:_.QZ("miniAppPlayPageRendererPlayNextContainer",(Z.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!E()},Z.miniAppPlayPageRendererHideVisibility=function(){return F()},Z))},_.P(_.Pw,{data:function(){return Q().sectionList}},
{sectionListRenderer:V})))},"kg"),"mini-app-play-page-renderer",{props:{data:_.pJ}});var OV=function(){var v=_.z.apply(this,arguments)||this;v.isSearch=!1;v.isConstrainedList=!1;v.hasChipsBar=!1;v.inReplyPanel=!1;v.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};v.monitorScroll=!0;v.SCROLL_ANIMATION_DURATION_MS=300;v.nextContinuation={continuationType:"sectionListContinuation"};return v};
_.f(OV,_.z);_.K=OV.prototype;
_.K.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(v){switch(v.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.Y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Y("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.K.created=function(){var v=this;this.JSC$17287_scrollAnimation=new _.AE(function(Q){v.hostElement.scrollTop=Q})};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.K.getItemsPath=function(){return"data.contents"};
_.K.replacePrimaryContent=function(v){this.set("data.contents",v)};
_.K.computeHasSortFilter=function(v){return!!v&&!!v.sortFilterSubMenuRenderer};
_.K.computeShouldScrollInPanel=function(v){var Q;return!!(v==null?0:(Q=v.scrollPaneStyle)==null?0:Q.scrollable)};
_.K.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.VE(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.K.scrollToTop=function(){this.hostElement.scrollTop=0};
_.K.scrollToItemSection=function(v){if(v=this.getItemByIdentifier(v))v=this.getScrollPositionForItem(v),this.hostElement.scrollTop!==v&&this.JSC$17287_scrollAnimation.start(this.hostElement.scrollTop,v,this.SCROLL_ANIMATION_DURATION_MS)};
_.K.getItemByIdentifier=function(v){var Q=this.contents.querySelectorAll("ytd-item-section-renderer");if(Q&&Q.length!==0){var V=Array.from(Q).findIndex(function(E){return E.sectionIdentifier===v});
return Q[V===-1?0:V]}};
_.K.getScrollPositionForItem=function(v){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===v)return 0;v=_.ob(v).y+this.hostElement.scrollTop-_.ob(this.hostElement).y;return Math.min(v,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.hr.Object.defineProperties(OV.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.targetId)==="browse-feedFEclips"}}});
OV.prototype.onScroll=OV.prototype.onScroll;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],OV.prototype,"ytLazyListBehavior",void 0);_.W([_.M(_.Ak.YtNextContinuationBehavior),_.X("design:type",Object)],OV.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.M(_.Efd),_.X("design:type",Object)],OV.prototype,"ytBooleanLogicBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],OV.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OV.prototype,"data",void 0);_.W([_.q({value:2}),_.X("design:type",Number)],OV.prototype,"initialCount",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],OV.prototype,"autoFill",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.X("design:type",Boolean)],OV.prototype,"hasSortFilter",void 0);_.W([_.q({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.X("design:type",Boolean)],OV.prototype,"hideBottomSeparator",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.X("design:type",Boolean)],OV.prototype,"shouldScrollInPanel",void 0);
_.W([_.q(),_.X("design:type",Object)],OV.prototype,"isSearch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OV.prototype,"isConstrainedList",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],OV.prototype,"responsiveSizing",void 0);_.W([_.q(),_.X("design:type",Object)],OV.prototype,"hasChipsBar",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],OV.prototype,"pageSubtype",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OV.prototype,"engagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OV.prototype,"liveChatEngagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OV.prototype,"inReplyPanel",void 0);_.W([_.Z7("#action-button"),_.X("design:type",HTMLElement)],OV.prototype,"actionButton",void 0);_.W([_.q(),_.X("design:type",Object)],OV.prototype,"scrollUpButtonData",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OV.prototype,"engagementPanelDropdown",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OV.prototype,"engagementPanelDialog",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],OV.prototype,"isClipList",null);_.W([_.Z7("#contents"),_.X("design:type",HTMLElement)],OV.prototype,"monitorScrollElement",void 0);_.W([_.Z7("#contents"),_.X("design:type",HTMLElement)],OV.prototype,"contents",void 0);
_.W([_.tM("scroll"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OV.prototype,"onScroll",null);_.W([_.J({is:"ytd-section-list-renderer",disableElementRegistration:!0})],OV);
var kdq=_.Hn()(OV,"ytd-section-list-renderer",function(){if(BGm===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);BGm=v}v=BGm;return v},{mode:1});var Tl7;var Y9I;var ye7;var ceh;var Dc=function(){return _.z.apply(this,arguments)||this};
_.f(Dc,_.z);Dc.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Dc.prototype.onLikeButtonClick=function(v){v.stopPropagation();v.preventDefault()};
_.hr.Object.defineProperties(Dc.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Dc.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Dc.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Dc.prototype,"ytRendererStamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Dc.prototype,"data",void 0);
_.W([_.q({selectorArgs:["data.likeStatusEntityKey"],selector:D1}),_.X("design:type",Object)],Dc.prototype,"likeStatusEntity",void 0);_.W([_.O("data","likeStatusEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],Dc.prototype,"likeButtonRenderer",null);_.W([_.J({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Dc);
_.B(Dc,"ytd-slim-metadata-toggle-button-renderer",function(){if(ceh!==void 0)return ceh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return ceh=v},{mode:1});var RW=function(){var v=_.z.apply(this,arguments)||this;v.minimizePipBreakages=_.Y("web_pip_minimize_breakages");v.showEqualizer=_.Y("web_enable_playlist_video_lockup_equalizer");v.watchColorUpdate=_.Y("kevlar_watch_color_update");v.actionMap={};return v};
_.f(RW,_.z);_.K=RW.prototype;_.K.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"}}}};
_.K.computeEditableClass=function(v){return v&&v.menu?"editable":""};
_.K.computeSelected=function(v){return!(v==null||!v.selected)};
_.K.computeUseColorPalette=function(v){return!!((v==null?0:v.lightColorPalette)&&(v==null?0:v.darkColorPalette))};
_.K.computeLargerPlaylistThumbs=function(v,Q){return _.Y("web_enable_playlist_bigger_thumbnails")&&!Q};
_.K.computeMinimizePipBreakages=function(v){return this.minimizePipBreakages&&v};
_.K.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.K.onYtServiceRequestSent=function(v,Q){Q.endpoint&&this.isHideEnclosingAction(Q.endpoint)&&!this.selected&&z0Z(_.hQ(),this.data.videoId)};
_.K.isHideEnclosingAction=function(v){var Q=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",v);v=this.get("likeEndpoint.status",v)==="INDIFFERENT";return Q||v};
_.K.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.K.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.hr.Object.defineProperties(RW.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var v;return!!(this.withinMiniplayer&&((v=this.data)==null?0:v.actionButtons))}}});
RW.prototype.onYtServiceRequestSent=RW.prototype.onYtServiceRequestSent;RW.prototype.canReorderChanged=RW.prototype.canReorderChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],RW.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.p1),_.X("design:type",Object)],RW.prototype,"ytdLockupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],RW.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"withinMiniplayer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],RW.prototype,"minimizePipBreakages",void 0);_.W([_.q({computed:"computeSelected(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"selected",void 0);
_.W([_.q({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"useColorPalette",void 0);_.W([_.q({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"largerPlaylistThumbs",void 0);_.W([_.q(),_.X("design:type",Object)],RW.prototype,"showEqualizer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"canReorder",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"touchPersistentDragHandle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],RW.prototype,"handleIsHovered",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],RW.prototype,"watchColorUpdate",void 0);_.W([_.q(),_.X("design:type",String),_.X("design:paramtypes",[])],RW.prototype,"reorderIcon",null);
_.W([_.q(),_.X("design:type",String),_.X("design:paramtypes",[])],RW.prototype,"playIcon",null);_.W([_.O("largerPlaylistThumbs"),_.X("design:type",Number),_.X("design:paramtypes",[])],RW.prototype,"thumbnailWidth",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],RW.prototype,"showActionButtons",null);_.W([_.wg("canReorder"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],RW.prototype,"canReorderChanged",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],RW.prototype,"onYtServiceRequestSent",null);_.W([_.J({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],RW);
_.B(RW,"ytd-playlist-panel-video-renderer",function(){if(ye7!==void 0)return ye7;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[computeMinimizePipBreakages(withinMiniplayer)]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ye7=v},{mode:2});var nL=function(){return _.z.apply(this,arguments)||this};
_.f(nL,_.z);nL.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nL.prototype,"data",void 0);_.W([_.J({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],nL);
_.B(nL,"ytd-playlist-panel-supported-items",function(){if(Y9I!==void 0)return Y9I;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Y9I=
v},{mode:1});y2q=!0;KwR("\\P{N}");var L2T;var f5h=_.Lt("END_OF_PLAYLIST",void 0,"End of playlist"),Gds=_.Lt("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),lw=function(){var v=_.z.apply(this,arguments)||this;v.minimizePipBreakages=_.Y("web_pip_minimize_breakages");v.hideHeaderText=!1;v.useColorPalette=!1;v.collapsed=!1;v.collapsedPreServerOverride="not_tracked";v.isHovered=!1;v.expandLabel=_.Lt("MINIPLAYER_EXPAND_LABEL");v.collapseLabel=_.Lt("MINIPLAYER_COLLAPSE_LABEL");v.isFloating=!1;v.metaPanel=
!1;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};v.currentIndex=void 0;return v};
_.f(lw,_.z);_.K=lw.prototype;
_.K.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"}}}};
_.K.created=function(){var v=this;this.scrollThrottle=new _.FK(this.onThrottledScroll,1E3,this);this.JSC$17309_ytReorderableController=new _.LBp(56,function(Q){v.handleDrop(Q)})};
_.K.onMouseEnter=function(){this.isHovered=!0};
_.K.onMouseLeave=function(){this.isHovered=!1};
_.K.computeOverflowMenuData=function(v){return v&&v.menu?v.menu:null};
_.K.computeCollapsible=function(v){return!v};
_.K.computeHasPlaylistButtons=function(v){return!(!v||!v.playlistButtons)};
_.K.computeHasSeparateSaveButton=function(v){return!(!v||!v.saveButton)};
_.K.computeHasToolbarButton=function(v,Q){return!(!v||!(Q||v.saveButton||v.menu))};
_.K.computePlaylistType=function(v){if(v&&v.playlistId)return v.playlistId.substring(0,4)};
_.K.computeCanReorder=function(v){return v?v.playlistId&&v.playlistId.startsWith("TLPQ")?!0:!!v.isEditable&&!v.isInfinite:!1};
_.K.attached=function(){var v=this;try{_.ht().resolve(_.pD).setPlaylistComponent(this.hostElement)}catch(Q){if(_.Y("kevlar_park_on_playlist_token_killswitch"))throw Q;_.Zp().parkOrScheduleJob(function(){_.ht().resolve(_.pD).setPlaylistComponent(v.hostElement)},2,"ci")}_.$I(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.K.detached=function(){_.Ix(this.hostElement);_.Bk(this.JSC$17309_ytReorderableController)};
_.K.computeTrailingIcon=function(v,Q,V){return V?Q?"yt-icons:collapse":"yt-icons:close":Q?"yt-icons:expand":_.Y("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.K.computeIndexMessage=function(v,Q){return euQ(v+1)+" / "+euQ(Q)};
_.K.onRenderStamperFinished=function(){if(this.scrollForStampDom){var v=!0;this.isHovered&&(v=!1);if(this.collapsed||this.hidden)v=!1;v&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.K.collapseChanged=function(){var v=this;this.collapsed||(_.Lq(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.K.hiddenChanged=function(){var v=this;this.hidden||_.Lq(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.scrollToCurrentVideo()})};
_.K.setupReordering=function(){var v=_.m9(this.hostElement).querySelector("#items");xuZ?_.tlX(this.JSC$17309_ytReorderableController,v,v,"playlist-drag-handle"):_.tlX(this.JSC$17309_ytReorderableController,v,v)};
_.K.scrollToCurrentVideo=function(){var v=this;_.XT.addJob(function(){var Q=_.m9(v.hostElement).querySelector("#items");if(Q){Q.style.setProperty("padding-bottom","");var V=_.m9(v.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(V){Q=V.parentElement||_.RM(document);var E=Q||_.RM(document);var b=_.ob(V),F=_.ob(E),t=_.rdV(E);if(E==_.RM(document)){var p=b.x-E.scrollLeft;b=b.y-E.scrollTop}else p=b.x-F.x-t.left,b=b.y-F.y-t.top;V=WQX(V);F=E.clientHeight-
V.height;t=E.scrollLeft;var Z=E.scrollTop;t+=p-(E.clientWidth-V.width)/2;E=new _.ua(t,Z+(b-F/2));Q.scrollLeft=E.x;Q.scrollTop=E.y}}},8)};
_.K.dataChanged=function(){var v=this;_.Bk(this.JSC$17309_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.PE(this,function(){_.go(v.ytTaskEmitterBehavior.getTaskManager(),function(){v.ytRendererBehavior.markDirty();v.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.K.onFullBleedPlayerChanged=function(){_.Y("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.K.onFullscreenChanged=function(){_.Y("web_watch_imax_theater_mode")||_.Y("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.K.updateNowPlayingOverlay=function(){_.Y("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.K.onPlaylistLockupNowPlaying=function(v,Q){Q&&(this.activeNowPlayingRenderer=Q);this.updateNowPlayingOverlay()};
_.K.onScroll=function(){this.scrollThrottle.fire()};
_.K.onThrottledScroll=function(){var v=this;_.go(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.ytRendererBehavior.markDirty()})};
_.K.onToggleExpanded=function(v){!this.collapsible||v&&(_.jV(v).tagName==="A"||_.j$(_.uK(v),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.K.setCollapsed=function(v){this.collapsible&&(this.collapsed=v,_.Un(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.K.handleCollapsedFromData=function(v){if(v){var Q=v.playlistPanelCollapseState;Q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||Q==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),Q=Q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==Q&&this.setCollapsed(Q)):this.currentPlaylistId!==v.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(Q=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==Q&&this.setCollapsed(Q),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=v.playlistId}};
_.K.handleDrop=function(v){var Q=v.currDragItem;v=Q.data.playlistSetVideoId;var V=_.B9(Q.parentNode.childNodes,Q),E=void 0;V>0&&(E=Q.parentNode.childNodes[V-1].data.playlistSetVideoId);Q=_.hQ();if(Q.responsePlaylistData&&Q.responsePlaylistData.contents){var b=H1h(v,Q.responsePlaylistData);Q.responsePlaylistData=(0,_.gI.unsafeClone)(Q.responsePlaylistData);BGT(Q.responsePlaylistData.contents,b,V);Q.queueProxy?pFS(Q.queueProxy,b,V,v,E):Q.playlistProxy&&pFS(Q.playlistProxy,b,V,v,E);_.ww(Q,_.AQ(Q,Q.response?
Q.response.autoplayRenderer:void 0))}};
_.K.handleDarkModeChange=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.K.colorPaletteChanged=function(){var v,Q=((v=this.data)==null?void 0:v.contents)||[],V;v=_.L(Q);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var E=void 0;if((E=Q.playlistPanelVideoRenderer)==null?0:E.selected){v=Q.playlistPanelVideoRenderer;E=Q=void 0;(V=this.isDarkTheme?(Q=v)==null?void 0:Q.darkColorPalette:(E=v)==null?void 0:E.lightColorPalette)&&_.Tr(this.hostElement,V);break}}this.useColorPalette=!!V};
_.hr.Object.defineProperties(lw.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.moveThreeDotsMenuToMainHeader)&&_.Y("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var v=_.ht().resolve(_.d$(_.pD)),Q;if(((Q=this.data)==null?0:Q.contents)&&(v==null?0:v.hasAutoplayData())){var V;if(((V=this.playlistLoopStateEntity)==null?void 0:V.state)==="PLAYLIST_LOOP_STATE_ONE"){if(v=this.data.currentIndex,v!==void 0){var E,b;var F=(E=this.data.contents[v])==null?void 0:(b=E.playlistPanelVideoRenderer)==null?void 0:b.title}}else{var t,p=(t=_.y(v.getAutoplayEndpoint(),_.sn))==null?void 0:t.videoId,Z,d;F=(Z=this.data.contents.find(function(w){var A;
return((A=w.playlistPanelVideoRenderer)==null?void 0:A.videoId)===p}))==null?void 0:(d=Z.playlistPanelVideoRenderer)==null?void 0:d.title}return F}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)!=null&&v.nextVideoLabel?this.nextVideoTitle?_.j0(this.data.nextVideoLabel)+":":f5h:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?0:v.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.Y("web_mix_long_byline_from_data"))return _.u3(Gds);var Q;return(Q=this.data)==null?void 0:Q.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.playlistButtons)==null?void 0:(V=Q.menuRenderer)==null?void 0:V.topLevelButtons;if(E)for(v=_.L(E),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.playlistLoopButtonRenderer)return Q.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var v;return!!(this.collapsed&&((v=this.data)==null?0:v.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
lw.prototype.colorPaletteChanged=lw.prototype.colorPaletteChanged;lw.prototype.onPlaylistLockupNowPlaying=lw.prototype.onPlaylistLockupNowPlaying;lw.prototype.updateNowPlayingOverlay=lw.prototype.updateNowPlayingOverlay;lw.prototype.onFullscreenChanged=lw.prototype.onFullscreenChanged;lw.prototype.onFullBleedPlayerChanged=lw.prototype.onFullBleedPlayerChanged;lw.prototype.dataChanged=lw.prototype.dataChanged;lw.prototype.hiddenChanged=lw.prototype.hiddenChanged;lw.prototype.collapseChanged=lw.prototype.collapseChanged;
lw.prototype.onRenderStamperFinished=lw.prototype.onRenderStamperFinished;lw.prototype.onMouseLeave=lw.prototype.onMouseLeave;lw.prototype.onMouseEnter=lw.prototype.onMouseEnter;_.W([_.M(_.WW),_.X("design:type",Object)],lw.prototype,"ironResizableBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(zAa.YtPlaylistPanelBehavior),_.X("design:type",Object)],lw.prototype,"ytPlaylistPanelBehavior",void 0);_.W([_.M(_.hD.YtTaskEmitterBehavior),_.X("design:type",Object)],lw.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],lw.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],lw.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],lw.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lw.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],lw.prototype,"autoplayData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],lw.prototype,"withinMiniplayer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lw.prototype,"minimizePipBreakages",void 0);
_.W([_.q({computed:"setMenuData_(data)"}),_.X("design:type",Object)],lw.prototype,"menuRendererData",void 0);_.W([_.q({computed:"computeOverflowMenuData(data)"}),_.X("design:type",Object)],lw.prototype,"overflowMenuDataTopRow",void 0);_.W([_.q({computed:"computeOverflowMenuData(data)"}),_.X("design:type",Object)],lw.prototype,"overflowMenuData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lw.prototype,"hideHeaderText",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lw.prototype,"useColorPalette",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.X("design:type",Boolean)],lw.prototype,"collapsible",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lw.prototype,"collapsed",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],lw.prototype,"hidden",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.X("design:type",Boolean)],lw.prototype,"hasPlaylistButtons",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.X("design:type",Boolean)],lw.prototype,"hasSeparateSaveButton",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.X("design:type",Boolean)],lw.prototype,"hasToolbar",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.X("design:type",String)],lw.prototype,"playlistType",void 0);_.W([_.q(),_.X("design:type",Object)],lw.prototype,"isHovered",void 0);_.W([_.q({selectorArgs:["playlistLoopStateEntityKey"],selector:_.X4.playlistLoopStateEntitySelector}),_.X("design:type",Object)],lw.prototype,"playlistLoopStateEntity",void 0);_.W([_.q({computed:"computeCanReorder(data)"}),_.X("design:type",Boolean)],lw.prototype,"canReorder",void 0);
_.W([_.q(),_.X("design:type",Object)],lw.prototype,"expandLabel",void 0);_.W([_.q(),_.X("design:type",Object)],lw.prototype,"collapseLabel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lw.prototype,"isFloating",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lw.prototype,"metaPanel",void 0);_.W([_.q({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.X("design:type",String)],lw.prototype,"trailingIcon",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],lw.prototype,"isDarkTheme",void 0);_.W([_.q({selector:_.MS}),_.X("design:type",Boolean)],lw.prototype,"miniplayerIsActive",void 0);_.W([_.q({selector:function(v){return v.watch.playerState}}),
_.X("design:type",Number)],lw.prototype,"playerState",void 0);_.W([_.q({selector:_.MC}),_.X("design:type",Boolean)],lw.prototype,"isFullscreen",void 0);_.W([_.q({selector:_.C_}),_.X("design:type",Boolean)],lw.prototype,"isTheaterMode",void 0);_.W([_.q(),_.X("design:type",Object)],lw.prototype,"activeNowPlayingRenderer",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],lw.prototype,"moveThreeDotMenuToTopRow",null);
_.W([_.O("data","autoplayData","playlistLoopStateEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],lw.prototype,"nextVideoTitle",null);_.W([_.O("data","nextVideoTitle"),_.X("design:type",String),_.X("design:paramtypes",[])],lw.prototype,"nextVideoLabel",null);_.W([_.O("collapsed"),_.X("design:type",String),_.X("design:paramtypes",[])],lw.prototype,"buttonAriaLabel",null);
_.W([_.O("data","playlistId","longBylineText"),_.X("design:type",Object),_.X("design:paramtypes",[])],lw.prototype,"mixLongByLine",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],lw.prototype,"playlistLoopStateEntityKey",null);_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"onMouseEnter",null);
_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"onMouseLeave",null);_.W([_.q({reflectToAttribute:!0}),_.O("data","collapsed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],lw.prototype,"showNextVideoHeader",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"onRenderStamperFinished",null);
_.W([_.ph("collapsed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"collapseChanged",null);_.W([_.ph("hidden"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"hiddenChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"dataChanged",null);
_.W([_.O("isTheaterMode","isFullscreen"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],lw.prototype,"isFullBleedPlayer",null);_.W([_.ph("isTheaterMode","isFullscreen"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"onFullBleedPlayerChanged",null);_.W([_.ph("isFullscreen"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"onFullscreenChanged",null);
_.W([_.ph("playerState","miniplayerIsActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"updateNowPlayingOverlay",null);_.W([_.tM("yt-playlist-lockup-now-playing-active"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],lw.prototype,"onPlaylistLockupNowPlaying",null);
_.W([_.ph("data","isDarkTheme"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lw.prototype,"colorPaletteChanged",null);_.W([_.J({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],lw);
_.CVs=_.Hn()(lw,"ytd-playlist-panel-renderer",function(){if(Tl7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);Tl7=v}v=Tl7;return v},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var Mc8;var qW=function(){return _.z.apply(this,arguments)||this};
_.f(qW,_.z);qW.prototype.computeShouldButtonBeVertical=function(v,Q){return v||Q};
qW.prototype.onYtServiceRequestSent=function(v,Q){(v=_.y(Q.endpoint,_.nr))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.dW("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:v.status})):this.handleLikeEndpoint(v))};
qW.prototype.computelikeStatusEntityKey=function(v){return v==null?void 0:v.likeStatusEntityKey};
qW.prototype.handleLikeEndpoint=function(v){v.status==="LIKE"?this.JSC$17315_ytdDislikeToggleButtonRenderer.toggle(!1):v.status==="DISLIKE"?this.JSC$17315_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17315_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17315_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.hr.Object.defineProperties(qW.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var v;return diZ(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(v=this.likeStatusEntity)==null?void 0:v.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var v;if(this.data&&((v=this.data)==null||!v.hideDislikeButton)){var Q;return diZ(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(Q=this.likeStatusEntity)==null?void 0:Q.likeStatus)}}}});
qW.prototype.onYtServiceRequestSent=qW.prototype.onYtServiceRequestSent;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],qW.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qW.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],qW.prototype,"vertical",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],qW.prototype,"textTransform",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],qW.prototype,"useShortsIcon",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],qW.prototype,"underIconLabel",void 0);_.W([_.q({value:"left"}),_.X("design:type",String)],qW.prototype,"buttonTooltipPosition",void 0);_.W([_.q(),_.X("design:type",Object)],qW.prototype,"overrides",void 0);
_.W([_.Z7("#like-button"),_.X("design:type",Object)],qW.prototype,"JSC$17315_ytdLikeToggleButtonRenderer",void 0);_.W([_.Z7("#dislike-button"),_.X("design:type",Object)],qW.prototype,"JSC$17315_ytdDislikeToggleButtonRenderer",void 0);_.W([_.O("data","likeStatusEntity.likeStatus","useShortsIcon"),_.X("design:type",Object),_.X("design:paramtypes",[])],qW.prototype,"likeButton",null);
_.W([_.O("data","likeStatusEntity.likeStatus","useShortsIcon"),_.X("design:type",Object),_.X("design:paramtypes",[])],qW.prototype,"dislikeButton",null);_.W([_.q({computed:"computelikeStatusEntityKey(data)"}),_.X("design:type",String)],qW.prototype,"likeStatusEntityKey",void 0);_.W([_.q({selectorArgs:["likeStatusEntityKey"],selector:D1}),_.X("design:type",Object)],qW.prototype,"likeStatusEntity",void 0);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],qW.prototype,"onYtServiceRequestSent",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],qW);
var Ofj=_.Hn()(qW,"ytd-like-button-renderer",function(){if(Mc8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);Mc8=v}v=Mc8;return v},{mode:1});_.Djf={};
_.Djf.YtConditionalRendererBehavior=[_.H.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(v,Q){var V=this,E,b;return _.e(function(F){switch(F.nextAddress){case 1:if(!Q)return V.hidden=!0,V.showSpinner=!1,F.return();if((E=v)==null?0:(b=E.visibilityCondition)==null?0:b.mode)switch(v.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return F.jumpTo(5);default:return F.jumpTo(6)}V.showSpinner=
!1;V.hidden=!0;return F.yield(V.shouldShow_(v),4);case 4:V.hidden=!F.yieldResult;F.jumpTo(0);break;case 5:return F.yield(V.shouldShow_(v),8);case 8:V.showSpinner=F.yieldResult;V.hidden=!1;F.jumpTo(0);break;case 6:return V.showSpinner=!1,F.yield(V.shouldShow_(v),9);case 9:V.hidden=!F.yieldResult,_.q1(F)}})},
shouldShow_:function(v){return v&&v.supportedDatas&&v.supportedDatas.rendererVisibilityConditionData&&v.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(v.supportedDatas.rendererVisibilityConditionData.showIf):v&&v.visibilityCondition&&v.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(v.visibilityCondition.showIf):v&&v.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(v.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(v){switch(v){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(v){switch(v){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var v=_.mb(this.hostElement,"yt-get-mdx-status");return v.length==1&&v[0].connected},
isLocationPermissionGranted_:function(){var v;return _.e(function(Q){return Q.nextAddress==1?navigator.permissions?Q.yield(navigator.permissions.query({name:"geolocation"}),3):Q.jumpTo(2):Q.nextAddress!=2?(v=Q.yieldResult,Q.return(Promise.resolve(v.state==="granted"))):Q.return(Promise.resolve(!1))})}}];var Rbh=jYt("yt-icon",{callbackProps:["onKeydown"]}),nPq=_.Y("kevlar_use_wil_icons")?_.x(function(v){var Q=v.icon;var V=v.active;var E=v.className;var b=v.style;var F=v.title;var t=v.size;var p=v.dataSelected;var Z=v.dataDisabled;var d=v.role;var w=v.themeOverride;var A=v.animateIcon;var k=v.ariaHidden;var T=v.ariaExpanded;var c=v.ariaLabel;var C=v.tabindex;var R=v.id;var l=v.iconFilter;var S=v.gradientColor;var a=v.onKeydown;var g=function(){var v9=Q==null?void 0:Q(),t3=null,h3=void 0;v9&&(v9=pD8(v9),
v9=kQB(v9),v9.length&&(t3=v9[1],h3=v9[0]));return{iconName:t3,iconSetName:h3}},u=function(){return eRN(g().iconName,V==null?void 0:V(),void 0,t==null?void 0:t(),g().iconSetName,_.ht().resolve(_.Eo))},r=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:l==null?void 0:l(),iconColor:S==null?void 0:S()}};
return _.P(_.h,{cond:A,then:function(){return _.P(Rbh,{icon:Q,active:V,className:E,style:b,title:F,dataSelected:p,dataDisabled:Z,role:d,themeOverride:w,ariaHidden:k,ariaExpanded:T,ariaLabel:c,tabindex:C,id:R,iconFilter:l,gradientColor:S,onKeydown:a})},
else:function(){return _.P(_.h,{cond:u,then:function(v9){return _.P("span",{class:_.QZ("ytIconWrapperHost",E),role:d,"aria-label":c,"aria-hidden":k,tabindex:function(){return isNaN(Number(C==null?void 0:C()))?void 0:Number(C==null?void 0:C())},
id:R,style:b,title:F,"on:keydown":_.EP(function(t3){return void(a==null?void 0:a(t3))})},_.P(_.kW,{data:v9,
options:r}))}})}})},"lg"):Rbh;var l5q=function(v){var Q=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];k4Q();_.Pr("ytglobal.ytUtilActivityCallback_",function(){_.Un(v,"yt-user-activity")});
new Px(function(){return Q.JSC$17332_onMouseMove});
document.addEventListener("scroll",function(){return Q.onScroll});
window.addEventListener("resize",function(){return Q.onResize})},q90=function(v,Q,V){Q in v.eventJobIds||(V=_.yX().addLowPriorityJob(function(){_.A8();
delete v.eventJobIds[Q]},V),v.eventJobIds[Q]=V)};
l5q.prototype.onScroll=function(v){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):v.target===document&&q90(this,"scroll",200)};
l5q.prototype.onResize=function(){q90(this,"resize",200)};
l5q.prototype.JSC$17332_onMouseMove=function(){q90(this,"mousemove",100)};
_.Ty=function(v){v.scrollEventsToIgnore+=1;v.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){v.scrollEventsToIgnore--},500))};var S9h=function(v){this.element=v;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
S9h.prototype.showFeedbackDialog=function(v,Q,V,E){var b=zbY();if(!b)return!1;var F=CBS();F.productId=b;Q&&(F.flow="submit",F.report={description:Q});V&&(zbY()==="59"?F.callback=_.v5(function(){_.X0("userFeedbackEvent",{});V()}):F.callback=_.v5(V));
F.bucket=E||_.r7("GOOGLE_FEEDBACK_BUCKET","Other");Je0(F);v=Nln(this,"GFEEDBACK",v);try{_.AfA(F,v)}catch(t){return _.Ui(t),!1}return!0};
S9h.prototype.showHelpDialog=function(v,Q,V){var E=this,b=zbY();if(!b)return!1;var F={helpCenterPath:"/youtube",productData:Nln(this,"GUIDED_HELP",V)};Je0(F);var t=CBS();t.context=v||F.productData.context||"default";t.defaultHelpArticleId=Q;t.enableSendFeedback=!0;(_.Q9("gapi.load")||function(p,Z){return Z()})("client",function(){try{var p=cFN(b,F);
if(_.Y("web_always_load_chat_support")&&!E.chatSupportLoaded)try{p.JSC$10055_loadChatSupport(t),E.chatSupportLoaded=!0}catch(Z){}p.startHelp(t)}catch(Z){_.Ui(Z)}})};
var zbY=function(){var v=_.r7("GOOGLE_FEEDBACK_PRODUCT_ID");v||_.Ui(Error("gi"));return v},Je0=function(v){v&&(v.locale=_.Y("kevlar_help_use_locale")?_.r7("INNERTUBE_CONTEXT_HL","en"):_.r7("HTML_LANG","en"))},Nln=function(v,Q,V){var E=v.productData;
delete E.origin;E.device=_.T0();var b;a:{if(b=document.createElement("canvas")){var F=b.getContext("experimental-webgl",{stencil:!0});if(F){var t=F.getExtension("WEBGL_debug_renderer_info");if(t){b=F.getParameter(t.UNMASKED_RENDERER_WEBGL);break a}}if(F=b.getContext("webgl")){b=F.getParameter(F.RENDERER);break a}}b=null}E.gpu=b;E.isSDC=!!_.r7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(b=_.r7("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.gI.extend(E,b);_.ffZ(Q,E);_.GxE(E);(v=_.Un(v.element,"yt-get-autonav-pause-debug-state"))&&
v.length&&(E.autonav_pause_state=v[0]);v=_.Rb();E.browser_resolution=v.width+"\u00d7"+v.height+"@"+(window.devicePixelRatio||1)+"x";V&&_.gI.extend(E,V);return E};
S9h.prototype.resetProductData=function(){this.productData={}};var xj5=function(v){this.feedbackManager=new S9h(v)};
xj5.prototype.showFeedbackDialog=function(v,Q,V,E){return this.feedbackManager.showFeedbackDialog(v,Q,V,E)};
xj5.prototype.showHelpDialog=function(v,Q,V){return this.feedbackManager.showHelpDialog(v,Q,V)};var Bl0=function(){this.baseUrl="";this.aTag=document.createElement("a")},jL8=function(v,Q,V){V=V===void 0?{}:V;
V.pbj||(V.pbj=1);V=_.Q7Q(Q,V);v.baseUrl&&V&&!_.tt(V)[1]&&!_.pi(V)&&(Q=v.baseUrl,ib(Q,"/")&&(Q=Q.slice(0,-1)),_.KE(V,"/")&&(V=V.slice(1)),V=Q+"/"+V);$P(v.aTag,_.s9(V||""));return v.aTag.href};
Bl0.prototype.fetchData=function(v){return _.APQ(v)};
Bl0.prototype.postData=function(v,Q){var V={method:"POST"};if(Q){for(var E=_.L(Object.keys(Q)),b=E.next();!b.done;b=E.next()){b=b.value;var F=Q[b];_.rG(F)&&(Q[b]=JSON.stringify(F))}V.postParams=Q}return _.APQ(v,V)};
_.WaR=function(v,Q,V,E,b){v=jL8(v,Q,V);if(!v)throw E=Error("hi"),Object.assign(E,{params:Q}),E;return _.APQ(v,b,E)};
Bl0.prototype.requestDataForServiceEndpoint=function(v,Q){if(_.y(v,_.ymm))return this.fetchData("/getAccountSwitcherEndpoint");Q=Q||{};var V=_.y(v,C_X);V?Q.se=V.base64EncodedServiceEndpoint:Q.sej=JSON.stringify(v);(V=_.Mo())&&_.Y("enable_service_ajax_csn")&&(Q.csn=V);Q.theme=_.q2();_.y(v,TNh)&&_.r7("DELEGATION_CONTEXT")&&(Q.delegation_context=JSON.stringify(_.r7("DELEGATION_CONTEXT")));V=null;for(var E in v)if(ib(E,"Endpoint")||ib(E,"Command")){V=E;break}if(!V){var b=Error("ii");Object.assign(b,{params:v});
_.mCm(b,"WARNING");return new _.Ry(function(t,p){p(b)})}E={name:V};
var F;(V=(F=_.y(v,_.F$))==null?void 0:F.signal)&&(E.signal=V);(F=_.Ki(window.location.href))&&F.internalcountrycode&&(E.internalcountrycode=F.internalcountrycode);F="/service_ajax";_.Y("debug_forward_web_query_parameters")&&(F=_.dpo(F,window.location.search));F=_.Li(F,E);v.clickTrackingParams&&_.ox(F,{itct:v.clickTrackingParams});return this.postData(F,Q)};_.gPh=new _.KB("GFEEDBACK_TOKEN");var sEs;var uIn;var jEj;var WJI;var S9=function(){var v=_.z.apply(this,arguments)||this;v.compact=!1;v.dismissButtonDisabled=!1;v.shouldRenderReasonAsFormattedString=!_.Y("web_player_error_message_reason_as_formatted_string_killswitch");return v};
_.f(S9,_.z);S9.prototype.computeHasIcon_=function(v){return!!v};
S9.prototype.isSignInIcon_=function(v){return v=="yt-icons:prompted_sign_in"};
S9.prototype.onDismissButtonClick=function(){var v=this,Q=this.data.disableOnClick,V,E=(V=this.data.dismissButton)==null?void 0:V.buttonRenderer;Q&&!this.dismissButtonDisabled&&E&&setTimeout(function(){v.dismissButtonDisabled=!0},0)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Djf.YtConditionalRendererBehavior),_.X("design:type",Object)],S9.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],S9.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",Object)],S9.prototype,"icon_",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.X("design:type",Boolean)],S9.prototype,"hasIcon_",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.X("design:type",Boolean)],S9.prototype,"signInIcon_",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],S9.prototype,"compact",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],S9.prototype,"dismissButtonDisabled",void 0);
_.W([_.q({type:Boolean}),_.X("design:type",Object)],S9.prototype,"shouldRenderReasonAsFormattedString",void 0);_.W([_.D7({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],S9);
_.B(S9,"yt-player-error-message-renderer",function(){if(WJI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;jEj===void 0&&(jEj=document.createElement("template"));var E=jEj;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);WJI=v}v=WJI;return v},{mode:2});var oP5;var Xqf;var zQ=function(){return _.z.apply(this,arguments)||this};
_.f(zQ,_.z);zQ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zQ.prototype.computeIcon_=function(v){return v?"yt-icons:"+v.iconType.toLowerCase():"error_outline"};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zQ.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",Object)],zQ.prototype,"icon_",void 0);_.W([_.D7({is:"yt-player-kav-renderer",disableElementRegistration:!0})],zQ);
_.B(zQ,"yt-player-kav-renderer",function(){if(Xqf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;oP5===void 0&&(oP5=document.createElement("template"));var E=oP5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Xqf=v}v=Xqf;return v},{mode:2});var Dib=_.s$(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.ad(_.x(function(v){var Q=_.Ze("div"),V=_.L(_.Ge(0,void 0,"jxh75d")),E=V.next().value,b=V.next().value;V=_.L(_.Ge(null,void 0,"F5Zm8"));var F=V.next().value,t=V.next().value;_.jg(function(){RuE(Q.value,b,t);Q.value.scrollIntoView()});
V=n8Q.bind(null,v.data,E);_.wX("resize",function(){var p=F();if(E()===1&&p!==null){var Z;(Z=window.grecaptcha)==null||Z.reset(p)}});
return _.P("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.P("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.P("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var p,Z;return(p=v.data().accessibility)==null?void 0:(Z=p.accessibilityData)==null?void 0:Z.label}),_.P(_.tD,{text:V,
className:_.QZ("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.P("div",{el:Q,class:"ytwPlayerCaptchaViewModelGridItem"})))},"mg"),"yt-player-captcha-view-model",{props:{data:_.Wg}});var lfQ=!1;_.a5Y=_.x(function(v){var Q=v.data;return _.P("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.P(_.h,{cond:function(){return Q().icon},
then:function(V){return _.P("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.P(_.gE,{data:V,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.P(_.h,{cond:function(){return Q().title},
then:function(V){return _.P("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.P(_.tD,{text:V}))}}),_.P(_.h,{cond:function(){return Q().description},
then:function(V){return _.P("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.P(_.tD,{text:V}))}}),_.P(_.Pw,{data:function(){return Q().primaryButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"interstitialViewModelFlexItem"})}}),_.P(_.Pw,{data:function(){return Q().secondaryButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"interstitialViewModelFlexItem"})}}))},"ng");
_.a5Y.idomCompat=!0;var reI=_.x(function(v){var Q=v.data;_.zz();return _.P("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.P("div",{class:"playerInterstitialRendererScrim"},_.P(_.Pw,{data:function(){return Q().content}},{interstitialViewModel:_.a5Y})))},"og");
reI.idomCompat=!0;_.ad(reI,"yt-player-interstitial-renderer",{props:{data:_.pJ}});var JE=function(){var v=_.z.apply(this,arguments)||this;v.noBackground=!1;v.compact=!1;v.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return v};
_.f(JE,_.z);JE.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"}}}};
JE.prototype.onUpdatePlayerErrorMessageCommand_=function(v){if(_.y(v,Bxp)){var Q;if(v=(Q=_.y(v,Bxp))==null?void 0:Q.newPlayerErrorMessageRenderer)this.data=v}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],JE.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],JE.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],JE.prototype,"status",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],JE.prototype,"noBackground",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],JE.prototype,"compact",void 0);_.W([_.D7({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],JE);
var $js=_.Hn()(JE,"yt-playability-error-supported-renderers",function(){if(uIn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;sEs===void 0&&(sEs=document.createElement("template"));var E=sEs;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);uIn=v}v=uIn;return v},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var I5f=jYt("ytd-button-renderer");var qem=void 0,JPT=void 0;var BRm=new iOX;var UI=new _.KB("ENTITY_STATE_TOKEN"),NW=new _.KB("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Hfh=function(v){this.store=v;this.gJv=new _.prp},ljr=function(v,Q,V){var E,b;
if(!(b=((E=Q.playabilityStatus)==null?void 0:E.status)!=="OK")){v=v.store;var F;b=Q.offlineState&&((F=Q.videoDetails)==null?0:F.videoId)?_.Y("enable_pl_r_c_cd")?XO0(v.getState().entities,Q.videoDetails.videoId):!!TxE(v.getState().entities,Q.videoDetails.videoId):!1}if(b)return!0;b=W2B(Q);if(b===1){if(_.Y("ab_v_vid_sig")){var t,p=(t=Q.videoDetails)==null?void 0:t.videoId;if(!p||!V||p!==V){var Z;Q=new _.xd("282054944_vid",{dNx:V,h2G:(Z=Q.videoDetails)==null?void 0:Z.videoId});_.ro(Q)}}return!0}Ss9=
0;var d,w;Z=(p=Q.auxiliaryUi)==null?void 0:(d=p.messageRenderers)==null?void 0:(w=d.bkaEnforcementMessageViewModel)==null?void 0:w.displayType;if(b!==3&&(Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;Z={reason:_.I$(_.Lt("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.Y("ks_something_wrong_learn_more")?I_B("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.I$(_.Lt("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:_.I$("282054944")};mjj(Q,{playerErrorMessageRenderer:Z});return!1},q8h=function(v,Q){if(HP0(Q)){_.iK(1,!0);
var V=(V=HP0(Q))&&_.zub()?V:void 0;V?(mjj(Q,{enforcementMessageViewModel:V}),v.gJv.increment("IN_PLAYER"),_.iK(5)):(v.gJv.increment("SKIP_DISPLAY"),_.iK(2))}},mjj=function(v,Q){v.playabilityStatus=Object.assign({},v.playabilityStatus,{status:"ERROR",
errorScreen:Q});v.videoDetails=void 0};
Hfh.prototype.handleResponse=function(v,Q){if(v.playabilityStatus){var V,E,b,F=(Q==null?void 0:(V=Q.innerTubeRequest)==null?void 0:V.videoId)||(Q==null?void 0:(E=Q.innerTubeRequest)==null?void 0:(b=E.playerRequest)==null?void 0:b.videoId);ljr(this,v,F)&&q8h(this,v)}};
Hfh[w$]=[UI];var Rsb=new _.KB("ADBLOCK_DETECTION_SERVICE_TOKEN");var BY=function(v){this.raz=v};
BY.prototype.bindInnertubeChallengeFetcher=function(v){this.raz.bicf(v)};
BY.prototype.registerChallengeFetchedCallback=function(v){this.raz.bcr(v)};
BY.prototype.getLatestChallengeResponse=function(){return this.raz.blc()};var Ujd;Ujd=_.s$(["https://static.doubleclick.net/instream/ad_status.js"]);_.vwm=_.Ad(Ujd);var b$8;_.xA=function(v,Q,V){var E=this;this.network=v;this.options=Q;this.networkStatusManager=V;this.sO=null;if(Q.useBotguardEverywhere){var b=new _.bK;this.sO=b.promise;_.bb.ytAtRC&&_.A2(_.XT,function(){var F,t;return _.e(function(p){if(p.nextAddress==1){if(!_.bb.ytAtRC)return p.return();F=Qah(null);return p.yield(E.b0(F),2)}t=p.yieldResult;_.bb.ytAtRC&&_.bb.ytAtRC(JSON.stringify(t));_.q1(p)})});
$ib().then(function(F){var t,p,Z,d;return _.e(function(w){if(w.nextAddress==1)return F.bindInnertubeChallengeFetcher(function(A){return E.b0(Qah(A))}),w.yield(WXr(),2);
t=w.yieldResult;p=F.getLatestChallengeResponse();Z=p.challenge;if(!Z)throw Error("ji");d={challenge:Z,eK:xS(Z),vm:t,bgChallenge:new Jx};b.resolve(d);F.registerChallengeFetchedCallback(function(A){A=A.challenge;if(!A)throw Error("ki");A={challenge:A,eK:xS(A),vm:t,bgChallenge:new Jx};E.sO=Promise.resolve(A)});
_.q1(w)})})}else Q.preload&&V1q(this,new Promise(function(F){_.go(_.XT,function(){F(Ewh(E))},0)}))};
b$8=function(v){var Q={preload:!0,useBotguardEverywhere:!0},V=!1;if(typeof Q==="boolean")var E={preload:Q};else typeof Q==="undefined"?E={preload:!0}:(E=Q,V=!!Q.ekm);Q=V?void 0:new _.bS;_.xA.instance=new _.xA(v,E,Q);return _.xA.instance};
_.xA.prototype.gn6=function(){var v=this;return _.e(function(Q){return Q.nextAddress==1?Q.yield(Promise.race([v.sO,null]),2):Q.return(!!Q.yieldResult)})};
_.xA.prototype.oUE=function(v,Q,V){var E=this,b,F,t;return _.e(function(p){E.sO===null&&V1q(E,Ewh(E));b=!1;F={};t=function(){var Z,d,w;return _.e(function(A){switch(A.nextAddress){case 1:return A.yield(E.sO,2);case 2:Z=A.yieldResult;F.challenge=Z.challenge;if(!Z.vm){"c1a"in Z.eK&&(F.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");A.jumpTo(3);break}d=Object.assign({},{c:Z.challenge,e:v},Q);_.GC(A,4);b=!0;return A.yield(Z.vm.snapshot({hj:d}),6);case 6:(w=A.yieldResult)?F.webResponse=w:F.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.FT(A,3);break;case 4:_.n$(A),F.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(v==="ENGAGEMENT_TYPE_PLAYBACK"){var k=Z.eK,T={};if(k.c6a){var c=Number(_.r7("DCLKSTAT",0));T.reportingStatus=String(Number(k.c)^(isNaN(c)?0:c))}k.c6b&&(T.broadSpectrumDetectionResult=String(Number(k.c)^Number(_.r7("CATSTAT",0))));F.adblockReporting=T}return A.return(F)}})};
return p.return(Promise.race([t(),Fk5(V,function(){var Z=Object.assign({},F);b&&(Z.error="ATTESTATION_ERROR_VM_TIMEOUT");return Z})]))})};
var Qah=function(v){var Q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};v&&(Q.interpreterHash=v);return Q},Ewh=function(v,Q){Q=Q===void 0?0:Q;
var V,E,b,F,t,p,Z,d,w,A,k,T;return _.e(function(c){switch(c.nextAddress){case 1:V=Qah(eHa().aRn);if(_.Y("att_fet_ks"))return _.GC(c,7),c.yield(v.b0(V),9);_.GC(c,4);return c.yield(Kk7(v,V),6);case 6:t=c.yieldResult;b=t.m4U;F=t.qr7;E=t;_.FT(c,3);break;case 4:return _.n$(c),_.Iy(Error("li`"+Q)),i$I(v,864E5),c.return({challenge:"",eK:{},vm:void 0,bgChallenge:void 0});case 9:E=c.yieldResult;if(!E)throw Error("mi");if(!E.challenge)throw Error("ni");b=E.challenge;F=xS(b);if("c1a"in F&&(!E.bgChallenge||!E.bgChallenge.program))throw Error("oi");
_.FT(c,3);break;case 7:p=_.n$(c);_.Iy(p);Q++;if(Q>=5)return _.Iy(Error("li`"+Q)),i$I(v,864E5),c.return({challenge:"",eK:{},vm:void 0,bgChallenge:void 0});Z=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return c.return(new Promise(function(C){_.go(_.XT,function(){C(Ewh(v,Q))},Z)}));
case 3:d=rPr(F);i$I(v,d*1E3);w=void 0;if(!("c1a"in F&&E.bgChallenge)){c.jumpTo(10);break}A=afE(E.bgChallenge);_.GC(c,11);return c.yield(PvQ(eHa(),A),13);case 13:_.FT(c,12);break;case 11:return k=_.n$(c),_.Iy(k),c.return({challenge:b,eK:F,vm:w,bgChallenge:A});case 12:return _.GC(c,14),w=new _.sE({challenge:A,avZ:{ri:"aGIf"}}),c.yield(w.bwW,16);case 16:_.FT(c,10);break;case 14:T=_.n$(c),_.Iy(T),w=void 0;case 10:return c.return({challenge:b,eK:F,vm:w,bgChallenge:A})}})};
_.xA.prototype.b0=function(v){var Q=this,V;return _.e(function(E){V=Q.networkStatusManager;if(!V||V.isNetworkAvailable())return E.return(Q.network.b0(v));_.DG("att_pna",void 0,"attestation_challenge_fetch");return E.return(new Promise(function(b){V.listenOnce("publicytnetworkstatus-online",function(){Q.network.b0(v).then(b)})}))})};
var Lk8=function(v){if(!v)throw Error("mi");if(!v.challenge)throw Error("ni");var Q=v.challenge,V=xS(Q);if("c1a"in V&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("oi");return Object.assign({},v,{m4U:Q,qr7:V})},Kk7=function(v,Q){var V,E,b,F,t;
return _.e(function(p){switch(p.nextAddress){case 1:V=void 0,E=0,b={};case 2:if(!(E<5)){p.jumpTo(4);break}if(!(E>0)){p.jumpTo(5);break}b.ru1=1E3*Math.pow(2,E-1)+Math.random()*1E3;return p.yield(new Promise(function(Z){return function(d){_.go(_.XT,function(){d(void 0)},Z.ru1)}}(b)),5);
case 5:return _.GC(p,7),p.yield(v.b0(Q),9);case 9:return F=p.yieldResult,p.return(Lk8(F));case 7:V=t=_.n$(p),t instanceof Error&&_.Iy(t);case 8:E++;b={ru1:void 0};p.jumpTo(2);break;case 4:throw V;}})},V1q=function(v,Q){v.sO=Q},t1q=function(v){var Q,V,E;
return _.e(function(b){if(b.nextAddress==1)return b.yield(Promise.race([v.sO,null]),2);Q=b.yieldResult;var F=Ewh(v);v.sO=F;(V=Q)==null||(E=V.vm)==null||E.dispose();_.q1(b)})},i$I=function(v,Q){var V=Date.now()+Q,E=function(){var b;
return _.e(function(F){b=V-Date.now();return b<1E3?F.yield(t1q(v),0):(_.go(_.XT,E,Math.min(b,6E4)),F.jumpTo(0))})};
E()},Fk5=function(v,Q){return new Promise(function(V){_.go(_.XT,function(){V(Q())},v)})};var pcY=function(){};
pcY.prototype.processContext=function(v){var Q=_.xA.instance;if(!Q)return _.AL();var V=QiQ(v);return V?new wJ(Q.oUE(V,mit(v),500).then(function(E){var b;(v==null?0:(b=v.innerTubeRequest)==null?0:b.context)||(v.innerTubeRequest.context={});b=v.innerTubeRequest.context;b.request||(b.request={});b.request.attestationResponseData=E})):_.AL()};var ekj=function(v){this.innertubeTransportService=v};
ekj.prototype.b0=function(v){_.DG("att_fsr",void 0,"attestation_challenge_fetch");return _.tQ(this.innertubeTransportService,v,_.Xg(_.oOx)).then(function(Q){_.DG("att_frr",void 0,"attestation_challenge_fetch");return Q})};_.Z$7=function(v){this.innertubeTransportService=v};var Pi0=new _.KB("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var d1f=function(){},wc8=function(v,Q,V,E,b){var F=_.r7("YPC_MB_URL");
_.g1t(F).then(function(){hkf(F,v,Q,V,E,b)})},hkf=function(v,Q,V,E,b,F){try{var t=_.oI.payments.business.integration,p=_.oI.payments.business.integration.Style.create().withMaterialDesignStyle(),Z=t.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.Y("enable_window_constrained_buy_flow_dialog")&&(Z=Z.usingPopupStyle("windowConstrained"));F&&(Z=Z.usingCloseCallback(F));var d=V?V:_.r7("YPC_GB_LANGUAGE"),w=_.r7("SESSION_INDEX");t.bootstrap.fromPaymentsUrl(v);t.bootstrap.asMashupMode(Z).usingGaiaIndex(w).usingLocale(d).usingStyle(p).usingDefaultActivityStatusChangeHandler().inStandaloneContext(t.standaloneContextAuthId.forGaia()).purchaseManager(Q,function(A){E&&E(A)}).load(void 0,b)}catch(A){throw b&&b(A),_.ro(A),A;
}};var ATs=new _.KB("PURCHASE_MANAGER_TOKEN");var kCh=function(){var v=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return v.videos},
getContinuationsPresent:function(){return v.continuationsPresent},
setVideos:function(Q){v.videos=Q},
getRecommendedVideos:function(){return v.recommendedVideos},
setRecommendedVideos:function(Q){v.recommendedVideos=Q}}};
kCh.prototype.addVideos=function(v){v&&(this.videos=v.filter(function(Q){return!!_.E1o(Q)}).map(function(Q){var V=_.E1o(Q);
a:{var E;if(Q.playlistVideoRenderer&&((E=Q.playlistVideoRenderer)==null?0:E.voteSortTiebreaker))var b=Q.playlistVideoRenderer.voteSortTiebreaker;else{if(_.y(Q,sI)){var F;if(E=(b=_.y(Q,sI))==null?void 0:(F=b.playlistItemData)==null?void 0:F.voteSortTiebreaker){b=E;break a}}b=""}}return{itemId:V,videoId:_.K1Z(Q),voteCount:_.iym(Q),voteSortTiebreaker:b}}),this.continuationsPresent=!!_.y(v[v.length-1],_.WY))};
var Tu0=function(v,Q){return v.videos.findIndex(function(V){return V.itemId===Q})},Y_Y=function(v,Q){return v.recommendedVideos.findIndex(function(V){return V.itemId===Q})},yTf=function(v){v={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:v}}}}};_.ht().resolve(_.At).resolveCommand(v)};var cTf=function(){kCh.apply(this,arguments)};
_.f(cTf,kCh);
var jQq=function(v,Q,V,E){if(!v.parentElem)throw Error("ti");var b=Tu0(v,Q);b===-1&&(b=Y_Y(v,Q),b=b!==-1?b+v.videos.length:-1);if(b===-1)throw Error("ui");var F=b>=v.videos.length?v.recommendedVideos[b-v.videos.length]:v.videos[b];F.voteCount=V;F.voteSortTiebreaker=Date.now().toString();b>=v.videos.length?v.recommendedVideos.splice(b-v.videos.length,1):v.videos.splice(b,1);var t=v.videos;for(var p=0,Z=t.length-1;p<=Z;){var d=Math.floor((p+Z)/2);if(t[d].voteCount<F.voteCount)Z=d-1;else if(t[d].voteCount>F.voteCount)p=
d+1;else{a:{var w=F.voteSortTiebreaker;var A=t[d].voteSortTiebreaker;if(w.length!==A.length)w=w.length>A.length;else{for(var k=0;k<w.length;k++){var T=w.charCodeAt(k),c=A.charCodeAt(k);if(T>c){w=!0;break a}if(T<c)break}w=!1}}w?Z=d-1:p=d+1}}t=p;if(t===-1)throw Error("vi");v.videos.splice(t,0,F);b!==t&&fVm(v,b,t,Q,V,E)},fVm=function(v,Q,V,E,b,F){var t,p=(t=v.parentElem)==null?void 0:t.children,Z=Math.min(Q,V),d=Math.max(Q,V);
if(p)for(t=Z;t<=d;t++)p[t].style.viewTransitionName="item-"+String(t);document.startViewTransition(function(){if(v.parentElem){var w=v.parentElem.children;if(!(!w||Q<0||Q>=w.length||V<0||V>=w.length)){var A=w[Q];if(A){A.remove();v.showRefreshPill=V>=v.videos.length-1&&v.continuationsPresent;if(!v.showRefreshPill){w=w[V]||null;var k;(k=v.parentElem)==null||k.insertBefore(A,w)}_.Hj(v.parentElem,"yt-update-video-data-voting-animation",{toIdx:V,itemId:E,newVoteCount:b,voteStatus:F,hideItem:v.showRefreshPill})}}}}).finished.then(function(){if(p)for(var w=
Z;w<=d;w++)p[w].style.viewTransitionName="";
if(v.showRefreshPill)yTf(_.Lt("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var A;if(A=w=(A=v.parentElem)==null?void 0:A.children[V])A=w.getBoundingClientRect(),w=A.bottom,A=!(A.top>=0&&w<=v.clientHeight);A&&(A=_.ty(Q>V?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(Q-V)),yTf(A))}})};var M1h=function(v,Q){var V=this;v?this.innertubeTransportServicePromise=Promise.resolve(v):Q&&(this.innertubeTransportServicePromise=Q(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new yQ(3E3,function(E){return GCf(V,E)},0);
this.validateMiniAppVideoIdRateLimiter=new yQ(3E3,function(E){return Cih(V,E)},1)},Vc0=function(v,Q){v.JSC$17444_miniAppId=Q;
v.reportMiniAppValueRateLimiter=new yQ(3E3,function(V){return GCf(v,V)},0);
v.validateMiniAppVideoIdRateLimiter=new yQ(3E3,function(V){return Cih(v,V)},1)},bfh=function(v,Q){var V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(v.reportMiniAppValueRateLimiter.call(Q),2);V=E.yieldResult;return E.return([V,Q])})},GCf=function(v,Q){var V,E,b,F,t,p,Z;
return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(v.innertubeTransportServicePromise,2);case 2:return V=d.yieldResult,E=_.Xg(HTN),b=Date.now(),F={externalPostId:v.JSC$17444_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(b/1E3),nanos:Math.round(b%1E3*1E6)},intValue:""+Q}},_.GC(d,3),d.yield(_.tQ(V,F,E),5);case 5:t=d.yieldResult;_.FT(d,4);break;case 3:throw p=_.n$(d),p;case 4:if(t){if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("wi`"+
t.errorMetadata.status);if(Z=t.userStatResult)return d.return(Z);throw Error("xi");}throw Error("yi");}})},KJh=function(v){var Q,V,E,b,F;
_.e(function(t){switch(t.nextAddress){case 1:return t.yield(v.innertubeTransportServicePromise,2);case 2:return Q=t.yieldResult,V=_.Xg(HTN),E={externalPostId:v.JSC$17444_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.GC(t,3),t.yield(_.tQ(Q,E,V),5);case 5:b=t.yieldResult;_.FT(t,4);break;case 3:throw F=_.n$(t),F;case 4:if(b==null)throw Error("yi");if("error"in b&&b.error)throw b.error;if(b.errorMetadata)throw Error("wi`"+b.errorMetadata.status);_.q1(t)}})};
M1h.prototype.flush=function(){var v=this;return _.e(function(Q){return Q.nextAddress==1?Q.yield(v.reportMiniAppValueRateLimiter.flush(),2):Q.yield(v.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var FJd=function(v,Q){return _.e(function(V){return V.nextAddress==1?V.yield(v.validateMiniAppVideoIdRateLimiter.call(Q),2):V.return(V.yieldResult)})},Cih=function(v,Q){var V,E,b,F,t,p;
return _.e(function(Z){switch(Z.nextAddress){case 1:return Z.yield(v.innertubeTransportServicePromise,2);case 2:return V=Z.yieldResult,E=_.Xg(jnV),b={videoId:Q},_.GC(Z,3),Z.yield(_.tQ(V,b,E),5);case 5:F=Z.yieldResult;_.FT(Z,4);break;case 3:throw t=_.n$(Z),t;case 4:if(F){if("error"in F&&F.error)throw F.error;if(F.errorMetadata)throw Error("wi`"+F.errorMetadata.status);if(p=F.playabilityStatus)return Z.return(p.status);throw Error("zi");}throw Error("yi");}})};
M1h[w$]=[_.d$(_.wH),_.d$(CoS)];var O$$=function(){this.clientData=new Map};
O$$.prototype.getData=function(v){return this.clientData.get(v)};var D1j=function(v){this.store=v};
D1j.prototype.handleResponse=function(v){(v=_.y(v.frameworkUpdates,gS))&&_.p7(v,this.store)};
D1j[w$]=[_.Uj];var Rks=new _.KB("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var nwY,lVd;_.BP=new _.KB("FLOW_STATE_MANAGER_TOKEN");nwY=function(){this.flowStates=new Map};
lVd=function(v,Q){v=_.L(v.flowStates.values());for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.flowRenderer.targetId===Q)return V};var q_f=function(v,Q){this.JSC$17469_reduxStore=v;this.JSC$17469_flowStateManager=Q};
_.f(q_f,Z8);
q_f.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c;return _.e(function(C){V=_.y(v,_.E9q);E=V.stepId;b=V.targetId;F=lVd(Q.JSC$17469_flowStateManager,b);p=(t=F)==null?void 0:t.flowRenderer;Z=p.flowStateEntityKey;d=_.uA(Q.JSC$17469_reduxStore.getState(),Z);if(!d)return C.return();w=d.currentStepId;T=(k=(A=d)==null?void 0:A.stepIdStack)!=null?k:[];c=w===T[T.length-1]?E:w;Q.JSC$17469_reduxStore.dispatch(_.Gz("flowStateEntity",Z,{currentStepId:E,stepIdStack:[c]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.q1(C)})};
var S_s=function(){q_f.apply(this,arguments)};
_.f(S_s,q_f);S_s[w$]=[_.Uj,_.BP];var zkq=function(v,Q,V){this.JSC$17476_reduxStore=v;this.JSC$17476_flowStateManager=Q;this.JSC$17476_commandHandler=V};
_.f(zkq,Z8);
zkq.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C;return _.e(function(R){E=_.y(v,_.bd8);b=E.targetId;F=lVd(V.JSC$17476_flowStateManager,b);p=(t=F)==null?void 0:t.flowRenderer;Z=p.flowStateEntityKey;d=_.uA(V.JSC$17476_reduxStore.getState(),Z);k=[].concat(_.ui((A=(w=d)==null?void 0:w.stepIdStack)!=null?A:[]));T=k.pop();((c=d)==null?void 0:c.currentStepId)===T&&(T=k[k.length-1]);if(!T)return(C=E.onFirstStepCommand)&&V.JSC$17476_commandHandler.resolveCommand(C,Q),R.return();
V.JSC$17476_reduxStore.dispatch(_.Gz("flowStateEntity",Z,{currentStepId:T,stepIdStack:k}));_.q1(R)})};
var JTh=function(){zkq.apply(this,arguments)};
_.f(JTh,zkq);JTh[w$]=[_.Uj,_.BP,_.At];var Nu8=function(v,Q){this.innertubeTransportService=v;this.JSC$17481_commandHandler=Q};
_.f(Nu8,Z8);Nu8.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1){E=_.y(v,Fpa);if(!E)return Z.return();_.GC(Z,2);return Z.yield(_.xW(V.innertubeTransportService,v),4)}if(Z.nextAddress!=2){b=Z.yieldResult;if(!b)return Z.return();(F=b.updateFlowCommand)&&V.JSC$17481_commandHandler.resolveCommand(F,Q);return _.FT(Z,0)}_.n$(Z);(p=(t=E)==null?void 0:t.onFailureCommand)&&V.JSC$17481_commandHandler.resolveCommand(p,Q);_.q1(Z)})};
var x1q=function(){Nu8.apply(this,arguments)};
_.f(x1q,Nu8);x1q[w$]=[_.wH,_.At];var Bu5=function(v,Q){this.JSC$17487_flowStateManager=v;this.JSC$17487_commandHandler=Q};
_.f(Bu5,Z8);
Bu5.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t;return _.e(function(p){E=_.y(v,_.idZ);b=E.targetId;F=lVd(V.JSC$17487_flowStateManager,b);if(!F)return p.return(Promise.resolve());var Z=F,d=(t=E.steps)!=null?t:[],w,A=(w=Z.flowRenderer.steps)!=null?w:[];d=[].concat(_.ui(A),_.ui(d));Z.flowRenderer.steps=d;E.flowContinuationCommand&&(F.flowRenderer.flowContinuationCommand=E.flowContinuationCommand);E.entityUpdateCommand&&V.JSC$17487_commandHandler.resolveCommand(E.entityUpdateCommand,Q);
return p.return(Promise.resolve())})};
var gy=function(){Bu5.apply(this,arguments)};
_.f(gy,Bu5);gy[w$]=[_.BP,_.At];var gwq={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 sa7=new _.KB("ICON_SET_TOKEN"),uds=new _.KB("ICON_URL_PROVIDER_TOKEN"),ja0=new _.KB("PREFETCH_ICONS_TOKEN"),Wkj=new _.KB("ICON_MAP_FN_TOKEN");var sV={},ow5=(sV.ACCESS_TIME="clock",sV.ACCOUNT_BOX=_.r7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",sV.ACCOUNT_BOX_CAIRO="person_account_cairo",sV.ACCOUNT_CIRCLE="person_circle",sV.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",sV.ACCOUNT_LINKED="account_link_success",sV.ACCOUNT_UNLINKED="account_link",sV.ADD_FRIEND="people",sV.ADD_MODERATOR="shield_add",sV.ADD_TO_LIBRARY="bookmark",sV.ADD_TO_PLAYLIST="add",sV.ADD_TO_QUEUE_TAIL="list_queue",sV.ADD_TO_REMOTE_QUEUE="list_music",
sV.ADD_TO_WATCH_LATER="clock",sV.ADD_VIDEO_LINK="film_strip_add",sV.ALERT_WARN_RED="alert_triangle",sV.ARROW_BACK="arrow_left",sV.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",sV.ARROW_DROP_DOWN="chevron_down",sV.ARROW_DROP_UP="chevron_up",sV.ARROW_FORWARD="arrow_right",sV.ARTIST="person_music",sV.AUDIOTRACK="audio",sV.AUTO_AWESOME="sparkle",sV.AVATAR_ANONYMOUS="person_circle",sV.AVATAR_LOGGED_OUT="person_circle",sV.BACK="arrow_left",sV.BAR_CHART="bar_graph",sV.BLOCK="slash_circle_left",
sV.BLOCK_USER="slash_circle_left",sV.BOOKMARK_BORDER="bookmark",sV.BREAKING_NEWS_ALT_1="article_alert",sV.BROADCAST_CAIRO="podcast_cairo",sV.BUG_REPORT="bug",sV.CAMERA_ALT="camera",sV.CAMPAIGN="megaphone",sV.CANCEL="x_circle",sV.CAPTIONS="closed_caption",sV.CAST_OUTLINE="chromecast",sV.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",sV.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",sV.CHAT="message_bubble_left",sV.CHAT_BUBBLE="message_bubble_empty",sV.CHAT_SPARK="spark_message_bubble_left",sV.CHECK_BOX_OUTLINE_BLANK=
"box_empty",sV.CHECK_CIRCLE_OUTLINE="check_circle",sV.CHECK_CIRCLE_THICK="check_circle",sV.CLARIFY="article_clarify",sV.CLOSED_CAPTION_SELECTED="closed_caption",sV.CLOSE="x_mark",sV.CLOUD_UPLOAD="cloud_arrow_up",sV.COLLAPSE="chevron_up",sV.COLLAPSE_CAIRO="chevron_up_cairo",sV.COLLECTION="layers",sV.COLOR_LENS="palette",sV.COMMENT="message_bubble_right",sV.CONSENT_SHIELD="person_shield",sV.CONTENT_CUT="scissors",sV.CONTENT_CUT_CAIRO="scissors_cairo",sV.COURSE=_.Y("web_enable_course_icon_update")?"creator_academy":
"lightbulb",sV.COURSE_CAIRO=_.Y("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",sV.CREATION_LIVE="radar_live",sV.CREATION_POST="box_pencil",sV.CREATION_UPLOAD="my_videos",sV.CREATION_UPLOAD_RED="upload",sV.CREATOR_METADATA_MONETIZATION="dollar_sign",sV.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",sV.CREATOR_STUDIO="youtube_studio",sV.DASHBOARD="grid_asymmetrical",sV.DELETE="trash_can",sV.DELETE_SWEEP="trash_can",sV.DESKTOP="laptop",sV.DISLIKE="thumb_down",sV.DISLIKE_SELECTED=
"thumb_down",sV.DISMISSAL="x_mark",sV.DISMISS_QUEUE="list_remove",sV.DONE_ALL="check_double",sV.DOWN_ARROW="arrow_down",sV.DO_NOT_DISTURB="slash_circle_left",sV.DRAFT="paper_corner_folded",sV.DRAG_HANDLE="bars_2",sV.EDIT="pencil",sV.EMOJI="face_very_happy",sV.EMOJI_FLAGS="flag",sV.EMOJI_OBJECTS="lightbulb",sV.EMOJI_PEOPLE="face_very_happy",sV.EMOJI_RECENT="clock",sV.EMPTY_HEART="heart",sV.EMPTY_LIKE="thumb_up",sV.ERROR_BLACK="alert_circle",sV.ERROR_OUTLINE="alert_circle",sV.EXIT_APP="arrow_in",sV.EXIT_TO_APP=
"arrow_in",sV.EXPAND="chevron_down",sV.EXPAND_ALL="chevron_expand",sV.EXPAND_CAIRO="chevron_down_cairo",sV.EXPAND_LESS="chevron_up",sV.EXPAND_MORE="chevron_down",sV.EXPLORE="compass",sV.EXPLORE_DESTINATION="compass",sV.EXTERNAL_LINK="open_new",sV.FAB_UPLOAD="upload",sV.FACE_HAPPY_OUTLINE="face_happy",sV.FACT_CHECK="article_check",sV.FASHION_LOGO="fashion",sV.FASHION_LOGO_CAIRO="fashion_cairo",sV.FAVORITE="heart",sV.FEEDBACK="message_bubble_alert",sV.FEEDBACK_CAIRO="message_bubble_alert_cairo",sV.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",sV.FILL_ARROW_SOLID_UP_16="arrow_solid_up",sV.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",sV.FILTER="menu_filter",sV.FIRST_PAGE="chevron_first",sV.FLAG="flag",sV.FULL_HEART="heart",sV.GAME_CONSOLE_DPAD="game_console_dpad",sV.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",sV.GAMING_LOGO="gaming",sV.GAMING_LOGO_CAIRO="gaming_cairo",sV.GO_TO_PAGE="arrow_right",sV.GROUPS="people_group",sV.HAPPY="face_happy",sV.HEALTH_AND_SAFETY="shield_plus",sV.HELP="question_circle",sV.HELP_CAIRO=
"question_circle_cairo",sV.HELP_OUTLINE="question_circle",sV.HIDE="slash_circle_left",sV.IMAGE="image",sV.INFINITY_ICON="infinity",sV.INFO="info_circle",sV.INFO_OUTLINE="info_circle",sV.INSERT_CHART="bar_graph_box_vertical",sV.INSERT_CHART_OUTLINED="bar_graph_box_vertical",sV.INSERT_PHOTO="image",sV.KEEP="pin",sV.KEEP_OFF="pin_off",sV.KEYBOARD="keyboard",sV.KEYBOARD_ARROW_DOWN="chevron_down",sV.KEYBOARD_ARROW_UP="chevron_up",sV.KIDS_BLOCK="slash_circle_left",sV.LANGUAGE="globe",sV.LAST_PAGE="chevron_last",
sV.LAUNCH="open_new",sV.LEARNING="lightbulb",sV.LEARNING_CAIRO="lightbulb_cairo",sV.LIBRARY_ADD=eiE("library_add"),sV.LIBRARY_OUTLINE="library",sV.LIBRARY_REMOVE=eiE(),sV.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",sV.LIKES_PLAYLIST="thumb_up",sV.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",sV.LIKE="thumb_up",sV.LIKE_SELECTED="thumb_up",sV.LIVE="radar_live",sV.LIVE_CAIRO="radar_live_cairo",sV.LIVE_UNLISTED="link",sV.LOCATION_ON="location_point",sV.LOCATION_PIN="location_point",sV.LOOP="arrow_repeat",sV.LOOP_ACTIVE=
"arrow_repeat",sV.LOOP_ONE="arrow_repeat_1",sV.LOOP_ONE_ACTIVE="arrow_repeat_1",sV.MEH="face_meh",sV.MEMBERS_ONLY_MODE_OFF="message_bubble_left",sV.MESSAGE="message_bubble_left",sV.MICROPHONE_ON="mic",sV.MIX="youtube_mix",sV.MONETIZATION_ON="dollar_sign_circle",sV.MONEY_FILL="dollar_sign_container",sV.MONEY_FILL_JPY="yen_sign_container",sV.MONEY_HEART="dollar_sign_heart",sV.MORE_HORIZ="overflow_horizontal",sV.MORE_VERT="overflow_vertical",sV.MUSIC="audio",sV.MUSIC_CAIRO="audio_cairo",sV.MUSIC_NOTE_SYMBOL=
"music",sV.MUSIC_SHUFFLE="arrow_shuffle",sV.MY_CHANNEL="person_circle",sV.MY_LOCATION="location_point",sV.NEWS_STORY="news",sV.NEXT="chevron_right",sV.NOTIFICATIONS="bell",sV.NOTIFICATIONS_ACTIVE="bell_on",sV.NOTIFICATIONS_CAIRO="bell_cairo",sV.NOTIFICATIONS_DONE_CHECKMARK="check",sV.NOTIFICATIONS_INBOX="bell",sV.NOTIFICATIONS_NONE="bell",sV.NOTIFICATIONS_OFF="bell_off",sV.NOT_INTERESTED="slash_circle_left",sV.OFFICIAL_ARTIST_BADGE="audio",sV.OFFLINE_CLOUD="cloud_off",sV.OFFLINE_DOWNLOAD="download",
sV.OFFLINE_DOWNLOAD_CAIRO="download_cairo",sV.OFFLINE_PAUSE="pause",sV.OPEN_IN_NEW="open_new",sV.OUTLINE_ADJUST="adjust",sV.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",sV.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",sV.OUTLINE_BAG="bag",sV.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",sV.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",sV.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",sV.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",sV.PAID="dollar_sign",sV.PAUSE_OUTLINED="pause",sV.PAYMENT=
"credit_card",sV.PERSON_RADAR_FILLED="person_radar",sV.PHONE_DOWNLOAD="mobile_download",sV.PLAYABLES_LOGO="tic_tac_toe",sV.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",sV.PLAYLISTS="list_play_arrow",sV.PLAYLISTS_CAIRO="list_play_arrow_cairo",sV.PLAYLIST_ADD=eiE("list_add"),sV.PLAYLIST_ADD_CHECK=eiE("list_check"),sV.PLAYLIST_PLAY="list_play_arrow",sV.PLAY_ALL="play_arrow",sV.PLAY_CIRCLE="play_arrow_circle",sV.PLAY_OUTLINED="play_arrow_circle",sV.PRIVACY_INFO="shield",sV.PRIVACY_PRIVATE="lock",sV.PRIVACY_PUBLIC=
"earth",sV.PRIVACY_UNLISTED="link",sV.PROMOTE="megaphone",sV.PURCHASES="price_tag",sV.PURCHASE_SUPER_CHAT="super_chat",sV.PURCHASE_SUPER_STICKER="super_sticker",sV.QUESTION_ANSWER="message_bubble_question",sV.QUEUE_PLAY_LAST="list_queue_last",sV.QUEUE_PLAY_NEXT="list_play_arrow",sV.REMIX_FILLED="youtube_shorts_remix",sV.REMOVE="bar_circle",sV.REMOVE_CIRCLE="bar_circle",sV.REMOVE_CIRCLE_OUTLINE="bar_circle",sV.REMOVE_DONE="check_double_off",sV.REMOVE_FROM_HISTORY="bar_circle",sV.REMOVE_FROM_PLAYLIST=
"bar_circle",sV.REMOVE_MODERATOR="shield_off",sV.REPLAY="arrow_circle",sV.REPLAY_10="skip_back_10",sV.REPORT_PROBLEM="alert_triangle",sV.SAD="face_sad",sV.SAVE_PLAYLIST="bookmark",sV.SCHEDULE="clock",sV.SCHOOL="creator_academy",sV.SCREEN_FULLSCREEN="screen_full",sV.SEARCH_HISTORY="arrow_time",sV.SELL="price_tag",sV.SETTINGS="gear",sV.SETTINGS_CAIRO="gear_cairo",sV.SETTINGS_LIGHT="gear",sV.SETTINGS_MATERIAL="gear",sV.SHARE_ARROW="share",sV.SHIELD_WITH_AVATAR="person_shield",sV.SHOPPING_BAG="bag",sV.SHOPPING_BAG_CAIRO=
"bag_cairo",sV.SHOPPING_CART="cart",sV.SHORTS_COMMENT="youtube_shorts_message_bubble_right",sV.SHORTS_DISLIKE="youtube_shorts_thumb_down",sV.SHORTS_LIKE="youtube_shorts_thumb_up",sV.SHORTS_SHARE="youtube_shorts_share",sV.SHUFFLE="arrow_shuffle",sV.SLOW_MODE_OFF="message_bubble_left",sV.SOCIAL="people",sV.SORT="menu_sort",sV.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",sV.SPEED_1X="1x",sV.SPEED_1_POINT_2X="1_point_2x",sV.SPEED_1_POINT_5X="1_point_5x",sV.SPEED_1_POINT_8X="1_point_8x",sV.SPEED_2X="2x",
sV.SPEED_POINT_2X="point_2x",sV.SPEED_POINT_8X="point_8x",sV.SPONSORSHIP_STAR="star_circle",sV.STAFF_PICK="spotlight",sV.START_DVR="add",sV.STAR_BORDER="star",sV.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",sV.STICKER_EMOTICON="face_happy",sV.STOP_DVR="stop",sV.SUBSCRIBE="youtube_logo_icon",sV.SUBSCRIBE_PLUS="add_cairo",sV.SUBSCRIPTION_MANAGER="gear",sV.SUPERVISOR_ACCOUNT="people",sV.SUPER_CHAT_FOR_GOOD="hands_heart",sV.SWAP_HORIZ="arrow_swap_horizontal",sV.SWITCH_ACCOUNTS="person_account",sV.TAB_ACCOUNT=
"person",sV.TAB_ACTIVITY="bell",sV.TAB_BOOKMARK="bookmark",sV.TAB_EXPLORE="compass",sV.TAB_HOME="home",sV.TAB_HOME_CAIRO="home_cairo",sV.TAB_INBOX="mail",sV.TAB_LIKED="thumb_up",sV.TAB_MUSIC_PREMIUM="youtube_music",sV.TAB_SHORTS="youtube_shorts",sV.TAB_SHORTS_CAIRO="youtube_shorts_cairo",sV.TAB_SUBSCRIPTIONS="subscriptions",sV.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",sV.TAB_TRENDING="fire",sV.TIMER="stopwatch",sV.TRAILER="youtube_originals",sV.TRENDING="fire",sV.TRENDING_CAIRO="fire_cairo",sV.TRENDING_DOWN=
"rating_down",sV.TRENDING_UP="rating_up",sV.TROPHY="trophy",sV.TROPHY_CELEBRATIONS="fireworks",sV.TUNE="adjust",sV.UNBLOCK_USER="bar_circle",sV.UNLIMITED="youtube_logo_icon",sV.UNPLUGGED_LIVE_GUIDE="radar_live",sV.UNPLUGGED_SPORTS="eye_off",sV.UPLOADS="library",sV.UP_ARROW="arrow_up",sV.VERTICAL_ALIGN_BOTTOM="download",sV.VERY_HAPPY="face_very_happy",sV.VERY_SAD="face_very_sad",sV.VIDEOGAME_ASSET="gaming",sV.VIDEOS="play_arrow_circle",sV.VIDEO_CALL="video_camera_add",sV.VIDEO_LIBRARY_WHITE="library",
sV.VIDEO_YOUTUBE="youtube_logo_icon",sV.VIEW_LIST="list_view",sV.VIEW_LIST_CAIRO="list_view_cairo",sV.VISIBILITY="eye",sV.VISIBILITY_OFF="eye_off",sV.VOLUME_MUTE="volume_off",sV.VOLUME_UP="volume_on",sV.WALLPAPER="image",sV.WARNING="alert_triangle",sV.WATCH_HISTORY="arrow_time",sV.WATCH_HISTORY_CAIRO="arrow_time_cairo",sV.WATCH_LATER="clock",sV.WATCH_LATER_CAIRO="clock_cairo",sV.WATCH_RELATED_MIX="youtube_mix",sV.WHAT_TO_WATCH="home",sV.YOUTUBE_MUSIC_MONOCHROME="youtube_music",sV.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",sV.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",sV.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",sV.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",sV.YT_OUTLINE_MUSIC_24="music",sV);var uw={},Xcm=(uw.ACCESS_TIME="clock",uw.ACCOUNT_BOX="person_square",uw.ACCOUNT_BOX_CAIRO="person_square",uw.ACCOUNT_CIRCLE="person_circle",uw.ACCOUNT_CIRCLE_CAIRO="person_circle",uw.ACCOUNT_LINKED="account_link",uw.ACCOUNT_UNLINKED="account_link",uw.ADD_CIRCLE="add_circle",uw.ADD_CIRCLE_OUTLINE="add_circle",uw.ADD_FRIEND="person_child",uw.ADD_MODERATOR="shield_add",uw.ADD_TO_LIBRARY="bookmark",uw.ADD_TO_PLAYLIST="add",uw.ADD_TO_QUEUE_TAIL="queue",uw.ADD_TO_REMOTE_QUEUE="playlist_audio",uw.ADD_TO_WATCH_LATER=
"clock",uw.ADD_VIDEO_LINK="film_strip_add",uw.ADMIN_PANEL_SETTINGS="person_gear",uw.ALERT_WARN_RED="alert_triangle",uw.ALIGN_LEFT="text_align_left",uw.ARROWS_ALERT="arrow_split_alert",uw.ARROW_BACK="arrow_left",uw.ARROW_CIRCLE="arrow_counterclockwise",uw.ARROW_CIRCLE_PLAY="replay",uw.ARROW_CIRCLE_RIGHT="arrow_clockwise",uw.ARROW_DIAGONAL="arrow_up_left",uw.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",uw.ARROW_DROP_DOWN="triangle_down",uw.ARROW_DROP_UP="triangle_up",uw.ARROW_FORWARD="arrow_right",uw.ARROW_PAUSE=
"pause_history",uw.ARROW_UNDO="undo",uw.ARTICLE="text_page",uw.ARTICLE_ALERT="text_page_alert",uw.ARTICLE_CHECK="text_page_check",uw.ARTICLE_CLARIFY="text_page_info",uw.ARTIST="person_audio",uw.AUDIOTRACK="audio",uw.AUDIO_BADGE="audio_badge",uw.AUDIO_SURROUND="surround_sound",uw.AUTO_AWESOME="sparkles",uw.AVATAR_ANONYMOUS="person_circle",uw.AVATAR_LOGGED_OUT="person_circle",uw.BACK="arrow_left",uw.BAR_CHART="chart_bar",uw.BAR_CIRCLE="minus_circle",uw.BAR_HORIZONTAL="minus",uw.BLOCK="circle_slash",
uw.BLOCK_USER="circle_slash",uw.BOOKMARK_BORDER="bookmark",uw.BOX_OPEN_CHECK="quiz",uw.BOX_PENCIL="square_pencil",uw.BOX_STACK_3="square3_stack",uw.BREAKING_NEWS_ALT_1="text_page_alert",uw.BROADCAST="podcast",uw.BROADCAST_CAIRO="podcast",uw.BUG_REPORT="bug",uw.CAMERA_ALT="camera",uw.CAMPAIGN="megaphone",uw.CANCEL="x_circle",uw.CAPTIONS="closed_captions",uw.CAST_ICON="chromecast",uw.CAST_OUTLINE="chromecast",uw.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",uw.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
uw.CHAT="text_bubble",uw.CHAT_BUBBLE="bubble",uw.CHECK_BOX="check_square",uw.CHECK_BOX_OUTLINE_BLANK="square",uw.CHECK_CIRCLE_FILLED="check_circle",uw.CHECK_CIRCLE_OUTLINE="check_circle",uw.CHECK_CIRCLE_THICK="check_circle",uw.CHECK_DOUBLE="check_done",uw.CHECK_DOUBLE_OFF="check_done_slash",uw.CHEVRON_LEFT="chevron_left",uw.CHEVRON_RIGHT="chevron_right",uw.CHEVRON_RIGHT_CAIRO="chevron_right",uw.CIRCLES_OVERLAP="account_link",uw.CLAPPERBOARD_CAIRO="clapperboard",uw.CLARIFY="text_page_info",uw.CLOCK_ARROWS=
"clock_split",uw.CLOCK_ARROWS_ALERT="clock_split_alert",uw.CLOSED_CAPTION="closed_captions",uw.CLOSED_CAPTION_SELECTED="closed_captions",uw.CLOSE="x",uw.CLOUD_UPLOAD="cloud_arrow_up",uw.COLLAPSE="chevron_up",uw.COLLAPSE_CAIRO="chevron_up",uw.COLLECTION="square3d_stack",uw.COLOR_LENS="paint_palette",uw.COMMENT="text_bubble",uw.CONSENT_SHIELD="person_shield",uw.CONTENT_CUT="scissors",uw.CONTENT_CUT_CAIRO="scissors",uw.COURSE="graduation_cap",uw.COURSE_CAIRO="graduation_cap",uw.CREATION_LIVE="live",
uw.CREATION_POST="square_pencil",uw.CREATION_UPLOAD="video",uw.CREATION_UPLOAD_RED="upload",uw.CREATOR_ACADEMY="graduation_cap",uw.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",uw.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",uw.CREATOR_STUDIO="youtube_studio",uw.DARK_THEME="theme",uw.DELETE="trash_can",uw.DELETE_SWEEP="trash_can",uw.DESKTOP="laptop",uw.DISLIKE="thumb_down",uw.DISLIKE_SELECTED="thumb_down",uw.DISMISSAL="x",uw.DISMISS_QUEUE="playlist_x",uw.DOGFOOD="pawprint",uw.DOLLAR_SIGN=
"dollar_sign_circle",uw.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",uw.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",uw.DOWN_ARROW="arrow_down",uw.DO_NOT_DISTURB="circle_slash",uw.DRAFT="document",uw.DRAG_HANDLE="equal",uw.EARTH="globe",uw.EDIT="pencil",uw.EMOJI="face_very_happy",uw.EMOJI_FLAGS="flag",uw.EMOJI_OBJECTS="lightbulb",uw.EMOJI_PEOPLE="face_very_happy",uw.EMOJI_RECENT="clock",uw.EMPTY_HEART="heart",uw.EMPTY_LIKE="thumb_up",uw.ERROR_BLACK="alert_circle",uw.ERROR_OUTLINE="alert_circle",uw.ERROR_WHITE=
"alert_circle",uw.EXIT_APP="arrow_in",uw.EXIT_TO_APP="arrow_in",uw.EXPAND="chevron_down",uw.EXPAND_ALL="chevron_expand",uw.EXPAND_CAIRO="chevron_down",uw.EXPAND_LESS="chevron_up",uw.EXPAND_MORE="chevron_down",uw.EXPLORE="compass",uw.EXPLORE_DESTINATION="compass",uw.EXTERNAL_LINK="arrow_up_right",uw.EYE_OFF="eye_slash",uw.FAB_UPLOAD="upload",uw.FACE_HAPPY_OUTLINE="face_happy",uw.FACE_MEH="face_neutral",uw.FACT_CHECK="text_page_check",uw.FASHION_LOGO="fashion",uw.FASHION_LOGO_CAIRO="fashion",uw.FAVORITE=
"thumb_up",uw.FEEDBACK="alert_bubble",uw.FEEDBACK_CAIRO="alert_bubble",uw.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",uw.FILL_ARROW_SOLID_UP_16="arrow_solid_up",uw.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",uw.FIRST_PAGE="chevron_left_end",uw.FLAG_CAIRO="flag",uw.FLASH_OFF="flash_slash",uw.FLASH_ON="flash",uw.FULL_HEART="heart",uw.GAMING_LOGO="gaming",uw.GAMING_LOGO_CAIRO="gaming",uw.GO_TO_PAGE="arrow_right",uw.GRID_ASYMMETRICAL="dashboard",uw.GROUPS="person3",uw.HAND_SWIPE_LEFT="gesture_swipe_left",
uw.HAND_SWIPE_RIGHT="gesture_swipe_right",uw.HAPPY="face_happy",uw.HEALTH_AND_SAFETY="shield_health",uw.HEART_BOX="heart_cube",uw.HELP="help_circle",uw.HELP_CAIRO="help_circle",uw.HELP_OUTLINE="help_circle",uw.HIDE="circle_slash",uw.INCOGNITO_CAIRO="incognito",uw.INFINITY_ICON="infinity",uw.INFO="info_circle",uw.INFO_OUTLINE="info_circle",uw.INSERT_CHART="chart_bar_square",uw.INSERT_CHART_OUTLINED="chart_bar_square",uw.INSERT_PHOTO="image",uw.KEEP="pin",uw.KEEP_OFF="pin_slash",uw.KEYBOARD="keyboard",
uw.KEYBOARD_ARROW_DOWN="chevron_down",uw.KEYBOARD_ARROW_UP="chevron_up",uw.KIDS_BLOCK="circle_slash",uw.LANGUAGE="globe",uw.LAST_PAGE="chevron_right_end",uw.LAUNCH="arrow_up_right",uw.LEARNING="lightbulb",uw.LEARNING_CAIRO="lightbulb",uw.LIBRARY_ADD="bookmark",uw.LIBRARY_IMAGE="image_stack",uw.LIBRARY_MUSIC="audio_square_stack",uw.LIBRARY_OUTLINE="play_square_stack",uw.LIBRARY_REMOVE="bookmark",uw.LIBRARY_SAVED="check_square_stack",uw.LIKES_PLAYLIST="thumb_up",uw.LIKES_PLAYLIST_CAIRO="thumb_up",uw.LIKE=
"thumb_up",uw.LIKE_SELECTED="thumb_up",uw.LIST_QUEUE="queue",uw.LIVE_CAIRO="live",uw.LIVE_UNLISTED="link",uw.LOCATION_ON="location_pin",uw.LOCATION_PIN="location_pin",uw.LOCATION_POINT="location_pin",uw.LOOP="repeat",uw.LOOP_ACTIVE="repeat",uw.LOOP_ONE="repeat1",uw.LOOP_ONE_ACTIVE="repeat1",uw.MEET="google_meet",uw.MEH="face_neutral",uw.MEMBERSHIPS="memberships",uw.MEMBERS_ONLY_MODE_OFF="text_bubble",uw.MENU_FILTER="filter",uw.MESSAGE="text_bubble",uw.MESSAGE_BUBBLE_GEAR="bubble_gear",uw.MESSAGE_BUBBLE_LEFT=
"text_bubble",uw.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",uw.MESSAGE_BUBBLE_OVERLAP="bubble_stack",uw.MESSAGE_BUBBLE_QUESTION="help_bubble",uw.MICROPHONE_ON="mic",uw.MONETIZATION_ON="dollar_sign_circle",uw.MONEY_FILL="dollar_sign_rectangle",uw.MONEY_FILL_JPY="yen_sign_rectangle",uw.MONEY_HAND="dollar_sign_circle_hand",uw.MONEY_HEART="dollar_sign_heart",uw.MOON_Z="sleep_timer",uw.MORE_HORIZ="overflow_horizontal",uw.MORE_VERT="overflow_vertical",uw.MUSIC="audio",uw.MUSIC_CAIRO="audio",uw.MUSIC_EXPLICIT_BADGE=
"explicit",uw.MUSIC_NEW_RELEASE="audio_badge",uw.MUSIC_NOTE_SYMBOL="audio",uw.MUSIC_SCISSORS="audio_scissors",uw.MUSIC_SHUFFLE="shuffle",uw.MY_CHANNEL="person_circle",uw.MY_LOCATION="location_pin",uw.MY_VIDEOS="video",uw.MY_VIDEOS_CAIRO="video",uw.NEWS_CAIRO="news",uw.NEWS_STORY="news",uw.NEXT="chevron_right",uw.NOTE_ADD="bubble_pencil",uw.NOTIFICATIONS="bell",uw.NOTIFICATIONS_ACTIVE="bell_waves",uw.NOTIFICATIONS_CAIRO="bell",uw.NOTIFICATIONS_DONE_CHECKMARK="check",uw.NOTIFICATIONS_INBOX="bell",uw.NOTIFICATIONS_NONE=
"bell",uw.NOTIFICATIONS_OFF="bell_slash",uw.NOT_INTERESTED="circle_slash",uw.OFFICIAL_ARTIST_BADGE="audio",uw.OFFLINE_CLOUD="cloud_slash",uw.OFFLINE_DOWNLOAD="download",uw.OFFLINE_DOWNLOAD_CAIRO="download",uw.OFFLINE_PAUSE="pause",uw.OPEN_IN_NEW="arrow_up_right",uw.OUTLINE_ADJUST="adjust",uw.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",uw.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",uw.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",uw.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",uw.OUTLINE_BAG="bag",uw.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",uw.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",uw.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",uw.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",uw.PAID="dollar_sign_circle",uw.PAUSE_OUTLINED="pause",uw.PAYMENT="credit_card",uw.PEOPLE="person_child",uw.PEOPLE_2="person2_rectangle",uw.PEOPLE_GROUP="person3",uw.PEOPLE_NOTE="bubble_asterisk",uw.PERSON_2="person2",uw.PERSON_ACCOUNT="person_square_stack",uw.PERSON_MINUS="person_x",uw.PERSON_MUSIC="person_audio",uw.PERSON_RADAR="person_waves",
uw.PERSON_RADAR_FILLED="person_waves",uw.PERSON_SETTING="person_gear",uw.PHONE="phone",uw.PHONE_DOWNLOAD="mobile_arrow_down",uw.PICTURE_IN_PICTURE="picture_in_picture",uw.PLAYABLES_LOGO="playables",uw.PLAYABLES_LOGO_CAIRO="playables",uw.PLAYLISTS="playlist",uw.PLAYLISTS_CAIRO="playlist",uw.PLAYLIST_ADD_CHECK="bookmark",uw.PLAY_ALL="play",uw.PLAY_ARROW="play",uw.PLAY_ARROW_CIRCLE="play_circle",uw.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",uw.PLAY_CIRCLE="play_circle",uw.PLAY_OUTLINED="play_circle",
uw.PODCAST_ADD="podcast_add",uw.PODCAST_CHECK="podcast_check",uw.PRIVACY_INFO="shield_x",uw.PRIVACY_PRIVATE="lock",uw.PRIVACY_PUBLIC="globe",uw.PRIVACY_UNLISTED="link",uw.PROMOTE="megaphone",uw.PURCHASES="price_tag",uw.PURCHASE_SUPER_CHAT="super_chat",uw.PURCHASE_SUPER_STICKER="super_sticker",uw.QUESTION_ANSWER="help_bubble",uw.QUESTION_CIRCLE="help_circle",uw.QUEUE_PLAY_LAST="queue_last",uw.QUEUE_PLAY_NEXT="queue_next",uw.QUOTATION_MARK="quote",uw.RADAR_LIVE="live",uw.REMOVE="minus_circle",uw.REMOVE_CIRCLE=
"minus_circle",uw.REMOVE_CIRCLE_OUTLINE="minus_circle",uw.REMOVE_FROM_HISTORY="minus_circle",uw.REMOVE_FROM_PLAYLIST="minus_circle",uw.REMOVE_MODERATOR="shield_slash",uw.REPLAY="arrow_counterclockwise",uw.REPLAY_10="skip10_back",uw.REPLAY_ARROW="replay",uw.REPORT_PROBLEM="alert_triangle",uw.RSS_OFF="rss_slash",uw.SAD="face_sad",uw.SAVE_PLAYLIST="bookmark",uw.SCHEDULE="clock",uw.SCHOOL="graduation_cap",uw.SCREEN_DEFAULT="player_default",uw.SCREEN_FULLSCREEN="player_full_enter",uw.SCREEN_LIGHT="ambient_mode",
uw.SCREEN_ROTATION="rotate_portrait",uw.SCREEN_SWITCH="player_switch",uw.SCREEN_THEATRE="player_theater",uw.SEARCH_CAIRO="search",uw.SEARCH_HISTORY="history",uw.SELL="price_tag",uw.SETTINGS="gear",uw.SETTINGS_CAIRO="gear",uw.SETTINGS_LIGHT="gear",uw.SETTINGS_MATERIAL="gear",uw.SETTINGS_REMOTE="remote_waves",uw.SHARE="share",uw.SHARE_ARROW="share",uw.SHARE_CAIRO="share",uw.SHIELD="shield_x",uw.SHIELD_EMPTY="shield",uw.SHIELD_OFF="shield_slash",uw.SHIELD_WITH_AVATAR="person_shield",uw.SHOPPING_BAG=
"bag",uw.SHOPPING_BAG_CAIRO="bag",uw.SHOPPING_CART="cart",uw.SHORTS_COMMENT="text_bubble",uw.SHORTS_DISLIKE="thumb_down",uw.SHORTS_LIKE="thumb_up",uw.SHORTS_SHARE="share",uw.SKIP_FORWARD_30="skip30_forward",uw.SLASH_CIRCLE_LEFT="circle_slash",uw.SLASH_CIRCLE_RIGHT="circle_slash",uw.SLOW_MODE="bubble_slow",uw.SLOW_MODE_OFF="text_bubble",uw.SOCIAL="person_child",uw.SPARKLE="sparkles",uw.SPARK_IMAGE="image_spark",uw.SPARK_PENCIL="pencil_spark",uw.SPARK_RADAR="spark_waves",uw.SPARK_VIDEO="video_spark",
uw.SPEAKER_GROUP="speaker_stack",uw.SPEAKER_OFF="speaker_slash",uw.SPEED_1X="n1x",uw.SPEED_1_POINT_2X="n1point2x",uw.SPEED_1_POINT_5X="n1point5x",uw.SPEED_1_POINT_8X="n1point8x",uw.SPEED_2X="n2x",uw.SPONSORSHIP_STAR="star_circle",uw.SPORTS="basketball",uw.SPOTLIGHT="spotlight",uw.STAFF_PICK="spotlight",uw.START_DVR="add",uw.STAR_BORDER="star",uw.STAR_CIRCLE_RIBBON="memberships_gift",uw.STAR_HALF="star_full_half",uw.STAR_SHOOTING="hype",uw.STICKER="sticker",uw.STICKER_EMOTICON="face_happy",uw.STOP_DVR=
"stop",uw.SUBSCRIBE="youtube",uw.SUBSCRIBE_PLUS="add",uw.SUBSCRIPTION_MANAGER="gear",uw.SUPERSTAR="super_star",uw.SUPERVISOR_ACCOUNT="person_child",uw.SUPER_CHAT_FOR_GOOD="hands_heart",uw.SWAP_HORIZ="arrow_swap_horizontal",uw.SWITCH_ACCOUNTS="person_square_stack",uw.TAB_ACCOUNT="person",uw.TAB_ACTIVITY="bell",uw.TAB_BOOKMARK="bookmark",uw.TAB_EXPLORE="compass",uw.TAB_HOME="home",uw.TAB_HOME_CAIRO="home",uw.TAB_INBOX="mail",uw.TAB_LIKED="thumb_up",uw.TAB_MUSIC_PREMIUM="youtube_music",uw.TAB_SHORTS=
"shorts",uw.TAB_SHORTS_CAIRO="shorts",uw.TAB_SUBSCRIPTIONS="subscriptions",uw.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",uw.TAB_TRENDING="trending",uw.TARGET="target",uw.TARGET_ADD="target_add",uw.TEMPLATE_ADD="template_add",uw.TEXT="font",uw.TICKET_STAR="star_ticket",uw.TIMER="stopwatch",uw.TRENDING_CAIRO="trending",uw.TRENDING_DOWN="arrow_trend_down",uw.TRENDING_UP="arrow_trend_up",uw.TROPHY_CAIRO="trophy",uw.TROPHY_CELEBRATIONS="fireworks",uw.TROPHY_STAR="star_trophy",uw.TUNE="adjust",uw.TV_OFF="tv_slash",
uw.UNBLOCK_USER="minus_circle",uw.UNFAVORITE="thumb_down",uw.UNLIMITED="youtube",uw.UNPLUGGED_LIVE_GUIDE="live",uw.UNPLUGGED_SPORTS="eye_slash",uw.UPLOADS="play_square_stack",uw.UP_ARROW="arrow_up",uw.VERTICAL_ALIGN_BOTTOM="chevron_down_end",uw.VERTICAL_ALIGN_TOP="chevron_up_end",uw.VERY_HAPPY="face_very_happy",uw.VERY_SAD="face_very_sad",uw.VIDEOS="play_circle",uw.VIDEO_CALL="video_camera_add",uw.VIDEO_LIBRARY_WHITE="play_square_stack",uw.VIDEO_QUALITY_4K="n4k",uw.VIDEO_QUALITY_8K="n8k",uw.VIDEO_YOUTUBE=
"youtube",uw.VIEW_LIST_CAIRO="view_list",uw.VIEW_MODULE="view_column3_row2",uw.VISIBILITY="eye",uw.VISIBILITY_OFF="eye_slash",uw.VOLUME_DOWN="volume_min",uw.VOLUME_MUTE="volume_mute",uw.VOLUME_OFF="volume_mute",uw.VOLUME_STABLE="stable_volume",uw.VOLUME_UP="volume_max",uw.WALLPAPER="image",uw.WARNING="alert_triangle",uw.WATCH_HISTORY="history",uw.WATCH_HISTORY_CAIRO="history",uw.WATCH_LATER="clock",uw.WATCH_LATER_CAIRO="clock",uw.WATCH_RELATED_MIX="mix",uw.WHAT_TO_WATCH="home",uw.YOUTUBE_LINKED_TV=
"tv_mobile",uw.YOUTUBE_MUSIC_MONOCHROME="youtube_music",uw.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",uw.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",uw.YOUTUBE_SHORTS_ARROW_UP="arrow_up",uw.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",uw.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",uw.YOUTUBE_SHORTS_OUTLINE_24="shorts",uw.YT_OUTLINE_MUSIC_24="audio",uw);var aVm={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],
[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,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,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var rT5={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,
10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,
18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],
[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,
24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,
1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var $18={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"},j9=function(v){this.iconUrlProvider=v};
j9.prototype.resolveIcon=function(v,Q){var V=$18[v.iconName.toUpperCase()];V&&(v.iconName=V);var E=v.iconName;E=E.replace(/-/g,"_");v=Object.assign({},v,{iconName:this.mapIconTypeToStandardName(E,!!V)||E.toLowerCase()});if(_.Y("enable_web_delhi_icons")||V){var b;return tLb(rT5,v,((b=this.iconUrlProvider)==null?void 0:b.getYtStandardUrl)||P2E,Q)}var F;return tLb(aVm,v,((F=this.iconUrlProvider)==null?void 0:F.getYtStandardUrl)||ZyS,Q)};
j9.prototype.mapIconTypeToStandardName=function(v,Q){return _.Y("enable_web_delhi_icons")||Q?Xcm[v.toUpperCase()]:ow5[v.toUpperCase()]};
j9[w$]=[_.d$(uds)];var IVd=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),H$n=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),m1q=function(v){this.urlProvider=this.iconUrlProvider=v};
_.f(m1q,j9);
m1q.prototype.resolveIcon=function(v,Q){v.iconName==="youtube_logo"&&(v.iconName="yt-logo-updated");if(v.iconName==="youtube_premium_logo"||v.iconName==="youtube_red_logo")v.iconName="yt-logo-red-updated";var V=Object.assign({},v);v.iconName==="menu"&&(_.Y("enable_web_delhi_icons")||(V.iconName="bars_3"),V.iconStyle="youtube_outline");v.iconSetName==="socialNetworksRound"&&(v.iconName==="mail"&&(V.iconName="email"),v.iconName==="embed"&&(V.iconSize=60));v.iconName==="more"&&(V.iconName="overflow_horizontal");
v.iconName==="fullscreen"&&(V.iconName="screen_full");v.iconName==="premium_standalone"&&(V.iconName="premium_standalone_cairo");_.Y("enable_connect_icon_update_web")&&v.iconName==="account_linked"&&(V.iconName="circles_overlap_check",V.iconStyle="youtube_fill");_.Y("enable_connect_icon_update_web")&&v.iconName==="account_unlinked"&&(V.iconName="circles_overlap",V.iconStyle="youtube_outline");IVd.has(v.iconName)&&(V.iconStyle="youtube_fill");_.Y("enable_web_delhi_icons")&&(v.iconName==="playlist_add"&&
(V.iconName="bookmark"),v.iconName==="offline_pin"&&(V.iconName="arrow_down_circle",V.iconStyle="youtube_fill"),H$n.has(v.iconName)&&(V.iconName+="_updated"));v=Object.assign({},V,{iconName:(j9.prototype.mapIconTypeToStandardName.call(this,V.iconName)||V.iconName).toLowerCase()});var E;return(v=tLb(gwq,v,((E=this.urlProvider)==null?void 0:E.getUrl)||dtt,Q))?v:j9.prototype.resolveIcon.call(this,V,Q)};
m1q[w$]=[_.d$(uds)];_.U1$=1;var WP=function(v,Q){this.JSC$17508_commandHandler=v;this.innertubeTransportService=Q};
_.f(WP,Z8);WP.prototype.resolveCommand=function(v,Q){var V=this,E,b,F;return _.e(function(t){return(E=_.y(v,yfZ))?t.return(v4h(V,E,(b=Q)==null?void 0:(F=b.form)==null?void 0:F.element)):t.return()})};
var v4h=function(v,Q,V){Q={profileCardContext:Q.profileCardContext,profileOwnerExternalChannelId:Q.profileOwnerExternalChannelId};var E=_.Xg(Mna);return _.tQ(v.innertubeTransportService,Q,E).then(function(b){if(!b)throw new _.xd("GetProfileCard failed");if(b=b.popupCommand){v.JSC$17508_commandHandler.resolveCommand(b,{form:{element:V}});_.S5(_.tR(),66557);b=b==null?void 0:b.clickTrackingParams;var F=_.CC();b&&F&&_.tR().graftServerVe(b,F)}})};
WP[w$]=[_.At,_.wH];var oW=function(){};
_.f(oW,Z8);oW.prototype.resolveCommand=function(v){var Q,V;return _.e(function(E){Q=_.y(v,nYN);if(!Q)return E.return();V=Number(Q.enableDelayedPacfLoggingTvMs);if(isNaN(V)){var b=jn();xrZ(b,Q,0)}else xrZ(jn(),Q,V);_.q1(E)})};_.Xs=function(){};
_.f(_.Xs,Z8);
_.Xs.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d;return _.e(function(w){E=_.y(v,lIq);F=(b=Q.form)==null?void 0:b.element;p=(t=F)==null?void 0:t.closest("ytd-enforcement-message-view-model");if(!E||!p)return w.return();V.allowAdsAction||(Z=E.fundingChoiceInstructionPageUrl,V.allowAdsAction=new MxA(window,_.ae(Z)));var A=V.allowAdsAction;A.wallElement=p;A.allowAdsPopup.style.setProperty("display","flex","important");var k=A.scrollManager;k.isScrollingEnabled&&(k.originalBodyOverflow=k.JSC$10080_domHelper.JSC$9406_document_.body.style.overflow,
k.JSC$10080_domHelper.JSC$9406_document_.body.style.overflow="hidden",k.isScrollingEnabled=!1);A.wallElement.style.setProperty("display","none","important");xLZ(A.accessibilityManager,A.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((d=V.allowAdsAction.allowAdsPopup)&&d instanceof HTMLElement)for(A=_.L(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),k=A.next();!k.done;k=A.next()){var T=_.L(k.value);k=T.next().value;T=T.next().value;
d.style.setProperty(k,T)}_.q1(w)})};
_.Xs.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var aW=function(){};
_.f(aW,Z8);aW.prototype.resolveCommand=function(v){var Q;return _.e(function(V){Q=_.y(v,z4R);if(!Q)return V.return();fwo(v);_.q1(V)})};_.ry=new _.KB("AI_CHAT_CONTROLLER_TOKEN");var $A=function(v,Q,V,E){this.JSC$17523_commandHandler=v;this.store=Q;this.getPlayerCb=V;this.aiChatController=E};
_.f($A,Z8);$A.prototype.pageContext=function(){var v=_.zw.currentPageSubTypeSelector(this.store.getState()),Q;return(Q=this.aiChatController)==null?void 0:_.Qbd(Q,v)};
$A.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t;return _.e(function(p){V=_.y(v,jHS);b=(E=V)==null?void 0:E.command;if(!b)return p.return();switch((t=V)==null?void 0:t.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var Z="youchat-"+Date.now(),d;var w=String(Math.floor(((d=Q.getPlayerCb())==null?void 0:d.getCurrentTime())||0)*1E3);F={inputComposerFormData:{clientMessageId:Z,playerOffsetMs:w,pageContext:Q.pageContext()}}}if(!F)return p.return();Q.JSC$17523_commandHandler.resolveCommand(b,
{form:{formData:F}});_.q1(p)})};
$A[w$]=[_.At,_.Uj,zOB,_.d$(_.ry)];var VSn=new _.KB("SESSION_STORAGE");var IW=function(v){this.sessionStorage=v("conversations")};
_.f(IW,Z8);IW.prototype.resolveCommand=function(v){var Q=this,V;return _.e(function(E){V=_.y(v,WKR);if(!V)return E.return();V.conversationId?Q.sessionStorage.set("conversation_id",V.conversationId):Q.sessionStorage.remove("conversation_id");_.q1(E)})};
IW[w$]=[VSn];var HP=function(v){this.JSC$17535_commandHandler=v};
_.f(HP,Z8);
HP.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1){V=_.y(v,tIZ);if((E=V)==null||!E.text||!navigator.clipboard)return w.return();_.GC(w,2);return w.yield(navigator.clipboard.writeText(V.text),4)}if(w.nextAddress!=2){if(!V.successActions||V.successActions.length===0)return w.return();b=_.L(V.successActions);for(F=b.next();!F.done;F=b.next())t=F.value,Q.JSC$17535_commandHandler.resolveCommand(t);return _.FT(w,0)}_.n$(w);if(!V.failureActions||V.failureActions.length===
0)return w.return();p=_.L(V.failureActions);for(Z=p.next();!Z.done;Z=p.next())d=Z.value,Q.JSC$17535_commandHandler.resolveCommand(d);_.q1(w)})};
HP[w$]=[_.At];var mu=function(v){this.JSC$17539_commandHandler=v};
_.f(mu,Z8);
mu.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k;return _.e(function(T){switch(T.nextAddress){case 1:E=_.y(v,u_Z);if(!E)return T.return();_.GC(T,2);if(!E.imageBytes&&!E.imageUrl)throw Error("Ai");if(!E.imageUrl){if(E.imageBytes){F=E.imageBytes;t=F.replace(/-/g,"+").replace(/_/g,"/");var c=AAS(t);b=_.XI(c)}T.jumpTo(4);break}return T.yield(fetch(E.imageUrl),5);case 5:return p=T.yieldResult,T.yield(p.blob(),6);case 6:Z=T.yieldResult,b=_.XI(Z);case 4:A=(d=Q)==null?void 0:(w=d.form)==
null?void 0:w.element;k=document.createElement("a");$P(k,b);A.appendChild(k);k.download="";k.click();A.removeChild(k);URL.revokeObjectURL(_.Bq(b));E.successCommand&&V.JSC$17539_commandHandler.resolveCommand(E.successCommand);_.FT(T,0);break;case 2:_.n$(T),E.errorCommand&&V.JSC$17539_commandHandler.resolveCommand(E.errorCommand),_.q1(T)}})};
mu[w$]=[_.At];var UV=function(v){this.store=v};
_.f(UV,Z8);UV.prototype.resolveCommand=function(v){var Q=this,V,E,b;return _.e(function(F){E=(V=_.y(v,_.uUZ))==null?void 0:V.entityBatchUpdate;if(!E)return F.jumpTo(0);b=Object.assign({},E,{mutations:[].concat(_.ui(E.mutations||[]))});return F.yield(_.p7(b,Q.store),0)})};var E4h=function(v){this.JSC$17546_commandHandler=v;this.feedbackDialogMap=new Map};
E4h.prototype.openDialog=function(v,Q){(v=this.feedbackDialogMap.get(v))&&this.JSC$17546_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:v}},Q)};
E4h[w$]=[_.At];var vd=new _.KB("FEEDBACK_CONTROLLER_TOKEN");var QA=new _.KB("APP_STORE_TOKEN");var VA=function(v,Q){this.store=v;this.controller=Q};
_.f(VA,Z8);VA.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g;return _.e(function(u){if(u.nextAddress==1){E=_.y(v,_.Cq);if(F=(b=E)==null?void 0:b.contentId)for(p=_.L(((t=E)==null?void 0:t.actions)||[]),Z=p.next();!Z.done;Z=p.next())d=Z.value,bw8(V,d,F);k=(w=Q)==null?void 0:(A=w.form)==null?void 0:A.element;return u.yield(_.vp(k,[v,{impression:(T=Q)==null?void 0:T.disableClickTracking}]).catch(function(){}),2)}c=u.yieldResult;
((C=c)==null?0:(R=C.data)==null?0:(l=R.feedbackResponses)==null?0:l.length)&&(a=(S=c.data.feedbackResponses[0])==null?void 0:S.followUpDialog)&&F&&(g=V.controller)!=null&&g.feedbackDialogMap.set(F,a);_.q1(u)})};
var bw8=function(v,Q,V){var E=_.y(Q,_.E2);if(E){E=_.L(E.commands||[]);for(var b=E.next();!b.done;b=E.next())bw8(v,b.value,V)}_.y(Q,_.Nd)&&v.store.dispatch(_.dW("commandEntity",HRG(V),{key:V,command:Q}));_.y(Q,D7Z)&&v.store.dispatch(_.dW("commandEntity",HRG(V),{key:V,command:Q}))};
VA[w$]=[QA,vd];var EK=function(v){this.controller=v};
_.f(EK,Z8);EK.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t;return _.e(function(p){E=_.y(v,_.Vi);F=(b=E)==null?void 0:b.targetId;if(((t=E)==null?void 0:t.signal)!=="TELL_US_WHY"||!F)return p.return();V.controller.openDialog(F,Q);_.q1(p)})};
EK[w$]=[vd];var bC=function(v){this.store=v};
_.f(bC,Z8);bC.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d;return _.e(function(w){E=_.y(v,Apo);F=(b=E)==null?void 0:b.contentId;Z=(t=Q)==null?void 0:(p=t.form)==null?void 0:p.element;d=_.vp(Z,[v]);F&&V.undo(F);return w.yield(d,0)})};
bC.prototype.undo=function(v){this.store.dispatch(_.dW("commandEntity",HRG(v),{key:v,command:void 0}))};
bC[w$]=[QA];var F7=function(v){this.JSC$17561_commandHandler=v};
_.f(F7,Z8);F7.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d;return _.e(function(w){V=_.y(v,KpS);E=V.flowStateKey;b=V.validationFailureCommand;F=V.submitValidFormCommand;t=QYT(_.uA,[E||""]);p=_.y(t,thQ);((Z=p)==null?0:Z.isValid)&&F&&Q.JSC$17561_commandHandler.resolveCommand(F);((d=p)==null?0:d.isValid)||!b||Q.JSC$17561_commandHandler.resolveCommand(b);_.q1(w)})};
F7[w$]=[_.At];var K6=function(v){this.innertubeTransportService=v};
_.f(K6,Z8);K6.prototype.resolveCommand=function(v,Q){var V=this,E;return _.e(function(b){return b.yield(_.xW(V.innertubeTransportService,v,(E=Q)==null?void 0:E.form).then(function(F){var t,p;Q==null||(t=Q.commandController)==null||(p=t.onSuccess)==null||p.call(t,v,F)},function(F){var t,p;
Q==null||(t=Q.commandController)==null||(p=t.onServerError)==null||p.call(t,v,F)}),0)})};
K6[w$]=[_.wH];var iC=function(){};
_.f(iC,Z8);iC.prototype.resolveCommand=function(v){var Q,V,E,b;return _.e(function(F){if(Q=_.y(v,_.EOa)){if(V=Q.gtmId)E=_.r7("GL",""),_.WO(V,E);(b=Q.gtmData)&&_.oZ(b)}_.q1(F)})};var L6=function(v,Q,V){this.innertubeTransportService=v;this.JSC$17572_actionRouter=Q;this.JSC$17572_screenManager=V};
_.f(L6,Z8);L6.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){V=_.y(v,VOV);if(!V)return b.return();E=V.command;if(!E)return b.return();Q.JSC$17572_actionRouter.triggerAction("yt-insert-rich-section-action",V);return b.yield(_.xW(Q.innertubeTransportService,E,{disableCache:!0}).then(function(F){v.clickTrackingParams&&(F==null?0:F.trackingParams)&&Q.JSC$17572_screenManager.graftServerVe(F.trackingParams,_.dE(v.clickTrackingParams))}),0)})};
L6[w$]=[_.wH,cm,_.o5];TTG.bind(null,Pb);var FQh=TTG.bind(null,vjR);yAt.bind(null,Pb);var KQf=yAt.bind(null,vjR);fkB.bind(null,Pb);var iwI=fkB.bind(null,vjR);var tX=function(){};
_.f(tX,Z8);
tX.prototype.resolveCommand=function(v){var Q,V,E,b,F,t,p,Z,d,w;return _.e(function(A){Q=_.y(v,g5a);if(!Q)return A.return();E=((V=Q.operations)==null?void 0:V.operations)||[];b=_.L(E);for(F=b.next();!F.done;F=b.next())if(t=F.value,t.insertItemSectionContent){var k=t.insertItemSectionContent,T=k.contents||[];k.insertByPositionInSection?FQh(k.insertByPositionInSection.sectionTargetId,T,k.insertByPositionInSection.position):k.insertByRelativePositionInSection&&k.insertByRelativePositionInSection.sectionTargetId&&k.insertByRelativePositionInSection.itemTargetId&&
KQf(k.insertByRelativePositionInSection.sectionTargetId,k.insertByRelativePositionInSection.itemTargetId,T,k.insertByRelativePositionInSection.relativePosition)}else t.replaceSection?(k=t.replaceSection,T={},k.replaceByTargetId?T=k.replaceByTargetId:k.replaceByGroupId&&(T={targetId:k.replaceByGroupId.groupId,newContent:k.replaceByGroupId.newContent,undoKey:""}),T.newContent&&EjN(T.targetId,{continuationItems:[T.newContent]})):t.removeItem?(k=t.removeItem,k.removeByTargetId&&k.sectionTargetId&&iwI(k.sectionTargetId,
k.removeByTargetId.targetIds||[])):t.removeSection&&(t.removeSection.removeByTargetId?(p=void 0,LQf(((p=t.removeSection)==null?void 0:p.removeByTargetId.targetIds)||[])):t.removeSection.removeByGroupId&&(Z=void 0,LQf(((Z=t.removeSection)==null?void 0:Z.removeByGroupId.groupIds)||[])));w=((d=Q.operations)==null?void 0:d.scrollConfig)||{};tSf(w);_.q1(A)})};
var LQf=function(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())EjN(Q.value,{continuationItems:[]})},tSf=function(v){if(v.scrollToItem){var Q=v.scrollToItem.item||{},V=Q.itemTargetId;
Q=Q.sectionTargetId;if(V&&Q){var E=document.querySelector("[data-target-id="+Q+"]"),b=E==null?void 0:E.querySelector("[data-target-id="+V+"]");E&&b&&setTimeout(function(){var F=b.offsetTop-E.offsetTop,t;if(((t=v.scrollToItem)==null?void 0:t.scrollPosition)==="SCROLL_POSITION_CENTER")F-=E.offsetHeight/2,F+=b.offsetHeight/2;else{var p;((p=v.scrollToItem)==null?void 0:p.scrollPosition)==="SCROLL_POSITION_END"&&(F-=E.offsetHeight,F+=b.offsetHeight)}E.scroll({top:F,behavior:"smooth"})},100)}}};var p6=new _.KB("CLIENT_NAME_TOKEN");var p47=new _.KB("DEFAULT_STORE_EXPIRATION_TOKEN");var neS=new _.KB("CLIENT_LOCATION_SERVICE_TOKEN");var eA=function(v,Q,V){this.clientName=v||_.r7("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=Q||_.Jn.getInstance();this.JSC$17600_commandHandler=V||_.bd.instance};
_.f(eA,Z8);eA.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){E=(V=_.y(v,yLX))==null?void 0:V.onComplete;Q.clientLocationService.clearLocationPlayabilityToken(Q.clientName);E&&Q.JSC$17600_commandHandler.resolveCommand(E);_.q1(b)})};
eA[w$]=[p6,neS,_.At];var Zw=function(v){this.innertubeTransportService=v};
_.f(Zw,Z8);Zw.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t;return _.e(function(p){F=(E=Q)==null?void 0:(b=E.form)==null?void 0:b.element;return p.yield(_.xW(V.innertubeTransportService,v,(t=Q)==null?void 0:t.form).then(function(Z){AKG(F,new CustomEvent("yt-service-request-completed"),{data:Z},_.r7("openPopupConfig"))}),0)})};
Zw[w$]=[_.wH];var Pd=function(){};
_.f(Pd,Z8);Pd.prototype.resolveCommand=function(v){var Q,V;return _.e(function(E){Q=_.y(v,P7R);V=document.querySelector("mini-app-container-view-model");if(!Q||!V)return E.return();Q.isPlaying?V.dispatchEvent(new Event("play")):V.dispatchEvent(new Event("pause"));_.q1(E)})};var d1=function(){};
_.f(d1,Z8);d1.prototype.resolveCommand=function(v){var Q,V,E,b,F,t,p;return _.e(function(Z){Q=_.y(v,HPq);if((V=Q)==null||!V.paramKeys)return Z.return();E=Q.paramKeys;b=_.vR(window.location.href);F=_.L(E);for(t=F.next();!t.done;t=F.next())p=t.value,b.JSC$10112_queryData_.remove(p);window.history.replaceState(window.history.state,document.title,b.toString());_.q1(Z)})};var eDh=function(){this.dropdownMap=new Map};_.Zwh=new _.KB("DROPDOWN_CONTROLLER_TOKEN");var AX=function(v){this.controller=v};
_.f(AX,Z8);AX.prototype.resolveCommand=function(v){var Q=this,V,E,b,F;return _.e(function(t){V=_.y(v,M2A);if(!V)return t.return();E=V;b=E.dropdownId;F=E.selectedOptionIndex;if(b===void 0||F===void 0)return t.return();var p=Q.controller.dropdownMap.get(b);p&&p(F);_.q1(t)})};
AX[w$]=[_.Zwh];var k3=function(v){this.controller=v};
_.f(k3,Z8);k3.prototype.resolveCommand=function(v){var Q=this,V;return _.e(function(E){return(V=_.y(v,JLR))?E.yield(Q.controller.closeDialog(),0):E.return()})};
k3[w$]=[_.Hk];var Tu=function(v){this.controller=v};
_.f(Tu,Z8);Tu.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){V=_.y(v,k6R);if(!V)return b.return();var F,t=V.panelIdentifier||((F=V.identifier)==null?void 0:F.tag);if(!t)throw Error("Bi");return(E=t)?b.yield(Q.controller.hidePanel({identifier:E}),0):b.jumpTo(0)})};
Tu[w$]=[_.$2];var Y3=function(v){this.controller=v};
_.f(Y3,Z8);Y3.prototype.resolveCommand=function(v){var Q=this,V;return _.e(function(E){return(V=_.y(v,VvZ))?E.yield(Q.controller.closeSheet(),0):E.return()})};
Y3[w$]=[_.Iu];var yA=function(v,Q){this.innertubeTransportService=v;this.controller=Q};
_.f(yA,Z8);yA.prototype.resolveCommand=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return V=_.y(v,TwZ),(E=V)!=null&&E.panelId?t.yield(Q.controller.getReloadContinuation(V.panelId),2):t.return();if(t.nextAddress!=3)return(b=t.yieldResult)?t.yield(_.xW(Q.innertubeTransportService,v,{continuation:b}),3):t.return();F=t.yieldResult;return t.yield(Q.controller.updatePanel({identifier:V.panelId,panelContents:F.content,shouldFocus:!1}),0)})};
yA[w$]=[_.wH,_.$2];var cd=function(v,Q,V){this.innertubeTransportService=v;this.JSC$17642_screenManager=Q;this.JSC$17642_commandHandler=V};
_.f(cd,Z8);
cd.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1){V=_.y(v,_.ZJZ);if(!V)return Z.return();if(V.commands)for(E=_.L(V.commands),b=E.next();!b.done;b=E.next())F=b.value,Q.JSC$17642_commandHandler.resolveCommand(F,{disableClickTracking:!0});t=_.dE(v.clickTrackingParams);_.S5(Q.JSC$17642_screenManager,21760,t,{layer:7,parentLayer:0});return Z.yield(_.xW(Q.innertubeTransportService,v),2)}p=Z.yieldResult;if(!p)return Z.return();Q.JSC$17642_screenManager.graftServerVe(p.trackingParams,t,
7);_.q1(Z)})};
cd[w$]=[_.wH,_.o5,_.At];var f6=new _.KB("PANEL_LOADING_STRATEGY_TOKEN");var Gu=function(v,Q){this.controller=v;this.panelLoadingStrategy=Q};
_.f(Gu,Z8);
Gu.prototype.resolveCommand=function(v,Q){var V=this,E,b,F;return _.e(function(t){E=_.y(v,b1q);if((b=E)==null||!b.panelLoadingStrategy)return t.return();F=function(p){var Z,d,w,A,k,T,c,C,R,l;return _.e(function(S){d=_.y((Z=p.dialogViewModel)==null?void 0:Z.header,OPa);w={viewModel:p.dialogViewModel};A={};if(c=_.Y("web_enable_dialog_header_label")?(k=d)==null?void 0:(T=k.headline)==null?void 0:T.content:void 0)A.ariaLabel=c;E.dismissOnBackgroundTap===!1&&(A.isModal=!0);return p.dialogViewModel?S.yield(V.controller.openDialog(w,
(l=(C=Q)==null?void 0:(R=C.form)==null?void 0:R.element)!=null?l:document.body,A),0):S.return()})};
return t.yield(V.panelLoadingStrategy.execute({command:v,data:E.panelLoadingStrategy,renderFn:F,createScreenConfig:{layer:4}}),0)})};
Gu[w$]=[_.Hk,f6];var C6=function(v,Q,V){this.innertubeTransportService=v;this.controller=Q;this.JSC$17662_screenManager=V};
_.f(C6,Z8);
C6.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l;return _.e(function(S){switch(S.nextAddress){case 1:E=_.y(v,_.Gn);if(!E)return S.return();var a,g=E.panelIdentifier||((a=E.identifier)==null?void 0:a.tag);if(!g)throw Error("Bi");b=g;return S.yield(V.controller.isVisible(b,!0),2);case 2:if((F=S.yieldResult)&&E.blockIfPanelOpen)return S.return();Z=(p=(t=V.controller).getPanelContent)==null?void 0:p.call(t,b);if(!(a=Z))if(E){var u;a=((u=E.globalConfiguration)==null?void 0:
u.initialState)||E.engagementPanel;if(u=!a)u=!!(E==null?0:(g=E.engagementPanelPresentationConfigs)==null?0:g.engagementPanelPopupPresentationConfig);u&&(a=_.GoT(E.panelIdentifier,E.identifier))}else a=void 0;d=a;w=E.engagementPanelPresentationConfigs;A=E.engagementPanelExtras;return S.yield(V.controller.showPanel({identifier:b,panelContents:d,config:w,extras:A,target:(k=Q)==null?void 0:(T=k.form)==null?void 0:T.element}),3);case 3:if(!E.globalConfiguration){S.jumpTo(0);break}if(E.globalConfiguration.reuseModelAndState&&
_.Y("enable_ai_companion")&&(R=(C=(c=V.controller).getPanelContent)==null?void 0:C.call(c,b)))return S.return();_.S5(V.JSC$17662_screenManager,32633);return S.yield(_.xW(V.innertubeTransportService,v),5);case 5:return l=S.yieldResult,V.JSC$17662_screenManager.graftServerVe(l.trackingParams),S.yield(V.controller.updatePanel({identifier:b,panelContents:l.content,shouldFocus:!0,extras:A,updatePanelContinuationData:l.updatePanelContinuationData}),0)}})};
C6[w$]=[_.wH,_.$2,_.o5];var ME=function(v,Q){this.controller=v;this.panelLoadingStrategy=Q};
_.f(ME,Z8);
ME.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c;return _.e(function(C){E=_.y(v,_.h2);if((b=E)==null||!b.panelLoadingStrategy)return C.return();p=Pah(V.controller,(F=Q)==null?void 0:(t=F.form)==null?void 0:t.element);d=(Z=E.contextualSheetPresentationConfig)==null?void 0:Z.position;A=(w=E.contextualSheetPresentationConfig)==null?void 0:w.hoverConfig;T=(k=E.contextualSheetPresentationConfig)==null?void 0:k.expandToFullWidth;c=function(R){return _.e(function(l){if(!R.sheetViewModel)return l.return();if(A){var S=
V.controller;S.shouldPreventClosingWhileHovered=!!A.preventCloseWhileHovered;var a;S.hideDelayMs=(a=A.hideDelayMs)!=null?a:0}return l.yield(V.controller.openSheet({viewModel:R.sheetViewModel,sheetPosition:d,expandToFullWidth:T},p),0)})};
return C.yield(V.panelLoadingStrategy.execute({command:v,data:E.panelLoadingStrategy,renderFn:c,createScreenConfig:{layer:0}}),0)})};
ME[w$]=[_.Iu,f6];var OK=function(v,Q){this.controller=v;this.JSC$17673_commandHandler=Q};
_.f(OK,Z8);OK.prototype.resolveCommand=function(v,Q){var V=this,E,b,F;return _.e(function(t){if(t.nextAddress==1){E=_.y(v,fpS);var p=_.y(E.showCommand,_.Gn),Z,d,w=(d=p==null?void 0:p.panelIdentifier)!=null?d:p==null?void 0:(Z=p.identifier)==null?void 0:Z.tag;if(!w)throw Error("Ci");b=w;return t.yield(V.controller.isVisible(b),2)}return(F=t.yieldResult)?t.yield(V.controller.hidePanel({identifier:b}),0):t.yield(V.JSC$17673_commandHandler.resolveCommand(E.showCommand,Q),0)})};
OK[w$]=[_.$2,_.At];var Dw=function(v,Q,V){this.innertubeTransportService=v;this.controller=Q;this.JSC$17676_screenManager=V};
_.f(Dw,Z8);
Dw.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9;return _.e(function(t3){switch(t3.nextAddress){case 1:return E=V=_.y(v,OJa),b=E.targetPanelIdentifier,F=E.contentSourcePanelIdentifier,t=E.globalConfiguration,((p=b)==null?0:p.tag)&&((Z=F)==null?0:Z.tag)?t?t3.yield(Q.controller.showPanel({identifier:b.tag,panelContents:_.GoT(b.tag,b)}),5):t3.yield((k=(A=Q.controller).getPanel)==null?void 0:k.call(A,F.tag),4):t3.return();case 4:T=t3.yieldResult;d=(c=T)==
null?void 0:(R=(C=c).getPanelContent)==null?void 0:R.call(C);t3.jumpTo(3);break;case 5:return t3.yield(_.xW(Q.innertubeTransportService,v),6);case 6:l=t3.yieldResult,((S=l)==null?0:S.trackingParams)&&Q.JSC$17676_screenManager.graftServerVe(l.trackingParams),d=(a=l)==null?void 0:a.content,w=(g=l)==null?void 0:g.updatePanelContinuationData;case 3:if(r=(u=d)==null?void 0:u.engagementPanelSectionListRenderer)return t3.yield(Q.controller.showPanel({identifier:b.tag,panelUpdatableFields:{content:r.content,
secondaryHeaderContent:(v9=r.header)!=null?v9:{},targetId:r.targetId,loggingDirectives:r.loggingDirectives},updatePanelContinuationData:w}),0);t3.jumpTo(0)}})};
Dw[w$]=[_.wH,_.$2,_.o5];var Rj=function(){};
_.f(Rj,Z8);Rj.prototype.resolveCommand=function(v){var Q,V,E;return _.e(function(b){if(b.nextAddress==1)return(Q=_.y(v,lqZ))?b.yield(_.Eu(),2):b.return();V=b.yieldResult;if(!V)return b.return();var F=V,t=(E=Q)==null?void 0:E.languageCode,p;(F==null?0:(p=F.isReady)==null?0:p.call(F))&&(t=C2t(F,t))&&F.setAudioTrack(t);_.q1(b)})};var n6=function(){};
_.f(n6,EZ);_.K=n6.prototype;_.K.getApiPaths=function(){return YQ8};
_.K.getExtension=function(v){return _.y(v,_.sn)};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$14252_getStoreKey=function(v){if((v=this.getExtension(v))&&v.videoId){var Q={videoId:v.videoId};v.playlistId&&(Q.playlistId=v.playlistId);v.index&&(Q.index=v.index);v.params&&(Q.params=v.params);return _.gi("next",Q)}};
_.K.JSC$14245_getClientScreen=function(v){var Q;return((Q=v.contentPlaybackContext)==null?void 0:Q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.K.JSC$14245_buildRequest=function(v,Q,V){Q.videoId&&(v.videoId=Q.videoId);Q.playlistId&&(v.playlistId=Q.playlistId);Q.params&&(v.params=Q.params);Q.index!==void 0&&(v.playlistIndex=Q.index);v.racyCheckOk=!(!V.racyCheckOk&&!Q.racyCheckOk);v.contentCheckOk=!!Q.contentCheckOk;V.contentPlaybackContext&&(v.autonavState=V.contentPlaybackContext.autonavState,v.playbackContext={vis:V.contentPlaybackContext.vis,lactMilliseconds:V.contentPlaybackContext.lactMilliseconds});V.prefetchPlaybackContext&&(v.context.request||
(v.context.request={}),v.context.request.isPrefetch=!0);_.Y("captions_hats_killswitch")||(Q=_.eP().getFlag(65),Q=Q!=null?!Q:!1,V=!!_.TA("yt-player-sticky-caption"),v.captionsRequested=Q&&V)};
_.K.getRequestConfig=function(v){v=this.JSC$14252_getStoreKey(v);var Q;v&&(Q={storeStrategy:{storeKey:v}});_.Y("web_log_player_watch_next_ticks")&&(Q=Q||{},Q.requestTick="wn_s",Q.responseTick="wn_r");return Q};
var lC=function(){};
_.f(lC,EZ);lC.prototype.getApiPaths=function(){return YQ8};
lC.prototype.getExtension=function(v){return _.y(v,_.RJ)};
lC.prototype.JSC$14245_buildRequest=function(v,Q){Q.token&&(v.continuation=Q.token)};var qE=function(){this.innerTubeTransport=_.ht().resolve(_.wH);this.miniplayerService=_.ht().resolve(_.lJ)};
_.f(qE,Z8);var dNn=function(v){var Q;return _.e(function(V){Q=_.r7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;v.JSC$17701_mainAppPlayer=new d4(Q);document.addEventListener("yt-page-data-updated",v.JSC$17701_pauseOnNavigation.bind(v));_.q1(V)})},hD0=function(v,Q){var V,E,b,F;
return _.e(function(t){if(t.nextAddress==1){V=new n6;E=V.JSC$14245_getRequest(Q);if(!E)return t.return(void 0);b=E.innerTubeRequest;return t.yield(_.tQ(v.innerTubeTransport,b,"/youtubei/v1/next"),2)}F=t.yieldResult;var p;var Z,d,w=(p=F.contents)==null?void 0:(Z=p.twoColumnWatchNextResults)==null?void 0:(d=Z.playlist)==null?void 0:d.playlist,A;p=(w==null?0:(A=w.contents)==null?0:A.length)?w:void 0;return t.return(p)})},w4Y=function(v,Q){var V,E,b,F,t;
return _.e(function(p){if(p.nextAddress==1)return V=v.JSC$17701_mainAppPlayer,p.yield(V.api,2);if(p.nextAddress!=3)return E=p.yieldResult,Q.watchCommand?p.yield(hD0(v,Q.watchCommand),3):p.return();b=p.yieldResult;if((F=b)==null||!F.contents)return p.return();t=b.contents.map(function(Z){var d;return(d=Z.playlistPanelVideoRenderer)==null?void 0:d.videoId}).filter(function(Z){return!!Z}).map(function(Z){return{encrypted_id:Z}});
E.updatePlaylist({video:t});_.q1(p)})},Adq=function(v,Q){var V,E,b;
return _.e(function(F){return F.nextAddress==1?(V=v.JSC$17701_mainAppPlayer,b=(E=Q.playerParams)!=null?E:"",Q.externalVideoId?F.yield(V.loadVideoWithPlayerVars({videoId:Q.externalVideoId,audio_only:"1",player_params:b}),2):F.jumpTo(2)):Q.watchCommand?F.yield(w4Y(v,Q),0):F.jumpTo(0)})};
qE.prototype.JSC$17701_pauseOnNavigation=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return Q=v.JSC$17701_mainAppPlayer,E.yield(Q.api,2);V=E.yieldResult;V.pauseVideo();_.q1(E)})};
qE.prototype.pauseVideo=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return Q=v.JSC$17701_mainAppPlayer,E.yield(Q.api,2);V=E.yieldResult;V.pauseVideo();_.q1(E)})};
qE.prototype.playVideo=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return Q=v.JSC$17701_mainAppPlayer,E.yield(Q.api,2);V=E.yieldResult;V.playVideo();_.q1(E)})};
var kTh=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return Q=v.JSC$17701_mainAppPlayer,E.yield(Q.api,2);V=E.yieldResult;V.mute();_.q1(E)})},TIn=function(v){var Q,V;
return _.e(function(E){if(E.nextAddress==1)return Q=v.JSC$17701_mainAppPlayer,E.yield(Q.api,2);V=E.yieldResult;V.unMute();_.q1(E)})};
qE.prototype.stopVideo=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return Q=v.JSC$17701_mainAppPlayer,E.yield(Q.api,2);V=E.yieldResult;V.stopVideo();_.q1(E)})};
var YYY=function(v,Q){return _.e(function(V){switch(V.nextAddress){case 1:switch(Q){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_STOP":return V.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return V.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return V.jumpTo(6)}V.jumpTo(0);break;case 2:return V.yield(v.playVideo(),8);case 8:V.jumpTo(0);break;case 3:return V.yield(v.pauseVideo(),
9);case 9:V.jumpTo(0);break;case 4:return V.yield(v.stopVideo(),10);case 10:V.jumpTo(0);break;case 5:return V.yield(kTh(v),11);case 11:V.jumpTo(0);break;case 6:return V.yield(TIn(v),12);case 12:V.jumpTo(0)}})};
qE.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p;return _.e(function(Z){return Z.nextAddress==1?(V=_.y(v,bVZ),((E=V)==null?0:E.newPlaybackParams)||((b=V)==null?0:b.controlAction)?Q.JSC$17701_mainAppPlayer?Z.jumpTo(2):Z.yield(dNn(Q),2):Z.return()):((F=V)==null?0:F.newPlaybackParams)?(Q.miniplayerService.isMiniplayerActive()&&((t=Q.miniplayerService.getPlayerElement())==null||t.pause()),p=V.newPlaybackParams,p.externalVideoId||p.externalPlaylistId?Z.yield(Adq(Q,p),0):Z.return()):Z.yield(YYY(Q,
V.controlAction),0)})};var SA=function(v){this.JSC$17707_commandHandler=v};
_.f(SA,Z8);
SA.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return(V=_.y(v,qOZ))?Z.yield(_.Eu(),2):Z.return();E=Z.yieldResult;if(!E)return Z.return();var d=E,w=(b=V)==null?void 0:b.languageCode,A=(F=V)==null?void 0:F.isAutoTranslated;d.getVideoData&&_.Oy9(d).length&&((w=RiZ(d,w,A))?d.setOption("captions","track",w):(d.setOption("captions","stickyLoading",{}),d.setOption("captions","track",{})));t=E.isSubtitlesOn()?_.Lt("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Lt("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");p=_.r8(t,5E3);Q.JSC$17707_commandHandler.resolveCommand(p);_.q1(Z)})};
SA[w$]=[_.At];var zu=function(v,Q){this.shortsPlayerPromise=v;this.JSC$17711_commandHandler=Q};
_.f(zu,Z8);
zu.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1)return(V=_.y(v,vcA))?w.yield(Q.shortsPlayerPromise,2):w.return();E=w.yieldResult;var A=n19(E);A!=null&&A.length||(E.loadModule("captions"),A=n19(E));b=A;if((F=b)==null||!F.length)return t=_.Lt("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),p=_.r8(t),Q.JSC$17711_commandHandler.resolveCommand(p),w.return();E.toggleSubtitles();Z=E.isSubtitlesOn()?_.Lt("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Lt("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.r8(Z);Q.JSC$17711_commandHandler.resolveCommand(d);_.q1(w)})};
zu[w$]=[_.$bN,_.At];var JX=function(v){this.JSC$17714_actionRouter=v;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(Q,V){Q.triggerAction("yt-dismiss-shopping-timely-shelf-action",V)}]])};
_.f(JX,Z8);JX.prototype.resolveCommand=function(v){var Q=this,V,E,b;return _.e(function(F){V=_.y(v,NJS);if((E=V)==null||!E.overlayId)return F.return();b=Q.dismissPlayerOverlayActions.get(V.overlayId);if(!b)throw Error("Di`"+V.overlayId);b(Q.JSC$17714_actionRouter,V);_.q1(F)})};
JX[w$]=[cm];var NE=function(v){this.JSC$17718_playerPromise=v};
_.f(NE,Z8);NE.prototype.resolveCommand=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return(V=_.y(v,yQX))?t.yield(Q.JSC$17718_playerPromise,2):t.return();E=t.yieldResult;b=E.getVideoData().video_id;V.videoId===b&&(F=Number(V.offsetFromVideoStartMilliseconds),F>=0&&E.seekTo(F/1E3));_.q1(t)})};
NE[w$]=[_.m0];var ydh=_.b3("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),x3=function(v){this.store=v};
_.f(x3,Z8);
var cdh=function(v){var Q,V,E,b;return _.e(function(F){if(F.nextAddress==1)return Q=_.r7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,V=_.r7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,E=Q||V,v.JSC$17722_mainAppPlayer=new d4(E),F.yield(v.JSC$17722_mainAppPlayer.api,2);b=F.yieldResult;b.addEventListener("onStateChange",v.JSC$17722_playerStateChangeListener.bind(v));document.addEventListener("yt-page-data-updated",v.JSC$17722_pauseOnNavigation.bind(v));window.addEventListener("state-navigatestart",
v.JSC$17722_pauseOnNavigation.bind(v));_.q1(F)})};
x3.prototype.JSC$17722_playerStateChangeListener=function(v){switch(v){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}fTj(this)};
var fTj=function(v){v.store.dispatch(_.dW("sfvAudioItemCurrentlyPlayingEntity",ydh,{key:ydh,externalVideoId:v.externalVideoId,sfvAudioItemPlaybackState:v.playbackState,nowPlayingEntityValue:v.nowPlayingEntityValue}))};
x3.prototype.JSC$17722_pauseOnNavigation=function(){var v=this,Q,V,E,b;return _.e(function(F){if(F.nextAddress==1){if(!v.JSC$17722_mainAppPlayer){var t=new _.xd("Error: mainAppPlayer is unavailable",v.JSC$17722_mainAppPlayer);_.ro(t);return F.return()}return F.yield(v.JSC$17722_mainAppPlayer.api,2)}Q=F.yieldResult;E=(V=Q)==null?void 0:V.getPlayerState();E!==1||(b=Q)!=null&&b.pauseVideo();_.q1(F)})};
x3.prototype.playVideo=function(v,Q,V){var E=this,b,F;return _.e(function(t){if(t.nextAddress==1)return t.yield((b=E.JSC$17722_mainAppPlayer)==null?void 0:b.api,2);F=t.yieldResult;if(!E.JSC$17722_mainAppPlayer||!F){var p=new _.xd("Error: mainAppPlayer is unavailable",E.JSC$17722_mainAppPlayer);_.ro(p);return t.return()}return t.yield(E.JSC$17722_mainAppPlayer.loadVideoWithPlayerVars({videoId:E.externalVideoId,audio_only:"1",start:v/1E3,end:v/1E3+Q,player_params:V}),0)})};
x3.prototype.pauseVideo=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1){if(!v.JSC$17722_mainAppPlayer){var b=new _.xd("Error: mainAppPlayer is unavailable",v.JSC$17722_mainAppPlayer);_.ro(b);return E.return()}return E.yield(v.JSC$17722_mainAppPlayer.api,2)}Q=E.yieldResult;(V=Q)==null||V.pauseVideo();_.q1(E)})};
x3.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g;return _.e(function(u){if(u.nextAddress==1)return V=_.y(v,HJN),b=(E=V)==null?void 0:E.nowPlayingEntityValue,t=(F=V)==null?void 0:F.externalVideoId,A=Number((w=(p=V)==null?void 0:(Z=p.defaultStartPoints)==null?void 0:(d=Z[0])==null?void 0:d.offsetMs)!=null?w:"0"),l=Number((R=(k=V)==null?void 0:(T=k.defaultStartPoints)==null?void 0:(c=T[0])==null?void 0:(C=c.duration)==null?void 0:C.seconds)!=null?R:"15"),g=(a=
(S=V)==null?void 0:S.playerParams)!=null?a:"",b&&t?Q.JSC$17722_mainAppPlayer?u.jumpTo(2):u.yield(cdh(Q),2):u.return();if(u.nextAddress!=6){if(Q.nowPlayingEntityValue&&b===Q.nowPlayingEntityValue)return Q.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?u.yield(Q.pauseVideo(),0):u.yield(Q.playVideo(A,l,g),0);Q.externalVideoId=t;Q.nowPlayingEntityValue=b;Q.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return u.yield(Q.playVideo(A,l,g),6)}fTj(Q);return u.jumpTo(0)})};
x3[w$]=[UI];var Bd=function(v){this.JSC$17740_commandHandler=v};
_.f(Bd,Z8);Bd.prototype.resolveCommand=function(v,Q){var V=this,E,b,F;return _.e(function(t){if(t.nextAddress==1)return(E=_.y(v,SOa))?t.yield(_.Eu(),2):t.return();b=t.yieldResult;if(!b)return t.return();(F=lkQ(b))&&V.JSC$17740_commandHandler.resolveCommand(F,Q);_.q1(t)})};
Bd[w$]=[_.At];var g1=function(v){this.JSC$17746_commandHandler=v};
_.f(g1,Z8);g1.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return(E=_.y(v,zYS))?Z.yield(_.Eu(),2):Z.return();b=Z.yieldResult;if(!b)return Z.return();(F=NTE(b))?V.JSC$17746_commandHandler.resolveCommand(F,Q):(t=_.Lt("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),p=_.r8(t),V.JSC$17746_commandHandler.resolveCommand(p));_.q1(Z)})};
g1[w$]=[_.At];var sK=function(v){this.JSC$17749_playerPromise=v};
_.f(sK,Z8);sK.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1)return(V=_.y(v,ssN))?b.yield(Q.JSC$17749_playerPromise,2):b.return();E=b.yieldResult;E.isFullscreen()&&E.wakeUpControls();_.q1(b)})};
sK[w$]=[_.m0];var uC=function(v){this.JSC$17752_playerPromise=v};
_.f(uC,Z8);uC.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t;return _.e(function(p){if(p.nextAddress==1){V=_.y(v,cQa);if(!V)return p.return();E=V.overlayRenderer;return E?(b=_.y(E,XIN))?p.yield(Q.JSC$17752_playerPromise,3):p.jumpTo(0):p.return()}F=p.yieldResult;F.renderChapterSeekingAnimation(1,_.j0(b.text),(t=b.icon)==null?void 0:t.iconType);_.q1(p)})};
uC[w$]=[_.m0];var jA=function(v){this.store=v};
_.f(jA,Z8);
jA.prototype.resolveCommand=function(v){var Q=this,V,E,b;return _.e(function(F){if(F.nextAddress==1){V=_.y(v,FU8);if(!V)return F.return();E="";(b=Q.store.getState().collabInviteLink)&&V.id===b.playlistId?E=b.inviteLinkURL:V.shortUrl&&(E=V.shortUrl);return E?F.yield(navigator.clipboard.writeText(E),3):F.jumpTo(0)}var t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Lt("COPY_LINK_SUCCESS_TOAST")}}}}};_.ht().resolve(_.At).resolveCommand(t);_.q1(F)})};
jA[w$]=[QA];var Wd=function(v,Q){this.innertubeTransportService=v;this.JSC$17762_commandHandler=Q};
_.f(Wd,Z8);Wd.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k;return _.e(function(T){if(T.nextAddress==1)return(E=_.y(v,_.tL))?T.yield(_.xW(V.innertubeTransportService,v,(b=Q)==null?void 0:b.form),2):T.return();(F=T.yieldResult)&&F.errorMetadata&&(t=F,p=_.r8(t.error.message),V.JSC$17762_commandHandler.resolveCommand(p));Z=F;if((d=Z)==null?0:d.actions)for(w=_.L(Z.actions),A=w.next();!A.done;A=w.next())k=A.value,V.JSC$17762_commandHandler.resolveCommand(k);_.q1(T)})};
Wd[w$]=[_.wH,_.At];var oj=function(){};
_.f(oj,Z8);oj.prototype.resolveCommand=function(v){var Q;return _.e(function(V){Q=_.y(v,$6a);if(!Q)return V.return();(new yoZ(Q)).show();_.q1(V)})};_.X7=new _.KB("PLAYLIST_EDIT_CONTROLLER_TOKEN");var aj=function(v,Q,V,E){this.store=v;this.innertubeTransportService=Q;this.controller=V;this.JSC$17770_commandHandler=E};
_.f(aj,Z8);
aj.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3,OB,kQ,yo;return _.e(function(xQ){if(xQ.nextAddress==1){E=_.y(v,_.Vd);if(!E)return xQ.return();if(E.clientActions){b=_.L(E.clientActions);for(F=b.next();!F.done;F=b.next())t=F.value,V.JSC$17770_commandHandler.resolveCommand(t,Q);var lb,ep=Q==null?void 0:(lb=Q.form)==null?void 0:lb.element;ep&&_.Hj(ep,"yt-dismissible-item-action",E.clientActions)}return xQ.yield(_.xW(V.innertubeTransportService,v,(p=
Q)==null?void 0:p.form),2)}if(Z=xQ.yieldResult)Z.errorMetadata?(d=Z,w=_.r8(d.error.message),V.JSC$17770_commandHandler.resolveCommand(w),"error"in Z&&((A=Q)==null?0:(k=A.commandController)==null?0:k.onServerError)&&((T=Q)==null||(c=T.commandController)==null||c.onServerError(v,Z))):(C=Q)==null||(R=C.commandController)==null||(S=(l=R).onSuccess)==null||S.call(l,v,Z);a=Z;((g=a)==null?0:g.collaborationInviteLink)&&E.playlistId&&(_.Y("web_enable_invite_collaborators_link")||_.Y("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
V.store.dispatch(_.U2({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:E.playlistId,inviteLinkUrl:a.collaborationInviteLink}}));((u=a)==null?0:u.redirectEndpoint)&&V.JSC$17770_commandHandler.resolveCommand(a.redirectEndpoint);((r=a)==null?0:(v9=r.newHeader)==null?0:v9.playlistHeaderRenderer)?GTI(V.controller,a.newHeader.playlistHeaderRenderer):((t3=a)==null?0:(h3=t3.newHeader)==null?0:h3.musicEditablePlaylistDetailHeaderRenderer)&&GTI(V.controller,a.newHeader.musicEditablePlaylistDetailHeaderRenderer);
V.controller.playlistVideoListElement&&((OB=a)==null?0:(kQ=OB.playlistEditResults)==null?0:(yo=kQ[0])==null?0:yo.playlistEditVideoAddedResultData)&&((ep=V.controller.playlistVideoListElement)==null||ep.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:a.playlistEditResults[0].playlistEditVideoAddedResultData})));_.q1(xQ)})};
aj[w$]=[_.Uj,_.wH,_.X7,_.At];var r1=function(v,Q){this.controller=v;this.JSC$17780_commandHandler=Q};
_.f(r1,Z8);r1.prototype.resolveCommand=function(v,Q){var V=this,E,b,F;return _.e(function(t){E=_.y(v,KUN);V.controller.showRefreshPill&&((b=E)==null?0:b.command)&&(V.JSC$17780_commandHandler.resolveCommand((F=E)==null?void 0:F.command,Q),V.controller.showRefreshPill=!1);_.q1(t)})};
r1[w$]=[_.Jb,_.At];var $3=function(v,Q){this.store=v;this.JSC$17784_commandHandler=Q||_.bd.instance};
_.f($3,Z8);$3.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k;return _.e(function(T){E=_.y(v,YkA);b=V.store.getState().radioButtonGroup;if((F=E)==null?0:F.command)V.JSC$17784_commandHandler.resolveCommand((t=E)==null?void 0:t.command,Q);else if(b&&((p=E)==null?void 0:p.formId)===b.currentFormId)for(Z=Object.values(b.commandsMap),d=_.L(Z),w=d.next();!w.done;w=d.next())A=w.value,(k=_.MQ(A))&&V.JSC$17784_commandHandler.resolveCommand(k,Q);_.q1(T)})};
$3[w$]=[_.Uj];var Ij=new _.KB("USER_PREFS");var Hd=function(v){this.JSC$17789_prefCookie=v};
_.f(Hd,Z8);Hd.prototype.resolveCommand=function(v){var Q=this,V;return _.e(function(E){(V=_.y(v,s4Z))&&typeof V.useListView==="boolean"&&(_.ZG(0,155,V.useListView),Q.JSC$17789_prefCookie.save());_.q1(E)})};
Hd[w$]=[Ij];var mn=function(v){this.JSC$17793_prefCookie=v};
_.f(mn,Z8);mn.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t;return _.e(function(p){V=_.y(v,HYx);if((E=V)==null||!E.gl)return p.return();b=V.gl;F={persist_gl:"1",gl:b};Q.JSC$17793_prefCookie.set("gl",b);Q.JSC$17793_prefCookie.save();t=dzS(F);_.nF(t);_.q1(p)})};
mn[w$]=[Ij];var UK=function(v){this.JSC$17797_prefCookie=v};
_.f(UK,Z8);UK.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){V=_.y(v,LUV);if(!V)return b.return();E=!1;V.flagNum&&typeof V.value==="boolean"?(_.ZG(0,V.flagNum,V.value),E=!0):V.key&&typeof V.stringValue==="string"&&(Q.JSC$17797_prefCookie.set(V.key,V.stringValue),E=!0);E&&Q.JSC$17797_prefCookie.save();_.q1(b)})};
UK[w$]=[Ij];var v$=new _.KB("PREF_STORAGE_PROMISE_TOKEN");var QW=function(v){this.JSC$17801_prefStoragePromise=v};
_.f(QW,Z8);QW.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1)return(V=_.y(v,pWQ))?b.yield(Q.JSC$17801_prefStoragePromise,2):b.return();E=b.yieldResult;return E===void 0||V.key===void 0||V.value===void 0?b.return():b.yield(E.set(V.key,V.value),0)})};
QW[w$]=[v$];var VW=function(v){this.innertubeTransportService=v};
_.f(VW,Z8);VW.prototype.resolveCommand=function(v,Q){var V=this,E,b;return _.e(function(F){(E=_.y(v,_.TKR))&&E&&E.isFirstRequest&&(_.Ct("search_overview_answer"),_.Mp("so_rq",void 0,"search_overview_answer"));return F.yield(_.xW(V.innertubeTransportService,v,(b=Q)==null?void 0:b.form),0)})};
VW[w$]=[_.wH];var Caq=function(){};
_.f(Caq,Z8);
Caq.prototype.resolveCommand=function(v){var Q,V,E,b,F,t,p,Z,d;return _.e(function(w){Q=_.y(v,YjN);if((V=Q)==null?0:V.sectionIdentifier){if(Q.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(b=(E=document.getElementsByTagName(Q.sectionIdentifier))==null?void 0:E.item(0))b.scrollIntoView({behavior:"smooth"}),(F=tMr(b))&&F.focus({preventScroll:!0});return w.return()}t=document.querySelector("[section-identifier="+Q.sectionIdentifier+"]");p=document.querySelector("[section-identifier="+Q.referenceSectionIdentifier+
"]");if(!t)return w.return();Z=Q.verticalScrollOffsetDp?Q.verticalScrollOffsetDp:0;p&&(Z-=p.offsetTop);window.scrollTo({top:t.offsetTop+Z,behavior:"smooth"});(d=tMr(t))&&d.focus({preventScroll:!0})}_.q1(w)})};var Et=function(v){this.JSC$17813_commandHandler=v};
_.f(Et,Z8);
Et.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z;return _.e(function(d){if(d.nextAddress==1){V=_.y(v,jKX);if(!V||!V.imageBytes||!navigator.clipboard)return d.return();if(V.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.ro(Error("Fi")),d.return();_.GC(d,2);b=(E=V)==null?void 0:E.imageBytes;F=b.replace(/-/g,"+").replace(/_/g,"/");t=AAS(F);p={};Z=[new ClipboardItem((p[t.type]=t,p))];return d.yield(navigator.clipboard.write(Z),4)}if(d.nextAddress!=2)return V.successCommand&&
Q.JSC$17813_commandHandler.resolveCommand(V.successCommand),_.FT(d,0);_.n$(d);V.errorCommand&&Q.JSC$17813_commandHandler.resolveCommand(V.errorCommand);_.q1(d)})};
Et[w$]=[_.At];var b$=function(v,Q){this.innertubeTransportService=v;this.JSC$17817_commandHandler=Q};
_.f(b$,Z8);b$.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return(E=_.y(v,Wra))?Z.yield(_.xW(V.innertubeTransportService,v,(b=Q)==null?void 0:b.form),2):Z.return();(F=Z.yieldResult)&&F.errorMetadata&&E.onFailureCommand&&V.JSC$17817_commandHandler.resolveCommand(E.onFailureCommand);t=F;((p=t)==null?0:p.shareCommand)&&V.JSC$17817_commandHandler.resolveCommand(t.shareCommand,Q);_.q1(Z)})};
b$[w$]=[_.wH,_.At];var Fh=function(){};
_.f(Fh,Z8);Fh.prototype.resolveCommand=function(v){var Q,V;return _.e(function(E){Q=_.y(v,Emx);if(!Q||!navigator.share)return E.return();V={url:Q.url};try{return E.return(navigator.share(V))}catch(b){}_.q1(E)})};var Kk=function(){};
_.f(Kk,Z8);Kk.prototype.resolveCommand=function(){return _.e(function(v){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.q1(v)})};var i$=function(v){this.JSC$17827_navigationConfirmationService=v};
_.f(i$,Z8);i$.prototype.resolveCommand=function(){var v=this;return _.e(function(Q){v.JSC$17827_navigationConfirmationService.cancelPendingNavigation();_.q1(Q)})};
i$[w$]=[sr];var Lk=function(v){this.JSC$17830_screenManager=v};
_.f(Lk,Z8);Lk.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d;return _.e(function(w){b=(E=Q.form)==null?void 0:E.event;t=(F=Q.form)==null?void 0:F.element;if(!b)throw new _.xd("Event not passed in when resolving command");p=_.L(b.composedPath());for(Z=p.next();!Z.done;Z=p.next())if(d=Z.value,d.tagName==="YT-COPY-LINK-RENDERER")return d.copyUrlToClipboard(),t&&_.zr(V.JSC$17830_screenManager,t),w.return();_.q1(w)})};
Lk[w$]=[_.o5];var tW=function(){this.JSC$17834_miniAppClientDataProvider=_.ht().resolve(_.kA)};
_.f(tW,Z8);tW.prototype.resolveCommand=function(){var v=this,Q,V;return _.e(function(E){if(v.JSC$17834_miniAppClientDataProvider.clientData.has("video_id")){var b=v.JSC$17834_miniAppClientDataProvider,F=b.clientData.get("video_id");F&&b.clientData.delete("video_id");Q="https://youtube.com/watch?v="+F;V=_.s9(Q);if(V===void 0)throw Error("Gi`"+Q);_.VN(window,V)}_.q1(E)})};var pk=function(){};
_.f(pk,Z8);pk.prototype.resolveCommand=function(){return _.e(function(v){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.q1(v)})};var ee=function(){};
_.f(ee,Z8);ee.prototype.resolveCommand=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.mnr(window.document.documentElement),2);(v=document.querySelector("mini-app-container-view-model iframe"))&&v.focus();_.q1(Q)})};var ZK=function(v){this.JSC$17841_navigationConfirmationService=v};
_.f(ZK,Z8);
ZK.prototype.resolveCommand=function(){var v=this;return _.e(function(Q){var V=v.JSC$17841_navigationConfirmationService,E=_.ht().resolve(_.Ns),b;if(((b=V.navigateParams)==null?void 0:b.data)!==void 0){var F;_.l$p(E,V.navigateParams.endpoint,V.navigateParams.data,(F=V.navigateParams.navigationType)!=null?F:1,V.navigateParams.tempData,V.navigateParams.isMiniplayer,void 0,!0);V.navigateParams=void 0;V.customConfirmationCommand=void 0}else V.navigateParams&&(E.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);_.q1(Q)})};
ZK[w$]=[sr];var P$=function(){};
_.f(P$,Z8);P$.prototype.resolveCommand=function(){return _.e(function(v){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.q1(v)})};var dP=function(v){this.JSC$17846_prefStorage=v};
_.f(dP,Z8);dP.prototype.resolveCommand=function(){var v=this,Q,V;return _.e(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$17846_prefStorage,2);case 2:return(Q=E.yieldResult)?E.yield(Q.set("sfvle",!1),3):E.return();case 3:return E.yield(Q.set("sfvles",!0),4);case 4:V=_.eP(),_.ZG(0,203,!1),_.ZG(0,204,!0),V.save(),_.q1(E)}})};
dP[w$]=[v$];var hW=function(v){this.JSC$17849_prefStorage=v};
_.f(hW,Z8);hW.prototype.resolveCommand=function(){var v=this,Q,V;return _.e(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$17849_prefStorage,2);case 2:return(Q=E.yieldResult)?E.yield(Q.set("sfvle",!0),3):E.return();case 3:return E.yield(Q.set("sfvles",!0),4);case 4:V=_.eP(),_.ZG(0,203,!0),_.ZG(0,204,!0),V.save(),_.q1(E)}})};
hW[w$]=[v$];_.MSm=new _.KB("SNACKBAR_CONTROLLER_TOKEN");_.OwY=new _.KB("SHOULD_SHOW_PIVOT_BAR_TOKEN");var wP=function(v){this.controller=v};
_.f(wP,Z8);wP.prototype.resolveCommand=function(v){var Q=this,V;return _.e(function(E){V=_.y(v,E2p);if(!V)return E.return();var b=Q.controller;b.closeSnackbarFn&&b.closeSnackbarFn();_.q1(E)})};
wP[w$]=[_.MSm];var AW=function(v,Q){this.controller=v;this.JSC$17856_sheetController=Q};
_.f(AW,Z8);AW.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z;return _.e(function(d){E=_.y(v,FOZ);if(!E)return d.return();t=Pah(V.JSC$17856_sheetController,(b=Q)==null?void 0:(F=b.form)==null?void 0:F.element);p=_.y(E.content,c$Z);if(!p)return d.return();var w=V.controller,A=p,k=(Z=E.animationStyle)!=null?Z:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(w.showSnackbarFn)w.showSnackbarFn({snackbarViewModel:A,animationStyle:k,durationMs:E.durationSeconds*1E3,target:t});else throw Error("zj");_.q1(d)})};
AW[w$]=[_.MSm,_.Iu];var ks=function(){};
_.f(ks,Z8);ks.prototype.resolveCommand=function(v){var Q;return _.e(function(V){Q=_.y(v,tXp);if(!Q||typeof Q.key!=="string"||typeof Q.value!=="string")return V.return();window.localStorage.setItem(Q.key,Q.value);_.q1(V)})};var TW=function(v){this.store=v};
_.f(TW,Z8);TW.prototype.resolveCommand=function(v){var Q=this,V;return _.e(function(E){V=_.y(v,wfQ);if(!V||!V.stepId||!V.token)return E.return();Q.store.dispatch(mbQ({stepId:V.stepId,token:V.token,isSelected:!1}));_.q1(E)})};
TW[w$]=[QA];var Ys=function(v,Q,V){this.innertubeTransportService=v;this.store=Q;this.JSC$17868_screenManager=V};
_.f(Ys,Z8);
Ys.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3;return _.e(function(OB){V=_.y(v,E5p);if(!V||(E=V.stepIds)==null||!E.length)return OB.return();b=Q.store.getState().talkToRecs;F=[];t=[];p=_.L(V.stepIds);for(Z=p.next();!Z.done;Z=p.next())for(d=Z.value,w=void 0,(A=(w=b.stepStates[d])==null?void 0:w.userQuery)&&t.push({userQuery:V.submitEmptyUserQuery?"":A.userQuery,userQueryToken:A.token}),T=k=void 0,c=(T=(k=b.stepStates[d])==null?void 0:k.selectionStates)!=
null?T:{},C=_.L(Object.entries(c)),R=C.next();!R.done;R=C.next())l=R.value,S=_.L(l),a=S.next().value,g=S.next().value,u=a,r=g,r.isSelected&&F.push(u);v9={selectedChipTokens:F,userQueries:t,submittedStepIds:V.stepIds};t3={browseTalk2recsFormData:v9};V.browseEndpoint?(h3=v,_.yK(h3,_.tn,V.browseEndpoint)):V.command&&(h3=V.command);return h3?OB.yield(_.xW(Q.innertubeTransportService,h3,{formData:t3,disableCache:!0}).then(function(kQ){(kQ==null?0:kQ.trackingParams)&&Q.JSC$17868_screenManager.graftServerVe(kQ==
null?void 0:kQ.trackingParams)}),0):OB.return()})};
Ys[w$]=[_.wH,QA,_.o5];var yW=function(v){this.store=v};
_.f(yW,Z8);
yW.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d;return _.e(function(w){V=_.y(v,hZG);if(!V||!V.stepId||!V.token)return w.return();V.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(t=(F=(E=Q.store.getState().talkToRecs.stepStates[V.stepId])==null?void 0:(b=E.userQuery)==null?void 0:b.userQuery)!=null?F:"",p=t.length>0?". ":"",Z=t+p+V.selectedText,Q.store.dispatch(UbA({stepId:V.stepId,userQueryToken:V.token,userQuery:Z}))):V.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY"?Q.store.dispatch(UbA({stepId:V.stepId,
userQueryToken:V.token,userQuery:(d=V.selectedText)!=null?d:""})):Q.store.dispatch(mbQ({stepId:V.stepId,token:V.token,isSelected:!0}));_.q1(w)})};
yW[w$]=[QA];var c$=function(v){this.store=v};
_.f(c$,Z8);c$.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p;return _.e(function(Z){E=_.y(v,otE);if(!E||!E.stepId||!E.userQueryToken)return Z.return();p=(t=(b=Q)==null?void 0:(F=b.form)==null?void 0:F.userQuery)!=null?t:"";V.store.dispatch(UbA({stepId:E.stepId,userQueryToken:E.userQueryToken,userQuery:p}));_.q1(Z)})};
c$[w$]=[QA];_.DN0=new _.KB("TIMELY_ACTIONS_CONTROLLER_TOKEN");var fk=function(v){this.controller=v};
_.f(fk,Z8);fk.prototype.resolveCommand=function(v){var Q=this,V,E,b,F;return _.e(function(t){V=_.y(v,AQS);if(!V)return t.return();E=V;b=E.id;F=E.isVisible;if(b===void 0||F===void 0)return t.return();var p;(p=Q.controller.timelyActionsMap.get(b))==null||p(b,F);_.q1(t)})};
fk[w$]=[_.DN0];var RD5=function(){this.timelyActionsMap=new Map};var GW=function(v){this.JSC$17894_commandHandler=v};
_.f(GW,Z8);GW.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t;return _.e(function(p){V=_.y(v,_.OBQ);if(!V)return p.return();F=(E=V.item)==null?void 0:(b=E.notificationTextRenderer)==null?void 0:b.successResponseText;if(!F)return p.return();t=_.aF(F);Q.JSC$17894_commandHandler.resolveCommand(t);_.q1(p)})};
GW[w$]=[_.At];var Ck=function(v,Q){this.innertubeTransportService=v;this.JSC$17899_playerApiPromise=Q};
_.f(Ck,Z8);
Ck.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w;return _.e(function(A){if(A.nextAddress==1)return A.yield(Q.JSC$17899_playerApiPromise,2);V=A.yieldResult;E=V.getOption("captions","track");b=Object.assign({},_.y(v,_.lbA));(t=(F=V.getVideoData())==null?void 0:F.video_id)?b.externalVideoId=t:_.V9(Error("Hi"));if((p=E)==null?0:p.languageCode)b.languageCode=E.languageCode;if((Z=E)==null?0:Z.kind)b.kind=E.kind;if((d=E)==null?0:d.name)b.name=E.name;w=Object.assign({},v,{getTranscriptEndpoint:b});return A.yield(_.xW(Q.innertubeTransportService,
w),0)})};
Ck[w$]=[_.wH,_.m0];var Ma=function(){};
_.f(Ma,Z8);Ma.prototype.resolveCommand=function(v){var Q,V,E,b,F,t,p,Z;return _.e(function(d){Q=_.y(v,TmV);if((V=Q)==null||!V.paramKeyValuePairs)return d.return();E=window.location.href;b=_.L(Q.paramKeyValuePairs);for(F=b.next();!F.done;F=b.next())t=F.value,t.key&&t.value&&(p={},E=_.iv(E,(p[t.key]=t.value,p)));Z=_.ht().resolve(_.ND);_.J9(Z,E);_.q1(d)})};_.Ot=new _.KB("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var DK=function(v,Q,V,E){this.controller=v;this.JSC$17906_playerApiPromise=Q;this.innertubeTransportService=V;this.JSC$17906_commandHandler=E};
_.f(DK,Z8);
DK.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a;return _.e(function(g){if(g.nextAddress==1){V=_.y(v,uWV);if((E=V)==null||!E.watchEndpoint)return g.return();b=new n6;F=b.JSC$14245_getRequest(V.watchEndpoint);if(!F)return g.return();t=V.watchEndpoint.clickTrackingParams;return g.yield(_.tQ(Q.innertubeTransportService,F.innerTubeRequest,F.input,t,F.config),2)}if(g.nextAddress!=3)return p=g.yieldResult,g.yield(Q.JSC$17906_playerApiPromise,3);Z=g.yieldResult;Z.updateVideoData({raw_watch_next_response:p});
if(c=(d=p)==null?void 0:(w=d.contents)==null?void 0:(A=w.twoColumnWatchNextResults)==null?void 0:(k=A.results)==null?void 0:(T=k.results)==null?void 0:T.contents)R=(C=c.find(function(u){return u.videoPrimaryInfoRenderer}))==null?void 0:C.videoPrimaryInfoRenderer,((l=R)==null?0:l.subtitle)&&n4j(Q.controller,R.subtitle);
(a=(S=p)==null?void 0:S.onUiReady)&&Q.JSC$17906_commandHandler.resolveCommand(a);_.q1(g)})};
DK[w$]=[_.Ot,_.m0,_.wH,_.At];var lT5=function(){this.subtitleChangeCallbackMap=new Map},n4j=function(v,Q){v=_.L(v.subtitleChangeCallbackMap.values());
for(var V=v.next();!V.done;V=v.next())V=V.value,V(Q)};var R3=function(v,Q){this.JSC$17916_commandHandler=v;this.innertubeTransportService=Q};
_.f(R3,Z8);
R3.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a;return _.e(function(g){switch(g.nextAddress){case 1:return(F=(E=Q)==null?void 0:(b=E.form)==null?void 0:b.element)&&_.qM(F),t=_.eP().get("hl"),p="",_.GC(g,2),g.yield(siG(t),4);case 4:p=g.yieldResult;_.FT(g,3);break;case 2:return _.n$(g),F&&_.Si(F),_.ro(Error("Ji"),"ERROR"),g.return();case 3:Z=_.y(v,vOa);if(!Z)return F&&_.Si(F),g.return();(A=(d=Z.commerceActionConfig)==null?void 0:(w=d.commandLifeCycleConfig)==null?
void 0:w.onStartCommand)&&V.JSC$17916_commandHandler.resolveCommand(A);return g.yield(_.xW(V.innertubeTransportService,v,{client_data:{paymentsClientToken:{token:p}}}),5);case 5:(k=g.yieldResult)?(F&&_.Si(F),((R=k)==null?0:R.command)&&V.JSC$17916_commandHandler.resolveCommand(k.command),(a=(l=Z.commerceActionConfig)==null?void 0:(S=l.commandLifeCycleConfig)==null?void 0:S.onSuccessCommand)&&V.JSC$17916_commandHandler.resolveCommand(a)):(F&&_.Si(F),_.ro(Error("Ki")),(C=(T=Z.commerceActionConfig)==
null?void 0:(c=T.commandLifeCycleConfig)==null?void 0:c.onFailureCommand)&&V.JSC$17916_commandHandler.resolveCommand(C)),_.q1(g)}})};
R3[w$]=[_.At,_.wH];var nk=function(v,Q,V){this.store=v;this.JSC$17932_commandHandler=Q;this.innertubeTransportService=V};
_.f(nk,Z8);
nk.prototype.resolveCommand=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A;return _.e(function(k){E=_.y(v,QVa);b=E.googlePaymentPayload;E.onStartCommand&&V.JSC$17932_commandHandler.resolveCommand(E.onStartCommand);F=b.encryptedPurchaseParams;t=b.ypcLogWalletAnalyticDataEndpoint;p=E.serializedTransactionFlowLoggingParams;Z=b.serializedPaymentsClientParams;d=E.ypcCujContext;A=W13(V.innertubeTransportService,(w=Q)==null?void 0:w.form,F,t,p,Z,d);return k.return(A.then(function(T){uN0(Q==null?void 0:Q.form,
!1);var c=V.store,C=V.JSC$17932_commandHandler,R=T.integratorData;R==null||R===""||T.error!=null?(String(T.error)==="-1"&&E.onDismissCommand?C.resolveCommand(E.onDismissCommand):String(T.error)!=="-1"&&E.onFailureCommand&&C.resolveCommand(E.onFailureCommand),String(T.error)!=="-1"&&String(T.error)!=="132"&&_.ro(Error("Li"),"ERROR")):(E.googlePaymentEntityKey&&c.dispatch(_.dW("commerceAcquisitionClientPayloadEntity",E.googlePaymentEntityKey,{key:E.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:R,
fundsGuaranteeCallbackClientData:T.integratorClientCallbackData}}})),E.onSuccessCommand&&C.resolveCommand(E.onSuccessCommand));_.Vk()},function(T){uN0(Q==null?void 0:Q.form,!1);
_.ro(T,"ERROR");E.onFailureCommand&&V.JSC$17932_commandHandler.resolveCommand(E.onFailureCommand)}))})};
nk[w$]=[UI,_.At,_.wH];var l$=function(v,Q){this.JSC$17936_commandHandler=v;this.purchaseManager=Q};
_.f(l$,Z8);
l$.prototype.resolveCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w;return _.e(function(A){V=_.y(v,VsN);((E=V)==null?0:(b=E.commandLifeCycleConfig)==null?0:b.onStartCommand)&&Q.JSC$17936_commandHandler.resolveCommand(V.commandLifeCycleConfig.onStartCommand);if(!((F=V)==null?0:(t=F.googlePaymentPurchaseManagerPayload)==null?0:t.securePayloadBytes))return _.ro(Error("Mi"),"ERROR"),A.return();p=WdS(_.H9(V.googlePaymentPurchaseManagerPayload.securePayloadBytes));Z=_.eP().get("hl");d=_.B_();wc8(p.serialize(),
Z,function(k){d.resolve(k)},function(k){d.reject(k)},d.resolve);
w=d.promise;return A.return(w.then(function(k){if(k)if(k==null?0:k.errorCode){_.ro(Error("Ni`"+k.errorCode),"ERROR");var T,c;((T=V)==null?0:(c=T.commandLifeCycleConfig)==null?0:c.onFailureCommand)&&Q.JSC$17936_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}else if(k==null?0:k.isCancelled){var C,R;((C=V)==null?0:(R=C.commandLifeCycleConfig)==null?0:R.onCancelCommand)&&Q.JSC$17936_commandHandler.resolveCommand(V.commandLifeCycleConfig.onCancelCommand)}else{var l,S;((l=V)==
null?0:(S=l.commandLifeCycleConfig)==null?0:S.onSuccessCommand)&&Q.JSC$17936_commandHandler.resolveCommand(V.commandLifeCycleConfig.onSuccessCommand)}},function(k){_.ro(k,"ERROR");
var T,c;((T=V)==null?0:(c=T.commandLifeCycleConfig)==null?0:c.onFailureCommand)&&Q.JSC$17936_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}))})};
l$[w$]=[_.At,ATs];var qYI=function(v,Q){this.JSC$17944_commandHandler=v;this.commandAllowlistOverride=Q;var V;this.commandAllowlist=(V=this.commandAllowlistOverride)!=null?V:MFb};
qYI.prototype.handleResponse=function(v,Q,V){var E,b=Q==null?void 0:(E=Q.config)==null?void 0:E.command;if(!b||this.commandAllowlist.some(function(F){return!!_.y(b,F)})){Q=void 0;
V!==void 0&&(Q={form:{element:V}});v.onResponseReceivedCommand&&this.JSC$17944_commandHandler.resolveCommand(v.onResponseReceivedCommand,Q);v.onResponseReceivedAction&&this.JSC$17944_commandHandler.resolveCommand(v.onResponseReceivedAction,Q);v.onResponseReceivedEndpoint&&this.JSC$17944_commandHandler.resolveCommand(v.onResponseReceivedEndpoint,Q);v.command&&this.JSC$17944_commandHandler.resolveCommand(v.command,Q);if(v.onResponseReceivedCommands)for(V=_.L(v.onResponseReceivedCommands),E=V.next();!E.done;E=
V.next())this.JSC$17944_commandHandler.resolveCommand(E.value,Q);if(v.onResponseReceivedActions)for(V=_.L(v.onResponseReceivedActions),E=V.next();!E.done;E=V.next())this.JSC$17944_commandHandler.resolveCommand(E.value,Q);if(v.onResponseReceivedEndpoints)for(V=_.L(v.onResponseReceivedEndpoints),E=V.next();!E.done;E=V.next())this.JSC$17944_commandHandler.resolveCommand(E.value,Q);if(v.actions)for(v=_.L(v.actions),V=v.next();!V.done;V=v.next())this.JSC$17944_commandHandler.resolveCommand(V.value,Q)}};
qYI[w$]=[_.At,_.d$(Cr0)];var SYd=new _.KB("INNERTUBE_TOKEN_SERVICE");var zDs=new _.KB("SCHEDULER_TOKEN");var Jdh=function(v){this.scheduler=v;v={};this.tokenMap=(v.app={},v.user={},v)};
Jdh.prototype.handleResponse=function(v,Q){if(!Q)throw Error("Oi");var V;if(v=(V=v.responseContext)==null?void 0:V.innertubeTokenJar){if(v.appTokens){var E,b,F;V=(E=Q.innerTubeRequest.context)==null?void 0:(b=E.request)==null?void 0:(F=b.innertubeTokenJar)==null?void 0:F.appTokens;NI5(this,v.appTokens,this.tokenMap.app,V)}if(v.userTokens){var t,p,Z;Q=(t=Q.innerTubeRequest.context)==null?void 0:(p=t.request)==null?void 0:(Z=p.innertubeTokenJar)==null?void 0:Z.userTokens;NI5(this,v.userTokens,this.tokenMap.user,
Q)}}};
Jdh.prototype.processContext=function(v){v.request||(v.request={});var Q=Object.keys(this.tokenMap.app).length,V=Object.keys(this.tokenMap.user).length;if(Q||V)v.request.innertubeTokenJar={},Q&&(v.request.innertubeTokenJar.appTokens=[].concat(_.ui(Object.values(this.tokenMap.app).flat()))),V&&(v.request.innertubeTokenJar.userTokens=[].concat(_.ui(Object.values(this.tokenMap.user).flat())))};
var NI5=function(v,Q,V,E){Q=_.L(Q);for(var b=Q.next(),F={};!b.done;F={token$jscomp$139:void 0},b=Q.next()){F.token$jscomp$139=b.value;if(F.token$jscomp$139.type===void 0)throw new _.xd("InnerTube token has no type",F.token$jscomp$139);if(F.token$jscomp$139.clearTokens)V[F.token$jscomp$139.type]=[];else if(F.token$jscomp$139.value!==void 0){V[F.token$jscomp$139.type]||(V[F.token$jscomp$139.type]=[]);if(E!==void 0&&E.length){b=_.L(E);for(var t=b.next(),p={};!t.done;p={requestToken:void 0},t=b.next())p.requestToken=
t.value,t=V[F.token$jscomp$139.type].findIndex(function(Z){return function(d){return d===Z.requestToken||(0,_.gI.equals)(d,Z.requestToken)}}(p)),t>-1&&V[F.token$jscomp$139.type].splice(t,1)}V[F.token$jscomp$139.type].push(F.token$jscomp$139);
F.token$jscomp$139.maxAgeSeconds&&Number(F.token$jscomp$139.maxAgeSeconds)>0&&v.scheduler.addLowPriorityJob(function(Z){return function(){var d=V[Z.token$jscomp$139.type].indexOf(Z.token$jscomp$139);d>-1&&V[Z.token$jscomp$139.type].splice(d,1)}}(F),Number(F.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.xd("InnerTube token has no value",F.token$jscomp$139);
}};
Jdh[w$]=[zDs];var xNj=new _.KB("LOCAL_INNERTUBE_ROUTER_TOKEN"),BI5=new _.KB("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var qa=function(v){this.serviceMap=v};
qa.prototype.shouldPreferLocalResponse=function(v,Q){return(v=g45(this,v))?v.shouldPreferLocalResponse(Q):!1};
qa.prototype.localInnertubeResponse=function(v,Q){var V=this,E;return _.e(function(b){return(E=g45(V,v))?b.return(E.localInnertubeResponse(Q)):b.return(Promise.reject(Error("Pi")))})};
qa.prototype.canProvideFallbackResponse=function(v,Q){return(v=g45(this,v))?v.canProvideFallbackResponse(Q):!1};
qa.prototype.localFallbackInnertubeResponse=function(v,Q){var V=this,E;return _.e(function(b){return(E=g45(V,v))?b.return(E.localFallbackInnertubeResponse(Q)):b.return(Promise.reject(Error("Pi")))})};
var g45=function(v,Q){Q=_.OG(Q);return Q?(v=v.serviceMap[Q])?v:null:null};
qa[w$]=[BI5];var w3=function(){};
w3.prototype.shouldPreferLocalResponse=function(){return!1};
w3.prototype.localInnertubeResponse=function(){return _.e(function(v){return v.return(Promise.reject(Error("Qi")))})};
w3.prototype.canProvideFallbackResponse=function(){return!0};
w3.prototype.localFallbackInnertubeResponse=function(){var v,Q,V;return _.e(function(E){v=iA("CLOSE_POPUP");Q={openPopupAction:XTQ()};V={actions:[v,Q]};return E.return(V)})};var KDt=function(v,Q){this.JSC$17993_upliftPromise=v;this.store=Q};
_.K=KDt.prototype;_.K.shouldPreferLocalResponse=function(v){var Q=v.videoId,V;if(V=Q)V=XO0(this.store.getState().entities,v.videoId);return V&&apb(this.store.getState().entities,Q)?rA0(this.store.getState().entities,v.playlistId):!1};
_.K.localInnertubeResponse=function(v){var Q=this,V;return _.e(function(E){return(V=Q.getPlayerResponse(v))?E.return(Promise.resolve(V)):E.return(Promise.reject(Error("Ri")))})};
_.K.canProvideFallbackResponse=function(v){return!!v.videoId};
_.K.localFallbackInnertubeResponse=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.JSC$17993_upliftPromise,2);V=Q.getPlayerResponse(v);var b;V?b=E.return(Promise.resolve(V)):b=A4(Q.store.getState().entities,v.videoId)?E.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.I$(_.Lt("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:HmS()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
E.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.I$(_.Lt("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:I_B()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return b})};
_.K.getPlayerResponse=function(v){return TxE(this.store.getState().entities,v.videoId)};var h_=function(v,Q){this.localPlayerService=v;this.localWatchNextService=Q};
h_.prototype.shouldPreferLocalResponse=function(v){var Q=v.playerRequest;v=v.watchNextRequest;return!!(Q&&this.localPlayerService.shouldPreferLocalResponse(Q)&&v&&this.localWatchNextService.shouldPreferLocalResponse(v))};
h_.prototype.localInnertubeResponse=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1){V=v.playerRequest;E=v.watchNextRequest;if(!V||!E)throw new _.xd("Missing streaming request",v);return t.yield(Q.localPlayerService.localInnertubeResponse(V),2)}if(t.nextAddress!=3)return b=t.yieldResult,t.yield(Q.localWatchNextService.localInnertubeResponse(E),3);F=t.yieldResult;return t.return({playerResponse:b,watchNextResponse:F})})};
h_.prototype.canProvideFallbackResponse=function(v){var Q=v.playerRequest;v=v.watchNextRequest;return!!(Q&&this.localPlayerService.canProvideFallbackResponse(Q)&&v&&this.localWatchNextService.canProvideFallbackResponse(v))};
h_.prototype.localFallbackInnertubeResponse=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return V=v.playerRequest,E=v.watchNextRequest,V&&E?t.yield(Q.localPlayerService.localFallbackInnertubeResponse(V),2):t.return(Promise.reject(new _.xd("Missing streaming request",v)));if(t.nextAddress!=3)return b=t.yieldResult,t.yield(Q.localWatchNextService.localFallbackInnertubeResponse(E),3);F=t.yieldResult;return t.return({playerResponse:b,watchNextResponse:F})})};var Zo=function(v){this.JSC$18003_persistentStorePromiseAccessor=v};
Zo.prototype.shouldPreferLocalResponse=function(){return!1};
Zo.prototype.localInnertubeResponse=function(){return _.e(function(v){return v.return(Promise.reject(Error("Si")))})};
Zo.prototype.canProvideFallbackResponse=function(){return!0};
Zo.prototype.localFallbackInnertubeResponse=function(){var v=this,Q,V;return _.e(function(E){return E.nextAddress==1?E.yield(v.JSC$18003_persistentStorePromiseAccessor(),2):E.nextAddress!=3?(Q=E.yieldResult)?E.yield(Q.get("service:guide:fallback"),3):E.return(Promise.reject(Error("Ti"))):(V=E.yieldResult)&&_.rs(V)?E.return($tT(_.rs(V))):E.return(Promise.reject(Error("Ui")))})};var A_=function(){};
A_.prototype.shouldPreferLocalResponse=function(){return!1};
A_.prototype.localInnertubeResponse=function(){return _.e(function(v){return v.return(Promise.reject(Error("Vi")))})};
A_.prototype.canProvideFallbackResponse=function(){return!0};
A_.prototype.localFallbackInnertubeResponse=function(){var v,Q,V;return _.e(function(E){v=iA("CLOSE_POPUP");Q={openPopupAction:XTQ()};V={actions:[v,Q]};return E.return(V)})};var et=function(){this.urlMap=sbY;this.fallbackCommand=_.j5};
et.prototype.shouldPreferLocalResponse=function(v){return(v=v.url)?!!uHm(this,v):!1};
et.prototype.localInnertubeResponse=function(v){var Q=this,V;return _.e(function(E){return(V=v.url)?E.return(jbf(v,uHm(Q,V))):E.return(Promise.reject(Error("Wi")))})};
et.prototype.canProvideFallbackResponse=function(){return!0};
et.prototype.localFallbackInnertubeResponse=function(v){var Q=this,V,E,b,F,t,p,Z;return _.e(function(d){V=v.url;if(!V)return d.return(jbf(v,Q.fallbackCommand));if(E=uHm(Q,V))return d.return(jbf(v,E));b=void 0;F=_.OG(V);F==="/watch"&&(t=_.me(V,"v"))&&(Z=(p=_.me(V,"list"))!=null?p:void 0,b=_.$7(t,Z));b||(b=Q.fallbackCommand);return d.return(jbf(v,b))})};
var uHm=function(v,Q){if(Q)return v.urlMap[_.JY(Q)]},jbf=function(v,Q){Q&&v.parentTrackingParams&&(Q.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:v.parentTrackingParams}},Q.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:Q})};var PZ=function(v,Q,V){this.JSC$18014_upliftPromise=v;this.store=Q;this.JSC$18014_persistentStorePromiseAccessor=V};
PZ.prototype.shouldPreferLocalResponse=function(){return!1};
PZ.prototype.localInnertubeResponse=function(){return _.e(function(v){return v.return(Promise.reject(Error("Xi")))})};
PZ.prototype.canProvideFallbackResponse=function(){return!0};
PZ.prototype.localFallbackInnertubeResponse=function(){var v=this;return _.e(function(Q){return Q.return(WQ0(v))})};
var WQ0=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(aI(v.JSC$18014_upliftPromise,v.store),2);Q=E.yieldResult;V={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[akG(Q)]}}}};return E.return(o4I(v,V))})},o4I=function(v,Q){var V,E;
return _.e(function(b){if(b.nextAddress==1)return b.yield(v.JSC$18014_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return V=b.yieldResult,b.yield($S(V),3);E=b.yieldResult;return b.return({responseContext:{},contents:Q,topbar:E})})};var t_=function(v,Q,V){this.JSC$18021_upliftPromise=v;this.store=Q;this.JSC$18021_persistentStorePromiseAccessor=V};
t_.prototype.shouldPreferLocalResponse=function(v){var Q=v.videoId;return Q&&XO0(this.store.getState().entities,Q)&&apb(this.store.getState().entities,Q)?rA0(this.store.getState().entities,v.playlistId):!1};
t_.prototype.localInnertubeResponse=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1)return(V=v.videoId)?b.yield(Q.JSC$18021_upliftPromise,2):b.return(Promise.reject(Error("Yi")));if(b.nextAddress!=3)return b.yield(X4s(Q,v,V),3);E=b.yieldResult;return b.return(aTf(Q,E,V))})};
t_.prototype.canProvideFallbackResponse=function(v){return v.videoId?!0:!1};
t_.prototype.localFallbackInnertubeResponse=function(v){var Q=this,V,E,b,F;return _.e(function(t){switch(t.nextAddress){case 1:return(V=v.videoId)?t.yield(Q.JSC$18021_upliftPromise,2):t.return(Promise.reject(Error("Yi")));case 2:return t.yield(X4s(Q,v,V),3);case 3:E=t.yieldResult;if(A4(Q.store.getState().entities,V)){t.jumpTo(4);break}return t.yield(aI(Q.JSC$18021_upliftPromise,Q.store),5);case 5:return b=t.yieldResult,t.return(rdY(E,b));case 4:return XO0(Q.store.getState().entities,V)&&apb(Q.store.getState().entities,
V)?t.return(aTf(Q,E,V)):(F={title:_.I$(_.Lt("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:HmS()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},t.return(rdY(E,F)))}})};
var X4s=function(v,Q,V){var E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return E=Q.playlistId,b=_.$7(V,E),Z.yield(v.JSC$18021_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return F=Z.yieldResult,Z.yield($S(F),3);t=Z.yieldResult;p={responseContext:{},currentVideoEndpoint:b,topbar:t};return Z.return(p)})},aTf=function(v,Q,V){if(v=A4(v.store.getState().entities,V)){var E;
V=v.videoEntity;var b,F={title:Hp(V.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.mL((E=V.localizedStrings)==null?void 0:E.viewCount),viewCount:_.mL((b=V.localizedStrings)==null?void 0:b.viewCount)}}};V.publishedTimestampMillis&&(F.dateText=_.mL(P_3(new Date(Number(V.publishedTimestampMillis)))));E={videoPrimaryInfoRenderer:F};b=v.videoEntity;v=v.channelEntity;v={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Hp(_.Lt("SHOW_MORE",void 0,"Show more")),
showLessText:Hp(_.Lt("SHOW_LESS",void 0,"Show less")),description:b.formattedDescription,owner:{videoOwnerRenderer:{title:Hp(v.title),thumbnail:v.avatar}}}};Q.contents={twoColumnWatchNextResults:{results:{results:{contents:[E,v]}}}}}return Q},rdY=function(v,Q){v.contents={singleColumnWatchNextResults:{results:{results:{contents:[akG(Q)]}}}};
return v};var d3=function(v,Q,V){this.JSC$18026_upliftPromise=v;this.store=Q;this.JSC$18026_persistentStorePromiseAccessor=V};
d3.prototype.shouldPreferLocalResponse=function(){return!1};
d3.prototype.localInnertubeResponse=function(){return _.e(function(v){return v.return(Promise.reject(Error("Zi")))})};
d3.prototype.canProvideFallbackResponse=function(){return!0};
d3.prototype.localFallbackInnertubeResponse=function(){var v=this,Q,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return F.yield(v.JSC$18026_persistentStorePromiseAccessor(),2);case 2:return Q=F.yieldResult,F.yield($S(Q),3);case 3:return V=F.yieldResult,E={responseContext:{},topbar:V},F.yield(v.JSC$18026_upliftPromise,4);case 4:return F.yield(aI(v.JSC$18026_upliftPromise,v.store),5);case 5:return b=F.yieldResult,E.watchStatus={backgroundPromoRenderer:b},F.return(E)}})};var $N5,ITj;_.Se=new _.KB("ENDPOINT_MAP");$N5=new _.KB("WATCH_ENDPOINT_MAP");ITj=new _.KB("REEL_ENDPOINT_MAP");var Qt0=/^[a-zA-Z0-9_\-]{11}$/;var VdE=_.fo(function(){var v,Q;return(Q=(v=window).matchMedia)==null?void 0:Q.call(v,"(prefers-reduced-motion: reduce)").matches});var Hwh=_.fo(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var v=_.Q9("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");v||(v=_.RD("VIDEO"),_.Pr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
v));return!!(v&&v.canPlayType&&v.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var mNY=XMLHttpRequest.prototype.fetch,UNn=mNY&&mNY.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!ej?!0:!1;var zW=function(v){this.JSC$18037_storeWithEntities=v};
_.f(zW,EZ);_.K=zW.prototype;_.K.getApiPaths=function(){return jnV};
_.K.getExtension=function(v){return _.y(v,_.sn)||_.y(v,_.PH)||_.y(v,xlQ)};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$14252_getStoreKey=function(v){if((_.Y("kevlar_cache_on_ttl_player")||_.Y("mweb_enable_shorts_innertube_player_prefetch")||_.Y("mweb_use_new_history_manager")||_.Y("web_shorts_prefetch_service_enabled"))&&(v=this.getExtension(v))&&v.videoId){var Q={videoId:v.videoId};v.playlistId&&(Q.playlistId=v.playlistId);v.playerParams&&(Q.params=v.playerParams);return _.gi("player",Q)}};
_.K.JSC$14245_getClientScreen=function(v){var Q;return((Q=v.contentPlaybackContext)==null?void 0:Q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.K.JSC$14245_buildRequest=function(v,Q,V){if(_.Y("enable_interstitial_entity_check")){var E=this.JSC$18037_storeWithEntities;if(Q.videoId)for(var b=_.L(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),F=b.next();!F.done;F=b.next()){F=F.value;var t;var p=void 0,Z=void 0,d=Q.videoId,w=F;(t=E)?(d=_.b3(d+w,"interstitialInteractionStateEntity"),t=(p=(Z=_.Fg(t.getState().entities,"interstitialInteractionStateEntity",d))==null?void 0:Z.primaryButtonClicked)!=null?p:!1):t=!1;if(t)switch(F){case "CONTENT_CHECK_REQUIRED":Q.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":Q.racyCheckOk=!0}}}Q.videoId&&(v.videoId=Q.videoId);Q.playlistId&&(v.playlistId=Q.playlistId);Q.index!==void 0&&(v.playlistIndex=Q.index+1);Q.playerParams&&(v.params=Q.playerParams);"startTimeSeconds"in Q&&Q.startTimeSeconds&&(_.Y("enable_player_request_builder_start_time_floor")?v.startTimeSecs=Math.floor(Q.startTimeSeconds):v.startTimeSecs=Q.startTimeSeconds);V.contentPlaybackContext&&(v.playbackContext={contentPlaybackContext:V.contentPlaybackContext});V.prefetchPlaybackContext&&
(v.playbackContext=Object.assign({},v.playbackContext,{prefetchPlaybackContext:V.prefetchPlaybackContext}),v.context.request||(v.context.request={}),v.context.request.isPrefetch=!0);v.playbackContext||(v.playbackContext={});E=Hwh();v.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!E,supportXhr:UNn};V.overrideMutedAtStart&&(v.overrideMutedAtStart=V.overrideMutedAtStart);v.racyCheckOk=!!Q.racyCheckOk;v.contentCheckOk=!!Q.contentCheckOk;!_.Y("captions_prefs_killswitch")&&(V=(V=_.TA("yt-player-caption-language-preferences"))?
V:[],V==null?0:V.length)&&(v.captionParams={viewerSelectedCaptionLangs:V})};
_.K.getRequestConfig=function(v){v=this.JSC$14252_getStoreKey(v);var Q;v&&(Q={storeStrategy:{storeKey:v}});_.Y("web_log_player_watch_next_ticks")&&(Q=Q||{},Q.requestTick="ps_s",Q.responseTick="ps_r");return Q};
zW[w$]=[UI];var JW=function(v,Q){this.playerRequestBuilder=v;this.watchNextRequestBuilder=Q};
_.f(JW,EZ);JW.prototype.getApiPaths=function(){return l8Z};
JW.prototype.getExtension=function(v){return _.y(v,_.sn)};
JW.prototype.isNavigationCommand=function(){return!0};
JW.prototype.JSC$14245_buildRequest=function(v,Q,V){v.playerRequest={};this.playerRequestBuilder.JSC$14245_buildRequest(v.playerRequest,Q,V);_.Y("web_streaming_watch")&&(v.watchNextRequest={},this.watchNextRequestBuilder.JSC$14245_buildRequest(v.watchNextRequest,Q,V))};
JW[w$]=[zW,n6];var vJ8;_.Na=new _.KB("SHORTS_CONTROLLER_TOKEN");vJ8=new _.KB("SHORTS_STATE_STORE_TOKEN");var xs=function(v,Q){var V=_.aE.apply(2,arguments);v=v===void 0?0:v;_.xd.call(this,Q,V);this.errorType=v;Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(xs,_.xd);var QDI,VKY,EJm,LD9,zn,OSB,Ke8,Feh,eIj,tKm,Leq;QDI=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(v){return v+"="}).join("|"));
VKY=RegExp(".*\\?.*playnext=1.*");EJm=function(v,Q,V,E,b){this.watchEndpointMap=v;this.reelWatchEndpointMap=Q;this.innerTubeTransportService=V;this.fetchPbj=E;this.reloadOnPlayerFailure=b===void 0?!0:b};
_.bg$=function(v,Q){var V=_.T_("web_pbj_log_warning_rate",0);V=V>0&&Math.random()<V;var E;if((E=_.y(Q.commandMetadata,_.Kt))==null||!E.rootVe)return V&&_.Iy(Error("dj")),!1;var b;E=(b=_.y(Q.commandMetadata,_.Kt))==null?void 0:b.url;if(!E)return V&&_.Iy(Error("ej")),!1;if(VKY.test(E))return!0;if(QDI.test(E))return V&&_.Iy(Error("fj`"+E)),!1;if(_.y(Q,_.sn)){if(!(v.watchEndpointMap.watchNext&&v.watchEndpointMap.player||_.Y("kevlar_fetch_initial_data_op_watch_client")))return V&&_.Iy(Error("$i")),!1;
v=_.T_("web_pbj_log_warning_rate",0);v=v>0&&Math.random()<v;_.y(Q,_.sn)?UtT(Q)?Q=!0:(v&&_.Iy(Error("aj")),Q=!1):(v&&_.Iy(Error("$i")),Q=!1);return Q}if(_.y(Q,_.PH))return vrS(Q);if(_.y(Q,_.EO))return!0;v=_.NC(v.innerTubeTransportService,Q);!v&&V&&_.ro(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(Q)});return v};
LD9=function(v,Q,V,E,b,F){Q={url:Q};if(V==null?0:V.itct)Q.parentTrackingParams=V.itct;var t=_.Xg(mhR);return _.tQ(v.innerTubeTransportService,Q,t).then(function(p){(p=p.endpoint)||(p=_.j5);(V==null?0:V.itct)&&p&&!p.trackingParams&&(p.trackingParams=V.itct);var Z=eV(p);return zn(v,p,V,E,Z,b,F)})};
zn=function(v,Q,V,E,b,F,t,p){p=p===void 0?{}:p;if(v.fetchPbj&&!_.bg$(v,Q)&&!_.Y("force_one_platform")){p=v.fetchPbj(Q);var Z=_.Vk(p.then(function(g){if(!g)throw Error("hj");t(Z)||F(Q,g);return g}));
return Z}var d,w,A={rootVe:(d=_.y(Q.commandMetadata,_.Kt))==null?void 0:d.rootVe,url:(w=_.y(Q.commandMetadata,_.Kt))==null?void 0:w.url,endpoint:Q,page:b};if(_.y(Q,_.sn)){var k,T={contentPlaybackContext:_.vZ(V,(k=_.y(Q.commandMetadata,_.Kt))==null?void 0:k.url,E)},c=_.B_();_.Y("web_streaming_watch")&&window.TextDecoderStream?(p=OQN(v.innerTubeTransportService,Q,T,function(g){!A.response&&g.content&&(A.response=g.content);!A.playerResponse&&g.player&&(A.playerResponse=g.player);F(Q,A)}),d=uUm(Q),d.length&&
(A.preconnect=d,F(Q,A)),Feh(p,c,A).catch(function(g){g instanceof xs&&g.errorType===2&&_.Y("web_streaming_watch_fallback")&&Ke8(v,Q,T,A,F,t,c)})):Ke8(v,Q,T,A,F,t,c);
return c.promise}if(_.y(Q,_.PH)){var C;if(((C=_.y(Q,_.PH))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R=_.B_();_.igj(_.ht().resolve(_.Na),Q).then(function(g){Leq(v,V,E,b,F,R,g)});
return R.promise}p=_.Vk();var l;d={contentPlaybackContext:_.vZ(V,(l=_.y(Q.commandMetadata,_.Kt))==null?void 0:l.url,E)};(l=v.reelWatchEndpointMap.player)&&(l=l().JSC$14245_getRequest(Q,d))&&(p=_.tQ(v.innerTubeTransportService,l.innerTubeRequest,l.input,Q.clickTrackingParams,l.config));l=_.Vk();(w=v.reelWatchEndpointMap.reelItemWatch)&&(w=w().JSC$14245_getRequest(Q))&&(l=_.tQ(v.innerTubeTransportService,w.innerTubeRequest,w.input,Q.clickTrackingParams,w.config));w=_.Vk();_.Y("web_enable_delay_shorts_sequence_call_extra")&&
(w=new _.Ry(function(g){setTimeout(function(){g(void 0)},200)}));
(!_.Y("web_enable_delay_shorts_sequence_call_new")||_.Y("web_enable_delay_shorts_sequence_call_forget"))&&(k=v.reelWatchEndpointMap.reelWatchSequence)&&_.y(Q,_.PH).sequenceParams&&(d=k().JSC$14245_getRequest(Q,d))&&(_.Y("web_enable_delay_shorts_sequence_call_forget")?_.tQ(v.innerTubeTransportService,d.innerTubeRequest,d.input,Q.clickTrackingParams,d.config):w=_.tQ(v.innerTubeTransportService,d.innerTubeRequest,d.input,Q.clickTrackingParams,d.config));d=_.Vk(A);k=_.B_();tKm(Q,d,p,l,w,F,t,k);return k.promise}var S;
if(_.y(Q,KyG)&&((S=_.y(Q.commandMetadata,_.Kt))==null?0:S.url))return p=ZTZ(_.vR(jS().location.href),_.vR(_.y(Q.commandMetadata,_.Kt).url)).toString(),LD9(v,p,V,E,F,function(){return!1});
if(_.y(Q,_.EO))return F(Q,A),_.Vk(A);if(_.NC(v.innerTubeTransportService,Q)){p=Object.assign({},{tempData:V,disableCache:V.disableCache},p);var a=_.xW(v.innerTubeTransportService,Q,p).then(function(g){A.response=g;t(a)||F(Q,A);return A});
return a}return _.Vk(A)};
_.pMh=function(v,Q,V,E){if(_.y(Q,_.sn)||_.y(Q,_.PH)&&(_.Y("mweb_enable_shorts_innertube_player_prefetch")||_.Y("kevlar_enable_shorts_prefetch_in_sequence"))||_.y(Q,xlQ)&&_.Y("web_enable_prefetching_videos_on_home")){var b,F={contentPlaybackContext:_.vZ(V,(b=_.y(Q.commandMetadata,_.Kt))==null?void 0:b.url,E),prefetchPlaybackContext:bK9(V)},t,p,Z;if(((t=_.y(Q,_.sn))==null?void 0:(p=t.watchEndpointSupportedPrefetchConfig)==null?void 0:(Z=p.prefetchHintConfig)==null?void 0:Z.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(V=
v.watchEndpointMap.watchNext)if(F=V().JSC$14245_getRequest(Q,F))return Promise.resolve(_.tQ(v.innerTubeTransportService,F.innerTubeRequest,F.input,void 0,F.config).then(function(A){return A}))}else if(V=v.watchEndpointMap.player)if(F=V().JSC$14245_getRequest(Q,F))return Promise.resolve(_.tQ(v.innerTubeTransportService,F.innerTubeRequest,F.input,void 0,F.config).then(function(A){return A}))}else if(_.NC(v.innerTubeTransportService,Q)){var d={tempData:V},w=cKQ(v.innerTubeTransportService,Q);
return w?new Promise(function(A,k){var T,c;return _.e(function(C){if(C.nextAddress==1)return C.yield(w,2);if(C.nextAddress!=4)return T=C.yieldResult,T.JSC$14252_getStoreKey(Q,d)?C.yield(_.xW(v.innerTubeTransportService,Q,d),4):(k(new _.xd("Prefetching request builder with no store key.",Q)),C.jumpTo(0));c=C.yieldResult;A(c);_.q1(C)})}):Promise.reject(new _.xd("Prefetching unregistered request builder.",Q))}return Promise.reject(new _.xd("No request builder available to prefetch endpoint.",Q))};
OSB=function(v,Q){var V,E,b;if(_.y(Q,_.sn)){var F=v.watchEndpointMap.watchNext;F&&(V=F());(v=v.watchEndpointMap.player)&&(E=v())}else if(_.y(Q,_.PH))(F=v.reelWatchEndpointMap.reelItemWatch)&&(V=F()),(F=v.reelWatchEndpointMap.player)&&(E=F()),(v=v.reelWatchEndpointMap.reelWatchSequence)&&(b=v());else{a:{v=Lzm(Q,v.innerTubeTransportService.endpointMap);if(v!==void 0)if(typeof v.then==="function")_.ro(new _.xd("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",Q));else break a;
v=void 0}v&&(V=v)}var t,p,Z;return{content:(t=V)==null?void 0:t.JSC$14252_getStoreKey(Q),player:(p=E)==null?void 0:p.JSC$14252_getStoreKey(Q),reelSequence:(Z=b)==null?void 0:Z.JSC$14252_getStoreKey(Q)}};
Ke8=function(v,Q,V,E,b,F,t){var p=_.Vk(),Z=v.watchEndpointMap.player;_.Y("web_streaming_player")&&(Z=lP(JW));Z&&(Z=Z().JSC$14245_getRequest(Q,V))&&(p=_.tQ(v.innerTubeTransportService,Z.innerTubeRequest,Z.input,Q.clickTrackingParams,Z.config));Z=_.Vk();var d=v.watchEndpointMap.watchNext;d&&(V=d().JSC$14245_getRequest(Q,V))&&(Z=_.tQ(v.innerTubeTransportService,V.innerTubeRequest,V.input,Q.clickTrackingParams,V.config));E=_.Vk(E);eIj(v,Q,E,p,Z,b,F,t)};
Feh=function(v,Q,V){var E;return _.e(function(b){if(b.nextAddress==1)return b.yield(v,2);_.Y("web_streaming_watch_delay_200")||_.Y("web_streaming_watch_delay_400")?(E=_.Y("web_streaming_watch_delay_200")?200:400,setTimeout(function(){Q.resolve(V)},E)):Q.resolve(V);
_.q1(b)})};
eIj=function(v,Q,V,E,b,F,t,p){var Z,d,w,A,k;_.e(function(T){switch(T.nextAddress){case 1:return T.yield(V,2);case 2:Z=T.yieldResult;if(t(p.promise))return p.resolve(Z),T.return();F(Q,Z);d=uUm(Q);if(!d.length){T.jumpTo(3);break}return T.yield(V,4);case 4:Z.preconnect=d,F(Q,Z);case 3:return _.GC(T,5),T.yield(E,7);case 7:w=T.yieldResult;_.FT(T,6);break;case 5:return A=_.n$(T),p.reject(A),T.return();case 6:if(w===void 0&&v.reloadOnPlayerFailure)return Z.reload=!0,F(Q,Z),p.resolve(Z),T.return();if(t(p.promise))return p.resolve(Z),
T.return();Z.playerResponse=w;F(Q,Z);_.Y("web_watch_stop_scheduler_on_player_response")&&OtZ();_.GC(T,8);return T.yield(b,10);case 10:k=T.yieldResult;_.FT(T,9);break;case 8:_.n$(T);case 9:if(k===void 0)return Z.response={responseContext:{}},p.resolve(Z),T.return();if(t(p.promise))return p.resolve(Z),T.return();Z.response=k;F(Q,Z);p.resolve(Z);_.q1(T)}})};
tKm=function(v,Q,V,E,b,F,t,p){var Z,d,w,A,k,T;_.e(function(c){switch(c.nextAddress){case 1:return c.yield(Q,2);case 2:Z=c.yieldResult;if(t(p.promise))return p.resolve(Z),c.return();F(v,Z);d=uUm(v);if(!d.length){c.jumpTo(3);break}return c.yield(Q,4);case 4:Z.preconnect=d,F(v,Z);case 3:return _.GC(c,5),c.yield(V,7);case 7:w=c.yieldResult;_.FT(c,6);break;case 5:return A=_.n$(c),p.reject(A),c.return();case 6:if(w===void 0)return Z.reload=!0,F(v,Z),p.resolve(Z),c.return();if(t(p.promise))return p.resolve(Z),
c.return();Z.playerResponse=w;F(v,Z);_.Y("web_shorts_stop_scheduler_on_player_response")&&OtZ();_.GC(c,8);return c.yield(E,10);case 10:k=c.yieldResult;_.FT(c,9);break;case 8:_.n$(c);case 9:if(k===void 0)return Z.response={responseContext:{}},p.resolve(Z),c.return();if(t(p.promise))return p.resolve(Z),c.return();Z.response=k;F(v,Z);_.GC(c,11);return c.yield(b,13);case 13:T=c.yieldResult;_.FT(c,12);break;case 11:_.n$(c);case 12:if(t(p.promise))return p.resolve(Z),c.return();T&&(Z.reelWatchSequenceResponse=
T);F(v,Z);p.resolve(Z);_.q1(c)}})};
Leq=function(v,Q,V,E,b,F,t){var p,Z,d,w,A,k;_.e(function(T){if((p=t)==null||!p.replacementEndpoint)return F.reject(),T.return();Z=t.replacementEndpoint;(d=_.y(Z,_.PH))?(t.sequenceContinuation&&(d.sequenceParams=t.sequenceContinuation),w=_.ht().resolve(_.Na),A=d.sequenceParams,Zgm(w,Z)&&delete d.sequenceParams,k=zn(v,Z,Q,V,E,b,function(){return!1}),k.then(function(c){return _.e(function(C){if(C.nextAddress==1)return PtI(w,{reelWatchEndpoint:{sequenceParams:A}},c),C.yield(0,2);
F.resolve(c);_.q1(C)})})):F.reject();
_.q1(T)})};
EJm[w$]=[$N5,ITj,_.wH,_.d$(kHV)];var dz7=function(){var v=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return v.sequenceMap}}},DxA=function(v,Q,V){var E,b=(E=Q.config)==null?void 0:E.sequenceStrategy;
if(!b)return V();v.sequenceMap.has(b.sequenceKey)||v.sequenceMap.set(b.sequenceKey,[]);v=v.sequenceMap.get(b.sequenceKey);switch(b.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return hIh(v,Q,V);case "REQUEST_SEQUENCE_TYPE_REPLACE":return wMI(v,Q,V);default:throw new _.xd("Request could not be sequenced",Q);}},hIh=function(v,Q,V){var E,b,F;
return _.e(function(t){v.length>0?(b=v[v.length-1],E=b.responsePromise.then(function(){return V()})):E=V();
F={request:Q,responsePromise:E};v.push(F);A5h(v,F);return t.return(F.responsePromise)})},wMI=function(v,Q,V){V=V();
if(v.length>0)for(var E=_.L(v),b=E.next();!b.done;b=E.next())b.value.responsePromise=V;var F={request:Q,responsePromise:V};v.push(F);A5h(v,F);return Promise.resolve().then(function(){return v.indexOf(F)>0?F.responsePromise.then(function(t){return Object.assign({},t,{sequenceMetaData:{skipProcessing:!0}})}):F.responsePromise})},A5h=function(v,Q){Q.responsePromise.then(function(){var V=v.indexOf(Q);
V>-1&&v.splice(V,1)})};var kcn=new _.KB("REQUEST_SEQUENCING");var B$=function(){};
_.f(B$,EZ);B$.prototype.getApiPaths=function(){return[]};
B$.prototype.getExtension=function(v){return _.y(v,Teq)};
B$.prototype.JSC$14245_buildRequest=function(v,Q){v.recaptchaToken=Q.recaptchaToken};
B$.prototype.getApiUrl=function(){return"/das_captcha"};var gP=function(){};
_.f(gP,EZ);gP.prototype.getApiPaths=function(){return mga};
gP.prototype.getExtension=function(v){return _.y(v,m7N)};
gP.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.createBackstagePostParams&&(v.createBackstagePostParams=Q.createBackstagePostParams);V.comment_text&&(v.commentText=V.comment_text);if(V.attached_video_id)v.videoAttachment={videoId:V.attached_video_id};else if(V.image_poll_options)v.pollAttachmentData={options:V.image_poll_options};else if(V.poll_options)v.pollAttachment={choices:V.poll_options};else if(V.quiz_options)v.quizAttachmentData={options:V.quiz_options};else if(V.image_blob_id)v.imageAttachment=
{encryptedBlobId:V.image_blob_id},V.source_video_id&&(v.imageAttachment.sourceExternalVideoId=V.source_video_id),V.image_preview_coordinates&&(v.imageAttachment.previewCoordinates=JSON.parse(V.image_preview_coordinates));else if(V.images_data)v.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 E,b,F,t,p;v.clipAttachment={externalVideoId:(F=V.clip_external_video_id)!=null?F:"",offsetMs:(t=(E=V.clip_offset_ms)==
null?void 0:E.toString())!=null?t:"",durationMs:(p=(b=V.clip_duration_ms)==null?void 0:b.toString())!=null?p:""}}else V.shared_post_id&&(v.sharedPostAttachment={postId:V.shared_post_id});V.tagged_video_id&&(v.postCreationData={taggedVideoId:V.tagged_video_id});V.access_restrictions&&(typeof V.access_restrictions==="number"&&(Q=V.access_restrictions,v.accessRestrictions={restriction:Q!==1&&Q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof V.access_restrictions==="string"&&
(v.accessRestrictionsParams=V.access_restrictions));V.scheduled_publish_time_sec&&(v.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString())};var st=function(){};
_.f(st,EZ);st.prototype.getApiPaths=function(){return FMR};
st.prototype.getExtension=function(v){return _.y(v,$l8)};
st.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.decorateMessageParams&&(v.params=Q.decorateMessageParams);V.text&&(v.text=V.text)};var u$=function(){};
_.f(u$,EZ);u$.prototype.getApiPaths=function(){return CUa};
u$.prototype.getExtension=function(v){return _.y(v,U7A)};
u$.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;V.video_id&&(v.videoId=V.video_id)};var je=function(){};
_.f(je,EZ);je.prototype.getApiPaths=function(){return nqQ};
je.prototype.getExtension=function(v){return _.y(v,_.F$)};
je.prototype.JSC$14245_buildRequest=function(v,Q,V){V.suggestions_query&&(v.input=V.suggestions_query)};var W$=function(){};
_.f(W$,EZ);W$.prototype.getApiPaths=function(){return p8R};
W$.prototype.getExtension=function(v){return _.y(v,v5Z)};
W$.prototype.JSC$14245_buildRequest=function(v,Q,V){V.comment_text!==void 0&&(v.commentText=V.comment_text);V.scheduled_publish_time_sec&&(v.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString());v.updateBackstagePostParams=Q.updateBackstagePostParams};var o3=function(){};
_.f(o3,EZ);o3.prototype.getApiPaths=function(){return gs};
o3.prototype.getExtension=function(v){return _.y(v,_.RJ)};
o3.prototype.JSC$14245_buildRequest=function(v,Q,V){V.formData&&(v.formData=V.formData);Q.token?v.continuation=Q.token:Q.continuationTokenKey&&(V=_.oF().getState(),Q=_.Fg(V.entities,"continuationTokenEntity",Q.continuationTokenKey))&&(v.continuation=String(Q.continuationToken))};
var TZ5=function(){};
_.f(TZ5,EZ);_.K=TZ5.prototype;_.K.getApiPaths=function(){return gs};
_.K.getExtension=function(v){return _.y(v,_.tn)};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$14252_getStoreKey=function(v){if((v=this.getExtension(v))&&v.browseId){var Q={browseId:v.browseId};v.browseEndpointContextSupportedConfigs&&(Q.browseEndpointContextSupportedConfigs=JSON.stringify(v.browseEndpointContextSupportedConfigs));v.params&&(Q.params=v.params);v.query&&(Q.query=v.query);return _.gi("browse",Q)}};
_.K.JSC$14245_buildRequest=function(v,Q,V){Q.browseId&&(v.browseId=Q.browseId);Q.params&&(v.params=Q.params);Q.query&&(v.query=Q.query);V.formData?v.formData=V.formData:Q.formData&&(v.formData=Q.formData);Q.browseId==="FEsubscriptions"&&_.eP().getFlag(155)&&(v.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");Q.browseId==="SPaccount_playback"&&(V=_.eP(),v.formData||(v.formData={}),v.formData.accountSettingsFormData={flagCaptionsDefaultOff:V.getFlag(65),flagAutoCaptionsDefaultOn:V.getFlag(66),
flagDisableInlinePreview:V.getFlag(186),flagAudioDescriptionDefaultOn:V.getFlag(198)});if(Q.browseId==="FEwhat_to_watch"){V=_.eP();var E=V.getFlag(196);V.getFlag(197)&&(v.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:E}}})}Q.browseId==="FEwhat_to_watch"&&(Q=_.eP().getFlag(186),v.inlineSettingStatus=Q?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.K.getRequestConfig=function(v,Q){Q=Q===void 0?{}:Q;var V={};if(v=this.JSC$14252_getStoreKey(v,Q))V.storeStrategy={storeKey:v,disableCache:Q.disableCache};_.Y("web_log_browse_ticks_ks")||(V.requestTick="br_s",V.responseTick="br_r");return V};var Xh=function(){};
_.f(Xh,EZ);Xh.prototype.getApiPaths=function(){return Xyp};
Xh.prototype.getExtension=function(v){return _.y(v,DnQ)};
Xh.prototype.JSC$14245_buildRequest=function(v,Q,V){v.legacyYoutubeChannelUsername=V.legacyYouTubeChannelUsername||"";v.legacyYoutubeChannelPassword=V.legacyYouTubeChannelPassword||""};var a3=function(){};
_.f(a3,EZ);a3.prototype.getApiPaths=function(){return Uh8};
a3.prototype.getExtension=function(v){return _.y(v,iYN)};
a3.prototype.JSC$14245_buildRequest=function(v,Q,V){V.recaptcha_response_token&&(v.recaptchaResponseToken=V.recaptcha_response_token);V.channel_id&&(v.channelId=V.channel_id)};var rP=function(){};
_.f(rP,EZ);rP.prototype.getApiPaths=function(){return ePZ};
rP.prototype.getExtension=function(v){return _.y(v,P8R)};
rP.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.externalChannelId&&(v.externalChannelId=Q.externalChannelId);V.handle&&(v.handleUpdate={handle:V.handle},Q.handleEditSource&&(v.handleUpdate.handleEditSource=Q.handleEditSource))};var $s=function(){};
_.f($s,EZ);$s.prototype.getApiPaths=function(){return hP8};
$s.prototype.getExtension=function(v){return _.y(v,Jcq)};
$s.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.request&&(v.channelId=Q.request.channelId);var E;if(V==null?0:(E=V.uploadDefaults)==null?0:E.emojiReactionSet)v.uploadDefaultsRequest||(v.uploadDefaultsRequest={}),v.uploadDefaultsRequest.emojiReactionSet=V.uploadDefaults.emojiReactionSet};var I3=function(){};
_.f(I3,EZ);I3.prototype.getApiPaths=function(){return k3V};
I3.prototype.getExtension=function(v){return _.y(v,LvQ)};
I3.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.externalChannelId&&(v.externalChannelId=Q.externalChannelId);Q.channelHandleEntityKey&&(v.channelHandleEntityKey=Q.channelHandleEntityKey);Q.handleEditSource&&(v.handleEditSource=Q.handleEditSource);V.handle?v.handle=V.handle:V.name&&(v.name=V.name)};var H$=function(){};
_.f(H$,EZ);H$.prototype.getApiPaths=function(){return $gN};
H$.prototype.getExtension=function(v){return _.y(v,DK8)};
H$.prototype.JSC$14245_buildRequest=function(v,Q){Q.actions?v.actions=Q.actions:Q.action&&(v.actions=[Q.action])};var mZ=function(){};
_.f(mZ,EZ);mZ.prototype.getApiPaths=function(){return Irq};
mZ.prototype.getExtension=function(v){return _.y(v,_.RJ)};
mZ.prototype.JSC$14245_buildRequest=function(v,Q){Q.token&&(v.continuation=Q.token)};var Ut=function(){};
_.f(Ut,EZ);Ut.prototype.getApiPaths=function(){return f8N};
Ut.prototype.getExtension=function(v){return _.y(v,_.RJ)};
Ut.prototype.JSC$14245_buildRequest=function(v,Q){v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Q.token&&(v.fetchCommentsParams={continuation:Q.token})};var vD=function(){};
_.f(vD,EZ);vD.prototype.getApiPaths=function(){return Qna};
vD.prototype.getExtension=function(v){return _.y(v,OA8)};
vD.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.createReplyParams&&(v.createReplyParams=Q.createReplyParams);Q.commentText&&(v.commentText=_.j0(Q.commentText));V.comment_text&&(v.commentText=V.comment_text);V.image_blob_id&&(v.imageAttachment={encryptedBlobId:V.image_blob_id});V.botguard_response&&(v.botguardResponse=V.botguard_response)};
_.hr.Object.defineProperties(vD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var QV=function(){};
_.f(QV,EZ);QV.prototype.getApiPaths=function(){return VnZ};
QV.prototype.getExtension=function(v){return _.y(v,_.M4A)};
QV.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.createCommentParams&&(v.createCommentParams=Q.createCommentParams);Q.commentText&&(v.commentText=_.j0(Q.commentText));Q.videoPositionMention&&(v.videoPositionMention=Q.videoPositionMention);Q.sources&&(v.sources=Q.sources);V.comment_text&&(v.commentText=V.comment_text);V.attached_video_id?v.videoAttachment={videoId:V.attached_video_id}:V.poll_options?v.pollAttachment={choices:V.poll_options}:V.image_blob_id?v.imageAttachment=
{encryptedBlobId:V.image_blob_id}:V.shared_post_id&&(v.sharedPostAttachment={postId:V.shared_post_id});V.access_restrictions&&typeof V.access_restrictions==="number"&&(Q=V.access_restrictions,v.accessRestrictions={restriction:Q!==1&&Q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});V.botguard_response&&(v.botguardResponse=V.botguard_response)};
_.hr.Object.defineProperties(QV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var VV=function(){};
_.f(VV,EZ);VV.prototype.getApiPaths=function(){return Z0R};
VV.prototype.getExtension=function(v){return _.y(v,nXN)};
VV.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.commentText&&(v.replyText=_.j0(Q.commentText));V.comment_text&&(v.replyText=V.comment_text);v.updateReplyParams=Q.updateReplyParams};
_.hr.Object.defineProperties(VV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E4=function(){};
_.f(E4,EZ);E4.prototype.getApiPaths=function(){return Plq};
E4.prototype.getExtension=function(v){return _.y(v,R4Z)};
E4.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.commentText&&(v.commentText=_.j0(Q.commentText));V.comment_text&&(v.commentText=V.comment_text);v.updateCommentParams=Q.updateCommentParams};
_.hr.Object.defineProperties(E4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var be=function(){};
_.f(be,EZ);be.prototype.getApiPaths=function(){return d0q};
be.prototype.getExtension=function(v){return _.y(v,lLa)};
be.prototype.JSC$14245_buildRequest=function(v,Q){Q.settings&&(v.settings=Q.settings)};var Fk=function(){};
_.f(Fk,EZ);Fk.prototype.getApiPaths=function(){return wbA};
Fk.prototype.getExtension=function(v){return _.y(v,tON)};
Fk.prototype.JSC$14245_buildRequest=function(v,Q){Q.channelCreationToken&&(v.channelCreationToken=Q.channelCreationToken);Q.source&&(v.source=Q.source)};var KI=function(){};
_.f(KI,EZ);KI.prototype.getApiPaths=function(){return vqZ};
KI.prototype.getExtension=function(v){return _.y(v,ZYN)};
KI.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;if(V.name&&(V.given_name||V.family_name))v=new _.xd("channel creation cannot set both GAIA and YouTube names",Q),_.ro(v);else{if(Q.zeroStepChannelCreationParams){if(!V.comment_text){v=new _.xd("zero_step_create_comment_params but no zero_step_texts",Q);_.ro(v);return}v.zeroStepChannelCreationParams=Q.zeroStepChannelCreationParams;v.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(v.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
V.comment_text,V.botguard_response&&(v.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=V.botguard_response))}v.channelCreationToken=Q.channelCreationToken;V.given_name&&(v.givenName=V.given_name);V.family_name&&(v.familyName=V.family_name);Q.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(v.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)v.overrideChannelCreationParams={},V.name&&(v.overrideChannelCreationParams.name=V.name),V.handle&&(v.overrideChannelCreationParams.handle=V.handle),V.avatar_url&&(v.overrideChannelCreationParams.avatarUrl=V.avatar_url),V.encryptedBlobId&&(v.overrideChannelCreationParams.blobEncryptionId=V.encryptedBlobId),V.enableIdentityForAllChannelCreationDialog&&(V.encryptedBlobId?v.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
V.isDefaultProfilePhoto!==void 0&&(v.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&&(v.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&&(v.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=V.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),V.obakeImageSource&&(v.overrideChannelCreationParams.obakeImageSourceType=V.obakeImageSource))}};var ie=function(){};
_.f(ie,EZ);ie.prototype.getApiPaths=function(v){return(v=this.getExtension(v))&&v.status==="DISLIKE"?tnV:v&&v.status==="INDIFFERENT"?rk8:JkN};
ie.prototype.getExtension=function(v){return _.y(v,_.nr)};
ie.prototype.JSC$14245_buildRequest=function(v,Q){Q.target&&(v.target=Q.target);if(Q=this.getParams(Q))v.params=Q};
ie.prototype.getParams=function(v){switch(v==null?void 0:v.status){case "DISLIKE":return v.dislikeParams;case "INDIFFERENT":return v.removeLikeParams;default:return v==null?void 0:v.likeParams}};var LI=function(){};
_.f(LI,EZ);LI.prototype.getApiPaths=function(){return b0x};
LI.prototype.getExtension=function(v){return _.y(v,NKx)};
LI.prototype.JSC$14245_buildRequest=function(v,Q){Q.settingItemId&&(v.settingItemId=Q.settingItemId);Q.stringValue!=null&&Q.stringValue!==void 0?v.newValue={stringValue:Q.stringValue}:Q.intValue?v.newValue={intValue:Q.intValue}:Q.boolValue!==null&&Q.boolValue!==void 0?v.newValue={boolValue:Q.boolValue}:(v=new _.xd("Unknown value type for SetSettingEndpoint.",Q),_.ro(v))};var tu=function(){};
_.f(tu,EZ);tu.prototype.getApiPaths=function(){return i0q};
tu.prototype.getExtension=function(v){return _.y(v,v2N)||void 0};
tu.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.channelIds&&(v.channelIds=Q.channelIds);Q.siloName&&(v.siloName=Q.siloName);Q.params&&(v.params=Q.params);V.botguardResponse&&(v.botguardResponse=V.botguardResponse);V.feature&&(v.clientFeature=V.feature)};
_.hr.Object.defineProperties(tu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pI=function(){};
_.f(pI,EZ);pI.prototype.getApiPaths=function(){return tRq};
pI.prototype.getExtension=function(v){return _.y(v,xKX)||void 0};
pI.prototype.JSC$14245_buildRequest=function(v,Q){Q.channelIds&&(v.channelIds=Q.channelIds);Q.siloName&&(v.siloName=Q.siloName);Q.params&&(v.params=Q.params)};
_.hr.Object.defineProperties(pI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eJ=function(v){this.shareClientParamsProvider=v};
_.f(eJ,EZ);eJ.prototype.getApiPaths=function(){return UiB};
eJ.prototype.getExtension=function(v){return _.y(v,ec8)||_.y(v,_.ZJZ)||_.y(v,p6Q)};
eJ.prototype.JSC$14245_buildRequest=function(v,Q){Q.serializedShareEntity&&(v.serializedSharedEntity=Q.serializedShareEntity);if(Q.clientParamIdentifier){var V;if((V=this.shareClientParamsProvider)==null?0:V.clientParams.has(Q.clientParamIdentifier)){V=this.shareClientParamsProvider;Q=Q.clientParamIdentifier;var E=V.clientParams.get(Q);E&&V.clientParams.delete(Q);v.clientParams=E}}};
eJ[w$]=[Xs$];var ZU=function(){};
_.f(ZU,EZ);ZU.prototype.getApiPaths=function(){return jVX};
ZU.prototype.getExtension=function(v){return _.y(v,Bm8)};
ZU.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var PD=function(){};
_.f(PD,EZ);PD.prototype.getApiPaths=function(){return pbQ};
PD.prototype.getExtension=function(v){return _.y(v,JCa)};
PD.prototype.JSC$14245_buildRequest=function(v,Q){Q.dismissal&&(v.items=[Q.dismissal])};
_.hr.Object.defineProperties(PD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dU=function(){};
_.f(dU,EZ);dU.prototype.getApiPaths=function(){return SL8};
dU.prototype.getExtension=function(v){return _.y(v,_.Cq)||void 0};
dU.prototype.JSC$14245_buildRequest=function(v,Q,V){v.feedbackTokens=[];Q.feedbackToken&&v.feedbackTokens.push(Q.feedbackToken);if(Q=Q.cpn||V.cpn)v.feedbackContext={cpn:Q};v.isFeedbackTokenUnencrypted=!!V.is_feedback_token_unencrypted;v.shouldMerge=!1;V.extra_feedback_tokens&&(v.shouldMerge=!0,v.feedbackTokens=v.feedbackTokens.concat(V.extra_feedback_tokens))};
_.hr.Object.defineProperties(dU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cD=function(){};
_.f(cD,EZ);cD.prototype.getApiPaths=function(){return SL8};
cD.prototype.getExtension=function(v){return _.y(v,_.F$)};
cD.prototype.JSC$14245_buildRequest=function(v,Q,V){V.feedback_tokens&&(v.feedbackTokens=V.feedback_tokens,v.shouldMerge=!0)};
_.hr.Object.defineProperties(cD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fI=function(){};
_.f(fI,EZ);fI.prototype.getApiPaths=function(){return SL8};
fI.prototype.getExtension=function(v){return _.y(v,Apo)};
fI.prototype.JSC$14245_buildRequest=function(v,Q){Q.undoToken&&(v.feedbackTokens=[Q.undoToken]);Q.isUndoTokenUnencrypted&&(v.isFeedbackTokenUnencrypted=Q.isUndoTokenUnencrypted)};
_.hr.Object.defineProperties(fI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GK=function(){};
_.f(GK,EZ);GK.prototype.getApiPaths=function(){return TrR};
GK.prototype.getExtension=function(v){return _.y(v,qkV)};
GK.prototype.JSC$14245_buildRequest=function(v,Q){Q.nextEndpoint&&_.y(Q.nextEndpoint,_.FJ)?v.nextEndpoint={urlEndpoint:_.y(Q.nextEndpoint,_.FJ)}:Q.nextEndpoint&&_.y(Q.nextEndpoint,_.sn)&&(v.nextEndpoint={watchEndpoint:_.y(Q.nextEndpoint,_.sn)});Q.setRacy&&(v.setRacy=Q.setRacy);Q.setControvercy&&(v.setControvercy=Q.setControvercy)};var CI=function(v){this.JSC$18238_storeWithEntities=v};
_.f(CI,EZ);CI.prototype.getApiPaths=function(){return ZTp};
CI.prototype.getExtension=function(v){return _.y(v,Fpa)};
CI.prototype.JSC$14245_buildRequest=function(v,Q){Q.flowId&&(v.flowId=Q.flowId);Q.targetId&&(v.targetId=Q.targetId);Q.continuation&&(v.continuation=Q.continuation);var V=Q.flowStateEntityKey;if(Q.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&V&&this.JSC$18238_storeWithEntities){var E;if(Q=(E=this.JSC$18238_storeWithEntities.getState())==null?void 0:E.entities)if(E=_.Q_(V).entityType,E=_.Fg(Q,E,V))v.flowState=E,v.flowStateEntityKey=V}};
_.hr.Object.defineProperties(CI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
CI[w$]=[UI];var Yh$=function(){};
_.f(Yh$,EZ);_.K=Yh$.prototype;_.K.getApiPaths=function(){return qLR};
_.K.JSC$14252_getStoreKey=function(){return _.gi("guide")};
_.K.getRequestConfig=function(){var v=this.JSC$14252_getStoreKey(),Q;v&&(Q={storeStrategy:{storeKey:v}});return Q};
_.K.isNavigationCommand=function(){return!0};
_.K.getExtension=function(v){return _.y(v,_.F$)};
_.K.JSC$14245_buildRequest=function(v){v.fetchLiveState=!0};var M8=function(){};
_.f(M8,EZ);M8.prototype.getApiPaths=function(){return arx};
M8.prototype.getExtension=function(v){return _.y(v,fHq)};
M8.prototype.JSC$14245_buildRequest=function(){};var O4=function(){};
_.f(O4,EZ);O4.prototype.getApiPaths=function(){return rva};
O4.prototype.getExtension=function(v){return _.y(v,GXp)};
O4.prototype.JSC$14245_buildRequest=function(){};var DU=function(){};
_.f(DU,EZ);DU.prototype.getApiPaths=function(){return u3x};
DU.prototype.getExtension=function(v){return _.y(v,_.RJ)};
DU.prototype.JSC$14245_buildRequest=function(v,Q){Q.token&&(v.continuation=Q.token);var V,E;v==null||(V=v.context)==null||(E=V.user)==null||delete E.onBehalfOfUser};
DU.prototype.getRequestConfig=function(v){var Q={},V;if(((V=this.getExtension(v))==null?void 0:V.sessionIndex)!==void 0){var E;Q={authStrategy:{sessionIndex:(E=this.getExtension(v))==null?void 0:E.sessionIndex}}}return Q};var Rf=function(){};
_.f(Rf,EZ);Rf.prototype.JSC$14245_getRequest=function(v){var Q=this.getExtension(v),V=v="";if(Q==null?0:Q.popup)v="true";if(Q==null?0:Q.disableSignout)V="true";Q={};return{input:"/getAccountSwitcherEndpoint",requestShell:Bj("/getAccountSwitcherEndpoint","GET",(Q["X-YouTube-Delegation-Context"]=_.r7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),Q["X-YouTube-Account-Switcher-Popup"]=v,Q["X-YouTube-Account-Switcher-Disable-Signout"]=V,Q)),innerTubeRequest:{}}};
Rf.prototype.getApiPaths=function(){return[]};
Rf.prototype.getExtension=function(v){return _.y(v,_.ymm)};
Rf.prototype.JSC$14245_buildRequest=function(){};var nI=function(){};
_.f(nI,EZ);nI.prototype.JSC$14245_getRequest=function(v){var Q="/cross_account_channel_transfer";(v=this.getExtension(v))&&(Q=WbT(Q,{target_session:v.targetSessionIndex,source_rapt:v.sourceRapt,rapt:v.targetRapt}));return{input:Q,requestShell:Bj(Q,"GET"),innerTubeRequest:{}}};
nI.prototype.getApiPaths=function(){return[]};
nI.prototype.getExtension=function(v){return _.y(v,CNx)};
nI.prototype.JSC$14245_buildRequest=function(){};var le=function(){};
_.f(le,EZ);le.prototype.getApiPaths=function(){return PUS};
le.prototype.isNavigationCommand=function(){return!0};
le.prototype.getExtension=function(v){return _.y(v,_.F$)};
le.prototype.JSC$14245_buildRequest=function(v){var Q=_.eP().get("gsml","");Q&&(v.safetyModeLockerObfuscatedGaiaId=Q);v.userInterfaceTheme=_.q2(!0);_.SV()?v.deviceTheme="DEVICE_THEME_SELECTED":_.tnG()?v.deviceTheme="DEVICE_THEME_SUPPORTED":v.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var q8=function(){};
_.f(q8,EZ);q8.prototype.getApiPaths=function(){return u3x};
q8.prototype.getExtension=function(v){return _.y(v,Myx)};
q8.prototype.JSC$14245_buildRequest=function(v,Q){if(Q&&Q.requestType&&(v.requestType=Q.requestType,Q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||Q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var V=Q.nextUrl;V&&(_.Xjb(V)||Z9(V))&&(v.nextNavendpoint={urlEndpoint:{url:V}})}Q&&Q.channelSwitcherQuery&&(v.channelSwitcherQuery=Q.channelSwitcherQuery);Q&&Q.triggerChannelCreation&&(v.triggerChannelCreation=Q.triggerChannelCreation);var E;if(Q==null?0:(E=Q.contentOwnerConfig)==
null?0:E.externalContentOwnerId)v.contentOwnerConfig=Q.contentOwnerConfig;v.callCircumstance=Q&&Q.requestType&&Q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var b,F;Q=v==null?void 0:(b=v.context)==null?void 0:(F=b.user)==null?void 0:F.onBehalfOfUser;if(Q!==void 0){v.obfuscatedSelectedGaiaId=Q;var t,p;v==null||(t=v.context)==null||(p=t.user)==null||delete p.onBehalfOfUser}var Z,d;if(b=v==null?void 0:(Z=v.context)==null?void 0:(d=Z.user)==null?
void 0:d.serializedDelegationContext)v.selectedSerializedDelegationContext=b};var SJ=function(){};
_.f(SJ,EZ);SJ.prototype.getApiPaths=function(){return Wy8};
SJ.prototype.getExtension=function(v){return _.y(v,P6A)};
SJ.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var zK=function(){};
_.f(zK,EZ);zK.prototype.getApiPaths=function(){return Uga};
zK.prototype.getExtension=function(v){return _.y(v,_.G6a)};
zK.prototype.JSC$14245_buildRequest=function(v,Q){if(Q=Q.createBroadcastRequest)v.useMasks=Q.useMasks,v.broadcastType=Q.broadcastType,v.broadcastSource=Q.broadcastSource,v.broadcastMetadata=Q.broadcastMetadata,v.broadcastMetadataMask=Q.broadcastMetadataMask,v.videoMetadata=Q.videoMetadata,v.videoMetadataMask=Q.videoMetadataMask,v.liveChatSettingsUpdate=Q.liveChatSettingsUpdate,v.liveChatSettingsUpdateMask=Q.liveChatSettingsUpdateMask,v.cloneVideoId=Q.cloneVideoId,v.cloneWithOverrides=Q.cloneWithOverrides,
v.targetEntity=Q.targetEntity,v.scheduledRedirectMetadata=Q.scheduledRedirectMetadata};var Ju=function(){};
_.f(Ju,EZ);Ju.prototype.getApiPaths=function(){return Eqa};
Ju.prototype.getExtension=function(v){return _.y(v,wmV)};
Ju.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.params&&(v.params=Q.params);V.questionText&&(v.questionText=V.questionText);V.optionText&&V.optionText.length>0&&(v.optionText=V.optionText)};var N8=function(){};
_.f(N8,EZ);N8.prototype.getApiPaths=function(){return KMR};
N8.prototype.getExtension=function(v){return _.y(v,d_Q)};
N8.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var xM=function(){};
_.f(xM,EZ);xM.prototype.getApiPaths=function(){return kS8};
xM.prototype.getExtension=function(v){return _.y(v,pma)};
xM.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var BD=function(){};
_.f(BD,EZ);BD.prototype.getApiPaths=function(){return YL8};
BD.prototype.getExtension=function(v){return _.y(v,eYZ)};
BD.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.params&&(v.params=Q.params);Q.continuation&&(v.continuation=Q.continuation);V.currentPlayerState&&V.currentPlayerState.playerOffsetMs&&(v.currentPlayerState={playerOffsetMs:V.currentPlayerState.playerOffsetMs.toString()})};var gU=function(){};
_.f(gU,EZ);gU.prototype.getApiPaths=function(){return ykV};
gU.prototype.getExtension=function(v){return _.y(v,t5Z)};
gU.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.params&&(v.params=Q.params);V.continuation&&(v.continuation=V.continuation);"hidden"in V&&(v.webClientInfo={isDocumentHidden:V.hidden});V.isInvalidationTimeoutRequest&&(v.isInvalidationTimeoutRequest=V.isInvalidationTimeoutRequest);V.invalidationPayload&&(Q=L4N(_.H9(P5(V.invalidationPayload))),v.invalidationPayloadLastPublishAtUsec=CN(Q,2));V.reloadActionPanel&&(v.reloadActionPanel=V.reloadActionPanel);V.fullReload&&(v.fullReload=V.fullReload);
V.currentPlayerState&&(v.currentPlayerState=V.currentPlayerState)};var s4=function(){};
_.f(s4,EZ);s4.prototype.getApiPaths=function(){return NkA};
s4.prototype.getExtension=function(v){return _.y(v,hYN)};
s4.prototype.JSC$14245_buildRequest=function(v,Q){v.params=Q.params};var ue=function(){};
_.f(ue,EZ);ue.prototype.getApiPaths=function(){return TkR};
ue.prototype.getExtension=function(v){return _.y(v,RcS)};
ue.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var jJ=function(){};
_.f(jJ,EZ);jJ.prototype.getApiPaths=function(){return ck8};
jJ.prototype.getExtension=function(v){return _.y(v,nc8)};
jJ.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var WD=function(){};
_.f(WD,EZ);WD.prototype.getApiPaths=function(){return xhq};
WD.prototype.getExtension=function(v){return _.y(v,ALN)};
WD.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var of=function(){};
_.f(of,EZ);of.prototype.getApiPaths=function(){return gqN};
of.prototype.getExtension=function(v){return _.y(v,kaS)};
of.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var Xk=function(){};
_.f(Xk,EZ);Xk.prototype.getApiPaths=function(){return $ha};
Xk.prototype.getExtension=function(v){return _.y(v,w6Z)};
Xk.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var af=function(){};
_.f(af,EZ);af.prototype.getApiPaths=function(){return VR8};
af.prototype.getExtension=function(v){return _.y(v,_.TJq)};
af.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.params&&(v.params=Q.params);V.client_message_id&&(v.clientMessageId=V.client_message_id);V.recaptcha_token&&(v.recaptchaToken=V.recaptcha_token);V.rich_message&&V.rich_message.text_segments?(Q=V.rich_message.text_segments.map(function(E){var b={};E.text&&(b.text=E.text);E.emoji_id&&(b.emojiId=E.emoji_id);return b}),v.richMessage={textSegments:Q}):V.message&&(v.message=V.message);
V.currentPlayerState&&(v.currentPlayerState=V.currentPlayerState)};var rU=function(){};
_.f(rU,EZ);rU.prototype.getApiPaths=function(){return ECx};
rU.prototype.getExtension=function(v){return _.y(v,YOx)};
rU.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var $M=function(){};
_.f($M,EZ);$M.prototype.getApiPaths=function(){return LHV};
$M.prototype.getExtension=function(v){return _.y(v,cLZ)};
$M.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.isUserInitiated&&(v.isUserInitiated=Q.isUserInitiated);Q.initiationSource&&(v.initiationSource=Q.initiationSource);V.locationInfo&&(v.context.client.locationInfo=V.locationInfo)};var If=function(){};
_.f(If,EZ);If.prototype.getApiPaths=function(){return BkR};
If.prototype.getExtension=function(v){return _.y(v,CgZ)};
If.prototype.JSC$14245_buildRequest=function(v,Q,V){Q.metadataUpdateRequest&&(Q=Q.metadataUpdateRequest,v.encryptedVideoId=Q.encryptedVideoId,Q.liveChat&&(Q=Q.liveChat,v.liveChat||(v.liveChat={}),Q.performAsExternalChannelId&&(v.liveChat.performAsExternalChannelId=Q.performAsExternalChannelId),Q.source&&(v.liveChat.source=Q.source)));var E;if(V==null?0:(E=V.liveChat)==null?0:E.liveChatSettings)v.liveChat||(v.liveChat={}),V=V.liveChat.liveChatSettings,v.liveChat.newLiveChatSettings=V,v.liveChat.newLiveChatSettingsMask||
(v.liveChat.newLiveChatSettingsMask={}),V.emojiReactionSet&&(v.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var HD=function(){};
_.f(HD,EZ);HD.prototype.getApiPaths=function(){return AVq};
HD.prototype.getExtension=function(v){return _.y(v,_.BKN)};
HD.prototype.JSC$14245_buildRequest=function(v,Q,V){V.continuation?v.continuation=V.continuation:Q.videoId&&(v.videoId=Q.videoId);V.clientParams&&(v.clientParams=V.clientParams)};var mg=function(){};
_.f(mg,EZ);mg.prototype.getApiPaths=function(){return f8N};
mg.prototype.getExtension=function(v){return _.y(v,_.Qd)};
mg.prototype.JSC$14245_buildRequest=function(v,Q){v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";v.fetchCommentsParams={};Q.videoId&&(v.fetchCommentsParams.encryptedVideoId=Q.videoId);Q.postId&&(v.fetchCommentsParams.postId=Q.postId);Q.externalChannelId&&(v.fetchCommentsParams.externalChannelId=Q.externalChannelId);Q.linkedCommentId&&(v.fetchCommentsParams.linkedCommentId=Q.linkedCommentId);(0,_.gI.isEmpty)(v.fetchCommentsParams)&&delete v.fetchCommentsParams};var U4=function(){};
_.f(U4,EZ);U4.prototype.getApiPaths=function(){return gs};
U4.prototype.JSC$14245_buildRequest=function(v){v.browseId="FEnotifications_inbox"};
U4.prototype.getExtension=function(v){return _.y(v,_.F$)};var v3=function(){};
_.f(v3,EZ);v3.prototype.getApiPaths=function(){return f8N};
v3.prototype.JSC$14245_buildRequest=function(v,Q){Q.signal==="GET_NOTIFICATIONS_MENU"&&(v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");Q.ctoken&&(v.ctoken=Q.ctoken)};
var y5j=function(){};
_.f(y5j,v3);y5j.prototype.getExtension=function(v){return _.y(v,_.F$)};
var c5s=function(){};
_.f(c5s,v3);c5s.prototype.getExtension=function(v){return _.y(v,RhQ)};var QF=function(){};
_.f(QF,EZ);QF.prototype.getApiPaths=function(){return RFQ};
QF.prototype.getExtension=function(v){return _.y(v,_.F$)};
QF.prototype.JSC$14245_buildRequest=function(){};var VF=function(){};
_.f(VF,EZ);VF.prototype.getApiPaths=function(){return snN};
VF.prototype.getExtension=function(v){return _.y(v,SZR)||void 0};
VF.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params);Q.secondaryParams&&(v.secondaryParams=Q.secondaryParams)};var Ez=function(){};
_.f(Ez,EZ);Ez.prototype.getApiPaths=function(){return uAZ};
Ez.prototype.getExtension=function(v){return _.y(v,dlN)};
Ez.prototype.JSC$14245_buildRequest=function(v,Q){Q.undo&&(v.undo=Q.undo);Q.serializedOptOut&&(v.serializedOptOut=Q.serializedOptOut);Q.serializedRecordInteractionsRequest&&(v.serializedRecordInteractionsRequest=Q.serializedRecordInteractionsRequest)};var bT=function(){};
_.f(bT,EZ);bT.prototype.getApiPaths=function(){return oqX};
bT.prototype.getExtension=function(v){return _.y(v,hcq)};
bT.prototype.JSC$14245_buildRequest=function(v,Q){Q.serializedInteractionsRequest&&(v.serializedRecordNotificationInteractionsRequest=Q.serializedInteractionsRequest)};var Fw=function(){};
_.f(Fw,EZ);Fw.prototype.getApiPaths=function(){return v1S};
Fw.prototype.getExtension=function(v){return _.y(v,_.uP)};
Fw.prototype.JSC$14245_buildRequest=function(v,Q,V){Q=Q===void 0?{}:Q;V=V===void 0?{}:V;Q.videoId?v.videoId=Q.videoId:Q.playlistId&&(v.playlistId=Q.playlistId);var E;v.crossDeviceDownloadData={isCrossDeviceDownload:(E=Q.isCrossDeviceDownload)!=null?E:!1};!V.downloadToMobileEduShown&&Q.isCrossDeviceDownload&&(v.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var b;if(E=(b=Q.offlineWebClientEligibility)!=null?b:V.offlineWebClientEligibility)v.offlineWebClientEligibility=E;var F;if(b=(F=Q.preferredFormatType)!=
null?F:V.preferredFormatType)v.preferredFormatType=b;var t;if(F=(t=Q.lastOfflineQualitySettingsSavedMs)!=null?t:V.lastOfflineQualitySettingsSavedMs)v.lastOfflineQualitySettingsSavedMs=F;Q.params&&(v.params=Q.params)};var KQ=function(){};
_.f(KQ,EZ);KQ.prototype.getApiPaths=function(){return yd};
KQ.prototype.getExtension=function(v){return _.y(v,_.RJ)};
KQ.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.token&&(v.continuation=Q.token);V.formData&&(v.formData=V.formData)};var iT=function(){};
_.f(iT,EZ);iT.prototype.getApiPaths=function(){return yd};
iT.prototype.getExtension=function(v){return _.y(v,TwZ)};
iT.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;v.continuation=V.continuation};var LQ=function(){};
_.f(LQ,EZ);LQ.prototype.getApiPaths=function(){return yd};
LQ.prototype.getExtension=function(v){return _.y(v,_.Gn)};
LQ.prototype.JSC$14245_buildRequest=function(v,Q){var V,E=Q.panelIdentifier||((V=Q.identifier)==null?void 0:V.tag);E&&(v.panelId=E);var b;if((b=Q.globalConfiguration)==null?0:b.params){var F;v.params=(F=Q.globalConfiguration)==null?void 0:F.params}if(_.Y("enable_ai_companion")){var t;Q=Q.engagementPanelExtras;if(Q==null?0:(t=Q.aiCompanionPanelExtras)==null?0:t.includeClientConversationId){var p,Z;t=(Z=(p=_.ht().resolve(_.d$(VSn)))==null?void 0:p("conversations"))==null?void 0:Z.get("conversation_id")}else t=
void 0;if(p=t)v.formData=Object.assign({},v.formData,{inputComposerFormData:{conversationId:p}})}};
_.hr.Object.defineProperties(LQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tK=function(){};
_.f(tK,EZ);tK.prototype.getApiPaths=function(){return yd};
tK.prototype.getExtension=function(v){return _.y(v,b1q)};
tK.prototype.JSC$14245_buildRequest=function(v,Q){Q.panelLoadingStrategy&&FE9(v,Q.panelLoadingStrategy)};var pQ=function(){};
_.f(pQ,EZ);pQ.prototype.getApiPaths=function(){return yd};
pQ.prototype.getExtension=function(v){return _.y(v,MIx)};
pQ.prototype.JSC$14245_buildRequest=function(v,Q){Q.loadingStrategy&&FE9(v,Q.loadingStrategy)};var eB=function(){};
_.f(eB,EZ);eB.prototype.getApiPaths=function(){return yd};
eB.prototype.getExtension=function(v){return _.y(v,_.h2)};
eB.prototype.JSC$14245_buildRequest=function(v,Q){Q.panelLoadingStrategy&&FE9(v,Q.panelLoadingStrategy)};var ZS=function(){};
_.f(ZS,EZ);ZS.prototype.getApiPaths=function(){return yd};
ZS.prototype.getExtension=function(v){return _.y(v,OJa)};
ZS.prototype.JSC$14245_buildRequest=function(v,Q){var V,E=(V=Q.contentSourcePanelIdentifier)==null?void 0:V.tag;E&&(v.panelId=E);var b;if((b=Q.globalConfiguration)==null?0:b.params){var F;v.params=(F=Q.globalConfiguration)==null?void 0:F.params}};var P3=function(){};
_.f(P3,EZ);P3.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
P3.prototype.getExtension=function(v){return _.y(v,Dlp)};
P3.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var dz=function(){};
_.f(dz,EZ);dz.prototype.getApiPaths=function(){return w8N};
dz.prototype.getExtension=function(v){return _.y(v,l6N)};
dz.prototype.JSC$14245_buildRequest=function(v,Q){Q.externalChannelId&&(v.externalChannelId=Q.externalChannelId);Q.superChatAction&&(v.superChatAction=Q.superChatAction);Q.superStickersAction&&(v.superStickersAction=Q.superStickersAction)};var hK=function(){};
_.f(hK,EZ);hK.prototype.getApiPaths=function(){return dhN};
hK.prototype.getExtension=function(v){return _.y(v,cjx)||_.y(v,lYr)};
hK.prototype.JSC$14245_buildRequest=function(v,Q){Q.videoIds?v.videoIds=Q.videoIds:Q.videoId&&(v.videoIds=[Q.videoId]);Q.playlistId&&(v.playlistId=Q.playlistId);Q.params&&(v.params=Q.params);v.excludeWatchLater=!1};var wz=function(){};
_.f(wz,EZ);wz.prototype.getApiPaths=function(){return bTR};
wz.prototype.getExtension=function(v){return _.y(v,_.tL)};
wz.prototype.JSC$14245_buildRequest=function(v,Q,V){V.create_playlist_title?v.title=V.create_playlist_title:Q.title&&(v.title=Q.title);if(V.create_playlist_privacy_status&&typeof V.create_playlist_privacy_status==="number"){a:{var E=V.create_playlist_privacy_status;if(E!==0){if(E===1){E="PUBLIC";break a}if(E===2){E="UNLISTED";break a}}E="PRIVATE"}v.privacyStatus=E}else Q.privacyStatus&&(v.privacyStatus=Q.privacyStatus);V.create_playlist_description&&(v.description=V.create_playlist_description);Q.videoIds&&
(v.videoIds=Q.videoIds);Q.params&&(v.params=Q.params);Q.sourcePlaylistId&&(v.sourcePlaylistId=Q.sourcePlaylistId)};var AK=function(){};
_.f(AK,EZ);AK.prototype.getApiPaths=function(){return iTx};
AK.prototype.getExtension=function(v){return _.y(v,lHa)};
AK.prototype.JSC$14245_buildRequest=function(v,Q){v.playlistId=Q.playlistId};var kV=function(){};
_.f(kV,EZ);kV.prototype.getApiPaths=function(){return GSR};
kV.prototype.getExtension=function(v){return _.y(v,Lla)};
kV.prototype.JSC$14245_buildRequest=function(v,Q){Q.playlistId&&(v.playlistId=Q.playlistId);Q.params&&(v.params=Q.params)};var TG=function(){};
_.f(TG,EZ);TG.prototype.getApiPaths=function(){return WMN};
TG.prototype.getExtension=function(v){return _.y(v,_.Vd)||void 0};
TG.prototype.JSC$14245_buildRequest=function(v,Q){Q.actions&&(v.actions=Q.actions);Q.params&&(v.params=Q.params);Q.playlistId&&(v.playlistId=Q.playlistId)};var YV=function(){};
_.f(YV,EZ);_.K=YV.prototype;_.K.getApiPaths=function(){return Xba};
_.K.getExtension=function(v){return _.y(v,_.PH)};
_.K.JSC$14245_buildRequest=function(v,Q){Q.videoId&&(v.playerRequest={videoId:Q.videoId},Q.playerParams&&(v.playerRequest.params=Q.playerParams),Q.racyCheckOk&&(v.playerRequest.racyCheckOk=!!Q.racyCheckOk),Q.contentCheckOk&&(v.playerRequest.contentCheckOk=!!Q.contentCheckOk));Q.params&&(v.params=Q.params);Q.inputType&&(v.inputType=Q.inputType);v.disablePlayerResponse=!0};
_.K.getRequestConfig=function(v){var Q;(v=this.JSC$14252_getStoreKey(v))&&(Q={storeStrategy:{storeKey:v}});_.Y("web_log_reels_ticks")&&(Q=Q||{},Q.requestTick="r_wrs",Q.responseTick="r_wrr");return Q};
_.K.JSC$14252_getStoreKey=function(v){v=this.getExtension(v);if(v!=null&&v.videoId){var Q={videoId:v.videoId};v.params&&(Q.params=v.params);return _.gi("reel_item_watch",Q)}};var yF=function(){};
_.f(yF,EZ);_.K=yF.prototype;_.K.getApiPaths=function(){return a8a};
_.K.getExtension=function(v){return _.y(v,_.PH)};
_.K.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;v.sequenceParams=Q.sequenceParams;var E;((E=V)==null?0:E.contentPlaybackContext)&&_.Y("web_shorts_prefetch_service_enabled")&&(v.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
_.K.JSC$14252_getStoreKey=function(v){if(_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&(v=this.getExtension(v),v==null?0:v.sequenceParams))return _.gi("reel_watch_sequence",{sequenceParams:v.sequenceParams})};
_.K.getRequestConfig=function(v){v=this.JSC$14252_getStoreKey(v);var Q;v&&(Q={storeStrategy:{storeKey:v}});Q=Q||{};Q.requestTick="r_wsrs";Q.responseTick="r_wsrr";Q.processorTick="r_wsrp";return Q};
var c3=function(){};
_.f(c3,EZ);c3.prototype.getApiPaths=function(){return a8a};
c3.prototype.getExtension=function(v){return _.y(v,_.RJ)};
c3.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.token&&(v.continuation=Q.token);var E;((E=V)==null?0:E.contentPlaybackContext)&&_.Y("web_shorts_prefetch_service_enabled")&&(v.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
c3.prototype.getRequestConfig=function(v){v=this.JSC$14252_getStoreKey(v);var Q;v&&(Q={storeStrategy:{storeKey:v}});Q=Q||{};Q.requestTick="r_wsrs";Q.responseTick="r_wsrr";Q.processorTick="r_wsrp";return Q};var fQ=function(){};
_.f(fQ,EZ);fQ.prototype.getApiPaths=function(){return eFp};
fQ.prototype.getExtension=function(v){return _.y(v,_.Vhp)};
fQ.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.flagAction&&(v.action=Q.flagAction);Q.flagRequestType&&(v.flagRequestType=Q.flagRequestType);Q.additionalDetailCheckboxChecked&&(v.additionalDetailCheckboxChecked=Q.additionalDetailCheckboxChecked);Q.legalCheckboxChecked&&(v.legalCheckboxChecked=Q.legalCheckboxChecked);Q={};V.flag_issue_type!==void 0&&(Q.issue=V.flag_issue_type);V.flag_affiliation!==void 0&&(Q.affiliation=V.flag_affiliation);V.flag_full_name&&(Q.fullName=V.flag_full_name);
Object.keys(Q).length&&(v.legalReportDetails=Q);if(V.flag_description||V.text)v.userComments=V.flag_description||V.text;Q={};V.minutes!==void 0&&V.seconds!==void 0&&(Q.minutes=V.minutes,Q.seconds=V.seconds);V.vss_id&&(Q.vssId=V.vss_id);Object.keys(Q).length&&(v.videoReportDetails=Q);Q={};V.video_ids&&(Q.videoIds=V.video_ids);V.impersonated_channel_url&&(Q.impersonatedChannelUrl=V.impersonated_channel_url);Object.keys(Q).length&&(v.channelAbuseReportDetails=Q)};
_.hr.Object.defineProperties(fQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GG=function(){};
_.f(GG,EZ);GG.prototype.getApiPaths=function(){return AkQ};
GG.prototype.getExtension=function(v){return _.y(v,n9R)};
GG.prototype.JSC$14245_buildRequest=function(v,Q){Q.blockedForKidsContent&&(v.blockedForKidsContent=Q.blockedForKidsContent)};var CQ=function(){};
_.f(CQ,EZ);CQ.prototype.getApiPaths=function(){return I88};
CQ.prototype.getExtension=function(v){return _.y(v,n6r)};
CQ.prototype.JSC$14245_buildRequest=function(v,Q,V){v.params=Q.params;V.impersonated_channel_url&&(v.impersonatedChannelUrl=V.impersonated_channel_url)};var Mx=function(){};
_.f(Mx,EZ);Mx.prototype.getApiPaths=function(){return zFS};
Mx.prototype.getExtension=function(v){return _.y(v,_.l28)};
Mx.prototype.JSC$14245_buildRequest=function(v,Q){Q.items&&(v.items=Q.items);Q.kidGaiaId&&(v.kidGaiaId=Q.kidGaiaId)};var Oz=function(){};
_.f(Oz,EZ);Oz.prototype.getApiPaths=function(){return hF8};
Oz.prototype.getExtension=function(v){return _.y(v,_.TKR)};
Oz.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params);Q.targetId&&(v.targetId=Q.targetId)};var DS=function(){};
_.f(DS,EZ);DS.prototype.getApiPaths=function(){return vCA};
DS.prototype.getExtension=function(v){return _.y(v,nma)};
DS.prototype.JSC$14245_buildRequest=function(v,Q){Q.externalVideoId&&(v.externalVideoId=Q.externalVideoId);Q.query&&(v.query=Q.query);Q.sourceTimelines&&(v.sourceTimelines=Q.sourceTimelines)};var RL=function(){};
_.f(RL,EZ);RL.prototype.getApiPaths=function(){return QAp};
RL.prototype.getExtension=function(v){return _.y(v,_.RJ)||void 0};
RL.prototype.JSC$14245_buildRequest=function(v,Q){Q.token&&(v.continuation=Q.token)};
_.fgs=function(){};
_.f(_.fgs,EZ);_.K=_.fgs.prototype;_.K.getApiPaths=function(){return QAp};
_.K.getExtension=function(v){return _.y(v,_.pF)||void 0};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$14252_getStoreKey=function(v,Q){Q=Q===void 0?{}:Q;if(!Q.disableCache&&(v=this.getExtension(v))&&v.query)return Q={query:v.query},v.params&&(Q.params=v.params),_.gi("search",Q)};
_.K.JSC$14245_buildRequest=function(v,Q,V){Q.query&&(v.query=Q.query);Q.params&&(v.params=Q.params);if(!_.Y("web_forward_suggest_stats_killswitch")){var E=_.y(Q,Q5V);E&&(v.suggestStats=E)}var b;!_.Y("kevlar_searchbox_stats_killswitch")&&((b=V.tempData)==null?0:b.gs_l)&&!_.y(Q,Q5V)&&(v.webSearchboxStatsUrl="/search?oq="+(V.tempData.oq||"")+"&gs_l="+V.tempData.gs_l);var F;if((F=V.tempData)==null?0:F.entityMid)Q=v.suggestionSearchParams||{},Q.entityMid=V.tempData.entityMid,v.suggestionSearchParams=Q;
if(_.Y("enable_desktop_vdcbg_components")||_.Y("enable_inline_muted_playback_on_web_search"))Q=_.eP().getFlag(186),v.inlineSettingStatus=Q?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";V.isFromShorts&&(v.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.K.getRequestConfig=function(v,Q){Q=Q===void 0?{}:Q;v=this.JSC$14252_getStoreKey(v,Q);var V;v&&(V={storeStrategy:{storeKey:v}});_.Y("web_log_search_ticks_ks")||(V=V||{},V.requestTick="sr_s",V.responseTick="sr_r");return V};var nQ=function(){};
_.f(nQ,EZ);nQ.prototype.getApiPaths=function(){return OTq};
nQ.prototype.getExtension=function(v){return _.y(v,Wra)};
nQ.prototype.JSC$14245_buildRequest=function(v,Q){Q.serializedGetSharingProviderDataParams&&(v.serializedGetSharingProviderDataParams=Q.serializedGetSharingProviderDataParams)};var lT=function(){};
_.f(lT,EZ);lT.prototype.getApiPaths=function(){return Dhx};
lT.prototype.getExtension=function(v){return _.y(v,HVx)};
lT.prototype.JSC$14245_buildRequest=function(v,Q){Q.endpoint&&(v.endpoint=Q.endpoint);Q.action&&(v.action=Q.action)};var qx=function(){};
_.f(qx,EZ);qx.prototype.getApiPaths=function(){return LMR};
qx.prototype.getExtension=function(v){return _.y(v,qZZ)};
qx.prototype.JSC$14245_buildRequest=function(v,Q){v.videoId=Q.videoId;Q.scheduledRedirectMetadataSourceVideoId&&(v.scheduledRedirectMetadata={sourceVideoId:Q.scheduledRedirectMetadataSourceVideoId})};var SB=function(){};
_.f(SB,EZ);SB.prototype.getApiPaths=function(){return FHR};
SB.prototype.getExtension=function(v){return _.y(v,_.SsN)};
SB.prototype.JSC$14245_buildRequest=function(v,Q){v.params=Q.params;v.correctionText=Q.correctionText};var zG=function(){};
_.f(zG,EZ);zG.prototype.getApiPaths=function(){return Hu0};
zG.prototype.getExtension=function(v){return _.y(v,_.lbA)};
zG.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params);v.searchQuery=Q.searchQuery;v.languageCode=Q.languageCode;v.kind=Q.kind;v.name=Q.name;v.externalVideoId=Q.externalVideoId};var JK=function(){};
_.f(JK,EZ);JK.prototype.getApiPaths=function(){return yVZ};
JK.prototype.getExtension=function(v){return _.y(v,IZq)};
JK.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.params=Q.params)};var Nx=function(v){this.JSC$18514_storeWithEntities=v};
_.f(Nx,EZ);Nx.prototype.getApiPaths=function(){return H5x};
Nx.prototype.getExtension=function(v){return _.y(v,mIq)||_.y(v,vOa)};
Nx.prototype.JSC$14245_buildRequest=function(v,Q,V){V.client_data&&(v.clientData=V.client_data);if(Q.commerceActionConfig){var E=Q.commerceActionConfig;Q=E.actionId;E=E.commerceActionParams;Q&&(v.actionId=Q);E&&(v.commerceActionParams=E)}else{var b=Q.actionId,F=Q.commerceActionParams;V=Q.entityKeys;b&&(v.actionId=b);F&&(v.commerceActionParams=F);var t;Q=(E=this.JSC$18514_storeWithEntities)==null?void 0:(t=E.getState())==null?void 0:t.entities;if(V&&Q){E=[];t=_.L(V);for(V=t.next();!V.done;V=t.next())if(b=
V.value,V=_.Q_(b).entityType,b=_.Fg(Q,V,b))F={},E.push((F[V]=b,F));v.entityMutationPayloads=E}}};
Nx.prototype.getRequestConfig=function(v){var Q,V=(Q=_.y(v,mIq))==null?void 0:Q.requestSequenceType;if(V&&v.clickTrackingParams&&V!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:v.clickTrackingParams,sequenceType:V}}};
Nx[w$]=[UI];var xV=function(){};
_.f(xV,EZ);xV.prototype.getApiPaths=function(){return cVV};
xV.prototype.getExtension=function(v){return _.y(v,_.k$q)};
xV.prototype.JSC$14245_buildRequest=function(v,Q){Q.feedbackData&&(v.feedbackData=Q.feedbackData);Q.params&&(v.itemParams=Q.params)};
_.hr.Object.defineProperties(xV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var B3=function(){};
_.f(B3,EZ);B3.prototype.getApiPaths=function(){return fJp};
B3.prototype.getExtension=function(v){return _.y(v,T_N)};
B3.prototype.JSC$14245_buildRequest=function(v,Q,V){V.payments_payload&&(v.paymentsPayload=V.payments_payload);V.offer_params&&(v.offerParams=V.offer_params);Q.transactionParams&&(v.transactionParams=Q.transactionParams)};var gz=function(){};
_.f(gz,EZ);gz.prototype.getApiPaths=function(){return G3N};
gz.prototype.getExtension=function(v){return _.y(v,_.YmN)};
gz.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.buybucketParams&&(v.buybucketData={params:Q.buybucketParams},Q.stickerParams?v.buybucketData.stickerParams=Q.stickerParams:(V.rich_chat_message?v.buybucketData.richChatMessage=V.rich_chat_message:V.chat_message_text&&(v.buybucketData.chatMessageText=V.chat_message_text),V.purchase_price_micros&&(v.buybucketData.purchasePriceMicros=V.purchase_price_micros.toString())));Q.donationAmountMicros&&(v.tipAmountMicros=Q.donationAmountMicros,
Q.tipParams&&(v.tipParams=Q.tipParams));Q.offerParams&&(v.offerParams=Q.offerParams);Q.productData&&(v.productData=Q.productData);Q.transactionParams&&(v.transactionParams=Q.transactionParams)};var sz=function(){};
_.f(sz,EZ);sz.prototype.getApiPaths=function(){return ClX};
sz.prototype.getExtension=function(v){return _.y(v,frN)};
sz.prototype.JSC$14245_buildRequest=function(v,Q){Q.updateFopParams&&(v.updateFopParams=Q.updateFopParams)};var uT=function(){};
_.f(uT,EZ);uT.prototype.getApiPaths=function(){return MRZ};
uT.prototype.getExtension=function(v){return _.y(v,_.gW)};
uT.prototype.JSC$14245_buildRequest=function(v,Q){Q.couponCode&&(v.couponCode=Q.couponCode);Q.params&&(v.itemParams=Q.params)};var jB=function(){};
_.f(jB,EZ);jB.prototype.getApiPaths=function(){return O0S};
jB.prototype.getExtension=function(v){return _.y(v,_.UIN)};
jB.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;Q.params&&(v.params=Q.params);V.ctk&&(v.clientToken=V.ctk)};var W3=function(v){this.JSC$18549_storeWithEntities=v};
_.f(W3,EZ);W3.prototype.getApiPaths=function(){return D0V};
W3.prototype.getExtension=function(v){return _.y(v,_.Pm)};
W3.prototype.JSC$14245_buildRequest=function(v,Q,V){V.purchase_price_micros&&(v.productData={pdgData:{purchasePriceMicros:V.purchase_price_micros.toString()}},V.rich_chat_message&&(v.productData.pdgData.richChatMessage=V.rich_chat_message),V.currency_code&&(v.productData.pdgData.currencyCode=V.currency_code));Q.transactionParams&&(v.transactionParams=Q.transactionParams);Q.clientLocationContext&&(v.clientLocationContext=Q.clientLocationContext);V.payments_payload&&(v.paymentsPayload=V.payments_payload);
V.funds_guarantee_callback_client_data&&(v.fundsGuaranteeCallbackClientData=V.funds_guarantee_callback_client_data);var E,b;V=(E=this.JSC$18549_storeWithEntities)==null?void 0:(b=E.getState())==null?void 0:b.entities;if(Q.entityKeys&&V){E=[];Q=_.L(Q.entityKeys);for(b=Q.next();!b.done;b=Q.next()){var F=b.value;b=_.Q_(F).entityType;if(F=_.Fg(V,b,F)){var t={};E.push((t[b]=F,t))}}v.entityMutationPayloads=E}};
W3[w$]=[UI];var oL=function(){};
_.f(oL,EZ);oL.prototype.getApiPaths=function(){return RPS};
oL.prototype.getExtension=function(v){return _.y(v,yvA)};
oL.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;V.backend_analytics&&(v.serializedBackendAnalyticsEvent=V.backend_analytics);Q.offerParams&&(v.offerParams=Q.offerParams)};var Xw=function(){};
_.f(Xw,EZ);Xw.prototype.getApiPaths=function(){return MRZ};
Xw.prototype.getExtension=function(v){return _.y(v,kkB)};
Xw.prototype.JSC$14245_buildRequest=function(v,Q){Q.params&&(v.itemParams=Q.params)};var aL=function(){};
_.f(aL,EZ);aL.prototype.getApiPaths=function(){return nCR};
aL.prototype.getExtension=function(v){return _.y(v,_.Fya)};
aL.prototype.JSC$14245_buildRequest=function(v,Q,V){V.resume_time_ms&&(v.resumeTimeMs=V.resume_time_ms);Q.pauseParams&&(v.pauseParams=Q.pauseParams)};var rz=function(){};
_.f(rz,EZ);rz.prototype.getApiPaths=function(){return lJa};
rz.prototype.getExtension=function(v){return _.y(v,_.cva)};
rz.prototype.JSC$14245_buildRequest=function(v,Q,V){V=V===void 0?{}:V;V.c&&(v.redeemCode=V.c);V.rd&&(v.riskData=V.rd);V.ctk&&(v.clientToken=V.ctk)};var $V=function(){};
_.f($V,EZ);$V.prototype.getApiPaths=function(){return qQ8};
$V.prototype.getExtension=function(v){return _.y(v,_.KyV)};
$V.prototype.JSC$14245_buildRequest=function(v,Q){Q.resumeParams&&(v.resumeParams=Q.resumeParams)};var IL=function(v,Q){this.clientName=v;this.defaultExpirationDelayMs=Q};
IL.prototype.put=function(v,Q){var V=this,E;return _.e(function(b){E=Object.assign({},Q.data);E.key=v;E.clientName=V.clientName;E.expireTimestampMs===void 0&&(E.expireTimestampMs=(Math.round((0,_.wO)())+V.defaultExpirationDelayMs).toString());return b.return(V.putInternal(v,E))})};
IL[w$]=[p6,p47];var Gc8=function(){IL.apply(this,arguments);this.JSC$18579_responseStore=new Map};
_.f(Gc8,IL);_.K=Gc8.prototype;_.K.get=function(v){var Q=this;return _.e(function(V){return V.return(Sv(Q,v))})};
_.K.putInternal=function(v,Q){var V=this,E,b,F;return _.e(function(t){E=V.defaultExpirationDelayMs;Q.expireTimestampMs&&(E=Number(Q.expireTimestampMs)-Math.round((0,_.wO)()),b=_.T_("mweb_override_response_store_expiration_ms"),b>0&&b<E&&(E=b));F=setTimeout(function(){V.remove(v)},E);
V.JSC$18579_responseStore.set(v,{entryData:Q,timer:F});_.q1(t)})};
_.K.remove=function(v){var Q=this;return _.e(function(V){Ct5(Q,v);_.q1(V)})};
_.K.removeAll=function(){var v=this;return _.e(function(Q){v.JSC$18579_responseStore.forEach(function(V){clearTimeout(V.timer)});
v.JSC$18579_responseStore.clear();_.q1(Q)})};
_.K.has=function(v){return!!this.JSC$18579_responseStore.get(v)};
_.K.getKeys=function(){return this.JSC$18579_responseStore.keys()};
var Sv=function(v,Q){if(v=v.JSC$18579_responseStore.get(Q))return new _.qD(v.entryData)},Ct5=function(v,Q){var V=v.JSC$18579_responseStore.get(Q);
V&&(clearTimeout(V.timer),v.JSC$18579_responseStore.delete(Q))};var KEr;var tdo=function(v,Q,V){IL.call(this,v,Q);this.token=V};
_.f(tdo,IL);_.K=tdo.prototype;_.K.get=function(v){var Q=this,V,E;return _.e(function(b){return b.nextAddress==1?b.yield(LEG(Q.token),2):b.nextAddress!=3?(V=b.yieldResult,b.yield(V.get("ResponseStore",[v,Q.clientName]),3)):(E=b.yieldResult)?b.return(new _.qD(E)):b.return(void 0)})};
_.K.putInternal=function(v,Q){var V=this,E;return _.e(function(b){if(b.nextAddress==1)return b.yield(LEG(V.token),2);E=b.yieldResult;return b.yield(E.put("ResponseStore",Q),0)})};
_.K.remove=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(LEG(Q.token),2);V=E.yieldResult;return E.return(V.delete("ResponseStore",[v,Q.clientName]))})};
_.K.removeAll=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(LEG(v.token),2);Q=V.yieldResult;return V.yield(u$V(Q,IDBKeyRange.only(v.clientName)),0)})};
_.K.has=function(){throw Error("ij");};_.H3=new _.KB("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var MK5=function(v){var Q;this.stateTagsData=(Q=v.responseContext)==null?void 0:Q.stateTags},Ogf=function(v){var Q;
return((Q=v.stateTagsData)==null?void 0:Q.stateTagsModified)||[]};var Dz0;Dz0=function(v){this.JSC$18592_responseStore=v};
_.J_=function(v,Q,V){if(!_.Y("state_tags_killswitch")){var E=new MK5(Q);if(Ogf(E).length>0){var b=v.JSC$18592_responseStore.getKeys();b=_.L(b);for(var F=b.next();!F.done;F=b.next()){F=F.value;var t=Sv(v.JSC$18592_responseStore,F);if(t){var p=_.rs(t);a:{var Z=void 0;t=Ogf(E);p=((Z=(new MK5(p)).stateTagsData)==null?void 0:Z.relevantStateTags)||[];Z=_.L(p);for(p=Z.next();!p.done;p=Z.next())if(p=p.value,p.stateTag!=null&&t.includes(p.stateTag)&&p.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){t=
!0;break a}t=!1}t&&Ct5(v.JSC$18592_responseStore,F)}}}}var d;E=(d=Q.responseContext)==null?void 0:d.maxAgeSeconds;V&&E&&Number(E)>0&&(Q=vw(Q,E),v.JSC$18592_responseStore.put(V,new _.qD(Q)))};
Dz0.prototype.handleResponse=function(v,Q){if(!Q)throw Error("jj");var V,E;Q=(V=Q.config)==null?void 0:(E=V.storeStrategy)==null?void 0:E.storeKey;_.J_(this,v,Q)};
Dz0[w$]=[_.lp];_.MaB=new _.KB("STORE_RESPONSE_PROCESSOR_TOKEN");var RIm=function(v){this.JSC$18595_responseStore=v};
RIm.prototype.handleResponse=function(v,Q){if(Q.input.match(_.Xg(a8a))){var V;if(v==null?0:(V=v.entries)==null?0:V.length)for(v=_.L(v.entries),Q=v.next();!Q.done;Q=v.next()){V=Q.value.command;var E=void 0;Q=(E=_.y(V,_.PH))==null?void 0:E.unserializedPrefetchData;if(!V||!Q)break;E=(new YV).JSC$14252_getStoreKey(V);var b=_.y(Q,EXa),F=void 0,t=void 0,p=void 0,Z=void 0,d=void 0,w=void 0,A=((F=b)==null?0:(t=F.responseContext)==null?0:t.maxAgeSeconds)&&Number((p=b)==null?void 0:(Z=p.responseContext)==null?
void 0:Z.maxAgeSeconds)>0?Number((d=b)==null?void 0:(w=d.responseContext)==null?void 0:w.maxAgeSeconds):600;E&&A>0&&(b=vw(b,A),this.JSC$18595_responseStore.put(E,new _.qD(b)));V=(new zW).JSC$14252_getStoreKey(V);Q=_.y(Q,u4q);Z=p=t=F=b=E=void 0;d=((E=Q)==null?0:(b=E.responseContext)==null?0:b.maxAgeSeconds)&&Number((F=Q)==null?void 0:(t=F.responseContext)==null?void 0:t.maxAgeSeconds)>0?Number((p=Q)==null?void 0:(Z=p.responseContext)==null?void 0:Z.maxAgeSeconds):600;V&&d>0&&(Q=vw(Q,d),this.JSC$18595_responseStore.put(V,
new _.qD(Q)))}}};
RIm[w$]=[_.lp];var nJ7=function(v,Q){this.innertubeTransportService=v;this.JSC$18598_commandHandler=Q};
nJ7.prototype.submitForm=function(v,Q,V,E,b){var F=this,t,p,Z,d,w,A;return _.e(function(k){if(k.nextAddress==1)return t={submitId:v,formData:Q,submitBehavior:V,params:E},p=_.Xg(KHA),k.yield(_.tQ(F.innertubeTransportService,t,p,b),2);Z=k.yieldResult;if(!Z)return k.return(Promise.reject(new _.xd("Submit API returned an undefined response. Submit ID: "+v)));d=Z;(A=(w=d)==null?void 0:w.onResponseReceived)&&F.JSC$18598_commandHandler.resolveCommand(A);return k.return(d)})};
nJ7[w$]=[_.wH,_.At];var ma=function(){this.scheduler=_.yX()},lgh;
ma.prototype.pause=function(){throw Error("kj");};
ma.prototype.resume=function(){throw Error("kj");};
ma.prototype.queue=function(v){var Q=this,V=_.B_(),E=_.go(this.scheduler,function(){try{var b;if(_.bd.instance)var F=_.bd.instance;else{var t=new _.xd("Error: Unexpected uninitialized CommandHandler.");_.ro(t);F=void 0}(b=F)==null||b.resolveCommand(v.command);V.resolve()}catch(p){V.reject(p)}});
V.promise.thenCatch(function(b){b instanceof _.lA&&Q.scheduler.cancelJob(E)});
return V.promise};
ma.prototype.queueAll=function(v){var Q=new Map;v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,Q.set(V.id,this.queue(V));return Q};var Shq=function(v,Q){var V=this;this.taskModel=v;this.onTaskCancelledCallback=Q;this.resolver=_.B_();v=v.proto.prefetchConfig;if(!v)throw Error("lj");if(!v.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(E){E instanceof _.lA&&(qhI(V,V.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),V.onTaskCancelledCallback(V.taskModel.id,V.jobId),V.tick("pcc"));
throw E;});
this.timerName=this.taskModel.id;_.Ct(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Shq.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 qhI=function(v,Q){_.ft({prefetchInfo:{cancellationReason:Q}},v.timerName)};
Shq.prototype.tick=function(v){_.Mp(v,void 0,this.timerName)};var vJ=function(){var v=this;this.scheduler=_.yX();this.maxInflightTasks=_.T_("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.T_("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new YIX;this.onTaskCancelled=function(Q,V){V&&v.scheduler.cancelJob(V);zI$(v,Q);Uz(v,3)}},J5h=function(){vJ.instance||(vJ.instance=new vJ);
return vJ.instance};
vJ.prototype.pause=function(){this.prefetchCoordinatorState=0};
vJ.prototype.resume=function(){Uz(this,0)};
vJ.prototype.queue=function(v){v=NZ7(this,v);Uz(this,1);return v};
vJ.prototype.queueAll=function(v){var Q=new Map;v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,Q.set(V.id,NZ7(this,V));Uz(this,1);return Q};
var NZ7=function(v,Q){var V=v.allPrefetchTasks.get(Q.id);if(V)return V.cancellablePromise;try{var E=new Shq(Q,v.onTaskCancelled)}catch(F){return _.kD(F)}V=E;V.tick("pcq");var b={prefetchInfo:{taskId:V.taskModel.id,isPrefetch:!0,fetchAction:V.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:V.taskModel.command.clickTrackingParams}};V.taskModel.csn&&(b.clientScreenNonce=V.taskModel.csn);_.ft(b,V.timerName);v.allPrefetchTasks.set(Q.id,E);v.drainingHeap.insert(-E.getPriority(),E);return E.cancellablePromise},
Uz=function(v,Q){v.prefetchCoordinatorState===Q&&(v.prefetchCoordinatorState=2,xzY(v))},xzY=function(v){for(var Q={};v.prefetchCoordinatorState!==0;Q={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(v.inflightPrefetchTasks.size>=v.maxInflightTasks){v.prefetchCoordinatorState=3;break}Q.prefetchTask$jscomp$1=v.drainingHeap.remove();if(!Q.prefetchTask$jscomp$1){v.prefetchCoordinatorState=1;break}Q.taskId$jscomp$3=Q.prefetchTask$jscomp$1.taskModel.id;if(v.allPrefetchTasks.has(Q.taskId$jscomp$3)){var V=-1;v.coordinatorTimeoutMs>0&&(V=_.go(v.scheduler,function(E){return function(){Qu(v,E.taskId$jscomp$3,Error("nj"))}}(Q),v.coordinatorTimeoutMs));
v.inflightPrefetchTasks.set(Q.taskId$jscomp$3,V);if(!v.JSC$18615_commandHandler){if(!_.bd.instance){Qu(v,Q.taskId$jscomp$3,Error("oj"));continue}v.JSC$18615_commandHandler=_.bd.instance}a:switch(Q.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":V=1;break a;default:V=0}Q.prefetchTask$jscomp$1.jobId=v.scheduler.addJob(function(E){return function(){E.prefetchTask$jscomp$1.tick("pcr");try{v.JSC$18615_commandHandler.resolveCommand(E.prefetchTask$jscomp$1.taskModel.command)||
Qu(v,E.taskId$jscomp$3,Error("pj"))}catch(b){Qu(v,E.taskId$jscomp$3,b)}}}(Q),V,0)}}},BZn=function(v,Q){(Q=zI$(v,Q))!=null&&(Q.resolver.resolve(),Q.tick("pce"));
Uz(v,3)},Qu=function(v,Q,V){(Q=zI$(v,Q,V))!=null&&(Q.resolver.reject(V),Q.tick("pcc"),qhI(Q,"CANCELLATION_REASON_ERROR"),Math.random()<=_.T_("prefetch_coordinator_error_logging_sampling_rate")&&(V=new _.xd("Prefetch Command failed.",Q.taskModel.id,V.message),_.ro(V)));
Uz(v,3)},zI$=function(v,Q,V){var E=v.allPrefetchTasks.get(Q);
E?((V=v.inflightPrefetchTasks.get(Q))&&V!==-1&&v.scheduler.cancelJob(V),v.inflightPrefetchTasks.delete(Q),v.allPrefetchTasks.delete(Q)):_.Iy(new _.xd("Unexpected missing prefetch task when deleting task.",Q,V==null?void 0:V.message));return E};var gJ0=function(v,Q,V,E,b){this.id=v;this.triggerOn=Q;this.cancelOn=V;this.command=E;this.proto=b};
_.hr.Object.defineProperties(gJ0.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var sD7=function(){this.JSC$18620_prefetchCoordinator=J5h();lgh||(lgh=new ma);this.defaultCoordinator=lgh},u9q;
sD7.getInstance=function(){u9q||(u9q=new sD7);return u9q};
sD7.prototype.get=function(v){switch(v){case 0:return this.JSC$18620_prefetchCoordinator;default:return this.defaultCoordinator}};var Vu=function(){this.coordinatorSupplier=sD7.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},oJq=function(v){var Q=_.Mo()||void 0,V=Object.keys(jDf)[0];
if(V){var E=v.taskIdByTriggerId.get(V);if(E!=null){v.taskIdByTriggerId.delete(V);V=[];E=_.L(E);for(var b=E.next();!b.done;b=E.next())if(b=v.tasks.get(b.value))Q!=="UNDEFINED_CSN"&&(b.csn=Q),V.push(b);V=ZK9(V);Q=[];V=_.L(V);for(E=V.next();!E.done;E=V.next()){b=_.L(E.value);E=b.next().value;b=b.next().value;E=v.coordinatorSupplier.get(E).queueAll(b);E=_.L(E);var F=E.next();for(b={};!F.done;b={taskId$jscomp$9:void 0},F=E.next()){var t=_.L(F.value);F=t.next().value;t=t.next().value;b.taskId$jscomp$9=
F;F=t;Q.push(b.taskId$jscomp$9);v.queuedPromisesByTask.set(b.taskId$jscomp$9,_.qV(F,function(p){return function(){We0(v,p.taskId$jscomp$9)}}(b)))}}}}else _.Iy(new _.xd("Unexpected malformed TriggerEvent."))};
Vu.prototype.trigger=function(v,Q){var V=this,E=this.tasks.get(v);if(!E||this.queuedPromisesByTask.has(v))return!1;XM7(this,v,E.triggerOn);Q!=="UNDEFINED_CSN"&&(E.csn=Q);Q=this.coordinatorSupplier.get(E.taskType).queue(E);this.queuedPromisesByTask.set(v,_.qV(Q,function(){We0(V,v)}));
return!0};
Vu.prototype.cancel=function(v){var Q=this.queuedPromisesByTask.get(v);if(Q)Q.cancel();else return We0(this,v)};
var We0=function(v,Q){v.queuedPromisesByTask.delete(Q);var V=v.tasks.get(Q);if(!V)return!1;v.tasks.delete(Q);XM7(v,Q,V.triggerOn);(V=eVZ(V.cancelOn))&&(v=v.taskIdByCancelId.get(V))&&v.delete(Q);return!0},XM7=function(v,Q,V){(V=Object.keys(V)[0])&&(v=v.taskIdByTriggerId.get(V))&&v.delete(Q)};var jDf={taskRegistered:{}},EW=function(){Vu.instance||(Vu.instance=new Vu);this.JSC$18629_taskManager=Vu.instance};
_.f(EW,Z8);
EW.prototype.resolveCommand=function(v){var Q=this,V,E;return _.e(function(b){V=_.y(v,Qu8);if((E=V)==null||!E.tasks){var F=new _.xd("RegisterTasksCommand is missing tasks.");_.ro(F);return b.return()}F=Q.JSC$18629_taskManager;for(var t=_.L(V.tasks),p=t.next();!p.done;p=t.next())if(p=p.value,p=p.id&&p.triggerOn&&p.cancelOn&&p.command?new gJ0(p.id,p.triggerOn,p.cancelOn,p.command,p):void 0,p){var Z=Object.keys(p.triggerOn)[0];if(Z){var d=eVZ(p.cancelOn);d?(F.tasks.set(p.id,p),F.taskIdByTriggerId.has(Z)||F.taskIdByTriggerId.set(Z,
new Set),F.taskIdByTriggerId.get(Z).add(p.id),F.taskIdByCancelId.has(d)||F.taskIdByCancelId.set(d,new Set),F.taskIdByCancelId.get(d).add(p.id)):_.Iy(new _.xd("Unexpected malformed cancelOn field."))}else _.Iy(new _.xd("Unexpected malformed triggerOn field."))}else _.Iy(new _.xd("Unexpected malformed Task proto."));oJq(Q.JSC$18629_taskManager);_.q1(b)})};var agf={},r5h=(agf.rendered={priority:_.Y("web_adaptive_early_init")?8:0,callback:function(){var v={};v.numCpu=navigator.hardwareConcurrency;var Q={};Q.ramGb=_.bb.navigator.deviceMemory;var V={staticContext:{}};Q.ramGb&&hOE(Q.ramGb)&&(V.staticContext.memoryTotalKbytes=(Q.ramGb*1048576).toString());v.numCpu&&hOE(v.numCpu)&&(V.staticContext.cpuCores=v.numCpu);if(_.Y("web_enable_adaptive_appl_signal")){v={};Q=k59();Q=Q.length>0?Q[0]:void 0;var E,b=(E=_.lI("rses_dpj"))!=null?E:Q==null?void 0:Q.tick.rses_dpj,
F;E=(F=_.lI("rsef_dpj"))!=null?F:Q==null?void 0:Q.tick.rsef_dpj;b&&Number(b)>0&&E&&Number(E)>0&&(F=Math.ceil(Number(E)-Number(b)),F>0&&(v.loadLatency=F));v.loadLatency&&hOE(v.loadLatency)&&(V.appL=v.loadLatency.toString())}_.X0("applicationStarted",V);whZ=V;_.Y("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Al9)}},agf);var $zf=new _.KB("WINDOW_ON_ERROR"),Ig0=new _.KB("ERROR_WEIGHT_MAPS"),Hgs=new _.KB("INIT_ERROR");var mzh={},Uzh=(mzh.initialized={priority:10,callback:function(v){v.injector.resolve(Hgs)()}},mzh);var vU0=function(){},Qrn=function(){var v=_.Q9("meta_logger_impl");
v||(v=new vU0,_.Pr("meta_logger_impl",v));return v},V_f=function(){Qrn().csiSubscriptionKey=gNG("meta_logging_csi_event",function(v){var Q=v.timerName;
if(v=v.timelineData){_.Ct(Q,{startTime:v.startTime},Q);v.infos&&_.ft(v.infos,Q);for(var V=_.L(Object.keys(v.ticks)),E=V.next();!E.done;E=V.next())E=E.value,_.Mp(E,v.ticks[E],Q)}})};
vU0.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&jO3(this.csiSubscriptionKey)};var EUI={},baI=(EUI.initialized={priority:10,callback:function(){V_f()}},EUI);var F$h=function(v,Q){this.innertubeClientName=v;this.JSC$18640_prefCookie=Q};
F$h.prototype.record=function(){if(_.Y("web_li_record_binary_eval_tick")){var v=_.lI("rsef_dpj");var Q=_.lI("rses_dpj");v=v!==void 0&&Q!==void 0?Math.round(v-Q):void 0;if(v!==void 0&&v>0){Q=_.TA(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var V=this.poolSize;if(!(Q.valuesSeen>=1E9)){if(Q.valuesSample.length<V)Q.valuesSample.push(v);else{var E=Math.floor(Math.random()*(Q.valuesSeen+1));E<V&&(Q.valuesSample[E]=v)}Q.valuesSeen+=1}_.kN(this.storagePrefix+"-"+this.innertubeClientName,
Q,2592E3);v=Q.valuesSample;Q=PGb(v);v=v.length<this.poolSize?void 0:Q<400?1:Q<1700?2:3;v!==void 0&&(this.JSC$18640_prefCookie.set(this.cookiePrefix+this.innertubeClientName,v),this.JSC$18640_prefCookie.save())}}else _.YN(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18640_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18640_prefCookie.save()};
F$h[w$]=[p6,Ij];var K$5=function(){F$h.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.f(K$5,F$h);var iaY=new _.KB("PAGE_LOAD_TIME_TOKEN");var L$f=function(v){this.signal=v;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;v.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.go(_.XT,this.disableLoggingAndSendPayload,1E4)};
L$f.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.XT.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),t_n(this))};
var t_n=function(v){var Q=_.CC();if(Q){var V={webClientComponentsData:{components:Array.from(v.ids,function(E){return{id:E}})}};
v.ids.clear();_.tR().visualElementStateChanged(Q,V)}};var pRj=f_({a11y:B08});_.eps=Gr(pRj)(pRj.a11y,{ephemeralActionSelector:function(v){return v.ephemeralAction||null}});var ZaY=f_({continuation:WRx});var PH5=Gr(ZaY)(ZaY.continuation,{continuationCommandSelector:function(v){return v.continuationCommand}});var dAn=new _.KB("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var br=function(v,Q){this.JSC$18669_storeWithEntities=v;this.JSC$18669_commandHandler=Q;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
br.prototype.start=function(){this.JSC$18669_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
br.prototype.observeDownloadingEntities=function(){var v=_.sZb(this.JSC$18669_storeWithEntities.getState().entities).map(function(E){return uYb(E)});
if(v.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var Q={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:myT()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.I$(_.Lt("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18669_commandHandler.resolveCommand(Q)}this.downloadingEntities=v}else if(this.downloadingEntities.length){var V=gpB(this.JSC$18669_storeWithEntities.getState().entities).map(function(E){return uYb(E)});
this.downloadingEntities.filter(function(E){return V.includes(E)}).length&&(v={openPopupAction:o1o()},this.JSC$18669_commandHandler.resolveCommand(v));
this.downloadingEntities=[]}};
br[w$]=[UI,_.At];var hpI;_.Fm=function(v,Q,V,E,b,F,t,p){this.JSC$18672_playerApiPromise=v;this.JSC$18672_commandHandler=Q;this.JSC$18672_screenManager=V;this.offlineWebClientEligibility=E;this.JSC$18672_prefStorage=b;this.JSC$18672_actionRouter=F;this.entityTypeMap=t;this.JSC$18672_persistentStorePromiseAccessor=p;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
hpI=function(){var v=_.ht().resolve(_.Fm),Q;_.e(function(V){if(V.nextAddress==1)return v.downloadFailureListenerBound?V.return():V.yield(v.JSC$18672_playerApiPromise,2);Q=V.yieldResult;Q.addEventListener("onOfflineOperationFailure",function(E){if(E.failureReason&&E.entityKey&&E.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(E.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var b=_.Q_(E.entityKey).entityId;b&&v.JSC$18672_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
b)}else if(_.Y("kevlar_woffle")){b=v.JSC$18672_commandHandler;var F=b.resolveCommand;E=E.failureReason;var t=_.Lt("TRANSFER_FAILED",void 0,"Download failed");E==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(t=_.Lt("STORAGE_FULL",void 0,"Storage full"));F.call(b,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.I$(t),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
v.downloadFailureListenerBound=!0;_.q1(V)})};
_.Fm.prototype.deleteVideo=function(v,Q){var V=this,E,b,F;return _.e(function(t){if(t.nextAddress==1)return t.yield(V.JSC$18672_playerApiPromise,2);E=t.yieldResult;F={offlineLoggingData:{offlineDeleteReason:(b=Q)!=null?b:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return t.yield(E.queueOfflineAction(v,V.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",F),0)})};
_.Fm.prototype.pauseVideoDownload=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.JSC$18672_playerApiPromise,2);V=E.yieldResult;V.pauseVideoDownload(v);_.q1(E)})};
_.Fm.prototype.resumeVideoDownload=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.JSC$18672_playerApiPromise,2);V=E.yieldResult;return E.yield(V.resumeVideoDownload(v),0)})};
_.Fm[w$]=[_.m0,_.At,_.o5,dAn,v$,cm,JwZ,NW];var wRm=new _.KB("DOWNLOAD_STATE_STORE_TOKEN");var Aaf=function(v,Q){this.JSC$18693_persistentStorePromiseAccessor=v;this.store=Q;this.upliftCompletionResolver=new _.bK},YXm=function(){var v=_.ht().resolve(keh),Q;
_.e(function(V){switch(V.nextAddress){case 1:if(v.upliftImplPromise)return V.return(v.upliftImplPromise);_.GC(V,2);v.upliftImplPromise=Tb$(v);return V.yield(v.upliftImplPromise,4);case 4:v.upliftCompletionResolver.resolve();_.FT(V,3);break;case 2:throw Q=_.n$(V),v.upliftCompletionResolver.reject(Q),Q;case 3:return V.return(v.upliftImplPromise)}})},Tb$=function(v){var Q,V,E;
return _.e(function(b){switch(b.nextAddress){case 1:return _.mX("LOGGED_IN")?b.yield(v.JSC$18693_persistentStorePromiseAccessor(),2):b.return();case 2:Q=b.yieldResult;if(!Q)return _.Mp("vdeur"),b.return();_.Mp("vdeus");_.GC(b,3);return b.yield(ya5(Q),5);case 5:V=b.yieldResult;v.store.dispatch(CgE(V));Q.observe(function(F){M6Z(v.store,F)});
_.FT(b,4);break;case 3:throw E=_.n$(b),_.Mp("vdeur"),E;case 4:_.Mp("vdeuc"),_.q1(b)}})},ya5=function(v){var Q;
return _.e(function(V){if(V.nextAddress==1)return V.yield(TFG(v),2);Q=V.yieldResult;return V.return(Q.reduce(function(E,b){if(!b.data||!b.key||!b.entityType)return E;E[b.entityType]||(E[b.entityType]={});E[b.entityType][b.key]=b.data;return E},{}))})};
Aaf[w$]=[NW,_.Uj];var keh;keh=new _.KB("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Kc=new _.KB("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var ir=function(v,Q){this.JSC$18696_persistentStorePromiseAccessor=v;this.transportService=Q};
ir.prototype.refresh=function(){var v=this,Q,V,E,b;return _.e(function(F){if(F.nextAddress==1)return _.mX("LOGGED_IN")?F.yield(v.JSC$18696_persistentStorePromiseAccessor(),2):F.return();if(F.nextAddress!=3)return(Q=F.yieldResult)?F.yield(HyZ(Q),3):F.return();if((V=F.yieldResult)&&!(Number(V.data.refreshTimestampMs||0)<(0,_.wO)()))return F.return();E={browseId:"SPaccount_downloads"};b=_.Xg(gs);_.tQ(v.transportService,E,b).then(function(t){var p;if(Q&&(t==null?void 0:(p=t.responseContext)==null?void 0:
p.maxAgeSeconds)!==0){var Z;p=(t==null?void 0:(Z=t.responseContext)==null?void 0:Z.maxAgeSeconds)||604800;Z=String(Math.floor((0,_.wO)())+p*1E3);Q.put("service:downloads_settings:fallback",new _.qD({innertubeResponse:t,refreshTimestampMs:Z}))}});
_.q1(F)})};
ir[w$]=[_.H3,_.wH];var Lc=function(v,Q){this.JSC$18700_playerPromise=v;this.store=Q;this.started=!1};
Lc.prototype.start=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return v.started?V.return():V.yield(v.JSC$18700_playerPromise,2);Q=V.yieldResult;Q.addEventListener("onOrchestrationBecameLeader",v.updateIsLeader.bind(v,!0));Q.addEventListener("onOrchestrationLostLeader",v.updateIsLeader.bind(v,!1));if(Q.isOrchestrationLeader)v.updateIsLeader(Q.isOrchestrationLeader());else{var E=new _.xd("Function isOrchestrationLeader is undefined",{"player.isReady":Q.isReady(),"player.playVideo":Q.playVideo?
"defined":"undefined"});_.ro(E);v.updateIsLeader(!1)}v.started=!0;_.q1(V)})};
Lc.prototype.updateIsLeader=function(v){this.store.dispatch(_.U2({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:v}}))};
Lc[w$]=[_.m0,_.Uj];var caj=function(v,Q){this.networkStatusManager=v;this.JSC$18703_prefStoragePromise=Q;this.redirectsToPreload=["https://youtube.com"]},fQn=function(){var v=_.ht().resolve(caj),Q,V,E,b,F,t;
_.e(function(p){switch(p.nextAddress){case 1:return p.yield(v.JSC$18703_prefStoragePromise,2);case 2:Q=p.yieldResult;if(!(V=Q)){p.jumpTo(3);break}return p.yield(Q.get("yt-redirect-prefetch-id"),4);case 4:V=p.yieldResult;case 3:if(V||!v.networkStatusManager.isNetworkAvailable())return p.return();E={cache:"reload",redirect:"manual"};b=_.L(v.redirectsToPreload);F=b.next();case 5:if(F.done){if(!Q){p.jumpTo(0);break}return p.yield(Q.set("yt-redirect-prefetch-id",!0,86400),0)}t=F.value;_.GC(p,8);return p.yield(_.bb.fetch(t,
E),10);case 10:_.FT(p,6);break;case 8:_.n$(p);case 6:F=b.next(),p.jumpTo(5)}})};var Gef=function(v){this.JSC$18709_pageManager=v},CHn=function(v){var Q=[];
fCB(["videoId","contentId"],v.JSC$18709_pageManager.data,new Set,Q);return Q},M_d=function(v){return CHn(v).filter(function(Q){return Q.contentType==="video"}).map(function(Q){return Q.contentId}).filter(function(Q){return Q!==void 0})};
Gef[w$]=[_.oJ];var Oaj=new _.KB("PAGE_CONTENT_EXTRACTOR_TOKEN");var tm=function(v){v?(this.container=v,this.containerWasInjected=!0):this.containerWasInjected=!1};
tm.prototype.openDialog=function(v,Q,V){var E=this,b;return _.e(function(F){(b=E.container)==null||b.openDialog(v,Q,V);_.q1(F)})};
tm.prototype.closeDialog=function(){var v=this,Q;return _.e(function(V){(Q=v.container)==null||Q.closeDialog();_.q1(V)})};
tm.prototype.isDialogOpen=function(){var v=this,Q,V;return _.e(function(E){return E.return((V=(Q=v.container)==null?void 0:Q.isDialogOpen())!=null?V:!1)})};
tm[w$]=[_.d$(QPA)];_.DA0=new _.KB("POPUP_CONTROLLER_TOKEN");var Rpq=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Rpq.prototype.registerPanel=function(v,Q){if(v){this.panelMap.set(v,Q);var V=this.pendingPanelResolvers.get(v);V&&(V.resolve(Q),this.pendingPanelResolvers.delete(v))}};
Rpq.prototype.getPanel=function(v){var Q=this,V;return _.e(function(E){return(V=Q.panelMap.get(v))?E.return(V):E.return(nUd(Q,v))})};
var nUd=function(v,Q){var V,E;return _.e(function(b){if(V=v.pendingPanelResolvers.get(Q))return b.return(V.promise);E=new _.bK;v.pendingPanelResolvers.set(Q,E);return b.return(E.promise)})},lQn=function(v,Q){Rpq.call(this);
var V=this;this.popupController=v;this.persistentPanelController=Q;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return V.panelMap.size}}};
_.f(lQn,Rpq);_.K=lQn.prototype;_.K.getReloadContinuation=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.getPanel(v),2);V=E.yieldResult;return E.return(V.getReloadContinuation())})};
_.K.showPanel=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T;return _.e(function(c){if(c.nextAddress==1){V=v;E=V.identifier;b=V.panelContents;F=V.config;t=V.extras;p=V.panelUpdatableFields;Z=V.updatePanelContinuationData;d=v.target;Z&&Q.updatePanelContinuationDatas.set(E,Z);if((w=F)==null?0:(A=w.engagementPanelPopupPresentationConfig)==null?0:A.popupType)if(k=F.engagementPanelPopupPresentationConfig.popupType,d===void 0&&(d=document.body),k==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!Q.persistentPanelController)return _.Iy(new _.xd("Persistent panel controller is not available.")),
c.return();var C=Q.persistentPanelController;C.persistentPanelIdentifiers.has(E)||(C.persistentPanelWrapper.appendChild(C.engagementPanelElement({panelIdentifier:E},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),C.persistentPanelIdentifiers.add(E));a:switch(_.zw.currentPageSubTypeSelector(C.store.getState())){case "watch":var R="WATCH";break a;default:R="APP"}_.qXI(C,R);C.store.dispatch(swZ(!0))}else{if(k==="PANEL_POPUP_TYPE_DIALOG"||k==="PANEL_POPUP_TYPE_DROPDOWN"){C=c.return;R=Q.popupController;
var l=R.openPopup;a:switch(k){case "PANEL_POPUP_TYPE_DIALOG":var S="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":S="DROPDOWN";break a;default:throw Error("rj`"+k);}return C.call(c,l.call(R,E,b,S,d))}_.Iy(new _.xd("Popup type "+k+" not supported in PanelController."))}return c.yield(Q.getPanel(E),2)}T=c.yieldResult;(b||p)&&T.updatePanel(b,!1,t,p);T.showPanel(t);_.q1(c)})};
_.K.hidePanel=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return V=v,E=V.identifier,t.yield(Q.getPanel(E),2);b=t.yieldResult;b.hidePanel();Q.popupController.closePopup(E);(F=Q.persistentPanelController)!=null&&F.persistentPanelIdentifiers.has(E)&&F.store.dispatch(swZ(!1));_.q1(t)})};
_.K.isVisible=function(v,Q){var V=this,E;return _.e(function(b){if(b.nextAddress==1)return Q&&!V.panelMap.has(v)?b.return(!1):b.yield(V.getPanel(v),2);E=b.yieldResult;return b.return(E.isVisible())})};
_.K.updatePanel=function(v){var Q=this,V,E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1){V=v;E=V.identifier;b=V.panelContents;F=V.shouldFocus===void 0?!1:V.shouldFocus;t=V.extras;p=V.panelUpdatableFields;Z=V.updatePanelContinuationData;if(!b&&!p)return w.return();Z&&Q.updatePanelContinuationDatas.set(E,Z);_.Y("enable_ai_companion")&&E==="PAai_companion"&&_.Zz.remove("youchat_messages_section");return w.yield(Q.getPanel(E),2)}d=w.yieldResult;d.updatePanel(b,F,t,p);b&&_.Y("enable_ai_companion")&&
Q.registerPanelContent(E,b);_.q1(w)})};
_.K.registerPanelContent=function(v,Q){v&&this.panelContentMap.set(v,Q)};
_.K.unregisterPanelContent=function(v){this.panelContentMap.delete(v)};
_.K.getPanelContent=function(v){return this.panelContentMap.get(v)};
_.K.getUpdatePanelContinuationData=function(v){return this.updatePanelContinuationDatas.get(v)};
lQn[w$]=[_.DA0,_.d$(_.mO)];var pc=function(v,Q){this.innertubeTransportService=v;this.JSC$18728_screenManager=Q},SXd=function(v){var Q;
return!((Q=v.panelLoadingStrategy)==null||!Q.requestTemplate)};
pc.prototype.makeRequest=function(v){var Q=this,V,E;return _.e(function(b){switch(b.nextAddress){case 1:if(!SXd(Q)){b.jumpTo(2);break}_.GC(b,3);return b.yield(_.xW(Q.innertubeTransportService,v),5);case 5:return V=b.yieldResult,V?b.return(V.content):(_.ro(Error("sj")),b.return(void 0));case 3:E=_.n$(b),_.ro(E);case 2:return b.return(void 0)}})};
pc.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
pc.prototype.execute=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A;return _.e(function(k){if(k.nextAddress==1){V=v;E=V.data;b=V.fallbackVe;F=V.parentVe;t=V.createScreenConfig;p=V.renderFn;Z=V.command;Q.panelLoadingStrategy=E;var T,c,C=((T=Q.panelLoadingStrategy)==null?0:T.screenVe)?(c=Q.panelLoadingStrategy)==null?void 0:c.screenVe:b;C&&_.S5(Q.JSC$18728_screenManager,C,F,t);return(d=Q.getContent())?k.yield(p(d),2):k.jumpTo(2)}return k.nextAddress!=4?SXd(Q)?k.yield(Q.makeRequest(Z),4):k.return():(A=w=
k.yieldResult)?k.yield(p(A),0):k.return()})};
pc[w$]=[_.wH,_.o5];var zp7;zp7=function(v,Q){this.engagementPanelElement=v;this.store=Q;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.qXI=function(v,Q){var V=v.persistentPanelContainerMap.get(Q);V?V.contains(v.persistentPanelWrapper)||(v=v.persistentPanelWrapper,_.od=!0,_.XL.set(v,!0),V.insertBefore(v,null),_.XL.delete(v),_.od=!1):_.Iy(new _.xd("Persistent panel container not found for surface "+Q+"."))};
zp7[w$]=[VYx,_.Uj];var eF=function(){var v=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){v.isHovered=!0;var Q;(Q=v.hoverEnterCallback)==null||Q.call(v)};
this.onHoverLeft=function(){v.isHovered=!1;var Q;(Q=v.hoverLeaveCallback)==null||Q.call(v)}};
eF.prototype.getContainer=function(){return _.ax()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
eF.prototype.openSheet=function(v,Q){var V=this,E,b,F,t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:return E={stack:[],error:void 0,hasError:!1},_.GC(w,2,3),b=iH,w.yield(V.isSheetOpen(),5);case 5:F=w.yieldResult;A38(E,yF9(b));if(!F){w.jumpTo(6);break}if(!V.shouldPreventClosingWhileHovered){if(!_.Y("delay_sheet_open_killswitch")){if(_.Y("web_close_sheet_if_same_target_killswitch")&&Q&&V.currentTarget===Q)return(t=V.getContainer())==null||t.closeSheet(),w.return();V.pendingData={data:v,
target:Pah(V,Q)};return w.return()}w.jumpTo(6);break}if(V.currentTarget===Q)return w.return();Ja7(V);return w.yield((p=V.getContainer())==null?void 0:p.closeSheet(),6);case 6:if(v.viewModel&&(v={viewModel:v.viewModel,sheetPosition:v.sheetPosition,expandToFullWidth:v.expandToFullWidth}),(Z=V.getContainer())==null||Z.openSheet(v,Q),V.currentTarget=Q,V.shouldPreventClosingWhileHovered){var A;(A=V.currentTarget)==null||A.addEventListener("mouseenter",V.onHoverEntered);var k;(k=V.currentTarget)==null||
k.addEventListener("mouseleave",V.onHoverLeft);var T;A=(T=V.getContainer())==null?void 0:T.getSheetContainerElement();A==null||A.addEventListener("mouseenter",V.onHoverEntered);A==null||A.addEventListener("mouseleave",V.onHoverLeft);V.onHoverEntered()}case 3:_.O_(w);k08(E);_.Ra(w,0);break;case 2:d=_.n$(w),E.error=d,E.hasError=!0,w.jumpTo(3)}})};
eF.prototype.closeSheet=function(){var v=this;return _.e(function(Q){return v.hideDelayMs?(setTimeout(function(){return _.e(function(V){return V.yield(Nbh(v),0)})},v.hideDelayMs),Q.return()):Q.yield(Nbh(v),0)})};
var Nbh=function(v){var Q;return _.e(function(V){if(V.nextAddress==1){if(v.shouldPreventClosingWhileHovered){if(v.isHovered)return V.return();Ja7(v)}return V.yield((Q=v.getContainer())==null?void 0:Q.closeSheet(),2)}if(V.nextAddress!=4)return v.shouldPreventClosingWhileHovered=!1,v.currentTarget=void 0,!v.pendingData||_.Y("delay_sheet_open_killswitch")?V.jumpTo(0):V.yield(v.openSheet(v.pendingData.data,v.pendingData.target),4);v.pendingData=void 0;_.q1(V)})};
eF.prototype.isSheetOpen=function(){var v=this,Q,V;return _.e(function(E){return E.return((V=(Q=v.getContainer())==null?void 0:Q.isSheetOpen())!=null?V:!1)})};
var Ja7=function(v){var Q;(Q=v.currentTarget)==null||Q.removeEventListener("mouseenter",v.onHoverEntered);var V;(V=v.currentTarget)==null||V.removeEventListener("mouseleave",v.onHoverLeft);var E;Q=(E=v.getContainer())==null?void 0:E.getSheetContainerElement();Q==null||Q.removeEventListener("mouseenter",v.onHoverEntered);Q==null||Q.removeEventListener("mouseleave",v.onHoverLeft)},Pah=function(v,Q){if(!_.Y("web_parent_target_for_sheets"))return Q;
var V,E;return(E=(V=v.getContainer())==null?void 0:V.getParentTarget(Q))!=null?E:Q};var QX=window.documentPictureInPicture;var qFm=_.s$(["dark"]),SFt=_.s$(["system-icons"]),zVm=_.s$(["typography"]),JJt=_.s$(["lang"]),NFZ=_.s$(["style"]),DTQ=_.s$(["dir"]),RVS=_.s$(["rounded-container"]),nrh=_.s$(["style"]),BFE=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ZY=function(v){this.JSC$18746_clientRoot=v;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ZY.prototype.openWindow=function(v){var Q=this,V,E;return _.e(function(b){switch(b.nextAddress){case 1:if(!window.documentPictureInPicture||!_.Rh()||Q.currentPipWindow)return b.return(!1);_.GC(b,2);return b.yield((E=QX?QX:null)==null?void 0:E.requestWindow(v),4);case 4:V=b.yieldResult;_.FT(b,3);break;case 2:return _.n$(b),b.return(!1);case 3:if(!V)return b.return(!1);V.addEventListener("pagehide",function(){xA7(Q)});
V.addEventListener("resize",Q.handlePipWindowResize);xTG(V);stb(V);wgT(V);return b.yield(OKE(V),5);case 5:if(!G1S())return b.return(!1);Q.currentPipWindow=V;Q.JSC$18746_eventForwarder=grh(V,Q.JSC$18746_clientRoot);Q.pipWindowResizeDelay=new _.ky(function(){Q.currentPipWindow&&_.mb(Q.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.DT(Q.currentPipWindow.innerWidth,Q.currentPipWindow.innerHeight)])},V);
Q.pipWindowResizeDelay.start();return b.return(!0)}})};
ZY.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var xA7=function(v){if(v.currentPipWindow){var Q,V;(Q=QX?QX:null)==null||(V=Q.window)==null||V.close();v.currentPipWindow.removeEventListener("resize",v.handlePipWindowResize);var E;(E=v.pipWindowResizeDelay)==null||E.dispose();v.pipWindowResizeDelay=void 0;var b;(b=v.JSC$18746_eventForwarder)==null||b.stop();v.JSC$18746_eventForwarder=void 0;Q=_.L(v.onCloseCallbacks);for(V=Q.next();!V.done;V=Q.next())V=V.value,V();v.onCloseCallbacks=[];v.currentPipWindow=null}};
ZY.prototype.getWindow=function(){return this.currentPipWindow};
var Bbn=function(v,Q){var V;(V=v.onCloseCallbacks)==null||V.push(Q)};
ZY.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Rh()};
_.hr.Object.defineProperties(ZY.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ZY[w$]=[kLN];var gUY=new _.KB("PICTURE_IN_PICTURE_CONTROLLER");var uX0=function(v,Q){this.lengthY=this.lengthX=0;this.lengthX=Q.x-v.x;this.lengthY=Q.y-v.y};var srf=function(){},GTI=function(v,Q){var V;
(V=v.headerElement)==null||V.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:Q}))};var ub7=function(){};
ub7.prototype.openPopup=function(v,Q,V,E){var b=this,F;return _.e(function(t){if(!b.container)return t.return();F={openPopupAction:{popup:Q,popupType:V,uniqueId:v}};return t.return(b.container.handleOpenPopupAction(F,E))})};
ub7.prototype.closePopup=function(v){this.container&&this.container.closePopup(v)};var jrf=function(){this.openTunnels=new Map},clo=function(v,Q,V){if(rJ0(V)){var E=_.me(V,"gclid");
V={handleEvent:function(p){Q&&!Q.closed&&typeof Q.postMessage==="function"&&p&&p.origin&&p.source===Q&&p.data&&p.data.action==="gcl_setup"&&Q.postMessage(Object.assign({},{action:"gcl_transfer"},E&&{gclid:E},{gadSource:2}),p.origin)}};
for(var b=_.L(v.openTunnels),F=b.next();!F.done;F=b.next()){var t=_.L(F.value);F=t.next().value;t=t.next().value;if(F.closed)try{window.removeEventListener("message",t),v.openTunnels.delete(F)}catch(p){_.ro(p)}}Q&&v.openTunnels.size<15&&(v.openTunnels.set(Q,V),window.addEventListener("message",V))}};var W$5=function(){this.clientParams=new Map},EP8=function(v){for(var Q=_.L(v.clientParams.keys()),V=Q.next();!V.done;V=Q.next())V=V.value,V.startsWith("yt-mini-app-share")&&v.clientParams.delete(V)};var oU5=function(v,Q){_.J5.call(this);var V=this;this.shortsController=v;this.storeWithShorts=Q;v=_.Wm(this.storeWithShorts,_.Wj9,function(E){if(E){var b,F=(b=V.shortsController.getRoot())==null?void 0:b.getPlayer(),t;(b=(t=V.shortsController.alternativePlayerContainerElement)==null?void 0:t.getPlayerContainer())&&(F==null||F.appendTo(b))}else{var p;t=(p=V.shortsController.alternativePlayerContainerElement)==null?void 0:p.getPlayerContainer().querySelector("#player");b=V.shortsController.activeIndex;
(p=(F=V.shortsController.getRoot())==null?void 0:F.querySelector('ytd-reel-video-renderer[id="'+b+'"] #player-container'))&&(t==null||t.appendTo(p,void 0,!0))}});
this.addOnDisposeCallback(v)};
_.f(oU5,_.J5);var PJ=function(v,Q,V,E){var b=this;this.storeWithShorts=v;this.ephemeralResponseStore=Q;this.innertubeTransportService=V;this.innertubeTransportLoader=E;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Z1(_.I7);this.isShortsPipActive=_.Z1(_.Hw);this.nextReelVe=_.Vw(56921);this.prevReelVe=_.Vw(56922);this.backButtonVe=_.Vw(22156);this.TEST_ONLY={getActiveModules:function(){return b.activeModules}}},XRI=function(v){v.unsubscribeFromStore=
_.Wm(v.storeWithShorts,_.j_Z,function(Q){v.initOrDisposeActiveModules(Q);
!Q&&v.storeWithShorts.getState().shorts.isFullscreen&&(_.ri(document.documentElement),v.storeWithShorts.dispatch(_.oka(!1)))});
v.initOrDisposeActiveModules(_.j_Z(v.storeWithShorts.getState()))},Zgm,PtI,aQI;
PJ.prototype.initOrDisposeActiveModules=function(v){v?this.activeModules.push(new oU5(this,this.storeWithShorts)):(_.pg(this.activeModules),this.activeModules.length=0)};
PJ.prototype.registerRootElement=function(v){this.rootElement=v;XRI(this)};
PJ.prototype.getRoot=function(){return this.rootElement};
PJ.prototype.setActiveIndex=function(v){this.activeIndex=v};
_.igj=function(v,Q){var V,E,b,F,t,p,Z;return _.e(function(d){switch(d.nextAddress){case 1:return V=new YV,(E=V.JSC$14252_getStoreKey(Q))&&v.ephemeralResponseStore.has(E)?d.yield(v.ephemeralResponseStore.get(E),7):d.yield(aQI(v,Q),4);case 4:b=d.yieldResult;if(!E){d.jumpTo(3);break}F=vw(b,3600);return d.yield(v.ephemeralResponseStore.put(E,new _.qD(F)),3);case 7:b=(t=d.yieldResult)==null?void 0:_.rs(t);case 3:return((p=b)==null?0:p.replacementEndpoint)&&(Z=_.y(b.replacementEndpoint,_.PH))&&b.sequenceContinuation&&
(Z.sequenceParams=b.sequenceContinuation),d.return(b)}})};
Zgm=function(v,Q){Q=(new yF).JSC$14252_getStoreKey(Q);return!!Q&&v.ephemeralResponseStore.has(Q)};
PtI=function(v,Q,V){var E,b,F,t,p;_.e(function(Z){if(Z.nextAddress==1){E=new yF;b=E.JSC$14252_getStoreKey(Q);if(!b)return Z.return();if(V.reelWatchSequenceResponse)return F=vw(V.reelWatchSequenceResponse,3600),v.ephemeralResponseStore.put(b,new _.qD(F)),Z.jumpTo(0);if(!v.ephemeralResponseStore.has(b))return Z.jumpTo(0);p=V;return Z.yield(v.ephemeralResponseStore.get(b),4)}p.reelWatchSequenceResponse=(t=Z.yieldResult)==null?void 0:_.rs(t);_.q1(Z)})};
aQI=function(v,Q){var V=V===void 0?{}:V;var E,b,F;return _.e(function(t){switch(t.nextAddress){case 1:if(v.innertubeTransportService){E=v.innertubeTransportService;t.jumpTo(2);break}if(!v.innertubeTransportLoader){_.Ui(Error("uj"));t.jumpTo(2);break}return t.yield(v.innertubeTransportLoader(),4);case 4:E=t.yieldResult;case 2:return t.yield((b=E)==null?void 0:_.xW(b,Q,V),5);case 5:return F=t.yieldResult,t.return(F)}})};
_.hr.Object.defineProperties(PJ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
PJ[w$]=[vJ8,_.lp,_.d$(_.wH),_.d$(CoS)];_.raq=new _.KB("STORAGE_MANAGER_TOKEN");var PsT=["touchmove","scroll"];var $Aj=!1;var vEr=!1;var ZG9={onSpanEnd:function(v){v.parentId==null&&($Aj||(mTh(),setInterval(mTh,6E5),$Aj=!0),QQ3(v,"web_tracing_action"))}};var KWZ=URL.createObjectURL;var pQo,IQ0={traceAllComponents:_.Y("web_tracing_all_components"),exportToCsi:_.Y("web_tracing_export_to_csi"),enabledSpansArray:_.c5("web_tracing_enabled_spans"),exportToDevTools:_.Y("web_tracing_export_to_devtools"),maxBreadcrumbs:_.T_("tel_max_breadcrumbs",0)};pQo=new FW9(IQ0);var eUZ=_.Y("web_shorts_enable_tracing");var Hah=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},mAI;
Hah.prototype.enqueue=function(v,Q){Q===1?this.currentPersistentToast=v:this.queue.push(v);this.openToast()};
Hah.prototype.openToast=function(){var v;(v=this.currentToast)!=null&&v.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.dN=new _.KB("TOAST_MANAGER_TOKEN");var UAn=new _.KB("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var vb7=new _.KB("VIEW_TRANSITION_COORDINATOR_TOKEN");var QSh=function(v){this.config=v;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;v=_.L(v.transitionConfigs);for(var Q=v.next();!Q.done;Q=v.next())Q=_.L(Q.value).next().value,this.transitionTasksMap.set(Q,[])};
QSh.prototype.registerElement=function(v,Q,V){V=V===void 0?!1:V;for(var E=_.L(Object.keys(Q)),b=E.next(),F={};!b.done;F={viewTransitionName:void 0},b=E.next()){b=b.value;F.viewTransitionName=Q[b];var t=this.elementTasksMap.get(v),p=void 0;if((p=t)==null?0:p.has(b)){_.$h(new _.xd("Element already registered for transition",v.tagName,b));break}t=t||new Map;t.set(b,{beforeTransition:function(Z){return function(){v.style.viewTransitionName=Z.viewTransitionName}}(F),
afterTransition:function(){v.style.viewTransitionName&&(v.style.viewTransitionName="")},
runOnce:V});this.elementTasksMap.set(v,t)}};
_.R7=function(v,Q){var V=v.elementTasksMap.get(Q);V&&(V.clear(),V.size===0&&v.elementTasksMap.delete(Q))};
QSh[w$]=[UAn];var Ebf=_.x(function(v){var Q=_.Ze("yt-expandable-metadata-header-view-model"),V=_.EP(function(E){if(!_.cw(_.yw(E),Q.value,["A".toString(),"BUTTON".toString()])){var b;(b=v.expandedCallback)==null||b.call(v,!1)}});
return _.P("yt-expandable-metadata-header-view-model",{el:Q,class:"ytExpandableMetadataHeaderViewModelHost"},_.P(_.h,{cond:function(){return v.expanded()},
then:function(){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":V},_.P("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.P(_.h,{cond:function(){return v.data().expandedTitleImage},
then:function(E){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.P(_.gE,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E}))}}),_.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.P(_.tD,{text:function(){return v.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.P(_.tD,{text:function(){return v.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.P(_.tD,{text:function(){return v.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.P("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.P(_.Pw,{data:function(){return v.data().infoButton}},{buttonViewModel:_.D6}),_.P(_.Pw,{data:function(){return v.data().collapseButton}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
onClick:function(){var b;(b=v.expandedCallback)==null||b.call(v,!1)}})}})))},
else:function(){return _.P(Vg$,Object.assign({},v))}}))},"qg"),bUq=_.x(function(v){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.P(_.h,{cond:function(){return v.data().collapsedLabelImage},
then:function(Q){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.P(_.gE,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Q,alt:""}))}}),_.P(_.tD,{text:function(){return v.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"rg"),Vg$=_.x(function(v){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.EP(function(){var Q;return void((Q=v.expandedCallback)==null?void 0:Q.call(v,!0))})},_.P("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.P(_.h,{cond:function(){return v.data().collapsedImage},
then:function(Q){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.P(_.gE,{height:20,preserveHeight:!0,preserveWidth:!0,data:Q,alt:""}))}}),_.P(_.h,{cond:function(){return v.data().showLeadingCollapsedLabel},
then:function(){return _.P(bUq,Object.assign({},v))}}),_.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.P(_.tD,{text:function(){return v.data().collapsedTitle}}))),_.P("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.P(_.h,{cond:function(){return!v.data().showLeadingCollapsedLabel},
then:function(){return _.P(bUq,Object.assign({},v))}}),_.P(_.Pw,{data:function(){return v.data().infoButton}},{buttonViewModel:_.D6}),_.P(_.Pw,{data:function(){return v.data().expandButton}},{buttonViewModel:function(Q){return _.P(_.D6,{data:Q.data,
onClick:function(){var V;(V=v.expandedCallback)==null||V.call(v,!0)}})}})))},"sg");_.FXf=_.x(function(v){var Q=_.L(_.K_(function(){return v.data().initiallyExpanded})),V=Q.next().value,E=Q.next().value,b,F=(b=_.ht().resolve(_.d$(_.JR)))==null?void 0:b(),t=function(){var p=v.data().colorData;
if(p)return F?p==null?void 0:p.darkColorPalette:p==null?void 0:p.lightColorPalette};
return _.P("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.iP({"background-color":function(){var p=t();return(p==null?0:p.section2Color)?_.CF(p.section2Color):""}})},_.P(_.Pw,{data:function(){return v.data().header}},{expandableMetadataHeaderViewModel:function(p){return _.P(Ebf,{data:p.data,
expanded:function(){return!!V()},
expandedCallback:function(Z){E(Z)}})}}),_.P(_.h,{cond:function(){return V()},
then:function(){return _.P("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.P(_.Pw,{data:function(){return v.data().expandedContent}},{horizontalShelfViewModel:function(p){return _.P(_.ZP,{data:p.data,
includeMargin:!0,forceNarrowLayout:!0,palette:t})},
videoSummaryContentViewModel:function(p){return _.P(Q9q,{data:p.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(p){return _.P(_.Ng,{data:p.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(p){return _.P(_.ZSq,{data:p.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.P(_.Pw,{data:function(){return v.data().expandedBottomButtons}},{buttonViewModel:function(p){return _.P("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.P(_.D6,{data:p.data}))}}))}}))},"tg");var KXs=_.x(function(v){var Q=v.text;var V=v.marqueeSpacing;var E=v.scrollDelay;var b=v.scrollDuration;var F=v.enableMarqueeScroll;v=v.large;var t=_.L(_.Ge(!1,void 0,"WyNYFf")),p=t.next().value,Z=t.next().value,d=_.L(_.Ge(0,void 0,"OoTdhe"));t=d.next().value;var w=d.next().value,A=_.Ze("marquee-scroll");d=_.Ze("div");var k=_.Ze("span"),T=_.ht().resolve(_.xD);_.uH(function(){if(F()){var R=k.value.getBoundingClientRect().width,l=A.value.getBoundingClientRect().width;if(R>l){var S=(T==="ltr"?-1:1)*(R+
(V?V():16));Promise.resolve().then(function(){Z(!0);w(S)})}}},"dv0Anf");
var c={},C={};return _.P("marquee-scroll",{class:_.QZ("ytMarqueeScrollHost",(c.ytMarqueeScrollHostLarge=v,c)),el:A},_.P("div",{id:"marquee-scroll-inner-container",class:_.QZ("ytMarqueeScrollInnerContainer",(C.ytMarqueeScrollAnimationEnabled=function(){return p()},C)),
el:d,style:_.iP({gap:V?(0,_.iQ)(V):"16px","animation-duration":b?FmA(b):"16s","animation-delay":E?FmA(E):"3s","--marquee-translate":(0,_.iQ)(t)})},_.P("span",{el:k,dir:"auto"},_.P(_.tD,{text:Q,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.P(_.h,{cond:p,then:function(){return _.P("span",{"aria-hidden":"true",dir:"auto"},_.P(_.tD,{text:Q,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"vg");_.iUj=_.x(function(v){var Q=v.data;var V=v.overlayDensity;v=_.EP(function(){Q().onTapCommand&&_.nx(Q().onTapCommand);return!1});
var E=_.BdE(),b=function(){return(V==null?void 0:V())===1?22:16},F={};
return _.P("reel-sound-metadata-view-model",{class:_.QZ("ytReelSoundMetadataViewModelHost",(F.ytReelSoundMetadataViewModelHostLarge=function(){return(V==null?void 0:V())===1},F)),
"on:click":v,tabindex:0,role:"button","on:keydown":E},_.P("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.P(_.h,{cond:function(){return Q().musicIcon},
then:function(t){return _.P(_.gE,{data:t,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:b})}}),_.P("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.P(KXs,{text:function(){return Q().soundMetadata},
enableMarqueeScroll:function(){return!!Q().enableMarqueeScroll},
large:function(){return(V==null?void 0:V())===1}}))))},"wg");var LXY,tgn,hm,Pk8,hJj,ZUY,kgh,A10;LXY=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];tgn=_.T_("wil_icon_max_concurrent_fetches",Infinity);
hm=function(v,Q,V){var E=this;this.iconSet=v;this.appDirection=Q;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.bb.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.Y("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.Y("wil_icon_network_first");this.renderWhenIdle=_.Y("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.Y("wil_icon_load_immediately");this.isPurging=!1;v=function(){E.cacheStorageAvailable&&(E.cacheStorageAsync=_.bb.caches.open("yt-icons").then(function(F){return E.cacheStorageSync=F}).catch(function(){E.cacheStorageAvailable=!1}))};
V=(V==null?void 0:V())||{};V=_.L(Object.entries(V));for(Q=V.next();!Q.done;Q=V.next()){var b=_.L(Q.value);Q=b.next().value;b=b.next().value;b=RS(b);pU5(b);this.iconCache[Q]=b.cloneNode(!0)}this.isPurging=eJn(this);this.isPurging instanceof Promise?this.isPurging.then(v):v()};
_.xxo=function(v,Q){var V=v.resolveIcon(Q);return V?v.renderingMode===1?ZUY(v,V,v.renderingMode):(Q=v.iconCache[V.url])?(Q=Q.cloneNode(!0),Pk8(v,Q),ZUY(v,V,v.renderingMode,Q)):_.dPh(v,V).then(function(E){var b=E?0:1;Pk8(v,E);return ZUY(v,V,b,E)}):(_.$h(new _.xd("Icon not found",{iconShape:Q})),function(){})};
Pk8=function(v,Q){if(Q){v.counter+=1;v="_yt"+v.counter;Q=[Q].concat(_.ui(Q.getElementsByTagName("*")));Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())if(V=V.value,V.tagName==="style"&&V.textContent)V.textContent=hJj(V.textContent,v,!0);else for(var E=_.L(V.attributes),b=E.next();!b.done;b=E.next()){b=b.value;b.name==="id"&&(b.value+=v);["mask","fill","clip-path"].includes(b.name)&&(b.value=hJj(b.value,v));if(b.name==="style"){var F=V.style;try{F.cssText=hJj(F.cssText,v,!0)}catch(w){var t=void 0,p=
void 0,Z=void 0,d=void 0;wN({error:((t=w)==null?void 0:(Z=(p=t).toString)==null?void 0:Z.call(p))||"",el:V.outerHTML,style:!!F,cssText:(d=F)==null?void 0:d.cssText})}}b.name==="xlink:href"&&(b.value=b.value.replace(/#(.*)/,"#$1"+v))}}};
hJj=function(v,Q,V){var E=/url\(["']?#(.*?)["']?\)/;(V===void 0?0:V)&&(E=/url\(["']?#(.*?)["']?\)/g);return v.replace(E,"url(#$1"+Q+")")};
ZUY=function(v,Q,V,E){return function(b,F){var t;var p=Object.assign({},{iconWidth:Q.size+"px",iconHeight:Q.size+"px",iconDisplay:"block"},F,{iconColor:(t=F==null?void 0:F.iconColor)!=null?t:"currentcolor"});t=_.RD("DIV");F=p.iconColor;var Z=p.iconFilter;p="width: "+p.iconWidth+"; height: "+p.iconHeight+"; display: "+p.iconDisplay+";";Z&&(p+=" filter: "+Z+";");V===0&&(p+=" fill: "+F+";");V===1&&(Z=Q.url,p+=" -webkit-mask: url("+Z+") no-repeat center / cover; mask: url("+(Z+") no-repeat center / cover; background-color: ")+
F);Q.allowMirroring&&v.appDirection==="rtl"&&(p+=" transform: scale(-1, 1); transform-origin: center center;");t.setAttribute("style",p);V===0&&E&&t.appendChild(E);b.appendChild(t)}};
_.dPh=function(v,Q){var V,E,b;return _.e(function(F){V=function(t){return Hq(t)};
E=Q.url;if(!wUm(E))throw Error("xj");b=A10(v,E);return F.return(b.then(function(t){return t.clone().text()}).then(function(t){var p=V(t);
t=Q.size;var Z=_.RD("DIV");_.tT(Z,p);p=_.ng(Z.firstElementChild!==void 0?Z.firstElementChild:_.fTZ(Z.firstChild,!0));t=pU5(p,t);v.iconCache[E]=t.cloneNode(!0);delete v.responsePromises[E];return t}).catch(function(){}))})};
kgh=function(v){var Q,V=(Q=v.requestAninmationFrameResolver)==null?void 0:Q.promise;V||(v.requestAninmationFrameResolver=new _.bK,V=v.requestAninmationFrameResolver.promise,_.bb.requestAnimationFrame(function(){var E;(E=v.requestAninmationFrameResolver)==null||E.resolve();v.requestAninmationFrameResolver=null}));
return V};
A10=function(v,Q){var V,E;return _.e(function(b){if(b.nextAddress==1)return v.waitForAnimationFrame?b.yield(kgh(v),2):b.jumpTo(2);V=v.responsePromises[Q];V||(E=function(){var F,t,p;return _.e(function(Z){switch(Z.nextAddress){case 1:if(!v.cacheStorageAvailable){F=void 0;Z.jumpTo(2);break}if(t=v.cacheStorageSync){Z.jumpTo(3);break}return Z.yield(v.cacheStorageAsync,4);case 4:t=Z.yieldResult;case 3:F=t;case 2:return p=F,v.isNetworkFirstStrategy?Z.return(v.fetchAndUpdateCache(Q,p).catch(v.getCacheStorageResponse.bind(v,
Q,p))):Z.return(v.getCacheStorageResponse(Q,p).catch(v.fetchAndUpdateCache.bind(v,Q,p)))}})},V=v.renderWhenIdle?new Promise(function(F,t){_.go(_.XT,function(){E().then(F).catch(t)},10)}):E(),v.responsePromises[Q]=V);
return b.return(V.catch(function(F){delete v.responsePromises[Q];wN({error:(F==null?0:F.toString)?F.toString():"",url:Q});throw F;}))})};
hm.prototype.fetchAndUpdateCache=function(v,Q){var V=this;return _.e(function(E){return E.return(T7h(V,v).then(function(b){Yi5(V,v,b,Q);return b}))})};
var T7h=function(v,Q){var V;return _.e(function(E){if(v.numFetches<tgn)return v.numFetches+=1,E.return(y1n(v,Q).finally(function(){--v.numFetches;if(Object.keys(v.queuedResponseResolvers).length){var b=Object.keys(v.queuedResponseResolvers)[0],F=v.queuedResponseResolvers[b];delete v.queuedResponseResolvers[b];F.resolve(T7h(v,b))}}));
V=new _.bK;v.queuedResponseResolvers[Q]=V;return E.return(V.promise)})},y1n=function(v,Q,V){V=V===void 0?2:V;
var E;return _.e(function(b){E={credentials:"same-origin",priority:"low"};return b.return(_.bb.fetch(Q,E).then(function(F){return F.ok?F:Promise.reject(Error("yj`"+F.status+"`"+F.statusText))}).catch(function(F){if(V>0)return y1n(v,Q,V-1);
throw F;}))})},Yi5=function(v,Q,V,E){_.e(function(b){return E?b.return(new Promise(function(F){_.go(_.XT,function(){var t,p;
return _.e(function(Z){switch(Z.nextAddress){case 1:if(!v.isNetworkFirstStrategy){t=void 0;Z.jumpTo(2);break}return Z.yield(E.match(Q).catch(function(){}),3);
case 3:t=Z.yieldResult;case 2:if(p=t){Z.jumpTo(4);break}return Z.yield(E.put(Q,V.clone()).catch(function(d){wN({error:(d==null?0:d.toString)?d.toString():"",url:Q})}),4);
case 4:F(),_.q1(Z)}})},50)})):b.return()})};
hm.prototype.getCacheStorageResponse=function(v,Q){return _.e(function(V){return Q?V.return(Q.match(v).then(function(E){return E&&E.ok?E:Promise.reject()})):V.return(Promise.reject())})};
var pU5=function(v,Q){Q===void 0||v.getAttribute("viewBox")||v.setAttribute("viewBox","0 0 "+Q+" "+Q);v.setAttribute("focusable","false");v.setAttribute("aria-hidden","true");try{v.style.pointerEvents="none",v.style.display="inherit",v.style.width="100%",v.style.height="100%"}catch(b){var V;wN({error:((V=b)==null?0:V.toString)?b.toString():""});try{v.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(F){var E;wN({error:((E=F)==null?0:E.toString)?F.toString():
""})}}return v},wUm=function(v){for(var Q=_.L(LXY),V=Q.next();!V.done;V=Q.next())if(v.startsWith(V.value)&&v.endsWith(".svg"))return!0;
return!1};
hm.prototype.resolveIcon=function(v){return this.iconSet.resolveIcon(v)};
var wN=function(v){_.Iy(new _.xd("Error in IconManager",v))},eJn=function(v){if(_.Y("wil_icons_cache_purge_killswitch"))return!1;
try{var Q=_.bb.localStorage}catch(F){return!1}if(!Q||!v.cacheStorageAvailable)return!1;var V=function(F){try{var t;(t=Q)==null||t.setItem("yt-icons-last-purged",F.toString())}catch(Z){var p;wN({error:((p=Z)==null?0:p.toString)?Z.toString():""})}},E=Number(Q.getItem("yt-icons-last-purged"));
if(!E)return E=new Date,E=E.setDate(E.getDate()-Math.floor(Math.random()*90+1)),V(E),!1;if(function(F,t){F=new Date(F);t=new Date(t);return t.getMonth()-F.getMonth()+12*(t.getFullYear()-F.getFullYear())}(E,Date.now())<3)return!1;
try{return _.bb.caches.delete("yt-icons").then(function(F){F&&V(Date.now());return F}).catch(function(){return!1}).finally(function(){v.isPurging=!1})}catch(F){var b;
wN({error:((b=F)==null?0:b.toString)?F.toString():""});return!1}};
hm[w$]=[sa7,_.xD,_.d$(Wkj)];_.Am=function(v,Q){this.iconManager=v;this.iconsToFetch=Q};
_.Am[w$]=[_.Eo,_.d$(ja0)];var c18=function(){};var fxn=function(v,Q,V){this.requestKey=v;this.mK0=Q;this.qkf=V;this.gNa=function(){return new XMLHttpRequest};
this.rdf=void 0;this.bTp=[]};
fxn.prototype.getLatestChallengeResponse=function(){return this.qkf};
var Mwa=function(v,Q,V){var E,b,F,t;return _.e(function(p){if(p.nextAddress==1){_.Ct("attestation_challenge_fetch");_.Mp("att_fs",void 0,"attestation_challenge_fetch");if(!v.rdf)throw new _.zl(9,"Missing fetcher");return p.yield(v.rdf(Q,V),2)}E=p.yieldResult;F=(b=E)==null?void 0:b.bgChallenge;if(!F)throw new _.zl(15,"Missing field");v.qkf=E;v.bTp.forEach(function(Z){Z(E)});
t=afE(F);_.Mp("att_fc",void 0,"attestation_challenge_fetch");G2("attestation_challenge_fetch");return p.return(t)})},$Y8=function(v,Q){var V,E,b,F,t;
return _.e(function(p){switch(p.nextAddress){case 1:V=new YJ(100,3E5,.25,2),E=void 0;case 2:if(!(V.currBackoffCount_<10)){p.jumpTo(4);break}_.GC(p,5);if(!(V.currBackoffCount_>0)){p.jumpTo(7);break}return p.yield(hUm(V.getValue()),7);case 7:return p.yield(Ggm(v,Q),9);case 9:return b=p.yieldResult,p.return(b);case 5:F=_.n$(p);F instanceof _.zl?E=F:(t=F instanceof Error?F.message:"Unknown",E=new _.zl(9,t));Nbq(V);p.jumpTo(2);break;case 4:if(E)throw E;throw new _.zl(9,"Unknown error");}})},Ggm=function(v,
Q){Q=hHA(w5A(new dYQ,Q),v.requestKey);
var V=new _.bK,E=v.gNa();E.open("POST",v.mK0);E.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");E.setRequestHeader("Content-Type","application/json+protobuf");E.onload=function(){if(_.KL9(E)){var b=GYX(E.responseText);V.resolve(b)}else V.reject(new _.zl(_.p5B(_.fi(E)),E.statusText))};
E.onerror=function(){V.reject(new _.zl(_.p5B(_.fi(E)),E.statusText))};
E.send(Q.serialize());return V.promise};var Mgm=function(v){this.networkStatusManager=v;this.isDownloaded=mtb===void 0?function(){return!1}:mtb;
this.isReady=!1;this.eba=Ckh(this)},Ckh=function(v){var Q;
return _.e(function(V){if(V.nextAddress==1)return V.yield(WXr(),2);if(V.nextAddress!=3)return Q=V.yieldResult,V.yield(gJX(Q),3);v.hu=V.yieldResult;AzS(v.hu).then(function(){v.isReady=!0});
return V.return(v.hu)})},OUn=function(v,Q,V){v.hu?(v=v.hu.rgz({hj:V,
cRH:!0,zGG:!0}),Q.serviceIntegrityDimensions={poToken:v}):_.ro(Error("Aj"))};
Mgm.prototype.processContext=function(v){var Q=this;if(!v.input.match(_.Xg(jnV)))return _.AL();var V=v.innerTubeRequest,E=V.videoId;return!E||this.isDownloaded(V)||this.networkStatusManager&&!this.hu&&!this.networkStatusManager.isNetworkAvailable()?_.AL():this.hu?this.isReady?(OUn(this,V,E),_.AL()):new wJ(AzS(this.hu).then(function(){OUn(Q,V,E)})):new wJ(this.eba.then(function(b){return _.e(function(F){if(F.nextAddress==1)return F.yield(AzS(b),2);
OUn(Q,V,E);_.q1(F)})}))};var DP0=new _.KB("WEB_PO_CONTEXT_PROCESSOR");var RJ8=function(v,Q){var V=this;this.hpn=0;var E;this.hcp=(E=Q==null?void 0:Q.hcp)!=null?E:window;this.networkStatusManagerPromise=Q==null?void 0:Q.networkStatusManagerPromise;var b;this.requestKey=(b=Q==null?void 0:Q.requestKey)!=null?b:_.y9("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var F;this.tV0=(F=Q==null?void 0:Q.tV0)!=null?F:function(Z){return new uc(Z)};
var t;E=(t=Q==null?void 0:Q.vun)!=null?t:function(Z,d,w){return new fxn(Z,d,w)};
this.bgChallenge=afE(v.bgChallenge);this.ttlSeconds=rPr(xS(v.challenge||""));this.az=E(this.requestKey,_.Y("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.bb.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",v);this.h4G=Q==null?void 0:Q.h4G;wQG(this.az);var p;this.hCg=(p=Q==null?void 0:Q.hCg)!=null?p:function(Z){_.wE(V.hcp.document,"visibilitychange",
function(){V.hcp.document.visibilityState==="visible"&&Z()})}},lx5=function(v){if(!v.vm){var Q={maxAttempts:5,
fg6:v.ttlSeconds*1E3};kFB(v.hcp);v.vm=v.tV0({az:v.az,avZ:{disable:_.Y("html5_web_po_disable_remote_logging"),ri:"aGIf",bFG:Q$Q("html5_web_po_experiment_ids"),n5X:_.Y("wpo_dis_lfdms")?0:1E3,o6q:function(E){var b=XFZ.get(E);b||(b=new oRZ(E),b=new Mz(b),XFZ.set(E,b));return b}},
de9:Q,cQt:v.bgChallenge,lNc:TQT});v.hpn=Date.now();yta(v.vm,function(){v.hpn=Date.now()});
r1G(v.vm,function(){return _.e(function(E){return E.return(nbh(v))})});
var V=v.hjm.bind(v);v.networkStatusManagerPromise&&v.ttlSeconds>0&&v.networkStatusManagerPromise.then(function(E){E.listen("publicytnetworkstatus-online",V)});
v.hCg(V)}};
RJ8.prototype.hjm=function(){if(Date.now()>this.hpn+this.ttlSeconds*1E3){var v;(v=this.vm)==null||YGa(v)}};
var nbh=function(v){if(v.e3f)return v.e3f;if(!v.vm)throw Error("Bj");v.e3f=new X5({vm:v.vm,az:v.az,mHv:!0,onError:TQT,de9:v.h4G});return v.e3f},yz0=function(v,Q){v=new RJ8(v,Q);
lx5(v);(Q==null?0:Q.usG)||nbh(v)};var qih=_.eps.ephemeralActionSelector,k6=function(v,Q){this.store=v;this.queue=[];Q==null||Q.addEventListener("yt-navigate-start",this.reset.bind(this))};
k6.prototype.enqueue=function(v){var Q=v.command,V=v.durationMs,E=v.elementToFocus;var b=v.label;var F=v.elementToFocus;v.command?b=_.Lt("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:b,shortcut:_.Lt("SHIFT_PLUS_ENTER")}):F&&(v=b+". "+_.Lt("SHIFT_PLUS_ENTER")+" for more information.",b=_.Lt("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:b,shortcut:_.Lt("SHIFT_PLUS_ENTER")},v));V={announcement:b,durationMs:V!=null?V:8E3};Q?V.command=Q:E&&(E.classList.add("ephemeral-action-focusable-element"),V.selector=E.tagName+
".ephemeral-action-focusable-element");this.queue.push(V);Sin(this)};
k6.prototype.activate=function(v){var Q=qih(this.store.getState());if(Q){if(Q==null?0:Q.command)_.Oo(Q.command),this.store.dispatch(xb8(null));if(Q==null?0:Q.selector)Q=document.querySelector(Q.selector),_.X5r(Q);v.preventDefault()}};
var Sin=function(v){if(!qih(v.store.getState())&&v.queue.length){var Q=v.queue.shift();Q&&(v.previousAnnouncement===Q.announcement&&(Q.announcement+="\u00a0"),v.store.dispatch(xb8(Q)),v.previousAnnouncement=Q.announcement,v.timeoutId=setTimeout(function(){if(Q.selector){var V;(V=document.querySelector(Q.selector))==null||V.classList.remove("ephemeral-action-focusable-element")}v.store.dispatch(xb8(null));Sin(v)},Q.durationMs))}};
k6.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(xb8(null));this.queue.length=0;this.timeoutId=void 0};
k6[w$]=[_.Uj,_.d$(_.Ns)];_.TB=new _.KB("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var zJh=new _.KB("AUTH_SERVICE_TOKEN");var GFh=_.s$(["about:blank"]),fBZ;var J1s=new _.KB("API_IFRAME_TOKEN"),N7I=new _.KB("FETCH_FN_TOKEN"),xPf=new _.KB("WINDOW_REQUEST_TOKEN"),B7h=new _.KB("TEXT_DECODER_TOKEN");var OOZ;OOZ=new _.KB("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.gbq=new _.KB("MISC_UI_SHARED_FLAGS_TOKEN");var sSd=function(){};
sSd.prototype.getFlag=function(v){if(v.configType!==2)throw Error("Cj");return u1Y(v)};
var u1Y=function(v){switch(v.flagType){case "bool":return _.Y(v.flagName);case "int":return _.xa(_.T_(v.flagName));case "double":return _.T_(v.flagName);case "string":return _.y9(v.flagName);case "int32_list":return Q$Q(v.flagName);case "int64_list":return Q$Q(v.flagName).map(function(Q){return _.xa(Q)});
case "string_list":return _.c5(v.flagName);default:throw Error("Dj");}};var Y6=function(v,Q,V){Q=Q===void 0?{}:Q;ge.call(this,V===void 0?"uninitialized":V);this.env=v;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];Q.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=Q.shouldWaitOnAsyncImmediate)};
_.f(Y6,ge);Y6.prototype.init=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return Q.processPluginOptions.shouldWaitOnAsyncImmediate?E.yield(v(Q.env),2):(v(Q.env),E.jumpTo(2));if(E.nextAddress!=4)return Q.jobSet?E.yield(Q.jobSet.completedResolver.promise,4):E.jumpTo(4);V=_.Zp();V.parkOrScheduleJob(function(){Q.transition("rendering")},10,"ci");
_.q1(E)})};
Y6.prototype.initialRender=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return Q.processPluginOptions.shouldWaitOnAsyncImmediate?E.yield(v(Q.env),2):(v(Q.env),E.jumpTo(2));if(E.nextAddress!=4)return Q.jobSet?E.yield(Q.jobSet.completedResolver.promise,4):E.jumpTo(4);V=_.Zp();V.parkOrScheduleJob(function(){Q.transition("rendered")},10,"cr");
_.q1(E)})};
Y6.prototype.afterRenderImmediate=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return Q.processPluginOptions.shouldWaitOnAsyncImmediate?E.yield(v(Q.env),2):(v(Q.env),E.jumpTo(2));if(E.nextAddress!=4)return Q.jobSet?E.yield(Q.jobSet.completedResolver.promise,4):E.jumpTo(4);V=_.Zp();V.parkOrScheduleJob(function(){Q.transition("after-render-deferred")},10,"carml");
_.q1(E)})};
Y6.prototype.afterRenderDeferred=function(v){var Q=this;return _.e(function(V){v(Q.env);_.q1(V)})};_.aS("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var jSs={},WXn=(jSs.rendered={priority:0,callback:function(v){L5A(v.injector.resolve(s0))}},jSs);var ciZ=new _.KB("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),obh=new _.KB("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var XUI=function(v){this.callbackFnMap=v;this.configMap={}};
XUI.prototype.handleResponse=function(v){var Q;if(v=(Q=v.responseContext)==null?void 0:Q.serviceTrackingParams)for(Q=_.L(v),v=Q.next();!v.done;v=Q.next()){v=v.value;var V=v.params,E=v.service;if(V&&E){this.configMap[E]||(this.configMap[E]=new dxZ);v=this.configMap[E];var b=void 0,F=(b=this.callbackFnMap)==null?void 0:b[E];V=_.L(V);for(E=V.next();!E.done;E=V.next())b=E.value,E=b.key,b=b.value,E&&b&&(v.set(E,b),F&&F(E,b))}}};
XUI.prototype.getConfig=function(v){return this.configMap[v]||void 0};
XUI[w$]=[_.d$(obh)];var ax5=!1,Jzh=0,lBG=null,zUr=null;var r1Y=new _.KB("NETWORK_SLI_TOKEN");var $PY=function(v){this.networkSli=v};
$PY.prototype.fetch=function(v,Q,V){var E=this,b;return _.e(function(F){b=Ixf(E,v,Q);return F.return(fetch(b).then(function(t){return E.handleResponse(t,V)}).catch(function(t){_.Iy(t);
if((V==null?0:V.expectJsonStrict)&&t instanceof xs&&t.errorType===1)return Promise.reject(t)}))})};
var MBR=function(v,Q,V,E){var b,F,t,p,Z,d,w;return _.e(function(A){switch(A.nextAddress){case 1:return b=Ixf(v,Q,V),_.GC(A,2),A.yield(fetch(b),4);case 4:F=A.yieldResult;_.FT(A,3);break;case 2:throw _.n$(A),new xs(2,"Failed to parse streaming response",b.url);case 3:if(!F.redirected&&!F.ok)throw(t=v.networkSli)==null||t.failure(),new _.xd("Streaming fetch request not ok",b.url);if(!F.body)throw new _.xd("No response body in streaming response",b.url);p={};if(_.Y("web_streaming_fast"))return Z=F.body.getReader(),
A.return(HU7(v,Z,p,E));d=F.body.pipeThrough(new TextDecoderStream).getReader();w=new _.AC;return A.return(mPf(v,d,w,pJ0,p,E))}})},Ixf=function(v,Q,V){if(v.networkSli){var E=_.OG(_.Xy(Q,"key"))||"/UNKNOWN_PATH";
v.networkSli.start(E)}v=V;_.Y("wug_networking_gzip_request")&&(v=PfQ(V));return new window.Request(Q,v)},HU7=function(v,Q,V,E){var b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r,v9,t3,h3,OB,kQ,yo,xQ,lb,ep,JS,fZ,mS;
return _.e(function(PN){switch(PN.nextAddress){case 1:b=new TextDecoder("utf-8"),F=[],p=t=0,_.GC(PN,2,3);case 5:return PN.yield(Q.read(),8);case 8:Z=PN.yieldResult;d=Z.value;if(w=Z.done){A=0;if(F.length>t)for(A=F[t].length-p,k=t+1;k<F.length;k++)A+=F[k].length;A>0&&(T=NQ3(F,A,t,p),c=T.indexOf(123),C=T.lastIndexOf(125),c!==-1&&C!==-1&&C>c&&(R=T.subarray(c,C+1),l=JSON.parse(b.decode(R)),pJ0(V,l),S=void 0,(S=E)==null||S(V,l)));a=void 0;(a=v.networkSli)==null||a.success();return PN.return(V)}F.push(d);
g=t;for(u=p;g<F.length;)if(r=F[g],v9=r.indexOf(10,u),v9===-1){if(g===F.length-1)break;g++;u=0}else{t3=g;h3=v9+1;OB=0;if(t===t3)OB=h3-p;else{OB=F[t].length-p;for(kQ=t+1;kQ<t3;kQ++)OB+=F[kQ].length;OB+=h3}yo=NQ3(F,OB,t,p,t3,h3);xQ=yo.indexOf(123);lb=yo.lastIndexOf(125);if(xQ!==-1&&lb!==-1&&lb>xQ){ep=yo.subarray(xQ,lb+1);try{JS=JSON.parse(b.decode(ep)),pJ0(V,JS),fZ=void 0,(fZ=E)==null||fZ(V,JS)}catch(qZ){throw new xs(1,"Failed to parse streaming response object",b.decode(ep));}}t=g;u=p=v9+1;p===r.length&&
(t++,p=0,g=t,u=0)}PN.jumpTo(5);break;case 3:_.O_(PN);Q.releaseLock();_.Ra(PN,0);break;case 2:mS=_.n$(PN);if(mS instanceof xs)throw mS;throw new xs(1,"Failed to process streaming response");}})},mPf=function(v,Q,V,E,b,F){var t,p,Z,d,w,A,k,T,c;
return _.e(function(C){if(C.nextAddress==1)return C.yield(Q.read(),2);t=C.yieldResult;p=t.value;if(Z=t.done)return(d=v.networkSli)==null||d.success(),C.return(b);try{w=V.parse(p)}catch(R){throw new xs(1,"Failed to parse streaming response",p);}if(w!=null)for(A=_.L(w),k=A.next();!k.done;k=A.next())T=k.value,E(b,T),c=void 0,(c=F)==null||c(b,T);return C.return(mPf(v,Q,V,E,b,F))})};
$PY.prototype.handleResponse=function(v,Q){var V=v.text().then(function(E){if((Q==null?0:Q.jspbResponseCtor)&&v.ok)return $j9(Q.jspbResponseCtor,E);E=E.replace(")]}'","");if((Q==null?0:Q.expectJsonStrict)&&E)try{var b=JSON.parse(E)}catch(t){throw new xs(1,"JSON parsing failed after fetch");}var F;return(F=b)!=null?F:JSON.parse(E)});
v.redirected||v.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),V=V.then(function(E){_.Iy(new _.xd("Error: API fetch failed",v.status,v.url,E));return Object.assign({},E,{errorMetadata:{status:v.status}})}));
return V};
$PY[w$]=[_.d$(r1Y)];var UPs=new _.KB("NETWORK_MANAGER_TOKEN");var vdh=[1,2,4,8,16,30],Vwm=function(v){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=v.maxTimeMs;this.maxFrameCount=v.maxFrameCount===void 0?Math.ceil(60*v.maxTimeMs/1E3):v.maxFrameCount;v=_.L(vdh);for(var Q=v.next();!Q.done;Q=v.next())this.brokenFrameSummarizers.push(new Qmm(Q.value/60*1E3))},Ed7=function(v){var Q=v.frameCountInternal>=v.maxFrameCount;
return v.elapsedTimeMs>=v.maxTimeMs||Q};
Vwm.prototype.summarize=function(){for(var v=[],Q=_.L(this.brokenFrameSummarizers),V=Q.next();!V.done;V=Q.next())V=V.value,V=V.brokenFrameCount!==0?{severityMs:Math.round(V.targetFrameTimeMs),eventCount:V.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(V.averageDurationBetweenEventsMs)}:void 0,V&&v.push(V);return{summaries:v,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.hr.Object.defineProperties(Vwm.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 Qmm=function(v){this.targetFrameTimeMs=v;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.hr.Object.defineProperties(Qmm.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var biq=function(){};
biq.prototype.start=function(v,Q){var V=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var E=new Vwm({maxTimeMs:v});this.monitor=E;this.lastSummaryInternal=void 0;this.metadataToLog=Q;return new Promise(function(b){var F=function(t){if(t===void 0)V.stop(),b(void 0);else if(V.monitor!==E)t=Object.assign({},E.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),b(t);else{var p=V.monitor;if(!Ed7(p)){p.frameCountInternal++;if(p.prevTime===
void 0)p.startTime=t;else for(var Z=t-p.prevTime,d=_.L(p.brokenFrameSummarizers),w=d.next();!w.done;w=d.next()){w=w.value;var A=w.currTimeMs;w.currTimeMs+=Z;Z>w.targetFrameTimeMs+2&&(w.brokenFrameCount++,w.timeOfFirstBrokenFrameMs===void 0&&(w.timeOfFirstBrokenFrameMs=A),w.timeOfLastBrokenFrameMs=A)}p.prevTime=t}Ed7(V.monitor)?b(V.stop()):_.XT.addJob(F,5,0)}};
_.XT.addJob(F,5,0)})};
biq.prototype.stop=function(v){if(!this.monitor)return this.lastSummaryInternal;var Q=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(Q.monitoringDurationMs){v=v!=null?v:this.metadataToLog;var V={droppedFramesSummary:Q,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};v&&(V[v.type]=v.data);_.X0("manualSmoothnessMeasurement",V)}this.monitor=void 0;this.lastSummaryInternal=Q;this.metadataToLog=void 0;return Q};_.FF$=new _.KB("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var KFY;KFY=function(v){this.JSC$18902_expiringStorage=new g$(v)};
_.iih=function(v){if(_.xBr()&&(v=_.WLG(_.Jt()+"::"+v)))return new KFY(v)};
KFY.prototype.set=function(v,Q,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$18902_expiringStorage.set(v,Q,V)};
KFY.prototype.get=function(v){return this.JSC$18902_expiringStorage.get(v)};
KFY.prototype.remove=function(v){this.JSC$18902_expiringStorage.remove(v)};_.yu=function(){};
_.yu.getInstance=function(){var v=_.Q9("ytglobal.storage_");v||(v=new _.yu,_.Pr("ytglobal.storage_",v));return v};
_.yu.prototype.estimate=function(){var v,Q,V;return _.e(function(E){v=navigator;return((Q=v.storage)==null?0:Q.estimate)?E.return(v.storage.estimate()):((V=v.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?E.return(BQB()):E.return()})};
_.Pr("ytglobal.storageClass_",_.yu);var XQb=0;var UB0=!1;var LF$=_.s$(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),twm=_.s$(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var sbY={"/":_.j5,"/?feature=ytca":_.j5,"/feed/downloads":_.rhT};var p5d=PH5.continuationCommandSelector,pq=function(v,Q,V){this.JSC$18918_upliftPromise=v;this.store=Q;this.JSC$18918_persistentStorePromiseAccessor=V};
pq.prototype.shouldPreferLocalResponse=function(v){return v.browseId==="FEdownloads"||v.browseId==="FEsmart_downloads"&&_.Y("kevlar_modern_downloads_page")?!0:!1};
pq.prototype.localInnertubeResponse=function(v){var Q=this;return _.e(function(V){return v.browseId==="FEdownloads"?_.Y("kevlar_modern_downloads_page")?V.return(eHn(Q)):V.return(Zih(Q)):v.browseId==="FEsmart_downloads"&&_.Y("kevlar_modern_downloads_page")?V.return(Pvm(Q)):V.return(Promise.reject(Error("Fj")))})};
pq.prototype.canProvideFallbackResponse=function(){return!0};
pq.prototype.localFallbackInnertubeResponse=function(v){var Q=this,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return F.yield(Q.JSC$18918_persistentStorePromiseAccessor(),2);case 2:V=F.yieldResult;if(v.browseId!=="SPaccount_downloads"||!V){F.jumpTo(3);break}return F.yield(HyZ(V),4);case 4:if(E=F.yieldResult)return F.return(_.rs(E));case 3:return v.browseId==="FEwhat_to_watch"?F.return(dYm(Q)):(b=_.Y("web_offline_continuation_automatic_retry")||_.Y("web_offline_continuation_retry_button"))&&
v.continuation?F.return(hHI(Q)):F.return(w5I(Q))}})};
var dYm=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$18918_upliftPromise,2);Q=_.k93(v.store.getState().entities);return Q.length?V.return(Atm(v,Q)):V.return(w5I(v))})},Zih=function(v){var Q,V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18918_upliftPromise,2);if(E.nextAddress!=3)return Q=k_7([{offlineItemSectionRenderer:{}}]),E.yield(T$h(v,Q),3);V=E.yieldResult;V.onResponseReceivedActions=[iA("REFRESH_DOWNLOADS")];return E.return(V)})},eHn=function(v){var Q,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R;
return _.e(function(l){if(l.nextAddress==1)return l.yield(v.JSC$18918_upliftPromise,2);if(l.nextAddress!=3)return Q=v.store.getState(),V=Q.entities,E=_.y_(V),b=_.cB(V),F=_.I69(Q),t=_.$lo(Q),p=_.HJ9(Q),Z=_.yDE(V),d=_.h4(E),w=_.f7(V),A=_.C6Z(V),k=_.Ulh(Q),T=_.Di(Q),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.trh(E,b,Z,A,F,t,d,w,p,k,T),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},C="",_.Y("kevlar_modern_downloads_skip_downloads_title")||
(C=_.Lt("DOWNLOADS",void 0,"Downloads")),l.yield(YGf(v,c,C),3);R=l.yieldResult;R.onResponseReceivedActions=[iA("REFRESH_DOWNLOADS")];return l.return(R)})},Pvm=function(v){var Q,V,E,b,F,t,p,Z,d;
return _.e(function(w){if(w.nextAddress==1)return w.yield(v.JSC$18918_upliftPromise,2);if(w.nextAddress!=3)return Q=v.store.getState(),V=Q.entities,E=_.y_(V),b=_.h4(E),F=_.f7(V),t={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.eNE(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},p=_.Lt("SMART_DOWNLOADS",void 0,"Smart downloads"),Z=izS(b,F),w.yield(YGf(v,t,p,Z),3);d=w.yieldResult;d.onResponseReceivedActions=
[iA("REFRESH_DOWNLOADS")];return w.return(d)})},w5I=function(v){var Q,V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(aI(v.JSC$18918_upliftPromise,v.store),2);Q=E.yieldResult;V=k_7([akG(Q)]);return E.return(T$h(v,V))})},hHI=function(v){var Q,V,E,b;
return _.e(function(F){if(F.nextAddress==1)return Q={},V=p5d(v.store.getState()),_.yK(Q,_.RJ,V),F.yield(aI(v.JSC$18918_upliftPromise,v.store,Q,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);E=F.yieldResult;b={};_.yK(b,_.N9N,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:E}}}],targetId:"browse-feedFEwhat_to_watch"});return F.return({responseContext:{},onResponseReceivedActions:[b]})})},k_7=function(v){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:v}}}}]}}},Atm=function(v,Q){var V,E;
return _.e(function(b){var F={contents:Lr(Q)};V=F&&F.contents?F:{};_.Y("kevlar_modern_downloads_page")&&(V=Object.assign({},_.Zzm(Q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));E={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:V}}}]}};return b.return(T$h(v,E))})},T$h=function(v,Q){var V,E;
return _.e(function(b){if(b.nextAddress==1)return b.yield(v.JSC$18918_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return V=b.yieldResult,b.yield($S(V),3);E=b.yieldResult;return b.return({responseContext:{},contents:Q,topbar:E})})},YGf=function(v,Q,V,E){var b,F;
return _.e(function(t){if(t.nextAddress==1)return t.yield(v.JSC$18918_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return b=t.yieldResult,t.yield($S(b),3);F=t.yieldResult;var p=t.return;var Z=V;var d=E;Z=Z===void 0?"":Z;d=d===void 0?"":d;Z={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:Z}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Lt("SETTINGS",void 0,"Settings"),accessibilityText:_.Lt("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:_.rD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:d}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:Z};
return p.call(t,{responseContext:{},contents:Q,topbar:F,header:{pageHeaderRenderer:Z}})})};var ytn=function(){this.moduleRegistry={};this.fetchCount=0};
ytn.prototype.isFetching=function(){return this.fetchCount>0};
var q3=function(v,Q){v.moduleRegistry[Q.toString()]={asyncId:Q,isFetching:!1};return v};
ytn.prototype.JSC$18929_loadModules=function(){for(var v=this,Q=new Map,V=[],E=_.L(_.aE.apply(0,arguments)),b=E.next();!b.done;b=E.next()){b=b.value;var F=this.moduleRegistry[b];F?F.resolver?Q.set(b,F.resolver):(F.resolver=new _.bK,Q.set(b,F.resolver),V.push(F.asyncId),F.isFetching=!0):(F=new _.bK,Q.set(b,F),F.resolve(void 0))}V.length&&(this.fetchCount+=1,_.qV(_.Vm.getMultipleAsync.apply(_.Vm,_.ui(V)).then(function(t){for(var p=0;p<V.length;p++){var Z=t[p],d=v.moduleRegistry[V[p].toString()];d.isFetching=
!1;d.resolver.resolve(Z)}}).catch(function(t){for(var p=_.L(V),Z=p.next();!Z.done;Z=p.next()){Z=Z.value;
var d=v.moduleRegistry[Z.toString()];d.resolver=void 0;d.isFetching=!1;Q.get(Z.toString()).reject(t)}}),function(){--v.fetchCount}));
return Promise.all([].concat(_.ui(Q.values())).map(function(t){return t.promise}))};_.St=new _.KB("MODULE_REGISTRY_TOKEN");var cts={},f97=(cts.rendered={priority:0,callback:function(v){a:{var Q=void 0;try{var V;b:{if(_.oOb()){var E=_.j$b(_.Jt()+"::pom");if(E){var b=new gw(E);break b}}b=void 0}var F=(V=b)==null?void 0:V.get("role_text");if(!F)break a;Q={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:F}]}}}}}}catch(Z){}Q&&v.injector.resolve(_.At).resolveCommand(Q)}try{var t=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(t){var p=JSON.parse(t);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
p&&v.injector.resolve(_.At).resolveCommand(p)}}catch(Z){}}},cts);var G_Y,Cvh={},Mwn=(Cvh.initialized={priority:10,callback:function(){G_Y=Tn()}},Cvh.rendering={callback:function(v){var Q;
return _.e(function(V){if(V.nextAddress==1)return V.yield(G_Y,2);Q=V.yieldResult;if(!Q.endpoint)throw Error("Hj`"+_.bb.location.href);fq(v,Q);_.q1(V)})}},Cvh);var Oih={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.ui(_.Y("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(v){var Q=v.stack;if(Q.includes("chrome://")||Q.includes("chrome-extension://")||v.message.includes("chrome-extension://")||Q.includes("moz-extension://")||Q.includes("local.adguard.org")||Q.includes("auctioneer3.50million.club")||Q.includes("youtubedownloader")||
Q.includes("youtube_home_page")||Q.includes("is_youtube_video_no_longer_available")||Q.includes("switchScreenSizeHack")||Q.includes("yt_main_big_banner.js")||Q.includes("YouTubeCenter.js")||Q.includes("/mytube.js")||Q.includes("JSON.parseWrapper")||Q.includes("/inj_js/common.js")||Q.includes("firebug-lite")||Q.includes(".repl.co/")||Q.includes("linkfix")||Q.includes("playAfterAd")||v.message.includes("Access is denied for this document")&&Q.includes("<anonymous>")||v.fileName==="user-script"||v.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
Q.includes("<anonymous>"))return!0;if(Q.includes("https://www.youtube.com"))return!1;v=Q.split("\n");if(!v.length)return!1;if(v.length<=3&&Q.includes("s.onloadeddata"))return!0;Q=0;for(var V=_.L(v),E=V.next();!E.done;E=V.next())E=E.value,(E.includes("https://")||E.includes("http://"))&&Q++;return Q/v.length>.95},
weight:0},{callback:function(v){return v.message==="Unknown Error"&&v.name.indexOf("NS_")===0},
weight:100},{callback:function(v){if(!_.Q2)return!1;var Q=v.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||v.message.includes("available to complete this operation"),V=v.stack.includes("webcomponents")&&v.message==="Object doesn't support this action";v=v.message.includes("object that does not implement interface Element");return Q||V||v},
weight:0},{callback:function(v){return v.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(v){return v.message==="Operation is not supported"&&(v.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(v){return v.stack.includes("eval code (eval (code:1:1)")||v.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(v){return v.message.includes("Permission denied")&&v.stack.includes("this.domHandler")?!0:v.name.includes("TypeError")&&v.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(v){if(!v.stack)return!1;var Q=v.stack.trim().split("\n");Q.length&&Q[0].endsWith("Error: "+v.message)&&Q.shift();Q.length&&Q[Q.length-1].includes("at window.onerror (")&&Q.pop();if(!Q.length)return!0;if(v.message==="Script error.")return Q[0].includes("www.youtube.com")||Q.length>=2&&Q[0].startsWith("at new")&&Q[1].startsWith("at window.onerror");if(v.message==="Unexpected token")return!0;v=_.L(Q);for(Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,!(Q.includes("<anonymous>")||
Q.startsWith("load@")||Q.startsWith("global code@")||Q.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(v){return v.message==="Cannot read property 'experiments'"&&v.stack.includes("/s/player/")},
weight:500},{callback:function(v){return v.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(v){return v.stack.includes("/embed.js")?(v.params&&v.params&&(v.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.Y("use_error_suppression"))var v=_.r7("SUPPRESS_CLIENT_ERRORS",!1);else{if(v=_.KN)v=/Chrome\/(\d+)/.exec(_.T0()),v=(v?parseFloat(v[1]):NaN)>=66;v=!(v||_.Fv&&_.bq(65)||_.mF&&_.bq(12.1)||ej&&_.bq(79))}return v},
weight:500}]};var DYY={},RH7=(DYY.initialized={priority:10,callback:function(v){v.injector.addProvider({provide:kLN,useValue:v.root});v.injector.addProvider({provide:$zf,useValue:BSt});v.injector.addProvider({provide:Ig0,useValue:Oih});var Q={};v.injector.addProvider((Q.provide=Hgs,Q.useFactory=function(V,E){return function(){wGt(V,E)}},Q[w$]=[$zf,
Ig0],Q));v.injector.addProvider({provide:x2,useClass:x2})}},DYY);var ndm={},l9$=(ndm.initialized={priority:3,callback:function(){var v;if(v=Jym()){v=v.replace("/",".");var Q=_.eP();Q.set("tz",v);Q.save();v=!0}else v=!1;v||(v=_.eP(),v.set("utco",-Math.floor((new Date).getTimezoneOffset())),v.save())}},ndm);var qGq={},SG0=(qGq.initialized={priority:10,callback:function(v){v.injector.resolve(x2).start();v=_.N2();var Q=_.mX("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.mX("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.mX("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.mX("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Fu(_.GIh(),{mainAppWeb:Object.assign({},v,{pageType:Q})});_.Fu(MXS(),{mainAppWeb:Object.assign({},v,{pageType:Q})});
_.Fu(OVb(),{mainAppWeb:v});_.Fu(DnT(),{mainAppWeb:v});TDX(function(){_.Kq(OVb(),"FAILURE");_.Kq(DnT(),"FAILURE")});
Pnt();dUG();zWt()}},qGq);var zH7={},Jt5=(zH7.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Mp("dl"),_.Zp().processSignal("pcl");else{var v=function(){_.Mp("dl");_.Zp().processSignal("pcl");window.removeEventListener("load",v)};
window.addEventListener("load",v)}}},zH7);var N$d={},xYh=(N$d.rendering={priority:0,callback:function(){var v=_.Zp();v.parkOrScheduleJob(function(){v.processSignal("eocs")},10,"eor",5E3)}},N$d);var B$h=function(){};
_.f(B$h,Z8);
B$h.prototype.resolveCommand=function(v,Q){var V,E,b,F,t,p,Z,d;return _.e(function(w){b=(V=_.y(v,_.bJ8))==null?void 0:(E=V.dialog)==null?void 0:E.commentReplyDialogRenderer;if(!b)throw new _.xd("No dialog in createCommentReplyDialogEndpoint");t=(F=Q.form)==null?void 0:F.event;if(!t)throw new _.xd("Event not passed in when resolving command");p=_.L(t.composedPath());for(Z=p.next();!Z.done;Z=p.next())if(d=Z.value,d.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||d.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return d.showReplyDialog(b),w.return();
_.q1(w)})};var cJ=function(){};
_.f(cJ,Z8);cJ.prototype.resolveCommand=function(v){var Q,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return Q=_.y(v,wW8),(V=Q)!=null&&V.externalChannelId?t.yield((0,_.ESo)("NSzT5"),2):t.return();E=_.gdj;F=(b=Q.forceInstall)!=null?b:!1;return t.yield(E(Q.externalChannelId,F),0)})};var fc=function(v){this.JSC$18947_pageRequestService=v;this.JSC$18947_prefetchCoordinator=J5h()};
_.f(fc,Z8);fc.prototype.resolveCommand=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1){V=_.y(v,xlQ);if((E=V)==null||!E.taskId)throw Error("Ij");b=V.taskId;_.GC(t,2);return t.yield(_.pMh(Q.JSC$18947_pageRequestService,v,{},"").then(function(p){if(!p)throw Error("Jj");},function(p){throw Error("Kj`"+p);
}),4)}if(t.nextAddress!=2)return BZn(Q.JSC$18947_prefetchCoordinator,b),_.FT(t,0);
F=_.n$(t);Qu(Q.JSC$18947_prefetchCoordinator,b,F);_.q1(t)})};
fc[w$]=[_.kG];var GB=function(v,Q){this.innertubeTransportService=v;this.JSC$18951_commandHandler=Q};
_.f(GB,Z8);GB.prototype.resolveCommand=function(v){var Q=this,V,E,b;return _.e(function(F){if(F.nextAddress==1){V=_.y(v,NKx);if(V.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||V.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")E=V.boolValue?2:1,_.fH.getInstance().setState(E,!0,!0);return F.yield(_.xW(Q.innertubeTransportService,v),2)}b=F.yieldResult;smh(Q,b);_.q1(F)})};
var smh=function(v,Q){Q.actions&&Q.actions.forEach(function(V){v.JSC$18951_commandHandler.resolveCommand(V)})};
GB[w$]=[_.wH,_.At];var Cc={},M5=(Cc.addToPlaylistEndpoint=a$(Zw),Cc.addToToastAction=a$(GW),Cc.adsControlFlowOpportunityReceivedCommand=a$(oW),Cc.audioTrackSelectActionCommand=a$(Rj),Cc.backgroundAudioPlaybackCommand=a$(qE),Cc.captionLanguageSelectActionCommand=a$(SA),Cc.captionPickerEndpoint=a$(zu),Cc.changeMiniAppPlayStateCommand=a$(Pd),Cc.changeTimelyActionVisibilityCommand=a$(fk),Cc.channelCreationFormEndpoint=a$(K6),Cc.clearLocationCommand=a$(eA),Cc.clearUrlParamCommand=a$(d1),Cc.copyLinkCommand=a$(jA),Cc.copyTextEndpoint=
a$(HP),Cc.createCommentReplyDialogEndpoint=SOQ(B$h),Cc.createPlaylistServiceEndpoint=a$(Wd),Cc.dismissDialogEndpoint=a$(k3),Cc.dismissPlayerOverlayCommand=a$(JX),Cc.entityUpdateCommand=a$(UV),Cc.feedbackEndpoint=a$(VA),Cc.getAnswerCommand=a$(VW),Cc.getPaymentsClientTokenCommand=a$(R3),Cc.getTranscriptEndpoint=a$(Ck),Cc.googlePaymentBillingCommand=a$(nk),Cc.googlePaymentPurchaseManagerCommand=a$(l$),Cc.hideEngagementPanelEndpoint=a$(Tu),Cc.hideSheetCommand=a$(Y3),Cc.hideSnackbarCommand=a$(wP),Cc.insertRichSectionCommand=
a$(L6),Cc.listMutationCommand=a$(tX),Cc.logGtmCommand=a$(iC),Cc.notifyDropdownOptionSelectedCommand=a$(AX),Cc.openAdAllowlistInstructionCommand=a$(_.Xs),Cc.openOnePickAddVideoModalCommand=a$(oj),Cc.persistSubscriptionsDisplayPreferencesCommand=a$(Hd),Cc.pingingEndpoint=a$(aW),Cc.playlistEditEndpoint=a$(aj),Cc.playlistVotingRefreshPopupCommand=a$(r1),Cc.profileCardCommand=a$(WP),Cc.refreshPanelEndpoint=a$(yA),Cc.saveImageToDeviceEndpoint=a$(mu),Cc.scrollToSectionEndpoint=SOQ(Caq),Cc.seekToVideoTimestampCommand=
a$(NE),Cc.selectCountryCommand=a$(mn),Cc.setCookieCommand=a$(UK),Cc.setLocalStorageCommand=a$(ks),Cc.setPrefStorageEntryCommand=a$(QW),Cc.setSettingEndpoint=a$(GB),Cc.sfvAudioItemPlaybackCommand=a$(x3),Cc.shareImageCommand=a$(Et),Cc.sharingProviderDataCommand=a$(b$),Cc.showAudioTrackPickerActionCommand=a$(Bd),Cc.showCaptionLanguageSelectActionCommand=a$(g1),Cc.showCreatorChatbotEngagementPanelCommand=a$(cJ),Cc.showDialogCommand=a$(Gu),Cc.showEngagementPanelEndpoint=a$(C6),Cc.showFullscreenPlayerControlsCommand=
a$(sK),Cc.showSheetCommand=a$(ME),Cc.showSnackbarCommand=a$(AW),Cc.showTransientPlayerScrimOverlayCommand=a$(uC),Cc.submitFormWithValidationFlowCommand=a$(F7),Cc.talkToRecsDeselectCommand=a$(TW),Cc.talkToRecsNextCommand=a$(Ys),Cc.talkToRecsSelectCommand=a$(yW),Cc.talkToRecsUpdateTextCommand=a$(c$),Cc.toggleEngagementPanelCommand=a$(OK),Cc.undoFeedbackEndpoint=a$(bC),Cc.updateEngagementPanelContentCommand=a$(Dw),Cc.updateUrlParamCommand=a$(Ma),Cc.updateVideoMetadataCommand=a$(DK),Cc.verifyCommand=
a$(K6),Cc.webNativeShareCommand=a$(Fh),Cc.webSubmitFormCommand=a$($3),Cc.ACK_PLAYABLES_3P_DATA_CONSENT=a$(Kk),Cc.CANCEL_NAVIGATION=a$(i$),Cc.COPY_SHARE_URL=a$(Lk),Cc.MINI_APP_EXIT_DIALOG_SEEN=a$(pk),Cc.MINI_APP_OPEN_URL=a$(tW),Cc.REQUEST_MINI_APP_FULLSCREEN=a$(ee),Cc.RESUME_NAVIGATION=a$(ZK),Cc.SHARE_PLAYABLE_WITH_HIGH_SCORE=a$(P$),Cc.TELL_US_WHY=a$(EK),Cc);_.Y("web_enable_prefetching_videos_on_home")&&(M5.prefetchWatchCommand=a$(fc),M5.registerTasksCommand=a$(EW));
_.Y("enable_share_panel_navigation_logging_fix_on_web")&&(M5.shareEntityServiceEndpoint=a$(cd));_.Y("web_use_flow_state_manager")&&(M5.flowNextStepCommand=a$(S_s),M5.flowPrevStepCommand=a$(JTh),M5.getFlowCommand=a$(x1q),M5.updateFlowCommand=a$(gy));_.Y("enable_ai_companion")&&(M5.updateConversationIdCommand=a$(IW),M5.formDataDecoratorCommand=a$($A));var rVR=Object.assign({},M5);var uFf={},jmn=(uFf.initialized={priority:10,callback:T6t},uFf);var WFI={},ods=(WFI.initialized={callback:function(v){var Q={},V={};QG9().install((Q.document_disposed={callback:function(){_.Y("finalize_all_timelines")?a2Q():cp();qDS("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.kRS();var E=v.injector.resolve(x2);E.intervalId!==void 0&&(E.intervalId&&_.XT.cancelJob(E.intervalId),E.intervalId=void 0,--E.currentPartitionIndex,E=bXZ(E),E>0&&SmQ({mainAppWeb:_.N2(),survivalSli:{partitionMinute:E,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));CFN(dJ);hL!=null&&
hL.flush();Ux&&Ux.snapshotAndFlush();E=_.L(XFZ.values());for(var b=E.next();!b.done;b=E.next())b.value.snapshotAndFlush()}},Q),(V.flush_logs={callback:function(){_.ay()}},V))}},WFI);var X5n={},a9Y=(X5n.rendered={priority:0,callback:function(){var v=new F7Z;v.increment("STARTED");if(_.r7("LOGGED_IN")&&!_.r7("IS_DBSC",!1)&&_.r7("SERVER_VERSION")!=="test"&&_.r7("SERVER_VERSION")!=="dev"&&!jaX()&&!udN()){v.increment("EXECUTING");var Q=document.createElement("iframe");Q.style.display="none";_.QN(Q,2,_.oE("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.r7("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(Q);v.increment("DONE")}}},
X5n);var rtq={},$Y5=(rtq.rendered={callback:function(){J5h().resume()}},rtq);var I9f={acknowledgeChannelTouStrikeCommand:n_(ZU),addToPlaylistServiceEndpoint:n_(hK),addToPlaylistEndpoint:n_(hK),addUpcomingEventReminderEndpoint:n_(SJ),browseEndpoint:n_(TZ5),channelCreationFormEndpoint:n_(Fk),channelCreationServiceEndpoint:n_(KI),claimLegacyYoutubeChannelEndpoint:n_(Xh),clearSearchHistoryEndpoint:n_(M8),clearWatchHistoryEndpoint:n_(O4),commerceActionCommand:lP(Nx),createBackstagePostEndpoint:n_(gP),createBroadcastCommand:n_(zK),createCommentEndpoint:n_(QV),createCommentReplyEndpoint:n_(vD),
createLiveChatPollEndpoint:n_(Ju),createPlaylistServiceEndpoint:n_(wz),crossAccountChannelTransferEndpoint:n_(nI),deleteLiveChatMessageCommand:n_(N8),deletePlaylistEndpoint:n_(AK),deleteVideoEndpoint:n_(qx),dismissalEndpoint:n_(PD),feedbackEndpoint:n_(dU),flagEndpoint:n_(fQ),getAccountSwitcherEndpoint:n_(Rf),verifyCommand:n_(B$),getAccountsListInnertubeEndpoint:n_(q8),getCommentsFromInboxCommand:n_(mg),getDownloadActionCommand:n_(Fw),getFlowCommand:lP(CI),getKidsBlocklistPickerCommand:n_(GG),getNotificationMenuEndpoint:n_(c5s),
getPaymentInstrumentsParamsCommand:n_(jB),getPaymentsClientTokenCommand:lP(Nx),getPdgBuyFlowCommand:n_(P3),getReportFormEndpoint:n_(CQ),getSearchInVideoCommand:n_(DS),getAnswerCommand:n_(Oz),getSurveyCommand:n_(lT),getTranscriptEndpoint:n_(zG),getPostVideoPreviewEndpoint:n_(u$),decorateMessageEndpoint:n_(st),likeEndpoint:n_(ie),liveChatActionEndpoint:n_(s4),liveChatEndpoint:n_(gU),liveChatItemContextMenuEndpoint:n_(xM),liveChatPurchaseMessageEndpoint:n_(ue),liveChatReplayEndpoint:n_(BD),manageLiveChatUserEndpoint:n_(WD),
metadataUpdateCommand:n_(If),moderateLiveChatEndpoint:n_(of),modifyChannelNotificationPreferenceEndpoint:n_(VF),notificationOptOutEndpoint:n_(Ez),openSuperStickerBuyFlowCommand:n_(jJ),performCommentActionEndpoint:n_(H$),playlistEditEndpoint:n_(TG),playlistEditorEndpoint:n_(kV),recordNotificationInteractionsEndpoint:n_(bT),reelWatchEndpoint:n_(YV),refreshPanelEndpoint:n_(iT),removeUpcomingEventReminderEndpoint:n_(Xk),resolveLocationCommand:n_($M),revealBusinessEmailCommand:n_(a3),searchEndpoint:n_(_.fgs),
sendLiveChatMessageEndpoint:n_(af),sendLiveChatVoteEndpoint:n_(rU),setSettingEndpoint:n_(LI),shareEntityServiceEndpoint:lP(eJ),sharingProviderDataCommand:n_(nQ),showEngagementPanelEndpoint:n_(LQ),showMoreDrawerCommand:n_(pQ),showSheetCommand:n_(eB),showDialogCommand:n_(tK),subscribeEndpoint:n_(tu),transcriptSubmitCaptionCorrectionCommand:n_(SB),undoFeedbackEndpoint:n_(fI),unsubscribeEndpoint:n_(pI),updateBackstagePostEndpoint:n_(W$),updateCommentEndpoint:n_(E4),updateCommentReplyEndpoint:n_(VV),updateCommentsSettingsEndpoint:n_(be),
updateCreatorChannelInnertubeCommand:n_($s),updateKidsBlacklistEndpoint:n_(Mx),updateEngagementPanelContentCommand:n_(ZS),updatePdgFeatureEnablementCommand:n_(dz),updatedMetadataEndpoint:n_(HD),validateChannelHandleCommand:n_(I3),updateChannelPageSettingsEndpoint:n_(rP),verifyAgeEndpoint:n_(GK),watchEndpoint:lP(zW),whitelistEditEndpoint:n_(JK),ypcCancelRecurrenceEndpoint:n_(xV),ypcCompleteTransactionEndpoint:n_(B3),ypcFixInstrumentEndpoint:n_(sz),ypcGetCartEndpoint:n_(gz),ypcGetOffersEndpoint:n_(uT),
ypcHandleTransactionEndpoint:lP(W3),ypcLogWalletAnalyticDataEndpoint:n_(oL),ypcOffersEndpoint:n_(Xw),ypcPauseSubscriptionCommand:n_(aL),ypcRedeemCodeEndpoint:n_(rz),ypcResumeSubscriptionCommand:n_($V),ypcUpdateFopEndpoint:n_(sz)},OW={},Hid=(OW.GET_ACCOUNT_MENU=n_(le),OW.GET_NOTIFICATIONS_MENU=n_(y5j),OW.GET_NOTIFICATIONS_INBOX=n_(U4),OW.GET_UNSEEN_NOTIFICATION_COUNT=n_(QF),OW.GET_USER_MENTION_SUGGESTIONS=n_(je),OW.LOAD_GUIDE=n_(Yh$),OW.SUBMIT_FEEDBACK=n_(cD),OW),DY={},mYd=(DY.CONTINUATION_REQUEST_TYPE_BROWSE=
n_(o3),DY.CONTINUATION_REQUEST_TYPE_SEARCH=n_(RL),DY.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=n_(lC),DY.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=n_(DU),DY.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=n_(Ut),DY.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=n_(mZ),DY.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=n_(c3),DY.CONTINUATION_REQUEST_TYPE_GET_PANEL=n_(KQ),DY),UYn={player:lP(zW),watchNext:n_(n6)},vFm={player:lP(zW),reelItemWatch:n_(YV),reelWatchSequence:n_(yF)},Qe$={watchEndpoint:lP(JW)},Vjj=
{commandEndpointMap:I9f,signalEndpointMap:Hid,continuationEndpointMap:mYd,watchEndpointMap:UYn,reelWatchEndpointMap:vFm,streamingEndpointMap:Qe$};var EFh,bO8,F7$;_.K7$=((bO8=(EFh=window).matchMedia)==null?void 0:(F7$=bO8.call(EFh,"(prefers-reduced-motion: reduce)"))==null?void 0:F7$.matches)||!document.startViewTransition;var iO0={},L77={disableAllTransitions:_.K7$,ignoredErrors:(iO0.DOCUMENT_HIDDEN=!0,iO0.WINDOW_SIZE_CHANGED=!0,iO0.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,iO0),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 tjq=_.s$("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),eBj=function(v){var Q=this;this.viewTransitionCoordinator=
v;this.disableTransitionsForUltraHigh=_.Y("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=prq();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.y9("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.Y("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.Y("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.Y("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.y9("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.Y("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.XT.addJob(function(){Q.registerRootElement();if(Q.isAnyTransitionEnabled){var V=
_.T_("web_page_transition_exit_ms"),E=_.T_("web_page_transition_wait_ms"),b=_.T_("web_page_transition_enter_fast_ms"),F=_.T_("web_page_transition_watch_exit_ms"),t=_.T_("web_page_transition_watch_wait_ms"),p=_.T_("web_page_transition_watch_enter_ms"),Z=_.T_("web_page_transition_watch_next_exit_ms"),d=_.T_("web_page_transition_watch_next_wait_ms"),w=_.T_("web_page_transition_watch_next_enter_fast_ms"),A=_.T_("web_page_transition_enter_ms"),k=_.T_("web_page_transition_watch_next_enter_ms");Q.enableFasterTransitions&&
Q.isUltraHighBucketDevice&&(A=b,k=w);isNaN(V)&&isNaN(E)&&isNaN(A)&&isNaN(F)&&isNaN(t)&&isNaN(p)&&isNaN(Z)&&isNaN(d)&&isNaN(k)||!(V=xNE(tjq,V,E,A,F,t,p,Z,d,k))||(E=document.createElement("style"),E.textContent=AT9(V),document.head.appendChild(E))}},8)},prq=function(){var v=_.bb.navigator.deviceMemory;
return v>=8||v===void 0?!0:!1};
eBj.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var v={};this.viewTransitionCoordinator.registerElement(document.documentElement,(v.slide="root-slide",v["lockup-to-watch"]="root-lockup-to-watch",v["learning-journey"]="root-learning-journey",v))}};
_.jtZ=function(v,Q){v.isLockupToWatchTransitionEnabled&&v.isLockupThumbnailRegistrationEnabled&&(v.registeredLockupThumbnail?v.lockupThumbnailRegisteredFromWatchEndpoint?_.Iy(new _.xd("Lockup thumbnail registration order is incorrect.")):_.Iy(new _.xd("Lockup thumbnail already registered.")):(v.registeredLockupThumbnail=Q,_.ZO0(v,Q)))};
_.ZO0=function(v,Q){var V={};v.viewTransitionCoordinator.registerElement(Q,(V["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",V),!0)};
eBj[w$]=[vb7];var YlB={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 cpE=["videoPrimaryInfoRenderer","title"],fAE=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var PD$;PD$=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.dL7=_.x(function(v){v=_.o1(v,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var Q=v.data,V=v.playlistData,E=v.expanded,b=v.onExpandClick,F=v.isReadyToResume,t=function(){var w;return!((w=V())==null||!w.contents)},p=function(){var w=V();
return w&&w.totalVideos&&w.currentIndex!==void 0?w.currentIndex+1+" / "+w.totalVideos:""};
v=_.EP(function(){_.Ro(_.ht().resolve(_.lJ));return!1});
var Z=_.EP(function(){t()&&b&&b()}),d={};
return _.P("ytd-miniplayer-info-bar",{class:_.QZ("ytdMiniplayerInfoBarHost",(d.ytdMiniplayerInfoBarHasPlaylistData=t,d)),"on:click":Z},_.P("div",{class:"ytdMiniplayerInfoBarContent"},_.P("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":v},_.P(_.tD,{text:function(){var w=Q();var A=V();if(A==null?0:A.contents){var k;w=(k=_.vH0(A))==null?void 0:k.title}else w=w==null?void 0:w.miniplayerTitle;return GfZ(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.P("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.P(_.h,{cond:F,then:function(){return _.P(YwZ,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:PD$})}}),_.P("h1",null,_.P(_.tD,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var w=Q();var A=V();w=F()?{simpleText:_.Lt("CONTINUE_WATCHING",void 0,"Continue watching")}:(A==null?0:A.contents)?A.titleText:w==null?void 0:w.miniplayerSubtitle;return GfZ(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.P(_.h,{cond:function(){return!!p()&&!F()},
then:function(){return _.P("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.P("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.P("span",null,p))}}))),_.P(_.h,{cond:t,
then:function(){return _.P("div",{class:"ytdMiniplayerInfoBarExpand"},_.P(_.OA,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(w){b&&(b(),w.stopPropagation())}}},
iconName:function(){return E()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"yg");var hBI;hBI=_.x(function(v){return _.P("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.P(_.OA,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:v.onTap}},
iconName:"yt-icons:close"}))},"zg");
_.wrI=_.x(function(v){v=_.o1(v,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var Q=v.size,V=v.playabilityStatus,E=v.isDisabled,b=v.isPictureInPicture,F=_.Ze("div");v=_.L(_.Ge(void 0,void 0,"w4RAU"));var t=v.next().value,p=v.next().value;v=_.Z1(_.Hw);var Z=!1,d=function(){return Q().height<=0};
_.uH(function(){var T=Q(),c=d(),C=t();C&&!c&&C.setInternalSize(T.width,T.height)},"BHFc2b");
_.uk(function(){var T,c,C;return _.e(function(R){if(R.nextAddress==1){T=_.ht().resolve(_.lJ);c=T.getPlayerElement();if(!T.isMiniplayerActive()||!c||!F.value)return R.return();c.appendTo(F.value);return R.yield(c.getPlayerPromise(),2)}C=R.yieldResult;b()||C.setSizeStyle(!1,!0);p(C);_.q1(R)})});
_.j_(function(){w()});
_.uH(function(){var T=t();if(T)if(E()){var c=T.getPlayerState();(Z=c===-1||c===1||c===3)&&T.pauseVideo()}else w()},"Invykd");
var w=function(){if(Z){Z=!1;var T;(T=t())==null||T.playVideo()}},A=_.EP(function(){_.Ro(_.ht().resolve(_.lJ))}),k={};
return _.P("ytd-miniplayer-player-container",{class:_.QZ("ytdMiniplayerPlayerContainerHost",(k.ytdMiniplayerPlayerContainerHidden=d,k.ytdMiniplayerPlayerContainerHostShortsPip=v,k)),style:_.iP({width:function(){return Q().width+"px"},
height:function(){return Q().height+"px"}})},_.P("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:F}),_.P(_.h,{cond:function(){return!!V()&&!_.orG(V())},
then:function(){return _.P($js,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var T;return((T=V())==null?void 0:T.errorScreen)||null},
status:function(){var T;return((T=V())==null?void 0:T.status)||null}})}}),_.P(_.h,{cond:E,
then:function(){return _.P("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":A},_.P(hBI,{onTap:function(){_.ht().resolve(_.lJ).close()}}))}}))},"Dg");_.AFs=_.x(function(v){var Q=v.toastData;var V=_.Ze("ytd-miniplayer-toast");v=_.L(_.K_(function(){return!!Q()}));
var E=v.next().value,b=v.next().value;v=_.L(_.Ge(!1,void 0,"BvfNQe"));var F=v.next().value,t=v.next().value,p=function(){var w;return _.j0((w=Q())==null?void 0:w.data.title)};
_.jg(function(){_.QS.requestAvailability();Q()&&b(!1)});
var Z,d;_.uH(function(){E()&&(_.Hj(V.value,"iron-announce",{text:Q().label+" "+p()}),Z&&_.XT.cancelJob(Z),Z=_.XT.addLowPriorityJob(function(){t(!0)},2500))},"no1dZb");
_.uH(function(){F()&&(d&&_.XT.cancelJob(d),d=_.XT.addLowPriorityJob(function(){b(!1);t(!1)},300))},"G3yPNe");
v={};return _.P("ytd-miniplayer-toast",{el:V,class:_.QZ("ytdMiniplayerToastHost",(v.ytdMiniplayerToastOpening=function(){return E()},v.ytdMiniplayerToastClosing=function(){return F()},v))},_.P(_.h,{cond:function(){var w;
return(w=Q())==null?void 0:w.data},
then:function(w){return _.P(R3q,{className:"ytdMiniplayerToastThumbnail",data:w,width:78})}}),_.P("div",{class:"ytdMiniplayerToastInfo"},_.P("div",{class:"ytdMiniplayerToastLabel"},function(){var w;
return(w=Q())==null?void 0:w.label}),_.P("div",{class:"ytdMiniplayerToastTitle"},p)))},"Gg");var zZo;var xUo=null;var TOd=_.x(function(v){var Q=v.progressState;var V=v.multiMarkersPlayerBarRenderer;var E=v.progressBarWidth;var b=function(){return ujb(V())},F=function(){return oBG(Q())},t=function(){return E()*(Q().playedTime/Q().videoDuration)};
return _.P("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.P(_.xb,{each:b},function(p,Z){return _.P(kY5,{modifiedProps:F,chapters:b,index:Z,playedProgressWidth:t,backgroundGradientPosition:function(){var d=F(),w=b(),A=Z(),k=t();return(d.playedTime-RC(_.y(w[A],Do)))/d.playedTime*k}})}))},"Hg"),kY5=_.x(function(v){var Q=v.modifiedProps;
var V=v.chapters;var E=v.index;var b=v.playedProgressWidth;var F=v.backgroundGradientPosition;v={};v=_.QZ("ytChapteredProgressBarChapteredPlayerBarChapter",(v.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return t().isScrubbing},v.ytChapteredProgressBarHoveredMacroMarker=function(){return t().scrubberHovering},v.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return t().videoPosition==="seen"},v));
var t=function(){return XfS(Q(),V(),E())},p=function(){var Z=Q();
var d=V(),w=E();if(XfS(Z,d,w).videoPosition!=="active")Z=0;else{var A=RC(_.y(d[w],Do));Z=(Z.playedTime-A)/((RC(_.y(d[w+1],Do))||Z.videoDuration)-A)}return Z};
return _.P("div",{class:v,style:_.iP({width:function(){var Z=Q(),d=V(),w=E(),A=_.y(d[w],Do);d=_.y(d[w+1],Do);return(d?RC(d)-RC(A):Z.videoDuration-RC(A))/Z.videoDuration*100+"%"},
"background-color":function(){a:{var Z=t();switch(Z.videoPosition){case "pending":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:Z=""}}return Z},
"background-size":function(){return(aAB(t())?b():"")+"px"},
"background-position-x":function(){return(aAB(t())?F():"")+"px"}})},_.P("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var Z=Q(),d=V(),w=E();if(XfS(Z,d,w).videoPosition==="seen")var A=0;else A=RC(_.y(d[w],Do)),d=RC(_.y(d[w+1],Do))||Z.videoDuration,Z=Z.videoDuration*Z.percentLoaded,A=d<=Z?1:A>=Z?0:(Z-A)/(d-A);return"width: "+A*100+"%"}}),_.P("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.iP({width:function(){return p()*100+"%"},
"background-size":function(){return(aAB(t(),p())?b():"")+"px"},
"background-position-x":function(){return(aAB(t(),p())?F():"")+"px"}})}))},"Ig");var Yf7=function(v,Q){Q=Q===void 0?B3x:Q;var V,E=[],b,F=!1;return function(){var t=_.aE.apply(0,arguments);if(F&&V===this&&Q(t,E))return b;b=v.apply(this,t);F=!0;V=this;E=t;return b}}(function(v){var Q=v.heatMarkers,V=v.minHeightDp===void 0?0:v.minHeightDp,E=v.maxHeightDp===void 0?60:v.maxHeightDp;
var b=b===void 0?!1:b;var F=1E3/Q.length;v=[];v.push({x:0,y:100});for(var t=0;t<Q.length;t++){var p=void 0,Z=((p=_.y(Q[t],oHN))==null?void 0:p.heatMarkerIntensityScoreNormalized)||0;p=(t+.5)*F;Z=100-_.O$(Z*100,V/321*100,E/321*100);t!==0||b||v.push({x:0,y:Z});v.push({x:p,y:Z});t===Q.length-1&&v.push({x:1E3,y:Z})}v.push({x:1E3,y:100});Q="";for(V=0;V<v.length;V++)b=v[V],V===0?b="M "+b.x.toFixed(1)+","+b.y.toFixed(1):(E=jtm(v[V-1],v[V-2],b),F=jtm(b,v[V-1],v[V+1],!0),b=" C "+(E.x.toFixed(1)+","+E.y.toFixed(1)+
" "+F.x.toFixed(1)+","+F.y.toFixed(1)+" "+b.x.toFixed(1)+","+b.y.toFixed(1))),Q+=b;return Q});var yFs=_.x(function(v){var Q=v.progressBarProps;var V=v.config;var E={};v=_.QZ("ytHeatSeekerHost",(E.ytHeatSeekerHighContrast=v.highContrast,E));var b=function(){return RZr(V().chapterData)};
return _.P("yt-progress-bar-heatseeker",{class:v,style:function(){var F;return"height: 320px; display: "+(Q().isDragging&&((F=b())==null?0:F.heatMarkers)?"block":"none")}},_.P(_.h,{cond:b,
then:function(F){return _.P(_.h,{cond:function(){return F().heatMarkers},
then:function(){return _.P("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.P("path",{d:function(){return Yf7(F())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Jg");var cFs=_.x(function(v){var Q=v.progressBarProps;var V=v.config;v={};v=_.QZ("ytProgressBarLineProgressBarLine",(v.ytProgressBarLineProgressBarLineRounded=function(){return V().rounded},v.ytProgressBarLineProgressBarLineBottomInset=function(){return V().position===2},v));
return _.P("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.P("div",{class:v},_.P("div",{class:"ytProgressBarLineProgressBarBackground"}),_.P("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+Q().percentLoaded*100+"%"}}),_.P("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var E=Q();return"width: "+(E.videoDuration?_.O$(E.hoveredTime/E.videoDuration,0,1):0)*100+"%"}}),_.P("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+MoT(Q())*100+"%"}})))},"Kg");
cFs.idomCompat=!0;var fdh=_.x(function(v){var Q=v.progressBarProps;var V=v.playheadData;var E=v.interpolateDotPosition;var b=v.hidePlayhead;v={};var F=_.QZ("ytProgressBarPlayheadProgressBarPlayheadDot",(v.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return Q().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!Q().isDragging&&b()},v));
return _.P("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.iP({"margin-left":function(){return O8T(Q())*100+"%"},
transform:function(){return"translateX(-"+(E()?O8T(Q())*12:6)+"px)"}})},_.P(_.h,{cond:function(){var t;
return(t=_.Wn(V)())==null?void 0:t.playheadImage},
then:function(t){var p={};return _.P("div",{class:_.QZ("ytProgressBarPlayheadProgressBarPlayheadCustom",(p.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return Q().isDragging},p.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!Q().isDragging&&b()},p)),
style:_.iP({"transform-origin":function(){return(E()?O8T(Q())*20:10)+"px center"}})},_.P(_.gE,{data:t,
alt:"","aria-hidden":"true"}))},
else:function(){return _.P("div",{class:F,style:_.iP({"transform-origin":function(){return(E()?O8T(Q())*12:6)+"px center"}})})}}))},"Lg");
fdh.idomCompat=!0;var nc=function(v,Q,V,E,b,F){this.getProgressBarRect=v;this.updateProgressBarRect=Q;this.getFilmstripYPosition=V;this.setFineScrubbingDraggedTime=E;this.updateFilmStripDraggedYDistance=b;this.resetFilmStripYOffset=F;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.FK(this.onThrottledSeek,100,this)},GY0=function(v,Q,V){return function(E){v.handleClick(E,Q(),V())}},OOj=function(v,Q){return function(V){CDY(v,
V,Mjs(V),Q())}},DLh=function(v,Q){return function(V){CDY(v,V,{x:V.clientX,
y:V.clientY},Q())}},nFI=function(v,Q,V){return function(E){var b=Q(),F=V();
RBh(v,E,Mjs(E),b,F,!0);if(F.onTouchMove)F.onTouchMove(b)}},qfI=function(v,Q,V){return function(E){ldh(v,E,Q(),V())}},Sf5=function(v,Q){return function(){v.handleMouseLeave(Q())}},zBj=function(v,Q,V){return function(){var E=Q(),b=V();
lr(v,E,b);if(b.onTouchEnd)b.onTouchEnd(E)}},JFs=function(v,Q,V){return function(){var E=Q(),b=V();
lr(v,E,b);if(b.onTouchEnd)b.onTouchEnd(E)}},NOf=function(v,Q,V){return function(){lr(v,Q(),V())}},xLj=function(v){return function(Q){if(Q.keyCode===39||Q.keyCode===38){var V,E;
(V=v())==null||(E=V.playerApi)==null||E.seekBy(5,void 0,void 0,72)}else if(Q.keyCode===37||Q.keyCode===40){var b,F;(b=v())==null||(F=b.playerApi)==null||F.seekBy(-5,void 0,void 0,71)}}},BOY=function(v,Q,V){return function(E){!V().disableScrubbing&&v.startPosition&&ldh(v,E,Q(),V())}},gF0=function(v,Q,V){return function(){if(!V().disableScrubbing)if(v.startPosition){var E=Q(),b=V();
lr(v,Q(),V());if(b.onTouchEnd)b.onTouchEnd(E)}else Q().setState({isDragging:!1})}},Mjs=function(v){v=v.touches[0];
return{x:v.clientX,y:v.clientY}},ldh=function(v,Q,V,E){if(Q.buttons!==1){if(Q.movementX||Q.movementY)Q.preventDefault(),Q.stopPropagation(),v=se0(v,V,Q.clientX),V.setState({isHovering:!0,
hoveredTime:v*V.videoDuration})}else uT7(V),RBh(v,Q,{x:Q.clientX,y:Q.clientY},V,E,!1)};
nc.prototype.handleMouseLeave=function(v){uT7(v)};
var uT7=function(v){v.isHovering&&v.setState({isHovering:!1,hoveredTime:0})},CDY=function(v,Q,V,E){v.startPosition||(v.startPosition=V,v.updateProgressBarRect(),v.controlsWereVisibleBeforeDragging=E.controlsVisible,Q.stopPropagation(),_.Y("medium_progress_bar_modification")||Q.preventDefault())},RBh=function(v,Q,V,E,b,F){if(v.startPosition)if(F&&b.isInlinePlayback&&v.startPosition&&!v.hasDraggedTheMinimumDistance&&Math.abs(V.y-v.startPosition.y)>Math.abs(V.x-v.startPosition.x))lr(v,E,b);
else if(Q.preventDefault(),Q.stopPropagation(),E.videoDuration&&(v.startPosition&&!v.hasDraggedTheMinimumDistance&&(v.hasDraggedTheMinimumDistance=Math.abs(V.x-v.startPosition.x)>=1),b.enableFineScrubbing&&(v.startPosition&&(v.isDraggedForFineScrubbing=-(V.y-v.startPosition.y)>=60),!v.startPosition||V.y>=v.startPosition.y||(E.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:rpE(E.draggedTime,E,b.chapterData)}),v.setFineScrubbingDraggedTime(E.draggedTime),v.updateFilmStripDraggedYDistance(v.startPosition.y,
V.y,E))),v.hasDraggedTheMinimumDistance)){Q=se0(v,E,V.x);if(v.isDraggedForFineScrubbing){var t;(t=E.playerApi)==null||t.pauseVideo();E.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:E.draggedTime,filmStripXDistance:rpE(Q*E.videoDuration,E,b.chapterData)})}b.enableFineScrubbing&&(!b.enableFineScrubbing||v.getFilmstripYPosition(E)<68)||E.setState({draggedTime:Q*E.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:v.controlsWereVisibleBeforeDragging});var p;(p=
b.cancelAutohideControlsFn)==null||p.call(b)}},lr=function(v,Q,V){var E=V.enableFineScrubbing&&Q.fineScrubbingActiveState!=="off";
if(Q.isDragging||E){E={isDragging:!1,playedTime:Q.draggedTime,controlsVisible:v.controlsWereVisibleBeforeDragging};V.enableFineScrubbing&&Q.fineScrubbingActiveState!=="on"&&(v.resetFilmStripYOffset(),E.fineScrubbingActiveState="off");var b=b===void 0?xUo:b;var F=_.Mo(0);if(F&&b){var t=Math.round(Q.playedTime*1E3),p=Math.round(Q.draggedTime*1E3);t>2147483647||p>2147483647||_.jP(F,b,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(t),endMediaTimeMs:String(p),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}Q.setState(E);
v.seekThrottle.fire(Q.draggedTime,Q,7);_.Y("mweb_new_progress_bar_play_on_seek")&&v.resumeVideo(Q);V.unmuteOnSeek&&(V=Q.playerApi,Q.volumeMuted&&(V==null||V.unMute()))}else Q.setState({controlsVisible:!Q.controlsVisible}),(F=V.triggerAutohideControlsAfterDelayFn)==null||F.call(V);v.startPosition=null;v.hasDraggedTheMinimumDistance=!1;v.isDraggedForFineScrubbing=!1;v.controlsWereVisibleBeforeDragging=!1};
nc.prototype.handleClick=function(v,Q,V){this.updateProgressBarRect();v.stopPropagation();v=se0(this,Q,v.clientX)*Q.videoDuration;Q.setState({playedTime:v});if(Q.playerState!==2){var E;(E=V.triggerAutohideControlsAfterDelayFn)==null||E.call(V)}this.seekThrottle.fire(v,Q,7)};
var se0=function(v,Q,V){v=v.getProgressBarRect(Q);return _.O$(0,(V-v.left)/v.width,1)};
nc.prototype.resumeVideo=function(v){if(v.draggedTime<v.videoDuration){var Q;(Q=v.playerApi)==null||Q.playVideo()}};
nc.prototype.onThrottledSeek=function(v,Q,V){if(Q=Q.playerApi){var E;if((E=Q.getVideoData())==null?0:E.isLive)E=this.getProgressState(Q),v+=(E==null?void 0:E.seekableStart)||0;Q.seekTo(v,void 0,void 0,void 0,V)}};
nc.prototype.getProgressState=function(v){var Q=v==null?void 0:v.getPresentingPlayerType();return v==null?void 0:v.getProgressState(Q)};var oFs,W7q,Xr8,rFj,jeh,$L8,Idf,HOY,mLf;oFs=_.x(function(v){var Q=v.progressBarProps;var V=v.config;var E=v.progressBarWidthPx;var b=v.chapterData;var F=UU0(Q,function(){return V().isShortsPage}),t=function(){return!Q().isHovering&&!V().isShortsPage};
v={};var p=_.QZ("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(v.ytPlayerStoryboardHostMwebShorts=function(){return V().isShortsPage&&!1},v));
return _.P("yt-player-storyboard",null,_.P(_.h,{cond:function(){return Q().isDragging||Q().isHovering},
then:function(){return _.P(_.h,{cond:F,then:function(Z){return _.P(_.h,{cond:t,then:function(){return _.P("div",{class:p,"aria-hidden":"true"},_.P(jeh,{props:Q,config:V,isBigboard:!0,chapterData:b}))},
else:function(){return _.P(W7q,{props:Q,frame:Z,config:V,progressBarWidthPx:E,chapterData:b})}})}})}}))},"Mg");
_.ad0=_.x(function(v){var Q=v.progressBarProps;var V=UU0(Q,v.isShortsPage);return _.P("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.P(_.h,{cond:function(){return Q().isDragging||Q().isHovering},
then:function(){return _.P(_.h,{cond:V,then:function(E){return _.P(Xr8,{frame:E,props:Q,isBigboard:!0})}})}}))},"Ng");
W7q=_.x(function(v){var Q=v.props;var V=v.frame;var E=v.config;var b=v.progressBarWidthPx;v=v.chapterData;var F={};F=_.QZ("ytPlayerStoryboardHost",(F.ytPlayerStoryboardHostMwebShorts=function(){return E().isShortsPage&&!1},F.ytPlayerStoryboardHostInlinePlayer=function(){return E().isInlinePlayer},F.ytPlayerStoryboardHostFadeIn=function(){return E().useFadeInAnimation},F));
return _.P("div",{class:F,"aria-hidden":"true",style:function(){var t=Q(),p=$UT(V()),Z=b();t=IAr(t)/t.videoDuration;var d=Z*t,w=p/2+6;p=Z-(p/2+6);return"left: "+(d<=w?w/Z*100:d>=p?p/Z*100:t*100)+"%"}},_.P(_.h,{cond:function(){var t=Q();
return!(E().isShortsPage&&t.videoDuration<15)},
then:function(){return _.P(Xr8,{frame:V,props:Q,isBigboard:!1})}}),_.P(jeh,{props:Q,
config:E,isBigboard:!1,chapterData:v}))},"Og");
Xr8=_.x(function(v){var Q=v.frame;var V=v.props;var E=v.isBigboard;var b=function(){var p,Z;return(Z=(p=V().playerApi)==null?void 0:p.getVideoContentRect())!=null?Z:{width:0,height:0}},F=function(){return $UT(Q())},t=function(){var p=Q();
return p?p.height/p.rows:0};
v={};v=_.QZ((v.ytPlayerStoryboardBigboardImageWrapper=E,v.ytPlayerStoryboardStoryboardImageWrapper=function(){return!E()},v));
return _.P("div",{class:v,style:function(){return"width: "+(E()?b().width:F())+"px; height: "+(E()?b().height:t())+"px;"}},_.P(rFj,{frame:Q,
storyboardWidth:F,storyboardHeight:t,storyboardScale:function(){return(E()?b().width:F())/F()}}))},"Pg");
rFj=_.x(function(v){var Q=v.frame;var V=v.storyboardWidth;var E=v.storyboardHeight;var b=v.storyboardScale;var F=function(){var t=Q().row,p=Q().column,Z=V(),d=E(),w=b();return{left:-p*Z*w,top:-t*d*w}};
return _.P("img",{src:function(){return Q().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+F().left+"px; top: "+F().top+"px; width: "+Q().width*b()+"px; height: "+Q().height*b()+"px;"}})},"Qg");
jeh=_.x(function(v){var Q=v.props;var V=v.config;var E=v.isBigboard;var b=v.chapterData;v={};v=_.QZ("ytPlayerStoryboardMetadata",(v.ytPlayerStoryboardMetadataBigboard=E,v));return _.P("div",{class:v},_.P(_.h,{cond:E,then:function(){return _.P(_.w7,null,_.P($L8,{props:Q,config:V}),_.P(_.h,{cond:function(){a:{var F=Q();var t=V(),p=b(),Z;if((t==null?0:t.activeChapter)&&((Z=_.y(t==null?void 0:t.activeChapter,Do))==null?0:Z.title))F=!0;else{t=_.L(nBh(p));for(t=t.next();!t.done;t=t.next()){F=(t=_.y(t.value,
aZx))&&H8G(F,t);break a}F=!1}}return F},
then:function(){return _.P(Idf,{props:Q,config:V,isBigboard:!0,chapterData:b})}}))},
else:function(){return _.P(_.w7,null,_.P(Idf,{props:Q,config:V,isBigboard:!0,chapterData:b}),_.P($L8,{props:Q,config:V}))}}))},"Rg");
$L8=_.x(function(v){var Q=v.props;var V=v.config;v={};v=_.QZ("ytPlayerStoryboardTimestamp",(v.ytPlayerStoryboardTimestampShorts=function(){return V().isShortsPage},v.ytPlayerStoryboardTimestampIsHovering=function(){return Q().isHovering||V().isShortsPage&&!0},v));
return _.P("div",{class:v},_.P(_.w7,null,function(){return _.mUB(IAr(Q()))}))},"Sg");
Idf=_.x(function(v){var Q=v.props;var V=v.config;var E=v.isBigboard;var b=v.chapterData;v={};E=_.QZ("ytPlayerStoryboardTitle",(v.ytPlayerStoryboardTitleBigboard=E,v));return _.P("div",{class:E},_.P(_.h,{cond:function(){return!V().isShortsPage},
then:function(){return _.P(HOY,{props:Q,activeChapter:function(){return V().activeChapter},
chapterData:b})}}))},"Tg");
HOY=_.x(function(v){var Q=v.props;var V=v.activeChapter;var E=v.chapterData;return _.P(_.w7,null,_.P(_.xb,{each:function(){return nBh(E())},
keyBy:"INDEX"},function(b){return _.P(_.w7,null,_.P(_.h,{cond:function(){return _.y(b(),aZx)&&H8G(Q(),_.y(b(),aZx))},
then:function(){return _.P(mLf,{timedMarker:function(){return _.y(b(),aZx)}})}}))}),_.P(_.h,{cond:function(){var b;
return V()&&((b=_.y(V(),Do))==null?void 0:b.title)},
then:function(b){return _.P(_.tD,{text:b,noPreWrap:!0})}}))},"Ug");
mLf=_.x(function(v){var Q=v.timedMarker;return _.P(_.w7,null,_.P("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.P(_.L_,{icon:function(){return Q().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.P(_.tD,{text:function(){return Q().label},
noPreWrap:!0}))},"Vg");_.ULf=_.x(function(v){var Q=v.progressBarProps;var V=v.playheadData;var E=v.config;v=_.Ze("yt-progress-bar");var b=_.Ze("div"),F=_.Ze("div"),t=_.L(_.Ge({width:0,left:0},void 0,"WloVn")),p=t.next().value,Z=t.next().value,d=function(){F.value&&Z(F.value.getBoundingClientRect())},w=function(){p().width<=0&&d();
return p()};
_.wX("resize",d);var A=new nc(w,function(){},function(){return 0},function(){},function(){},function(){}),k=function(){return Q()};
t=_.L(_.Ge(!1,void 0,"u8BZZb"));var T=t.next().value,c=t.next().value;t=_.EP(function(){c(!0);E().position===2?setTimeout(function(){d()},100):d()});
var C=_.EP(function(){c(!1);Sf5(A,k)()}),R=_.EP(function(lb){E().doSeekOnClick&&GY0(A,k,E)(lb);
return!1}),l=_.EP(function(lb){OOj(A,k)(lb);
return!1}),S=_.EP(function(lb){DLh(A,k)(lb);
return!1}),a=_.EP(function(lb){nFI(A,k,E)(lb);
return!1}),g=_.EP(function(lb){qfI(A,k,E)(lb);
return!1}),u=_.EP(function(){zBj(A,k,E)();
return!1}),r=_.EP(function(){JFs(A,k,E)();
return!1}),v9=_.EP(function(){NOf(A,k,E)();
return!1}),t3=_.EP(function(lb){xLj(k)(lb);
return!1});
_.wX("mousemove",BOY(A,k,E));_.wX("mouseup",gF0(A,k,E));_.jg(function(){B6r(b.value);c(!1);d();gF0(A,k,E)()});
var h3={};h3=_.QZ("ytPlayerProgressBarHost",function(){return E().className},(h3.ytPlayerProgressBarHostReadOnly=function(){return E().disableScrubbing},h3.ytPlayerProgressBarHostHidden=function(){return E().hideProgressBar&&!T()},h3.ytPlayerProgressBarHostLowerPlayer=function(){return E().position===0},h3.ytPlayerProgressBarHostBottomEdge=function(){return E().position===1},h3.ytPlayerProgressBarHostBottomInset=function(){return E().position===2},h3.ytPlayerProgressBarHostCustom=function(){return E().position===
3},h3));
var OB={},kQ=_.QZ("ytPlayerProgressBarBackground",(OB.ytPlayerProgressBarBackgroundHide=function(){return E().position===2&&!T()&&!Q().isDragging},OB));
OB={};OB=_.QZ("ytPlayerProgressBarDragContainer",(OB.ytPlayerProgressBarDragContainerBottomEdge=function(){return E().position===1},OB));
var yo={};yo=_.QZ("ytPlayerProgressBarProgressBar",(yo.ytPlayerProgressBarProgressBarInset=function(){return E().position===2},yo.ytPlayerProgressBarProgressBarInsetMinimized=function(){return E().position===2&&!T()&&!Q().isDragging},yo));
var xQ=function(){return Math.floor(MoT(Q())*100)};
return _.P("yt-progress-bar",{el:v,class:h3},_.P(_.h,{cond:function(){return E().position===2},
then:function(){return _.P("div",{class:kQ})}}),_.P("div",{el:b,
"on:click":R,"on:touchstart":l,"on:touchmove":a,"on:mouseenter":t,"on:mousedown":S,"on:mouseleave":C,"on:mousemove":g,"on:mouseup":r,"on:touchend":u,"on:touchcancel":v9,"on:keydown":t3,class:OB,role:"slider","aria-valuenow":xQ,"aria-valuetext":function(){return xQ()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return Q().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Lt("SEEK_SLIDER")},_.P("div",{el:F,class:yo},_.P(yFs,{progressBarProps:Q,config:E,highContrast:function(){return!!E().isInlinePlayback}}),_.P(_.h,{cond:function(){return E().chapterData&&lAE(E().chapterData)},
then:function(){return _.P(TOd,{progressState:Q,multiMarkersPlayerBarRenderer:function(){return E().chapterData},
progressBarWidth:function(){return p().width}})},
else:function(){return _.P(cFs,{progressBarProps:Q,config:E})}}),_.P(fdh,{progressBarProps:Q,
playheadData:V,interpolateDotPosition:function(){return E().position!==2},
hidePlayhead:function(){return E().playheadDotBehavior===1&&!T()}}))),_.P(oFs,{progressBarProps:Q,
config:function(){return{activeChapter:WDh(Q(),E().chapterData),getProgressBarWidthPx:function(){return w().width},
isShortsPage:!!E().isShortsPage,isInlinePlayer:!!E().isInlinePlayback,useFadeInAnimation:!!E().isInlinePlayback}},
progressBarWidthPx:function(){return p().width},
chapterData:function(){return E().chapterData}}))},"Wg");
_.ULf.idomCompat=!0;Object.assign({},_.qlr(),{setState:function(){},
domMeasurements:{},appApi:_.Cnm(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var vhh;
_.Qyq=_.x(function(){var v,Q=(v=_.nq(vem().playerApi))!=null?v:void 0;v=_.L(_.Ge(!1,void 0,"Z9NQ1b"));var V=v.next().value,E=v.next().value;v=_.L(_.Ge(!1,void 0,"HoVJXe"));var b=v.next().value,F=v.next().value;v=_.L(_.Ge(!1,void 0,"DWCY3"));var t=v.next().value,p=v.next().value;v=_.L(_.Ge(!1,void 0,"g4C2Zd"));var Z=v.next().value,d=v.next().value;v=_.L(_.Ge(0,void 0,"lmVfFb"));var w=v.next().value,A=v.next().value;v=_.L(_.Ge(0,void 0,"mFLbzb"));var k=v.next().value,T=v.next().value;v=_.L(_.Ge(!1,void 0,
"hQN4Wb"));var c=v.next().value,C=v.next().value;v=_.L(_.Ge(0,void 0,"WWU0fb"));var R=v.next().value,l=v.next().value;v=_.L(_.Ge(0,void 0,"MJ7LMd"));var S=v.next().value,a=v.next().value;v=_.L(_.Ge("",void 0,"hnomOe"));var g=v.next().value,u=v.next().value;v=_.L(_.Ge(-1,void 0,"ARe3pf"));var r=v.next().value,v9=v.next().value,t3=_.Rr(function(){var h3={controlsVisible:V(),isOverlayHidden:b(),shouldWaitToHideControls:t(),isDragging:Z(),isHovering:c(),videoDuration:R(),playedTime:S(),videoId:g(),draggedTime:k(),
hoveredTime:w(),playerState:r()};return Object.assign({},_.qlr(),h3,{domMeasurements:{},setState:function(OB){OB.controlsVisible!==void 0&&E(OB.controlsVisible);OB.isOverlayHidden!==void 0&&F(OB.isOverlayHidden);OB.shouldWaitToHideControls!==void 0&&p(OB.shouldWaitToHideControls);OB.isDragging!==void 0&&d(OB.isDragging);OB.isHovering!==void 0&&C(OB.isHovering);OB.draggedTime!==void 0&&T(OB.draggedTime);OB.hoveredTime!==void 0&&A(OB.hoveredTime);OB.videoDuration!==void 0&&l(OB.videoDuration);OB.playedTime!==
void 0&&a(OB.playedTime);OB.videoId!==void 0&&u(OB.videoId);OB.playerState!==void 0&&v9(OB.playerState)},
appApi:_.Cnm(),playerApi:Q})},void 0,"Au4PIf");
_.uk(function(){Q==null||Q.addEventListener("onVideoProgress",N6B(t3));Q==null||Q.addEventListener("onVideoDataChange",JpZ(t3));Q==null||Q.addEventListener("onStateChange",SlT(t3))});
_.j_(function(){if(Q==null?0:Q.isReady())Q==null||Q.removeEventListener("onVideoProgress",N6B(t3)),Q==null||Q.removeEventListener("onVideoDataChange",JpZ(t3)),Q==null||Q.removeEventListener("onStateChange",SlT(t3))});
return _.P("desktop-shorts-player-controls",null,_.P(vhh,{playerControlsProps:t3}))},"Yg");
vhh=_.x(function(v){var Q=v.playerControlsProps;return _.P("div",{class:"desktopShortsPlayerControlsHost"},_.P(_.ULf,{progressBarProps:Q,config:function(){return{isShortsPage:!0,hideProgressBar:Q().videoDuration<30&&Q().playerState!==2&&!Q().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Zg");_.Vxh=_.x(function(v){function Q(h3){h3!==0||A()?h3>50&&(A()||!T())?(k(!1),c(!0)):h3<=50&&(A()||T())&&(k(!1),c(!1)):k(!0)}
function V(h3,OB){var kQ;return _.e(function(yo){if(yo.nextAddress==1)return yo.yield(_.Eu(),2);kQ=yo.yieldResult;OB&&kQ?(kQ.unMute(!0),h3&&(Vab(h3,kQ.getVolume()),R(kQ.getVolume()))):kQ&&(kQ.mute(!0),h3&&Vab(h3,0));_.q1(yo)})}
function E(h3){var OB,kQ;return _.e(function(yo){if(yo.nextAddress==1)return yo.yield(_.Eu(),2);OB=yo.yieldResult;kQ=50;OB&&(kQ=OB.getVolume(),OB.isMuted()?Vab(h3,0):Vab(h3,kQ));R(kQ);_.q1(yo)})}
var b=v.orientation;v=_.Ze("desktop-shorts-volume-controls");var F=_.Ze("button"),t=_.Pa("input"),p=_.L(_.Ge(!1,void 0,"MvN0Tc")),Z=p.next().value,d=p.next().value,w=_.L(_.Ge(!1,void 0,"aSjsEb"));p=w.next().value;w=w.next().value;var A=p,k=w;w=_.L(_.Ge(!0,void 0,"FUh46d"));p=w.next().value;w=w.next().value;var T=p,c=w;p=_.L(_.Ge(50,void 0,"yPke4d"));var C=p.next().value,R=p.next().value;p=_.Rr(function(){var h3=A();return _.Y("web_shorts_keyboard_enable_mute_shortcut")?h3?_.Lt("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Lt("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):h3?_.Lt("UNMUTE_VOLUME",void 0,"Unmute"):_.Lt("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
w=_.Rr(function(){var h3=A(),OB=T();return{sources:[{clientResource:{imageName:h3?_.Y("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":OB?_.Y("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.Y("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var l=_.Rr(function(){var h3=C();return A()?h3+"% volume muted":h3+"% volume"},void 0,"xZsRmc"),S=_.Rr(function(){return b()==="vertical_down"},void 0,"FVqYmb");
_.jg(function(){function h3(){d(!0)}
function OB(){d(!1)}
t&&t.value&&(t.value.addEventListener("focus",h3),t.value.addEventListener("focusout",OB),E(t.value).then(function(){Q(Number(Ee3(t.value)))}));
F&&F.value&&(F.value.addEventListener("focus",h3),F.value.addEventListener("focusout",OB));_.j_(function(){var kQ;t==null||(kQ=t.value)==null||kQ.removeEventListener("focus",h3);var yo;t==null||(yo=t.value)==null||yo.removeEventListener("focusout",OB);var xQ;F==null||(xQ=F.value)==null||xQ.removeEventListener("focus",h3);var lb;F==null||(lb=F.value)==null||lb.removeEventListener("focusout",OB)})});
var a=_.EP(function(){if(t&&t.value){var h3=Number(Ee3(t.value));Qzt(h3);R(h3);t.value.style.setProperty("--gradient-percent",h3+"%");Q(h3)}return!1}),g=_.EP(function(){t&&t.value&&(V(t.value,A()),k(!A()));
return!1}),u={},r={},v9={},t3={};
return _.P("desktop-shorts-volume-controls",{"on:pointerleave":_.EP(function(){d(!1)}),
"on:pointerenter":_.EP(function(){d(!0)}),
class:_.QZ("ytdDesktopShortsVolumeControlsHost",(u.ytdDesktopShortsVolumeControlsHostVertical=S,u.ytdDesktopShortsVolumeControlsHostModern=_.Y("web_shorts_modern_controls"),u.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.Y("web_shorts_modern_controls")&&Z()},u)),
el:v},_.P(_.h,{cond:function(){return!S()},
then:function(){var h3={};return _.P("div",{class:_.QZ("ytdDesktopShortsVolumeControlsBackgroundScrim",(h3.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Z,h3.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.Y("web_shorts_modern_controls")&&Z()},h3))})}}),_.P("div",{class:_.QZ((r.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=S,r))},_.P("button",{"aria-label":p,
title:p,el:F,"on:click":g,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},w?_.P(_.gE,{data:w,alt:p,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.P("div",{class:_.QZ("ytdDesktopShortsVolumeControlsSliderContainer",(v9.ytdDesktopShortsVolumeControlsSliderContainerExpanded=Z,v9.ytdDesktopShortsVolumeControlsSliderContainerVertical=S,v9.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=S,v9.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return Z()&&
S()},v9))},_.P("input",{"aria-label":_.Lt("VOLUME"),
title:_.Lt("VOLUME"),el:t,"on:input":a,type:"range",class:_.QZ("ytdDesktopShortsVolumeControlsNativeSlider",(t3.ytdDesktopShortsVolumeControlsNativeSliderModern=_.Y("web_shorts_modern_controls"),t3)),id:"volume-input",role:"slider","aria-valuenow":C,"aria-valuetext":l,"aria-valuemin":0,"aria-valuemax":100})))},"$g");var Ehm=_.x(function(v){var Q=v.data;var V=v.overlayDensity;v={};return _.P("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.P(_.Pw,{data:function(){return Q().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(E){var b=E.data;
return _.P(_.VO,{data:function(){return(V==null?void 0:V())===1?Object.assign({},b(),{avatar:{avatarViewModel:Object.assign({},_.y(b().avatar,_.Ou),{avatarImageSize:"AVATAR_SIZE_M"})}}):b()}})}}),_.P(_.Pw,{data:function(){return Q().avatarStackViewModel}},{avatarStackViewModel:function(E){return _.P(_.Em,{data:E.data})}}),_.P(_.tD,{className:_.QZ("ytReelChannelBarViewModelChannelName",(v.ytReelChannelBarViewModelChannelNameLarge=function(){return(V==null?void 0:V())===1},v)),
text:function(){return Q().channelName},
linkInheritColor:!0,userInput:!0}),_.P("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.P(_.Pw,{data:function(){return Q().subscribeButtonViewModel}},{subscribeButtonViewModel:function(E){var b=E.data;
return _.P(_.vI,{data:function(){return(V==null?void 0:V())===1?Object.assign({},b(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},b().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):b()},
isOverlay:!1})},
buttonViewModel:_.D6})),_.P("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.P(_.Pw,{data:function(){var E,b;return(b=_.y((E=Q())==null?void 0:E.sponsorButtonViewModel,V4Z))==null?void 0:b.sponsorButton}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ah");var bpm=_.x(function(v){var Q=function(){var b;return((b=v.overlayDensity)==null?void 0:b.call(v))===1},V=function(){return Q()?22:16},E={};
return _.P("yt-reel-multi-format-link-view-model",{class:_.QZ("ytReelMultiFormatLinkViewModelHost",(E.ytReelMultiFormatLinkViewModelHostTall=!0,E.ytReelMultiFormatLinkViewModelHostLarge=function(){return Q()},E))},_.P(_.yL,{ariaLabel:function(){return v.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return v.data().command}},_.P("h3",{class:function(){return Q()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.P(_.h,{cond:function(){return v.data().icon},
then:function(b){return _.P(_.gE,{data:b,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:V})}}),_.P(_.tD,{text:function(){return v.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bh");
bpm.idomCompat=!0;var Ftn=_.x(function(v){var Q=v.data;var V=v.overlayDensity;var E=v.extractOverlay;var b=_.Ze("yt-shorts-suggested-action-view-model");v=_.L(_.Ge(!1,void 0,"S60Hzc"));var F=v.next().value,t=v.next().value;v=_.L(_.Ge(!1,void 0,"O76chf"));var p=v.next().value,Z=v.next().value,d=function(){return Q().isMultiLineSa},w=_.p4(kKb,function(){var u,r;
return(r=(u=Q().toggleableContent)==null?void 0:u.entityKey)!=null?r:""}),A=function(){var u,r,v9;
return(v9=Q().toggleableContent)!=null&&v9.entityKey?(r=(u=w())==null?void 0:u.value)!=null?r:!1:!1},k=function(){var u,r,v9,t3,h3,OB,kQ,yo,xQ,lb,ep;
return Q().toggleableContent?A()?(u=Q().toggleableContent)==null?void 0:u.toggledData:(r=Q().toggleableContent)==null?void 0:r.untoggledData:{primaryText:(yo=(v9=Q().defaultContent)==null?void 0:v9.primaryText)!=null?yo:Q().text,secondaryText:(t3=Q().defaultContent)==null?void 0:t3.secondaryText,onTapCommand:(xQ=(h3=Q().defaultContent)==null?void 0:h3.onTapCommand)!=null?xQ:Q().onTapCommand,icon:(lb=(OB=Q().defaultContent)==null?void 0:OB.icon)!=null?lb:Q().icon,image:(ep=(kQ=Q().defaultContent)==
null?void 0:kQ.image)!=null?ep:Q().image}},T=function(){return d()?Q().trailingTapTarget:void 0},c=function(u,r){return function(){return F()?r:u}},C=function(){return{leadingSection:c("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(V==null?void 0:V())===1?c("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):c("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:c("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:c("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:c("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
v={};v=_.QZ((v.ytShortsSuggestedActionViewModelStaticHost=function(){return!d()},v.ytShortsSuggestedActionViewModelDynamicHost=d,v.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return d()&&p()},v.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return d()&&!p()},v.ytShortsSuggestedActionViewModelExtractOverlay=function(){return E==null?void 0:E()},v));
_.jg(function(){if(d()){var u=0,r;if((r=Q().animationParams)==null?0:r.shouldExpand){var v9,t3;u=((t3=(v9=Q().animationParams)==null?void 0:v9.expansionDelaySecs)!=null?t3:0)*1E3}var h3,OB=((h3=Q().animationParams)==null?0:h3.shouldExpand)?setTimeout(function(){t(!0)},u):void 0,kQ,yo;
u=((kQ=Q().animationParams)==null?0:kQ.visibilityDelaySecs)?((yo=Q().animationParams)==null?NaN:yo.visibilityDelaySecs)*1E3:0;var xQ=setTimeout(function(){Z(!0)},u);
_.j_(function(){OB&&clearTimeout(OB);clearTimeout(xQ)})}});
var R=function(u){_.nx(u,Object.assign({},{form:{element:b.value}}))},l=_.EP(function(){var u,r=(u=k())==null?void 0:u.onTapCommand;
r&&R(r)}),S=_.EP(function(){var u,r;
if(u=(r=T())==null?void 0:r.onTapCommand)return R(u),!1}),a=_.iP({"vertical-align":"bottom",
"border-radius":function(){var u;return d()?((u=Q().defaultContent)==null?0:u.isCircleImage)?"50%":"4px":"0px"},
width:function(){var u,r,v9;return d()&&((u=Q().defaultContent)==null?0:u.imageSize)?((v9=(r=Q().defaultContent)==null?void 0:r.imageSize)!=null?v9:24)+"px":null},
height:function(){var u,r,v9;return d()&&((u=Q().defaultContent)==null?0:u.imageSize)?((v9=(r=Q().defaultContent)==null?void 0:r.imageSize)!=null?v9:24)+"px":null}}),g={};
return _.P("yt-shorts-suggested-action-view-model",{class:v,el:b},_.P("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.P("button",{class:_.QZ(function(){return d()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var u;
return(u=Q().useFullRoundedBorder)!=null&&u?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!T()&&d()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":d()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var u;
return(u=Q().disableFixedHeight)!=null&&u?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(g.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(V==null?void 0:V())===1},g.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return E==null?void 0:E()},g)),
"on:click":l},_.P(_.c6,{model:{color:4}}),_.P("div",{class:_.QZ(function(){return d()?C().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.P(_.h,{cond:function(){var u;
return(u=k())==null?void 0:u.image},
then:function(u){return _.P(_.gE,{data:u,alt:"",className:function(){return d()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:a})}}),_.P(_.h,{cond:function(){var u,r;
return(u=k())==null?void 0:(r=u.icon)==null?void 0:r.iconType},
then:function(u){return _.P(_.L_,{icon:u,active:A,className:function(){return d()?F()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.P("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.P(_.h,{cond:function(){var u;
return(u=k())==null?void 0:u.primaryText},
then:function(u){var r={};return _.P("div",{class:_.QZ("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(r.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(V==null?void 0:V())===1},r))},_.P(_.tD,{text:u}))}}),_.P(_.h,{cond:function(){var u;
return(u=k())==null?void 0:u.secondaryText},
then:function(u){return _.P("div",{class:function(){return C().secondaryText()}},_.P(_.tD,{text:u}))}}))),_.P(_.h,{cond:T,
then:function(u){return _.P("div",{class:_.QZ(function(){return C().trailingSection()},function(){var r,v9;
return(E==null?void 0:E())&&((v9=(r=C()).trailingSectionExtractOverlay)==null?void 0:v9.call(r))||""}),
"aria-label":function(){var r;return(r=u().a11yLabel)!=null?r:""},
"on:click":S,role:"button",tabindex:0},_.P(_.c6,{model:{color:4}}),_.P(_.L_,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ch");var Kth=_.x(function(v){var Q=v.data;var V=v.overlayDensity;var E=_.Ze("yt-shorts-video-title-view-model");v=_.EP(function(t){if(_.cw(_.yw(t),E.value,["A".toString()]))return!1;(t=Q().truncatedTextOnTapCommand)&&_.nx(t);return!1});
var b={},F={};return _.P("yt-shorts-video-title-view-model",{el:E,class:_.QZ("ytShortsVideoTitleViewModelHost",(b.ytShortsVideoTitleViewModelHostClickable=function(){return!!Q().truncatedTextOnTapCommand},b)),
"on:click":v},_.P("h2",{class:_.QZ("ytShortsVideoTitleViewModelShortsVideoTitle",(F.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(V==null?void 0:V())===1},F))},_.P(_.tD,{text:function(){return Q().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(V==null?void 0:V())===1}})))},"dh");_.ipY=_.x(function(v){var Q=v.data;var V=v.overlayDensity;var E=v.extractOverlay;var b=function(){return(V==null?void 0:V())===1};
return _.P("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.P(_.Pw,{data:function(){return Q().metadataItems}},{badgeViewModel:function(F){F=F.data;
return _.P("div",{class:_.QZ(function(){return b()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.P(_.YO,{data:F}))},
playerDisclosureViewModel:function(F){F=F.data;return _.P("div",{class:_.QZ(function(){return b()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.P(_.vP5,{data:F,
extractOverlay:E}))},
shortsSuggestedActionViewModel:function(F){F=F.data;return _.P("div",{class:_.QZ(function(){return b()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.P(Ftn,{data:F,
overlayDensity:V,extractOverlay:E}))},
reelChannelBarViewModel:function(F){F=F.data;var t={};return _.P("div",{class:_.QZ("ytReelMetapanelViewModelMetapanelItem",(t.ytReelMetapanelViewModelExpansive=function(){return b()},t))},_.P(Ehm,{data:F,
overlayDensity:V}))},
reelMultiFormatLinkViewModel:function(F){F=F.data;var t={};return _.P("div",{class:_.QZ("ytReelMetapanelViewModelMetapanelItem",(t.ytReelMetapanelViewModelExpansive=function(){return b()},t))},_.P(bpm,{data:F,
overlayDensity:V}))},
shortsVideoTitleViewModel:function(F){F=F.data;var t={};return _.P("div",{class:_.QZ("ytReelMetapanelViewModelMetapanelItem",(t.ytReelMetapanelViewModelExpansive=function(){return b()},t))},_.P(Kth,{data:F,
overlayDensity:V}))},
reelSoundMetadataViewModel:function(F){F=F.data;var t={};return _.P("div",{class:_.QZ("ytReelMetapanelViewModelMetapanelItem",(t.ytReelMetapanelViewModelExpansive=function(){return b()},t))},_.P(_.iUj,{data:F,
overlayDensity:V}))},
toggleButtonViewModel:function(F){F=F.data;var t={};return _.P("div",{class:_.QZ("ytReelMetapanelViewModelMetapanelItem",(t.ytReelMetapanelViewModelExpansive=function(){return b()},t))},_.P(_.a5,{data:F}))}}))},"eh");var Ltd=_.x(function(v){var Q=_.o1(v,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),V=Q.size,E=Q.onTap,b=Q.disabled,F=Q.tooltipText;return _.P("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.P(_.OA,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:V(),disabled:b(),tooltipText:F(),onTap:E}},
iconName:v.iconType}))},"fh"),tx5=_.x(function(v){function Q(w){w.stopPropagation();
w.code==="ArrowUp"?(w.preventDefault(),Kmt(p.value)):w.code==="ArrowDown"?(w.preventDefault(),iS3(p.value)):w.code==="KeyM"?bSS():(w.code==="KeyK"||w.code==="Space")&&FmS(Z())}
var V=_.o1(v,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});v=V.previousButtonDisabled;var E=V.nextButtonDisabled,b=V.data,F=V.playabilityStatus,t=V.previewThumbnail,p=_.Ze("ytd-shorts-miniplayer-overlay"),Z=_.Z1(_.xlT),d;_.uk(function(){(d=_.W4(p.value))&&d.addEventListener("keydown",Q)});
_.j_(function(){var w;(w=d)==null||w.removeEventListener("keydown",Q)});
V=function(){var w,A,k;return(w=b())==null?void 0:(A=w.reelPlayerOverlayRenderer)==null?void 0:(k=A.likeButton)==null?void 0:k.likeButtonRenderer};
return _.P("ytd-shorts-miniplayer-overlay",{el:p,class:"ytdShortsMiniplayerOverlayHost"},_.P("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.iP({"background-image":function(){var w=t();return w?'url("'+_.$D(w.thumbnails)+'")':""}})}),_.P("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.P("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.P(Ltd,{iconType:function(){var w=Z();
return w===2||w===-1||w===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){FmS(Z())},
tooltipText:function(){var w=Z();return w===1||w===3?_.Lt("PLAYER_LABEL_PAUSE"):_.Lt("PLAYER_LABEL_PLAY")}}),_.P(_.Vxh,{orientation:"horizontal_right"})),_.P("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.P(Ltd,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:v,onTap:function(){Kmt(p.value)},
tooltipText:_.Lt("PREVIOUS_VIDEO_LABEL")}),_.P(Ltd,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:E,onTap:function(){iS3(p.value)},
tooltipText:_.Lt("NEXT_VIDEO_LABEL")}),_.Y("web_shorts_pip_like_button")?_.P("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.P(Ofj,{buttonTooltipPosition:"left",data:V,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.P("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.P(_.h,{cond:function(){var w,A;return _.y((w=b())==null?void 0:(A=w.reelPlayerOverlayRenderer)==null?void 0:A.metapanel,
UlN)},
then:function(w){return _.P("div",{class:_.QZ("ytdShortsMiniplayerOverlayInteractive")},_.P(_.ipY,{data:w}))}})),_.P("div",{class:_.QZ("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var w;return!((w=b())==null||!w.adsOverlay)||F()&&!WEm(F())}},_.P("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.P(_.Qyq,null)))),_.P(_.h,{cond:function(){var w=b(),A,k;
w=_.y(w==null?void 0:(A=w.adsOverlay)==null?void 0:(k=A.fulfillmentContent)==null?void 0:k.fulfilledLayout,Jfq);return _.y(w==null?void 0:w.renderingContent,uGq)},
then:function(w){return _.P("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.P(E8q,{data:w}))}}))},"hh");var LmT=_.x(function(){var v=_.L(_.Ge(new _.DT(NaN,NaN),void 0,"hq9Bjf")),Q=v.next().value,V=v.next().value;v=_.L(_.Ge(!1,void 0,"Mu3aZc"));var E=v.next().value,b=v.next().value,F=_.L(_.Ge(!1,void 0,"LGtoFb"));v=F.next().value;var t=F.next().value,p=_.ht().resolve(_.lJ).miniplayerPropSignalMap[0],Z=p.data,d=p.shortsData,w=p.nextButtonDisabled,A=p.shortsPreviewThumbnail,k=p.previousButtonDisabled,T=p.externalPlaylistData;F=p.toastData;var c=p.playabilityStatus,C=p.isDisabled,R=p.playerVe,l=p.closeVe;
p=_.Z1(_.Hw);_.ez("yt-pip-window-resized",function(u){V(u)});
_.ez("yt-activate-pip-miniplayer",function(){return _.e(function(u){t(!0);_.q1(u)})});
var S=function(){var u;return!((u=T())==null||!u.contents)&&E()},a=function(){var u=Q(),r=!!Z(),v9=S();
u=u.clone();r&&(u.height-=76);v9&&(u.height-=285);return u},g=function(){b(!E())};
_.uH(function(){var u=R(),r=_.Mo(11),v9=_.CC(11);r&&v9&&u&&(_.Np(r,v9,u),v9=l())&&(_.x7(r,u,[v9]),_.gD(r,[v9]))},"fHkmfb");
return _.P("ytd-pip-container",{class:"ytdPipContainerHost"},_.P(_.h,{cond:v,then:function(){return _.P(_.wrI,{isDisabled:C,playabilityStatus:c,size:a,isPictureInPicture:!0})}}),_.P(_.h,{cond:Z,
then:function(){return _.P(_.dL7,{data:Z,expanded:E,onExpandClick:g,playlistData:T})}}),_.P(_.h,{cond:S,
then:function(){return _.P("div",{class:"ytdPipContainerPlaylistPanel"},_.P(_.CVs,{data:T,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.P(_.h,{cond:p,
then:function(){return _.P(tx5,{data:d,nextButtonDisabled:w,previousButtonDisabled:k,playabilityStatus:c,previewThumbnail:A})}}),_.P("div",{class:"ytdPipContainerToast"},_.P(_.AFs,{toastData:F})))},"jh");var q5=function(v,Q,V){var E=this;this.pipController=v;this.JSC$19085_clientRoot=Q;this.JSC$19085_pageRequestService=V;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=yp0();this.watchPipEnabled=_.Y("web_watch_pip");this.shortsPipEnabled=_.Y("web_shorts_pip");this.JSC$19085_watchWhileEnabled=_.Y("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;_.Wm(_.oF(),qAE,function(b){E.isSingleOptionSurveyActive=b});
this.JSC$19085_onPlayerPlayVideo=this.JSC$19085_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);_.iM(_.KW.getInstance(),this.miniplayerServiceActionMap,this.JSC$19085_clientRoot);v.pictureInPictureSupported()&&_.X0("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},f$V,To7,hy7,Y0q,y8d,oES;
q5.prototype.handleMediaSessionPipActivation=function(){var v=this,Q;return _.e(function(V){_.u9().mediaSessionPipActivation=!0;Q=_.ht().resolve(_.oJ);return Q.isOnWatch()&&v.watchPipEnabled?(_.u9().watchPipActivation=!0,_.px$(v,Q.data),V.jumpTo(0)):Q.isOnShorts()&&v.shortsPipEnabled?(_.u9().shortsPipActivation=!0,_.ey5(v),V.jumpTo(0)):v.isMiniplayerActive()&&v.watchPipEnabled&&!v.watchWhileMode?V.yield(Zpj(v),0):V.jumpTo(0)})};
var Zpj=function(v){var Q,V,E,b;return _.e(function(F){if(F.nextAddress==1)return Q=!v.miniplayerToPipMode,V=v.playerElement,E=v.miniplayerData,b=v.watchResponse,F.yield(v.deactivate(),2);if(F.nextAddress!=3)return Q?(_.u9().mediaSessionPipActivation=!0,_.u9().watchPipActivation=!0):_.u9().miniplayerButtonActivation=!0,F.yield(v.activate(V,E,b),3);v.miniplayerToPipMode=Q;_.q1(F)})};
q5.prototype.onDownloadedVideoDeleted=function(v){var Q,V=_.y((Q=this.miniplayerData)==null?void 0:Q.watchEndpoint,_.sn),E,b;V&&((E=this.watchResponse)==null?void 0:(b=E.playerResponse)==null?void 0:b.offlineState)!==void 0&&(Q=V.videoId)&&v&&Q===v&&this.close()};
q5.prototype.onShowMiniplayerCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k;return _.e(function(T){switch(T.nextAddress){case 1:return V=_.y(v,BJZ),b=(E=V)==null?void 0:E.miniplayerCommand,F=_.y(b,_.sn),b&&F&&!Q.active?T.yield(_.Hm.getInstance(),2):T.return();case 2:return t=T.yieldResult,T.yield((p=t)==null?void 0:p.get("yt-miniplayer-shown-video-id"),3);case 3:Z=T.yieldResult;d=F.videoId;if(!d||Z===d)return T.return();w=_.ht().resolve(_.oJ);if(w.isOnWatch())return _.Iy(Error("Tj")),T.return();
A={channelItem:{externalId:btoa(d)}};Q.readyToResumeVe=_.Vw(121253,void 0,void 0,A);_.u9().showMiniplayerCommandActivation=!0;return T.yield(_.XQx(Q,b,!0),4);case 4:return Q.active&&(_.SF(Q,{readyToResumeVe:Q.readyToResumeVe,isReadyToResume:!0}),Q.isReadyToResume=!0),T.yield((k=t)==null?void 0:k.set("yt-miniplayer-shown-video-id",F.videoId),5);case 5:Q.readyToResumeVe=void 0,_.q1(T)}})};
q5.prototype.init=function(v){this.miniplayerEl?_.Iy(new _.xd("MiniplayerService already initialized.")):this.miniplayerEl=v};
q5.prototype.isInitialized=function(){var v=!!this.miniplayerEl;v||_.Iy(new _.xd("MiniplayerService used before initialized."));return v};
_.px$=function(v,Q){if(v.isInitialized()){var V=_.M3(Q.response,!1,Q.playerResponse),E=_.ht().resolve(_.oJ).getPlayerFromWatch();_.u9().currentEndpoint=V.watchEndpoint||null;v.activate(E,V,Q)}};
_.ey5=function(v){if(v.isInitialized()){var Q=_.ht().resolve(_.oJ).getPlayerFromShorts();v.activate(Q)}};
f$V=function(v,Q){var V;(V=!v.isInitialized())||(V=_.ht().resolve(_.oJ).isOnWatch()&&v.watchPipMode,V=!(v.isMiniplayerActive()&&(_.u9().userActivation||_.u9().lockupActivation||V)));if(V)return!1;PSf(v,Q)?_.Ro(v):oES(v,Q);return v.watchPipMode?!_.ht().resolve(_.oJ).isOnWatch():!0};
q5.prototype.isMiniplayerActive=function(){return this.active};
var PSf=function(v,Q){var V;Q=(V=_.y(Q,_.sn))==null?void 0:V.videoId;var E,b;v=(b=_.y((E=v.miniplayerData)==null?void 0:E.watchEndpoint,_.sn))==null?void 0:b.videoId;return Q!=null&&Q===v};
q5.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Hj(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.mb(this.miniplayerEl,"yt-navigate-home-action"))};
_.XQx=function(v,Q,V,E){V=V===void 0?!1:V;var b,F,t;return _.e(function(p){switch(p.nextAddress){case 1:if(v.active){p.jumpTo(2);break}b=_.ht().resolve(_.oJ);if(t=(F=v.playerElement)!=null?F:b.getPlayerFromWatch()){p.jumpTo(3);break}return p.yield(_.ht().resolve(_.m0),4);case 4:t=b.getPlayerFromWatch();case 3:if(!t){_.Iy(Error("Vj"));p.jumpTo(2);break}return p.yield(v.activate(t,E),2);case 2:return v.active?p.yield(oES(v,Q,V),0):p.return()}})};
q5.prototype.activate=function(v,Q,V){var E=this,b,F,t,p,Z,d,w,A,k;return _.e(function(T){switch(T.nextAddress){case 1:if(!E.isInitialized())return T.return();if(!v)return _.Iy(Error("Vj")),T.return();if(_.bna()||E.isMiniplayerActive())var c=!0;else c=_.u9().watchPipActivation||_.u9().watchWhileActivation,_.ht().resolve(_.oJ).isOnWatch()&&!c?(_.Iy(new _.xd("miniplayer activated on watch page")),c=!0):c=_.u9().watchWhileActivation?E.userDeactivatedWatchWhile||!!document.pictureInPictureElement||G1S():
!1;if(c)return EkZ(),T.return();b=_.u9().mediaSessionPipActivation;F=_.u9().shortsPipActivation;t=_.u9().watchPipActivation;Z=(p=_.u9().watchWhileActivation)||t;d=t||F;if(!E.pictureInPictureEnabled()||!d){T.jumpTo(2);break}return T.yield(dR5(E,b),3);case 3:if(!T.yieldResult)return _.Iy(Error("Uj")),EkZ(),T.return();case 2:return E.setActive(!0),E.watchResponse=V,E.playerElement=v,E.updateMiniplayerData(Q),T.yield(hy7(E,v),4);case 4:if(!E.active)return _.Iy(new _.xd("miniplayer deactivated during activation")),
E.removePlayerListeners(),T.return();c=_.ht().resolve(_.pD);c.addEventListener("yt-navigate",_.Lh(E,E.onPlaylistNavigate));c.addEventListener("yt-playlist-data-updated",_.Lh(E,E.JSC$19085_onPlaylistDataUpdated));E.JSC$19085_onPlaylistDataUpdated();EkZ();E.JSC$19085_watchWhileEnabled&&_.wxs(E,p);E.pictureInPictureEnabled()&&E.shortsPipEnabled&&(E.shortsPipMode=F,_.oF().dispatch(XlR(E.shortsPipMode)));E.pictureInPictureEnabled()&&E.watchPipEnabled&&(E.watchPipMode=t,_.Mdo(E.handleMediaSessionPipActivation));
E.player&&(w=E.player.getPlayerState(),A=w===1,_.oF().dispatch(VkR(w)),_.Un(E.miniplayerEl,"yt-miniplayer-play-state-changed",[A]),_.u9().isVideoPlaying=A);_.Un(E.miniplayerEl,"yt-miniplayer-endpoint-changed");A8q(E);_.kvm(E);if(E.shortsPipMode||E.watchPipMode)T=T.yield(_.mb(E.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{c=T.yield;var C=_.mb(E.miniplayerEl,"yt-activate-miniplayer",[Z])[0];T=c.call(T,C,6)}return T;case 6:if(E.watchResponse){c=E.getScreenLayer();C=_.Mo(0);var R=pWT(0);C&&R&&
(_.Da(C,R,c),c===0&&LUG(void 0,0))}To7(E);Y0q(E,!0);(k=E.getPlayerElement())==null||k.focusOnPlayer();_.q1(T)}})};
q5.prototype.updateMiniplayerData=function(v){this.miniplayerData=v;_.SF(this,{data:v})};
_.kvm=function(v){var Q,V,E=((Q=v.miniplayerData)==null?void 0:(V=Q.miniplayerRenderer)==null?void 0:V.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";Q=v.watchWhileMode||v.watchPipMode?E&&!_.ht().resolve(_.oJ).isOnWatch():E;_.SF(v,{isDisabled:Q});var b,F;V=_.y((b=v.miniplayerData)==null?void 0:(F=b.miniplayerRenderer)==null?void 0:F.minimizedEndpoint,_.sv);Q&&V&&_.ht().resolve(_.Iu).openSheet({openPopupActionCommand:{openPopupAction:V}},v.miniplayerEl)};
To7=function(v){if(v.watchResponse&&!y8d(v)){var Q,V=(Q=v.watchResponse.playerResponse)==null?void 0:Q.trackingParams;V&&(_.SF(v,{expandVe:_.Vw(35989),closeVe:_.Vw(34699),readyToResumeCloseVe:_.Vw(131070),repositionVe:_.Vw(226204),resizeVe:_.Vw(226205)}),_.SF(v,{playerVe:_.dE(V)}))}};
hy7=function(v,Q){return _.e(function(V){if(V.nextAddress==1)return Q.preparePlayer(),V.yield(Q.getPlayerPromise(),2);v.player=V.yieldResult;v.player&&(v.player.addEventListener("onPlayVideo",v.JSC$19085_onPlayerPlayVideo),v.player.addEventListener("onCloseMiniplayer",v.onPlayerCloseMiniplayer),v.player.addEventListener("onExpandMiniplayer",v.onPlayerExpandMiniplayer),v.player.addEventListener("onStateChange",v.onPlayerStateChange));_.q1(V)})};
_.K=q5.prototype;_.K.JSC$19085_onPlayerPlayVideo=function(v){var Q=v.sessionData&&"autonav"in v.sessionData,V;v.sessionData&&v.sessionData.itct&&(V=v.sessionData.itct);var E=v.watchEndpoint;Q=E&&Q?_.BN0(E,V):_.$7(v.videoId,v.listId||void 0,V);v.sessionData&&_.ox(_.y(Q.commandMetadata,_.Kt).url,v.sessionData);oES(this,Q)};
_.K.onPlayerExpandMiniplayer=function(){_.Ro(this)};
_.K.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.K.onPlayerStateChange=function(){if(this.player){var v=this.player.getPlayerState(),Q=v===1;_.oF().dispatch(VkR(v));_.oF().dispatch(_.FTZ(v));_.Un(this.miniplayerEl,"yt-miniplayer-play-state-changed",[Q]);_.u9().isVideoPlaying=Q;if(v===0){Q=!_.fH.getInstance().isAutoplaySetExplicitly();var V,E,b,F,t,p,Z=(V=this.watchResponse.response)==null?void 0:(E=V.contents)==null?void 0:(b=E.twoColumnWatchNextResults)==null?void 0:(F=b.autoplay)==null?void 0:(t=F.autoplay)==null?void 0:(p=t.autoplayExplicitChoiceDialogRenderer)==
null?void 0:p.confirmDialogRenderer;Q&&Z&&this.player.setAutonavState(1)}v===0&&this.watchWhileMode&&this.deactivate()}};
_.K.onPlaylistNavigate=function(v,Q){var V=this,E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1){if(!_.y(Q.endpoint,_.sn))return w.return();_.u9().currentEndpoint=Q.endpoint;_.Un(V.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.ht().resolve(_.oJ).isOnWatch()&&(V.watchWhileMode||V.watchPipMode))return w.return();v.stopPropagation();(F=(b=_.y((E=Q.endpoint)==null?void 0:E.commandMetadata,_.Kt))==null?void 0:b.url)&&Q.tempData&&!_.gI.isEmpty(Q.tempData)&&_.ox(F,Q.tempData);t={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};p=new Fcq(function(){return V.getPlayerElement()},t,{layer:V.getScreenLayer()});
Z=function(A){p.processChunk({endpoint:Q.endpoint,data:A})};
c8I(V);V.miniplayerFetchRequest=fWm(V,Q.endpoint,Z);_.GC(w,2);return w.yield(V.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return d=w.yieldResult,Gvq(V,d),_.FT(w,0);_.n$(w);_.q1(w)})};
_.K.JSC$19085_onPlaylistDataUpdated=function(){var v=_.ht().resolve(_.pD).getPlaylistData();this.hasPlaylistData=!!v;_.SF(this,{externalPlaylistData:v||{}})};
_.K.close=function(v){if(this.isInitialized())if(v){if(!((this.watchWhileMode||this.watchPipMode)&&_.ht().resolve(_.oJ).isOnWatch()||this.shortsPipMode)){var Q;(Q=this.getPlayerElement())==null||Q.stop()}this.deactivate()}else _.hQ().closeMiniplayer(this.miniplayerEl)};
_.K.deactivate=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1){if(!Q.isInitialized()||!Q.active)return t.return();Q.setActive(!1);c8I(Q);(V=!!v&&PSf(Q,v))&&Q.isSingleOptionSurveyActive&&_.mb(Q.miniplayerEl,"yt-show-watch-page-survey",[Q.isSingleOptionSurveyActive]);return t.yield(CS5(Q),2)}if(t.nextAddress!=3){Y0q(Q,!1);Q.isReadyToResume=!1;Q.watchResponse=void 0;Q.updateMiniplayerData(void 0);Q.shortsPipMode&&(Q.shortsPipMode=!1,_.oF().dispatch(XlR(Q.shortsPipMode)),xA7(Q.pipController),
(E=Q.player)==null||E.setInternalSize(NaN,NaN));Q.watchPipMode&&(Q.watchPipMode=!1,xA7(Q.pipController));(b=Q.watchWhileMode)&&_.wxs(Q,!1);Q.removePlayerListeners();var p=_.ht().resolve(_.pD);p.removeEventListener("yt-navigate",_.Lh(Q,Q.onPlaylistNavigate));p.removeEventListener("yt-playlist-data-updated",_.Lh(Q,Q.JSC$19085_onPlaylistDataUpdated));_.u9().currentEndpoint=null;_.Un(Q.miniplayerEl,"yt-miniplayer-endpoint-changed");Q.playerElement=null;EkZ();if(Q.shortsPipMode||Q.watchPipMode)t=t.jumpTo(3);
else{p=t.yield;var Z=_.mb(Q.miniplayerEl,"yt-deactivate-miniplayer",[V,b])[0];t=p.call(t,Z,3)}return t}(F=Q.player)==null||F.setInternalSize(NaN,NaN);Q.player=null;_.q1(t)})};
var CS5=function(v){var Q;return _.e(function(V){Q=_.ht().resolve(_.oJ);return v.shortsPipMode?V.yield(Q.movePlayerToShorts(v.playerElement),0):V.yield(Q.movePlayerToWatch(v.playerElement),0)})};
q5.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19085_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
q5.prototype.setActive=function(v){this.active=v;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"]);_.oF().dispatch(_.U2({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.wxs=function(v,Q){v.watchWhileMode=Q;_.SF(v,{watchWhile:Q})};
Y0q=function(v,Q){if(!y8d(v))if(v.shortsPipMode||v.watchPipMode){var V;(V=v.player)==null||V.setDocumentPictureInPicture(Q)}else{var E;(E=v.player)==null||E.setMinimized(Q)}};
y8d=function(v){return v.watchWhileMode&&_.Y("kevlar_watch_while_counterfactual")};
_.Ro=function(v){var Q;return _.e(function(V){switch(V.nextAddress){case 1:if(!v.isInitialized())return V.return();_.GC(V,2);return V.yield(v.miniplayerFetchRequest,4);case 4:_.FT(V,3);break;case 2:_.n$(V);case 3:v.watchResponse&&v.miniplayerData&&v.miniplayerData.watchEndpoint?(Q={url:v.watchResponse.url,endpoint:v.miniplayerData.watchEndpoint,data:v.watchResponse,miniplayer:!0},_.Hj(v.miniplayerEl,"yt-navigate-cache",Q)):v.miniplayerData&&v.miniplayerData.watchEndpoint&&_.Hj(v.miniplayerEl,"yt-navigate",
{endpoint:v.miniplayerData.watchEndpoint}),_.q1(V)}})};
oES=function(v,Q,V){var E,b,F,t;return _.e(function(p){if(p.nextAddress==1){if(PSf(v,Q))return p.return();_.u9().currentEndpoint=Q;_.Un(v.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Un(v.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.u9().isVideoPlaying=!1;E={clientParams:{miniplayer:!0,autoSaveToQueue:!V}};b=new Fcq(function(){return v.getPlayerElement()},E,{layer:v.getScreenLayer(),
parentLayer:0},void 0,v.readyToResumeVe);F=function(Z){var d,w,A=Object.assign({},(d=Z.playerResponse)==null?void 0:(w=d.playerConfig)==null?void 0:w.playbackStartConfig,{startPaused:!0}),k;V&&((k=Z.playerResponse)==null?0:k.playerConfig)&&(Z.playerResponse.playerConfig.playbackStartConfig=A);b.processChunk({endpoint:Q,data:Z})};
c8I(v);v.miniplayerFetchRequest=fWm(v,Q,F);_.GC(p,2);return p.yield(v.miniplayerFetchRequest,4)}if(p.nextAddress!=2)return t=p.yieldResult,Gvq(v,t),_.FT(p,0);_.n$(p);_.q1(p)})};
q5.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var c8I=function(v){v.miniplayerFetchRequest&&(v.miniplayerFetchRequest.cancel&&v.miniplayerFetchRequest.cancel("Active request obsolete"),v.miniplayerFetchRequest=null)},fWm=function(v,Q,V){var E,b=(E=_.y(Q.commandMetadata,_.Kt))==null?void 0:E.url,F;
E=!b||_.Y("disable_miniplayer_tempdata")?{}:(F=IbE(b))!=null?F:{};return zn(v.JSC$19085_pageRequestService,Q,E,window.location.href,"watch",function(t,p){V(p)},function(t){return t!==v.miniplayerFetchRequest})},Gvq=function(v,Q){var V;
_.e(function(E){if(!Q)return E.return();v.watchResponse=Q;To7(v);A8q(v);V=_.M3(Q.response,!1,Q.playerResponse);if(v.isMiniplayerActive()){Q.response&&(v.playerElement.watchNextData=Q.response);var b=_.gI.getValueByKeys.apply(_.gI,[Q].concat(_.ui(h0N)));_.gI.getValueByKeys.apply(_.gI,[Q].concat(_.ui(YTp)))&&b&&_.ht().resolve(_.pD).setAutoplayRenderer(b);if(b)if(_.Y("kevlar_is_pupi_enabled")){var F,t,p,Z,d,w=((F=Q.response)==null?0:(t=F.playerOverlays)==null?0:(p=t.playerOverlayRenderer)==null?0:(Z=
p.autonavToggle)==null?0:(d=Z.autoplaySwitchButtonRenderer)==null?0:d.enabled)?2:1;_.fH.getInstance().setState(w,!1,!1)}else F=thT()?2:1,(w=v.player)==null||w.setAutonavState(F);v.updateMiniplayerData(V);_.kvm(v)}_.q1(E)})},A8q=function(v){var Q,V,E=(Q=v.watchResponse)==null?void 0:(V=Q.playerResponse)==null?void 0:V.playabilityStatus,b;
Q=E==null?void 0:(b=E.miniplayer)==null?void 0:b.miniplayerRenderer;(Q==null?void 0:Q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&Q.minimizedEndpoint&&_.vp(v.miniplayerEl,[Q.minimizedEndpoint]);_.SF(v,{playabilityStatus:E})};
q5.prototype.openToast=function(v,Q){_.SF(this,{toastData:{data:v,label:Q}})};
_.SF=function(v,Q){(0,v.miniplayerPropSignalMap[1])(Q)};
q5.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var v;return this.playerElement?this.playerElement:(v=_.m9(this.miniplayerEl).querySelector("#player-container"))==null?void 0:v.firstElementChild};
q5.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var dR5=function(v,Q){Q=Q===void 0?!1:Q;var V,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1){if(!v.pictureInPictureSupported()||!pzr()&&!Q)return Z.return(!1);V=MxI(v);E=V.width;b=V.height;return Z.yield(v.pipController.openWindow({width:E,height:b}),2)}F=Z.yieldResult;t=v.pipController.getWindow();if(!t||!F)return Z.return(!1);t.document.body.style.overflow="hidden";p=tah(t);Bbn(v.pipController,function(){Op$(v);p()});
return Z.return(!0)})},MxI=function(v){var Q=_.u9().shortsPipActivation,V,E;
v=Q?.5625:(E=(V=v.player)==null?void 0:V.getVideoAspectRatio())!=null?E:16/9;V=Math.min(window.innerWidth,window.innerHeight)/2;Q=Q?0:76;return v>1?new _.DT(V,Q+V/v):new _.DT(V*v,Q+V)},Op$=function(v){var Q;
_.e(function(V){Q=_.ht().resolve(_.oJ);return Q.isOnWatch()&&v.watchPipMode||Q.isOnShorts()&&v.shortsPipMode?V.yield(v.deactivate(),0):v.miniplayerToPipMode?V.yield(Zpj(v),0):v.watchPipMode?V.yield(_.Ro(v),0):V.jumpTo(0)})};
q5.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.hr.Object.defineProperties(q5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
q5[w$]=[gUY,kLN,_.kG];var DRs="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(" "),
Ry7="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(" "),nhq="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
lWj="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var q0h=function(v,Q,V){_.J5.call(this);this.store=v;this.panelController=Q;this.pageContentExtractor=V;this.isInitialized=!1};
_.f(q0h,_.J5);
q0h.prototype.init=function(v){var Q=this;this.isInitialized||(this.isInitialized=!0,this.environment=v!=null?v:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.zw.currentPageSubTypeSelector(this.store.getState()),v=_.Wm(this.store,_.zw.currentPageSubTypeSelector,function(V){a:if(_.S0d(Q))switch(V){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var E=!0;break a;default:E=!1}else E=!1;E&&Q.panelController.hidePanel({identifier:"PAai_companion"});
Q.pageSubtype!==V&&(Q.pageSubtype=V)}),this.addOnDisposeCallback(v))};
_.Qbd=function(v,Q){if(_.S0d(v))switch(Q){case "watch":var V,E;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(V=_.FS())==null?void 0:(E=V.getVideoData())==null?void 0:E.video_id};case "search":var b,F,t;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(F=(b=v.pageContentExtractor)==null?void 0:M_d(b))!=null?F:[],entityId:(t=(new URLSearchParams(window.location.search)).get("search_query"))!=null?t:void 0};case "companion-canvas":var p,Z;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(Z=(p=
v.pageContentExtractor)==null?void 0:M_d(p))!=null?Z:[]};default:var d,w;v={videoIds:(w=(d=v.pageContentExtractor)==null?void 0:M_d(d))!=null?w:[]};return _.Y("enable_ai_companion_default_page_context")?v:void 0}};
_.S0d=function(v){return v.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
q0h[w$]=[_.Uj,_.$2,_.d$(Oaj)];var zy0=_.x(function(v){return _.P("yt-ai-companion-attachment-view-model",{el:_.ud(_.C4(function(){return v.data().rendererContext})),
class:_.QZ("ytAiCompanionAttachmentViewModelHost",v.className)},_.P("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.P(_.h,{cond:function(){return v.data().title},
then:function(Q){return _.P("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return Q().content}},_.P(_.tD,{text:Q}))}}),_.P(_.h,{cond:function(){return _.SC(v.data().trailingTitleIcon)},
then:function(Q){return _.P("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.P(_.gE,{data:Q,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.P(_.h,{cond:function(){return v.data().description},
then:function(Q){return _.P("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.P(_.tD,{text:Q}))}}),_.P(_.h,{cond:function(){return v.data().bottomItem},
then:function(Q){return _.P("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.P(_.Pw,{data:Q},{tableViewModel:S1Q}))}}))},"lh");_.J85=_.x(function(v){return _.P("yt-channel-attribution-view-model",{class:_.QZ("ytChannelAttributionViewModelHost",v.className)},_.P("div",{class:"ytChannelAttributionViewModelUpper"},_.P(_.Pw,{data:function(){return v.data().avatar}},{decoratedAvatarViewModel:_.VO}),_.P("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.P(_.tD,{text:function(){return v.data().title}}))),_.P("div",{class:"ytChannelAttributionViewModelBottom"},_.P(_.tD,{text:function(){return v.data().subtitle}})))},"mh");var No8=_.x(function(v){var Q=_.L(_.Ge(!1,void 0,"MFRKRb")),V=Q.next().value,E=Q.next().value,b=function(){return v.data().activeRenderer},F=function(){return v.data().inactiveRenderer};
return _.P("yt-channel-disclosure-view-model",{"on:mouseleave":_.EP(function(){E(!1)}),
"on:mouseover":_.EP(function(){E(!0)}),
class:_.QZ("ytChannelDisclosureViewModelHost",v.className)},_.P(_.h,{cond:function(){return V()},
then:function(){return _.P(_.Pw,{data:b},{channelAttributionViewModel:_.J85})},
else:function(){return _.P(_.Pw,{data:F},{decoratedAvatarViewModel:_.VO})}}))},"nh");var xRI=null;var Boj={},ghs=(Boj.initialized={priority:10,callback:function(v){var Q=_.ht();Q.addProvider({provide:OOZ,useClass:sSd});Q.addProvider({provide:_.gbq,useFactory:function(){return new DLq}});
Q.addProvider({provide:p6,useValue:_.r7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});Q.addProvider({provide:p47,useValue:5184E6});Q.addProvider({provide:zDs,useValue:_.yX()});Q.addProvider({provide:iaY,useClass:kWX});Q.addProvider({provide:dk,useClass:dk});Q.addProvider({provide:_.m0,useFactory:function(){return aER.promise}});
Q.addProvider({provide:_.$bN,useFactory:function(){return _.rwN.promise}});
Q.addProvider({provide:zOB,useValue:function(){var Z;return((Z=_.aJ())==null?void 0:Z.getPlayer())||null}});
var V={};Q.addProvider((V.provide=_.H3,V.useFactory=function(Z,d){return function(){return pGt(Z,d)}},V[w$]=[p6,
p47],V));V={};Q.addProvider((V.provide=_.lp,V.useClass=Gc8,V[w$]=[p6,p47],V));V={};Q.addProvider((V.provide=_.MaB,V.useClass=Dz0,V[w$]=[_.lp],V));Q.addProvider({provide:QA,useFactory:_.oF});Q.addProvider({provide:UI,useFactory:_.oF});Q.addProvider({provide:wRm,useFactory:_.oF});Q.addProvider({provide:vJ8,useFactory:_.oF});Q.addProvider({provide:_.Uj,useFactory:_.oF});Q.addProvider({provide:NW,useValue:_.L7});Q.addProvider({provide:zJh,useClass:aiT});Q.addProvider({provide:Rks,useClass:D1j});Q.addProvider({provide:Nx,
useClass:Nx});Q.addProvider({provide:zW,useClass:zW});Q.addProvider({provide:n6,useClass:n6});Q.addProvider({provide:JW,useClass:JW});Q.addProvider({provide:W3,useClass:W3});Q.addProvider({provide:CI,useClass:CI});Q.addProvider({provide:eJ,useClass:eJ});Q.addProvider({provide:_.Se,useValue:Vjj});V={};Q.addProvider((V.provide=$N5,V.useFactory=function(Z){return Z.watchEndpointMap||{}},V[w$]=[_.Se],V));
V={};Q.addProvider((V.provide=ITj,V.useFactory=function(Z){return Z.reelWatchEndpointMap||{}},V[w$]=[_.Se],V));
Q.addProvider({provide:_.o5,useFactory:_.tR});Q.addProvider({provide:Ij,useFactory:_.eP});V={};Q.addProvider((V.provide=pfh,V.useFactory=function(Z){return function(d){var w=w===void 0?{}:w;var A,k,T=(k=_.y((A=d.endpoint)==null?void 0:A.commandMetadata,_.Kt))==null?void 0:k.rootVe;if(T){var c,C;if(A=d.previousCsn||((C=_.y((c=d.endpoint)==null?void 0:c.commandMetadata,AjQ))==null?void 0:C.parentCsn)){var R=R===void 0?{}:R;if(A!==_.Mo(R.layer)||T!==pWT(R.layer))hh0(A,R.cttAuthInfo,R.layer||0),LUG(A,
R.layer||0),c=R.layer||0,_.aS(tXZ(c===void 0?0:c),T);w.parentCsn=A}d.endpoint&&A?sAX(Z,d.endpoint,w):_.S5(Z,T,void 0,w);var l;((l=d.response)==null?0:l.trackingParams)&&Z.graftServerVe(d.response.trackingParams);var S;((S=d.playerResponse)==null?0:S.trackingParams)&&Z.graftServerVe(d.playerResponse.trackingParams);var a;((a=d.reelWatchSequenceResponse)==null?0:a.trackingParams)&&Z.graftServerVe(d.reelWatchSequenceResponse.trackingParams)}}},V[w$]=[_.o5],V));
V={};Q.addProvider((V.provide=keh,V.useClass=Aaf,V[w$]=[NW,_.Uj],V));V={};Q.addProvider((V.provide=Lc,V.useClass=Lc,V[w$]=[_.m0,_.Uj],V));V={};Q.addProvider((V.provide=br,V.useClass=br,V[w$]=[UI,_.At],V));Q.addProvider({provide:_.DA0,useClass:ub7});V={};Q.addProvider((V.provide=_.$2,V.useClass=lQn,V[w$]=[_.DA0,_.d$(_.mO)],V));Q.addProvider({provide:_.Ot,useClass:lT5});V={};Q.addProvider((V.provide=DK,V.useClass=DK,V[w$]=[_.Ot,_.m0,_.wH,_.At],V));Q.addProvider({provide:_.Iu,useClass:eF});Q.addProvider({provide:_.MSm,
useClass:c18});Q.addProvider({provide:_.Hk,useClass:tm});_.Y("enable_ai_companion")&&(Q.addProvider({provide:_.mO,useClass:zp7}),Q.addProvider({provide:_.wK8,useClass:J0N}),Q.addProvider({provide:Oaj,useClass:Gef}),Q.addProvider({provide:IW,useClass:IW}),Q.addProvider({provide:$A,useClass:$A}),Q.addProvider({provide:kUS,useValue:No8}),Q.addProvider({provide:TfN,useValue:zy0}));_.Y("enable_ai_chat_controller")&&Q.addProvider({provide:_.ry,useClass:q0h});V={};Q.addProvider((V.provide=_.X7,V.useClass=
srf,V[w$]=[_.X7],V));Q.addProvider({provide:_.Jb,useClass:cTf});Q.addProvider({provide:K6,useClass:K6});Q.addProvider({provide:qE,useClass:qE});Q.addProvider({provide:Zw,useClass:Zw});V={};Q.addProvider((V.provide=WP,V.useClass=WP,V[w$]=[_.At,_.wH],V));Q.addProvider({provide:f6,useClass:pc});V={};Q.addProvider((V.provide=ME,V.useClass=ME,V[w$]=[_.Iu,f6],V));V={};Q.addProvider((V.provide=Y3,V.useClass=Y3,V[w$]=[_.Iu],V));V={};Q.addProvider((V.provide=VA,V.useClass=VA,V[w$]=[QA,vd],V));Q.addProvider({provide:vd,
useClass:E4h});_.Y("web_enable_feedback_endpoint_resolver_batch_2")&&(V={},Q.addProvider((V.provide=bC,V.useClass=bC,V[w$]=[QA],V)),V={},Q.addProvider((V.provide=EK,V.useClass=EK,V[w$]=[vd],V)));V={};Q.addProvider((V.provide=Gu,V.useClass=Gu,V[w$]=[_.Hk,f6],V));V={};Q.addProvider((V.provide=k3,V.useClass=k3,V[w$]=[_.Hk],V));V={};Q.addProvider((V.provide=C6,V.useClass=C6,V[w$]=[_.wH,_.$2],V));V={};Q.addProvider((V.provide=cd,V.useClass=cd,V[w$]=[_.wH,_.o5],V));Q.addProvider({provide:Et,useClass:Et});
V={};Q.addProvider((V.provide=$3,V.useClass=$3,V[w$]=[QA],V));Q.addProvider({provide:AW,useClass:AW});Q.addProvider({provide:wP,useClass:wP});V={};Q.addProvider((V.provide=TW,V.useClass=TW,V[w$]=[QA],V));V={};Q.addProvider((V.provide=Ys,V.useClass=Ys,V[w$]=[_.wH,QA],V));V={};Q.addProvider((V.provide=yW,V.useClass=yW,V[w$]=[QA],V));V={};Q.addProvider((V.provide=c$,V.useClass=c$,V[w$]=[QA],V));V={};Q.addProvider((V.provide=Tu,V.useClass=Tu,V[w$]=[_.$2],V));V={};Q.addProvider((V.provide=Lk,V.useClass=
Lk,V[w$]=[_.o5],V));V={};Q.addProvider((V.provide=dP,V.useClass=dP,V[w$]=[v$],V));V={};Q.addProvider((V.provide=hW,V.useClass=hW,V[w$]=[v$],V));Q.addProvider({provide:ee,useClass:ee});Q.addProvider({provide:ZK,useClass:ZK});Q.addProvider({provide:i$,useClass:i$});V={};Q.addProvider((V.provide=OK,V.useClass=OK,V[w$]=[_.$2,_.At],V));Q.addProvider({provide:tX,useClass:tX});V={};Q.addProvider((V.provide=yA,V.useClass=yA,V[w$]=[_.wH,_.$2],V));Q.addProvider({provide:Pd,useClass:Pd});V={};Q.addProvider((V.provide=
aj,V.useClass=aj,V[w$]=[QA,_.wH,_.X7],V));V={};Q.addProvider((V.provide=Wd,V.useClass=Wd,V[w$]=[_.wH,_.At],V));Q.addProvider({provide:Zma,useValue:wTb});Q.addProvider({provide:Y1p,useValue:IKQ});Q.addProvider({provide:oj,useClass:oj});V={};Q.addProvider((V.provide=jA,V.useClass=jA,V[w$]=[QA],V));V={};Q.addProvider((V.provide=r1,V.useClass=r1,V[w$]=[_.Jb,_.At],V));V={};Q.addProvider((V.provide=F7,V.useClass=F7,V[w$]=[_.At],V));Q.addProvider({provide:UV,useFactory:function(){return new UV(_.oF())}});
Q.addProvider({provide:neS,useFactory:_.Jn.getInstance});V={};Q.addProvider((V.provide=eA,V.useClass=eA,V[w$]=[p6,neS,_.At],V));Q.addProvider({provide:iC,useClass:iC});Q.addProvider({provide:oW,useClass:oW});Q.addProvider({provide:aW,useClass:aW});Q.addProvider({provide:_.Xs,useClass:_.Xs});Q.addProvider({provide:Ck,useClass:Ck});V={};Q.addProvider((V.provide=x3,V.useClass=x3,V[w$]=[UI],V));V={};Q.addProvider((V.provide=Rj,V.useClass=Rj,V[w$]=[_.At],V));V={};Q.addProvider((V.provide=Bd,V.useClass=
Bd,V[w$]=[_.At],V));V={};Q.addProvider((V.provide=g1,V.useClass=g1,V[w$]=[_.At],V));_.Y("web_enable_prefetching_videos_on_home")&&(Q.addProvider({provide:EW,useClass:EW}),Q.addProvider({provide:fc,useClass:fc}));V={};Q.addProvider((V.provide=GW,V.useClass=GW,V[w$]=[_.At],V));Q.addProvider({provide:HP,useClass:HP});V={};Q.addProvider((V.provide=b$,V.useClass=b$,V[w$]=[_.wH,_.At],V));V={};Q.addProvider((V.provide=mu,V.useClass=mu,V[w$]=[_.At],V));V={};Q.addProvider((V.provide=GB,V.useClass=GB,V[w$]=
[_.wH,_.At],V));Q.addProvider({provide:cJ,useClass:cJ});Q.addProvider({provide:zu,useClass:zu});V={};Q.addProvider((V.provide=SA,V.useClass=SA,V[w$]=[UI,_.At],V));Q.addProvider({provide:JX,useClass:JX});V={};Q.addProvider((V.provide=nk,V.useClass=nk,V[w$]=[UI,_.At,_.wH],V));V={};Q.addProvider((V.provide=l$,V.useClass=l$,V[w$]=[_.At],V));V={};Q.addProvider((V.provide=R3,V.useClass=R3,V[w$]=[_.At,_.wH],V));V={};Q.addProvider((V.provide=VW,V.useClass=VW,V[w$]=[_.At,_.wH],V));V={};Q.addProvider((V.provide=
uC,V.useClass=uC,V[w$]=[_.m0],V));V={};Q.addProvider((V.provide=sK,V.useClass=sK,V[w$]=[_.m0],V));V={};Q.addProvider((V.provide=NE,V.useClass=NE,V[w$]=[_.m0],V));Q.addProvider({provide:UK,useClass:UK});Q.addProvider({provide:QW,useClass:QW});Q.addProvider({provide:ks,useClass:ks});Q.addProvider({provide:Fh,useClass:Fh});Q.addProvider({provide:mn,useClass:mn});Q.addProvider({provide:d1,useClass:d1});Q.addProvider({provide:Hd,useClass:Hd});_.Y("kevlar_enable_mss_lazy_load")&&Q.addProvider({provide:_.St,
useClass:ytn});Q.addProvider({provide:_.Na,useClass:PJ});Q.addProvider({provide:cm,useFactory:function(){return _.KW.getInstance()}});
Q.addProvider({provide:dAn,useFactory:cJ9});Q.addProvider({provide:v$,useFactory:function(){return _.Hm.getInstance()}});
Q.addProvider({provide:JwZ,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});V={};Q.addProvider((V.provide=_.Fm,V.useClass=_.Fm,V[w$]=[_.m0,_.At,_.o5,dAn,v$,cm,JwZ,NW],V));Q.addProvider({provide:_.ND,useClass:vZQ});Q.addProvider({provide:_.Zwh,useClass:eDh});V={};Q.addProvider((V.provide=AX,V.useClass=AX,V[w$]=[_.Zwh],V));V={};Q.addProvider((V.provide=_.Kc,V.useFactory=function(Z){return Z.upliftCompletionResolver.promise},V[w$]=[keh],V));
V=_.mX("IS_SHELL_LOAD")?"aa":"eocs";var E=_.mX("IS_SHELL_LOAD")?3:2;_.Zp().parkOrScheduleJob(function(){YXm()},E,V);
_.Zp().parkOrScheduleJob(function(){_.ht().resolve(Lc).start()},2,"eocs");
_.Zp().parkOrScheduleJob(function(){hpI()},2,"eocs");
_.Zp().parkOrScheduleJob(function(){_.ht().resolve(br).start()},2,"eocs");
_.Y("kevlar_debug_data_app_registration_ks")||i39();Q.addProvider({provide:_.dS,useValue:new l5q(v.root)});Q.addProvider({provide:EH,useValue:new pwh});Q.addProvider({provide:_.gPh,useValue:new xj5(v.root)});Q.addProvider({provide:_.hn,useValue:new Bl0});Q.addProvider({provide:_.Ns,useClass:up});Q.addProvider({provide:gUY,useClass:ZY});_.Y("kevlar_network_sli_killswitch")||Q.addProvider({provide:r1Y,useValue:bLA});Q.addProvider({provide:J1s,useFactory:Csh});_.Y("web_bind_fetch")&&(V={},Q.addProvider((V.provide=
N7I,V.useFactory=MGS,V[w$]=[_.d$(J1s)],V)));_.Y("web_bind_window_request")&&(V={},Q.addProvider((V.provide=xPf,V.useFactory=OGb,V[w$]=[_.d$(J1s)],V)));_.Y("web_bind_text_decoder")&&(V={},Q.addProvider((V.provide=B7h,V.useFactory=DBm,V[w$]=[_.d$(J1s)],V)));V={};Q.addProvider((V.provide=BI5,V.useFactory=i8Z,V[w$]=[_.Kc,QA,_.H3],V));V={};Q.addProvider((V.provide=xNj,V.useClass=qa,V[w$]=[BI5],V));Q.addProvider({provide:kcn,useClass:dz7});Q.addProvider({provide:SYd,useClass:Jdh});V=[].concat(_.ui(MFb));
_.Y("web_continuation_response_processing")&&V.push(_.RJ);V.push(mIq);_.Y("enable_share_panel_navigation_logging_fix_on_web")&&V.push(_.ZJZ);Q.addProvider({provide:Cr0,useValue:V});Q.addProvider({provide:S8m,useClass:qYI});Q.addProvider({provide:UPs,useClass:$PY});V={};Q.addProvider((V.provide=Rsb,V.useClass=Hfh,V[w$]=[UI],V));_.XT.addLowPriorityJob(function(){xiT()});
V={};Q.addProvider((V.provide=kHV,V.useFactory=function(Z){return function(d){var w,A=(w=_.y(d.commandMetadata,_.Kt))==null?void 0:w.url;if(!A)throw new _.xd("No URL for PBJ Command",d);A=WbT(A,{pbj:"1"});w=ppS(A,{})||{};w=Object.assign({},w,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.r7("STS").toString()});d=_.Rm({command:JSON.stringify(d),session_token:_.r7("XSRF_TOKEN")});return Z.fetch(A,{method:"POST",headers:w,body:d})}},V[w$]=[UPs],V));
Q.addProvider({provide:obh,useFactory:function(){var Z={};return Z.CSI=nEB(),Z.ECATCHER=RU3(),Z}});
Q.addProvider({provide:ciZ,useClass:XUI});V=[];V.push(Q.resolve(SYd));E={};E=(E.client_location=_.Jn.getInstance(),E.consistency=_.PU3(),E.entities=Q.resolve(Rks),E.response_received_commands=Q.resolve(S8m),E.store=Q.resolve(_.MaB),E.tokens=Q.resolve(SYd),E.service_params=Q.resolve(ciZ),E);if(_.Y("web_shorts_prefetch_service_enabled")){var b=new RIm(Q.resolve(_.lp));E.shorts_prefetch=b}E.adblock_detection=Q.resolve(Rsb);Q.addProvider({provide:_.bS,useClass:_.bS});b=Q.resolve(_.Se);var F=[];_.Y("PremiumClientSharedConfig__enable_att_context_processor")&&
(Q.addProvider({provide:Pi0,useClass:pcY}),F.push(Q.resolve(Pi0)));if(_.Y("owl_pl_await")){var t={};Q.addProvider((t.provide=DP0,t.useFactory=function(Z){return new Mgm(Z)},t[w$]=[_.bS],t));
F.push(Q.resolve(DP0))}yKN(b,Q.resolve(UPs),Q.resolve(zJh),E,Q.resolve(_.lp),V,F,Q.resolve(xNj),Q.resolve(kcn));Q.addProvider({provide:_.wH,useValue:_.Js.instance});_.Y("start_client_gcf")&&Q.addProvider({provide:s0,useValue:F5S()});Q.addProvider({provide:caj,useFactory:function(){return new caj(_.ht().resolve(_.bS),_.Hm.getInstance())}});
_.Zp().parkOrScheduleJob(function(){fQn()},1,"eocs");
V={};Q.addProvider((V.provide=ir,V.useClass=ir,V[w$]=[_.H3,_.wH],V));Q.addProvider({provide:_.raq,useFactory:_.yu.getInstance});_.Zp().parkOrScheduleJob(function(){_.ht().resolve(ir).refresh()},0,"eocs");
Q.addProvider({provide:_.kG,useClass:EJm});_.Y("kevlar_signal_collection_killswitch")||(V={},Q.addProvider((V.provide=K$5,V.useClass=K$5,V[w$]=[p6,Ij],V)),_.Zp().parkOrScheduleJob(function(){_.ht().resolve(K$5).record()},1,"eocs"));
_.Y("web_debug_handler_registration_killswitch")||_.Zp().parkOrScheduleJob(function(){FP9("DOWNLOAD_PES",yJS);_.Y("offline_client_state_export_ks")||FP9("OFFLINE_CLIENT_STATE",k13)},0,"eocs");
_.Y("kevlar_prevent_polymer_dynamic_font_load")&&_.Zp().parkOrScheduleJob(function(){var Z=[_.Ad(LF$),_.Ad(twm)];Z=_.L(Z);for(var d=Z.next();!d.done;d=Z.next()){d=d.value;var w=document.createElement("link");_.e1(w,d,"stylesheet");document.head.appendChild(w)}},1,"eocs");
V=v.injector.resolve(_.wH);_.Z$7.instance=new _.Z$7(V);IfZ(b$8(new ekj(V)));V={};v.injector.addProvider((V.provide=Aq,V.useFactory=function(Z){(Z=Z==null?void 0:Z.getCurrentPage())?Z=Z.visibilityObserver:(xRI||(xRI=dgB()),Z=xRI);return Z},V[w$]=[_.d$(_.oJ)],V.skipCache=!0,V));
Q.addProvider({provide:_.lJ,useClass:q5});Q.addProvider({provide:sr,useClass:pKV});v.injector.addProvider({provide:bkS,useValue:nPq});Q.addProvider({provide:$GX,useValue:I5f});Q.addProvider({provide:VYx,useValue:iu0});Q.addProvider({provide:_.JR,useValue:cP0});v=Q.addProvider;mAI||(mAI=new Hah);v.call(Q,{provide:_.dN,useValue:mAI});Q.addProvider({provide:_.xD,useValue:_.r7("HTML_DIR")==="rtl"?"rtl":"ltr"});Q.addProvider({provide:sa7,useClass:m1q});Q.addProvider({provide:_.Eo,useClass:hm});_.ht().addProvider({provide:ja0,
useValue:_.Y("enable_web_delhi_icons")?Ry7.concat(lWj):DRs.concat(nhq)});Q.addProvider({provide:_.Am,useClass:_.Am});Q.addProvider({provide:_.FF$,useValue:new biq});Q.addProvider({provide:Mqm,useClass:M1h});Q.addProvider({provide:Kk,useClass:Kk});Q.addProvider({provide:tW,useClass:tW});v={};Q.addProvider((v.provide=Dw,v.useClass=Dw,v[w$]=[_.wH,_.$2],v));Q.addProvider({provide:Ma,useClass:Ma});Q.addProvider({provide:Xs$,useClass:W$5});Q.addProvider({provide:P$,useClass:P$});Q.addProvider({provide:FWN,
useValue:WEZ});Q.addProvider({provide:_.kA,useClass:O$$});_.Y("enable_payments_purchase_manager")&&Q.addProvider({provide:ATs,useClass:d1f});Q.addProvider({provide:VSn,useFactory:function(){return function(Z){return _.iih(Z)}}});
Q.addProvider({provide:_.DN0,useClass:RD5});v={};Q.addProvider((v.provide=fk,v.useClass=fk,v[w$]=[_.DN0],v));Q.addProvider({provide:pk,useClass:pk});Q.addProvider({provide:gQd,useValue:kdq});Q.addProvider({provide:RMq,useValue:_.FXf});Q.addProvider({provide:fNQ,useClass:jrf});Q.addProvider({provide:UAn,useValue:L77});v={};Q.addProvider((v.provide=vb7,v.useClass=QSh,v[w$]=[UAn],v));v={};Q.addProvider((v.provide=_.aw,v.useClass=eBj,v[w$]=[vb7],v));v={};Q.addProvider((v.provide=_.TB,v.useClass=k6,v[w$]=
[_.Uj,_.Ns],v));if(_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))v={},Q.addProvider((v.provide=L6,v.useClass=L6,v[w$]=[_.wH,cm],v));if(_.Y("web_enable_renderer_logger")){var p=new WCt;QXS(function(){p.abort()});
Q.addProvider({provide:q6b,useValue:new L$f(p.signal)})}Q.addProvider({provide:Kgx,useValue:RCZ});Q.addProvider({provide:dOo,useClass:nJ7});_.Y("web_use_flow_state_manager")&&(Q.addProvider({provide:_.BP,useClass:nwY}),v={},Q.addProvider((v.provide=gy,v.useClass=gy,v[w$]=[_.BP,_.At],v)))}},Boj);var syY={},u0j=(syY.initialized={priority:10,callback:function(){if(!ax5){k4Q();qDS("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Ci(_.pt(qDS,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.Y("log_heartbeat_with_lifecycles")){var v={};A9.instance||(A9.instance=new A9);A9.instance.install((v.document_visible={callback:SDS,priority:10},v.document_hidden={callback:SDS,priority:10},v))}else _.ZW(document,"visibilitychange",SDS);ax5=!0}(v=_.Mo())&&v!=="UNDEFINED_CSN"&&KUh(v)}},syY);var jyh={},WtY=(jyh.initialized={callback:function(v){var Q=_.Vw(232091),V=v.injector.resolve(_.o5);_.za(V,Q);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?eso()&&_.N_(V,Q):(v=v.injector.resolve(VSn)("refresh_detector"))&&(v.get("first_tab_load")?_.N_(V,Q):v.set("first_tab_load","1"))}},jyh);var ohh={},Xxj=(ohh.initialized={priority:10,callback:Tp0},ohh);var aWY={},r8j=(aWY.initialized={priority:0,callback:function(){var v=new bON,Q="other";_.KN?Q="chrome":_.Fv?Q="firefox":_.mF?Q="safari":ej&&(Q="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(V){v.increment(_.z_(),V,Q)}).catch(function(){v.increment(_.z_(),!1,Q)}):v.increment(_.z_(),!1,Q)}},aWY);var $R7={},IW0=($R7.rendering={priority:8,callback:Y8Q},$R7);var Hp7={},mRY=(Hp7.rendering={priority:10,callback:Ji9},Hp7.rendered={callback:zst},Hp7),URs={},v00=(URs.rendering={callback:Ji9},URs.rendered={callback:zst},URs);var Qch=!1,VzI={},E0n=(VzI.initialized={priority:10,callback:function(){Qch||(jTS({didPatch:function(v){v.el&&oE3(v.el,v.props)},
didUnmount:function(v){jQ0(v.el)}}),Qch=!0)}},VzI);var bWs=/^\/shorts\/?$/;_.aS("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:{}}}}}}});_.Y("kevlar_use_common_module_manager_ks")?(_.$Yo(new Npo),brT()):x4o();
(function(){var v=document.querySelector("ytd-app");if(!v)throw Error("Xj");v=new Y6({root:v,injector:_.ht()});v.install(u0j);var Q={};v.install((Q.initialized={priority:10,callback:FMB},Q));_.Y("wp_lat_b")&&(Q={},v.install((Q.initialized={priority:10,callback:function(){czb()}},Q)));
Q={};v.install((Q.rendered={priority:0,callback:Vnm},Q));Q={};v.install((Q.rendered={priority:0,callback:function(){_.XT.addLowPriorityJob(function(){_.U1$>1&&($gh(),vqE())},4E4)}},Q));
v.install(Jt5);v.install(WtY);v.install(E0n);VoS();v.install(ods);v.install(RH7);v.install(SG0);v.install(Uzh);v.install(baI);v.install(jmn);v.install(ghs);_.Y("kevlar_enable_mss_lazy_load")&&v.install(Xxj);v.install(l9$);v.install(r8j);if(!_.mX("IS_SHELL_LOAD")||_.Y("kevlar_fetch_initial_data_promise_client")||_.Y("sw_nav_preload_pbj")){var V=_.OG(window.location.href);Q=V&&V==="/watch";V=V&&V.match(bWs);Q?v.install(v00):V?v.install(IW0):v.install(mRY)}else v.install(Mwn);v.install(xYh);_.Y("web_enable_prefetching_videos_on_home")&&
v.install($Y5);_.Y("start_client_gcf")&&v.install(WXn);v.install(r5h);(new F7Z).increment("INSTALLED");v.install(a9Y);v.install(f97);v.transition("initialized");dBr();iGo()})();
_.Ep=[[["bjd5OGU0cHJ2cnhraW5kIzM=","aDA3YjlodThnc3ZhbHVlI2Iz"],"TkRfTUlMTElTRUNPTkRTI201dmJ3aXNybnNxMkFEX1BMQUNFTUVOVF9LSQ=="]];_.VJ=["Z2xvYmFsQ2FsbGJhY2tzI2tzZG5jcmJoZ2ZsZg==","cm1hbGl0eURldGVjdGVkI2VmdTQ2NGYwd3VuY29uQWJubw==","NnoxZXV0OW9uQWRTa2lwI2x0Ymo1","X3BsYXllcl9yZXNwb25zZSM4b2FqN3c0cmkzd3Jhdw==","OW9xZDNtcGxheWVyQWRzIzVxaTB4dA=="];_.kp="Z2xvYmFsQ2FsbGJhY2tzI2tzZG5jcmJoZ2ZsZg== cm1hbGl0eURldGVjdGVkI2VmdTQ2NGYwd3VuY29uQWJubw== NnoxZXV0OW9uQWRTa2lwI2x0Ymo1 X3BsYXllcl9yZXNwb25zZSM4b2FqN3c0cmkzd3Jhdw== bHRpcGxlX3NraXBzX2tzIzlqc2pneHN2MnpubndlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== djlja3pjcmFiX3NhX2VmIzNmeXVn OW9xZDNtcGxheWVyQWRzIzVxaTB4dA==".split(" ");
_._ModuleManager_initialize=function(v,Q){if(!_.sh){if(!_.ut)return;_.$Yo(_.ut())}_.sh.setAllModuleInfoString(v,Q)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var TXm,YH$;_.BJ=function(v){return!!v.getOptions("captions")};
_.k7Y=function(v){return(v=v.getOption("captions","track"))?!!v.displayName:!1};
_.gN=function(v,Q){_.Tz(Q,v,function(){return TXm[Q]},function(V){TXm[Q]=V;
if(!_.Y("mweb_player_ve_show_ks")){var E=_.Mo(0);E&&V&&_.Bp(E,V)}})};
_.sW=function(v){(v=TXm[v])&&_.N_(_.tR(),v)};
TXm={};var yq0;/*

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
*/
_.fh({_template:function(){if(yq0!==void 0)return yq0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;YH$===void 0&&(YH$=document.createElement("template"));var E=YH$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return yq0=v},
is:"tp-yt-paper-checkbox",behaviors:[_.K_a],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.PE(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var v=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),Q="px",V=v.match(/[A-Za-z]+$/);V!==null&&(Q=V[0]);v=parseFloat(v);V=8/3*v;Q==="px"&&(V=Math.floor(V),V%2!==v%2&&V++);this.updateStyles({"--paper-checkbox-ink-size":V+
Q})}})},
_computeCheckboxClass:function(v,Q){var V="";v&&(V+="checked ");Q&&(V+="invalid");return V},
_computeCheckmarkClass:function(v){return v?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.bv8._createRipple.call(this)}});var cqh=new _.FG("radioButtonSurveyOptionRenderer"),feh=new _.FG("checkboxSurveyOptionRenderer");var G7q;var CMh;var Mz7=0,ur=function(){var v=_.z.call(this)||this;v.selected=!1;v.isOverlay=!1;v.inputId="toggle-option-"+Mz7;Mz7++;return v};
_.f(ur,_.z);ur.prototype.onTap=function(){_.Hj(this.hostElement,"ytd-toggle-option-clicked")};
_.W([_.q(),_.X("design:type",String)],ur.prototype,"label",void 0);_.W([_.q(),_.X("design:type",String)],ur.prototype,"inputId",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ur.prototype,"selected",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ur.prototype,"isOverlay",void 0);_.W([_.J({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.X("design:paramtypes",[])],ur);
_.B(ur,"ytd-toggle-option-renderer",function(){if(CMh!==void 0)return CMh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return CMh=v},{mode:1});var jF=function(){var v=_.z.apply(this,arguments)||this;v.isToggleOption=!1;v.isOverlay=!1;return v};
_.f(jF,_.z);jF.prototype.onTap=function(v){v.preventDefault();this.data&&(v=!this.data.checked,this.set("data.checked",v),_.Hj(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:v,value:this.data.value}))};
_.hr.Object.defineProperties(jF.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
jF.prototype.onTap=jF.prototype.onTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jF.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],jF.prototype,"isToggleOption",void 0);_.W([_.q(),_.X("design:type",Object)],jF.prototype,"isOverlay",void 0);_.W([_.O("data.responseText"),_.X("design:type",String),_.X("design:paramtypes",[])],jF.prototype,"label",null);
_.W([_.tM("ytd-toggle-option-clicked"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],jF.prototype,"onTap",null);_.W([_.J({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],jF);
_.B(jF,"ytd-checkbox-survey-option-renderer",function(){if(G7q!==void 0)return G7q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return G7q=v},{mode:1});var OWj;var DFh;var WJ=function(){var v=_.z.apply(this,arguments)||this;v.checked=!1;v.isToggleOption=!1;return v};
_.f(WJ,_.z);WJ.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]))};
WJ.prototype.onTap=WJ.prototype.onTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WJ.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],WJ.prototype,"checked",void 0);_.W([_.q(),_.X("design:type",Object)],WJ.prototype,"isToggleOption",void 0);_.W([_.tM("ytd-toggle-option-clicked"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],WJ.prototype,"onTap",null);
_.W([_.J({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],WJ);
_.B(WJ,"ytd-radio-button-survey-option-renderer",function(){if(DFh!==void 0)return DFh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return DFh=v},{mode:1});var oo=function(){var v=_.z.apply(this,arguments)||this;v.disableAnimation=!1;v.isToggleOption=!0;v.followUpSurveyCommand=null;v.selectedRatingEndpoint=null;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;v.styleOverrideAttribute=!0;v.isDarkMode=!1;v.isSubmitted=!1;v.roundedContainer=!0;v.improveShortsResponseRate=_.Y("web_improve_shorts_response_rate");v.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(oo,_.z);_.K=oo.prototype;
_.K.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"}}}}};
_.K.attached=function(){var v=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(V){var E;if((E=V[0])!=null&&E.isIntersecting){_.id().reportShown(v.hostElement);var b;(b=v.intersectionObserver)==null||b.unobserve(v.hostElement)}},{rootMargin:"0px",
threshold:.6});var Q;(Q=this.intersectionObserver)==null||Q.observe(this.hostElement)};
_.K.onDarkModeToggledAction=function(v){this.isDarkMode=v};
_.K.dataChanged=function(){var v;if(((v=this.data)==null?void 0:v.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var Q;((Q=this.data)==null?void 0:Q.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var V,E,b,F;this.darkColorPalette=(V=this.data)==null?void 0:(E=V.inlineContent)==null?void 0:(b=E.compactVideoRenderer)==null?void 0:(F=b.thumbnail)==null?
void 0:F.darkColorPalette;var t,p,Z,d;this.lightColorPalette=(t=this.data)==null?void 0:(p=t.inlineContent)==null?void 0:(Z=p.compactVideoRenderer)==null?void 0:(d=Z.thumbnail)==null?void 0:d.lightColorPalette;var w,A;if(((w=this.data)==null?0:(A=w.inlineContent)==null?0:A.compactVideoRenderer)&&this.isShortsStyle){var k,T,c,C;v=_.$D((k=this.data)==null?void 0:(T=k.inlineContent)==null?void 0:(c=T.compactVideoRenderer)==null?void 0:(C=c.thumbnail)==null?void 0:C.thumbnails);_.F6(this.hostElement,
{"--yt-background-url":"url("+v+")"})}};
_.K.handleRequestCompletion=function(){this.hostElement.hidden&&_.Hj(this.hostElement,"yt-dismissible-item-dismissed")};
_.K.onPopupClosed=function(v){var Q;((Q=v.detail)==null?void 0:Q.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.mb(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.K.handleInlineSurveyRatingSelect=function(v,Q){var V=this;this.selectedRatingEndpoint=v;this.followUpSurveyCommand=Q;this.expanded=!!v;this.getOptionRenderers().forEach(function(E,b){V.notifyPath("followUpSurveyCommand.followUpOptions."+b+".checkboxSurveyOptionRenderer.checked");V.set("followUpSurveyCommand.followUpOptions."+b+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),v=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.mb(this.hostElement,"yt-reel-non-video-content-dismissal-command",[v]))};
_.K.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.mb(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var v,Q=(v=this.data)==null?void 0:v.dismissalEndpoint;Q&&this.ytComponentBehavior.resolveCommand(Q)}};
_.K.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"))};
_.K.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var v=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{v=this.getOptionRenderers().filter(function(E){return E.checked});
if(v.length===0)return;v=v.map(function(E){return E.responseEndpoint})}var Q=[];
v.forEach(function(E,b){b!==0&&(E=_.y(E,_.Cq))&&E.feedbackToken&&Q.push(E.feedbackToken)});
if(v=v[0]){var V={};Q.length>0&&(V.extra_feedback_tokens=Q);this.ytComponentBehavior.resolveCommand(v,{form:V})}}};
_.K.getOptionRenderers=function(){var v=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(Q){v.isSingleSelect=!!_.y(Q,cqh);return v.isSingleSelect?_.y(Q,cqh):_.y(Q,feh)}):[]};
_.K.handleInlineSurveyOptionSelect=function(v){v=this.optionSelector.indexOf(v);v!==-1&&this.optionSelector.selectIndex(v)};
_.K.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.K.maybeGetBackgroundColor=function(v){return this.isDarkMode?v.section2Color:v.section3Color};
_.K.colorPaletteChanged=function(){var v=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;v=v&&this.maybeGetBackgroundColor(v);this.dismissibleEl.style.backgroundColor=!v||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.GA(v)};
_.hr.Object.defineProperties(oo.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
oo.prototype.colorPaletteChanged=oo.prototype.colorPaletteChanged;oo.prototype.onPopupClosed=oo.prototype.onPopupClosed;oo.prototype.handleRequestCompletion=oo.prototype.handleRequestCompletion;oo.prototype.dataChanged=oo.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],oo.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],oo.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Z7("#follow-up-survey-options"),_.X("design:type",Object)],oo.prototype,"optionSelector",void 0);_.W([_.q(),_.X("design:type",Object)],oo.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],oo.prototype,"disableAnimation",void 0);_.W([_.q(),_.X("design:type",Object)],oo.prototype,"isToggleOption",void 0);_.W([_.q(),_.X("design:type",Object)],oo.prototype,"followUpSurveyCommand",void 0);_.W([_.q(),_.X("design:type",Object)],oo.prototype,"selectedRatingEndpoint",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],oo.prototype,"expanded",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oo.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oo.prototype,"isShortsStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oo.prototype,"styleOverrideAttribute",void 0);_.W([_.q(),_.X("design:type",Boolean)],oo.prototype,"isSingleSelect",void 0);_.W([_.q(),_.X("design:type",Object)],oo.prototype,"isDarkMode",void 0);
_.W([_.q(),_.X("design:type",Object)],oo.prototype,"lightColorPalette",void 0);_.W([_.q(),_.X("design:type",Object)],oo.prototype,"darkColorPalette",void 0);_.W([_.O("selectedRatingEndpoint","isShortsStyle"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],oo.prototype,"isOptionSelected",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oo.prototype,"roundedContainer",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oo.prototype,"improveShortsResponseRate",void 0);_.W([_.Z7("#dismissible"),_.X("design:type",HTMLElement)],oo.prototype,"dismissibleEl",void 0);_.W([_.Z7("#dismiss-button yt-icon-button"),_.X("design:type",HTMLElement)],oo.prototype,"dismissButtonEl",void 0);_.W([_.Z7("#inline-survey-header yt-icon-button"),_.X("design:type",HTMLElement)],oo.prototype,"inlineHeaderDismissButtonEl",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],oo.prototype,"dataChanged",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],oo.prototype,"handleRequestCompletion",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],oo.prototype,"onPopupClosed",null);
_.W([_.ph("darkColorPalette","lightColorPalette","isDarkMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],oo.prototype,"colorPaletteChanged",null);_.W([_.J({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],oo);
_.B(oo,"ytd-inline-survey-renderer",function(){if(OWj!==void 0)return OWj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return OWj=v},{mode:1});var Rdh=["en-CA","en","es-MX","fr-CA"];_.n0h=_.x(function(v){var Q=_.o1(v,{isOverlay:!1,isModern:!1}),V=Q.captionIconType,E=Q.onClick;v=Q.ariaLabel;var b=Q.ariaPressed,F=Q.isOverlay,t=Q.isModern;Q=_.Ze("button",function(d){_.gN(d,127299)});
var p=_.EP(function(d){_.sW(127299);E==null||E(d);return!1}),Z={};
return _.P("ytm-closed-captioning-button",{class:_.QZ("ytmClosedCaptioningButtonHost",(Z.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return V()===-1&&F()},Z.ytmClosedCaptioningButtonIconDisabled=function(){return V()===-1&&!F()},Z))},_.P("button",{el:Q,
class:"ytmClosedCaptioningButtonButton",title:v,"aria-label":v,"aria-pressed":b,"on:click":p},_.P(_.L_,{icon:function(){var d="",w=t();var A=w?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";w=w?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var k=_.eP().get("hl");A=!k||Rdh.includes(k)?A:w;w=V();switch(w){case -1:case 0:d=A;break;case 1:d=A+"_FILLED";break;default:_.rV(w)}return d}})))},"oh");
_.n0h.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.zB=function(v,Q,V,E,b){var F={};Q&&(F[Q]=V);E?F.errorType=E:b&&(F.errorReason=b);_.X0(v,F);_.ay()};
_.Jm=function(v){var Q=_.Zp();return _.OlQ(Q,v,1)};
_.fh({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var v=this.query;v&&(this.full||v[0]==="("||(v="("+v+")"),this._mq=window.matchMedia(v),this._add(),this.queryHandler(this._mq))},
queryHandler:function(v){this._setQueryMatches(v.matches)}});var edI;var ZWI;var PM5=function(){};
_.K=PM5.prototype;_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._noinkChanged=function(){};
_.K._focusedChanged=function(){};
_.K._createRipple=function(){};
_.K.registered=function(){};
_.K._invalidChanged=function(){};
_.K.hasValidator=function(){};
_.K.validate=function(){};
_.K._getValidity=function(){};
_.K._requiredChanged=function(){};
_.K._valueChanged=function(){};
_.K._checkedChanged=function(){};
_.K._buttonStateChanged=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
PM5=_.fh({is:"tp-yt-paper-radio-button",_template:function(){if(ZWI!==void 0)return ZWI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;edI===void 0&&(edI=document.createElement("template"));var E=edI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return ZWI=v},
behaviors:[_.K_a],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(){_.PE(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var v=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),Q=Math.floor(3*v);Q%2!==v%2&&Q++;this.updateStyles({"--paper-radio-button-ink-size":Q+"px"})}})}});var dF5;var hd0;_.fh({_template:function(){if(hd0!==void 0)return hd0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;dF5===void 0&&(dF5=document.createElement("template"));var E=dF5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return hd0=v},
is:"tp-yt-paper-radio-group",behaviors:[_.U3Z],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(v){var Q=this._valueToItem(v);if(!Q||!Q.hasAttribute("disabled")){if(this.selected){Q=this._valueToItem(this.selected);if(this.selected==v)if(this.allowEmptySelection)v="";else{Q&&(Q.checked=!0);return}Q&&
(Q.checked=!1)}_.Bn.select.apply(this,[v]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(v){this._focusPrevious();v.preventDefault();this._activateFocusedItem()},
_onDownKey:function(v){this._focusNext();v.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(v){_.m3R._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(v){_.m3R._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Bn._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.jX._resetTabindices.apply(this,arguments);this.items.forEach(function(v){v.removeAttribute("aria-selected")},this)}});var waI;_.yZ("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var N5=function(){return _.z.apply(this,arguments)||this};
_.f(N5,_.z);_.K=N5.prototype;_.K.computeHasPrimaryIcon=function(v){return!(!v.icon&&!v.thumbnail)};
_.K.computeHasSecondary=function(v){return!(!v.secondaryIcon&&!v.secondaryNotificationText)};
_.K.computeHideSecondaryString=function(v){return!_.Y("disable_hide_empty_secondary_string")&&!v.secondaryNotificationText};
_.K.computeCompactLinkStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeHasFitHeight=function(v){return v==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.K.isActiveEndpoint=function(v){return(v=this.get("commandMetadata.webCommandMetadata.url",v))?_.OG(window.location.href)!=="/account_transfer_channel"&&_.OG(window.location.href)!=="/gaia_link"&&_.OG(window.location.href)!=="/channel_switcher"||v!=="/account"?_.OG(window.location.href)===v:!0:!1};
_.K.onTap=function(){var v;((v=this.data)==null?0:v.serviceEndpoint)&&_.vp(this.hostElement,[this.data.serviceEndpoint])};
N5.prototype.onTap=N5.prototype.onTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],N5.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.X("design:type",Boolean)],N5.prototype,"active",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.X("design:type",String)],N5.prototype,"compactLinkStyle",void 0);
_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",Object)],N5.prototype,"icon",void 0);_.W([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.X("design:type",Object)],N5.prototype,"secondaryIcon",void 0);_.W([_.q({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],N5.prototype,"hasSecondary",void 0);_.W([_.q({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],N5.prototype,"hideSecondaryString",void 0);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],N5.prototype,"onTap",null);_.W([_.J({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],N5);
_.B(N5,"ytd-compact-link-renderer",function(){if(waI!==void 0)return waI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return waI=v},{mode:1});var Aq0;_.yZ("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var x6=function(){var v=_.z.apply(this,arguments)||this;v.role="link";v.tabindex="0";v.actionMap=_.Y("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return v};
_.f(x6,_.z);_.K=x6.prototype;_.K.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.q2()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.K.getCurrentTheme=function(){return _.SV()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.q2()};
_.K.onThemeSelected=function(v,Q){var V=v||Q?v:_.lK(),E=(V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.pbT(_.OG(window.location.href));_.ZG(0,165,v);_.ZG(0,174,Q);this.prefs.save();E&&_.mb(this.hostElement,"yt-dark-mode-toggled-action",[V]);_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.K.onTap=function(){this.data.serviceEndpoint&&_.vp(this.hostElement,[this.data.serviceEndpoint])};
_.K.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.K.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.K.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
x6.prototype.onTap=x6.prototype.onTap;x6.prototype.dataChanged=x6.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],x6.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.tB),_.X("design:type",Object)],x6.prototype,"paperItemBehaviors",void 0);_.W([_.q(),_.X("design:type",Object)],x6.prototype,"data",void 0);_.W([_.q({value:function(){return _.eP()}}),
_.X("design:type",_.LB)],x6.prototype,"prefs",void 0);_.W([_.q(),_.X("design:type",Object)],x6.prototype,"label",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],x6.prototype,"role",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],x6.prototype,"tabindex",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],x6.prototype,"dataChanged",null);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],x6.prototype,"onTap",null);_.W([_.J({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],x6);
_.Hn()(x6,"ytd-toggle-theme-compact-link-renderer",function(){if(Aq0===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);Aq0=v}v=Aq0;return v},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var leI,qH0,SH$,Jqs,NXn,xFh,BXj,g0n,sc5,uJY,$Ff,rN,rqs,Won,aen,XaI,o07,jc7,Ied,HWj,mFY,UFn,$6,vym,QTn,b27,HJ,Vuh,vh,Io,mz,Eyf,UW,Fi5,Ki5,i2n,Liq,tu0,pE8,Z2d,Pu8,dv$,hnq,wEm,Arh,kE7,TCY,YSh,yrn,f3d,GEf,Cud,O2j,Rn7,l3f,qSd,SSn,znj,NCj,xvq,BC0,gy0,sTh,u2s,jTI,oyn,$v0,rrs,XEh,I3Y,a3d,H2Y,Qxm,vIh,mv5,Uvf,V$,VHh,bC$,Fbh,Kbd,ZCd,PYq,doh,had,wjm,AYh,kid,Tif,Ynm,cY$,fa7,Gim,CY7,MHs,OCm,Dof,RaI,qn7,tHn;
_.Xm=function(v){var Q=new _.xd("Error accessing DB");return _.T_h().then(function(V){return new Promise(function(E,b){try{var F=V.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(v);F.onsuccess=function(){var t=F.result;E(t?t.value:null)};
F.onerror=function(){Q.params={key:v,source:"onerror"};b(Q)}}catch(t){Q.params={key:v,
thrownError:String(t)},b(Q)}})},function(){return null})};
leI=function(v,Q){return _.Fg(v.entities,"inlineExpansionEntity",Q)};
qH0=function(v,Q){return _.Fg(v.entities,"flowStateEntity",Q)};
SH$=function(v,Q){if(v&&Q){var V=_.eC();V().set(v,Q);_.PjZ(V())}};
_.zdq=function(v,Q){if(v&&Q){var V=_.eC();V().set(v,Q);_.PjZ(V())}};
Jqs=function(v,Q){return _.Fg(v.entities,"contextNoteUserRatingEntityPayload",Q)};
NXn=function(v){return _.J3(v,function(Q){return Q.languageCode==="en"})};
xFh=function(v){var Q=ao;if(_.k7Y(v))v.setOption("captions","stickyLoading",{}),v.setOption("captions","track",{});else{var V=_.J3(_.Oy9(v),function(E){return E.displayName===Q});
v.setOption("captions","track",V)}};
BXj=function(v){if(!v)return 0;var Q=v.getPresentingPlayerType(),V=v.getVideoData();return V&&V.isLive?(v=v.getProgressState(Q),v.seekableEnd-v.seekableStart):v.getDuration(Q)};
g0n=function(v,Q){for(var V=_.L(Object.keys(v)),E=V.next();!E.done;E=V.next())if(E=E.value,v[E]!==Q[E])return!1;return!0};
sc5=function(){return document.getElementById("player-control-overlay")};
uJY=function(v){v!==-1&&!_.Y("player_controls_log_creation_killswitch")&&sc5()&&(_.Mp("pcu_cs",v),_.Mp("pcu_ce"))};
$Ff=function(v,Q){var V=_.Wn(v,{}),E=jc7("top",Q),b=jc7("bottom",Q),F=jc7("left",Q),t=jc7("right",Q);return _.iP({top:function(){return rN(V().position,E)},
bottom:function(){return rN(V().position,b)},
left:function(){return rN(V().position,F)},
right:function(){return rN(V().position,t)},
position:function(){return rN(V().positionType,Won)},
height:function(){return rN(V().height,$6)},
width:function(){return rN(V().width,$6)},
"min-width":function(){return rN(V().minWidth,$6)},
"min-height":function(){return rN(V().minHeight,$6)},
"max-width":function(){return rN(V().maxWidth,$6)},
"max-height":function(){return rN(V().maxHeight,$6)},
"aspect-ratio":function(){return rN(V().aspectRatio,String)},
"margin-top":function(){return rN(V().margin,E)},
"margin-bottom":function(){return rN(V().margin,b)},
"margin-left":function(){return rN(V().margin,F)},
"margin-right":function(){return rN(V().margin,t)},
"padding-top":function(){return rN(V().padding,E)},
"padding-bottom":function(){return rN(V().padding,b)},
"padding-left":function(){return rN(V().padding,F)},
"padding-right":function(){return rN(V().padding,t)},
"flex-direction":function(){return rN(V().flexDirection,o07)},
"justify-content":function(){return rN(V().justifyContent,XaI)},
"align-items":function(){return rN(V().alignItems,aen)},
"flex-grow":function(){return rN(V().flexGrow,String)},
"flex-shrink":function(){return rN(V().flexShrink,String)},
"flex-basis":function(){return rN(V().flexBasis,$6)},
"align-self":function(){return rN(V().alignSelf,aen)},
"flex-wrap":function(){return rN(V().flexWrap,rqs)},
"align-content":function(){return rN(V().alignContent,aen)}})};
rN=function(v,Q){return v!==void 0?Q(v):void 0};
rqs=function(v){switch(v){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Won=function(v){switch(v){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
aen=function(v){switch(v){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
XaI=function(v){switch(v){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
o07=function(v){switch(v){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
jc7=function(v,Q){var V=Q==="rtl";switch(v){case "top":var E=Ied;break;case "bottom":E=HWj;break;case "left":E=mFY;break;default:E=UFn}return function(b){return rN(E(b,V),$6)}};
Ied=function(v){var Q=v.top;var V=v.vertical;v=v.all;var E;return(E=Q!=null?Q:V)!=null?E:v};
HWj=function(v){var Q=v.bottom;var V=v.vertical;v=v.all;var E;return(E=Q!=null?Q:V)!=null?E:v};
mFY=function(v,Q){var V=v.left;var E=v.end;var b=v.start;var F=v.horizontal;v=v.all;var t,p;return(p=(t=V!=null?V:Q?E:b)!=null?t:F)!=null?p:v};
UFn=function(v,Q){var V=v.right;var E=v.end;var b=v.start;var F=v.horizontal;v=v.all;var t,p;return(p=(t=V!=null?V:Q?b:E)!=null?t:F)!=null?p:v};
$6=function(v){var Q=v.value;switch(v.unit){case "YPC_DIMENSION_UNIT_POINT":return Q+"px";case "YPC_DIMENSION_UNIT_FRACTION":return Q+"%";default:return""+Q}};
vym=function(v){switch(v){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
QTn=function(v){var Q=v!=null?v:{};v=Q.fontRole;var V=Q.fontSize;Q=Q.fontWeight;if(v!==null&&V!==null)switch(v){case "YPC_FONT_ROLE_DISPLAY":switch(V){case "YPC_FONT_SIZE_L":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(V){case "YPC_FONT_SIZE_L":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return Q===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(V){case "YPC_FONT_SIZE_XL":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
b27=function(v,Q,V){function E(A){return Object.values(A).map(function(k){var T=k.productId;k=k.pricingOptionIndex;return Io(b(T).pricingOptions,k).pricingOptionId})}
function b(A){return Z().get(A)}
function F(A){A=E(A);V(A)}
function t(A,k){return Array.from(HJ(A.pricingOptions)).filter(function(T){T=_.L(T);T.next();T=T.next().value;return mz(T.pricingGroupAttributes,k)}).map(function(T){return _.L(T).next().value})}
var p=UW([v,Q],function(A,k){var T=A==null?void 0:A.selectedPricingOptions;A={};var c=!0;if(T&&k.length)for(var C=_.L(k),R=C.next();!R.done;R=C.next()){R=R.value;var l=Vuh(R.pricingOptions,function(g){a:{g=g.pricingOptionId;for(var u=_.L(T),r=u.next();!r.done;r=u.next())if(r.value===g){g=!0;break a}g=!1}return g});
if(l>=0){c=!1;var S=Io(R.pricingOptions,l),a=void 0;A[R.groupId]={productId:R.productId,pricingOptionIndex:l,pricingGroupAttributes:(a=S)==null?void 0:a.pricingGroupAttributes}}}c&&k.length&&(c=Io(k[0].pricingOptions,0),A[k[0].groupId]={productId:k[0].productId,pricingOptionIndex:0,pricingGroupAttributes:c==null?void 0:c.pricingGroupAttributes});return A}),Z=UW([Q],function(A){return new Map(A.map(function(k){return[k.productId,
k]}))}),d=UW([Q],function(A){var k=new Map;
A=_.L(A);for(var T=A.next();!T.done;T=A.next()){var c=T.value;T=c.groupId;var C=c.productId;c=_.L(HJ(c.pricingOptions));for(var R=c.next();!R.done;R=c.next()){var l=_.L(R.value);R=l.next().value;l=l.next().value;k.set(l.pricingOptionId,{groupId:T,productId:C,index:R,pricingOption:l,pricingGroupAttributes:l.pricingGroupAttributes})}}return k}),w=UW([Q],function(A){var k=new Map;
A=_.L(A);for(var T=A.next();!T.done;T=A.next()){var c=T.value;T=c.groupId;var C=c.productId,R=void 0;c=_.L(HJ((R=c.pricingGroups)!=null?R:[]));for(R=c.next();!R.done;R=c.next()){var l=_.L(R.value);R=l.next().value;l=l.next().value;k.set(l.pricingGroupId,{groupId:T,productId:C,index:R,pricingGroup:l,pricingGroupAttributes:l.pricingGroupAttributes})}}return k});
return{getProductById:b,isProductSelected:function(A){var k=b(A);if(!k)return!1;var T;return((T=p()[k.groupId])==null?void 0:T.productId)===A},
getSelectedPricingOptions:function(){return Object.values(p()).map(function(A){var k=A.productId;A=A.pricingOptionIndex;return Io(b(k).pricingOptions,A)})},
getSelectedPricingGroupAttributesByGroupId:function(A){var k;return(A=(k=p()[A])==null?void 0:k.pricingGroupAttributes)?Array.from(A):void 0},
getSelectedProductByGroupId:function(A){var k;return(A=(k=p()[A])==null?void 0:k.productId)?b(A):void 0},
onProductSelected:function(A){var k=b(A);if(k){var T=p(),c;if(((c=T[k.groupId])==null?void 0:c.productId)!==A){var C=(c=(C=T[k.groupId])==null?void 0:C.productId)?b(c):void 0;var R;c=(R=T[k.groupId])==null?void 0:R.pricingGroupAttributes;var l;R=(l=T[k.groupId])==null?void 0:l.pricingOptionIndex;if(C&&R!==void 0)if(c){l=t(C,c).indexOf(R);if(l===-1)throw Error("Yj`"+R+"`"+C.productId);R=t(k,c);l=l<R.length?R[l]:R.length>0?R[0]:0}else l=R<vh(k.pricingOptions)?R:0;else l=0;vh(k.pricingOptions)<=l&&(l=
0);R=Io(k.pricingOptions,l);var S;C={};F(Object.assign({},T,(C[k.groupId]={productId:A,pricingOptionIndex:l,pricingGroupAttributes:(S=R==null?void 0:R.pricingGroupAttributes)!=null?S:[]},C)))}}},
onPricingOptionSelected:function(A){var k=d().get(A);if(k){A=k.groupId;var T=k.productId;k=k.index;var c=p(),C,R;if(((C=c[A])==null?void 0:C.productId)!==T||((R=c[A])==null?void 0:R.pricingOptionIndex)!==k){var l,S;C={};F(Object.assign({},c,(C[A]={productId:T,pricingOptionIndex:k,pricingGroupAttributes:(S=(l=c[A])==null?void 0:l.pricingGroupAttributes)!=null?S:[]},C)))}}},
onPricingGroupSelected:function(A){var k=w().get(A);if(k){A=k.groupId;var T=k.productId,c=k.pricingGroup.pricingGroupAttributes,C=b(T);if(C){k=p();var R=k[A].pricingGroupAttributes,l;if(((l=k[A])==null?void 0:l.productId)!==T||!mz(Eyf(R,vh(c)),c)){l=Array.from(c);for(c=vh(c);c<vh(R);c++){var S="",a=!1,g=Array.from(l);g.push(Io(R,c));for(var u=_.L(C.pricingGroups),r=u.next();!r.done;r=u.next())if(r=r.value,mz(r.pricingGroupAttributes,g)){l.push(Io(R,c));a=!0;break}else S===""&&vh(r.pricingGroupAttributes)===
g.length&&mz(Eyf(r.pricingGroupAttributes,l.length),l)&&(S=Io(r.pricingGroupAttributes,c));a||l.push(S)}S=k[A].pricingOptionIndex;c=[];a=new Map;g=0;C=_.L(HJ(C.pricingOptions));for(u=C.next();!u.done;u=C.next())r=_.L(u.value),u=r.next().value,r=r.next().value,mz(r.pricingGroupAttributes,l)&&c.push(u),mz(r.pricingGroupAttributes,R)&&a.set(u,g++);c.length===0?R=0:(R=a.get(S),R=R!==void 0&&R<c.length?c[R]:c[0]);C={};F(Object.assign({},k,(C[A]={productId:T,pricingOptionIndex:R,pricingGroupAttributes:l},
C)))}}}},
onClearGroupSelected:function(A){var k=p();k[A]&&(k=Object.fromEntries(Object.entries(k).filter(function(T){return _.L(T).next().value!==A})),F(k))}}};
HJ=function(v){return function V(){var E,b,F,t,p;return _.E$(V,function(Z){switch(Z.nextAddress){case 1:_.DV(Z,2),E=0,b=_.L(v),F=b.next();case 4:if(F.done){Z.jumpTo(2);break}t=F.value;p=_.bJ;return Z.yield([E++,t],7);case 7:p(Z.yieldResult);F=b.next();Z.jumpTo(4);break;case 2:_.O_(Z),_.Ra(Z,0)}})}()};
Vuh=function(v,Q){v=_.L(HJ(v));for(var V=v.next();!V.done;V=v.next()){var E=_.L(V.value);V=E.next().value;E=E.next().value;if(Q(E))return V}return-1};
vh=function(v){var Q=0;for(v=v[Symbol.iterator]();!v.next().done;)++Q;return Q};
Io=function(v,Q){v=_.L(HJ(v));for(var V=v.next();!V.done;V=v.next()){var E=_.L(V.value);V=E.next().value;E=E.next().value;if(V===Q)return E}};
mz=function(v,Q){if(!v&&!Q)return!0;if(!v||!Q)return!1;v=Array.from(v);Q=Array.from(Q);if(v.length!==Q.length)return!1;for(var V=0;V<v.length;V++)if(v[V]!==Q[V])return!1;return!0};
Eyf=function(v,Q){Q=Q===void 0?Infinity:Q;var V=[];v=_.L(HJ(v));for(var E=v.next();!E.done;E=v.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;if(E>=Q)break;E>=0&&V.push(b)}return V};
UW=function(v,Q){var V,E;return function(){for(var b=v.map(function(t){return t()}),F=0;F<b.length;F++)if(!V||b[F]!==V[F]){V=b;
E=Q.apply(null,_.ui(b));break}return E}};
Fi5=function(v,Q,V){var E=[];v=_.L(v);for(var b=v.next();!b.done;b=v.next()){b=b.value;var F=void 0;((F=Q)==null?0:F.length)&&!mz(b.pricingGroupAttributes,Q)||E.push({pricingOption:b,isSelected:V.includes(b.pricingOptionId)})}return E};
Ki5=function(v,Q){return _.Fg(v.entities,"pdpStateEntity",Q)};
i2n=function(v){var Q,V;return!!(v.productId&&v.groupId&&((Q=v.pricingOptions)==null?0:Q.length)&&v.pricingOptions.every(function(E){return E.pricingOptionId})&&((V=v.pricingGroups)==null||!V.length||Array.isArray(v.pricingGroups)&&v.pricingGroups.every(function(E){return E.pricingGroupId&&E.pricingGroupAttributes&&E.pricingGroupAttributes.length>0})))};
Liq=function(v,Q,V){return b27(v,UW([Q],function(E){return E.filter(i2n)}),V)};
tu0=function(v,Q){return Q.length===0?[v]:[v.slice(0,Q[0]),v.slice(Q[0])].filter(function(V){return V.length>0})};
pE8=function(v){switch(v){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
Z2d=function(v,Q,V,E){E=Object.assign({},E);_.yK(E,en7,{selectedOptionId:v,primaryButtonOverride:V});_.uf().dispatch(_.dW("flowStateEntity",Q,E))};
Pu8=function(v,Q,V){!_.y(V,en7)&&v.noPreselect&&Q!==""&&v.defaultButtonOverride&&Z2d("default",Q,v.defaultButtonOverride,V)};
dv$=function(v){switch(v){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
hnq=function(v){switch(v){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
wEm=function(v,Q){if(Q)return"ytCardViewModelCardSelected";switch(v){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
Arh=function(v,Q){Q.includes(v)?Q=Q.filter(function(V){return V!==v}):Q.push(v);
return[].concat(_.ui(Q))};
kE7=function(v,Q){return _.Fg(v.entities,"contextNoteFeedEntityPayload",Q)};
TCY=function(v,Q){switch(v){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return Q==null?void 0:Q.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return Q==null?void 0:Q.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return Q==null?void 0:Q.ratingNotHelpfulText}};
YSh=function(v,Q,V){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:V||v.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:v.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:v.deleteDialogTitle}]},dialogMessages:[{runs:[{text:v.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:v.deleteActionText}]},command:{performCommentActionEndpoint:{action:Q}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:v.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
yrn=function(v,Q,V){var E;if(v&&((E=Q())==null?0:E.includes(v))){var b;V((b=Q())==null?void 0:b.filter(function(F){return F!==v}))}else V([].concat(_.ui(Q()||[]),[v]))};
f3d=function(v,Q){if(v){var V=[];Q=_.L((Q==null?void 0:Q.checkboxes)||[]);for(var E=Q.next();!E.done;E=Q.next()){E=_.y(E.value,crn);var b=void 0;((b=E)==null?0:b.value)&&v.includes(E.key||"")&&V.push(E.value)}return V}};
GEf=function(v){v.style.height="auto";v.style.height=v.scrollHeight+"px"};
Cud=function(v){return[v.syncStep,v.asyncStep].filter(function(Q){return Q!==void 0})};
O2j=function(v){var Q,V,E;if(v=(Q=v.structuredContextNoteFormSchema)==null?void 0:(V=Q.fieldSchemas)==null?void 0:(E=V.noteBody)==null?void 0:E.validationSchema)for(Q=_.L(Cud(v)),V=Q.next();!V.done;V=Q.next()){V=V.value.rules;if(!V)break;V=_.L(V);for(V=V.next();!V.done;V=V.next())return _.y(V.value,_.Mu8)}};
Rn7=function(v){if(v){v=_.L(Cud(v));for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value.rules;if(!Q)break;Q=_.L(Q);for(Q=Q.next();!Q.done;Q=Q.next())return _.y(Q.value,Dv7)}}};
l3f=function(v){if(v){v=_.L(Cud(v));for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value.rules;if(!Q)break;Q=_.L(Q);for(Q=Q.next();!Q.done;Q=Q.next())return _.y(Q.value,nyd)}}};
qSd=function(v){v=/^https?:\/\//.test(v)?v:"http://"+v;try{var Q=_.vR(v)}catch(V){return!1}if(Q.toString()!==v)return!1;v=Q.JSC$10112_domain_.split(".");return v.length>1&&v.every(function(V){return!!V})};
SSn=function(v,Q,V,E){var b;E=(b=E.structuredContextNoteData)==null?void 0:b.createCommentEndpoint;if(b=_.y(E,_.M4A))return b.commentText=_.u3(v),b.videoPositionMention=Q,b.sources=V,E};
znj=function(v){return v==null?void 0:v.stringValue};
NCj=function(v,Q,V){v=v.map(function(E,b){return{listItemViewModel:{title:E.title,subtitle:E.subtitle,leadingImage:E.leadingImage,trailingImage:b===Q?Jrd:void 0,rendererContext:{commandContext:{onTap:E.onTap}}}}});
return Object.assign({},V&&{header:{panelHeaderViewModel:{title:V}}},{content:{listViewModel:{listItems:v}}})};
xvq=function(v,Q){if(v&&Q)switch(Q){case "SELECTION_TYPE_BOOL":return v.boolValue;case "SELECTION_TYPE_INT":return v.intValue;case "SELECTION_TYPE_STRING":return v.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return v.privacyStatusValue}};
BC0=function(v){var Q;v=(Q=v.options)==null?void 0:Q.findIndex(function(V){return V.isSelected});
return v===void 0?-1:v};
gy0=function(v,Q,V){var E=function(){return v().label},b={},F=_.QZ("ytDropdownViewModelLabel",(b.ytDropdownViewModelLabelError=Q,b));
return _.P(_.h,{cond:function(){return v().label&&!(V()===-1&&v().label&&!v().placeholderText)},
then:function(){return _.P("div",{class:F},_.P(_.tD,{text:E}))}})};
sTh=function(v,Q){var V={};V=_.QZ("ytDropdownViewModelTitle",(V.ytDropdownViewModelTitlePlaceholder=function(){return Q()===-1},V));
return _.P("div",{class:V},_.P(_.tD,{text:function(){var E=v();var b=Q();if(b===-1)E=E.placeholderText?E.placeholderText:E.label;else{var F,t;E=(F=E.options)==null?void 0:(t=F[b])==null?void 0:t.title}return E}}))};
u2s=function(v,Q){var V=function(){return v().hint};
return _.P(_.w7,null,_.P(_.h,{cond:function(){return V()&&!Q()},
then:function(){return _.P("div",{class:_.QZ("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.P(_.tD,{text:V,className:"ytDropdownViewModelSupportText"}))}}),_.P(_.h,{cond:Q,
then:function(){return _.P("div",{id:"dropdown-view-model-error",role:"alert",class:_.QZ("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.P(_.L_,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.P(_.tD,{text:Q,className:"ytDropdownViewModelSupportText"}))}}))};
jTI=function(v,Q){var V=_.ht().resolve(_.Zwh);_.jg(function(){var E=v().id;E&&V!=null&&V.dropdownMap.set(E,Q)})};
oyn=function(v){v=_.y(v.scheduleButton,Wis);v=_.y(v==null?void 0:v.primaryButton,_.pH);v=_.y(v==null?void 0:v.onTap,_.Cx);var Q,V,E=((V=_.y(v,_.E2))==null?void 0:V.commands)||[v];V=_.L(E);for(v=V.next();!v.done&&!(Q=_.y(v.value,_.G6a));v=V.next());var b;Q=(b=Q)==null?void 0:b.createBroadcastRequest;if(!Q)throw Error("ek");return Q};
$v0=function(v,Q,V){V=V===void 0?{}:V;var E,b;return _.e(function(F){if(E=XEh(Q))return F.return(E);(b=a3d(v,Q,V))&&rrs(Q,b);return F.return(b)})};
rrs=function(v,Q){var V=I3Y(v);V&&Q.then(function(E){_.ht().resolve(_.lp).put(V,new _.qD({innertubeResponse:E}))})};
XEh=function(v){if(v=I3Y(v)){var Q=_.ht().resolve(_.lp);if(Q.has(v))return Q.get(v).then(function(V){return V==null?void 0:_.rs(V)})}return null};
I3Y=function(v){var Q=_.y(v.endpoint,_.sn);if(Q!=null&&Q.videoId)return Q={videoId:Q.videoId},_.Y("web_imp_player_mute_params")&&(Q.mutedAtStart=v.startPlaybackInMutedState),_.gi("inline_playback",Q)};
a3d=function(v,Q,V){v=_.xW(v,Q.endpoint,H2Y(Q,V)).then(function(E){return E});
return Promise.resolve(v)};
H2Y=function(v,Q){Q=_.Y("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!v.startPlaybackInMutedState},Q):Object.assign({},{vis:5,autonav:"1"},Q);var V;Q={contentPlaybackContext:_.vZ(Q,(V=_.y(v.endpoint.commandMetadata,_.Kt))==null?void 0:V.url,window.location.href)};_.Y("web_imp_player_mute_params")&&(Q.overrideMutedAtStart=!v.startPlaybackInMutedState);return Q};
Qxm=function(v,Q){var V=window.MutationObserver;V&&(Q$=new V(function(E,b){E=_.L(E);for(var F=E.next();!F.done;F=E.next()){F=F.value;var t;if(t=F.type==="childList"&&F.target)a:{t=v;F=mv5(F.target);t=mv5(t);for(var p=null,Z=0;Z<F.length;Z++)if(t.includes(F[Z])){if(Z===0){t=!1;break a}p=F[Z];break}p?(F=Uvf(F,p),t=Uvf(t,p),t=F<t):t=!1}if(t){Q();b.disconnect();break}}}),(V=vIh())&&Q$.observe(V,{childList:!0,
subtree:!0}))};
vIh=function(){var v=document.getElementsByTagName("ytd-rich-grid-renderer");if(v.length>0)return v[0];v=document.getElementsByTagName("ytd-section-list-renderer");return v.length>0?v[0]:null};
mv5=function(v){for(var Q=[];v;)Q.push(v),v=v.parentElement;return Q};
Uvf=function(v,Q){var V=Array.from(Q.children);Q=v.indexOf(Q);return Q>0?V.indexOf(v[Q-1]):-1};
V$=function(v,Q,V){V=V===void 0?{}:V;return _.Lt(v,V,Q)};
VHh=function(v){switch(v){case "MUSIC":return!0;default:return!1}};
bC$=function(v){if(v=v==null?void 0:v.find(function(E){var b,F;return((b=_.y(E,EId))==null?void 0:(F=b.inlinePlaybackBadgeData)==null?void 0:F.replicateAsTimestamp)===!0}))if(v=_.y(v,EId),v==null?0:v.icon){var Q,V;
if((v=(Q=_.FZt(v.icon))==null?void 0:(V=Q.clientResource)==null?void 0:V.imageName)&&VHh(v))return v}};
Fbh=function(v){return v==null?void 0:v.filter(function(Q){return Q.premiereTrailerBadgeRenderer})};
Kbd=function(v){var Q,V=v==null?void 0:(Q=v.find(function(Z){return Z.thumbnailOverlayTimeStatusRenderer}))==null?void 0:Q.thumbnailOverlayTimeStatusRenderer,E,b;
if((V==null?0:(E=V.icon)==null?0:E.iconType)&&VHh(V==null?void 0:(b=V.icon)==null?void 0:b.iconType)){var F;return{icon:V==null?void 0:(F=V.icon)==null?void 0:F.iconType}}var t;if(Q=v==null?void 0:(t=v.find(function(Z){return Z.thumbnailOverlayBadgeViewModel}))==null?void 0:t.thumbnailOverlayBadgeViewModel)if(t=bC$(Q.thumbnailBadges))return{icon:t};
var p;if(v=v==null?void 0:(p=v.find(function(Z){return Z.thumbnailBottomOverlayViewModel}))==null?void 0:p.thumbnailBottomOverlayViewModel)if(p=bC$(v.badges))return{icon:p};
return{}};
ZCd=function(v,Q){var V=iCY,E=_.L(_.Ge(Lbd(new tHn(function(){},V,Q)),void 0,"PAnyd")),b=E.next().value,F=E.next().value,t=new tHn(function(p){F(p)},V,Q);
_.uH(function(){Promise.resolve().then(function(){var p,Z=(p=v())!=null?p:{};t.playerControlsData=Z;_.Y("player_controls_skip_double_signal_old")&&(t.lastSeenPlayerApi=_.nq(Z.playerApi));_.Y("player_controls_skip_double_signal_old")||(t.lastSeenPlayerApi=_.nq(Z.playerApi));pjs(t)});
_.j_(function(){eaq(t)})},"HikUP");
_.j_(function(){eaq(t)});
return function(){return b()}};
PYq=function(v){return function(Q){var V=v(),E={playerState:Q};if(Q===1){var b;(b=V.playerApi)==null||b.loadModule("captions")}if(Q===0){var F;(F=V.playerApi)==null||F.unloadModule("captions")}Q!==-1&&V.setState(E)}};
doh=function(v){return function(Q){v().setState({playbackRate:Q})}};
had=function(v){return function(Q){var V=v(),E=V.playerApi,b=E==null?void 0:E.getVideoData(),F=(b==null?void 0:b.isLive)||!1;b=b==null?void 0:b.video_id;F={videoDuration:BXj(E||void 0),isLive:F,videoId:b};F.videoId!==V.videoId&&(F=Object.assign({},_.qlr(E),F));if(Q==null?0:Q.playertype)F.playerType=Q.playertype;if(E){F.captionsAvailable=_.BJ(E);Q=F;var t;b=(t=E.getStoryboardLevel(E.getNumberOfStoryboardLevels()-1))==null?void 0:t.intervalMs;Q.storyboardInterval=b?b/1E3:void 0;F.captionsAvailable&&
(F.captionsEnabled=_.k7Y(E))}F.volumeMuted=!(E==null||!E.isMuted());V.setState(F)}};
wjm=function(v){return function(Q){var V=v(),E=V.playerApi;if(E){var b=E.getPresentingPlayerType();Q={playedTime:Q||0,percentLoaded:E.getVideoLoadedFraction(),playerType:b};V.playerState===0&&(Q.playedTime=V.videoDuration);V.isLive&&(b=E.getProgressState(b),Q.playedTime-=b.seekableStart,Q.videoDuration=BXj(E));if(V.playerType===1)E=!1;else{var F;if((F=V.uxConfig)==null?0:F.showCuedOverlay){var t;E=!((t=V.playerApi)==null?0:t.getPlayerStateObject(V.playerType).isDomPaused)}else E=!0}E&&delete Q.playedTime;
V.setState(Q)}}};
AYh=function(v){return function(){var Q=v(),V,E,b,F={volume:(b=(V=Q.playerApi)==null?void 0:V.getVolume())!=null?b:0,volumeMuted:!((E=Q.playerApi)==null||!E.isMuted())};Q.setState(F)}};
kid=function(v){return function(){var Q=v(),V=Q.playerApi;if(V){var E={captionsAvailable:_.BJ(V)};E.captionsAvailable&&(E.captionsEnabled=_.k7Y(V));Q.setState(E)}}};
Tif=function(v){return{appApi:Object.assign({},_.Cnm(),{showCaptionsToggleToast:function(Q){var V,E;(E=(V=v()).showCaptionsToggleToast)==null||E.call(V,Q)},
openInMiniplayer:function(){var Q,V;(V=(Q=v()).openInMiniplayer)==null||V.call(Q)}})}};
Ynm=function(v,Q){var V,E,b;return!!(v==null?0:(V=v.playerResponse)==null?0:(E=V.playerConfig)==null?0:(b=E.inlinePlaybackConfig)==null?0:b.showScrubbingControls)&&!(Q==null?0:Q.hideScrubbingControls)};
_.yY0=function(v){var Q=!v.miniplayerIsActive;return[5,2,0].includes(v.miniplayerPlaybackState)||Q};
cY$={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};fa7=function(v){this.onStepChangeCallback=function(){};
this.flowRenderer=v};
fa7.prototype.getCurrentStep=function(){var v=this,Q;return((Q=this.flowRenderer.steps)!=null?Q:[]).map(function(V){return _.y(V,_.W2)}).find(function(V){return V&&V.stepId===v.currentStepId})};
Gim=function(v,Q){var V=Q.flowStateEntityKey,E=v.flowStates.get(V);if(E)return E;Q=new fa7(Q);v.flowStates.set(V,Q);return Q};
CY7=function(v,Q){for(var V=_.L(v.flowStates.entries()),E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;if(b.flowRenderer.targetId===Q){v.flowStates.delete(E);break}}};
MHs=function(v,Q){v.onStepChangeCallback=Q;v.onStepChangeCallback(v.getCurrentStep())};
OCm=function(v,Q){var V=v.getCurrentStep();if(!V||V.stepId!==Q){var E;((E=v.flowRenderer.steps)!=null?E:[]).map(function(b){return _.y(b,_.W2)}).find(function(b){return b&&b.stepId===Q})&&(v.currentStepId=Q,v.onStepChangeCallback(v.getCurrentStep()))}};
Dof=function(v,Q){var V,E,b,F,t;_.e(function(p){if(!Q.length)return p.return([]);V=[];E=_.L(Q);for(b=E.next();!b.done;b=E.next())F=b.value,(t=v.resolveIcon(F))&&!v.iconCache[t.url]&&V.push(_.dPh(v,t).then(function(){}).catch(function(){}));
return p.return(Promise.all(V))})};
RaI=function(v,Q){var V=[];Q=(new Set(Q)).values();Q=_.L(Q);for(var E=Q.next();!E.done;E=Q.next()){E=E.value;for(var b=_.L(Object.values(cY$)),F=b.next();!F.done;F=b.next())V.push({iconName:E,iconStyle:F.value})}Dof(v.iconManager,V)};
_.nIq=function(v,Q,V){var E=V!=null?V:v.iconsToFetch;E!=null&&E.length?Q!==void 0&&Q>=0?_.go(_.XT,function(){RaI(v,E)},Q):RaI(v,E):Promise.resolve()};
_.laI=_.ec(function(v,Q,V){if(v.nextWireType_!==5)return!1;_.Z5(Q,V,_.Sm(v.decoder_));return!0},function(v,Q,V){Q=_.ySr(Q);
Q!=null&&(_.Pq(v,V,5),_.he(v.encoder_,Q))},_.FIX);
qn7=[0,_.BC,_.laI,-1];_.Sn5=function(){return _.U2({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
tHn=function(v,Q,V){var E=this;this.renderFn=v;this.listeners=Q;this.context=V;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var b;this.lastSeenPlayerApi=_.nq((b=this.playerControlsData)==null?void 0:b.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.qlr(),void 0);_.Y("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Lbd(E).setState({playerState:-1});E.resetRecentlyNavigatedJobId&&_.XT.cancelJob(E.resetRecentlyNavigatedJobId);
E.recentlyNavigated=!0;E.resetRecentlyNavigatedJobId=_.XT.addJob(function(){E.recentlyNavigated=!1},8,1E4)})};
tHn.prototype.setState=function(v){if(!_.Y("mweb_player_skip_no_op_state_changes")||!g0n(v,this.state))if(this.state=Object.assign({},this.state,v),!_.Y("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)v=-1,_.Y("player_controls_log_creation_killswitch")||sc5()||(v=(0,_.wO)()),_.Mp("pcu_s"),_.Mp("pcu_se"),_.Mp("pcu_rs"),this.renderFn(Lbd(this)),_.Mp("pcu_re"),uJY(v),_.XT.addJob(function(){_.Mp("pcu_ap")},8)};
var Lbd=function(v){var Q;var V=_.nq((Q=v.playerControlsData)==null?void 0:Q.playerApi);return Object.assign({},v.state,{setState:v.boundSetState,domMeasurements:{progressBarLineRect:v.progressBarLineRect},playerApi:V,appApi:v.context.appApi,playerContainer:v.context.playerContainer,playerControlContainer:v.context.playerControlContainer,uxConfig:v.context.uxConfig})},pjs=function(v){v.listeners.forEach(function(Q){v.eventListenerCleanupFunctions.push(Q.register(function(){return Lbd(v)},function(){return v.getData()}))})},
eaq=function(v){v.eventListenerCleanupFunctions.forEach(function(Q){Q()});
v.eventListenerCleanupFunctions.length=0};
tHn.prototype.getData=function(){return this.playerControlsData};var za7=[0,_.v7,_.WC,_.v7,-1,_.WC,[0,_.oq,_.aq,-1],_.v7,-1];var JYh=[0,[1,2,3],_.$K,-2];var NiI=[0,_.v7];var xoI=new _.FG("crowdsourcedContextUserRatingFormFlowState");var BiY=new _.FG("noteViewModel");var EN=new _.FG("abuseReportFlowState");var gIf=new _.FG("feedbackFormFlowState");var sxY=new _.FG("inputBoxViewModel");_.Mu8=new _.FG("lengthValidationRule");var Dv7=new _.FG("regexValidationRule");var nyd=new _.FG("selectedValidationRule");var uy$=[0,_.aq,_.v7,_.bc];var jxI=[0,_.WC,-2,qn7];var Wbm=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Wbm,_.Lf);Wbm.prototype.getFeature=function(){return _.fN(this,6)};
Wbm.prototype.hasFeature=function(){return _.fj(_.em(this,6))!=null};var oIh=[0,_.aq];var Xjh=_.YP(Wbm,[0,_.WC,-2,qn7,_.WC,_.aq,-1,_.s7,-1,_.aq,-3,_.GhZ,_.oq,jxI,_.aq,-1,za7,_.s7,_.aq,uy$,[0,[0,_.aq,-2,2,_.aq,-1,[0,_.aq],[0,_.v7,_.aq],[0,_.v7],[0,_.aq],2,[0,_.v7,2,[0,_.v7,-1],[0,_.Iq,JYh],1,[0,NiI],1,[0,_.aq]],[0,_.oq],[0,[1,2],_.HC,[0,_.aq],_.HC,[0,_.aq,_.U7,-1]],[0,_.v7],[0,_.aq,[0,[1,2,3,4],_.HC,[0,[0,_.aq],oIh],_.HC,[0,[0,_.aq],oIh],_.HC,[0,oIh],_.HC,[0,[0,_.aq],oIh]]],[0,_.aq],1,[0,_.aq,_.v7],1,[0,_.aq],[0,_.oq],[0,_.aq,_.v7,-1,[0,_.aq,-4]],[0,_.aq],[0,_.aq,-2],1,[0,_.aq],[0,
_.oq],[0,_.oq,_.aq],1,[0,_.oq],[0]],_.aq,_.v7,_.BC,1,_.m3,_.aq,_.v7],_.WC,_.m3,_.v7,-1,_.WC]);var aah=new _.FG("talkToRecsViewModel");var rYY=new _.FG("creatorGoalSetUpFlowDropdownItemViewModel");var $oj=new _.FG("creatorGoalSetUpFlowDropdownViewModel");var EId=new _.FG("thumbnailBadgeViewModel");var Iaf=new _.FG("checkboxGroupViewModel");var crn=new _.FG("checkboxItemViewModel");_.b1=new _.FG("radioButtonGroupViewModel");var HCf=new _.FG("radioButtonItemViewModel");var Wis=new _.FG("panelFooterViewModel");var mo8=new _.FG("ypcCancelRecurrenceCommand");var Uo$=new _.FG("cancellationFlowState");var en7=new _.FG("premiumPurchaseFlowState");var v7q=new _.FG("surveyAnswerCardRenderer");var Q$f=new _.FG("showMoreButtonRenderer");var VPq;var E78,btI=function(){if(E78!==void 0)return E78;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;VPq===void 0&&(VPq=document.createElement("template"));var E=VPq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return E78=v};var Fq=function(){var v=_.z.apply(this,arguments)||this;v.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";v.goalDescription="";v.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";v.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";v.startButtonId="start-button";v.exampleButtonId="example-button";return v};
_.f(Fq,_.z);_.K=Fq.prototype;_.K.getGoalDropdownItems=function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.purchaseTargetDropdown,$oj))==null?void 0:Q.dropdownItems};
_.K.getTimerDropdownItems=function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.timerDropdown,$oj))==null?void 0:Q.dropdownItems};
_.K.getColorDropdownItems=function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.colorDropdown,$oj))==null?void 0:Q.dropdownItems};
_.K.getDropdownItemText=function(v){var Q;return(Q=_.y(v,rYY))==null?void 0:Q.itemLabel};
_.K.getDropdownItemValue=function(v){v=_.y(v,rYY);return(v==null?void 0:v.timeLimit)||(v==null?void 0:v.purchaseTarget)||(v==null?void 0:v.eligiblePurchaseType)};
_.K.updateFlowState=function(v){_.mb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:v}])};
_.K.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.K.updateGoalValue=function(v){this.goal=v.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.K.onTextValueChanged=function(v){this.goalDescription=v.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.K.updateTimerValue=function(v){this.timer=v.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.K.updateTierValue=function(v){this.tier=v.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.K.getButtonViewModel=function(v){v=(v==null?void 0:v.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var Q,V=_.y((Q=this.data)==null?void 0:Q.startGoalButton,_.pH);return Object.assign({},V,{state:v})};
_.hr.Object.defineProperties(Fq,{template:{configurable:!0,enumerable:!0,get:function(){return btI()}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"goal",void 0);_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"goalDescription",void 0);_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"timer",void 0);_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"tier",void 0);
_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"startButtonId",void 0);_.W([_.q(),_.X("design:type",Object)],Fq.prototype,"exampleButtonId",void 0);_.W([_.D7({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Fq);_.B(Fq,"yt-creator-goal-set-up-flow-view-model",function(){return btI()},{mode:0});var FLq;var KLs;var ith;var LLf=function(){return _.z.apply(this,arguments)||this};
_.f(LLf,_.z);_.W([_.q(),_.X("design:type",Object)],LLf.prototype,"data",void 0);_.W([_.D7({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],LLf);
_.B(LLf,"yt-survey-answer-card-renderer",function(){if(ith===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;KLs===void 0&&(KLs=document.createElement("template"));var E=KLs;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ith=v}v=ith;return v},{mode:2});var tPq;var ppI;var K3=function(){return _.z.apply(this,arguments)||this};
_.f(K3,_.z);_.K=K3.prototype;_.K.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.K.selectedItemChanged=function(v){_.mb(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[v.feedbackToken||""]}])};
_.K.surveyAnswerCardRendererClicked=function(v){if(v.target&&_.y(v.model.item,v7q)){var Q=v.target;v=_.y(v.model.item,v7q);v.onTapCommand?_.Qk(Q,[v.onTapCommand],Q):this.data.onTapCommand&&_.Qk(Q,[this.data.onTapCommand],Q);this.selectedItemChanged(v)}};
_.K.checkIsCancellationStyle=function(v){return v==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.K.updateSelectedItemFromBinding=function(v){this.selectedItem=v.detail.value};
K3.prototype.onSelectedItemChanged=K3.prototype.onSelectedItemChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],K3.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],K3.prototype,"selectedItem",void 0);_.W([_.q({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.X("design:type",Boolean)],K3.prototype,"isCancellationStyle",void 0);
_.W([_.ph("selectedItem"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],K3.prototype,"onSelectedItemChanged",null);_.W([_.D7({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],K3);
_.B(K3,"yt-survey-flow-step-renderer",function(){if(ppI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;tPq===void 0&&(tPq=document.createElement("template"));var E=tPq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ppI=v}v=ppI;return v},{mode:2});var i1=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return v};
_.f(i1,_.z);i1.prototype.handleSurveyFlowStepOptionChanged=function(v){this.ytdReduxBehavior.dispatch(_.U2({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:v}));_.mb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:v}}])};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],i1.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],i1.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],i1);
_.B(i1,"ytd-survey-flow-step-renderer",function(){if(FLq!==void 0)return FLq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FLq=v},{mode:1});_.dp5=_.x(function(v){var Q=v.data;var V=v.hideDivider;var E=v.isChannelInfoCard;v={};return _.P("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.P("div",{class:_.QZ("yt-profile-identity-info-view-model__frame",(v["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!Q().channelBanner},v))},_.P(e9j,{profileIdentityInfoData:Q}),_.P("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.P("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO})),_.P(Zts,{profileIdentityInfoData:Q})),_.P(_.h,{cond:function(){return Q().channelDescription},
then:function(b){var F={};return _.P("div",{class:_.QZ((F["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(E==null||!E())},F["yt-profile-identity-info-view-model__channel-description"]=function(){return!(E==null?0:E())},F))},b)}}),_.P(PI8,{profileIdentityInfoData:Q}),_.P(_.h,{cond:function(){return!(V==null?0:V())},
then:function(){return _.P("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ph");
_.dp5.idomCompat=!0;var PI8=_.x(function(v){var Q=v.profileIdentityInfoData;return _.P("div",{class:"yt-profile-identity-info-view-model__buttons"},_.P(_.xb,{each:function(){return Q().subscribeButton?[Q().subscribeButton,Q().channelAccess]:[Q().channelAccess]}},function(V){return _.P("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.P("div",{class:"yt-profile-identity-info-view-model--button"},_.P(_.Pw,{data:function(){return V}},{buttonViewModel:_.D6,
subscribeButtonViewModel:_.vI})))}))},"qh"),Zts=_.x(function(v){var Q=v.profileIdentityInfoData;
return _.P("div",{class:"yt-profile-identity-info-view-model__trio"},_.P("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.P(h9f,{profileIdentityInfoData:Q}),_.P(_.Pw,{data:function(){return Q().threeDotMenu}},{buttonViewModel:_.D6})),_.P(wp0,{profileIdentityInfoData:Q}))},"rh"),h9f=_.x(function(v){var Q=v.profileIdentityInfoData;
return _.P("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.P("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return Q().channelDisplayName}),_.P(_.h,{cond:function(){return Q().verifiedOrOacBadge},
then:function(V){return _.P("div",{class:"yt-profile-identity-info-view-model__badge"},_.P(_.gE,{data:function(){return{thumbnails:[{url:V().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"sh"),e9j=_.x(function(v){var Q=v.profileIdentityInfoData;
return _.P("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.P(_.Pw,{data:function(){var V=Q().channelBanner;if(V)return{imageBannerViewModel:{image:V.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(V){return _.P("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.P(_.Po,{data:V.data,
isPositionRelative:!0}))}}))},"th"),wp0=_.x(function(v){var Q=v.profileIdentityInfoData;
return _.P("div",{class:"yt-profile-identity-info-view-model__metadata"},_.P("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.P("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return Q().channelHandle}),_.P(_.h,{cond:function(){return Q().channelPronouns&&Q().channelHandle},
then:function(){return _.P("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.P("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return Q().channelPronouns})),_.P("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.P("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return Q().leftOfBulletInfo}),_.P(_.h,{cond:function(){return Q().leftOfBulletInfo&&Q().rightOfBulletInfo},
then:function(){return _.P("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.P("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return Q().rightOfBulletInfo})))},"uh");var Ays;var L3=function(){return _.z.apply(this,arguments)||this};
_.f(L3,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],L3.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],L3);
_.B(L3,"ytd-channel-history-renderer",function(){if(Ays!==void 0)return Ays;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Ays=v},{mode:1});var k2d;var TD0=function(){return _.z.apply(this,arguments)||this};
_.f(TD0,_.z);_.W([_.q(),_.X("design:type",Object)],TD0.prototype,"data",void 0);_.W([_.J({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],TD0);
_.B(TD0,"ytd-feature-enablement-info-renderer",function(){if(k2d!==void 0)return k2d;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return k2d=v},{mode:1});var Y2I;var yyh;var tl=function(){var v=_.z.apply(this,arguments)||this;v.textBoxMaxLength=_.Y("enable_tvod_campaign_code_integration")?15:12;return v};
_.f(tl,_.z);_.K=tl.prototype;_.K.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.K.onSubmit=function(){var v=this.data.serviceEndpoint,Q=_.y(v,_.gW);Q&&v&&(Q.couponCode=this.userInput,_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}}))};
_.K.validate=function(){var v=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=v&&!this.data.errorMessage;this.showErrorMessage=v&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.Y("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.K.computeStyle=function(v){return v};
_.K.computeShowValidationBelowInput=function(v){return v!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.K.updateUserInputFromBinding=function(v){this.userInput=v.currentTarget.value};
_.K.updateShowErrorMessageFromBinding=function(v){this.showErrorMessage=v.detail.value};
_.hr.Object.defineProperties(tl.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
tl.prototype.dataChanged=tl.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tl.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],tl.prototype,"userInput",void 0);_.W([_.q(),_.X("design:type",Boolean)],tl.prototype,"disableApplyButton",void 0);_.W([_.q(),_.X("design:type",Boolean)],tl.prototype,"hideApplyButton",void 0);
_.W([_.q(),_.X("design:type",Boolean)],tl.prototype,"hideErrorMessage",void 0);_.W([_.q(),_.X("design:type",Boolean)],tl.prototype,"showTick",void 0);_.W([_.q(),_.X("design:type",Boolean)],tl.prototype,"showErrorMessage",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],tl.prototype,"couponStyle",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.X("design:type",Boolean)],tl.prototype,"showValidationBelowInput",void 0);_.W([_.q(),_.X("design:type",Object)],tl.prototype,"textBoxMaxLength",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tl.prototype,"dataChanged",null);
_.W([_.O("showTick","showErrorMessage","userInput"),_.X("design:type",String),_.X("design:paramtypes",[])],tl.prototype,"validationState",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],tl);
_.B(tl,"ytd-ypc-coupon-renderer",function(){if(yyh!==void 0)return yyh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return yyh=v},{mode:1});var p3=function(){return _.z.apply(this,arguments)||this};
_.f(p3,_.z);p3.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"}}}};
p3.prototype.computeStyle=function(v){return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],p3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],p3.prototype,"buttonStyle",void 0);_.W([_.J({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],p3);
_.B(p3,"ytd-flow-bottom-bar-renderer",function(){if(Y2I!==void 0)return Y2I;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Y2I=v},{mode:1});var cys;var fGI;var G20;var ef=function(){return _.z.apply(this,arguments)||this};
_.f(ef,_.z);ef.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ef.prototype.focus=function(v){this.title&&_.iS(this.title,v)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ef.prototype,"data",void 0);_.W([_.Z7("#title"),_.X("design:type",HTMLElement)],ef.prototype,"title",void 0);_.W([_.J({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],ef);
_.B(ef,"ytd-flow-top-bar-renderer",function(){if(G20!==void 0)return G20;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return G20=v},{mode:1});var CIs;var MPd;var Ot$;var ZN=function(){return _.z.apply(this,arguments)||this};
_.f(ZN,_.z);ZN.prototype.freeTextValueChanged=function(){_.mb(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
ZN.prototype.updateFreeTextValueFromBinding=function(v){this.freeTextValue=v.detail.value};
_.hr.Object.defineProperties(ZN.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(Q=(v=this.data)==null?void 0:v.responseMaxLength)!=null?Q:500,E;return((E=this.freeTextValue)!=null?E:"").length>=V?"maxed-out":""}}});
ZN.prototype.freeTextValueChanged=ZN.prototype.freeTextValueChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ZN.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],ZN.prototype,"freeTextValue",void 0);_.W([_.Z7("#user-input"),_.X("design:type",HTMLTextAreaElement)],ZN.prototype,"input",void 0);
_.W([_.O("freeTextValue"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZN.prototype,"characterLimitClass",null);_.W([_.ph("freeTextValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZN.prototype,"freeTextValueChanged",null);_.W([_.D7({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],ZN);
_.B(ZN,"yt-free-text-input-flow-step-renderer",function(){if(Ot$===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;MPd===void 0&&(MPd=document.createElement("template"));var E=MPd;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Ot$=v}v=Ot$;return v},{mode:2});var Ph=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return v};
_.f(Ph,_.z);Ph.prototype.handleFreeTextFlowStepInputChanged=function(v){_.mb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:v}}])};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Ph.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ph.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Ph);
_.B(Ph,"ytd-free-text-input-flow-step-renderer",function(){if(CIs!==void 0)return CIs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return CIs=v},{mode:1});var Dph;var R9j;var n7I=function(){return _.z.apply(this,arguments)||this};
_.f(n7I,_.z);_.W([_.q(),_.X("design:type",Object)],n7I.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],n7I);
_.B(n7I,"ytd-metadata-line-renderer",function(){if(R9j!==void 0)return R9j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return R9j=v},{mode:1});var da=function(){return _.z.apply(this,arguments)||this};
_.f(da,_.z);da.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],da.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],da.prototype,"isMasthead",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],da);
_.B(da,"ytd-media-product-renderer",function(){if(Dph!==void 0)return Dph;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Dph=v},{mode:1});var lGd;var hl=function(){return _.z.apply(this,arguments)||this};
_.f(hl,_.z);hl.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
hl.prototype.onBillboardImageLoaded=function(){_.Hj(this.hostElement,"yt-refit")};
hl.prototype.onBillboardImageLoaded=hl.prototype.onBillboardImageLoaded;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hl.prototype,"data",void 0);_.W([_.Z7("#billboardImage"),_.X("design:type",Object)],hl.prototype,"billboardImage",void 0);_.W([_.tM("yt-img-shadow-loaded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hl.prototype,"onBillboardImageLoaded",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],hl);
_.B(hl,"ytd-billboard-masthead-renderer",function(){if(lGd!==void 0)return lGd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return lGd=v},{mode:1});var q28;var wa=function(){var v=_.z.apply(this,arguments)||this;v.smallSize=!1;return v};
_.f(wa,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],wa.prototype,"ytComponentBehaviorType",void 0);_.W([_.q(),_.X("design:type",Object)],wa.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],wa.prototype,"smallSize",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],wa);
_.B(wa,"ytd-bullet-formatted-string",function(){if(q28!==void 0)return q28;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return q28=v},{mode:1});var S2h;var Al=function(){return _.z.apply(this,arguments)||this};
_.f(Al,_.z);Al.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Al.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Al);
_.B(Al,"ytd-offer-detail-renderer",function(){if(S2h!==void 0)return S2h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return S2h=v},{mode:1});var z9n;var ko=function(){return _.z.apply(this,arguments)||this};
_.f(ko,_.z);ko.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ko.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],ko);
_.B(ko,"ytd-offer-detail-step-renderer",function(){if(z9n!==void 0)return z9n;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return z9n=v},{mode:1});var Jy$;var TR=function(){var v=_.z.apply(this,arguments)||this;v.isInOfferModule=!1;return v};
_.f(TR,_.z);_.K=TR.prototype;_.K.computeHasEndpoint=function(){var v;return!((v=this.data)==null||!v.onClickCommand)};
_.K.dataChanged=function(){var v;if((v=this.data)==null?0:v.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.K.detached=function(){var v;if((v=this.data)==null?0:v.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.K.handleClickEvent=function(){var v;if((v=this.data)==null?0:v.onClickCommand){var Q;this.componentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.onClickCommand)}};
_.K.onContentKeyDown=function(v){v.key==="Enter"?this.handleClickEvent(v):v.key===" "&&v.preventDefault()};
_.K.onContentKeyUp=function(v){v.key===" "&&this.handleClickEvent(v)};
TR.prototype.dataChanged=TR.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],TR.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TR.prototype,"data",void 0);_.W([_.q({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],TR.prototype,"hasEndpoint",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],TR.prototype,"isInOfferModule",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],TR.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],TR);
_.B(TR,"ytd-channel-masthead-renderer",function(){if(Jy$!==void 0)return Jy$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Jy$=v},{mode:1});var NDI;var Yo=function(){var v=_.z.apply(this,arguments)||this;v.thumbnailObjectFit="CONTAIN";v.thumbnailObjectPosition="LEFT";v.isExpanded=!1;return v};
_.f(Yo,_.z);_.K=Yo.prototype;_.K.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.K.dataChanged=function(){this.resetStates()};
_.K.computeisTapOnOfferInfoContainerEnabled=function(){var v;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.K.onExpandBtnClick=function(){var v,Q=_.y((v=this.data)==null?void 0:v.showMoreButtonRenderer,Q$f);Q&&_.x_(_.tR(),Q.trackingParams);this.isExpanded=!this.isExpanded};
_.K.onOfferInfoClick=function(v){this.isTapOnOfferInfoContainerEnabled&&(_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.W_(_.uK(v)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.K.onBottomBarClick=function(){this.executeTapCommand()};
_.K.executeTapCommand=function(){var v,Q=(v=this.data)==null?void 0:v.tapCommand;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.K.resetStates=function(){this.isExpanded=!1};
_.hr.Object.defineProperties(Yo.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var v=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),Q,V,E;return((Q=this.data)==null?void 0:Q.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&v&&!!((V=this.data)==null?0:(E=V.benefits)==null?0:E.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((Q=_.y((v=this.data)==null?void 0:v.showMoreButtonRenderer,Q$f))==null?void 0:Q.showMoreButtonTitle)||((V=this.data)==null?void 0:V.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((Q=_.y((v=this.data)==null?void 0:v.showMoreButtonRenderer,Q$f))==null?void 0:Q.showLessButtonTitle)||((V=this.data)==null?void 0:V.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var v;return(v=this.showLessButtonTitle)!=null?v:""}var Q;return(Q=this.showMoreButtonTitle)!=null?Q:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((Q=this.data)==null?0:Q.footerTitle)||((V=this.data)==null?0:V.footerSubtitle))}}});
Yo.prototype.dataChanged=Yo.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Yo.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",String)],Yo.prototype,"thumbnailObjectFit",void 0);
_.W([_.q(),_.X("design:type",String)],Yo.prototype,"thumbnailObjectPosition",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.X("design:type",Boolean)],Yo.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.W([_.q(),_.X("design:type",Object)],Yo.prototype,"isExpanded",void 0);_.W([_.q(),_.X("design:type",Object)],Yo.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.footerIcon)"}),_.X("design:type",String)],Yo.prototype,"icon",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yo.prototype,"dataChanged",null);_.W([_.O("data.thumbnail"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Yo.prototype,"hasThumbnail",null);_.W([_.O("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Yo.prototype,"enableExpandButton",null);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Yo.prototype,"enableOfferContentIcon",null);_.W([_.O("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Yo.prototype,"showMoreButtonTitle",null);_.W([_.O("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Yo.prototype,"showLessButtonTitle",null);
_.W([_.O("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.X("design:type",String),_.X("design:paramtypes",[])],Yo.prototype,"expandedBtnText",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Yo.prototype,"enableBottomBar",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Yo);
_.B(Yo,"ytd-offer-card-renderer",function(){if(NDI!==void 0)return NDI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return NDI=v},{mode:1});var xpd;var y$=function(){return _.z.apply(this,arguments)||this};
_.f(y$,_.z);y$.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"}}}};
y$.prototype.onClick=function(v){if(!_.j$(v.composedPath()||[],this.hostElement,["A".toString()])){var Q,V;if((v=(V=_.y((Q=this.data)==null?void 0:Q.actionButton,_.KH))==null?void 0:V.command)&&!this.ytComponentBehavior.resolveCommand(v)){var E;(E=_.tR())==null||E.clickCommand(v);_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})}}};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],y$.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],y$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],y$.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],y$);
_.B(y$,"ytd-offer-content-renderer",function(){if(xpd!==void 0)return xpd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return xpd=v},{mode:1});var BD5;var ch=function(){return _.z.apply(this,arguments)||this};
_.f(ch,_.z);ch.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.hr.Object.defineProperties(ch.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.title)||!((Q=this.data)==null||!Q.description)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ch.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],ch.prototype,"hasHeaderData",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],ch);
_.B(ch,"ytd-offer-section-renderer",function(){if(BD5!==void 0)return BD5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return BD5=v},{mode:1});var g7h;var f3=function(){return _.z.apply(this,arguments)||this};
_.f(f3,_.z);
f3.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],f3.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],f3);
_.B(f3,"ytd-offer-selection-step-renderer",function(){if(g7h!==void 0)return g7h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return g7h=v},{mode:1});var s$f;var GR=function(){return _.z.apply(this,arguments)||this};
_.f(GR,_.z);GR.prototype.computeStyle=function(v){return v};
GR.prototype.computeImageWidth=function(v){return v==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.W([_.q({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.X("design:type",String)],GR.prototype,"containerStyle",void 0);_.W([_.q({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.X("design:type",String)],GR.prototype,"imageWidth",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GR.prototype,"data",void 0);
_.W([_.J({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],GR);
_.B(GR,"ytd-confirmation-masthead-renderer",function(){if(s$f!==void 0)return s$f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return s$f=v},{mode:1});var u$Y;var C3=function(){return _.z.apply(this,arguments)||this};
_.f(C3,_.z);C3.prototype.computeStyle=function(v){return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],C3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.X("design:type",String)],C3.prototype,"containerStyle",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],C3);
_.B(C3,"ytd-purchase-complete-detail-renderer",function(){if(u$Y!==void 0)return u$Y;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return u$Y=v},{mode:1});var j$h;var M9=function(){var v=_.z.apply(this,arguments)||this;v.scriptsAppended=!1;return v};
_.f(M9,_.z);M9.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"}}}};
M9.prototype.onDataChanged=function(){var v=this.get("data.gtmId");v&&(_.WO(v,_.r7("GL","")),this.setupConversionTracking())};
M9.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var v=document.createElement("noscript");v.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(v);this.scriptsAppended=!0}};
M9.prototype.onDataChanged=M9.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],M9.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],M9.prototype,"scriptsAppended",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M9.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],M9);
_.B(M9,"ytd-purchase-complete-step-renderer",function(){if(j$h!==void 0)return j$h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return j$h=v},{mode:1});var WLY;var ON=function(){return _.z.apply(this,arguments)||this};
_.f(ON,_.z);ON.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ON.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],ON);
_.B(ON,"ytd-ypc-transaction-error-message-renderer",function(){if(WLY!==void 0)return WLY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return WLY=v},{mode:1});var o7n;var Xpn;var DN=function(){var v=_.z.apply(this,arguments)||this;v.handlePhoneVerificationSuccess=function(Q){if(v.isValidPhoneVerificationCompletionMessageEvent(Q)){var V;((V=v.data)==null?0:V.nextStepCommand)&&v.ytComponentBehavior.resolveCommand(v.data.nextStepCommand)}};
return v};
_.f(DN,_.z);DN.prototype.isValidPhoneVerificationCompletionMessageEvent=function(v){if(v.data!=="yt-phone-verification-complete")return!1;v=_.pi(v.origin);return v!==null&&v.includes("youtube.com")};
DN.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
DN.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DN.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DN.prototype,"data",void 0);_.W([_.D7({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],DN);
_.B(DN,"yt-feature-enablement-soft-entry-renderer",function(){if(Xpn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;o7n===void 0&&(o7n=document.createElement("template"));var E=o7n;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Xpn=v}v=Xpn;return v},{mode:1});var aG0;var ry8;var $ph;var IGd;var Htq=function(){return _.z.apply(this,arguments)||this};
_.f(Htq,_.z);_.W([_.q(),_.X("design:type",Object)],Htq.prototype,"data",void 0);_.W([_.D7({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Htq);
_.B(Htq,"yt-benefits-item-renderer",function(){if(IGd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;$ph===void 0&&($ph=document.createElement("template"));var E=$ph;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);IGd=v}v=IGd;return v},{mode:2});var mp5;var Ups;var RG=function(){return _.z.apply(this,arguments)||this};
_.f(RG,_.z);RG.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
RG.prototype.computeisWithoutPadding=function(){var v;return((v=this.data)==null?void 0:v.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],RG.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.X("design:type",Boolean)],RG.prototype,"isWithoutPadding",void 0);_.W([_.D7({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],RG);
_.B(RG,"yt-benefits-section-renderer",function(){if(Ups===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;mp5===void 0&&(mp5=document.createElement("template"));var E=mp5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Ups=v}v=Ups;return v},{mode:2});var n3=function(){return _.z.apply(this,arguments)||this};
_.f(n3,_.z);n3.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
n3.prototype.computeisUsingLargeWidth=function(){var v;return((v=this.data)==null?void 0:v.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],n3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.X("design:type",Boolean)],n3.prototype,"isUsingLargeWidth",void 0);_.W([_.D7({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],n3);
_.B(n3,"yt-benefits-flow-step-renderer",function(){if(ry8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;aG0===void 0&&(aG0=document.createElement("template"));var E=aG0;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ry8=v}v=ry8;return v},{mode:2});var vzh;var QFd;var l1=function(){return _.z.apply(this,arguments)||this};
_.f(l1,_.z);l1.prototype.checkIsUsingLargeWidth=function(){var v;return((v=this.data)==null?void 0:v.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.W([_.q(),_.X("design:type",Object)],l1.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.W([_.q({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.X("design:type",Boolean)],l1.prototype,"isUsingLargeWidth",void 0);_.W([_.D7({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],l1);
_.B(l1,"yt-confirmation-flow-step-renderer",function(){if(QFd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;vzh===void 0&&(vzh=document.createElement("template"));var E=vzh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);QFd=v}v=QFd;return v},{mode:2});var V0q;var Ez7;var b7$=function(){return _.z.apply(this,arguments)||this};
_.f(b7$,_.z);_.W([_.q(),_.X("design:type",Object)],b7$.prototype,"data",void 0);_.W([_.D7({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],b7$);
_.B(b7$,"yt-info-flow-step-renderer",function(){if(Ez7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;V0q===void 0&&(V0q=document.createElement("template"));var E=V0q;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Ez7=v}v=Ez7;return v},{mode:2});var F57;var K5q;var i78=function(){return _.z.apply(this,arguments)||this};
_.f(i78,_.z);_.W([_.q(),_.X("design:type",Object)],i78.prototype,"data",void 0);_.W([_.D7({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],i78);
_.B(i78,"yt-info-list-flow-step-renderer",function(){if(K5q===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;F57===void 0&&(F57=document.createElement("template"));var E=F57;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);K5q=v}v=K5q;return v},{mode:2});var L5I=_.x(function(v){var Q=v.data;return _.P("styled-text-view-model",{class:_.QZ("ytStyledTextViewModelHost",function(){return QTn(Q().fontAttributes)},function(){return vym(Q().color)})},_.P(_.tD,{text:function(){return Q().text},
ariaLabel:function(){var V,E,b;return(b=(V=Q().accessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label)!=null?b:""}}))},"vh");
L5I.idomCompat=!0;var t0I=_.x(function(v){var Q=function(){var b,F,t,p;return(p=(t=(b=v.alt)==null?void 0:b.call(v))!=null?t:(F=v.data().accessibilityData)==null?void 0:F.label)!=null?p:""},V=function(){return v.data().imageWidth},E=function(){return v.data().imageHeight};
return _.P("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.P(_.h,{cond:function(){var b=v.data();if(b){var F,t,p;var Z=((F=_.ht().resolve(_.d$(_.JR)))==null?0:F())?(t=b.imageDark)!=null?t:b.imageLight:(p=b.imageLight)!=null?p:b.imageDark}else Z=void 0;return Z},
then:function(b){return _.P(_.gE,Object.assign({},v,{data:b,alt:Q,targetWidth:V,targetHeight:E,preserveHeight:!0,preserveWidth:!0}))}}))},"wh");
t0I.idomCompat=!0;var q9=_.x(function(v){var Q=v.data;v=_.Wn(function(){return Q().slots},[]);
var V=_.Wn(function(){return Q().layoutProperties},{}),E=_.ht().resolve(_.xD);
return _.P("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:$Ff(V,E)},_.P(_.xb,{each:v,keyBy:"INDEX"},function(b){return _.P("div",{class:"ytContainerLayoutViewModelSlot",style:$Ff(function(){return b().layoutProperties},E)},_.P(_.Pw,{data:function(){return b().contents}},{containerLayoutViewModel:q9,
badgeViewModel:_.YO,buttonViewModel:_.D6,styledTextViewModel:L5I,contentPreviewImageViewModel:function(F){return _.P(_.RV,{data:F.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(F){return _.P(t0I,{data:F.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"xh");
q9.idomCompat=!0;var pBh=_.x(function(v){var Q=v.data;var V=v.stateFns;var E=function(){var d=Q(),w=d.productId;return!(!d.clearGroupId&&!w)},b=function(){var d=Q(),w=d.clearGroupId;
return(d=d.productId)?V().isProductSelected(d):w?V().getSelectedProductByGroupId(w)==null:!1},F=function(d){var w=Q(),A=w.clearGroupId;
if(w=w.productId)V().onProductSelected(w),d==null||d.forEach(function(k){_.nx(k)});
else if(A)V().onClearGroupSelected(A)},t=function(){var d=Q(),w=d.clearGroupId;
if(d=d.productId){var A;return"group:"+(((A=V().getProductById(d))==null?void 0:A.groupId)||"")}return w?"group:"+w:""},p=_.Wn(function(){return Q().header},[]),Z=_.Wn(function(){return Q().body},[]);
return _.P("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.P(_.h,{cond:function(){return p().length>0||E()},
then:function(){return _.P("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.P("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.P(_.Pw,{data:p},{containerLayoutViewModel:function(d){return _.P("div",{class:"ytPdpCardSectionViewModelContentItem"},_.P(q9,{data:d.data}))},
styledTextViewModel:function(d){return _.P("div",{class:"ytPdpCardSectionViewModelContentItem"},_.P(L5I,{data:d.data}))}})),_.P(_.h,{cond:E,
then:function(){return _.P("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.P(_.L9,{checked:b,name:t,onChange:function(){F(Q().onSelect)}}))}}))}}),_.P(_.h,{cond:function(){return Z().length>0},
then:function(){return _.P("div",null,_.P(_.Pw,{data:Z},{containerLayoutViewModel:function(d){return _.P("div",{class:"ytPdpCardSectionViewModelContentItem"},_.P(q9,{data:d.data}))}}))}}))},"yh");
pBh.idomCompat=!0;var e6$=_.x(function(v){var Q=v.data;var V=v.stateFns;return _.P("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.P(_.h,{cond:function(){return Q().banner},
then:function(E){return _.P("div",{class:"ytPdpCardViewModelBanner"},_.P(_.tD,{text:E}))}}),_.P(_.Pw,{data:function(){return Q().sections}},{pdpCardSectionViewModel:function(E){E=E.data;
var b={};return _.P("div",{class:_.QZ("ytPdpCardViewModelSectionContainer",(b.ytPdpCardViewModelShowDividers=function(){return Q().showDividers},b))},_.P(pBh,{data:E,
stateFns:V}))}}))},"zh");
e6$.idomCompat=!0;var Z7q=_.x(function(v){var Q=v.data;var V=v.isOverlay;v={};return _.P("pdp-masthead-view-model",{class:_.QZ("ytPdpMastheadViewModelHost",(v.ytPdpMastheadViewModelIsOverlay=V,v))},_.P(_.Pw,{data:function(){return Q().image}},{contentPreviewImageViewModel:_.RV,
themedImageViewModel:function(E){return _.P(t0I,{data:E.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.P(_.h,{cond:function(){return Q().title},
then:function(E){return _.P("h1",{class:"ytPdpMastheadViewModelHeading"},_.P(_.tD,{text:E,isOverlay:V}))}}),_.P(_.xb,{each:function(){var E;
return(E=Q().finePrint)!=null?E:[]}},function(E){return _.P("div",{class:"ytPdpMastheadViewModelFinePrint"},_.P(_.tD,{text:E,
isOverlay:V}))}))},"Ah");
Z7q.idomCompat=!0;var P30=_.x(function(v){var Q=v.data;var V=v.stateFns;var E=function(){return"pdp-pricing-group-selector-"+Q().pricingGroupAttributeIds},b=_.Wn(function(){return Q().pricingGroupSelectorSectionHeader});
return _.P("pdp-pricing-group-selector-view-model",null,_.P(_.h,{cond:function(){return!!b()},
then:function(){return _.P(_.Pw,{data:b},{sectionHeaderViewModel:function(F){F=F.data;var t={};return _.P("div",{class:_.QZ("ytPdpPricingGroupSelectorViewModelSectionHeader",(t.ytPdpPricingGroupSelectorViewModelFullBleed=!0,t.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,t))},_.P(_.sT,{data:F}))}})}}),_.P("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.P(_.xb,{each:function(){var F=V().getSelectedProductByGroupId(Q().groupId);
if(!F)return _.$h(Error("Zj`"+Q().groupId)),[];var t,p=(t=Q().pricingGroupAttributeIds)!=null?t:[],Z;if((Z=F.pricingGroups)==null||!Z.length||!p.length)return[];t=F.pricingGroups.filter(function(k){return p.length?k.pricingGroupAttributes.every(function(T){return p.includes(T)}):!1});
F=[];if(p.length>0){t=[].concat(_.ui(t));Z=_.L(p);for(var d=Z.next(),w={};!d.done;w={targetAttrId:void 0},d=Z.next())w.targetAttrId=d.value,d=t.findIndex(function(k){return function(T){return T.pricingGroupAttributes.includes(k.targetAttrId)}}(w)),d!==-1&&(F.push(t[d]),t.splice(d,1))}var A=V().getSelectedPricingGroupAttributesByGroupId(Q().groupId);
return F.map(function(k){var T=!1;A&&k.pricingGroupAttributes&&(T=mz(k.pricingGroupAttributes,A));return{pricingGroup:k,isSelected:T}})},
keyBy:function(F){return F.pricingGroup.pricingGroupId}},function(F){return _.P("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.P("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.P(_.Pw,{data:function(){return F().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:q9})),_.P("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.P(_.L9,{checked:function(){return F().isSelected},
name:E,onClick:function(){var t=F().pricingGroup;V().onPricingGroupSelected(t.pricingGroupId);if(t=_.MQ(t.onSelectPricingGroup)){var p;(p=_.ht().resolve(_.At))==null||p.resolveCommand(t)}}})))})))},"Bh");
P30.idomCompat=!0;var dSj=_.x(function(v){var Q=v.data;var V=v.stateFns;var E=function(){var t=V().getSelectedPricingOptions().map(function(d){return d.pricingOptionId}),p=V().getSelectedProductByGroupId(Q().groupId);
if(!p)return _.$h(Error("$j`"+Q().groupId)),[];var Z=V().getSelectedPricingGroupAttributesByGroupId(Q().groupId);return Fi5(p.pricingOptions,Z,t)},b=_.Wn(function(){return Q().pricingOptionSelectorSectionHeader}),F=function(){return E().length>1};
return _.P("pdp-pricing-option-selector-view-model",null,_.P(_.h,{cond:function(){return!!b()&&F()},
then:function(){return _.P(_.Pw,{data:b},{sectionHeaderViewModel:function(t){t=t.data;var p={};return _.P("div",{class:_.QZ("ytPdpPricingOptionSelectorViewModelSectionHeader",(p.ytPdpPricingOptionSelectorViewModelFullBleed=!0,p.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,p))},_.P(_.sT,{data:t}))}})}}),_.P(_.h,{cond:F,
then:function(){return _.P("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.P(_.xb,{each:E,keyBy:"INDEX"},function(t){return _.P("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.P("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.P(_.Pw,{data:function(){return t().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:q9})),_.P("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.P(_.L9,{checked:function(){return t().isSelected},
onClick:function(){V().onPricingOptionSelected(t().pricingOption.pricingOptionId);var p=t().pricingOption.onSelectPricingOption;if(p=_.MQ(p)){var Z;(Z=_.ht().resolve(_.At))==null||Z.resolveCommand(p)}}})))}))}}))},"Ch");
dSj.idomCompat=!0;var h6h=_.x(function(v){var Q=v.data;var V=v.stateFns;return _.P("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.P(_.Pw,{data:function(){var E,b;return(b=(E=V().getSelectedPricingOptions()[0])==null?void 0:E.primaryButton)!=null?b:Q().emptyStateButton}},{buttonViewModel:_.D6}))},"Dh");
h6h.idomCompat=!0;var wBh=_.x(function(v){var Q=v.stateFns;return _.P("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.P(_.Pw,{data:function(){return Q().getSelectedPricingOptions().flatMap(function(V){return V.summaryLines}).filter(function(V){return!!V})}},{containerLayoutViewModel:function(V){return _.P("div",{class:"ytPdpSummaryViewModelLineItem"},_.P(q9,{data:V.data}))}}))},"Eh");
wBh.idomCompat=!0;var A4h=_.x(function(v){function Q(c){var C=t();_.jT(_.Gz("pdpStateEntity",C,{key:C,selectedPricingOptions:c}))}
var V=v.data;var E=v.internalScrolling;var b=v.stateFnsForTesting;var F=_.Wn(function(){return V().allProducts},[]),t=_.Wn(function(){return V().pdpStateEntityKey},""),p=_.p4(Ki5,t),Z=_.Rr(function(){_.or(!0);
var c;return(c=b==null?void 0:b())!=null?c:Liq(p,F,Q)},void 0,"Pzdsic"),d=_.Wn(function(){return V().body},[]),w=_.Wn(function(){return V().columnBreakHints},[]),A=function(){return V().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},k=function(){return A()||V().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},T=_.Rr(function(){var c=_.SC(V().background),C;
if(c==null?0:(C=c.sources)==null?0:C.length){var R=R===void 0?!0:R;c=_.LZ0(void 0,c.sources,void 0,R,R?1E3:void 0,R?void 0:1E3)}else c=null;return c},void 0,"RDPOae");
_.jg(function(){var c=V().onStartCommand;if(c&&(c=_.MQ(c))){var C;(C=_.ht().resolve(_.At))==null||C.resolveCommand(c)}});
v={};return _.P("pdp-view-model",{class:_.QZ("ytPdpViewModelHost",(v.ytPdpViewModelHasBackground=function(){return k()||!!T()},v.ytPdpViewModelHasDarkBackground=k,v.ytPdpViewModelHasScrim=A,v.ytPdpViewModelInternalScrolling=E,v)),
style:_.iP({"--pdp-view-model-background":function(){return T()?"url("+T()+")":void 0}})},_.P("div",{class:"ytPdpViewModelColumnContainer"},_.P(_.xb,{each:function(){return tu0(d(),w())},
keyBy:"INDEX"},function(c){return _.P("div",{class:"ytPdpViewModelColumn"},_.P(_.Pw,{data:c},{containerLayoutViewModel:function(C){return _.P(Sf,null,_.P(q9,{data:C.data}))},
dividerViewModel:function(C){return _.P(Sf,{fullBleed:!0},_.P(_.EeS,{data:C.data}))},
pdpCardViewModel:function(C){return _.P(Sf,null,_.P(e6$,{data:C.data,stateFns:Z}))},
pdpMastheadViewModel:function(C){return _.P(Sf,null,_.P(Z7q,{data:C.data,isOverlay:k}))},
pdpPricingGroupSelectorViewModel:function(C){return _.P(Sf,null,_.P(P30,{data:C.data,stateFns:Z}))},
pdpPricingOptionSelectorViewModel:function(C){return _.P(Sf,null,_.P(dSj,{data:C.data,stateFns:Z}))},
pdpPrimaryButtonViewModel:function(C){return _.P(Sf,null,_.P(h6h,{data:C.data,stateFns:Z}))},
pdpSummaryViewModel:function(C){return _.P(Sf,null,_.P(wBh,{data:C.data,stateFns:Z}))},
sectionHeaderViewModel:function(C){return _.P(Sf,{fullBleed:!0,noVerticalPadding:!0},_.P(_.sT,{data:C.data}))}}))})))},"Fh");
A4h.idomCompat=!0;var Sf=_.x(function(v){var Q={};return _.P("div",{class:_.QZ("ytPdpViewModelItem",(Q.ytPdpViewModelFullBleed=v.fullBleed,Q.ytPdpViewModelNoVerticalPadding=v.noVerticalPadding,Q))},v.children)},"Gh");_.ad(A4h,"pdp-view-model",{props:{data:_.pJ,stateFnsForTesting:_.Wg,internalScrolling:_.Wg}});var kO$=_.x(function(v){var Q=v.data;var V=v.className;var E=_.p4(_.uA,function(){return Q().flowStateEntityKey});
return _.P("ytm-premium-purchase-button-renderer",{class:_.QZ("ytPremiumPurchaseButtonRendererHost",V)},_.P(_.Pw,{data:function(){var b;return(b=_.y(E(),en7))==null?void 0:b.primaryButtonOverride}},{buttonRenderer:function(b){return _.P(_.T$,{data:b.data,
className:V})},
buttonViewModel:function(b){return _.P(_.D6,{data:b.data,className:V})}}))},"Hh");
kO$.idomCompat=!0;var T8n=_.x(function(v){var Q=v.data;v=v.className;var V=function(){return pE8(Q().style)},E=_.QZ("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V),b=_.QZ("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V);
return _.P("yt-flow-bottom-bar-renderer",{class:_.QZ("yt-flow-bottom-bar-renderer",v,V)},_.P(_.Pw,{data:function(){return Q().secondaryButton}},{buttonRenderer:function(F){return _.P(_.T$,{data:F.data,
className:b})},
buttonViewModel:function(F){return _.P(_.D6,{data:F.data,className:b})},
premiumPurchaseButtonRenderer:function(F){return _.P(kO$,{data:F.data,className:b})}}),_.P(_.Pw,{data:function(){return Q().primaryButton}},{buttonRenderer:function(F){return _.P(_.T$,{data:F.data,
className:E})},
buttonViewModel:function(F){return _.P(_.D6,{data:F.data,className:E})},
premiumPurchaseButtonRenderer:function(F){return _.P(kO$,{data:F.data,className:E})}}))},"Ih");
T8n.idomCompat=!0;_.ad(T8n,"yt-flow-bottom-bar-renderer",{props:{data:_.pJ,className:_.pJ}});var YxY=_.x(function(v){var Q=_.QZ(v.className,"ytOfferSummaryRendererHost");return _.P("yt-offer-summary-renderer",{class:Q},_.P("div",{class:"ytOfferSummaryRendererTextContainer"},_.P("div",{class:"ytOfferSummaryRendererEyebrowText"},_.P(_.tD,{text:function(){return v.data().eyebrowText}})),_.P("div",{class:"ytOfferSummaryRendererTitle"},_.P(_.tD,{text:function(){return v.data().title}})),_.P("div",{class:"ytOfferSummaryRendererSubtitle"},_.P(_.tD,{text:function(){return v.data().subtitle}})),_.P("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.P(_.xb,{each:function(){var V;
return(V=v.data().featureListData)!=null?V:[]}},function(V){var E;
return _.P("div",{class:"ytOfferSummaryRendererFeatureList"},_.P(_.L_,{icon:(E=V.icon)==null?void 0:E.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"}}}),_.P("div",{class:"ytOfferSummaryRendererFeatureListText"},_.P(_.tD,{text:V.text,
className:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.P("div",{class:"ytOfferSummaryRendererDescription"},_.P(_.tD,{text:function(){return v.data().description}}))))},"Jh");_.ad(_.x(function(v){var Q={};Q=_.QZ("ytOfferSummaryFlowStepRendererHost",(Q.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=v.shouldDisableHeaderTopMargin,Q));return _.P("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:Q},_.P("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.P("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.P(_.tD,{text:function(){return v.data().header}})),_.P("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.P(_.tD,{text:function(){return v.data().subtitle}}))),_.P("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.P(_.Pw,{data:function(){return v.data().offerSummary}},{offerSummaryRenderer:function(V){return _.P(YxY,{data:V.data,
className:v.flowClassName})}})))},"Kh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Wg,
flowClassName:_.Wg,flowStateEntityKey:_.Wg,shouldDisableHeaderTopMargin:_.Wg}});var y4f=_.x(function(v){var Q=v.data;var V=v.className;var E=v.flowStateEntityKey;var b=v.selectionStepStyle;v=_.EP(function(Z){var d=Q(),w=E==null?void 0:E();Z.target&&(Z.stopPropagation(),Z=w||"",w=_.uA(_.uf().getState(),Z),d=Object.assign({},w,{premiumPurchaseFlowState:{selectedOptionId:d.optionId,primaryButtonOverride:d.primaryButtonOverride}}),_.uf().dispatch(_.dW("flowStateEntity",Z,d)));return!1});
var F=function(){return(E==null?void 0:E())||""},t=_.p4(_.uA,F);
_.jg(function(){var Z=Q(),d=F(),w=t();Z.defaultSelected&&d!==""&&Z.primaryButtonOverride&&Z2d(Z.optionId||"",d,Z.primaryButtonOverride,w)});
var p={};return _.P("ytm-option-item-renderer",{"on:click":v,class:_.QZ(V,"ytm-option-item-renderer",(p["ytm-option-item-renderer--lp2-style"]=function(){return(b==null?void 0:b())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},p))},_.P("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.P("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var Z=Q(),d=F(),w=t();w=_.y(w,en7);return(w?(w==null?void 0:w.selectedOptionId)||"":Z.defaultSelected&&d!==""?(Z==null?void 0:Z.optionId)||"":"")===Q().optionId},
name:("input"+_.Be(_.K9)).toString()})),_.P("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.P(_.Pw,{data:function(){return Q().titleBadge}},{badgeViewModel:function(Z){return _.P(_.YO,{data:Z.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.P(_.h,{cond:function(){return Q().eyebrowText},
then:function(){return _.P("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.P(_.tD,{text:function(){return Q().eyebrowText}}))}}),_.P("div",{class:"ytm-option-item-renderer__option-item-title"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.P(_.tD,{text:function(){return Q().subtitle}})),_.P(_.h,{cond:function(){return Q().featureListData},
then:function(){return _.P("div",{class:"ytm-option-item-renderer__feature-list-data"},_.P(_.xb,{each:function(){return Q().featureListData||[]}},function(Z){var d,w=(d=Z.icon)==null?void 0:d.iconType;
a:switch(Z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":d="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":d="ytm-option-item-renderer__feature-list-icon-small";break a;default:d="ytm-option-item-renderer__feature-list-icon-default"}return _.P("div",{class:"ytm-option-item-renderer__feature-list"},_.P(_.L_,{icon:w,className:d,active:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.P("div",{class:"ytm-option-item-renderer__feature-list-text"},_.P(_.tD,{text:Z.text,
className:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.P("div",{class:"ytm-option-item-renderer__option-item-description"},_.P(_.tD,{text:function(){return Q().description}}))))},"Lh");var c4q=_.x(function(v){var Q=v.data;var V=v.flowClassName;var E=v.flowStateEntityKey;var b=v.selectionStepStyle;return _.P("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.P("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.P("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.P(_.tD,{text:function(){return Q().title}}),_.P(_.Pw,{data:function(){return Q().titleBadge}},{badgeViewModel:function(F){return _.P(_.YO,{data:F.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(){return _.P("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.P(_.tD,{text:function(){return Q().subtitle}}))}}),_.P(_.h,{cond:function(){return Q().featureListData},
then:function(F){return _.P("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.P(_.xb,{each:F},function(t){var p;return _.P("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.P(_.L_,{icon:(p=t.icon)==null?void 0:p.iconType,active:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(t.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.P("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.P(_.tD,{text:t.text,
className:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.P(_.h,{cond:function(){return Q().secondaryTitle},
then:function(){return _.P("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.P(_.tD,{text:function(){return Q().secondaryTitle}}))}}),_.P(_.xb,{each:function(){return Q().sectionDisclaimers||[]}},function(F){return _.P("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.P(_.tD,{text:F}))})),_.P(_.Pw,{data:function(){return Q().optionItems}},{optionItemRenderer:function(F){return _.P("div",{class:"ytOptionSectionRendererOptionItem"},_.P(y4f,{data:F.data,
className:V,flowStateEntityKey:E,selectionStepStyle:b}))}}),_.P(_.h,{cond:function(){return Q().offerText},
then:function(){return _.P("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.P(_.tD,{text:function(){return Q().offerText}}))}}))},"Mh");
c4q.idomCompat=!0;var fih=_.x(function(v){var Q=v.data;var V=v.flowClassName;var E=v.flowStateEntityKey;v=v.isDesktop;var b=_.Ze("div"),F=function(){var w;return(w=Q().flowStateEntityKey)!=null?w:E==null?void 0:E()},t=function(){return(F==null?void 0:F())||""},p=function(){return Q().style},Z=_.p4(_.uA,t);
_.jg(function(){Pu8(Q(),t(),Z());setTimeout(function(){var w;(w=b.value)==null||w.focus()})});
var d={};return _.P("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.QZ("ytm-option-selection-flow-step-renderer",(d["ytm-option-selection-flow-step-renderer--desktop"]=v,d["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return Q().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},d))},_.P("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"},
_.P("div",{el:b,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.P(_.tD,{text:function(){return Q().header}})),_.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.P(_.tD,{text:function(){return Q().subtitle}}))),_.P(_.Pw,{data:function(){return Q().optionItems||[]}},{optionItemRenderer:function(w){return _.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.P(y4f,{data:w.data,
className:V,flowStateEntityKey:F,selectionStepStyle:p}))},
optionSectionRenderer:function(w){return _.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.P(c4q,{data:w.data,flowClassName:V,flowStateEntityKey:F,selectionStepStyle:p}))}}))},"Nh");
fih.idomCompat=!0;_.ad(fih,"yt-option-selection-flow-step-renderer",{props:{data:_.pJ,flowClassName:_.pJ,flowStateEntityKey:_.pJ,isDesktop:_.pJ}});_.zR=_.x(function(v){var Q=_.o1(v,{type:1,disablePadding:!1,disablePrimaryButton:!1}),V=Q.data,E=Q.type;v=Q.disablePadding;var b=Q.disablePrimaryButton,F=Q.onClickPrimaryButton,t=function(){return V().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},p=function(){return{disabled:b(),
state:b()?"disabled":"active"}},Z=function(){return V().leadingLabel||V().trailingLabel};
Q={};return _.P("yt-panel-footer-view-model",{class:_.QZ("yt-panel-footer-view-model",(Q["yt-panel-footer-view-model--hide-divider"]=function(){return V().shouldHideDivider},Q["yt-panel-footer-view-model--disable-padding"]=v,Q))},_.P(_.h,{cond:Z,
then:function(){var d={},w={};return _.P("div",{class:_.QZ("yt-panel-footer-view-model__text-row",(d["yt-panel-footer-view-model--row-bottom-padding"]=function(){var A=V();return!(!A.leadingLabel&&!A.trailingLabel||!A.primaryButton&&!A.secondaryButton)},d))},_.P(_.tD,{text:function(){return V().leadingLabel},
className:_.QZ((w["yt-panel-footer-view-model--text-padding"]=Z,w))}),_.P(_.tD,{text:function(){return V().trailingLabel}}))}}),_.P(_.h,{cond:t,
then:function(){var d={};return _.P("div",{class:"yt-panel-footer-view-model__button-stack"},_.P("div",{class:_.QZ("yt-panel-footer-view-model__primary-button",(d["yt-panel-footer-view-model__button-stack--top-button"]=function(){return V().secondaryButton},d))},_.P(_.Pw,{data:function(){return V().primaryButton}},{buttonViewModel:function(w){return _.P(_.D6,{data:w.data,
buttonOverrides:p,onClick:F})}})),_.P(_.Pw,{data:function(){return V().secondaryButton}},{buttonViewModel:_.D6}))}}),_.P(_.h,{cond:function(){return!t()},
then:function(){var d={},w={},A={};return _.P("div",{class:_.QZ("yt-panel-footer-view-model__button-row",(d["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===E()},d))},_.P("div",{class:_.QZ("yt-panel-footer-view-model__button-row--left-button",(w["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===E()},w["yt-panel-footer-view-model__button-row--hidden"]=function(){return!V().secondaryButton||0===E()},w["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===E()},w))},_.P(_.Pw,{data:function(){return V().secondaryButton}},{buttonViewModel:_.D6})),_.P("div",{class:_.QZ("yt-panel-footer-view-model__primary-button",(A["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===E()||1===E()},A["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===E()},A))},_.P(_.Pw,{data:function(){return V().primaryButton}},{buttonViewModel:function(k){return _.P(_.D6,{data:k.data,
buttonOverrides:p,onClick:F})}})))}}))},"Oh");
_.zR.idomCompat=!0;_.GOh=_.x(function(v){v=_.o1(v,{disablePadding:!1});var Q=v.data,V=v.disablePadding;v=_.p1m(function(){return Q().formId});
var E=v.submitForm,b=v.isValid,F=v.isSubmitting;return _.P("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.P(_.Pw,{data:function(){return Q().panelFooter}},{panelFooterViewModel:function(t){return _.P(_.zR,{data:t.data,
onClickPrimaryButton:function(){E()},
disablePrimaryButton:function(){return!b()||F()},
disablePadding:V})}}))},"Ph");_.ad(_.GOh,"yt-form-footer-view-model",{props:{data:_.pJ,disablePadding:_.pJ}});var C3Y=_.x(function(v){var Q=_.Y("enable_user_rating_web");return _.P("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.P(_.h,{cond:function(){var V;return(V=v.data())==null?void 0:V.image},
then:function(V){return _.P(_.gE,{data:V,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.P(_.tD,{text:function(){var V;
return(V=v.data())==null?void 0:V.title}})),_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.P(_.tD,{text:function(){var V;
return(V=v.data())==null?void 0:V.subtitle}})),_.P(_.h,{cond:function(){return!Q},
then:function(){return _.P(_.Pw,{data:function(){var V;return(V=v.data())==null?void 0:V.viewTipsButton}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Qh");_.ad(C3Y,"yt-contributor-zero-state-view-model",{props:{data:_.pJ}});var M00=_.x(function(v){var Q=function(){var V;return(V=v.data())==null?void 0:V.image};
return _.P("yt-featured-content-item-view-model",{class:_.QZ("ytFeaturedContentItemViewModelHost")},_.P("div",{class:_.QZ(function(){return Q()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.P("div",{class:function(){return Q()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.P(_.h,{cond:Q,
then:function(){return _.P("div",{class:"ytFeaturedContentItemViewModelImage"},_.P(_.Pw,{data:function(){return v.data().image}},{themedImageViewModel:function(V){return _.P(t0I,{data:V.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.P(_.h,{cond:function(){var V;
return!Q()&&((V=v.data())==null?void 0:V.iconName)},
then:function(){return _.P("div",{class:"ytFeaturedContentItemViewModelIcon"},_.P(_.L_,{icon:function(){return v.data().iconName}}))}}),_.P("div",{class:"ytFeaturedContentItemViewModelContent"},_.P(_.h,{cond:function(){var V;
return(V=v.data())==null?void 0:V.title},
then:function(){return _.P("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.P(_.tD,{text:function(){return v.data().title}}))}}),_.P(_.h,{cond:function(){var V;
return(V=v.data())==null?void 0:V.body},
then:function(){return _.P("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.P(_.tD,{text:function(){return v.data().body}}))}})))))},"Rh");var O70=_.x(function(v){var Q=function(){var b;return dv$((b=v.data())==null?void 0:b.titleFontSize)},V=function(){var b;
return hnq((b=v.data())==null?void 0:b.descriptionFontSize)},E=function(){var b;
return((b=v.data())==null?void 0:b.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.P("yt-landing-page-view-model",{class:_.QZ("ytLandingPageViewModelHost",v.className)},_.P("div",{class:"ytLandingPageViewModelHeader"},_.P(_.h,{cond:function(){var b;return(b=v.data())==null?void 0:b.bannerImage},
then:function(b){return _.P("div",{class:"ytLandingPageViewModelHeaderImage"},_.P(_.Pw,{data:function(){return b()}},{imageBannerViewModel:function(F){return _.P(_.Po,{data:F.data,
isPositionRelative:!0})}}))}}),_.P(_.h,{cond:function(){var b;
return(b=v.data())==null?void 0:b.bannerAnimation},
then:function(b){return _.P(_.z9,{data:function(){var F=b();if(F==null?0:F.url){var t;F={path:(t=F==null?void 0:F.url)!=null?t:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(F==null?0:F.payload){var p;F={animationData:JSON.parse((p=F==null?void 0:F.payload)!=null?p:""),autoplay:!0,loop:!0,renderer:"svg"}}else F=void 0;return{animationConfig:F}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.P("div",{class:"ytLandingPageViewModelHeaderTitle"},_.P(_.h,{cond:function(){var b;
return(b=v.data())==null?void 0:b.title},
then:function(b){return _.P("div",{class:_.QZ("ytLandingPageViewModelHeaderTitleContent",Q)},_.P(_.tD,{text:function(){return b()}}))}}),_.P(_.h,{cond:function(){var b;
return(b=v.data())==null?void 0:b.description},
then:function(b){var F={};return _.P(_.tD,{className:_.QZ("ytLandingPageViewModelHeaderTitleDescription",V,(F.ytLandingPageViewModelHeaderTitleDescriptionMargin=E,F)),text:function(){return b()}})}}))),_.P(_.h,{cond:function(){var b,F;
return(b=v.data())==null?void 0:(F=b.featuredContentList)==null?void 0:F.length},
then:function(){return _.P("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.P(_.Pw,{data:function(){return v.data().featuredContentList}},{featuredContentItemViewModel:function(b){return _.P(M00,{data:b.data})}}))}}),_.P(_.h,{cond:function(){var b,F;
return(b=v.data())==null?void 0:(F=b.expandableContentList)==null?void 0:F.length},
then:function(){return _.P("div",{class:"ytLandingPageViewModelFaqSection"},_.P(_.Pw,{data:function(){return v.data().expandableContentList}},{faqEntryViewModel:function(b){return _.P("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.P(_.gBV,{data:b.data}))}}))}}),_.P("div",{class:"ytLandingPageViewModelFooter"},_.P(_.h,{cond:function(){var b;
return(b=v.data())==null?void 0:b.legalCopy},
then:function(b){return _.P("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.P(_.tD,{text:function(){return b()}}))}}),_.P(_.h,{cond:function(){var b;
return(b=v.data())==null?void 0:b.actions},
then:function(b){return _.P("div",null,_.P(_.Pw,{data:function(){return b()}},{flexibleActionsViewModel:function(F){return _.P(_.Vq,{data:F.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Sh");_.ad(_.x(function(v){return _.P("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.P("div",{class:"ytLpSectionGroupViewModelContainer"},_.P(_.Pw,{data:function(){return v.data().sections}},{landingPageViewModel:function(Q){return _.P(O70,{data:Q.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Th"),"yt-lp-section-group-view-model",{props:{data:_.pJ}});var DS$=_.x(function(v){var Q=v.data;var V=v.selectedKey;var E=v.onSelected;var b=v.groupName;var F=function(){return Q().text},t=function(){return Q().attributedText},p=function(){return Q().subtext},Z=function(){return Q().attributedSubtext},d=_.P("div",{class:"ytRadioButtonItemViewModelLabel"},_.P(_.h,{cond:F,
then:function(){return _.P("div",null,F)}}),_.P(_.h,{cond:t,
then:function(){return _.P(_.tD,{text:t})}}),_.P(_.h,{cond:p,
then:function(){return _.P("div",{class:"ytRadioButtonItemViewModelSubText"},p)}}),_.P(_.h,{cond:Z,
then:function(){return _.P("div",{class:"ytRadioButtonItemViewModelSubText"},_.P(_.tD,{text:Z}))}})),w=function(){if(t()){var k;
return(k=t())==null?void 0:k.content}return F()},A=function(){if(Z()){var k;
return(k=Z())==null?void 0:k.content}return p()};
v={};return _.P("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.P(_.L9,{name:b,checked:function(){return!(V==null||!V()||Q().key!==(V==null?void 0:V()))},
onChange:function(k){E==null||E(k.target,Q(),b==null?void 0:b())},
labelRenderable:function(){return d},
ariaLabel:function(){return A()?w()+", "+A():w()},
className:_.QZ((v.ytRadioButtonItemViewModelSubTitle=function(){return!!Q().subtext},v))}))},"Uh");_.R6h=_.x(function(v){var Q=v.data;var V=function(){var E;return _.Gw((E=Q())==null?void 0:E.rendererContext)};
v={};return _.P("content-list-item-view-model",{el:_.ud(_.C4(function(){return Q().rendererContext})),
class:_.QZ("ytContentListItemViewModelHost",(v.ytContentListItemViewModelTappable=V,v)),role:function(){return V()?"listitem":void 0},
tabindex:function(){return V()?0:void 0}},_.P("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.P("div",{class:"ytContentListItemViewModelImageContainer"},_.P(_.h,{cond:function(){return Q().image},
then:function(E){return _.P(_.gE,{data:E,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.P(_.Pw,{data:function(){var E;
return(E=Q())==null?void 0:E.avatar}},{avatarViewModel:_.QO})),_.P("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.P("div",{class:_.QZ("ytContentListItemViewModelTitle",function(){a:{switch(Q().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var E="ytContentListItemViewModelProminentTitle";
break a}E=void 0}return E})},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytContentListItemViewModelMetadata"},_.P(_.Pw,{data:function(){return Q().metadata}},{contentMetadataViewModel:function(E){return _.P(_.lF,{data:E.data,
layout:1})}})))),_.P("div",{class:"ytContentListItemViewModelActionButton"},_.P(_.Pw,{data:function(){var E;
return(E=Q())==null?void 0:E.actionButton}},{buttonViewModel:_.D6,
toggleButtonViewModel:_.a5})))},"Vh");var nzh=_.x(function(v){var Q=v.data,V=function(){var b;return(b=Q())==null?void 0:b.description},E=function(){var b;
return(b=Q())==null?void 0:b.title};
return _.P("ytfc-youth-basic-section-header-view-model",{class:_.QZ("ytfcYouthBasicSectionHeaderViewModelHost",v.className)},_.P("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.P(_.Pw,{data:function(){var b;return(b=Q())==null?void 0:b.avatar}},{avatarViewModel:_.QO}),_.P(_.h,{cond:function(){var b;
return _.SC((b=Q())==null?void 0:b.themedImage)},
then:function(b){return _.P(_.gE,{data:b,alt:function(){var F,t;return(t=(F=E())==null?void 0:F.content)!=null?t:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.P("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.P(_.h,{cond:E,
then:function(){return _.P(_.tD,{text:E,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.P("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.P(_.Pw,{data:function(){var b;
return(b=Q())==null?void 0:b.bottomBadge}},{badgeViewModel:function(b){return _.P("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.P(_.YO,{data:b.data}))}}),_.P(_.h,{cond:V,
then:function(){return _.P(_.tD,{text:V,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Wh");var lis=_.x(function(v){var Q=v.data;return _.P("ytfc-youth-section-body-view-model",{class:_.QZ("ytfcYouthSectionBodyViewModelHost",v.className)},_.P(_.Pw,{data:function(){var V;return(V=Q())==null?void 0:V.topContent}},{avatarStackViewModel:function(V){return _.P(_.Em,{data:V.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.P(_.tD,{text:function(){var V;
return(V=Q())==null?void 0:V.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Xh");var qxn=_.x(function(v){var Q=_.L(_.Ge(!1,void 0,"SrK51e")),V=Q.next().value,E=Q.next().value,b=function(){return v.data().inlineExpansionEntityKey},F=_.p4(leI,b),t=function(){if(v.isSelected!==void 0)return v.isSelected();
if(b()){var Z;return(Z=F())==null?void 0:Z.expanded}return V()};
Q={};var p={};return _.P("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.EP(function(){v.isSelected!==void 0||b()||E(!V())})},_.P("div",{class:"ytInlineExpanderViewModelHeader"},_.P(_.Pw,{data:function(){return v.data().headerContent}},{youthBasicSectionHeaderViewModel:nzh}),_.P("div",{class:_.QZ("ytInlineExpanderViewModelButton",(Q.ytInlineExpanderViewModelButtonExpanded=t,Q))},_.P(_.OA,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:t(),accessibilityLabel:t()?_.Lt("SHOW_LESS",void 0,"Show Less"):_.Lt("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.P("div",{class:_.QZ("ytInlineExpanderViewModelBody",(p.ytInlineExpanderViewModelBodyExpanded=t,p)),"aria-hidden":function(){return!t()}},_.P("div",{class:"ytInlineExpanderViewModelBodyContent"},_.P(_.Pw,{data:function(){return v.data().bodyContent}},{youthSectionBodyViewModel:lis}))))},"Yh");var Sx$=new _.KB("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.z6d=_.x(function(v){var Q=function(){return v.data().background},V=function(){return v.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},E=function(){return v.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},b=_.ht().resolve(_.d$(Sx$)),F={};
return _.P("yt-card-view-model",{el:_.ud(_.C4(function(){return v.data().rendererContext})),
class:_.QZ("ytCardViewModelHost",v.className,(F.ytCardViewModelClickable=function(){return _.f4(v.data().rendererContext)},F))},_.P(_.qg,{contentId:function(){return v.data().contentId}},function(){var t={};
return _.P("div",{class:_.QZ("ytCardViewModelCardViewModelInner",function(){var p;return wEm(v.data().cardStyle,(p=v.isSelected)==null?void 0:p.call(v))},function(){if(v.isSelected===void 0){var p;
a:{switch((p=v.data().cardState)==null?void 0:p.selectionState){case "CARD_SELECTION_STATE_SELECTED":p="ytCardViewModelSelected";break a}p=void 0}return p}})},_.P(_.Pw,{data:Q},{cinematicContainerViewModel:function(p){return _.P(_.U4x,{data:p.data})}}),_.P("div",{class:"ytCardViewModelContentWrapper"},_.P(_.h,{cond:function(){return!V()},
then:function(){var p={},Z={};return _.P("div",{class:"ytCardViewModelTopContentContainer"},_.P("div",{class:_.QZ("ytCardViewModelTopContent",(p.ytCardViewModelInnerPadding=function(){return!v.data().disableTopContentPadding&&v.data().topContent},p))},_.P(_.Pw,{data:function(){return v.data().topContent}},{contentListItemViewModel:function(d){return _.P(_.R6h,{data:d.data})},
basicContentViewModel:_.ZSq,linearLayoutViewModel:_.p9})),_.P("div",{class:_.QZ("ytCardViewModelInlineTrailingAction",(Z.ytCardViewModelInlineCenterTrailingAction=E,Z.ytCardViewModelInlineTrailingActionMargin=function(){return v.data().trailingAction},Z))},_.P(_.Pw,{data:function(){return v.data().trailingAction}},{buttonViewModel:function(d){return _.P(_.D6,{data:d.data})}})))}}),_.P("div",{class:_.QZ((t.ytCardViewModelInnerPadding=function(){return!v.data().disableBodyContentPadding&&v.data().bodyContent},
t))},_.P(_.Pw,{data:function(){return v.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.J85,
contentListItemViewModel:_.R6h,descriptionPreviewViewModel:_.gv,inlineExpanderViewModel:function(p){return _.P(qxn,{data:p.data,isSelected:v.isSelected})},
linearLayoutViewModel:_.p9,listItemViewModel:_.to},b&&{contentSectionViewModel:b})))),_.P(_.h,{cond:function(){return V()},
then:function(){return _.P("div",{class:"ytCardViewModelOverlayTrailingAction"},_.P(_.Pw,{data:function(){return v.data().trailingAction}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data})}}))}}))}))},"Zh");var J4Y=_.x(function(v){var Q=v.data,V=v.onSelected,E=v.selectedKey,b=v.groupName;v=v.className;var F=_.L(_.Ge(!1,void 0,"mDtSad")),t=F.next().value,p=F.next().value,Z=function(){if(E!==void 0){var d=E();return!(!d||Q().key!==d)}return t()};
F=_.EP(function(d){V?V(d.currentTarget,Q(),b==null?void 0:b()):p(!t())});
return _.P("yt-selectable-item-view-model",{class:_.QZ("ytSelectableItemViewModelHost",v,"ytSelectableItemViewModelContainer"),"on:click":F,"prop:checked":Z},_.P(_.Pw,{data:function(){return Q().content}},{cardViewModel:function(d){return _.P(_.z6d,{data:d.data,
isSelected:Z})}}))},"$h");_.N8s=_.x(function(v){var Q=v.data;var V=v.onSelected;var E=v.selectedKey;var b=v.groupName;var F=function(){return(b==null?void 0:b())||Q().key};
return _.P("yt-radio-button-group-view-model",{class:_.QZ("ytRadioButtonGroupViewModelHost",v.className)},_.P("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.P(_.Pw,{data:function(){return Q().radioButtons}},{radioButtonItemViewModel:function(t){return _.P(DS$,{data:t.data,
onSelected:V,selectedKey:E,groupName:F})},
selectableItemViewModel:function(t){return _.P(J4Y,{data:t.data,onSelected:V,selectedKey:E,groupName:F})}})))},"ai");var xSq=_.x(function(v){_.jg(function(){if(v.controlledMode()&&v.data().defaultSelected)_.ro(Error("ak"));else{var F;!v.controlledMode()&&((F=v.selected)==null?0:F.call(v))&&_.ro(Error("bk"))}});
var Q=_.L(_.K_(function(){if(!v.controlledMode())return v.data().defaultSelected})),V=Q.next().value,E=Q.next().value,b=function(){if(!v.controlledMode())return V();
var F;return(F=v.selected)==null?void 0:F.call(v)};
return _.P("yt-checkbox-item-view-model",{class:_.QZ("ytCheckboxItemViewModelHost",v.className)},_.P(_.to,{data:function(){var F=v.data(),t=b();return{title:F.text,subtitle:F.subtext,superlabel:F.superlabel,isSelected:!!t,isDisabled:F.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!v.controlledMode()&&E(!V());var F,t;(t=v.onTap)==null||t.call(v,!!b(),v.data(),(F=v.groupName)==null?void 0:F.call(v))},
isCompact:v.isCompact}))},"bi");var B8$=_.x(function(v){var Q=v.data;var V=v.controlledMode;var E=v.selectedKeys;var b=v.onItemTap;var F=v.groupName;var t=function(){return(F==null?void 0:F())||Q().key};
_.jg(function(){V()&&Q().defaultSelectedKeys?_.ro(Error("ck")):!V()&&(E==null?0:E())&&_.ro(Error("dk"))});
v=_.L(_.K_(function(){if(!V())return Q().defaultSelectedKeys}));
var p=v.next().value,Z=v.next().value,d=function(w,A,k){w=[];!V()&&A.key&&(w=Arh(A.key,p()||[]),Z(w));b==null||b(A,w,k)};
return _.P("yt-checkbox-group-view-model",{class:_.QZ("ytCheckboxGroupViewModelHost")},_.P("fieldset",{class:_.QZ("ytCheckboxGroupViewModelFieldset")},_.P(_.Pw,{data:function(){return Q().checkboxes}},{checkboxItemViewModel:function(w){var A=w.data;
return _.P(xSq,{data:A,controlledMode:!0,selected:function(){var k=V()?(E==null?void 0:E())||[]:p()||[],T=A().key;return T?k.includes(T):!1},
onTap:d,groupName:t})}})))},"ci");var Jl=_.x(function(v){var Q=_.p4(kE7,_.Wn(function(){var p;return(p=v.data())==null?void 0:p.noteFeedEntityKey},"")),V=_.p4(Jqs,_.Wn(function(){var p;
return(p=v.data())==null?void 0:p.userRatingEntityKey},"")),E=_.Y("enable_user_rating_web"),b=function(){var p,Z,d;
return((p=Q())==null?0:p.contributorNote)?(Z=Q())==null?void 0:Z.contributorNote:(d=v.data())==null?void 0:d.existingNote},F=function(){var p,Z;
return!!V()&&!!TCY((p=V())==null?void 0:p.helpfulnessValue,(Z=v.data())==null?void 0:Z.noteData)};
if(E){var t={};return _.P("yt-note-view-model",{class:_.QZ("ytNoteViewModelHostUserRating",(t.ytNoteViewModelHostUserRatingPublishedNote=function(){var p,Z,d,w;return((p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.isPublished)&&!((d=v.data())==null?0:(w=d.noteData)==null?0:w.isUserRatingForm)},t))},_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.P(_.h,{cond:function(){var p,Z;
return(p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.isPinned},
then:function(){return _.P(_.L_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.P(_.h,{cond:function(){var p,Z;return(p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.isPublished},
then:function(){return _.P(_.L_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.P(_.Pw,{data:function(){var p;
return(p=v.data())==null?void 0:p.metadata}},{contentMetadataViewModel:_.lF}),_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var p,Z;
return(Z=_.y((p=v.data())==null?void 0:p.metadata,_.TqN))==null?void 0:Z.delimiter}),_.P(_.tD,{text:function(){var p;
return(p=b())==null?void 0:p.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.P(_.h,{cond:function(){var p,Z;return!((p=v.data())==null?0:(Z=p.noteData)==null?0:Z.isUserRatingForm)},
then:function(){return _.P(_.Pw,{data:function(){var p,Z,d,w,A,k,T,c=!!((p=v.data())==null?0:(Z=p.noteData)==null?0:Z.isPinned);p=F();Z=(d=v.data())==null?void 0:d.noteData;d=(w=Q())==null?void 0:(A=w.contributorNote)==null?void 0:A.deleteAction;w=(k=v.data())==null?void 0:k.overflowButtonNoteWithRatingOnTapOverride;k=(T=v.data())==null?void 0:T.overflowButton;var C;T=(C=_.y(k,_.pH))==null?void 0:C.accessibilityText;return c?YSh(Z,d,T):p?{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:w,accessibilityText:T}}:k}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.P("div",{class:"ytNoteViewModelNoteContent"},_.P(_.tD,{text:function(){var p;
return(p=b())==null?void 0:p.text}})),_.P(_.h,{cond:function(){var p,Z,d,w;
return!((p=v.data())==null?0:(Z=p.noteData)==null?0:Z.isPinned)&&!((d=v.data())==null?0:(w=d.noteData)==null?0:w.isUserRatingForm)},
then:function(){return _.P(_.h,{cond:F,then:function(){return _.P("div",{class:"ytNoteViewModelUserRatingContainer"},_.P(_.tD,{text:function(){var p,Z;return TCY((p=V())==null?void 0:p.helpfulnessValue,(Z=v.data())==null?void 0:Z.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.P(_.Pw,{data:function(){var p;return(p=v.data())==null?void 0:p.userRatingButton}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.P(_.h,{cond:function(){var p,Z,d,w;
return!((p=v.data())==null?0:(Z=p.noteData)==null?0:Z.ignoreDivider)&&!((d=v.data())==null?0:(w=d.noteData)==null?0:w.isUserRatingForm)},
then:function(){return _.P("div",{class:"ytNoteViewModelDivider"},_.P(_.Pw,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(p){return _.P(_.EeS,{data:p.data})}}))}}))}return _.P("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.P(_.h,{cond:function(){var p,Z;return(p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.isPinned},
then:function(){return _.P(_.L_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.P(_.h,{cond:function(){var p,Z;return(p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.isPublished},
then:function(){return _.P(_.L_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.P(_.h,{cond:function(){return E},
then:function(){return _.P(_.Pw,{data:function(){var p;return(p=v.data())==null?void 0:p.metadata}},{contentMetadataViewModel:function(p){return _.P(_.lF,{data:p.data})}})}}),_.P(_.tD,{text:function(){var p,Z;
return(p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.headerText}}),_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.P(_.tD,{text:function(){var p,Z;
return(p=v.data())==null?void 0:(Z=p.noteData)==null?void 0:Z.delimiter}})),_.P(_.tD,{text:function(){var p,Z;
return(p=Q())==null?void 0:(Z=p.contributorNote)==null?void 0:Z.publishedTimeText}})),_.P(_.Pw,{data:function(){var p,Z,d;
return YSh((p=v.data())==null?void 0:p.noteData,(Z=Q())==null?void 0:(d=Z.contributorNote)==null?void 0:d.deleteAction)}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.P("div",{class:"ytNoteViewModelNoteContent"},_.P(_.tD,{text:function(){var p,Z;
return(p=Q())==null?void 0:(Z=p.contributorNote)==null?void 0:Z.text}})))},"di");
Jl.idomCompat=!0;_.ad(_.x(function(v){var Q=_.Wn(function(){var S;return(S=v.data())==null?void 0:S.flowStateEntityKey},""),V=_.p4(_.uA,Q),E=_.p4(kE7,_.Wn(function(){var S;
return(S=v.data())==null?void 0:S.noteFeedEntityKey},"")),b=_.L(_.K_(function(){var S;
return(S=_.y(v.data().helpfulnessValue,_.b1))==null?void 0:S.defaultSelectedKey})),F=b.next().value,t=b.next().value;
b=_.L(_.K_(function(){var S,a,g;return(g=_.y((S=_.y(v.data().helpfulnessValue,_.b1))==null?void 0:(a=S.radioButtons)==null?void 0:a.find(function(u){var r;return((r=_.y(u,HCf))==null?void 0:r.key)===F()}),HCf))==null?void 0:g.value}));
var p=b.next().value,Z=b.next().value;b=_.L(_.K_(function(){var S;return(S=_.y(v.data().helpfulReasons,Iaf))==null?void 0:S.defaultSelectedKeys}));
var d=b.next().value,w=b.next().value;b=_.L(_.K_(function(){var S;return(S=_.y(v.data().notHelpfulReasons,Iaf))==null?void 0:S.defaultSelectedKeys}));
var A=b.next().value,k=b.next().value,T=function(S,a){t(a.key);Z(a.value);w([]);k([])},c=function(){var S,a;
return((S=p())==null?void 0:S.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((a=p())==null?void 0:a.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},C=function(){var S,a;
return((S=p())==null?void 0:S.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((a=p())==null?void 0:a.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},R=function(S){yrn(S.key,d,w)},l=function(S){yrn(S.key,A,k)};
_.jg(function(){var S,a,g;SH$((S=v.data())==null?void 0:(a=S.userRatingFormSchema)==null?void 0:a.id,{isValid:function(){return!!F()},
formData:function(){var u=p(),r=f3d(d(),_.y(v.data().helpfulReasons,Iaf)),v9=f3d(A(),_.y(v.data().notHelpfulReasons,Iaf));u={helpfulnessValue:u==null?void 0:u.noteHelpfulnessValue};if(r){u.helpfulReasons=[];r=_.L(r);for(var t3=r.next();!t3.done;t3=r.next()){t3=t3.value;var h3=void 0;if((h3=t3)==null?0:h3.noteHelpfulReason)h3=void 0,u.helpfulReasons.push((h3=t3)==null?void 0:h3.noteHelpfulReason)}}if(v9)for(u.notHelpfulReasons=[],v9=_.L(v9),r=v9.next();!r.done;r=v9.next())if(r=r.value,t3=void 0,(t3=
r)==null?0:t3.noteNotHelpfulReason)t3=void 0,u.notHelpfulReasons.push((t3=r)==null?void 0:t3.noteNotHelpfulReason);return{userRatingFormData:u}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(g=_.y(V(),xoI))==null?void 0:g.submitFormParams},onSubmitResult:function(){var u,r=(u=_.y(V(),xoI))==null?void 0:u.userRatingEntityKey,v9;u={key:r,helpfulnessValue:(v9=p())==null?void 0:v9.noteHelpfulnessValue};r&&_.jT(_.dW("contextNoteUserRatingEntityPayload",r,u));var t3;r=(t3=v.data())==null?void 0:t3.viewNoteFlowStepId;var h3;if((h3=E())==null||!h3.contributorNote){var OB;r=(OB=v.data())==null?void 0:OB.zeroStateFlowStepId}(t3=
Object.assign({},V()))&&r&&(t3.currentStepId=r,t3.stepIdStack=[r],_.jT(_.dW("flowStateEntity",Q(),t3)));var kQ;(t3=(kQ=v.data())==null?void 0:kQ.ratingSubmittedSnackbarCommand)&&_.nx(t3)},
disableDuringSubmission:!0})});
return _.P("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.P(_.Pw,{data:function(){var S=_.y(V(),xoI);if(S){var a;var g={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:S==null?void 0:(a=S.note)==null?void 0:a.headerText}]}],delimiter:"\u2022"}},existingNote:S.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else g=void 0;return g}},{noteViewModel:function(S){return _.P("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.P(Jl,{data:S.data}))}}),_.P(_.Pw,{data:function(){var S;
return(S=v.data())==null?void 0:S.helpfulnessValue}},{radioButtonGroupViewModel:function(S){return _.P("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.P(_.N8s,{data:S.data,
onSelected:T,selectedKey:F}))}}),_.P(_.h,{cond:c,
then:function(){return _.P("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.P("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.P(_.tD,{text:function(){var S;return(S=v.data())==null?void 0:S.helpfulReasonQuestion}})),_.P(_.Pw,{data:function(){var S;
return(S=v.data())==null?void 0:S.helpfulReasons}},{checkboxGroupViewModel:function(S){return _.P(B8$,{data:S.data,
onItemTap:R,selectedKeys:d,controlledMode:!0})}}))}}),_.P(_.h,{cond:C,
then:function(){return _.P("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.P("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.P(_.tD,{text:function(){var S;return(S=v.data())==null?void 0:S.notHelpfulReasonQuestion}})),_.P(_.Pw,{data:function(){var S;
return(S=v.data())==null?void 0:S.notHelpfulReasons}},{checkboxGroupViewModel:function(S){return _.P(B8$,{data:S.data,
onItemTap:l,selectedKeys:A,controlledMode:!0})}}))}}),_.P(_.h,{cond:function(){return!c()&&!C()},
then:function(){return _.P(_.Pw,{data:function(){var S;return(S=v.data())==null?void 0:S.helpfulNoteFeatures}},{alertBannerViewModel:function(S){return _.P("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.P(_.pza,{data:S.data}))}})}}))},"ei"),"yt-note-user-rating-view-model",{props:{data:_.pJ}});_.ad(Jl,"yt-note-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=_.p4(kE7,_.Wn(function(){var V;return(V=v.data())==null?void 0:V.noteFeedEntityKey},""));
return _.P("yt-notes-wrapper-view-model",{class:_.QZ("ytNotesWrapperViewModelHost")},_.P(_.h,{cond:function(){var V,E,b;return!((V=v.data())==null||!V.existingNotes)||!((E=v.data())==null||!E.currentNote)&&!((b=Q())==null||!b.contributorNote)},
then:function(){return _.P(_.w7,null,_.P(_.Pw,{data:function(){var V,E,b,F;return((E=_.y((V=v.data())==null?void 0:V.currentNote,BiY))==null?0:(b=E.noteData)==null?0:b.isPublished)?(F=v.data())==null?void 0:F.currentNote:void 0}},{noteViewModel:function(V){return _.P(Jl,{data:V.data})}}),_.P(_.Pw,{data:function(){var V;
return(V=v.data())==null?void 0:V.existingNotes}},{noteViewModel:function(V){var E=V.data;
return _.P(_.h,{cond:function(){var b,F;return(b=E())==null?void 0:(F=b.noteData)==null?void 0:F.isPublished},
then:function(){return _.P(Jl,{data:E})}})}}),_.P(_.Pw,{data:function(){var V,E,b,F,t;
return((E=_.y((V=v.data())==null?void 0:V.currentNote,BiY))==null?0:(b=E.noteData)==null?0:b.isPublished)||(F=Q())==null||!F.contributorNote?void 0:(t=v.data())==null?void 0:t.currentNote}},{noteViewModel:function(V){return _.P(Jl,{data:V.data})}}),_.P(_.Pw,{data:function(){var V;
return(V=v.data())==null?void 0:V.existingNotes}},{noteViewModel:function(V){var E=V.data;
return _.P(_.h,{cond:function(){var b,F;return!((b=E())==null?0:(F=b.noteData)==null?0:F.isPublished)},
then:function(){return _.P(Jl,{data:E})}})}}))},
else:function(){return _.P(_.Pw,{data:function(){var V;return(V=v.data())==null?void 0:V.zeroStateData}},{contributorZeroStateViewModel:C3Y})}}))},"fi"),"yt-notes-wrapper-view-model",{props:{data:_.pJ}});var N9=_.x(function(v){var Q=_.o1(v,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0}),V=Q.label,E=Q.text,b=Q.placeholder,F=Q.hint;v=Q.rows;var t=Q.overflowStyle,p=Q.outline,Z=Q.disabled,d=Q.disableNewLines,w=Q.characterLimit,A=Q.validation,k=Q.onInput,T=Q.timePickerData,c=_.Ze("textarea");Q=_.L(_.K_(function(){return E()}));
var C=Q.next().value,R=Q.next().value;Q=_.L(_.Ge(!1,void 0,"q1mZCd"));var l=Q.next().value,S=Q.next().value,a=function(){S(!0)},g=function(){S(!1)};
_.jg(function(){var ep=c.value,JS=t(),fZ=C();JS==="expand-vertically"&&fZ&&GEf(ep);c.value.addEventListener("focusin",a);c.value.addEventListener("focusout",g)});
_.j_(function(){c.value.removeEventListener("focusin",a);c.value.removeEventListener("focusout",g)});
var u=function(){var ep;return(ep=A())==null?void 0:ep.validate(C())},r=function(){return w()&&!u()&&C().length>w().maxChars},v9=function(){return!!u()||r()};
Q=_.EP(function(ep){if(!ep.currentTarget)return!1;ep=ep.currentTarget;R(ep.value);t()==="expand-vertically"&&GEf(ep);k==null||k(ep.value);return!0});
var t3=_.EP(function(ep){d()&&ep.key==="Enter"&&ep.preventDefault();return!1}),h3=_.EP(function(){c.value.focus()}),OB=function(){return b()||V()},kQ={},yo={},xQ={},lb={};
return _.P("textarea-shape",{class:_.QZ("ytStandardsTextareaShapeHost",(kQ.ytStandardsTextareaShapeTimePicker=function(){var ep;return(ep=T())==null?void 0:ep.useTimePickerStyles},kQ))},_.P("div",{class:_.QZ("ytStandardsTextareaShapeTextareaContainer",(yo.ytStandardsTextareaShapeTextareaContainerOutline=p,yo.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=Z,yo.ytStandardsTextareaShapeTextareaContainerOutlineError=v9,yo)),
"on:click":h3},_.P("label",{class:_.QZ("ytStandardsTextareaShapeLabel",(xQ.ytStandardsTextareaShapeLabelFocused=l,xQ.ytStandardsTextareaShapeLabelDisabled=Z,xQ.ytStandardsTextareaShapeLabelError=function(){return v9()&&!Z()},xQ.ytStandardsTextareaShapeLabelHidden=function(){return!l()&&!C()&&!!OB()},xQ))},V),_.P("div",{class:_.QZ("ytStandardsTextareaShapePlaceholder",(lb.ytStandardsTextareaShapePlaceholderVisible=function(){return!l()&&!C()},lb)),
"aria-hidden":"true"},OB),_.P("textarea",{el:c,class:"ytStandardsTextareaShapeTextarea",rows:v,disabled:Z,placeholder:OB,"on:input":Q,"on:keydown":t3},C)),_.P(_.h,{cond:function(){return F()&&!v9()},
then:function(){var ep={};return _.P("div",{class:_.QZ("ytStandardsTextareaShapeHint",(ep.ytStandardsTextareaShapeHintDisabled=Z,ep))},_.P("div",{class:"ytStandardsTextareaShapeHintHintMessage"},F))}}),_.P(_.h,{cond:u,
then:function(){return _.P(gzm,{disabled:Z},_.P("div",{class:"ytStandardsTextareaShapeErrorMessage"},u))}}),_.P(_.h,{cond:w,
then:function(ep){return _.P(_.h,{cond:r,then:function(){return _.P(gzm,{disabled:Z},_.P("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return ep().errorMessage}),_.P("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return C().length+"/"+ep().maxChars}))}})}}))},"gi");
N9.idomCompat={callbacks:{onInput:!0}};var gzm=_.x(function(v){var Q={};return _.P("div",{class:_.QZ("ytStandardsTextareaShapeError",(Q.ytStandardsTextareaShapeErrorDisabled=v.disabled,Q)),role:"alert"},_.P(_.L_,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),v.children)},"hi");_.sFm=_.x(function(v){var Q=v.data;return _.P("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.P(N9,{text:v.text,label:function(){var V;return(V=Q().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=Q().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=Q().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=Q().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=Q().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:v.disabled,disableNewLines:function(){var V;return(V=Q().displayProperties)==null?void 0:V.disableNewLines},
onInput:v.onInput,characterLimit:v.characterLimit,validation:v.validation,rows:function(){var V;return(V=Q().displayProperties)==null?void 0:V.rows}}))},"ii");_.ugm=_.x(function(v){var Q=v.data;return _.P("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.P(N9,{text:v.text,label:function(){var V;return(V=Q().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=Q().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=Q().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=Q().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=Q().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var V;return(V=Q().displayProperties)==null?void 0:V.disableNewLines},
onInput:v.onInput,characterLimit:v.characterLimit,validation:v.validation,rows:function(){var V;return(V=Q().displayProperties)==null?void 0:V.rows}}))},"ji");var jFm=_.x(function(v){var Q=_.L(_.K_(function(){var h3,OB;return((h3=v.data().structuredContextNoteFormSchema)==null?0:(OB=h3.initialValues)==null?0:OB.noteBody)?v.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),V=Q.next().value,E=Q.next().value;
Q=_.L(_.K_(function(){v.data();return!1}));
var b=Q.next().value,F=Q.next().value;Q=_.L(_.K_(function(){v.data();return!1}));
var t=Q.next().value,p=Q.next().value;Q=_.L(_.K_(function(){var h3,OB;return((h3=v.data().structuredContextNoteFormSchema)==null?0:(OB=h3.initialValues)==null?0:OB.timestamp)?v.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var Z=Q.next().value,d=Q.next().value;Q=_.L(_.K_(function(){v.data();return!1}));
var w=Q.next().value,A=Q.next().value;Q=_.L(_.K_(function(){var h3,OB;return((h3=v.data().structuredContextNoteFormSchema)==null?0:(OB=h3.initialValues)==null?0:OB.sources)?[v.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var k=Q.next().value,T=Q.next().value;Q=_.L(_.K_(function(){v.data();return!1}));
var c=Q.next().value,C=Q.next().value;Q=_.L(_.K_(function(){return!1}));
var R=Q.next().value,l=Q.next().value;_.jg(function(){var h3;_.zdq((h3=v.data().structuredContextNoteFormSchema)==null?void 0:h3.id,{isSubmitting:R,onSubmit:function(){l(!0);var OB=SSn(V(),Z(),k(),v.data()),kQ=_.ht().resolve(_.At);OB&&kQ&&kQ.resolveCommand(OB,{commandController:{onSuccess:function(){l(!1)}}})},
isValid:function(){return b()&&!t()&&!w()&&!c()}})});
var S=function(h3){if(h3!==void 0&&(E(h3),!b()&&h3.length>0&&F(!0),b())){var OB=O2j(v.data());if(OB){var kQ=OB.minLength;OB=OB.maxLength;kQ&&h3.length<kQ?p(!0):OB&&h3.length>OB?p(!0):p(!1)}}},a=function(h3){if(h3!==void 0){d(h3);
if(h3.length>0){var OB,kQ,yo,xQ,lb=Rn7((OB=v.data())==null?void 0:(kQ=OB.structuredContextNoteFormSchema)==null?void 0:(yo=kQ.fieldSchemas)==null?void 0:(xQ=yo.timestamp)==null?void 0:xQ.validationSchema);if(lb&&(OB=lb.regex)&&!(new RegExp(OB)).test(h3)){A(!0);return}}A(!1)}},g=function(h3){if(h3!==void 0){var OB=h3.split(/[ \n]/).map(function(kQ){return kQ.trim()});
T(OB);if(h3.length>0)for(h3=_.L(OB),OB=h3.next();!OB.done;OB=h3.next())if(!qSd(OB.value)){C(!0);return}C(!1)}},u=function(){return{validate:function(h3){if(b()){var OB=O2j(v.data());
if(OB){var kQ=OB.minLength;OB=OB.translations;if(kQ&&h3.length<kQ)return OB==null?void 0:OB.minLengthErrorMessage}}}}},r=function(){var h3=O2j(v.data()),OB=h3==null?void 0:h3.maxLength,kQ;
h3=h3==null?void 0:(kQ=h3.translations)==null?void 0:kQ.maxLengthErrorMessage;if(OB&&h3)return{maxChars:OB,errorMessage:h3}},v9=function(){return{validate:function(h3){if(h3){var OB,kQ,yo,xQ,lb=Rn7((OB=v.data())==null?void 0:(kQ=OB.structuredContextNoteFormSchema)==null?void 0:(yo=kQ.fieldSchemas)==null?void 0:(xQ=yo.timestamp)==null?void 0:xQ.validationSchema);
if(lb&&(OB=lb.regex,lb=lb.translations,OB&&!(new RegExp(OB)).test(h3)))return lb==null?void 0:lb.regexErrorMessage}}}},t3=function(){return{validate:function(h3){if(h3){var OB,kQ,yo,xQ,lb=l3f((OB=v.data())==null?void 0:(kQ=OB.structuredContextNoteFormSchema)==null?void 0:(yo=kQ.fieldSchemas)==null?void 0:(xQ=yo.sources)==null?void 0:xQ.validationSchema);
if(lb&&(OB=lb.translations,OB==null?0:OB.selectedErrorMessage))for(h3=h3.split(/[ \n]/).map(function(ep){return ep.trim()}),h3=_.L(h3),kQ=h3.next();!kQ.done;kQ=h3.next())if(!qSd(kQ.value))return h3=void 0,(h3=OB)==null?void 0:h3.selectedErrorMessage}}}};
return _.P("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.P("div",{class:"ytStructuredContextNoteViewModelTextField"},_.P(_.Pw,{data:function(){var h3;return(h3=v.data())==null?void 0:h3.noteContents}},{textFormFieldViewModel:function(h3){return _.P(_.ugm,{data:h3.data,
onInput:S,validation:u,characterLimit:r})},
textFieldViewModel:function(h3){return _.P(_.sFm,{data:h3.data,onInput:S,validation:u,characterLimit:r})}})),_.P("div",{class:"ytStructuredContextNoteViewModelTextField"},_.P(_.Pw,{data:function(){var h3;
return(h3=v.data())==null?void 0:h3.noteTimestamp}},{textFormFieldViewModel:function(h3){return _.P(_.ugm,{data:h3.data,
onInput:a,validation:v9})},
textFieldViewModel:function(h3){return _.P(_.sFm,{data:h3.data,onInput:a,validation:v9})}})),_.P("div",{class:"ytStructuredContextNoteViewModelTextField"},_.P(_.Pw,{data:function(){var h3;
return(h3=v.data())==null?void 0:h3.noteSources}},{textFormFieldViewModel:function(h3){return _.P(_.ugm,{data:h3.data,
onInput:g,validation:t3})},
textFieldViewModel:function(h3){return _.P(_.sFm,{data:h3.data,onInput:g,validation:t3})}})))},"ki");
jFm.idomCompat=!0;_.ad(jFm,"yt-structured-context-note-view-model",{props:{data:_.pJ}});var W50=_.x(function(v){var Q=_.L(_.K_(function(){var F;if((F=v.controlled)==null?0:F.call(v))return[];var t;return(((t=v.data())==null?void 0:t.chips)||[]).map(function(p){p=_.y(p,_.e5);if(p==null?0:p.selected)return znj(p.chipValue)}).filter(function(p){return p!==void 0})})),V=Q.next().value,E=Q.next().value,b=function(F){var t=znj(F.chipValue);
if(t!==void 0){var p;if((p=v.controlled)==null?0:p.call(v))return void v.controlled().onTap(t);F=V().includes(t)?[].concat(_.ui(V().filter(function(d){return d!==t}))):[].concat(_.ui(V()),[t]);
E(F);var Z;if((Z=v.uncontrolled)==null?0:Z.call(v))v.uncontrolled().onUpdate(F)}};
return _.P("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.P(_.xb,{each:function(){return v.data().chips||[]}},function(F){return _.P("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.P(_.RVA,{data:function(){return _.y(F,_.e5)},
selected:function(){var t;if(t=_.y(F,_.e5)){var p=znj(t.chipValue);if(p!==void 0){var Z;t=((Z=v.controlled)==null?0:Z.call(v))?v.controlled().selectedValues.includes(p):V().includes(p)}else t=void 0}else t=!1;return t},
callback:b}))}))},"li");var ozm=_.x(function(v){var Q=v.data;var V=function(){var p;return((p=Q())==null?void 0:p.flowStateKey)||""},E=_.p4(_.uA,V),b=function(){var p;
return(p=_.y(E(),gIf))==null?void 0:p.chips},F=function(p){if(p!==void 0){var Z=b()||[];
Z=Z.find(function(d){return d===p})?Z.filter(function(d){return d!==p}):[].concat(_.ui(Z),[p]);
Z=Object.assign({},E(),{feedbackFormFlowState:Object.assign({},_.y(E(),gIf),{chips:Z})});_.jT(_.dW("flowStateEntity",V(),Z))}},t=function(){var p;
return _.y((p=Q())==null?void 0:p.inputBox,sxY)};
v=_.Gm(function(p){var Z=t();Z=!(Z==null?0:Z.maxChars)||p.length<=Z.maxChars;p=Object.assign({},E(),{feedbackFormFlowState:Object.assign({},_.y(E(),gIf),{detail:p}),abuseReportFlowState:Object.assign({},_.y(E(),EN),{navigationEnabled:Z})});_.jT(_.dW("flowStateEntity",V(),p))},150);
return _.P("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.P("div",{class:"ytFeedbackFormViewModelChips"},_.P(_.Pw,{data:function(){var p;return(p=Q())==null?void 0:p.chipSelection}},{chipSelectionFormFieldViewModel:function(p){return _.P(W50,{data:p.data,
controlled:function(){return{selectedValues:b()||[],onTap:F}}})}})),_.P("div",{class:"ytFeedbackFormViewModelInputBox"},_.P(N9,{text:function(){var p;
return(p=_.y(E(),gIf))==null?void 0:p.detail},
placeholder:function(){var p;return((p=t())==null?void 0:p.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var p=t();if(p&&p.maxChars)return{maxChars:p.maxChars,errorMessage:p.maxCharsExceededErrorMessage||""}},
onInput:v})),_.P("div",{class:"ytFeedbackFormViewModelFooterText"},_.P(_.tD,{text:function(){return Q().footerText}})))},"mi");
ozm.idomCompat=!0;_.ad(ozm,"yt-feedback-form-view-model",{props:{data:_.pJ}});var XBd=_.x(function(v){var Q=v.data;var V=_.p4(qH0,function(){return Q().flowStateKey||""}),E=function(){var b;
_.nx((b=_.y(V(),EN))==null?void 0:b.navigationCommand)};
return _.P("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.P("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.P(_.Pw,{data:function(){return Q().cancelButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:E})}}),_.P(_.Pw,{data:function(){var b;
if(Q().navButton){var F=Object;var t=F.assign,p=_.y(Q().navButton,_.pH),Z=((b=_.y(V(),EN))==null?0:b.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",d,w;b=_.y((d=_.y(V(),EN))==null?void 0:d.navigationCommand,_.Cx);d=(w=_.y(b,_.FJ))==null?void 0:w.url;F={buttonViewModel:t.call(F,{},p,{state:Z,iconName:d?"OPEN_IN_NEW":""})}}else F=void 0;return F}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:E})}})))},"ni");
XBd.idomCompat=!0;_.ad(XBd,"yt-report-form-bottom-bar-view-model",{props:{data:_.pJ}});var aim=_.x(function(v){var Q=v.nextStep;return _.P("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.P("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.P(_.L_,{icon:function(){return Q().iconName||""}})),_.P("div",null,_.P(_.tD,{text:function(){return Q().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"oi"),r4f=_.x(function(v){var Q=v.data;
var V,E=(V=_.ht().resolve(_.d$(_.JR)))==null?void 0:V(),b=_.p4(_.uA,function(){return Q().flowStateKey||""});
return _.P("yt-report-form-confirmation-page-view-model",{class:function(){var F;return((F=_.y(b(),EN))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.P("div",{class:function(){var F;
return((F=_.y(b(),EN))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.P(_.gE,{data:function(){return E&&Q().imageDark?Q().imageDark:Q().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.P("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.P("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return Q().confirmationHeader}),_.P("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.P(_.tD,{text:function(){return Q().confirmationText}})),_.P("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.P(_.tD,{text:function(){return Q().lawEnforcementText}})),
_.P("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return Q().whatToExpectHeader}),_.P(_.h,{cond:function(){return Q().nextSteps},
then:function(F){return _.P("div",null,_.P(_.xb,{each:F},function(t){return _.P(aim,{nextStep:t})}))}}),_.P(_.h,{cond:function(){return Q().legalReportText},
then:function(F){return _.P("div",null,_.P(_.tD,{text:F,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"pi");
r4f.idomCompat=!0;_.ad(r4f,"yt-report-form-confirmation-page-view-model",{props:{data:_.pJ}});var $S8=_.x(function(v){var Q=v.data;var V=function(){var F;return((F=_.y(Q().inputBox,sxY))==null?void 0:F.maxChars)||500},E=function(){return Q().flowStateKey||""},b=_.p4(_.uA,E);
v=_.Gm(function(F){F=Object.assign({},b(),{flowFormState:{isValid:F.length<=V()},abuseReportFlowState:{userComments:F,navigationEnabled:!(F.length>V()),isReportFormDirty:!0}});_.uf().dispatch(_.Gz("flowStateEntity",E(),F))},150);
_.jg(function(){var F=Object.assign({},b(),{flowFormState:{isValid:!0}});_.uf().dispatch(_.Gz("flowStateEntity",E(),F))});
return _.P("yt-report-form-details-page-view-model",{class:function(){var F;return((F=_.y(b(),EN))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.P("h1",{class:function(){var F;
return((F=_.y(b(),EN))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return Q().detailsPageHeader}),_.P("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.P(_.tD,{text:function(){return Q().bodyText}})),_.P("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.P(N9,{label:function(){var F;
return((F=_.y(Q().inputBox,sxY))==null?void 0:F.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var F;return{errorMessage:((F=_.y(Q().inputBox,sxY))==null?void 0:F.maxCharsExceededErrorMessage)||"",maxChars:V()}},
onInput:v})))},"qi");
$S8.idomCompat=!0;_.ad($S8,"yt-report-form-details-page-view-model",{props:{data:_.pJ}});var Iih=_.x(function(v){var Q=v.data;var V=function(){return Q().flowStateKey||""},E=_.p4(_.uA,V),b=function(){return _.y(E(),EN)};
return _.P("yt-report-form-reason-select-page-view-model",{class:function(){var F;return((F=b())==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.P("h1",{class:function(){var F;
return((F=b())==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return Q().pageHeader}),_.P("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.P(_.tD,{text:function(){return Q().bodyText}})),_.P("div",{class:function(){var F;
return((F=b())==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.P(_.N8s,{data:function(){return _.y(Q().radioButtonGroup,_.b1)},
onSelected:function(F,t){F=Object.assign({},E(),{abuseReportFlowState:Object.assign({},b(),{reasonKey:t.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:t.command})});_.jT(_.dW("flowStateEntity",V(),F))},
selectedKey:function(){var F;return(F=b())==null?void 0:F.reasonKey},
groupName:"report-form-reason-select-page"})))},"ri");
Iih.idomCompat=!0;_.ad(Iih,"yt-report-form-reason-select-page-view-model",{props:{data:_.pJ}});var H75=_.x(function(v){var Q=v.data;var V,E=(V=_.ht().resolve(_.d$(_.JR)))==null?void 0:V();return _.P("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.P("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.P(_.gE,{data:function(){return E&&Q().imageDark?Q().imageDark:Q().image},
alt:""})),_.P("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.P("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return Q().header}),_.P(_.tD,{text:function(){return Q().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"si");
H75.idomCompat=!0;_.ad(H75,"yt-report-form-sign-in-page-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=_.Z1(_.SFX.talkToRecsStateSelector),E=function(){return Q().titleSuperscript},b=function(){return Q().answersShelf},F=function(){return Q().videoShelf},t=function(){var v9;
return(v9=Q().textInputPlaceholder)==null?void 0:v9.content},p=function(){return Q().showOpenTextInput},Z=function(){var v9;
return(v9=Q().textInputValue)==null?void 0:v9.content},d=function(){return Q().isMultiTurnFlow?Q().resetButtonViewModel:void 0},w="",A=function(){return Q().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
v=_.L(_.Ge("",void 0,"wOgRlf"));var k=v.next().value,T=v.next().value;v=_.L(_.Ge(!1,void 0,"TYP5Ff"));var c=v.next().value,C=v.next().value,R=function(){return{state:c()||k()?"active":"disabled",disabled:!(c()||k())}};
_.uk(function(){if(p()){Z()&&T(Z());var v9;if(!d()&&((v9=V())==null?0:v9.stepStates)){var t3;v9=Object.keys((t3=V())==null?void 0:t3.stepStates);t3=v9[v9.length-1];var h3,OB;t3=(h3=V().stepStates[t3])==null?void 0:(OB=h3.userQuery)==null?void 0:OB.userQuery;_.jT(_.Sn5());t3&&l(t3)}}});
var l=function(v9){var t3=Q().onUpdateText;t3&&_.nx(t3,{form:{userQuery:v9}});T(v9)},S=_.Gm(function(v9){l(v9.target.value.trim())},150),a=_.EP(function(v9){var t3;
w=(t3=v9.target.value)==null?void 0:t3.trim();S(v9);return!1}),g=_.EP(function(v9){v9.key==="Enter"&&(c()||k())&&(l(v9.target.value.trim()),r());
return!1}),u=function(v9,t3){C(t3);
if(t3){if(Q().isMultiTurnFlow&&!w){var h3;l((h3=v9==null?void 0:v9.text)!=null?h3:"")}Q().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&r()}else T(w)},r=function(){var v9=void 0,t3=_.y(Q().nextButtonViewModel,_.pH),h3,OB;
if(t3==null?0:(h3=t3.loggingDirectives)==null?0:(OB=h3.clientVeSpec)==null?0:OB.uiType){var kQ,yo;v9=_.Vw((kQ=t3.loggingDirectives)==null?void 0:(yo=kQ.clientVeSpec)==null?void 0:yo.uiType)}(t3=Q().onNextStepCommand)&&_.nx(t3,{clickedVisualElement:v9})};
v={};return _.P("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.P("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.P(_.Pw,{data:function(){return Q().topCornerButton}},{buttonViewModel:_.D6})),_.P("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.P("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.P(_.tD,{text:function(){return Q().title}}),_.P(_.h,{cond:E,
then:function(){return _.P("sup",{class:"ytwTalkToRecsSuperScript"},_.P(_.tD,{text:E}))}})),_.P("div",{class:"ytwTalkToRecsSubtitle"},_.P(_.tD,{text:function(){return Q().subtitle}})),_.P("div",{class:"ytwTalkToRecsResultsShelf"},_.P(_.h,{cond:b,
then:function(){return _.P(_.Pw,{data:b},{chipsShelfViewModel:function(v9){return _.P("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.P(_.sa,{data:v9.data,callback:u,selectionBehavior:A}))}})}}),_.P(_.h,{cond:F,
then:function(){return _.P(_.Pw,{data:F},{horizontalShelfViewModel:function(v9){return _.P("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.P(_.ZP,{data:v9.data,thumbnailAspectRatio:0}))}})}})),_.P("div",{class:_.QZ("ytwTalkToRecsRefinementContainer",(v.ytwTalkToRecsBottomMargin=function(){return Q().isMultiTurnFlow},v))},_.P(_.h,{cond:p,
then:function(){return _.P("div",{class:"ytwTalkToRecsUserInputBox"},_.P("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:t,value:k,"on:input":a,"on:keyup":g,maxlength:200}))}}),_.P(_.Pw,{data:function(){return Q().isMultiTurnFlow?Q().nextButtonViewModel:void 0}},{buttonViewModel:function(v9){return _.P("div",{class:"ytwTalkToRecsFlowControlButtons"},_.P(_.D6,{data:v9.data,
buttonOverrides:R}))}}),_.P(_.Pw,{data:d},{buttonViewModel:function(v9){return _.P("div",{class:"ytwTalkToRecsFlowControlButtons"},_.P(_.D6,{data:v9.data,
onClick:function(){var t3=_.y(Q().resetButtonViewModel,_.pH);l(k());(t3=t3==null?void 0:t3.onTap)&&_.nx(t3)}}))}}))))},"ui"),"yt-talk-to-recs-view-model",{props:{data:_.pJ}});var Jrd={sources:[{clientResource:{imageName:"CHECK"}}]};_.mS$=_.x(function(v){var Q=_.Ze("div");v=_.o1(v,{error:void 0});var V=v.data,E=v.error,b=v.onSelected;v=_.L(_.K_(function(){return BC0(V())}));
var F=v.next().value,t=v.next().value;jTI(V,function(k){t(k);var T,c,C=xvq((T=V().options)==null?void 0:(c=T[k])==null?void 0:c.value,V().type);b==null||b(C);Q.value.focus()});
v=_.EP(function(){if(!V().disabled){var k=V(),T=F(),c=Q.value;k.options&&(k=NCj(k.options,T,k.label),_.ht().resolve(_.Iu).openSheet({viewModel:k},c))}});
var p=_.gZG(),Z=function(){return!!E()},d=function(){return!!V().disabled},w={},A={};
return _.P("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.P("div",{class:_.QZ("ytDropdownViewModelDropdownContainer",(w.ytDropdownViewModelDropdownContainerErrorBorder=Z,w.ytDropdownViewModelDropdownContainerDisabled=d,w)),"on:click":v,el:Q,role:"combobox",tabindex:0,"on:keydown":p,"aria-invalid":Z,"aria-disabled":d,"aria-describedby":function(){return Z()?"dropdown-view-model-error":void 0}},_.P("div",{class:"ytDropdownViewModelText"},gy0(V,Z,F),sTh(V,F)),_.P("div",{class:_.QZ("ytDropdownViewModelChevronDown",
(A.ytDropdownViewModelChevronDownDisabled=d,A))},_.P(_.L_,{icon:"CHEVRON_DOWN"}))),u2s(V,E))},"vi");_.ad(_.x(function(v){var Q=v.data;var V=function(b){var F=oyn(Q());F.videoMetadata||(F.videoMetadata={});F.videoMetadata.sponsorshipsMetadata||(F.videoMetadata.sponsorshipsMetadata={});F.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(b)},E=function(b){var F=oyn(Q());
F.scheduledRedirectMetadata||(F.scheduledRedirectMetadata={});F.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(b)};
return _.P("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.P("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.P("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.P(_.tD,{text:function(){return Q().title}}),_.P(_.L_,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.P(_.tD,{text:function(){return Q().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.P(_.Pw,{data:function(){return Q().tierChoices}},{dropdownViewModel:function(b){return _.P("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.P(_.mS$,{data:b.data,
onSelected:V}))}}),_.P(_.Pw,{data:function(){return Q().startTimeChoices}},{dropdownViewModel:function(b){return _.P("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.P(_.mS$,{data:b.data,
onSelected:E}))}}),_.P(_.tD,{text:function(){return Q().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.P("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.P(_.Pw,{data:function(){return Q().scheduleButton}},{panelFooterViewModel:_.zR})))},"wi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;v=v.className===void 0?"":v.className;var V=_.p4(qH0,function(){return Q().flowStateEntityKey||""}),E={};
E=_.QZ("ytFlowBottomBarViewModelFlowBottomBarButtons",(E.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},E));
var b={},F=_.QZ("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",E,(b.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},b.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},b));
b={};var t=_.QZ("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",E,(b.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},b.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},b));
E={};E=_.QZ("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
E));
v=_.QZ("ytFlowBottomBarViewModelHost",v);return _.P("yt-flow-bottom-bar-view-model",{class:v},_.P(_.h,{cond:function(){var p;return(p=Q())==null?void 0:p.textSection},
then:function(p){return _.P("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.P(_.tD,{text:p}))}}),_.P("div",{class:E},_.P(_.Pw,{data:function(){return Q().secondaryButton}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data,
className:t})}}),_.P(_.Pw,{data:function(){return Q().primaryButton}},{buttonViewModel:function(p){return _.P(_.D6,{data:p.data,
className:F,buttonOverrides:function(){var Z;return{disabled:!((Z=V())==null||!Z.primaryButtonDisabled)}}})}})))},"xi"),"yt-flow-bottom-bar-view-model",{props:{data:_.pJ,
className:_.Wg}});var USn="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),xo=function(){var v=_.z.apply(this,arguments)||this;v.enableScrollingFix=!0;v.bottomBar=!1;v.fitContent=!1;return v};
_.f(xo,_.z);_.K=xo.prototype;_.K.ready=function(){_.Y("enable_pdp_icon_prefetch")&&_.nIq(_.ht().resolve(_.Am),0,USn)};
_.K.focus=function(v){this.topBar?_.iS(this.topBar,v):this.paperDialog.focus(v)};
_.K.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19453_scroller&&(this.JSC$19453_scroller.dialogElement=this.paperDialog,this.JSC$19453_scroller.attached&&typeof this.JSC$19453_scroller.attached==="function"&&this.JSC$19453_scroller.attached())};
_.K.onDataChanged=function(){var v;this.fitContent=!((v=this.data)==null||!v.fitContent);var Q;this.bottomBar=!((Q=this.data)==null||!Q.bottomBar)};
_.K.onProgressChanged=function(){var v,Q,V=((Q=(v=this.data)==null?void 0:v.progress)!=null?Q:0)*100;this.progressElement.style.width=V+"%"};
_.K.isProgressHidden=function(){var v;return!((v=this.data)==null?0:v.progress)};
_.K.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(v){return v&&!v.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
xo.prototype.onProgressChanged=xo.prototype.onProgressChanged;xo.prototype.onDataChanged=xo.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xo.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xo.prototype,"enableScrollingFix",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xo.prototype,"bottomBar",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xo.prototype,"fitContent",void 0);_.W([_.Z7("#progress"),_.X("design:type",HTMLElement)],xo.prototype,"progressElement",void 0);_.W([_.Z7("#scroller"),_.X("design:type",Object)],xo.prototype,"JSC$19453_scroller",void 0);_.W([_.Z7("ytd-flow-top-bar-renderer"),_.X("design:type",HTMLElement)],xo.prototype,"topBar",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xo.prototype,"onDataChanged",null);_.W([_.ph("data.progress"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xo.prototype,"onProgressChanged",null);_.W([_.J({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],xo);
_.B(xo,"ytd-flow-step-renderer",function(){if(fGI!==void 0)return fGI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fGI=v},{mode:1});var Bh=function(v){this.resolveCommand=v;this.steps={}},vNj=function(v,Q){Q=_.L(Q||[]);
for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=Object.values(V)[0],b=void 0;if((b=E)==null?0:b.stepId)v.steps[E.stepId]=V}},VVn=function(v,Q){var V,E,b,F,t;
return _.e(function(p){if((V=v.state)==null||!V.currentStepId)return p.return(void 0);E=v.getCurrentStep();if(!E)return p.return(QOh(v));if(b=_.y(E,_.W2))v.logVEScreen(b),((F=b)==null?0:F.onStepStartCommand)&&v.resolveCommand((t=b)==null?void 0:t.onStepStartCommand,{});b&&Q&&(v.logFlowEvent(b,Q),Q.steps&&!Q.steps.includes(E)&&Q.steps.push(E));return p.return(E)})};
Bh.prototype.back=function(){var v;(v=this.state)!=null&&v.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Bh.prototype.handleUpdateFlowCommand=function(v){v.steps&&vNj(this,v.steps);v.entityUpdateCommand&&this.resolveCommand(v.entityUpdateCommand,{});v.flowContinuationCommand&&(v=v.flowContinuationCommand)&&(this.getFlowContinuationCommand=v);this.awaitFlowContinuation&&(v=this.getCurrentStep(),this.awaitFlowContinuation(v),this.awaitFlowContinuation=void 0)};
Bh.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var QOh=function(v){return _.e(function(Q){return v.getFlowContinuationCommand?Q.return(new Promise(function(V){v.awaitFlowContinuation=V;v.getFlowContinuationCommand&&v.resolveCommand(v.getFlowContinuationCommand,{flow_state:v.state})})):Q.return(Promise.resolve(void 0))})};
Bh.prototype.getCurrentStep=function(){var v;if((v=this.state)!=null&&v.currentStepId)return this.steps[this.state.currentStepId]};
Bh.prototype.logVEScreen=function(v){var Q;((Q=v.screenLoggingData)==null?0:Q.screenVeType)&&_.S5(_.tR(),v.screenLoggingData.screenVeType)};
Bh.prototype.logFlowEvent=function(v,Q){var V,E,b,F;((V=Q.flowLoggingData)==null?0:V.eventNamespace)&&((E=v.flowEventData)==null?0:E.eventType)&&((b=v.flowEventData)==null?0:b.eventMetadata)&&((F=Q.flowLoggingData)==null?0:F.flowType)&&(v=_.Fp(Q.flowLoggingData.eventNamespace,v.flowEventData.eventType,v.flowEventData.eventMetadata),_.KF().logFlowEvent(v,Q.flowLoggingData.flowType))};
_.hr.Object.defineProperties(Bh.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.state)==null?void 0:v.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.state)!=null&&v.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(Q,V){V.key&&V.value&&(Q[V.key]=V.value);return Q},{})}}});var sN=function(){var v=_.z.apply(this,arguments)||this;v.flowState=_.Y("web_use_flow_state_manager")?void 0:new Bh(function(Q,V){V=V===void 0?{}:V;_.bd.instance.resolveCommand(Q,{form:{form:V,element:v.hostElement}})});
v.JSC$19464_flowStateManager=_.Y("web_use_flow_state_manager")?_.ht().resolve(_.BP):void 0;v.currentTargetId="";v.initialState=!0;v.isLoading=!1;v.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};v.containsTalkToRecs=!1;return v};
_.f(sN,_.z);_.K=sN.prototype;_.K.onPopupClosed=function(v){if(!v||this.hostElement===v.detail.popupRenderer){if(this.JSC$19464_flowStateManager){var Q;((Q=this.data)==null?0:Q.flowStateEntityKey)&&this.JSC$19464_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.K.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.K.focus=function(v){var Q=this;_.JM(function(){var V=_.m9(Q.hostElement).querySelector("ytd-flow-step-renderer");(V==null?0:V.topBar)?V.focus(v):Q.topBar&&_.iS(Q.topBar,v)},1)};
_.K.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.K.computeTopBarHidden=function(v){var Q;return!((Q=_.y(v,_.W2))==null||!Q.topBarOverride)};
_.K.onCurrentFlowChange=function(){if(this.JSC$19464_flowStateManager&&this.data&&this.flow){var v=Gim(this.JSC$19464_flowStateManager,this.data),Q;v&&((Q=this.flow)==null?0:Q.currentStepId)&&(OCm(v,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.K.observeData=function(){var v=this;if(this.JSC$19464_flowStateManager){var Q=this.currentTargetId,V,E,b=(E=(V=this.data)==null?void 0:V.targetId)!=null?E:"";Q!==b&&Q&&CY7(this.JSC$19464_flowStateManager,Q);this.currentTargetId=b;this.data&&MHs(Gim(this.JSC$19464_flowStateManager,this.data),function(F){F&&(v.initialState=!1,v.currentFlowStep={flowStepRenderer:F},v.isLoading=!v.currentFlowStep,v.autofocusAndRefit(),v.updateContainsTalkToRecs(),v.logVEScreen(),v.logFlowEvent())})}};
_.K.dataChanged=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1){if(!v.flowState)return E.return();((Q=v.data)==null?0:Q.steps)&&vNj(v.flowState,v.data.steps);if((V=v.data)==null?0:V.flowContinuationCommand){var b=v.flowState,F=v.data.flowContinuationCommand;F&&(b.getFlowContinuationCommand=F)}return E.yield(VVn(v.flowState,v.data),2)}v.currentFlowStep=E.yieldResult;_.q1(E)})};
_.K.flowChanged=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1){if(!v.flowState||!v.flow)return V.return();v.flowState.state=v.flow;v.isLoading=!0;return V.yield(VVn(v.flowState,v.data),2)}Q=V.yieldResult;if(!Q||v.flow.isLoading)return V.return();v.currentFlowStep=Q;v.initialState=!1;v.isLoading=!1;v.autofocusAndRefit();v.updateContainsTalkToRecs();_.q1(V)})};
_.K.logVEScreen=function(){var v,Q,V=(v=_.y(this.currentFlowStep,_.W2))==null?void 0:(Q=v.screenLoggingData)==null?void 0:Q.screenVeType;V&&_.S5(_.ht().resolve(_.o5),V)};
_.K.logFlowEvent=function(){var v=_.y(this.currentFlowStep,_.W2),Q,V,E,b,F,t;(this==null?0:(Q=this.data)==null?0:(V=Q.flowLoggingData)==null?0:V.eventNamespace)&&(this==null?0:(E=this.data)==null?0:(b=E.flowLoggingData)==null?0:b.flowType)&&(v==null?0:(F=v.flowEventData)==null?0:F.eventType)&&(v==null?0:(t=v.flowEventData)==null?0:t.eventMetadata)&&(v=_.Fp(this.data.flowLoggingData.eventNamespace,v.flowEventData.eventType,v.flowEventData.eventMetadata),_.KF().logFlowEvent(v,this.data.flowLoggingData.flowType))};
_.K.updateContainsTalkToRecs=function(){var v,Q=(v=_.y(this.currentFlowStep,_.W2))==null?void 0:v.content;this.containsTalkToRecs=!!Q&&!!_.y(Q,aah)};
_.K.autofocusAndRefit=function(){var v=this,Q=_.ht().resolve(_.d$(_.Yc)),V=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),E=document.querySelector("yt-report-form-confirmation-page-view-model"),b=document.querySelector("yt-report-form-details-page-view-model"),F=document.querySelector("yt-report-form-reason-select-page-view-model"),t=document.querySelector("yt-contributor-zero-state-view-model"),
p=document.querySelector("yt-structured-context-note-view-model"),Z=document.querySelector("yt-note-view-model");(!V&&Q&&Q.isKeyBoardInUse()||E||!V&&b||!V&&F||!V&&(t||p||Z))&&_.Lp(this.hostElement);_.PE(this,function(){_.Hj(v.hostElement,"yt-refit")})};
_.K.handleUpdateFlowCommand=function(v){this.flowState?this.data&&(v=_.y(v,_.idZ),v.targetId===this.data.targetId&&(v.flowContinuationCommand&&(this.data.flowContinuationCommand=v.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(v),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(v)};
_.K.handleFlowNextStepCommand=function(v){this.JSC$19464_flowStateManager?this.ytComponentBehavior.resolveCommand(v):this.data&&this.flow&&this.flow.key&&(v=_.y(v,_.E9q),v.targetId===this.data.targetId&&(v=v.stepId||"",this.ytdReduxBehavior.dispatch(_.Gz("flowStateEntity",this.flow.key,{currentStepId:v,stepIdStack:(this.flow.stepIdStack||[]).concat(v)}))))};
_.K.handleFlowPrevStepCommand=function(v){if(this.JSC$19464_flowStateManager)this.ytComponentBehavior.resolveCommand(v);else if(this.data&&this.flow&&this.flow.key&&(v=_.y(v,_.bd8),v.targetId===this.data.targetId)){var Q=[].concat(_.ui(this.flow.stepIdStack||[]));Q.length>1?(Q.pop(),this.ytdReduxBehavior.dispatch(_.Gz("flowStateEntity",this.flow.key,{currentStepId:Q[Q.length-1],stepIdStack:Q}))):v.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(v.onFirstStepCommand)}};
_.K.handleYpcCancelRecurrenceCommand=function(v){if(this.data&&this.flow&&this.flow.key&&(v=_.y(v,mo8),v.targetId===this.data.targetId&&v.endpointCommand)){var Q=_.y(this.flow,Uo$);Q&&_.y(v.endpointCommand,_.k$q)&&(_.y(v.endpointCommand,_.k$q).feedbackData=Q.surveyFeedback);this.ytComponentBehavior.resolveCommand(v.endpointCommand)}};
_.K.handlePartialUpdateFlowStateEntity=function(v){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Gz("flowStateEntity",this.flow.key,v,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
sN.prototype.flowChanged=sN.prototype.flowChanged;sN.prototype.dataChanged=sN.prototype.dataChanged;sN.prototype.observeData=sN.prototype.observeData;sN.prototype.onCurrentFlowChange=sN.prototype.onCurrentFlowChange;sN.prototype.onPopupClosed=sN.prototype.onPopupClosed;_.W([_.M(_.QU),_.X("design:type",Object)],sN.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],sN.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sN.prototype,"initialState",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sN.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Object)],sN.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],sN.prototype,"currentFlowStep",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],sN.prototype,"onPopupClosed",null);
_.W([_.q({selectorArgs:["data.flowStateEntityKey"],selector:qH0}),_.X("design:type",Object)],sN.prototype,"flow",void 0);_.W([_.Z7("ytd-flow-top-bar-renderer"),_.X("design:type",HTMLElement)],sN.prototype,"topBar",void 0);_.W([_.ph("data","flow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sN.prototype,"onCurrentFlowChange",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sN.prototype,"observeData",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],sN.prototype,"dataChanged",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sN.prototype,"containsTalkToRecs",void 0);_.W([_.wg("flow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],sN.prototype,"flowChanged",null);_.W([_.J({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],sN);
_.ENh=_.Hn()(sN,"ytd-flow-root-renderer",function(){if(cys!==void 0)return cys;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cys=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var bF5;var Q$=null;_.ad(_.x(function(v){return _.P("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.P("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.P(_.tD,{text:function(){return v.data().text}}),_.P("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"yi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.pJ}});var F9q=_.x(function(v){var Q=v.playerControlsProps;var V=v.isShortsPage;return _.P("yt-bigboard",null,_.P(_.h,{cond:function(){return Q().isDragging},
then:function(){return _.P("div",{class:"ytBigboardStoryboardHost"},_.P(_.ad0,{progressBarProps:Q,isShortsPage:V}))}}))},"zi");
F9q.idomCompat=!0;_.u1={ACCOUNT_LABEL:V$("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:V$("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:V$("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:V$("AD_BADGE_HINT"),AD_BADGE_TEXT:V$("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:V$("ALL_CHANNELS_LABEL"),AMBIENT_MODE:V$("AMBIENT_MODE"),AMBIENT_MODE_OFF:V$("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:V$("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:V$("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:V$("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:V$("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:V$("APP_UPSELL_TITLE"),AUDIO_TRACK:V$("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:V$("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:V$("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:V$("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:V$("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:V$("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:V$("AUTO_ZOOM","Auto zoom"),BACK:V$("BACK"),CANCEL:V$("CANCEL"),CHANNEL_SWITCHER_LABEL:V$("CHANNEL_SWITCHER_LABEL"),CLOSE:V$("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:V$("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:V$("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:V$("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:V$("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:V$("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:V$("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:V$("COMMENT_MODAL_CONTENT"),CONFIRM_OK:V$("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:V$("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:V$("COPIED_TO_CLIPBOARD"),COPY:V$("COPY"),COPY_DEBUG_INFO:V$("COPY_DEBUG_INFO"),COPY_EMBED_CODE:V$("COPY_EMBED_CODE"),
COPY_LINK_LABEL:V$("COPY_LINK_LABEL"),COPY_VIDEO_URL:V$("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:V$("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:V$("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:V$("DELETE_FROM_DOWNLOADS"),DIALOG:V$("DIALOG"),DONE:V$("DONE"),DOWNLOAD:V$("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:V$("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:V$("FLAG_CONFIRM"),FLAG_CONTENT:V$("FLAG_CONTENT"),FLAG_LABEL:V$("FLAG_LABEL"),FLAG_TITLE:V$("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:V$("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:V$("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:V$("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:V$("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:V$("HIDE_SEARCH_FILTERS_LABEL"),HOME:V$("HOME","Home"),INVALID_RESPONSE_RECEIVED:V$("INVALID_RESPONSE_RECEIVED"),LIBRARY:V$("LIBRARY","Library"),LISTENING:V$("LISTENING"),LOADING:V$("LOADING"),LONG_PRESS_MIC_TO_SPEAK:V$("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:V$("LOOP"),MENU_DESKTOP:V$("MENU_DESKTOP"),
MENU_EXIT:V$("MENU_EXIT"),MENU_FEEDBACK:V$("MENU_FEEDBACK"),MENU_HELP:V$("MENU_HELP"),MENU_IMPRESSUM:V$("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:V$("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:V$("MENU_SETTINGS"),MENU_SIGN_IN:V$("MENU_SIGN_IN"),MENU_TITLE:V$("MENU_TITLE"),MENU_YOUR_DATA:V$("MENU_YOUR_DATA"),MORE_INFO:V$("MORE_INFO"),MORE_OPTIONS:V$("MORE_OPTIONS"),MUTE_VOLUME:V$("MUTE_VOLUME"),NEW_PLAYLIST:V$("NEW_PLAYLIST"),NEXT_VIDEO:V$("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:V$("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:V$("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:V$("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:V$("NOT_FOUND_TITLE"),NO_DOWNLOADS:V$("NO_DOWNLOADS"),NO_MIC_INPUT:V$("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:V$("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:V$("OOPS_MESSAGE"),OPEN_APP:V$("OPEN_APP"),OPEN_YOUTUBE:V$("OPEN_YOUTUBE"),PAUSE:V$("PAUSE"),PLAY:V$("PLAY"),PLAYER_CAPTION:V$("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:V$("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:V$("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:V$("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:V$("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:V$("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:V$("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:V$("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:V$("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:V$("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:V$("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:V$("PLAYER_MINIMIZE"),PLAYER_NEXT:V$("PLAYER_NEXT"),PLAYER_PAUSE:V$("PLAYER_PAUSE"),PLAYER_PLAY:V$("PLAYER_PLAY"),
PLAYER_PREVIOUS:V$("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:V$("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:V$("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:V$("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:V$("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:V$("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:V$("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:V$("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:V$("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:V$("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:V$("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:V$("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:V$("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:V$("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:V$("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:V$("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:V$("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:V$("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:V$("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:V$("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:V$("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:V$("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:V$("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:V$("PLAY_ALL"),PLEASE_FIX_ERRORS:V$("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:V$("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:V$("PREVIOUS_VIDEO"),PRIVACY_POLICY:V$("PRIVACY_POLICY"),RELOAD:V$("RELOAD"),REQUIRED_LABEL:V$("REQUIRED_LABEL"),SAVE_PLAYLIST:V$("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:V$("SCRUB_SLIDE_USER_EDU"),SEARCH:V$("SEARCH","Search"),
SEARCH_APPEND_LABEL:V$("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:V$("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:V$("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:V$("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:V$("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:V$("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:V$("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:V$("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:V$("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:V$("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:V$("SEEK_SLIDER"),SETTINGS_LABEL:V$("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:V$("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:V$("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:V$("SHOW_LESS"),SHOW_MORE:V$("SHOW_MORE"),SHOW_PLAYER_CONTROLS:V$("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:V$("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:V$("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:V$("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:V$("SIGN_IN_ON_WEB"),STABLE_VOLUME:V$("STABLE_VOLUME"),STABLE_VOLUME_OFF:V$("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:V$("STABLE_VOLUME_ON"),STATS_FOR_NERDS:V$("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:V$("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:V$("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:V$("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:V$("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:V$("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:V$("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:V$("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:V$("TIMESTAMP_SECONDS"),TOGGLE_OFF:V$("TOGGLE_OFF"),TOGGLE_ON:V$("TOGGLE_ON"),TRENDING:V$("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:V$("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:V$("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:V$("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:V$("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:V$("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:V$("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:V$("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:V$("VIDEO_LINK_LABEL")};var K9Y=_.x(function(v){var Q=v.playerApi;v=_.Ze("button",function(E){_.gN(E,36843)});
var V=V$("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.P("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.P("button",{el:v,class:"ytPlayerControlsJumpForwardButtonButton",title:V,"aria-label":V,"on:click":_.EP(function(){_.sW(36843);Q&&Q().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.P("span",null,_.P(_.L_,{icon:"FAST_FORWARD"}))))},"Ai");var iFq=_.x(function(v){var Q=v.appApi;v=_.Ze("button",function(E){_.gN(E,62946)});
var V=V$("OPEN_IN_MINIPLAYER");return _.P("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.P("button",{el:v,class:"ytMiniplayerButtonButton",title:V,"aria-label":V,"on:click":_.EP(function(){_.sW(62946);var E,b;(b=(E=Q()).openInMiniplayer)==null||b.call(E);return!1})},_.P(_.L_,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Bi");var L9h=_.x(function(v){var Q=v.playerApi;v=_.Ze("button",function(F){_.gN(F,142812)});
var V=_.L(_.Ge(!1,void 0,"eOMRAb")),E=V.next().value,b=V.next().value;V=function(){return V$("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(E()?1:2)})};
return _.P("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.P("button",{el:v,class:"ytPlaybackSpeedButtonButton",title:V,"aria-label":V,"on:click":_.EP(function(){_.sW(142812);if(Q){var F=Q(),t=E();F.setPlaybackRate(t?1:2);b(!E())}return!1})},_.P("span",null,_.P(_.L_,{icon:function(){return E()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ci");var tVm=_.x(function(v){var Q=v.title;var V=v.ariaLabel;var E=v.icon;var b=v.command;var F=v.visualElementId;v=_.Ze("button",function(t){F&&_.gN(t,F())});
return _.P("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.P("button",{el:v,class:"ytdThumbnailOverlayButtonButton",title:Q,"aria-label":V,"on:click":_.EP(function(){F&&_.sW(F());b&&_.ht().resolve(_.At).resolveCommand(b())})},_.P(_.L_,{icon:E})))},"Di");var ao="";var pHY=_.x(function(v){var Q=v.playerControlsProps,V=v.onClickFn;v=_.Rr(function(){var F=Q(),t=-1;F.captionsAvailable&&(t=F.captionsEnabled?1:0);return t},void 0,"MZ0Wqe");
var E=_.Rr(function(){var F=Q();return F.captionsAvailable?_.Lt(F.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Lt("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),b=_.Rr(function(){var F=Q();
F=F.captionsAvailable?F.captionsEnabled:void 0;return F},void 0,"fhuQRe");
return _.P("yt-closed-captions-toggle-button",null,_.P(_.n0h,{captionIconType:v,ariaLabel:E,ariaPressed:b,onClick:function(F){var t=Q();if(t.captionsAvailable){var p=t.playerApi;if(p){var Z=t.playerApi;if(Z){var d=ao;if(d){Z=Z.getOption("captions","track");var w;ao=(w=Z?Z.displayName:null)!=null?w:d}else _.BJ(Z)?(d=_.Oy9(Z),ao=d.length?(w=NXn(d))?w.displayName:d[0].displayName:""):ao=""}xFh(p);_.Y("mweb_disable_set_state_captions_killswitch")&&t.setState({captionsEnabled:!t.captionsEnabled})}}var A,
k;(k=(A=t.appApi).showCaptionsToggleToast)==null||k.call(A,t);V==null||V(F)},
isOverlay:!0}))},"Ei");var e2h=_.x(function(v){var Q=v.data;return _.P("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.P(_.KP,{data:function(){return{type:17,text:_.S1T(Q().label)}}}))},"Fi");var ZFj=_.x(function(v){var Q=_.QZ("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return v.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return v.size()==="small"?v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.P("animated-seek-arrows",{class:_.QZ("ytPlayerControlsAnimatedSeekArrowsHost")},_.P("span",{class:Q}),_.P("span",{class:Q}),_.P("span",{class:Q}))},"Gi");
ZFj.idomCompat=!0;var PKf=_.x(function(){var v=_.Lt("PLAYER_SECONDS",{seconds_placeholder:"30"}),Q=_.L(_.Ge(!1,void 0,"iRJu8c")),V=Q.next().value,E=Q.next().value,b=_.L(_.Ge(!1,void 0,"MPnizf"));Q=b.next().value;var F=b.next().value;b={};var t=_.QZ("jumpForwardOverlayOverlay",(b.jumpForwardOverlayOverlayHidden=Q,b));_.jg(function(){var p=null,Z=null,d=function(){p!==null&&_.yX().cancelJob(p);Z!==null&&_.yX().cancelJob(Z);F(!0);E(!0);_.md(_.yX(),function(){F(!1)});
p=_.md(_.yX(),function(){F(!0);Z=_.md(_.yX(),function(){E(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",d);_.j_(function(){window.removeEventListener("jump-forward-clicked",d)})});
return _.P("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.P(_.h,{cond:V,then:function(){return _.P("div",{class:t},_.P(ZFj,{direction:1,size:"large"}),_.P("div",null,v))}}))},"Hi");var d2n=_.u1.MUTE_VOLUME,h2I=_.u1.UNMUTE_VOLUME,wH8=_.x(function(v){var Q=v.muteIconType;var V=v.onClick;var E=v.useOutlineIcon;var b=v.useDelhiIcons;v=_.Ze("button",function(p){_.gN(p,28662)});
var F=function(){var p=Q(),Z=E==null?void 0:E(),d=b==null?void 0:b(),w="",A="";switch(p){case -1:case 0:w=Z?"VOLUME_OFF":d?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";A=h2I;break;case 1:w=Z?"VOLUME_UP_OUTLINE":d?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";A=d2n;break;case 2:w=Z?"VOLUME_DOWN_OUTLINE":d?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";A=d2n;break;default:_.rV(p)}return{iconName:w,ariaLabel:A}},t=function(){return F().ariaLabel};
return _.P("ytm-mute-button",{class:"ytmMuteButtonHost"},_.P("button",{el:v,class:"ytmMuteButtonButton",title:t,"aria-label":t,"on:click":_.EP(function(p){_.sW(28662);V==null||V(p);return!1})},_.P("span",null,_.P(_.L_,{icon:function(){return F().iconName}}))))},"Ii");var An5=_.x(function(v){var Q=v.volumeProps;var V=v.onClickFn;var E=v.useOutlineIcon;var b=v.useDelhiIcons;return _.P("yt-mute-toggle-button",null,_.P(wH8,{muteIconType:function(){var F=Q();return F.volumeMuted||F.volume===0?0:F.volume>50?1:2},
onClick:function(F){var t=Q().playerApi;t&&(t.isMuted()?t.unMute():t.mute(!1));V==null||V(F)},
useOutlineIcon:function(){return!(E==null||!E())},
useDelhiIcons:function(){return!(b==null||!b())}}))},"Ji");
An5.idomCompat=!0;var kAY=_.x(function(v){var Q=v.data;var V=_.Ze("ytm-paid-content-overlay-renderer");return _.P("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:V,"on:animationend":_.EP(function(){V.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.P(_.yL,{command:function(){return Q().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.P(_.h,{cond:function(){var E;return(E=Q().icon)==null?void 0:E.iconType},
then:function(){return _.P("span",null,_.P(_.L_,{icon:function(){var E;return(E=Q().icon)==null?void 0:E.iconType}}))}}),_.P("div",{class:"ytmPaidContentOverlayText"},_.P(_.tD,{text:function(){return Q().text}})),_.P(_.h,{cond:function(){return Q().navigationEndpoint},
then:function(){return _.P(_.L_,{icon:"CHEVRON_RIGHT"})}})))},"Ki");
kAY.idomCompat=!0;var iCY=[].concat(_.ui([{register:function(v){var Q=AYh(v),V;(V=v().playerApi)==null||V.addEventListener("onVolumeChange",Q);return function(){}}},
{register:function(v){var Q=kid(v);v=v().playerApi;v==null||v.addEventListener("captionschanged",Q);v==null||v.addEventListener("captionssettingschanged",Q);v==null||v.addEventListener("onCaptionsTrackListChanged",Q);return function(){}}}]),[{register:function(v){var Q=PYq(v),V;
(V=v().playerApi)==null||V.addEventListener("onStateChange",Q);return function(){}}},
{register:function(v){var Q=doh(v),V;(V=v().playerApi)==null||V.addEventListener("onPlaybackRateChange",Q);return function(){}}},
{register:function(v){var Q=had(v),V;(V=v().playerApi)==null||V.addEventListener("onVideoDataChange",Q);return function(){}}},
{register:function(v){var Q=wjm(v),V,E;(V=v())==null||(E=V.playerApi)==null||E.addEventListener("onVideoProgress",Q);return function(){}}}]);var TH0=_.x(function(v){var Q=v.data;var V=function(){return _.Lt("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+Q().playbackRate})};
return _.P(_.h,{cond:function(){return Q().playbackRate&&Q().playbackRate!==1},
then:function(){return _.P("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.P("div",{class:"ytPlaybackRateOverlayOverlay"},_.P(ZFj,{direction:1,size:"small"}),_.P("div",{class:"ytPlaybackRateOverlayLabel"},V)))}})},"Mi");var Ypd=_.x(function(v){var Q=v.data;return _.P("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.P(_.h,{cond:function(){var V,E=(V=Q())==null?void 0:V.playerResponse,b;return E==null?void 0:(b=E.paidContentOverlay)==null?void 0:b.paidContentOverlayRenderer},
then:function(V){return _.P(kAY,{data:V})}}))},"Oi"),ynY=_.x(function(v){var Q=v.props;
var V=v.data;var E=v.options;var b=function(){var d,w,A,k;return(d=V())==null?void 0:(w=d.playerResponse)==null?void 0:(A=w.playerConfig)==null?void 0:(k=A.inlinePlaybackConfig)==null?void 0:k.showAudioControls},F=function(){var d,w;
if(b()&&((d=E())==null?void 0:(w=d.additionalButton)==null?void 0:w.button)!==void 0){var A,k,T;d=(A=V())==null?void 0:(k=A.playerApi)==null?void 0:(T=k.getSize())==null?void 0:T.height;if(!(d===void 0||d<180)){var c,C;return(c=E())==null?void 0:(C=c.additionalButton)==null?void 0:C.button}}},t=function(){var d,w;
return(d=E())==null?void 0:(w=d.additionalButton)==null?void 0:w.thumbnailOverlayButtonRenderers},p=function(){var d,w;
return(d=E())==null?void 0:(w=d.additionalButton)==null?void 0:w.thumbnailOverlayButtonViewModels},Z=function(){var d=[_.P(An5,{volumeProps:Q})],w;
((w=E())==null?0:w.hideCaptionsToggleButton)||d.push(_.P(pHY,{playerControlsProps:Q}));F()===1&&d.push(_.P(K9Y,{playerApi:function(){return Q().playerApi}}));
F()===2&&d.push(_.P(iFq,{appApi:function(){return Q().appApi}}));
F()===3&&d.push(_.P(L9h,{playerApi:function(){return Q().playerApi}}));
w=t();if(F()===4&&w){w=_.L(w);for(var A=w.next(),k={};!A.done;k={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$603:void 0},A=w.next()){A=A.value;k.tooltip$jscomp$2=A.tooltip;var T=void 0,c=void 0;k.ariaLabel$jscomp$19=((T=A.accessibility)==null?void 0:(c=T.accessibilityData)==null?void 0:c.label)||k.tooltip$jscomp$2;T=void 0;k.icon$jscomp$50=(T=A.icon)==null?void 0:T.iconType;k.command$jscomp$603=A.command;k.tooltip$jscomp$2&&k.ariaLabel$jscomp$19&&k.icon$jscomp$50&&
d.push(_.P(tVm,{title:function(C){return function(){return C.tooltip$jscomp$2}}(k),
ariaLabel:function(C){return function(){return C.ariaLabel$jscomp$19}}(k),
icon:function(C){return function(){return C.icon$jscomp$50}}(k),
command:function(C){return function(){return C.command$jscomp$603}}(k)}))}}w=p();
if(F()===4&&w)for(w=_.L(w),A=w.next(),k={};!A.done;k={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$604:void 0,trackingParamsVeType:void 0},A=w.next())A=A.value,k.tooltip$jscomp$3=A.title,k.ariaLabel$jscomp$20=A.accessibilityText||k.tooltip$jscomp$3,k.icon$jscomp$51=A.iconName,k.command$jscomp$604=_.MQ(A.onTap),c=T=void 0,k.trackingParamsVeType=((T=A.loggingDirectives)==null?0:T.trackingParams)?(c=Xjh(_.H9(A.loggingDirectives.trackingParams)))==null?void 0:
_.h5(c,2):void 0,k.tooltip$jscomp$3&&k.ariaLabel$jscomp$20&&k.icon$jscomp$51&&d.push(_.P(tVm,{title:function(C){return function(){return C.tooltip$jscomp$3}}(k),
ariaLabel:function(C){return function(){return C.ariaLabel$jscomp$20}}(k),
icon:function(C){return function(){return C.icon$jscomp$51}}(k),
command:function(C){return function(){return C.command$jscomp$604}}(k),
visualElementId:function(C){return function(){return C.trackingParamsVeType}}(k)}));
return d};
return _.P(_.h,{cond:b,then:function(){return _.P("div",{class:"ytInlinePlayerControlsTopRightControls"},_.P(_.xb,{each:Z},function(d){return _.P("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.P("div",{class:"ytInlinePlayerControlsButtonIcon"},d))}))}})},"Pi"),GAI=_.x(function(v){var Q=v.props;
var V=v.data;var E=v.options;v={};v=_.QZ("ytInlinePlayerControlsBottomRightControls",(v.ytInlinePlayerControlsBottomRightControlsHidden=function(){var b;return Ynm(V(),E())&&((b=E())==null?void 0:b.insetProgressBar)&&(Q().isHovering||Q().isDragging)},v));
return _.P("div",{class:v},_.P(cnf,{data:V}),_.P(_.h,{cond:function(){var b;return!((b=E())==null?0:b.hideTimeDisplay)},
then:function(){return _.P(fl5,{props:Q,data:V})}}))},"Qi"),cnf=_.x(function(v){var Q=v.data;
return _.P(_.Pw,{data:function(){var V;return Fbh((V=Q())==null?void 0:V.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:e2h})},"Ri"),fl5=_.x(function(v){var Q=v.props;
var V=v.data;return _.P(_.h,{cond:function(){return Q().isLive},
then:function(){return _.P(CKq,{props:Q,data:V})},
else:function(){return _.P(MVn,{props:Q,data:V})}})},"Si"),MVn=_.x(function(v){var Q=v.props;
var V=v.data;var E=_.Rr(function(){var b;return Kbd((b=V())==null?void 0:b.thumbnailOverlays)},void 0,"AFvHu");
return _.P("div",{class:_.QZ("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.u1.PLAYER_TIME_ELAPSED+" "+_.mUB(Q().playedTime)}},_.P(_.KP,{data:function(){var b=_.mUB(Q().videoDuration-Q().playedTime);
return Object.assign({},{type:17,text:b},E())}}))},"Ti"),OF8=_.x(function(v){v=v.badgeShapeData;
return _.P("div",{class:_.QZ("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.P(_.KP,{data:v}))},"Ui"),CKq=_.x(function(v){var Q=v.data;
v=_.Rr(function(){if(_.Y("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var E,b;return(E=Q())==null?void 0:(b=E.thumbnailOverlays)==null?void 0:b.find(function(F){return F.thumbnailOverlayTimeStatusRenderer||F.thumbnailOverlayBadgeViewModel})}},void 0,"y9XYN");
var V=_.Rr(function(){var E,b,F,t,p,Z;return _.x8o((E=Q())==null?void 0:(b=E.playerApi)==null?void 0:(F=b.getSize())==null?void 0:F.width,(t=Q())==null?void 0:(p=t.playerApi)==null?void 0:(Z=p.getSize())==null?void 0:Z.height)},void 0,"anNoxe");
return _.P(_.h,{cond:v,then:function(E){return _.P(_.Pw,{data:E},{thumbnailOverlayTimeStatusRenderer:function(b){var F=b.data;b=_.Rr(function(){return _.Mlr(F(),0)},void 0,"Ncdcme");
return _.P(OF8,{badgeShapeData:b})},
thumbnailOverlayBadgeViewModel:function(b){return _.P(_.ObX,{data:b.data,thumbnailSize:V})}})},
else:function(){var E={type:18,text:_.u1.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.P(OF8,{badgeShapeData:function(){return E}})}})},"Vi"),D2s=_.x(function(v){var Q=v.props;
var V=v.data;var E=v.options;return _.P(_.ULf,{progressBarProps:Q,config:function(){var b,F=_.y((b=V())==null?void 0:b.multiMarkersPlayerBar,_.WsA),t;b=((t=E())==null?0:t.insetProgressBar)?2:1;var p;t=(p=E())==null?void 0:p.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:b,chapterData:F,isInlinePlayback:!0,doSeekOnClick:t,playheadDotBehavior:t?1:0}}})},"Wi");_.ad(_.x(function(v){var Q=v.data;var V=v.appApi;var E=v.options;var b=ZCd(Q,Tif(V));v={};V={};return _.P("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.P("div",{class:_.QZ("ytInlinePlayerControlsDarkenedOverlay",(v.ytInlinePlayerControlsDarkenedOverlayShow=function(){return b().isHovering},v))}),_.P(PKf,null),_.P(TH0,{data:b}),_.P(Ypd,{data:Q}),_.P(F9q,{playerControlsProps:b,
isShortsPage:!1}),_.P("div",{class:_.QZ((V.ytInlinePlayerControlsControlsHidden=function(){return b().isDragging},V))},_.P(ynY,{props:b,
data:Q,options:E}),_.P(GAI,{props:b,data:Q,options:E})),_.P(_.h,{cond:function(){return Ynm(Q(),E())},
then:function(){return _.P(D2s,{props:b,data:Q,options:E})}}))},"Ni"),"yt-inline-player-controls",{props:{data:_.pJ,
appApi:_.Wg,options:_.pJ}});var jf=function(){var v=_.z.apply(this,arguments)||this;v.opts=null;v.playerControlsData=null;v.playerControlsAppApi={openInMiniplayer:function(){v.openInMiniplayer()}};
v.playerControlsOptions={};v.noAnimation=!1;v.playbackIntentTriggered=!1;v.positionData=null;v.hidden=!0;v.active=!1;v.playing=!1;v.persistentPanelVisible=!1;v.videoPreviewDataIndex=0;v.JSC$19507_playerPromise=null;v.player=null;v.enableAudioControls=!1;v.hasBeenUnmuted=!1;v.captionsHaveBeenTurnedOff=!1;v.JSC$19507_playerEvents=new Map;v.videoPreviewFetchRequest=null;v.scheduledPreviewEndJobId=null;v.JSC$19507_preventProgressSaveTimer=null;v.watchEndpointStartTimeUpdaterInterval=null;v.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};v.windowOnBlurFn=function(){v.deactivate()};
return v};
_.f(jf,_.z);_.K=jf.prototype;
_.K.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.K.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19507_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19507_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19507_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19507_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Lh(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Lh(this,this.onScroll))};
_.K.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Lh(this,this.onScroll))};
_.K.onPageTypeChange=function(){this.deactivate()};
_.K.onWindowResized=function(){this.deactivate()};
_.K.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.K.onCaptionsChanged=function(v){v=!!v.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!v);this.setCaptionSize()};
_.K.setCaptionSize=function(){var v;if(this.active&&!this.captionsHaveBeenTurnedOff&&((v=this.player)==null?0:v.getCaptionWindowContainerId())){var Q;(Q=this.player)==null||Q.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.K.currentPageAllowed=function(){return!this.isWatchPage};
_.K.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.Y("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var v=this.positionData,Q=v.initialTopPosition,V=v.initialHorizontalPosition;_.F6(this.hostElement,{"--ytd-video-preview-translate-left":v.finalHorizontalPosition-V+"px","--ytd-video-preview-translate-top":v.finalTopPosition-Q+"px","--ytd-video-preview-original-top-position":Q+
"px","--ytd-video-preview-original-horizontal-position":V+"px","--ytd-video-preview-initial-scale":"scale("+v.initialScale+")","--ytd-video-preview-width":v.videoPreviewWidth+"px","--ytd-video-preview-height":v.videoPreviewHeight+"px"});return!0};
_.K.isOutOfBounds=function(v){var Q=v.initialHorizontalPosition+12;v=Q+v.videoPreviewWidth>window.innerWidth;return Q<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&Q<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&Q<72||v};
_.K.handleOpenVideoPreviewAction=function(v){var Q=this,V;return _.e(function(E){if(!Q.currentPageAllowed())return E.return(0);Q.opts=v;return(V=Q.alignVideoPreviewForAnimation(v.thumbnail))?E.return(Q.activate()):E.return(0)})};
_.K.onMouseLeave=function(v){var Q,V;(Q=this.opts)==null||(V=Q.mouseleaveCallback)==null||V.call(Q);this.shouldDeactivateOnMouseLeave(v)&&this.deactivate()};
_.K.onScroll=function(){var v,Q;((v=this.opts)==null?0:v.isAutoplay)&&((Q=this.opts)==null?0:Q.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.K.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.XT.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.K.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.K.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",jf.JSC$19506_DEFAULT_CLICK_LOCATION_BEHAVIOR,jf.JSC$19506_CLICK_LOCATION_ID_MAP)};
_.K.shouldDeactivateOnMouseLeave=function(v){v=v.relatedTarget;if(!v)return!0;var Q;return(Q=this.opts)!=null&&Q.mediaRenderer?!_.Up(this.opts.mediaRenderer).contains(v):!0};
_.K.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.K.onPlaybackStart=function(){var v=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19507_preventProgressSaveTimer=
_.md(_.XT,function(){v.resetPreventProgressSaveTimer()},1E4);
var Q;if((Q=this.opts)==null?0:Q.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.md(_.XT,function(){v.hasMultipleVideoPreviews()?v.startPlaybackForNextVideo():v.deactivate()},this.opts.videoPreviewDurationMs);
var V;this.player.setGlobalCrop(((V=this.opts)==null?0:V.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.K.getRoundedCornersSize=function(){var v;if((v=this.opts)==null?0:v.roundedCornersSize){var Q;return(Q=this.opts)==null?void 0:Q.roundedCornersSize}var V;if((V=this.opts)==null?0:V.enableRounding){var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="small")return 1;var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="medium")return 2;var F;if(((F=this.opts)==null?void 0:F.thumbnailSize)==="large")return 3}return _.Y("web_imp_inset_progress_bar")?3:0};
_.K.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.K.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.K.onMediaContainerClick=function(v){this.isShortcutClick(v)||(this.navigateToWatch(v),v.preventDefault(),v.stopPropagation())};
_.K.activate=function(){var v=this,Q,V,E,b,F,t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:if(!v.currentPageAllowed())return w.return(0);V=(Q=v.videoPreviewData)==null?void 0:Q.inlinePlaybackEndpoint;E=_.Js.instance;if(!V||!E)return w.return(0);v.playbackIntentTriggered=!0;((b=v.opts)==null?0:b.mediaRenderer)&&((F=v.opts)==null||!F.isAutoplay)&&Qxm(v.opts.mediaRenderer,function(){v.deactivate()});
_.PE(v,function(){v.revealPreviewUi()});
t={};_.Y("enable_unknown_lact_fix_on_html5")&&(_.ht().resolve(_.dS),t.lact=_.kh());v.videoPreviewFetchRequest=$v0(E,v.getInlinePlaybackRequestData(v.videoPreviewData),t);_.GC(w,2);return w.yield(v.videoPreviewFetchRequest,4);case 4:p=w.yieldResult;if(((Z=p)==null?void 0:(d=Z.playabilityStatus)==null?void 0:d.status)==="OK")return w.return(v.handlePlayerResponse(p));throw Error("fk");case 2:_.n$(w),v.deactivate();case 3:return w.return(1)}})};
_.K.getInlinePlaybackRequestData=function(v){var Q,V=_.Y("web_imp_player_mute_params")?((Q=this.opts)==null?void 0:Q.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:v.inlinePlaybackEndpoint,startPlaybackInMutedState:V}};
_.K.handlePlayerResponse=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A,k,T,c,C;return _.e(function(R){if(R.nextAddress==1){V=Q.getInlinePlaybackVideoId();if(!(((E=v)==null?0:(b=E.videoDetails)==null?0:b.videoId)&&Q.currentPageAllowed()&&Q.playbackIntentTriggered&&Q.opts&&V))return Q.deactivate(),R.return(0);if(v.videoDetails.videoId!==V)return R.return(0);Q.enableAudioControls=!!((F=v.playerConfig)==null?0:(t=F.inlinePlaybackConfig)==null?0:t.showAudioControls);v.trackingParams=Q.getInlinePlaybackTrackingParams();
if(!Q.inlinePlayer)return R.return(0);p={};if(d=_.y((Z=Q.videoPreviewData)==null?void 0:Z.inlinePlaybackEndpoint,_.sn))p.watch_endpoint=d;if(Q.videoPreviewData){var l,S=(l=_.y(Q.videoPreviewData.inlinePlaybackEndpoint,_.sn))==null?void 0:l.startTimeSeconds;S!==void 0&&(v.playerConfig||(v.playerConfig={}),v.playerConfig.playbackStartConfig||(v.playerConfig.playbackStartConfig={}),v.playerConfig.playbackStartConfig.startPosition||(v.playerConfig.playbackStartConfig.startPosition={}),v.playerConfig.playbackStartConfig.startSeconds=
S,v.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(S*1E3))}Q.inlinePlayer.loadVideoWithPlayerResponse(v,p);if(Q.JSC$19507_playerPromise)return R.jumpTo(2);Q.JSC$19507_playerPromise=Q.inlinePlayer.getPlayerPromise();return R.yield(Q.JSC$19507_playerPromise,3)}R.nextAddress!=2&&(w=R.yieldResult,w.setInlinePreview(!0),A=!_.Y("web_imp_theater_bugfix"),w.setSizeStyle(!1,A),Q.ytPlayerListenerBehavior.listenToPlayerEvents(w,Q.JSC$19507_playerEvents),Q.player=w,_.Hj(Q.hostElement,
"player-api-ready"));((k=Q.opts)==null?0:k.showPlayerControls)&&Q.videoPreviewData&&Q.player&&(Q.playerControlsData={playerResponse:v,isInlinePlayback:!0,thumbnailOverlays:Q.videoPreviewData.thumbnailOverlays,playerApi:Q.player},Q.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!Q.unroundCornersForPlayback,additionalButton:Q.getAdditionalButtonType(Q.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(T=Q.opts)==null?void 0:T.hideTimeDisplay,hideScrubbingControls:(c=Q.opts)==
null?void 0:c.hideScrubber,hideCaptionsToggleButton:(C=Q.opts)==null?void 0:C.hideCaptionsToggleButton});return R.return(2)})};
_.K.revealPreviewUi=function(){var v=this;this.playbackIntentTriggered&&_.wC3(this,function(){v.hasThumbnailPositionChangedSinceTriggered()||(v.updateActiveState(!0),v.noAnimation=!1)})};
_.K.hasThumbnailPositionChangedSinceTriggered=function(){var v=this.positionData,Q=this.getThumbnailPositionData();return(v==null?void 0:v.initialTopPosition)!==(Q==null?void 0:Q.initialTopPosition)||(v==null?void 0:v.initialHorizontalPosition)!==(Q==null?void 0:Q.initialHorizontalPosition)};
_.K.getThumbnailPositionData=function(){var v,Q;if((Q=this.opts)==null||!Q.thumbnail)return null;Q=this.opts.thumbnail;var V=((v=this.opts)==null?0:v.cropPlayerToFillThumbnailHorizontally)?!1:!0;var E=Q.getBoundingClientRect();v=E.width;Q=E.height;var b=E.top+window.scrollY;E=E.left+window.scrollX;var F=V?Math.ceil(v):v;V=V?Math.ceil(Q):Q;var t=v/F;v={initialScale:t,initialTopPosition:b-12*t,finalTopPosition:b-12-(V-Q)/2,initialHorizontalPosition:E-(12+(F-v)/2),finalHorizontalPosition:E-12-(F-v)/
2,videoPreviewWidth:F,videoPreviewHeight:V};return v};
_.K.updateActiveState=function(v){this.active=v;this.ytdReduxBehavior.dispatch(_.U2({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:v}))};
_.K.stopPlayer=function(v){v=v.resetWatchEndpointStartTime===void 0?!1:v.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(v)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.XT.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.K.deactivate=function(v){v=v===void 0?{}:v;v=v.resetWatchEndpointStartTime===void 0?!1:v.resetWatchEndpointStartTime;Q$&&(Q$.disconnect(),Q$=null);this.stopPlayer({resetWatchEndpointStartTime:v});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.K.isValidThumbnailOverlayButton=function(v,Q){v=v.thumbnailOverlayButtonRenderer;var V;return!!v&&!!v.tooltip&&!((V=v.icon)==null||!V.iconType)&&Q.includes(v.icon.iconType)};
_.K.isValidThumbnailOverlayButtonViewModel=function(v,Q){var V;v=_.y((V=v.thumbnailOverlayButtonViewModel)==null?void 0:V.overlayButton,_.pH);return!!v&&!!v.title&&!!v.iconName&&Q.includes(v.iconName)};
_.K.getAdditionalButtonType=function(v){var Q=this;if(_.Y("web_imp_fastforward_button"))return{button:1};if(_.Y("web_imp_miniplayer_button"))return{button:2};if(_.Y("web_imp_playback_speed_button"))return{button:3};var V=["BOX_STACK_3"],E=(v||[]).filter(function(F){return Q.isValidThumbnailOverlayButton(F,V)}).map(function(F){return F.thumbnailOverlayButtonRenderer});
if(E.length)return{button:4,thumbnailOverlayButtonRenderers:E};var b=["BOX_STACK_3"];v=(v||[]).filter(function(F){return Q.isValidThumbnailOverlayButtonViewModel(F,b)}).map(function(F){return _.y(F.thumbnailOverlayButtonViewModel.overlayButton,_.pH)});
if(v.length)return{button:4,thumbnailOverlayButtonViewModels:v}};
_.K.allowCaptions=function(){var v;return!((v=this.opts)==null?0:v.forceCaptionsOff)};
_.K.allowUnmuting=function(){var v;return this.enableAudioControls&&!((v=this.opts)==null?0:v.forceMutedVolume)};
_.K.beginStartTimeUpdater=function(){var v=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Ci(function(){v.updateWatchEndpointStartTime()},1E3)};
_.K.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.K.resetPreventProgressSaveTimer=function(){this.JSC$19507_preventProgressSaveTimer!==null&&(_.XT.cancelJob(this.JSC$19507_preventProgressSaveTimer),this.JSC$19507_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.K.updateWatchEndpointStartTime=function(v){var Q=this.videoPreviewData;if(this.player&&Q!=null&&Q.inlinePlaybackEndpoint&&!this.JSC$19507_preventProgressSaveTimer){v=v?0:Math.floor(this.player.getCurrentTime());var V=_.y(Q.navigationEndpoint,_.sn);V&&(V.startTimeSeconds=v);if(Q=_.y(Q.inlinePlaybackEndpoint,_.sn))Q.startTimeSeconds=v}};
_.K.isShortcutClick=function(v){return!!v&&(v.ctrlKey||v.shiftKey||v.metaKey)};
_.K.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.K.openInMiniplayer=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1){V=(Q=v.videoPreviewData)==null?void 0:Q.navigationEndpoint;if(!V)return E.return();_.u9().lockupActivation=!0;return E.yield(_.XQx(_.ht().resolve(_.lJ),V),2)}_.u9().userActivation=!0;_.q1(E)})};
_.K.navigateToWatch=function(v){var Q,V=(Q=this.videoPreviewData)==null?void 0:Q.navigationEndpoint;if(V){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(V,v,!0);else{var E;_.Y("web_thumbnail_to_watch_transition")&&((E=this.opts)==null?0:E.thumbnail)&&_.jtZ(_.ht().resolve(_.aw),this.opts.thumbnail);_.Hj(this.hostElement,"yt-navigate",{endpoint:V})}this.deactivate()}};
_.K.getInlinePlaybackVideoId=function(){var v,Q;return(Q=_.y((v=this.videoPreviewData)==null?void 0:v.inlinePlaybackEndpoint,_.sn))==null?void 0:Q.videoId};
_.K.getInlinePlaybackTrackingParams=function(){var v,Q;return(v=this.videoPreviewData)==null?void 0:(Q=v.inlinePlaybackEndpoint)==null?void 0:Q.clickTrackingParams};
_.K.hasMultipleVideoPreviews=function(){var v;return!!(((v=this.opts)==null?0:v.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.K.startPlaybackForNextVideo=function(){var v;(v=this.opts)!=null&&v.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.hr.Object.defineProperties(jf.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.opts)==null?0:v.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.opts)==null||!v.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var v;if(Array.isArray((v=this.opts)==null?void 0:v.videoPreviewData)){var Q;return(Q=this.opts)==null?void 0:Q.videoPreviewData[this.videoPreviewDataIndex]}var V;return(V=this.opts)==null?void 0:V.videoPreviewData}}});
jf.prototype.onIsAdsVideoChange=jf.prototype.onIsAdsVideoChange;jf.prototype.onInlinePreviewIsEnabledChange=jf.prototype.onInlinePreviewIsEnabledChange;jf.prototype.optsChanged=jf.prototype.optsChanged;jf.prototype.onMouseLeave=jf.prototype.onMouseLeave;jf.prototype.onPersistentPanelVisibleChange=jf.prototype.onPersistentPanelVisibleChange;jf.JSC$19506_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
jf.JSC$19506_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jf.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],jf.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],jf.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],jf.prototype,"componentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],jf.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.Y2.YtSparklesClickLocationBehavior),_.X("design:type",Object)],jf.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jf.prototype,"opts",void 0);_.W([_.q(),_.X("design:type",Object)],jf.prototype,"playerControlsData",void 0);_.W([_.q(),_.X("design:type",Object)],jf.prototype,"playerControlsAppApi",void 0);
_.W([_.q(),_.X("design:type",Object)],jf.prototype,"playerControlsOptions",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jf.prototype,"noAnimation",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jf.prototype,"hidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jf.prototype,"active",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jf.prototype,"playing",void 0);
_.W([_.q({selector:_.Nxb}),_.X("design:type",Boolean)],jf.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.q(),_.X("design:type",String)],jf.prototype,"pagePath",void 0);_.W([_.q({selector:_.SAt}),_.X("design:type",Boolean)],jf.prototype,"isWatchPage",void 0);_.W([_.q({selector:_.zw.persistentPanelVisibleSelector}),_.X("design:type",Object)],jf.prototype,"persistentPanelVisible",void 0);
_.W([_.O("videoPreviewData"),_.X("design:type",Object),_.X("design:paramtypes",[])],jf.prototype,"thumbnailData",null);_.W([_.O("opts","active"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jf.prototype,"hidePlayerControls",null);_.W([_.O("opts"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jf.prototype,"isAdsVideo",null);
_.W([_.O("opts"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jf.prototype,"roundedCornersSmall",null);_.W([_.O("opts"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jf.prototype,"roundedCornersMedium",null);_.W([_.O("opts"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jf.prototype,"roundedCornersLarge",null);
_.W([_.O("opts"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],jf.prototype,"unroundCornersForPlayback",null);_.W([_.O("opts","videoPreviewDataIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],jf.prototype,"videoPreviewData",null);_.W([_.q(),_.X("design:type",Object)],jf.prototype,"videoPreviewDataIndex",void 0);_.W([_.Z7("#inline-player"),_.X("design:type",Object)],jf.prototype,"inlinePlayer",void 0);
_.W([_.ph("persistentPanelVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jf.prototype,"onPersistentPanelVisibleChange",null);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[MouseEvent]),_.X("design:returntype")],jf.prototype,"onMouseLeave",null);_.W([_.wg("opts"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jf.prototype,"optsChanged",null);
_.W([_.wg("inlinePreviewIsEnabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jf.prototype,"onInlinePreviewIsEnabledChange",null);_.W([_.ph("isAdsVideo"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jf.prototype,"onIsAdsVideoChange",null);_.W([_.J({is:"ytd-video-preview",disableElementRegistration:!0})],jf);
_.B(jf,"ytd-video-preview",function(){if(bF5!==void 0)return bF5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bF5=v},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Ke=function(v){return function(Q,V){var E=v||V.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(Q,V,{get:function(){var b;return this.$?this.$[E]:(b=_.eT(this))==null?void 0:b.querySelector("#"+E)},
enumerable:!0,configurable:!0})}};_.ij=function(v){v=v===void 0?!1:v;_.J5.call(this);this.pubSub_=new _.ni(v);_.Cg(this,this.pubSub_)};
_.HZ(_.ij,_.J5);_.ij.prototype.subscribe=function(v,Q,V){return this.isDisposed()?0:this.pubSub_.subscribe(v,Q,V)};
_.ij.prototype.unsubscribe=function(v,Q,V){return this.isDisposed()?!1:this.pubSub_.unsubscribe(v,Q,V)};
_.ij.prototype.unsubscribeByKey=function(v){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(v)};
_.ij.prototype.publish=function(v,Q){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Itj=function(){_.zB("ypcRedeemFlowStarted")},HEn=function(v){_.zB("ypcRedeemFlowFailed",void 0,void 0,void 0,v)},mmc=function(v,Q,V){Q&&V&&(v.videos.forEach(function(E){E.videoId===Q&&(E.itemId=V)}),v.recommendedVideos.forEach(function(E){E.videoId===Q&&(E.itemId=V)}))};var UmV;var vaP;/*

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
*/
_.fh({_template:function(){if(vaP!==void 0)return vaP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;UmV===void 0&&(UmV=document.createElement("template"));var E=UmV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return vaP=v},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(v,Q){var V=this._resolveSrc(v);V!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",v===""||Q?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 v=this.$.sizedImgDiv.style,Q=this.$.placeholder.style;v.backgroundSize=Q.backgroundSize=this.sizing;v.backgroundPosition=Q.backgroundPosition=this.sizing?this.position:"";v.backgroundRepeat=Q.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(v){v=_.fW(v,this.$.baseURIAnchor.href);v.length>=2&&v[0]==="/"&&v[1]!=="/"&&(v=(location.origin||location.protocol+"//"+location.host)+v);return v}});var QNE;var VpE;_.fh({_template:function(){if(VpE!==void 0)return VpE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;QNE===void 0&&(QNE=document.createElement("template"));var E=QNE;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return VpE=v},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(v){return v?"false":"true"},
_headingChanged:function(v){var Q=this.getAttribute("heading"),V=this.getAttribute("aria-label");typeof V==="string"&&V!==Q||this.setAttribute("aria-label",v)},
_computeHeadingClass:function(v){return v?" over-image":""},
_computeAnimated:function(v){return v}});var Eaf=new _.FG("addRendererToItemSectionAction");var bZ9;var JP=function(){return _.z.apply(this,arguments)||this};
_.f(JP,_.z);JP.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],JP.prototype,"rendererBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],JP.prototype,"dismissibleItemBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],JP.prototype,"rendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],JP.prototype,"data",void 0);_.W([_.J({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],JP);
_.B(JP,"ytd-comment-history-entry-renderer",function(){if(bZ9!==void 0)return bZ9;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bZ9=v},{mode:1});var FA9;_.yZ("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.yZ("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Ni=function(){return _.z.apply(this,arguments)||this};
_.f(Ni,_.z);_.K=Ni.prototype;_.K.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.onKeyUp=function(v){if(v.keyCode===13)this.onTap()};
_.K.onTap=function(){this.data.recordClickEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var v=this.data.navigationEndpoint;v&&_.y(v,_.Qd)&&_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})};
_.K.readChanged=function(){var v;_.VE(this.hostElement,"unread",!((v=this.data)==null?0:v.read))};
_.K.dataChanged=function(){this.data&&_.VE(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.K.computeThumbnailSize=function(){var v;return((v=this.data)==null?0:v.highPriorityNotification)?32:48};
_.K.getEndpointURL=function(v){return v&&!_.y(v,_.Qd)?this.componentBehavior.computeHref_(v):null};
_.K.getEndpointData=function(v){return v&&!_.y(v,_.Qd)?v:null};
Ni.prototype.computeThumbnailSize=Ni.prototype.computeThumbnailSize;Ni.prototype.dataChanged=Ni.prototype.dataChanged;Ni.prototype.readChanged=Ni.prototype.readChanged;Ni.prototype.onKeyUp=Ni.prototype.onKeyUp;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ni.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ni.prototype,"data",void 0);_.W([_.q({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.X("design:type",Number)],Ni.prototype,"thumbnailSize",void 0);_.W([_.tM("keyup"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],Ni.prototype,"onKeyUp",null);
_.W([_.ph("data.read"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ni.prototype,"readChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ni.prototype,"dataChanged",null);_.W([_.ph("data.highPriorityNotification"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ni.prototype,"computeThumbnailSize",null);
_.W([_.J({is:"ytd-notification-renderer",disableElementRegistration:!0})],Ni);
_.B(Ni,"ytd-notification-renderer",function(){if(FA9!==void 0)return FA9;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FA9=v},{mode:1});var KAj;var x8=function(){return _.z.apply(this,arguments)||this};
_.f(x8,_.z);x8.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"}}}};
x8.prototype.computeActionButtonClass=function(v){return!v.actionButtons||v.actionButtons.length<=1?"single-button":v.description?"vertical-buttons":"horizontal-buttons"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],x8.prototype,"data",void 0);_.W([_.J({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],x8);
_.B(x8,"ytd-playlist-show-metadata-renderer",function(){if(KAj!==void 0)return KAj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return KAj=v},{mode:1});var iZV;_.yZ("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var B0=function(){return _.z.apply(this,arguments)||this};
_.f(B0,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],B0.prototype,"data",void 0);_.W([_.J({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],B0);
_.B(B0,"ytd-purchase-item-renderer",function(){if(iZV!==void 0)return iZV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return iZV=v},{mode:1});var LAq;var tpd={};tpd.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(v){if(v)return v.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(v){if(v==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.yZ("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var gR=function(){return _.z.apply(this,arguments)||this};
_.f(gR,_.z);gR.prototype.onYtNavigate=function(v){var Q=this.openPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);Q&&(v.stopPropagation(),this.openPopupBehavior.openPopup(Q))};
gR.prototype.onYtNavigate=gR.prototype.onYtNavigate;_.W([_.M(tpd.YtSimpleTextSectionBehavior),_.X("design:type",Object)],gR.prototype,"ytSimpleTextSectionBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],gR.prototype,"openPopupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],gR.prototype,"data",void 0);
_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gR.prototype,"onYtNavigate",null);_.W([_.J({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],gR);
_.B(gR,"ytd-simple-text-section-renderer",function(){if(LAq!==void 0)return LAq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return LAq=v},{mode:1});var pNf;_.yZ("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var eQn=function(){return _.z.apply(this,arguments)||this};
_.f(eQn,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],eQn.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],eQn.prototype,"data",void 0);_.W([_.J({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],eQn);
_.B(eQn,"ytd-unlimited-page-feature-info-renderer",function(){if(pNf!==void 0)return pNf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pNf=v},{mode:1});var ZZl;var PxJ;var se=function(){return _.z.apply(this,arguments)||this};
_.f(se,_.z);se.prototype.dataChanged=function(){if(this.data){var v=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);v&&(v=_.rE(v,screen.width),this.hostElement.style.backgroundImage="url("+v+")")}};
se.prototype.dataChanged=se.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],se.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],se.prototype,"dataChanged",null);_.W([_.J({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],se);
_.B(se,"ytd-post-redemption-section-renderer",function(){if(PxJ!==void 0)return PxJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return PxJ=v},{mode:1});var dZ5;var uB=function(){return _.z.apply(this,arguments)||this};
_.f(uB,_.z);uB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uB.prototype,"data",void 0);_.W([_.J({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],uB);
_.B(uB,"ytd-ypc-post-redemption-renderer",function(){if(dZ5!==void 0)return dZ5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dZ5=v},{mode:1});_.yZ("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var j7=function(){var v=_.z.apply(this,arguments)||this;v.MIN_CODE_LENGTH=12;v.MAX_CODE_LENGTH=24;return v};
_.f(j7,_.z);_.K=j7.prototype;_.K.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.K.created=function(){this.riskService=new _.xtT;this.loadPaymentThenable=_.g1t(_.r7("YPC_MB_URL"))};
_.K.ready=function(){var v=this;this.code.addEventListener("keypress",function(Q){v.onCodeInputKeypress(Q)})};
_.K.dataChanged=function(){var v=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(Q){Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,V.type==="attributes"&&V.attributeName==="dark"&&v.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.K.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var v=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+v+")")}};
_.K.computeRedeemButton=function(v){(v=this.get("redeemButton.buttonRenderer",v))&&(v=Object.assign({},v,{serviceEndpoint:void 0}));return v};
_.K.onRedeemButtonTap=function(v){v.stopPropagation();Itj();this.redeemCode()};
_.K.redeemCode=function(){var v=this;this.isLoading=!0;var Q=this.riskService.init();_.lc([Q,this.loadPaymentThenable]).then(function(){var V=v.data.redeemButton.buttonRenderer.serviceEndpoint,E=_.BTE(),b=_.oI.payments.business.integration.ClientTokenFactory.createClientToken(_.y(V,_.cva).countryCode,E);E={c:v.code.value.trim(),rd:window.btoa(E),ctk:b};V&&_.ht().resolve(_.At).resolveCommand(V,{form:Object.assign({},E,{element:v.hostElement})})},function(){v.showGenericError();
HEn("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Ui(Error("No"))})};
_.K.onYtServiceRequestCompleted=function(v){v.stopPropagation();this.isLoading=!1;var Q,V;this.errorMessage=(Q=v.detail)==null?void 0:(V=Q.data)==null?void 0:V.errorMessage;var E,b;this.postRedemptionRenderer=(E=v.detail)==null?void 0:(b=E.data)==null?void 0:b.renderer;var F,t;if(v=(F=v.detail)==null?void 0:(t=F.data)==null?void 0:t.redirectEndpoint)this.isLoading=!0,_.Hj(this.hostElement,"yt-navigate",{endpoint:v});this.errorMessage?HEn("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
v)&&_.zB("ypcRedeemFlowSucceeded")};
_.K.onYtServiceRequestError=function(v){v.stopPropagation();this.isLoading=!1;if(v=this.get("detail.error.message",v))this.errorMessage=_.u3(v);HEn("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.K.onInvokeInstrumentManagerActionCompleted=function(v){v.stopPropagation();this.redeemCode()};
_.K.onInvokeInstrumentManagerActionError=function(v){v.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",v)){case "instrumentManagerLoadError":this.showGenericError();HEn("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();HEn("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.zB("ypcRedeemFlowCancelled")}};
_.K.onInput=function(){var v=this;_.Nf(this,"onInput",function(){var Q=v.code.value.trim();v.redeemButtonDisabled=Q.length<v.MIN_CODE_LENGTH||Q.length>v.MAX_CODE_LENGTH},200)};
_.K.onCodeInputKeypress=function(v){v.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Itj(),this.redeemCode())};
_.K.computeImageUrl=function(v){return v?_.rE(v.thumbnails,600):null};
_.K.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
j7.prototype.onInvokeInstrumentManagerActionError=j7.prototype.onInvokeInstrumentManagerActionError;j7.prototype.onInvokeInstrumentManagerActionCompleted=j7.prototype.onInvokeInstrumentManagerActionCompleted;j7.prototype.onYtServiceRequestError=j7.prototype.onYtServiceRequestError;j7.prototype.onYtServiceRequestCompleted=j7.prototype.onYtServiceRequestCompleted;j7.prototype.dataChanged=j7.prototype.dataChanged;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],j7.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],j7.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Boolean)],j7.prototype,"redeemButtonDisabled",void 0);
_.W([_.q(),_.X("design:type",Object)],j7.prototype,"errorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],j7.prototype,"postRedemptionRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],j7.prototype,"observer",void 0);_.W([_.Z7("#code"),_.X("design:type",HTMLInputElement)],j7.prototype,"code",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],j7.prototype,"dataChanged",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],j7.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],j7.prototype,"onYtServiceRequestError",null);
_.W([_.tM("yt-invoke-instrument-manager-action-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],j7.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.W([_.tM("yt-invoke-instrument-manager-action-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],j7.prototype,"onInvokeInstrumentManagerActionError",null);_.W([_.J({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],j7);
_.B(j7,"ytd-redeem-code-renderer",function(){if(ZZl!==void 0)return ZZl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ZZl=v},{mode:1});var hQV;_.yZ("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var W0=function(){var v=_.z.apply(this,arguments)||this;v.businessEmailDisplayState="HIDE_SECTION";return v};
_.f(W0,_.z);_.K=W0.prototype;_.K.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}}}}}};
_.K.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"};
_.K.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.K.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.SH(_.PsQ),this.businessEmailDisplayState="CAPTCHA"))};
_.K.onYtServiceRequestCompleted=function(v){var Q;if((Q=v.detail.data)==null?0:Q.businessEmail)this.businessEmail=v.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=v.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=v.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.K.computeEmailHref=function(v){return"mailto:"+v};
_.K.computeSafeUrl=function(v){if(v)return _.oE(v)};
_.K.onBusinessEmailCaptchaSubmit=function(){var v;(v=this.data)!=null&&v.onBusinessEmailRevealClickCommand&&(v=this.JSC$22182_captchaTextarea.value)&&(v={recaptcha_response_token:v,channel_id:this.data.channelId},_.ht().resolve(_.At).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},v,{element:this.hostElement})}))};
_.K.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.hr.Object.defineProperties(W0.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.primaryLinks)&&!((Q=this.data)==null?0:Q.links)&&this.data.primaryLinks.every(function(V){return V.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.primaryLinks)&&!((Q=this.data)==null?0:Q.links)&&!this.shouldShowNewLinks}}});
W0.prototype.onYtServiceRequestCompleted=W0.prototype.onYtServiceRequestCompleted;W0.prototype.dataChanged=W0.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],W0.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Z7("#g-recaptcha-response"),_.X("design:type",HTMLTextAreaElement)],W0.prototype,"JSC$22182_captchaTextarea",void 0);_.W([_.q(),_.X("design:type",Object)],W0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],W0.prototype,"businessEmailDisplayState",void 0);_.W([_.q(),_.X("design:type",String)],W0.prototype,"businessEmail",void 0);_.W([_.q(),_.X("design:type",String)],W0.prototype,"businessEmailErrorMessage",void 0);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],W0.prototype,"hideDetailsSection",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],W0.prototype,"dataChanged",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],W0.prototype,"shouldShowNewLinks",null);_.W([_.O("data","shouldShowLinks"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],W0.prototype,"shouldShowLegacyLinks",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],W0.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],W0);
_.B(W0,"ytd-channel-about-metadata-renderer",function(){if(hQV!==void 0)return hQV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hQV=v},{mode:1});var wNP;_.yZ("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var o2=function(){return _.z.apply(this,arguments)||this};
_.f(o2,_.z);o2.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],o2.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],o2.prototype,"lockupContainerType",void 0);_.W([_.q(),_.X("design:type",String)],o2.prototype,"thumbnailFixedWidth",void 0);
_.W([_.J({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],o2);
_.B(o2,"ytd-channel-featured-content-renderer",function(){if(wNP!==void 0)return wNP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wNP=v},{mode:1});var ASV;_.yZ("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Xe=function(){var v=_.z.apply(this,arguments)||this;v.roundContainer=!0;v.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return v};
_.f(Xe,_.z);_.K=Xe.prototype;_.K.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.K.dataChanged=function(){this.imageWidth=this.imageHeight=24;var v=this.data;v.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!v.style&&v.image&&v.image.thumbnails.length&&(v=v.image.thumbnails[0],this.imageWidth=v.width||0,this.imageHeight=v.height||0)};
_.K.computeSource=function(v){return v.secondarySource?_.j0(v.secondarySource):_.j0(v.source)};
_.K.computeClarifyStyle=function(v){return v?v.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.K.isLargeStyle=function(v){return v==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.K.computeBackgroundStyle=function(v){return v?v.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.K.computeHasActionButton=function(v){return!!v.actionButton};
_.K.computeHasBottomSection=function(v){return!!v.ctaHasBottomSection};
_.K.computeIsSourceMissing=function(v){return v.ctaHasBottomSection===!1?!0:v&&this.computeSource(v)?!1:!0};
_.K.computeSecondaryEndpoint=function(v){return v.secondaryEndpoint||v.endpoint};
Xe.prototype.dataChanged=Xe.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xe.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],Xe.prototype,"imageWidth",void 0);_.W([_.q(),_.X("design:type",Number)],Xe.prototype,"imageHeight",void 0);
_.W([_.q({computed:"computeSecondaryEndpoint(data)"}),_.X("design:type",Object)],Xe.prototype,"secondaryEndpoint",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.X("design:type",Boolean)],Xe.prototype,"hasActionButton",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.X("design:type",Boolean)],Xe.prototype,"hasBottomSection",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.X("design:type",Boolean)],Xe.prototype,"missingSource",void 0);_.W([_.q({computed:"computeIcon_(data.icon)"}),_.X("design:type",String)],Xe.prototype,"icon",void 0);_.W([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.X("design:type",String)],Xe.prototype,"secondaryIcon",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.X("design:type",String)],Xe.prototype,"clarifyStyle",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.X("design:type",String)],Xe.prototype,"backgroundStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Xe.prototype,"roundContainer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Xe.prototype,"amsterdamEnabled",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Xe.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Xe);
_.B(Xe,"ytd-clarification-renderer",function(){if(ASV!==void 0)return ASV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ASV=v},{mode:1});var kqb;var TVI;var a2=function(){var v=_.z.apply(this,arguments)||this;v.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return v};
_.f(a2,_.z);_.K=a2.prototype;_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.K.computeIcon=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.K.computeUseContacts=function(v){return!!v.contacts&&v.contacts.length>0};
_.K.computePhoneContact=function(v){var Q,V;return(Q=v.contacts)==null?void 0:(V=Q.find(function(E){var b;return(E==null?void 0:(b=E.icon)==null?void 0:b.iconType)==="PHONE"}))==null?void 0:V.actionText};
_.K.computeSmsContact=function(v){var Q,V;return(Q=v.contacts)==null?void 0:(V=Q.find(function(E){var b;return(E==null?void 0:(b=E.icon)==null?void 0:b.iconType)==="SMS"}))==null?void 0:V.actionText};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],a2.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],a2.prototype,"amsterdamEnabled",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.X("design:type",Boolean)],a2.prototype,"useContacts",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.X("design:type",String)],a2.prototype,"phoneContact",void 0);_.W([_.J({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],a2);
_.B(a2,"ytd-single-action-emergency-support-renderer",function(){if(TVI!==void 0)return TVI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return TVI=v},{mode:1});_.yZ("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var rR=function(){var v=_.z.apply(this,arguments)||this;v.roundedContainer=!0;v.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return v};
_.f(rR,_.z);rR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rR.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],rR.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],rR.prototype,"amsterdamEnabled",void 0);
_.W([_.J({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],rR);
_.B(rR,"ytd-emergency-onebox-renderer",function(){if(kqb!==void 0)return kqb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return kqb=v},{mode:1});var YR9;_.yZ("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var $8=function(){return _.z.apply(this,arguments)||this};
_.f($8,_.z);$8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$8.prototype,"data",void 0);_.W([_.J({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],$8);
_.B($8,"ytd-exploratory-results-renderer",function(){if(YR9!==void 0)return YR9;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return YR9=v},{mode:1});var ySI;_.yZ("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var I2=function(){var v=_.z.apply(this,arguments)||this;v.messageData=null;return v};
_.f(I2,_.z);_.K=I2.prototype;_.K.onServiceRequestCompleted=function(v,Q){v=Q.actions||[];Q=0;for(var V=v.length;Q<V;Q++){var E=v[Q],b=void 0,F=void 0;if((b=_.y(E,_.Nd))==null?0:(F=b.item)==null?0:F.messageRenderer)this.messageData=_.y(E,_.Nd).item.messageRenderer}};
_.K.dataChanged=function(){var v=this.data;this.hostElement.hidden=!1;_.VE(this.hostElement,"is-channel",v&&!v.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.K.computeThumbnailWidth=function(v){return v?126:56};
_.K.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.K.onSubmitTap=function(){var v=this.data,Q=this.selectedResponseIndex;v!==void 0&&Q!==void 0&&(v=v.responses[Q],v.responseData&&_.ht().resolve(_.At).resolveCommand(v.responseData,{form:{element:this.hostElement}}))};
_.K.onDismissTap=function(){this.hostElement.hidden=!0;var v=this.data;v!==void 0&&v.dismissalEndpoint&&_.ht().resolve(_.At).resolveCommand(v.dismissalEndpoint,{form:{element:this.hostElement}})};
_.K.updateSelectedResponseIndexFromBinding=function(v){this.selectedResponseIndex=v.detail.value};
I2.prototype.onSelectedResponseIndexChange=I2.prototype.onSelectedResponseIndexChange;I2.prototype.dataChanged=I2.prototype.dataChanged;I2.prototype.onServiceRequestCompleted=I2.prototype.onServiceRequestCompleted;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],I2.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],I2.prototype,"messageData",void 0);
_.W([_.q(),_.X("design:type",Number)],I2.prototype,"selectedResponseIndex",void 0);_.W([_.Z7("#submit-button"),_.X("design:type",HTMLButtonElement)],I2.prototype,"submitButton",void 0);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],I2.prototype,"onServiceRequestCompleted",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],I2.prototype,"dataChanged",null);
_.W([_.ph("selectedResponseIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],I2.prototype,"onSelectedResponseIndexChange",null);_.W([_.J({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],I2);
_.B(I2,"ytd-feedback-elicitation-single-question-renderer",function(){if(ySI!==void 0)return ySI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ySI=v},{mode:1});var cSP;var H0=function(){return _.z.apply(this,arguments)||this};
_.f(H0,_.z);H0.prototype.computeThumbnailWidth=function(v){return v?602:428};
H0.prototype.updateWideFromBinding=function(v){this.wide=v.detail.value};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],H0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],H0.prototype,"wide",void 0);_.W([_.J({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],H0);
_.B(H0,"ytd-newspaper-hero-video-renderer",function(){if(cSP!==void 0)return cSP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return cSP=v},{mode:1});var fXP;var Gqb=function(){return _.z.apply(this,arguments)||this};
_.f(Gqb,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Gqb.prototype,"rendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Gqb.prototype,"data",void 0);_.W([_.J({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Gqb);
_.B(Gqb,"ytd-newspaper-mini-video-renderer",function(){if(fXP!==void 0)return fXP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fXP=v},{mode:1});var Cxb;_.yZ("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var m2=function(){return _.z.apply(this,arguments)||this};
_.f(m2,_.z);m2.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],m2.prototype,"data",void 0);_.W([_.J({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],m2);
_.B(m2,"ytd-newspaper-renderer",function(){if(Cxb!==void 0)return Cxb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Cxb=v},{mode:1});var MpE;_.yZ("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Ue=function(){var v=_.z.apply(this,arguments)||this;v.isSegment=!1;v.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};v.nextContinuation={continuationType:"playlistVideoListContinuation"};return v};
_.f(Ue,_.z);_.K=Ue.prototype;_.K.created=function(){var v=this;this.JSC$22215_ytReorderableController=new _.LBp(101,function(Q){v.handleDrop(Q)})};
_.K.attached=function(){_.ht();var v;(v=_.ht().resolve(_.d$(_.X7)))!=null&&(v.playlistVideoListElement=this.hostElement)};
_.K.detached=function(){var v;(v=_.ht().resolve(_.d$(_.X7)))!=null&&(v.playlistVideoListElement=void 0);v=_.ht().resolve(_.d$(_.Jb));_.Y("web_enable_voting_animation")&&v&&(v.parentElem=void 0,v.videos=[],v.continuationsPresent=!1,v.showRefreshPill=!1);_.Bk(this.JSC$22215_ytReorderableController)};
_.K.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"}}}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.K.dataChanged=function(){var v=_.ht().resolve(_.d$(_.Jb));if(_.Y("web_enable_voting_animation")&&this.data&&v){var Q=_.m9(this.hostElement).querySelector("#contents");Q&&(v.parentElem=Q);v.addVideos(this.data.contents)}_.Bk(this.JSC$22215_ytReorderableController)};
_.K.onRendererstamperFinished=function(){this.canReorder&&_.tlX(this.JSC$22215_ytReorderableController,_.m9(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.K.onPlaylistReloading=function(){this.isReloading=!0};
_.K.onUpdateSetVideoId=function(v){if(v.detail&&this.data&&this.data.contents){var Q=v.detail;v=this.data.contents.findIndex(function(b){var F;return((F=b.playlistVideoRenderer)==null?void 0:F.videoId)===Q.videoId});
if(!(v<0)&&Q.setVideoId&&(this.set("data.contents."+v+".playlistVideoRenderer.setVideoId",Q.setVideoId),_.Y("web_enable_voting_animation"))){var V;if(v=_.y((V=this.data.contents[v].playlistVideoRenderer)==null?void 0:V.engagementBar,_.by9)){var E;(E=v.actions)==null||E.forEach(function(b){if(b=_.y(b,_.F1B))b.itemId=Q.setVideoId})}(V=_.ht().resolve(_.d$(_.Jb)))&&mmc(V,Q.videoId,Q.setVideoId)}}};
_.K.computeContentsClass=function(v){return v?"reloading":""};
_.K.computeIsSortable=function(v,Q){return v&&Q>0&&!this.isSegment&&!_.Y("shorts_in_playlists_web")};
_.K.computeIsEditable=function(v){return v};
_.K.computeCanReorder=function(v){return v};
_.K.handlePlaylistRemoveVideosAction=function(v){if(this.get("playlistRemoveVideosAction.setVideoIds",v)&&this.data&&this.data.contents){v=_.y(v,_.uBS).setVideoIds;for(var Q=this.data.contents.length-1;Q>=0;){var V=this.data.contents[Q].playlistVideoRenderer;V&&V.setVideoId&&v.includes(V.setVideoId)&&this.splice("data.contents",Q,1);Q--}_.mb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.K.updateIndices=function(){if(this.data&&this.data.contents)for(var v=0;v<this.data.contents.length;v++)this.set("data.contents."+v+".playlistVideoRenderer.index",_.u3(String(v+1)))};
_.K.handleDrop=function(v){v=v.currDragItem;var Q=_.B9(v.parentNode.childNodes,v),V=this.data.contents.splice(Number(_.j0(v.data.index))-1,1)[0];this.data.contents.splice(Q,0,V);Q=Q?this.get("contents."+(Q-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();v=this.buildReorderServiceEndpoint(v.data.setVideoId,Q);this.ytComponentBehavior.resolveCommand(v)};
_.K.buildReorderServiceEndpoint=function(v,Q){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",v),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",Q),this.data.onReorderEndpoint):null};
_.K.handleUpdatePlaylistAction=function(v){var Q;(v=_.y((Q=_.y(v,_.j4N))==null?void 0:Q.updatedRenderer,_.WlZ))&&this.canReorder!==v.canReorder&&this.set("data.canReorder",v.canReorder);v&&v.contents&&(this.set("data.contents",v.contents),this.isReloading=!1);v&&v.continuations&&this.set("data.continuations",v.continuations)};
_.K.handleAddRendererToItemSectionAction=function(v){var Q,V=(Q=_.y(v,Eaf))==null?void 0:Q.renderer,E;V&&((E=_.y(v,Eaf))==null?void 0:E.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,V),v=_.ht().resolve(_.d$(_.Jb)),_.Y("web_enable_voting_animation")&&v&&(V&&(Q=_.E1o(V))&&v.recommendedVideos.push({itemId:Q,videoId:_.K1Z(V),voteCount:_.iym(V),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.K.isVotingEnabledOnPlaylist=function(v){if(!v)return!1;v=_.L(v);for(v=v.next();!v.done;v=v.next()){var Q=void 0;return!!_.y((Q=v.value.playlistVideoRenderer)==null?void 0:Q.engagementBar,_.by9)}return!1};
_.K.onAppendContinuationItemsActionFinished=function(){var v;this.isVotingEnabledOnPlaylist((v=this.data)==null?void 0:v.contents)&&(this.updateIndices(),v=_.ht().resolve(_.d$(_.Jb)),_.Y("web_enable_voting_animation")&&v&&this.data&&v.addVideos(this.data.contents))};
_.K.updateVideoData=function(v){if(v.detail&&this.data&&this.data.contents){var Q=v.detail;v=Q.toIdx;var V=Q.itemId,E=Q.newVoteCount,b=Q.voteStatus;Q=Q.hideItem;var F,t,p=(F=this.data)==null?void 0:(t=F.contents)==null?void 0:t.findIndex(function(A){return _.E1o(A)===V});
if(!(p<0)){F=this.data.contents[p];var Z;if((Z=F.playlistVideoRenderer)==null?0:Z.voteCount)F.playlistVideoRenderer.voteCount=E;var d;if(Z=_.y((d=F.playlistVideoRenderer)==null?void 0:d.engagementBar,_.by9)){var w;(w=Z.actions)==null||w.forEach(function(A){(A=_.y(A,_.F1B))&&A.initialState&&(A.initialState.votes=E,A.initialState.status=b)})}this.data.contents.splice(p,1);
Q||this.data.contents.splice(v,0,F);this.updateIndices()}}};
Ue.prototype.updateVideoData=Ue.prototype.updateVideoData;Ue.prototype.onAppendContinuationItemsActionFinished=Ue.prototype.onAppendContinuationItemsActionFinished;Ue.prototype.onUpdateSetVideoId=Ue.prototype.onUpdateSetVideoId;Ue.prototype.onPlaylistReloading=Ue.prototype.onPlaylistReloading;Ue.prototype.onRendererstamperFinished=Ue.prototype.onRendererstamperFinished;Ue.prototype.dataChanged=Ue.prototype.dataChanged;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ue.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.Ak.YtNextContinuationBehavior),_.X("design:type",Object)],Ue.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.M(_.wk),_.X("design:type",Object)],Ue.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ue.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ue.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ue.prototype,"isReloading",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ue.prototype,"isSegment",void 0);
_.W([_.q({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.X("design:type",Boolean)],Ue.prototype,"isSortable",void 0);_.W([_.q({computed:"computeIsEditable(data.isEditable)"}),_.X("design:type",Boolean)],Ue.prototype,"isEditable",void 0);_.W([_.q({computed:"computeCanReorder(data.canReorder)"}),_.X("design:type",Boolean)],Ue.prototype,"canReorder",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ue.prototype,"dataChanged",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ue.prototype,"onRendererstamperFinished",null);_.W([_.tM("yt-playlist-reloading"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ue.prototype,"onPlaylistReloading",null);
_.W([_.tM("yt-update-set-video-id"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Ue.prototype,"onUpdateSetVideoId",null);_.W([_.tM("yt-append-continuation-items-action-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ue.prototype,"onAppendContinuationItemsActionFinished",null);
_.W([_.tM("yt-update-video-data-voting-animation"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Ue.prototype,"updateVideoData",null);_.W([_.J({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Ue);
_.B(Ue,"ytd-playlist-video-list-renderer",function(){if(MpE!==void 0)return MpE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return MpE=v},{mode:_.mV("kevlar_poly_si_batch_j047")?1:2});var OZn;var vT=function(){return _.z.apply(this,arguments)||this};
_.f(vT,_.z);vT.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"}}}}};
vT.prototype.onTextWrapperTap=function(v){var Q=this.data&&this.data.navigationEndpoint;Q&&!_.j$(_.uK(v),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Hj(this.hostElement,"yt-navigate",{endpoint:Q})};
vT.prototype.dataChanged=function(){var v=this.get("data.offerButton.buttonRenderer.serviceEndpoint");v&&v.commandMetadata&&_.y(v.commandMetadata,_.u7)&&_.y(v.commandMetadata,_.u7).fireAutomatically&&_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})};
vT.prototype.dataChanged=vT.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.p1),_.X("design:type",Object)],vT.prototype,"ytdLockupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vT.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],vT.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],vT.prototype,"biggerThumbsStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vT.prototype,"leftAligned",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vT.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-movie-renderer"})],vT);
_.B(vT,"ytd-movie-renderer",function(){if(OZn!==void 0)return OZn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return OZn=v},{mode:1});var DZE;var Q7=function(){var v=_.z.apply(this,arguments)||this;v.rounded=!0;v.pageAttachedTo=void 0;v.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return v};
_.f(Q7,_.z);Q7.prototype.attached=function(){this.pageAttachedTo=_.ht().resolve(_.oJ).getCurrentPage();_.Hj(this.hostElement,"yt-player-attached",this.player)};
Q7.prototype.detached=function(){var v;if((v=this.pageAttachedTo)==null?0:v.hostElement)_.Hj(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Q7.prototype.dataChanged=function(){var v;if((v=this.data)==null?0:v.videoId)v={video_id:this.data.videoId,autoplay:!0},!_.Y("miniplayer_stop_channel_video_autoplay_killswitch")&&_.ht().resolve(_.lJ).isMiniplayerActive()&&(v.pause_at_start=!0,v.autoplay=!1),this.player.loadVideoWithPlayerVars(v)};
Q7.prototype.handleSignalActionPausePlayer=function(){_.rS().pause()};
Q7.prototype.dataChanged=Q7.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],Q7.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Q7.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Q7.prototype,"rounded",void 0);_.W([_.Z7("#player"),_.X("design:type",Object)],Q7.prototype,"player",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Q7.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Q7);
_.B(Q7,"ytd-channel-video-player-renderer",function(){if(DZE!==void 0)return DZE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return DZE=v},{mode:1});var RQc;var nan;var lXl;var V7=function(){var v=_.z.apply(this,arguments)||this;v.playing=!1;v.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.$Q(v);v.active=!1;return v};
_.f(V7,_.z);_.K=V7.prototype;_.K.detached=function(){this.stop()};
_.K.play=function(){var v=this,Q,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return v.active=!0,Q=v.get("data.inlinePlaybackEndpoint.watchEndpoint"),V=Q.videoId||v.data.videoId,E=Q.startTimeSeconds||0,b=Q.playerParams||null,_.Y("kevlar_player_update_killswitch")?t.yield(v.playerEl.update({args:{video_id:V,startSeconds:E,player_params:b}}),2):(v.playerEl.loadVideoWithPlayerVars({video_id:V,startSeconds:E,player_params:b,autoplay:!0}),t.jumpTo(2));if(t.nextAddress!=4)return t.yield(v.playerEl.getPlayerPromise(),
4);F=t.yieldResult;F.unloadModule("annotations_module");F.addEventListener("onStateChange",function(p){v.onPlayerStateChange(p)});
_.q1(t)})};
_.K.onPlayerStateChange=function(v){if(this.active)switch(this.playing=v===1,v){case 1:_.Hj(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Hj(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.K.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.K.resize=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v.playerEl.getPlayerPromise(),2);Q=V.yieldResult;Q.setSize(NaN,NaN);_.q1(V)})};
_.W([_.q(),_.X("design:type",Object)],V7.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],V7.prototype,"playing",void 0);_.W([_.q(),_.X("design:type",Object)],V7.prototype,"playerId",void 0);_.W([_.Z7("#player"),_.X("design:type",Object)],V7.prototype,"playerEl",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],V7);
_.B(V7,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(lXl!==void 0)return lXl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return lXl=v},{mode:1});var qRl;var SRf;var Eq=function(){var v=_.z.apply(this,arguments)||this;v.width=0;return v};
_.f(Eq,_.z);_.K=Eq.prototype;_.K.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Lh(this,this.onEnded));this.mp4El.addEventListener("error",_.Lh(this,this.onError))};
_.K.detached=function(){this.videoEl.removeEventListener("ended",_.Lh(this,this.onEnded));this.mp4El.removeEventListener("error",_.Lh(this,this.onError))};
_.K.play=function(){var v=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var Q=this.videoEl.play();Q?Q.then(function(){v.handleVideoStartPlaying()}).catch(function(){_.Hj(v.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Hj(this.hostElement,"yt-video-thumbnail-not-playing")};
_.K.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.K.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.K.dataChanged=function(){var v;if((v=this.data)==null?0:v.thumbnailPlaceholder)v=_.rE(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+v+")";this.stop();this.autoplay&&this.play()};
_.K.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.K.onEnded=function(){this.stop();_.Hj(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.K.onError=function(){_.Hj(this.hostElement,"yt-video-thumbnail-error")};
_.K.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.K.getVideoThumbnail=function(v){if(v&&v.length)return v[0]};
Eq.prototype.dataChanged=Eq.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],Eq.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Eq.prototype,"animatePlaceholderOnEntrance",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Eq.prototype,"autoplay",void 0);_.W([_.q({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.X("design:type",Object)],Eq.prototype,"videoThumbnail",void 0);
_.W([_.q(),_.X("design:type",Boolean)],Eq.prototype,"loop",void 0);_.W([_.q(),_.X("design:type",Boolean)],Eq.prototype,"isVideoPlaying",void 0);_.W([_.q(),_.X("design:type",Object)],Eq.prototype,"width",void 0);_.W([_.Z7("#mp4"),_.X("design:type",HTMLElement)],Eq.prototype,"mp4El",void 0);_.W([_.Z7("#placeholder"),_.X("design:type",HTMLElement)],Eq.prototype,"placeholderEl",void 0);_.W([_.Z7("#video"),_.X("design:type",HTMLVideoElement)],Eq.prototype,"videoEl",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Eq.prototype,"dataChanged",null);_.W([_.D7({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Eq);
_.B(Eq,"yt-video-as-thumbnail-details",function(){if(SRf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;qRl===void 0&&(qRl=document.createElement("template"));var E=qRl;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);SRf=v}v=SRf;return v},{mode:2});var b2=function(){var v=_.z.apply(this,arguments)||this;v.disableGridStateAware=!1;v.animationEnabled=_.Y("enable_web_ketchup_hero_animation");v.transitioningOut=!1;v.narrow=!1;v.narrower=!1;v.isCarouselInFeed=!1;v.videoTimeoutJobId=0;v.panelTimeoutJobId=0;v.panelTimeoutJobStartMs=0;v.actionMap={"yt-window-resized":"onWindowResized"};return v};
_.f(b2,_.z);_.K=b2.prototype;_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.K.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var v;this.player&&((v=this.data)==null?0:v.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.K.attached=function(){this.onWindowResized()};
_.K.detached=function(){this.clearTimeouts()};
_.K.onWindowResized=function(){this.updateSize()};
_.K.computePanelLayout=function(v){return v&&v.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.K.playVideo=function(){var v;this.video&&((v=this.data)==null?0:v.videoThumbnail)&&this.video.play();var Q;this.player&&((Q=this.data)==null?0:Q.inlinePlaybackRenderer)&&this.player.play()};
_.K.stopVideo=function(){var v;this.video&&((v=this.data)==null?0:v.videoThumbnail)&&this.video.stop();var Q;this.player&&((Q=this.data)==null?0:Q.inlinePlaybackRenderer)&&this.player.stop()};
_.K.transitionOut=function(){var v=this;this.transitioningOut=!0;return new Promise(function(Q){var V=function(){_.m9(v.hostElement).querySelector("#action-button").removeEventListener("animationend",V);_.XT.cancelJob(E);Q();v.transitioningOut=!1};
var E=_.go(_.XT,V,1E3);_.m9(v.hostElement).querySelector("#action-button").addEventListener("animationend",V);v.player&&(v.player.playing=!1)})};
_.K.computeMetadataOrder=function(v){return v&&v.metadataOrder&&v.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?v.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.K.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.K.computeAvatarSize=function(v){return v&&v.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.K.onContentClick=function(v){if(!_.j$(_.uK(v),this.hostElement,["A".toString(),"BUTTON".toString()])){var Q;if((Q=this.data)==null?0:Q.navigationEndpoint){var V;this.componentBehavior.resolveCommand((V=this.data)==null?void 0:V.navigationEndpoint)}}};
_.K.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.K.setBackgroundImage=function(v){if(v=this.getBackgroundImageUrl(v))_.m9(this.hostElement).querySelector("#hero").style.backgroundImage="url("+v+")"};
_.K.setScrimLayer=function(v){var Q=this.getScrimLayerColorStops(v);v=((v==null?void 0:v.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(v=180);_.r7("HTML_DIR")==="rtl"&&(v=-v);Q&&(_.m9(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+v+"deg, "+Q+")")};
_.K.isNarrower=function(){return this.hostElement.clientWidth<b2.NARROW_VERSION_SIZE};
_.K.getScrimLayerColorStops=function(){var v,Q=(v=this.data)==null?void 0:v.scrimColorValues;if(!Q)return null;if(Q.length===1)return v=_.CF(Q[0]),v+" 0%, "+v+" 100%";if(Q.length===3){var V=[0,72,98];return Q.map(function(E,b){return _.CF(E)+" "+V[b]+"%"}).join(",")}return null};
_.K.getBackgroundImageUrl=function(v){return v&&v.largeFormFactorBackgroundThumbnail?_.rE((v.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||v.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.K.onPlaying=function(){this.startVideoTimeout()};
_.K.onEnded=function(){this.rotate()};
_.K.startPanelTimeout=function(){var v=this;if(!this.panelTimeoutJobId){var Q=this.get("data.minPanelDisplayDurationMs");Q&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.go(_.XT,function(){v.rotate()},Q))}};
_.K.startVideoTimeout=function(){var v=this;if(!this.videoTimeoutJobId){_.XT.cancelJob(this.panelTimeoutJobId);var Q=Date.now()-this.panelTimeoutJobStartMs;Q=Math.max(0,this.get("data.minPanelDisplayDurationMs")-Q);Q=Math.max(this.get("data.minVideoPlayDurationMs")||0,Q);this.videoTimeoutJobId=_.go(_.XT,function(){v.rotate()},Q)}};
_.K.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.XT.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.XT.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.K.rotate=function(){this.clearTimeouts();_.Hj(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.hr.Object.defineProperties(b2.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#video")}}});
_.hr.Object.defineProperties(b2,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
b2.prototype.onEnded=b2.prototype.onEnded;b2.prototype.onPlaying=b2.prototype.onPlaying;b2.prototype.dataChanged=b2.prototype.dataChanged;_.W([_.M(_.FO),_.X("design:type",Object)],b2.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],b2.prototype,"componentBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],b2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.M(_.Efd),_.X("design:type",Object)],b2.prototype,"ytBooleanLogicBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],b2.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"disableGridStateAware",void 0);_.W([_.q(),_.X("design:type",Object)],b2.prototype,"data",void 0);_.W([_.q({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.X("design:type",String)],b2.prototype,"panelLayout",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"animationEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"transitioningOut",void 0);
_.W([_.q({computed:"computeMetadataOrder(data)"}),_.X("design:type",Boolean)],b2.prototype,"metadataOrder",void 0);_.W([_.q({computed:"computeByline(data)"}),_.X("design:type",Object)],b2.prototype,"byline",void 0);_.W([_.q({computed:"computeAvatarSize(data)"}),_.X("design:type",Number)],b2.prototype,"avatarSize",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"narrow",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"narrower",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"layoutStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],b2.prototype,"isCarouselInFeed",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],b2.prototype,"dataChanged",null);_.W([_.tM("yt-default-promo-panel-renderer-playing"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],b2.prototype,"onPlaying",null);
_.W([_.tM("yt-default-promo-panel-renderer-ended"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],b2.prototype,"onEnded",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],b2);
_.B(b2,"ytd-default-promo-panel-renderer",function(){if(nan!==void 0)return nan;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return nan=v},{mode:1});_.yZ("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var FN=function(){var v=_.z.apply(this,arguments)||this;v.narrower=!1;v.dotMenuVisible=!1;v.paginationThumbnailsVisible=!1;v.active=!0;v.disableGridStateAware=!1;v.actionMap={"yt-window-resized":"onWindowResized"};return v};
_.f(FN,_.z);_.K=FN.prototype;_.K.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]]"}}}}}};
_.K.attached=function(){document.addEventListener("yt-page-type-changed",_.Lh(this,this.onPageTypeChange));this.currentPageSubtype=_.b5E(location.pathname);this.onWindowResized()};
_.K.detached=function(){this.jobId&&_.XT.cancelJob(this.jobId);this.updateSizeJobId&&_.XT.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Lh(this,this.onPageTypeChange))};
_.K.onPageTypeChange=function(v){this.active=v.detail.newPageSubtype===this.currentPageSubtype};
_.K.onWindowResized=function(){this.updateSize()};
_.K.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.K.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.K.setCarouselItem=function(v){v>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.XT.cancelJob(this.jobId);var Q=this.getCurrentPanelElement();Q&&Q.stopVideo();this.currentItemIndex=v%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(Q||(Q=this.getCurrentPanelElement()),Q.playVideo()):this.startRotationJob()};
_.K.scrollThumbnails=function(v){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var Q=this.getCurrentPaginationElement();if(Q){var V=_.m9(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?V.style.transform="translateX(0)":(Q=Q.offsetWidth+8,V.style.transform="translateX(-"+Q*(v-Math.ceil(Math.floor(this.overlay.offsetWidth/Q)/2)+1)+"px)")}}};
_.K.onDataChanged=function(){var v=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Lq(_.XT,function(){var Q;(Q=v.getCurrentPanelElement())==null||Q.updateSize();v.updateSize()}))};
_.K.getCurrentPanelElement=function(){return _.m9(_.m9(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.K.getCurrentPaginationElement=function(){return _.m9(_.m9(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.K.getNavigationClass=function(v,Q){return v===Q?"selected":""};
_.K.getNavigationDurationStyle=function(v){return"animation-duration:"+(this.get("data.carouselItems."+v+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.K.onNavigationTap=function(v){var Q=this,V=v.model.index;V!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){Q.setCarouselItem(V)}),this.autorotateActive=!1)};
_.K.onVideoThumbnailEnded=function(){var v=this;if(this.shouldRotate()){var Q=this.getCurrentPaginationElement();Q&&(Q.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){Q.classList.remove("finished");v.setNextCarouselItem()}))}};
_.K.onVideoThumbnailError=function(){this.startRotationJob()};
_.K.onVideoNotPlaying=function(){this.startRotationJob()};
_.K.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.K.startRotationJob=function(){var v=this;_.XT.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.XT.addLowPriorityJob(function(){v.getCurrentPanelElement().transitionOut().then(function(){v.setNextCarouselItem()})},this.rotationTimeout))};
_.K.computeDotMenuVisible=function(v,Q){return!!v&&!!v.carouselItems&&v.carouselItems.length>1&&!v.paginationThumbnails||!!Q};
_.K.computePaginationThumbnailsVisible=function(v,Q){var V,E;return((E=v==null?void 0:(V=v.paginationThumbnails)==null?void 0:V.length)!=null?E:0)>1&&!Q};
_.K.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.K.computePaginatorAlignment=function(v){return(v==null?void 0:v.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.K.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.K.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.K.isNarrower=function(v){return(v!=null?v:0)<b2.NARROW_VERSION_SIZE};
FN.prototype.activeChanged=FN.prototype.activeChanged;FN.prototype.onVideoNotPlaying=FN.prototype.onVideoNotPlaying;FN.prototype.onVideoThumbnailError=FN.prototype.onVideoThumbnailError;FN.prototype.onVideoThumbnailEnded=FN.prototype.onVideoThumbnailEnded;FN.prototype.onDataChanged=FN.prototype.onDataChanged;_.W([_.M(_.FO),_.X("design:type",Object)],FN.prototype,"ytdGridStateAwareBehavior",void 0);
_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],FN.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],FN.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],FN.prototype,"currentItem",void 0);
_.W([_.q(),_.X("design:type",Number)],FN.prototype,"currentItemIndex",void 0);_.W([_.q(),_.X("design:type",Number)],FN.prototype,"rotationTimeout",void 0);_.W([_.q(),_.X("design:type",Number)],FN.prototype,"loopCount",void 0);_.W([_.q({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.X("design:type",String)],FN.prototype,"paginatorAlignment",void 0);_.W([_.q(),_.X("design:type",Number)],FN.prototype,"jobId",void 0);
_.W([_.q(),_.X("design:type",Number)],FN.prototype,"updateSizeJobId",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],FN.prototype,"isCarouselInFeed",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FN.prototype,"narrower",void 0);_.W([_.q({computed:"computeDotMenuVisible(data, narrower)"}),_.X("design:type",Object)],FN.prototype,"dotMenuVisible",void 0);
_.W([_.q({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.X("design:type",Object)],FN.prototype,"paginationThumbnailsVisible",void 0);_.W([_.q({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.X("design:type",String)],FN.prototype,"layoutType",void 0);_.W([_.q({value:!0,reflectToAttribute:!0}),_.X("design:type",Boolean)],FN.prototype,"autorotateActive",void 0);_.W([_.q(),_.X("design:type",Object)],FN.prototype,"active",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],FN.prototype,"disableGridStateAware",void 0);_.W([_.Z7("#overlay"),_.X("design:type",HTMLElement)],FN.prototype,"overlay",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FN.prototype,"onDataChanged",null);
_.W([_.tM("yt-video-thumbnail-ended"),_.tM("yt-default-promo-panel-renderer-rotate"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FN.prototype,"onVideoThumbnailEnded",null);_.W([_.tM("yt-video-thumbnail-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FN.prototype,"onVideoThumbnailError",null);
_.W([_.tM("yt-video-thumbnail-not-playing"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FN.prototype,"onVideoNotPlaying",null);_.W([_.wg("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FN.prototype,"activeChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],FN);
_.B(FN,"ytd-carousel-item-renderer",function(){if(RQc!==void 0)return RQc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return RQc=v},{mode:2});var zQJ;var JSl;var NV5;var xZn;var Ky=function(){var v=_.z.apply(this,arguments)||this;v.originalQuery=null;v.originalEndpoint=null;return v};
_.f(Ky,_.z);Ky.prototype.computeShowOriginalQueryWithoutEndpoint_=function(v,Q){return!(!v||Q)};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ky.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ky.prototype,"correctedText",void 0);_.W([_.q(),_.X("design:type",Object)],Ky.prototype,"correctedQuery",void 0);_.W([_.q(),_.X("design:type",Object)],Ky.prototype,"correctedEndpoint",void 0);_.W([_.q(),_.X("design:type",Object)],Ky.prototype,"originalText",void 0);_.W([_.q(),_.X("design:type",Object)],Ky.prototype,"originalQuery",void 0);
_.W([_.q(),_.X("design:type",Object)],Ky.prototype,"originalEndpoint",void 0);_.W([_.q({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.X("design:type",Boolean)],Ky.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.W([_.D7({is:"yt-search-query-correction",disableElementRegistration:!0})],Ky);
_.B(Ky,"yt-search-query-correction",function(){if(xZn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;NV5===void 0&&(NV5=document.createElement("template"));var E=NV5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);xZn=v}v=xZn;return v},{mode:2});_.yZ("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var BVc=function(){return _.z.apply(this,arguments)||this};
_.f(BVc,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],BVc.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],BVc.prototype,"data",void 0);_.W([_.D7({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],BVc);
_.B(BVc,"yt-did-you-mean-renderer",function(){if(JSl===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;zQJ===void 0&&(zQJ=document.createElement("template"));var E=zQJ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);JSl=v}v=JSl;return v},{mode:2});var gaP;var sNq;_.yZ("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var uac=function(){return _.z.apply(this,arguments)||this};
_.f(uac,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uac.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uac.prototype,"data",void 0);_.W([_.D7({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],uac);
_.B(uac,"yt-including-results-for-renderer",function(){if(sNq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;gaP===void 0&&(gaP=document.createElement("template"));var E=gaP;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);sNq=v}v=sNq;return v},{mode:2});var jNn;var WAd;_.yZ("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var i2=function(){return _.z.apply(this,arguments)||this};
_.f(i2,_.z);i2.prototype.computeExtraClasses_=function(v,Q){var V="";v&&(V+=" "+v.toLowerCase().replace(/_/g,"-"));Q&&(V+=" "+Q.toLowerCase().replace(/_/g,"-"));return V};
i2.prototype.computeUrlImg_=function(){var v=this.data;v.image&&(_.m9(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.rE(v.image.thumbnails,Number.MAX_VALUE)+")")};
i2.prototype.computeUrlImg_=i2.prototype.computeUrlImg_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],i2.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],i2.prototype,"computeUrlImg_",null);_.W([_.D7({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],i2);
_.B(i2,"yt-music-pass-feature-info-renderer",function(){if(WAd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;jNn===void 0&&(jNn=document.createElement("template"));var E=jNn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);WAd=v}v=WAd;return v},{mode:2});var oaf;var XNe;_.yZ("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var aXE=function(){return _.z.apply(this,arguments)||this};
_.f(aXE,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aXE.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aXE.prototype,"data",void 0);_.W([_.D7({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],aXE);
_.B(aXE,"yt-no-results-found-showing-results-for-renderer",function(){if(XNe===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;oaf===void 0&&(oaf=document.createElement("template"));var E=oaf;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);XNe=v}v=XNe;return v},{mode:2});var rSI;var $Zb;_.yZ("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var IX5=function(){return _.z.apply(this,arguments)||this};
_.f(IX5,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IX5.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],IX5.prototype,"data",void 0);_.W([_.D7({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],IX5);
_.B(IX5,"yt-results-without-quotes-renderer",function(){if($Zb===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;rSI===void 0&&(rSI=document.createElement("template"));var E=rSI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);$Zb=v}v=$Zb;return v},{mode:2});var HZI;var mZd;_.yZ("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var UZE=function(){return _.z.apply(this,arguments)||this};
_.f(UZE,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UZE.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UZE.prototype,"data",void 0);_.W([_.D7({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],UZE);
_.B(UZE,"yt-search-no-results-renderer",function(){if(mZd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;HZI===void 0&&(HZI=document.createElement("template"));var E=HZI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);mZd=v}v=mZd;return v},{mode:2});var vff;var Q8V;_.yZ("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Vqb=function(){return _.z.apply(this,arguments)||this};
_.f(Vqb,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Vqb.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Vqb.prototype,"data",void 0);_.W([_.D7({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Vqb);
_.B(Vqb,"yt-showing-results-for-renderer",function(){if(Q8V===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;vff===void 0&&(vff=document.createElement("template"));var E=vff;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Q8V=v}v=Q8V;return v},{mode:2});var Ef9;var bjl;var FI5;var KI5;var y7=function(){var v=_.z.apply(this,arguments)||this;v.answerExpanded=!1;return v};
_.f(y7,_.z);y7.prototype.toggleAnswer_=function(v){var Q=_.jV(v);Q&&Q.classList.contains("yt-simple-endpoint")||(v.preventDefault(),v.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
y7.prototype.toggleAnswer_=y7.prototype.toggleAnswer_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],y7.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],y7.prototype,"answerExpanded",void 0);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],y7.prototype,"toggleAnswer_",null);
_.W([_.D7({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],y7);
_.B(y7,"yt-generic-faq-question-renderer",function(){if(KI5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;FI5===void 0&&(FI5=document.createElement("template"));var E=FI5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);KI5=v}v=KI5;return v},{mode:2});_.yZ("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var cT=function(){return _.z.apply(this,arguments)||this};
_.f(cT,_.z);cT.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cT.prototype,"data",void 0);_.W([_.D7({is:"yt-faq-section-renderer",disableElementRegistration:!0})],cT);
_.B(cT,"yt-faq-section-renderer",function(){if(bjl===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Ef9===void 0&&(Ef9=document.createElement("template"));var E=Ef9;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);bjl=v}v=bjl;return v},{mode:2});var ijE;var LIE;_.yZ("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var fy=function(){return _.z.apply(this,arguments)||this};
_.f(fy,_.z);
fy.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fy.prototype,"data",void 0);_.W([_.D7({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],fy);
_.B(fy,"yt-offer-item-expanded-renderer",function(){if(LIE===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ijE===void 0&&(ijE=document.createElement("template"));var E=ijE;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);LIE=v}v=LIE;return v},{mode:2});var tqf;var psl;_.yZ("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Go=function(){return _.z.apply(this,arguments)||this};
_.f(Go,_.z);
Go.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"}}}}};
Go.prototype.computeFullWidthMode=function(v){return!(!v||!v.fullWidthMode)};
Go.prototype.computeBorderlessMode=function(v){return!(!v||!v.borderlessMode)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Go.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.X("design:type",Boolean)],Go.prototype,"fullWidthMode",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.X("design:type",Boolean)],Go.prototype,"borderlessMode",void 0);_.W([_.D7({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Go);
_.B(Go,"yt-offer-item-renderer",function(){if(psl===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;tqf===void 0&&(tqf=document.createElement("template"));var E=tqf;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);psl=v}v=psl;return v},{mode:2});var emJ;var ZjI;_.yZ("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Cy=function(){return _.z.apply(this,arguments)||this};
_.f(Cy,_.z);Cy.prototype.computeAriaLevel_=function(v){return this.getLevelID_(v)};
Cy.prototype.getLevelID_=function(v){return(v=v.match(/[0-9]+$/))&&v.length==1?v[0]:"1"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cy.prototype,"data",void 0);_.W([_.q({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.X("design:type",String)],Cy.prototype,"ariaLevel",void 0);_.W([_.q({value:"heading",reflectToAttribute:!0}),_.X("design:type",String)],Cy.prototype,"role",void 0);
_.W([_.q({value:-1,reflectToAttribute:!0}),_.X("design:type",Number)],Cy.prototype,"tabindex",void 0);_.W([_.D7({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Cy);
_.B(Cy,"yt-subscription-product-header-renderer",function(){if(ZjI===void 0){var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;emJ===void 0&&(emJ=document.createElement("template"));var E=emJ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ZjI=v}v=ZjI;return v},{mode:2});var Phn;var d$J;_.yZ("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Mt=function(){return _.z.apply(this,arguments)||this};
_.f(Mt,_.z);Mt.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:_.c_("menuRenderer"),events:!0}}};
Mt.prototype.onStampFinished_=function(){_.m9(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Mt.prototype.onStampFinished_=Mt.prototype.onStampFinished_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Mt.prototype,"data",void 0);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Mt.prototype,"onStampFinished_",null);
_.W([_.D7({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Mt);
_.B(Mt,"yt-subscription-product-renderer",function(){if(d$J===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Phn===void 0&&(Phn=document.createElement("template"));var E=Phn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);d$J=v}v=d$J;return v},{mode:2});var hmJ;var wse;_.yZ("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Oq=function(){return _.z.apply(this,arguments)||this};
_.f(Oq,_.z);Oq.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Oq.prototype.imageScrimColorValuesChanged_=function(){var v,Q=(v=this.data)==null?void 0:v.imageScrimColorValues;_.m9(this.hostElement).querySelector("#scrim").style.backgroundColor=Q?_.CF(Q[0]):"transparent"};
Oq.prototype.imageScrimColorValuesChanged_=Oq.prototype.imageScrimColorValuesChanged_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Oq.prototype,"data",void 0);
_.W([_.ph("data.imageScrimColorValues"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Oq.prototype,"imageScrimColorValuesChanged_",null);_.W([_.D7({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Oq);
_.B(Oq,"yt-subscription-product-upsell-offer-renderer",function(){if(wse===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;hmJ===void 0&&(hmJ=document.createElement("template"));var E=hmJ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);wse=v}v=wse;return v},{mode:2});var A7V;var khJ;var TYe;var Yd9;var y7e;var c7l;var Dk=function(){return _.z.apply(this,arguments)||this};
_.f(Dk,_.z);Dk.prototype.onYtServiceRequestError_=function(v){_.NJ(this.hostElement,v.detail.error.message)};
Dk.prototype.onYtServiceRequestError_=Dk.prototype.onYtServiceRequestError_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Dk.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Dk.prototype,"collapsible",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],Dk.prototype,"isManageRed",void 0);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Dk.prototype,"onYtServiceRequestError_",null);_.W([_.D7({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Dk);
_.B(Dk,"yt-single-ypc-offer-renderer",function(){if(c7l===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;y7e===void 0&&(y7e=document.createElement("template"));var E=y7e;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);c7l=v}v=c7l;return v},{mode:2});var Ri=function(){return _.z.apply(this,arguments)||this};
_.f(Ri,_.z);Ri.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ri.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],Ri.prototype,"isManageRed",void 0);_.W([_.D7({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Ri);
_.B(Ri,"yt-single-ypc-offer-list-renderer",function(){if(Yd9===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;TYe===void 0&&(TYe=document.createElement("template"));var E=TYe;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Yd9=v}v=Yd9;return v},{mode:2});var f0b;var Ghj;_.yZ("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ny=function(){return _.z.apply(this,arguments)||this};
_.f(ny,_.z);ny.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ny.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],ny.prototype,"isManageRed",void 0);_.W([_.D7({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ny);
_.B(ny,"yt-ypc-offers-list-renderer",function(){if(Ghj===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;f0b===void 0&&(f0b=document.createElement("template"));var E=f0b;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Ghj=v}v=Ghj;return v},{mode:2});_.yZ("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var l2=function(){return _.z.apply(this,arguments)||this};
_.f(l2,_.z);
l2.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],l2.prototype,"data",void 0);_.W([_.D7({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],l2);
_.B(l2,"yt-unlimited-manage-subscription-page-renderer",function(){if(khJ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;A7V===void 0&&(A7V=document.createElement("template"));var E=A7V;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);khJ=v}v=khJ;return v},{mode:2});var Ch5;var Mqb;var qt=function(){return _.z.apply(this,arguments)||this};
_.f(qt,_.z);_.K=qt.prototype;_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.K.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.onKeypress_=function(v){v.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.K.handleHeaderTap_=function(v){v.preventDefault();v.stopPropagation();this.expandOffers_()};
_.K.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.K.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
qt.prototype.dataChanged_=qt.prototype.dataChanged_;_.W([_.M(_.zI),_.X("design:type",Object)],qt.prototype,"ironA11yKeysBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qt.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],qt.prototype,"offersVisible_",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qt.prototype,"dataChanged_",null);_.W([_.D7({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],qt);
_.B(qt,"yt-collapsible-ypc-offer-renderer",function(){if(Mqb===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Ch5===void 0&&(Ch5=document.createElement("template"));var E=Ch5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Mqb=v}v=Mqb;return v},{mode:2});var Oje;var D$l;_.yZ("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var SL=function(){return _.z.apply(this,arguments)||this};
_.f(SL,_.z);_.K=SL.prototype;_.K.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.K.dataChanged_=function(){if(this.data.backgroundImage){var v=_.rE(this.data.backgroundImage.thumbnails,screen.width),Q=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=Q?"linear-gradient(180deg, "+Q+"), url("+v+")":"url("+v+")";this.data.gtmId&&_.WO(this.data.gtmId,_.r7("GL",""))}};
_.K.onYtServiceRequestError_=function(v){_.NJ(this.hostElement,v.detail.error.message)};
_.K.getScrimLayerColorStops_=function(){var v,Q,V=(v=this.data.unlimitedHeaderV2Data)==null?void 0:(Q=v.unlimitedHeaderV2Data)==null?void 0:Q.scrimLayerColors;if(!V)return null;var E=100/V.length;return V.map(function(b,F){F*=E;return _.CF(b)+" "+F+"%"}).join(",")};
_.K.computeLogoWithPadding=function(v){var Q,V,E;return(v=(Q=v.unlimitedLogoImage)==null?void 0:(V=Q.thumbnails)==null?void 0:(E=V[0])==null?void 0:E.height)&&v%31===0?!0:!1};
SL.prototype.onYtServiceRequestError_=SL.prototype.onYtServiceRequestError_;SL.prototype.dataChanged_=SL.prototype.dataChanged_;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.W([_.q({computed:"computeLogoWithPadding(data)"}),_.X("design:type",Boolean)],SL.prototype,"logoWithPadding",void 0);
_.W([_.q(),_.X("design:type",Object)],SL.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],SL.prototype,"dataChanged_",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],SL.prototype,"onYtServiceRequestError_",null);_.W([_.D7({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],SL);
_.B(SL,"yt-unlimited-page-header-renderer",function(){if(D$l===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Oje===void 0&&(Oje=document.createElement("template"));var E=Oje;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);D$l=v}v=D$l;return v},{mode:2});var Rmn;var nfV;_.yZ("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var zo=function(){return _.z.apply(this,arguments)||this};
_.f(zo,_.z);zo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zo.prototype,"data",void 0);_.W([_.D7({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],zo);
_.B(zo,"yt-unlimited-user-notification-renderer",function(){if(nfV===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Rmn===void 0&&(Rmn=document.createElement("template"));var E=Rmn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);nfV=v}v=nfV;return v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var DfI,nvf,l7Y,SJs,z$I,xfI;_.ZF=function(v){var Q=v.clientMessageId;var V=v.playerOffsetMs;var E=v.pageContext;v=v.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:Q},!!V&&{playerOffsetMs:V},!!E&&{pageContext:E},!!v&&{userInputText:v})}};
_.OhY=function(v,Q,V){Q=Q===void 0?5:Q;if(Q!==0){var E=typeof v==="function"?v():document.querySelector(v);E?(V==null?0:V.enableSmartFocus)?_.X5r(E):E.focus():setTimeout(function(){_.OhY(v,Q-1,V)},500)}};
DfI=function(v){return String.raw.apply(String,[{raw:v}].concat(_.ui(_.aE.apply(1,arguments).map(function(Q){return Q instanceof Array?Q.join(""):Q}))))};
nvf=function(v){var Q=_.aE.apply(1,arguments),V=Q.length;if(!Array.isArray(v)||!Array.isArray(v.raw)||v.length!==v.raw.length||!_.WJA&&v===v.raw||!(_.WJA&&!_.oP8||_.zd(v))||V+1!==v.length)throw new TypeError("$");return new R$8(Object.freeze({strings:Object.freeze(v),args:Object.freeze(Q)}))};
_.P1=function(v){return{continuationCommand:{token:v,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
l7Y=function(){return _.aE.apply(0,arguments).flat().filter(function(v){return v}).join(";")};
SJs=function(){return nvf(qJf,l7Y.apply(null,_.ui(_.aE.apply(0,arguments))))};
z$I=function(v,Q){if(_.Y("web_enable_chat_autoscroll_to_user_turn")&&v&&Q)return v-4+"px"};
_.JMf=function(v,Q){return _.Fg(v.entities,"youchatPendingResponseEntity",Q)};
_.Ngd=function(v){return function(Q){_.jT(_.dW("youchatPendingResponseEntity",v,{entityKey:v,isPendingResponse:Q}))}};
xfI=function(v){v==null||v.addEventListener("DOMLoaded",function(){v.goToAndPlay(v.totalFrames-48,!0)})};
_.PU=function(v){this.__isSoyCss=!0;this.css=DfI.apply(null,[v.strings].concat(_.ui(v.args)))};
_.PU.prototype.toString=function(){return this.css};
var R$8=function(){_.PU.apply(this,arguments)};
_.f(R$8,_.PU);var qJf=_.s$(["",""]);_.BgY=_.x(function(v){var Q=_.o1(v,{numberOfChips:5}).numberOfChips;return _.P("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.P(_.xb,{each:function(){return Array(Q==null?void 0:Q())}},function(){return _.P("div",{class:"ytGhostChipShelfChip"})}))},"Xi");var gvd=_.x(function(v){var Q=void 0,V=function(){return v.data()},E=function(){return!!_.kS(_.ws(V())).optionColor},b=_.L(_.Ge(-1,void 0,"WFh1pc")),F=b.next().value,t=b.next().value,p=function(k){return F()===k},Z=function(k){return V().correctAnswerIndex===k},d=function(){return F()!==-1};
b=_.L(_.Ge("",void 0,"Vi7Gfe"));var w=b.next().value,A=b.next().value;return _.P("yoututor-quiz-view-model",{class:_.QZ("learningQuizComponentHost","learningYoututorQuizHost",v.className),style:_.iP({background:function(){return _.kS(_.ws(V())).backgroundColor}})},_.P("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},w),_.P("div",{class:"learningQuizComponentQuizContainer"},_.P("div",{class:"learningQuizComponentQuiz"},_.P("div",{class:"learningQuizComponentQuizContent"},_.P(_.h,{cond:function(){return!!V().aiGeneratedQuizLabel},
then:function(){return _.P("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.P(_.tD,{text:function(){return V().aiGeneratedQuizLabel}}))}}),_.P("div",{class:"learningQuizComponentQuizHeader"},_.P("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.P("div",{class:"learningYoututorQuizText",
style:_.iP({color:function(){return _.kS(_.ws(V())).primaryTextColor}})},_.P(_.tD,{text:function(){return V().questionHeaderText}}))))),_.P("div",{role:"group",
class:_.QZ("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.P(_.xb,{each:function(){return V().optionsData||[]}},function(k,T){var c={};
return _.P("button",{class:_.QZ("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(c.learningQuizComponentQuizHover=function(){return!d()},c.learningQuizComponentQuizOptionWithCustomColor=E,c.learningYoututorQuizOptionSelectedCorrectOutline=function(){return d()&&Z(T())},c.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return F()!==V().correctAnswerIndex&&p(T())},c.learningQuizComponentQuizIncorrectShake=function(){return F()!==
V().correctAnswerIndex&&p(T())},c)),
"on:click":_.EP(function(){if(d())return!1;t(T());A(Z(T())?V().correctAnswerAriaLabel||"":V().incorrectAnswerAriaLabel||"");return!1}),
style:_.iP({background:"transparent"}),"aria-description":function(){return d()?Z(T())?V().correctAnswerAriaLabel:V().incorrectAnswerAriaLabel:""},
"aria-disabled":d,el:_.ud(function(C){_.Tz(271905,C,Q,function(R){Q=R})}),
"client-ve-type":271905},_.P("div",{class:"learningQuizComponentQuizOptionContainer"},_.P(_.tD,{text:k.optionText}),_.P(_.h,{cond:function(){var C=T();return d()&&(p(C)||Z(C))},
then:function(){var C={};return _.P(_.L_,{className:_.QZ("learningYoututorQuizOptionIcon",(C.learningQuizComponentQuizPulse=function(){return F()===V().correctAnswerIndex&&Z(T())},C)),
size:24,icon:function(){return Z(T())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.P(_.h,{cond:d,
then:function(){return _.P("div",{class:"learningYoututorQuizExplanationContainer"},_.P("div",{class:"learningYoututorQuizExplanationText"},_.P(_.tD,{text:function(){return V().explanationHeaderText}})),_.P(_.tD,{text:function(){return V().optionsData[F()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Yi");
gvd.idomCompat=!0;var s1Y=_.x(function(v){var Q=v.thumbsUp,V=v.thumbsDown,E=v.rightAlignThumbs;v=_.L(_.Ge(!1,void 0,"OxPsH"));var b=v.next().value,F=v.next().value;v=_.L(_.Ge(!1,void 0,"V5vWne"));var t=v.next().value,p=v.next().value;v={};return _.P("div",{class:_.QZ("ytwThumbsUpDownThumbs",(v.ytwThumbsUpDownRightAlign=function(){return E==null?void 0:E()},v))},_.P(_.a5,{data:Q,
onToggle:function(Z){F(Z);t()&&p(!1)},
buttonShapeOverrides:function(){return{toggled:b()}}}),_.P(_.a5,{data:V,
onToggle:function(Z){p(Z);b()&&F(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}))},"Zi");
s1Y.idomCompat=!0;var j17=_.x(function(v){var Q=function(){return v.data().pendingStateEntityKey||""},V=_.p4(_.JMf,Q),E=function(){var p;
if(!(p=v.disabled())){var Z;p=!((Z=V())==null||!Z.isPendingResponse)}return p},b=_.L(_.Ge(SJs(""),void 0,"Q6q6y")),F=b.next().value,t=b.next().value;
_.uk(function(){requestAnimationFrame(function(){var p=v.data().onShowAnimationMs||0;p=p>0?SJs("--chip-animation-duration: "+p+"ms;"):SJs("");t(p)})});
return _.P("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:F},_.P(_.xb,{each:function(){return v.data().chipData||[]},
keyBy:"REFERENCE"},function(p){return _.P(u6I,{data:p,disabled:E,pendingStateKey:Q,onError:v.onError})}))},"aj"),u6I=_.x(function(v){var Q=_.Pa("button"),V=_.L(_.Ge(!0,void 0,"baSFEf")),E=V.next().value,b=V.next().value,F=function(){return v.data().text.content},t=function(){return v.data().transparentWhenLoading},p=_.Z1(_.zw.currentPageSubTypeSelector),Z=function(){var w;
return(w=_.ht().resolve(_.d$(_.ry)))==null?void 0:_.Qbd(w,p())},d=_.EP(function(w){var A,k,T,c,C,R,l,S;
return _.e(function(a){switch(a.nextAddress){case 1:w.stopPropagation();if(v.disabled())return a.return();k=String(Math.floor(((A=_.FS())==null?void 0:A.getCurrentTime())||0)*1E3);T="youchat-"+Date.now();c=function(){_.Oo(v.data().onClick||{});var g=_.P1(v.data().continuation),u=_.ZF({clientMessageId:T,playerOffsetMs:k,pageContext:Z()});return new Promise(function(r,v9){_.Oo(g,{form:{formData:u},commandController:{onSuccess:function(t3,h3){r(h3)},
onServerError:function(t3,h3){v9(h3.error)}}})})};
C=_.Ngd(v.pendingStateKey());C(!0);_.OhY("#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");b(!1);_.GC(a,2);return a.yield(c(),4);case 4:_.FT(a,3);break;case 2:R=_.n$(a),(S=(l=v).onError)==null||S.call(l,R);case 3:C(!1),_.q1(a)}})});
return _.P(_.h,{cond:E,then:function(){return _.P("div",{class:"ytwYouChatChipsDataChipWrapper"},_.P("button",{el:Q,class:"ytwYouChatChipsDataChip","data-disabled":v.disabled,"data-transparent-loading":t,"on:click":d,tabindex:0},F))}})},"bj");var WVY=_.x(function(v){var Q=v.data;var V=v.initiallyExpanded;var E=function(){var d;return(d=Q().conversationResourceData)==null?void 0:d.learningGuideData};
v=_.L(_.K_(function(){var d;return(d=V==null?void 0:V())!=null?d:!1}));
var b=v.next().value,F=v.next().value,t=function(){F(!0)},p=_.Rr(function(){var d,w;
return(w=(d=E())==null?void 0:d.sections)!=null?w:[]},void 0,"QxyRyf"),Z=_.Rr(function(){return p().length>4},void 0,"MEbwoe");
v=_.Rr(function(){var d;return!b()&&Z()&&(d=E())!=null&&d.expandButton?p().slice(0,4):p()},void 0,"hIE70b");
return _.P("yt-conversation-resource-view-model",{class:_.QZ("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.P(_.Pw,{data:v},{expandableMetadataViewModel:_.FXf}),_.P(_.h,{cond:function(){return Z()&&!b()},
then:function(){return _.P("div",{id:"showMoreButton"},_.P(_.Pw,{data:function(){var d;return(d=E())==null?void 0:d.expandButton}},{buttonViewModel:function(d){return _.P(_.D6,{data:d.data,
onClick:t})}}))}}))},"cj");_.ovj=_.x(function(v){var Q=function(){var S;return(S=v.data().text)==null?void 0:S.content},V=function(){var S,a;
return(S=v.data().webData)==null?void 0:(a=S.textResult)==null?void 0:a.content},E=_.ht().resolve(_.xD),b=_.K4(),F=function(){return v.data().chatResponseStyle},t=function(){return!v.data().transparentBackground},p=function(){return v.data().rightAlignThumbs},Z=function(){return v.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||v.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},d=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:Z()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:v.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},w=function(){var S;
return v.data().webData||((S=v.data().text)==null?void 0:S.content)||v.data().videoResultsData||v.data().conversationResourceViewModel||v.data().quiz||v.data().yoututorQuiz||v.data().richContent},A=function(){return!!v.data().sectionHeader||w()},k=function(){var S;
return(S=v.data().videoResultsData)==null?void 0:S.videoShelf},T=function(){var S;
return(S=v.data().webData)==null?void 0:S.sourcesShelf},c=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||F()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:v.data().thumbsDownViewModel&&v.data().thumbsUpViewModel},C=function(){return _.y(v.data().thumbsUpViewModel,_.Zq)},R=function(){return _.y(v.data().thumbsDownViewModel,_.Zq)};
_.uk(function(){requestAnimationFrame(function(){var S;(S=v.shouldAnimateIcon)!=null&&S.call(v)&&xfI(b.lottieEl)})});
var l={};return _.P("you-chat-item-view-model",{class:_.QZ("ytwYouChatItemViewModelYouChatItemViewModel",(l.ytwYouChatItemViewModelColumnLayout=function(){return Z()},l)),
style:_.iP({"min-height":function(){var S,a;return z$I((S=v.containerHeight)==null?void 0:S.call(v),(a=v.isLastItem)==null?void 0:a.call(v))}}),
"data-target-id":function(){return v.data().id||""}},_.P(_.h,{cond:function(){return v.data().removeIcon?!1:A()},
then:function(){var S={};return _.P("div",{"aria-hidden":"true"},_.P(_.z9,{className:_.QZ("ytwYouChatItemViewModelIcon",(S.ytwYouChatItemViewModelRtl=E==="rtl",S.ytwYouChatItemViewModelHidden=function(){return!(v.data().hideIcon||F()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||F()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:A())},S)),
animationName:"YOUCHAT_ICON",data:d,animationRef:b}))}}),_.P(_.h,{cond:A,
then:function(){var S={};return _.P("div",{class:_.QZ("ytwYouChatItemViewModelHost",(S.ytwYouChatItemViewModelHostNoPadding=function(){return!!v.data().sectionHeader&&!w()},S.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},S.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},S.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
S.ytwYouChatItemViewModelGradientBackground=t,S.ytwYouChatItemViewModelHostAlignStart=function(){return!Z()},S.ytwYouChatItemViewModelHostDefaultFlex=function(){return!Z()},S)),
role:"alert"},_.P(_.h,{cond:Q,then:function(a){return _.P(_.dh,{text:a,wrapCodeBlocks:!0})}}),_.P(_.Pw,{data:function(){return v.data().sectionHeader}},{sectionHeaderViewModel:function(a){var g={};
return _.P(_.sT,{data:a.data,className:_.QZ("ytwYouChatItemViewModelSectionHeader",(g.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!v.data().sectionHeader&&!w()},g)),
forceSmallLayout:!0})}}),_.P(_.h,{cond:V,
then:function(a){return _.P(_.dh,{text:a,wrapCodeBlocks:!0})}}),_.P(_.h,{cond:k,
then:function(){return _.P("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.P(_.Pw,{data:function(){var a;return(a=v.data().videoResultsData)==null?void 0:a.videoShelf}},{horizontalShelfViewModel:function(a){return _.P(_.ZP,{data:a.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.P(_.h,{cond:T,
then:function(){return _.P("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.P(_.Pw,{data:function(){var a;return(a=v.data().webData)==null?void 0:a.sourcesShelf}},{horizontalShelfViewModel:function(a){return _.P(_.ZP,{data:a.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.P(_.Pw,{data:function(){return v.data().conversationResourceViewModel}},{conversationResourceViewModel:WVY}),_.P(_.Pw,{data:function(){return v.data().quiz}},{learningJourneyQuizViewModel:_.BpZ}),_.P(_.Pw,{data:function(){return v.data().yoututorQuiz}},{yoututorQuizViewModel:gvd}),_.P(_.Pw,{data:function(){return v.data().richContent}},{cardViewModel:_.z6d,
linearLayoutViewModel:_.p9}),_.P(_.h,{cond:c,then:function(){return _.P(s1Y,{thumbsUp:C,thumbsDown:R,rightAlignThumbs:p})}}))}}),_.P(_.h,{cond:function(){return v.data().chipsData},
then:function(S){return _.P(j17,{data:S,disabled:v.pending,onError:v.onError})}}))},"ej");
_.ovj.idomCompat={callbacks:{onError:!0,onSend:!0}};_.Xn8=_.x(function(v){var Q=function(){var t;return((t=v.data)==null?void 0:t.call(v).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},V=_.K4(),E=_.ht().resolve(_.xD);
_.uk(function(){requestAnimationFrame(function(){var t;(t=V.lottieEl)==null||t.addEventListener("DOMLoaded",function(){var p;(p=v.onLottieLoaded)==null||p.call(v)})})});
var b=function(){var t;return(t=v.data)==null?void 0:t.call(v).loadingAnimationA11yLabel},F={};
return _.P("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var t;return((t=v.data)==null?void 0:t.call(v).targetId)||""},
"aria-label":function(){return b()||""},
role:function(){return b()?"progressbar":void 0},
style:_.iP({"min-height":function(){var t,p;return z$I((t=v.containerHeight)==null?void 0:t.call(v),(p=v.isLastItem)==null?void 0:p.call(v))}})},_.P(_.z9,{"aria-hidden":"true",
className:_.QZ((F.ytChatLoadingViewModelRtl=E==="rtl",F)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:Q()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||Q()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:Q()}}},
animationRef:V}))},"gj");_.a7j=_.x(function(v){var Q=function(){return v.data().choiceSelectedText},V=function(){return v.data().hasGradientBackground},E={};
return _.P("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.iP({"min-height":function(){var b,F;return z$I((b=v.containerHeight)==null?void 0:b.call(v),(F=v.isLastItem)==null?void 0:F.call(v))}}),
"data-target-id":function(){var b;return(b=v.data().itemTargetId)!=null?b:""}},_.P(_.h,{cond:Q,
then:function(){return _.P("div",{class:"ytYouChatUserTurnChoiceSelected"},_.P(_.tD,{text:Q}))}}),_.P("div",{class:_.QZ("ytYouChatUserTurnUserMessage",(E.ytYouChatUserTurnGradientContainer=V,E.ytYouChatUserTurnDefaultContainer=function(){return!V()},E))},function(){return v.data().text}))},"hj");
}catch(e){_._DumpException(e)}
try{
var Lec,tKb,pMV;Lec=function(v){return _.Y("kevlar_watch_cinematics_invisible")||v.fullscreen&&_.Y("kevlar_watch_cinematics_invisible_in_fullscreen")||v.theater&&!v.fullscreen&&_.Y("kevlar_watch_cinematics_invisible_in_theater")};
tKb=function(){var v=document.createElement("canvas"),Q=v.getContext("2d");if(!Q)throw Error("Ro");_.g2(v,{position:"absolute",width:"100%",height:"100%"});return{element:v,context:Q}};
pMV=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.Y("kevlar_watch_cinematics_css_blur")};
_.eIf=function(v,Q,V){return Math.abs(v-Q)<=(V||1E-6)};
_.Zgb=function(v,Q){return v==Q?!0:v&&Q?v.width==Q.width&&v.height==Q.height:!1};_.PtJ=new _.FG("notificationActionRenderer");var dze=function(v){var Q=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.bK;this.element.addEventListener("load",function(){Q.loaded=!0;Q.resolver.resolve(Q.element)});
this.element.addEventListener("error",function(){Q.failed=!0});
this.element.src=v};var hIV=function(v,Q){this.image=v;this.frame=Q};
hIV.prototype.drawToCanvas=function(v,Q){var V=this.frame.width/this.frame.columns,E=this.frame.height/this.frame.rows,b=Q.offsetX,F=Q.offsetY;Lec(Q)?(v.fillStyle=Q.fullscreen?"#000":"#0f0f0f",v.fillRect(b,F,(Q==null?void 0:Q.width)||V,(Q==null?void 0:Q.height)||E)):v.drawImage(this.image,this.frame.column*V,this.frame.row*E,V,E,b,F,(Q==null?void 0:Q.width)||V,(Q==null?void 0:Q.height)||E)};
var wMJ=function(v){this.color=v};
wMJ.prototype.drawToCanvas=function(v,Q){var V=Q.offsetX,E=Q.offsetY,b=Q.width,F=Q.height;v.fillStyle=Lec(Q)?Q.fullscreen?"#000":"#0f0f0f":this.color;v.fillRect(V,E,b,F)};var hz=function(v,Q){_.ij.call(this);this.playerApi=Q;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.DT(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();A5V(this,v);kcI(this);this.update()};
_.f(hz,_.ij);hz.prototype.addEventListeners=function(){var v=this,Q=function(){v.update()},V=function(b){v.paused||(b.type==="newdata"&&(v.mosaics.clear(),TZn(v),wQ(v)),kcI(v),v.update())},E=function(){v.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",Q);this.playerApi.addEventListener("onVideoDataChange",V);this.playerApi.addEventListener("onStateChange",E);this.addOnDisposeCallback(function(){v.playerApi.removeEventListener("onVideoProgress",Q);v.playerApi.removeEventListener("onVideoDataChange",V);v.playerApi.removeEventListener("onStateChange",E)})};
var A5V=function(v,Q){v.cinematicContainerRenderer!==Q&&(v.cinematicContainerRenderer=Q,TZn(v),wQ(v),v.colorStoreUpdateJobId=_.XT.addLowPriorityJob(function(){var V;if((V=v.cinematicContainerRenderer.colorStore)!=null&&V.sampledColors){V=Infinity;for(var E=_.L(v.cinematicContainerRenderer.colorStore.sampledColors),b=E.next();!b.done;b=E.next()){b=b.value;var F=Number(b.key);F!==0&&F<V&&(V=F);F=_.CF(b.value);v.colorStore.set(b.key,F)}v.colorStoreTimeInterval=V}}))},TZn=function(v){v.colorStoreUpdateJobId&&
(_.XT.cancelJob(v.colorStoreUpdateJobId),v.colorStoreUpdateJobId=void 0);
v.colorStore.clear();v.currentStoryboardColor=void 0},Yhj=function(v,Q){var V;
return(V=v.getStoryboardFrame(Q))==null?void 0:V.url};
hz.prototype.onPlayerStateChange=function(){this.update()};
hz.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var kcI=function(v){var Q=v.getStoryboardFrame(0);Q&&(Q=new _.DT(Q.width/Q.columns,Q.height/Q.rows),_.Zgb(v.currentStoryboardSize,Q)||(v.currentStoryboardSize=Q,v.publish("STORYBOARD_SIZE_CHANGED",v.currentStoryboardSize)))},y5f=function(v,Q){v.currentStoryboardIndex=Q;
v.pendingStoryboardIndex=NaN;Q=v.getStoryboardFrame(v.currentStoryboardIndex);v.currentStoryboard=new hIV(v.mosaics.get(Q.url).element,Q);v.publish("STORYBOARD_CHANGED",v.currentStoryboard);v.lastUpdateTime=(0,_.wO)()};
hz.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var wQ=function(v){v.currentStoryboardIndex=NaN;v.pendingStoryboardIndex=NaN;v.currentStoryboard&&(v.currentStoryboard=void 0,v.publish("STORYBOARD_CHANGED",void 0));v.lastUpdateTime=NaN};
hz.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)wQ(this);else{var v=this.playerApi.getPlayerState(1);if(v===-1||v===5||v===0)wQ(this);else if(isNaN(this.lastUpdateTime)||!((0,_.wO)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(v=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){v=""+Math.round(v*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var Q=this.colorStore.get(v);Q?Q!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=Q,this.currentStoryboard=new wMJ(Q),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.wO)()):(_.Iy(new _.xd("Could not find color for timestamp: "+v,this.cinematicContainerRenderer)),wQ(this))}else wQ(this);else c5q(this,v)}};
var c5q=function(v,Q){var V=v.getStoryboardFrameIndex(Q);if(V!==v.currentStoryboardIndex&&V!==v.pendingStoryboardIndex){Q=Yhj(v,V);var E=v.mosaics.get(Q);E?E.loaded&&y5f(v,V):(v.pendingStoryboardIndex=V,V=new dze(Q),v.mosaics.set(Q,V),V.resolver.promise.then(function(){if(!v.isDisposed()&&!v.paused&&!isNaN(v.pendingStoryboardIndex)){var b=Yhj(v,v.pendingStoryboardIndex);if(b){var F;(F=v.mosaics.get(b))!=null&&F.loaded&&y5f(v,v.pendingStoryboardIndex)}else wQ(v)}}))}};
hz.prototype.getStoryboardFrameIndex=function(v){var Q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(v,Q)};
hz.prototype.getStoryboardFrame=function(v){var Q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,V,E;return((E=(V=this.playerApi).getStoryboardFrame)==null?void 0:E.call(V,v,Q))||null};
hz.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var kE=function(v,Q,V,E){E=E===void 0?!1:E;_.J5.call(this);this.cinematicContainerRenderer=Q;this.playerApi=V;this.theater=this.fullscreen=!1;var b;this.ambientLightThemeEnabled=!E&&!!(Q==null?0:(b=Q.config)==null?0:b.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=E)&&!0;this.container=document.createElement("div");v.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);fgq(this);this.backCanvas=
tKb();this.frontCanvas=tKb();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new hz(Q,this.playerApi);_.Cg(this,this.storyboardManager);this.addEventListeners();GcE(this)?Ctn(this,100+Az(this)*3*2,100+Az(this)*3*2):MKn(this);OgP(this,this.storyboardManager.currentStoryboard)};
_.f(kE,_.J5);
var fgq=function(v){var Q=v.playerApi.getVideoAspectRatio();_.g2(v.container,{"aspect-ratio":""+Q,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var V;var E;if((v.fullscreen||v.theater)&&((V=v.cinematicContainerRenderer.config)==null?0:(E=V.watchFullscreenConfig)==null?0:E.colorSourceWidthMultiplier))V=v.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var b;V=(b=
v.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?b:v.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var F,t;if((v.fullscreen||v.theater)&&((F=v.cinematicContainerRenderer.config)==null?0:(t=F.watchFullscreenConfig)==null?0:t.colorSourceHeightMultiplier))b=v.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var p;b=(p=v.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?p:v.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.g2(v.innerContainer,
{"aspect-ratio":""+Q,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+V+", "+b+")"});pMV()&&_.g2(v.innerContainer,"filter","blur("+_.T_("cinematic_watch_css_filter_blur_strength",40)+"px)")};
kE.prototype.setFullscreen=function(v,Q){this.fullscreen=v;this.theater=!!Q;fgq(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),v=this.storyboardManager.currentStoryboard,Dz5(this),v&&RIb(this,v)};
kE.prototype.addEventListeners=function(){var v=this,Q=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(b){OgP(v,b)}),V=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){MKn(v)});
this.addOnDisposeCallback(function(){v.storyboardManager.unsubscribeByKey(Q);v.storyboardManager.unsubscribeByKey(V)});
var E=function(){fgq(v)};
this.playerApi.addEventListener("onVideoDataChange",E);this.addOnDisposeCallback(function(){v.playerApi.removeEventListener("onVideoDataChange",E)})};
var MKn=function(v){if(!GcE(v)){var Q=v.storyboardManager.currentStoryboardSize;isNaN(Q.width)||isNaN(Q.height)||Ctn(v,Number(Q.width)+Az(v)*3*2,Number(Q.height)+Az(v)*3*2)}},Ctn=function(v,Q,V){v.backCanvas.element.width=Q;
v.backCanvas.element.height=V;v.frontCanvas.element.width=Q;v.frontCanvas.element.height=V},GcE=function(v){return v.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},OgP=function(v,Q,V){V=V===void 0?!1:V;
var E=v.frontCanvas.element.getAnimations()[0];E?(E.pause(),v.backCanvas.context.globalAlpha=Number(getComputedStyle(v.frontCanvas.element).opacity),v.frontCanvas.element.style.opacity="0",E.finish()):v.backCanvas.context.globalAlpha=1;v.backCanvas.context.drawImage(v.frontCanvas.element,0,0,v.backCanvas.element.width,v.backCanvas.element.height);Dz5(v);Q&&RIb(v,Q);Q=Q?v.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.T_("cinematic_watch_fade_out_duration",500);E=_.T_("cinematic_watch_transition_frame_rate")/
1E3;var b={};E&&(b={easing:"steps("+Math.round(Q*E)+")"});(V===void 0?0:V)||v.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:Q,iterations:1},b));v.frontCanvas.element.style.opacity="1"},Dz5=function(v){var Q=v.ambientLightThemeEnabled||v.ambientTheaterModeEnabled,V=v.ambientLightThemeEnabled||v.ambientFullscreenEnabled;
v.frontCanvas.context.fillStyle=v.theater&&Q||v.fullscreen&&V?"#000":"#0f0f0f";pMV()||(v.frontCanvas.context.filter="blur(0)");v.frontCanvas.context.fillRect(0,0,v.frontCanvas.element.width,v.frontCanvas.element.height)},RIb=function(v,Q){pMV()||(v.frontCanvas.context.filter="blur("+Az(v)+"px)");
v.frontCanvas.context.globalAlpha=v.fullscreen&&v.ambientFullscreenEnabled||v.theater&&v.ambientTheaterModeEnabled?_.T_("cinematic_watch_effect_letterbox_opacity",.4):_.T_("cinematic_watch_effect_opacity",.4);var V={offsetX:Az(v)*3,offsetY:Az(v)*3,theater:v.theater,fullscreen:v.fullscreen};GcE(v)&&(V.width=100,V.height=100);Q.drawToCanvas(v.frontCanvas.context,V);v.frontCanvas.context.globalAlpha=1},Az=function(v){var Q;
return(Q=v.cinematicContainerRenderer.config.blurStrength)!=null?Q:5};
kE.prototype.disposeInternal=function(){_.J5.prototype.disposeInternal.call(this);this.container.remove()};
kE.prototype.clear=function(){OgP(this,void 0,!0)};
kE.prototype.pause=function(){this.storyboardManager.pause()};var nJe;nJe=_.fo(function(){var v,Q,V=!((Q=(v=document.createElement("canvas")).getContext)==null||!Q.call(v,"2d")),E;v=!((E=CSS)==null||!E.supports("filter: blur(0)"));E=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var b;return V&&v&&E&&!((b=CSS)==null||!b.supports("aspect-ratio: 1 / 1"))});
_.TF=function(v,Q){_.ij.call(this);this.container=v;this.playerApi=Q;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=lgd(this);this.update()};
_.f(_.TF,_.ij);_.qhJ=function(v){var Q=document.documentElement.hasAttribute("dark");v.isDarkModeEnabled=Q;v.update()};
_.Shc=function(v,Q){v.settingEnabled=Q;v.update()};
_.TF.prototype.setFullscreen=function(v,Q){this.fullscreen=v;this.theater=!!Q;this.update()};
_.zIj=function(v,Q){v.cinematicContainerRenderer=Q;v.cinematicContainerRenderer&&(v.cinematicsVe=_.Vw(v.isShorts()?227858:159022),_.za(_.tR(),v.cinematicsVe),v.loggingClientData={watchCinematicContainerData:{presentationStyle:v.cinematicContainerRenderer.presentationStyle}});v.update()};
_.TF.prototype.isShorts=function(){var v,Q;return((v=this.cinematicContainerRenderer)==null?void 0:(Q=v.config)==null?void 0:Q.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.TF.prototype.isAllowed=function(){var v;if(v=nJe()){var Q,V,E;v=((V=this.cinematicContainerRenderer)==null?void 0:V.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((E=this.cinematicContainerRenderer)==null||!E.colorStore)||((Q=this.cinematicContainerRenderer)==null?void 0:Q.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(v)if(_.Y("web_cinematics_pausing")){var b,F;v=this.isDarkModeEnabled||!!((b=this.cinematicContainerRenderer)==
null?0:(F=b.config)==null?0:F.enableInLightTheme)}else{var t,p;b=!!((t=this.cinematicContainerRenderer)==null?0:(p=t.config)==null?0:p.enableInLightTheme)&&(_.r7("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);v=this.isDarkModeEnabled||b}if(t=v){var Z,d;t=!((d=(Z=this.prefersReducedMotionQuery)==null?void 0:Z.matches)!=null&&d)}return t};
_.J5d=function(v){(v=v.currentCinematicEffect)!=null&&(v=v.storyboardManager,v.paused=!1,kcI(v),v.update())};
_.TF.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var lgd=function(v){if(!_.Y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var Q=window.matchMedia("(prefers-reduced-motion: reduce)"),V=function(){v.update()};
Q.addListener(V);v.addOnDisposeCallback(function(){Q.removeListener(V)});
return Q}};
_.TF.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var v=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new kE(this.container,v,this.playerApi,this.isDarkModeEnabled),_.Cg(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var Q=this.currentCinematicEffect;Q.cinematicContainerRenderer!==
v&&(Q.cinematicContainerRenderer=v,A5V(Q.storyboardManager,v),fgq(Q));v=_.eP();_.ZG(0,194,!0);v.save();v=_.Mo();this.cinematicsVe&&v&&_.gD(v,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(v=_.Mo(),this.cinematicsVe&&v&&_.s2(v,[this.cinematicsVe],!1,this.loggingClientData),_.t5(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.hr.Object.defineProperties(_.TF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var zDq;var Jdd;_.fh({_template:function(){if(Jdd!==void 0)return Jdd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=
v.content,V=Q.insertBefore;zDq===void 0&&(zDq=document.createElement("template"));var E=zDq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return Jdd=v},
is:"tp-yt-iron-pages",behaviors:[_.WW,_.Bn],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var l5c;_.q95=function(){if(_.Y("kevlar_home_skeleton")&&!l5c){var v=document.querySelector("#home-page-skeleton");v&&(_.Mp("hgcr"),_.ng(v),l5c=!0)}};
l5c=!1;_.vG=new _.FG("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var l0I=function(v){return _.Wyo(_.jVt(v&16777215))<.5},qdE=function(v,Q,V){var E=V.minimumRowsOfVideosBetweenSections===void 0?1:V.minimumRowsOfVideosBetweenSections;
return v<(V.minimumRowsOfVideosAtStart===void 0?2:V.minimumRowsOfVideosAtStart)||Q!==null&&v-Q<=E?!1:!0},Sdl=function(v,Q){var V=0,E=0;
v=_.L(v);for(var b=v.next();!b.done;b=v.next()){var F=b.value;if(F.richItemRenderer)F.richItemRenderer.rowIndex=E,F.richItemRenderer.colIndex=V++,V===Q&&(V=0,E++);else if(F.richGroupRenderer&&F.richGroupRenderer.numColumns!==void 0)F.richGroupRenderer.rowIndex=E,F.richGroupRenderer.colIndex=V,V+=F.richGroupRenderer.numColumns,V===Q&&(V=0,E++);else if(F.richSectionRenderer){var t=b=void 0;if(F=_.y((b=F)==null?void 0:(t=b.richSectionRenderer)==null?void 0:t.content,_.GIN))F.rowIndex=E++}}},zml=function(v,
Q){var V=Q.contentElement;
Q=Q.rendererToTagNameMap;if(V&&Q&&Q.size!==0){for(var E=new Map,b=_.L(V.children),F=b.next();!F.done;F=b.next()){F=F.value;var t=F.tagName.toLowerCase(),p=E.get(t);p||(p=[],E.set(t,p));p.push(F)}if(E.size!==0)for(b=Math.min(v.length,V.children.length),F=new Map,t=0;t<b;t++){p=Object.keys(v[t])[0];p=Q.get(p);if(!p)break;var Z=F.get(p);Z===void 0&&(Z=0,F.set(p,Z));var d=E.get(p);if(!d||Z>=d.length)break;F.set(p,Z+1);p=d[Z];Z=V.children[t];Z!==p&&(_.od=!0,_.XL.set(p,!0),V.insertBefore(p,Z),_.XL.delete(p),
_.od=!1)}}},J7j=function(v,Q,V,E,b,F,t){E=E===void 0?{}:E;
if(!v||!v.length)return{orderedContent:[]};v=v.slice();var p=[],Z=[];b=null;for(var d=0,w=function(a){Z.sort(function(r,v9){return v9.skippedOnRow-r.skippedOnRow});
for(var g,u=(g=Z.shift())==null?void 0:g.content;u;)!u.richSectionRenderer&&a||p.push(u),g=void 0,u=(g=Z.shift())==null?void 0:g.content},A=void 0,k=void 0,T=new Set;v.length>0||Z.length>0;){for(var c=[],C=Q;C>0;){var R=void 0,l=void 0,S=(l=Z[0]&&Z[0].skippedOnRow<d?(R=Z.shift())==null?void 0:R.content:void 0)!=null?l:v.shift();
if(!S)break;if(S.richItemRenderer)R=S.richItemRenderer.targetId,l=void 0,R&&((l=t)==null?0:l.has(R))&&(l=t.get(R),!A||l&&l.timestamp>A.timestamp)&&(A=l,k&&T.add(k),k=R),c.push(S),C--;else if(S.richGroupRenderer&&S.richGroupRenderer.numColumns!==void 0)S.richGroupRenderer.numColumns<=C?(c.push(S),C-=S.richGroupRenderer.numColumns):C===Q&&S.richGroupRenderer.numColumns>Q?(c.push({richGroupRenderer:Object.assign({},S.richGroupRenderer,{numColumns:Q})}),C=0):Z.push({content:S,skippedOnRow:d});else if(S.richSectionRenderer)if(qdE(d,
b,E)&&C===Q){p.push(S);b=d;d++;continue}else Z.push({content:S,skippedOnRow:d});else if(S.continuationItemRenderer){w(!0);p.push(S);C=0;break}if(C===0)p.push.apply(p,_.ui(c));else if(!V&&v.length===0){w(!1);p.push.apply(p,_.ui(c));C=0;break}}d++;A&&(p.push(A.content),d++);k=A=void 0}Sdl(p,Q);F&&zml(p,F);return{orderedContent:p,pinnedContentNotShownTargetIds:T}},BYj=function(v,Q){if(Q){var V=_.oF().getState().entities.flowStateEntity,E=NYP(v),b=[Q];
E&&E!==Q&&b.push(E);var F=!0,t;if(V&&v.flowStateEntityKey&&((t=V[v.flowStateEntityKey])==null?void 0:t.primaryButtonDisabled)!==void 0){var p;F=!((p=V[v.flowStateEntityKey])==null||!p.primaryButtonDisabled)}x$q(v,E!=null?E:Q,b,F)}},s8l=function(v){return _.Wm(_.oF(),function(Q){return Q.entities.flowStateEntity},function(Q,V){if(v.flowStateEntityKey){var E,b=Q==null?void 0:(E=Q[v.flowStateEntityKey])==null?void 0:E.currentStepId,F;
V=V==null?void 0:(F=V[v.flowStateEntityKey])==null?void 0:F.currentStepId;F=_.oF().getState().talkToRecs;if(b&&b!==V){var t;Q=(Q==null?void 0:(t=Q[v.flowStateEntityKey])==null?void 0:t.stepIdStack)||Object.keys(F.stepStates);t=!gfq(F==null?void 0:F.stepStates[b]);x$q(v,b,Q,t)}}})},j8P=function(v){return _.Wm(_.oF(),unc,function(Q){var V=NYP(v);
if(V){var E=Object.keys(Q.stepStates);Q=!gfq(Q==null?void 0:Q.stepStates[V]);x$q(v,V,E,Q)}})},gfq=function(v){var Q=Object.keys((v==null?void 0:v.selectionStates)||{}).reduce(function(F,t){return F||(v==null?void 0:v.selectionStates[t].isSelected)},!1),V,E,b=!!(v==null?0:(V=v.userQuery)==null?0:(E=V.userQuery)==null?0:E.trim());
return Q||b},NYP=function(v){if(v.flowStateEntityKey){var Q,V,E=(Q=_.oF().getState().entities.flowStateEntity)==null?void 0:(V=Q[v.flowStateEntityKey])==null?void 0:V.currentStepId;
if(E)return E}},x$q=function(v,Q,V,E){_.oF().dispatch(_.dW("flowStateEntity",v.flowStateEntityKey,{currentStepId:Q,
stepIdStack:V,key:v.flowStateEntityKey,primaryButtonDisabled:E}))},WIb;var ofJ;_.fh({_template:function(){if(ofJ!==void 0)return ofJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
var Q=v.content,V=Q.insertBefore;WIb===void 0&&(WIb=document.createElement("template"));var E=WIb;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return ofJ=v},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Xsj=new _.FG("flowRootRenderer");var a09=new _.FG("chipsShelfViewModel");var r7I=new _.FG("responsiveContainerConfiguration");_.$$P=new _.FG("engagementPanelSectionListRenderer");var I0c=function(){this.horizontal=!1},Hje=function(v,Q){v.horizontal=Q};
I0c.prototype.position=function(v,Q,V,E){E=E===void 0?1:E;v=this.delta(v)*E+Q;E=Math.max(Q,V);return v>=Math.min(Q,V)&&v<=E?v:V};
I0c.prototype.axis=function(v){v=this.direction(v);return v==="up"||v==="down"?"Y":"X"};var JA=function(v,Q,V){Q=Q===void 0?_.BO():Q;this.target=v;this.manager=Q;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(){}};
JA.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(_.ui(this.events)));for(var v=_.L(this.events),Q=v.next();!Q.done;Q=v.next())this.listen(Q.value)}};
JA.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ui(this.events)));for(var v=_.L(this.events),Q=v.next();!Q.done;Q=v.next())this.unlisten(Q.value)}};
JA.prototype.listen=function(v){this.eventMap[v]&&this.target.addEventListener(v,this.eventMap[v])};
JA.prototype.unlisten=function(v){this.eventMap[v]&&this.target.removeEventListener(v,this.eventMap[v])};var Nt=function(){I0c.apply(this,arguments)};
_.f(Nt,I0c);Nt.prototype.direction=function(v){var Q=v.detail;v=Q.deltaY;Q=Q.deltaX;return v&&!this.horizontal?v>0?"down":"up":Q&&this.horizontal?Q>0?"right":"left":"none"};
Nt.prototype.distance=function(v){return Math.abs(this.delta(v))};
Nt.prototype.delta=function(v){var Q=this.direction(v),V=v.detail;v=V.deltaX;V=V.deltaY;return Q==="up"||Q==="down"?V||0:v||0};
Nt.prototype.velocity=function(v){var Q=this.direction(v),V=v.detail;v=V.velocityX;V=V.velocityY;return Math.abs(Q==="up"||Q==="down"?V||0:v||0)};_.x1=function(v,Q,V,E,b,F){b=b===void 0?new Nt:b;F=F===void 0?_.BO():F;JA.call(this,Q,F,E);var t=this;this.element=v;this.target=Q;this.config=V;this.input=b;this.manager=F;this.events=["panstart","panmove","panend"];this.onPanStart=function(){t.config.draggingClass&&t.element.classList.add(t.config.draggingClass);t.config.startAction&&t.config.startAction()};
this.onPanMove=function(p){var Z=m$J(t,p);if(Z){t.move(p,Z);Z.fade&&t.fade(p,Z);var d=t.input.direction(p);Z.moveAction&&Z.moveAction(U$c(t,p,Z),d)}};
this.onPanEnd=function(p){var Z,d,w,A,k,T;return _.e(function(c){if(c.nextAddress==1){t.animationRequestId&&cancelAnimationFrame(t.animationRequestId);t.animationRequestId=void 0;Z=m$J(t,p);if(!Z)return c.return();d=Z;w=d.triggerAction;A=d.fade;k=d.disableFinish;T=d.translateBack;var C=t.input.velocity(p),R=t.input.distance(p),l=t.threshold(Z);return C>.3&&R>10||R>l?k?c.jumpTo(6):A?c.yield(vPn(t,p),6):c.yield(QE9(t,p,Z),6):T?c.yield(t.translateBack(p),3):c.jumpTo(3)}c.nextAddress!=3&&w&&w();t.config.draggingClass&&
t.element.classList.remove(t.config.draggingClass);t.reset();_.q1(c)})};
v=Object.keys(V.triggers);this.directions=new Set(v);Hje(this.input,this.directions.has("right")||this.directions.has("left"))};
_.f(_.x1,JA);_.x1.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var m$J=function(v,Q){Q=v.input.direction(Q);return v.config.triggers[Q]};
_.x1.prototype.move=function(v,Q){var V=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var E=V.input.axis(v),b=V.input.position(v,V.config.startPosition,Q.endPosition,Q.moveRatio||1);V.element.style.transform="translate"+E+"("+b+"px)";V.animationRequestId=void 0}))};
var U$c=function(v,Q,V){var E=V.moveRatio||1;V=Math.abs(v.config.startPosition-V.endPosition);return Math.min(v.input.distance(Q)*E,V)/V};
_.x1.prototype.fade=function(v,Q){var V=Q.endOpacity;v=U$c(this,v,Q);v>0&&(this.element.style.opacity=""+(((V||0)-1)*v+1))};
_.x1.prototype.threshold=function(v){return v.threshold?v.threshold:Math.abs(v.endPosition-this.config.startPosition)/3};
var QE9=function(v,Q,V){var E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1)return E=v.input.delta(Q)+v.config.startPosition,b=v.input.axis(Q),F=V,t=F.endPosition,p=F.transitionEndPosition,d=(Z=p)!=null?Z:t,w.yield(v.element.animate([{transform:"translate"+b+"("+E+"px)"},{transform:"translate"+b+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.element.style.transform="translate"+b+"("+d+"px)";_.q1(w)})};
_.x1.prototype.translateBack=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1){if(!Q.element.style.transform)return b.return();V=Q.input.axis(v);E=Q.config.startPosition;return b.yield(Q.element.animate([{transform:Q.element.style.transform},{transform:"translate"+V+"("+E+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}Q.element.style.transform="translate"+V+"("+E+"px)";_.q1(b)})};
var vPn=function(v,Q){var V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return V=v.input.delta(Q)+v.config.startPosition,E=v.input.axis(Q),b=V+70,F=v.element.style.opacity===""?1:v.element.style.opacity,t.yield(v.element.animate([{transform:"translate"+E+"("+V+"px)",opacity:F},{transform:"translate"+E+"("+b+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.element.style.transform="translate"+E+"("+b+"px)";v.element.style.opacity="0";_.q1(t)})};var BT=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;v.scrollRate=3;v.autoScrollAnimationStart=0;v.autoScrollPaused=!1;v.autoScrollRafId=0;return v};
_.f(BT,_.dg);_.K=BT.prototype;_.K.created=function(){var v=this;this.boundAutoScrollHandler=function(Q){v.autoScroll(Q)}};
_.K.detached=function(){this.hostElement.removeEventListener("mouseout",_.Lh(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Lh(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Lh(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.K.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Lh(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Lh(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Lh(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Lh(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Lh(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Lh(this,this.endAutoScroll)),this.endAutoScroll())};
_.K.autoScroll=function(v){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=v);var Q;if(Q=!this.autoScrollPaused&&this.scrollTarget)Q=this.scrollTarget,Q=Q.scrollHeight-Q.scrollTop!==Q.clientHeight;Q&&(Q=1E3/this.scrollRate,v-=this.autoScrollAnimationStart,v>Q&&(this.scrollTarget.scrollTop+=Math.ceil(v/Q),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.K.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.K.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
BT.prototype.autoScrollEnabledChanged=BT.prototype.autoScrollEnabledChanged;_.W([_.q(),_.X("design:type",Object)],BT.prototype,"scrollRate",void 0);_.W([_.q(),_.X("design:type",Object)],BT.prototype,"scrollTarget",void 0);_.W([_.q(),_.X("design:type",Boolean)],BT.prototype,"autoScrollEnabled",void 0);_.W([_.ph("autoScrollEnabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],BT.prototype,"autoScrollEnabledChanged",null);_.W([_.hM()],BT);_.Vc5=[BT.prototype];var EPE;var gT=function(){var v=_.z.apply(this,arguments)||this;v.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};v.forceDarkTheme=!1;v.forceLightTheme=!1;v.dynamicTextHeight=94;v.hasOverflowButton=!1;v.isInfeedModernization=!1;return v};
_.f(gT,_.z);_.K=gT.prototype;_.K.computeUrlImg=function(v){if(v)return _.$D(v.thumbnails)};
_.K.getLogoHeight=function(v){return this.logoWithPadding(v)?"31":"24"};
_.K.getLogoClassName=function(v){return this.logoWithPadding(v)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.K.logoWithPadding=function(v){var Q,V;return(v=(Q=v.thumbnails)==null?void 0:(V=Q[0])==null?void 0:V.height)&&v%31===0?!0:!1};
_.K.sendImpressionEndpoints=function(v){v.impressionEndpoints&&_.vp(this.hostElement,v.impressionEndpoints)};
_.K.observeBasicPalette=function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.colorData)==null?void 0:Q.basicColorPaletteData;V?_.Tr(this.hostElement,V):_.Tr(this.hostElement,{})};
_.K.observeDataChanged=function(){var v;this.dynamicTextHeight=((v=this.data)==null?0:v.supplementalText)?74:94;var Q;this.hasSupplementalText=!((Q=this.data)==null||!Q.supplementalText);var V,E,b,F;v=(V=this.data)==null?void 0:(E=V.actionButton)==null?void 0:(b=E.buttonRenderer)==null?void 0:(F=b.colorData)==null?void 0:F.basicColorPaletteData;var t,p,Z;if(!((t=this.data)==null?0:(p=t.actionButton)==null?0:(Z=p.buttonRenderer)==null?0:Z.style)&&v){this.computeIsInfeedModernization(this.data)||(v.borderColor=
v.foregroundTitleColor);var d,w;this.set("data.actionButton.buttonRenderer",_.gI.unsafeClone((d=this.data)==null?void 0:(w=d.actionButton)==null?void 0:w.buttonRenderer))}};
_.K.observeDataForCounterfactual=function(){if(_.Y("kevlar_banner_cf_extra_logging")){var v;((v=this.data)==null?0:v.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.K.computeSupplementalStyle=function(){var v;if((v=this.data)!=null&&v.supplementalText){var Q,V,E;if((Q=this.data)==null?0:(V=Q.colorData)==null?0:(E=V.basicColorPaletteData)==null?0:E.foregroundActivatedColor)return v=_.GA(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+v+"; --yt-endpoint-hover-color:"+v+"; --yt-endpoint-visited-color:"+v+"; --yt-formatted-string-bold-font-weight:700;"}};
_.K.computeForcedDarkTheme=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.actionButton)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.style,b,F,t;v=l0I(((b=this.data)==null?void 0:(F=b.colorData)==null?void 0:(t=F.basicColorPaletteData)==null?void 0:t.backgroundColor)||0);return E&&v};
_.K.computeForcedLightTheme=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.actionButton)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.style,b,F,t;v=!l0I(((b=this.data)==null?void 0:(F=b.colorData)==null?void 0:(t=F.basicColorPaletteData)==null?void 0:t.backgroundColor)||0);return E&&v};
_.K.computeHasOverflowButton=function(v){return!!v.overflowButton};
_.K.computeHasTitle=function(v){return!!v.title};
_.K.computeTitleMaxFontSize=function(v){return this.computeHasOverflowButton(v)?28:64};
_.K.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.K.computeIsInfeedModernization=function(){var v,Q,V,E,b=(v=this.data)==null?void 0:(Q=v.actionButton)==null?void 0:(V=Q.buttonRenderer)==null?void 0:(E=V.colorData)==null?void 0:E.basicColorPaletteData;return(b==null?void 0:b.backgroundColor)===452984831||(b==null?void 0:b.backgroundColor)===218103808};
gT.prototype.observeDataForCounterfactual=gT.prototype.observeDataForCounterfactual;gT.prototype.observeDataChanged=gT.prototype.observeDataChanged;gT.prototype.observeBasicPalette=gT.prototype.observeBasicPalette;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],gT.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],gT.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],gT.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],gT.prototype,"hasSupplementalText",void 0);_.W([_.q(),_.X("design:type",Object)],gT.prototype,"dismissButtonOverrides",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.X("design:type",Boolean)],gT.prototype,"hasTitle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.X("design:type",Object)],gT.prototype,"forceDarkTheme",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.X("design:type",Object)],gT.prototype,"forceLightTheme",void 0);_.W([_.q(),_.X("design:type",Object)],gT.prototype,"dynamicTextHeight",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.X("design:type",Object)],gT.prototype,"hasOverflowButton",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.X("design:type",Object)],gT.prototype,"isInfeedModernization",void 0);_.W([_.ph("data.colorData.basicColorPaletteData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gT.prototype,"observeBasicPalette",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gT.prototype,"observeDataChanged",null);_.W([_.ph("data.isVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gT.prototype,"observeDataForCounterfactual",null);_.W([_.J({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],gT);
_.B(gT,"ytd-banner-promo-renderer",function(){if(EPE!==void 0)return EPE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden$="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return EPE=v},{mode:1});var bfV;var FJ9;var KJV;var ifE=function(){return _.z.apply(this,arguments)||this};
_.f(ifE,_.z);_.W([_.q(),_.X("design:type",Object)],ifE.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ifE.prototype,"ytRendererBehavior",void 0);_.W([_.J({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ifE);
_.B(ifE,"ytd-hashtag-grid-tile-renderer",function(){if(KJV!==void 0)return KJV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return KJV=v},{mode:1});var sq=function(){return _.z.apply(this,arguments)||this};
_.f(sq,_.z);sq.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
sq.prototype.updateRichGridTrendingHashtagsVisibility=function(){var v,Q;if(((v=this.data)==null||!v.isExpanded)&&(Q=this.data)!=null&&Q.tiles){v=this.data.tiles.length;Q=v>this.richGridItemsPerRow?this.richGridItemsPerRow+1:v;var V=Math.ceil(v/Q);this.fullyVisibleRows=v%Q===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
sq.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
sq.prototype.updateRichGridTrendingHashtagsVisibility=sq.prototype.updateRichGridTrendingHashtagsVisibility;_.W([_.q(),_.X("design:type",Object)],sq.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Number)],sq.prototype,"fullyVisibleRows",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],sq.prototype,"isShowMoreVisible",void 0);_.W([_.q({selector:_.C7,value:0}),_.X("design:type",Number)],sq.prototype,"richGridItemsPerRow",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.W([_.ph("data","richGridItemsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sq.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.W([_.J({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],sq);
_.B(sq,"ytd-hashtag-grid-shelf-renderer",function(){if(FJ9!==void 0)return FJ9;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FJ9=v},{mode:1});var LJb;var tce;var u2=function(){var v=_.z.apply(this,arguments)||this;v.visibleVideos=[];v.hiddenVideos=[];v.modern=_.Y("web_modern_buttons");v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(u2,_.z);_.K=u2.prototype;_.K.attached=function(){var v=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.onDarkModeToggledAction(v)};
_.K.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"}}}};
_.K.dataChanged=function(){var v=this;this.requestElementsPerRow();var Q,V;this.currentColorPalette=this.isDarkTheme?(Q=this.data)==null?void 0:Q.darkColorData:(V=this.data)==null?void 0:V.lightColorData;var E;if((E=this.currentColorPalette)==null?0:E.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.PE(this,function(){v.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.K.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.K.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.K.computeIsFirstFeedItem=function(v){return v};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v);this.data&&(this.currentColorPalette=v?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.K.getCurrentLogo=function(v,Q){if(v)return Q?v.darkLogoImage:v.lightLogoImage};
_.K.computeTitleStyle=function(v){var Q;if((Q=this.data)!=null&&Q.title&&v&&v.textPrimary!==void 0)return"color:"+_.GA(v.textPrimary)+";"};
_.K.computeSubtitleStyle=function(v){var Q;if((Q=this.data)!=null&&Q.subtitle&&v&&v.textSecondary!==void 0)return"color:"+_.GA(v.textSecondary)+";"};
_.K.computeDismissIconStyle=function(v){if(this.data&&this.data.dismissButton&&v&&v.textPrimary!==void 0)return"--yt-button-color:"+_.GA(v.textPrimary)+";"};
_.K.computeOverflowButtonStyle=function(v){if(this.data&&this.data.overflowButton&&v&&v.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.GA(v.textPrimary)+";--yt-spec-icon-active-other:"+_.GA(v.textPrimary)+";"};
_.K.computeBackgroundStyle=function(v){if(v&&this.data){var Q="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.$D((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&(Q+='background-image:url("'+V+'");')}v.backgroundColor!==void 0&&(Q+="background-color:"+_.CF(v.backgroundColor)+";");return Q}};
_.K.computeButton=function(){var v,Q=Object.assign({},_.y((v=this.data)==null?void 0:v.showMoreButton,_.KH));if(this.modern&&Q){Q.style="STYLE_MONO_OUTLINE";var V;if(v=(V=this.currentColorPalette)==null?void 0:V.textPrimary)Q.colorData={basicColorPaletteData:{foregroundTitleColor:v,borderColor:v}}}return Q};
_.K.shouldShowBottomButton=function(v,Q){return!(v==null?0:v.header)&&!(v==null||!v.primaryButton)&&Q<3};
_.K.checkExpanded=function(v){this.isExpanded=v&&v.content?this.hiddenVideos.length===0:!0};
_.K.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.K.getLogoHeight=function(v){return this.logoWithPadding(v)?"26":"20"};
_.K.getLogoImageId=function(v){return this.logoWithPadding(v)?"logo-image-with-padding":"logo-image"};
_.K.computeHasSectionHeader=function(v){return!!v.header};
_.K.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var v;if((v=this.data.primaryButton)==null?0:v.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var Q;((Q=this.data.dismissButton)==null?0:Q.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var V,E;((V=this.data)==null?0:(E=V.primaryButton)==null?0:E.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.K.setVisibleVideos=function(v){if(this.data&&this.data.content)if(this.data.content.length){var Q=this.data.content.length;this.data.header?v?(this.visibleVideos=this.data.content.slice(0,Math.min(Q,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.slimItemsPerRow),Q)):(this.visibleVideos=this.data.content.slice(0,Math.min(Q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.elementsPerRow),Q)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(Q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.elementsPerRow),Q)):(this.visibleVideos=this.data.content.slice(0,Math.min(Q,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.elementsPerRow-1),Q))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.K.setHasMovieRenderer=function(){var v;if((v=this.data)!=null&&v.content){var Q;this.hasMovieRenderer=!!_.y((Q=this.data)==null?void 0:Q.content[0],_.qja)}else this.hasMovieRenderer=!1};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
_.K.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var v=_.L(this.hiddenMediaRenderers),Q=v.next();!Q.done;Q=v.next())Q.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(v=_.m9(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&v.focus()}};
_.K.updateTitleSpec=function(){var v;(v=this.data)!=null&&v.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.K.logoWithPadding=function(v){var Q,V,E;return(v=(Q=this.getCurrentLogo(v,this.isDarkTheme))==null?void 0:(V=Q.thumbnails)==null?void 0:(E=V[0])==null?void 0:E.height)&&v%31===0?!0:!1};
_.K.onUpdateElementsPerRowAction=function(v,Q,V){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v);V&&this.slimItemsPerRow!==V&&(this.slimItemsPerRow=V)};
u2.prototype.slimItemsPerRowChanged=u2.prototype.slimItemsPerRowChanged;u2.prototype.elementsPerRowChanged=u2.prototype.elementsPerRowChanged;u2.prototype.dataChanged=u2.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],u2.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],u2.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],u2.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],u2.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],u2.prototype,"currentColorPalette",void 0);_.W([_.q(),_.X("design:type",Array)],u2.prototype,"visibleVideos",void 0);_.W([_.q(),_.X("design:type",Array)],u2.prototype,"hiddenVideos",void 0);
_.W([_.q(),_.X("design:type",Object)],u2.prototype,"primaryButton",void 0);_.W([_.q({reflectToAttribute:!0,value:3}),_.X("design:type",Number)],u2.prototype,"elementsPerRow",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],u2.prototype,"isDarkTheme",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],u2.prototype,"isExpanded",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],u2.prototype,"largeTitle",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],u2.prototype,"hasMovieRenderer",void 0);_.W([_.q(),_.X("design:type",Number)],u2.prototype,"slimItemsPerRow",void 0);_.W([_.q(),_.X("design:type",Boolean)],u2.prototype,"showLightVideoMetadata",void 0);_.W([_.q(),_.X("design:type",Boolean)],u2.prototype,"showDarkVideoMetadata",void 0);_.W([_.q(),_.X("design:type",Number)],u2.prototype,"videoMetadataColor",void 0);
_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],u2.prototype,"miniMode",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.X("design:type",Boolean)],u2.prototype,"isFirstFeedItem",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.X("design:type",Boolean)],u2.prototype,"hasSectionHeader",void 0);
_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],u2.prototype,"roundedContainer",void 0);_.W([_.Pn("#visible-video-container ytd-rich-grid-media"),_.X("design:type",Array)],u2.prototype,"visibleMediaRenderers",void 0);_.W([_.Pn("#hidden-video-container ytd-rich-grid-media"),_.X("design:type",Array)],u2.prototype,"hiddenMediaRenderers",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],u2.prototype,"modern",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],u2.prototype,"dataChanged",null);_.W([_.ph("elementsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],u2.prototype,"elementsPerRowChanged",null);_.W([_.ph("slimItemsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],u2.prototype,"slimItemsPerRowChanged",null);
_.W([_.J({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],u2);
_.B(u2,"ytd-brand-video-shelf-renderer",function(){if(tce!==void 0)return tce;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tce=v},{mode:1});var pqf;var jL=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(jL,_.z);_.K=jL.prototype;_.K.attached=function(){var v=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.onDarkModeToggledAction(v)};
_.K.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"}}}};
_.K.dataChanged=function(){this.requestElementsPerRow();var v,Q;this.currentColorPalette=this.isDarkTheme?(v=this.data)==null?void 0:v.darkColorData:(Q=this.data)==null?void 0:Q.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.K.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.K.computeIsFirstFeedItem=function(v){return v};
_.K.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v);this.data&&(this.currentColorPalette=v?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(v),this.updateButtonPalette())};
_.K.shouldShowThumbnailInMetadata=function(v){return v<=1};
_.K.computeVideoMetadataColor=function(){if(this.data){var v;if((v=this.currentColorPalette)==null?0:v.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.K.computeTitleStyle=function(v){var Q;if((Q=this.data)!=null&&Q.title&&v&&v.textPrimary!==void 0)return"color:"+_.GA(v.textPrimary)+";"};
_.K.computeSubtitleStyle=function(v){var Q;if((Q=this.data)!=null&&Q.subtitle&&v&&v.textSecondary!==void 0)return"color:"+_.GA(v.textSecondary)+";"};
_.K.computeOverflowButtonStyle=function(v){if(this.data&&this.data.overflowButton&&v.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.GA(v.textPrimary)+";--yt-spec-icon-active-other:"+_.GA(v.textPrimary)+";"};
_.K.computeBackgroundStyle=function(v){if(v&&this.data){var Q="";v.backgroundColor!==void 0&&(Q+="background-color:"+_.CF(v.backgroundColor)+";");return Q}};
_.K.computeHasOverflowButton=function(v){return!!v.overflowButton};
_.K.updateButtonPalette=function(){if(this.data){var v;if((v=this.data.primaryButton)==null?0:v.buttonRenderer){var Q;if((Q=this.currentColorPalette)==null?0:Q.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)})}}};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
_.K.updateTitleSpec=function(){var v;(v=this.data)!=null&&v.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.K.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
jL.prototype.elementsPerRowChanged=jL.prototype.elementsPerRowChanged;jL.prototype.dataChanged=jL.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],jL.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jL.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],jL.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jL.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],jL.prototype,"currentColorPalette",void 0);_.W([_.q(),_.X("design:type",Object)],jL.prototype,"primaryButton",void 0);
_.W([_.q({reflectToAttribute:!0,value:3}),_.X("design:type",Number)],jL.prototype,"elementsPerRow",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],jL.prototype,"isDarkTheme",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],jL.prototype,"titleSize",void 0);_.W([_.q(),_.X("design:type",Number)],jL.prototype,"videoMetadataColor",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],jL.prototype,"miniMode",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.X("design:type",Boolean)],jL.prototype,"isFirstFeedItem",void 0);_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],jL.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.X("design:type",Boolean)],jL.prototype,"hasOverflowButton",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jL.prototype,"dataChanged",null);_.W([_.ph("elementsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jL.prototype,"elementsPerRowChanged",null);_.W([_.J({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],jL);
_.B(jL,"ytd-brand-video-singleton-renderer",function(){if(pqf!==void 0)return pqf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return pqf=v},{mode:_.mV("kevlar_poly_si_batch_j070")?1:2});var ebl;var Zf9=_.x(function(v){var Q=v.data;return _.P(_.gE,{data:function(){return Q().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(Q().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 Q().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Zm"),djl=_.x(function(v){var Q=v.metadataRow;
var V=v.delimiter;return _.P(_.xb,{each:function(){return Q().textParts||[]},
keyBy:"INDEX"},function(E,b){return _.P(_.w7,null,_.P(_.tD,{text:E,noWrap:!0,userInput:!0}),_.P(PV9,{delimiter:V,max:function(){return Q().textParts.length},
index:b}))})},"$m"),PV9=_.x(function(v){var Q=v.delimiter;
var V=v.max;var E=v.index;return _.P(_.h,{cond:function(){return(Q==null?void 0:Q())&&V()-1>E()},
then:function(){return _.P("span",null,Q)}})},"an"),hbn=_.x(function(v){var Q=v.data;
v={};return _.P("yt-profile-page-header-information-view-model",{class:_.QZ("profilePageHeaderInformationViewModelHost",(v.profilePageHeaderInformationViewModelMobile=!1,v))},_.P(_.h,{cond:function(){return Q().onTap},
then:function(){return _.P(_.yL,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.MQ(Q().onTap)}},_.P(_.Pw,{data:function(){return Q().thumbnail}},{profilePageHeaderThumbnailViewModel:Zf9}))},
else:function(){return _.P("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.P(_.Pw,{data:function(){return Q().thumbnail}},{profilePageHeaderThumbnailViewModel:Zf9}))}}),_.P("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.P(_.h,{cond:function(){return Q().onTap},
then:function(){return _.P(_.Pw,{data:function(){return Q().title}},{profilePageHeaderTitleViewModel:function(V){var E=V.data;
return _.P(_.yL,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.MQ(E().onTap)}},_.P(_.tD,{text:function(){return E().title}}))}})},
else:function(){return _.P(_.Pw,{data:function(){return Q().title}},{profilePageHeaderTitleViewModel:function(V){var E=V.data;
return _.P(_.tD,{text:function(){return E().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.P(_.Pw,{data:function(){return Q().metadata}},{profilePageHeaderMetadataViewModel:function(V){var E=V.data;
return _.P(_.h,{cond:function(){return E().metadataRows},
then:function(b){return _.P("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.P(_.xb,{each:b,keyBy:"INDEX"},function(F,t){return _.P(_.w7,null,_.P(djl,{metadataRow:F,delimiter:" \u2022 "}),_.P(PV9,{delimiter:" \u2022 ",max:function(){return b().length},
index:t}))}))}})}})))},"bn");
hbn.idomCompat=!0;_.ad(hbn,"yt-profile-page-header-information-view-model",{props:{data:_.pJ}});var WT=function(){return _.z.apply(this,arguments)||this};
_.f(WT,_.z);WT.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WT.prototype,"data",void 0);_.W([_.J({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],WT);
_.B(WT,"ytd-effect-pivot-header-view-model",function(){if(ebl!==void 0)return ebl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ebl=
v},{mode:1});var wqV;var oi=function(){return _.z.apply(this,arguments)||this};
_.f(oi,_.z);oi.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oi.prototype,"data",void 0);_.W([_.J({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],oi);
_.B(oi,"ytd-source-pivot-header-renderer",function(){if(wqV!==void 0)return wqV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return wqV=v},{mode:1});_.ad(_.z6d,"yt-card-view-model",{props:{data:_.pJ,className:_.pJ,isSelected:_.pJ}});var unc=_.SFX.talkToRecsStateSelector;_.ad(_.x(function(v){var Q=function(){return _.y(v.data().flowRoot,Xsj)};
_.jg(function(){var V=Q(),E=function(){},b=function(){};
if(V){var F,t,p,Z=((p=_.y((F=Q())==null?void 0:(t=F.steps)==null?void 0:t[0],_.W2))==null?void 0:p.stepId)||"";BYj(V,Z);E=s8l(V);b=j8P(V)}_.j_(function(){var d=Q();d&&_.oF().dispatch(_.dW("flowStateEntity",d.flowStateEntityKey));E();E=function(){};
b();b=function(){};
_.jT(_.Sn5())})});
return _.P("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.P(_.qg,{contentId:function(){return v.data().contentId}},function(){return _.P("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.P(_.h,{cond:Q,
then:function(V){return _.P(_.ENh,{data:V})}}))}))},"cn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.pJ}});_.ad(_.x(function(){return _.P("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.P("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.P("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.P(_.BgY,null)),_.P(_.r0a,{data:{rows:1},isExploreHub:!0}))},"dn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.ad(_.x(function(v){var Q=v.data;var V=v.standardUnitMinWidth;v=_.L((0,_.mXq)(Q));var E=v.next().value,b=v.next().value,F=function(){var p,Z=(p=E())==null?void 0:p.contents;return Z==null||Z.length===0},t=function(){b(Object.assign({},E(),{contents:[]}))};
return _.P("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.ud(_.k0({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var p=_.y(Q().chipsShelf,a09);if(p!=null&&p!=null&&p.autoselectChipOnVisible){var Z,d,w=_.y(p==null?void 0:(Z=p.contents)==null?void 0:Z[(d=p.autoselectedChipIndex)!=null?d:0],_.e5);w&&w.tapCommand&&_.nx(w.tapCommand)}}}))},_.P(_.qg,{contentId:function(){return Q().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.P("div",null,_.P("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.P(_.Pw,{data:function(){return Q().header}},{sectionHeaderViewModel:function(p){return _.P(_.sT,{data:p.data,
disableHorizontalPadding:!0})}})),_.P("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.P(_.Pw,{data:function(){return Q().chipsShelf}},{chipsShelfViewModel:function(p){return _.P(_.sa,{data:p.data,
callback:t,selectionBehavior:1})}})),_.P("div",null,_.P(_.h,{cond:F,
then:function(){return _.P("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.P(_.r0a,{data:{rows:1},isExploreHub:!0}))}}),_.P(_.Pw,{data:function(){var p;
return(p=E())==null?void 0:p.contents}},{richShelfRenderer:function(p){return _.P(_.LWa,{data:p.data,
isInnerShelf:!0,standardUnitMinWidth:V})}})))}))},"en"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.pJ,
standardUnitMinWidth:_.pJ}});var XN=function(){return _.z.apply(this,arguments)||this};
_.f(XN,_.z);
XN.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
XN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.W([_.M(_.QU),_.X("design:type",Object)],XN.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],XN.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],XN.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Number)],XN.prototype,"standardUnitMinWidth",void 0);_.W([_.J({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],XN);
_.B(XN,"ytd-rich-section-renderer",function(){if(LJb!==void 0)return LJb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return LJb=v},{mode:_.mV("kevlar_poly_si_batch_j029")?
1:2});_.ad(_.dp5,"yt-profile-identity-info-view-model",{props:{data:_.pJ,hideDivider:_.pJ,isChannelInfoCard:_.pJ}});_.ad(_.iE8,"yt-page-header-view-model",{props:{data:_.pJ,noPadding:_.pJ,enableBanner:_.pJ,cinematicContainerTopbarOffset:_.pJ,allowCinematicContainerOverflow:_.pJ,displayAsSidebar:_.pJ,displayAsPanel:_.pJ,alwaysUseMediumTextDescription:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=function(){var b;return(b=Q().numColumns)!=null?b:2},E=function(){return V()>1?3:2};
v={};return _.P("ytd-rich-grid-group",{class:_.QZ("ytdRichGridGroupHost",(v.ytdRichGridGroupHostFirstColumn=function(){return Q().colIndex===0},v)),
style:_.iP({"--ytd-rich-grid-group-num-columns":V,"--ytd-rich-grid-items-per-group":E})},_.P("div",{class:"ytdRichGridGroupContents"},_.P(_.Pw,{data:function(){var b;return(b=Q().contents)==null?void 0:b.slice(0,E())}},{richItemRenderer:function(b){return _.P(_.KWp,{data:b.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"fn"),"ytd-rich-grid-group",{props:{data:_.pJ}});var ai=function(){var v=_.z.apply(this,arguments)||this;v.resizeOnObserverInit=!1;v.isInlinePreviewDisabled=_.Y("web_disable_inline_preview");v.disableStickyFilterBar=!1;v.transparentBackgroundChipsBar=!1;v.hideChipsBar=!1;v.collapseFeedCustomizationForm=!1;v.isWatchDefaultLayout=!0;v.continuationShowButton=!1;v.rowReducedHorizontalMargin=!1;v.useCompactList=!1;v.manualDownloadsPresent=!1;v.smartDownloadsPresent=!1;v.isOnline=!1;v.shouldRenderDownloadsBanner=!1;v.shouldRenderDownloadsBannerUpsell=
!1;v.hasOptedIntoSmartDownloads=!1;v.elementsPerRow=4;v.typographyBump=!1;v.slimItemsPerRow=1;v.pageLoadingFromNavigation=!1;v.resizeObserver=null;v.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};v.rendererToTagNameMap=
new Map(Object.entries(v.contentMapping()).map(function(Q){var V=_.L(Q);Q=V.next().value;V=V.next().value;return[Q,V.component]}));
v.insertedContent=new Map;return v};
_.f(ai,_.z);_.K=ai.prototype;_.K.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var v=_.L(_.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Q=v.next();!Q.done;Q=v.next())Q.value.useCompactList=this.useCompactList};
_.K.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var v=_.L(_.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.sizing=this.sizing,Q.typographyBump=this.typographyBump};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.K.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]]"}}}};
_.K.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]",collapseFeedCustomizationForm:"[[collapseFeedCustomizationForm]]"}},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}}};
_.K.attached=function(){document.addEventListener("yt-page-type-changed",_.Lh(this,this.onPageChange));document.addEventListener("scroll",_.Lh(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.Lh(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22372_throttledOnResize=new _.FK(this.resizeObserved,_.T_("rich_grid_resize_delay_ms",50),this)};
_.K.detached=function(){var v;(v=this.resizeObserver)==null||v.disconnect();document.removeEventListener("yt-page-type-changed",_.Lh(this,this.onPageChange));document.removeEventListener("scroll",_.Lh(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.Lh(this,this.onFeedCustomizationScrollUp))};
_.K.insertRichSection=function(v){var Q=v.richItemTargetId;v=v.richSectionRendererToInsert;Q&&v&&(this.insertedContent.set(Q,{content:v,timestamp:Date.now()}),this.reflowContent())};
_.K.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.K.computeIsInlinePreviewEnabled=function(v,Q,V){return _.Y("web_disable_inline_preview")?!1:!V&&_.yY0({miniplayerIsActive:v,miniplayerPlaybackState:Q})};
_.K.computeSizing=function(){var v=_.JNb(this.data);if(v||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return v?this.useCompactList?"COMPACT":v:this.miniMode?"COMPACT":"STANDARD"};
_.K.updateItemMinAndMaxWidth=function(){var v=_.T_("rich_grid_max_item_width",500);v>0&&_.F6(this.hostElement,{"--ytd-rich-grid-item-max-width":v+"px"});var Q;v=this.getRichItemMinWidth((Q=this.hostElement)==null?void 0:Q.clientWidth);v>0&&_.F6(this.hostElement,{"--ytd-rich-grid-item-min-width":v+"px"})};
_.K.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.K.resizeObserved=function(){_.Un(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.K.onPageChange=function(){var v=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Un(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.XT.addJob(function(){v.pageLoadingFromNavigation=!1;v.setMasthead();v.maybeSetBigYoodle();v.forceRefreshAndLog();v.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.K.dataChanged=function(){var v=this;_.Un(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.PE(this,function(){v.updateRichItemGridPositions();v.contentsElement&&_.F6(v.hostElement,{"--ytd-rich-grid-content-offset-top":v.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.K.initResizeObserver=function(){var v=this;if(window.ResizeObserver){var Q;(Q=this.resizeObserver)==null||Q.disconnect();var V=!1;this.resizeObserver=new ResizeObserver(function(){if(V){var E;(E=v.resizeObserver)==null||E.disconnect();var b;(b=v.JSC$22372_throttledOnResize)==null||b.fire();requestAnimationFrame(function(){var t;(t=v.JSC$22372_throttledOnResize)==null||t.fire();v.initResizeObserver()})}else if(V=!0,v.resizeOnObserverInit){var F;
(F=v.JSC$22372_throttledOnResize)==null||F.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.K.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Un(this.hostElement,"ytd-rich-item-index-update-action")};
_.K.updateElementsPerRow=function(){_.Un(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.U2({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.U2({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.K.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.K.onRichShelfRendererCollapse=function(v){if(this.shownItems){var Q=v.detail;v=this.shownItems.findIndex(function(E){var b,F;return((F=_.y(E==null?void 0:(b=E.richSectionRenderer)==null?void 0:b.content,_.GIN))==null?void 0:F.trackingParams)===Q});
var V=v+1;v<0||V>=this.contentsElement.children.length||!this.shownItems[V].richItemRenderer||this.contentsElement.children[V].scrollIntoView({behavior:"smooth",block:"start"})}};
_.K.onSoftReloadPage=function(){this.scrollUpToTop()};
_.K.handleRerenderDownloadsData=function(){_.Y("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.K.handlePlaylistRemoveVideosAction=function(v){var Q;if(((Q=_.y(v,_.uBS))==null?0:Q.setVideoIds)&&this.data&&this.data.contents){v=_.y(v,_.uBS).setVideoIds;for(Q=this.data.contents.length-1;Q>=0;){var V=_.y(this.data.contents[Q],_.jh);(V=V&&_.y(V.content,_.b9))&&V.setVideoId&&v.includes(V.setVideoId)&&this.splice("data.contents",Q,1);Q--}this.updateIndices()}};
_.K.updateIndices=function(){if(this.data&&this.data.contents)for(var v=0;v<this.data.contents.length;v++)this.set("data.contents."+v+".richItemRenderer.index",_.u3(String(v+1)))};
_.K.hasTopRowInlinePlayableVideoWithEndorsement=function(v){var Q;return!((Q=v.slice(0,this.getItemsPerRow()))==null||!Q.some(function(V){var E;V=_.y(V==null?void 0:(E=V.richItemRenderer)==null?void 0:E.content,_.LH);var b;return(V==null?void 0:V.inlinePlaybackEndpoint)&&(V==null?void 0:(b=V.thumbnailOverlays)==null?void 0:b.some(function(F){return F.thumbnailOverlayEndorsementRenderer}))}))};
_.K.refreshGridLayoutNew=function(v,Q,V,E){var b=E.postsPerRow;var F=E.slimItemsPerRow;var t=E.gameCardsPerRow;E=E.miniGameCardsPerRow;var p;if((p=this.data)==null||!p.contents||!this.containerWidth)return!1;var Z;if((Z=this.data.responsiveContainerConfiguration)==null?0:Z.responsiveSize){var d=_.wt0(this.data.responsiveContainerConfiguration,this.containerWidth,2),w;p=_.lO(Object.assign({},d,{standardUnitMinWidth:(w=this.data)==null?void 0:w.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&d.isCompactList)}else p=_.lO({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=p.typographyBump;w=!1;if(v||this.elementsPerRow!==p.numItems||this.postsPerRow!==b||this.slimItemsPerRow!==F||this.gameCardsPerRow!==
t||this.miniGameCardsPerRow!==E||this.gutter!==p.gutter)w=this.elementsPerRow!==p.numItems,this.elementsPerRow=p.numItems,this.postsPerRow=b,this.slimItemsPerRow=F,this.gameCardsPerRow=t,this.miniGameCardsPerRow=E,this.gutter=p.gutter,this.itemWidth=p.itemWidth,this.reflowContent(Q),_.F6(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":p.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(V);this.ytdReduxBehavior.dispatch(_.U2({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:p.maxContainerWidth}));return w};
_.K.refreshGridLayout=function(v,Q){var V,E=(V=this.hostElement)==null?void 0:V.clientWidth;this.containerWidth=this.adjustRichGridWidth(E,!0);var b;if((b=this.data)==null||!b.contents||!this.containerWidth)return v&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(v=!0,this.pendingForceReflow=!1);V=this.getRichItemMinWidth(E);var F=this.isShortsPanel?146:194,t=this.getMiniGameCardMinWidth(),p=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.T_("rich_grid_default_max_items_per_row",
6);E=V=this.calcElementsPerRow(V,p);(b=V<=3&&this.miniModeAllowed())&&(V=this.calcElementsPerRow(240,4));var Z=this.calcMaxSlimElementsPerRow(V,p,this.isDefaultGrid);p=this.calcElementsPerRow(F,Z);var d=this.calcElementsPerRow(this.isCompactGrid?F:154,Z);F=this.calcElementsPerRow(this.isCompactGrid?F:t,Z);t=!1;if(this.sizing)return this.refreshGridLayoutNew(v,Q,b,{postsPerRow:E,slimItemsPerRow:p,gameCardsPerRow:d,miniGameCardsPerRow:F});if(v||this.elementsPerRow!==V||this.postsPerRow!==E||this.slimItemsPerRow!==
p||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==F)t=this.elementsPerRow!==V,this.elementsPerRow=V,this.postsPerRow=E,this.slimItemsPerRow=p,this.gameCardsPerRow=d,this.miniGameCardsPerRow=F,this.reflowContent(Q),this.updateElementsPerRow(),_.F6(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)&&_.F6(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(b);_.Un(this.hostElement,"yt-rich-grid-layout-refreshed");return t};
_.K.getRichItemMinWidth=function(v){var Q=_.T_("rich_grid_min_item_width",310);if(!_.Y("kevlar_disable_min_width_override")){var V,E;Q=(E=(V=this.data)==null?void 0:V.minItemWidth)!=null?E:Q}return Q+_.Rxo(v)};
_.K.calcMaxSlimElementsPerRow=function(v,Q,V){return(V===void 0?0:V)?v===1?2:v%2===0?v/2*3:v+2:Q*2};
_.K.adjustRichGridWidth=function(v,Q){var V=_.Y("disable_rich_grid_guide_compensation");if(!this.isWatch&&!V){V=_.ht().resolve(_.d$(_.K1));var E=V==null?void 0:V.guideElement;if(!(!V||V.getData()||E!=null&&E.opened||V.getMiniGuideVisible()))if(V.canFitPersistentGuide(v)&&V.getGuideExpandsAutomatically()){var b,F,t=Number((b=window.getComputedStyle(this.hostElement))==null?void 0:(F=b.getPropertyValue("--app-drawer-width"))==null?void 0:F.replace("px",""));v-=t||0}else if(V.canFitMiniGuide(v)){var p;
b=Number((t=window.getComputedStyle(this.hostElement))==null?void 0:(p=t.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:p.replace("px",""));v-=b||0}}v>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(v-=Q?32:48));return v};
_.K.calcElementsPerRow=function(v,Q){var V=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),E=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((V+E)/(v+E))||1,Q)};
_.K.reflowContent=function(v){var Q=this;if(!this.isReflowing){this.isReflowing=!0;var V,E,b=!!((V=this.data)==null?0:(E=V.contents)==null?0:E.some(function(p){return _.y(p,_.WY)}));
V=this.getItemsPerRow();var F;E=(F=this.data)==null?void 0:F.reflowOptions;v&&(_.Mp("rgr_s"),_.PE(this,function(){_.Mp("rgr_nrf")}));
v={};(F=_.m9(this.hostElement).querySelector("#contents"))&&(v={contentElement:F,rendererToTagNameMap:this.rendererToTagNameMap});F=(F=this.data.contents)?F.slice():[];b=J7j(F,V,b,E,this.getRichGridStyle(),v,this.insertedContent);var t=b.orderedContent;if(b=b.pinnedContentNotShownTargetIds)for(b=_.L(b),V=b.next();!V.done;V=b.next())this.insertedContent.delete(V.value);b=function(){Q.shownItems=t;Q.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(t),_.PE(this,b)):b()}};
_.K.getFirstRowItems=function(v){for(var Q=[],V=0;V<v.length;V++){var E=void 0,b=void 0,F=void 0,t=void 0,p=void 0,Z=void 0;if(((E=v[V])==null?void 0:(b=E.richItemRenderer)==null?void 0:b.rowIndex)===0||((F=v[V])==null?void 0:(t=F.richGroupRenderer)==null?void 0:t.rowIndex)===0||((p=v[V])==null?void 0:(Z=p.richSectionRenderer)==null?void 0:Z.rowIndex)===0)Q.push(v[V]);else break}return Q};
_.K.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.K.resetInsertedContentIfNeeded=function(){(_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.K.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.K.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.K.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.K.terminateVideoPreview=function(){_.Un(this.hostElement,"yt-terminate-video-preview-action")};
_.K.updateRichItemGridPositions=function(){var v={gridData:{gridColumnCount:this.elementsPerRow}},Q;((Q=this.data)==null?0:Q.trackingParams)&&(Q=_.Mo())&&_.Wp(Q,_.dE(this.data.trackingParams),v);_.Un(this.hostElement,"ytd-rich-item-index-update-action")};
_.K.miniModeAllowed=function(){return this.isChannelPage};
_.K.getMiniGameCardMinWidth=function(){return 154};
_.K.updateMiniMode=function(v){this.miniMode=this.miniModeAllowed()&&v;this.ytdReduxBehavior.dispatch(_.U2({type:"SET_RICH_GRID_MINI_MODE",payload:v}))};
_.K.isCurrentPage=function(){return location.pathname===this.pagePath};
_.K.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var v=_.ht().resolve(_.oJ).getCurrentPage();v&&v.setScrollTop(0)}};
_.K.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.K.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.K.maybeSetBigYoodle=function(){var v,Q=(v=this.data)==null?void 0:v.bigYoodle;this.bigYoodleData!==Q&&(this.bigYoodleData=Q)};
_.K.setMasthead=function(){var v;((v=this.data)==null?0:v.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.K.getRichGridStyle=function(){var v,Q;return(Q=(v=this.data)==null?void 0:v.style)!=null?Q:"RICH_GRID_STYLE_UNKNOWN"};
_.K.onIsShortsGridChange=function(){var v=this.ytdReduxBehavior,Q=v.dispatch,V=this.getRichGridStyle();Q.call(v,_.U2({type:"SET_RICH_GRID_STYLE",payload:V}))};
_.K.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.K.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.hr.Object.defineProperties(ai.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var v=_.ht().resolve(_.oJ).getCurrentPage(),Q,V,E;return(((Q=this.data)==null?void 0:Q.targetId)==="browse-feedFEsfv_audio_pivot"||_.Y("web_enable_channel_pivot_panel")&&((V=this.data)==null?void 0:V.targetId)==="browse-feedFEsfv_channel_pivot"||_.Y("web_enable_effect_pivot_panel")&&((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_effect_pivot")&&(v==null?void 0:v.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Y("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.ht().resolve(_.oJ).getCurrentPage())==null?void 0:v.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.ht().resolve(_.oJ).getCurrentPage())==null?void 0:v.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?0:v.enableContentSpecificAspectRatio)||((Q=this.data)==null?0:(V=Q.responsiveContainerConfiguration)==null?0:V.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.T_("web_continuation_handler_margin",0):0}}});
ai.prototype.onIsShortsGridChange=ai.prototype.onIsShortsGridChange;ai.prototype.onReloadContinuationFinish=ai.prototype.onReloadContinuationFinish;ai.prototype.reflowContent=ai.prototype.reflowContent;ai.prototype.handleRerenderDownloadsData=ai.prototype.handleRerenderDownloadsData;ai.prototype.onRichShelfRendererCollapse=ai.prototype.onRichShelfRendererCollapse;ai.prototype.onRequestElementsPerRow=ai.prototype.onRequestElementsPerRow;ai.prototype.contentLengthChanged=ai.prototype.contentLengthChanged;
ai.prototype.dataChanged=ai.prototype.dataChanged;ai.prototype.onSizingChange=ai.prototype.onSizingChange;ai.prototype.onUseCompactListChange=ai.prototype.onUseCompactListChange;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],ai.prototype,"ironResizableBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ai.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],ai.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ai.prototype,"componentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ai.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],ai.prototype,"miniMode",void 0);_.W([_.q({value:[]}),_.X("design:type",Array)],ai.prototype,"shownItems",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],ai.prototype,"isReflowing",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],ai.prototype,"isFilteredFeed",void 0);_.W([_.q({selector:_.l6h}),_.X("design:type",Boolean)],ai.prototype,"guideIsExpanded",void 0);
_.W([_.q({selectorArgs:["entitySelectorType"],selector:function(v,Q){if(_.Y("kevlar_modern_downloads_page")&&Q&&Q!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Q){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":Q=v.entities;var V=_.y_(Q),E=_.cB(Q),b=_.I69(v),F=_.$lo(v),t=_.HJ9(v),p=_.yDE(Q),Z=_.h4(V),d=_.f7(Q);return _.trh(V,E,p,_.C6Z(Q),b,F,Z,d,t,_.Ulh(v),_.Di(v));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return v=_.y_(v.entities),_.eNE(v);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return v=
_.k93(v.entities),_.Zzm(v);default:_.Iy(new _.xd("Error: entitySelectorType defined but not matched in selector.",v,Q))}}}),
_.X("design:type",Object)],ai.prototype,"entityDrivenRichGridData",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"resizeOnObserverInit",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"bigYoodleData",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"mastheadData",void 0);_.W([_.q(),_.X("design:type",Boolean)],ai.prototype,"isInlinePreviewDisabled",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"disableStickyFilterBar",void 0);
_.W([_.q(),_.X("design:type",Object)],ai.prototype,"transparentBackgroundChipsBar",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ai.prototype,"hideChipsBar",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"collapseFeedCustomizationForm",void 0);_.W([_.q(),_.X("design:type",Object)],ai.prototype,"isWatchDefaultLayout",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ai.prototype,"continuationShowButton",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ai.prototype,"rowReducedHorizontalMargin",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ai.prototype,"useCompactList",void 0);_.W([_.q({selector:function(v){return _.cB(v.entities).length>0}}),
_.X("design:type",Object)],ai.prototype,"manualDownloadsPresent",void 0);_.W([_.q({selector:function(v){return _.y_(v.entities).length>0}}),
_.X("design:type",Object)],ai.prototype,"smartDownloadsPresent",void 0);_.W([_.q({selector:_.Di}),_.X("design:type",Object)],ai.prototype,"isOnline",void 0);_.W([_.q({selector:_.$lo}),_.X("design:type",Object)],ai.prototype,"shouldRenderDownloadsBanner",void 0);_.W([_.q({selector:_.Ulh}),_.X("design:type",Object)],ai.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.W([_.q({selector:_.I69}),_.X("design:type",Object)],ai.prototype,"hasOptedIntoSmartDownloads",void 0);
_.W([_.ph("useCompactList"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"onUseCompactListChange",null);_.W([_.ph("sizing","typographyBump"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"onSizingChange",null);_.W([_.q({selector:_.xlT}),_.X("design:type",Number)],ai.prototype,"miniplayerPlaybackState",void 0);_.W([_.q({selector:_.MS}),_.X("design:type",Boolean)],ai.prototype,"miniplayerIsActive",void 0);
_.W([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.X("design:type",Boolean)],ai.prototype,"isInlinePreviewEnabled",void 0);_.W([_.q({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.X("design:type",String)],ai.prototype,"sizing",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ai.prototype,"elementsPerRow",void 0);
_.W([_.q(),_.X("design:type",Object)],ai.prototype,"typographyBump",void 0);_.W([_.q(),_.X("design:type",Number)],ai.prototype,"itemWidth",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],ai.prototype,"headerElement",void 0);_.W([_.Z7("#contents"),_.X("design:type",HTMLElement)],ai.prototype,"contentsElement",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"dataChanged",null);
_.W([_.wg("data.contents.length"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"contentLengthChanged",null);_.W([_.tM("yt-request-elements-per-row"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"onRequestElementsPerRow",null);
_.W([_.tM("yt-rich-shelf-renderer-collapse"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ai.prototype,"onRichShelfRendererCollapse",null);_.W([_.wg("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"handleRerenderDownloadsData",null);
_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],ai.prototype,"entitySelectorType",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.targetId"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isSub",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.targetId"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isWatch",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.targetId"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isShortsPanel",null);_.W([_.q({reflectToAttribute:!0}),_.O("isWatch"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"reducedTopMargin",null);_.W([_.q({reflectToAttribute:!0}),_.O("data","isWatch","isWatchDefaultLayout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"noTopMargin",null);
_.W([_.q({reflectToAttribute:!0}),_.O("isInlinePreviewEnabled","shownItems"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"topRowEndorsement",null);_.W([_.O("data.header"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"hideHeader",null);_.W([_.tM("yt-rich-grid-reflow"),_.X("design:type",Function),_.X("design:paramtypes",[Boolean]),_.X("design:returntype")],ai.prototype,"reflowContent",null);
_.W([_.tM("yt-reload-continuation-finish"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"onReloadContinuationFinish",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isSlimGrid",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isShortsGrid",null);
_.W([_.O("data","isSlimGrid","isShortsGrid"),_.q(),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"noRichItemGutterMargins",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isShortsGridSlim",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isCompactGrid",null);
_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"isDefaultGrid",null);_.W([_.O("data.targetId"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"hideChipsBarOnWatch",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ai.prototype,"onIsShortsGridChange",null);
_.W([_.O("data.enableContentSpecificAspectRatio"),_.q(),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ai.prototype,"force16By9ThumbnailAspectRatio",null);_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],ai.prototype,"continuationTriggerOffset",null);_.W([_.J({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],ai);
_.B(ai,"ytd-rich-grid-renderer",function(){if(bfV!==void 0)return bfV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bfV=v},{mode:2});var Aef=_.x(function(v){return _.P("yt-feedback-prompt-view-model",{class:_.QZ("ytFeedbackPromptViewModelHost",v.className)},_.P(_.h,{cond:function(){return v.data().text},
then:function(Q){return _.P(_.tD,{text:Q,className:"ytFeedbackPromptViewModelPrompt"})}}),_.P(_.Pw,{data:function(){return v.data().likeButton}},{likeButtonViewModel:function(Q){return _.P(_.bL,{data:Q.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.P(_.Pw,{data:function(){return v.data().dislikeButton}},{dislikeButtonViewModel:_.Es}))},"gn");var kdc=_.x(function(v){var Q=_.L((0,_.Qkq)(v.data)).next().value,V=function(){var E,b;return(b=(E=Q().contents)==null?void 0:E.length)!=null?b:0};
return _.P("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return v.data().targetId||""},
"aria-busy":function(){var E,b;return(b=(E=Q().contents)==null?void 0:E.some(function(F){return!!F.chatLoadingViewModel}))!=null?b:!1}},_.P(_.Pw,{data:function(){return v.data().header}},{chipBarViewModel:_.Vax,
sectionHeaderViewModel:_.sT}),_.P(_.Pw,{data:function(){return Q().contents}},{accordionViewModel:_.jzN,
alertBannerViewModel:_.pza,chatLoadingViewModel:function(E,b){return _.P(_.Xn8,{data:E.data,containerHeight:v.containerHeight,isLastItem:function(){return b()===V()-1}})},
chatUserTurnViewModel:function(E,b){return _.P(_.a7j,{data:E.data,containerHeight:v.containerHeight,isLastItem:function(){return b()===V()-1}})},
feedbackPromptViewModel:Aef,gridShelfViewModel:function(E){return _.P(_.LmQ,{data:E.data,shouldUseOwnContainerSize:!0,marginSettings:v.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.JiN,linearLayoutViewModel:_.p9,lockupViewModel:function(E){return _.P(_.Ng,{data:E.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:v.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.sT,videoOverviewViewModel:_.m4N,youChatItemViewModel:function(E,b){return _.P(_.ovj,{data:E.data,pending:!1,containerHeight:v.containerHeight,isLastItem:function(){return b()===V()-1}})}}))},"hn");_.ad(_.x(function(v){var Q=_.L((0,_.Qkq)(v.data)).next().value,V=_.L(_.PY()),E=V.next().value;V=V.next().value;var b=_.ud(V);V=_.L(_.Ge(void 0,void 0,"fqbUqd"));var F=V.next().value,t=V.next().value,p=function(){var Z;return _.y((Z=v.data().sectionListLayoutConfiguration)==null?void 0:Z.layoutConfiguration,r7I)};
_.jg(function(){var Z,d=(Z=b.value)==null?void 0:Z.clientWidth;Z=p()?_.mX0(d,p()):void 0;t(Z)});
V={};return _.P("yt-section-list-renderer",{class:_.QZ("ytSectionListRendererHost",v.className,(V.ytSectionListRendererHostOverscrollContain=function(){var Z;return(Z=v.overscrollContain)==null?void 0:Z.call(v)},V)),
el:b,"data-target-id":function(){return v.data().targetId||""}},_.P(_.Pw,{data:function(){return Q().contents}},{itemSectionRenderer:function(Z){return _.P(kdc,{data:Z.data,
containerLayoutConfig:F,marginSettings:v.marginSettings,containerHeight:function(){return E.height()}})}}))},"jn"),"yt-section-list-renderer",{props:{data:_.pJ,
className:_.Wg,marginSettings:_.pJ,overscrollContain:_.pJ}});var Tle;var Y9J;var yee=function(){return _.z.apply(this,arguments)||this};
_.f(yee,_.z);_.W([_.q(),_.X("design:type",Object)],yee.prototype,"data",void 0);_.W([_.D7({is:"yt-alert-renderer",disableElementRegistration:!0})],yee);
_.B(yee,"yt-alert-renderer",function(){if(Y9J===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Tle===void 0&&(Tle=document.createElement("template"));var E=Tle;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Y9J=v}v=Y9J;return v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var R2d;R2d=function(v,Q,V,E){V||(v?E&&(E.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||E.WINDOW_SIZE_CHANGED&&(Q.width!==window.innerWidth||Q.height!==window.innerHeight)||E.SAFARI_ABORTED_BY_NEW_TRANSITION&&v instanceof DOMException&&v.name==="AbortError"&&v.message.includes("Old view transition aborted by new view transition"))||_.ro(v):_.ro(Error("wj")))};
_.nNf=function(v,Q){Q=Q===void 0?{}:Q;var V,E,b,F,t,p,Z,d,w,A,k,T,c;return _.e(function(C){switch(C.nextAddress){case 1:V=Q;E=V.shouldWrap===void 0?!0:V.shouldWrap;b=V.skipTransitionTimeoutMs===void 0?300:V.skipTransitionTimeoutMs;F=V.beforeTransition;t=V.afterTransition;if(!E||!document.startViewTransition||document.visibilityState==="hidden")return C.return(v());p={width:window.innerWidth,height:window.innerHeight};Z=!1;(d=F)==null||d();_.GC(C,2);w=document.startViewTransition(v);A=setTimeout(function(){w.skipTransition();
Z=!0},b);
return C.yield(w.ready,4);case 4:return clearTimeout(A),C.yield(w.finished,5);case 5:clearTimeout(A);(k=t)==null||k();_.FT(C,0);break;case 2:T=_.n$(C),(c=t)==null||c(),R2d(T,p,Z,Q.ignoredErrors),_.q1(C)}})};
_.llY=function(v,Q){var V=_.pcG(Q);V!=="javascript:"&&V!=="data:"&&v.setAttribute("href",Q)};
_.Wh=function(){for(var v=Array(36),Q=0,V,E=0;E<36;E++)E==8||E==13||E==18||E==23?v[E]="-":E==14?v[E]="4":(Q<=2&&(Q=33554432+Math.random()*16777216|0),V=Q&15,Q>>=4,v[E]=_.Wwt[E==19?V&3|8:V]);return v.join("")};
_.qp8=function(v,Q,V){v.persistentPanelContainerMap.set(V,Q)};/*

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 Sp5=_.s$(['<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>']),
z2m=_.u6A(Sp5);z2m.setAttribute("style","display: none;");document.head.appendChild(z2m.content);_.oG=_.dL3(function(v){var Q=_.RD("DIV");v&&(Q.className=v);Q.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";v=_.RD("DIV");_.sbV(v,"200px","200px");Q.appendChild(v);document.body.appendChild(Q);v=Q.offsetWidth-Q.clientWidth;_.ng(Q);return v});var JnI;var NH8;var Xq=function(){var v=_.z.apply(this,arguments)||this;v.icon=null;return v};
_.f(Xq,_.z);Xq.prototype.dismiss=function(){_.Hj(this.hostElement,"yt-live-chat-error-message-dismiss")};
Xq.prototype.computeIcon=function(v){return v&&v.iconType?"yt-icons:"+v.iconType.toLowerCase():"yt-icons:close"};
_.W([_.q(),_.X("design:type",Object)],Xq.prototype,"data",void 0);_.W([_.q({computed:"computeIcon(data.icon)"}),_.X("design:type",Object)],Xq.prototype,"icon",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Xq);
_.B(Xq,"yt-live-chat-error-message-renderer",function(){if(NH8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;JnI===void 0&&(JnI=document.createElement("template"));var E=JnI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);NH8=v}v=NH8;return v},{mode:0});
}catch(e){_._DumpException(e)}
try{
var Jae,Nbd,xAe,BbI,jrP,XRJ,aQJ,rac,$Af,IQ5,HaV,mAJ,UAI,nG,vbe,QSV,Vgj,EbP,bUc,FXP,KXq,iUf,LXl,pUn,eJI,ZUl,PkE,dPV,hJf,wUb,A15,kgd,T7d,Yin,y1I,c1E,fxI,Ggb,OUI,RJE,lxn,qiV,SiI,zJd,CkV,Mgb,xPP,B7d,gbc,sS9,u1l,jSq,WXI,obV,J1q;Jae=function(v,Q){return _.Fg(v.entities,"timedMarkersListSyncEntity",Q)};
Nbd=function(v,Q){return _.Fg(v.entities,"liveReactionsDataEntity",Q)};
xAe=function(v,Q){v=_.Fg(v.entities,"booleanEntity",Q);return!(!v||!v.value)};
BbI=function(v,Q){var V=_.Mo();V&&v&&_.Np(V,_.dE(v),Q)};
_.gUl=function(v){return v.watch.isWatchActive};
_.srP=function(v){return _.C_(v)||_.MC(v)||_.QoT(v)};
_.ube=function(v){return!_.srP(v)};
_.RQ=function(v){return v.watch.watchScrollTop};
jrP=function(v){return v.watch.isLiveChatCollapsed};
_.W$n=function(){_.Y("web_watch_log_theater_mode")&&_.CET("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.oUn=function(v,Q,V){if(!v.includes("START_TIME_PLACEHOLDER")||!v.includes("END_TIME_PLACEHOLDER"))return v;var E=new Date(0),b=new Date(0);E.setUTCMilliseconds(Q);b.setUTCMilliseconds(V);return v.replace("START_TIME_PLACEHOLDER",_.BB(E,7)).replace("END_TIME_PLACEHOLDER",_.BB(b,7))};
XRJ=function(v){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:v}}]}}}};
aQJ=function(v,Q,V){var E=_.Y("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;Q=Object.assign({},{text:Q,hasGradientBackground:V},E&&{itemTargetId:E});E=_.Y("web_enable_chat_autoscroll_to_user_turn")&&E?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:E,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:Q}],insertByPositionInSection:{sectionTargetId:v,
position:"INSERTION_POSITION_LAST"}}}]},E?{scrollConfig:E}:{})}}};
rac=function(v,Q){return _.Fg(v.entities,"booleanEntity",Q)};
$Af=function(){return function(v){_.jT(_.dW("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:v}))}};
IQ5=function(v){switch(v){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
HaV=function(v,Q,V){var E=_.MQ(V);v&&Q&&E&&v.getPlayerPromise().then(function(b){_.noG(E)&&_.ay();(new _.Um(b)).executeCommand(E,Q);_.Y("continue_playback_on_desktop_companion_click")||b.pauseVideo()})};
mAJ=function(v){var Q=_.aJ(),V;if(V=_.Q9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;V=(E=V())==null?void 0:E.layoutId}else V=null;HaV(Q,V,v)};
UAI=function(v){var Q=_.aJ(),V;if(V=_.Q9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;V=(E=V())==null?void 0:E.layoutId}else V=null;HaV(Q,V,v)};
nG=function(v,Q){var V=v<0?"-":"";v=Math.abs(v);var E=Math.floor(v/3600),b=Math.floor(v)%3600,F=Math.floor(b/60);b=Math.floor(b)%60;var t="";(Q===void 0?0:Q)&&(t="."+Math.round((v-Math.floor(v))*10));return E>0?V+E+":"+(F<10?"0"+F:""+F)+":"+(b<10?"0"+b:""+b)+t:V+F+":"+(b<10?"0"+b:""+b)+t};
vbe=function(v){var Q=v.match(/[^0-9:\.]/g);if(Q&&Q.length>0)return null;v=v.split(":");if(v.length===0||v.length>3)return null;Q=1;for(var V=0;v.length>0;){var E=v.pop();if(E===void 0)break;var b=Number(E);if(E===""||isNaN(b))return null;V+=b*Q;Q*=60}return V};
QSV=function(v,Q,V,E){v=Math.max(V,v);Q=Math.min(Q,E-V);v+Q>E?(V=E,v=V-Q):V=v+Q;return{start:v,end:V}};
Vgj=function(v,Q,V,E,b,F){v<V?v=V:v+b>E&&(v=E-b);Q>E&&(Q=E);Q=Math.min(v+F,Math.max(v+b,Q));return{start:v,end:Q}};
EbP=function(v,Q,V,E,b,F){Q>E?Q=E:Q-b<V&&(Q=V+b);v<V&&(v=V);v=Math.min(Q-b,Math.max(Q-F,v));return{start:v,end:Q}};
bUc=function(v){return _.Y("web_transcript_cue_id_killswitch")?String(v):"ytd-transcript-renderer_"+v};
FXP=function(v){return _.Y("web_transcript_cue_id_killswitch")?!0:v.startsWith("ytd-transcript-renderer")};
KXq=function(v){var Q=_.aJ(),V;if(V=_.Q9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;V=(E=V())==null?void 0:E.layoutId}else V=null;HaV(Q,V,v)};
iUf=function(v){v.style.height="auto";v.style.height=Math.min(v.scrollHeight||20,80)+"px"};
LXl=function(){var v;return String(Math.floor(((v=_.FS())==null?void 0:v.getCurrentTime())||0)*1E3)};
pUn=function(v){if(v.onWelcomeCommand)return _.MQ(v.onWelcomeCommand);v=_.y(v.inputComposerViewModel,tgI);if(v==null?0:v.welcomeFeatureContinuation)return _.P1(v.welcomeFeatureContinuation)};
eJI=function(v){var Q=_.aJ(),V;V=(V=_.Q9("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;HaV(Q,V,v)};
ZUl=function(v){var Q=_.aJ(),V;V=(V=_.Q9("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;HaV(Q,V,v)};
PkE=function(v){if(v.simpleText)return[{text:v.simpleText}];var Q;return(Q=v.runs)!=null?Q:[]};
dPV=function(v){var Q=v.startEndTimeTemplate,V=v.startTimeUtcMillis;v=v.endTimeUtcMillis;if(Q&&V&&v)return _.u3(_.oUn(_.j0(Q),Number(V),Number(v)))};
hJf=function(v,Q){var V,E,b=v==null?void 0:(V=v.viewCount)==null?void 0:(E=V.videoViewCountRenderer)==null?void 0:E.shortViewCount;if(!Q&&b)return b;var F,t;return v==null?void 0:(F=v.viewCount)==null?void 0:(t=F.videoViewCountRenderer)==null?void 0:t.viewCount};
wUb=function(v,Q){var V=v==null?void 0:v.relativeDateText;return!Q&&V?[V,!0]:[v==null?void 0:v.dateText,!1]};
A15=function(v,Q,V,E,b){E=E===void 0?"":E;b=b===void 0?!1:b;var F=hJf(v,Q),t=_.L(wUb(v,Q)),p=t.next().value;t=t.next().value;Q=Q?v==null?void 0:v.sponsorsOnlyFirstTimeLongText:v==null?void 0:v.sponsorsOnlyFirstTimeShortText;var Z=[];V&&F&&Z.push(F);!V&&t||!p||Z.push(p);v=[b?v==null?void 0:v.subtitle:void 0].concat(_.ui(Z),[Q,v==null?void 0:v.stationName,v==null?void 0:v.rating,v?dPV(v):void 0,v==null?void 0:v.upNextProgramText,v==null?void 0:v.superTitleLink]).filter(function(d){return!!d});
V={runs:[]};for(b=0;b<v.length;b++)V.runs.push.apply(V.runs,_.ui(PkE(v[b]))),b<v.length-1&&V.runs.push({text:" "+E+" "});return V};
kgd=function(v){return v.filter(function(Q){return!_.y(Q,_.mp)})};
T7d=function(v){var Q,V,E,b;if(v=v==null?void 0:(Q=v.contents)==null?void 0:(V=Q.twoColumnWatchNextResults)==null?void 0:(E=V.results)==null?void 0:(b=E.results)==null?void 0:b.contents){var F,t;return(t=(F=v.find(function(p){return!!p.videoPrimaryInfoRenderer}))==null?void 0:F.videoPrimaryInfoRenderer)==null?void 0:t.updatedMetadataEndpoint}};
Yin=function(v,Q){var V;return(V=v.sourceConfigs)==null?void 0:V.find(function(E){return E.videoId===Q})};
y1I=function(v){return v==="End of video"||v==="End of playlist"};
c1E=function(v){var Q,V,E,b;return(Q=v.getWatchNextResponse())==null?void 0:(V=Q.contents)==null?void 0:(E=V.twoColumnWatchNextResults)==null?void 0:(b=E.playlist)==null?void 0:b.playlist};
fxI=function(v){var Q,V,E,b,F,t;return(Q=c1E(v))==null?void 0:(V=Q.playlistButtons)==null?void 0:(E=V.menuRenderer)==null?void 0:(b=E.topLevelButtons)==null?void 0:(F=b[0])==null?void 0:(t=F.playlistLoopButtonRenderer)==null?void 0:t.playlistLoopStateEntityKey};
Ggb=function(v){var Q=_.ht().resolve(_.pD),V;return(Q=(V=_.y(Q.getAutoplayEndpoint(),_.sn))==null?void 0:V.playlistId)&&Q===v};
OUI=function(v,Q,V,E,b){function F(){_.XT.cancelJob(ls);var t=CkV(Q,V/v.getPlaybackRate()),p=t.hours,Z=t.minutes;t=(t.seconds*1E3||6E4)/v.getPlaybackRate();v.setVideoTimeLeft(Mgb(p,Z));E&&v.getPlayerState()!==0&&v.setSleepTimerTimeLeft(Mgb(p,Z,!0));(p>0||Z>0)&&!b&&(ls=_.A2(_.XT,F,t))}
_.XT.cancelJob(ls);ls=_.A2(_.XT,F)};
RJE=function(v,Q,V){function E(){_.XT.cancelJob(DP5);var b=CkV(Q,V),F=b.hours;b=b.minutes;var t=6E4/v.getPlaybackRate();if(F>0||b>0)v.setSleepTimerTimeLeft(Mgb(F,b,!0)),DP5=_.A2(_.XT,E,t)}
_.XT.cancelJob(DP5);DP5=_.A2(_.XT,E)};
lxn=function(v,Q){var V=v.getVolume()/(Q/500),E=function(b){_.XT.cancelJob(nbV);var F=Math.floor(b-V);v.setVolume(F,!1);F>0&&(nbV=_.A2(_.XT,function(){E(F)},500))};
_.XT.cancelJob(nbV);nbV=_.A2(_.XT,function(){E(v.getVolume())})};
qiV=function(v,Q){_.XT.cancelJob(nbV);Q&&v.syncVolume()};
SiI=function(){var v={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Lt("SLEEP_TIMER_DISRUPTED")}}}}};_.ht().resolve(_.At).resolveCommand(v)};
zJd=function(v){return(v.getDuration()-v.getProgressState().current)*1E3};
CkV=function(v,Q){v=v+Q-(0,_.wO)();if(v<=0)return{hours:0,minutes:0,seconds:0};var V=new J1q(0,0,0,0,0,0,v);v=V.getHours();Q=V.getMinutes();V=V.getSeconds();V!==0&&Q++;Q!==0&&Q%60===0&&(v++,Q=0);return{hours:v,minutes:Q,seconds:V}};
Mgb=function(v,Q,V){return v>0&&Q>0?V?_.Lt("TIME_LEFT_HOURS_MINUTES",{hours:v.toString(),minutes:Q.toString()}):_.Lt("TIME_HOURS_MINUTES",{hours:v.toString(),minutes:Q.toString()}):v>0?V?_.ty("TIME_LEFT_HOURS",v):_.ty("TIME_HOURS",v):V?_.Lt("TIME_LEFT_MINUTES",{minutes:Q.toString()}):_.Lt("TIME_MINUTES",{minutes:Q.toString()})};
xPP=function(v,Q){if(v.timelyActions)return v.timelyActions.find(function(V){var E;return((E=_.y(V,N7J))==null?void 0:E.cueRangeId)===Q})};
B7d=function(v){var Q=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.h6(v);v.keyMap_.forEach(function(V,E){_.sB(Q,E)||this.remove(E)},v)};
gbc=function(v,Q){v.reloadContinuationItemsCommandMatcher=Q};
sS9=function(v,Q){var V;return _.e(function(E){return E.nextAddress==1?Q&&v.lastWelcomeContinuationSent!==Q?_.S0d(v)?E.yield(v.panelController.isVisible("PAai_companion"),3):E.jumpTo(2):E.return(!1):E.nextAddress==2||(V=E.yieldResult,V)?E.return(!0):E.return(!1)})};
u1l=function(v){var Q,V,E,b,F;return _.e(function(t){if(t.nextAddress==1){if(!v.welcomeOptions)return t.return();Q=v.welcomeOptions;V=Q.command;E=Q.setPending;if(V){var p;var Z=(p=_.y(V,_.RJ))==null?void 0:p.token}else Z=void 0;b=Z;return t.yield(sS9(v,b),2)}if(!t.yieldResult)return t.return();v.lastWelcomeContinuationSent=b;(F=E)==null||F(!0);Z="youchat-"+Date.now();p=(p=_.FS())?String(Math.floor(p.getCurrentTime())*1E3):void 0;_.Oo(V,{form:{formData:_.ZF({clientMessageId:Z,playerOffsetMs:p,pageContext:_.Qbd(v,
v.pageSubtype)})}});_.q1(t)})};
jSq=function(v,Q){_.e(function(V){v.welcomeOptions=Q;return V.yield(u1l(v),0)})};
_.qB=function(v,Q){v.insertBefore(Q,v.childNodes[0]||null)};
WXI=function(v){if(v>=48&&v<=57||v>=96&&v<=106||v>=65&&v<=90||_.E7&&v==0)return!0;switch(v){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.V2;default:return!1}};
obV=function(v){if(v.altKey&&!v.ctrlKey||v.metaKey||v.keyCode>=112&&v.keyCode<=123)return!1;if(WXI(v.keyCode))return!0;switch(v.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.V2;default:return v.keyCode<166||v.keyCode>183}};
J1q=function(v,Q,V,E,b,F,t){this.date=typeof v==="number"?new Date(v,Q||0,V||1,E||0,b||0,F||0,t||0):new Date(v&&v.getTime?v.getTime():_.IC())};
_.HZ(J1q,_.zj);_.K=J1q.prototype;_.K.getHours=function(){return this.date.getHours()};
_.K.getMinutes=function(){return this.date.getMinutes()};
_.K.getSeconds=function(){return this.date.getSeconds()};
_.K.getMilliseconds=function(){return this.date.getMilliseconds()};
_.K.getUTCDay=function(){return this.date.getUTCDay()};
_.K.getUTCHours=function(){return this.date.getUTCHours()};
_.K.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.K.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.K.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.K.setHours=function(v){this.date.setHours(v)};
_.K.setMinutes=function(v){this.date.setMinutes(v)};
_.K.setSeconds=function(v){this.date.setSeconds(v)};
_.K.setMilliseconds=function(v){this.date.setMilliseconds(v)};
_.K.setUTCHours=function(v){this.date.setUTCHours(v)};
_.K.setUTCMinutes=function(v){this.date.setUTCMinutes(v)};
_.K.setUTCSeconds=function(v){this.date.setUTCSeconds(v)};
_.K.setUTCMilliseconds=function(v){this.date.setUTCMilliseconds(v)};
_.K.add=function(v){_.zj.prototype.add.call(this,v);v.hours&&this.setUTCHours(this.date.getUTCHours()+v.hours);v.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+v.minutes);v.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+v.seconds)};
_.K.JSC$11406_toIsoString=function(v){var Q=_.zj.prototype.JSC$11406_toIsoString.call(this,v);return v?Q+"T"+_.iy(this.getHours(),2)+":"+_.iy(this.getMinutes(),2)+":"+_.iy(this.getSeconds(),2):Q+"T"+_.iy(this.getHours(),2)+_.iy(this.getMinutes(),2)+_.iy(this.getSeconds(),2)};
_.K.equals=function(v){return this.getTime()==v.getTime()};
_.K.toString=function(){return this.JSC$11406_toIsoString()};
_.K.clone=function(){var v=new J1q(this.date);v.firstDayOfWeek_=this.firstDayOfWeek_;v.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return v};
_.XUJ=function(v){return _.U2({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:v}})};var axn=new _.FG("imageTileRenderer");var r1l=new _.FG("promotedSparklesWebRenderer");var $Pl=new _.FG("adGridCardCollectionViewModel");var IxP=new _.FG("carouselTitleViewModel");var HUe=new _.FG("ctaCarouselItemViewModel");var mPP=new _.FG("textFieldViewModel");_.UPq=new _.FG("engagementPanelHeaderShowNavigationButtonCommand");var vdd=new _.FG("hideEngagementPanelScrimAction");var Qmb=new _.FG("setActivePanelItemAction");var Vwb=new _.FG("showEngagementPanelScrimAction");var Ede=new _.FG("updateEngagementPanelAction");var bic=new _.FG("updateSearchInVideoResultsAction");var FFj=new _.FG("transcriptCueGroupRenderer");var KFl=new _.FG("transcriptCueRenderer");var iiV=new _.FG("transcriptFooterRenderer");var LFj=new _.FG("engagementPanelAdSubtitleRenderer");var twb=new _.FG("videoDescriptionFantasySectionViewModel");var p59=new _.FG("deleteClipEngagementPanelCommand");var eHI=new _.FG("loopCommand");var ZiV=new _.FG("changeCreatorEndscreenVisibilityCommand");var Pvb=new _.FG("liveChatCallForQuestionsRenderer");var dYb=new _.FG("updateTimedMarkersSyncObserverCommand");var N7J=new _.FG("timelyActionViewModel");var hHJ=new _.FG("timelyActionsOverlayViewModel");var w5J=new _.FG("repeatChapterCommand");var Atb=new _.FG("watchPlayerOverflowMenuCommand");var k_e=new _.FG("compositeVideoOverlayRenderer");var T$d=new _.FG("sortFilterSubMenuRenderer");var YGP=new _.FG("switchListItemViewModel");var tgI=new _.FG("inputComposerViewModel");var ytI=new _.FG("transcriptEditSegmentCommand");var ctq=new _.FG("transcriptUpdateSegmentTextCommand");var f9e=new _.FG("transcriptSearchBoxRenderer");var G_l=new _.FG("transcriptSegmentListRenderer");var CvV=new _.FG("transcriptSegmentRenderer");_.MwI=new _.FG("updateDateTextAction");var OiV=new _.FG("updateTitleAction");var DYl=new _.FG("updateViewershipAction");var RHe=new _.FG("relatedChipCommand");var ndb=new _.FG("carouselLockupRenderer");var SG=new _.FG("expandableVideoDescriptionBodyRenderer");var l9j=new _.FG("videoDescriptionHeaderRenderer");var qGc=new _.FG("videoDescriptionYouchatSectionViewModel");_.zF=_.T_("kevlar_watch_page_horizontal_margin",24);_.SG5=_.T_("kevlar_watch_page_columns_top_padding",24);_.zHe=426+_.zF*2;_.Jz=_.T_("kevlar_watch_two_column_width_threshold",1E3);_.Jtn=_.zF*2;_.N$9=_.T_("kevlar_watch_secondary_width",402);_.xYd=_.T_("kevlar_watch_max_player_width",1280);_.B$V=_.T_("kevlar_watch_flexy_metadata_height",136);_.gdf=_.Jtn+310+_.zF;_.smV=_.Jtn+360+_.zF;var uFP={PAUSE_CHAT:18};var jmI;var WFJ;var NB=function(){return _.z.apply(this,arguments)||this};
_.f(NB,_.z);NB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
NB.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var v=_.y(this.data.button,_.pH);v&&(v.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.hr.Object.defineProperties(NB,{template:{configurable:!0,enumerable:!0,get:function(){if(WFJ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;jmI===void 0&&(jmI=document.createElement("template"));var E=jmI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);WFJ=v}v=WFJ;return v}}});
_.W([_.M(_.v6),_.X("design:type",Object)],NB.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({selectorArgs:["data.enabledEntityKey"],selector:xAe,observer:"onEnabledChange"}),_.X("design:type",Boolean)],NB.prototype,"enabled",void 0);_.W([_.q(),_.X("design:type",Object)],NB.prototype,"data",void 0);_.W([_.D7({is:"yt-disableable-button-view-model",noInjection:!0})],NB);var odq;var X5I;var a9l=["transVert01","transVert02","transVert03"],rtc="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),xE=function(){var v=_.z.apply(this,arguments)||this;v.emojiManager=_.tj;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};v.reactionBuckets=[];v.noEmojiIdentifier="NO_EMOJI";return v};
_.f(xE,_.z);_.K=xE.prototype;_.K.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.K.desktopFountainEmojiSizePxChanged=function(){_.F6(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.K.createUserReactionAnimation=function(v){this.createEmojiAnimation(v,!0)};
_.K.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var v;((v=this.data)==null?0:v.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.dW("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ui(this.emojiContainer.children)).forEach(function(Q){Q.remove()})};
_.K.detached=function(){this.cleanupFountain()};
_.K.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var v;this.reactionBuckets=_.gI.unsafeClone((v=this.emojiFountainData)==null?void 0:v.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.K.processEmojiBucket=function(v){var Q=this;if(this.reactionBuckets&&!(v>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var V=this.reactionBuckets[v];this.generateEmojiAnimations(V);if(v<this.reactionBuckets.length-1){var E;if(V==null?0:(E=V.duration)==null?0:E.seconds)this.emojiBucketTimerId=setTimeout(function(){Q.processEmojiBucket(v+1)},Number(V.duration.seconds)*1E3)}}};
_.K.generateEmojiAnimations=function(v){var Q=this,V=this.getRandomEmojiIdFromBucketWithOverride(v);if(V&&V!==this.noEmojiIdentifier){var E=0;v.targetEps?(E=this.linearInterpolateBounded(1,20,100,12,v.emojiSizeIndex||0),this.createEmojiAnimation(V,!1,v.emojiAnimationMs,E),E=this.getEmojiDelayMsFromTargetEps(v.targetEps)):(this.createEmojiAnimation(V),E=this.getEmojiDelayMsFromDistribution(v.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){Q.generateEmojiAnimations(v)},E)}};
_.K.getRandomEmojiIdFromBucketWithOverride=function(v){if(!(v&&v.reactionsData&&v.reactionsData.length&&v.totalReactions))return this.noEmojiIdentifier;for(var Q=v.totalReactions,V=1,E=_.L(v.reactionsData),b=E.next();!b.done;b=E.next())b=b.value,(b.reactionWeightOverride||b.reactionWeightOverride===0)&&b.reactionCount&&(Q-=b.reactionCount,V-=b.reactionWeightOverride);E=!0;V<0&&(E=!1,Q=v.totalReactions,V=1);if(E&&V>0&&Q===0)if(V===1){b=0;for(var F=_.L(v.reactionsData),t=F.next();!t.done;t=F.next())t=
t.value,t.reactionCount&&t.reactionCount>0&&b++;b=1/b;F=_.L(v.reactionsData);for(t=F.next();!t.done;t=F.next())t.value.reactionWeightOverride=b}else for(b=1/(1-V),F=_.L(v.reactionsData),t=F.next();!t.done;t=F.next())t=t.value,t.reactionWeightOverride&&(t.reactionWeightOverride*=b);b=Math.random();F=0;t=_.L(v.reactionsData);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.reactionCount&&(F=(p.reactionWeightOverride||p.reactionWeightOverride===0)&&E?F+p.reactionWeightOverride:F+V*p.reactionCount/
Q,F>b&&(p.reactionCount--,v.totalReactions--,p=this.reactionItemToEmojiString(p),p!==this.noEmojiIdentifier)))return p;return this.noEmojiIdentifier};
_.K.reactionItemToEmojiString=function(v){if(v.unicodeEmojiId)return v.unicodeEmojiId;if(v.emoteId)return v.emoteId;if(v.videoReactionType)switch(v.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.K.createEmojiAnimation=function(v,Q,V,E){Q=Q===void 0?!1:Q;this.lastEmojiRequestedForTesting=v;var b=v.startsWith("yt-icons:"),F=_.i_(this.emojiManager,v);if(F||b){var t=document.createElement("emoji");t.classList.add("yt-emoji-fountain-view-model");t.classList.add(a9l[Math.floor(Math.random()*a9l.length)]);var p=document.createElement("div");p.classList.add("yt-emoji-fountain-view-model");p.classList.add("horizontal-container");p.classList.add(rtc[Math.floor(Math.random()*rtc.length)]);Q?(V=document.createElement("div"),
V.classList.add("user-reaction-bubble"),V.classList.add("yt-emoji-fountain-view-model"),p.appendChild(V)):(V&&(t.style.animationDuration=V+"ms",p.style.animationDuration=V+"ms"),E&&(t.style.width=E+"px",t.style.height=E+"px"));b?(b=document.createElement("yt-icon"),b.polymerController.icon=v,E&&(b.style.width=E+"px",b.style.height=E+"px"),v=b):v=this.emojiManager.createEmoji(F,!1);v.classList.add("yt-emoji-fountain-view-model");p.appendChild(v);t.appendChild(p);this.emojiContainer.appendChild(t);
t.addEventListener("animationend",function(){t.remove()});
var Z,d;if((Z=this.data)==null?0:(d=Z.loggingDirectives)==null?0:d.trackingParams)Q=Q?_.Vw(183501):_.Vw(183500),BbI(this.data.loggingDirectives.trackingParams,Q),_.PTb(Q);setTimeout(function(){t&&t.remove()},2E3)}};
_.K.getEmojiDelayMsFromDistribution=function(v){return Math.random()*(v||1)*1E3};
_.K.getEmojiDelayMsFromTargetEps=function(v){return Math.random()*2*(1/v)*1E3};
_.K.linearInterpolateBounded=function(v,Q,V,E,b){b=Math.min(Math.max(b,v),V);return(Q*(V-b)+E*(b-v))/(V-v)};
xE.prototype.onEmojiFountainDataEntityUpdate=xE.prototype.onEmojiFountainDataEntityUpdate;xE.prototype.desktopFountainEmojiSizePxChanged=xE.prototype.desktopFountainEmojiSizePxChanged;xE.prototype.isActiveChanged=xE.prototype.isActiveChanged;_.W([_.q(),_.X("design:type",_.KA)],xE.prototype,"emojiManager",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],xE.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],xE.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xE.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"emojiFountainDataEntity",Q)}}),
_.X("design:type",Object)],xE.prototype,"emojiFountainData",void 0);_.W([_.q(),_.X("design:type",Boolean)],xE.prototype,"isActive",void 0);_.W([_.ph("isActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xE.prototype,"isActiveChanged",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],xE.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",String)],xE.prototype,"lastEmojiRequestedForTesting",void 0);
_.W([_.q({value:function(){return _.T_("desktop_fountain_emoji_size_px",20)}}),
_.X("design:type",Number)],xE.prototype,"desktopFountainEmojiSizePx",void 0);_.W([_.ph("desktopFountainEmojiSizePx"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xE.prototype,"desktopFountainEmojiSizePxChanged",null);_.W([_.Z7("#emoji-container"),_.X("design:type",HTMLElement)],xE.prototype,"emojiContainer",void 0);
_.W([_.ph("emojiFountainData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xE.prototype,"onEmojiFountainDataEntityUpdate",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],xE);
_.B(xE,"yt-emoji-fountain-view-model",function(){if(X5I===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;odq===void 0&&(odq=document.createElement("template"));var E=odq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);X5I=v}v=X5I;return v},{mode:0});var $Yn;var I9P;var BQ=function(){return _.z.apply(this,arguments)||this};
_.f(BQ,_.z);BQ.prototype.onChoiceChanged=function(){this.data&&_.F6(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
BQ.prototype.onChoiceChanged=BQ.prototype.onChoiceChanged;_.W([_.q(),_.X("design:type",Object)],BQ.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],BQ.prototype,"onChoiceChanged",null);_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],BQ);
_.B(BQ,"yt-live-chat-banner-poll-choice",function(){if(I9P===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;$Yn===void 0&&($Yn=document.createElement("template"));var E=$Yn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);I9P=v}v=I9P;return v},{mode:0});var Hi9;var mY9;var gQ=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_button_rework_with_live");v.small=!1;return v};
_.f(gQ,_.z);gQ.prototype.computeIsSmall=function(){var v;return((v=this.buttonOverrides)==null?void 0:v.size)==="S"};
gQ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.W([_.M(_.QL.YtLiveChatTooltipTargetingBehavior),_.X("design:type",Object)],gQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.X("design:type",String)],gQ.prototype,"id",void 0);_.W([_.q(),_.X("design:type",Object)],gQ.prototype,"buttonOverrides",void 0);_.W([_.q(),_.X("design:type",Object)],gQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],gQ.prototype,"modern",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.X("design:type",Object)],gQ.prototype,"small",void 0);_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-button"})],gQ);
_.B(gQ,"yt-live-chat-button",function(){if(mY9===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Hi9===void 0&&(Hi9=document.createElement("template"));var E=Hi9;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);mY9=v}v=mY9;return v},{mode:0});var UYI;var vFb;var sD=function(){var v=_.z.apply(this,arguments)||this;v.inCollapsedBanner=!1;v.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};v.questionButtonOverrides={style:"mono",type:"filled"};return v};
_.f(sD,_.z);_.K=sD.prototype;_.K.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]]"}}}}}};
_.K.onContextMenuButtonClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
_.K.onYtRendererstamperFinished=function(){this.menuButton=_.m9(this.hostElement).querySelector("#menu-button")};
_.K.dataChanged=function(){var v,Q;if((Q=_.y((v=this.data)==null?void 0:v.overflowMenuButton,_.KH))==null?0:Q.command)this.data.contextMenuEndpoint=_.y(this.data.overflowMenuButton,_.KH).command};
_.K.onButtonClick=function(){var v,Q=_.y((v=this.data)==null?void 0:v.askQuestionButton,_.KH);if(Q){if(Q.trackingParams&&(v=_.dE(Q.trackingParams))){var V=_.Mo();V&&_.uI(V,v)}_.Hj(this.hostElement,"innertube-command",Q.command)}};
sD.prototype.onYtRendererstamperFinished=sD.prototype.onYtRendererstamperFinished;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],sD.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],sD.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.q({observer:"dataChanged"}),_.X("design:type",Object)],sD.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],sD.prototype,"inCollapsedBanner",void 0);_.W([_.q(),_.X("design:type",Object)],sD.prototype,"buttonOverrides",void 0);_.W([_.q(),_.X("design:type",Object)],sD.prototype,"questionButtonOverrides",void 0);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sD.prototype,"onYtRendererstamperFinished",null);
_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],sD);
_.B(sD,"yt-live-chat-call-for-questions-renderer",function(){if(vFb===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;UYI===void 0&&(UYI=document.createElement("template"));var E=UYI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);vFb=v}v=vFb;return v},{mode:0});var Qej={};Qej.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var v=this;window.requestAnimationFrame(function(){v.restoreFocusNode_||(v.restoreFocusNode_=document.activeElement);var Q=_.B28(v.hostElement);Q.length&&Q[Q.length-1].focus()})},
isAttachedChanged_:function(v,Q){v?this.focusChild_():Q&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(v){this.hidden||_.uK(v).indexOf(this.hostElement)!==-1||(v.stopPropagation(),this.focusChild_())}};var Vjf;var EFd;var us=function(){return _.z.apply(this,arguments)||this};
_.f(us,_.z);us.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
us.prototype.onClick=function(v){v.target!==this.confirmButton&&v.target!==this.cancelButton&&(this.hidden=!0)};
_.W([_.Z7("#confirm_button"),_.X("design:type",Object)],us.prototype,"confirmButton",void 0);_.W([_.Z7("#cancel_button"),_.X("design:type",Object)],us.prototype,"cancelButton",void 0);_.W([_.q(),_.X("design:type",bOE)],us.prototype,"data",void 0);_.W([_.q({value:!0,reflectToAttribute:!0}),_.X("design:type",Boolean)],us.prototype,"hidden",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(Qej.YtLiveChatDialogBehavior),_.X("design:type",Object)],us.prototype,"ytLiveChatDialogBehavior",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],us);
var bOE=_.B(us,"yt-live-chat-dialog-renderer",function(){if(EFd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Vjf===void 0&&(Vjf=document.createElement("template"));var E=Vjf;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);EFd=v}v=EFd;return v},{mode:0});var F7j;var K7j,iO5=function(){if(K7j!==void 0)return K7j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;F7j===void 0&&(F7j=document.createElement("template"));var E=F7j;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return K7j=v};var L7e;var tjc;var jG=function(){var v=_.z.apply(this,arguments)||this;v.tooltip=null;v.data=null;v.id="";v.active=!1;v.icon="";v.disabled=!1;v.showTooltip=!1;v.useToggledActiveState=!0;v.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return v};
_.f(jG,_.z);_.K=jG.prototype;
_.K.dataChanged=function(){var v;((v=this.data)==null?0:v.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.bf)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var Q;if((Q=this.data)==null?0:Q.disabled)this.disabled=!0};
_.K.computeId=function(v){return v};
_.K.computeIcon=function(v,Q){if(!v)return"";if(this.useToggledActiveState)return"yt-icons:"+v.toLowerCase();var V,E;return Q&&((V=this.data)==null?0:(E=V.toggledIcon)==null?0:E.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+v.toLowerCase()};
_.K.logPDGEntryPoint=function(){_.vOQ(_.Fp("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")};
_.K.immediatelyShowTooltip=function(){var v=_.m9(this.hostElement).querySelector("#tooltip");v.animationDelay=0;v.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};v.show()};
_.K.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.K.onClick=function(v){var Q;((Q=this.data)==null?0:Q.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),v.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Hj(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.K.computeShowTooltip=function(v,Q){return!!(v&&v.tooltip&&Q)};
_.K.maybeUpdateTooltipText=function(){var v=this,Q;if((Q=this.data)==null?0:Q.tooltip){var V=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.bf)(v.tooltip).textContent=V},250)}};
_.K.handleLiveChatActions=function(v){var Q=this;v.length&&(this.id!=="creator"&&this.id!=="product-picker"||v.forEach(function(V){(V=Q.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",V))&&V.durationSec===V.fullDurationSec&&Q.startBubble(Q.colorFromDecimal(V.startBackgroundColor))}))};
_.K.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.K.startBubble=function(v){_.F6(this.hostElement,{"--yt-live-chat-monetization-button-glow":v});this.hostElement.setAttribute("bubble","")};
_.K.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.K.colorFromDecimal=function(v){typeof v==="string"&&(v=Number(v));return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
jG.prototype.onAnimationEnd=jG.prototype.onAnimationEnd;jG.prototype.disabledChanged=jG.prototype.disabledChanged;jG.prototype.dataChanged=jG.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.QL.YtLiveChatTooltipTargetingBehavior),_.X("design:type",Object)],jG.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jG.prototype,"data",void 0);_.W([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.X("design:type",Object)],jG.prototype,"id",void 0);_.W([_.q({notify:!0,reflectToAttribute:!0}),_.X("design:type",Object)],jG.prototype,"active",void 0);
_.W([_.q({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.X("design:type",Object)],jG.prototype,"icon",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jG.prototype,"disabled",void 0);_.W([_.q({computed:"computeShowTooltip(data, disabled)"}),_.X("design:type",Object)],jG.prototype,"showTooltip",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jG.prototype,"useToggledActiveState",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jG.prototype,"dataChanged",null);_.W([_.ph("disabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jG.prototype,"disabledChanged",null);_.W([_.tM("animationend"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],jG.prototype,"onAnimationEnd",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],jG);
_.B(jG,"yt-live-chat-icon-toggle-button-renderer",function(){if(tjc===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;L7e===void 0&&(L7e=document.createElement("template"));var E=L7e;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);tjc=v}v=tjc;return v},{mode:0});var prc;var eBf;var WQ=function(){return _.z.apply(this,arguments)||this};
_.f(WQ,_.z);WQ.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W([_.q(),_.X("design:type",Object)],WQ.prototype,"data",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],WQ);
_.B(WQ,"yt-live-chat-message-input-prompt-header-renderer",function(){if(eBf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;prc===void 0&&(prc=document.createElement("template"));var E=prc;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);eBf=v}v=eBf;return v},{mode:0});var ZO5;var PDj;var dLe;var hBJ;var wrJ;var AFq;var kYn=function(){return _.z.apply(this,arguments)||this};
_.f(kYn,_.z);_.W([_.q(),_.X("design:type",Object)],kYn.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],kYn);
_.B(kYn,"yt-live-chat-message-subtext-renderer",function(){if(AFq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;wrJ===void 0&&(wrJ=document.createElement("template"));var E=wrJ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);AFq=v}v=AFq;return v},{mode:0});var oQ=function(){var v=_.z.apply(this,arguments)||this;v.subtextOnBottom=!1;v.buttonOverrides={style:"mono",type:"tonal"};return v};
_.f(oQ,_.z);oQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oQ.prototype,"subtextOnBottom",void 0);_.W([_.q(),_.X("design:type",Object)],oQ.prototype,"buttonOverrides",void 0);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],oQ);
_.B(oQ,"yt-live-chat-message-renderer",function(){if(hBJ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;dLe===void 0&&(dLe=document.createElement("template"));var E=dLe;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);hBJ=v}v=hBJ;return v},{mode:0});var TO9;var Yfe;var Xc=function(){var v=_.z.apply(this,arguments)||this;v.isRemovable=!1;v.hasPrefilledText=!1;v.isInputDirty=!1;v.overCharacterLimit=!1;v.underCharacterLimit=!1;v.showErrorMessage=!1;return v};
_.f(Xc,_.z);_.K=Xc.prototype;_.K.computeId=function(){return this.data.id};
_.K.computeInputData=function(){return this.data.inputData};
_.K.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.K.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.K.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.K.getLiveChatRichMessageInput=function(){return _.m9(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.K.clearInput=function(){_.m9(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.K.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.K.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.K.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.K.handleTextInputCharCountChanged=function(v){v=v.detail&&v.detail.characterCount;v!==void 0&&(this.characterCount=v,v!==0&&(this.isInputDirty=!0))};
_.K.onInputFocusOut=function(){this.isInputDirty=!0};
_.K.onClickCloseButton=function(){_.Hj(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Xc.prototype.handleTextInputCharCountChanged=Xc.prototype.handleTextInputCharCountChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xc.prototype,"data",void 0);_.W([_.q({computed:"computeId(data.id)"}),_.X("design:type",String)],Xc.prototype,"id",void 0);_.W([_.q({computed:"computeInputData(data.inputData)"}),_.X("design:type",Object)],Xc.prototype,"inputData",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.X("design:type",Object)],Xc.prototype,"isRemovable",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.X("design:type",Object)],Xc.prototype,"hasPrefilledText",void 0);_.W([_.q({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.X("design:type",Number)],Xc.prototype,"charactersRemaining",void 0);
_.W([_.q(),_.X("design:type",Number)],Xc.prototype,"characterCount",void 0);_.W([_.q(),_.X("design:type",Object)],Xc.prototype,"isInputDirty",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.X("design:type",Object)],Xc.prototype,"overCharacterLimit",void 0);_.W([_.q({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.X("design:type",Object)],Xc.prototype,"underCharacterLimit",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.X("design:type",Object)],Xc.prototype,"showErrorMessage",void 0);_.W([_.tM("yt-live-chat-text-input-field-renderer-character-count-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Xc.prototype,"handleTextInputCharCountChanged",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Xc);
_.B(Xc,"yt-live-chat-poll-editor-input",function(){if(Yfe===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;TO9===void 0&&(TO9=document.createElement("template"));var E=TO9;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Yfe=v}v=Yfe;return v},{mode:0});var yFq;var cFq;var fdd={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},aQ=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_button_rework_with_live");v.closeButtonOverrides={iconPosition:"icon-only"};v.startButtonOverrides={style:"mono",type:"filled"};v.addOptionButtonOverrides={style:"mono",type:"text"};return v};
_.f(aQ,_.z);_.K=aQ.prototype;
_.K.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"}}}}};
_.K.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var v;_.y((v=this.data)==null?void 0:v.startButton,_.KH)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.K.computeId=function(){return this.data&&this.data.id||""};
_.K.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.K.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.K.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.K.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.K.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var v=0;v<this.pollEditorInfoWithDefaults.minPollOptions;v++)this.addPollOptionData()};
_.K.getIsValidPoll=function(){var v=this;if(!this.pollEditorInfoWithDefaults)return!1;var Q=this.pollEditorInfoWithDefaults,V=Q.minPollOptionChars,E=Q.maxPollOptionChars,b=Q.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>Q.maxPollQuestionChars)return!1;Q=_.m9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(Q).every(function(F,t){F=F.characterCount;!F&&b[t]&&(F=v.ytRendererBehavior.getSimpleString(b[t]).length);return F!==void 0&&F>=V&&F<=E})};
_.K.isValidPollChanged=function(){var v;_.y((v=this.data)==null?void 0:v.startButton,_.KH)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.K.addPollOptionData=function(){var v=this.pollEditorInfoWithDefaults,Q=v.maxPollOptionChars,V=v.optionPlaceholderText,E=v.customOptionPlaceholderText,b=v.pollOptionData;this.currentNumPollOptions>=v.maxPollOptions||(v={liveChatPollOptionInput:{inputData:{placeholder:E[this.currentNumPollOptions]||V,maxCharacterLimit:Q},maxCharacterLimit:Q,minCharacterLimit:v.minPollOptionChars,hasPrefilledText:!!E[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=v.minPollOptions}},b.charCountErrorText&&
(v.liveChatPollOptionInput.charCountErrorText=b.charCountErrorText),b.charsRemainingAltLabel&&(v.liveChatPollOptionInput.charsRemainingAltLabel=b.charsRemainingAltLabel),b.removeOptionAltText&&(v.liveChatPollOptionInput.removeOptionAltText=b.removeOptionAltText),this.push("pollOptionsData",v),b=Array.from(_.m9(_.m9(this.hostElement).querySelector("#poll-options")).children),b.forEach(function(F,t){F.polymerController.set("data.id",t)}),_.m9(b[b.length-1]).querySelector("#input").focus())};
_.K.getPollOptionInputValues=function(){var v=this,Q=[],V=_.m9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),E=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(V).forEach(function(b,F){var t=null;b=b.getLiveChatRichMessageInput();var p;(b==null?0:(p=b.textSegments)==null?0:p.length)?t=_.qC(b):E[F]&&(t=v.formattedStringToLiveChatRichMessageInput(E[F]));Q.push(t)});
return Q};
_.K.requestCreateAndStartPoll=function(v){var Q=this.getPollOptionInputValues();if(!Q.some(function(E){return!E})){Q={optionText:Q};
var V=_.m9(_.m9(this.hostElement).querySelector("#poll-question")).firstChild;V&&V.liveChatRichMessageInput&&(Q.questionText=_.qC(V.liveChatRichMessageInput));_.vp(this.hostElement,[v,Q])}};
_.K.selectedChanged=function(){if(this.selected){var v=_.m9(_.m9(this.hostElement).querySelector("#start-button")).firstElementChild;if(v){var Q;(Q=_.m9(v).querySelector("#button")||_.Up(v).querySelector("button"))==null||Q.focus()}}};
_.K.handleTextInputChanged=function(v){var Q;((Q=v.target)==null?void 0:Q.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=v.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.K.handleStartButtonAction=function(v){v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),(v=v.detail.args[1])&&this.requestCreateAndStartPoll(v))};
_.K.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.K.handleServiceRequestCompleted=function(v){this.createPollRequestInFlight=!1;(v=v.detail&&v.detail.data)&&v.success&&(_.Hj(this.hostElement,"picker-cancelled"),_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.K.onCloseClick=function(){_.Hj(this.hostElement,"picker-cancelled");_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.K.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.K.handlePollEditorInputClosed=function(v){var Q=this.pollOptionsData.findIndex(function(V){return V.liveChatPollOptionInput.id===v.detail.id});
this.splice("pollOptionsData",Q,1);this.isValidPoll=this.getIsValidPoll()};
_.K.onPickerCancelled=function(){this.reset()};
_.K.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var v=_.m9(_.m9(this.hostElement).querySelector("#poll-question")).firstChild;v&&v.setLiveChatRichMessageInput(null);if(v=_.m9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){v=_.L(Array.from(v));for(var Q=v.next();!Q.done;Q=v.next())Q.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.K.formattedStringToLiveChatRichMessageInput=function(v){return v.simpleText?{text_segments:[v.simpleText]}:{text_segments:v.runs}};
_.hr.Object.defineProperties(aQ.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(fdd,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
aQ.prototype.onPickerCancelled=aQ.prototype.onPickerCancelled;aQ.prototype.handlePollEditorInputClosed=aQ.prototype.handlePollEditorInputClosed;aQ.prototype.handleServiceRequestCompleted=aQ.prototype.handleServiceRequestCompleted;aQ.prototype.handleServiceRequestSent=aQ.prototype.handleServiceRequestSent;aQ.prototype.handleTextInputChanged=aQ.prototype.handleTextInputChanged;aQ.prototype.selectedChanged=aQ.prototype.selectedChanged;aQ.prototype.isValidPollChanged=aQ.prototype.isValidPollChanged;
aQ.prototype.shouldInitializePollChanged=aQ.prototype.shouldInitializePollChanged;aQ.prototype.dataChanged=aQ.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],aQ.prototype,"modern",void 0);
_.W([_.q(),_.X("design:type",Object)],aQ.prototype,"closeButtonOverrides",void 0);_.W([_.q(),_.X("design:type",Object)],aQ.prototype,"startButtonOverrides",void 0);_.W([_.q(),_.X("design:type",Object)],aQ.prototype,"addOptionButtonOverrides",void 0);_.W([_.q({computed:"computeId(data.id)",reflectToAttribute:!0}),_.X("design:type",String)],aQ.prototype,"id",void 0);_.W([_.q({value:function(){return[]}}),
_.X("design:type",Array)],aQ.prototype,"pollOptionsData",void 0);_.W([_.O("pollEditorInfoWithDefaults"),_.X("design:type",Object),_.X("design:paramtypes",[])],aQ.prototype,"pollQuestionData",null);_.W([_.q({value:0}),_.X("design:type",Number)],aQ.prototype,"pollQuestionCharacterCount",void 0);_.W([_.O("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.X("design:type",Object),_.X("design:paramtypes",[])],aQ.prototype,"pollQuestionCharactersRemaining",null);
_.W([_.q({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.X("design:type",Boolean)],aQ.prototype,"overQuestionCharacterLimit",void 0);_.W([_.O("data.pollEditorInfo"),_.X("design:type",Object),_.X("design:paramtypes",[])],aQ.prototype,"pollEditorInfoWithDefaults",null);_.W([_.q({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.X("design:type",Number)],aQ.prototype,"currentNumPollOptions",void 0);
_.W([_.q({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.X("design:type",Boolean)],aQ.prototype,"hasMaxNumPollOptions",void 0);_.W([_.O("pollEditorInfoWithDefaults","pollOptionsData"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],aQ.prototype,"shouldInitializePoll",null);_.W([_.q(),_.X("design:type",Object)],aQ.prototype,"isValidPoll",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],aQ.prototype,"createPollRequestInFlight",void 0);_.W([_.q(),_.X("design:type",Object)],aQ.prototype,"selected",void 0);_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.X("design:type",Boolean)],aQ.prototype,"showQuestionErrorMessage",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aQ.prototype,"dataChanged",null);_.W([_.ph("shouldInitializePoll"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aQ.prototype,"shouldInitializePollChanged",null);_.W([_.ph("isValidPoll"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aQ.prototype,"isValidPollChanged",null);
_.W([_.ph("selected"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aQ.prototype,"selectedChanged",null);_.W([_.tM("yt-live-chat-text-input-field-renderer-character-count-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],aQ.prototype,"handleTextInputChanged",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aQ.prototype,"handleServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],aQ.prototype,"handleServiceRequestCompleted",null);
_.W([_.tM("yt-live-chat-poll-editor-input-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],aQ.prototype,"handlePollEditorInputClosed",null);_.W([_.tM("picker-cancelled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aQ.prototype,"onPickerCancelled",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],aQ);
_.B(aQ,"yt-live-chat-poll-editor-panel-renderer",function(){if(cFq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;yFq===void 0&&(yFq=document.createElement("template"));var E=yFq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);cFq=v}v=cFq;return v},{mode:0});var GY5;var CDl;var rQ=function(){return _.z.apply(this,arguments)||this};
_.f(rQ,_.z);rQ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
rQ.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.hr.Object.defineProperties(rQ.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(v=this.data)==null?void 0:(Q=v.title)==null?void 0:Q.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var v;return _.MQ((v=this.data)==null?void 0:v.onTapCommand)}}});
_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],rQ.prototype,"ytEndpointBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],rQ.prototype,"itemId",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],rQ.prototype,"hasPromotion",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],rQ.prototype,"innertubeCommand",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],rQ);
_.B(rQ,"yt-live-chat-product-picker-panel-item-view-model",function(){if(CDl===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;GY5===void 0&&(GY5=document.createElement("template"));var E=GY5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);CDl=v}v=CDl;return v},{mode:0});var Mjq;var OOf;var $E=function(){var v=_.z.apply(this,arguments)||this;v.id="product-picker";v.selected=!1;v.closeButtonId="close-button";v.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return v};
_.f($E,_.z);_.K=$E.prototype;_.K.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.K.observeSelected=function(){this.selected&&this.hostElement.focus();var v=_.m9(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");v.length&&v[0].focus()};
_.K.onCloseBuyFlow=function(){_.Hj(this.hostElement,"picker-cancelled")};
_.K.onCloseClick=function(){_.Hj(this.hostElement,"picker-cancelled");var v;((v=this.data)==null?0:v.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.closeButton,_.pH))};
_.K.onCloseEngageWithAudienceEditorPanels=function(){_.Hj(this.hostElement,"picker-cancelled")};
$E.prototype.observeSelected=$E.prototype.observeSelected;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],$E.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$E.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$E.prototype,"id",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$E.prototype,"selected",void 0);_.W([_.q(),_.X("design:type",Object)],$E.prototype,"closeButtonId",void 0);_.W([_.ph("selected"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$E.prototype,"observeSelected",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],$E);
_.B($E,"yt-live-chat-product-picker-panel-view-model",function(){if(OOf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Mjq===void 0&&(Mjq=document.createElement("template"));var E=Mjq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);OOf=v}v=OOf;return v},{mode:0});var DLd;var RBd;var IQ=function(){var v=_.z.apply(this,arguments)||this;v.iconId="";v.icon="";v.disabled=!1;v.systemIcons=_.Y("kevlar_system_icons");return v};
_.f(IQ,_.z);_.K=IQ.prototype;_.K.computeIconId=function(v){return v&&v.icon&&v.icon.iconType?v.icon.iconType.toLowerCase():""};
_.K.computeIcon=function(v){return v&&v.icon&&v.icon.iconType?(v=v.icon.iconType.toLowerCase(),(v.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+v):""};
_.K.computeDisabled=function(v){return!!v};
_.K.computeCommand=function(v,Q){return Q?void 0:v};
_.K.computeTooltip=function(v,Q){return Q&&v?v:""};
_.K.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.hr.Object.defineProperties(IQ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var v="",Q,V,E;if((Q=this.data)==null?0:(V=Q.text)==null?0:(E=V.runs)==null?0:E.length)v=this.data.text.runs[0].text||"";else{var b,F;if((b=this.data)==null?0:(F=b.text)==null?0:F.simpleText)v=this.data.text.simpleText}var t,p,Z;if((t=this.data)==null?0:(p=t.subtext)==null?0:(Z=p.runs)==null?0:Z.length)v&&(v+=". "),v+=this.data.subtext.runs[0].text||"";else{var d,w;if((d=this.data)==null?0:(w=d.subtext)==
null?0:w.simpleText)v&&(v+=". "),v+=this.data.subtext.simpleText}return v}}});
_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],IQ.prototype,"ytEndpointBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],IQ.prototype,"data",void 0);_.W([_.q({computed:"computeIconId(data)",reflectToAttribute:!0}),_.X("design:type",Object)],IQ.prototype,"iconId",void 0);
_.W([_.q({computed:"computeIcon(data)",reflectToAttribute:!0}),_.X("design:type",Object)],IQ.prototype,"icon",void 0);_.W([_.q({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.X("design:type",Object)],IQ.prototype,"disabled",void 0);_.W([_.q({computed:"computeCommand(data.command, disabled)"}),_.X("design:type",Object)],IQ.prototype,"command",void 0);_.W([_.q({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.X("design:type",String)],IQ.prototype,"tooltip",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],IQ.prototype,"systemIcons",void 0);_.W([_.O("data.text","data.subtext"),_.q(),_.X("design:type",String),_.X("design:paramtypes",[])],IQ.prototype,"ariaLabel",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],IQ);
_.B(IQ,"yt-live-chat-product-button-renderer",function(){if(RBd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;DLd===void 0&&(DLd=document.createElement("template"));var E=DLd;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);RBd=v}v=RBd;return v},{mode:0});var nFJ;var ldd;var HQ=function(){var v=_.z.apply(this,arguments)||this;v.selected=!1;v.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return v};
_.f(HQ,_.z);_.K=HQ.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.computeId=function(v){return v.id||""};
_.K.onCloseClick=function(){_.Hj(this.hostElement,"picker-cancelled")};
_.K.observeSelected=function(){this.selected&&this.hostElement.focus();var v=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");v.length&&v[0].focus()};
_.K.onCloseBuyFlow=function(){_.Hj(this.hostElement,"picker-cancelled")};
_.K.onCloseEngageWithAudienceEditorPanels=function(){_.Hj(this.hostElement,"picker-cancelled")};
HQ.prototype.observeSelected=HQ.prototype.observeSelected;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],HQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],HQ.prototype,"data",void 0);
_.W([_.q({computed:"computeId(data)",reflectToAttribute:!0}),_.X("design:type",String)],HQ.prototype,"id",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],HQ.prototype,"selected",void 0);_.W([_.ph("selected"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],HQ.prototype,"observeSelected",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],HQ);
_.B(HQ,"yt-live-chat-product-picker-renderer",function(){if(ldd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;nFJ===void 0&&(nFJ=document.createElement("template"));var E=nFJ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ldd=v}v=ldd;return v},{mode:0});var qfJ;var Sfn;var zBf;var JFq;var mW=function(){return _.z.apply(this,arguments)||this};
_.f(mW,_.z);mW.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()};
mW.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
mW.prototype.created=function(){this.ids={background:_.Wh(),maskOne:_.Wh(),maskTwo:_.Wh(),gradient:_.Wh(),largeBackground:_.Wh(),largeGradientOne:_.Wh(),largeGradientTwo:_.Wh(),largeGradientPath:_.Wh()}};
mW.prototype.maybeLoadAnimationBackground=mW.prototype.maybeLoadAnimationBackground;_.W([_.q({value:!1}),_.X("design:type",Boolean)],mW.prototype,"useLargeBackground",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],mW.prototype,"useAnimationBackground",void 0);_.W([_.q({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.X("design:type",Boolean)],mW.prototype,"useRegularBackground",void 0);
_.W([_.q(),_.X("design:type",Object)],mW.prototype,"ids",void 0);_.W([_.q(),_.X("design:type",Object)],mW.prototype,"lottieAnimation",void 0);_.W([_.Z7("#animation-background"),_.X("design:type",HTMLDivElement)],mW.prototype,"animationBackground",void 0);_.W([_.ph("useAnimationBackground"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mW.prototype,"maybeLoadAnimationBackground",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],mW);
_.B(mW,"yt-live-interactivity-component-background",function(){if(JFq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;zBf===void 0&&(zBf=document.createElement("template"));var E=zBf;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);JFq=v}v=JFq;return v},{mode:0});var UD=function(){var v=_.z.apply(this,arguments)||this;v.characterCount=0;v.showInputErrorMessage=!1;v.startQnaRequestInFlight=!1;v.modern=_.Y("web_button_rework_with_live");v.buttonOverrides={style:"mono",type:"filled"};v.closeButtonOverrides={iconPosition:"icon-only"};v.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return v};
_.f(UD,_.z);_.K=UD.prototype;
_.K.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]]"}}}}}};
_.K.onCharacterCountChanged=function(v){var Q,V,E,b,F=(V=_.y(this==null?void 0:(Q=this.data)==null?void 0:Q.creatorCallForQuestions,Pvb))==null?void 0:(E=V.inputField)==null?void 0:(b=E.liveChatTextInputFieldRenderer)==null?void 0:b.maxCharacterLimit,t,p;F!=null&&(v==null?void 0:(t=v.detail)==null?void 0:t.characterCount)!=null&&_.y(this==null?void 0:(p=this.data)==null?void 0:p.startButton,_.KH)&&(Q=v.detail.characterCount>F,this.set("data.startButton.buttonRenderer.isDisabled",v.detail.characterCount===
0||Q),this.showInputErrorMessage=Q)};
_.K.onCloseClick=function(){_.Hj(this.hostElement,"picker-cancelled");_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.K.onPickerCancelled=function(){var v=_.m9(this.hostElement).querySelector("#qna-creator-text-input-field");v&&v.setLiveChatRichMessageInput(null)};
_.K.handleOpenQnaStartPanel=function(){var v=_.m9(this.hostElement).querySelector("#qna-creator-text-input-field");v&&v.focus()};
_.K.handleStartButtonAction=function(v){var Q=this;if(v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),v=v.detail.args[1])){var V=_.m9(this.hostElement).querySelector("#qna-creator-text-input-field"),E;(V==null?0:(E=V.liveChatRichMessageInput)==null?0:E.textSegments)&&V.liveChatRichMessageInput.textSegments.length!==0&&(E={rich_message:_.qC(V.liveChatRichMessageInput)},_.vp(this.hostElement,[v,E]).then(function(){_.Hj(Q.hostElement,"picker-cancelled")}))}};
_.K.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.K.handleServiceRequestCompleted=function(v){var Q;v=v==null?void 0:(Q=v.detail)==null?void 0:Q.data;(v==null?0:v.actions)&&v.actions.length>0?this.startQnaRequestInFlight=!1:_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.K.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
UD.prototype.handleServiceRequestError=UD.prototype.handleServiceRequestError;UD.prototype.handleServiceRequestCompleted=UD.prototype.handleServiceRequestCompleted;UD.prototype.handleServiceRequestSent=UD.prototype.handleServiceRequestSent;UD.prototype.onPickerCancelled=UD.prototype.onPickerCancelled;UD.prototype.onCharacterCountChanged=UD.prototype.onCharacterCountChanged;_.W([_.q(),_.X("design:type",Object)],UD.prototype,"characterCount",void 0);
_.W([_.q(),_.X("design:type",Object)],UD.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UD.prototype,"showInputErrorMessage",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UD.prototype,"startQnaRequestInFlight",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],UD.prototype,"modern",void 0);_.W([_.q(),_.X("design:type",Object)],UD.prototype,"buttonOverrides",void 0);
_.W([_.q(),_.X("design:type",Object)],UD.prototype,"closeButtonOverrides",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],UD.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(_.pA.YtLiveChatItemBehavior),_.X("design:type",_.e4)],UD.prototype,"ytLiveChatItemBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.W([_.tM("yt-live-chat-text-input-field-renderer-character-count-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],UD.prototype,"onCharacterCountChanged",null);_.W([_.tM("picker-cancelled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UD.prototype,"onPickerCancelled",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UD.prototype,"handleServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],UD.prototype,"handleServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],UD.prototype,"handleServiceRequestError",null);_.W([_.J({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],UD);
_.B(UD,"yt-live-chat-qna-start-panel-renderer",function(){if(Sfn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;qfJ===void 0&&(qfJ=document.createElement("template"));var E=qfJ;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Sfn=v}v=Sfn;return v},{mode:0});var NOP;var xLf;var vf=function(){return _.z.apply(this,arguments)||this};
_.f(vf,_.z);vf.prototype.dismiss=function(){_.Hj(this.hostElement,"yt-live-chat-error-message-dismiss")};
vf.prototype.edit=function(){_.Hj(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.W([_.q(),_.X("design:type",Object)],vf.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],vf);
_.B(vf,"yt-live-chat-text-actions-error-message-renderer",function(){if(xLf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;NOP===void 0&&(NOP=document.createElement("template"));var E=NOP;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);xLf=v}v=xLf;return v},{mode:0});var BOl;var gF5;var se5;var uTe;var QT=function(){var v=_.z.apply(this,arguments)||this;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.newnessDotEligible=!1;return v};
_.f(QT,_.z);QT.prototype.sendReaction=function(){var v,Q,V=((v=this.data)==null?void 0:v.emojiId)||((Q=this.data)==null?void 0:Q.emoteId),E;V&&((E=this.data)==null?0:E.shouldTriggerAnimation)&&_.mb(this.hostElement,"yt-create-user-reaction-animation",[V]);var b;(v=_.MQ((b=this.data)==null?void 0:b.onTap))&&_.FL(v,this.hostElement);this.showNewnessDot&&_.mb(this.hostElement,"yt-hide-newness-dot")};
QT.prototype.onClick=function(v){(!v||v.clientX||v.clientY)&&this.sendReaction()};
QT.prototype.onKeyDown=function(v){v.key!=="Enter"&&v.key!==" "||v.repeat||this.sendReaction()};
_.hr.Object.defineProperties(QT.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!!(((v=this.data)==null?0:v.emojiId)||((Q=this.data)==null?0:Q.emoteId))}}});
_.W([_.q(),_.X("design:type",Object)],QT.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],QT.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",Object)],QT.prototype,"newnessDotEligible",void 0);_.W([_.O("data.maybeShowNewnessDot"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],QT.prototype,"showNewnessDot",null);_.W([_.O("data.emojiId","data.emoteId"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],QT.prototype,"useYtImage",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],QT);
_.B(QT,"yt-reaction-control-panel-button-view-model",function(){if(uTe===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;se5===void 0&&(se5=document.createElement("template"));var E=se5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);uTe=v}v=uTe;return v},{mode:0});var jeV;var W7c;var VT=function(){var v=_.z.apply(this,arguments)||this;v.reactionControlPanelExpanded=!1;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.newnessDotEligible=!1;return v};
_.f(VT,_.z);_.K=VT.prototype;_.K.expandedButtonsChanged=function(){var v,Q;_.F6(this.hostElement,{"--expanded-buttons-height":((Q=(v=this.expandedButtonsData)==null?void 0:v.length)!=null?Q:0)*36+"px"})};
_.K.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}}};
_.K.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.K.onMouseLeave=function(){var v=this;this.collapseTimer=setTimeout(function(){v.reactionControlPanelExpanded=!1},500)};
_.K.onFocusIn=function(){this.onMouseEnter()};
_.K.onFocusOut=function(){this.onMouseLeave()};
_.K.onCollapsedButtonFocusIn=function(){var v=this;setTimeout(function(){var Q;(Q=v.expandedButtons.querySelector("button"))==null||Q.focus()},100)};
_.K.onCollapsedButtonFocusOut=function(v){v.stopPropagation()};
_.hr.Object.defineProperties(VT.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var v,Q;return _.gI.unsafeClone((v=this.liveReactionsData)==null?void 0:v.emojiButtonData)||((Q=this.data)==null?void 0:Q.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var v;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((v=this.data)==null||!v.maybeShowNewnessDot)}}});
VT.prototype.expandedButtonsChanged=VT.prototype.expandedButtonsChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],VT.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],VT.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],VT.prototype,"reactionControlPanelExpanded",void 0);_.W([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Nbd}),_.X("design:type",Object)],VT.prototype,"liveReactionsData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],VT.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",Object)],VT.prototype,"newnessDotEligible",void 0);
_.W([_.O("liveReactionsData","data.expandedButtons"),_.X("design:type",Object),_.X("design:paramtypes",[])],VT.prototype,"expandedButtonsData",null);_.W([_.O("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.q({reflectToAttribute:!0}),_.X("design:type",Object),_.X("design:paramtypes",[])],VT.prototype,"showNewnessDot",null);_.W([_.Z7("#expanded-buttons"),_.X("design:type",HTMLElement)],VT.prototype,"expandedButtons",void 0);
_.W([_.ph("expandedButtonsData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],VT.prototype,"expandedButtonsChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],VT);
_.B(VT,"yt-reaction-control-panel-view-model",function(){if(W7c===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;jeV===void 0&&(jeV=document.createElement("template"));var E=jeV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);W7c=v}v=W7c;return v},{mode:0});var El=new _.Hr("yt-live-chat"),oFq=Date.parse("2024-7-24"),bn=function(){var v=_.z.apply(this,arguments)||this;v.emojiManager=_.tj;v.newnessDotEligible=!1;v.newnessDotImpressionCounted=!1;v.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return v};
_.f(bn,_.z);_.K=bn.prototype;_.K.emojiCustomizationEnabledChanged=function(){var v;((v=this.data)==null?0:v.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((v=El.getCreationTime("emoji-customization-count"))&&v<oFq&&El.set("emoji-customization-count","0"),v=Number(El.get("emoji-customization-count"))||0,v<3&&(this.newnessDotEligible=!0,El.set("emoji-customization-count",(v+1).toString())),this.newnessDotImpressionCounted=!0)};
_.K.hideNewnessDot=function(){this.newnessDotEligible=!1;El.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.K.handleReactionsMute=function(v){var Q=_.Mo(),V=_.Vw(206221),E={checkboxData:{state:v?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};Q&&_.uI(Q,V,E);this.reactionsMuted=v};
_.K.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.K.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}}};
_.hr.Object.defineProperties(bn.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var v;return(!((v=this.liveReactionsData)==null||!v.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
bn.prototype.liveReactionsSettingChanged=bn.prototype.liveReactionsSettingChanged;bn.prototype.emojiCustomizationEnabledChanged=bn.prototype.emojiCustomizationEnabledChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.v6),_.X("design:type",Object)],bn.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],bn.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bn.prototype,"data",void 0);_.W([_.q(),_.X("design:type",_.KA)],bn.prototype,"emojiManager",void 0);_.W([_.q(),_.X("design:type",Object)],bn.prototype,"newnessDotEligible",void 0);_.W([_.q(),_.X("design:type",Object)],bn.prototype,"newnessDotImpressionCounted",void 0);
_.W([_.q({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:xAe}),_.X("design:type",Boolean)],bn.prototype,"liveReactionsSetting",void 0);_.W([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Nbd}),_.X("design:type",Object)],bn.prototype,"liveReactionsData",void 0);_.W([_.q({value:function(){var v=_.Y("enable_lwe_web_mute"),Q=El.get("allow-reactions");return Q===void 0?!1:!Q&&v}}),
_.X("design:type",Boolean)],bn.prototype,"reactionsMuted",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],bn.prototype,"liveReactionsEnabled",null);_.W([_.ph("data.emojiCustomizationEnabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bn.prototype,"emojiCustomizationEnabledChanged",null);
_.W([_.ph("liveReactionsEnabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],bn.prototype,"liveReactionsSettingChanged",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],bn);
_.B(bn,"yt-reaction-control-panel-overlay-view-model",function(){if(gF5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;BOl===void 0&&(BOl=document.createElement("template"));var E=BOl;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);gF5=v}v=gF5;return v},{mode:0});var XrE={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(v){var Q=this.$.pickers.selected;if(Q){_.m9(this.hostElement).removeAttribute(Q+"-open");var V="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(V="#picker-buttons",Q==="emoji"&&_.m9(this.hostElement).querySelector("#emoji-picker-button")&&(V="#emoji-picker-button"));if(V=_.m9(this.hostElement).querySelector(V).querySelector("#"+Q))V.active=!1}V=v;Q==v&&(V=null);Q!=
v&&_.m9(this.hostElement).setAttribute(v+"-open","");this.$.pickers.selected=V;_.mb(this.hostElement,"yt-live-chat-picker-changed",[V])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Fj=function(){var v=_.z.apply(this,arguments)||this;v.numSentMessages=0;v.timeoutDurationMs=0;v.timeoutMs=0;v.lastTimeoutTimeMs=0;v.pendingMessageId="";v.hasFiredInitialFocusActions=!1;v.isBeforeFocusEnabled=!0;v.id="";v.characterCount=0;v.maxCharacterLimit=0;v.remainingCharacterCount=0;v.inputExpanded=!1;v.buttonOverrides={iconPosition:"icon-only"};v.inReplyPanel=!1;v.countdownRatio=0;v.isTooltipVisible=!1;v.tooltipTimeout=1E4;v.systemIcons=_.Y("kevlar_system_icons");v.tallerEmojiPicker=_.Y("live_chat_taller_emoji_picker");
v.sendReplyMessageInFlight=!1;v.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};v.onResize=function(){v.maybeToggleCharacterCount()};
return v};
_.f(Fj,_.z);_.K=Fj.prototype;
_.K.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"}}}};
_.K.attached=function(){window.addEventListener("resize",this.onResize)};
_.K.detached=function(){window.removeEventListener("resize",this.onResize)};
_.K.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.K.sendMessage=function(){var v=this,Q,V,E,b;return _.e(function(F){if(v.sendDisabled)return F.return();v.isTooltipVisible&&_.mb(v.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(v.data.sendButton&&v.data.sendButton.buttonRenderer){v.input.completeEmojis();Q=v.data.sendButton.buttonRenderer.serviceEndpoint;if(!Q)return F.return();E=((V=_.y(Q,_.TJq))==null?void 0:V.clientIdPrefix)||"";b={client_message_id:E+String(v.numSentMessages++),rich_message:_.qC(v.input.liveChatRichMessageInput)};
v.pendingMessageId=b.client_message_id;v.inReplyPanel&&(v.sendReplyMessageInFlight=!0);_.vp(v.hostElement,[Q,b]);v.input.setLiveChatRichMessageInput(null)}_.q1(F)})};
_.K.handleSendButtonAction=function(v){v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),this.sendMessage())};
_.K.onSendCompleted=function(v,Q){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(v=this.get("timeoutDurationUsec",Q.data))&&this.handleTimeout(Number(v)/1E3);this.errorMessage=this.get("errorMessage",Q.data);this.pendingMessageId=""};
_.K.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}})};
_.K.handlePickerButtonToggle=function(v){v=v.detail.targetId;this.ytPickerBehavior.togglePicker_(v);if(v==="emoji")this.input.focus();else if(v==="qna-start-panel"){var Q,V;(Q=_.m9(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(V=Q.querySelector("#qna-creator-text-input-field"))==null||V.focus()}};
_.K.onComponentReplaced=function(v){var Q,V;v.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((Q=v.replacement.liveChatMessageInputRenderer)==null?0:(V=Q.headerRenderer)==null?0:V.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.K.onEmojiSelect=function(v){this.input.focus();this.input.insertEmoji(v.detail)};
_.K.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.K.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))};
_.K.onOpenPopupAction=function(v,Q){var V=this;Q===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.mb(V.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.K.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.K.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.K.focusChanged=function(){this.maybeToggleCharacterCount()};
_.K.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var v=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",v>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.K.computeId=function(){return this.data&&this.data.targetId||""};
_.K.computeSendDisabled=function(v,Q,V,E){v=!!(!v||Q&&v>Q||E);(Q=_.m9(this.hostElement).querySelector("#send-button"))&&Q.children.length&&(Q.children[0].disabled=v);return v};
_.K.handleTimeout=function(v){this.timeoutDurationMs=this.timeoutMs=v;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.K.updateTimeout=function(v){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(v-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=v,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.K.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.K.onErrorMessageEdit=function(v){this.input.setLiveChatRichMessageInput(v.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.K.errorMessageChanged=function(){var v=this;_.JM(function(){_.mb(v.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.K.computeAuthorNameColor=function(v){var Q;if(_.Y("live_chat_author_name_color_usernames")&&(v==null?0:(Q=v.authorName)==null?0:Q.simpleText))return _.wPt(_.AEm(v.authorName.simpleText));if(_.Y("live_chat_seed_color_usernames")&&(v==null?0:v.authorSeedColorArgb))return _.wPt(_.vg(v.authorSeedColorArgb));if(_.Y("live_chat_colored_usernames"))return"#cc0000";var V;return _.Y("live_chat_simple_color_usernames")&&(v==null?0:(V=v.authorName)==null?0:V.simpleText)&&(v==null?0:v.authorUsernameColorLight)&&
(v==null?0:v.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.vg(v.authorUsernameColorDark):_.vg(v.authorUsernameColorLight):""};
_.K.onIsTooltipVisibleChanged=function(){var v=_.m9(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){v.hidden=!1;v.setAttribute("role","alert")},0):(v.hidden=!0,v.removeAttribute("role"))};
_.K.onFocusedChanged=function(v){this.inputFocused=v.detail.value};
_.hr.Object.defineProperties(Fj.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.pickers)==null?void 0:Q.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return v?this.ytRendererBehavior.getSimpleString(v):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Fj.prototype.onIsTooltipVisibleChanged=Fj.prototype.onIsTooltipVisibleChanged;Fj.prototype.errorMessageChanged=Fj.prototype.errorMessageChanged;Fj.prototype.onErrorMessageEdit=Fj.prototype.onErrorMessageEdit;Fj.prototype.onErrorMessageDismiss=Fj.prototype.onErrorMessageDismiss;Fj.prototype.focusChanged=Fj.prototype.focusChanged;Fj.prototype.characterCountChanged=Fj.prototype.characterCountChanged;Fj.prototype.onEmojiSelect=Fj.prototype.onEmojiSelect;Fj.prototype.handlePickerButtonToggle=Fj.prototype.handlePickerButtonToggle;
Fj.prototype.onSendError=Fj.prototype.onSendError;Fj.prototype.onSendCompleted=Fj.prototype.onSendCompleted;Fj.prototype.sendMessage=Fj.prototype.sendMessage;Fj.prototype.dataChanged=Fj.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(XrE.YtPickerBehavior),_.X("design:type",Object)],Fj.prototype,"ytPickerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QL.YtLiveChatTooltipTargetingBehavior),_.X("design:type",Object)],Fj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"hasFiredInitialFocusActions",void 0);
_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"isBeforeFocusEnabled",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"data",void 0);_.W([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.X("design:type",Object)],Fj.prototype,"id",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"characterCount",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"maxCharacterLimit",void 0);
_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"remainingCharacterCount",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fj.prototype,"inputExpanded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Fj.prototype,"inputFocused",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Fj.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.W([_.q(),_.X("design:type",_.dK)],Fj.prototype,"participantsManager",void 0);
_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"buttonOverrides",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fj.prototype,"inReplyPanel",void 0);_.W([_.O("characterCount, maxCharacterLimit, countdownActive"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Fj.prototype,"sendDisabled",null);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"countdownRatio",void 0);
_.W([_.O("countdownRatio"),_.X("design:type",Number),_.X("design:paramtypes",[])],Fj.prototype,"countdownStrokeDashOffset",null);_.W([_.O("countdownRatio"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Fj.prototype,"countdownActive",null);_.W([_.O("data.interactionMessage"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Fj.prototype,"hasInteractionMessage",null);
_.W([_.O("data.emojiPickerButton"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Fj.prototype,"hasEmojiPickerButton",null);_.W([_.O("data, characterCount"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Fj.prototype,"showAvatar",null);_.W([_.O("data.pickers"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Fj.prototype,"hasProductPickerPanelViewModel",null);
_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"errorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"genericErrorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"isTooltipVisible",void 0);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"tooltipTimeout",void 0);_.W([_.O("data.onInitialFocusCommand"),_.X("design:type",String),_.X("design:paramtypes",[])],Fj.prototype,"tooltipMessage",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fj.prototype,"systemIcons",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fj.prototype,"tallerEmojiPicker",void 0);_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],Fj.prototype,"authorNameColor",null);_.W([_.q(),_.X("design:type",Object)],Fj.prototype,"sendReplyMessageInFlight",void 0);_.W([_.Z7("#input"),_.X("design:type",_.Ux8)],Fj.prototype,"input",void 0);
_.W([_.Z7("#count"),_.X("design:type",HTMLElement)],Fj.prototype,"count",void 0);_.W([_.Z7("#input-container"),_.X("design:type",HTMLElement)],Fj.prototype,"inputContainer",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"dataChanged",null);_.W([_.tM("yt-live-chat-send-message"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],Fj.prototype,"sendMessage",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[Event,_.sP]),_.X("design:returntype")],Fj.prototype,"onSendCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"onSendError",null);
_.W([_.tM("yt-live-chat-icon-toggle-button-renderer-toggle"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Fj.prototype,"handlePickerButtonToggle",null);_.W([_.tM("yt-emoji-select"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Fj.prototype,"onEmojiSelect",null);
_.W([_.ph("characterCount"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"characterCountChanged",null);_.W([_.ph("inputFocused"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"focusChanged",null);_.W([_.tM("yt-live-chat-error-message-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"onErrorMessageDismiss",null);
_.W([_.tM("yt-live-chat-error-message-edit"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Fj.prototype,"onErrorMessageEdit",null);_.W([_.ph("errorMessage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"errorMessageChanged",null);_.W([_.ph("isTooltipVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fj.prototype,"onIsTooltipVisibleChanged",null);
_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Fj);
_.B(Fj,"yt-live-chat-message-input-renderer",function(){if(PDj===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ZO5===void 0&&(ZO5=document.createElement("template"));var E=ZO5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);PDj=v}v=PDj;return v},{mode:0});var ad5;var rFf;var K8=function(){var v=_.z.apply(this,arguments)||this;v.systemIcons=_.Y("kevlar_system_icons");v.firedOnClickCommand=!1;v.inReplyPanel=!1;return v};
_.f(K8,_.z);
K8.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"}}}};
K8.prototype.onButtonToggle=function(v){v.target.disabled||this.ytPickerBehavior.togglePicker_(v.detail.targetId)};
K8.prototype.onClick=function(){var v=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 v.firedOnClickCommand=!1},5E3))};
_.hr.Object.defineProperties(K8.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.panels)==null?void 0:Q.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}}});
K8.prototype.onButtonToggle=K8.prototype.onButtonToggle;_.W([_.M(XrE.YtPickerBehavior),_.X("design:type",Object)],K8.prototype,"ytPickerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],K8.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],K8.prototype,"systemIcons",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Object)],K8.prototype,"firedOnClickCommand",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],K8.prototype,"inReplyPanel",void 0);_.W([_.O("data.pickers"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],K8.prototype,"hasProductPickerPanelViewModel",null);
_.W([_.tM("yt-live-chat-icon-toggle-button-renderer-toggle"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],K8.prototype,"onButtonToggle",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],K8);
_.B(K8,"yt-live-chat-restricted-participation-renderer",function(){if(rFf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ad5===void 0&&(ad5=document.createElement("template"));var E=ad5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);rFf=v}v=rFf;return v},{mode:0});var L8=function(){var v=_.z.apply(this,arguments)||this;v.genericErrorMessage=_.u3("Error, try again.");v.inReplyPanel=!1;v.hideBorder=!1;return v};
_.f(L8,_.z);L8.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}}}}}};
_.hr.Object.defineProperties(L8,{template:{configurable:!0,enumerable:!0,get:function(){return iO5()}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],L8.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],L8.prototype,"genericErrorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],L8.prototype,"inReplyPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],L8.prototype,"hideBorder",void 0);
_.W([_.D7({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],L8);_.B(L8,"yt-live-chat-engagement-panel-input-renderer",function(){return iO5()},{mode:0});var $LE,IdP;$LE=_.Vw(115994);IdP=_.Vw(115993);_.tp=function(v,Q,V){var E=this;var b=V.dragDownAction;this.layer=0;this.JSC$22972_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.JSC$22972_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.fullscreen=!1;var F=_.tR();_.JL(F,$LE,this.layer);_.JL(F,IdP,this.layer);this.dragDownAction=function(){b();_.zr(F,{visualElement:E.fullscreen?$LE:IdP})};
this.gesture=new _.x1(v,Q,this.getConfig(!1),"pandown");this.attach()};
_.tp.prototype.attach=function(){this.gesture.attach()};
_.tp.prototype.detach=function(){this.gesture.detach()};
_.tp.prototype.update=function(v){this.fullscreen=v;var Q=this.gesture;v=this.getConfig(v);Q.config=v};
_.tp.prototype.getConfig=function(v){return v?this.JSC$22972_watchFullScreenConfig:this.JSC$22972_watchConfig};var HOl={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(v){if(v&&v.length==1&&Array.isArray(v[0].loggingUrls)){v=_.gI.unsafeClone(v[0]);var Q=this.macros||{},V=this.getAdModuleClient_();if(!V)return _.Vk();v.loggingUrls.forEach(function(E){if(E.baseUrl){var b=E.baseUrl;var F=Q;F=F===void 0?{}:F;b=V.getOptions().includes("replaceUrlMacros")?_.ktp(V,"replaceUrlMacros",{url:b,additionalMapping:F}):b;E.baseUrl=b}},this);
v=[v]}return _.vp(this.hostElement,v)},
getAdModuleClient_:function(){var v=_.aJ(this);return v?(v=v.getPlayer())?new _.Um(v):null:null}}]};var mLP;var ULP;var p8=function(){return _.z.apply(this,arguments)||this};
_.f(p8,_.z);p8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],p8.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],p8);
_.B(p8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(ULP!==void 0)return ULP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ULP=v},{mode:1});var vhd;var Qyc;var Vxd;var eo=function(){return _.z.apply(this,arguments)||this};
_.f(eo,_.z);eo.prototype.ready=function(){this.initializeDefs()};
eo.prototype.initializeDefs=function(){var v=this.meta.byKey("yt-icons"),Q=_.m9(v).querySelector("#star"),V=_.m9(v).querySelector("#star_half");v=_.m9(v).querySelector("#star_border");Q&&this.defs.appendChild(Q.cloneNode(!0));V&&this.defs.appendChild(V.cloneNode(!0));v&&this.defs.appendChild(v.cloneNode(!0))};
eo.prototype.percentChanged=function(){for(var v=this.rating;v.firstChild;)v.removeChild(v.firstChild);var Q=Math.round(this.percent/10);v=Math.floor(Q/2);Q%=2;var V=5-v-Q;this.appendStars("star",v,0);this.appendStars("star_half",Q,v);this.appendStars("star_border",V,v+Q)};
eo.prototype.appendStars=function(v,Q,V){for(var E=0;E<Q;E++){var b=(18+this.spacing)*(E+V),F=document.createElementNS("http://www.w3.org/2000/svg","use");_.llY(F,"#"+v);F.setAttribute("x",""+b);F.setAttribute("y","0");this.rating.appendChild(F)}};
eo.prototype.percentChanged=eo.prototype.percentChanged;_.W([_.Z7("#defs"),_.X("design:type",HTMLElement)],eo.prototype,"defs",void 0);_.W([_.Z7("#rating"),_.X("design:type",HTMLElement)],eo.prototype,"rating",void 0);_.W([_.q(),_.X("design:type",Number)],eo.prototype,"percent",void 0);_.W([_.q({value:6}),_.X("design:type",Number)],eo.prototype,"spacing",void 0);_.W([_.q({value:_.SO.create("iron-meta",{type:"iconset"})}),_.X("design:type",_.gm)],eo.prototype,"meta",void 0);
_.W([_.ph("percent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],eo.prototype,"percentChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-ratings"})],eo);
_.B(eo,"ytd-ratings",function(){if(Vxd!==void 0)return Vxd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Vxd=v},{mode:1});var Ehb=function(){return _.z.apply(this,arguments)||this};
_.f(Ehb,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ehb.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ehb.prototype,"data",void 0);_.W([_.J({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Ehb);
_.B(Ehb,"ytd-offer-review-renderer",function(){if(Qyc!==void 0)return Qyc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Qyc=v},{mode:1});var ZA=function(){var v=_.z.apply(this,arguments)||this;v.badges=[{textBadge:{label:_.u3("CC")}}];return v};
_.f(ZA,_.z);_.K=ZA.prototype;_.K.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.K.dataChanged=function(){var v=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(v&&v.commandMetadata&&_.y(v.commandMetadata,_.u7)&&_.y(v.commandMetadata,_.u7).fireAutomatically)_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}});else{var Q;v&&((Q=_.y(v,_.u7))==null?0:Q.fireAutomatically)&&_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})}};
_.K.isEmptyContent=function(v){return this.isStorefrontEntryPointEmpty(v)&&this.shouldHideOfferModule(v)};
_.K.isStorefrontEntryPointEmpty=function(v){return!v||!v.storefrontEntryPoint};
_.K.shouldHideOfferModule=function(v){return!!v.hideVideoDetails};
_.K.isOfferModuleNavigationInactive=function(v){return!v.navigationEndpoint&&!v.serviceEndpoint};
_.K.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ZA.prototype.dataChanged=ZA.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ZA.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.X("design:type",Boolean)],ZA.prototype,"hidden",void 0);
_.W([_.q(),_.X("design:type",Object)],ZA.prototype,"badges",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZA.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ZA);
_.B(ZA,"ytd-movie-offer-module-renderer",function(){if(vhd!==void 0)return vhd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vhd=v},{mode:1});var bpb;var FtI=function(){return _.z.apply(this,arguments)||this};
_.f(FtI,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],FtI.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],FtI.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],FtI);
_.B(FtI,"ytd-media-masthead-renderer",function(){if(bpb!==void 0)return bpb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bpb=v},{mode:1});var KtV;_.ad(_.EQm,"course-metadata-view-model",{props:{data:_.Wg,isOverlay:_.Wg}});var Pf=function(){var v=_.z.apply(this,arguments)||this;v.isMetadataVisible=!1;v.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return v};
_.f(Pf,_.z);_.K=Pf.prototype;
_.K.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"}}}}};
_.K.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.K.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.K.expanderChanged=function(){var v;if((v=this.data)==null?0:v.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.K.isExpandButtonToggled=function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.expandMetadataButton,_.Zq))==null?void 0:Q.isToggled};
_.K.onVisibilityButtonClick=function(){var v;if((v=this.data)==null?0:v.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.K.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Pf.prototype.expanderChanged=Pf.prototype.expanderChanged;Pf.prototype.dataChanged=Pf.prototype.dataChanged;Pf.prototype.descriptionChanged=Pf.prototype.descriptionChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M([_.SI.YtActionHandlerBehavior]),_.X("design:type",Object)],Pf.prototype,"actionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Pf.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Pf.prototype,"isMetadataVisible",void 0);_.W([_.Z7("#expander"),_.X("design:type",Object)],Pf.prototype,"expander",void 0);_.W([_.ph("data.description"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pf.prototype,"descriptionChanged",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pf.prototype,"dataChanged",null);_.W([_.ph("isMetadataVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pf.prototype,"expanderChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Pf);
_.B(Pf,"ytd-tvfilm-offer-module-renderer",function(){if(KtV!==void 0)return KtV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return KtV=v},{mode:2});var ipl;var d6=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return v};
_.f(d6,_.z);d6.prototype.dataChanged=function(){this.hostElement.hidden=!1};
d6.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
d6.prototype.onThumbnailTap=function(v){this.data&&this.data.serviceEndpoint&&(_.ht().resolve(_.At).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),v.stopPropagation())};
d6.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
d6.prototype.dataChanged=d6.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],d6.prototype,"rendererBehaviors",void 0);_.W([_.M([_.SI.YtActionHandlerBehavior]),_.X("design:type",Object)],d6.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],d6.prototype,"data",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d6.prototype,"dataChanged",null);_.W([_.J({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],d6);
_.B(d6,"ytd-unlimited-offer-module-renderer",function(){if(ipl!==void 0)return ipl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ipl=v},{mode:1});var Lt9;var txn;var hp=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return v};
_.f(hp,_.z);hp.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
hp.prototype.handleRelatedChipCommand=function(v){v=_.y(v,RHe);var Q=v.contents;Q?_.Un(this.hostElement,"yt-item-section-replace-action",[Q,v.targetSectionIdentifier]):_.Un(this.hostElement,"yt-item-section-continuation-action",[v.continuationData,v.targetSectionIdentifier])};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],hp.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hp.prototype,"data",void 0);_.W([_.D7({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],hp);
_.B(hp,"yt-related-chip-cloud-renderer",function(){if(txn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Lt9===void 0&&(Lt9=document.createElement("template"));var E=Lt9;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);txn=v}v=txn;return v},{mode:2});var w6=function(){var v=_.z.apply(this,arguments)||this;v.isTwoColumns=!0;v.watchFeedBigThumbs=_.Y("kevlar_watch_feed_big_thumbs");v.watchFeedBigThumbsOnLockup=_.Y("web_watch_next_big_thumbs");v.watchNextGridHideChips=_.Y("kevlar_watch_grid_hide_chips");v.eligibleToSwitchToGrid=!0;v.disableShortsShelfHeightOverride=_.Y("web_shorts_wn_shelf_ratio_tuning");v.isWatchNextGrid=!1;v.reuseComponents=!_.Y("kevlar_watch_grid");v.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return v};
_.f(w6,_.z);_.K=w6.prototype;
_.K.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:!_.Y("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}}};
_.K.getItemsPath=function(){return"data.results"};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.K.created=function(){this.ytLazyListBehavior.initialCount=1};
_.K.ready=function(){_.F6(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.K.resultsChanged=function(){if(this.data&&this.data.results){for(var v=this.data.results,Q=null,V=null,E=0;E<v.length;E++)v[E].relatedChipCloudRenderer?Q=v[E].relatedChipCloudRenderer:v[E].itemSectionRenderer&&(V=v[E].itemSectionRenderer);if(Q&&V)for(this.set("data.continuations",[]),v=_.y(Q.content,_.pu8).chips,Q=0;Q<v.length;Q++)if(E=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",v[Q]),E.loadCached||!E.contents){E.contents=V.contents;break}}};
_.K.dataChanged=function(){var v=this,Q;if((Q=this.data)!=null&&Q.results&&this.hasAllowedInstreamAd(this.playerData)){if(Q=this.data.results.filter(function(p){return!!p.promotedSparklesWebRenderer})){for(var V=0;V<Q.length;V++){var E=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",Q[V]);
if(E)for(var b=0;b<E.length;b++)E[b]&&E[b].baseUrl&&_.Vp(E[b].baseUrl)}this.set("data.results",this.data.results.filter(function(p){return!p.promotedSparklesWebRenderer}))}if(Q=this.data.results.filter(function(p){return!!v.getSparklesAd(p)})){Q=_.L(Q);
for(b=Q.next();!b.done;b=Q.next())if(E=V=void 0,b=(V=this.getSparklesAd(b.value))==null?void 0:(E=V.errorCommand)==null?void 0:E.loggingUrls)for(V=_.L(b),E=V.next();!E.done;E=V.next())(E=E.value)&&E.baseUrl&&_.Vp(E.baseUrl);var F,t;this.set("data.results",(F=this.data)==null?void 0:(t=F.results)==null?void 0:t.filter(function(p){return!p.adSlotRenderer}))}}};
_.K.getSparklesAd=function(v){var Q,V;v=_.y((Q=v.adSlotRenderer)==null?void 0:(V=Q.fulfillmentContent)==null?void 0:V.fulfilledLayout,_.z_Z);return _.y(v==null?void 0:v.renderingContent,r1l)};
_.K.hasAllowedInstreamAd=function(v){v=this.get("adPlacements",v)||[];for(var Q=0;Q<v.length;Q++){var V=this.get("adPlacementRenderer.config.adPlacementConfig",v[Q]);if(V&&V.suppressDisplayAd)return!0}return!1};
_.K.computeHideUnlimitedOfferModule=function(v,Q){return v&&v.offerModule&&Q&&v.offerModule.unlimitedOfferModuleRenderer&&v.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(Q)?!0:!1};
_.K.hideUnlimitedOfferModuleChanged=function(){var v=_.m9(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");v&&(v.hidden=this.hideUnlimitedOfferModule)};
_.K.updateLockupContainerTypes=function(v){if(this.eligibleToSwitchToGrid){var Q;(Q=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||Q.forEach(function(V){V.containerType=v})}};
_.K.computeHideTvfilmOfferModule=function(v,Q){var V,E;return!!((v==null?0:(V=v.offerModule)==null?0:(E=V.tvfilmOfferModuleRenderer)==null?0:E.clientShouldSuppressIfCompanionAdDisplayed)&&Q&&this.hasCompanionAds(Q))};
_.K.hideTvfilmOfferModuleChanged=function(){var v=_.m9(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");v&&(v.hidden=this.hideTvfilmOfferModule)};
_.K.hasCompanionAds=function(v){v=this.get("adPlacements",v)||[];for(var Q=0;Q<v.length;Q++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",v[Q]))return!0;var V=void 0,E=void 0,b=void 0;if(!_.Y("web_watch_top_banner_companion_check_killswitch")&&((V=v[Q])==null?0:(E=V.adPlacementRenderer)==null?0:(b=E.renderer)==null?0:b.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.K.hasSuppressedResults=function(v){return v==null?!0:v.filter(function(Q){return!Q.continuationItemRenderer&&!Q.compactPromotedVideoRenderer&&!Q.promotedSparklesWebRenderer}).length===0};
_.K.computeShowButton=function(v,Q){return this.isWatchNextGrid?v:v||this.hasSuppressedResults(Q)};
_.K.showButtonChanged=function(){if(this.isWatchNextGrid){var v=_.m9(this.hostElement).querySelector("ytd-rich-grid-renderer");v&&this.showButton!==null&&(v.continuationShowButton=this.showButton)}else{v=_.m9(this.hostElement).querySelector("yt-next-continuation");var Q=_.m9(this.hostElement).querySelector("ytd-continuation-item-renderer"),V=_.m9(this.hostElement).querySelector("ytd-item-section-renderer");v&&(v.showButton=this.showButton);Q&&(Q.showButton=this.showButton);V&&(V.continuationShowButton=
this.showButton)}};
_.K.continuationTap=function(v){var Q;if(((Q=this.data)==null?void 0:Q.continuations)!=null&&v.target.tagName==="TP-YT-PAPER-BUTTON")for(v=this.data.continuations,Q=0;Q<v.length;Q++)v[Q].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(v[Q].nextContinuationData||{})};
_.K.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("shown-items-changed",this.shownItems))};
_.hr.Object.defineProperties(w6.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.shownItems)==null||!v.some(function(Q){return!!Q.lockupViewModel||Q.compactVideoRenderer}))}}});
w6.prototype.shownItemsChangedForBinding=w6.prototype.shownItemsChangedForBinding;w6.prototype.showButtonChanged=w6.prototype.showButtonChanged;w6.prototype.hideTvfilmOfferModuleChanged=w6.prototype.hideTvfilmOfferModuleChanged;w6.prototype.updateLockupContainerTypes=w6.prototype.updateLockupContainerTypes;w6.prototype.hideUnlimitedOfferModuleChanged=w6.prototype.hideUnlimitedOfferModuleChanged;w6.prototype.dataChanged=w6.prototype.dataChanged;w6.prototype.resultsChanged=w6.prototype.resultsChanged;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],w6.prototype,"ytLazyListBehavior",void 0);_.W([_.M(_.Ak.YtNextContinuationBehavior),_.X("design:type",Object)],w6.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.M(_.wk),_.X("design:type",Object)],w6.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],w6.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],w6.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],w6.prototype,"playerData",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],w6.prototype,"autoFill",void 0);_.W([_.q({value:60}),_.X("design:type",Number)],w6.prototype,"targetFramerate",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"isTwoColumns",void 0);_.W([_.q(),_.X("design:type",Object)],w6.prototype,"shownItems",void 0);_.W([_.q({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.X("design:type",Boolean)],w6.prototype,"hideUnlimitedOfferModule",void 0);_.W([_.q({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.X("design:type",Boolean)],w6.prototype,"hideTvfilmOfferModule",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"watchFeedBigThumbs",void 0);_.W([_.q(),_.X("design:type",Object)],w6.prototype,"watchFeedBigThumbsOnLockup",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"watchNextGridHideChips",void 0);_.W([_.q(),_.X("design:type",Object)],w6.prototype,"eligibleToSwitchToGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"disableShortsShelfHeightOverride",void 0);
_.W([_.q({selector:_.OP,reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"isGridViewEnabled",void 0);_.W([_.q({selector:_.v6S,reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"isSwatcherooActive",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],w6.prototype,"showMoreButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],w6.prototype,"isWatchNextGrid",void 0);
_.W([_.q({computed:"computeShowButton(showMoreButton, data.results)"}),_.X("design:type",Boolean)],w6.prototype,"showButton",void 0);_.W([_.wg("data.results.*"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w6.prototype,"resultsChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w6.prototype,"dataChanged",null);
_.W([_.ph("hideUnlimitedOfferModule"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w6.prototype,"hideUnlimitedOfferModuleChanged",null);_.W([_.O("isGridViewEnabled","containsLockups","data"),_.q({reflectToAttribute:!0}),_.X("design:type",Number),_.X("design:paramtypes",[])],w6.prototype,"lockupContainerType",null);
_.W([_.ph("lockupContainerType","data"),_.X("design:type",Function),_.X("design:paramtypes",[Number]),_.X("design:returntype")],w6.prototype,"updateLockupContainerTypes",null);_.W([_.ph("hideTvfilmOfferModule"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w6.prototype,"hideTvfilmOfferModuleChanged",null);_.W([_.ph("showButton"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w6.prototype,"showButtonChanged",null);
_.W([_.ph("shownItems"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w6.prototype,"shownItemsChangedForBinding",null);_.W([_.O("shownItems"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],w6.prototype,"containsLockups",null);
_.B(w6,"ytd-watch-next-secondary-results-renderer",function(){if(mLP===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);mLP=v}v=mLP;return v},{mode:1});var pxj;var Ap=function(){var v=_.z.apply(this,arguments)||this;v.isCollapsed=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return v};
_.f(Ap,_.z);_.K=Ap.prototype;_.K.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.onDonateTap=function(){var v=this.get("data.donateButton.buttonRenderer.command");if(v){var Q=_.Mo(),V=this.get("data.donateButton.buttonRenderer.trackingParams");Q&&V&&_.uI(Q,_.dE(V));this.ytOpenPopupBehavior.openPopup(v)}};
_.K.onShowMore=function(){this.isCollapsed=!1;var v=_.Mo(),Q=this.get("data.expandButton.buttonRenderer.trackingParams");v&&Q&&_.uI(v,_.dE(Q))};
_.K.onShowLess=function(){this.isCollapsed=!0};
_.K.dataChanged=function(){_.F6(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.handleUpdate=function(v){if(v=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",v))this.set("data.startLabel",v.startLabel),this.set("data.endLabel",v.endLabel),this.set("data.progress",v.progress),this.set("data.amountRaisedLabel",v.amountRaisedLabel),this.dataChanged()};
_.K.handleOpenPopupAction=function(v){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",v)&&_.mb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.K.computeHeaderBackgroundUrl=function(v,Q){if(v)return Q?v.headerBackgroundDarkUrl:v.headerBackgroundUrl};
_.K.isProgressBarVisible=function(v){return!(!v||v.progress===void 0)};
_.K.headerBackgroundClass=function(){return _.r7("HTML_DIR")==="rtl"?"flip":""};
Ap.prototype.dataChanged=Ap.prototype.dataChanged;_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],Ap.prototype,"ytOpenPopupBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ap.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Ap.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Ap.prototype,"isCollapsed",void 0);_.W([_.q({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.X("design:type",String)],Ap.prototype,"headerBackgroundUrl",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ap.prototype,"isDarkTheme",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ap.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Ap);
_.B(Ap,"ytd-donation-shelf-renderer",function(){if(pxj!==void 0)return pxj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pxj=v},{mode:1});var eyn;var Zpf=function(){return _.z.apply(this,arguments)||this};
_.f(Zpf,_.z);_.W([_.q(),_.X("design:type",Object)],Zpf.prototype,"data",void 0);_.W([_.J({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Zpf);
_.B(Zpf,"ytd-donation-unavailable-renderer",function(){if(eyn!==void 0)return eyn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return eyn=v},{mode:1});var PSP;var kB=function(){return _.z.apply(this,arguments)||this};
_.f(kB,_.z);kB.prototype.computeIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kB.prototype,"data",void 0);_.W([_.J({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],kB);
_.B(kB,"ytd-limited-state-message-renderer",function(){if(PSP!==void 0)return PSP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return PSP=v},{mode:1});var dRn;var Tf=function(){return _.z.apply(this,arguments)||this};
_.f(Tf,_.z);Tf.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Tf.prototype.onTap=function(v){var Q=this.data&&this.data.endpoint;Q&&!_.j$(_.uK(v),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Hj(this.hostElement,"yt-navigate",{endpoint:Q})};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Tf.prototype,"data",void 0);_.W([_.J({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Tf);
_.B(Tf,"ytd-autotagging-metadata-renderer",function(){if(dRn!==void 0)return dRn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dRn=v},{mode:1});var hye;var YB=function(){return _.z.apply(this,arguments)||this};
_.f(YB,_.z);YB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],YB.prototype,"data",void 0);_.W([_.J({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],YB);
_.B(YB,"ytd-autotagging-metadata-row-renderer",function(){if(hye!==void 0)return hye;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return hye=v},{mode:1});var wxq;var A8c;var yT=function(){var v=_.z.apply(this,arguments)||this;v.engagementPanelContent=!1;return v};
_.f(yT,_.z);yT.prototype.computeHasDividerLine=function(v,Q){return v&&!Q};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],yT.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.X("design:type",Boolean)],yT.prototype,"hasDividerLine",void 0);_.W([_.q(),_.X("design:type",Object)],yT.prototype,"engagementPanelContent",void 0);
_.W([_.J({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],yT);
_.B(yT,"ytd-metadata-row-header-renderer",function(){if(A8c!==void 0)return A8c;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return A8c=v},{mode:1});var kvb;var cf=function(){return _.z.apply(this,arguments)||this};
_.f(cf,_.z);cf.prototype.computeHasDividerLine=function(v){return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cf.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.X("design:type",Boolean)],cf.prototype,"hasDividerLine",void 0);_.W([_.J({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],cf);
_.B(cf,"ytd-metadata-row-renderer",function(){if(kvb!==void 0)return kvb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return kvb=v},{mode:1});var Toe;var Y0c=function(){return _.z.apply(this,arguments)||this};
_.f(Y0c,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Y0c.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Y0c.prototype,"data",void 0);_.W([_.J({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Y0c);
_.B(Y0c,"ytd-metadata-with-image-row-renderer",function(){if(Toe!==void 0)return Toe;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Toe=v},{mode:1});var y89;var f8=function(){var v=_.z.apply(this,arguments)||this;v.rounded=!0;v.fixie=!1;v.fullWidth=!1;return v};
_.f(f8,_.z);_.K=f8.prototype;_.K.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.onDataChanged=function(){var v=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(Q){v.onEndpointLinkKeyPress(Q)}))};
_.K.onEndpointLinkKeyPress=function(v){v.target===this.endpointLink&&v.keyCode===13&&_.Hj(this.hostElement,"click")};
_.K.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var v;if((v=this.data)==null?0:v.endpoint)_.Qk(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.K.onYtNavigate=function(v){this.endpointHref||(v.stopPropagation(),v.preventDefault())};
_.K.onInformationButtonContainerClick=function(v){v.target.id!=="information-button-container"&&(v.stopPropagation(),v.preventDefault())};
_.K.computeStyle=function(v){return v};
_.K.computeIsThumbnailStyle=function(v){return v==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.K.computeThumbnailWidth=function(v){switch(v){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.K.computeThumbnailObjectFit=function(v){switch(v){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.hr.Object.defineProperties(f8.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
f8.prototype.onYtNavigate=f8.prototype.onYtNavigate;f8.prototype.onClick=f8.prototype.onClick;f8.prototype.onDataChanged=f8.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],f8.prototype,"componentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],f8.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],f8.prototype,"componentStyle",void 0);_.W([_.q({computed:"computeIsThumbnailStyle(data.style)"}),_.X("design:type",Boolean)],f8.prototype,"isThumbnailStyle",void 0);_.W([_.q({computed:"computeThumbnailObjectFit(data.style)"}),_.X("design:type",String)],f8.prototype,"thumbnailObjectFit",void 0);
_.W([_.q({computed:"computeThumbnailWidth(data.style)"}),_.X("design:type",Number)],f8.prototype,"thumbnailWidth",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],f8.prototype,"rounded",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],f8.prototype,"fixie",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],f8.prototype,"fullWidth",void 0);_.W([_.Z7("#endpoint-link"),_.X("design:type",HTMLAnchorElement)],f8.prototype,"endpointLink",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],f8.prototype,"onDataChanged",null);_.W([_.O("data.endpoint"),_.X("design:type",Object),_.X("design:paramtypes",[])],f8.prototype,"endpointHref",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],f8.prototype,"onClick",null);
_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],f8.prototype,"onYtNavigate",null);_.W([_.J({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],f8);
_.B(f8,"ytd-rich-metadata-renderer",function(){if(y89!==void 0)return y89;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return y89=v},{mode:_.mV("kevlar_poly_si_batch_j075")?1:2});var c8J;var Gf=function(){var v=_.z.apply(this,arguments)||this;v.fixie=!1;v.fullWidth=!1;return v};
_.f(Gf,_.z);Gf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Gf.prototype.computeHasDividerLine=function(v){return v};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Gf.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.X("design:type",Boolean)],Gf.prototype,"hasDividerLine",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Gf.prototype,"fixie",void 0);_.W([_.q(),_.X("design:type",Object)],Gf.prototype,"fullWidth",void 0);
_.W([_.J({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Gf);
_.B(Gf,"ytd-rich-metadata-row-renderer",function(){if(c8J!==void 0)return c8J;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return c8J=v},{mode:1});var C8=function(){var v=_.z.apply(this,arguments)||this;v.engagementPanelContent=!1;v.fixie=!1;v.fullWidth=!1;return v};
_.f(C8,_.z);
C8.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"}}}};
C8.prototype.computeCollapsibleItems=function(v,Q,V){return v===void 0||Q===void 0||V===void 0||V?[]:v.slice(Q)};
C8.prototype.computeAlwaysShownItems=function(v,Q){return v&&v.length?v.slice(0,Q):[]};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],C8.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],C8.prototype,"collapsed",void 0);
_.W([_.q({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.X("design:type",Array)],C8.prototype,"alwaysShownItems",void 0);_.W([_.q({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.X("design:type",Array)],C8.prototype,"collapsibleItems",void 0);_.W([_.q(),_.X("design:type",Object)],C8.prototype,"engagementPanelContent",void 0);_.W([_.q(),_.X("design:type",Object)],C8.prototype,"fixie",void 0);
_.W([_.q(),_.X("design:type",Object)],C8.prototype,"fullWidth",void 0);_.W([_.J({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],C8);
_.B(C8,"ytd-metadata-row-container-renderer",function(){if(wxq!==void 0)return wxq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wxq=v},{mode:1});var fWb;var MU=function(){var v=_.z.apply(this,arguments)||this;v.currentPageUrl="";v.baseUrl="";v.isHiddenByUser=null;v.hidden=!1;v.showAboveScrim=!1;v.watchNextGrid=_.Y("kevlar_watch_grid");v.modernButtons=_.Y("web_modern_buttons");v.roundedContainer=!0;v.noBorder=!1;v.roundBackground=!_.Y("live_chat_round_background_killswitch");v.overflowHideChat=_.Y("live_chat_overflow_hide_chat");v.forceDarkTheme=!1;v.theaterWatchWhile=!1;v.isListeningForPlayerProgress=!1;v.JSC$23043_playerEvents=new Map;v.isFrameReady=
!1;v.player=null;v.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return v};
_.f(MU,_.z);_.K=MU.prototype;_.K.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Un(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.K.created=function(){var v=this;this.handleIframeEventListener=function(Q){v.handleIframeEvent(Q)};
this.handleKeyboardEventListener=function(Q){v.handleKeyboardEvent(Q)};
this.JSC$23043_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23043_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23043_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23043_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23043_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.K.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()};
_.K.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};
_.K.computeBaseUrl=function(v){var Q="/live_chat";this.isChatReplay()&&(Q="/live_chat_replay");return _.pM(_.t6(_.LM(_.vR(v),Q),null),"").toString()};
_.K.dataChanged=function(){_.Y("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.K.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var v=this.url;if(this.isChatReplay()&&this.player){var Q=Math.floor(this.player.getProgressState().current*1E3);v=_.Vf(_.vR(v),"playerOffsetMs",Q.toString()).toString()}Q=this.chatframe;try{var V=v==="about:blank"?_.Xqa:_.oE(v),E=Q.contentDocument.location,b=_.rl(V);b!==void 0&&E.replace(b)}catch(F){Q.src=v}}};
_.K.collapsedChanged=function(){_.Hj(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.K.handleIframeEvent=function(v){if(v&&this.baseUrl.startsWith(v.origin)&&v.source===this.chatframe.contentWindow&&_.rG(v.data))if(v.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(v);else if(v.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(v.data["yt-show-feedback-dialog"]){var Q=_.ht().resolve(_.d$(_.gPh));if(Q){var V=v.ports,E;V&&V.length&&(E=function(){V[0].postMessage({})});
v=v.data["yt-show-feedback-dialog"];Q.showFeedbackDialog(v.customProductData,v.feedbackContent,E,v.bucket)}}else if(v.data["yt-show-survey"])_.Hj(this.hostElement,"yt-show-survey",v.data["yt-show-survey"]);else if(v.data["yt-purchase-membership"])_.ht().resolve(_.At).resolveCommand(v.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(v.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(v.data["yt-tunnel-out-live-service-request"]);else if(v.data["yt-user-activity"])_.A8();
else if(v.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(v.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(v.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(v.data["yt-open-popup"]);else if(v.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(v.data["yt-log-flow-logging-event-command"]);else if(v.data["yt-hide-live-chat"])this.onShowHideChat();else v.data["yt-report-moderation-state-log"]&&
this.player&&(Q={cpn:this.player.getVideoData().cpn},_.X0("liveChatBeingModerated",Q))};
_.K.attachLiveChatResponseVeTrackingParams=function(v){v=_.dE(v);var Q=_.Mo(),V=_.Q9("liveChatRenderer.trackingParams",this.data);Q&&V&&_.Np(Q,_.dE(V),v)};
_.K.handleBuyflowMessages=function(v){var Q=v.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,V=v.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,E=v.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.jiZ(_.XQ(_.sp),Q.replace(/-/g,"+").replace(/_/g,"/"),function(b){v.ports[0].postMessage({success:!0,buyFlowResponse:b})},void 0,function(b){v.ports[0].postMessage({success:!1,
error:b&&b.message||"Buyflow rejected without error."})},_.eP().get("hl"),void 0,function(){v.ports[0].postMessage({closed:!0})},V,E)};
_.K.setupPlayerProgressRelay=function(){var v=this;if(!this.isListeningForPlayerProgress){var Q=_.rS();Q!=null&&Q.getPlayerPromise&&(Q.getPlayerPromise().then(function(V){v.playerApiReady(V)}),this.isListeningForPlayerProgress=!0)}};
_.K.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.K.playerApiReady=function(v){this.setPlayer(v)};
_.K.playerProgressHandler=function(){if(this.player){var v=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":v.current})}};
_.K.playerAdStartHandler=function(v){this.postToContentWindow({"yt-player-ad-start":v})};
_.K.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.K.playerStateChangeHandler=function(v){this.postToContentWindow({"yt-player-state-change":v})};
_.K.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23043_playerEvents);v&&(this.player=v,this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$23043_playerEvents),_.Hj(this.hostElement,"player-api-ready"))};
_.K.liveChatPageUrl=function(v,Q,V,E){return!V||Q?"about:blank":V.liveChatRenderer?(Q=_.vR(this.currentPageUrl).JSC$10112_queryData_,B7d(Q),v=_.vR(v),Q.add("continuation",V.liveChatRenderer.continuations[0].reloadContinuationData.continuation),V=_.q2()==="USER_INTERFACE_THEME_DARK",(E||V)&&Q.add("dark_theme","true"),_.t6(v,Q),E=_.vR(v.toString()),V=E.JSC$10112_queryData_,"SESSION_INDEX"in _.X1&&(V.add("authuser",_.r7("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.X1&&V.add("pageId",_.r7("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.X1&&V.add("sdc",_.r7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),E.toString()):""};
_.K.isCollapsed=function(v,Q){return Q!==null?Q:this.isChatReplay()||v&&v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage?!0:v?v.liveChatRenderer?v.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.Y("live_chat_hide_premiere_replay_message")||v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.K.isHidden=function(v,Q,V){var E=Q&&Q.conversationBarRenderer&&Q.conversationBarRenderer.availabilityMessage,b=Q&&Q.liveChatRenderer&&Q.liveChatRenderer.showHideButton,F=Q&&Q.liveChatRenderer&&Q.liveChatRenderer.showButton;return V&&v&&!E&&!F||!V&&v&&!E&&!b?!0:Q&&Q.liveChatRenderer&&Q.liveChatRenderer.initialDisplayState?Q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.K.computeButtonOverride=function(v,Q){if(v&&Q)return{type:"outline"}};
_.K.setCollapsedState=function(v){_.y(v,_.JBZ)&&((this.isHiddenByUser=!!_.y(v,_.JBZ).collapsed)||_.mb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.K.forwardReduxActionToIframe=function(v){this.postToContentWindow({"yt-live-chat-forward-redux-action":v})};
_.K.onLoopRangeChange=function(v){this.showAboveScrim=!(v==null||!v.postId)};
_.K.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.K.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.K.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.K.sendDarkThemePostMessage=function(v){this.postToContentWindow({"yt-live-chat-set-dark-theme":v})};
_.K.onLiveChatBuyFlowCallback=function(v){this.postToContentWindow({"yt-live-chat-buy-flow-callback":v})};
_.K.handleKeyboardEvent=function(v){(0,_.gI.containsValue)(uFP,v.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:v.type,keyCode:v.keyCode}})};
_.K.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.K.postToContentWindow=function(v){if(this.isFrameReady)try{var Q=window.location.protocol+"//"+window.location.host,V;(V=this.chatframe)!=null&&V.contentWindow?this.chatframe.contentWindow.postMessage(v,Q):_.Iy(new _.xd("Tried posting a message to an iframe with no content window",v))}catch(E){_.ro(E)}};
_.K.shouldHideChatFrame=function(v){return v&&_.Y("hide_live_chat_button_when_collapsed")};
_.hr.Object.defineProperties(MU.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.Y("live_chat_overflow_hide_chat")||_.Y("web_watch_chat_hide_button_killswitch"))return _.Y("live_chat_overflow_hide_chat");var v,Q,V,E;return!!((v=this.data)==null?0:(Q=v.liveChatRenderer)==null?0:(V=Q.header)==null?0:(E=V.liveChatHeaderRenderer)==null?0:E.collapseButton)}}});
MU.prototype.collapsedChanged=MU.prototype.collapsedChanged;MU.prototype.urlChanged=MU.prototype.urlChanged;MU.prototype.dataChanged=MU.prototype.dataChanged;MU.prototype.onShowHideChat=MU.prototype.onShowHideChat;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],MU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],MU.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],MU.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],MU.prototype,"ytOpenPopupBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],MU.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],MU.prototype,"currentPageUrl",void 0);
_.W([_.q({computed:"computeBaseUrl(currentPageUrl,data)"}),_.X("design:type",Object)],MU.prototype,"baseUrl",void 0);_.W([_.q({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.X("design:type",String)],MU.prototype,"url",void 0);_.W([_.q(),_.X("design:type",Object)],MU.prototype,"isHiddenByUser",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.X("design:type",Object)],MU.prototype,"hidden",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.X("design:type",Boolean)],MU.prototype,"collapsed",void 0);_.W([_.q({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.X("design:type",Boolean)],MU.prototype,"hideChatFrame",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MU.prototype,"showAboveScrim",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MU.prototype,"watchNextGrid",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],MU.prototype,"modernButtons",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MU.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MU.prototype,"noBorder",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],MU.prototype,"roundBackground",void 0);
_.W([_.q({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.X("design:type",Object)],MU.prototype,"toggleButtonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],MU.prototype,"overflowHideChat",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MU.prototype,"forceDarkTheme",void 0);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],MU.prototype,"enableShowWithoutHideChatButton",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MU.prototype,"theaterWatchWhile",void 0);_.W([_.Z7("#chatframe"),_.X("design:type",HTMLIFrameElement)],MU.prototype,"chatframe",void 0);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MU.prototype,"onShowHideChat",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MU.prototype,"dataChanged",null);
_.W([_.ph("url"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MU.prototype,"urlChanged",null);_.W([_.ph("collapsed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MU.prototype,"collapsedChanged",null);_.W([_.J({is:"ytd-live-chat-frame",disableElementRegistration:!0})],MU);
_.B(MU,"ytd-live-chat-frame",function(){if(fWb!==void 0)return fWb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fWb=v},{mode:1});var Gvc;var Ol=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_modern_buttons");v.buttonOverrides={style:"call-to-action",type:"filled"};return v};
_.f(Ol,_.z);Ol.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=_.GA(this.data.backgroundColor)))};
Ol.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var v=this.getFormattedStringLoggingDirectives(this.data.headline);v&&this.rendererBehavior.logExplicitClick(v)}};
Ol.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var v=this.getFormattedStringLoggingDirectives(this.data.description);v&&this.rendererBehavior.logExplicitClick(v)}};
Ol.prototype.getFormattedStringLoggingDirectives=function(v){return v&&v.runs&&v.runs.length>0&&v.runs[0]&&v.runs[0].loggingDirectives?v.runs[0].loggingDirectives:null};
Ol.prototype.dataChanged=Ol.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ol.prototype,"rendererBehavior",void 0);_.W([_.M(HOl.YtMacroReplacementBehavior),_.X("design:type",Object)],Ol.prototype,"macroReplacementBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ol.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Ol.prototype,"navigationEndpoint",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Ol.prototype,"enableColors",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ol.prototype,"modern",void 0);_.W([_.q(),_.X("design:type",Object)],Ol.prototype,"buttonOverrides",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ol.prototype,"dataChanged",null);_.W([_.J({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Ol);
_.B(Ol,"ytd-action-basic-immersive-content-renderer",function(){if(Gvc!==void 0)return Gvc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Gvc=v},{mode:1});var CSn;var MxJ;var DA=function(){return _.z.apply(this,arguments)||this};
_.f(DA,_.z);DA.prototype.dataChanged=function(){var v;((v=this.data)==null?void 0:v.backgroundColor)!==void 0&&_.F6(this.hostElement,{"--bgu-color":_.GA(this.data.backgroundColor)})};
DA.prototype.onImageTileClick=function(){var v;((v=this.data)==null?0:v.navigationEndpoint)&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var Q;((Q=this.data)==null?0:Q.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.hr.Object.defineProperties(DA.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?void 0:v.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;if(((v=this.data)==null?void 0:(Q=v.detailsLine)==null?void 0:Q.texts)!=null&&((V=this.data)==null?void 0:V.detailsLine.texts.length)>0){var E;return(E=this.data)==null?void 0:E.detailsLine.texts.map(function(b){return b.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;if(((v=this.data)==null?void 0:(Q=v.optionalDetailsLine)==null?void 0:Q.texts)!=null&&((V=this.data)==null?void 0:V.optionalDetailsLine.texts.length)>0){var E;return(E=this.data)==null?void 0:E.optionalDetailsLine.texts.map(function(b){return b.text}).join("")}return null}}});
DA.prototype.dataChanged=DA.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],DA.prototype,"rendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DA.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DA.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.backgroundColor"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DA.prototype,"hasBackgroundColor",null);
_.W([_.O("data.objectFit"),_.X("design:type",Object),_.X("design:paramtypes",[])],DA.prototype,"getObjectFit",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.tileRenderingStyle"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DA.prototype,"hasTileMetadata",null);_.W([_.O("data.detailsLine"),_.X("design:type",Object),_.X("design:paramtypes",[])],DA.prototype,"getSecondaryDetails",null);
_.W([_.O("data.optionalDetailsLine"),_.X("design:type",Object),_.X("design:paramtypes",[])],DA.prototype,"getOptionalDetails",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DA.prototype,"dataChanged",null);_.W([_.J({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],DA);
_.B(DA,"ytd-image-tile-renderer",function(){if(MxJ!==void 0)return MxJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return MxJ=v},{mode:1});var Opj;var RU=function(){return _.z.apply(this,arguments)||this};
_.f(RU,_.z);RU.prototype.getOpenLinkIcon=function(){return _.Y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
RU.prototype.onSitelinkTap=function(){_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.Y("kevlar_command_handler_migration_killswitch"))_.Qk(this.hostElement,this.data.clickCommands,this.hostElement);else for(var v=_.L(this.data.clickCommands),Q=v.next();!Q.done;Q=v.next())this.ytComponentBehavior.resolveCommand(Q.value)};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],RU.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],RU.prototype,"rendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],RU.prototype,"data",void 0);_.W([_.J({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],RU);
_.B(RU,"ytd-sitelink-renderer",function(){if(Opj!==void 0)return Opj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Opj=v},{mode:1});var n8=function(){var v=_.z.apply(this,arguments)||this;v.paddingFix=_.Y("enable_ads_web_ep_buenos_aires_and_padding_fix");return v};
_.f(n8,_.z);n8.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"}}}};
n8.prototype.dataChanged=function(){var v=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;v.ytMacroReplacementBehavior.sendServiceRequestAction([Q])})};
n8.prototype.shouldHideFooter=function(v){return!(v&&_.Y("use_ads_engagement_panel_desktop_footer_cta"))};
_.hr.Object.defineProperties(n8.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.imageTileRenderers)===void 0||((Q=this.data)==null?void 0:Q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var E;return(E=_.y(V,axn))==null?void 0:E.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.imageTileRenderers)===void 0||((Q=this.data)==null?void 0:Q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var E;return((E=_.y(V,axn))==null?void 0:E.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
n8.prototype.dataChanged=n8.prototype.dataChanged;_.W([_.M(HOl.YtMacroReplacementBehavior),_.X("design:type",Object)],n8.prototype,"ytMacroReplacementBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],n8.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],n8.prototype,"paddingFix",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.imageTileRenderers"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],n8.prototype,"removeBorderFromImageTiles",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.imageTileRenderers"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],n8.prototype,"useFooteredMetadataRenderingStyle",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],n8.prototype,"dataChanged",null);_.W([_.J({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],n8);
_.B(n8,"ytd-action-engagement-panel-content-renderer",function(){if(CSn!==void 0)return CSn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return CSn=v},{mode:1});var DRq;var Rye=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;return _.P("ad-grid-card-image-full-metadata-view-model",{class:function(){var E;return((E=Q().interaction)==null?0:E.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},V)),
"aria-label":function(){var E,b;return(E=Q().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label}},_.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(E){return _.P(_.XA,{data:E.data,
customCommandResolver:V})}})),_.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.P(_.h,{cond:function(){return Q().headline},
then:function(E){return _.P(_.tD,{text:E,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.P(_.h,{cond:function(){return Q().detailsLine},
then:function(E){return _.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.P(_.Pw,{data:E},{adDetailsLineViewModel:function(b){return _.P(_.z$,{data:b.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.P(_.h,{cond:function(){return Q().secondaryDetailsLine},
then:function(E){return _.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.P(_.Pw,{data:E},{adDetailsLineViewModel:function(b){return _.P(_.z$,{data:b.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Cn");var nhc=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;return _.P("ad-grid-card-image-view-model",{class:function(){var E;return((E=Q().interaction)==null?0:E.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},V)),
"aria-label":function(){var E,b;return(E=Q().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label}},_.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(E){return _.P(_.XA,{data:E.data,
customCommandResolver:V})}}),_.P("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.P(_.Pw,{data:function(){return Q().adCardBadge}},{adCardBadgeViewModel:_.XvQ})))},"Dn");var lWf=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;return _.P("ad-grid-card-text-view-model",{class:function(){var E;return((E=Q().interaction)==null?0:E.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},V)),
"aria-label":function(){var E,b;return(E=Q().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label}},_.P("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.P(_.h,{cond:function(){return Q().title},
then:function(E){return _.P(_.tD,{text:E,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.P("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.P(_.xb,{each:function(){var E;
return((E=Q())==null?void 0:E.descriptions)||[]},
keyBy:"INDEX"},function(E){return _.P(_.tD,{text:E,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.P("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.P(_.Pw,{data:function(){return Q().moreInfoButton}},{adButtonViewModel:function(E){return _.P(_.Dr,{data:E.data,
customCommandResolver:V})}})))},"En");var q0d=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;var E=v.adGridCardCollectionStyle;return _.P("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(b){var F,t=(F=Q().interaction)==null?void 0:F.onFirstVisible;b&&t&&_.nx(t)},
showOption:_.Mg})),style:function(){return"grid-template-columns: repeat("+IQ5(E?E():Q().style)+", minmax(0, 1fr));"}},_.P(_.Pw,{data:function(){var b;
return(b=Q())==null?void 0:b.gridCards}},{adGridCardImageViewModel:function(b){return _.P(nhc,{data:b.data,
customCommandResolver:V})},
adGridCardImageFullMetadataViewModel:function(b){return _.P(Rye,{data:b.data,customCommandResolver:V})},
adGridCardTextViewModel:function(b){return _.P(lWf,{data:b.data,customCommandResolver:V})}}))},"Fn");_.ad(_.x(function(v){var Q=v.data;return _.P("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.ud(_.k0({visibilityCallback:function(V){var E,b=(E=Q().interaction)==null?void 0:E.onFirstVisible;V&&b&&_.nx(b)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},mAJ))},_.P("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.P(_.h,{cond:_.Ygo("(min-width: "+((0,_.oG)()+_.Jz)+"px)"),
then:function(){return _.P(_.Pw,{data:function(){return Q().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.P(q0d,{data:V.data,
customCommandResolver:mAJ})}})},
else:function(){return _.P(_.Pw,{data:function(){return Q().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.P(q0d,{data:V.data,
customCommandResolver:mAJ,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.P("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.P(_.Pw,{data:function(){return Q().adButton}},{adButtonViewModel:function(V){return _.P(_.Dr,{data:V.data,
customCommandResolver:mAJ})}})))},"Gn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;return _.P("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.ud(_.k0({visibilityCallback:function(V){var E,b=(E=Q().interaction)==null?void 0:E.onFirstVisible;V&&b&&_.nx(b)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},UAI))},_.P("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.P(_.Pw,{data:function(){if(_.Ygo("(min-width: "+((0,_.oG)()+_.Jz)+"px)")())var V=Q().adGridCardCollection;
else{V=Object.assign({},_.y(Q().adGridCardCollection,$Pl));var E;V.gridCards!==void 0&&((E=V.gridCards)==null?void 0:E.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 _.P(q0d,{data:V.data,
customCommandResolver:UAI})}})),_.P("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.P(_.Pw,{data:function(){return Q().adButton}},{adButtonViewModel:function(V){return _.P(_.Dr,{data:V.data,
customCommandResolver:UAI})}})))},"Hn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.pJ}});var ln=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return v};
_.f(ln,_.z);_.K=ln.prototype;_.K.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"}}}};
_.K.attached=function(){this.getDataFromPlayerAndRender()};
_.K.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.K.getDataFromPlayerAndRender=function(){var v=this,Q=_.aJ(this.hostElement);Q&&Q.getPlayerPromise().then(function(V){v.getCachedDataAndListen(V)})};
_.K.getCachedDataAndListen=function(v){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=v)};
_.K.resolveCachedActions=function(){var v=_.Q9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(v=v&&v())&&!_.gI.isEmpty(v)&&this.sendUpdateEngagementPanelAction(v);(v=(v=_.Q9("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&v())&&!_.gI.isEmpty(v)&&this.sendChangeEngagementPanelVisibilityAction(v);(v=(v=_.Q9("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&v())&&!_.gI.isEmpty(v)&&this.sendScrollToEngagementPanelCommand(v)};
_.K.sendUpdateEngagementPanelAction=function(v){var Q;_.mb(this.hostElement,"yt-update-engagement-panel-action",[(Q=_.gI.get(v,"action"))!=null?Q:v])};
_.K.sendChangeEngagementPanelVisibilityAction=function(v){_.mb(this.hostElement,"yt-change-engagement-panel-visibility-action",[v])};
_.K.sendScrollToEngagementPanelCommand=function(v){_.mb(this.hostElement,"yt-scroll-to-engagement-panel-command",[v])};
_.K.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.Y("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Iy(Error("ap"))};
ln.prototype.dataChanged=ln.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ln.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ln.prototype,"componentBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],ln.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ln.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],ln.prototype,"player",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ln.prototype,"dataChanged",null);_.W([_.J({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],ln);
_.B(ln,"ytd-ads-engagement-panel-content-renderer",function(){if(DRq!==void 0)return DRq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return DRq=v},{mode:1});var S09;var qU=function(){var v=_.z.apply(this,arguments)||this;v.player=null;v.JSC$23080_playerEvents=new Map;v.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return v};
_.f(qU,_.z);_.K=qU.prototype;_.K.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]]"}}}}}};
_.K.created=function(){this.player=null;this.JSC$23080_playerEvents=new Map;this.JSC$23080_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23080_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23080_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23080_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.K.attached=function(){var v=this,Q=_.aJ();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));Q&&Q.getPlayerPromise().then(function(V){v.setPlayer(V);v.set("isPageLoad",!1)})};
_.K.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23080_playerEvents);this.set("player",v);v&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$23080_playerEvents),v.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.K.onLoopRangeChange=function(v){var Q=_.ht().resolve(_.d$(_.oJ));if((!Q||Q.isOnWatch())&&this.hostElement.clientHeight){var V;!v&&((V=this.data)==null?0:V.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.K.onVideoProgress=function(v){var Q,V,E=((Q=this.player)==null?void 0:(V=Q.getPresentingPlayerType)==null?void 0:V.call(Q))===2;this.isAdPlaying!==E&&this.set("isAdPlaying",E);var b;if(!E&&(b=this.player)!=null&&b.getLoopRange()){V=this.player.getLoopRange();Q=V.startTimeMs;V=V.endTimeMs;E=this.player.getProgressState(1).seekableStart;var F;Q<E*1E3&&((F=this.data)==null?0:F.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
v=V<v*1E3;var t;((t=this.player)==null?0:t.getLoopRange())&&v&&this.player.seekTo(Q/1E3)}};
_.K.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.K.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.K.onYtDeleteClipEngagementPanelCommand=function(v){_.y(v,p59).command&&this.ytComponentBehavior.resolveCommand(_.y(v,p59).command)};
_.hr.Object.defineProperties(qU.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.u3("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],qU.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],qU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],qU.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qU.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],qU.prototype,"isAdPlaying",void 0);_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],qU.prototype,"isPageLoad",void 0);_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],qU.prototype,"isDarkTheme",void 0);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],qU.prototype,"voteCount",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],qU.prototype,"channelEndpoint",null);_.W([_.O("channelEndpoint"),_.X("design:type",Object),_.X("design:paramtypes",[])],qU.prototype,"channelHref",null);_.W([_.J({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],qU);
_.B(qU,"ytd-clip-attribution-renderer",function(){if(S09!==void 0)return S09;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return S09=v},{mode:1});var zy5;var So=function(){var v=_.z.apply(this,arguments)||this;v.player=null;v.JSC$23085_playerEvents=new Map;return v};
_.f(So,_.z);_.K=So.prototype;_.K.created=function(){this.player=null;this.JSC$23085_playerEvents=new Map;this.JSC$23085_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23085_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23085_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.K.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.K.attached=function(){var v=this,Q=_.aJ();Q&&Q.getPlayerPromise().then(function(V){v.setPlayer(V);v.set("isPageLoad",!1)})};
_.K.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23085_playerEvents);this.set("player",v);if(v){this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$23085_playerEvents);var Q;(v==null?void 0:(Q=v.getPresentingPlayerType)==null?void 0:Q.call(v))===2&&this.playerAdStartHandler()}};
_.K.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.K.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.K.onVideoProgress=function(){var v,Q,V=((v=this.player)==null?void 0:(Q=v.getPresentingPlayerType)==null?void 0:Q.call(v))===2;this.isAdPlaying!==V&&this.set("isAdPlaying",V)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],So.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],So.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],So.prototype,"isAdPlaying",void 0);
_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],So.prototype,"isPageLoad",void 0);_.W([_.J({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],So);
_.B(So,"ytd-clip-section-footer-renderer",function(){if(zy5!==void 0)return zy5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return zy5=v},{mode:1});var J8n;var NoE;var xRJ=function(){return _.z.apply(this,arguments)||this};
_.f(xRJ,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xRJ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xRJ.prototype,"data",void 0);_.W([_.J({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],xRJ);
_.B(xRJ,"ytd-clip-ad-state-renderer",function(){if(NoE!==void 0)return NoE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return NoE=v},{mode:1});var Bof;var zf=function(){var v=_.z.apply(this,arguments)||this;v.value="";v.valid=!1;v.userChangedValue=!1;v.disabled=!1;v.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return v};
_.f(zf,_.z);_.K=zf.prototype;_.K.detached=function(){this.userChangedValue=!1};
_.K.handleKeyDown=function(v){if(_.V2)var Q=13;else _.atZ&&_.E7?Q=13:Q=13;v.keyCode===Q&&v.preventDefault()};
_.K.handleInput=function(){var v=_.m9(this.hostElement).querySelector("#title");if(v){var Q=(v.value||"").replace(/\r|\n/g," ");this.set("value",Q);v.value=Q;this.valid=v.validate();this.userChangedValue=!0}};
_.K.handleBlur=function(){this.valid=_.m9(this.hostElement).querySelector("#title").validate()};
_.K.onValueChanged=function(){_.Hj(this.hostElement,"title-changed",{title:this.value})};
_.K.onValidChanged=function(){_.Hj(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.K.setInput=function(v,Q){var V=_.m9(this.hostElement).querySelector("#title");V&&(V.value=v,this.handleInput(),Q&&(V.invalid=!1,this.valid=!0))};
_.K.onClipCreationDisable=function(){this.set("disabled",!0)};
_.K.onClipCreationEnable=function(){this.set("disabled",!1)};
_.K.onClipCreationVisibilityChange=function(v){var Q=this;v.visible?requestAnimationFrame(function(){var V;((V=_.m9(Q.hostElement).querySelector("#title"))==null?void 0:V.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
zf.prototype.onValidChanged=zf.prototype.onValidChanged;zf.prototype.onValueChanged=zf.prototype.onValueChanged;zf.prototype.handleBlur=zf.prototype.handleBlur;zf.prototype.handleInput=zf.prototype.handleInput;zf.prototype.handleKeyDown=zf.prototype.handleKeyDown;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],zf.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],zf.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],zf.prototype,"value",void 0);_.W([_.q(),_.X("design:type",Object)],zf.prototype,"valid",void 0);_.W([_.q(),_.X("design:type",Object)],zf.prototype,"userChangedValue",void 0);_.W([_.q(),_.X("design:type",Object)],zf.prototype,"disabled",void 0);_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],zf.prototype,"handleKeyDown",null);
_.W([_.tM("input"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zf.prototype,"handleInput",null);_.W([_.tM("blur"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zf.prototype,"handleBlur",null);_.W([_.ph("value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zf.prototype,"onValueChanged",null);
_.W([_.ph("valid"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zf.prototype,"onValidChanged",null);_.W([_.J({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],zf);
_.B(zf,"ytd-clip-creation-text-input-renderer",function(){if(Bof!==void 0)return Bof;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Bof=v},{mode:1});var ghq;var syl;var u0f;var jyd;var Wtl;var Jp=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};v.pendingStoryboardImages_={};v.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];v.tickLabelInterval=30;v.mediumTickInterval=5;v.largeTickInterval=15;v.aboveRulerHeight=32;v.rulerHeight=50;v.smallTickHeight=4;v.mediumTickHeight=8;v.largeTickHeight=16;v.mediaListeners_=
{};return v};
_.f(Jp,_.z);_.K=Jp.prototype;_.K.attached=function(){var v=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(Q){Q=_.L(["screen and (min-resolution: "+Q+")","screen and (max-resolution: "+Q+")"]);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=window.matchMedia(V);E&&(v.mediaListeners_[V]=v.updatePixelRatio_.bind(v),E.addEventListener?E.addEventListener("change",v.mediaListeners_[V]):E.addListener?E.addListener(v.mediaListeners_[V]):delete v.mediaListeners_[V])}})};
_.K.detached=function(){this.setPlayer(null);for(var v=_.L(Object.keys(this.mediaListeners_)),Q=v.next();!Q.done;Q=v.next()){var V=Q.value;Q=this.mediaListeners_[V];(V=window.matchMedia(V))&&(V.removeEventListener?V.removeEventListener("change",Q):V.removeListener&&V.removeListener(Q))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.K.onVisibilityChangedAction_=function(v){var Q=this;v.visible&&!this.player_&&(v=_.aJ())&&v.getPlayerPromise().then(function(V){Q.setPlayer(V)})};
_.K.setPlayer=function(v){v&&this.set("player_",v)};
_.K.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.K.setUpCanvas_=function(){var v=this.rulerWidth,Q=this.devicePixelRatio_,V=this.visible;this.set("canvasReady_",!1);if(V&&Q!==0){V=this.aboveRulerHeight+this.rulerHeight;var E=_.m9(this.hostElement).querySelector("#ticks");E.width=v*Q;E.height=V*Q;E.style.width=v+"px";E.style.height=V+"px";E.getContext("2d").scale(Q,Q);this.set("canvasReady_",!0)}};
_.K.drawRuler_=function(v,Q,V,E,b,F,t,p,Z,d,w,A){v&&V&&Q&&(v=_.m9(this.hostElement).querySelector("#ticks"),Q=v.getContext("2d"),Q.clearRect(0,0,v.width,v.height),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.lineWidth=2,Q.beginPath(),Q.moveTo(0,this.aboveRulerHeight),Q.lineTo(v.width,this.aboveRulerHeight),Q.moveTo(0,v.height),Q.lineTo(v.width,v.height),Q.stroke(),this.drawRulerTicks_(v,F,b,E),this.drawStoryboardImages_(v,V,F,b,E),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
Q.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(t-F,E,!1),this.rulerHeight),V=this.timeToPixels_(p-F,E,!1),Q.fillRect(V,this.aboveRulerHeight,v.width-V,this.rulerHeight),this.drawSpeedLines_(v,F,A))};
_.K.drawRulerTicks_=function(v,Q,V,E){var b=v.getContext("2d");b.save();b.lineWidth=1;for(var F=Math.floor(Math.max(0,Q-this.tickLabelInterval));F<Q+V;F++){b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var t=(F-Q)*E;b.beginPath();b.moveTo(t,v.height);var p=this.smallTickHeight;F%this.largeTickInterval===0?p=this.largeTickHeight:F%this.mediumTickInterval===0&&(p=this.mediumTickHeight);b.lineTo(t,v.height-p);b.stroke();F%this.tickLabelInterval===0&&(b.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),b.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),b.fillText(nG(F),t+4,12),b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),b.moveTo(t,0),b.lineTo(t,this.aboveRulerHeight),b.stroke())}b.restore()};
_.K.percentToHex_=function(v){v=Math.round(v*255).toString(16);v.length<2&&(v="0"+v);return v};
_.K.drawSpeedLines_=function(v,Q,V){var E=v.getContext("2d");E.save();var b=Math.min(25,Math.abs(V)-15)/25,F=v.width*.3*b,t=v.width*-.3,p=v.width*1.3,Z=this.aboveRulerHeight;v=v.height;var d=Math.round(4*b),w=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");w.length<7&&(w="#"+w.substring(1,4).repeat(2));var A=this.percentToHex_(.5+b/2);A=w+A;w+="00";if(b>0)for(b=0;b<d;b++){var k=t+Math.random()*(p-t),T=Z+Math.random()*(v-Z),c=F+Q%F,C=E.createLinearGradient(k,T,k+c,T);
V<0?(C.addColorStop(0,A),C.addColorStop(.4,A),C.addColorStop(.9,w)):(C.addColorStop(.1,w),C.addColorStop(.6,A),C.addColorStop(1,A));E.strokeStyle=C;E.lineWidth=1;E.beginPath();E.moveTo(k,T);E.lineTo(k+c,T);E.stroke()}E.restore()};
_.K.getStoryboardForTime_=function(v,Q,V){V===void 0&&(V=Q.getNumberOfStoryboardLevels()-1);v=Q.getStoryboardFrameIndex(v,V);return Q.getStoryboardFrame(v,V)};
_.K.drawStoryboardImages_=function(v,Q,V,E,b){if(!this.disabled){v=v.getContext("2d");var F=this.getStoryboardForTime_(0,Q);if(F){var t=F.width/F.columns;F=F.height/F.rows;var p=t/F,Z=this.rulerHeight*p;Z=this.tickLabelInterval*(p<this.tickLabelInterval*b/this.rulerHeight?1/Math.floor(this.tickLabelInterval*b/Z):Math.round(Z/(this.tickLabelInterval*b)));var d=Z*b,w=this.rulerHeight,A=d/this.rulerHeight,k=Math.floor(Math.max(0,V-Z));for(k-=k%Z;k<V+E;k+=Z){var T=this.getStoryboardForTime_(k,Q),c=this.getPreloadedStoryboard_(T.url);
if(c){var C=(k-V)*b,R=this.aboveRulerHeight,l=T.column*t,S=T.row*F;if(p<A){var a=w/(d/p);T=t;a*=F;S+=(F-a)/2}else T=d/(w*p)*t,a=F,l+=(t-T)/2;v.drawImage(c,l,S,T,a,C,R,d,w)}else this.fetchStoryboardImage_(T)}}}};
_.K.getPreloadedStoryboard_=function(v){return this.storyboardImages_.find(function(Q){if(Q.src==v)return!0;var V=Q.src.indexOf(v);return V!=-1&&V==Q.src.length-v.length})};
_.K.fetchStoryboardImage_=function(v){var Q=this,V=this.getPreloadedStoryboard_(v.url),E=this.pendingStoryboardImages_[v.url];V||E!==void 0||(V=new Promise(function(b){var F=new Image(v.width,v.height);F.src=v.url;F.onload=function(){b(F)};
F.onerror=function(){b(null)}}),this.pendingStoryboardImages_[v.url]=V,V.then(function(b){b&&Q.push("storyboardImages_",b);
return b}).finally(function(){delete Q.pendingStoryboardImages_[v.url]}))};
_.K.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.K.timeToPixels_=function(v,Q,V){v*=Q;return V===void 0||V?v+"px":v};
_.K.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Jp.prototype.drawRuler_=Jp.prototype.drawRuler_;Jp.prototype.setUpCanvas_=Jp.prototype.setUpCanvas_;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Jp.prototype,"start",void 0);_.W([_.q({value:30}),_.X("design:type",Number)],Jp.prototype,"end",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],Jp.prototype,"visible",void 0);_.W([_.q(),_.X("design:type",Object)],Jp.prototype,"player_",void 0);_.W([_.q(),_.X("design:type",Number)],Jp.prototype,"tickSpacing",void 0);_.W([_.q(),_.X("design:type",Number)],Jp.prototype,"windowSizeSec",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Jp.prototype,"rulerWidth",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Jp.prototype,"rulerShift",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],Jp.prototype,"canvasReady_",void 0);_.W([_.q({value:function(){return[]}}),
_.X("design:type",Array)],Jp.prototype,"storyboardImages_",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jp.prototype,"disabled",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Jp.prototype,"forceRender_",void 0);_.W([_.q({value:1}),_.X("design:type",Number)],Jp.prototype,"devicePixelRatio_",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Jp.prototype,"windowSpeed",void 0);
_.W([_.ph("visible","devicePixelRatio_","rulerWidth"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jp.prototype,"setUpCanvas_",null);
_.W([_.ph("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.X("design:type",Function),_.X("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.X("design:returntype")],Jp.prototype,"drawRuler_",null);_.W([_.D7({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Jp);
_.B(Jp,"yt-clip-creation-scrubber-canvas",function(){if(Wtl===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);Wtl=v}v=Wtl;return v},
{mode:2});var ohd;var Xxf;var NU=function(){var v=_.z.apply(this,arguments)||this;v.start=0;v.end=30;v.visible=!1;v.draggingLeft_=!1;v.draggingRight_=!1;v.draggingRuler_=!1;v.draggingWindow_=!1;v.seekableStart=0;v.seekableEnd=0;v.rulerWidth_=0;v.rulerShift_=0;v.windowSlideSpeed=0;v.disabled=!1;v.initialized=!1;v.durationAccessibilityLabel="";v.activeLoopRange_=!1;v.rulerDragMouseStart_=0;v.rulerDragRulerStart_=0;v.rulerDragStartTime_=0;v.rulerDragEndTime_=0;v.dragMouseLastX_=0;v.scrollInterval_=null;v.scrubberVe_=null;v.boundHandlers_=
{};v.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return v};
_.f(NU,_.z);_.K=NU.prototype;
_.K.created=function(){var v=this;this.JSC$23098_playerEvents=new Map;this.JSC$23098_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23098_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23098_playerEvents.set("onStateChange",this.onStateChange_);var Q={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(Q).forEach(function(V){v.boundHandlers_[V]=Q[V].bind(v)})};
_.K.attached=function(){this.activeLoopRange_=!1;_.m9(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.m9(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Vw(156731)};
_.K.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.m9(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.m9(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.K.onVisibilityChangedAction_=function(v){var Q=this;v.visible&&!this.player_&&(v=_.aJ())&&v.getPlayerPromise().then(function(V){Q.setPlayer(V)})};
_.K.setPlayer=function(v){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23098_playerEvents);v&&(this.set("player_",v),this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$23098_playerEvents))};
_.K.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.K.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.K.beginHandleDrag_=function(v){this.disabled||(v.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=v.clientX,v.target===_.m9(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():v.target===_.m9(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.K.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.K.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.K.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.K.beginRulerDrag_=function(v){this.disabled||(v.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=v.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.K.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.K.beginWindowScroll_=function(){var v=this;this.scrollInterval_=setInterval(function(){var Q=v.windowSlideSpeed;if(Q=_.eIf(v.start,v.boundedRulerStartLimit_())?Q-.1:_.eIf(v.end,v.boundedRulerEndLimit_())?Q+.1:0){var V=v.capRulerOffset_(v.rulerShift_+Q);V==v.rulerShift_?Q=0:(v.set("rulerShift_",V),_.Hj(v.hostElement,"set-fixed-length-range",{start:v.start+Q,duration:v.end-v.start}))}v.set("windowSlideSpeed",Q)},33)};
_.K.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.K.endDrag_=function(){this.logClick();var v=void 0;this.draggingRight_?v=this.end-1:this.draggingLeft_&&(v=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,v);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.K.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.K.updateRulerSize_=function(){this.set("rulerWidth_",_.m9(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.K.handleMouseDrag_=function(v){v.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(v):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(v):this.draggingWindow_&&this.handleWindowDrag_(v))};
_.K.handleRulerDrag_=function(v){v=this.pixelsToTime_(v.clientX-this.rulerDragMouseStart_);v=this.capRulerOffset_(this.rulerDragRulerStart_-v);this.set("rulerShift_",v);var Q=this.rulerDragStartTime_-(this.rulerDragRulerStart_-v);_.Hj(this.hostElement,"set-fixed-length-range",{start:Q,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-v)-Q})};
_.K.handleWindowDrag_=function(v){var Q=v.clientX-this.dragMouseLastX_;this.dragMouseLastX_=v.clientX;v=this.pixelsToTime_(Q);_.Hj(this.hostElement,"set-fixed-length-range",{start:this.start+v,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.K.capRulerOffset_=function(v){var Q=this.seekableStart-this.pixelsToTime_(16),V=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(Q,v),V)};
_.K.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.K.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.K.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.K.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.K.handleWindowHandleDrag_=function(v){var Q=v.clientX-this.dragMouseLastX_;this.dragMouseLastX_=v.clientX;v=this.pixelsToTime_(Q);if(this.draggingLeft_){var V=this.start+v;var E=this.end}else this.draggingRight_&&(V=this.start,E=this.end+v);_.Hj(this.hostElement,"set-range",{start:V,end:E,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.K.onVideoProgress_=function(v){this.disabled||(v=this.timeToPixels_(v-this.rulerShift_,this.tickSpacing_),_.m9(this.hostElement).querySelector("#playhead").style.transform="translateX("+v+")")};
_.K.onClipCreationDisable_=function(){this.endDrag_()};
_.K.timeToPixels_=function(v,Q,V){v*=Q;return V===void 0||V?v+"px":v};
_.K.pixelsToTime_=function(v){return v/this.tickSpacing_};
_.K.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.K.centerRuler_=function(v,Q,V){this.set("rulerShift_",this.capRulerOffset_(v+(Q-v)/2-V/2))};
_.K.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.K.updateLoopRange_=function(v,Q,V,E,b,F,t){v&&(Q&&E&&!V?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(v.pauseVideo(),v.seekTo(b,!1,void 0,void 0,50)):this.draggingRight_?(v.pauseVideo(),v.seekTo(F-.1,!1,void 0,void 0,50)):(t!==void 0?v.seekTo(t,!0,void 0,void 0,50):(Q=v.getCurrentTime(),Q<b||Q>F?v.seekTo(b,!0,void 0,void 0,50):v.seekTo(Q,!0,void 0,void 0,50)),v.playVideo()),v.setLoopRange({startTimeMs:b*1E3,endTimeMs:F*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(v.getCurrentTime())):
this.activeLoopRange_&&(v.setLoopRange(null),this.activeLoopRange_=!1))};
_.K.updateHandles_=function(){_.m9(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.m9(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.K.updateRuler_=function(){var v=this.end,Q=this.start,V=this.draggableStartLimit_(),E=this.draggableEndLimit_();(Q<V-.001||v>E+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.K.computeDurationLabel_=function(v,Q){return v?v.replace("$clip_length",parseFloat(Q).toFixed(1)):""};
_.K.computeDuration_=function(v,Q){return this.isValidTime_(v)&&this.isValidTime_(Q)&&v<Q?Q-v:0};
_.K.isValidTime_=function(v){return isNaN(parseFloat(v))||v<0?!1:this.player_?v>=this.seekableStart&&v<=this.seekableEnd:!0};
_.K.computeWindowSizeSec_=function(v,Q,V){return Math.min((v||12E4)/1E3,V-Q)};
_.K.computeTickSpacing_=function(v,Q){return Q?Q/v:1};
_.K.onDragStateChanged_=function(){_.Hj(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.K.centerRangeOnTime_=function(v){var Q=this.duration;v=QSV(v-Q/2,Q,this.seekableStart,this.seekableEnd);_.Hj(this.hostElement,"set-fixed-length-range",{start:v.start,duration:v.end-v.start})};
_.K.nearlyLessThan_=function(v,Q,V){return v+(V===void 0?1E-6:V)<Q};
_.K.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var v=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(v,this.start)||this.nearlyLessThan_(this.end,v))&&this.centerRangeOnTime_(v)}};
_.K.onStateChange_=function(v){this.visible&&!this.disabled&&v==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.K.computeDragState_=function(v,Q,V,E){return v?"left":Q?"right":V?"ruler":E?"window":"none"};
_.K.logClick=function(){var v=_.Mo(),Q=_.CC();v&&Q&&this.scrubberVe_&&(_.Y("combine_ve_grafts")?_.za(_.tR(),this.scrubberVe_,Q):_.Np(v,Q,this.scrubberVe_),_.uI(v,this.scrubberVe_))};
NU.prototype.onDragStateChanged_=NU.prototype.onDragStateChanged_;NU.prototype.updateRuler_=NU.prototype.updateRuler_;NU.prototype.updateHandles_=NU.prototype.updateHandles_;NU.prototype.onUpdateLoopRange=NU.prototype.onUpdateLoopRange;NU.prototype.onInitializedChanged_=NU.prototype.onInitializedChanged_;NU.prototype.onVisibleChanged_=NU.prototype.onVisibleChanged_;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],NU.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",Object)],NU.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"start",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"end",void 0);_.W([_.q({computed:"computeDuration_(start, end)"}),_.X("design:type",Number)],NU.prototype,"duration",void 0);
_.W([_.q(),_.X("design:type",String)],NU.prototype,"lengthTemplate",void 0);_.W([_.q({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.X("design:type",String)],NU.prototype,"durationLabel",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"visible",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"player_",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"draggingLeft_",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"draggingRight_",void 0);
_.W([_.q(),_.X("design:type",Object)],NU.prototype,"draggingRuler_",void 0);_.W([_.q({value:!1}),_.X("design:type",Object)],NU.prototype,"draggingWindow_",void 0);_.W([_.q({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.X("design:type",Number)],NU.prototype,"tickSpacing_",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"seekableStart",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"seekableEnd",void 0);
_.W([_.q(),_.X("design:type",Number)],NU.prototype,"windowSizeMs",void 0);_.W([_.q({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.X("design:type",Number)],NU.prototype,"windowSizeSec_",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"rulerWidth_",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"rulerShift_",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"windowSlideSpeed",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],NU.prototype,"disabled",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"initialized",void 0);_.W([_.q(),_.X("design:type",Object)],NU.prototype,"durationAccessibilityLabel",void 0);_.W([_.q({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.X("design:type",String)],NU.prototype,"dragState",void 0);
_.W([_.ph("visible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NU.prototype,"onVisibleChanged_",null);_.W([_.ph("initialized"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NU.prototype,"onInitializedChanged_",null);_.W([_.ph("player_","visible","disabled","initialized","start","end"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NU.prototype,"onUpdateLoopRange",null);
_.W([_.ph("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NU.prototype,"updateHandles_",null);_.W([_.ph("start","end"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NU.prototype,"updateRuler_",null);
_.W([_.ph("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NU.prototype,"onDragStateChanged_",null);_.W([_.D7({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],NU);
_.B(NU,"yt-clip-creation-scrubber-view",function(){if(Xxf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ohd===void 0&&(ohd=document.createElement("template"));var E=ohd;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Xxf=v}v=Xxf;return v},{mode:2});var xB=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};v.startHighlightTimeout=0;v.endHighlightTimeout=0;return v};
_.f(xB,_.z);_.K=xB.prototype;_.K.attached=function(){var v=this;this.startInput.addEventListener("input",function(Q){return v.handleStartInput_(Q)});
this.endInput.addEventListener("input",function(Q){return v.handleEndInput_(Q)});
this.startInput.addEventListener("focusout",function(Q){return v.handleStartBlur_(Q)});
this.endInput.addEventListener("focusout",function(Q){return v.handleEndBlur_(Q)})};
_.K.setPlayer=function(v){this.set("player_",v)};
_.K.onSetFixedLengthRange_=function(v){var Q=v.detail;v=Q.start;var V=Q.duration,E=Q.startLimit;Q=Q.endLimit;E||(E=this.seekableStart_);Q||(Q=this.seekableEnd_);v=QSV(v,V,E,Q);this.start=v.start;this.end=v.end};
_.K.onSetRange_=function(v){var Q=v.detail;v=Q.start;var V=Q.end,E=Q.startLimit;Q=Q.endLimit;E||(E=this.seekableStart_);Q||(Q=this.seekableEnd_);if(v=Vgj(v,V,E,Q,this.minLengthSec,this.maxLengthSec))this.start=v.start,this.end=v.end};
_.K.updateInputs_=function(){var v=this.end,Q=this.start;this.startInput.focused||(this.startInput.value=nG(Q,!0));this.endInput.focused||(this.endInput.value=nG(v,!0))};
_.K.handleStartInput_=function(v){v=vbe(v.target.value);if(v===null)this.set("startValid",!1);else{var Q=this.end,V=Vgj(v,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("endWillUpdate",V.end!==Q),this.set("startValid",V.start===v)):this.set("startValid",!1)}};
_.K.handleEndInput_=function(v){v=vbe(v.target.value);if(v===null)this.set("endValid",!1);else{var Q=this.start,V=EbP(this.start,v,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("startWillUpdate",V.start!==Q),this.set("endValid",V.end===v)):this.set("endValid",!1)}};
_.K.handleStartBlur_=function(v){v=vbe(v.target.value);v===null?this.startInput.value=nG(this.start,!0):this.forceUpdateInputs_(Vgj(v,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.K.handleEndBlur_=function(v){v=vbe(v.target.value);v===null?this.endInput.value=nG(this.end,!0):this.forceUpdateInputs_(EbP(this.start,v,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.K.forceUpdateInputs_=function(v){v&&(this.start=v.start,this.end=v.end);this.startInput.value=nG(this.start,!0);this.endInput.value=nG(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.K.initializeClipRange_=function(){var v=this.seekableEnd_,Q=this.seekableStart_,V=this.visible_,E=this.player_;if(!E||!V||Q===null||!v)this.set("initialized",!1);else if(!this.initialized){var b=E.getCurrentTime(),F=this.getDefaultLengthSec_();V=E.getVideoData();var t=E.getPlayerState()==1,p=V.isLive;F=Math.min(F,v-Q);b=Math.max(0,b);v=p?EbP(b-F,b,Q,v,this.minLengthSec,this.maxLengthSec):t?QSV(b-F/2,F,Q,v):QSV(b,F,Q,v);this.start=v.start;this.end=v.end;this.set("initialized",!0);V.isLive&&E.seekTo(v.start);
this.startInput.value=nG(this.start,!0);this.endInput.value=nG(this.end,!0)}};
_.K.onStartChanged_=function(){var v=this;_.Hj(this.hostElement,"start-changed",{start:this.start});var Q;isNaN((Q=this.oldStart)!=null?Q:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){v.set("highlightStart",!1);v.startHighlightTimeout=0;v.oldStart=v.start},3E3))};
_.K.onEndChanged_=function(){var v=this;_.Hj(this.hostElement,"end-changed",{end:this.end});var Q;isNaN((Q=this.oldEnd)!=null?Q:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){v.set("highlightEnd",!1);v.endHighlightTimeout=0;v.oldEnd=v.end},3E3))};
_.K.onVisibilityChangedAction_=function(v){var Q=this;this.set("visible_",v.visible);this.visible_&&!this.player_&&(v=_.aJ())&&v.getPlayerPromise().then(function(V){Q.setPlayer(V)})};
_.K.computeMinLengthSec_=function(v){return v/1E3||5};
_.K.computeMaxLengthSec_=function(v){return v/1E3||60};
_.K.computeDefaultLengthSec_=function(v){return v/1E3};
_.K.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.K.computeSeekableStart_=function(v,Q){return v&&Q?v.getProgressState(1).seekableStart:0};
_.K.computeSeekableEnd_=function(v,Q){return v&&Q?v.getProgressState(1).seekableEnd:0};
_.K.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.K.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.K.onDragState_=function(v){this.set("highlightStart",v.detail.startChanging);this.set("highlightEnd",v.detail.endChanging)};
xB.prototype.onDragState_=xB.prototype.onDragState_;xB.prototype.onEndChanged_=xB.prototype.onEndChanged_;xB.prototype.onStartChanged_=xB.prototype.onStartChanged_;xB.prototype.initializeClipRange_=xB.prototype.initializeClipRange_;xB.prototype.updateInputs_=xB.prototype.updateInputs_;xB.prototype.onSetRange_=xB.prototype.onSetRange_;xB.prototype.onSetFixedLengthRange_=xB.prototype.onSetFixedLengthRange_;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],xB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xB.prototype,"data",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],xB.prototype,"start",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],xB.prototype,"startValid",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xB.prototype,"startWillUpdate",void 0);_.W([_.q({value:30}),_.X("design:type",Number)],xB.prototype,"end",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],xB.prototype,"endValid",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xB.prototype,"endWillUpdate",void 0);_.W([_.q({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.X("design:type",Number)],xB.prototype,"minLengthSec",void 0);
_.W([_.q({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.X("design:type",Number)],xB.prototype,"maxLengthSec",void 0);_.W([_.q({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.X("design:type",Number)],xB.prototype,"defaultLengthSec",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],xB.prototype,"visible_",void 0);_.W([_.q(),_.X("design:type",Object)],xB.prototype,"player_",void 0);
_.W([_.q({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.X("design:type",Number)],xB.prototype,"seekableStart_",void 0);_.W([_.q({computed:"computeSeekableEnd_(player_, visible_)"}),_.X("design:type",Number)],xB.prototype,"seekableEnd_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],xB.prototype,"initialized",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xB.prototype,"disabled",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xB.prototype,"highlightStart",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],xB.prototype,"highlightEnd",void 0);_.W([_.Z7("#start"),_.X("design:type",HTMLInputElement)],xB.prototype,"startInput",void 0);_.W([_.Z7("#end"),_.X("design:type",HTMLInputElement)],xB.prototype,"endInput",void 0);
_.W([_.tM("set-fixed-length-range"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xB.prototype,"onSetFixedLengthRange_",null);_.W([_.tM("set-range"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xB.prototype,"onSetRange_",null);_.W([_.ph("start","end"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xB.prototype,"updateInputs_",null);
_.W([_.ph("player_","visible_","seekableStart_","seekableEnd_"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xB.prototype,"initializeClipRange_",null);_.W([_.ph("start"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xB.prototype,"onStartChanged_",null);_.W([_.ph("end"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xB.prototype,"onEndChanged_",null);
_.W([_.tM("clips-drag-state"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xB.prototype,"onDragState_",null);_.W([_.D7({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],xB);
_.B(xB,"yt-clip-creation-scrubber-renderer",function(){if(jyd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;u0f===void 0&&(u0f=document.createElement("template"));var E=u0f;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);jyd=v}v=jyd;return v},{mode:2});var Bf=function(){var v=_.z.apply(this,arguments)||this;v.player_=null;v.JSC$23112_playerEvents=new Map;v.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return v};
_.f(Bf,_.z);_.K=Bf.prototype;_.K.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"}}}};
_.K.created=function(){this.JSC$23112_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23112_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23112_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23112_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.K.detached=function(){this.setPlayer(null)};
_.K.onVisibilityChangedAction_=function(v){var Q=this,V;if((V=this.data)==null?0:V.externalVideoId){var E;this.videoId=(E=this.data)==null?void 0:E.externalVideoId}this.getPlayer().then(function(b){if(v.visible)Q.returnTime=b.getCurrentTime(),Q.isAtLiveHead=b.getProgressState().isAtLiveHead;else{var F=Q.returnTime;Q.isAtLiveHead&&(F=Number.POSITIVE_INFINITY);b.seekTo(F,void 0,void 0,void 0,51)}})};
_.K.getPlayer=function(){var v=this;if(!this.player_){var Q=_.aJ();if(Q)return Q.getPlayerPromise().then(function(V){v.setPlayer(V);return V})}return Promise.resolve(this.player_)};
_.K.setPlayer=function(v){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23112_playerEvents);if(v){this.player_=v;var Q;((Q=this.data)==null?0:Q.externalVideoId)||this.set("videoId",v.getVideoData().video_id||"");var V;(v==null?void 0:(V=v.getPresentingPlayerType)==null?void 0:V.call(v))===2&&(this.set("isAdPlaying",!0),_.mb(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$23112_playerEvents)}};
_.K.ready=function(){_.m9(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.K.onTitleChanged_=function(v){this.set("titleValue",v.detail.title)};
_.K.onStartChanged_=function(v){this.set("start",v.detail.start)};
_.K.onEndChanged_=function(v){this.set("end",v.detail.end)};
_.K.onTitleValidChanged_=function(v){this.set("titleValid",v.detail.valid)};
_.K.onStartValidChanged_=function(v){this.set("startValid",v.detail.valid)};
_.K.onEndValidChanged_=function(v){this.set("endValid",v.detail.valid)};
_.K.onVideoDataChange_=function(){var v;if((v=this.data)==null||!v.externalVideoId){var Q;this.set("videoId",((Q=this.player_)==null?void 0:Q.getVideoData().video_id)||"")}};
_.K.computeFormValid_=function(v,Q,V,E){return!!(v&&Q&&V&&E)};
_.K.computeCancelButton_=function(v,Q,V){return v&&_.y(v,_.KH)?{buttonRenderer:Object.assign({},_.y(v,_.KH),{isDisabled:Q||V})}:null};
_.K.computeSubmitButton_=function(v,Q,V){return v&&_.y(v,_.KH)?{buttonRenderer:Object.assign({},_.y(v,_.KH),{command:void 0,isDisabled:!this.formValid||Q||V})}:null};
_.K.computeSubmitCommand_=function(v){return v||null};
_.K.onSubmit_=function(v){var Q=this;v.stopPropagation();v.preventDefault();this.submitCommand_&&(v={},v.comment_text=this.titleValue,v.clip_external_video_id=this.videoId,v.clip_offset_ms=parseInt(this.start*1E3,10),v.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.vp(this.hostElement,[this.submitCommand_,v]).then(function(){Q.set("isLoading_",!1)},function(){Q.set("isLoading_",!1)}))};
_.K.playerAdStartHandler_=function(){_.mb(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.K.playerAdEndHandler_=function(){_.mb(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.K.onVideoProgress_=function(){var v=this;this.getPlayer().then(function(Q){var V,E=(Q==null?void 0:(V=Q.getPresentingPlayerType)==null?void 0:V.call(Q))===2;v.isAdPlaying!==E&&(E?v.playerAdStartHandler_():v.playerAdEndHandler_())})};
Bf.prototype.onEndValidChanged_=Bf.prototype.onEndValidChanged_;Bf.prototype.onStartValidChanged_=Bf.prototype.onStartValidChanged_;Bf.prototype.onTitleValidChanged_=Bf.prototype.onTitleValidChanged_;Bf.prototype.onEndChanged_=Bf.prototype.onEndChanged_;Bf.prototype.onStartChanged_=Bf.prototype.onStartChanged_;Bf.prototype.onTitleChanged_=Bf.prototype.onTitleChanged_;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Bf.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",Object)],Bf.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Bf.prototype,"data",void 0);_.W([_.q({value:""}),_.X("design:type",String)],Bf.prototype,"titleValue",void 0);
_.W([_.q({value:!1}),_.X("design:type",Boolean)],Bf.prototype,"titleValid",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Bf.prototype,"start",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],Bf.prototype,"startValid",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Bf.prototype,"end",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],Bf.prototype,"endValid",void 0);_.W([_.q({value:""}),_.X("design:type",String)],Bf.prototype,"videoId",void 0);
_.W([_.q({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.X("design:type",Boolean)],Bf.prototype,"formValid",void 0);_.W([_.q({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.X("design:type",Object)],Bf.prototype,"submitButton_",void 0);_.W([_.q({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.X("design:type",Object)],Bf.prototype,"submitCommand_",void 0);
_.W([_.q({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.X("design:type",Object)],Bf.prototype,"cancelButton_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Bf.prototype,"isLoading_",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Bf.prototype,"isAdPlaying",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Bf.prototype,"returnTime",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Bf.prototype,"isAtLiveHead",void 0);
_.W([_.tM("title-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Bf.prototype,"onTitleChanged_",null);_.W([_.tM("start-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Bf.prototype,"onStartChanged_",null);_.W([_.tM("end-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Bf.prototype,"onEndChanged_",null);
_.W([_.tM("title-valid-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Bf.prototype,"onTitleValidChanged_",null);_.W([_.tM("start-valid-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Bf.prototype,"onStartValidChanged_",null);_.W([_.tM("end-valid-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Bf.prototype,"onEndValidChanged_",null);
_.W([_.D7({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Bf);
_.B(Bf,"yt-clip-creation-renderer",function(){if(syl===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ghq===void 0&&(ghq=document.createElement("template"));var E=ghq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);syl=v}v=syl;return v},{mode:2});var g6=function(){return _.z.apply(this,arguments)||this};
_.f(g6,_.z);g6.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"}}}};
g6.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(v){return v.hasOwnProperty("clipCreationRenderer")})&&_.mb(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
g6.prototype.onPanelContentVisibleChanged=g6.prototype.onPanelContentVisibleChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.F4.YtVisibilityBehavior),_.X("design:type",Object)],g6.prototype,"ytVisibilityBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],g6.prototype,"ytdReduxBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],g6.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],g6.prototype,"panelContentVisible",void 0);_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],g6.prototype,"onPanelContentVisibleChanged",null);_.W([_.J({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],g6);
_.B(g6,"ytd-clip-section-renderer",function(){if(J8n!==void 0)return J8n;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return J8n=v},{mode:1});var aWl;var sl=function(){return _.z.apply(this,arguments)||this};
_.f(sl,_.z);_.K=sl.prototype;
_.K.onKeyDown=function(v){if(this.snippetElements.length!==0&&(v=v.keyCode,v===38||v===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);v===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.O$(this.highlightedIndex,-1,this.snippetElements.length);v=this.snippetElements.length;var Q=this.highlightedIndex%v;this.highlightedIndex=Q*v<0?Q+v:Q;v=this.snippetElements[this.highlightedIndex];this.highlightSnippet(v);this.ensureVisible(v)}};
_.K.onKeyUp=function(v){var Q=this;obV(v)&&(v.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.XT.cancelJob(this.inputTimerId),this.inputTimerId=_.XT.addLowPriorityJob(function(){Q.typedValue&&(Q.fetchSnippets(Q.typedValue),Q.logInputGesture(Q.data))},1E3))};
_.K.onClick=function(v){(v=_.NI8(v.target,null,"snippet-item"))&&this.selectSnippet(v)};
_.K.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.K.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.K.ready=function(){var v=this;this.inputElement.addEventListener("focus",function(){v.snippetsWrapper.style.removeProperty("display")})};
_.K.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.K.getSourceTimelines=function(){if(!this.data)return[];var v=[];if(this.data.searchInVideoSources)for(var Q=_.L(this.data.searchInVideoSources),V=Q.next();!V.done;V=Q.next())V=V.value,V==="SEARCH_IN_VIDEO_SOURCE_ASR"?v.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):V==="SEARCH_IN_VIDEO_SOURCE_OCR"&&v.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return v};
_.K.fetchSnippets=function(v){var Q=_.mb(this.hostElement,"yt-get-current-video-id-action")[0],V=this.getSourceTimelines();v={getSearchInVideoCommand:{externalVideoId:Q,query:v!=null?v:"",sourceTimelines:V},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})};
_.K.filterSnippets=function(v,Q){var V=this;if(Q){this.filteredSnippets=(0,_.gI.unsafeClone)(v);var E=RegExp(_.OBT(Q),"i");this.filteredSnippets=this.filteredSnippets.filter(function(t){return E.test(V.ytRendererBehavior.getSimpleString(t.snippet))});
v=_.L(this.filteredSnippets);for(var b=v.next();!b.done;b=v.next()){b=b.value;var F=this.ytRendererBehavior.getSimpleString(b.snippet);b.snippet={runs:[{text:F.substring(0,F.toLowerCase().indexOf(Q))},{text:F.substring(F.toLowerCase().indexOf(Q),F.toLowerCase().indexOf(Q)+Q.length),bold:!0},{text:F.substring(F.toLowerCase().indexOf(Q)+Q.length,F.length)}]}}}else this.filteredSnippets=v};
_.K.onUpdateSearchInVideoResults=function(v){if(!(this.snippets.length>0)){var Q,V,E;if((E=(Q=_.y(v,bic))==null?void 0:(V=Q.results)==null?void 0:V.length)!=null&&E){var b;this.filteredSnippets=this.snippets=((b=_.y(v,bic))==null?void 0:b.results).map(function(F){var t,p,Z;return{startMs:F==null?void 0:(t=F.searchInVideoResultRenderer)==null?void 0:t.startMs,startTimeText:F==null?void 0:(p=F.searchInVideoResultRenderer)==null?void 0:p.startTimeText,snippet:F==null?void 0:(Z=F.searchInVideoResultRenderer)==
null?void 0:Z.snippet}})}}};
_.K.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};
_.K.highlightSnippet=function(v){v.classList.add("highlighted")};
_.K.removeSnippetHighlight=function(v){v.classList.remove("highlighted")};
_.K.selectSnippet=function(v){this.typedValue=String(v.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(v);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.K.ensureVisible=function(v){var Q=this.snippetsWrapper.scrollTop,V=Q+this.snippetsWrapper.clientHeight,E=v.offsetTop-this.snippetsWrapper.offsetTop;v=E+v.clientHeight;E<Q?this.snippetsWrapper.scrollTop-=Q-E:v>V&&(this.snippetsWrapper.scrollTop+=v-V)};
_.K.seekPlayer=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1){if(!v)return E.jumpTo(0);Q=Number(v.dataset.startOffset);return E.yield(_.rS().getPlayerPromise(),3)}V=E.yieldResult;V.seekTo(Q/1E3,!0);V.wakeUpControls();_.q1(E)})};
_.K.logInputGesture=function(v){var Q=_.Mo();Q&&(v==null?0:v.trackingParams)&&_.jP(Q,_.dE(v.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.K.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("typed-value-changed",this.typedValue))};
_.K.updateTypedValueFromBinding=function(v){this.typedValue=v.currentTarget.value};
sl.prototype.typedValueChangedForBinding=sl.prototype.typedValueChangedForBinding;sl.prototype.dataChanged=sl.prototype.dataChanged;sl.prototype.panelContentVisibleChanged=sl.prototype.panelContentVisibleChanged;sl.prototype.onClick=sl.prototype.onClick;sl.prototype.onKeyUp=sl.prototype.onKeyUp;sl.prototype.onKeyDown=sl.prototype.onKeyDown;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],sl.prototype,"data",void 0);_.W([_.q({value:[]}),_.X("design:type",Array)],sl.prototype,"snippets",void 0);_.W([_.q({value:[]}),_.X("design:type",Array)],sl.prototype,"filteredSnippets",void 0);_.W([_.q({value:[]}),_.X("design:type",Array)],sl.prototype,"snippetElements",void 0);
_.W([_.Z7("#siv-input"),_.X("design:type",HTMLElement)],sl.prototype,"inputElement",void 0);_.W([_.Z7("#siv-snippets-wrapper"),_.X("design:type",HTMLElement)],sl.prototype,"snippetsWrapper",void 0);_.W([_.q(),_.X("design:type",String)],sl.prototype,"typedValue",void 0);_.W([_.q({value:-1}),_.X("design:type",Number)],sl.prototype,"highlightedIndex",void 0);_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[_.Gl]),_.X("design:returntype")],sl.prototype,"onKeyDown",null);
_.W([_.tM("keyup"),_.X("design:type",Function),_.X("design:paramtypes",[_.Gl]),_.X("design:returntype")],sl.prototype,"onKeyUp",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],sl.prototype,"onClick",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],sl.prototype,"panelContentVisible",void 0);
_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sl.prototype,"panelContentVisibleChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sl.prototype,"dataChanged",null);_.W([_.ph("typedValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sl.prototype,"typedValueChangedForBinding",null);
_.W([_.J({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],sl);
_.B(sl,"ytd-search-in-video-renderer",function(){if(aWl!==void 0)return aWl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return aWl=v},{mode:1});var r8f;var un=function(){return _.z.apply(this,arguments)||this};
_.f(un,_.z);un.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
un.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]]"}}}}}};
un.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var v,Q,V,E,b=(Q=_.y((v=this.data)==null?void 0:v.onClickCommand,_.OBQ))==null?void 0:(V=Q.item)==null?void 0:(E=V.notificationTextRenderer)==null?void 0:E.successResponseText;b&&_.Zbr(this.hostElement,b)}};
_.hr.Object.defineProperties(un.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;return this.isProductPlaceholder&&((v=this.data)==null?void 0:(Q=v.hiddenProductOptions)==null?void 0:Q.showDropCountdown)&&!!((V=this.data)==null?0:(E=V.hiddenProductOptions)==null?0:E.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var v;return!this.isProductPlaceholder&&!((v=this.data)==null?0:v.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null?0:v.priceReplacementText)&&!((Q=this.data)==null||!Q.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],un.prototype,"componentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],un.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("isProductPlaceholder"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"useCenterLayoutContainer",null);_.W([_.q({computed:"computeButtonOverride(data)"}),_.X("design:type",Object)],un.prototype,"buttonOverride",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"isProductPlaceholder",null);
_.W([_.O("isProductPlaceholder"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"showDropCountdown",null);_.W([_.O("isProductPlaceholder","data"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"showBrandName",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"showPriceReplacementText",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"showPrice",null);
_.W([_.O("isProductPlaceholder"),_.X("design:type",Object),_.X("design:paramtypes",[])],un.prototype,"showMetadata",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],un);
_.B(un,"ytd-product-list-item-renderer",function(){if(r8f!==void 0)return r8f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return r8f=v},{mode:1});var $Re;var jo=function(){return _.z.apply(this,arguments)||this};
_.f(jo,_.z);jo.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
jo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
jo.prototype.panelContentVisibleChanged=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return v.playerApi?V.jumpTo(2):V.yield(_.rS().getPlayerPromise(),3);V.nextAddress!=2&&(v.playerApi=V.yieldResult);(Q=v.playerApi)==null||Q.productsInVideoVisibilityUpdated(!!v.panelContentVisible);_.q1(V)})};
jo.prototype.panelContentVisibleChanged=jo.prototype.panelContentVisibleChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],jo.prototype,"panelContentVisible",void 0);_.W([_.q(),_.X("design:type",Object)],jo.prototype,"data",void 0);
_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],jo.prototype,"panelContentVisibleChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],jo);
_.B(jo,"ytd-product-list-renderer",function(){if($Re!==void 0)return $Re;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return $Re=v},{mode:1});var IW5;var Wf=function(){var v=_.z.apply(this,arguments)||this;v.hideTimestamps=!!_.TA("hide-transcript-timestamps");v.currentCueIndex=-1;v.flatCues=[];v.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};v.TEST_ONLY={getFlatCues:function(){return v.flatCues}};
return v};
_.f(Wf,_.z);_.K=Wf.prototype;_.K.hideTimestampsChanged=function(){_.kN("hide-transcript-timestamps",this.hideTimestamps)};
_.K.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.K.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.K.dataChanged=function(){var v;if((v=this.data)!=null&&v.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;v=_.L(this.data.cueGroups);for(var Q=v.next();!Q.done;Q=v.next()){Q=_.L(_.y(Q.value,FFj).cues);for(var V=Q.next();!V.done;V=Q.next())this.flatCues.push(Number(_.y(V.value,KFl).startOffsetMs))}}};
_.K.onYtPlayerTimeChanged=function(v){if(!(v<0)){for(var Q=this.currentCueIndex,V=Q;;){var E=V>=0?this.flatCues[V]/1E3:-1;if(v+.5<E)--V;else if(E=V+1<this.flatCues.length?this.flatCues[V+1]/1E3:Infinity,v+.5>E)V+=1;else break}V!==Q&&(Q>=0&&((v=this.getCueElement(Q))&&v.classList.remove("active"),(Q=this.getCueGroupElement(Q))&&Q.classList.remove("active")),(Q=this.getCueElement(V))&&Q.classList.add("active"),(Q=this.getCueGroupElement(V))&&Q.classList.add("active"),this.currentCueIndex=V,this.isHovered||
this.scrollElementToTop(V))}};
_.K.scrollElementToTop=function(v){v=this.getCueElement(v>=3?v-3:0);this.hostElement.scrollTop=Math.min(v.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.K.getCueElement=function(v){return _.m9(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[v]+'"]')};
_.K.getCueGroupElement=function(v){return(v=this.getCueElement(v))&&v.parentElement?v.parentElement.parentElement:null};
_.K.onTap=function(v){var Q=_.jV(v);v.target.classList.contains("cue")&&this.seekCueElement(Q)};
_.K.onKeyPress=function(v){v.keyCode==13&&(v=_.NI8(v.target,null,"cue"))&&this.seekCueElement(v)};
_.K.seekCueElement=function(v){v=Number(v.getAttribute("start-offset"));_.mb(this.hostElement,"yt-transcript-player-seek",[v/1E3])};
_.K.onMouseEnter=function(){this.isHovered=!0};
_.K.onMouseLeave=function(){this.isHovered=!1};
Wf.prototype.onMouseLeave=Wf.prototype.onMouseLeave;Wf.prototype.onMouseEnter=Wf.prototype.onMouseEnter;Wf.prototype.onKeyPress=Wf.prototype.onKeyPress;Wf.prototype.onTap=Wf.prototype.onTap;Wf.prototype.dataChanged=Wf.prototype.dataChanged;Wf.prototype.hideTimestampsChanged=Wf.prototype.hideTimestampsChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Wf.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Wf.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Wf.prototype,"hideTimestamps",void 0);_.W([_.q(),_.X("design:type",Boolean)],Wf.prototype,"isHovered",void 0);_.W([_.ph("hideTimestamps"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wf.prototype,"hideTimestampsChanged",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wf.prototype,"dataChanged",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Wf.prototype,"onTap",null);_.W([_.tM("keypress"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Wf.prototype,"onKeyPress",null);
_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wf.prototype,"onMouseEnter",null);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wf.prototype,"onMouseLeave",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Wf);
_.B(Wf,"ytd-transcript-body-renderer",function(){if(IW5!==void 0)return IW5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return IW5=v},{mode:1});var Hpe;var oU=function(){var v=_.z.apply(this,arguments)||this;v.darkerPanels=_.Y("web_watch_darker_panels");return v};
_.f(oU,_.z);oU.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],oU.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],oU.prototype,"darkerPanels",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],oU);
_.B(oU,"ytd-transcript-footer-renderer",function(){if(Hpe!==void 0)return Hpe;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Hpe=v},{mode:1});var mRl;var URq;var Xj=function(){var v=_.z.apply(this,arguments)||this;v.systemIcons=_.Y("kevlar_system_icons");v.showClearButton=!1;return v};
_.f(Xj,_.z);_.K=Xj.prototype;_.K.handleInput=function(v){var Q=this;v.target.value.length?_.Nf(this,"ytdTranscriptSearchBoxSearch",function(){Q.emitSearchEvent(v)},500):(_.cb9(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=v.target.value.length>0};
_.K.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.K.handleClick=function(){var v,Q=(v=this.data)==null?void 0:v.trackingParams;Q&&_.x_(_.tR(),Q)};
_.K.handleClear=function(){_.cb9(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var v,Q,V=(Q=_.y((v=this.data)==null?void 0:v.clearButton,_.KH))==null?void 0:Q.trackingParams;V&&_.x_(_.tR(),V);this.clear()};
_.K.emitSearchEvent=function(v){_.Hj(this.hostElement,"yt-transcript-search-box-search",{query:v.target.value});var Q,V;(v=(V=_.y((Q=this.data)==null?void 0:Q.searchButton,_.KH))==null?void 0:V.trackingParams)&&_.x_(_.tR(),v)};
_.K.emitClearEvent=function(){_.Hj(this.hostElement,"yt-transcript-search-box-clear")};
_.hr.Object.defineProperties(Xj.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xj.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Xj.prototype,"systemIcons",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Xj);
_.B(Xj,"ytd-transcript-search-box-renderer",function(){if(URq!==void 0)return URq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return URq=v},{mode:1});var v05;var Qcd;var aU=function(){return _.z.apply(this,arguments)||this};
_.f(aU,_.z);aU.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var v,Q;this.sectionHeaderAriaLabel=(v=this.data)==null?void 0:(Q=v.accessibility)==null?void 0:Q.accessibilityData.label}};
aU.prototype.fireSelectedEvent=function(v){_.Hj(this.hostElement,"ytd-transcript-section-header",{startMs:v})};
aU.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
aU.prototype.handleKeyPress=function(v){this.data&&v.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.hr.Object.defineProperties(aU.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.data)==null?void 0:v.enableTappableTranscriptHeader)!=null?Q:!1}}});
aU.prototype.dataChanged=aU.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],aU.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],aU.prototype,"sectionHeaderAriaLabel",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],aU.prototype,"enableTappableTranscriptHeader",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],aU.prototype,"dataChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],aU);
_.B(aU,"ytd-transcript-section-header-renderer",function(){if(Qcd!==void 0)return Qcd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Qcd=v},{mode:1});var VzJ;var E0I;var r6=function(){var v=_.z.apply(this,arguments)||this;v.isEditMode=!1;v.touchCaptionsEnabled=!1;v.deleteCaptionCorrectionPopupCommand=null;v.voteCaptionCorrectionPopupCommand=null;v.roundedContainer=!0;v.mouseOver=!1;v.textChanged=!1;v.messages={suggest_correction:_.Lt("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Lt("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Lt("submit_correction",void 0,"Submit for review"),cancel_correction:_.Lt("cancel_correction",
void 0,"Cancel"),replay_segment:_.Lt("replay_segment",void 0,"Re-play segment"),delete_correction:_.Lt("delete_correction",void 0,"Delete correction")};v.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return v};
_.f(r6,_.z);_.K=r6.prototype;_.K.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)};
_.K.handleDelete=function(v){if(this.deleteCaptionCorrectionPopupCommand){var Q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);Q&&this.ytdOpenPopupBehavior.openPopup(Q);v.stopPropagation()}};
_.K.handleSubmit=function(v){if(this.data&&this.data.submitCaptionCorrectionCommand&&(v.stopPropagation(),this.textChanged)){var Q;v=(Q=_.y(this.data.submitCaptionCorrectionCommand,_.SsN))==null?void 0:Q.params;Q=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:v,correctionText:String(this.ironTextAreaElement.value),originalText:_.j0(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(Q);this.isEditMode=!1}};
_.K.handleUpdateSegmentText=function(v){(v=_.y(v,ctq))&&v.targetId&&this.data&&v.targetId===this.data.targetId&&(v.userCorrection&&(this.editedText=v.userCorrection),v.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.j0(this.data.snippet)),v.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=v.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=v.voteCaptionCorrectionPopupCommand?
v.voteCaptionCorrectionPopupCommand:null,v.accessibility&&(this.segmentAriaLabel=v.accessibility.accessibilityData.label))};
_.K.handleCancel=function(v){this.isEditMode=!1;v.stopPropagation();this.logClientVe(159409)};
_.K.handleEditSegmentCommand=function(v){(v=_.y(v,ytI))&&v.targetId&&this.data&&v.targetId===this.data.targetId&&this.handleEdit()};
_.K.handleEditButtonClick=function(v){this.data&&(this.handleEdit(),v.stopPropagation())};
_.K.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var v;(v=this.ironTextAreaElement.textarea)==null||v.focus();this.logClientVe(159407)}};
_.K.handleMouseEnter=function(){this.mouseOver=!0};
_.K.handleMouseLeave=function(){this.mouseOver=!1};
_.K.handleReplay=function(v){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),v.stopPropagation(),this.logClientVe(159408))};
_.K.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()))};
_.K.handleKeypress=function(v){this.data&&(this.isEditMode?v.stopPropagation():this.isEnterPress(v)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(v)&&this.logClientVe(138758))};
_.K.handleTextboxClick=function(v){v.stopPropagation()};
_.K.handleTextboxKeydown=function(v){this.isControlEnterPress(v)?this.handleSubmit(v):v.key==="Escape"&&this.handleCancel(v)};
_.K.handleTextboxKeyup=function(){this.textChanged=_.j0(this.latestText)!==String(this.ironTextAreaElement.value)};
_.K.fireSelectedEvent=function(v){_.Hj(this.hostElement,"yt-transcript-segment-selected",{startMs:v})};
_.K.fireReplayEvent=function(v,Q){_.Hj(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(v-100,0),endMs:Q})};
_.K.fireEditEvent=function(v,Q){_.Hj(this.hostElement,"yt-transcript-segment-edit",{startMs:v,endMs:Q})};
_.K.isEnterPress=function(v){return v.key==="Enter"||v.code==="Enter"||v.code==="NumpadEnter"||v.keyCode===13?!0:!1};
_.K.isControlEnterPress=function(v){var Q=v.key==="Enter"||v.code==="Enter"||v.code==="NumpadEnter"||v.keyCode===13;return(v.ctrlKey||v.metaKey)&&Q};
_.K.isCopyPress=function(v){var Q=v.ctrlKey;return v.key==="c"&&Q};
_.K.logClick=function(){var v,Q=(v=this.data)==null?void 0:v.trackingParams;Q&&_.x_(_.tR(),Q)};
_.K.logClientVe=function(v){_.N_(_.tR(),_.Vw(v))};
_.hr.Object.defineProperties(r6.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}}});
r6.prototype.handleMouseLeave=r6.prototype.handleMouseLeave;r6.prototype.handleMouseEnter=r6.prototype.handleMouseEnter;r6.prototype.dataChanged=r6.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],r6.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],r6.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],r6.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r6.prototype,"isEditMode",void 0);_.W([_.q(),_.X("design:type",Object)],r6.prototype,"touchCaptionsEnabled",void 0);_.W([_.q(),_.X("design:type",Object)],r6.prototype,"editedText",void 0);_.W([_.q(),_.X("design:type",Object)],r6.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.W([_.q(),_.X("design:type",Object)],r6.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.W([_.q(),_.X("design:type",String)],r6.prototype,"segmentAriaLabel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r6.prototype,"roundedContainer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r6.prototype,"mouseOver",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],r6.prototype,"textChanged",void 0);_.W([_.q(),_.X("design:type",Object)],r6.prototype,"messages",void 0);
_.W([_.Z7("#suggestion"),_.X("design:type",Object)],r6.prototype,"ironTextAreaElement",void 0);_.W([_.O("data","editedText"),_.X("design:type",Object),_.X("design:paramtypes",[])],r6.prototype,"latestText",null);_.W([_.O("touchCaptionsEnabled","isEditMode"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],r6.prototype,"enableEditButton",null);
_.W([_.O("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],r6.prototype,"enableUndoButton",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r6.prototype,"dataChanged",null);_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r6.prototype,"handleMouseEnter",null);
_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],r6.prototype,"handleMouseLeave",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],r6);
_.B(r6,"ytd-transcript-segment-renderer",function(){if(E0I!==void 0)return E0I;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return E0I=v},{mode:1});var $B=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};v.isError=!1;v.darkerPanels=_.Y("web_watch_darker_panels");v.useParentMaxHeight=_.Y("web_watch_transscript_use_parent_max_height");v.segmentOffsets=[];v.segmentIndex=-1;return v};
_.f($B,_.z);_.K=$B.prototype;_.K.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"}}}}};
_.K.segmentsChanged=function(){this.updateOffsets()};
_.K.onYtPlayerTimeChanged=function(v){for(var Q=this.segmentIndex,V=Q;;){if(V>=0){var E=this.segmentOffsets[V].start;var b=this.segmentOffsets[V].isAutoScrollable}else E=-1,b=!0;var F=v+.5;if(!b){E=V+1<this.segmentOffsets.length?this.segmentOffsets[V+1].start:Infinity;if(F>=E){V+=1;continue}V=-1;break}if(F<E)E=V-1>=0&&this.segmentOffsets[V-1].isAutoScrollable,b=V===0||E?1:2,V-=b;else if(b=V+1<this.segmentOffsets.length&&this.segmentOffsets[V+1].isAutoScrollable?1:2,E=V+b<this.segmentOffsets.length?
this.segmentOffsets[V+b].start:Infinity,F>E)V+=b;else{if(V<0)break;V<this.segmentOffsets.length&&F>this.segmentOffsets[V].end&&(V=-1);break}}if(Q!==V){if(Q>=0){var t;(t=this.getSegmentElement(Q))==null||t.classList.remove("active")}this.segmentIndex=V;if(!(V<0)){var p;(p=this.getSegmentElement(V))==null||p.classList.add("active");this.isHovered||this.scrollElementToTop(V)}}};
_.K.handleSegmentEdit=function(v){v.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=v.target,_.mb(this.hostElement,"yt-transcript-player-edit",[v.detail.startMs/1E3,v.detail.endMs/1E3]))};
_.K.handleSegmentSelected=function(v){_.mb(this.hostElement,"yt-transcript-player-seek",[v.detail.startMs/1E3])};
_.K.handleSegmentReplay=function(v){_.mb(this.hostElement,"yt-transcript-player-replay",[v.detail.startMs/1E3,v.detail.endMs/1E3])};
_.K.handleSectionHeaderSelected=function(v){_.mb(this.hostElement,"yt-transcript-player-seek",[v.detail.startMs/1E3])};
_.K.onMouseEnter=function(){this.isHovered=!0};
_.K.onMouseLeave=function(){this.isHovered=!1};
_.K.onRetryButtonClick=function(){_.Hj(this.hostElement,"transcript-retry-button-click")};
_.K.getSegmentElement=function(v){return _.m9(this.hostElement).querySelector(":nth-child("+(v+1)+")")};
_.K.scrollElementToTop=function(v){v=this.getSegmentElement(v>=2?v-2:0);this.hostElement.scrollTop=Math.min(v.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.K.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(v){var Q,V=(Q=v.transcriptSegmentRenderer)!=null?Q:v.transcriptSectionHeaderRenderer;return{start:Number(V.startMs)/1E3,end:Number(V.endMs)/1E3,isAutoScrollable:v.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.K.clearHighlightedSegments=function(){var v=_.m9(this.hostElement);v=_.L(v.querySelectorAll("ytd-transcript-segment-renderer"));for(var Q=v.next();!Q.done;Q=v.next())Q.value.classList.remove("active")};
_.hr.Object.defineProperties($B.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.searchResultSegments)||((Q=this.data)==null?void 0:Q.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
$B.prototype.onMouseLeave=$B.prototype.onMouseLeave;$B.prototype.onMouseEnter=$B.prototype.onMouseEnter;$B.prototype.handleSectionHeaderSelected=$B.prototype.handleSectionHeaderSelected;$B.prototype.handleSegmentReplay=$B.prototype.handleSegmentReplay;$B.prototype.handleSegmentSelected=$B.prototype.handleSegmentSelected;$B.prototype.handleSegmentEdit=$B.prototype.handleSegmentEdit;$B.prototype.segmentsChanged=$B.prototype.segmentsChanged;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],$B.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$B.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],$B.prototype,"isError",void 0);
_.W([_.q(),_.X("design:type",Object)],$B.prototype,"noResultLabel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$B.prototype,"darkerPanels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$B.prototype,"useParentMaxHeight",void 0);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],$B.prototype,"segments",null);
_.W([_.O("segments","noResultLabel"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$B.prototype,"displayNoResults",null);_.W([_.ph("segments"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$B.prototype,"segmentsChanged",null);_.W([_.tM("yt-transcript-segment-edit"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],$B.prototype,"handleSegmentEdit",null);
_.W([_.tM("yt-transcript-segment-selected"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],$B.prototype,"handleSegmentSelected",null);_.W([_.tM("yt-transcript-segment-replay"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],$B.prototype,"handleSegmentReplay",null);
_.W([_.tM("ytd-transcript-section-header"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],$B.prototype,"handleSectionHeaderSelected",null);_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$B.prototype,"onMouseEnter",null);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$B.prototype,"onMouseLeave",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],$B);
_.B($B,"ytd-transcript-segment-list-renderer",function(){if(VzJ!==void 0)return VzJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return VzJ=v},{mode:1});var IU=function(){var v=_.z.apply(this,arguments)||this;v.hideTimestamps=!!_.TA("hide-transcript-timestamps");v.isLoadingTranscripts=!1;v.darkerPanels=_.Y("web_watch_darker_panels");v.isError=!1;v.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return v};
_.f(IU,_.z);_.K=IU.prototype;_.K.headerChanged=function(){var v,Q;this.baseGetTranscriptsCommand=(Q=_.y((v=this.data)==null?void 0:v.header,f9e))==null?void 0:Q.onTextChangeCommand};
_.K.bodyChanged=function(){var v=this.getBodyRenderer();v&&(v.initialSegments&&(this.initialTranscriptsRenderer=v),v.noResultLabel&&(this.noResultLabel=v.noResultLabel),v.retryLabel&&(this.retryLabel=v.retryLabel))};
_.K.detached=function(){this.clearSearchBoxText()};
_.K.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.K.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"}}}};
_.K.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.K.fireSearch=function(v){var Q=this;if(v){var V=v.detail.query;if(this.baseGetTranscriptsCommand){var E;v=(E=_.y(this.baseGetTranscriptsCommand,_.lbA))==null?void 0:E.params;var b;E=_.y((b=this.data)==null?void 0:b.footer,iiV);var F;if((b=(F=_.y(E==null?void 0:E.languageMenu,T$d))==null?void 0:F.subMenuItems)&&b.length>0&&(F=b.find(function(Z){return Z.selected}))){var t,p;
v=(t=F.continuation)==null?void 0:(p=t.reloadContinuationData)==null?void 0:p.continuation}t=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:v,searchQuery:V}});this.ytComponentBehavior.resolveCommand(t,{commandController:{onServerError:function(){Q.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});gbc(this.ytContinuationHandlerBehavior,function(){return V===Q.getCurrentSearchBoxText()})}}};
_.K.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.K.onRetryButtonClick=function(){this.isError=!1;var v={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:v}))};
_.K.hideTimestampsChanged=function(){_.kN("hide-transcript-timestamps",this.hideTimestamps)};
_.K.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.K.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.K.handleSignalActionCopyTranscript=function(){var v=this,Q=this.getBodyRenderer();Q&&(Q=((Q==null?void 0:Q.searchResultSegments)||(Q==null?void 0:Q.initialSegments)||[]).map(function(V){return _.y(V,CvV)}).filter(function(V){return!!V}).map(function(V){return{snippet:V.snippet||{runs:[{text:""}]},
startTimeText:V.startTimeText||{simpleText:""}}}).map(function(V){var E=(V.snippet.runs||[]).reduce(function(b,F){return b+F.text},"");
return v.hideTimestamps?E:V.startTimeText.simpleText+" "+E}).join("\n"),this.copyToClipboard(Q))};
_.K.copyToClipboard=function(v){navigator.clipboard&&navigator.clipboard.writeText(v)};
_.K.getCurrentSearchBoxText=function(){var v;return(v=this.searchBox)==null?void 0:v.value};
_.K.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.K.getBodyRenderer=function(){var v;return _.y((v=this.data)==null?void 0:v.body,G_l)};
_.K.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.hr.Object.defineProperties(IU.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
IU.prototype.hideTimestampsChanged=IU.prototype.hideTimestampsChanged;IU.prototype.searchCleared=IU.prototype.searchCleared;IU.prototype.fireSearch=IU.prototype.fireSearch;IU.prototype.onReloadContinuationFinish=IU.prototype.onReloadContinuationFinish;IU.prototype.bodyChanged=IU.prototype.bodyChanged;IU.prototype.headerChanged=IU.prototype.headerChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],IU.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],IU.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],IU.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],IU.prototype,"hideTimestamps",void 0);
_.W([_.q(),_.X("design:type",Object)],IU.prototype,"isLoadingTranscripts",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],IU.prototype,"darkerPanels",void 0);_.W([_.q(),_.X("design:type",Object)],IU.prototype,"isError",void 0);_.W([_.ph("data.header"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IU.prototype,"headerChanged",null);
_.W([_.wg("data.body"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IU.prototype,"bodyChanged",null);_.W([_.tM("yt-reload-continuation-finish"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IU.prototype,"onReloadContinuationFinish",null);_.W([_.tM("yt-transcript-search-box-search"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],IU.prototype,"fireSearch",null);
_.W([_.tM("yt-transcript-search-box-clear"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IU.prototype,"searchCleared",null);_.W([_.ph("hideTimestamps"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IU.prototype,"hideTimestampsChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],IU);
_.B(IU,"ytd-transcript-search-panel-renderer",function(){if(v05!==void 0)return v05;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return v05=v},{mode:1});var Hf=function(){var v=_.z.apply(this,arguments)||this;v.player=null;v.playerPollJobId=0;return v};
_.f(Hf,_.z);_.K=Hf.prototype;_.K.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.K.onLoadReloadContinuation=function(v){_.Y("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:v.target.data.continuation}}):(v={clickTrackingParams:v.target.data.clickTrackingParams,getTranscriptEndpoint:{params:v.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}}))};
_.K.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"}}}};
_.K.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.K.attached=function(){this.updatePlayerListening()};
_.K.detached=function(){this.updatePlayerListening()};
_.K.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.K.startPlayerListening=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return(Q=_.aJ())?V.yield(Q.getPlayerPromise(),2):V.return();v.player=V.yieldResult;v.playerPollJobId=_.XT.addLowPriorityJob(function(){v.getPlayerVideoProgress()},1E3);
v.player.addEventListener("onCueRangeEnter",function(E){v.onCueRangeEnter(E)});
v.player.addEventListener("onCueRangeExit",function(E){v.onCueRangeExit(E)});
v.player.addEventListener("onStateChange",function(E){v.onPlayerStateChange(E)});
v.player.addEventListener("SEEK_TO",function(E){v.onPlayerSeek(E)});
_.q1(V)})};
_.K.getPlayerVideoProgress=function(){var v=this;_.XT.cancelJob(this.playerPollJobId);if(this.player){var Q=this.player.getCurrentTime();_.mb(this.hostElement,"yt-player-time-changed",[Q])}this.playerPollJobId=_.XT.addLowPriorityJob(function(){v.getPlayerVideoProgress()},1E3)};
_.K.stopPlayerListening=function(){this.player=null;_.XT.cancelJob(this.playerPollJobId)};
_.K.onPlayerStateChange=function(v){v===2&&this.removePendingCue()};
_.K.onPlayerSeek=function(v){var Q;if(Q=this.pendingReplayCueId)Q=this.pendingReplayCueId,Q=v===(_.Y("web_transcript_cue_id_killswitch")?Number(Q):Number(Q.split("_")[1]));Q||this.removePendingCue()};
_.K.onCueRangeEnter=function(v){FXP(v)&&(this.pendingReplayCueId=v)};
_.K.onCueRangeExit=function(v){FXP(v)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.K.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.K.onYtTranscriptPlayerSeek=function(v){this.player&&this.player.seekTo(v,!0)};
_.K.onYtTranscriptPlayerReplay=function(v,Q){this.player&&(this.player.addCueRange(bUc(v),v,Q),this.player.seekTo(v,!0),this.player.playVideo())};
_.K.onYtTranscriptPlayerEdit=function(v,Q){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(bUc(v),v,Q),this.player.seekTo(v,!0))};
Hf.prototype.onLoadReloadContinuation=Hf.prototype.onLoadReloadContinuation;Hf.prototype.panelContentVisibleChanged=Hf.prototype.panelContentVisibleChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Hf.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Hf.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Hf.prototype,"panelContentVisible",void 0);_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hf.prototype,"panelContentVisibleChanged",null);
_.W([_.tM("yt-load-reload-continuation"),_.X("design:type",Function),_.X("design:paramtypes",[Object]),_.X("design:returntype")],Hf.prototype,"onLoadReloadContinuation",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Hf);
_.B(Hf,"ytd-transcript-renderer",function(){if(mRl!==void 0)return mRl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return mRl=v},{mode:1});var bWq;var FoV;var mD=function(){return _.z.apply(this,arguments)||this};
_.f(mD,_.z);mD.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Qk(this.hostElement,[this.data.clickCommand],this.hostElement))};
mD.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.oG)()+_.Jz)+"px)"};
mD.prototype.updateShouldHideFromBinding=function(v){this.shouldHide=v.detail.value};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mD.prototype,"rendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mD.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],mD.prototype,"shouldHide",void 0);_.W([_.J({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],mD);
_.B(mD,"ytd-ad-engagement-panel-banner-renderer",function(){if(FoV!==void 0)return FoV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FoV=v},{mode:_.mV("kevlar_poly_si_batch_j070")?1:2});var Koc;var Ul=function(){var v=_.z.apply(this,arguments)||this;v.buttonUpdate=_.Y("web_modern_buttons");v.adsSemanticText=_.Y("enable_ads_web_ep_buenos_aires_and_padding_fix");return v};
_.f(Ul,_.z);Ul.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.W([_.q(),_.X("design:type",Object)],Ul.prototype,"data",void 0);_.W([_.q({computed:"computeHideDefaultAdBadge(data)"}),_.X("design:type",Boolean)],Ul.prototype,"hideDefaultAdBadge",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ul.prototype,"buttonUpdate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Ul.prototype,"adsSemanticText",void 0);_.W([_.J({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Ul);
_.B(Ul,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Koc!==void 0)return Koc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Koc=v},{mode:1});var iWJ;var vz=function(){var v=_.z.apply(this,arguments)||this;v.darkerPanels=_.Y("web_watch_darker_panels");v.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");v.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");v.headerClickListener=function(Q){v.onHeaderClick(Q)};
v.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return v};
_.f(vz,_.z);_.K=vz.prototype;_.K.computeAdsInfoButton=function(){if(_.Y("web_modern_buttons")){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.subtitleComplex,LFj))==null?void 0:Q.adInfoRenderer}};
_.K.updateHeaderClickListener=function(){var v,Q,V;((v=this.data)==null?0:v.navigationEndpoint)||((Q=this.data)==null?0:Q.onClickCommand)||_.y((V=this.data)==null?void 0:V.visibilityButton,_.i9)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.K.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}}}}}};
_.K.collapsedChanged=function(){var v;(v=this.data)!=null&&v.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.Y("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.K.focus=function(v){var Q=this;this.titleElement&&_.XT.addJob(function(){_.iS(Q.titleElement,v)},0,500)};
_.K.computeTitleAriaLabel=function(v){var Q=[];if(v.title){var V,E;Q.push(this.ytRendererBehavior.getSimpleString(v.title)||((V=v.title.accessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label))}v.contextualInfo&&Q.push(this.ytRendererBehavior.getSimpleString(v.contextualInfo));return Q.join(" ")};
_.K.onHeaderClick=function(v){this.shouldTriggerHeaderClick(v)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Qk(this.hostElement,[this.data.onClickCommand],this.hostElement)):(v=this.getVisibilityToggleButton())&&v.click())};
_.K.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var v=_.y(this.data.visibilityButton,_.KH)||_.y(this.data.visibilityButton,_.i9);v&&this.ytRendererBehavior.logExplicitClick(v)}};
_.K.getVisibilityToggleButton=function(){var v=_.m9(this.hostElement).querySelector("#visibility-button").firstElementChild;return(v==null?void 0:v.is)==="ytd-toggle-button-renderer"?v:null};
_.K.shouldTriggerHeaderClick=function(v){return!_.j$(_.uK(v),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.K.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(v){v=_.y(v,_.UPq);this.targetId&&(v==null?void 0:v.targetId)===this.targetId&&(v=v.navigationButton)&&this.set("data.navigationButton",v)};
_.hr.Object.defineProperties(vz.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!!(((v=this.entity)==null?0:v.isActionButtonHidden)||this.hideActionButton)}}});
vz.prototype.collapsedChanged=vz.prototype.collapsedChanged;vz.prototype.updateHeaderClickListener=vz.prototype.updateHeaderClickListener;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],vz.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],vz.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],vz.prototype,"targetId",void 0);_.W([_.q(),_.X("design:type",Boolean)],vz.prototype,"collapsed",void 0);_.W([_.q(),_.X("design:type",Boolean)],vz.prototype,"hideActionButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vz.prototype,"shortsPanel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vz.prototype,"liveChatEngagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vz.prototype,"learningChatEngagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vz.prototype,"darkerPanels",void 0);_.W([_.Z7("#title"),_.X("design:type",HTMLElement)],vz.prototype,"titleElement",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],vz.prototype,"headerElement",void 0);
_.W([_.q({computed:"computeAdsInfoButton(data)"}),_.X("design:type",Object)],vz.prototype,"adsInfoButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vz.prototype,"enableSqueezebackPanels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vz.prototype,"enableAnchoredPanel",void 0);_.W([_.q({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"engagementPanelTitleHeaderEntity",Q)}}),
_.X("design:type",Object)],vz.prototype,"entity",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("targetId"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],vz.prototype,"adsSemanticText",null);_.W([_.ph("data","data.navigationEndpoint","data.onClickCommand"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vz.prototype,"updateHeaderClickListener",null);
_.W([_.wg("collapsed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vz.prototype,"collapsedChanged",null);_.W([_.O("entity","hideActionButton"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],vz.prototype,"isActionButtonHidden",null);_.W([_.J({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],vz);
_.B(vz,"ytd-engagement-panel-title-header-renderer",function(){if(iWJ!==void 0)return iWJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return iWJ=v},{mode:1});var LoJ;var Qz=function(){return _.z.apply(this,arguments)||this};
_.f(Qz,_.z);Qz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Qz.prototype,"data",void 0);_.W([_.J({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Qz);
_.B(Qz,"ytd-macro-markers-info-item-renderer",function(){if(LoJ!==void 0)return LoJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return LoJ=v},{mode:1});var tzf;var Vz=function(v,Q,V,E,b,F){_.J5.call(this);var t=this;this.JSC$23213_containerElement=v;this.hostElement=Q;this.supportedSyncItems=V;this.syncEntityKey=E;this.options=b;this.renderLazyListItems=F;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;pab(this);edJ(this);this.JSC$23213_scrollAnimation=new _.AE(function(p){v.scrollTop=p});
_.Cg(this,this.JSC$23213_scrollAnimation);this.addOnDisposeCallback(function(){ZWJ(t,!1);t.activeItem&&t.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.f(Vz,_.J5);var pab=function(v){var Q=_.Wm(_.ht().resolve(_.Uj),function(V){return V.entities.markersEngagementPanelSyncEntity||{}},function(V,E){var b;
if(V[v.syncEntityKey]!==E[v.syncEntityKey]&&((b=V[v.syncEntityKey])==null?void 0:b.activeItemIndex)!==void 0)if(E=V[v.syncEntityKey].activeItemIndex,V=v.getItemByIndex(E)){if(PMn(v,V),v.contentVisible)if(v.browsingMode){var F;((F=v.options)==null?void 0:F.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(F=dFn(v),V.offsetTop<v.JSC$23213_containerElement.clientHeight+v.JSC$23213_containerElement.scrollTop&&F&&!v.activeItemBelowSyncPosition&&ZWJ(v,!1));hd5(v)}else v.scrollToItem(V)}else _.Iy(new _.xd("Could not find "+
v.supportedSyncItems+" sync child to set active.",E,v.JSC$23213_containerElement.querySelectorAll(v.supportedSyncItems).length))});
v.unsubscribeFromTimedMarkersListSyncEntity=Q;v.addOnDisposeCallback(Q);waJ(v)},waJ=function(v){var Q=_.ht().resolve(_.Uj);
Q=_.d83(Q.getState(),v.syncEntityKey);(Q==null?void 0:Q.activeItemIndex)!==void 0&&(Q=v.getItemByIndex(Q.activeItemIndex))&&PMn(v,Q)},edJ=function(v){var Q=new _.FK(v.onScroll,50,v);
_.Cg(v,Q);var V=function(){Q.fire()};
v.JSC$23213_containerElement.addEventListener("scroll",V);v.addOnDisposeCallback(function(){v.JSC$23213_containerElement.removeEventListener("scroll",V)})};
Vz.prototype.getItemByIndex=function(v){var Q;(Q=this.renderLazyListItems)==null||Q.call(this,v);Q=this.JSC$23213_containerElement.querySelectorAll(this.supportedSyncItems);if(Q.length>v)return Q[v]};
var PMn=function(v,Q){v.activeItem&&v.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));Q.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));v.activeItem=Q};
Vz.prototype.scrollToItem=function(v){v=this.getScrollPositionForItem(v);this.JSC$23213_containerElement.scrollTop!==v&&this.JSC$23213_scrollAnimation.start(this.JSC$23213_containerElement.scrollTop,v,300)};
Vz.prototype.getScrollPositionForItem=function(v){if(this.JSC$23213_containerElement.querySelectorAll(this.supportedSyncItems)[0]===v)return 0;var Q,V=((Q=this.options)==null?0:Q.percentOffset)?this.JSC$23213_containerElement.clientHeight*this.options.percentOffset:0;v=_.ob(v).y+this.JSC$23213_containerElement.scrollTop-(_.ob(this.JSC$23213_containerElement).y+V);return Math.max(0,Math.min(v,this.JSC$23213_containerElement.scrollHeight-this.JSC$23213_containerElement.offsetHeight))};
Vz.prototype.onScroll=function(){this.activeItemBelowSyncPosition=dFn(this);if(this.activeItem&&!this.JSC$23213_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23213_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var v;switch((v=this.options)==null?void 0:v.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":Aq5(this,!k7l(this));hd5(this);break;default:Aq5(this,!0)}}};
var Aq5=function(v,Q){var V,E;_.e(function(b){if(b.nextAddress==1){if(v.browsingMode)return b.return();v.browsingMode=!0;Q&&v.hostElement.classList.add("browsing-mode");v.playerExitBrowsingModeListener=function(){ZWJ(v,!1)};
return b.yield(_.Eu(),2)}V=b.yieldResult;(E=V)==null||E.addEventListener("SEEK_TO",v.playerExitBrowsingModeListener);_.q1(b)})},ZWJ=function(v,Q){Q=Q===void 0?!0:Q;
v.browsingMode&&(v.browsingMode=!1,v.hostElement.classList.remove("browsing-mode"),Q&&v.scrollToItem(v.activeItem),TXb(v))},TXb=function(v){var Q,V;
_.e(function(E){if(E.nextAddress==1)return v.playerExitBrowsingModeListener?E.yield(_.Eu(),3):E.jumpTo(0);Q=E.yieldResult;(V=Q)==null||V.removeEventListener("SEEK_TO",v.playerExitBrowsingModeListener);v.playerExitBrowsingModeListener=void 0;_.q1(E)})},hd5=function(v){var Q;
((Q=v.options)==null?void 0:Q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(k7l(v)?v.hostElement.classList.remove("browsing-mode"):v.activeItem&&v.hostElement.classList.add("browsing-mode"))},dFn=function(v){if(!v.activeItem)return!1;
var Q,V=((Q=v.options)==null?0:Q.percentOffset)?v.JSC$23213_containerElement.clientHeight*v.options.percentOffset:0;return v.activeItem.offsetTop>=v.JSC$23213_containerElement.scrollTop+V},k7l=function(v){if(!v.activeItem)return!1;
var Q=v.activeItem.offsetTop+14<=v.JSC$23213_containerElement.scrollTop+v.JSC$23213_containerElement.clientHeight;return v.activeItem.offsetTop+v.activeItem.clientHeight-14>=v.JSC$23213_containerElement.scrollTop&&Q};
Vz.prototype.panelContentVisibleChanged=function(v){(this.contentVisible=v)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var YHj=function(v,Q){v.syncEntityKey=Q;var V;(V=v.unsubscribeFromTimedMarkersListSyncEntity)==null||V.call(v);pab(v)},yq5=function(v,Q){v.options=Q};var E8=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return v};
_.f(E8,_.z);_.K=E8.prototype;_.K.detached=function(){var v;(v=this.scrollController)==null||v.dispose();this.scrollController=void 0};
_.K.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"}}}};
_.K.dataChanged=function(){var v=this;_.PE(this,function(){if(v.scrollController){var Q;(Q=v.scrollController)==null||ZWJ(Q,!1);var V,E,b;(E=v.scrollController)==null||YHj(E,(b=(V=v.data)==null?void 0:V.syncModelEntityKey)!=null?b:"default-macro-markers-list-renderer-entity-key");var F,t,p;(p=v.scrollController)==null||yq5(p,{percentOffset:(F=v.data)==null?void 0:F.selectedItemAlignmentPercentOffset,floatingPillType:(t=v.data)==null?void 0:t.floatingPillType})}else{var Z,d,w,A;v.scrollController=
new Vz(v.contents,v.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(A=(Z=v.data)==null?void 0:Z.syncModelEntityKey)!=null?A:"default-macro-markers-list-renderer-entity-key",{percentOffset:(d=v.data)==null?void 0:d.selectedItemAlignmentPercentOffset,floatingPillType:(w=v.data)==null?void 0:w.floatingPillType},function(k){v.renderLazyListItems(k)})}v.scrollController.panelContentVisibleChanged(!!v.panelContentVisible)})};
_.K.computeButtonShape=function(){var v=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){v.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.K.renderLazyListItems=function(v){for(var Q=this.contents.children,V=0,E=0;E<Q.length;E++){var b=void 0;(b=Q[E].ytLazyListBehavior)==null||b.fillRemainingListItems();var F=void 0,t=void 0;b=_.y((F=this.data)==null?void 0:(t=F.contents)==null?void 0:t[E],_.dKq);t=F=void 0;if((F=b)==null?0:(t=F.contents)==null?0:t.length)V+=b.contents.length;if(V>=v)break}};
_.K.handleSetActivePanelItemAction=function(v){if((v=_.y(v,Qmb))&&this.panelTargetId===v.panelTargetId){v=v.itemIndex;var Q,V,E=(V=(Q=this.data)==null?void 0:Q.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key",b;((b=this.syncEntity)==null?void 0:b.activeItemIndex)!==v&&this.ytdReduxBehavior.dispatch(_.dW("markersEngagementPanelSyncEntity",E,{key:E,activeItemIndex:v}))}};
_.K.onSyncClick=function(){var v;(v=this.scrollController)==null||ZWJ(v)};
_.K.panelContentVisibleChanged=function(){var v;(v=this.scrollController)==null||v.panelContentVisibleChanged(!!this.panelContentVisible)};
E8.prototype.panelContentVisibleChanged=E8.prototype.panelContentVisibleChanged;E8.prototype.dataChanged=E8.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],E8.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],E8.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],E8.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],E8.prototype,"useCustomColors",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],E8.prototype,"panelTargetId",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],E8.prototype,"panelContentVisible",void 0);
_.W([_.Z7("#contents"),_.X("design:type",HTMLElement)],E8.prototype,"contents",void 0);_.W([_.q({selectorArgs:["data.syncModelEntityKey"],selector:_.d83}),_.X("design:type",Object)],E8.prototype,"syncEntity",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],E8.prototype,"dataChanged",null);
_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],E8.prototype,"panelContentVisibleChanged",null);_.W([_.J({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],E8);
_.B(E8,"ytd-macro-markers-list-renderer",function(){if(tzf!==void 0)return tzf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tzf=v},{mode:1});var cqV;var bZ=function(){return _.z.apply(this,arguments)||this};
_.f(bZ,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],bZ.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bZ.prototype,"data",void 0);_.W([_.J({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],bZ);
_.B(bZ,"ytd-error-corrections-section-item-renderer",function(){if(cqV!==void 0)return cqV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cqV=v},{mode:1});var fed;var FM=function(){return _.z.apply(this,arguments)||this};
_.f(FM,_.z);FM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],FM.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],FM.prototype,"data",void 0);_.W([_.J({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],FM);
_.B(FM,"ytd-error-corrections-section-renderer",function(){if(fed!==void 0)return fed;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return fed=v},{mode:1});var G7c;var KS=function(){return _.z.apply(this,arguments)||this};
_.f(KS,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],KS.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],KS.prototype,"data",void 0);_.W([_.J({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],KS);
_.B(KS,"ytd-topic-link-renderer",function(){if(G7c!==void 0)return G7c;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return G7c=v},{mode:1});var CMV;var iZ=function(){var v=_.z.apply(this,arguments)||this;v.modernLockupV2=_.Y("modernize_structured_description_playlist_lockups_v2");return v};
_.f(iZ,_.z);iZ.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],iZ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iZ.prototype,"modernLockupV2",void 0);_.W([_.J({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],iZ);
_.B(iZ,"ytd-video-description-course-section-renderer",function(){if(CMV!==void 0)return CMV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return CMV=v},{mode:1});var Mze;var LS=function(){return _.z.apply(this,arguments)||this};
_.f(LS,_.z);LS.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],LS.prototype,"data",void 0);_.W([_.J({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],LS);
_.B(LS,"ytd-video-description-files-section-renderer",function(){if(Mze!==void 0)return Mze;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Mze=v},{mode:1});var OWf;var ti=function(){return _.z.apply(this,arguments)||this};
_.f(ti,_.z);ti.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ti.prototype,"data",void 0);_.W([_.J({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ti);
_.B(ti,"ytd-video-description-gaming-section-renderer",function(){if(OWf!==void 0)return OWf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return OWf=v},{mode:1});var DFV;var pS=function(){var v=_.z.apply(this,arguments)||this;v.isExpanded=!1;return v};
_.f(pS,_.z);pS.prototype.computeHasDefaultMetadataEndpoint=function(v){var Q;v=v==null?void 0:(Q=v.defaultMetadata)==null?void 0:Q.runs;return!(!v||v.length!==1||!v[0].navigationEndpoint)};
pS.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.hr.Object.defineProperties(pS.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pS.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pS.prototype,"isExpanded",void 0);_.W([_.q({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],pS.prototype,"hasDefaultMetadataEndpoint",void 0);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],pS.prototype,"isExpandable",null);_.W([_.O("data","isExpandable","isExpanded"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],pS.prototype,"showExpandedMetadata",null);_.W([_.J({is:"ytd-info-row-renderer",disableElementRegistration:!0})],pS);
_.B(pS,"ytd-info-row-renderer",function(){if(DFV!==void 0)return DFV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return DFV=v},{mode:1});var Rdd;var ea=function(){var v=_.z.apply(this,arguments)||this;v.currentIndex=0;v.supportComponentResize=!0;v.JSC$23242_lastScrollContainerWidth=NaN;return v};
_.f(ea,_.z);_.K=ea.prototype;
_.K.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"}}}};
_.K.getItemsPath=function(){return"videoLockups"};
_.K.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.K.onIronResize=function(){this.updateVideoLockupStyles()};
_.K.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.K.updateVideoLockupStyles=function(){var v;this.JSC$23242_scrollContainer!==void 0&&(v=this.videoLockups)!=null&&v.length&&(v=this.JSC$23242_scrollContainer.clientWidth,v!==this.JSC$23242_lastScrollContainerWidth&&(this.JSC$23242_lastScrollContainerWidth=v,_.F6(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(v*.8,415)+"px"}),_.Hj(this.hostElement,"iron-resize")))};
_.hr.Object.defineProperties(ea.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var v=[],Q;if((Q=this.data)==null||!Q.carouselLockups)return v;Q=_.L(this.data.carouselLockups);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0;((E=_.y(V,ndb))==null?0:E.videoLockup)&&v.push(_.y(V,ndb).videoLockup)}return v}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoLockups)==null||!v.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var v=[],Q;if((Q=this.data)==null||!Q.carouselLockups)return v;var V;return(V=_.y(this.data.carouselLockups[this.scrollCount],ndb))==null?void 0:V.infoRows}}});
ea.prototype.dataChanged=ea.prototype.dataChanged;ea.prototype.onIronResize=ea.prototype.onIronResize;ea.prototype.hiddenChanged=ea.prototype.hiddenChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ea.prototype,"componentBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],ea.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ea.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],ea.prototype,"inlineStructuredDescription",void 0);_.W([_.q({value:2}),_.X("design:type",Number)],ea.prototype,"initialCount",void 0);_.W([_.q(),_.X("design:type",Object)],ea.prototype,"currentIndex",void 0);
_.W([_.q(),_.X("design:type",Number)],ea.prototype,"scrollCount",void 0);_.W([_.q(),_.X("design:type",Object)],ea.prototype,"supportComponentResize",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],ea.prototype,"contentHidden",void 0);_.W([_.Z7("#scroll-container"),_.X("design:type",HTMLDivElement)],ea.prototype,"JSC$23242_scrollContainer",void 0);
_.W([_.ph("contentHidden"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ea.prototype,"hiddenChanged",null);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],ea.prototype,"videoLockups",null);_.W([_.O("videoLockups"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ea.prototype,"hasVideoLockups",null);
_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ea.prototype,"onIronResize",null);_.W([_.O("data","scrollCount"),_.X("design:type",Object),_.X("design:paramtypes",[])],ea.prototype,"infoRows",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ea.prototype,"dataChanged",null);_.W([_.J({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],ea);
_.B(ea,"ytd-video-description-music-section-renderer",function(){if(Rdd!==void 0)return Rdd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Rdd=v},{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var n0V;var Zj=function(){return _.z.apply(this,arguments)||this};
_.f(Zj,_.z);Zj.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.W([_.q({}),_.X("design:type",Object)],Zj.prototype,"data",void 0);_.W([_.J({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Zj);
_.B(Zj,"ytd-video-description-transcript-section-renderer",function(){if(n0V!==void 0)return n0V;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return n0V=v},{mode:1});var leJ;_.ad(_.x(function(v){var Q=_.p4(_.AOT,function(){return v.data().firstProviderLinkStatusEntityKey}),V=_.p4(_.AOT,function(){return v.data().secondProviderLinkStatusEntityKey}),E=function(){var b,F;
return((b=Q())==null?void 0:b.linked)||((F=V())==null?void 0:F.linked)};
return _.P("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.P(_.tD,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return v.data().sectionTitle}}),_.P(_.tD,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return E()?v.data().connectedMessage:v.data().notConnectedMessage}}),_.P(_.h,{cond:E,
then:function(){return _.P(_.Pw,{data:function(){return v.data().connectedButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.P(_.h,{cond:function(){return!E()},
then:function(){return _.P(_.Pw,{data:function(){return v.data().notConnectedButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"In"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;return _.P("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.P("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.P(_.tD,{text:function(){return Q().sectionTitle}})),_.P("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.P(_.tD,{text:function(){return Q().bodyHeader}})),_.P("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.P(_.tD,{text:function(){return Q().bodyText}})),_.P(_.h,{cond:function(){return Q().attributionText},
then:function(){return _.P("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.P(_.tD,{text:function(){return Q().attributionText}}))}}))},"Jn"),"how-this-was-made-section-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){return _.P("yt-video-description-youchat-section-view-model",{class:_.QZ("ytVideoDescriptionYouchatSectionViewModelHost")},_.P("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.P(_.tD,{text:function(){return v.data().sectionTitle}})),_.P("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.P(_.tD,{text:function(){return v.data().subHeaderText}})),_.P("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.P(_.D6,{data:function(){return _.y(v.data().primaryButton,
_.pH)}})))},"Kn"),"yt-video-description-youchat-section-view-model",{props:{data:_.pJ}});var Pz=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return v};
_.f(Pz,_.z);_.K=Pz.prototype;
_.K.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}}}}}};
_.K.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.K.dataChanged=function(){var v,Q;this.hasDescriptionOnly=!(((v=this.data)==null?void 0:(Q=v.items)==null?void 0:Q.length)!==1||!_.y(this.data.items[0],SG))};
_.K.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.K.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.K.autoFocusDescription=function(){var v;((v=_.ht().resolve(_.d$(_.Yc)))==null?0:v.isKeyBoardInUse())&&this.description&&_.Lp(this.description)};
_.K.resize=function(){if(_.Y("kevlar_disable_sd_resize"))this.JSC$23250_cardList&&_.Hj(this.JSC$23250_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Hj(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Hj(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.K.scrollToSection=function(v){if(v=this.getSectionElement(v))_.mb(this.hostElement,"yt-scroll-to-watch-element",[v]),v.focus()};
_.K.getSectionElement=function(v){switch(v){case "infocards-item-section":var Q;return(Q=this.infocardsSection)!=null?Q:null;case "transcript-item-section":var V;return(V=this.transcriptSection)!=null?V:null;case "how-this-was-made-section-item-section":var E;return(E=this.howThisWasMadeSection)!=null?E:null;case "files-item-section":var b;return(b=this.filesSection)!=null?b:null;default:return null}};
_.K.handleSetActiveItemAction=function(v){var Q=_.y(v,Qmb),V=Q&&(Q==null?void 0:Q.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23250_cardList;if(Q&&V){v=this.currentActiveChapter;var E=this.currentActiveProblem;Q=V==null?void 0:V.getItemByIndex(Q.itemIndex);var b=V=!0;Q&&(Q.active=!0,Q.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(V=v!==Q,b=!1,this.currentActiveChapter=Q):(Q==null?void 0:Q.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(V=!1,b=E!==Q,this.currentActiveProblem=Q));v&&V&&(v.active=!1);E&&b&&(E.active=!1)}};
_.hr.Object.defineProperties(Pz.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Pz.prototype.onYtExpanderMoreTapped=Pz.prototype.onYtExpanderMoreTapped;Pz.prototype.onHiddenChanged=Pz.prototype.onHiddenChanged;Pz.prototype.dataChanged=Pz.prototype.dataChanged;Pz.prototype.panelContentVisibleChanged=Pz.prototype.panelContentVisibleChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Pz.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],Pz.prototype,"ironResizableBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Pz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],Pz.prototype,"panelContentVisible",void 0);_.W([_.q(),_.X("design:type",Boolean)],Pz.prototype,"hasDescriptionOnly",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Pz.prototype,"inlineStructuredDescription",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Pz.prototype,"hidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Pz.prototype,"shortsPanel",void 0);_.W([_.q(),_.X("design:type",Object)],Pz.prototype,"videoSummary",void 0);_.W([_.q(),_.X("design:type",Object)],Pz.prototype,"merchShelf",void 0);
_.W([_.O("videoSummary"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Pz.prototype,"showVideoSummary",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Pz.prototype,"engagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Pz.prototype,"watchWhileSdp",void 0);_.W([_.Z7("ytd-expandable-video-description-body-renderer"),_.X("design:type",Object)],Pz.prototype,"description",void 0);
_.W([_.Z7("ytd-horizontal-card-list-renderer"),_.X("design:type",Object)],Pz.prototype,"JSC$23250_cardList",void 0);_.W([_.Z7("ytd-horizontal-card-list-renderer[center-items]"),_.X("design:type",Object)],Pz.prototype,"problemWalkthroughCardList",void 0);_.W([_.Z7("ytd-shelf-renderer"),_.X("design:type",Object)],Pz.prototype,"shelfSection",void 0);_.W([_.Z7("ytd-video-description-music-section-renderer"),_.X("design:type",Object)],Pz.prototype,"musicMetadataSection",void 0);
_.W([_.Z7("ytd-video-description-infocards-section-renderer"),_.X("design:type",Object)],Pz.prototype,"infocardsSection",void 0);_.W([_.Z7("ytd-video-description-transcript-section-renderer"),_.X("design:type",Object)],Pz.prototype,"transcriptSection",void 0);_.W([_.Z7("how-this-was-made-section-view-model"),_.X("design:type",Object)],Pz.prototype,"howThisWasMadeSection",void 0);_.W([_.Z7("ytd-video-description-files-section-renderer"),_.X("design:type",Object)],Pz.prototype,"filesSection",void 0);
_.W([_.ph("panelContentVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pz.prototype,"panelContentVisibleChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pz.prototype,"dataChanged",null);_.W([_.ph("hidden"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pz.prototype,"onHiddenChanged",null);
_.W([_.tM("yt-expander-more-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pz.prototype,"onYtExpanderMoreTapped",null);_.W([_.J({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Pz);
_.B(Pz,"ytd-structured-description-content-renderer",function(){if(leJ!==void 0)return leJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return leJ=v},{mode:2});var qH5;var SHj;var dp=function(){return _.z.apply(this,arguments)||this};
_.f(dp,_.z);dp.prototype.computeAriaLabel=function(v){var Q,V;return(v==null?void 0:(Q=v.accessibility)==null?void 0:(V=Q.accessibilityData)==null?void 0:V.label)||_.Lt("LOADING",void 0,"Loading")};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dp.prototype,"data",void 0);_.W([_.q({computed:"computeAriaLabel(data)"}),_.X("design:type",String)],dp.prototype,"ariaLabel",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],dp);
_.B(dp,"yt-content-loading-renderer",function(){if(SHj===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;qH5===void 0&&(qH5=document.createElement("template"));var E=qH5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);SHj=v}v=SHj;return v},{mode:_.mV("kevlar_poly_si_batch_j043")?1:2});_.ad(_.x(function(v){var Q=_.L(_.Ge(!1,void 0,"OZMtVb")),V=Q.next().value,E=Q.next().value;Q=_.L(_.Ge(!1,void 0,"qWERsf"));var b=Q.next().value,F=Q.next().value;_.jg(function(){var Z=_.y(v.data().collaboratePlaylistCollaborationSetting,YGP);Z&&E(Z.switchedOnByDefault);var d=_.y(v.data().allowNewCollaboratorsPlaylistCollaborationSetting,YGP);d&&F(d.switchedOnByDefault);if(!Z&&!d||!Z&&v.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")E(!0),F(!0)});
var t=function(Z){E(Z);F(Z);var d=v.data().playlistCollaborationEntityKey||"";var w=_.uf().getState();(w=_.Fg(w.entities,"playlistCollaborationEntity",d))&&(w==null?void 0:w.isCollaborative)===Z||_.uf().dispatch(_.dW("playlistCollaborationEntity",d,Object.assign({},w,{isCollaborative:Z})))},p=function(Z){F(Z)};
return _.P("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.P("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.P(_.Pw,{data:function(){return v.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.P(_.cip,{data:Z.data,
onSwitch:t})}})),_.P(_.h,{cond:V,
then:function(){return _.P(_.w7,null,_.P("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.P(_.Pw,{data:function(){return v.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.P(_.cip,{data:Z.data,
onSwitch:p,overrideDisabled:!1})}})),_.P(_.h,{cond:b,
then:function(){return _.P("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.P(_.Pw,{data:function(){return v.data().copyLinkButton}},{buttonViewModel:_.D6}))}}),_.P("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.P(_.Pw,{data:function(){return v.data().playlistCollaborators}},{contentListItemViewModel:_.R6h})))}}))},"Ln"),"playlist-collaboration-view-model",{props:{data:_.pJ}});var zdc=_.x(function(v){var Q=v.data;var V=v.customCommandResolver;return _.P(_.w7,null,_.P("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.P(_.Pw,{data:function(){return Q().adAvatar}},{adAvatarViewModel:function(E){return _.P(_.otZ,{data:E.data,
customCommandResolver:V})}})),_.P("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.P(_.h,{cond:function(){return Q().headline},
then:function(E){return _.P(_.tD,{text:E,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.P("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.P(_.Pw,{data:function(){return Q().adBadge}},{adBadgeViewModel:function(E){return _.P(_.Ss,{data:E.data,
hasDot:function(){return Q().primaryDetailsLine!==void 0},
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.P(_.Pw,{data:function(){return Q().primaryDetailsLine}},{adDetailsLineViewModel:function(E){return _.P(_.z$,{data:E.data,
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Mn"),Jqq=_.x(function(v){var Q=v.data;
var V=v.customCommandResolver;return _.P("ad-avatar-lockup-view-model",{class:function(){var E;return((E=Q().interaction)==null?0:E.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.ud(_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg}),_.n4(function(){return Q().interaction},V)),
"aria-label":function(){var E,b;return(E=Q().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label}},_.P(_.BU,null,_.P(_.J1,{when:function(){return Q().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.P(zdc,{data:Q,
customCommandResolver:V})}),_.P(_.NP,null,function(){return null})))},"Nn");_.ad(_.x(function(v){var Q=v.data;var V=v.panelContentVisibility;v=_.k0({visibilityCallback:function(F){var t,p=(t=Q().interaction)==null?void 0:t.onFirstVisible;F&&p&&_.nx(p)},
showOption:_.Mg});var E=_.n4(function(){return Q().interaction},KXq);
_.sX(function(){var F,t;if(t=_.Q9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var p;t=(p=t())==null?void 0:p.onLayoutVisibleCallback}else t=null;(F=t)==null||F()},"On");
var b=function(){return V()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.P("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.ud(v,E)},_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.P(_.h,{cond:_.Ygo("(min-width: "+((0,_.oG)()+_.Jz)+"px) or (max-width: 600px)"),then:function(){return _.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(F){return _.P(_.XA,{data:F.data,
targetHeight:80,customCommandResolver:KXq})}})}})),_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.P(_.Pw,{data:function(){return Q().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.P(Jqq,{data:F.data,
customCommandResolver:KXq})}})),_.P(_.h,{cond:b,
then:function(){return _.P(_.Pw,{data:function(){return Q().adButton}},{adButtonViewModel:function(F){return _.P(_.Dr,{data:F.data,
customCommandResolver:KXq})}})},
else:function(){return _.P(_.Pw,{data:function(){return Q().menu}},{buttonViewModel:_.D6})}}),_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.P(_.Pw,{data:function(){var F=_.y(Q().toggleButton,_.Zq);
return{toggleButtonViewModel:Object.assign({},F,{isTogglingDisabled:!0,isToggled:b()})}}},{toggleButtonViewModel:_.a5})))))},"Pn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.pJ,
panelContentVisibility:_.pJ}});_.ad(_.x(function(v){var Q=function(){return _.y(v.data().inputComposerViewModel,tgI)},V=_.Z1(_.zw.currentPageSubTypeSelector),E=_.Z1(_.zw.persistentPanelVisibleSelector),b=_.L(_.Ge(!1,void 0,"IASwBb")),F=b.next().value,t=b.next().value;
b=_.L(_.Ge(!1,void 0,"GdQ0qf"));var p=b.next().value,Z=b.next().value,d=function(){C(!0);var yo;_.nx(((yo=Q())==null?void 0:yo.onSubmitCommand)||{})},w=function(){if(E()&&!p()){var yo;
(yo=_.FS())==null||yo.removeCueRange("aic-proactive");t(!1);Z(!0);d();_.Oo(_.P1(Q().endOfVideoContinuation),{form:{formData:_.ZF({clientMessageId:"youchat-"+Date.now(),pageContext:OB()})},commandController:{onSuccess:function(){C(!1)},
onServerError:function(){_.Oo(XRJ(a()));C(!1)}}})}},A=function(){var yo=_.FS();
if(yo&&!F()&&!p()){var xQ=yo.getDuration();xQ>60&&(yo.addCueRange("aic-proactive",xQ-60,xQ-20),t(!0))}},k=function(){var yo;
return((yo=Q())==null?void 0:yo.youchatPendingResponseEntityKey)||""},T=_.p4(_.JMf,k),c=function(){var yo;
return!((yo=T())==null||!yo.isPendingResponse)},C=function(yo){_.Ngd(k())(yo)};
b=_.L(_.Ge(!0,void 0,"n0Jijf"));var R=b.next().value,l=b.next().value,S=function(){var yo,xQ;var lb=_.y((xQ=Q())==null?void 0:xQ.inputFormField,mPP);return lb==null?void 0:(yo=lb.contentProperties)==null?void 0:yo.placeholderText},a=function(){return Q().sectionTargetId||"youchat_messages_section"};
b=_.Pa("yt-chat-input-view-model");var g=_.Ze("textarea"),u=_.p4(rac,"chat_input_view_model_state"),r=$Af(),v9=function(){var yo;return!((yo=u())==null||!yo.value)},t3=function(){return v.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},h3=function(){var yo;
(yo=_.FS())==null||yo.removeCueRange("aic-proactive");t(!1);Z(!1);var xQ;_.Y("enable_navigational_proactive_messages_on_ai_companion")&&((xQ=Q())==null?0:xQ.navigationContinuation)&&E()&&(d(),_.Oo(_.P1(Q().navigationContinuation),{form:{formData:_.ZF({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:LXl(),pageContext:OB()})},commandController:{onSuccess:function(){C(!1)},
onServerError:function(){_.Oo(XRJ(a()));C(!1)}}}))},OB=function(){var yo;
return(yo=_.ht().resolve(_.d$(_.ry)))==null?void 0:_.Qbd(yo,V())};
_.jg(function(){if(_.Y("enable_ai_chat_controller")){var yo;(yo=_.ht().resolve(_.d$(_.ry)))==null||yo.init(v.data().environment)}else if(yo=pUn(v.data()),!v9()&&yo){var xQ;((xQ=Q())==null?0:xQ.setPendingResponseOnWelcome)&&C(!0);_.Oo(yo,{form:{formData:_.ZF({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:LXl(),pageContext:OB()})}});r(!0)}var lb=a(),ep=_.ht().resolve(_.d$(_.Ns)),JS=function(){_.Zz.remove(lb);if(_.Y("enable_ai_chat_controller")){var mS;(mS=_.ht().resolve(_.d$(_.ry)))!=null&&mS.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(mS.lastWelcomeContinuationSent=void 0)}else r(!1)},fZ=function(){_.fa(function(){if(t3()&&(h3(lb),V()==="watch")){var mS=_.FS();
mS&&(mS.addEventListener("onStateChange",A),mS.addEventListener("onCueRangeEnter",w))}})};
xQ=_.Y("enable_ai_companion")?!t3():!0;ep==null||ep.addEventListener("yt-navigate-start",JS,{once:xQ});ep==null||ep.addEventListener("yt-navigate-finish",fZ,{once:xQ});_.j_(function(){ep==null||ep.removeEventListener("yt-navigate-start",JS);ep==null||ep.removeEventListener("yt-navigate-finish",fZ);var mS=_.FS();mS&&(mS.removeEventListener("onCueRangeEnter",w),mS.removeEventListener("onStateChange",A),mS.removeCueRange("aic-proactive"))})});
_.uH(function(){if(_.Y("enable_ai_chat_controller")){var yo=pUn(v.data());if(yo){var xQ,lb=((xQ=Q())==null?0:xQ.setPendingResponseOnWelcome)?C:void 0,ep;(ep=_.ht().resolve(_.d$(_.ry)))==null||jSq(ep,{command:yo,setPending:lb})}}},"Z4XQCb");
var kQ=function(){var yo=g.value.value;g.value.value="";iUf(g.value);var xQ,lb=((xQ=Q())==null?void 0:xQ.enableGradientColorBg)||!1;xQ=aQJ(a(),yo,lb);_.Oo(xQ);d();var ep,JS,fZ;xQ=(fZ=_.MQ((ep=v.data())==null?void 0:ep.sendUserQueryCommand))!=null?fZ:_.P1((JS=Q())==null?void 0:JS.continuation);_.Oo(xQ,{form:{formData:_.ZF({clientMessageId:"youchat-"+Date.now(),userInputText:yo,playerOffsetMs:LXl(),pageContext:OB()})},commandController:{onSuccess:function(){C(!1)},
onServerError:function(){_.Oo(XRJ(a()));C(!1)}}})};
return _.P("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:b},_.P("div",{class:"chatInputViewModelChatInputWrapper"},_.P("form",{class:"chatInputViewModelChatInputForm"},_.P("textarea",{class:"chatInputViewModelChatInput",el:g,"on:keydown":_.EP(function(yo){var xQ=c()||!1;iUf(g.value);xQ||yo.key!=="Enter"||yo.shiftKey||(yo.preventDefault(),kQ());return!1}),
"on:keyup":_.EP(function(){l(g.value.value.length===0);return!1}),
"aria-label":function(){return c()?v.data().loadingAnimationA11yLabel||"":S()},
placeholder:S,rows:1}),_.P(_.D6,{data:function(){return _.y(v.data().sendButton,_.pH)},
onClick:function(yo){yo.preventDefault();kQ();l(g.value.value.length===0)},
buttonOverrides:function(){return{disabled:R()||c()}}})),_.P(_.tD,{className:"chatInputViewModelChatDisclaimer",
text:function(){var yo;return(yo=_.y(v.data().disclaimer,_.h48))==null?void 0:yo.text}})))},"Rn"),"yt-chat-input-view-model",{props:{data:_.pJ}});var NXI=["engagement-panel-clip-create","engagement-panel-clip-view"],xFV=0,hi=function(){var v=_.z.apply(this,arguments)||this;var Q;v.headerData=(Q=v.data)==null?void 0:Q.header;v.darkerPanels=_.Y("web_watch_darker_panels");v.matchContentTheme=_.Y("web_watch_panel_content_match_theme");v.disableAutoFill=!1;v.isFullscreen=!1;v.isTheaterMode=!1;v.liveChatReplyPanel=!1;v.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");v.disableBackdropFilter=_.Y("web_disable_backdrop_filter");v.isPersistentPanel=
!1;v.trackEngagementPanelVisibility=_.Y("web_watch_track_engagement_panel_visibility");v.overscrollContain=!1;v.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return v};
_.f(hi,_.z);_.K=hi.prototype;
_.K.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(v){var Q;return(v==null?void 0:(Q=v.webComponentHint)==null?void 0:Q.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.K.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var v;if((v=this.hostElement.parentElement)==null?0:v.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.K.detached=function(){this.updateTheaterDisablement()};
_.K.showPanel=function(){var v=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.XT.addJob(function(){v.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.K.maybeScrollToItemSection=function(v){var Q=this,V,E=v==null?void 0:(V=v.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;E&&_.XT.addJob(function(){var b;(b=Q.sectionListRendererElement)==null||b.scrollToItemSection(E)},8)};
_.K.hidePanel=function(){var v=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.XT.addJob(function(){v.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.K.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.K.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.K.updatePanel=function(v,Q,V,E){var b=this;if((v=v==null?void 0:v.engagementPanelSectionListRenderer)||E){if(v){E=v.header;var F=v.content,t=v.footer;(v=v.targetId)&&this.set("data.targetId",v);E&&this.set("data.header",E);F&&this.set("data.content",F);t&&this.set("data.footer",t)}else E&&(v=E.content,F=E.secondaryHeaderContent,t=E.targetId,E=E.loggingDirectives,t&&this.set("data.targetId",t),v&&this.set("data.content",v),E&&_.Y("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
E),F&&(this.secondaryHeaderData=F));this.updateChildVisibilityProperties();if(Q){var p;_.Y("kevlar_update_panel_focus_scroll_killswitch")||(p={preventScroll:!0});this.focus(p)}_.PE(this,function(){_.Hj(b.hostElement,"yt-refit");b.maybeScrollToItemSection(V)})}};
_.K.computeHeaderData=function(){var v,Q=(0,_.gI.unsafeClone)((v=this.data)==null?void 0:v.header);if(Q){v=new _.FG(Object.keys(Q)[0]);var V=_.y(Q,v),E=_.y(this.secondaryHeaderData,v);E&&_.yK(Q,v,Object.assign({},E,V))}return Q};
_.K.getReloadContinuation=function(){var v,Q,V,E=_.L(((v=this.data)==null?void 0:(Q=v.content)==null?void 0:(V=Q.sectionListRenderer)==null?void 0:V.continuations)||[]);for(v=E.next();!v.done;v=E.next())if(v=v.value,v.reloadContinuationData)return v.reloadContinuationData.continuation};
_.K.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var v;((v=this.data)==null?0:v.targetId)&&(v=this.contentElement.firstElementChild)&&v.setAttribute("panel-target-id",this.data.targetId)};
_.K.forwardPopupClosedToFlowRootRenderer=function(){var v=_.m9(this.hostElement).querySelector("ytd-flow-root-renderer");if(v&&this.hostElement.closest("ytd-popup-container"))v.onPopupClosed()};
_.K.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var v;if(!NXI.includes((v=this.theaterDisablementPanelIdentifier)!=null?v:""))if(v=_.Y("web_watch_imax_theater_mode")&&this.isTheaterMode,v=_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||v,_.Y("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||v){var Q;this.visibility=(Q=this.data)==null?void 0:Q.visibility;var V;this.trackEngagementPanelVisibility&&((V=this.data)==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var E,b,F,t;this.contentEmpty=!!(((E=this.data)==null?0:(b=E.content)==null?0:b.structuredDescriptionContentRenderer)&&Object.keys((F=this.data)==null?void 0:(t=F.content)==null?void 0:
t.structuredDescriptionContentRenderer).length===0);(Q=_.ht().resolve(_.$2))&&Q.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.K.isTheaterModeChanged=function(){_.Y("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.K.isFullscreenChanged=function(){_.Y("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.K.focus=function(v){if(this.header)this.header.focus(v);else{var Q;(Q=_.m9(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||Q.focus(v)}};
_.K.visibilityChanged=function(){if(!_.Y("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var v=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=E||!this.lastVisibility,F,t,p,Z=((F=this.data)==null?void 0:(t=F.identifier)==null?void 0:
t.tag)||((p=this.data)==null?void 0:p.panelIdentifier);if(v&&b){var d;((d=this.data)==null?0:d.onShowCommands)&&_.Qk(this.hostElement,this.data.onShowCommands,this.hostElement);Z&&_.oF().dispatch(_.U2({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:Z}}))}else if(Q&&V){var w;((w=this.data)==null?0:w.onHideCommands)&&_.Qk(this.hostElement,this.data.onHideCommands,this.hostElement);Z&&_.oF().dispatch(_.U2({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:Z}}))}v&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*xFV++));_.Y("kevlar_watch_focus_on_engagement_panels")&&v&&E&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.K.notifyVisibilityChanged=function(v){var Q;_.Un(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,v,(Q=this.data)==null?void 0:Q.targetId]);if(_.Y("autonav_pause_for_comments_ep")){var V;_.Hj(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:v==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(V=this.data)==null?void 0:V.targetId})}};
_.K.updateTheaterDisablement=function(){if(!_.Y("kevlar_watch_theater_disablement_killswitch")){var v=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&NXI.includes(v)&&!_.Y("watch_next_grid_ignore_disallowed_panels")){var Q=_.C_(_.oF().getState()),V=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";v!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():V?(this.originalTheaterState===void 0&&(this.originalTheaterState=Q,this.theaterDisablementPanelIdentifier=
v),Q&&_.mb(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.K.clearTheaterDisablement=function(){_.mb(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.K.updateChildVisibilityProperties=function(){this.hostElement||_.Y("kevlar_panel_property_init_killswitch")||this._enableProperties();var v=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=v);var Q,V=(Q=this.headerElement)==null?void 0:Q.firstElementChild;if(V&&!this.adHeaderImageLockupViewModel){Q=v==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";V.collapsed=Q;V=_.m9(V).querySelector("#visibility-button");if(!V)return;(V=V.firstElementChild)&&
V.polymerController.is==="ytd-toggle-button-renderer"&&V.polymerController.data.isToggled!==Q&&V.polymerController.set("data.isToggled",Q)}var E;if(Q=(E=this.contentElement)==null?void 0:E.firstElementChild)if(v&&v!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")Q.removeAttribute("panel-content-visible");else{Q.setAttribute("panel-content-visible","");var b;(b=Q.markDirty)==null||b.call(Q)}};
_.K.onYtChangeEngagementPanelVisibilityAction=function(v){var Q=this,V,E=(V=this.data)==null?void 0:V.targetId,b,F,t;V=((b=this.data)==null?void 0:(F=b.identifier)==null?void 0:F.tag)||((t=this.data)==null?void 0:t.panelIdentifier);var p=_.y(v,_.x6R),Z;v=E&&(p==null?void 0:p.targetId)===E||V&&(p==null?void 0:(Z=p.panelIdentifier)==null?void 0:Z.tag)===V;this.dialog&&v&&(p==null?void 0:p.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(E==="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]));!_.Y("kevlar_use_engagement_panel_management_component")&&v&&(E=p.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!E?_.XT.addJob(function(){Q.visibility=p.visibility},2,this.hideDelayMs):this.visibility=p.visibility,p.visibility&&this.notifyVisibilityChanged(p.visibility))};
_.K.onYtScrollToEngagementPanelCommand=function(v){var Q,V=(Q=this.data)==null?void 0:Q.targetId,E,b,F;Q=((E=this.data)==null?void 0:(b=E.identifier)==null?void 0:b.tag)||((F=this.data)==null?void 0:F.panelIdentifier);v=_.y(v,_.ILZ);var t;(V&&(v==null?void 0:v.targetId)===V||Q&&(v==null?void 0:(t=v.panelIdentifier)==null?void 0:t.tag)===Q)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.mb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.K.attachVEs=function(v){var Q,V;(v==null?0:(Q=v.content)==null?0:(V=Q.productListRenderer)==null?0:V.trackingParams)&&_.tR().graftServerVe(v.content.productListRenderer.trackingParams);var E,b;(v==null?0:(E=v.content)==null?0:(b=E.transcriptRenderer)==null?0:b.trackingParams)&&_.tR().graftServerVe(v.content.transcriptRenderer.trackingParams)};
_.K.onYtUpdateEngagementPanelAction=function(v){var Q,V=(Q=this.data)==null?void 0:Q.targetId;v=_.y(v,Ede);V&&(v==null?void 0:v.targetId)===V&&(this.updatePanel({engagementPanelSectionListRenderer:{header:v==null?void 0:v.header,content:v==null?void 0:v.content}},!1),this.attachVEs(v))};
_.K.onYtShowEngagementPanelScrimAction=function(v){var Q,V=(Q=this.data)==null?void 0:Q.targetId;v=_.y(v,Vwb);V&&(v==null?void 0:v.engagementPanelTargetId)===V&&(this.scrimmed=!0)};
_.K.onYtHideEngagementPanelScrimAction=function(v){var Q,V=(Q=this.data)==null?void 0:Q.targetId;v=_.y(v,vdd);V&&(v==null?void 0:v.engagementPanelTargetId)===V&&(this.scrimmed=!1)};
_.K.getIdentifier=function(){var v,Q,V;return((v=this.data)==null?void 0:v.panelIdentifier)||((Q=this.data)==null?void 0:(V=Q.identifier)==null?void 0:V.tag)};
_.K.getSurface=function(){var v,Q;return(v=this.data)==null?void 0:(Q=v.identifier)==null?void 0:Q.surface};
_.hr.Object.defineProperties(hi.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var v=this.getIdentifier();return v==="engagement-panel-youchat"||v==="PAyouchat"}}});
hi.prototype.visibilityChanged=hi.prototype.visibilityChanged;hi.prototype.isFullscreenChanged=hi.prototype.isFullscreenChanged;hi.prototype.isTheaterModeChanged=hi.prototype.isTheaterModeChanged;hi.prototype.dataChanged=hi.prototype.dataChanged;hi.prototype.forwardPopupClosedToFlowRootRenderer=hi.prototype.forwardPopupClosedToFlowRootRenderer;hi.prototype.onYtRendererstamperFinished=hi.prototype.onYtRendererstamperFinished;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],hi.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],hi.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],hi.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"data",void 0);
_.W([_.q({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.X("design:type",Object)],hi.prototype,"headerData",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"secondaryHeaderData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"visibility",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"contentEmpty",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"scrimmed",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"dialog",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"dropdown",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"darkerPanels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"matchContentTheme",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"disableAutoFill",void 0);
_.W([_.q({reflectToAttribute:!0,value:_.Y("optimal_reading_width_comments_ep")}),_.X("design:type",Boolean)],hi.prototype,"optimalReadingWidthComments",void 0);_.W([_.q(),_.X("design:type",Number)],hi.prototype,"hideDelayMs",void 0);_.W([_.q({selector:_.MC,reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"isFullscreen",void 0);_.W([_.q({selector:_.C_,reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"isTheaterMode",void 0);
_.W([_.q(),_.X("design:type",Number)],hi.prototype,"showDelayMs",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.targetId"),_.X("design:type",Object),_.X("design:paramtypes",[])],hi.prototype,"targetId",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],hi.prototype,"webSize",null);_.W([_.q(),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],hi.prototype,"hideFooterBorder",null);
_.W([_.q(),_.X("design:type",Object)],hi.prototype,"isWatch",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"originalTheaterState",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"theaterDisablementPanelIdentifier",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"isWatchWhilePanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"shortsPanel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"liveChatEngagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],hi.prototype,"learningChatEngagementPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"liveChatReplyPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"enableAnchoredPanel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"disableBackdropFilter",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],hi.prototype,"isPersistentPanel",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"trackEngagementPanelVisibility",void 0);_.W([_.q(),_.X("design:type",Object)],hi.prototype,"overscrollContain",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],hi.prototype,"headerElement",void 0);
_.W([_.Z7("#header > *"),_.X("design:type",HTMLElement)],hi.prototype,"header",void 0);_.W([_.Z7("ytd-section-list-renderer"),_.X("design:type",Object)],hi.prototype,"sectionListRendererElement",void 0);_.W([_.Z7("panel-ad-header-image-lockup-view-model"),_.X("design:type",HTMLElement)],hi.prototype,"adHeaderImageLockupViewModel",void 0);_.W([_.Z7("#content"),_.X("design:type",HTMLElement)],hi.prototype,"contentElement",void 0);
_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hi.prototype,"onYtRendererstamperFinished",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hi.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.W([_.wg("data","isFullscreen","isTheaterMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hi.prototype,"dataChanged",null);
_.W([_.ph("isTheaterMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hi.prototype,"isTheaterModeChanged",null);_.W([_.ph("isFullscreen"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hi.prototype,"isFullscreenChanged",null);_.W([_.ph("visibility"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hi.prototype,"visibilityChanged",null);
_.W([_.J({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],hi);
_.B(hi,"ytd-engagement-panel-section-list-renderer",function(){if(bWq!==void 0)return bWq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bWq=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var BXf;var wp=function(){var v=_.z.apply(this,arguments)||this;v.lastRenderedPanelIds=new Set;v.visiblePanels=[];v.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return v};
_.f(wp,_.z);_.K=wp.prototype;_.K.dataChanged=function(){if(this.data){for(var v=[],Q=_.L(this.data),V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0,b=void 0,F=(E=V)==null?void 0:(b=E.engagementPanelSectionListRenderer)==null?void 0:b.visibility;b=E=void 0;((E=V)==null?0:(b=E.engagementPanelSectionListRenderer)==null?0:b.targetId)&&F!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&v.push(V)}this.visiblePanels=v}else this.visiblePanels=[]};
_.K.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}}};
_.K.withoutVisiblePanelById=function(v){return this.visiblePanels.filter(function(Q){var V;return((V=Q.engagementPanelSectionListRenderer)==null?void 0:V.targetId)!==v})};
_.K.onYtChangeEngagementPanelVisibilityAction=function(v){var Q=this,V=_.y(v,_.x6R);if(this.data&&(V==null?0:V.targetId)&&(V==null?0:V.visibility)){var E,b=(E=this.data.find(function(t){var p;return((p=t.engagementPanelSectionListRenderer)==null?void 0:p.targetId)===V.targetId}))==null?void 0:E.engagementPanelSectionListRenderer;
if(b){var F=this.withoutVisiblePanelById(V.targetId);V.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(v=this.data.find(function(t){var p;return((p=t.engagementPanelSectionListRenderer)==null?void 0:p.targetId)===V.targetId}))&&(F=[v].concat(_.ui(F)));
this.hideDelayMs&&V.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&F.length===0?_.XT.addJob(function(){b.visibility=V.visibility;Q.visiblePanels=F},10,this.hideDelayMs):(b.visibility=V.visibility,this.visiblePanels=F);
_.Un(this.hostElement,"yt-engagement-panels-visible-changed",[F])}}};
_.K.onRendererstamperFinished=function(){var v=new Set(this.visiblePanels.map(function(Q){var V;return(V=Q.engagementPanelSectionListRenderer)==null?void 0:V.targetId}));
this.handlePanelVisibilityChange(v,this.lastRenderedPanelIds);this.lastRenderedPanelIds=v};
_.K.handlePanelVisibilityChange=function(v,Q){v=v===void 0?new Set:v;Q=Q===void 0?new Set:Q;if(this.data)for(var V=_.L(this.data),E=V.next();!E.done;E=V.next()){E=E.value;var b=void 0,F=void 0,t=(b=E)==null?void 0:(F=b.engagementPanelSectionListRenderer)==null?void 0:F.targetId;if(t&&(b=Q.has(t),F=v.has(t),t=void 0,!b&&F?(F=b=void 0,t=(b=E)==null?void 0:(F=b.engagementPanelSectionListRenderer)==null?void 0:F.onShowCommands):b&&!F&&(F=b=void 0,t=(b=E)==null?void 0:(F=b.engagementPanelSectionListRenderer)==
null?void 0:F.onHideCommands),t))for(E=_.L(t),t=E.next();!t.done;t=E.next())this.ytComponentBehavior.resolveCommand(t.value)}};
wp.prototype.onRendererstamperFinished=wp.prototype.onRendererstamperFinished;wp.prototype.dataChanged=wp.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],wp.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],wp.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wp.prototype,"lastRenderedPanelIds",void 0);_.W([_.q(),_.X("design:type",Number)],wp.prototype,"hideDelayMs",void 0);_.W([_.q(),_.X("design:type",Array)],wp.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Array)],wp.prototype,"visiblePanels",void 0);_.W([_.q(),_.X("design:type",Boolean)],wp.prototype,"isWatchWhilePanel",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wp.prototype,"dataChanged",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wp.prototype,"onRendererstamperFinished",null);_.W([_.J({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],wp);
_.B(wp,"ytd-watch-engagement-panels",function(){if(BXf!==void 0)return BXf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return BXf=v},{mode:1});var g0I;var Ai=function(){return _.z.apply(this,arguments)||this};
_.f(Ai,_.z);Ai.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.tT(_.m9(this.hostElement).querySelector("#text"),_.U1Z(_.VSa,this.data.companionLegalText))};
Ai.prototype.computeAutoScrollEnabled=function(v,Q){return v&&!Q};
Ai.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Ai.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Ai.prototype.expandedChanged=Ai.prototype.expandedChanged;Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Vc5),_.X("design:type",Object)],Ai.prototype,"ytdAutoScrollBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ai.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],Ai.prototype,"expanded",void 0);
_.W([_.q({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.X("design:type",Boolean)],Ai.prototype,"autoScrollEnabled",void 0);_.W([_.q(),_.X("design:type",String)],Ai.prototype,"expanderIcon",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ai.prototype,"dataChanged",null);
_.W([_.ph("expanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ai.prototype,"expandedChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Ai);
_.B(Ai,"ytd-companion-legal-text-renderer",function(){if(g0I!==void 0)return g0I;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return g0I=v},{mode:1});var scn;var ke=function(){var v=_.z.apply(this,arguments)||this;v.buttonUpdate=_.Y("web_modern_buttons");v.kevlarWatchGrid=_.Y("kevlar_watch_grid");v.centerAlignDescription=_.Y("action_companion_center_align_description");v.truncateDomain=_.Y("action_companion_truncate_domain");v.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");return v};
_.f(ke,_.z);_.K=ke.prototype;_.K.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.K.getOnLayoutVisibleCallback=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.K.getLayoutId=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.K.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",ke.JSC$23295_DEFAULT_AD_BADGE_RENDERER);var v=this.getOnLayoutVisibleCallback();v&&v()}};
_.K.getButtonRenderer=function(v){return v.actionButton&&_.y(v.actionButton,_.KH)?(delete _.y(v.actionButton,_.KH).navigationEndpoint,_.y(v.actionButton,_.KH)):{}};
_.K.onClick=function(v){var Q=this;if((!_.Y("web_modern_buttons")||!_.j$(_.uK(v),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){v=_.aJ();var V=this.getLayoutId();v&&V&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(E){(new _.Um(E)).executeCommand(Q.data.navigationEndpoint,V)}):_.Y("kevlar_companion_resolve_command_killswitch")?_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.mb(this.hostElement,"yt-companion-ad-clicked",["action-companion",V])}};
_.hr.Object.defineProperties(ke.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?0:(Q=v.detailsLine)==null?0:(V=Q.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 v,Q,V,E;return((v=this.data)==null?0:(Q=v.detailsLine)==null?0:(V=Q.adRating)==null?0:(E=V.ratingIcon)==null?0:E.iconType)?_.VK(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;return((v=this.data)==null?0:(Q=v.detailsLine)==null?0:(V=Q.texts)==null?0:(E=V[0])==null?0:E.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?0:(Q=v.description)==null?0:Q.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var v=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return v?v.indexOf("/default_banner")!==-1:!0}}});
ke.prototype.onClick=ke.prototype.onClick;ke.prototype.dataChanged=ke.prototype.dataChanged;ke.JSC$23295_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Lt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ke.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ke.prototype,"rendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ke.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ke.prototype,"buttonUpdate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ke.prototype,"kevlarWatchGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ke.prototype,"centerAlignDescription",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ke.prototype,"truncateDomain",void 0);
_.W([_.q({computed:"computeButtonOverride(buttonUpdate)"}),_.X("design:type",Object)],ke.prototype,"buttonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ke.prototype,"enableMonoStyle",void 0);_.W([_.O("data.detailsLine.adRating.ratingText"),_.X("design:type",Object),_.X("design:paramtypes",[])],ke.prototype,"getRating",null);_.W([_.O("getRating"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ke.prototype,"computeRatingHidden",null);
_.W([_.O("data.detailsLine.adRating.ratingIcon.iconType"),_.X("design:type",Object),_.X("design:paramtypes",[])],ke.prototype,"iconType",null);_.W([_.O("data.detailsLine.texts.0.text"),_.X("design:type",Object),_.X("design:paramtypes",[])],ke.prototype,"getDetailsLine",null);_.W([_.O("getDetailsLine"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ke.prototype,"computeDetailsLineHidden",null);
_.W([_.O("data.description.text"),_.X("design:type",Object),_.X("design:paramtypes",[])],ke.prototype,"getDescriptionText",null);_.W([_.O("getDescriptionText"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ke.prototype,"computeDescriptionTextHidden",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],ke.prototype,"interactionLoggingClientData",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ke.prototype,"hideBanner",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ke.prototype,"dataChanged",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],ke.prototype,"onClick",null);_.W([_.J({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],ke);
_.B(ke,"ytd-action-companion-ad-renderer",function(){if(scn!==void 0)return scn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return scn=v},{mode:_.mV("kevlar_poly_si_batch_j067")?1:2});var uJl;var jce;var TN=function(){var v=_.z.apply(this,arguments)||this;v.buttonUpdate=_.Y("web_modern_buttons");v.hideLegacyBanner=_.Y("enable_dsa_one_click_ata_translators_infeed_elements");v.adInfoButtonStyle="mono";v.adInfoButtonType="text";v.noDotAdBadge=!0;return v};
_.f(TN,_.z);_.K=TN.prototype;_.K.getOnLayoutVisibleCallback=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.K.getLayoutId=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.K.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var v=this.data.image.thumbnail.thumbnails[0];this.imageSrc=v.url?_.oE(v.url):void 0;this.imageWidth=v.width||0;this.imageHeight=v.height||0}this.data.clickthroughEndpoint&&_.y(this.data.clickthroughEndpoint,_.FJ)&&(v=_.y(this.data.clickthroughEndpoint,_.FJ).url,_.Y("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
v||"":v?(v=_.oE(v),this.clickThroughUrl=_.Bq(v)):this.clickThroughUrl=void 0);(v=this.getOnLayoutVisibleCallback())&&v()}};
_.K.onClick=function(v){_.j$(_.uK(v),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(v)};
_.K.handleClick=function(){var v=this;this.data&&this.data.clickthroughEndpoint&&(_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(Q){v.macroReplacementBehavior.sendServiceRequestAction([Q])}),_.mb(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.K.onLoad=function(){_.Un(this.hostElement,"yt-refit-popups-action")};
_.hr.Object.defineProperties(TN.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}}});
TN.prototype.onLoad=TN.prototype.onLoad;TN.prototype.onClick=TN.prototype.onClick;TN.prototype.dataChanged=TN.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TN.prototype,"rendererBehavior",void 0);_.W([_.M(HOl.YtMacroReplacementBehavior),_.X("design:type",Object)],TN.prototype,"macroReplacementBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TN.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],TN.prototype,"buttonUpdate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],TN.prototype,"hideLegacyBanner",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],TN.prototype,"adInfoButtonStyle",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],TN.prototype,"adInfoButtonType",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],TN.prototype,"macros",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],TN.prototype,"interactionLoggingClientData",null);_.W([_.q(),_.X("design:type",String)],TN.prototype,"clickThroughUrl",void 0);_.W([_.q(),_.X("design:type",_.Je)],TN.prototype,"imageSrc",void 0);_.W([_.q(),_.X("design:type",Number)],TN.prototype,"imageWidth",void 0);_.W([_.q(),_.X("design:type",Number)],TN.prototype,"imageHeight",void 0);_.W([_.q(),_.X("design:type",Object)],TN.prototype,"noDotAdBadge",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],TN.prototype,"dataChanged",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],TN.prototype,"onClick",null);_.W([_.tM("load"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],TN.prototype,"onLoad",null);_.W([_.J({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],TN);
_.B(TN,"ytd-image-companion-renderer",function(){if(jce!==void 0)return jce;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return jce=v},{mode:_.mV("kevlar_poly_si_batch_j067")?1:2});var WoI;var Ye=function(){return _.z.apply(this,arguments)||this};
_.f(Ye,_.z);_.K=Ye.prototype;_.K.dataChanged=function(){this.set("data.adBadge",Ye.JSC$23304_DEFAULT_AD_BADGE_RENDERER);if(this.data){var v=this.getOnLayoutVisibleCallback();v&&v()}};
_.K.getOnLayoutVisibleCallback=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.K.getLayoutId=function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.K.onCompanionClicked=function(v){this.data&&(v.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.mb(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.K.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var v=_.aJ(),Q=this.getLayoutId(),V=this.data.clickToAdvSiteEndpoint;v&&Q&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(E){(new _.Um(E)).executeCommand(V,Q)}):_.Hj(this.hostElement,"yt-navigate",{endpoint:V})}};
_.K.sendTrackingPings=function(v){if(v&&v.length!==0&&v[0].loggingUrls&&(v=v[0].loggingUrls.map(this.getBaseUrl)))for(var Q=0;Q<v.length;Q++)_.Vp(v[Q])};
_.K.getBaseUrl=function(v){return v.baseUrl||""};
_.hr.Object.defineProperties(Ye.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.Q9("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}}});
Ye.prototype.onCompanionClicked=Ye.prototype.onCompanionClicked;Ye.prototype.dataChanged=Ye.prototype.dataChanged;Ye.JSC$23304_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Lt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ye.prototype,"data",void 0);_.W([_.Z7("#title"),_.X("design:type",HTMLElement)],Ye.prototype,"shopTitle",void 0);
_.W([_.wg("data.impressionEndpoints"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ye.prototype,"dataChanged",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Ye.prototype,"interactionLoggingClientData",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Ye.prototype,"onCompanionClicked",null);
_.W([_.J({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Ye);
_.B(Ye,"ytd-shopping-companion-renderer",function(){if(WoI!==void 0)return WoI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return WoI=v},{mode:1});_.ad(_.x(function(v){var Q=v.data;v=_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg});var V=_.n4(function(){return Q().interaction},eJI);
_.sX(function(){var E,b;b=(b=_.Q9("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.onLayoutVisibleCallback:null;(E=b)==null||E()},"Sn");
return _.P("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.EP(function(E){_.Un(E.currentTarget,"yt-refit-popups-action")}),
el:_.ud(v,V),"aria-label":function(){var E,b;return(E=Q().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label}},_.P("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(E){return _.P(_.XA,{data:E.data,
targetHeight:80,customCommandResolver:eJI})}})),_.P("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.P("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.P(_.Pw,{data:function(){return Q().adBadge}},{adBadgeViewModel:function(E){return _.P(_.Ss,{data:E.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.P("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.P(_.Pw,{data:function(){return Q().menu}},{buttonViewModel:_.D6}))))},"Tn"),"banner-image-layout-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;v=_.k0({visibilityCallback:function(E){var b,F=(b=Q().interaction)==null?void 0:b.onFirstVisible;E&&F&&_.nx(F)},
showOption:_.Mg});var V=_.n4(function(){return Q().interaction},ZUl);
_.sX(function(){var E,b;b=(b=_.Q9("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.onLayoutVisibleCallback:null;(E=b)==null||E()},"Un");
return _.P("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.ud(v,V)},_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.P(_.Pw,{data:function(){return Q().adImage}},{adImageViewModel:function(E){return _.P(_.XA,{data:E.data,
targetHeight:80,customCommandResolver:ZUl})}})),_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.P(_.Pw,{data:function(){return Q().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.P(Jqq,{data:E.data,
customCommandResolver:ZUl})}})),_.P(_.Pw,{data:function(){return Q().adButton}},{adButtonViewModel:function(E){return _.P(_.Dr,{data:E.data,
customCommandResolver:ZUl})}}),_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.P(_.Pw,{data:function(){return Q().menu}},{buttonViewModel:_.D6}))))},"Vn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.pJ}});var o0e={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"},yz=function(){var v=_.z.apply(this,arguments)||this;v.updateCompanionDataJobId=0;v.contentVideoId=null;v.player=null;v.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return v};
_.f(yz,_.z);_.K=yz.prototype;_.K.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:o0e}}};
_.K.attached=function(){var v=this,Q=_.aJ();Q&&Q.getPlayerPromise().then(function(V){v.getCachedDataAndListen(V)})};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.K.updateRendererStamper=function(){var v={};if(this.data)for(var Q in o0e)if(this.data[Q]){v[Q]=this.data[Q];break}if(this.oneofRenderer!=void 0||Object.keys(v).length)this.oneofRenderer=v};
_.K.getCachedDataAndListen=function(v){var Q=this.retrieveCachedCompanionData();Q&&Object.keys(Q).length&&this.receiveCompanionData(Q);this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=v};
_.K.retrieveCachedCompanionData=function(){return _.bb.yt&&_.bb.yt.www&&_.bb.yt.www.ads&&_.bb.yt.www.ads.eventcache&&_.bb.yt.www.ads.eventcache.getLastCompanionData?_.bb.yt.www.ads.eventcache.getLastCompanionData():null};
_.K.receiveCompanionData=function(v){v&&Object.keys(v).length?(this.contentVideoId=v.contentVideoId,this.setCompanionData(v)):this.setCompanionData(v)};
_.K.setCompanionData=function(v){this.cancelPendingCompanionAdJobs();if(v){this.updateCompanionDataJobId=0;for(var Q in o0e)o0e.hasOwnProperty(Q)&&(this.data[Q]=void 0);v.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",v.shoppingCompanionCarouselRenderer):v.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",v.imageCompanionAdRenderer):v.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",v.actionCompanionAdRenderer),_.Un(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Un(this.hostElement,"yt-hide-tvfilm-offer-module")):v.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",v.bannerImageLayoutViewModel):v.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",v.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.K.dataChanged=function(){var v=this,Q=_.aJ();Q?Q.getPlayerPromise().then(function(V){v.contentVideoId&&V.getVideoUrl().includes("v="+v.contentVideoId)||(v.cancelPendingCompanionAdJobs(),v.updateRendererStamper())}):_.V9(Error("bp"))};
_.K.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.XT.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.K.handleCompanionAdClicked=function(v,Q){this.player.onAdUxClicked(v,Q);this.player.pauseVideo()};
yz.prototype.dataChanged=yz.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],yz.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],yz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],yz.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],yz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],yz.prototype,"oneofRenderer",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],yz.prototype,"dataChanged",null);_.W([_.J({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],yz);
_.B(yz,"ytd-companion-slot-renderer",function(){if(uJl!==void 0)return uJl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return uJl=v},{mode:_.mV("kevlar_poly_si_batch_j067")?
1:2});var XaJ;var cz=function(){return _.z.apply(this,arguments)||this};
_.f(cz,_.z);cz.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
cz.prototype.dataChanged=cz.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],cz.prototype,"companionSlotData",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cz.prototype,"dataChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],cz);
_.B(cz,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(XaJ!==void 0)return XaJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return XaJ=v},{mode:1});var aeI;var fS=function(){var v=_.z.apply(this,arguments)||this;v.skinnyMode=!1;v.COMPACT_EVENT_COUNT=4;v.onShelfToggleButtonTap=function(){v.logTap(v.data);v.showingMore=!v.showingMore};
v.onShelfToggleButtonFocus=function(){v.showingMore||(v.logTap(v.data),v.showingMore=!0,_.PE(v,function(){var Q=v.COMPACT_EVENT_COUNT-1,V;(V=_.m9(v.hostElement).querySelector("#event-"+Q))==null||V.focus()}))};
return v};
_.f(fS,_.z);_.K=fS.prototype;_.K.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.K.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.K.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Lh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Lh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Lh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Lh(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Lh(this.infoTooltip,this.infoTooltip.hide))};
_.K.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Lh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Lh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Lh(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Lh(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Lh(this.infoTooltip,this.infoTooltip.hide))};
_.K.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)};
_.K.onShowingMoreChanged=function(){var v;this.showingMoreChanged((v=this.showingMore)!=null?v:!1)};
_.K.showingMoreChanged=function(v){var Q=this.get("data.events")||[];this.set("restEvents",Q.slice(1,v?Q.length:this.COMPACT_EVENT_COUNT).map(function(V){return V.ticketEventRenderer}));
Q.slice(0,v?Q.length:this.COMPACT_EVENT_COUNT).forEach(function(V){var E=_.Mo();V=V.ticketEventRenderer.trackingParams;_.CC()&&E&&V&&(V=_.dE(V),E&&_.Bp(E,V))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.K.computeAriaLabel=function(v){return v.subtitle1+", "+v.subtitle2};
_.K.logTap=function(v){_.CC()&&this.ytRendererBehavior.logExplicitClick(v)};
_.K.isKeyboardAction=function(v){return this.get("detail.x",v)===0&&this.get("detail.y",v)===0};
_.K.onFirstEventTap=function(v){v.target&&this.handleTap(v.target,this.firstEvent,this.isKeyboardAction(v))};
_.K.onTicketLinkTap=function(v){v.target&&this.handleTap(v.target,v.model.item,this.isKeyboardAction(v))};
_.K.handleTap=function(v,Q,V){if(Q.buttonCommand)if(Q.hasMultipleOffers)Object.assign(_.y(Q.buttonCommand,_.sv),{properties:{source:V?"keyboard":"tap"}}),this.logTap(Q),this.popupPositionTarget=v,_.Qk(this.hostElement,[Q.buttonCommand],this.hostElement);else{var E;if((E=_.y(Q.buttonCommand,_.FJ))==null?0:E.url)this.logTap(Q),_.VN(window,_.y(Q.buttonCommand,_.FJ).url)}};
fS.prototype.onShowingMoreChanged=fS.prototype.onShowingMoreChanged;fS.prototype.dataChanged=fS.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fS.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],fS.prototype,"firstEvent",void 0);_.W([_.q(),_.X("design:type",Object)],fS.prototype,"restEvents",void 0);_.W([_.q(),_.X("design:type",String)],fS.prototype,"imageUrl",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],fS.prototype,"showingMore",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],fS.prototype,"canShowMore",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fS.prototype,"skinnyMode",void 0);_.W([_.q(),_.X("design:type",HTMLElement)],fS.prototype,"popupPositionTarget",void 0);_.W([_.Z7("#banner-info-tooltip"),_.X("design:type",Object)],fS.prototype,"infoTooltip",void 0);
_.W([_.Z7("#info-container"),_.X("design:type",HTMLElement)],fS.prototype,"infoContainer",void 0);_.W([_.Z7("#shelf-toggler"),_.X("design:type",HTMLElement)],fS.prototype,"shelfToggleButton",void 0);_.W([_.Z7("#separator"),_.X("design:type",HTMLDivElement)],fS.prototype,"separator",void 0);_.W([_.q(),_.X("design:type",String)],fS.prototype,"shelfTogglerLabelText",void 0);_.W([_.q(),_.X("design:type",String)],fS.prototype,"shelfTogglerIcon",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fS.prototype,"dataChanged",null);_.W([_.wg("showingMore"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fS.prototype,"onShowingMoreChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],fS);
_.B(fS,"ytd-ticket-shelf-renderer",function(){if(aeI!==void 0)return aeI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return aeI=v},{mode:1});var rqq;var $FP;var Ie9=function(){return _.z.apply(this,arguments)||this};
_.f(Ie9,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ie9.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ie9.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Ie9);
_.B(Ie9,"ytd-comments-entry-point-message-renderer",function(){if($FP!==void 0)return $FP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return $FP=v},{mode:1});var HWf;var GN=function(){return _.z.apply(this,arguments)||this};
_.f(GN,_.z);_.hr.Object.defineProperties(GN.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.teaserAvatar)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GN.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],GN.prototype,"hasAvatar",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],GN);
_.B(GN,"ytd-comments-entry-point-teaser-renderer",function(){if(HWf!==void 0)return HWf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return HWf=v},{mode:1});var mFl;var UFI=function(){return _.z.apply(this,arguments)||this};
_.f(UFI,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UFI.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UFI.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],UFI);
_.B(UFI,"ytd-comments-simplebox-renderer",function(){if(mFl!==void 0)return mFl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return mFl=v},{mode:1});var CS=function(){var v=_.z.apply(this,arguments)||this;v.fullHeight=!_.Y("comment_teaser_full_height_kill_switch")&&_.Y("kevlar_watch_grid");return v};
_.f(CS,_.z);CS.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"}}}};
CS.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
CS.prototype.onTap=function(){var v=this.tapCommand;v&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(v))};
CS.prototype.onKeyUp=function(v){if(v.keyCode===13)this.onTap()};
_.hr.Object.defineProperties(CS.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.onTap)return this.data.onTap;var Q,V;if(((Q=this.data)==null?0:Q.teaserContent)||((V=this.data)==null?0:V.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)!=null&&v.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
CS.prototype.onKeyUp=CS.prototype.onKeyUp;CS.prototype.onTap=CS.prototype.onTap;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],CS.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CS.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],CS.prototype,"fullHeight",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"tapCommand",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"simpleboxPlaceholder",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],CS.prototype,"hasSimpleboxPlaceholder",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"simpleboxAvatar",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"teaserContent",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],CS.prototype,"hasTeaserContent",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"teaserAvatar",null);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],CS.prototype,"hasTeaserAvatar",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"messageText",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],CS.prototype,"contentRenderer",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],CS.prototype,"hasContents",null);
_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],CS.prototype,"hasContentRenderer",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],CS.prototype,"onTap",null);_.W([_.tM("keypress"),_.X("design:type",Function),_.X("design:paramtypes",[_.Gl]),_.X("design:returntype")],CS.prototype,"onKeyUp",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],CS);
_.B(CS,"ytd-comments-entry-point-header-renderer",function(){if(rqq!==void 0)return rqq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return rqq=v},{mode:1});var vyb;_.ad(_.s3Z,"yt-animated-rolling-number",{props:{numberText:_.pJ,numberValue:_.pJ,heightPx:_.pJ,fontSizeMultiplier:_.pJ,shouldAnimate:_.pJ,forceRollUp:_.pJ}});var QTI=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Vud={numberText:"",heightPx:2*QTI,shouldAnimate:!1},M4=function(){var v=_.z.apply(this,arguments)||this;v.usingAnimatedComponents=!0;v.wasDetailed=!1;v.JSC$23341_browserSupportsAnimation=_.Y("web_supports_animations_api");v.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};v.detailed=!1;v.shouldAnimate=!1;v.viewCountProps=Vud;v.dateTextProps=
Vud;v.metadataBadgesInDescription=_.Y("web_metadata_badges_in_description");return v};
_.f(M4,_.z);_.K=M4.prototype;_.K.attached=function(){var v=this;_.ht().resolve(_.Ot).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(Q){v.set("videoPrimaryInfoRenderer.subtitle",Q)})};
_.K.detached=function(){_.ht().resolve(_.Ot).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.K.resetAnimationState=function(){this.shouldAnimate=!1};
_.K.updateDynamicMetadata=function(){if(this.JSC$23341_browserSupportsAnimation){if(!this.detailed){var v,Q,V,E;var b=(v=this.videoPrimaryInfoRenderer)==null?void 0:(Q=v.viewCount)==null?void 0:(V=Q.videoViewCountRenderer)==null?void 0:(E=V.extraShortViewCount)==null?void 0:E.simpleText;var F,t,p,Z;var d=(F=this.videoPrimaryInfoRenderer)==null?void 0:(t=F.viewCount)==null?void 0:(p=t.videoViewCountRenderer)==null?void 0:(Z=p.shortViewCount)==null?void 0:Z.simpleText}if(!d){var w,A,k,T;b=(w=this.videoPrimaryInfoRenderer)==
null?void 0:(A=w.viewCount)==null?void 0:(k=A.videoViewCountRenderer)==null?void 0:(T=k.unlabeledViewCountValue)==null?void 0:T.simpleText;var c,C,R,l;d=(c=this.videoPrimaryInfoRenderer)==null?void 0:(C=c.viewCount)==null?void 0:(R=C.videoViewCountRenderer)==null?void 0:(l=R.viewCount)==null?void 0:l.simpleText}var S,a,g;v=Number((S=this.videoPrimaryInfoRenderer)==null?void 0:(a=S.viewCount)==null?void 0:(g=a.videoViewCountRenderer)==null?void 0:g.originalViewCount);var u,r;S=(u=this.videoPrimaryInfoRenderer)==
null?void 0:(r=u.relativeDateText)==null?void 0:r.simpleText;var v9;u=!((v9=this.videoPrimaryInfoRenderer)==null||!v9.relativeDateText);if(b&&d&&v&&(S||!u)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;v9=d.split(new RegExp("("+b+")"));b=_.u3(v9[0]);var t3;d={numberText:(t3=v9[1])!=null?t3:"",numberValue:v,heightPx:2*QTI,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var h3;t3=((h3=v9[2])!=null?h3:"")+"  ";this.setViewCount(d,b,_.u3(t3));
if(!this.detailed&&u){b=S.split(/(\d+)/);h3=_.u3(b[0]);var OB;t3={numberText:(OB=b[1])!=null?OB:"",heightPx:2*QTI,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var kQ;OB=((kQ=b[2])!=null?kQ:"")+"  ";this.setDateText(t3,h3,_.u3(OB))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.K.setViewCount=function(v,Q,V){_.j0(Q)!==_.j0(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=Q);this.viewCountProps.numberText!==(v==null?void 0:v.numberText)&&(this.viewCountProps=v||Vud);_.j0(V)!==_.j0(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=V)};
_.K.setDateText=function(v,Q,V){_.j0(Q)!==_.j0(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=Q);this.dateTextProps.numberText!==(v==null?void 0:v.numberText)&&(this.dateTextProps=v||Vud);_.j0(V)!==_.j0(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=V)};
_.K.onYtUpdateViewershipAction=function(v){this.videoPrimaryInfoRenderer&&(_.y(v,DYl).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.y(v,DYl).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.y(v,DYl).viewCount)))};
_.K.onYtUpdateDateTextAction=function(v){if(this.videoPrimaryInfoRenderer){v=_.y(v,_.MwI).dateText;this.shouldAnimate=!0;var Q;((Q=this.videoPrimaryInfoRenderer)==null?0:Q.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",v):this.set("videoPrimaryInfoRenderer.dateText",v)}};
_.hr.Object.defineProperties(M4.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return A15(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.j0(A15(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.j0(this.viewCountPreNumberText),this.viewCountProps.numberText,_.j0(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.j0(this.dateTextPreNumberText),this.dateTextProps.numberText,_.j0(this.dateTextPostNumberText)].join("")}}});
M4.prototype.updateDynamicMetadata=M4.prototype.updateDynamicMetadata;M4.prototype.resetAnimationState=M4.prototype.resetAnimationState;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],M4.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],M4.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"detailed",void 0);_.W([_.q(),_.X("design:type",Object)],M4.prototype,"shouldAnimate",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"viewCountPreNumberText",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"viewCountProps",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"viewCountPostNumberText",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"dateTextPreNumberText",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"dateTextProps",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"dateTextPostNumberText",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],M4.prototype,"metadataBadgesInDescription",void 0);_.W([_.O("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.X("design:type",Object),_.X("design:paramtypes",[])],M4.prototype,"infoText",null);
_.W([_.O("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.X("design:type",String),_.X("design:paramtypes",[])],M4.prototype,"descriptionInfoTooltipText",null);_.W([_.O("detailed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],M4.prototype,"showDescriptionInfoTooltip",null);
_.W([_.O("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.X("design:type",String),_.X("design:paramtypes",[])],M4.prototype,"animatedViewCountAccessibilityLabel",null);_.W([_.O("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.X("design:type",String),_.X("design:paramtypes",[])],M4.prototype,"animatedDateTextAccessibilityLabel",null);
_.W([_.ph("videoPrimaryInfoRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M4.prototype,"resetAnimationState",null);_.W([_.ph("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],M4.prototype,"updateDynamicMetadata",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-watch-info-text"})],M4);
_.B(M4,"ytd-watch-info-text",function(){if(vyb!==void 0)return vyb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vyb=v},{mode:1});var EyP;var b2e="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Fin=_.x(function(v){var Q=v.data;var V=v.setTapCommand;_.uH(function(){var E=_.MQ(Q().onTap);V(E)},"CLm0Xe");
return _.P("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO}),_.P("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.P("span",null,function(){return Q().simpleboxText})))},"Xn");var Kin=_.x(function(v){return _.P("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.P(_.h,{cond:function(){return _.y(v.data().avatar,_.Ou)},
then:function(Q){return _.P(_.QO,{data:Q,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.P("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.P(_.tD,{text:function(){return v.data().teaserText}})))},"Yn");var i2I=_.x(function(v){var Q=v.data;var V=v.setTapCommand;_.uH(function(){var E=_.MQ(Q().onTap);V(E)},"qxjCCd");
return _.P("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.P(_.Pw,{data:function(){return Q().teasers}},{commentsEntryPointTeaserViewModel:Kin}))},"$n");var Lic=_.x(function(v){var Q=v.data;var V=v.setTapCommand;_.uH(function(){var E=_.MQ(Q().onTap);V(E)},"CRZByf");
return _.P("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.P(_.tD,{text:function(){return Q().messageText}}))},"bo");var tu5=_.x(function(v){var Q=v.data;var V=v.setTapCommand;var E=v.isDisabled;_.uH(function(){var b=(E==null?0:E())?void 0:_.MQ(Q().onTap);V(b)},"GZxRqd");
return _.P("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.P(_.L_,{icon:function(){return Q().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.P(_.h,{cond:function(){return Q().image},
then:function(b){return _.P(_.gE,{data:b,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.P(_.tD,{text:function(){return Q().text},
className:function(){return Q().image||Q().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.P(_.Pw,{data:function(){return Q().button}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:E==null?void 0:E()}}})}}))},"eo");var pEE=_.x(function(v){var Q=v.data;var V=v.itemIndex;var E=v.selectedIndex;var b=v.indexUpdatedCallback;var F=v.observer;v=v.title;var t=_.Ze("yt-carousel-item-view-model",function(A){F&&F().observe(A)}),p=function(A){V()===E()&&b(A)},Z=_.Z1(jrP),d=_.Z1(_.VFS),w=function(){var A,k,T,c,C;
return((A=Q())==null?void 0:A.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!Z()||((k=Q())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((T=d())==null?void 0:T.includes("PAposts_by_host"))||((c=Q())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((C=d())==null?void 0:C.includes("PAyouchat"))};
return _.P("yt-carousel-item-view-model",{el:t,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":v},_.P(_.Pw,{data:function(){var A,k;return(k=(A=_.y(Q().carouselItem,HUe))==null?void 0:A.textCarousel)!=null?k:Q().carouselItem}},{textCarouselItemViewModel:function(A){return _.P(tu5,{data:A.data,
setTapCommand:p,isDisabled:w})},
commentTeaserCarouselItemViewModel:function(A){return _.P(i2I,{data:A.data,setTapCommand:p})},
commentInputBoxCarouselItemViewModel:function(A){return _.P(Fin,{data:A.data,setTapCommand:p})},
commentsEntryPointMessageViewModel:function(A){return _.P(Lic,{data:A.data,setTapCommand:p})}}))},"fo");var ene=_.x(function(v){var Q=v.numDots;var V=v.activeIndex;return _.P("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.P(_.xb,{each:function(){return Array.from({length:Q()})},
keyBy:"INDEX"},function(E,b){return _.P("div",{class:function(){var F={};return _.Yl("ytCarouselDotsShapeDot",(F.ytCarouselDotsShapeDotActive=b===V(),F))}})}))},"go");var Z29=_.x(function(v){var Q=v.data;var V=v.handleCarouselNavigation;var E=v.numItems;var b=v.selectedIndex;var F=function(){return{disabled:b()===0}},t=function(){return{disabled:b()===E()-1}};
return _.P("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.P("div",null,_.P("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return Q().title}),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(p){return _.P("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return Q().subtitleAccessibilityText}},p)}})),_.P(_.h,{cond:function(){return E()>1},
then:function(){return _.P("div",{class:"ytCarouselTitleViewModelNavigation"},_.P(ene,{numDots:E,activeIndex:b}),_.P(_.h,{cond:function(){return Q().previousButton},
then:function(p){return _.P(_.Pw,{data:p},{buttonViewModel:function(Z){return _.P(_.D6,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(-1)},
buttonOverrides:F})}})}}),_.P(_.h,{cond:function(){return Q().nextButton},
then:function(p){return _.P(_.Pw,{data:p},{buttonViewModel:function(Z){return _.P(_.D6,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(1)},
buttonOverrides:t})}})}}))}}))},"ho");_.ad(_.x(function(v){var Q=v.data;var V,E=_.Ze("yt-video-metadata-carousel-view-model"),b=_.Ze("div",function(u){var r=function(){var v9=u.offsetWidth*C(),t3=24*(C()-1);k(v9+t3)};
r();window.ResizeObserver&&(V=new ResizeObserver(r),V.observe(u))}),F=_.r7("HTML_DIR")==="rtl",t=!1,p=0,Z=0;
v=_.L(_.Ge(0,void 0,"M49TDf"));var d=v.next().value,w=v.next().value;v=_.L(_.Ge(0,void 0,"zLIok"));var A=v.next().value,k=v.next().value;v=_.L(_.Ge(!1,void 0,"bhelhc"));var T=v.next().value,c=v.next().value,C=function(){var u,r,v9;return(v9=(u=Q())==null?void 0:(r=u.carouselTitles)==null?void 0:r.length)!=null?v9:0},R=function(){b.value&&b.value.scrollLeft!==p&&w((F?b.value.scrollLeft<p:b.value.scrollLeft>p)?Math.min(d()+1,C()-1):Math.max(d()-1,0))},l;
window.IntersectionObserver&&(l=new IntersectionObserver(function(u){u=_.L(u);for(var r=u.next();!r.done;r=u.next())if(r.value.isIntersecting){if(t){t=!1;break}R()}else w(Z)},{threshold:.2}));
_.uH(function(){if(b.value){var u=(F?-1:1)*(A()/C()+12)*(T()&&l?Z:d());typeof b.value.scrollTo==="function"?b.value.scrollTo({left:u,behavior:"smooth"}):b.value.scrollLeft=u;p=u;Z=T()&&l?Z:d()}},"s9rbgc");
var S,a=function(u){S=u};
_.j_(function(){var u;(u=V)==null||u.disconnect();var r;(r=l)==null||r.disconnect()});
var g=function(u){u=d()+u;u>=0&&u<C()&&(t=!0,w(u))};
return _.P("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:E,"on:click":_.EP(function(u){if(_.cw(_.yw(u),E.value,["BUTTON".toString()])||!S)return!1;_.ht().resolve(_.At).resolveCommand(S,{forceClickLogging:!0});return!1}),
"on:touchstart":_.EP(function(){c(!0);return!1}),
"on:touchend":_.EP(function(){l||R();c(!1);return!1}),
hidden:function(){var u,r;return!((u=Q())==null?0:(r=u.carouselItems)==null?0:r.length)}},_.P("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.P(_.h,{cond:function(){return Q().carouselTitles},
then:function(u){return _.P(_.Pw,{data:function(){return u()[T()&&l?Z:d()]}},{carouselTitleViewModel:function(r){return _.P(Z29,{data:r.data,
handleCarouselNavigation:g,numItems:C,selectedIndex:d})}})}})),_.P("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:b},_.P("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+A()+"px;"}},_.P(_.h,{cond:function(){return Q().carouselItems},
then:function(u){return _.P(_.xb,{each:u},function(r,v9){return _.P(_.Pw,{data:function(){return r}},{carouselItemViewModel:function(t3){return _.P(pEE,{data:t3.data,
itemIndex:v9,selectedIndex:d,indexUpdatedCallback:a,observer:l,title:function(){a:{var h3=v9();var OB,kQ=(OB=Q())==null?void 0:OB.carouselTitles;if(kQ&&(h3=kQ[h3])){var yo;h3=(yo=_.y(h3,IxP))==null?void 0:yo.title;break a}h3=void 0}return h3}})}})})}}))))},"jo"),"yt-video-metadata-carousel-view-model",{props:{data:_.pJ}});var PuE=_.Y("web_action_buttons_update_owner_width")?32:12,O8=function(){var v=_.z.apply(this,arguments)||this;v.isHovering=!1;v.enableColorSampling=_.Y("web_delhi_colorful_sd");v.metadataBadgesInDescription=_.Y("web_metadata_badges_in_description");v.descriptionCollapsed=!0;v.useFadedScrimDescription=_.Y("kevlar_enable_faded_scrim_on_description");v.skinnyMode=!1;v.playlist=!1;v.isDark=document.documentElement.hasAttribute("dark");v.disableVideoOwnerOnTap=_.Y("swatchie_video_owner_on_tap_ks");v.swatcherooDelayLoad=
_.Y("swatcheroo_enable_ghost_cards");v.primaryMenuWidth=0;v.videoId="";v.titleHeadlineXs=_.Y("web_watch_typography_title_headline_xs");v.titleHeadlineS=_.Y("web_watch_typography_title_headline_s");v.titleHeadlineM=_.Y("web_watch_typography_title_headline_m");v.titleHashtagBlackLinkified=_.Y("web_title_hashtag_black_linkified");v.titleHashtagGreyLinkified=_.Y("web_title_hashtag_grey_linkified");v.actionButtonsUpdateOwnerWidth=_.Y("web_action_buttons_update_owner_width");v.shouldForceIconOnly=!1;v.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};v.isFullscreen=!1;v.isTheaterMode=!1;return v};
_.f(O8,_.z);_.K=O8.prototype;_.K.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.K.updateOwnerAndDescriptionPosition=function(){_.Y("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.qB(this.bottomRowElement,this.ownerElement)):(_.qB(this.bottomRowElement,this.descriptionElement),_.qB(this.topRowElement,this.ownerElement)))};
_.K.titleOnTap=function(v){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;((Q=window.getSelection())==null?0:Q.toString().length)||this.handleExpandDescriptionCommands()}};
_.K.videoOwnerOnTap=function(v){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.K.detached=function(){var v=this,Q;return _.e(function(V){(Q=v.resizeObserver)==null||Q.disconnect();_.q1(V)})};
_.K.maybeAttachResizeObserver=function(){var v=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.FK(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){v.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.K.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var v=this.hostElement.clientWidth,Q=Math.max(this.largerItemWrap?400:350,v/2-PuE);_.Y("web_action_buttons_update_owner_width")&&(Q=this.ownerElement.clientWidth+PuE);this.actionsOnSeparateLine=this.primaryMenuWidth>v-Q?!0:!1}};
_.K.stripAttributedDescription=function(v){return{content:v.content.replace(/[\r\n]{2,}/g,"\n")}};
_.K.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.Y("web_modern_buttons"),forceIconButton:!_.Y("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:_.Y("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"}}}};
_.K.videoPrimaryInfoRendererChanged=function(){var v;if((v=this.videoPrimaryInfoRenderer)==null?0:v.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.K.videoSecondaryInfoRendererChanged=function(){var v,Q;(v=this.descriptionInlineExpander)==null||(Q=v.collapse)==null||Q.call(v);this.descriptionExpandClientVe=_.Vw(110509);this.descriptionCollapseClientVe=_.Vw(110510);v=_.Mo();Q=_.CC();v&&Q&&(_.Y("combine_ve_grafts")?(_.za(_.tR(),this.descriptionExpandClientVe,Q),_.za(_.tR(),this.descriptionCollapseClientVe,Q)):_.x7(v,Q,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.K.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.K.updateTopLevelIconsOnly=function(){var v=this;_.Y("top_level_update_killswitch")||this.menu&&_.XT.addLowPriorityJob(function(){v.menu.topLevelIconsOnly=v.skinnyMode},_.T_("swathceroo_delay_flexible_menu_update",100))};
_.K.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.Y("web_action_buttons_minimize_subscribe")};
_.K.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.K.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.K.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.K.onYtTextInlineExpanderExpandedChanged=function(){if(!_.Y("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var v,Q;(Q=(v=this.structuredDescriptionContentRendererElement).resize)==null||Q.call(v)}};
_.K.onRenderStamperFinished=function(v){(v==null?void 0:v.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.K.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.K.onYtExpanderLessTapped=function(){var v,Q=(v=this.videoSecondaryInfoRenderer)==null?void 0:v.showLessCommand;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.K.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.K.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.K.onDescriptionClick=function(v){if(!_.j$(_.uK(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;((Q=window.getSelection())==null?0:Q.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.Y("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.K.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.K.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.K.logCollapseClick=function(){var v=_.Mo();v&&this.descriptionCollapseClientVe&&_.uI(v,this.descriptionCollapseClientVe)};
_.K.logExpandClick=function(){var v=_.Mo();v&&this.descriptionExpandClientVe&&_.uI(v,this.descriptionExpandClientVe)};
_.K.collapseDescription=function(){this.descriptionCollapsed=!0};
_.K.scrollToTopOfContainer=function(){_.mb(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.K.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.K.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.K.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.K.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var v,Q;(Q=(v=this.descriptionInlineExpander).resize)==null||Q.call(v)}else _.Iy(new _.xd("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()}};
_.K.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var v,Q,V,E,b=_.Y("web_action_buttons_update_owner_width")?(V=(v=_.m9(this.menu).querySelector("#button-shape"))==null?void 0:v.clientWidth)!=null?V:0:(E=(Q=_.m9(this.menu).querySelector("#button"))==null?void 0:Q.clientWidth)!=null?E:0,F,t;v=((t=(F=_.m9(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:F.clientWidth)!=null?t:0)+8+b;var p,Z;b=(Z=(p=_.m9(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:p.children.length)!=null?Z:2;v<=8*b||(this.primaryMenuWidth=v)}};
_.K.onYtUpdateTitleAction=function(v){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.y(v,OiV).title)};
_.K.onYtUpdateDescriptionAction=function(v){if(v=_.y(v,_.BqV)){var Q,V=!((Q=this.videoSecondaryInfoRenderer)==null||!Q.attributedDescription);v.isEmpty||!v.description&&!v.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):v.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",v.attributedDescription):v.description&&(V?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.cg(v.description)):this.set("videoSecondaryInfoRenderer.description",v.description))}};
_.K.onYtDarkModeToggledAction=function(v){this.isDark=v};
_.K.registerPanel=function(){if(!_.Y("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var v=_.Y("web_watch_imax_theater_mode")&&this.isTheaterMode;v=_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||v;var Q=_.ht().resolve(_.$2);Q&&!v&&Q.registerPanel("engagement-panel-structured-description",this)}};
_.K.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.K.parseColorSamplingData=function(){var v;if(_.Y("web_delhi_colorful_sd")&&((v=this.structuredDescriptionContentRenderer)==null?0:v.items)&&(v=this.structuredDescriptionContentRenderer.items.find(function(b){return!!_.y(b,SG)}))){var Q,V;
this.hoverColor={lightTheme:(Q=_.y(v,SG))==null?void 0:Q.lightThemeColorPalette,darkTheme:(V=_.y(v,SG))==null?void 0:V.darkThemeColorPalette};var E;this.hoverText=(E=_.y(v,SG))==null?void 0:E.colorSampledDescriptionBodyText}};
_.K.updateHoverColor=function(){if(_.Y("web_delhi_colorful_sd")){var v=this.hoverColor,Q={},V;v=(V=this.isDark?v==null?void 0:v.darkTheme:v==null?void 0:v.lightTheme)!=null?V:{};V=_.L(b2e);for(var E=V.next();!E.done;E=V.next()){E=E.value;var b=v[E];Q["--yt-saturated-"+_.LC(E)]=b?_.CF(b):"initial"}_.F6(this.hostElement,Q)}};
_.K.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.K.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.K.showPanel=function(v){this.expandDescription();var Q=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;Q.resize();var V,E=v==null?void 0:(V=v.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;E?_.XT.addJob(function(){Q==null||Q.scrollToSection(E)},8):this.scrollToTopOfContainer()};
_.K.isVisible=function(){return!this.descriptionCollapsed};
_.K.getReloadContinuation=function(){};
_.K.hidePanel=function(){};
_.K.updatePanel=function(){};
_.hr.Object.defineProperties(O8.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var v;return _.Y("web_delhi_colorful_sd")&&(v=this.structuredDescriptionContentRenderer)!=null&&v.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(Q){return!_.y(Q,SG)&&!_.y(Q,l9j)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.structuredDescriptionContentRendererComputed)!=null&&v.items){var Q;v=_.L((Q=this.structuredDescriptionContentRendererComputed)==null?void 0:Q.items);for(Q=v.next();!Q.done;Q=v.next())if(Q=_.y(Q.value,_.RrS))return Q}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoPrimaryInfoRenderer)==null?0:v.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!!((v=this.videoSecondaryInfoRenderer)==null?0:(Q=v.owner)==null?0:(V=Q.videoOwnerRenderer)==null?0:V.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var v,Q;if((v=this.videoSecondaryInfoRenderer)==null?0:(Q=v.attributedDescription)==null?0:Q.content){var V,E;return(E=this.stripAttributedDescription((V=this.videoSecondaryInfoRenderer)==null?void 0:V.attributedDescription))!=null?E:{runs:[]}}}if(_.Y("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var b,F,t,p;return(p=(t=(b=this.videoSecondaryInfoRenderer)==
null?void 0:b.description)!=null?t:(F=this.videoSecondaryInfoRenderer)==null?void 0:F.attributedDescription)!=null?p:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.videoSecondaryInfoRenderer)==null?void 0:v.headerRuns)!=null?Q:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.commentsEntryPointHeaderRenderer)==null||!v.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoMetadataCarousel)==null||!v.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.T_("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=Object.assign({},(v=this.videoSecondaryInfoRenderer)==null?void 0:(Q=v.metadataRowContainer)==null?void 0:Q.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 v,Q,V=Object.assign({},(v=this.videoSecondaryInfoRenderer)==null?void 0:(Q=v.metadataRowContainer)==null?void 0:Q.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 v,Q;return!!((v=this.structuredDescriptionContentRendererComputed)==null?0:(Q=v.items)==null?0:Q.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var v;return(v=this.videoSecondaryInfoRenderer)==null?void 0:v.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.videoSecondaryInfoRenderer)==null?0:(Q=v.owner)==null?0:(V=Q.videoOwnerRenderer)==null?0:V.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;return!!((v=this.videoPrimaryInfoRenderer)==null?0:(Q=v.videoActions)==null?0:(V=Q.menuRenderer)==null?0:(E=V.flexibleItems)==null?0:E.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.NQ(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.NQ(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var v=this;if(_.Y("web_title_hashtag_grey_delinkified")){var Q,V=_.gI.unsafeClone((Q=this.videoPrimaryInfoRenderer)==null?void 0:Q.title);(Q=V==null?void 0:V.runs)&&Q.forEach(function(E){if(E==null?0:E.navigationEndpoint)E.textColor=4284506208,v.isDark&&(E.textColor=4289374890)});
return V}return(V=this.videoPrimaryInfoRenderer)==null?void 0:V.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_title_hashtag_black_delinkified")||_.Y("web_title_hashtag_grey_delinkified")}}});
O8.prototype.updateHoverColor=O8.prototype.updateHoverColor;O8.prototype.parseColorSamplingData=O8.prototype.parseColorSamplingData;O8.prototype.resetDescriptionState=O8.prototype.resetDescriptionState;O8.prototype.registerPanel=O8.prototype.registerPanel;O8.prototype.onYtExpanderLessTapped=O8.prototype.onYtExpanderLessTapped;O8.prototype.onYtExpanderMoreTapped=O8.prototype.onYtExpanderMoreTapped;O8.prototype.onRenderStamperFinished=O8.prototype.onRenderStamperFinished;
O8.prototype.onYtTextInlineExpanderExpandedChanged=O8.prototype.onYtTextInlineExpanderExpandedChanged;O8.prototype.onYtTextInlineExpanderCollapseClicked=O8.prototype.onYtTextInlineExpanderCollapseClicked;O8.prototype.onYtTextInlineExpanderExpandClicked=O8.prototype.onYtTextInlineExpanderExpandClicked;O8.prototype.moveActionsElement=O8.prototype.moveActionsElement;O8.prototype.updateShouldForceIconOnly=O8.prototype.updateShouldForceIconOnly;O8.prototype.updateTopLevelIconsOnly=O8.prototype.updateTopLevelIconsOnly;
O8.prototype.structuredDescriptionContentRendererChanged=O8.prototype.structuredDescriptionContentRendererChanged;O8.prototype.videoSecondaryInfoRendererChanged=O8.prototype.videoSecondaryInfoRendererChanged;O8.prototype.videoPrimaryInfoRendererChanged=O8.prototype.videoPrimaryInfoRendererChanged;O8.prototype.maybeUpdateActionsOnSeparateLine=O8.prototype.maybeUpdateActionsOnSeparateLine;O8.prototype.updateOwnerAndDescriptionPosition=O8.prototype.updateOwnerAndDescriptionPosition;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],O8.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],O8.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],O8.prototype,"ytdReduxBehavior",void 0);_.W([_.Z7("#above-the-fold"),_.X("design:type",HTMLElement)],O8.prototype,"aboveTheFoldContainer",void 0);_.W([_.Z7("#menu ytd-menu-renderer"),_.X("design:type",Object)],O8.prototype,"menu",void 0);_.W([_.Z7("#description-inline-expander"),_.X("design:type",Object)],O8.prototype,"descriptionInlineExpander",void 0);
_.W([_.Z7("#faded-structured-description"),_.X("design:type",Object)],O8.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.W([_.Z7("#structured-description"),_.X("design:type",Object)],O8.prototype,"structuredDescriptionContentRendererElement",void 0);_.W([_.Z7("#title"),_.X("design:type",HTMLElement)],O8.prototype,"titleElement",void 0);_.W([_.Z7("#description"),_.X("design:type",HTMLElement)],O8.prototype,"descriptionElement",void 0);
_.W([_.Z7("#description-interaction"),_.X("design:type",Object)],O8.prototype,"descriptionInteraction",void 0);_.W([_.Z7("#owner"),_.X("design:type",HTMLElement)],O8.prototype,"ownerElement",void 0);_.W([_.Z7("#top-row"),_.X("design:type",HTMLElement)],O8.prototype,"topRowElement",void 0);_.W([_.Z7("#bottom-row"),_.X("design:type",HTMLElement)],O8.prototype,"bottomRowElement",void 0);_.W([_.Z7("#actions"),_.X("design:type",HTMLElement)],O8.prototype,"actionsElement",void 0);
_.W([_.Z7("#bottom-actions"),_.X("design:type",HTMLElement)],O8.prototype,"bottomActionsElement",void 0);_.W([_.Z7("#ytd-watch-info-text"),_.X("design:type",Object)],O8.prototype,"watchInfoTextElement",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"videoSecondaryInfoRenderer",void 0);
_.W([_.q(),_.X("design:type",Object)],O8.prototype,"commentsEntryPointHeaderRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"videoMetadataCarousel",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"structuredDescriptionContentRenderer",void 0);_.W([_.O("structuredDescriptionContentRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"structuredDescriptionContentRendererComputed",null);
_.W([_.q(),_.X("design:type",Object)],O8.prototype,"videoSummary",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"merchShelf",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"infoPanelBelowMetadata",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"hoverColor",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"hoverText",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"isHovering",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"enableColorSampling",void 0);_.W([_.O("structuredDescriptionContentRendererComputed"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"productShelf",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"metadataBadgesInDescription",void 0);_.W([_.O("videoPrimaryInfoRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"shouldHideBadges",null);
_.W([_.O("productShelf","descriptionCollapsed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"shouldShowProductShelf",null);_.W([_.q(),_.X("design:type",Boolean)],O8.prototype,"isWatchFlexy",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"descriptionCollapsed",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],O8.prototype,"useFadedScrimDescription",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"skinnyMode",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("videoSecondaryInfoRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"largerItemWrap",null);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"playlist",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"clarifyBox",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"playerAds",void 0);
_.W([_.q(),_.X("design:type",Boolean)],O8.prototype,"isDark",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],O8.prototype,"actionsOnSeparateLine",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"disableVideoOwnerOnTap",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"swatcherooDelayLoad",void 0);_.W([_.q(),_.X("design:type",Boolean)],O8.prototype,"suppressTopLevelMetadataRows",void 0);
_.W([_.q(),_.X("design:type",Object)],O8.prototype,"primaryMenuWidth",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"videoId",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"titleHeadlineXs",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"titleHeadlineS",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"titleHeadlineM",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"titleHashtagBlackLinkified",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"titleHashtagGreyLinkified",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.W([_.q(),_.X("design:type",Object)],O8.prototype,"shouldForceIconOnly",void 0);
_.W([_.wg("skinnyMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"updateOwnerAndDescriptionPosition",null);_.W([_.wg("skinnyMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.W([_.O("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"descriptionText",null);_.W([_.O("videoSecondaryInfoRenderer.headerRuns"),_.X("design:type",Array),_.X("design:paramtypes",[])],O8.prototype,"headerRuns",null);
_.W([_.q({value:!1}),_.O("commentsEntryPointHeaderRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"hasTeaser",null);_.W([_.q({value:!1,reflectToAttribute:!0}),_.O("videoMetadataCarousel"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"hasTeaserCarousel",null);_.W([_.q({value:3}),_.O("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"descriptionMaxLines",null);
_.W([_.O("videoSecondaryInfoRenderer.metadataRowContainer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"collapsibleMetadataRows",null);_.W([_.O("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"alwaysVisibleMetadataRows",null);
_.W([_.O("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"hasInlineStructuredDescription",null);_.W([_.O("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"showInlineStructuredDescription",null);
_.W([_.O("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"descriptionExpandCommand",null);_.W([_.O("videoSecondaryInfoRenderer.owner"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"videoOwnerCommand",null);_.W([_.q({reflectToAttribute:!0}),_.O("videoPrimaryInfoRenderer.videoActions"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"flexMenuEnabled",null);
_.W([_.q({selector:_.MC,reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"isFullscreen",void 0);_.W([_.q({selector:_.C_,reflectToAttribute:!0}),_.X("design:type",Object)],O8.prototype,"isTheaterMode",void 0);_.W([_.O("descriptionText","useFadedScrimDescription"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"showAttributedStringDescription",null);
_.W([_.O("descriptionText","useFadedScrimDescription"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"showFormattedStringDescription",null);_.W([_.O("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],O8.prototype,"showFadedStructuredDescription",null);
_.W([_.wg("videoPrimaryInfoRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"videoPrimaryInfoRendererChanged",null);_.W([_.O("videoPrimaryInfoRenderer.title"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"videoTitle",null);_.W([_.O("videoPrimaryInfoRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],O8.prototype,"noEndpoints",null);
_.W([_.wg("videoSecondaryInfoRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"videoSecondaryInfoRendererChanged",null);_.W([_.ph("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"structuredDescriptionContentRendererChanged",null);
_.W([_.ph("skinnyMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"updateTopLevelIconsOnly",null);_.W([_.ph("skinnyMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"updateShouldForceIconOnly",null);_.W([_.ph("skinnyMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"moveActionsElement",null);
_.W([_.tM("yt-text-inline-expander-expand-clicked"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"onYtTextInlineExpanderExpandClicked",null);_.W([_.tM("yt-text-inline-expander-collapse-clicked"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.W([_.tM("yt-text-inline-expander-expanded-changed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],O8.prototype,"onRenderStamperFinished",null);
_.W([_.tM("yt-expander-more-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"onYtExpanderMoreTapped",null);_.W([_.tM("yt-expander-less-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"onYtExpanderLessTapped",null);
_.W([_.ph("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"registerPanel",null);_.W([_.ph("videoSecondaryInfoRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"resetDescriptionState",null);
_.W([_.ph("structuredDescriptionContentRenderer"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"parseColorSamplingData",null);_.W([_.ph("hoverColor","isDark"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O8.prototype,"updateHoverColor",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-watch-metadata"})],O8);
_.B(O8,"ytd-watch-metadata",function(){if(EyP!==void 0)return EyP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return EyP=v},{mode:2});_.yrI=function(v){_.J5.call(this);this.JSC$23366_watchApi=v;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;dvj(this);hnc(this);wEb(this);Ard(this);kEe(this);TCl(this);YSd(this)};
_.f(_.yrI,_.J5);var wEb=function(v){var Q=function(){_.Y("kevlar_is_pupi_enabled")||Dj(v)};
v.JSC$23366_watchApi.getRoot().addEventListener("yt-player-updated",Q);v.addOnDisposeCallback(function(){v.JSC$23366_watchApi.getRoot().removeEventListener("yt-player-updated",Q)})},kEe=function(v){if(_.Y("kevlar_endscreen_auto_theater_mode")){var Q=v.JSC$23366_watchApi.subscribeToActiveChanged(function(){crI(v)},!1);
v.addOnDisposeCallback(Q)}},dvj=function(v){var Q,V,E,b,F;
_.e(function(t){if(t.nextAddress==1)return t.yield(v.JSC$23366_watchApi.playerApi,2);Q=t.yieldResult;V=function(p){p=!!p;f39(v)&&(p=p?2:1,_.fH.getInstance().setState(p,!0,!1))};
E=function(p){p&&_.ube(_.oF().getState())&&(_.mb(v.JSC$23366_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),v.temporaryTheaterMode=!0)};
b=function(p){_.Y("kevlar_player_update_autonav_on_new_data")&&p.type==="newdata"&&(_.Y("kevlar_is_pupi_enabled")||Dj(v))};
F=function(p){v.onPlayerStateChange(p)};
_.Y("kevlar_endscreen_auto_theater_mode")&&Q.addEventListener("onAutonavCancelled",E);Q.addEventListener("onAutonavChangeRequest",V);Q.addEventListener("onVideoDataChange",b);Q.addEventListener("onStateChange",F);v.addOnDisposeCallback(function(){Q.removeEventListener("onAutonavChangeRequest",V);Q.removeEventListener("onVideoDataChange",b);Q.removeEventListener("onStateChange",F);_.Y("kevlar_endscreen_auto_theater_mode")&&Q.removeEventListener("onAutonavCancelled",E)});
_.q1(t)})},hnc=function(v){v.JSC$23366_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){v.autonavCancelledBySignal=!0;
_.Y("kevlar_is_pupi_enabled")||Dj(v)});
v.JSC$23366_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(Q,V,E){V&&Dj(v,E)});
v.JSC$23366_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){f39(v)&&_.fH.getInstance().setState(2,!0,!0)});
v.JSC$23366_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){f39(v)&&_.fH.getInstance().setState(1,!0,!0)});
v.addOnDisposeCallback(function(){v.JSC$23366_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");v.JSC$23366_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");v.JSC$23366_watchApi.unregisterActionHandler("yt-enable-autoplay-command");v.JSC$23366_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Ard=function(v){var Q=v.JSC$23366_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){YSd(v)}),V=v.JSC$23366_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){TCl(v)});
v.addOnDisposeCallback(function(){v.JSC$23366_watchApi.unsubscribeByKey(Q);v.JSC$23366_watchApi.unsubscribeByKey(V)})},YSd=function(v){v.autonavCancelledBySignal=!1;
_.Y("kevlar_is_pupi_enabled")||Dj(v)},TCl=function(v){var Q=v.JSC$23366_watchApi.getWatchNextResponse(),V,E;
var b=(Q=(E=_.y(Q==null?void 0:(b=Q.playerOverlays)==null?void 0:(V=b.playerOverlayRenderer)==null?void 0:V.autonavToggle,_.jsN))==null?void 0:E.enabled)?2:1;_.Y("kevlar_is_pupi_enabled")?_.fH.getInstance().setState(b,!1,!1):Dj(v);_.Y("web_persist_server_autonav_state_on_client")&&typeof Q==="boolean"&&_.p2o(b===2)},f39=function(v){if(v.autonavCancelledBySignal)return!1;
var Q,V,E,b;return!!((Q=v.JSC$23366_watchApi.getWatchNextResponse())==null?0:(V=Q.contents)==null?0:(E=V.twoColumnWatchNextResults)==null?0:(b=E.autoplay)==null?0:b.autoplay)};
_.yrI.prototype.onPlayerStateChange=function(v){if(v===0){v=!_.fH.getInstance().isAutoplaySetExplicitly();var Q=this.JSC$23366_watchApi.getWatchNextResponse(),V,E,b,F;Q=_.y(Q==null?void 0:(V=Q.contents)==null?void 0:(E=V.twoColumnWatchNextResults)==null?void 0:(b=E.autoplay)==null?void 0:(F=b.autoplay)==null?void 0:F.autoplayExplicitChoiceDialogRenderer,_.FrQ);f39(this)&&v&&Q&&_.bd.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:Q},popupType:"DIALOG"}})}else crI(this)};
var crI=function(v){v.temporaryTheaterMode&&(v.temporaryTheaterMode=!1,_.mb(v.JSC$23366_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Dj=function(v,Q){Q=Q===void 0?!1:Q;
var V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23366_watchApi.playerApi,2);V=E.yieldResult;f39(v)?V.setAutonavState(_.fH.getInstance().getState(),Q):V.setAutonavState(1,Q);_.q1(E)})};var GEP={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"};_.MuE=function(v){_.J5.call(this);var Q=this;this.JSC$23371_watchApi=v;var V=this.JSC$23371_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Cu9(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23371_watchApi.unsubscribeByKey(V)});
Cu9(this)};
_.f(_.MuE,_.J5);var Cu9=function(v){var Q=v.JSC$23371_watchApi.getPlayerResponse(),V=v.JSC$23371_watchApi.getWatchNextResponse();if(!_.orG(Q==null?void 0:Q.playabilityStatus,V==null?void 0:V.playerOverlays)){var E;var b=Q==null?void 0:(E=Q.playabilityStatus)==null?void 0:E.errorScreen}v.JSC$23371_watchApi.provideRenderingData("ERROR_SCREEN",b)};var O2f=_.x(function(v){return _.P("yt-player-grid-renderer",{class:_.QZ("ytPlayerGridRendererHost",v.className)},_.P(_.Pw,{data:v.data},{lockupViewModel:_.Ng}))},"ko");var Dve=_.x(function(v){var Q=v.data;v=_.Y("web_watch_video_details_hide_subtitle");var V=_.Y("web_watch_video_details_single_line_title"),E=_.EP(function(){var p=Q().onTap;p&&_.ht().resolve(_.At).resolveCommand(p)}),b={},F={},t={};
return _.P("yt-player-overlay-video-details-renderer",{class:_.QZ("ytPlayerOverlayVideoDetailsRendererHost",(b.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.Y("web_watch_video_details_transparent_background"),b)),"on:click":E,role:"button"},_.P("h2",{class:_.QZ("ytPlayerOverlayVideoDetailsRendererTitle",(F.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return V},F))},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:_.QZ("ytPlayerOverlayVideoDetailsRendererSubtitle",
(t.ytPlayerOverlayVideoDetailsRendererHideSubtitle=v,t))},_.P(_.tD,{text:function(){return Q().subtitle}})))},"lo");var Rz={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Rne=_.x(function(v){var Q=v.data;var V=_.Z1(_.MC),E=_.Y("web_watch_action_bar_resize_buttons"),b=_.Y("web_watch_video_action_dsdvb"),F=_.Y("delhi_modern_web_player_icons")&&!_.Y("enable_web_delhi_icons");v=_.Y("delhi_modern_web_player_disable_frosted_glass");var t=_.Y("delhi_modern_web_player_compact_video_actions_controls"),
p=_.Y("web_player_quick_action_buttons_icon_only"),Z=function(){var w=E&&!V(),A={};t?A.size="S":w&&(A.size="M");p&&(A.iconPosition="icon-only");if(Object.keys(A).length!==0)return A},d={};
return _.P("yt-player-quick-action-buttons",{class:_.QZ("ytPlayerQuickActionButtonsHost",(d.ytPlayerQuickActionButtonsHostCompactControls=function(){return!V()||t},d.ytPlayerQuickActionButtonsHostDisableBackdropFilter=v,d))},_.P(_.xb,{each:function(){var w=Q();
if(F){w=JSON.parse(JSON.stringify(w));for(var A=_.L(w),k=A.next();!k.done;k=A.next()){var T=k.value,c=void 0;k=_.y((c=_.y(T,_.Uv))==null?void 0:c.toggleButtonViewModel,_.Zq);var C=void 0;c=_.y((C=_.y(T,_.mp))==null?void 0:C.toggleButtonViewModel,_.Zq);C=_.y(T,_.pH);T=_.y(T,_.Zq);if(k)c=_.y(k.defaultButtonViewModel,_.pH),k=_.y(k.toggledButtonViewModel,_.pH),c&&c.iconName&&(c.iconName=Rz[c.iconName]),k&&k.iconName&&(k.iconName=Rz[k.iconName]);else if(c)k=_.y(c.defaultButtonViewModel,_.pH),c=_.y(c.toggledButtonViewModel,
_.pH),k&&k.iconName&&(k.iconName=Rz[k.iconName]),c&&c.iconName&&(c.iconName=Rz[c.iconName]);else if(C)C.iconName&&(C.iconName=Rz[C.iconName]);else if(T){k=_.y(T.defaultButtonViewModel,_.pH);c=_.y(T.toggledButtonViewModel,_.pH);T=void 0;if((T=k)==null?0:T.iconName)k.iconName=Rz[k.iconName];k=void 0;if((k=c)==null?0:k.iconName)c.iconName=Rz[c.iconName]}}}b&&(w=kgd(w));return w}},function(w){return _.P(_.Pw,{data:function(){return w}},{buttonViewModel:function(A){return _.P(_.D6,{data:A.data,
buttonOverrides:Z})},
likeButtonViewModel:function(A){return _.P(_.bL,{data:A.data,buttonShapeOverrideables:Z})},
dislikeButtonViewModel:function(A){return _.P(_.Es,{data:A.data,buttonShapeOverrideables:Z})},
toggleButtonViewModel:function(A){return _.P(_.a5,{data:A.data,buttonShapeOverrides:Z})}})}))},"mo");_.l3P=function(v){_.J5.call(this);var Q=this;this.JSC$23376_watchApi=v;v=_.L(_.Ge({},void 0,"OB6c5e"));this.quickActionsViewModel=v.next().value;this.setQuickActionsViewModel=v.next().value;v=_.L(_.Ge({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=v.next().value;this.setPlayerOverlayVideoDetailsRenderer=v.next().value;v=_.L(_.Ge([],void 0,"A7tRk"));this.lockupViewModels=v.next().value;this.setLockupViewModels=v.next().value;var V=this.JSC$23376_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ny9(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23376_watchApi.unsubscribeByKey(V)});
ny9(this)};
_.f(_.l3P,_.J5);
var ny9=function(v){var Q,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l;_.e(function(S){if(S.nextAddress==1)return S.yield(v.JSC$23376_watchApi.playerApi,2);Q=S.yieldResult;V=v.JSC$23376_watchApi.getWatchNextResponse();F=(E=V)==null?void 0:(b=E.playerOverlays)==null?void 0:b.playerOverlayRenderer;p=_.y((t=F)==null?void 0:t.fullscreenQuickActionsBar,_.s5p);(d=(Z=v).setQuickActionsViewModel)==null||d.call(Z,p||{});p&&qS9(v,Q);k=(w=F)==null?void 0:(A=w.videoDetails)==null?void 0:A.playerOverlayVideoDetailsRenderer;(c=
(T=v).setPlayerOverlayVideoDetailsRenderer)==null||c.call(T,k||{});k&&SSI(v,Q);if(_.Y("web_player_use_external_grid_component")){var a=[],g,u,r,v9,t3=V==null?void 0:(g=V.contents)==null?void 0:(u=g.twoColumnWatchNextResults)==null?void 0:(r=u.secondaryResults)==null?void 0:(v9=r.secondaryResults)==null?void 0:v9.results;if(t3)for(g=_.L(t3),u=g.next();!u.done;u=g.next())if(u=u.value,u.lockupViewModel)a.push(u);else if(r=void 0,(r=u.itemSectionRenderer)==null?0:r.contents)for(u=_.L(u.itemSectionRenderer.contents),
r=u.next();!r.done;r=u.next())r=r.value,r.lockupViewModel&&a.push(r);C=a;(l=(R=v).setLockupViewModels)==null||l.call(R,C||[]);znf(v,Q)}_.q1(S)})},qS9=function(v,Q){if(!v.quickActionButtonsContainer)if(Q.setFullscreenQuickActions){v.quickActionButtonsContainer=document.createElement("div");
Q.setFullscreenQuickActions(v.quickActionButtonsContainer);var V=function(){return v.quickActionsViewModel().quickActionButtons||[]},E=_.si(v.quickActionButtonsContainer,function(){return _.P(Rne,{data:V})},"no");
v.addOnDisposeCallback(function(){Q.setFullscreenQuickActions(void 0);E()})}else _.Iy(new _.xd("setFullscreenQuickActions not defined",{playerApi:Object.keys(Q),
isReady:Q.isReady(),appState:Q.getAppState()}))},SSI=function(v,Q){if(!v.playerOverlayVideoDetailsRendererContainer)if(Q.setPlayerOverlayVideoDetailsRenderer){v.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
Q.setPlayerOverlayVideoDetailsRenderer(v.playerOverlayVideoDetailsRendererContainer);var V=_.si(v.playerOverlayVideoDetailsRendererContainer,function(){return _.P(Dve,{data:v.playerOverlayVideoDetailsRenderer})},"oo");
v.addOnDisposeCallback(function(){Q.setPlayerOverlayVideoDetailsRenderer(void 0);V()})}else _.Iy(new _.xd("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(Q),
isReady:Q.isReady(),appState:Q.getAppState()}))},znf=function(v,Q){if(!v.gridRendererContainer)if(Q.setFullscreenGrid){v.gridRendererContainer=document.createElement("div");
Q.setFullscreenGrid(v.gridRendererContainer);var V=_.si(v.gridRendererContainer,function(){return _.P(O2f,{data:v.lockupViewModels})},"po");
v.addOnDisposeCallback(function(){Q.setFullscreenGrid(void 0);V()})}else _.Iy(new _.xd("setFullscreenGrid not defined",{playerApi:Object.keys(Q),
isReady:Q.isReady(),appState:Q.getAppState()}))};_.nS=function(v){_.J5.call(this);var Q=this;this.JSC$23382_watchApi=v;this.JSC$23382_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;v=_.Wm(_.oF(),_.MC,function(V){Q.onFullscreenChanged(V)});
this.addOnDisposeCallback(v);v=_.Wm(_.oF(),_.RQ,function(V){Q.onWatchScroll(V)});
this.addOnDisposeCallback(v);_.Y("kevlar_watch_while_v2")&&(v=_.Wm(_.oF(),_.MS,function(V){Jr9(Q,V)}),this.addOnDisposeCallback(v));
NCf(this);xvc(this);BC5();this.onWatchScroll(_.RQ(_.oF().getState()));_.mX("START_IN_FULL_WINDOW_MODE")&&this.JSC$23382_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.f(_.nS,_.J5);var NCf=function(v){v.JSC$23382_watchApi.registerActionHandler("yt-fullscreen-change-action",function(Q){var V=v.JSC$23382_watchApi.isActive();Q&&!V||_.oF().dispatch(_.U2({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!Q}}))});
v.addOnDisposeCallback(function(){v.JSC$23382_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},xvc=function(v){var Q,V;
_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23382_watchApi.playerApi,2);Q=E.yieldResult;V=function(){v.onFullerscreenEduClicked()};
Q.addEventListener("onFullerscreenEduClicked",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onFullerscreenEduClicked",V)});
_.q1(E)})};
_.nS.prototype.onFullscreenChanged=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return Q.isFullscreen=!!_.ax(),E.yield(Q.JSC$23382_watchApi.playerApi,2);V=E.yieldResult;Q.JSC$23382_miniplayerActive||V.setFauxFullscreen(Q.isFullscreen);if(v&&(Q.JSC$23382_watchApi.focusOnPlayer(),!Q.fullerscreenEduButtonShownThisPlayback)){Q.fullerscreenEduButtonShownThisPlayback=!0;var b=_.TA("yt-fullerscreen-edu-button-shown-count")||0;_.kN("yt-fullerscreen-edu-button-shown-count",b+1,31536E3);
Q.updateFullerscreenEduButtonSubtleModeState()}_.q1(E)})};
var Jr9=function(v,Q){var V;_.e(function(E){if(E.nextAddress==1)return v.JSC$23382_miniplayerActive=Q,E.yield(v.JSC$23382_watchApi.playerApi,2);V=E.yieldResult;V.setFauxFullscreen(!v.JSC$23382_miniplayerActive&&v.isFullscreen);_.q1(E)})};
_.nS.prototype.onWatchScroll=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1)return _.Y("external_fullscreen_with_edu")?b.yield(Q.JSC$23382_watchApi.playerApi,2):b.return();V=b.yieldResult;E=v<=0;Q.shouldShowFullerscreenEdu!==E&&(Q.shouldShowFullerscreenEdu=E,V.updateFullerscreenEduButtonVisibility(!Q.shouldShowFullerscreenEdu));_.q1(b)})};
_.nS.prototype.onFullerscreenEduClicked=function(){this.JSC$23382_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var v=_.TA("yt-fullerscreen-edu-button-click-count")||0;_.kN("yt-fullerscreen-edu-button-click-count",v+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.nS.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var v=this,Q,V,E,b,F,t;return _.e(function(p){if(p.nextAddress==1)return Q=_.TA("yt-fullerscreen-edu-button-click-count")||0,V=_.TA("yt-fullerscreen-edu-button-shown-count")||0,E=_.T_("external_fullscreen_button_click_threshold"),b=_.T_("external_fullscreen_button_shown_threshold"),F=Q>=E||V>=b,p.yield(v.JSC$23382_watchApi.playerApi,2);t=p.yieldResult;t.updateFullerscreenEduButtonSubtleModeState(F);_.q1(p)})};
_.nS.prototype.disposeInternal=function(){_.J5.prototype.disposeInternal.call(this);var v=_.ax();_.Y("kevlar_exit_fullscreen_leaving_watch")&&v&&_.ri(v)};
var BC5=function(){if(_.Y("web_watch_add_viewport_meta_tag")){var v=document.querySelector("meta[name=viewport]"),Q=document.head;Q&&!v&&(v=document.createElement("meta"),v.name="viewport",v.content="width=device-width, initial-scale=1.0, viewport-fit=cover",Q.appendChild(v))}};_.sTd=function(v){_.J5.call(this);var Q=this;this.JSC$23385_watchApi=v;this.jobId=0;this.pendingRequestId=void 0;var V=this.JSC$23385_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gy5(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23385_watchApi.unsubscribeByKey(V)});
gy5(this)};
_.f(_.sTd,_.J5);var u2q=function(v){_.XT.cancelJob(v.jobId);v.pendingRequestId=void 0},gy5=function(v){u2q(v);
var Q=T7d(v.JSC$23385_watchApi.getWatchNextResponse());if(Q){var V=250,E,b=(E=_.y(Q,_.BKN))==null?void 0:E.initialDelayMs;_.Y("web_watch_updated_metadata_server_initial_delay")&&b&&(V=b);v.jobId=_.XT.addLowPriorityJob(function(){return v.fetchUpdatedMetadata(Q)},V)}};
_.sTd.prototype.fetchUpdatedMetadata=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l;return _.e(function(S){switch(S.nextAddress){case 1:Q&&(E={continuation:Q});if(!_.Y("web_get_updated_metadata_fantasy_panel_continuation_params")){S.jumpTo(2);break}b=_.ht().resolve(_.$2);F="PAsports_fantasy";return S.yield(b.isVisible(F,!0),3);case 3:S.yieldResult&&(d=(p=(t=b).getUpdatePanelContinuationData)==null?void 0:(Z=p.call(t,F))==null?void 0:Z.updatePanelContinuationRequest)&&(E||(E={}),E.clientParams=
{panelContinuationParams:{panelContinuation:d}});case 2:w=_.ht().resolve(_.wH);if(!w)return _.ro(Error("cp")),S.return();A={};V.pendingRequestId=A;return S.yield(_.xW(w,v,E),4);case 4:k=S.yieldResult;if(A!==V.pendingRequestId)return S.return();C=(T=k)==null?void 0:(c=T.continuation)==null?void 0:c.timedContinuationData;((R=C)==null?0:R.continuation)&&((l=C)==null?0:l.timeoutMs)&&(V.jobId=_.XT.addLowPriorityJob(function(){return V.fetchUpdatedMetadata(v,C.continuation)},C.timeoutMs));
_.q1(S)}})};
_.sTd.prototype.disposeInternal=function(){_.J5.prototype.disposeInternal.call(this);u2q(this)};var jTJ=_.x(function(v){var Q=_.EP(function(){var E=v.data().videoId;if(v.active())E=_.$7(E),_.ht().resolve(_.At).resolveCommand(E);else{var b=v.playerApi(),F=b.getAvailableAudioTracks(),t,p,Z=(t=v.sourceVideoConfig().audioTracks)==null?void 0:(p=t.find(function(d){return d.isDefaultForSource}))==null?void 0:p.id;
if(F=F.find(function(d){return d.getLanguageInfo().getId()===Z}))b.setAudioTrack(F,!0),b.setCompositeParam({activeVideoId:E}),v.setActiveSourceId(E)}}),V={};
return _.P("ytw-composite-source-video-overlay",{class:_.QZ("ytwCompositeSourceVideoOverlayHost",(V.ytwCompositeSourceVideoOverlayActive=v.active,V.ytwCompositeSourceVideoOverlayInteracting=v.interacting,V)),style:_.iP({left:function(){var E;return((E=v.data().topLeftCornerX)!=null?E:0)*100+"%"},
top:function(){var E;return((E=v.data().topLeftCornerY)!=null?E:0)*100+"%"},
width:function(){var E;return((E=v.data().width)!=null?E:0)*100+"%"},
height:function(){var E;return((E=v.data().height)!=null?E:0)*100+"%"}}),
"on:click":Q},_.P("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"qo");var Wiq=_.x(function(v){var Q=_.L(_.K_(function(){var t,p=(t=v.data().sources)==null?void 0:t.find(function(Z){return Z.isActive});
if(p)return p.videoId})),V=Q.next().value,E=Q.next().value;
Q=_.L(_.Ge(!1,void 0,"rmRJ8d"));var b=Q.next().value,F=Q.next().value;return _.P("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.EP(function(){F(!0)}),
"on:mouseout":_.EP(function(){F(!1)})},_.P(_.h,{cond:function(){return v.data().sources},
then:function(t){return _.P(_.xb,{each:t},function(p){return _.P(jTJ,{data:p,active:function(){return p.videoId===V()},
setActiveSourceId:E,interacting:b,playerApi:v.playerApi,sourceVideoConfig:function(){return Yin(v.compositeVideoConfig(),p.videoId)}})})}}))},"ro");_.a39=function(v){_.J5.call(this);this.JSC$23401_watchApi=v;v=_.L(_.Ge({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=v.next().value;this.setCompositeVideoOverlayRenderer=v.next().value;v=_.L(_.Ge({},void 0,"OlaJpc"));this.compositeVideoConfig=v.next().value;this.setCompositeVideoConfig=v.next().value;oyI(this);XEd(this)};
_.f(_.a39,_.J5);var oyI=function(v){var Q=v.JSC$23401_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){XEd(v)});
v.addOnDisposeCallback(function(){v.JSC$23401_watchApi.unsubscribeByKey(Q)})},rrq=function(v){var Q;
return _.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$23401_watchApi.playerApi,2);Q=V.yieldResult;Q.setCompositeVideoOverlayRendererComponent(v.container);_.q1(V)})},$v5=function(v){var Q;
return _.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$23401_watchApi.playerApi,2);Q=V.yieldResult;Q.setCompositeVideoOverlayRendererComponent(void 0);_.q1(V)})},I3l=function(v){var Q,V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23401_watchApi.playerApi,2);Q=E.yieldResult;v.container=document.createElement("div");V=_.si(v.container,function(){return _.P(Wiq,{data:v.compositeVideoOverlayRenderer,compositeVideoConfig:v.compositeVideoConfig,playerApi:Q})},"so");
v.addOnDisposeCallback(V);_.q1(E)})},XEd=function(v){var Q,V,E,b,F,t,p,Z;
_.e(function(d){return d.nextAddress==1?(Q=v.JSC$23401_watchApi.getPlayerResponse(),F=_.y((V=Q)==null?void 0:(E=V.overlay)==null?void 0:(b=E.playerControlsOverlayRenderer)==null?void 0:b.compositeVideoOverlay,k_e),Z=(t=Q)==null?void 0:(p=t.playerConfig)==null?void 0:p.compositeVideoConfig,F&&v.setCompositeVideoOverlayRenderer(F),Z&&v.setCompositeVideoConfig(Z),F&&Z?v.container?d.jumpTo(6):d.yield(I3l(v),6):H2l(v)?d.yield($v5(v),0):d.jumpTo(0)):H2l(v)?d.jumpTo(0):d.yield(rrq(v),0)})},H2l=function(v){var Q;
return!((Q=v.container)==null||!Q.parentElement)};
_.a39.prototype.disposeInternal=function(){H2l(this)&&$v5(this);_.J5.prototype.disposeInternal.call(this)};_.VHV=function(v){_.J5.call(this);var Q=this;this.JSC$23407_watchApi=v;var V=this.JSC$23407_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var E=Q.JSC$23407_watchApi.getPlayerResponse();if(E){var b,F;if(E=_.y((b=E.endscreen)==null?void 0:(F=b.endscreenRenderer)==null?void 0:F.hideButton,_.Zq)){var t;(t=Q.setEndscreenHideButton)==null||t.call(Q,E);mvn(Q)}}});
this.addOnDisposeCallback(function(){Q.JSC$23407_watchApi.unsubscribeByKey(V)});
v=_.L(_.Ge({},void 0,"ER3tqb"));this.endscreenHideButton=v.next().value;this.setEndscreenHideButton=v.next().value;UvP(this);vId(this);Qxb(this)};
_.f(_.VHV,_.J5);
var mvn=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return v.creatorEndscreenHideButtonContainer?E.return():E.yield(v.JSC$23407_watchApi.playerApi,2);Q=E.yieldResult;v.creatorEndscreenHideButtonContainer=document.createElement("div");_.EX(v.creatorEndscreenHideButtonContainer,!1);Q.setCreatorEndscreenHideButton(v.creatorEndscreenHideButtonContainer);V=_.si(v.creatorEndscreenHideButtonContainer,function(){return _.P(_.a5,{data:v.endscreenHideButton,useOutlinedIcon:!0})},"to");
v.addOnDisposeCallback(function(){V();var b;(b=Q)==null||b.setCreatorEndscreenHideButton(void 0)});
_.q1(E)})},UvP=function(v){var Q,V;
_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23407_watchApi.playerApi,2);Q=E.yieldResult;V=function(){v.creatorEndscreenHideButtonContainer&&_.EX(v.creatorEndscreenHideButtonContainer,!0)};
Q.addEventListener("endscreenelementshown",V);v.addOnDisposeCallback(function(){var b;(b=Q)==null||b.removeEventListener("endscreenelementshown",V)});
_.q1(E)})},vId=function(v){var Q=function(){v.creatorEndscreenHideButtonContainer&&_.EX(v.creatorEndscreenHideButtonContainer,!1)},V=v.JSC$23407_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",Q),E=v.JSC$23407_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",Q);
v.addOnDisposeCallback(function(){v.JSC$23407_watchApi.unsubscribeByKey(V);v.JSC$23407_watchApi.unsubscribeByKey(E)})},Qxb=function(v){v.JSC$23407_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(Q){var V=_.y(Q,ZiV);
v.JSC$23407_watchApi.playerApi.then(function(E){E==null||E.setCreatorEndscreenVisibility(!!V.hide)})});
v.addOnDisposeCallback(function(){v.JSC$23407_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.bCj=function(v){_.J5.call(this);this.JSC$23413_watchApi=v;EI9(this)};
_.f(_.bCj,_.J5);var EI9=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23413_watchApi.playerApi,2);Q=E.yieldResult;V=function(b){_.oF().dispatch(_.U2({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:b}}))};
Q.addEventListener("onRetroModeChanged",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onRetroModeChanged",V)});
_.q1(E)})};var DP5=0,ls=0,nbV=0;var Fbd;Fbd=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.lZ=function(v){_.J5.call(this);this.JSC$23418_watchApi=v;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Kb9(this)};
_.f(_.lZ,_.J5);
var Kb9=function(v){var Q,V,E;_.e(function(b){if(b.nextAddress==1)return b.yield(v.JSC$23418_watchApi.playerApi,2);Q=b.yieldResult;if(v.isDisposed())return b.return();v.sessionStorage=_.iih("yt-sleep-timer");v.sessionStorage||_.Iy(new _.xd("SessionStorage for Sleep Timer is undefined."));((V=v.sessionStorage)==null?void 0:V.get("yt-sleep-timer"))==="true"&&(SiI(),(E=v.sessionStorage)==null||E.remove("yt-sleep-timer"),Q.syncVolume());iCl(v,Q);Lb9(v,Q);tHI(v,Q);_.q1(b)})},iCl=function(v,Q){var V=function(d){v.onSleepTimerSettingsChanged(d,
Q)},E=function(d){v.onPlayerStateChange(d,Q)},b=function(){v.onLoopChange(Q)},F=function(){v.onCloseMiniplayer(Q)},t=function(){OUI(Q,(0,_.wO)(),zJd(Q),v.selectedOption==="End of video",Q.getPlayerState()!==1)},p=function(){v.onSeekComplete(Q)},Z=function(){_.XT.cancelJob(ls);
var d=Q.getCurrentTime()>=Q.getDuration(),w=v.selectedOption==="End of video"||v.selectedOption==="End of playlist"&&!Ggb(v.playlistId);d&&w&&pjq(v,Q)};
Q.addEventListener("onSleepTimerSettingsChanged",V);Q.addEventListener("onLoopChange",b);Q.addEventListener("onLoopRangeChange",b);Q.addEventListener("onStateChange",E);Q.addEventListener("onCloseMiniplayer",F);Q.addEventListener("onSleepTimerFeatureAvailable",t);Q.addEventListener("SEEK_COMPLETE",p);Q.addEventListener("onAdStart",Z);v.addOnDisposeCallback(function(){Q.removeEventListener("onSleepTimerSettingsChanged",V);Q.removeEventListener("onLoopChange",b);Q.removeEventListener("onLoopRangeChange",
b);Q.removeEventListener("onStateChange",E);Q.removeEventListener("onCloseMiniplayer",F);Q.removeEventListener("onSleepTimerFeatureAvailable",t);Q.removeEventListener("SEEK_COMPLETE",p);Q.removeEventListener("onAdStart",Z)})},Lb9=function(v,Q){var V=v.JSC$23418_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var E=Q.getVideoData().video_id,b,F=(b=c1E(v.JSC$23418_watchApi))==null?void 0:b.playlistId;
v.pauseAutonavPlayback&&(Q.pauseVideo(),Q.syncVolume(),v.pauseAutonavPlayback=!1);if(v.selectedOption==="End of video"&&E!==v.videoId)q4(v,Q);else{if(v.selectedOption==="End of playlist"){b=Ggb(v.playlistId);if(F!==v.playlistId){q4(v,Q);break a}b?b&&eac(v,Q):ZC9(v,Q)}v.videoId=E;v.playlistId=F}}});
v.addOnDisposeCallback(function(){v.JSC$23418_watchApi.unsubscribeByKey(V)})},tHI=function(v,Q){var V=_.ht().resolve(_.Uj),E=_.Wm(V,_.zcT,function(F){F&&v.selectedOption!=="Off"&&q4(v,Q)}),b=v.JSC$23418_watchApi.subscribeToActiveChanged(function(F){var t,p;
return _.e(function(Z){if(Z.nextAddress==1)return Z.yield(_.u9().navigationFinishPromise,2);t=!_.bna();p=_.ht().resolve(_.lJ).isMiniplayerActive();F||!y1I(v.selectedOption)||p||t||q4(v,Q);_.q1(Z)})},!1);
V=_.Wm(V,function(F){return F.entities.playlistLoopStateEntity||{}},function(F){F=F===void 0?{}:F;
var t=fxI(v.JSC$23418_watchApi);if(t){var p;((p=F[t])==null?void 0:p.state)==="PLAYLIST_LOOP_STATE_ALL"&&y1I(v.selectedOption)&&q4(v,Q)}});
v.addOnDisposeCallback(E);v.addOnDisposeCallback(V);v.addOnDisposeCallback(b)};
_.lZ.prototype.onSleepTimerSettingsChanged=function(v,Q){switch(v){case "Off":this.selectedOption!=="Off"&&q4(this,Q);break;case "End of video":case "End of playlist":PYc(this,v,Q);break;default:PYc(this,v,Q,Fbd.get(v))}};
_.lZ.prototype.onLoopChange=function(v){(v.getLoopVideo()||v.getLoopRange())&&y1I(this.selectedOption)&&q4(this,v)};
_.lZ.prototype.onCloseMiniplayer=function(v){y1I(this.selectedOption)&&q4(this,v)};
var PYc=function(v,Q,V,E){dod(v,V);v.selectedOption=Q;v.videoId=V.getVideoData().video_id;v.playlistId="";var b;(b=v.sessionStorage)==null||b.set("yt-sleep-timer","true");v.adjustmentsCount++;OUI(V,(0,_.wO)(),zJd(V),v.selectedOption==="End of video");if(v.selectedOption==="End of video")ZC9(v,V),ha9(v,V);else if(v.selectedOption==="End of playlist"){ha9(v,V);var F,t;v.playlistId=(t=(F=c1E(v.JSC$23418_watchApi))==null?void 0:F.playlistId)!=null?t:"";Ggb(v.playlistId)||ZC9(v,V)}else E&&(v.presetFadeSchedulerId=
_.A2(_.XT,function(){lxn(V,15E3)},E-15E3),v.presetPauseSchedulerId=_.A2(_.XT,function(){pjq(v,V)},E),RJE(V,(0,_.wO)(),E))},pjq=function(v,Q){if(v.JSC$23418_watchApi.isActive()){var V={dismissDialogEndpoint:{}};
var E={commandExecutorCommand:{commands:[V,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};V={buttonViewModel:{title:_.Lt("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:V}}};E={buttonViewModel:{title:_.Lt("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:E}}};var b={dialogHeaderViewModel:{headline:{content:_.Lt("SLEEP_TIMER_ENDED_TITLE")}}},
F={basicContentViewModel:{paragraphs:[{text:{content:_.Lt("SLEEP_TIMER_ENDED_TEXT")}}]}};V={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:b,content:F,footer:{panelFooterViewModel:{primaryButton:V,secondaryButton:E,shouldHideDivider:!0}}}}}}};_.ht().resolve(_.At).resolveCommand(V,{form:{element:v}})}else SiI();wjb(v,!1);AYV(v,Q);Q.pauseVideo();_.fH.getInstance().getState()===2&&Q.getPlayerState()===5&&(v.pauseAutonavPlayback=!0)},q4=function(v,Q){wjb(v,!0);
AYV(v,Q);SiI()},AYV=function(v,Q){dod(v,Q);
v.selectedOption="Off";v.videoId="";v.playlistId="";v.adjustmentsCount=0;var V;(V=v.sessionStorage)==null||V.remove("yt-sleep-timer");_.XT.cancelJob(DP5);Q.resetSleepTimerMenuSettings()},wjb=function(v,Q){Q={timer_length_adjustment_times_during_session:v.adjustmentsCount-1,
is_session_cancelled:Q};switch(v.selectedOption){case "Off":Q.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":Q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":Q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:Q.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",Q.option_duration_in_minutes=Fbd.get(v.selectedOption)/6E4}_.X0("sleepTimerSessionFinishEvent",Q)};
_.lZ.prototype.onPlayerStateChange=function(v,Q){v===1?OUI(Q,(0,_.wO)(),zJd(Q),this.selectedOption==="End of video"):v===0?(_.XT.cancelJob(ls),Q.setVideoTimeLeft(Mgb(0,0))):v===2&&_.XT.cancelJob(ls);this.selectedOption==="End of video"?v===0?pjq(this,Q):v===2&&qiV(Q):this.selectedOption!=="End of playlist"||Ggb(this.playlistId)||(v===0?pjq(this,Q):v===2&&qiV(Q))};
_.lZ.prototype.onSeekComplete=function(v){v.getPlayerState()===2&&OUI(v,(0,_.wO)(),zJd(v),this.selectedOption==="End of video",!0)};
_.lZ.prototype.onCueRangeEnter=function(v,Q){v==="sleep-timer-fade-audio"&&lxn(Q,(Q.getDuration()-Q.getProgressState().current)*1E3)};
_.lZ.prototype.onCueRangeExit=function(v,Q){v==="sleep-timer-fade-audio"&&Q.getPlayerState()!==0&&qiV(Q,!0)};
var ZC9=function(v,Q){Q.addCueRange("sleep-timer-fade-audio",Q.getDuration()-15,Q.getDuration());Q.addEventListener("onCueRangeEnter",function(V){v.onCueRangeEnter(V,Q)});
Q.addEventListener("onCueRangeExit",function(V){v.onCueRangeExit(V,Q)})},eac=function(v,Q){Q.removeCueRange("sleep-timer-fade-audio");
Q.removeEventListener("onCueRangeEnter",function(V){v.onCueRangeEnter(V,Q)});
Q.removeEventListener("onCueRangeExit",function(V){v.onCueRangeExit(V,Q)})},dod=function(v,Q){y1I(v.selectedOption)?eac(v,Q):(_.XT.cancelJob(v.presetPauseSchedulerId),_.XT.cancelJob(v.presetFadeSchedulerId),v.presetPauseSchedulerId=0,v.presetFadeSchedulerId=0);
qiV(Q,!0)},ha9=function(v,Q){Q.setLoop(!1);
Q.setLoopVideo(!1);Q.setLoopRange(null);(v=fxI(v.JSC$23418_watchApi))&&_.ht().resolve(_.Uj).dispatch(_.dW("playlistLoopStateEntity",v,{key:v,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.cYj=function(v){_.J5.call(this);var Q=this;this.JSC$23421_watchApi=v;_.Y("web_watch_force_start_in_theater_mode")&&ki9(this,!0,!1);TiP(this);Ynb(this);yY5(this);var V=this.JSC$23421_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.T_("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.qY.get("wide",void 0)==="1"&&_.Sw("wide","1",_.T_("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){Q.JSC$23421_watchApi.unsubscribeByKey(V)});
v=v.getRoot();if(v.is==="ytd-watch-flexy"||v.is==="ytd-watch-grid")v.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.W$n();_.Y("web_watch_log_theater_mode_cookie_state")&&_.qY.get("wide","0")==="1"&&_.CET("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.f(_.cYj,_.J5);var TiP=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23421_watchApi.playerApi,2);Q=E.yieldResult;V=function(b){ki9(v,!!b)};
Q.addEventListener("SIZE_CLICKED",V);v.addOnDisposeCallback(function(){Q.removeEventListener("SIZE_CLICKED",V)});
_.q1(E)})},Ynb=function(v){v.JSC$23421_watchApi.registerActionHandler("yt-toggle-theater-mode",function(Q,V){ki9(v,Q,V===void 0?!0:V)});
v.addOnDisposeCallback(function(){v.JSC$23421_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.cYj.prototype.getState=function(){return _.C_(_.oF().getState())};
var ki9=function(v,Q,V){V=V===void 0?!0:V;var E,b,F,t=_.Y("enable_player_resize_transition")&&!!v.JSC$23421_watchApi.getWatchNextResponse()&&!((E=v.JSC$23421_watchApi.getWatchNextResponse())==null?0:(b=E.contents)==null?0:(F=b.twoColumnWatchNextResults)==null?0:F.conversationBar);_.nNf(function(){_.oF().dispatch(_.U2({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:Q}}));_.Y("theater_mode_scroll_to_top_killswitch")||v.JSC$23421_watchApi.scrollWatchTo(0,!1);_.ax()&&_.Y("external_fullscreen")&&_.ri(document.documentElement);
yY5(v);V&&_.Sw("wide",Q?"1":"0",_.T_("theater_mode_cookie_max_age_seconds",-1));_.mb(v.JSC$23421_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);v.JSC$23421_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:Q});Q&&_.W$n()},{shouldWrap:t})},yY5=function(v){var Q;
_.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$23421_watchApi.playerApi,2);Q=V.yieldResult;Q.setSizeStyle(!0,v.getState());_.q1(V)})};var CYe=function(v){_.J5.call(this);var Q=this;this.playerApi=v;this.timeToPanelSyncKeyMap={};var V;if(v==null?0:(V=v.isReady)==null?0:V.call(v)){V=_.Wm(_.ht().resolve(_.Uj),function(b){return b.entities.timedMarkersListSyncEntity||{}},function(b,F){b=b===void 0?{}:b;
F=F===void 0?{}:F;for(var t=_.L(Object.keys(F)),p=t.next();!p.done;p=t.next())p=p.value,b[p]!==F[p]&&fae(Q,F[p]);F=_.L(Object.keys(b));for(t=F.next();!t.done;t=F.next())t=t.value,p=b[t],Q.timeToPanelSyncKeyMap[t]&&Gib(Q,p)});
this.addOnDisposeCallback(V);var E=function(b){Q.onCueRangeEnter(b)};
v.addEventListener("onCueRangeEnter",E);this.addOnDisposeCallback(function(){var b;(b=v.removeEventListener)==null||b.call(v,"onCueRangeEnter",E)})}};
_.f(CYe,_.J5);
var Gib=function(v,Q){var V,E;if((V=v.playerApi)==null?0:(E=V.isReady)==null?0:E.call(V)){var b;if((V=Q==null?void 0:(b=Q.timedListData)==null?void 0:b.sections)&&Q!=null&&Q.key)for(b=_.L(V),V=b.next();!V.done;V=b.next())if(V=V.value,V.timedSyncDataList&&V.sectionId)for(E=0;E<V.timedSyncDataList.length;E++){var F=V.timedSyncDataList[E];F.syncItemId&&v.playerApi.addCueRange(V.sectionId+"_"+Q.key+"_"+F.syncItemId,Number(F.videoTimeMs)/1E3,E===V.timedSyncDataList.length-1?0x8000000000000:Number(V.timedSyncDataList[E+
1].videoTimeMs)/1E3)}}},fae=function(v,Q){var V,E;
if((V=v.playerApi)==null?0:(E=V.isReady)==null?0:E.call(V)){var b;if((V=Q==null?void 0:(b=Q.timedListData)==null?void 0:b.sections)&&Q!=null&&Q.key)for(b=_.L(V),V=b.next();!V.done;V=b.next())if(V=V.value,V.timedSyncDataList&&V.sectionId){E=_.L(V.timedSyncDataList);for(var F=E.next();!F.done;F=E.next())F=F.value,F.syncItemId&&v.playerApi.removeCueRange(V.sectionId+"_"+Q.key+"_"+F.syncItemId)}}};
CYe.prototype.onCueRangeEnter=function(v){for(var Q=_.L(Object.keys(this.timeToPanelSyncKeyMap)),V=Q.next();!V.done;V=Q.next()){V=V.value;var E=_.L(v.split("_"+V+"_")),b=E.next().value;E=E.next().value;if(b&&E){v=_.ht().resolve(_.Uj);Q=this.timeToPanelSyncKeyMap[V];var F=_.d83(v.getState(),Q);V=MHq(V,b,E);if(V===-1)break;V={activeSyncId:E,activeItemIndex:V,activeSectionInfo:{sectionIdentifier:b}};F?v.dispatch(_.Gz("markersEngagementPanelSyncEntity",Q,V)):v.dispatch(_.dW("markersEngagementPanelSyncEntity",
Q,Object.assign({},{key:Q},V)));break}}};
var MHq=function(v,Q,V){var E=_.ht().resolve(_.Uj),b,F;v=(b=Jae(E.getState(),v))==null?void 0:(F=b.timedListData)==null?void 0:F.sections;if(!v)return-1;b=0;F=_.L(v);for(v=F.next();!v.done;v=F.next()){v=v.value;E=v.timedSyncDataList||[];if(v.sectionId===Q)return Q=E.findIndex(function(t){return t.syncItemId===V}),Q===-1?Q:b+Q;
b+=E.length}return-1};_.RaJ=function(v){_.J5.call(this);var Q=this;this.JSC$23434_watchApi=v;this.unresolvedCommands=[];this.JSC$23434_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(V){OCb(Q,V)});
this.addOnDisposeCallback(function(){Q.JSC$23434_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
DoP(this)};
_.f(_.RaJ,_.J5);var DoP=function(v){var Q;_.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$23434_watchApi.playerApi,2);Q=V.yieldResult;if(v.isDisposed())return V.return();v.timedSyncObserver=new CYe(Q);v.unresolvedCommands.length&&(v.unresolvedCommands.forEach(function(E){return OCb(v,E)}),v.unresolvedCommands=[]);
_.Cg(v,v.timedSyncObserver);_.q1(V)})},OCb=function(v,Q){if(v.timedSyncObserver){var V=_.y(Q,dYb);
if(V&&V.timedSyncEntityKey&&V.panelSyncEntityKey){v=v.timedSyncObserver;Q=V.timedSyncEntityKey;var E=V.panelSyncEntityKey;V=!!V.isEnabled;V=V===void 0?!0:V;var b=_.ht().resolve(_.Uj);b=Jae(b.getState(),Q);V?v.timeToPanelSyncKeyMap[Q]||(v.timeToPanelSyncKeyMap[Q]=E,Gib(v,b)):(delete v.timeToPanelSyncKeyMap[Q],fae(v,b))}}else v.unresolvedCommands.push(Q)};var nIc=_.x(function(v){var Q=v.data,V=v.maybeLogSmartSkipClientData,E=null,b=null,F=_.Y("web_enable_auto_focus_for_timely_action_button"),t=function(){E=document.activeElement},p=function(){Q().smartSkipMetadata&&(E=document.activeElement,_.OhY(function(){return b}))},Z=function(w){if(Q().smartSkipMetadata&&(!w||w.key!=="Enter")){E&&E.isConnected&&(_.OhY(function(){return E}),E=null);
var A;(A=b)==null||A.blur()}};
v=_.EP(function(){V==null||V(!0,Q());return!1});
var d=_.ud(_.C4(function(){return Q().rendererContext},{onTap:function(w,A){A({disableClickTracking:!0})}}),_.k0({visibilityCallback:function(w){if(F)w?b&&Q().smartSkipMetadata&&(p(),document.addEventListener("focusin",t)):(document.removeEventListener("focusin",t),Z());
else if(w){w=_.f4(Q().rendererContext);var A=Number(Q().maxVisibleDurationMilliseconds),k,T=(k=_.y(Q().rendererContext,_.ds))==null?void 0:k.label;w&&A&&T&&(k={label:T,command:w,durationMs:A},_.ht().resolve(_.TB).enqueue(k))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.uk(function(){if(F){var w;if((b=(w=d.value)==null?void 0:w.querySelector("button"))&&Q().smartSkipMetadata){var A;(A=d.value)==null||A.addEventListener("keydown",Z)}}});
_.j_(function(){F&&(b&&Q().smartSkipMetadata&&b.removeEventListener("keydown",Z),document.removeEventListener("focusin",t),Z())});
return _.P("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:d,"on:click":v},_.P(_.Pw,{data:function(){return Q().content}},{buttonViewModel:_.D6}))},"vo");var laJ=_.x(function(v){var Q=v.data,V=v.playerApi,E=_.ht().resolve(_.DN0);v=_.L(_.K_(function(){Q()}));
var b=v.next().value,F=v.next().value,t=function(){return xPP(Q(),b())},p=function(d,w){var A,k,T=(A=_.y(w==null?void 0:w.rendererContext,_.px))==null?void 0:(k=A.loggingDirectives)==null?void 0:k.trackingParams;
if((w=w==null?void 0:w.smartSkipMetadata)&&w.loggingData&&(k=w.loggingData,w=k.algorithmId,A=k.startMilliseconds,k=k.endMilliseconds,w&&A!==void 0&&k!==void 0)){var c,C;d={smartSkipData:Object.assign({},{versionName:w,startMediaTimeMs:A,endMediaTimeMs:k},d&&{userInteractionMediaTimeMs:(Math.floor(((c=_.aJ())==null?void 0:(C=c.getPlayer())==null?void 0:C.getCurrentTime())||0)*1E3).toString()})};c=_.Mo();var R;T&&(R=_.dE(T));c&&R&&_.Wp(c,R,d)}},Z=function(d,w){var A=xPP(Q(),d);
if(A){var k=_.y(A,N7J),T;if(T=w)T=V(),A=_.y(A,N7J),T=A!=null&&A.smartSkipMetadata?!(T==null?0:T.isSameMarkerTypeVisible((A==null?void 0:A.smartSkipMetadata.markerKey)||"")):!0;if(T){var c,C;(k==null?0:(c=k.smartSkipMetadata)==null?0:(C=c.loggingData)==null?0:C.isCounterfactual)||(p(!1,k),F(d))}else w||b()!==d||F(void 0)}};
_.uH(function(){var d=Q().timelyActions;if(d){d=_.L(d);for(var w=d.next();!w.done;w=d.next()){w=_.y(w.value,N7J);var A=void 0;(A=w)!=null&&A.cueRangeId&&E.timelyActionsMap.set(w.cueRangeId,Z)}_.j_(function(){E.timelyActionsMap.clear()})}},"l2RtC");
return _.P("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.P(_.Pw,{data:t},{timelyActionViewModel:function(d){return _.P(nIc,{data:d.data,maybeLogSmartSkipClientData:function(){p(!0,_.y(t(),N7J))}})}}))},"xo");_.Snn=function(v){_.J5.call(this);this.JSC$23446_watchApi=v;v=_.L(_.Ge({},void 0,"UN7k5e"));this.timelyActionsOverlay=v.next().value;this.setTimelyActionsOverlay=v.next().value;qne(this)};
_.f(_.Snn,_.J5);var qne=function(v){var Q,V,E,b;_.e(function(F){if(F.nextAddress==1)return zae(v),JYd(v),v.timelyActionsContainer=document.createElement("div"),F.yield(v.JSC$23446_watchApi.playerApi,2);Q=F.yieldResult;(E=(V=Q).insertTimelyActionUi)==null||E.call(V,v.timelyActionsContainer);b=_.si(v.timelyActionsContainer,function(){return _.P(laJ,{data:v.timelyActionsOverlay,playerApi:Q})},"yo");
v.addOnDisposeCallback(b);_.q1(F)})},JYd=function(v){var Q=v.JSC$23446_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zae(v)});
v.addOnDisposeCallback(function(){v.JSC$23446_watchApi.unsubscribeByKey(Q)})},zae=function(v){var Q=v.JSC$23446_watchApi.getWatchNextResponse();
if(Q){var V,E;if(Q=_.y((V=Q.playerOverlays)==null?void 0:(E=V.playerOverlayRenderer)==null?void 0:E.timelyActionsOverlayViewModel,hHJ)){var b;(b=v.setTimelyActionsOverlay)==null||b.call(v,Q)}}};_.xoJ=function(v){_.J5.call(this);this.JSC$23450_watchApi=v;NiJ(this)};
_.f(_.xoJ,_.J5);var NiJ=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23450_watchApi.playerApi,2);Q=E.yieldResult;V=function(b){_.bd.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.y(b,_.PtJ)},popupType:"TOAST"}})};
Q.addEventListener("onYtShowToast",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onYtShowToast",V)});
_.q1(E)})};var Bil,uyj,aaV,gIP,sxl,XjV,Wbb,oIV,rYl,IaP;Bil=!1;_.jxJ=function(v){_.J5.call(this);this.JSC$23453_watchApi=v;this.fullscreen=this.theater=!1;gIP(this);sxl(this);uyj(this)};
_.f(_.jxJ,_.J5);uyj=function(v){var Q,V,E;_.e(function(b){if(b.nextAddress==1)return b.yield(v.JSC$23453_watchApi.playerApi,2);Q=b.yieldResult;if(v.isDisposed())return b.return();V=v.JSC$23453_watchApi.getElement("CINEMATICS");if(!V)return b.return();v.JSC$23453_cinematicController=new _.TF(V,Q);_.Cg(v,v.JSC$23453_cinematicController);_.qhJ(v.JSC$23453_cinematicController);Wbb(v,_.Er3());E=v.JSC$23453_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(F){oIV(v,F)});
v.addOnDisposeCallback(function(){v.JSC$23453_watchApi.unsubscribeByKey(E)});
XjV(v);oIV(v,v.JSC$23453_cinematicController.isAllowed());aaV(v);rYl(v);_.q1(b)})};
aaV=function(v){v.fullscreen=_.MC(_.oF().getState());v.theater=_.C_(_.oF().getState());_.$of(v,v.fullscreen,v.theater);var Q=_.Wm(_.oF(),_.MC,function(E){v.fullscreen=E;_.$of(v,v.fullscreen,v.theater)}),V=_.Wm(_.oF(),_.C_,function(E){v.theater=E;
_.$of(v,v.fullscreen,v.theater)});
v.addOnDisposeCallback(Q);v.addOnDisposeCallback(V)};
gIP=function(v){var Q=v.JSC$23453_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XjV(v)});
v.addOnDisposeCallback(function(){v.JSC$23453_watchApi.unsubscribeByKey(Q)})};
sxl=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23453_watchApi.playerApi,2);Q=E.yieldResult;V=function(b){Wbb(v,b)};
Q.addEventListener("cinematicSettingsToggleChange",V);v.addOnDisposeCallback(function(){Q.removeEventListener("cinematicSettingsToggleChange",V)});
_.q1(E)})};
XjV=function(v){var Q=v.JSC$23453_watchApi.getWatchNextResponse(),V;Q=_.y(Q==null?void 0:(V=Q.pageVisualEffects)==null?void 0:V[0],_.vG);var E;(E=v.JSC$23453_cinematicController)==null||_.zIj(E,Q)};
Wbb=function(v,Q){var V;(V=v.JSC$23453_cinematicController)==null||_.Shc(V,Q);IaP(v)};
oIV=function(v,Q){var V;_.e(function(E){if(E.nextAddress==1)return _.Y("kevlar_watch_cinematics_invisible")&&(Q=!1),E.yield(v.JSC$23453_watchApi.playerApi,2);V=E.yieldResult;V.updateCinematicSettings(Q);IaP(v);_.q1(E)})};
rYl=function(v){var Q=_.eP();if(_.Y("kevlar_measure_ambient_mode_idle")&&!Q.getFlag(192)&&!Bil){Bil=!0;var V=_.go(_.XT,function(){_.ht().resolve(_.FF$).start(1E4)},5E3);
v.addOnDisposeCallback(function(){_.XT.cancelJob(V);_.ht().resolve(_.FF$).stop()})}};
_.$of=function(v,Q,V){v.fullscreen=Q;v.theater=V;var E;(E=v.JSC$23453_cinematicController)==null||E.setFullscreen(v.fullscreen,v.theater);if(_.Y("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(v.theater||v.fullscreen){var b;(b=v.JSC$23453_cinematicController)==null||_.J5d(b)}else if((v=v.JSC$23453_cinematicController)!=null){var F;(F=v.currentCinematicEffect)==null||F.pause()}};
IaP=function(v){var Q;v.JSC$23453_watchApi.getRoot().toggleCinematicsActive(!((Q=v.JSC$23453_cinematicController)==null||!Q.isEnabled()))};_.v7c=function(v){_.J5.call(this);var Q=this;this.JSC$23456_watchApi=v;this.commentsReady=!1;this.setCommentsJobId=0;v=_.Wm(_.oF(),_.RQ,function(){HCP(Q)});
this.addOnDisposeCallback(v);var V=this.JSC$23456_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){moE(Q)}),E=this.JSC$23456_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){moE(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23456_watchApi.unsubscribeByKey(V);Q.JSC$23456_watchApi.unsubscribeByKey(E)});
var b=function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Uoj(Q,"false")};
this.JSC$23456_watchApi.getRoot().addEventListener("yt-page-data-will-update",b);this.addOnDisposeCallback(function(){Q.JSC$23456_watchApi.getRoot().removeEventListener("yt-page-data-will-update",b)});
moE(this)};
_.f(_.v7c,_.J5);var moE=function(v){v.commentsReady=!1;_.XT.cancelJob(v.setCommentsJobId);v.setCommentsJobId=_.go(_.XT,function(){HCP(v)},1E3)},HCP=function(v){if(!v.commentsReady){_.Mp("cmi");
_.XT.cancelJob(v.setCommentsJobId);var Q,V,E,b,F=(Q=v.JSC$23456_watchApi.getWatchNextResponse())==null?void 0:(V=Q.contents)==null?void 0:(E=V.twoColumnWatchNextResults)==null?void 0:(b=E.results)==null?void 0:b.results.contents;Q=void 0;if(F&&F.length)for(F=_.L(F),V=F.next();!V.done;V=F.next())if(V=V.value,b=E=void 0,((E=V)==null?void 0:(b=E.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"){_.Y("web_watch_provide_undefined_comments")?Q=V.itemSectionRenderer:v.JSC$23456_watchApi.provideRenderingData("COMMENTS",
V.itemSectionRenderer);Uoj(v,"true");break}_.Y("web_watch_provide_undefined_comments")&&v.JSC$23456_watchApi.provideRenderingData("COMMENTS",Q);v.commentsReady=!0;v.JSC$23456_watchApi.dispatchEvent("yt-watch-comments-ready")}},Uoj=function(v,Q){var V;
(V=v.JSC$23456_watchApi.getElement("COMMENTS"))==null||V.setAttribute("canScheduleJobs",Q)};_.FLc=function(v){_.J5.call(this);var Q=this;this.JSC$23459_watchApi=v;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.Y("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.Y("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.Y("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.T_("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Q$P(this);
else{var V=this.JSC$23459_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){VPc(Q);Sa(Q)}),E=this.JSC$23459_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zN(Q);
Sa(Q)});
this.JSC$23459_watchApi.getRoot().is==="ytd-watch-grid"&&_.Y("swatcheroo_pbs_load_grid")&&(E7E(this),btJ(this));this.addOnDisposeCallback(function(){Q.JSC$23459_watchApi.unsubscribeByKey(V);Q.JSC$23459_watchApi.unsubscribeByKey(E);_.XT.cancelJob(Q.provideRichGridJobId)});
VPc(this);zN(this)}};
_.f(_.FLc,_.J5);var Q$P=function(v){var Q=v.JSC$23459_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){v.providePlayerJobId=_.Lq(_.XT,function(){VPc(v);Sa(v)},v.provideAllDataDelayMs)}),V=v.JSC$23459_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){v.provideWatchNextJobId=_.Lq(_.XT,function(){zN(v);
Sa(v)},v.provideAllDataDelayMs)}),E=v.JSC$23459_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){v.provideWatchNextJobId=_.Lq(_.XT,function(){zN(v);
Sa(v)},v.provideAllDataDelayMs)});
v.JSC$23459_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.go(_.XT,function(){VPc(v);zN(v);Sa(v)},100)});
v.JSC$23459_watchApi.addPageDisposeJob(function(){_.XT.cancelJob(v.provideWatchNextJobId);_.XT.cancelJob(v.providePlayerJobId)});
v.addOnDisposeCallback(function(){v.JSC$23459_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");v.JSC$23459_watchApi.unsubscribeByKey(Q);v.JSC$23459_watchApi.unsubscribeByKey(V);v.JSC$23459_watchApi.unsubscribeByKey(E);_.XT.cancelJob(v.providePlayerJobId);_.XT.cancelJob(v.provideWatchNextJobId)});
VPc(v);zN(v)},VPc=function(v){var Q=v.JSC$23459_watchApi.getPlayerResponse(),V,E,b=(E=Q==null?void 0:(V=Q.playabilityStatus)==null?void 0:V.messageRenderers)!=null?E:[],F,t;
Q=(t=Q==null?void 0:(F=Q.playabilityStatus)==null?void 0:F.messages)!=null?t:[];F=_.L(Q);for(t=F.next();!t.done;t=F.next())b.push({alertRenderer:{text:_.u3(t.value),type:"WARNING"}});v.JSC$23459_watchApi.provideRenderingData("ALERTS",b)},zN=function(v){var Q=[],V,E,b,F=v.JSC$23459_watchApi.getWatchNextResponse(),t,p,Z,d,w=F==null?void 0:(t=F.contents)==null?void 0:(p=t.twoColumnWatchNextResults)==null?void 0:(Z=p.results)==null?void 0:(d=Z.results)==null?void 0:d.contents;
if(w)for(t=_.L(w),p=t.next();!p.done;p=t.next())if(p=p.value,p.videoPrimaryInfoRenderer)var A=p;else if(p.videoSecondaryInfoRenderer){var k=p;d=Z=void 0;p=Object.assign({},(Z=p.videoSecondaryInfoRenderer)==null?void 0:(d=Z.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(p.rows&&p.collapsedItemCount!==void 0){p.rows=p.rows.slice(0,p.collapsedItemCount).filter(function(mA){return!!mA.richMetadataRowRenderer});
p.collapsedItemCount=p.rows.length;var T={metadataRowContainerRenderer:p}}}else if(p.merchandiseShelfRenderer)var c=p;else if(p.ticketShelfRenderer)var C=p;else if(p.expandableMetadataRenderer)var R=p;else if(p.itemSectionRenderer)if(Z=p.itemSectionRenderer.contents,d=void 0,v.directlyProvideComments&&((d=p.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section")_.Mp("cmi"),v.JSC$23459_watchApi.provideRenderingData("COMMENTS",p.itemSectionRenderer);else if(Z)for(p=_.L(Z),Z=
p.next();!Z.done;Z=p.next())if(Z=Z.value,Z.commentsEntryPointHeaderRenderer)var l=Z;else if(Z.clarificationRenderer||Z.infoPanelContainerRenderer||Z.infoPanelContentRenderer||Z.emergencyOneboxRenderer){Q.push(Z);var S=S||!!k}else Z.limitedStateMessageRenderer?E=Z:Z.videoMetadataCarouselViewModel&&(b=Z);if(_.Y("web_watch_merch_in_sd_when_ticket_shelf_present")&&c&&C){var a=c;c=void 0}if(v.provideWatchNextSecondaryResults){var g,u,r;v.JSC$23459_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
F==null?void 0:(g=F.contents)==null?void 0:(u=g.twoColumnWatchNextResults)==null?void 0:(r=u.secondaryResults)==null?void 0:r.secondaryResults)}if(v.JSC$23459_watchApi.getRoot().is==="ytd-watch-grid"){var v9,t3;v.JSC$23459_watchApi.provideRenderingData("LIVE_CHAT",F==null?void 0:(v9=F.contents)==null?void 0:(t3=v9.twoColumnWatchNextResults)==null?void 0:t3.conversationBar)}var h3,OB,kQ,yo;(g=F==null?void 0:(h3=F.contents)==null?void 0:(OB=h3.twoColumnWatchNextResults)==null?void 0:(kQ=OB.secondaryResults)==
null?void 0:(yo=kQ.secondaryResults)==null?void 0:yo.offerModule)&&(g.donationShelfRenderer||g.donationUnavailableRenderer)&&v.JSC$23459_watchApi.getRoot().is!=="ytd-watch-grid"&&(V=g);h3=v.JSC$23459_watchApi.getPlayerResponse();if(!h3||!_.orG(h3.playabilityStatus,F==null?void 0:F.playerOverlays)){var xQ;if(F==null?0:(xQ=F.contents)==null?0:xQ.singleColumnWatchNextResults){var lb,ep;var JS=F==null?void 0:(lb=F.contents.singleColumnWatchNextResults.results)==null?void 0:(ep=lb.results)==null?void 0:
ep.contents}else{var fZ,mS,PN,qZ;xQ=!!(w==null?0:(fZ=w[0])==null?0:(mS=fZ.itemSectionRenderer)==null?0:(PN=mS.contents)==null?0:(qZ=PN[0])==null?0:qZ.backgroundPromoRenderer);var DX,Th;fZ=!!(F==null?0:(DX=F.contents)==null?0:(Th=DX.twoColumnWatchNextResults)==null?0:Th.secondaryResults);xQ&&!fZ&&(JS=w)}}w=Q[0];DX=Q[1];S&&Q.length===1&&(DX=w,w=void 0);v.JSC$23459_watchApi.provideRenderingData("PRIMARY_INFO",A);v.JSC$23459_watchApi.provideRenderingData("SECONDARY_INFO",k);v.JSC$23459_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
l);v.JSC$23459_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",b);v.JSC$23459_watchApi.provideRenderingData("CLARIFICATION",w);v.JSC$23459_watchApi.provideRenderingData("RICH_METADATA",T);v.JSC$23459_watchApi.provideRenderingData("MERCH_SHELF",c);_.Y("web_watch_merch_in_sd_when_ticket_shelf_present")&&v.JSC$23459_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",a);v.JSC$23459_watchApi.provideRenderingData("TICKET_SHELF",C);v.JSC$23459_watchApi.provideRenderingData("LIMITED_STATE",E);v.JSC$23459_watchApi.getRoot().is!==
"ytd-watch-grid"&&v.JSC$23459_watchApi.provideRenderingData("DONATION_SHELF",V);v.JSC$23459_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",JS);v.JSC$23459_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",DX);v.JSC$23459_watchApi.provideRenderingData("EXPANDABLE_METADATA",R);if(v.swatcherooProvideAllDataOnScheduledJob){var R8,LE,Q8,Tq,Ed,y8;A=F==null?void 0:(R8=F.contents)==null?void 0:(LE=R8.twoColumnWatchNextResults)==null?void 0:(Q8=LE.secondaryResults)==null?void 0:(Tq=Q8.secondaryResults)==
null?void 0:(Ed=Tq.results)==null?void 0:(y8=Ed[0])==null?void 0:y8.richGridRenderer;v.JSC$23459_watchApi.provideRenderingData("RICH_GRID_RENDERER",A)}};
_.FLc.prototype.hasCompanionAds=function(v){var Q,V;return(V=v==null?void 0:(Q=v.adPlacements)==null?void 0:Q.some(function(E){var b,F,t,p;return(E==null?void 0:(b=E.adPlacementRenderer)==null?void 0:(F=b.renderer)==null?void 0:F.actionCompanionAdRenderer)||(E==null?void 0:(t=E.adPlacementRenderer)==null?void 0:(p=t.renderer)==null?void 0:p.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?V:!1};
var Sa=function(v){if(!_.Y("swaterdoo_ps_wn_handle_ks")){v.swatcherooProvideAllDataOnScheduledJob||btJ(v,3E3);var Q=v.JSC$23459_watchApi.getPlayerResponse(),V,E,b,F,t,p=(V=v.JSC$23459_watchApi.getWatchNextResponse())==null?void 0:(E=V.contents)==null?void 0:(b=E.twoColumnWatchNextResults)==null?void 0:(F=b.secondaryResults)==null?void 0:(t=F.secondaryResults)==null?void 0:t.offerModule;Q=v.hasCompanionAds(Q);var Z,d;V=(p==null?void 0:(Z=p.tvfilmOfferModuleRenderer)==null?void 0:Z.clientShouldSuppressIfCompanionAdDisplayed)||
(p==null?void 0:(d=p.unlimitedOfferModuleRenderer)==null?void 0:d.suppressIfCompanionAds);Z=Q&&V;v.JSC$23459_watchApi.getRoot().is==="ytd-watch-grid"&&v.JSC$23459_watchApi.provideRenderingData("OFFER_MODULE",Z?void 0:p)}},btJ=function(v,Q){_.Y("swatcheroo_pbs_load_grid")&&(v.provideRichGridJobId&&_.XT.cancelJob(v.provideRichGridJobId),v.provideRichGridJobId=_.Lq(_.XT,function(){v.provideRichGridJobId=0;
var V,E,b,F,t,p,Z,d=(V=v.JSC$23459_watchApi.getWatchNextResponse())==null?void 0:(E=V.contents)==null?void 0:(b=E.twoColumnWatchNextResults)==null?void 0:(F=b.secondaryResults)==null?void 0:(t=F.secondaryResults)==null?void 0:(p=t.results)==null?void 0:(Z=p[0])==null?void 0:Z.richGridRenderer;d&&v.JSC$23459_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)},Q))},E7E=function(v){var Q,V;
_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23459_watchApi.playerApi,2);Q=E.yieldResult;V=function(){v.onPlaybackStart()};
Q.addEventListener("onPlaybackStartExternal",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onPlaybackStartExternal",V)});
_.q1(E)})};
_.FLc.prototype.onPlaybackStart=function(){btJ(this)};_.itV=function(v){_.J5.call(this);var Q=this;this.JSC$23471_watchApi=v;v.playerApi.then(function(V){Q.player=V});
this.gestures=new _.tp(this.JSC$23471_watchApi.getRoot(),v.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.gUl(_.oF().getState())&&_.RQ(_.oF().getState())<=0)if(_.MC(_.oF().getState())){var V;(V=Q.player)==null||V.toggleFullscreen()}else _.mb(Q.JSC$23471_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
KLq(this)};
_.f(_.itV,_.J5);var KLq=function(v){var Q=_.Wm(_.oF(),_.MC,function(V){v.onFullscreenChanged(V)});
v.addOnDisposeCallback(Q);Q=_.Wm(_.oF(),_.RQ,function(V){v.gestures&&(V>0?v.gestures.detach():v.gestures.attach())});
v.addOnDisposeCallback(Q)};
_.itV.prototype.onFullscreenChanged=function(v){this.gestures&&this.gestures.update(v)};var LLP;LLP=["PLAYLIST"];_.ppJ=function(v){_.J5.call(this);var Q=this;this.JSC$23474_watchApi=v;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(v.subscribeToActiveChanged(function(V){Q.onActiveChanged(V)}));
tPc(this)};
_.f(_.ppJ,_.J5);var e9f=function(v){v.pageDisposalDataTypes=Object.values(GEP).filter(function(Q){return!LLP.includes(Q)})},tPc=function(v){if(_.Y("swatcheroo_enable_ghost_cards")||_.Y("web_watch_clear_data_on_page_dispose"))e9f(v),v.JSC$23474_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.XT.cancelJob(v.clearDataJobId);
v.clearDataJobId=0}),v.runPageDisposeJob=function(){var Q=_.ht().resolve(_.oJ).getDestinationPageType()==="watch";
v.clearDataJobId=_.Lq(_.XT,v.runClearDataJob,Q?0:_.T_("web_watch_delay_page_dispose_ms",1E4))},v.runClearDataJob=function(){Ztq(v)},v.runOnYtNavigateAwayFinish=function(){v.clearDataJobId&&(_.XT.cancelJob(v.clearDataJobId),v.clearDataJobId=0,Ztq(v))},document.addEventListener("yt-navigate-finish",v.runOnYtNavigateAwayFinish),v.JSC$23474_watchApi.addPageDisposeJob(v.runPageDisposeJob),v.addOnDisposeCallback(function(){v.JSC$23474_watchApi.removePageDisposeJob(v.runPageDisposeJob);
v.JSC$23474_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",v.runOnYtNavigateAwayFinish)})},Ztq=function(v){v.pageDisposalDataTypes.forEach(function(Q){v.JSC$23474_watchApi.provideRenderingData(Q,void 0)});
v.clearDataJobId=0};
_.ppJ.prototype.onActiveChanged=function(v){v&&((v=document.querySelector("#watch-page-skeleton"))&&_.ng(v),PIE(this),document.body.removeAttribute("no-y-overflow"),_.mX("IS_SHELL_LOAD")&&_.q95())};
var PIE=function(v){_.e(function(Q){if(Q.nextAddress==1)return Q.yield(v.JSC$23474_watchApi.playerApi,2);_.zz();_.q1(Q)})};var dpn;dpn=_.Y("kevlar_watch_while_counterfactual")?0:.25;_.k29=function(v){_.J5.call(this);this.JSC$23477_watchApi=v;this.JSC$23477_watchWhileEnabled=_.Y("kevlar_watch_while_v2");this.pipEnabled=_.Y("web_enable_pip_on_miniplayer");h9P(this);wp5(this);Ayq(this)};
_.f(_.k29,_.J5);var h9P=function(v){v.JSC$23477_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){TD5(v)});
v.addOnDisposeCallback(function(){v.JSC$23477_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},wp5=function(v){var Q,V;
_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23477_watchApi.playerApi,2);Q=E.yieldResult;V=function(){TD5(v)};
Q.addEventListener("onCollapseMiniplayer",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onCollapseMiniplayer",V)});
_.q1(E)})},Ayq=function(v){var Q=v.JSC$23477_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&Q&&v.JSC$23477_watchWhileEnabled&&(v.playerIntersectionObserver=new IntersectionObserver(function(V){v.handleIntersect(V)},{threshold:[dpn]}),v.playerIntersectionObserver.observe(Q),v.addOnDisposeCallback(function(){var V;
(V=v.playerIntersectionObserver)==null||V.disconnect()}))},TD5=function(v){var Q,V,E;
_.e(function(b){if(b.nextAddress==1){Q=_.ht().resolve(_.oJ);V=Q.data;E=_.M3(V.response,!1,V.playerResponse);_.u9().miniplayerButtonActivation=!0;if(v.pipEnabled)return _.u9().watchPipActivation=!0,b.jumpTo(2);_.ht().resolve(_.lJ).collapse();return b.yield(_.u9().navigationFinishPromise,2)}if(b.nextAddress!=4)return _.u9().currentEndpoint=E.watchEndpoint||null,b.yield(_.ht().resolve(_.lJ).activate(v.JSC$23477_watchApi.getElement("PLAYER"),E,V),4);_.u9().userActivation=!0;_.q1(b)})};
_.k29.prototype.handleIntersect=function(v){Y2J(this,v[v.length-1])};
var Y2J=function(v,Q){v.watchWhileJobId&&_.XT.cancelJob(v.watchWhileJobId);v.watchWhileJobId=_.XT.addLowPriorityJob(function(){var V,E;return _.e(function(b){if(b.nextAddress==1)return v.watchWhileJobId=void 0,V=_.ht().resolve(_.lJ),Q.intersectionRatio>dpn?V.isMiniplayerActive()?b.yield(V.deactivate(),0):b.jumpTo(0):(E=!V.isMiniplayerActive())?b.yield(yyV(v),5):b.jumpTo(4);b.nextAddress!=4&&(E=b.yieldResult);if(!E)return b.jumpTo(0);_.u9().watchWhileActivation=!0;return b.yield(cyq(v),0)})},100)},
yyV=function(v){return _.e(function(Q){return Q.nextAddress==1?_.Y("kevlar_watch_while_paused")?Q.return(!0):Q.yield(v.isPlayerPlaying(),2):Q.return(Q.yieldResult)})};
_.k29.prototype.isPlayerPlaying=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$23477_watchApi.playerApi,2);Q=V.yieldResult;return V.return(Q.getPlayerStateObject().isPlaying)})};
var cyq=function(v){var Q,V;return _.e(function(E){Q=_.ht().resolve(_.oJ).data;V=_.M3(Q.response,!1,Q.playerResponse);_.u9().currentEndpoint=V.watchEndpoint||null;return E.yield(_.ht().resolve(_.lJ).activate(v.JSC$23477_watchApi.getElement("PLAYER"),V,Q),0)})};_.CIq=function(v){_.J5.call(this);this.JSC$23481_watchApi=v;fGJ(this);G25(this)};
_.f(_.CIq,_.J5);var G25=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23481_watchApi.playerApi,2);Q=E.yieldResult;V=function(b){var F;b.sessionData&&b.sessionData.itct&&(F=b.sessionData.itct);var t=b.watchEndpoint;if(t&&b.sessionData&&b.sessionData.autonav)t=_.BN0(t,F);else{var p;t=_.$7(b.videoId,(p=b.listId)!=null?p:void 0,F)}F={endpoint:t};b.sessionData&&(F.tempData=b.sessionData);v.JSC$23481_watchApi.dispatchEvent("yt-navigate",F)};
Q.addEventListener("onPlayVideo",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onPlayVideo",V)});
_.q1(E)})},fGJ=function(v){var Q=function(V){v.onYtNavigate(V)};
v.JSC$23481_watchApi.getRoot().addEventListener("yt-navigate",Q);v.addOnDisposeCallback(function(){v.JSC$23481_watchApi.getRoot().removeEventListener("yt-navigate",Q)})};
_.CIq.prototype.onYtNavigate=function(v){var Q=this,V,E,b,F,t,p,Z,d,w;return _.e(function(A){if(A.nextAddress==1){if(!((V=v.detail)==null?0:(E=V.endpoint)==null?0:E.watchEndpoint))return A.return();b=v.detail.endpoint.watchEndpoint;F=Q.JSC$23481_watchApi.getWatchNextResponse();p=_.y((t=F)==null?void 0:t.currentVideoEndpoint,_.sn);if(!p)return A.return();if(b.videoId!==p.videoId||b.playlistId&&b.playlistId!==p.playlistId||typeof b.startTimeSeconds!=="number")return A.jumpTo(0);v.stopPropagation();
(Z=_.Y("kevlar_watch_while_v2")&&!_.Y("kevlar_watch_while_counterfactual"))&&_.ht().resolve(_.lJ).isMiniplayerActive()||Q.JSC$23481_watchApi.scrollWatchTo(0,!0);return A.yield(Q.JSC$23481_watchApi.playerApi,3)}d=A.yieldResult;w=b.startTimeSeconds;d.seekTo(w,void 0,void 0,void 0,84);d.wakeUpControls();w<d.getDuration()&&d.playVideo();_.q1(A)})};_.Otj=function(v){_.J5.call(this);var Q=this;this.JSC$23484_watchApi=v;var V=this.JSC$23484_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MP9(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23484_watchApi.unsubscribeByKey(V)});
MP9(this);_.Y("enable_ai_companion")&&(v=this.JSC$23484_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.qp8(_.ht().resolve(_.mO),v,"WATCH")};
_.f(_.Otj,_.J5);var MP9=function(v){var Q=v.JSC$23484_watchApi.getWatchNextResponse();if(Q){var V,E=[].concat(_.ui((V=Q==null?void 0:Q.engagementPanels)!=null?V:[]));_.Y("web_watch_comments_visible_by_default")&&(V=E.find(function(b){var F;return((F=b.engagementPanelSectionListRenderer)==null?void 0:F.targetId)==="engagement-panel-comments-section"}),V==null?0:V.engagementPanelSectionListRenderer)&&(V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
E.unshift.apply(E,_.ui(Dpd(Q)));v.JSC$23484_watchApi.provideRenderingData("ENGAGEMENT_PANELS",E)}},R9f=function(v){var Q,V,E,b=(Q=v.engagementPanels)==null?void 0:(V=Q.find(function(T){var c;
return((c=T.engagementPanelSectionListRenderer)==null?void 0:c.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(E=V.engagementPanelSectionListRenderer.content)==null?void 0:E.structuredDescriptionContentRenderer,F;
if(_.y(b==null?void 0:(F=b.items)==null?void 0:F.find(function(T){return!!_.y(T,qGc)}),qGc))return!0;
var t,p,Z,d;if(v=(((t=v.contents)==null?void 0:(p=t.twoColumnWatchNextResults)==null?void 0:(Z=p.results)==null?void 0:(d=Z.results)==null?void 0:d.contents)||[]).find(function(T){return T.videoPrimaryInfoRenderer})){var w,A,k;
return(((w=v.videoPrimaryInfoRenderer)==null?void 0:(A=w.videoActions)==null?void 0:(k=A.menuRenderer)==null?void 0:k.flexibleItems)||[]).some(function(T){T=_.y(T,_.iAR);if(!T)return!1;var c,C;T=(c=T.topLevelButton)==null?void 0:(C=c.buttonViewModel)==null?void 0:C.onTap;if(!T)return!1;c=_.MQ(T);if(!c)return!1;var R;return((R=_.y(c,_.Gn))==null?void 0:R.panelIdentifier)==="PAyouchat"})}return!1},Dpd=function(v){var Q=[];
if(!_.Y("web_watch_inject_placeholder_fantasy_panel_killswitch")){var V,E,b,F=(V=v.engagementPanels)==null?void 0:(E=V.find(function(p){var Z;return((Z=p.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(b=E.engagementPanelSectionListRenderer.content)==null?void 0:b.structuredDescriptionContentRenderer,t;
_.y(F==null?void 0:(t=F.items)==null?void 0:t.find(function(p){return!!_.y(p,twb)}),twb)&&(V=_.GoT("PAsports_fantasy"),V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q.push(V))}R9f(v)&&(v=_.GoT("PAyouchat"),v.engagementPanelSectionListRenderer.targetId="PAyouchat",v.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q.push(v));
return Q};_.lG9=function(v){_.J5.call(this);this.JSC$23487_watchApi=v;n7J(this)};
_.f(_.lG9,_.J5);var n7J=function(v){v.JSC$23487_watchApi.registerActionHandler("yt-loop-command",function(Q){q2E(v,Q)});
v.JSC$23487_watchApi.registerActionHandler("yt-repeat-chapter-command",function(Q){S2d(v,Q)});
v.addOnDisposeCallback(function(){v.JSC$23487_watchApi.unregisterActionHandler("yt-loop-command");v.JSC$23487_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},q2E=function(v,Q){var V;
_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23487_watchApi.playerApi,2);V=E.yieldResult;_.y(Q,eHI).loop?(V.setLoopRange({startTimeMs:Number(_.y(Q,eHI).startTimeMs),endTimeMs:Number(_.y(Q,eHI).endTimeMs),postId:_.y(Q,eHI).postId,type:"clips"}),V.playVideo()):V.setLoopRange(null);_.q1(E)})},S2d=function(v,Q){var V,E;
_.e(function(b){if(b.nextAddress==1)return b.yield(v.JSC$23487_watchApi.playerApi,2);V=b.yieldResult;E=_.y(Q,w5J).repeat;E==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(V.setLoopRange({startTimeMs:Number(_.y(Q,w5J).startTimeMs),endTimeMs:Number(_.y(Q,w5J).endTimeMs),type:"repeatChapter"}),V.playVideo()):E==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&V.setLoopRange(null);_.q1(b)})};_.Jyj=function(v){_.J5.call(this);this.JSC$23492_watchApi=v;z9I(this)};
_.f(_.Jyj,_.J5);var z9I=function(v){v.JSC$23492_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(Q){NDJ(v,Q)});
v.addOnDisposeCallback(function(){v.JSC$23492_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},NDJ=function(v,Q){var V,E,b,F,t,p,Z,d,w,A,k;
_.e(function(T){if(T.nextAddress==1)return T.yield(v.JSC$23492_watchApi.playerApi,2);V=T.yieldResult;if(F=(b=(E=_.y(Q,Atb))==null?void 0:E.highlightedMenuItemKey)!=null?b:"")(p=(t=V).highlightSettingsMenuItem)==null||p.call(t,F);if(w=(d=(Z=_.y(Q,Atb))==null?void 0:Z.openMenuItemKey)!=null?d:"")(k=(A=V).openSettingsMenuItem)==null||k.call(A,w);_.q1(T)})};var xp9=_.b3("/youtube/app/watch/player_state","playerStateEntity");_.Ji=function(v){_.J5.call(this);this.JSC$23495_watchApi=v;BDn(this)};
_.f(_.Ji,_.J5);var g7V=function(v){switch(v){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},BDn=function(v){var Q,V,E,b,F;
_.e(function(t){if(t.nextAddress==1)return t.yield(v.JSC$23495_watchApi.playerApi,2);Q=t.yieldResult;if(v.isDisposed())return t.return();V=function(p){v.onPlayerStateChange(p)};
E=function(p){v.onAdStateChange(p)};
b=function(){v.onAdSkip()};
F=function(p){v.onVideoDataChange(p)};
Q.addEventListener("onStateChange",V);Q.addEventListener("onAdStateChange",E);Q.addEventListener("onAdSkip",b);Q.addEventListener("onVideoDataChange",F);v.addOnDisposeCallback(function(){Q.removeEventListener("onStateChange",V);Q.removeEventListener("onAdStateChange",E);Q.removeEventListener("onAdSkip",b);Q.removeEventListener("onVideoDataChange",F)});
_.q1(t)})},s$P=function(v){var Q=_.uf(),V=Q.dispatch;
a:switch(v.adsState){case -1:case 0:var E="ADS_STATE_NONE";break a;case 1:case 2:case 3:E="ADS_STATE_PLAYING";break a;default:E="ADS_STATE_UNKNOWN"}V.call(Q,_.dW("playerStateEntity",xp9,{key:xp9,playerState:g7V(v.playerState),adsState:E,videoId:v.videoId}))};
_.Ji.prototype.onPlayerStateChange=function(v){var Q=this,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(Q.JSC$23495_watchApi.playerApi,2);V=E.yieldResult;if(Q.isDisposed())return E.return();Q.playerState=v;Q.videoId=V.getVideoData().video_id;s$P(Q);_.q1(E)})};
_.Ji.prototype.onAdStateChange=function(v){this.adsState=v;s$P(this)};
_.Ji.prototype.onAdSkip=function(){this.adsState=0;s$P(this)};
_.Ji.prototype.onVideoDataChange=function(v){v.type==="newdata"&&(this.adsState=-1,s$P(this))};_.j$V=function(v){_.J5.call(this);var Q=this;this.JSC$23499_watchApi=v;this.enableExternalPlaylistPanelInPlayer=_.Y("delhi_web_player_use_external_playlist_panel");_.ht().resolve(_.pD).setPlayer(this.JSC$23499_watchApi.getElement("PLAYER"));v=this.JSC$23499_watchApi.subscribeToActiveChanged(function(V){Q.onActiveChanged(V)});
this.addOnDisposeCallback(v);u$l(this)};
_.f(_.j$V,_.J5);var u$l=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return v.enableExternalPlaylistPanelInPlayer?E.yield(v.JSC$23499_watchApi.playerApi,2):E.return();Q=E.yieldResult;V=function(){if(v.playlistPanelElement)v.playlistPanelElement.onToggleExpanded()};
Q.addEventListener("onToggleExternalPlaylistPanel",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onToggleExternalPlaylistPanel",V)});
_.q1(E)})};
_.j$V.prototype.onActiveChanged=function(v){var Q=this,V=_.ht().resolve(_.pD),E=function(){WLl(Q)};
v?(this.playlistPanelElement=this.JSC$23499_watchApi.getElement("PLAYLIST_PANEL"))?(V.setPlaylistComponent(this.playlistPanelElement),V.addEventListener("yt-playlist-data-updated",E),this.addOnDisposeCallback(function(){V.removeEventListener("yt-playlist-data-updated",E)}),WLl(this)):_.V9(Error("dp")):(V.removeEventListener("yt-playlist-data-updated",E),V.cancelVideoSkip())};
var WLl=function(v){var Q=_.ht().resolve(_.pD);v.JSC$23499_watchApi.provideRenderingData("PLAYLIST",Q.getPlaylistData())};_.N4=function(v){_.J5.call(this);var Q=this;this.JSC$23502_watchApi=v;this.onPageScroll=function(){Q.scrollThrottle.fire();Q.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.FK(this.onThrottledScroll,200,this);_.Cg(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.FK(this.onMastheadThrottledScroll,50,this);_.Cg(this,this.mastheadScrollThrottle);this.animation=new _.AE(function(V){Q.JSC$23502_watchApi.getRoot().setScrollTop(V)});
v=_.Wm(_.oF(),_.MC,function(){Q.onFullscreenChanged()});
this.addOnDisposeCallback(v);o7I(this);XpI(this);this.onThrottledScroll()};
_.f(_.N4,_.J5);
_.N4.prototype.onFullscreenChanged=function(){var v=this,Q=this.JSC$23502_watchApi.getRoot();!this.pageScrollElement&&Q.pageScrollElement?(this.pageScrollElement=Q.pageScrollElement,Q.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){v.pageScrollElement&&v.pageScrollElement.removeEventListener("scroll",v.onPageScroll)})):this.pageScrollElement&&!Q.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var o7I=function(v){window.addEventListener("scroll",v.onPageScroll);v.addOnDisposeCallback(function(){window.removeEventListener("scroll",v.onPageScroll)})},XpI=function(v){v.JSC$23502_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(Q){a:{var V;
if(V=v.JSC$23502_watchApi.getRoot().contains(Q)&&!v.animation.isAnimating()){V=Q.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var E,b,F=(Q==null?void 0:(E=Q.parentElement)==null?void 0:(b=E.parentElement)==null?void 0:b.id)==="fixed-secondary";V=!(V&&F)}if(V){if(_.Y("kevlar_watch_scroll_manager_absolute_offset_killswitch"))E=Q.offsetTop;else for(E=0,b=Q;b!==null;)E+=b.offsetTop,E-=b.scrollTop,b=b.offsetParent;b=E;E=b-24;Q=b+Q.offsetHeight+24;b=v.JSC$23502_watchApi.getRoot().getPageScrollingElement();
V=v.JSC$23502_watchApi.getRoot().getScrollTop();F=V+b.clientHeight-56;if(E<V+56)Q=E-56;else if(Q>F)Q-=b.clientHeight;else break a;v.scrollWatchTo(Math.max(0,Q),!0)}}});
v.addOnDisposeCallback(function(){v.JSC$23502_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.N4.prototype.onThrottledScroll=function(){var v=_.oF(),Q=v.dispatch,V=this.JSC$23502_watchApi.getRoot().getScrollTop();Q.call(v,_.U2({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:V}}))};
_.N4.prototype.onMastheadThrottledScroll=function(){this.JSC$23502_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23502_watchApi.getRoot().getScrollTop())};
_.N4.prototype.scrollWatchTo=function(v,Q){(Q===void 0?0:Q)?this.animation.start(this.JSC$23502_watchApi.getRoot().getScrollTop(),Math.max(0,v),500):this.JSC$23502_watchApi.getRoot().setScrollTop(v)};_.$pV=function(v){_.J5.call(this);var Q=this;this.JSC$23505_watchApi=v;var V=this.JSC$23505_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){aG5(Q)}),E=this.JSC$23505_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ryE(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23505_watchApi.unsubscribeByKey(V);Q.JSC$23505_watchApi.unsubscribeByKey(E)});
aG5(this);ryE(this)};
_.f(_.$pV,_.J5);
var aG5=function(v){var Q,V,E,b=(E=(Q=v.JSC$23505_watchApi.getPlayerResponse())==null?void 0:(V=Q.videoDetails)==null?void 0:V.title)!=null?E:"";v.JSC$23505_watchApi.dispatchEvent("yt-update-title",b)},ryE=function(v){var Q,V,E,b,F,t,p,Z=(p=((t=(Q=v.JSC$23505_watchApi.getWatchNextResponse())==null?void 0:(V=Q.contents)==null?void 0:(E=V.twoColumnWatchNextResults)==null?void 0:(b=E.results)==null?void 0:(F=b.results)==null?void 0:F.contents)!=null?t:[]).find(function(d){return!!d.videoPrimaryInfoRenderer}))==null?
void 0:p.videoPrimaryInfoRenderer;
(Q=_.j0(Z==null?void 0:Z.title))&&v.JSC$23505_watchApi.dispatchEvent("yt-update-title",Q)};_.Htc=function(v){_.J5.call(this);this.JSC$23508_watchApi=v;IG9(this)};
_.f(_.Htc,_.J5);var IG9=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23508_watchApi.playerApi,2);Q=E.yieldResult;V=function(){v.onYpcContentRequest()};
Q.addEventListener("onYpcContentRequest",V);v.addOnDisposeCallback(function(){Q.removeEventListener("onYpcContentRequest",V)});
_.q1(E)})};
_.Htc.prototype.onYpcContentRequest=function(){var v,Q,V,E,b,F=(v=this.JSC$23508_watchApi.getWatchNextResponse())==null?void 0:(Q=v.contents)==null?void 0:(V=Q.twoColumnWatchNextResults)==null?void 0:(E=V.secondaryResults)==null?void 0:(b=E.secondaryResults)==null?void 0:b.offerModule,t,p,Z,d;v=(d=(Z=(p=(t=F==null?void 0:F.episodeOfferModuleRenderer)!=null?t:F==null?void 0:F.movieOfferModuleRenderer)!=null?p:F==null?void 0:F.unlimitedOfferModuleRenderer)!=null?Z:F==null?void 0:F.liveOfferModuleRenderer)!=
null?d:F==null?void 0:F.tvfilmOfferModuleRenderer;var w,A,k;F=(k=F==null?void 0:(w=F.tvfilmOfferModuleRenderer)==null?void 0:(A=w.actionButtons)==null?void 0:A.length)!=null?k:0;A=Math.max(F-1,0);var T,c,C;w=(C=v==null?void 0:(T=v.offerButton)==null?void 0:T.buttonRenderer)!=null?C:v==null?void 0:(c=v.actionButtons)==null?void 0:c[A].buttonRenderer;var R,l;(T=(l=(R=w==null?void 0:w.navigationEndpoint)!=null?R:w==null?void 0:w.serviceEndpoint)!=null?l:w==null?void 0:w.command)&&_.bd.instance.resolveCommand(T)};
}catch(e){_._DumpException(e)}
try{
var Tg7,wnf,dff;_.h$I=function(){var v=_.gI.clone(Pff),Q;return(new _.Ry(function(V,E){v.onSuccess=function(b){_.KL9(b)?V(new dff(b)):E(new _.E6("Request failed, status="+_.fi(b),"net.badstatus",b))};
v.onError=function(b){E(new _.E6("Unknown request error","net.unknown",b))};
v.onTimeout=function(b){E(new _.E6("Request timed out","net.timeout",b))};
Q=_.D9("//googleads.g.doubleclick.net/pagead/id",v)})).thenCatch(function(V){if(V instanceof _.lA){var E;
(E=Q)==null||E.abort()}return _.kD(V)})};
_.AMh=function(v){a:{var Q="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Q="EMBEDDED_PLAYER_MODE_PFL");var V=v.raw_embedded_player_response;if(!V&&(v=v.embedded_player_response))try{V=JSON.parse(v)}catch(b){break a}if(V)b:for(var E in wnf)if(wnf[E]==V.embeddedPlayerMode){Q=wnf[E];break b}}return Q==="EMBEDDED_PLAYER_MODE_PFL"};
_.kPY=function(){if(_.Y("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.omT())return Error("wf");var v=_.r7("PLAYER_VARS",{});if(_.gI.get(v,"privembed",!1)=="1")return Error("xf");if(_.AMh(v))return Error("yf")};
Tg7=function(v){switch(v){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.rV(v,"unknown result type")}};
_.YJh=function(v,Q,V){Q=_.mI0[Q];V={detected:v===0,source:Q.aGv,detectionResult:Tg7(v),contentCpn:V};_.X0("biscottiBasedDetection",V);_.HlN.increment(Q.aGv,v);Q.pwW!==void 0&&_.aS("CATSTAT",_.IZ0(v,Q))};
_.bj=function(v,Q){var V={};V.key=v;V.value=Q;return _.T_h().then(function(E){return new Promise(function(b,F){try{var t=E.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(V);t.onsuccess=function(){b()};
t.onerror=function(){F()}}catch(p){F(p)}})})};
_.cM0=function(){var v=_.T_("user_engagement_experiments_rate_limit_ms"),Q=yMI.get("last-user-engagement-exp-trigger-timestamp");return!Q||(0,_.wO)()>=Q+v?(yMI.set("last-user-engagement-exp-trigger-timestamp",(0,_.wO)()),!0):!1};
_.FP=function(v,Q,V,E,b){Q=Q===void 0?null:Q;V=V===void 0?null:V;E=E===void 0?null:E;b=b===void 0?null:b;v={youThereEventType:v};V&&(v.lactThresholdMs=V.lactThresholdMs,v.mediaPosSec=V.promptDelaySec,v.lactServerRequestMs=V.lactServerRequestMs,v.triggerReason=V.triggerReason);b!=null&&(v.renderingMediaPosSec=Math.round(b));Q||(Q=_.Mo());Q&&(v.clientScreenNonce=Q);E&&(v.clientPlaybackNonce=E);_.X0("youThere",v)};
wnf={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"};dff=function(v){this.xhr=v};
_.E6=function(v,Q,V){_.Vo.call(this,v+", errorCode="+Q);this.errorCode=Q;this.xhr=V;this.name="PromiseAjaxError"};
_.f(_.E6,_.Vo);var Pff={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var yMI=new _.Hr("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.Zhj=function(v){return _.U2({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:v})};
}catch(e){_._DumpException(e)}
try{
var ja,M05,DSj,R6V,nzd,liq,Sxj,jFb,W55,ozb,qxI,O75,xSc,N8q,r4P;_.C3l=function(){var v=window.location.hash;v.charAt(0)==="#"&&(v=v.charAt(1)==="!"?v.substring(2):v.substring(1));return _.FF(v)};
ja=function(v,Q,V){var E;return _.e(function(b){if(b.nextAddress==1)return b.yield(Q(),2);E=b.yieldResult;V(E,v);_.q1(b)})};
M05=function(){return _.e(function(v){return v.nextAddress==1?v.yield((_.kPY()!==void 0?_.kD(Error("zf")):_.h$I()).then(function(){return 1},function(Q){if(Q.message==="Biscotti id is disabled")return 3;
_.Iy("Failed fetching bid");return 0}),2):v.return(v.yieldResult)})};
DSj=function(){var v=_.$z("ZW4tZW1iZWQtcGxheWVyI3BhMG5yenU0ZXIyN3l0LWhhdg=="),Q=_.$z("cWRhODI5MGR1aWZyYW1lI21qYQ==");return document.querySelector(Q+O75+v)?0:1};
R6V=function(){return _.Nqh(_.kp)};
nzd=function(){return _.xI9()===0?0:_.BqG()};
liq=function(){return _.WsS(_.bPS([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Sxj=function(){return _.DIt(qxI)};
_.z69=function(v){_.e(function(Q){switch(Q.nextAddress){case 1:return Q.yield(ja("b.f_",M05,v),2);case 2:return Q.yield(ja("j.s_",_.M2S,v),3);case 3:return Q.yield(ja("r.s_",_.fZ0,v),4);case 4:return Q.yield(ja("e.h_",Sxj,v),5);case 5:if(!_.Y("ab_det_sc_inj")){Q.jumpTo(6);break}return Q.yield(ja("s.i_",_.zz3,v),6);case 6:if(_.Y("ab_deg_unex_thr")){Q.jumpTo(8);break}return Q.yield(ja("a.o_",_.qsZ,v),8);case 8:if(_.Y("ks_get_o_pp")){Q.jumpTo(10);break}return Q.yield(ja("g.o_",_.lZ3,v),10);case 10:if(_.Y("ks_det_gpbl")){Q.jumpTo(12);
break}return Q.yield(ja("p.i_",_.nHb,v),12);case 12:return Q.yield(ja("f.i_",_.ZPo,v),14);case 14:return Q.yield(ja("a.b_",_.y$o,v),15);case 15:return Q.yield(ja("p.m_",_.hzo,v),16);case 16:if(!_.Y("ab_det_el_h_v2")){Q.jumpTo(17);break}return Q.yield(ja("n.h_",liq,v),17);case 17:return Q.yield(ja("o.p_",R6V,v),19);case 19:return Q.yield(ja("e.i_",DSj,v),20);case 20:if(_.Y("ab_det_apm"))return Q.yield(ja("o.a_",nzd,v),0);Q.jumpTo(0)}})};
_.J4l=function(v,Q){v={videoId:v};Q&&(v.playlistId=Q);return v};
_.B8j=function(){if(_.omT()){var v=_.r7("PLAYER_VARS",{});if(_.gI.get(v,"privembed",!1)!="1"&&!_.AMh(v)){var Q=function(){N8q=!0;"google_ad_status"in window?_.aS("DCLKSTAT",1):_.aS("DCLKSTAT",2)};
try{_.SH(_.vwm,Q)}catch(V){}xSc.push(_.XT.addLowPriorityJob(function(){if(!(N8q||"google_ad_status"in window)){try{_.NmE(_.vwm.toString(),Q)}catch(V){}N8q=!0;_.aS("DCLKSTAT",3)}},5E3))}}};
_.gzb=function(v,Q,V){V=V===void 0?!1:V;var E=Math.max(v.width,_.zHe);if(_.Y("kevlar_watch_feed_big_thumbs")&&v.width>=1550-_.oG()&&v.height>=800)E-=_.smV;else if(v.width>=_.Jz){var b=_.Jtn+_.N$9+_.zF;_.Y("kevlar_watch_feed_big_thumbs")&&(b=_.gdf);E-=b}else E-=_.Jtn;E=Math.min(E,_.xYd);b=240;V&&(b=380);Q<.5624||(!_.Y("kevlar_watch_flexy_disable_small_window_sizing")&&(v.height<630&&v.width>=657||v.height>=630&&v.width>=_.Jz&&v.width<1327)?b=360:!_.Y("kevlar_watch_flexy_disable_large_window_sizing")&&
v.height>=630&&v.width>=1327&&(b=480));var F=Math.min(E*Q,v.height-(56+_.SG5+_.B$V));F=Math.max(F,b);Q<1?E=F/Q:v.width>=_.Jz&&(E=_.gzb(v,.5625,V).width);return new _.DT(Math.round(E),Math.round(F))};
_.sFb=function(v){var Q=0;v.indexOf("h")!=-1&&(v=v.split("h"),Q=v[0]*60*60,v=v[1]);v.indexOf("m")!=-1&&(v=v.split("m"),Q=v[0]*60+Q,v=v[1]);v.indexOf("s")!=-1?(v=v.split("s"),Q=v[0]*1+Q):Q=v*1+Q;return Q};
_.ugb=function(){_.T_("service_worker_push_logged_out_prompt_watches")!=-1&&_.Xm("WatchCount").then(function(v){v>=100||_.bj("WatchCount",v+1)})};
jFb=function(v){var Q=v.externalVideoId||"";return Q?v.isShortsEligible?"https://www.youtube.com/shorts/"+Q:"https://www.youtube.com/watch?v="+Q:""};
W55=function(v){var Q=[];v.viewCount&&Q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:v.viewCount});v.likeCount&&Q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:v.likeCount});return Q};
ozb=function(v){var Q,V,E={"@context":"https://schema.org","@type":"VideoObject",description:_.j0(v.description),duration:"PT"+(v.lengthSeconds||"0")+"S",embedUrl:v.embed?v.embed.iframeUrl:"",name:_.j0(v.title),thumbnailUrl:((Q=v.thumbnail)==null?void 0:(V=Q.thumbnails)==null?void 0:V.map(function(w){return w&&w.url||""}))||[],
uploadDate:v.publishDate};_.Y("mweb_video_schema_id_killswitch")||(E["@id"]=jFb(v));Q=W55(v);Q.length&&(E.interactionStatistic=Q);v.category&&(E.genre=v.category);v.ownerChannelName&&(E.author=v.ownerChannelName);v.liveBroadcastDetails&&(E.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:v.liveBroadcastDetails.startTimestamp,endDate:v.liveBroadcastDetails.endTimestamp}]);if(v.learningResource){v=v.learningResource;E["@type"]=["VideoObject","LearningResource"];var b;if((b=v.learningResourceType)==
null?0:b.length)E.learningResourceType=v.learningResourceType[0];var F;if((F=v.educationalAlignment)==null?0:F.length)E.educationalAlignment={"@type":"AlignmentObject",targetName:v.educationalAlignment[0]};var t;if((t=v.educationalLevel)==null?0:t.length){b=v.educationalLevel[0];var p;if((p=v.educationalLevelCountry)==null?0:p.length)b+=" ("+v.educationalLevelCountry+")";E.educationalLevel=b}var Z,d;if(((Z=v.learningResourceType)==null?0:Z.length)&&v.learningResourceType[0]==="Problem walkthrough"&&
((d=v.problemDescriptions)==null?0:d.length))for(E.hasPart=[],p=_.L(v.problemDescriptions),Z=p.next();!Z.done;Z=p.next())b=Z.value,Z=b.problemDescriptionText,d=b.startOffset,b=b.url,Z&&d!==void 0&&b&&E.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:Z,text:Z,startOffset:d,url:b})}return E};
_.XB9=function(v){return _.U2({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:v}})};
qxI=[[["dTZpeXR5YmpwcmltYXJ5IzdudWU=",null,null],[null,["ZXN1bHRzLXJlbmRlcmVyI2d2OW05aGt6N2JxdXl0ZC10d28tY29sdW1uLWJyb3dzZS1y","MWtsZHN0eWxlLXNjb3BlIzZzc3g2NGdk"],null],["b21rZm1hc3RoZWFkLWFkI2xjMmNqMmh4",["aC1ncmlkLXJlbmRlcmVyI3lrd2l4ZTZqZWY0NXl0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyIzhrYW1zODNpYnhpMXl0ZC1yaWM=","MHM2MHN0eWxlLXNjb3BlIzR5MXJ1Y3ph"],null],[null,["LXByb21vLXJlbmRlcmVyI3Q5aW9uMGd1OGt4enl0ZC1iYW5uZXI=","dXB6cHN0eWxlLXNjb3BlIzk4Nm5ydWhh"],null],[null,["ZC1zbG90LXJlbmRlcmVyI2tzam5oNHdqZDZqNXl0ZC1h"],
null]],[["Z2dlZm53cGxheWVyLWFkcyNtbmVxMA==",null,null]],[[null,null,"bm5lci1jdGEtcmVuZGVyZXIjbXh5NHc4dXI2MXl0bHItYmE="]]];O75="#";xSc=[];N8q=!1;_.aib=["engagement-panel-ads"];r4P=new _.FG("updateSentimentBarStateCommand");_.$SE=new _.FG("showSurveyCommand");_.Wz=new _.FG("changeMarkersVisibilityCommand");var H7n,mSj,VVI,QOV,vNf,oz;_.Iid=function(v,Q){this.playerProvider_=v;this.actionSenderElement_=Q;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Iid.prototype.reset=function(){H7n(this);this.isUserPredictedAbsent_=!1};
H7n=function(v,Q){!v.youThereData_||v.showWarningJob_||Q!==void 0&&Q||(_.FP("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Mo(),v.youThereData_,v.clientPlaybackNonce_),_.ay());_.XT.cancelJob(v.showWarningJob_);v.showWarningJob_=0;_.XT.cancelJob(v.showBlockingWarningJob_);v.showBlockingWarningJob_=0;_.XT.cancelJob(v.pausePlaybackJob_);v.pausePlaybackJob_=0;v.youThereData_=null;v.clientPlaybackNonce_=void 0;v.inYouThereFlow_=!1};
_.USI=function(v,Q){var V,E,b;_.e(function(F){if(F.nextAddress==1)return v.reset(),F.yield(v.playerProvider_().getPlayerPromise(),2);V=F.yieldResult;v.clientPlaybackNonce_=V.getVideoData().cpn;v.youThereData_=Q.configData.youThereData;if(!v.youThereData_)return F.return();if(v.youThereData_.triggerReason&&v.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.cM0())return _.FP("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Mo(),v.youThereData_,v.clientPlaybackNonce_),F.return();E=v.youThereData_.promptDelaySec;
b=V.getCurrentTime();v.showWarningJob_=_.XT.addLowPriorityJob(function(){return _.e(function(t){v.showWarningJob_=0;return t.yield(mSj(v),0)})},Math.max(E-b,0)*1E3);
_.q1(F)})};
mSj=function(v){var Q,V,E,b,F,t;return _.e(function(p){if(p.nextAddress==1)return p.yield(v.playerProvider_().getPlayerPromise(),2);if(p.nextAddress!=3)return Q=p.yieldResult,V=Q.getCurrentTime(),p.yield(vNf(v),3);E=p.yieldResult;if(!E||!v.youThereData_)return p.return();if(_.Y("check_user_lact_at_prompt_shown_time_on_web")&&(b=parseInt(v.youThereData_.lactThresholdMs,10),_.kh()<b))return _.FP("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Mo(),v.youThereData_,v.clientPlaybackNonce_),p.return();if(v.youThereData_.playbackPauseDelayMs<=
0)return QOV(v),p.return();!_.Y("external_fullscreen")&&(F=_.ax())&&(v.ignoreFullscreenExitUserActivity_=!0,_.XT.addLowPriorityJob(function(){v.ignoreFullscreenExitUserActivity_=!1},2E3),_.ri(F));
v.youThereData_.showToastWarningPrompt&&(oz(v,v.youThereData_.showWarningActions),v.inYouThereFlow_=!0,_.FP("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Mo(),v.youThereData_,v.clientPlaybackNonce_,V),_.FP("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Mo(),v.youThereData_,v.clientPlaybackNonce_,V));t=0;v.youThereData_.blockingPromptDelayMs&&(t=v.youThereData_.blockingPromptDelayMs);v.showBlockingWarningJob_=_.XT.addLowPriorityJob(function(){return _.e(function(Z){v.showBlockingWarningJob_=0;return Z.yield(VVI(v),
0)})},t);
_.q1(p)})};
VVI=function(v){var Q,V,E;return _.e(function(b){if(b.nextAddress==1)return b.yield(vNf(v),2);Q=b.yieldResult;if(!v.youThereData_)return b.return();Q&&(v.youThereData_.showBlockingWarningAction&&(_.FP("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Mo(),v.youThereData_,v.clientPlaybackNonce_),(V=_.y(v.youThereData_.showBlockingWarningAction,_.E2))?oz(v,V.commands):oz(v,[v.youThereData_.showBlockingWarningAction]),v.inYouThereFlow_=!0),E=v.youThereData_.playbackPauseDelayMs,v.pausePlaybackJob_=
_.XT.addLowPriorityJob(function(){return _.e(function(F){v.pausePlaybackJob_=0;return F.yield(QOV(v),0)})},E));
_.q1(b)})};
QOV=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(vNf(v),2);Q=V.yieldResult;if(!v.youThereData_)return V.return();Q&&(_.FP("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Mo(),v.youThereData_,v.clientPlaybackNonce_),oz(v,v.youThereData_.showPausedActions),v.inYouThereFlow_=!0);_.q1(V)})};
_.Iid.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var v=_.y(this.youThereData_.userActiveDuringFlowAction,_.E2);v?oz(this,v.commands):oz(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.FP("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Mo(),this.youThereData_,this.clientPlaybackNonce_),_.ay());H7n(this,!0)}_.ENV(this,!1)};
_.bFn=function(v){_.FP("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Mo(),v.youThereData_,v.clientPlaybackNonce_)};
vNf=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(v.playerProvider_().getPlayerPromise(),2);Q=E.yieldResult;V=Q.getPlayerState();return E.return(V==-1||V==1||V==3)})};
_.ENV=function(v,Q){var V;_.e(function(E){if(E.nextAddress==1){if(v.isUserPredictedAbsent_==Q)return E.jumpTo(0);v.isUserPredictedAbsent_=Q;return E.yield(v.playerProvider_().getPlayerPromise(),3)}V=E.yieldResult;V.setUserEngagement(Q);Q&&_.FP("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Mo(),v.youThereData_,v.clientPlaybackNonce_);_.q1(E)})};
oz=function(v,Q){if(_.Y("handle_service_request_actions")||_.Y("kevlar_youthere_service_endpoint_actions_killswitch"))_.Qk(v.actionSenderElement_,Q,v.actionSenderElement_);else{Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())V=V.value,V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.sendPost?_.vp(v.actionSenderElement_,[V]):_.Qk(v.actionSenderElement_,[V],v.actionSenderElement_)}};var F9c;var K9l;var XM=function(){var v=_.z.apply(this,arguments)||this;v.systemIcons=_.Y("kevlar_system_icons");v.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return v};
_.f(XM,_.z);XM.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var v=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(v=this.data.percentIfLiked||0,this.activated=!0):(v=this.data.percentIfIndifferent||0,this.activated=!1);_.m9(this.hostElement).querySelector("#like-bar").style.width=v+"%"}};
XM.prototype.handleUpdateSentimentBarStateCommand=function(v){this.data&&this.set("data.likeStatus",_.y(v,r4P).likeStatus)};
XM.prototype.observeLikeStatus=XM.prototype.observeLikeStatus;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],XM.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],XM.prototype,"activated",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],XM.prototype,"systemIcons",void 0);_.W([_.ph("data.likeStatus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],XM.prototype,"observeLikeStatus",null);_.W([_.J({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],XM);
_.B(XM,"ytd-sentiment-bar-renderer",function(){if(K9l!==void 0)return K9l;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return K9l=v},{mode:1});var iFc;var az=function(){var v=_.z.apply(this,arguments)||this;v.small=!0;return v};
_.f(az,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],az.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],az.prototype,"small",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],az);
_.B(az,"ytd-video-view-count-renderer",function(){if(iFc!==void 0)return iFc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return iFc=v},{mode:_.mV("kevlar_poly_si_batch_j080")?1:2});var rp=function(){var v=_.z.apply(this,arguments)||this;v.infoFormattedStrings=[];v.wrapVideoActions=_.Y("kevar_watch_wrap_video_actions");v.hideSentimentBar=_.Y("kevlar_watch_hide_sentiment_bar");v.actionMap={};return v};
_.f(rp,_.z);_.K=rp.prototype;_.K.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.Y("web_modern_buttons"),forceIconButton:!_.Y("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.K.dataChanged=function(){_.Y("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.K.computeInfoFormattedStrings=function(v){if(!v)return[];var Q=[];v.dateText&&Q.push(v.dateText);v.stationName&&Q.push(v.stationName);v.rating&&Q.push(v.rating);v.startEndTimeTemplate&&v.startTimeUtcMillis&&v.endTimeUtcMillis&&Q.push(_.u3(_.oUn(_.j0(v.startEndTimeTemplate),Number(v.startTimeUtcMillis),Number(v.endTimeUtcMillis))));v.upNextProgramText&&Q.push(v.upNextProgramText);return Q};
_.K.scheduleInitialUpdatedMetadataRequest=function(){var v,Q=(v=this.data)==null?void 0:v.updatedMetadataEndpoint;if(Q){var V;v=Number((V=_.y(Q,_.BKN))==null?void 0:V.initialDelayMs);V=isNaN(v)?250:v;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),V)}};
_.K.setSentimentBarWidth=function(){var v=this;_.PE(this,function(){var Q=_.m9(v.hostElement).querySelector("ytd-menu-renderer");if(Q){Q=Q.topLevelButtons;for(var V=0,E=0;E<Q.length;E++){var b=Q[E],F=v.get("toggleButtonSupportedData.toggleButtonIdData.id",b.data);if(F==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||F==="TOGGLE_BUTTON_ID_TYPE_LIKE")V+=b.clientWidth+8;else break}V&&(v.sentiment.style.width=V-8+" px")}})};
_.K.fetchUpdatedMetadata=function(v){var Q;v&&(Q={continuation:v});var V;(v=(V=this.data)==null?void 0:V.updatedMetadataEndpoint)&&_.ht().resolve(_.At).resolveCommand(v,{form:Object.assign({},Q,{element:this.hostElement})})};
_.K.onYtServiceRequestSent=function(v,Q){Q.endpoint&&_.y(Q.endpoint,_.nr)&&(this.hasUpdateSentimentBarStateCommands()&&!_.Y("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.y(Q.endpoint,_.nr).status),this.setSentimentBarWidth())};
_.K.hasUpdateSentimentBarStateCommands=function(){var v,Q,V,E,b=(E=(v=this.data)==null?void 0:(Q=v.videoActions)==null?void 0:(V=Q.menuRenderer)==null?void 0:V.topLevelButtons)!=null?E:[];v=_.L(b);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;b=E=V=void 0;var F=(V=Q.toggleButtonRenderer)==null?void 0:(E=V.toggleButtonSupportedData)==null?void 0:(b=E.toggleButtonIdData)==null?void 0:b.id;if(F==="TOGGLE_BUTTON_ID_TYPE_LIKE"||F==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){E=V=void 0;Q=(E=_.y((V=Q.toggleButtonRenderer)==
null?void 0:V.defaultServiceEndpoint,_.E2))==null?void 0:E.commands;if(!Q)break;Q=_.L(Q);for(V=Q.next();!V.done;V=Q.next())if(_.y(V.value,r4P))return!0}}return!1};
_.K.onYtServiceRequestCompleted=function(v,Q){var V;(v=(V=Q.data)==null?void 0:V.loggingDirectives)&&_.HGE(_.tR(),v);this.get("continuation.timedContinuationData",Q.data)&&this.data&&this.data.updatedMetadataEndpoint&&(Q=Q.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,Q.continuation),Q.timeoutMs))};
_.K.computeHasDateText=function(v){return!!v&&!!v.dateText};
_.hr.Object.defineProperties(rp.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;return!((E=(v=this.data)==null?void 0:(Q=v.videoActions)==null?void 0:(V=Q.menuRenderer)==null?void 0:V.flexibleItems)==null||!E.length)}}});
rp.prototype.onYtServiceRequestCompleted=rp.prototype.onYtServiceRequestCompleted;rp.prototype.onYtServiceRequestSent=rp.prototype.onYtServiceRequestSent;rp.prototype.dataChanged=rp.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],rp.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.hD.YtTaskEmitterBehavior),_.X("design:type",Object)],rp.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rp.prototype,"data",void 0);_.W([_.q({computed:"computeInfoFormattedStrings(data)"}),_.X("design:type",Array)],rp.prototype,"infoFormattedStrings",void 0);
_.W([_.q({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],rp.prototype,"hasDateText",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],rp.prototype,"wrapVideoActions",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],rp.prototype,"hideSentimentBar",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],rp.prototype,"flexMenuEnabled",null);
_.W([_.Z7("#sentiment"),_.X("design:type",Object)],rp.prototype,"sentiment",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rp.prototype,"dataChanged",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],rp.prototype,"onYtServiceRequestSent",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],rp.prototype,"onYtServiceRequestCompleted",null);
_.B(rp,"ytd-video-primary-info-renderer",function(){if(F9c===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);F9c=v}v=F9c;return v},{mode:1});var L9V;var $e=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return v};
_.f($e,_.z);_.K=$e.prototype;_.K.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"}}}};
_.K.dataChanged=function(){var v;this.descriptionToggled=!((v=this.data)==null||!v.defaultExpanded);var Q;this.collapsed=this.descriptionAlwaysCollapsed||!((Q=this.data)==null?0:Q.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Vw(110509);this.showLessClientVe=_.Vw(110510);v=_.Mo();Q=_.CC();v&&Q&&_.x7(v,Q,[this.showMoreClientVe,this.showLessClientVe])};
_.K.onYtExpanderMoreTapped=function(){var v,Q=(v=this.data)==null?void 0:v.showMoreCommand;Q&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(Q);(v=_.Mo())&&this.showMoreClientVe&&_.uI(v,this.showMoreClientVe)};
_.K.onYtExpanderLessTapped=function(){var v=_.Mo();v&&this.showLessClientVe&&_.uI(v,this.showLessClientVe);var Q;(v=(Q=this.data)==null?void 0:Q.showLessCommand)&&this.componentBehavior.resolveCommand(v)};
_.K.handleUpdateDateTextAction=function(v){this.data&&this.data.dateText&&this.set("data.dateText",_.y(v,_.MwI).dateText)};
_.K.handleUpdateDescriptionAction=function(v){if(v=_.y(v,_.BqV))v.isEmpty||!v.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.cg(v.description)):this.set("data.description",v.description)};
_.K.onYtChangeEngagementPanelVisibilityAction=function(v){if(_.Y("web_structured_description_show_more")||_.Y("web_engagement_panel_open_description")){var Q,V=(Q=_.y(v,_.x6R))==null?void 0:Q.targetId,E;v=((E=_.y(v,_.x6R))==null?void 0:E.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";V==="engagement-panel-structured-description"&&v&&(this.descriptionToggled=!0)}};
_.K.updateCollapsedFromBinding=function(v){this.collapsed=v.detail.value};
_.K.updateDescriptionToggledFromBinding=function(v){this.descriptionToggled=v.detail.value};
_.K.updateCanCollapseFromBinding=function(v){this.canCollapse=v.detail.value};
_.hr.Object.defineProperties($e.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.metadataRowContainer)==null?void 0:Q.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 v;return!((v=this.data)==null||!v.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
$e.prototype.onYtExpanderLessTapped=$e.prototype.onYtExpanderLessTapped;$e.prototype.onYtExpanderMoreTapped=$e.prototype.onYtExpanderMoreTapped;$e.prototype.dataChanged=$e.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],$e.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],$e.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$e.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],$e.prototype,"collapsed",void 0);_.W([_.q(),_.X("design:type",Boolean)],$e.prototype,"descriptionToggled",void 0);
_.W([_.q(),_.X("design:type",Boolean)],$e.prototype,"canCollapse",void 0);_.W([_.q(),_.X("design:type",Object)],$e.prototype,"subscribeButtonData",void 0);_.W([_.q(),_.X("design:type",Number)],$e.prototype,"descriptionCollapsedHeight",void 0);_.W([_.q(),_.X("design:type",Object)],$e.prototype,"structuredDescriptionContentRenderer",void 0);_.W([_.q({value:function(){return _.Y("web_watch_description_always_collapsed")}}),
_.X("design:type",Boolean)],$e.prototype,"descriptionAlwaysCollapsed",void 0);_.W([_.Z7("#description"),_.X("design:type",HTMLDivElement)],$e.prototype,"description",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$e.prototype,"dataChanged",null);_.W([_.tM("yt-expander-more-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$e.prototype,"onYtExpanderMoreTapped",null);
_.W([_.tM("yt-expander-less-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$e.prototype,"onYtExpanderLessTapped",null);_.W([_.O("data.metadataRowContainer"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$e.prototype,"metadataCollapsible",null);_.W([_.O("data","structuredDescriptionContentRenderer"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$e.prototype,"hasInlineStructuredDescription",null);
_.W([_.O("data.attributedDescription"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$e.prototype,"hasAttributedDescription",null);_.W([_.O("hasInlineStructuredDescription","collapsed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$e.prototype,"loadStructuredDescription",null);_.W([_.O("data","structuredDescriptionContentRenderer","collapsed"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$e.prototype,"showInlineStructuredDescription",null);
_.W([_.O("data","hasInlineStructuredDescription","metadataCollapsible"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$e.prototype,"descriptionAlwaysCollapsible",null);
_.B($e,"ytd-video-secondary-info-renderer",function(){if(L9V===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden$="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);L9V=v}v=L9V;return v},{mode:2});var tVb;var Iz=function(){return _.z.apply(this,arguments)||this};
_.f(Iz,_.z);Iz.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:_.Y("web_modern_buttons"),forceIconButton:!_.Y("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Iz.prototype.activate=function(v){v.appendTo(this.player);v.getPlayerPromise().then(function(Q){Q.setMinimized(!0)});
this.active=!0};
Iz.prototype.deactivate=function(){var v=this.player.firstElementChild;v.getPlayerPromise().then(function(Q){Q.setMinimized(!1)});
this.active=!1;return v};
Iz.prototype.onScrollUpTap=function(){var v=_.ht().resolve(_.oJ).getCurrentPage();v&&v.setScrollTop(0)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Iz.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Iz.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Iz.prototype,"active",void 0);
_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.X("design:type",Boolean)],Iz.prototype,"darkLaunch",void 0);_.W([_.Z7("#player"),_.X("design:type",HTMLDivElement)],Iz.prototype,"player",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Iz);
_.B(Iz,"ytd-miniplayer-bar-renderer",function(){if(tVb!==void 0)return tVb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tVb=v},{mode:1});_.ad(_.x(function(v){var Q=_.Ze("script");_.uH(function(){var V;if(V=JSON)V=ozb(v.data()),V=_.Fd(JSON.stringify(V).replace(/</g,"\\u003C"));var E=v.data(),b=_.j0(E.title).trim().length===0,F=!E.publishDate||E.publishDate.trim().length===0,t,p,Z,d,w=!((t=E.thumbnail)==null?0:(p=t.thumbnails)==null?0:p.length)||!((Z=E.thumbnail)==null?0:Z.thumbnails[0].url)||((d=E.thumbnail)==null?void 0:d.thumbnails[0].url.trim().length)===0;Q.value&&V&&!(b||F||w)&&_.ii(Q.value,V)},"Vy9K7b");
return _.P("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.P("script",{el:Q,type:"application/ld+json"}))},"Ao"),"player-microformat-renderer",{props:{data:_.Wg}});
}catch(e){_._DumpException(e)}
try{
var Upq,vzV,V0c;_.mpn=function(v){return v.watch.watchWindowSize};
Upq=function(v,Q){var V=document.querySelector(v);V?Q(V):setTimeout(function(){Upq(v,Q)},1E3)};
vzV=function(v,Q,V,E){if(v.isLockupToWatchTransitionEnabled){if(Q){var b={};b=(b["watch-next-appears"]="player-watch-next-loaded",b);b["lockup-to-watch"]=v.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";v.viewTransitionCoordinator.registerElement(Q,b)}V&&(Q={},v.viewTransitionCoordinator.registerElement(V,(Q["lockup-to-watch"]="below-lockup-to-watch",Q["watch-next-appears"]="below-watch-next-loaded",Q)));E&&(V={},v.viewTransitionCoordinator.registerElement(E,
(V["watch-next-appears"]="secondary-watch-next-loaded",V)))}};
_.QF9=function(v){return _.U2({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:v}})};
V0c=new _.FG("webWatchNextResponseExtensionData");var b7j=function(v){_.J5.call(this);var Q=this;this.JSC$23512_watchApi=v;this.observer=null;var V=this.JSC$23512_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Eze(Q)});
this.addOnDisposeCallback(function(){Q.JSC$23512_watchApi.unsubscribeByKey(V);Q.observer&&(Q.observer.disconnect(),Q.observer=null)});
Eze(this)};
_.f(b7j,_.J5);
var Eze=function(v){var Q,V,E,b,F;_.e(function(t){if(t.nextAddress==1){v.observer&&(v.observer.disconnect(),v.observer=null);Q=v.JSC$23512_watchApi.getWatchNextResponse();if(!Q)return t.return();V=_.y(Q,V0c);return((E=V)==null?0:E.enableCreatorChatbot)&&V.creatorChannelId?_.Y("enable_creator_chatbot_link_out")?t.yield((0,_.ESo)("NSzT5"),6):t.yield((0,_.ESo)("NSzT5"),5):t.jumpTo(0)}if(t.nextAddress!=6)return b=_.F5e,b(V.creatorChannelId),Upq("ytd-watch-metadata",function(p){v.observer=new MutationObserver(function(){var Z,
d;(Z=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(d=Z.closest("yt-button-view-model.ytd-menu-renderer"))==null||d.remove()});
v.observer.observe(p,{childList:!0,subtree:!0})}),t.jumpTo(0);
F=_.K5c;F(V.creatorChannelId);_.q1(t)})};var xe=function(v){_.J5.call(this);this.JSC$23516_watchApi=v;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;i7E(this)};
_.f(xe,_.J5);var i7E=function(v){_.e(function(Q){if(Q.nextAddress==1)return Q.yield(L5J(v),2);t0J(v);_.q1(Q)})},L5J=function(v){var Q,V,E,b,F,t,p,Z,d;
return _.e(function(w){if(w.nextAddress==1)return w.yield(v.JSC$23516_watchApi.playerApi,2);Q=w.yieldResult;v.JSC$23516_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){pBV(v)});
v.JSC$23516_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){v.isShelfVisible?e6j(v):Bz(v)});
V=_.oF().subscribe(function(){v.isTheaterMode=_.C_(_.oF().getState());v.isTheaterMode?Bz(v):Z7c(v)});
E=v.JSC$23516_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){t0J(v)});
b=function(A){v.onCueRangeEnter(A)};
Q.addEventListener("onCueRangeEnter",b);F=function(A){v.onCueRangeExit(A)};
Q.addEventListener("onCueRangeExit",F);t=function(){v.isSeeking=!0};
Q.addEventListener("SEEK_TO",t);p=function(){v.onSeekComplete()};
Q.addEventListener("SEEK_COMPLETE",p);Z=function(){v.onAdStart()};
Q.addEventListener("onAdStart",Z);d=function(){v.onAdComplete()};
Q.addEventListener("onAdComplete",d);v.addOnDisposeCallback(function(){V();v.JSC$23516_watchApi.unsubscribeByKey(E);Q.removeEventListener("onCueRangeEnter",b);Q.removeEventListener("onCueRangeExit",F);Q.removeEventListener("SEEK_TO",t);Q.removeEventListener("SEEK_COMPLETE",p);Q.removeEventListener("onAdStart",Z);Q.removeEventListener("onAdComplete",d)});
_.q1(w)})},P35=function(v){var Q,V,E,b,F,t,p,Z,d;
return(F=(Q=v.contents)==null?void 0:(V=Q.twoColumnWatchNextResults)==null?void 0:(E=V.results)==null?void 0:(b=E.results)==null?void 0:b.contents)==null?void 0:(t=F.find(function(w){var A,k,T;return(A=w.itemSectionRenderer)==null?void 0:(k=A.contents)==null?void 0:(T=k[0])==null?void 0:T.shoppingTimelyShelfViewModel}))==null?void 0:(p=t.itemSectionRenderer)==null?void 0:(Z=p.contents)==null?void 0:(d=Z[0])==null?void 0:d.shoppingTimelyShelfViewModel},t0J=function(v){var Q;
_.e(function(V){if(V.nextAddress==1)return(Q=v.JSC$23516_watchApi.getWatchNextResponse())?V.yield(pBV(v),2):V.return();v.shoppingTimelyShelfViewModel=P35(Q);dSf(v);h6V(v);_.q1(V)})},dSf=function(v){var Q,V=(Q=v.shoppingTimelyShelfViewModel)==null?void 0:Q.offerIdToVariants;
V&&(Q=V.filter(function(E){return E.key&&E.value}).map(function(E){return[E.key,
E.value]}),v.variantsMap=new Map(Q))},h6V=function(v){var Q,V,E,b,F,t;
_.e(function(p){if(p.nextAddress==1)return(V=(Q=v.shoppingTimelyShelfViewModel)==null?void 0:Q.cueRanges)?p.yield(v.JSC$23516_watchApi.playerApi,2):p.return();E=p.yieldResult;v.cueRanges=V;b=_.L(V);for(F=b.next();!F.done;F=b.next())t=F.value,t.startTime!==void 0&&t.endTime!==void 0&&t.id!==void 0&&E.addCueRange("shopping_timely_shelf"+t.id,wBV(t.startTime),wBV(t.endTime));_.q1(p)})},wBV=function(v){return Number(v.seconds||0)+(v.nanos||0)/1E9};
xe.prototype.onCueRangeEnter=function(v){if(v.startsWith("shopping_timely_shelf")&&(this.activeCueId=v,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){v=v.substring(21);var Q,V,E=(Q=this.variantsMap)==null?void 0:(V=Q.get(v))==null?void 0:V.shelf;E&&(this.JSC$23516_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",E),e6j(this))}};
xe.prototype.onCueRangeExit=function(v){v.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||Bz(this))};
xe.prototype.onSeekComplete=function(){this.isSeeking=!1;Z7c(this)};
var e6j=function(v){v.shoppingTimelyShelfViewModel&&(v.isShelfVisible=!0,_.KW.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},Bz=function(v){v.shoppingTimelyShelfViewModel&&(v.isShelfVisible=!1,_.KW.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},pBV=function(v){var Q,V,E,b,F;
return _.e(function(t){if(t.nextAddress==1)return t.yield(v.JSC$23516_watchApi.playerApi,2);Q=t.yieldResult;if(v.cueRanges)for(V=_.L(v.cueRanges),E=V.next();!E.done;E=V.next())b=E.value,b.id&&(F="shopping_timely_shelf"+b.id,Q.removeCueRange(F));v.JSC$23516_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});Bz(v);v.shoppingTimelyShelfViewModel=void 0;v.cueRanges=void 0;v.variantsMap=void 0;v.isSeeking=!1;v.activeCueId=void 0;_.q1(t)})};
xe.prototype.onAdStart=function(){this.isAdPlaying=!0;Bz(this)};
xe.prototype.onAdComplete=function(){this.isAdPlaying=!1;Z7c(this)};
var Z7c=function(v){if(v.activeCueId)v.onCueRangeEnter(v.activeCueId);else Bz(v)};var y4P=function(v){_.J5.call(this);var Q=this;this.JSC$23523_watchApi=v;v=_.Wm(_.oF(),_.QoT,function(){A4V(Q)});
this.addOnDisposeCallback(v);v=_.Wm(_.oF(),_.mpn,function(){A4V(Q)});
this.addOnDisposeCallback(v);kOj(this);T8I(this);Yxl()};
_.f(y4P,_.J5);var kOj=function(v){var Q=function(E){_.oF().dispatch(_.XUJ(E.matches))},V=window.matchMedia("(max-width: "+(999+_.oG())+"px)");
V.addListener(Q);v.addOnDisposeCallback(function(){V.removeListener(Q)});
Q(V)},T8I=function(v){v.JSC$23523_watchApi.registerActionHandler("yt-window-resized",function(){Yxl()});
v.addOnDisposeCallback(function(){v.JSC$23523_watchApi.unregisterActionHandler("yt-window-resized")})},Yxl=function(){var v=_.Zl();
_.oF().dispatch(_.U2({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:v.width,height:v.height}}}))},A4V=function(v){var Q;
_.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$23523_watchApi.playerApi,2);Q=V.yieldResult;Q.setSize(NaN,NaN);_.q1(V)})};var c4c=function(v){_.J5.call(this);var Q=_.ht().resolve(_.aw);vzV(Q,v.getElement("PLAYER_CONTAINER"),v.getElement("BELOW_THE_PLAYER"),v.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var V=v.getElement("PLAYER_CONTAINER"),E=v.getElement("BELOW_THE_PLAYER"),b=v.getElement("SECONDARY");Q.isLockupToWatchTransitionEnabled&&(V&&_.R7(Q.viewTransitionCoordinator,V),E&&_.R7(Q.viewTransitionCoordinator,E),b&&_.R7(Q.viewTransitionCoordinator,b))})};
_.f(c4c,_.J5);_.gp=function(v){_.ij.call(this);var Q=this;this.rootElement=v;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){Q.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.f(_.gp,_.ij);_.K=_.gp.prototype;_.K.getRoot=function(){return this.rootElement};
_.K.getElement=function(v){return this.rootElement.getElement(v)};
_.K.setPlayerResponse=function(v){this.playerResponse=v;this.publish("PLAYER_RESPONSE_UPDATED",v)};
_.K.getPlayerResponse=function(){return this.playerResponse};
_.K.setWatchNextResponse=function(v){this.watchNextResponse===v?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=v,this.publish("WATCH_NEXT_RESPONSE_UPDATED",v))};
_.K.getWatchNextResponse=function(){return this.watchNextResponse};
_.K.registerActionHandler=function(v,Q){var V=this;if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.iM(_.KW.getInstance(),(E[v]=Q,E),this.getRoot())}else this.actionHandlers.has(v)||(this.actionHandlers.set(v,[]),E={},_.iM(_.KW.getInstance(),(E[v]=function(){var b=_.aE.apply(0,arguments);return(V.actionHandlers.get(v)||[]).map(function(F){return F.apply(null,_.ui(b))})},E),this.getRoot())),this.actionHandlers.get(v).push(Q)};
_.K.unregisterActionHandler=function(v){if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.LW(_.KW.getInstance(),(Q[v]=!0,Q),this.getRoot())}else(Q=this.actionHandlers.get(v))?(Q.pop(),Q.length===0&&(Q={},_.LW(_.KW.getInstance(),(Q[v]=!0,Q),this.getRoot()),this.actionHandlers.delete(v))):_.Iy(new _.xd("Attempted to unregister an action handler which is not registered.",v))};
_.K.addPageDisposeJob=function(v){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.nQB(this.rootElement.pageDisposeJobs,v)};
_.K.removePageDisposeJob=function(v){this.rootElement.pageDisposeJobs&&_.ub(this.rootElement.pageDisposeJobs,v)};
_.K.dispatchEvent=function(v,Q){_.Hj(this.rootElement,v,Q)};
_.K.provideRenderingData=function(v,Q){this.rootElement.provideRenderingData(v,Q)};
_.K.scrollWatchTo=function(v,Q){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(v,Q)};
_.K.focusOnPlayer=function(){var v=this.getElement("PLAYER");_.PE(v,function(){if(v&&v.firstElementChild){var Q=v.querySelector(".html5-video-player");Q&&(_.Ty(_.ht().resolve(_.dS)),Q.focus())}else _.Iy(Error("ep"))})};
_.K.subscribeToActiveChanged=function(v,Q){Q=Q===void 0?!0:Q;var V=_.Wm(_.oF(),_.gUl,function(E){v(E)});
Q&&v(_.gUl(_.oF().getState()));return V};
_.K.isActive=function(){return _.gUl(_.oF().getState())};
_.K.onAttached=function(){var v=_.Y("external_fullscreen");_.Y("use_unified_flag_accessor")&&(v=_.ht().resolve(_.gbq).retriever.getFlag(_.MjN));(v||_.mX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var fiV=function(v){return v.getRoot().is==="ytd-watch-flexy"||v.getRoot().is==="ytd-watch-grid"},s8=function(v){return v.getRoot().is==="ytd-watch-fixie"};
_.gp.prototype.initPersistentModules=function(){if(s8(this)||fiV(this)&&_.Y("kevlar_watch_flexy_theater_manager")){var v=new _.cYj(this);_.Cg(this,v)}v=new _.ppJ(this);_.Cg(this,v);v=new _.nS(this);_.Cg(this,v);v=new _.FLc(this);_.Cg(this,v);v=new _.Ji(this);_.Cg(this,v);v=new _.lZ(this);_.Cg(this,v);if(s8(this)||fiV(this)&&_.Y("kevlar_watch_flexy_playlist_manager"))v=new _.j$V(this),_.Cg(this,v);_.Y("web_thumbnail_to_watch_transition")&&(v=new c4c(this),_.Cg(this,v))};
_.gp.prototype.initOrDisposeActiveModules=function(v){v?(this.watchScrollManager=new _.N4(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.CIq(this)),_.Y("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new xe(this)),this.activeModules.push(new _.yrI(this)),s8(this)&&this.activeModules.push(new y4P(this)),this.activeModules.push(new _.$pV(this)),this.activeModules.push(new _.k29(this)),(s8(this)||_.Y("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.MuE(this)),this.activeModules.push(new _.lG9(this)),(s8(this)||_.Y("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Htc(this)),(s8(this)||_.Y("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.xoJ(this)),_.Y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.jxJ(this),this.activeModules.push(this.watchCinematicManager)),_.Y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Jyj(this)),_.Y("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.itV(this)),v=_.Y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Y("kevlar_watch_flexy_comments_manager")&&!v&&this.activeModules.push(new _.v7c(this)),_.Y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.sTd(this)),this.activeModules.push(new _.RaJ(this)),this.activeModules.push(new _.Otj(this)),_.Y("web_enable_timely_actions")&&this.activeModules.push(new _.Snn(this)),_.Y("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.VHV(this)),_.Y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.a39(this)),_.Y("web_fullscreen_components")&&this.activeModules.push(new _.l3P(this)),_.Y("web_player_rtr_ctrls")&&this.activeModules.push(new _.bCj(this)),(_.Y("enable_creator_chatbot")||_.Y("enable_creator_chatbot_link_out"))&&this.activeModules.push(new b7j(this))):(_.pg(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.gp.prototype.disposeInternal=function(){_.ij.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.hr.Object.defineProperties(_.gp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var zbl,Vy,Je5,NlI,Bl5,gPV,xjn,sEq;zbl=function(){var v=_.Pp();v.info||(v.info={});return v.info};
Vy=function(v){return Math.round(_.Ay()+v)};
Je5=function(){var v;if(_.Y("csi_use_performance_navigation_timing")){var Q,V,E,b=_.wD==null?void 0:(v=_.wD.getEntriesByType)==null?void 0:(Q=v.call(_.wD,"navigation"))==null?void 0:(V=Q[0])==null?void 0:(E=V.toJSON)==null?void 0:E.call(V);b?(b.requestStart=Vy(b.requestStart),b.responseEnd=Vy(b.responseEnd),b.redirectStart=Vy(b.redirectStart),b.redirectEnd=Vy(b.redirectEnd),b.domainLookupEnd=Vy(b.domainLookupEnd),b.connectStart=Vy(b.connectStart),b.connectEnd=Vy(b.connectEnd),b.responseStart=Vy(b.responseStart),
b.secureConnectionStart=Vy(b.secureConnectionStart),b.domainLookupStart=Vy(b.domainLookupStart),b.isPerformanceNavigationTiming=!0,v=b):v=_.wD.timing}else v=_.Y("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.wD.timing)):_.wD.timing;return v};
NlI=function(){if(_.wD.getEntriesByType){var v=_.wD.getEntriesByType("paint");if(v=_.J3(v,function(V){return V.name==="first-paint"}))return Vy(v.startTime)}var Q;
_.Y("csi_use_performance_navigation_timing")?Q=_.wD.getEntriesByType("first-paint")[0].startTime:Q=_.wD.timing.msFirstPaint;return Q?Math.max(0,Q):0};
Bl5=function(){var v=window.location.protocol,Q=_.wD.getEntriesByType("resource");Q=_.U$(Q,function(V){return V.name.indexOf(v+"//fonts.gstatic.com/s/")===0});
(Q=xjn(Q,function(V,E){return E.duration>V.duration?E:V}))&&Q.startTime>0&&Q.responseEnd>0&&(_.k7("wffs",Vy(Q.startTime)),_.k7("wffe",Vy(Q.responseEnd)))};
gPV=function(v,Q){v=document.querySelector(v);if(!v)return!1;var V="",E=v.nodeName;E==="SCRIPT"?(V=v.src,V||(V=v.getAttribute("data-timing-href"))&&(V=window.location.protocol+V)):E==="LINK"&&(V=v.href);_.E_(document)&&v.setAttribute("nonce",_.E_(document));return V?(v=_.wD.getEntriesByName(V))&&v[0]&&(v=v[0],V=_.Ay(),_.k7("rsf_"+Q,V+Math.round(v.fetchStart)),_.k7("rse_"+Q,V+Math.round(v.responseEnd)),v.transferSize!==void 0&&v.transferSize===0)?!0:!1:!1};
_.uII=function(v,Q){_.v5(function(){_.hy("").info.actionType=v;Q&&_.aS("TIMING_AFT_KEYS",Q);_.aS("TIMING_ACTION",v);var V=_.JBE(_.r7("TIMING_INFO",{}));Object.keys(V).length>0&&_.Y7(V);V={isNavigation:!0,actionType:_.cBm(_.r7("TIMING_ACTION"))};var E=_.r7("PREVIOUS_ACTION");E&&(V.previousAction=_.cBm(E));if(E=_.r7("CLIENT_PROTOCOL"))V.httpProtocol=E;if(E=_.r7("CLIENT_TRANSPORT"))V.transportProtocol=E;(E=_.Mo())&&E!=="UNDEFINED_CSN"&&(V.clientScreenNonce=E);E=_.zf3();if(E===1||E===-1)V.isVisible=!0;
E=_.ddS().loadType==="cold";var b=zbl();E||(E=b.yt_lt==="cold");if(E){V.loadType="cold";E=zbl();b=Je5();var F=_.Ay(),t=_.r7("CSI_START_TIMESTAMP_MILLIS",0);t>0&&!_.Y("embeds_web_enable_csi_start_override_killswitch")&&(F=t);F&&(_.k7("srt",b.responseStart),E.prerender!==1&&_.Odt(F));E=NlI();E>0&&_.k7("fpt",E);E=Je5();E.isPerformanceNavigationTiming&&_.Y7({performanceNavigationTiming:!0},void 0);_.k7("nreqs",E.requestStart,void 0);_.k7("nress",E.responseStart,void 0);_.k7("nrese",E.responseEnd,void 0);
E.redirectEnd-E.redirectStart>0&&(_.k7("nrs",E.redirectStart,void 0),_.k7("nre",E.redirectEnd,void 0));E.domainLookupEnd-E.domainLookupStart>0&&(_.k7("ndnss",E.domainLookupStart,void 0),_.k7("ndnse",E.domainLookupEnd,void 0));E.connectEnd-E.connectStart>0&&(_.k7("ntcps",E.connectStart,void 0),_.k7("ntcpe",E.connectEnd,void 0));E.secureConnectionStart>=_.Ay()&&E.connectEnd-E.secureConnectionStart>0&&(_.k7("nstcps",E.secureConnectionStart,void 0),_.k7("ntcpe",E.connectEnd,void 0));_.wD&&"getEntriesByType"in
_.wD&&Bl5();E=[];if(document.querySelector&&_.wD&&_.wD.getEntriesByName)for(var p in sEq)sEq.hasOwnProperty(p)&&(b=sEq[p],gPV(p,b)&&E.push(b));if(E.length>0)for(V.resourceInfo=[],p=_.L(E),E=p.next();!E.done;E=p.next())V.resourceInfo.push({resourceCache:E.value})}_.Y7(V);V=_.dD();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);p=V.preLoggedGelInfos;V=_.w2Q();E=void 0;for(b=0;b<p.length;b++)if(F=p[b],F.loadType){E=F.loadType;break}if(_.ddS().loadType==="cold"&&(V.loadType==="cold"||E==="cold")){E=_.hfh();
b=_.dD();b=b.gelTicks?b.gelTicks:b.gelTicks={};for(var Z in E)if(!(Z in b))if(typeof E[Z]==="number")_.k7(Z,_.yk(Z));else if(_.Y("log_repeated_ytcsi_ticks"))for(F=_.L(E[Z]),t=F.next();!t.done;t=F.next())t=t.value,_.k7(Z.slice(1),t);Z={};E=!1;p=_.L(p);for(b=p.next();!b.done;b=p.next())E=b.value,_.nC(V,E),_.nC(Z,E),E=!0;E&&_.Y7(Z)}_.g93(!0);Z=_.r7("TIMING_ACTION");_.Q9("ytglobal.timingready_")&&Z&&_.$dQ()&&_.BAZ()&&_.qvh()})()};
xjn=function(v,Q){return Array.prototype.reduce.call(v,Q,{duration:0})};
sEq={'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 jEf={};jEf.YtVisibilityRootBehavior=[_.YK8.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.t5(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.r7("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var v=_.r7("INNERTUBE_CLIENT_NAME")!=="WEB";_.Y("kevlar_use_vimio_behavior")&&v&&_.gCS()}}];_.EF={};_.EF.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(v){v.detail.contextProvider=this;v.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
jEf.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.B_();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(v){var Q=this;this.pageCount+=1;_.Y("kevlar_use_vimio_behavior")&&(_.r7("INNERTUBE_CLIENT_NAME")==="WEB"?_.XT.addJob(function(){Q.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(v)},
loadPage_:function(v){this.data=v},
ytPageBehaviorActiveObserver_:function(v){var Q=this;_.Y("kevlar_use_vimio_behavior")&&(v?_.r7("INNERTUBE_CLIENT_NAME")==="WEB"?_.XT.addJob(function(){Q.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(v){if(!this.setScrollTopJobId_){var Q=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){Q.setScrollTopJobId_=0;var V=_.ht().resolve(_.d$(_.dS));V&&_.Ty(V);this.getPageScrollingElement().scrollTop=v}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.RM(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var S9d;var Qy=function(){var v=_.z.apply(this,arguments)||this;v.playerListenerConfig=null;v.actionMap={"yt-show-watch-page-survey":"openSurvey"};return v};
_.f(Qy,_.z);_.K=Qy.prototype;_.K.dataChanged=function(){var v=this,Q=_.aJ();Q&&Q.getPlayerPromise().then(function(E){v.maybeRemovePlayerListeners(E)});
var V=this.data&&this.data.survey;V&&((V=(V=V.singleOptionSurveyRenderer||V.checkboxSurveyRenderer||V.multiStageSurveyRenderer)&&V.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(Q,V):this.openSurvey())};
_.K.triggerWatchPageSurvey=function(v,Q){var V=this,E,b,F,t,p,Z,d,w,A;return _.e(function(k){if(k.nextAddress==1)return v?k.yield(v.getPlayerPromise(),2):k.return();V.player=k.yieldResult;if(!V.player)return k.return();E={};b=_.L(Q);for(F=b.next();!F.done;F=b.next())t=F.value,p=_.L(V.createEventListenerPair(t)),Z=p.next().value,d=p.next().value,w=Z,A=d,w&&A&&(E[w]=A,V.ytPlayerListenerBehavior.listenToPlayerEvent(V.player,w,A));V.playerListenerConfig=E;_.q1(k)})};
_.K.createEventListenerPair=function(v){var Q=v.playbackEventTrigger;return Q?this.handlePlaybackTrigger(Q):(v=v.watchTimeTrigger)?this.handleWatchTimeTrigger(v):[void 0,void 0]};
_.K.handleWatchTimeTrigger=function(v){var Q=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var V=v.videoWatchFraction,E=v.watchTimeSec;return E&&V?["onVideoProgress",function(){Q.player&&Q.isWatchTimeConditionMet(Q.player,V,E)&&Q.showSurvey()}]:[void 0,
void 0]};
_.K.isWatchTimeConditionMet=function(v,Q,V){var E=v.getProgressState(),b=E.current-this.lastKnownPlaybackPosition;b<5&&(this.accumulatedMediaTime+=b);this.lastKnownPlaybackPosition=E.current;E=Math.round(this.accumulatedMediaTime/E.duration*1E3)/1E3;return v.getPresentingPlayerType&&v.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>V||E>Q)};
_.K.handlePlaybackTrigger=function(v){var Q=this;v=v.playbackEvent;if(v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var V="onStateChange";var E=function(b){b===0&&Q.showSurvey()}}else v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(V="onVideoProgress",E=function(b){Q.player&&Q.player.getPresentingPlayerType&&Q.player.getPresentingPlayerType()===1&&b&&Q.showSurvey()}):v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(V="onAdEnd",E=this.showSurvey);
return[V,E]};
_.K.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.K.openSurvey=function(){var v=this,Q=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.Zhj(!!Q));_.XT.addJob(function(){v.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:Q}})},0,0)};
_.K.maybeRemovePlayerListeners=function(v){if(this.playerListenerConfig){for(var Q=_.L(Object.keys(this.playerListenerConfig)),V=Q.next();!V.done;V=Q.next())V=V.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(v,V,this.playerListenerConfig[V]);this.playerListenerConfig=null}};
Qy.prototype.dataChanged=Qy.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],Qy.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],Qy.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Qy.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],Qy.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Qy.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Qy.prototype,"playerListenerConfig",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Qy.prototype,"lastKnownPlaybackPosition",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],Qy.prototype,"accumulatedMediaTime",void 0);_.W([_.q(),_.X("design:type",Object)],Qy.prototype,"player",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Qy.prototype,"dataChanged",null);_.W([_.J({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Qy);
_.B(Qy,"ytd-survey-trigger-renderer",function(){if(S9d!==void 0)return S9d;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return S9d=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
var rM0;_.dj=function(v){var Q=document.createElement("link");_.e1(Q,v,"stylesheet");document.head.appendChild(Q)};
_.hU=function(v,Q){var V,E;return _.e(function(b){V=document.createElement("div");V.id=v.id;v.className&&(V.className=v.className);E=v.element;if(!E)throw Error("gk");if(v.location==="prepend")E.prepend(V);else if(v.location==="appendChild")E.appendChild(V);else if(v.location==="after")E.after(V);else throw Error("hk");return b.return(_.si(V,Q,"jj"))})};
_.wj=function(v){var Q;return _.e(function(V){(Q=document.getElementById(v))&&Q.remove();_.q1(V)})};
_.AU=function(v,Q){var V=document.querySelector(v);V?Q(V):setTimeout(function(){_.AU(v,Q)},1E3)};
_.$f7=function(v,Q,V){var E;_.e(function(b){if(b.nextAddress==1)return(E=document.getElementById(v))?b.jumpTo(2):b.yield(rM0(v,Q,V),2);if(E=document.getElementById(v))E.style.display="block";_.q1(b)})};
rM0=function(v,Q,V){return _.e(function(E){return E.return(new Promise(function(b){_.AU("div #panels",function(F){_.hU({element:F,location:"appendChild",id:v,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+V},Q);b()})}))})};_.kT=_.x(function(v){var Q=v.text;var V=v.onClick;var E=v.color;var b=v.backgroundColor;var F=v.buttonSize;var t=v.disabled;var p=v.iconName;var Z=v.iconSize;var d=v.className;var w=v.iconClassName;v=v.ariaLabel;var A=_.EP(function(T){V(T)}),k={};
return _.P("button",{class:_.QZ("ytpStandardButtonsHost",(k.ytpStandardButtonsLarge=function(){return(F==null?void 0:F())==="large"},k),d),
"on:click":A,style:_.iP({color:E,"background-color":b}),disabled:t,"aria-label":v},_.P(_.h,{cond:p,then:function(){return _.P(_.L_,{className:_.QZ("ytpStandardButtonsIconContainer",w),icon:p,size:Z})}}),Q)},"ij");_.I7f=_.x(function(v){var Q,V,E={};return _.P("div",{class:_.QZ("ytprototypesEngagementPanelComponentHost",(E.ytprototypesEngagementPanelComponentHostMweb=v.isMweb,E),v.className),id:v.id},_.P("div",{class:_.QZ("ytprototypesEngagementPanelComponentEngagementPanelHeader",v.headerClassName)},_.P("div",null,v.header()),_.P("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.P("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(Q=v.HeaderButton)==null?void 0:Q.call(v)),
_.P(_.kT,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var b;(b=v.onHide)==null||b.call(v);var F;if((F=v.preventDefault)==null||!F.call(v))if(b=v.id(),b=document.getElementById(b))b.style.display="none"}}))),_.P("div",{class:_.QZ("ytprototypesEngagementPanelComponentEngagementPanelContent",v.contentClassName),
style:function(){var b,F;return"height: "+(((b=v.height)==null?0:b.call(v))||((F=v.isMweb)==null?0:F.call(v))?"100%":"800px")+";"}},v.content()),_.P("div",null,(V=v.Footer)==null?void 0:V.call(v)))},"kj");
}catch(e){_._DumpException(e)}
try{
var ced=new _.FG("replaceFeedContentAction");var f5V;var Gdq;var CVq=function(){return _.z.apply(this,arguments)||this};
_.f(CVq,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],CVq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CVq.prototype,"data",void 0);_.W([_.J({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],CVq);
_.B(CVq,"ytd-sub-feed-option-renderer",function(){if(Gdq!==void 0)return Gdq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Gdq=v},{mode:1});var McE;var rT=function(){return _.z.apply(this,arguments)||this};
_.f(rT,_.z);rT.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rT.prototype,"ytRendererStamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rT.prototype,"data",void 0);_.W([_.J({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],rT);
_.B(rT,"ytd-sub-feed-selector-renderer",function(){if(McE!==void 0)return McE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return McE=v},{mode:1});var $1=function(){return _.z.apply(this,arguments)||this};
_.f($1,_.z);
$1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$1.prototype,"data",void 0);_.W([_.J({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],$1);
_.B($1,"ytd-browse-feed-actions-renderer",function(){if(f5V!==void 0)return f5V;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return f5V=v},{mode:1});var Off;var DjP;var Ii=function(){return _.z.apply(this,arguments)||this};
_.f(Ii,_.z);Ii.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ii.prototype,"data",void 0);_.W([_.J({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Ii);
_.B(Ii,"ytd-mini-channel-renderer",function(){if(DjP!==void 0)return DjP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return DjP=v},{mode:1});var RbV;var HT=function(){return _.z.apply(this,arguments)||this};
_.f(HT,_.z);HT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],HT.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],HT);
_.B(HT,"ytd-vertical-channel-section-renderer",function(){if(RbV!==void 0)return RbV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return RbV=v},{mode:1});var m1=function(){return _.z.apply(this,arguments)||this};
_.f(m1,_.z);m1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],m1.prototype,"data",void 0);_.W([_.J({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],m1);
_.B(m1,"ytd-browse-secondary-contents-renderer",function(){if(Off!==void 0)return Off;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return Off=v},{mode:1});var nPc;var Uq=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};v.notActive=!1;v.isConstrainedList=!1;v.marginSettings=0;return v};
_.f(Uq,_.z);_.K=Uq.prototype;
_.K.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(v){var Q;return(v==null?void 0:(Q=v.webComponentHint)==null?void 0:Q.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}}}}};
_.K.getPath=function(v,Q){var V="data.tabs.#"+Q+".";v.tabs[Q].tabRenderer?V+="tabRenderer.":v.tabs[Q].expandableTabRenderer&&(V+="expandableTabRenderer.");return V+"content.sectionListRenderer"};
_.K.computeDisplayedContent=function(v){this.unlinkPaths("content");if(v&&v.tabs)for(var Q=v.tabs.length,V=0;V<Q;V++){var E=v.tabs[V].tabRenderer||v.tabs[V].expandableTabRenderer;if(E.selected&&E.content)return this.linkPaths("content",this.getPath(v,V)),E.content}return null};
_.K.computeHasSecondaryColumnData=function(v){return!!v&&!!v.secondaryContents};
_.K.onRetrieveLocation=function(v,Q){Q.locationRetrieved(Q.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);v.stopPropagation()};
_.K.onYtServiceRequestSent=function(v,Q){_.Y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Q)};
_.K.onYtServiceRequestCompleted=function(v,Q){_.Y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Q)};
_.K.onReplaceFeedContentAction=function(v){if(!_.Y("replace_feed_content_action_killswitch")&&!this.notActive){var Q;(v=(Q=_.y(v,ced))==null?void 0:Q.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(v)}};
_.K.handleServiceRequestActions=function(v){if(v=v.actions){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=void 0;((V=_.y(Q,ced))==null?0:V.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.y(Q,ced).items)}}};
Uq.prototype.onYtServiceRequestCompleted=Uq.prototype.onYtServiceRequestCompleted;Uq.prototype.onYtServiceRequestSent=Uq.prototype.onYtServiceRequestSent;Uq.prototype.onRetrieveLocation=Uq.prototype.onRetrieveLocation;_.W([_.M(_.FO),_.X("design:type",Object)],Uq.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Uq.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Uq.prototype,"data",void 0);_.W([_.q({computed:"computeDisplayedContent(data)"}),_.X("design:type",Object)],Uq.prototype,"content",void 0);
_.W([_.q({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Uq.prototype,"hasSecondaryColumnData",void 0);_.W([_.q({value:function(){return window.outerHeight>1024?3:2}}),
_.X("design:type",Number)],Uq.prototype,"initialCount",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],Uq.prototype,"pageSubtype",void 0);_.W([_.Z7("ytd-section-list-renderer"),_.X("design:type",Object)],Uq.prototype,"listRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],Uq.prototype,"notActive",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Uq.prototype,"isConstrainedList",void 0);
_.W([_.q(),_.X("design:type",String)],Uq.prototype,"responsiveSizing",void 0);_.W([_.q(),_.X("design:type",Number)],Uq.prototype,"marginSettings",void 0);_.W([_.tM("yt-retrieve-location"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Uq.prototype,"onRetrieveLocation",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],Uq.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],Uq.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Uq);
_.B(Uq,"ytd-two-column-browse-results-renderer",function(){if(nPc!==void 0)return nPc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return nPc=v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var pHl=function(v){if((v==null?void 0:v.value)===void 0||v==null||!v.unit)return"initial";a:{switch(v.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var Q="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":Q="%";break a}Q=void 0}return Q?""+v.value+Q:"initial"};_.ad(_.x(function(v){var Q=v.data;v=_.L(_.Ge(!1,void 0,"VotqNe"));var V=v.next().value,E=v.next().value;_.jg(function(){_.KW.getInstance().triggerAction("yt-request-timely-shelf-state")});
var b=_.Rr(function(){var d,w,A=(d=_.y(Q().rendererContext,_.px))==null?void 0:(w=d.loggingDirectives)==null?void 0:w.trackingParams;if(A)return _.dE(A)},void 0,"AvMXxb");
_.iM(_.KW.getInstance(),{"yt-hide-shopping-timely-shelf":function(){E(!1);var d=_.Mo(),w=b();d&&w&&_.s2(d,[w])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){E(!0);var d=_.Mo(),w=b();d&&w&&_.gD(d,[w])})}});
var F=function(){var d;return(d=Q().image)==null?void 0:d.image},t=function(){var d,w;
return!!((d=F())==null?0:(w=d.sources)==null?0:w.some(function(A){var k;return!!(A==null?0:(k=A.clientResource)==null?0:k.imageName)}))},p=function(){var d;
return((d=Q().image)==null?void 0:d.height)||40},Z=function(){var d;
return(d=Q().image)==null?void 0:d.backgroundColor};
v={};return _.P("yt-shopping-timely-shelf-content-view-model",{el:_.ud(_.C4(function(){return Q().rendererContext})),
class:_.QZ("ytShoppingTimelyShelfContentViewModelHost",(v.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(Q().image||Q().avatar||Q().line1)&&V()},v)),
style:_.iP({"--shopping-timely-shelf-content-padding-top":function(){var d;return pHl((d=Q().padding)==null?void 0:d.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var d;return pHl((d=Q().padding)==null?void 0:d.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var d;return pHl((d=Q().padding)==null?void 0:d.start)},
"--shopping-timely-shelf-content-padding-end":function(){var d;return pHl((d=Q().padding)==null?void 0:d.end)},
"--yt-shopping-timely-shelf-background-color":function(){return Q().backgroundColor!==void 0?_.CF(Q().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var d,w;return((w=(d=Q().image)==null?void 0:d.cornerRadius)!=null?w:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return Z()!==void 0?_.CF(Z()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var d;return(((d=Q().image)==null?void 0:d.width)||40)+"px"}})},_.P(_.h,{cond:F,
then:function(d){var w={};return _.P(_.gE,{preserveHeight:!0,preserveWidth:!0,height:p,data:d,alt:"",className:_.QZ("ytShoppingTimelyShelfContentViewModelImage",(w.ytShoppingTimelyShelfContentViewModelIcon=t,w))})}}),_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO}),_.P("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.P(_.Pw,{data:function(){return Q().line1}},{shoppingContentLineViewModel:function(d){return _.P(_.wh,{data:d.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.P(_.Pw,{data:function(){return Q().line2}},{shoppingContentLineViewModel:function(d){return _.P(_.wh,{data:d.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.P("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.P(_.Pw,{data:function(){var d;
return(d=Q().button)!=null?d:[]}},{buttonViewModel:function(d){var w=d.data;
return _.P(_.D6,{data:w,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(A){w().onTap&&A.stopPropagation()}})}})))},"Bo"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.pJ}});_.e2V={};
_.e2V.YtdWatchBehavior=[_.H.YtRendererBehavior,_.Zh.YtPlayerListenerBehavior,_.T9.YtRendererstamperBehavior,_.SI.YtActionHandlerBehavior,_.EF.YtPageBehavior,_.ql.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 _.mX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Y("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 _.mX("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Y("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 _.T_("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.T_("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Y("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.Y("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Y("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_enable_ghost_cards")||_.Y("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.Y("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(v,Q,V){return v&&(Q||!V)},
computeShowGhostRelated_:function(v,Q,V){return v&&(Q||!V)},
monitorScroll:!0,configureRendererStamper:function(){var v={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.Jm(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Jm(["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"||_.Y("swa_prov_panels_ks")?v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},v.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return v},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var v=this;this.watchController=void 0;this.pageDisposeJobs=[function(){v.showMetadataPlaceholder_()},
function(){_.Y("web_watch_dont_clear_comments")||v.clearComments_()},
function(){v.clearPlayerAds_()},
function(){v.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.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;_.Y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.Iid(function(){return _.XK(v)},this.hostElement);
this.pageDisposeJobs.push(function(){v.youThereManager_.reset()});
_.Y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){v.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Ym;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;_.Y("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));_.Y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Lh(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(v){v&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:v}),v.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(v){_.Y("kevlar_watch_flexy_theater_manager")&&(this.theater=v,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(v){!_.Y("kevlar_watch_while_v2")&&!_.Y("web_watch_pip")||v||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(v){this.active!==void 0&&(this.fullscreen=v,_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(v){this.active!==void 0&&(_.Hj(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(v>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(v){this.initCsi_();this.updatePageData_(v)},
updatePageData_:function(v){var Q=this;if(v)if(this.data===v){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=v;this.playlist&&_.ft({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Mp("nw");this.loading=!1;_.go(_.XT,function(){Q.initDclkstatus_();var E,b=((E=Q.player)==null?void 0:E.getVideoData().cpn)||"";_.z69(function(F,t){_.YJh(F,t,b)})})},
onPageLoadWithSameData_:function(){_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var v=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!v);this.set("loadingData.playlistLoading",v&&v!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),v=this.watchNextSkeletonEl_.firstElementChild;v;)v.classList.remove("hidden"),v=v.nextElementSibling;if(_.Y("kevlar_watch_frame0_loading_state")){var Q,V,E;v=(Q=this.loadingData)==null?void 0:(V=Q.endpoint)==null?void 0:(E=V.watchEndpoint)==null?void 0:E.videoId;var b;v&&(b="https://i.ytimg.com/vi/"+v+"/frame0.jpg");_.m9(this.hostElement).querySelector("#player").style.backgroundImage=b?"url("+b+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var v=_.m9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&v&&(v.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Q,V;(V=(Q=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(Q);var E,b;(b=(E=this.watchMetadata).resize)==null||b.call(E)}_.Y("kevlar_watch_frame0_loading_state")&&(_.m9(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(v){var Q=_.m9(this.hostElement).querySelector(v);Q?_.$I(Q,!1):_.Iy(new _.xd("Overscroll monitor not found for component: ",v))},
removeSplitScrollMouseTrap:function(v){var Q=_.m9(this.hostElement).querySelector(v);Q?_.Ix(Q):_.Iy(new _.xd("Disposal component for  overscroll monitoring not found: ",v))},
onLoadingChanged_:function(v){v?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.Y("web_thumbnail_to_watch_transition")&&!_.K7$||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.Y("web_thumbnail_to_watch_transition")&&!_.K7$||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(v){var Q=this;v?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.XT.addLowPriorityJob(function(){Q.onWindowResized_(_.Zl(!0))})},
updateTheaterModeState_:function(v){if(!_.Y("kevlar_watch_flexy_theater_manager")){v=v||this.fullWindowMode_;if(this.theater!==void 0||v)this.theater=v;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();v&&_.W$n()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var v=this.fullBleedPlayer?_.m9(this.hostElement).querySelector("#player-full-bleed-container"):_.m9(this.hostElement).querySelector("#player-container-inner");var Q=this.getPlayerContainer(),V=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip");Q.parentElement!==v&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.XK(this).appendTo(v,Q))},
updateErrorScreenLocation:function(){var v=_.m9(this.hostElement).querySelector("#error-screen"),Q=this.fullBleedPlayer?_.m9(this.hostElement).querySelector("#player-full-bleed-container"):_.m9(this.hostElement).querySelector("#player");v.parentElement!==Q&&Q.appendChild(v)},
deactivateMiniplayerAndResetPlayer:function(){var v=this;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.ht().resolve(_.lJ).deactivate(),2);v.updatePlayerLocation();_.q1(Q)})},
updateCinematicsLocation:function(){var v=this.getElement("CINEMATICS");if(v){var Q=this.getCinematicsLocationContainer();v.parentElement!==Q&&Q.appendChild(v)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.m9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.m9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(v,Q,V){var E=document.documentElement.hasAttribute("dark"),b=!E&&this.cinematicLightTheme;return V||v&&E||Q&&E||(Q||v)&&b},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var v=this,Q;(Q=this.watchController)==null||Q.setWatchNextResponse(this.data);_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ht().resolve(_.pD).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.Y("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.XT.addLowPriorityJob(function(){_.Un(v.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Y("web_watch_start_chat_in_theater_mode")){var V,E,b;if((V=this.data)==null?0:(E=V.contents)==null?0:(b=E.twoColumnWatchNextResults)==null?0:b.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var F,t;((F=this.data)==null?0:(t=F.contents)==null?0:t.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(v){var Q;(Q=this.watchController)==null||Q.setPlayerResponse(this.playerData);v&&v.playabilityStatus&&(Q=this.isVideoPlayable_(v.playabilityStatus,this.getPlayerOverlays_(this.data)),v=this.isLiveStreamOffline_(v.playabilityStatus),Q&&!v||_.PE(this,function(){_.Mp("pbu")}));
this.setPlayerAds_();_.Un(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(v,Q){if((_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"))&&this.playerData&&Q)return this.playerData.videoDetails},
watchPageActiveChanged_:function(v){_.oF().dispatch(_.QF9(this.active));v?this.activate_():this.deactivate_()},
attached:function(){var v=this;this.watchController=new _.gp(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);_.Y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Q=_.XK(this);_.Y("kevlar_disable_prepare_player")||
Q.preparePlayer();_.Y("kevlar_watch_flexy_playlist_manager")||_.ht().resolve(_.pD).setPlayer(Q);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();Q={"--ytd-watch-flexy-scrollbar-width":_.oG()+"px"};this.is==="ytd-watch-grid"&&(_.oF().dispatch(_.U2({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),Q["--ytd-watch-flexy-sidebar-width"]=_.N$9+"px",Q["--ytd-watch-grid-horizontal-page-margins"]=_.zF+"px",Q["--ytd-watch-grid-columns-top-margins"]=
_.SG5+"px",Q["--ytd-watch-grid-min-player-height-medium"]="360px");!_.T_("kv_pl_mx_sz_ks")&&_.T_("kevlar_watch_max_player_width")&&(Q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.xYd+"px");_.T_("kevlar_watch_flexy_metadata_height")&&(Q["--ytd-watch-flexy-space-below-player"]=_.B$V+"px");this.safeUpdateStyles(Q);_.Y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.tp(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return v.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.m9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var v=_.oG(),Q=_.Jz+v,V=Q;this.fixedPanels&&(Q+=_.N$9);var E=657+v;v=1327+v;_.m9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Q+"px)";_.m9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(E+"px), (min-height: 630px) and (min-width: ")+(Q+"px) and (max-width: ")+(v+"px)");_.m9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(v+"px)");
_.m9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+V+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var v=_.m9(this.hostElement).querySelector("#miniplayer-bar").firstChild,Q=this.squeezeback&&!_.Y("web_watch_squeezeback_player_size_killswitch");return v&&v.active||this.theater||_.Y("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||Q||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.DT(NaN,NaN):_.gzb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.gzb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.t5(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var v=this;this.onWindowResized_(_.Zl());_.Y("browse_skeleton_removal_on_watch_killswitch")||_.mX("IS_SHELL_LOAD")&&_.q95();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Q=_.XK(this);Q.addEventListener("yt-player-updated",_.Lh(this,this.onPlayerUpdated_));Q.getPlayerPromise().then(function(V){v.playerApiReady_(V)});
_.Y("kevlar_watch_flexy_playlist_manager")||(Q=_.ht().resolve(_.pD),_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&Q.addEventListener("yt-navigate",_.Lh(this,this.onYtNavigate_)),Q.setPlaylistComponent(_.m9(this.hostElement).querySelector("#playlist")),Q.addEventListener("yt-playlist-data-updated",_.Lh(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.XT.addLowPriorityJob(function(){_.Hj(v.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.XK(this).removeEventListener("yt-player-updated",_.Lh(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Y("kevlar_watch_flexy_playlist_manager")){var v=_.ht().resolve(_.pD);_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&v.removeEventListener("yt-navigate",_.Lh(this,this.onYtNavigate_));
v.cancelVideoSkip();v.removeEventListener("yt-playlist-data-updated",_.Lh(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Hj(this.hostElement,"yt-autonav-pause-player",!1);v=_.ax();_.Y("kevlar_exit_fullscreen_leaving_watch")&&v&&_.ri(v)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(v){this.player&&this.player.updateVideoData({rvs:v.rvs})},
getPageContents:function(v){return v&&v.contents&&v.contents.twoColumnWatchNextResults&&v.contents.twoColumnWatchNextResults.results&&v.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(v){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v)},
onRetrieveLocation_:function(v,Q){Q.hasComments?Q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Q.locationRetrieved("/related_ajax",void 0);v.stopPropagation()},
onSubscriptionChanged_:function(v,Q){this.player&&(Q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.uII("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.m9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.m9(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(v){this.player=v;this.setPlayerState(v.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Y("kevlar_unified_player")||_.Y("kevlar_player_new_bootstrap_adoption"))&&_.zz()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(v,Q){Q=Q===void 0?!0:Q;_.ax()&&_.Y("external_fullscreen")&&_.ri(document.documentElement);this.theaterRequested_=v;Q&&_.Sw("wide",v?"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&&_.Hj(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(v){_.Hx(v,typeof this.player),this.player&&_.Hx(v,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var v;((v=this.player)==null?0:v.isFullscreen())?this.player.toggleFullscreen():_.mb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(v,Q){return this.loading?Q:!!Object.keys(v).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(v){if(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.youThereRenderer&&_.USI(this.youThereManager_,Q.youThereRenderer)}},
setPlaylistData_:function(v){return v||{}},
userEngagementConfigDataChanged_:function(v){if(v)if(v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Q=this.youThereManager_;_.kh()<v.lowEngagementThresholdMs||_.ENV(Q,!0)}else v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.mb(this.hostElement,"yt-autonav-pause-user-engagement",[v])},
isPlayerUnavailable_:function(v,Q,V){return!!v&&!this.isVideoPlayable_(v,V)&&!Q},
getPlayerOverlays_:function(v){return(v==null?void 0:v.playerOverlays)||null},
isVideoPlayable_:function(v,Q){if(!v)return!1;var V=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",E=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",v)||this.get("errorScreen.ypcTrailerRenderer",v);v=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",v);var b;Q=Q==null?void 0:(b=Q.playerOverlayRenderer)==null?void 0:b.gatedActionsOverlayRenderer;return!!V||!!E||!!v||!!Q},
hasWatchNextResponseErrorRenderer:function(v){var Q=this.getPageContents(v),V,E,b,F,t;return!(v==null?0:(V=v.contents)==null?0:(E=V.twoColumnWatchNextResults)==null?0:E.secondaryResults)&&!!((b=Q[0])==null?0:(F=b.itemSectionRenderer)==null?0:(t=F.contents[0])==null?0:t.backgroundPromoRenderer)},
isLiveStreamOffline_:function(v){return v?v.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(v,Q,V){var E=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Q),b=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];b=_.Y("web_no_skip_video_on_verification_checks")?(v==null?void 0:v.status)&&b.includes(v.status):v&&v.status==="AGE_CHECK_REQUIRED";var F=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",v);F==void 0&&(F=!0);!V||this.isVideoPlayable_(v,this.getPlayerOverlays_(Q))||
E||b||!F||_.ht().resolve(_.pD).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ugb()},
onPlayerFeedbackStartRequest_:function(v){_.mb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:v}])},
onPlayerFeedbackArticleRequest_:function(v){_.mb(this.hostElement,"yt-help-dialog-requested",[v])},
onPlayerYpcContentRequest_:function(){var v,Q,V,E,b,F,t,p,Z=((v=this.data)==null?NaN:(Q=v.contents)==null?NaN:(V=Q.twoColumnWatchNextResults)==null?NaN:(E=V.secondaryResults)==null?NaN:(b=E.secondaryResults)==null?NaN:(F=b.offerModule)==null?NaN:(t=F.tvfilmOfferModuleRenderer)==null?NaN:(p=t.actionButtons)==null?NaN:p.length)-1;v=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];Q=_.L(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=Q.next();!V.done;V=Q.next())for(V=V.value,E=_.L(v),b=E.next();!b.done;b=E.next())if(b="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+b.value,b=this.get(b+"navigationEndpoint",this.data)||this.get(b+"serviceEndpoint",this.data)||this.get(b+"command",this.data)){_.FL(b,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(v){_.Hj(this.hostElement,"yt-autonav-pause-player",v)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(v){v()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Hj(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(v)},
setPlayerState:function(v){_.oF().dispatch(_.FTZ(v))},
onPlayerSubscribe_:function(v){_.mb(this.hostElement,"yt-player-subscribe",[v])},
onPlayerUnsubscribe_:function(v){_.mb(this.hostElement,"yt-player-unsubscribe",[v])},
onPlayerAdYtShowToast_:function(v){_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:v.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(v){if(v)return v},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(v){return!_.Y("web_watch_move_summary_to_sd")&&!!v},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.Y("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var v,Q,V,E;this.watchNextSecondaryResults=(v=this.data)==null?void 0:(Q=v.contents)==null?void 0:(V=Q.twoColumnWatchNextResults)==null?void 0:(E=V.secondaryResults)==null?void 0:E.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var v,Q=(v=this.data)==null?void 0:v.engagementPanels;if(Q==null?0:Q.length){v=null;Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0;if(((E=V.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-structured-description"){v=V;break}}var b,F,t;v=(b=v)==null?void 0:(F=b.engagementPanelSectionListRenderer)==null?void 0:(t=F.content)==null?void 0:t.structuredDescriptionContentRenderer;if(v==null?0:v.items){b=
[];F=_.L(v.items);for(t=F.next();!t.done;t=F.next()){t=t.value;if(!_.Y("sd_horizontal_list_show_nav_killswitch")){var p=E=V=Q=v=void 0,Z=void 0,d=(v=t.horizontalCardListRenderer)==null?void 0:(Q=v.header)==null?void 0:(V=Q.richListHeaderRenderer)==null?void 0:(E=V.navigationButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:(Z=p.command)==null?void 0:Z.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(w){return!_.y(w,_.UPq)}))}(!t.expandableVideoDescriptionBodyRenderer&&
!t.videoDescriptionHeaderRenderer||_.Y("web_delhi_colorful_sd"))&&b.push(t)}return{items:b}}}},
constructWarning_:function(v){return{text:_.u3(v),type:"WARNING"}},
isPlaShelfEnabled_:function(v){if((this.get("adPlacements",v)||[]).length)return!0;v=this.get("playerAds",v)||[];return!(!v.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",v[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var v=this;_.Hj(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Q=this.getScrollTop()>0;this.gestures_&&(Q?this.gestures_.detach():this.gestures_.attach());Q!==this.showFullerscreenEdu_&&_.Y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Q,_.XK(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(v.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Hj(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var v=this;this.commentsReady=!1;_.XT.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.go(_.XT,function(){v.setComments_()},1E3)},
setComments_:function(){if(!_.Y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Mp("cmi");_.XT.cancelJob(this.setCommentsJobId_);var v=this.getPageContents(this.data);if(v&&v.length){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,this.get("itemSectionRenderer.sectionIdentifier",Q)==="comment-item-section"){this.comments=Q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Hj(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Mp("cmc")},
doRemoveComments_:function(){this.comments={};_.Y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.XT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.XT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(v,Q){var V=_.y(Q.endpoint,_.sn);V&&(!(Q=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==Q.videoId||V.playlistId&&V.playlistId!==Q.playlistId||V.index!==void 0&&V.index!==Q.index||typeof V.startTimeSeconds!=="number"||(v.stopPropagation(),this.setScrollTop(0),_.XK(this).getPlayerPromise().then(function(E){var b=V.startTimeSeconds;E.seekTo(b);E.wakeUpControls();b<E.getDuration()&&E.playVideo()})))},
updatePlayerStartTime_:function(){var v=_.C3l();"t"in v&&(v=_.sFb(v.t),this.player.seekTo(v,!0))},
updateTitleFromWatchNext:function(v){v=this.getPageContents(v);var Q,V;(v=_.j0(v==null?void 0:(Q=v[0])==null?void 0:(V=Q.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.Hj(this.hostElement,"yt-update-title",v)},
updateTitle_:function(v){v=this.get("videoDetails.title",v)||"";_.Hj(this.hostElement,"yt-update-title",v)},
syncWithRemoteVideo_:function(v,Q,V){if(this.active&&this.player){var E=this.player.getVideoData();if(E.video_id===V&&(V=E.list,_.Y("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),E.video_id!==v||V!=Q)){var b;_.Y("kevlar_player_watch_endpoint_navigation")?b=_.BN0(_.J4l(v,Q)):b=this.buildWatchEndpoint_(v,Q);_.Hj(this.hostElement,"yt-navigate",{endpoint:b,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(v,Q,V){return _.$7(v,Q,V)},
initDclkstatus_:function(){_.B8j()},
attachWatchPageSkeleton_:function(){var v=document.querySelector("#watch-page-skeleton");if(v){var Q=v.querySelector("#primary-info"),V=v.querySelector("#secondary-info"),E=v.querySelector("#related");Q&&_.m9(this.hostElement).querySelector("#info-skeleton").appendChild(Q);V&&_.m9(this.hostElement).querySelector("#meta-skeleton").appendChild(V);E&&(_.m9(this.hostElement).querySelector("#related-skeleton").appendChild(E),this.watchNextSkeletonEl_=E);_.ng(v)}},
handlePlayerUpdated_:function(){_.XK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(v,Q){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof Q!=="undefined"){var V=this.watchNextSkeletonEl_.children,E=v&&v.indexSplices.length?v.indexSplices[0].index:0;v=Math.min(this.watchNextShownItems.length,V.length);Q||(E=0,v=V.length);if(!this.ghostCardsEnabled)for(Q=E;Q<v;Q++)V[Q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(v){_.Y("external_fullscreen")||_.mb(this.hostElement,"yt-player-fullscreen",[v.fullscreen])},
onFullscreenChange_:function(v){this.fullscreen=v;this.gestures_&&this.gestures_.update(this.fullscreen);var Q=_.XK(this);Q.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.ax())});
this.updateFullBleedElementLocations();v&&(Q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(v,Q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Q},
computeIsDonationShelfCollapsed_:function(v){return v},
computeShouldShowMerchShelf:function(v,Q){return Q&&!!v},
computeResponseHasComments:function(v){var Q,V,E,b,F;return!!(v==null?0:(Q=v.contents)==null?0:(V=Q.twoColumnWatchNextResults)==null?0:(E=V.results)==null?0:(b=E.results)==null?0:(F=b.contents)==null?0:F.some(function(t){var p;return(t==null?void 0:(p=t.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(v,Q,V,E){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&E?!1:!!v&&!!Object.keys(v).length&&!Q},
identity:_.Nm,onWindowResized_:function(v){this.windowSize_=v;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(v){var Q=this;v&&v.type!=="dataloaded"&&v.type!=="dataupdated"||_.XK(this).getPlayerPromise().then(function(V){var E=V.getPlayerState();E!==5&&E!==0&&(V=1/V.getVideoAspectRatio(),Q.videoHeightToWidthRatio_!==V&&(Q.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(v){var Q=this,V=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"),E=function(){if(Q.watchMetadata){var b,F;(F=(b=Q.watchMetadata).resize)==null||F.call(b)}_.XK(Q).getPlayerPromise().then(function(t){if(_.Y("kevlar_set_internal_player_size")){if(!V||!Q.isMiniplayerActive()){var p=Q.calculateCurrentPlayerSize_();t.setInternalSize(p.width,p.height)}}else t.setSize(NaN,NaN);_.Y("kevlar_watch_while")&&Q.updateWatchWhileScrollThreshold_()})};
v?E():_.Lq(_.XT,E)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(v){this.set("data.survey",v.detail)},
onYtShowSurveyCommand_:function(v){this.set("data.survey",_.y(v,_.$SE).survey)},
onDownloadedVideoDeleted:function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1){if(!Q.active||(V=Q.playerData)==null||!V.offlineState||Q.videoId!==v)return b.return();(E=Q.player)==null||E.stopVideo();_.u9().navigatingAwayFromWatchDeletedVideo=!0;_.FL(_.rhT,Q.hostElement);return b.yield(_.u9().navigationFinishPromise,2)}_.u9().navigatingAwayFromWatchDeletedVideo=!1;_.q1(b)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var v;this.theater?v=_.O$(.5625*this.windowSize_.width,480,this.windowSize_.height-185):v=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==v&&(this.watchWhileScrollThreshold_=v,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var v=_.m9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&v){var Q=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!v.active&&Q&&V>=this.watchWhileScrollThreshold_?(v.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):v.active&&(!Q||V<this.watchWhileScrollThreshold_&&!_.ax())&&(v.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var v=_.m9(this.hostElement).querySelector("#secondary-inner");if(v){var Q=_.m9(this.hostElement).querySelector("#below"),V=_.m9(this.hostElement).querySelector("#secondary"),E=_.m9(this.hostElement).querySelector("#comments");E&&V&&Q&&(this.defaultTwoColumnLayout?(v.appendChild(E),V.appendChild(v)):(Q.appendChild(E),_.qB(Q,v)))}}},
isTwoColumnsChanged_:function(v,Q){if(v!==!0||Q!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(v=_.m9(this.hostElement).querySelector("#secondary-inner"))){Q=_.m9(this.hostElement).querySelector("#below");var V=_.m9(this.hostElement).querySelector("#secondary"),E=_.m9(this.hostElement).querySelector("#comments");E&&V&&Q&&(this.isTwoColumns_?(v.appendChild(E),V.appendChild(v)):(Q.appendChild(E),_.qB(Q,v)))}}else{v=!_.Y("web_watch_enable_fs_squeezeback_panels");
Q=_.m9(this.hostElement).querySelector("#panels");var b=_.m9(this.hostElement).querySelector("#alerts"),F=_.m9(this.hostElement).querySelector("#shopping-timely-shelf");V=_.m9(this.hostElement).querySelector("#playlist");E=_.m9(this.hostElement).querySelector("#related");var t=_.m9(this.hostElement).querySelector("#donation-shelf"),p=_.m9(this.hostElement).querySelector("#comments"),Z=_.m9(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(b=_.m9(this.hostElement).querySelector("#secondary-inner"),
v&&(b.appendChild(Q),b.appendChild(V),this.aiCompanionEnabled&&Z&&b.appendChild(Z)),b.appendChild(t),b.appendChild(E)):(v&&(_.zm(Q,b),_.zm(V,b),this.aiCompanionEnabled&&Z&&_.zm(Z,b),_.zm(F,V)),_.zm(t,b),p&&_.zm(E,p));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.Y("web_watch_enable_fs_squeezeback_panels")&&_.Y("web_watch_theater_chat")){var v=_.m9(this.hostElement).querySelector("#chat-container"),Q=this.theater&&!this.fullscreen||_.Y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Q?(Q=_.m9(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==Q&&Q.append(v),this.fixedPanels=!0):(this.fixedPanels=
!1,Q=_.m9(this.hostElement).querySelector("#playlist"),v&&Q?_.JZ(v,Q):_.Iy(new _.xd("Missing element when updating chat location",{"chatContainer defined":!!v,"playlist defined":!!Q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(v,Q){return _.Y("sw_metadata_vis_toggle_ks")?!0:!!v||!!Q},
computeForceDarkPanelTheme:function(v){return _.Y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&v:!1},
safeUpdateStyles:function(v){try{_.F6(this.hostElement,v)}catch(Q){_.Iy(Q)}},
videoHeightToWidthRatioChanged_:function(v,Q){Q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(v){this.videoHeightToWidthRatio_=1/v},
computeIsVerticalVideo_:function(v){return v>=1},
computeIsFourThreeToSixteenNineVideo_:function(v){return v<=.7501&&v>=.5624},
computeIsExtraWideVideo_:function(v){return v<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.XK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.XK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.bFn(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(v){var Q=_.TA(v)||0;_.kN(v,Q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var v=_.TA("yt-fullerscreen-edu-button-click-count")||0,Q=_.TA("yt-fullerscreen-edu-button-shown-count")||0,V=_.T_("external_fullscreen_button_shown_threshold"),E=v>=_.T_("external_fullscreen_button_click_threshold")||Q>=V;_.XK(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonSubtleModeState(E)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(v,Q){return Q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ht().resolve(_.pD).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var v=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.XT.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.XT.addLowPriorityJob(function(){v.fullHeightPanelPositionUpdateJobId=0;var Q=_.m9(v.hostElement).querySelector("#secondary"),V=_.m9(v.hostElement).querySelector("#fixed-secondary");Q=Q.getBoundingClientRect();var E=Q.width;v.swatcherooSqueezeback&&
(E+=_.zF);if(v.swatcherooSqueezeback){var b=_.m9(v.hostElement).querySelector("#squeezeback-constraining-container");b.style.width=E+"px";b.style.flex="0 0 "+E+"px"}V.style.width=E+"px";V.style.left=Q.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var v=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.XT.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.XT.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;var Q;!v.isTwoColumns_||v.theater||v.fullscreen?Q=460:Q=v.calculateNormalPlayerSize_().height;var V=Q+"px";_.Y("live_chat_taller_height")&&!v.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Y("live_chat_medium_height")&&!v.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Y("live_chat_scaled_height")&&!v.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");v.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Q+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":Q+"px","--ytd-watch-flexy-comments-panel-max-height":Q+"px","--ytd-comments-engagement-panel-content-height":Q+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(v){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",v)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Qk(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(v){var Q=_.m9(this.hostElement).querySelector("#engagement-panel-scrim");v?Q.addEventListener("tap",_.Lh(this,this.onEngagementPanelScrimClick_)):Q.removeEventListener("tap",_.Lh(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(v){if(this.hostElement.contains(v)&&!this.scrollToAnimation_.isAnimating()){var Q=v.offsetTop-24;v=v.offsetTop+v.offsetHeight+24;var V=this.getPageScrollingElement(),E=this.getScrollTop(),b=E+V.clientHeight-56;if(Q<E+56)Q-=56;else if(v>b)Q=v-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Q),500)}},
onYtSignalActionScrollToComments:function(){var v=this.hostElement.querySelector("#comments");if(v&&!this.scrollToAnimation_.isAnimating()){v=v.offsetTop-56-24;if(_.Y("kevlar_comment_teaser_scroll_to_midpoint")&&(v-=_.Rb().height/3,v<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtEngagementPanelVisibleChanged:function(v,Q,V){if(this.active&&this.trackEngagementPanelVisibility&&!_.aib.includes(V)){if(Q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Un(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var E=_.ht().resolve(_.$2);this.visiblePanelIdentifiers_.forEach(function(b){b!==V&&E.hidePanel({identifier:b})})}this.visiblePanelIdentifiers_.add(V)}Q!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(v){return v?"":"watch-active-metadata"},
computeNewMetadataClass:function(v){return v?"watch-active-metadata":""},
computeIsSingleColumn:function(v,Q){return Q&&!v},
computeFullBleedPlayer:function(v,Q,V){return _.Y("external_fullscreen")&&v||Q||V},
computeDefaultLayout:function(v){return!v},
computeDefaultTwoColumnLayout:function(v,Q){return!v&&Q},
updatePanelsLocation:function(){if(_.Y("web_watch_enable_fs_squeezeback_panels")){var v=_.m9(this.hostElement).querySelector("#below"),Q=_.m9(this.hostElement).querySelector("#panels"),V=_.m9(this.hostElement).querySelector("#playlist"),E=_.m9(this.hostElement).querySelector("#chat-container"),b=_.m9(this.hostElement).querySelector("#panels-full-bleed-container"),F=_.m9(this.hostElement).querySelector("#secondary-inner"),t=_.m9(this.hostElement).querySelector("#shopping-timely-shelf"),p=_.m9(this.hostElement).querySelector("#persistent-panel-container");
if(v&&Q&&V&&E&&b&&F&&t&&(this.aiCompanionEnabled?p:1)){var Z=this.fullscreen||this.theater&&this.iMaxTheaterMode,d=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;d?(d=_.m9(this.hostElement).querySelector("#columns"),(E==null?void 0:E.parentElement)!==d&&d.append(E),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):Z?b.appendChild(E):this.isTwoColumns_?_.qB(F,E):_.qB(v,E);Z?(b.appendChild(Q),b.appendChild(V),
this.aiCompanionEnabled&&p&&b.appendChild(p)):(this.isTwoColumns_?(_.qB(F,Q),_.qB(F,V),this.aiCompanionEnabled&&p&&_.qB(F,p)):(_.qB(v,Q),_.qB(v,V),this.aiCompanionEnabled&&p&&_.qB(v,p)),_.qB(v,t))}}},
swatcherooUpdatePanelsLocation:function(v,Q,V,E,b,F){if(this.is==="ytd-watch-grid"){Q=v&&!Q;this.swatcherooSplitScroll&&(Q?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));V=_.m9(this.hostElement).querySelector("#panels");var t=_.m9(this.hostElement).querySelector("#playlist"),p=_.m9(this.hostElement).querySelector("#persistent-panel-container"),
Z=_.m9(this.hostElement).querySelector("#fixed-secondary"),d=_.m9(this.hostElement).querySelector("#fixed-below"),w=_.m9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),A=_.m9(this.hostElement).querySelector("#chat-container");F&&(v?(Z.appendChild(V),this.aiCompanionEnabled&&p&&Z.appendChild(p)):(d.appendChild(V),this.aiCompanionEnabled&&p&&d.appendChild(p)));b?v?Z.appendChild(A):d.appendChild(A):_.JZ(A,w);E?v?Z.appendChild(t):d.appendChild(t):_.JZ(t,
w);this.swatcherooSplitScroll&&(v=_.m9(this.hostElement).querySelector("#secondary"),E=_.m9(this.hostElement).querySelector("#columns"),b=_.m9(this.hostElement).querySelector("#fixed-columns-secondary"),Q?b.appendChild(v):E.appendChild(v))}},
computeMetadataSkinnyMode:function(v,Q,V){return this.is!=="ytd-watch-grid"?!1:v?V:Q},
computeWatchWhilePanelsActive:function(v,Q){return v||Q},
computeNoBorderOnChat:function(v){return _.Y("web_watch_theater_chat_no_border")&&v},
computeLiveChatPresentAndExpanded:function(v,Q){return v&&!Q},
computePanelExpanded:function(v,Q,V){return v||Q||V},
computeSqueezeback:function(v,Q,V,E){if(_.Y("web_watch_enable_fs_squeezeback_panels")){var b=this.iMaxTheaterMode&&this.theater,F=this.theater&&!this.iMaxTheaterMode;return(v||Q||V)&&(b||E)||Q&&F}},
computeSwatcherooSqueezeback:function(v,Q,V){return this.is!=="ytd-watch-grid"||_.Y("ww_squeezeback_killswitch")?!1:v&&Q&&V},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(v){_.XK(this).getPlayerPromise().then(function(Q){var V;(V=Q.changeMarkerVisibility)==null||V.call(Q,_.y(v,_.Wz).isVisible||!1,_.y(v,_.Wz).entityKeys||[],_.y(v,_.Wz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(v){this.liveChatCollapsed=v.detail;_.oF().dispatch(_.XB9(v.detail));if(!this.liveChatCollapsed&&this.squeezeback){var Q=_.ht().resolve(_.$2);this.visiblePanelIdentifiers_.forEach(function(V){Q.hidePanel({identifier:V})})}},
onSetPlaylistCollapsed:function(v){_.Y("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!v)},
provideRenderingData:function(v,Q){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Q;break;case "PRIMARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Q);this.videoPrimaryInfoRendererValue=Q==null?void 0:Q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Q);this.videoSecondaryInfoRendererValue=Q==null?void 0:Q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Q;break;case "CLARIFICATION":this.clarifyBoxValue=Q;break;case "LIVE_CHAT":this.conversationBar=Q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Q;break;case "PLAYLIST":this.externalPlaylistData_=Q!=null?Q:{};break;case "MERCH_SHELF":this.merchShelfValue=Q==null?void 0:Q.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=Q;break;case "TICKET_SHELF":this.ticket=Q;break;case "OFFER_MODULE":this.offerModule=Q;break;case "LIMITED_STATE":this.limitedStateValue=
Q;break;case "DONATION_SHELF":this.donation=Q;break;case "ALERTS":this.alertsValue=Q;break;case "COMMENTS":this.comments=Q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
Q;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=Q;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=Q}},
toggleCinematicsActive:function(v){this.cinematicsActive=v},
isMiniplayerActive:function(){return _.ht().resolve(_.lJ).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var GPm;_.f7h=function(v){if(!(0,_.YRR)(v))throw Error("K``"+String(v));};
_.Cf0=function(v){return v.findIndex(function(Q){return GPm.indexOf(Q.tagName)>-1})>-1};
_.MTh=function(){var v=_.ht().resolve(_.Na);_.Ldb(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(v.isFullscreenEnabled()?_.ri(document.documentElement):_.mnr(document.documentElement))};
GPm=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Le=new Map;_.Le.set(32,59972);_.Le.set(27,50765);_.Le.set(70,60102);_.Le.set(76,60221);_.Le.set(77,60222);_.Le.set(74,60223);_.Le.set(84,60224);_.Le.set(38,61941);_.Le.set(40,61942);_.Le.set(73,62521);_.Le.set(67,62522);_.Le.set(80,63390);_.Le.set(78,63397);_.Le.set(75,59972);_.Le.set(188,63385);_.Le.set(190,63384);_.Le.set(36,63387);
_.Le.set(35,63386);_.Le.set(37,63388);_.Le.set(39,63389);_.Le.set(79,63423);_.Le.set(87,63424);_.Le.set(107,63426);_.Le.set(109,63425);_.Le.set(65,63428);_.Le.set(83,63430);_.Le.set(68,63429);_.Le.set(221,63431);_.Le.set(219,63432);_.Le.set(97,63439);_.Le.set(98,63440);_.Le.set(99,63441);_.Le.set(100,63442);_.Le.set(101,63443);_.Le.set(102,63444);_.Le.set(103,63445);_.Le.set(104,63446);_.Le.set(105,63447);_.tU=new Map;_.tU.set(80,63390);_.tU.set(78,63397);_.tU.set(188,63400);_.tU.set(190,63401);
_.tU.set(191,60765);_.tU.set(13,247917);_.pe=new Map;_.eW=new Map;
}catch(e){_._DumpException(e)}
try{
var upf,oN$,XHd,alh;_.x2d=function(v){return v.ui.guideIsVisibleButNotPersistent};
_.BHn=function(v){return v.ui.tabGesturesIsActive};
_.gNY=function(){var v=_.y9("service_worker_scope");try{return navigator.serviceWorker.getRegistration(v)}catch(Q){return Promise.reject(Q)}};
_.sOm=function(v){return!(!v||!v.pushManager)};
upf=function(){return _.gNY().then(_.sOm).catch(function(){return!1})};
_.jO7=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?upf():Promise.resolve(!1)};
_.W9s=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
oN$=function(){var v,Q,V;return _.e(function(E){switch(E.nextAddress){case 1:return E.yield(_.Hm.getInstance(),2);case 2:v=E.yieldResult;if(!v){Q=void 0;E.jumpTo(3);break}return E.yield(v.get("lmqf"),4);case 4:Q=E.yieldResult;case 3:switch((V=Q)||(V="SD"),V){case "HD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
XHd=function(v){var Q,V,E;return _.e(function(b){if(b.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.Y("disable_av1_setting")){var F=window.localStorage["yt-player-av1-pref"];F=F==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":F==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else F="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(Q=v===F)return b.jumpTo(2);E=V=v;return b.yield(oN$(),3)}b.nextAddress!=2&&(Q=E===b.yieldResult);return b.return(Q)})};var rnd;var $27=_.xm.IronButtonState,Il5=(0,_.q6)(HTMLElement);
_.fh({_template:function(){if(rnd!==void 0)return rnd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;alh===void 0&&(alh=document.createElement("template"));var E=alh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return rnd=v},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[$27,_.JC,_.BW,_.u0],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(v){var Q=(0,_.Jq)(this);Q.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:v});Q.shadowRoot.appendChild(v);return Il5.prototype._attachDom.call(this,v)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var v=this.contentElement;v&&v.selectedItem&&this._setSelectedItem(v.selectedItem)},
get contentElement(){for(var v=_.wi(this.$.content).getDistributedNodes(),Q=0,V=v.length;Q<V;Q++)if(v[Q].nodeType===Node.ELEMENT_NODE)return v[Q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(v){this._setSelectedItem(v.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(v){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)===this&&this.open()},
_selectedItemChanged:function(v){var Q="";v?Q=v.label||v.getAttribute("label")||v.textContent.trim():Q="";this.value=Q;this._setSelectedItemLabel(Q)},
_computeMenuVerticalOffset:function(v,Q){return Q?Q:v?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var v=this.opened?"true":"false",Q=this.contentElement;Q&&Q.setAttribute("aria-expanded",v)}});_.aG=new _.FG("navigateAction");var HFs=new _.FG("formRenderer");var ra=function(){var v=_.dg.apply(this,arguments)||this;v.showInput=!1;return v};
_.f(ra,_.dg);_.K=ra.prototype;_.K.detached=function(){this.showInput&&window.removeEventListener("click",_.Lh(this,this.closeOnOutsideClick_))};
_.K.stopPropagation_=function(v){this.showInput&&v.stopPropagation()};
_.K.closeOnOutsideClick_=function(v){this.closeOnOutsideClickCondition(v)&&(this.showInput=!1,window.removeEventListener("click",_.Lh(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.K.closeOnOutsideClickCondition=function(){return!0};
_.K.closeOnOutsideClickHandler=function(){};
_.K.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Lh(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.K.openOnClickHandler=function(){};
_.K.showInputChanged=function(){};
_.K.setShowInput=function(v){this.showInput=v};
ra.prototype.setShowInput=ra.prototype.setShowInput;ra.prototype.showInputChanged=ra.prototype.showInputChanged;ra.prototype.openOnClickHandler=ra.prototype.openOnClickHandler;ra.prototype.openOnClick_=ra.prototype.openOnClick_;ra.prototype.closeOnOutsideClickHandler=ra.prototype.closeOnOutsideClickHandler;ra.prototype.closeOnOutsideClickCondition=ra.prototype.closeOnOutsideClickCondition;ra.prototype.closeOnOutsideClick_=ra.prototype.closeOnOutsideClick_;ra.prototype.stopPropagation_=ra.prototype.stopPropagation_;
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ra.prototype,"showInput",void 0);_.W([_.tM("click"),_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],ra.prototype,"stopPropagation_",null);_.W([_.ph("showInput"),_.X("design:type",Function),_.X("design:paramtypes",[Boolean]),_.X("design:returntype")],ra.prototype,"showInputChanged",null);_.W([_.hM()],ra);_.m2$=[ra.prototype];var U2$;var vv7;var $o=function(){return _.z.apply(this,arguments)||this};
_.f($o,_.z);_.K=$o.prototype;_.K.computePreselectedOption=function(v,Q){return Q===this.itemSelected_?v:void 0};
_.K.dataChanged_=function(){var v=this;this.preselectedSubreason=this.itemSelected_=-1;var Q;(Q=this.data)!=null&&Q.key&&_.PE(this,function(){var V,E=Number((V=v.data)==null?void 0:V.key);!Number.isNaN(E)&&(v.itemSelected_=E,V=(V=(v.data.items||[])[E])&&V.optionSelectableItemRenderer&&V.optionSelectableItemRenderer.preselectedIndex)&&(v.preselectedSubreason=V)})};
_.K.isSubReasonHidden_=function(v,Q){return v!=Q};
_.K.onTopItemSelected_=function(v,Q){for(var V=_.m9(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),E=0,b=V.length;E<b;E++)V[E].select(0);_.mb(this.hostElement,"yt-report-form-update",[Q.item.value]);v.stopPropagation()};
_.K.onItemSelected_=function(v,Q){_.mb(this.hostElement,"yt-report-form-update",[Q.item.value]);v.stopPropagation()};
_.K.getItem_=function(v){return v.serviceItem?v.serviceItem:v.navigationItem?v.navigationItem:v.optionSelectableItemRenderer?v.optionSelectableItemRenderer:null};
_.K.computeText_=function(v){return(v=this.getItem_(v))?this.ytRendererBehavior.getSimpleString(v.text):null};
_.K.validate=function(){return this.itemSelected_!==-1};
_.K.computeAriaLabel_=function(v){var Q=_.j0(v.text);(v=v.accessibility&&v.accessibility.accessibilityData&&v.accessibility.accessibilityData.label)&&(Q+=". "+v);return Q};
_.K.computeItemSelected_=function(v){return v};
_.K.preventSelection_=function(v){v.stopPropagation();this.tooltipTapped=!0};
_.K.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.K.updateItemSelectedFromBinding=function(v){this.itemSelected_=v.detail.value};
_.K.save=function(){var v;this.validate()&&(v=this.data)!=null&&v.items&&(v=this.data.items[this.itemSelected_],v!=null&&v.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(v.optionSelectableItemRenderer.submitEndpoint)||_.vp(this.hostElement,[v.optionSelectableItemRenderer.submitEndpoint])))};
$o.prototype.onPaperRippleTransitionEnd_=$o.prototype.onPaperRippleTransitionEnd_;$o.prototype.dataChanged_=$o.prototype.dataChanged_;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],$o.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$o.prototype,"data",void 0);_.W([_.q({value:-1}),_.X("design:type",Number)],$o.prototype,"itemSelected_",void 0);
_.W([_.q({computed:"computeItemSelected_(itemSelected_)"}),_.X("design:type",Number)],$o.prototype,"value",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],$o.prototype,"restoreFocusOnClose",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],$o.prototype,"tooltipTapped",void 0);_.W([_.q({value:-1}),_.X("design:type",Number)],$o.prototype,"preselectedSubreason",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$o.prototype,"dataChanged_",null);_.W([_.tM("transitionend"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$o.prototype,"onPaperRippleTransitionEnd_",null);_.W([_.D7({is:"yt-options-renderer",disableElementRegistration:!0})],$o);
_.B($o,"yt-options-renderer",function(){if(vv7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;U2$===void 0&&(U2$=document.createElement("template"));var E=U2$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);vv7=v}v=vv7;return v},{mode:2});var Q1d;var VT8;var Ev8;var bh0;var FVq;var KV5;var IG=function(){return _.z.apply(this,arguments)||this};
_.f(IG,_.z);IG.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
IG.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
IG.prototype.onTap=function(v){if(this.hostElement.classList.contains("selected")||_.mb(this.hostElement,"yt-share-panel-can-select-contact-action")[0])v&&v.detail&&(v.detail.x||v.detail.y)&&_.m9(this.hostElement).querySelector("#target").blur(),(v=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),v={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:v?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.mb(this.hostElement,"yt-share-panel-select-contact-action",[v])};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.W([_.q({observer:"onDataChanged"}),_.X("design:type",Object)],IG.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.X("design:type",String)],IG.prototype,"componentTitle",void 0);_.W([_.Z7("#thumbnail"),_.X("design:type",Object)],IG.prototype,"thumbnail",void 0);_.W([_.D7({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],IG);
_.B(IG,"yt-enrolled-contact-renderer",function(){if(KV5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;FVq===void 0&&(FVq=document.createElement("template"));var E=FVq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);KV5=v}v=KV5;return v},{mode:2});var ih8;var LVn;var Hh=function(){return _.z.apply(this,arguments)||this};
_.f(Hh,_.z);Hh.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Hh.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Hh.prototype.onTap=function(v){if(this.hostElement.classList.contains("selected")||_.mb(this.hostElement,"yt-share-panel-can-select-contact-action")[0])v&&v.detail&&(v.detail.x||v.detail.y)&&_.m9(this.hostElement).querySelector("#target").blur(),(v=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),v={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:v?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.mb(this.hostElement,"yt-share-panel-select-contact-action",[v])};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.W([_.q({observer:"onDataChanged"}),_.X("design:type",Object)],Hh.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.X("design:type",String)],Hh.prototype,"componentTitle",void 0);_.W([_.Z7("#thumbnail"),_.X("design:type",Object)],Hh.prototype,"thumbnail",void 0);_.W([_.D7({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Hh);
_.B(Hh,"yt-suggested-contact-renderer",function(){if(LVn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;ih8===void 0&&(ih8=document.createElement("template"));var E=ih8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);LVn=v}v=LVn;return v},{mode:2});var mP=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-share-panel-reset-action":"onReset"};return v};
_.f(mP,_.z);mP.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"}}}}}};
mP.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])};
mP.prototype.onReset=function(){for(var v=_.m9(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),Q=v.length-1;Q>=0;Q--)v[Q].classList.toggle("selected")};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],mP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({observer:"onDataChanged"}),_.X("design:type",Object)],mP.prototype,"data",void 0);
_.W([_.D7({is:"yt-contact-section-renderer",disableElementRegistration:!0})],mP);
_.B(mP,"yt-contact-section-renderer",function(){if(bh0===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Ev8===void 0&&(Ev8=document.createElement("template"));var E=Ev8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);bh0=v}v=bh0;return v},{mode:2});var UN=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return v};
_.f(UN,_.z);_.K=UN.prototype;_.K.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"}}}};
_.K.onYtRefreshFormCommand=function(v){var Q;(v=_.y((Q=_.y(v,_.rca))==null?void 0:Q.formRenderer,HFs))&&this.set("data",v)};
_.K.reset=function(){var v=_.m9(this.hostElement).querySelector("#fields").children;v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.reset&&Q.reset()};
_.K.getForm=function(){var v={},Q=_.m9(this.hostElement).querySelector("#fields").children;Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;if(!V.validate())return null;v[V.data.key]=V.value}return v};
_.K.submitFormFields=function(){if(this.fields)for(var v=_.L(this.fields),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?Q.save():Q.nodeName==="YT-OPTIONS-RENDERER"&&Q.save()};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],UN.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UN.prototype,"data",void 0);_.W([_.Pn("#fields > *"),_.X("design:type",Array)],UN.prototype,"fields",void 0);
_.W([_.D7({is:"yt-form-renderer",disableElementRegistration:!0})],UN);
_.B(UN,"yt-form-renderer",function(){if(VT8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Q1d===void 0&&(Q1d=document.createElement("template"));var E=Q1d;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);VT8=v}v=VT8;return v},{mode:2});var tTd;var v1=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return v};
_.f(v1,_.z);v1.prototype.onCheckboxChange=function(v){this.data&&(v=(this.checked=_.jV(v).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})};
v1.prototype.handleUpdateCheckboxCommand=function(v){(v=_.y(v,_.ehZ))&&this.data&&this.data.id===v.id&&(this.set("data.disabled",v.disabled),this.set("data.title",v.title))};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],v1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],v1.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],v1.prototype,"checked",void 0);_.W([_.J({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],v1);
_.B(v1,"ytd-settings-checkbox-renderer",function(){if(tTd!==void 0)return tTd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return tTd=v},{mode:1});var pnh;var QP=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return v};
_.f(QP,_.z);QP.prototype.dataChanged=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return v.radio.removeAttribute("checked"),!v.data||!v.data.id||v.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.W9s()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(Q=v.data&&v.data.id)?V.yield(XHd(v.data.id),4):V.jumpTo(3):(v.set("data.hidden",!0),V.jumpTo(0));V.nextAddress!=3&&(Q=V.yieldResult);Q&&_.mb(v.hostElement,"yt-select-settings-radio-option",[v.data.id]);_.q1(V)})};
QP.prototype.onButtonChanged=function(v){_.jV(v).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.mb(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
QP.prototype.onSelectOption=function(v){this.data&&this.data.id&&(this.data.id===v?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
QP.prototype.dataChanged=QP.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],QP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Z7("#radio"),_.X("design:type",Object)],QP.prototype,"radio",void 0);_.W([_.q(),_.X("design:type",Object)],QP.prototype,"data",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],QP.prototype,"dataChanged",null);_.W([_.J({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],QP);
_.B(QP,"ytd-settings-radio-option-renderer",function(){if(pnh!==void 0)return pnh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pnh=v},{mode:1});var e$h;var VP=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return v};
_.f(VP,_.z);
VP.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"}}}};
VP.prototype.handleUpdateTextCommand=function(v){(v=_.y(v,_.ZVS))&&this.data&&this.data.id===v.id&&this.set("data",v)};
VP.prototype.handleUpdateConnectedAppRendererCommand=function(v){if(_.y(v,_.hhq)&&this.data){var Q,V;if(v=(Q=_.y(v,_.hhq))==null?void 0:(V=Q.newConnectedAppRenderer)==null?void 0:V.connectedAppRenderer)this.data=v}};
VP.prototype.computeConnectedAppStyle=function(v){return v.style?v.style.toLowerCase().replace(/_/g,"-"):""};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],VP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],VP.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.X("design:type",String)],VP.prototype,"connectedAppStyle",void 0);_.W([_.J({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],VP);
_.B(VP,"ytd-connected-app-renderer",function(){if(e$h!==void 0)return e$h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return e$h=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.WM("iuT5Oc");

_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("NSzT5");
var OFE=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.ht().resolve(_.m0),2);(v=Q.yieldResult)&&v.pauseVideo();_.q1(Q)})};var D2q=_.s$(["https://portraits.google.com"]),R29=_.s$(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),nNP=_.s$(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),lll=_.Ad(D2q),qpE=_.x(function(v){function Q(w){var A;if(w=(A=w.detail)==null?void 0:A.endpoint){A=_.y(w,_.tn);var k;A&&((k=A.browseId)==null?0:k.startsWith("UC"))&&A.browseId!==b()&&(_.wj("creator_chatbots-panel-persistent"),Z.removeEventListener("yt-navigate-start",Q))}}
var V=v.usePlayerHeight;var E=v.isPersistentPanel;var b=v.creatorChannelId;var F=_.ud(function(w){var A=b();A=_.Ad(R29,A);_.QN(w,1,A)}),t=function(){var w,A,k;
return _.e(function(T){return T.nextAddress==1?T.yield(_.ht().resolve(_.m0),2):(w=T.yieldResult)?T.return({video_id:(k=(A=w.getVideoData())==null?void 0:A.video_id)!=null?k:"",timestamp_sec:w.getCurrentTime().toString()}):T.return({})})};
_.wX("message",function(w){var A,k,T,c,C,R;return _.e(function(l){if(l.nextAddress==1){if((A=E)==null?0:A())return l.return();if(w.origin!==lll.toString())return console.warn("Received message from untrusted origin:",w.origin),l.return();k=w.data;if(typeof k!=="object"||k===null||!k.action)return l.return();if(k.action==="pause")return l.yield(OFE(),0);if(k.action!=="getYouTubeContext"||!w.source)return l.jumpTo(0);T=w.source;c=T.postMessage;C=JSON;R=C.stringify;return l.yield(t(),7)}c.call(T,R.call(C,
{youTubeContext:l.yieldResult}),{targetOrigin:w.origin});return l.jumpTo(0)})});
var p=function(){var w,A;(w=F.value)==null||(A=w.contentWindow)==null||A.postMessage("ep_closed",lll.toString())};
_.wX("yt-page-type-changed",function(){if(E==null?0:E()){var w;((w=_.ht().resolve(_.oJ).getCurrentPage())==null?void 0:w.pageSubtype)!=="channels"&&(w=document.getElementById("creator_chatbots-panel-persistent"))&&(w.style.display="none")}});
var Z=_.ht().resolve(_.Ns),d;(d=Z)==null||d.addEventListener("yt-navigate-start",Q);_.j_(function(){var w;(w=Z)==null||w.removeEventListener("yt-navigate-start",Q)});
return _.P("div",{class:"ytprotoCreatorChatbotsAppHost",style:_.iP({height:function(){return(V==null?0:V())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.P(_.I7f,{id:function(){return(E==null?0:E())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:p,header:function(){return _.P("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.P("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.P(_.KP,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.P(_.kT,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var w=_.s9("https://portraits.google.com/gallery?ytChannelId="+b());w&&_.VN(window,w,"_blank");p()}})},
content:function(){return _.P("iframe",{el:F,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+lll.toString()})}}))},"Co"),Spn=_.x(function(v){var Q=v.creatorChannelId;
var V=_.ud(function(b){var F=Q();F=_.Ad(nNP,F);_.QN(b,1,F)}),E=_.Lx(_.tR(),{veType:281629});
return _.P("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.P(_.I7f,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.P("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.P("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.P(_.KP,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.P("iframe",{el:V,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.P("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.P(_.kT,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var b=_.s9("https://portraits.google.com/gallery?ytChannelId="+Q());b&&_.VN(window,b,"_blank");OFE();E&&_.zr(_.tR(),{visualElement:E})},
"client-ve-type":281629}),_.P("div",null,"This will take you to Google Portraits"))}}))},"Do");var z2b,JnJ,NHE;z2b=_.s$(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);JnJ=_.Ad(z2b);
_.F5e=function(v){v=v===void 0?"":v;_.wj("creator_chatbots-entry-point");_.wj("creator_chatbots-panel");_.dj(JnJ);_.AU("ytd-watch-metadata #top-level-buttons-computed",function(Q){document.getElementById("creator_chatbots-entry-point")||(_.hU({element:Q,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.P(NHE,{creatorChannelId:v})}),_.$f7("creator_chatbots-panel",function(){return _.P(qpE,{usePlayerHeight:!0,
creatorChannelId:v})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.K5c=function(v){v=v===void 0?"":v;_.wj("creator_chatbots-panel");_.AU("ytd-watch-metadata #top-level-buttons-computed",function(){_.$f7("creator_chatbots-panel",function(){return _.P(Spn,{creatorChannelId:v})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
NHE=_.x(function(v){var Q=v.creatorChannelId;var V=function(){_.$f7("creator_chatbots-panel",function(){return _.P(qpE,{usePlayerHeight:!0,creatorChannelId:Q})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.P("div",{class:"ytd-menu-renderer"},_.P(_.OA,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:V}},
icon:function(){return _.P(_.L_,{icon:"SPARK"})}}))},"Eo");
_.gdj=function(v,Q){v=v===void 0?"":v;Q=Q===void 0?!1:Q;var V;return _.e(function(E){V=document.getElementById("creator_chatbots-panel-persistent");return!Q||V?(!Q&&V&&V.style.display==="none"&&(V.style.display="block"),E.jumpTo(0)):E.yield(new Promise(function(b){_.AU("ytd-app",function(F){_.hU({element:F,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.P(qpE,
{isPersistentPanel:!0,creatorChannelId:v})});
b()})}),0)})};
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("L3n37");
var kAl=function(v){return v.watch.isLearningJourneyActive},TH5=_.Vw(115994),Yp9=_.Vw(115993),ynl=function(v,Q,V){var E=this;
var b=V.dragDownAction;this.layer=0;this.JSC$23591_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.JSC$23591_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.fullscreen=!1;var F=_.tR();_.JL(F,TH5,this.layer);_.JL(F,Yp9,this.layer);this.dragDownAction=function(){b();_.zr(F,{visualElement:E.fullscreen?TH5:Yp9})};
this.gesture=new _.x1(v,Q,this.getConfig(!1),"pandown");this.attach()};
ynl.prototype.attach=function(){this.gesture.attach()};
ynl.prototype.detach=function(){this.gesture.detach()};
ynl.prototype.update=function(v){this.fullscreen=v;var Q=this.gesture;v=this.getConfig(v);Q.config=v};
ynl.prototype.getConfig=function(v){return v?this.JSC$23591_watchFullScreenConfig:this.JSC$23591_watchConfig};var cnP=function(v){_.ij.call(this);var Q=this;this.rootElement=v;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){Q.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.f(cnP,_.ij);_.K=cnP.prototype;_.K.getRoot=function(){return this.rootElement};
_.K.getElement=function(v){return this.rootElement.getElement(v)};
_.K.setPlayerResponse=function(v){this.playerResponse=v;this.publish("PLAYER_RESPONSE_UPDATED",v)};
_.K.getPlayerResponse=function(){return this.playerResponse};
_.K.setWatchNextResponse=function(v){this.watchNextResponse===v?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=v,this.publish("WATCH_NEXT_RESPONSE_UPDATED",v))};
_.K.getWatchNextResponse=function(){return this.watchNextResponse};
_.K.registerActionHandler=function(v,Q){var V=this;if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.iM(_.KW.getInstance(),(E[v]=Q,E),this.getRoot())}else this.actionHandlers.has(v)||(this.actionHandlers.set(v,[]),E={},_.iM(_.KW.getInstance(),(E[v]=function(){var b=_.aE.apply(0,arguments);return(V.actionHandlers.get(v)||[]).map(function(F){return F.apply(null,_.ui(b))})},E),this.getRoot())),this.actionHandlers.get(v).push(Q)};
_.K.unregisterActionHandler=function(v){if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.LW(_.KW.getInstance(),(Q[v]=!0,Q),this.getRoot())}else(Q=this.actionHandlers.get(v))?(Q.pop(),Q.length===0&&(Q={},_.LW(_.KW.getInstance(),(Q[v]=!0,Q),this.getRoot()),this.actionHandlers.delete(v))):_.Iy(new _.xd("Attempted to unregister an action handler which is not registered.",v))};
_.K.addPageDisposeJob=function(v){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.nQB(this.rootElement.pageDisposeJobs,v)};
_.K.removePageDisposeJob=function(v){this.rootElement.pageDisposeJobs&&_.ub(this.rootElement.pageDisposeJobs,v)};
_.K.dispatchEvent=function(v,Q){_.Hj(this.rootElement,v,Q)};
_.K.provideRenderingData=function(v,Q){this.rootElement.provideRenderingData(v,Q)};
_.K.scrollWatchTo=function(v,Q){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(v,Q)};
_.K.focusOnPlayer=function(){var v=this.getElement("PLAYER");_.PE(v,function(){if(v&&v.firstElementChild){var Q=v.querySelector(".html5-video-player");Q&&(_.Ty(_.ht().resolve(_.dS)),Q.focus())}else _.Iy(Error("ep"))})};
var fln=function(v){var Q=!!v.rootElement.theater,V=!!v.rootElement.fullscreen,E;(E=v.watchCinematicManager)==null||_.$of(E,V,Q)};
_.K=cnP.prototype;_.K.subscribeToActiveChanged=function(v,Q){Q=Q===void 0?!0:Q;var V=_.Wm(_.oF(),kAl,function(E){v(E)});
Q&&v(kAl(_.oF().getState()));return V};
_.K.isActive=function(){return kAl(_.oF().getState())};
_.K.onAttached=function(){var v=_.Y("external_fullscreen");_.Y("use_unified_flag_accessor")&&(v=_.ht().resolve(_.gbq).retriever.getFlag(_.MjN));(v||_.mX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.K.initPersistentModules=function(){if(_.Y("kevlar_watch_flexy_theater_manager")){var v=new _.cYj(this);_.Cg(this,v)}v=new _.ppJ(this);_.Cg(this,v);v=new _.nS(this);_.Cg(this,v);v=new _.FLc(this);_.Cg(this,v);v=new _.Ji(this);_.Cg(this,v);v=new _.lZ(this);_.Cg(this,v);_.Y("kevlar_watch_flexy_playlist_manager")&&(v=new _.j$V(this),_.Cg(this,v))};
_.K.initOrDisposeActiveModules=function(v){v?(this.watchScrollManager=new _.N4(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.CIq(this)),this.activeModules.push(new _.yrI(this)),this.activeModules.push(new _.$pV(this)),this.activeModules.push(new _.k29(this)),_.Y("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.MuE(this)),this.activeModules.push(new _.lG9(this)),_.Y("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Htc(this)),
_.Y("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.xoJ(this)),_.Y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.jxJ(this),this.activeModules.push(this.watchCinematicManager),fln(this)),_.Y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Jyj(this)),_.Y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.itV(this)),v=_.Y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Y("kevlar_watch_flexy_comments_manager")&&
!v&&this.activeModules.push(new _.v7c(this)),_.Y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.sTd(this)),this.activeModules.push(new _.RaJ(this)),this.activeModules.push(new _.Otj(this)),_.Y("web_enable_timely_actions")&&this.activeModules.push(new _.Snn(this)),_.Y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.VHV(this)),_.Y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.a39(this)),_.Y("web_fullscreen_components")&&
this.activeModules.push(new _.l3P(this)),_.Y("web_player_rtr_ctrls")&&this.activeModules.push(new _.bCj(this))):(_.pg(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.K.disposeInternal=function(){_.ij.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.hr.Object.defineProperties(cnP.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var GAJ={},CKc=["learning-journey-engagement-panel","PAlearning_chat"];
GAJ.YtdLearningJourneyWatchBehavior=[_.H.YtRendererBehavior,_.Zh.YtPlayerListenerBehavior,_.T9.YtRendererstamperBehavior,_.SI.YtActionHandlerBehavior,_.EF.YtPageBehavior,_.ql.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 _.mX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Y("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 _.mX("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 _.Y("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Y("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 _.T_("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.T_("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_rounded_player_large")||_.Y("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 _.Y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Y("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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:_.Jm(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Jm(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var v=this;this.watchController=void 0;this.pageDisposeJobs=[function(){v.showMetadataPlaceholder_()},
function(){_.Y("web_watch_dont_clear_comments")||v.clearComments_()},
function(){v.clearPlayerAds_()},
function(){v.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.Y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Iid(function(){return _.XK(v)},
this.hostElement);
this.pageDisposeJobs.push(function(){v.youThereManager_.reset()});
_.Y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){v.resetFullerscreenEduButtonForNewPlayback_()}));
_.Y("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Ym;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;_.Y("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.Y("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));_.Y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Lh(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(v){v&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:v}),v.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(v){_.Y("kevlar_watch_flexy_theater_manager")&&(this.theater=v,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.Y("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(v){!_.Y("kevlar_watch_while_v2")&&!_.Y("web_watch_pip")||v||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(v){this.active!==void 0&&(this.fullscreen=v,_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(v){this.active!==void 0&&(_.Hj(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(v>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(v){this.initCsi_();this.updatePageData_(v)},
updatePageData_:function(v){var Q=this;if(v)if(this.data===v){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=v;this.playlist&&_.ft({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Mp("nw");this.loading=!1;_.go(_.XT,function(){Q.initDclkstatus_();var E,b=((E=Q.player)==null?void 0:E.getVideoData().cpn)||"";_.z69(function(F,t){_.YJh(F,t,b)})})},
onPageLoadWithSameData_:function(){_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var v=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!v);this.set("loadingData.playlistLoading",v&&v!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),v=this.watchNextSkeletonEl_.firstElementChild;v;)v.classList.remove("hidden"),v=v.nextElementSibling;var Q,V,E;v=(Q=this.loadingData)==null?void 0:(V=Q.endpoint)==null?void 0:(E=V.watchEndpoint)==null?void 0:E.videoId;var b;v&&(b="https://i.ytimg.com/vi/"+v+"/frame0.jpg");_.m9(this.hostElement).querySelector("#player").style.backgroundImage=b?"url("+b+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var v=_.m9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&v&&(v.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Q,V;(V=(Q=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(Q);var E,b;(b=(E=this.watchMetadata).resize)==null||b.call(E)}_.m9(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(v){var Q=_.m9(this.hostElement).querySelector(v);Q?_.$I(Q,!1):_.Iy(new _.xd("Overscroll monitor not found for component: ",v))},
removeSplitScrollMouseTrap:function(v){var Q=_.m9(this.hostElement).querySelector(v);Q?_.Ix(Q):_.Iy(new _.xd("Disposal component for  overscroll monitoring not found: ",v))},
onLoadingChanged_:function(v){v?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(v){var Q=this;v?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.XT.addLowPriorityJob(function(){Q.onWindowResized_(_.Zl(!0))})},
updateTheaterModeState_:function(v){if(!_.Y("kevlar_watch_flexy_theater_manager")){v=v||this.fullWindowMode_;if(this.theater!==void 0||v)this.theater=v;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();v&&_.W$n()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var v=this.theater;_.Y("external_fullscreen")&&this.fullscreen&&(v=!0);v=v?_.m9(this.hostElement).querySelector("#player-full-bleed-container"):_.m9(this.hostElement).querySelector("#player-container-inner");var Q=this.getPlayerContainer(),V=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip");Q.parentElement!==v&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.XK(this).appendTo(v,Q),v.appendChild(_.m9(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var v=this;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.ht().resolve(_.lJ).deactivate(),2);v.updatePlayerLocation();_.q1(Q)})},
updateCinematicsLocation:function(){var v=this.getElement("CINEMATICS");if(v){var Q=this.getCinematicsLocationContainer();v.parentElement!==Q&&Q.appendChild(v);var V;(V=this.watchController)==null||fln(V)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.m9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.m9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(v,Q){var V=document.documentElement.hasAttribute("dark"),E=!V&&this.cinematicLightTheme;return v&&V||Q&&V||(Q||v)&&E},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data);_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ht().resolve(_.pD).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.Y("web_watch_start_chat_in_theater_mode")){var Q,
V,E;if((Q=this.data)==null?0:(V=Q.contents)==null?0:(E=V.twoColumnWatchNextResults)==null?0:E.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var b,F;((b=this.data)==null?0:(F=b.contents)==null?0:F.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(v){var Q;(Q=this.watchController)==null||Q.setPlayerResponse(this.playerData);v&&v.playabilityStatus&&(Q=this.isVideoPlayable_(v.playabilityStatus,this.getPlayerOverlays_(this.data)),v=this.isLiveStreamOffline_(v.playabilityStatus),Q&&!v||_.PE(this,function(){_.Mp("pbu")}));
this.setPlayerAds_();_.Un(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(v){_.oF().dispatch(_.U2({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));v?this.activate_():this.deactivate_()},
attached:function(){var v=this;this.watchController=new cnP(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.Y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Q=_.XK(this);_.Y("kevlar_disable_prepare_player")||Q.preparePlayer();_.Y("kevlar_watch_flexy_playlist_manager")||_.ht().resolve(_.pD).setPlayer(Q);this.updatePageMediaQueries();Q={"--ytd-watch-flexy-scrollbar-width":_.oG()+
"px"};!_.T_("kv_pl_mx_sz_ks")&&_.T_("kevlar_watch_max_player_width")&&(Q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.xYd+"px");_.T_("kevlar_watch_flexy_metadata_height")&&(Q["--ytd-watch-flexy-space-below-player"]=_.B$V+"px");this.safeUpdateStyles(Q);_.Y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new ynl(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return v.onPlayerTouchPanDown_()}}));
_.Y("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.m9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var v=_.oG(),Q=_.Jz+v,V=Q;this.fixedPanels&&(Q+=_.N$9);var E=657+v;v=1327+v;_.m9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Q+"px)";_.m9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(E+"px), (min-height: 630px) and (min-width: ")+(Q+"px) and (max-width: ")+(v+"px)");_.m9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(v+"px)");
_.m9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+V+"px)"},
calculateCurrentPlayerSize_:function(){var v=_.m9(this.hostElement).querySelector("#miniplayer-bar").firstChild;return v&&v.active||this.theater||_.Y("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.DT(NaN,NaN):_.gzb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.gzb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.t5(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var v=this;this.onWindowResized_(_.Zl());_.Y("browse_skeleton_removal_on_watch_killswitch")||_.mX("IS_SHELL_LOAD")&&_.q95();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Q=_.XK(this);Q.addEventListener("yt-player-updated",_.Lh(this,this.onPlayerUpdated_));Q.getPlayerPromise().then(function(V){v.playerApiReady_(V)});
_.Y("kevlar_watch_flexy_playlist_manager")||(Q=_.ht().resolve(_.pD),_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&Q.addEventListener("yt-navigate",_.Lh(this,this.onYtNavigate_)),Q.setPlaylistComponent(_.m9(this.hostElement).querySelector("#playlist")),Q.addEventListener("yt-playlist-data-updated",_.Lh(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.XT.addLowPriorityJob(function(){_.Hj(v.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.XK(this).removeEventListener("yt-player-updated",_.Lh(this,this.onPlayerUpdated_));if(!_.Y("kevlar_watch_flexy_playlist_manager")){var v=_.ht().resolve(_.pD);_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&v.removeEventListener("yt-navigate",_.Lh(this,this.onYtNavigate_));v.cancelVideoSkip();v.removeEventListener("yt-playlist-data-updated",_.Lh(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Y("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Hj(this.hostElement,"yt-autonav-pause-player",!1);v=_.ax();_.Y("kevlar_exit_fullscreen_leaving_watch")&&v&&_.ri(v)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(v){this.player&&this.player.updateVideoData({rvs:v.rvs})},
getPageContents:function(v){return v&&v.contents&&v.contents.twoColumnWatchNextResults&&v.contents.twoColumnWatchNextResults.results&&v.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(v){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v)},
onRetrieveLocation_:function(v,Q){Q.hasComments?Q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Q.locationRetrieved("/related_ajax",void 0);v.stopPropagation()},
onSubscriptionChanged_:function(v,Q){this.player&&(Q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.uII("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.m9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.m9(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(v){this.player=v;this.setPlayerState(v.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Y("kevlar_unified_player")||_.Y("kevlar_player_new_bootstrap_adoption"))&&_.zz()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(v,Q){Q=Q===void 0?!0:Q;_.ax()&&_.Y("external_fullscreen")&&_.ri(document.documentElement);this.theaterRequested_=v;Q&&_.Sw("wide",v?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.Y("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&&_.Hj(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(v){_.Hx(v,typeof this.player),this.player&&_.Hx(v,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var v;((v=this.player)==null?0:v.isFullscreen())?this.player.toggleFullscreen():_.mb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(v,Q){return this.loading?Q:!!Object.keys(v).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(v){if(v){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.youThereRenderer&&_.USI(this.youThereManager_,Q.youThereRenderer)}},
setPlaylistData_:function(v){return v||{}},
userEngagementConfigDataChanged_:function(v){if(v)if(v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Q=this.youThereManager_;_.kh()<v.lowEngagementThresholdMs||_.ENV(Q,!0)}else v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.mb(this.hostElement,"yt-autonav-pause-user-engagement",[v])},
isPlayerUnavailable_:function(v,Q,V){return!!v&&!this.isVideoPlayable_(v,V)&&!Q},
getPlayerOverlays_:function(v){return(v==null?void 0:v.playerOverlays)||null},
isVideoPlayable_:function(v,Q){if(!v)return!1;var V=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",E=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",v)||this.get("errorScreen.ypcTrailerRenderer",v);v=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",v);var b;Q=Q==null?void 0:(b=Q.playerOverlayRenderer)==null?void 0:b.gatedActionsOverlayRenderer;return!!V||!!E||!!v||!!Q},
hasWatchNextResponseErrorRenderer:function(v){var Q=this.getPageContents(v),V,E,b,F,t;return!(v==null?0:(V=v.contents)==null?0:(E=V.twoColumnWatchNextResults)==null?0:E.secondaryResults)&&!!((b=Q[0])==null?0:(F=b.itemSectionRenderer)==null?0:(t=F.contents[0])==null?0:t.backgroundPromoRenderer)},
isLiveStreamOffline_:function(v){return v?v.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(v,Q,V){var E=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Q),b=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];b=_.Y("web_no_skip_video_on_verification_checks")?(v==null?void 0:v.status)&&b.includes(v.status):v&&v.status==="AGE_CHECK_REQUIRED";var F=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",v);F==void 0&&(F=!0);!V||this.isVideoPlayable_(v,this.getPlayerOverlays_(Q))||
E||b||!F||_.ht().resolve(_.pD).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ugb()},
onPlayerFeedbackStartRequest_:function(v){_.mb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:v}])},
onPlayerFeedbackArticleRequest_:function(v){_.mb(this.hostElement,"yt-help-dialog-requested",[v])},
onPlayerYpcContentRequest_:function(){var v,Q,V,E,b,F,t,p,Z=((v=this.data)==null?NaN:(Q=v.contents)==null?NaN:(V=Q.twoColumnWatchNextResults)==null?NaN:(E=V.secondaryResults)==null?NaN:(b=E.secondaryResults)==null?NaN:(F=b.offerModule)==null?NaN:(t=F.tvfilmOfferModuleRenderer)==null?NaN:(p=t.actionButtons)==null?NaN:p.length)-1;v=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];Q=_.L(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=Q.next();!V.done;V=Q.next())for(V=V.value,E=_.L(v),b=E.next();!b.done;b=E.next())if(b="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+b.value,b=this.get(b+"navigationEndpoint",this.data)||this.get(b+"serviceEndpoint",this.data)||this.get(b+"command",this.data)){_.FL(b,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(v){_.Hj(this.hostElement,"yt-autonav-pause-player",v)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(v){v()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Hj(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(v)},
setPlayerState:function(v){_.oF().dispatch(_.FTZ(v))},
onPlayerSubscribe_:function(v){_.mb(this.hostElement,"yt-player-subscribe",[v])},
onPlayerUnsubscribe_:function(v){_.mb(this.hostElement,"yt-player-unsubscribe",[v])},
onPlayerAdYtShowToast_:function(v){_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:v.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(v){if(v)return v},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(v){return!_.Y("web_watch_move_summary_to_sd")&&!!v},
computeWatchMetadataRefresh:function(){return _.Y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var v,Q,V,E;this.watchNextSecondaryResults=(v=this.data)==null?void 0:(Q=v.contents)==null?void 0:(V=Q.twoColumnWatchNextResults)==null?void 0:(E=V.secondaryResults)==null?void 0:E.secondaryResults}},
setRichGridRendererData:function(v){this.richGridRendererData=v},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var v,Q=(v=this.data)==null?void 0:v.engagementPanels;if(Q==null?0:Q.length){v=null;Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=void 0;if(((E=V.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-structured-description"){v=V;break}}var b,F,t;v=(b=v)==null?void 0:(F=b.engagementPanelSectionListRenderer)==null?void 0:(t=F.content)==null?void 0:t.structuredDescriptionContentRenderer;if(v==null?0:v.items){b=
[];F=_.L(v.items);for(t=F.next();!t.done;t=F.next()){t=t.value;if(!_.Y("sd_horizontal_list_show_nav_killswitch")){var p=E=V=Q=v=void 0,Z=void 0,d=(v=t.horizontalCardListRenderer)==null?void 0:(Q=v.header)==null?void 0:(V=Q.richListHeaderRenderer)==null?void 0:(E=V.navigationButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:(Z=p.command)==null?void 0:Z.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(w){return!_.y(w,_.UPq)}))}t.expandableVideoDescriptionBodyRenderer||
t.videoDescriptionHeaderRenderer||b.push(t)}return{items:b}}}},
constructWarning_:function(v){return{text:_.u3(v),type:"WARNING"}},
isPlaShelfEnabled_:function(v){if((this.get("adPlacements",v)||[]).length)return!0;v=this.get("playerAds",v)||[];return!(!v.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",v[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var v=this;_.Hj(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Q=this.getScrollTop()>0;this.gestures_&&(Q?this.gestures_.detach():this.gestures_.attach());Q!==this.showFullerscreenEdu_&&_.Y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Q,_.XK(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(v.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Hj(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var v=this;this.commentsReady=!1;_.XT.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.go(_.XT,function(){v.setComments_()},1E3)},
setComments_:function(){if(!_.Y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Mp("cmi");_.XT.cancelJob(this.setCommentsJobId_);var v=this.getPageContents(this.data);if(v&&v.length){v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,this.get("itemSectionRenderer.sectionIdentifier",Q)==="comment-item-section"){this.comments=Q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Hj(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Mp("cmc")},
doRemoveComments_:function(){this.comments={};_.Y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.XT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.XT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(v,Q){var V=_.y(Q.endpoint,_.sn);V&&(!(Q=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==Q.videoId||V.playlistId&&V.playlistId!==Q.playlistId||V.index!==void 0&&V.index!==Q.index||typeof V.startTimeSeconds!=="number"||(v.stopPropagation(),this.setScrollTop(0),_.XK(this).getPlayerPromise().then(function(E){var b=V.startTimeSeconds;E.seekTo(b);E.wakeUpControls();b<E.getDuration()&&E.playVideo()})))},
updatePlayerStartTime_:function(){var v=_.C3l();"t"in v&&(v=_.sFb(v.t),this.player.seekTo(v,!0))},
updateTitleFromWatchNext:function(v){v=this.getPageContents(v);var Q,V;(v=_.j0(v==null?void 0:(Q=v[0])==null?void 0:(V=Q.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.Hj(this.hostElement,"yt-update-title",v)},
updateTitle_:function(v){v=this.get("videoDetails.title",v)||"";_.Hj(this.hostElement,"yt-update-title",v)},
syncWithRemoteVideo_:function(v,Q,V){if(this.active&&this.player){var E=this.player.getVideoData();if(E.video_id===V&&(V=E.list,_.Y("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),E.video_id!==v||V!=Q)){var b;_.Y("kevlar_player_watch_endpoint_navigation")?b=_.BN0(_.J4l(v,Q)):b=this.buildWatchEndpoint_(v,Q);_.Hj(this.hostElement,"yt-navigate",{endpoint:b,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(v,Q,V){return _.$7(v,Q,V)},
initDclkstatus_:function(){_.B8j()},
attachWatchPageSkeleton_:function(){var v=document.querySelector("#watch-page-skeleton");if(v){var Q=v.querySelector("#primary-info"),V=v.querySelector("#secondary-info"),E=v.querySelector("#related");Q&&_.m9(this.hostElement).querySelector("#info-skeleton").appendChild(Q);V&&_.m9(this.hostElement).querySelector("#meta-skeleton").appendChild(V);E&&(_.m9(this.hostElement).querySelector("#related-skeleton").appendChild(E),this.watchNextSkeletonEl_=E);_.ng(v)}},
handlePlayerUpdated_:function(){_.XK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(v,Q){if(this.watchNextSkeletonEl_&&typeof Q!=="undefined"){var V=this.watchNextSkeletonEl_.children,E=v&&v.indexSplices.length?v.indexSplices[0].index:0;v=Math.min(this.watchNextShownItems.length,V.length);Q||(E=0,v=V.length);for(Q=E;Q<v;Q++)V[Q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(v){_.Y("external_fullscreen")||_.mb(this.hostElement,"yt-player-fullscreen",[v.fullscreen])},
onFullscreenChange_:function(v){this.fullscreen=v;this.gestures_&&this.gestures_.update(this.fullscreen);var Q=_.XK(this);Q.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.ax())});
this.updateFullBleedElementLocations();v&&(Q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(v,Q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Q},
computeIsDonationShelfCollapsed_:function(v){return v},
computeShouldShowMerchShelf:function(v,Q){return Q&&!!v},
computeResponseHasComments:function(v){var Q,V,E,b,F;return!!(v==null?0:(Q=v.contents)==null?0:(V=Q.twoColumnWatchNextResults)==null?0:(E=V.results)==null?0:(b=E.results)==null?0:(F=b.contents)==null?0:F.some(function(t){var p;return(t==null?void 0:(p=t.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(v,Q){this.responseHasComments=this.computeResponseHasComments(this.data);return!!v&&!!Object.keys(v).length&&!Q},
identity:_.Nm,onWindowResized_:function(v){this.windowSize_=v;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(v){var Q=this;v&&v.type!=="dataloaded"&&v.type!=="dataupdated"||_.XK(this).getPlayerPromise().then(function(V){var E=V.getPlayerState();E!==5&&E!==0&&(V=1/V.getVideoAspectRatio(),Q.videoHeightToWidthRatio_!==V&&(Q.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(v){var Q=this,V=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"),E=function(){if(Q.watchMetadata){var b,F;(F=(b=Q.watchMetadata).resize)==null||F.call(b)}_.XK(Q).getPlayerPromise().then(function(t){if(_.Y("kevlar_set_internal_player_size")){if(!V||!Q.isMiniplayerActive()){var p=Q.calculateCurrentPlayerSize_();t.setInternalSize(p.width,p.height)}}else t.setSize(NaN,NaN);_.Y("kevlar_watch_while")&&Q.updateWatchWhileScrollThreshold_()})};
v?E():_.Lq(_.XT,E)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(v){this.set("data.survey",v.detail)},
onYtShowSurveyCommand_:function(v){this.set("data.survey",_.y(v,_.$SE).survey)},
onDownloadedVideoDeleted:function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1){if(!Q.active||(V=Q.playerData)==null||!V.offlineState||Q.videoId!==v)return b.return();(E=Q.player)==null||E.stopVideo();_.u9().navigatingAwayFromWatchDeletedVideo=!0;_.FL(_.rhT,Q.hostElement);return b.yield(_.u9().navigationFinishPromise,2)}_.u9().navigatingAwayFromWatchDeletedVideo=!1;_.q1(b)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var v;this.theater?v=_.O$(.5625*this.windowSize_.width,480,this.windowSize_.height-185):v=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==v&&(this.watchWhileScrollThreshold_=v,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var v=_.m9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&v){var Q=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!v.active&&Q&&V>=this.watchWhileScrollThreshold_?(v.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):v.active&&(!Q||V<this.watchWhileScrollThreshold_&&!_.ax())&&(v.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(v,Q){if(v!==!0||Q!==void 0){v=!_.Y("live_chat_over_engagement_panels");Q=_.m9(this.hostElement).querySelector("#chat-container");var V=_.m9(this.hostElement).querySelector("#plj-sidebar"),E=_.m9(this.hostElement).querySelector("#panels"),b=_.m9(this.hostElement).querySelector("#plj-panels"),F=_.m9(this.hostElement).querySelector("#plj-playlist"),t=_.m9(this.hostElement).querySelector("#alerts"),p=_.m9(this.hostElement).querySelector("#playlist"),Z=_.m9(this.hostElement).querySelector("#related"),
d=_.m9(this.hostElement).querySelector("#donation-shelf"),w=_.m9(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.m9(this.hostElement).querySelector("#secondary-inner"),t.appendChild(V),V.appendChild(F),F.appendChild(p),V.appendChild(b),v&&t.appendChild(E),_.Y("web_watch_theater_chat")||t.appendChild(Q),v||t.appendChild(E),t.appendChild(d),t.appendChild(Z)):(v&&_.zm(E,t),_.zm(p,t),_.Y("web_watch_theater_chat")||_.zm(Q,t),v||_.zm(E,t),_.zm(d,t),w&&(b&&_.zm(b,w),_.zm(Z,w)));_.Y("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.Y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.Y("web_watch_theater_chat")){var v=_.m9(this.hostElement).querySelector("#chat-container"),Q=this.theater&&!this.fullscreen||_.Y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Q?_.Y("web_watch_theater_chat_beside_player")?(Q=_.m9(this.hostElement).querySelector("#panels-full-bleed-container"),(v==null?void 0:v.parentElement)!==Q&&Q.append(v),this.panelsBesidePlayer=!0):_.Y("web_watch_theater_fixed_chat")&&
(Q=_.m9(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==Q&&Q.append(v),this.fixedPanels=!0):(_.Y("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Y("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),Q=_.m9(this.hostElement).querySelector("#playlist"),v&&Q?_.JZ(v,Q):_.Iy(new _.xd("Missing element when updating chat location",{"chatContainer defined":!!v,"playlist defined":!!Q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(v,Q){return _.Y("sw_metadata_vis_toggle_ks")?!0:!!v||!!Q},
computeForceDarkPanelTheme:function(v){return _.Y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&v:!1},
safeUpdateStyles:function(v){try{_.F6(this.hostElement,v)}catch(Q){_.Iy(Q)}},
videoHeightToWidthRatioChanged_:function(v,Q){Q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(v){this.videoHeightToWidthRatio_=1/v},
computeIsVerticalVideo_:function(v){return v>=1},
computeIsFourThreeToSixteenNineVideo_:function(v){return v<=.7501&&v>=.5624},
computeIsExtraWideVideo_:function(v){return v<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.XK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.XK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.bFn(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(v){var Q=_.TA(v)||0;_.kN(v,Q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var v=_.TA("yt-fullerscreen-edu-button-click-count")||0,Q=_.TA("yt-fullerscreen-edu-button-shown-count")||0,V=_.T_("external_fullscreen_button_shown_threshold"),E=v>=_.T_("external_fullscreen_button_click_threshold")||Q>=V;_.XK(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonSubtleModeState(E)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(v,Q){return Q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ht().resolve(_.pD).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var v=this;this.panelMaxHeightUpdateJob_&&_.XT.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.XT.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;var Q;!v.isTwoColumns_||v.theater||v.fullscreen?Q=460:Q=v.calculateNormalPlayerSize_().height;var V=Q+"px";_.Y("live_chat_taller_height")&&!v.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.Y("live_chat_medium_height")&&
!v.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Y("live_chat_scaled_height")&&!v.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");v.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Q+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":Q+"px","--ytd-watch-flexy-comments-panel-max-height":Q+"px","--ytd-comments-engagement-panel-content-height":Q+"px"})})},
onYtShowEngagementPanelScrimAction_:function(v){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",v)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Qk(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(v){var Q=_.m9(this.hostElement).querySelector("#engagement-panel-scrim");v?Q.addEventListener("tap",_.Lh(this,this.onEngagementPanelScrimClick_)):Q.removeEventListener("tap",_.Lh(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(v){if(this.hostElement.contains(v)&&!this.scrollToAnimation_.isAnimating()){var Q=v.offsetTop-24;v=v.offsetTop+v.offsetHeight+24;var V=this.getPageScrollingElement(),E=this.getScrollTop(),b=E+V.clientHeight-56;if(Q<E+56)Q-=56;else if(v>b)Q=v-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Q),500)}},
onYtSignalActionScrollToComments:function(){var v=this.hostElement.querySelector("#comments");if(v&&!this.scrollToAnimation_.isAnimating()){v=v.offsetTop-56-24;if(_.Y("kevlar_comment_teaser_scroll_to_midpoint")&&(v-=_.Rb().height/3,v<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtEngagementPanelVisibleChanged:function(v,Q,V){this.active&&this.trackEngagementPanelVisibility&&!_.aib.includes(V)&&(Q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(V),Q!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(v){return v?"":"watch-active-metadata"},
computeNewMetadataClass:function(v){return v?"watch-active-metadata":""},
computeFullBleedPlayer:function(v,Q){return v||Q},
computeDefaultLayout:function(v){return!v},
computeDefaultTwoColumnLayout:function(v,Q){return!v&&Q},
computeWatchWhilePanelsActive:function(v,Q){return v||Q},
computeNoBorderOnChat:function(v){return _.Y("web_watch_theater_chat_no_border")&&v},
computeLiveChatPresentAndExpanded:function(v,Q){return v&&!Q},
computePanelExpanded:function(v,Q,V){return v||Q||V},
onChangeMarkersVisibility:function(v){_.XK(this).getPlayerPromise().then(function(Q){var V;(V=Q.changeMarkerVisibility)==null||V.call(Q,_.y(v,_.Wz).isVisible||!1,_.y(v,_.Wz).entityKeys||[],_.y(v,_.Wz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(v){this.liveChatCollapsed=v.detail;_.oF().dispatch(_.XB9(v.detail))},
provideRenderingData:function(v,Q){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Q;break;case "PRIMARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Q);this.videoPrimaryInfoRendererValue=Q==null?void 0:Q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Q);this.videoSecondaryInfoRendererValue=Q==null?void 0:Q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Q;break;case "CLARIFICATION":this.clarifyBoxValue=Q;break;case "LIVE_CHAT":this.conversationBar=Q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Q;break;case "PLAYLIST":this.externalPlaylistData_=Q!=null?Q:{};break;case "MERCH_SHELF":this.merchShelfValue=Q==null?void 0:Q.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=Q;break;case "OFFER_MODULE":this.offerModule=Q;break;case "LIMITED_STATE":this.limitedStateValue=Q;break;case "DONATION_SHELF":this.donation=Q;break;
case "ALERTS":this.alertsValue=Q;break;case "COMMENTS":this.comments=Q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=Q}},
toggleCinematicsActive:function(v){this.cinematicsActive=v},
isMiniplayerActive:function(){return _.ht().resolve(_.lJ).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(v){return CKc.map(function(Q){return v.find(function(V){var E;return(V==null?void 0:(E=V.engagementPanelSectionListRenderer)==null?void 0:E.targetId)===Q})}).filter(function(Q){return Q!==void 0})},
getNonLearningJourneyEngagementPanels:function(v){return v.filter(function(Q){var V;return!CKc.includes((Q==null?void 0:(V=Q.engagementPanelSectionListRenderer)==null?void 0:V.targetId)||"")})}}];var MVI;var U8=function(){var v=_.z.apply(this,arguments)||this;v.flexy=!0;v.learningJourney=!0;v.viewTransitionEnabled=_.Y("enable_player_resize_transition");v.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");v.isDarkTheme=document.documentElement.hasAttribute("dark");v.theaterLargerPlayer=_.Y("web_watch_theater_larger_player");v.defaultCollapsePlaylist=_.Y("web_watch_default_collapse_playlist");v.enableCanvasLayout=_.Y("web_enable_canvas_on_learning_journey");return v};
_.f(U8,_.z);_.K=U8.prototype;_.K.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.K.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.K.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.K.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.K.ready=function(){var v=this,Q=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",Q);this.secondary.addEventListener("scroll",Q)};
_.K.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.K.updateIsTwoColumnsFromBinding=function(v){_.Y("web_watch_update_narrow_width_killswitch")||_.oF().dispatch(_.XUJ(!v.detail.value));this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.K.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.K.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.K.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.K.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.K.updateShownItemsFromBinding=function(v){v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value};
_.K.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23600_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23600_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hr.Object.defineProperties(U8.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var Q=0;Q<this.data.pageVisualEffects.length;Q++)if(v=_.y(this.data.pageVisualEffects[Q],_.vG))return Q=void 0,(Q=v.config)==null?void 0:Q.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.learningJourneyEngagementPanels)==null?void 0:v.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.learningJourneyEngagementPanels)==null?void 0:v.find(function(k){var T;return(k==null?void 0:(T=k.engagementPanelSectionListRenderer)==null?void 0:T.panelIdentifier)==="learning-journey-engagement-panel"});
if(Q){var V,E,b,F,t,p,Z,d,w;if(v=(d=((Z=(t=((F=Q==null?void 0:(V=Q.engagementPanelSectionListRenderer)==null?void 0:(E=V.content)==null?void 0:(b=E.sectionListRenderer)==null?void 0:b.contents)!=null?F:[])[0])==null?void 0:(p=t.itemSectionRenderer)==null?void 0:p.contents)!=null?Z:[])[0])==null?void 0:(w=d.accordionViewModel)==null?void 0:w.onTitleTap){var A=_.MQ(v);if(A)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.bd.instance.resolveCommand(A)}}}}}}});
_.hr.Object.defineProperties(U8,{template:{configurable:!0,enumerable:!0,get:function(){if(MVI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);MVI=v}v=MVI;return v}}});
U8.prototype.updateMiniplayerIsActiveValue=U8.prototype.updateMiniplayerIsActiveValue;U8.prototype.updateScrollTopValue=U8.prototype.updateScrollTopValue;U8.prototype.updateFullscreenValue=U8.prototype.updateFullscreenValue;U8.prototype.updateTheaterValue=U8.prototype.updateTheaterValue;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],U8.prototype,"ytComponentBehavior",void 0);
_.W([_.M(GAJ.YtdLearningJourneyWatchBehavior),_.X("design:type",Object)],U8.prototype,"ytdWatchBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],U8.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],U8.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],U8.prototype,"playerData",void 0);_.W([_.q(),_.X("design:type",Object)],U8.prototype,"browseData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],U8.prototype,"flexy",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],U8.prototype,"learningJourney",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],U8.prototype,"viewTransitionEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],U8.prototype,"smallerChatMinHeight",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],U8.prototype,"isDarkTheme",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],U8.prototype,"theaterLargerPlayer",void 0);_.W([_.q(),_.X("design:type",Object)],U8.prototype,"defaultCollapsePlaylist",void 0);_.W([_.q(),_.X("design:type",Object)],U8.prototype,"enableCanvasLayout",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("playerData","browseData","enableCanvasLayout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],U8.prototype,"showBrowseResponse",null);
_.W([_.q({reflectToAttribute:!0}),_.O("playerData","enableCanvasLayout"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],U8.prototype,"showWatchResponse",null);_.W([_.q({selector:_.C_}),_.X("design:type",Object)],U8.prototype,"theaterValue",void 0);_.W([_.q({selector:_.MC}),_.X("design:type",Object)],U8.prototype,"fullscreenValue",void 0);_.W([_.q({selector:_.RQ}),_.X("design:type",Object)],U8.prototype,"scrollTopValue",void 0);
_.W([_.q({selector:_.MS}),_.X("design:type",Object)],U8.prototype,"miniplayerIsActiveValue",void 0);_.W([_.Z7("#ytd-plj-player"),_.X("design:type",HTMLElement)],U8.prototype,"ytdPlayer",void 0);_.W([_.Z7("#playlist"),_.X("design:type",HTMLElement)],U8.prototype,"JSC$23600_ytdPlaylistPanelRenderer",void 0);_.W([_.Ke("ytd-comments"),_.X("design:type",HTMLElement)],U8.prototype,"ytdComments",void 0);_.W([_.Z7("#primary"),_.X("design:type",HTMLElement)],U8.prototype,"primary",void 0);
_.W([_.Z7("#secondary"),_.X("design:type",HTMLElement)],U8.prototype,"secondary",void 0);_.W([_.Z7("#player-container"),_.X("design:type",HTMLElement)],U8.prototype,"playerContainer",void 0);_.W([_.Z7("#cinematics"),_.X("design:type",HTMLElement)],U8.prototype,"JSC$23600_cinematics",void 0);_.W([_.ph("theaterValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],U8.prototype,"updateTheaterValue",null);
_.W([_.ph("fullscreenValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],U8.prototype,"updateFullscreenValue",null);_.W([_.ph("scrollTopValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],U8.prototype,"updateScrollTopValue",null);_.W([_.ph("miniplayerIsActiveValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],U8.prototype,"updateMiniplayerIsActiveValue",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],U8.prototype,"cinematicLightTheme",null);_.W([_.q({reflectToAttribute:!0}),_.O("learningJourneyEngagementPanels"),_.X("design:type",Object),_.X("design:paramtypes",[])],U8.prototype,"hasLearningJourneyPanels",null);_.W([_.O("learningJourneyEngagementPanels"),_.X("design:type",Object),_.X("design:paramtypes",[])],U8.prototype,"backButtonData",null);_.W([_.J({is:"ytd-watch-learning-journey"})],U8);_.Vm.registerService(_.kNo,U8);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("Tm0L3c");
var PKP;var d2I;var h2J=function(){return _.z.apply(this,arguments)||this};
_.f(h2J,_.z);_.W([_.J({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],h2J);
_.B(h2J,"ytd-ghost-comments-renderer",function(){if(d2I===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);d2I=v}v=d2I;return v},{mode:1});var wHE;var Ann=function(){return _.z.apply(this,arguments)||this};
_.f(Ann,_.z);_.W([_.J({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Ann);
_.B(Ann,"ytd-ghost-watch-metadata-renderer",function(){if(wHE===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);wHE=v}v=wHE;return v},{mode:1});var mm=function(){var v=_.z.apply(this,arguments)||this;v.ghostGridRenderer={rows:6};v.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");v.darkerPanels=_.Y("web_watch_darker_panels");v.isDarkTheme=document.documentElement.hasAttribute("dark");return v};
_.f(mm,_.z);_.K=mm.prototype;_.K.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.K.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.K.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.K.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.K.ready=function(){var v=this,Q=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",Q);this.secondary.addEventListener("scroll",Q)};
_.K.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.K.updateIsTwoColumnsFromBinding=function(v){this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.K.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.K.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.K.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.K.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.K.updateShownItemsFromBinding=function(v){_.Y("swatcheroo_direct_use_rich_grid")||(v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value)};
_.K.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23588_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23588_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hr.Object.defineProperties(mm.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var Q=0;Q<this.data.pageVisualEffects.length;Q++)if(v=_.y(this.data.pageVisualEffects[Q],_.vG))return Q=void 0,(Q=v.config)==null?void 0:Q.enableInLightTheme;return!1}}});
mm.prototype.updateMiniplayerIsActiveValue=mm.prototype.updateMiniplayerIsActiveValue;mm.prototype.updateScrollTopValue=mm.prototype.updateScrollTopValue;mm.prototype.updateFullscreenValue=mm.prototype.updateFullscreenValue;mm.prototype.updateTheaterValue=mm.prototype.updateTheaterValue;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],mm.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.e2V.YtdWatchBehavior),_.X("design:type",Object)],mm.prototype,"ytdWatchBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],mm.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mm.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],mm.prototype,"ghostGridRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],mm.prototype,"playerData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],mm.prototype,"smallerChatMinHeight",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],mm.prototype,"darkerPanels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],mm.prototype,"isDarkTheme",void 0);_.W([_.q({selector:_.C_}),_.X("design:type",Object)],mm.prototype,"theaterValue",void 0);_.W([_.q({selector:_.MC}),_.X("design:type",Object)],mm.prototype,"fullscreenValue",void 0);_.W([_.q({selector:_.RQ}),_.X("design:type",Object)],mm.prototype,"scrollTopValue",void 0);
_.W([_.q({selector:_.MS}),_.X("design:type",Object)],mm.prototype,"miniplayerIsActiveValue",void 0);_.W([_.Z7("#ytd-player"),_.X("design:type",HTMLElement)],mm.prototype,"ytdPlayer",void 0);_.W([_.Z7("#playlist"),_.X("design:type",HTMLElement)],mm.prototype,"JSC$23588_ytdPlaylistPanelRenderer",void 0);_.W([_.Z7("#ytd-comments"),_.X("design:type",HTMLElement)],mm.prototype,"ytdComments",void 0);_.W([_.Z7("#primary"),_.X("design:type",HTMLElement)],mm.prototype,"primary",void 0);
_.W([_.Z7("#secondary"),_.X("design:type",HTMLElement)],mm.prototype,"secondary",void 0);_.W([_.Z7("#player-container"),_.X("design:type",HTMLElement)],mm.prototype,"playerContainer",void 0);_.W([_.Z7("#cinematics"),_.X("design:type",HTMLElement)],mm.prototype,"JSC$23588_cinematics",void 0);_.W([_.ph("theaterValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mm.prototype,"updateTheaterValue",null);
_.W([_.ph("fullscreenValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mm.prototype,"updateFullscreenValue",null);_.W([_.ph("scrollTopValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mm.prototype,"updateScrollTopValue",null);_.W([_.ph("miniplayerIsActiveValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mm.prototype,"updateMiniplayerIsActiveValue",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],mm.prototype,"cinematicLightTheme",null);
_.B(mm,"ytd-watch-grid",function(){if(PKP===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);PKP=v}v=PKP;return v},{mode:2});_.Vm.registerService(_.AiG,mm);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("CF909");
var ZFf;var Hz=function(){var v=_.z.apply(this,arguments)||this;v.viewTransitionEnabled=_.Y("enable_player_resize_transition");v.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");v.isDarkTheme=document.documentElement.hasAttribute("dark");v.defaultCollapsePlaylist=_.Y("web_watch_default_collapse_playlist");v.respectAspectRatio=_.Y("web_enable_aspect_ratio_fix");v.retroModeReduxValue=!1;v.persistentPanelVisibleValue=!1;return v};
_.f(Hz,_.z);_.K=Hz.prototype;_.K.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.K.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.K.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.K.updateRetroModeReduxValue=function(){_.Y("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.K.updatePersistentPanelVisibleValue=function(){_.Y("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.K.ready=function(){var v=this,Q=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",Q);this.secondary.addEventListener("scroll",Q)};
_.K.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.K.updateIsTwoColumnsFromBinding=function(v){_.Y("web_watch_update_narrow_width_killswitch")||_.oF().dispatch(_.XUJ(!v.detail.value));this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.K.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.K.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.K.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.K.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.K.updateShownItemsFromBinding=function(v){v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value};
_.K.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23583_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23583_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.hr.Object.defineProperties(Hz.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var Q=0;Q<this.data.pageVisualEffects.length;Q++)if(v=_.y(this.data.pageVisualEffects[Q],_.vG))return Q=void 0,(Q=v.config)==null?void 0:Q.enableInLightTheme;return!1}}});
_.hr.Object.defineProperties(Hz,{template:{configurable:!0,enumerable:!0,get:function(){if(ZFf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);ZFf=v}v=ZFf;return v}}});
Hz.prototype.updatePersistentPanelVisibleValue=Hz.prototype.updatePersistentPanelVisibleValue;Hz.prototype.updateRetroModeReduxValue=Hz.prototype.updateRetroModeReduxValue;Hz.prototype.updateScrollTopValue=Hz.prototype.updateScrollTopValue;Hz.prototype.updateFullscreenValue=Hz.prototype.updateFullscreenValue;Hz.prototype.updateTheaterValue=Hz.prototype.updateTheaterValue;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Hz.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.e2V.YtdWatchBehavior),_.X("design:type",Object)],Hz.prototype,"ytdWatchBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Hz.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Hz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Hz.prototype,"playerData",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Hz.prototype,"viewTransitionEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Hz.prototype,"smallerChatMinHeight",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Hz.prototype,"isDarkTheme",void 0);_.W([_.q(),_.X("design:type",Object)],Hz.prototype,"defaultCollapsePlaylist",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Hz.prototype,"respectAspectRatio",void 0);
_.W([_.q({selector:_.C_}),_.X("design:type",Object)],Hz.prototype,"theaterValue",void 0);_.W([_.q({selector:_.MC}),_.X("design:type",Object)],Hz.prototype,"fullscreenValue",void 0);_.W([_.q({selector:_.RQ}),_.X("design:type",Object)],Hz.prototype,"scrollTopValue",void 0);_.W([_.q({selector:_.MS}),_.X("design:type",Object)],Hz.prototype,"miniplayerIsActive",void 0);_.W([_.q({selector:function(v){return v.watch.isWatchRetroMode}}),
_.X("design:type",Object)],Hz.prototype,"retroModeReduxValue",void 0);_.W([_.q({selector:_.zw.persistentPanelVisibleSelector}),_.X("design:type",Object)],Hz.prototype,"persistentPanelVisibleValue",void 0);_.W([_.Ke("ytd-player"),_.X("design:type",HTMLElement)],Hz.prototype,"ytdPlayer",void 0);_.W([_.Z7("#playlist"),_.X("design:type",HTMLElement)],Hz.prototype,"JSC$23583_ytdPlaylistPanelRenderer",void 0);_.W([_.Ke("ytd-comments"),_.X("design:type",HTMLElement)],Hz.prototype,"ytdComments",void 0);
_.W([_.Z7("#primary"),_.X("design:type",HTMLElement)],Hz.prototype,"primary",void 0);_.W([_.Z7("#secondary"),_.X("design:type",HTMLElement)],Hz.prototype,"secondary",void 0);_.W([_.Z7("#player-container"),_.X("design:type",HTMLElement)],Hz.prototype,"playerContainer",void 0);_.W([_.Z7("#below"),_.X("design:type",HTMLElement)],Hz.prototype,"below",void 0);_.W([_.Z7("#cinematics"),_.X("design:type",HTMLElement)],Hz.prototype,"JSC$23583_cinematics",void 0);
_.W([_.Z7("#persistent-panel-container"),_.X("design:type",HTMLElement)],Hz.prototype,"persistentPanelContainer",void 0);_.W([_.ph("theaterValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hz.prototype,"updateTheaterValue",null);_.W([_.ph("fullscreenValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hz.prototype,"updateFullscreenValue",null);
_.W([_.ph("scrollTopValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hz.prototype,"updateScrollTopValue",null);_.W([_.ph("retroModeReduxValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hz.prototype,"updateRetroModeReduxValue",null);_.W([_.ph("persistentPanelVisibleValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Hz.prototype,"updatePersistentPanelVisibleValue",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Hz.prototype,"cinematicLightTheme",null);_.W([_.J({is:"ytd-watch-flexy"})],Hz);_.Vm.registerService(_.wzG,Hz);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("nmfa2d");
var GOd;var uZ=function(){var v=_.z.apply(this,arguments)||this;v.hidden=!1;v.errorScreen=null;v.playlistData={};return v};
_.f(uZ,_.z);_.K=uZ.prototype;_.K.getPlayer=function(){return this.ytdPlayer};
_.K.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:_.Jm(["aa","eocs"])}}};
_.K.onActiveChanged=function(){_.oF().dispatch(_.QF9(this.ytPageBehavior.active))};
_.K.playerDataChanged=function(){var v;(v=this.watchController)==null||v.setPlayerResponse(this.playerData)};
_.K.dataChanged=function(){var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data)};
_.K.sizeChanged=function(){var v,Q;(Q=(v=this.metadata).resize)==null||Q.call(v)};
_.K.attached=function(){this.watchController=new _.gp(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.K.detached=function(){_.t5(this.watchController);this.watchController=void 0};
_.K.getPlayerContainer=function(){return this.playerContainer};
_.K.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.K.provideRenderingData=function(v,Q){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=Q;break;case "ERROR_SCREEN":this.errorScreen=Q!=null?Q:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=Q;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=Q;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=Q;break;case "RICH_METADATA":this.richMetadataRowContainer=Q;break;case "CLARIFICATION":this.clarificationData=Q;break;case "PLAYLIST":this.playlistData=
Q!=null?Q:{};break;case "MERCH_SHELF":this.merchShelf=Q;break;case "TICKET_SHELF":this.ticketShelf=Q;break;case "LIMITED_STATE":this.limitedState=Q;break;case "DONATION_SHELF":this.donationShelf=Q;break;case "ALERTS":this.alerts=Q}};
_.hr.Object.defineProperties(uZ.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return!this.hidden&&!!((v=this.data)==null?0:(Q=v.contents)==null?0:(V=Q.twoColumnWatchNextResults)==null?0:V.conversationBar)}}});
uZ.prototype.sizeChanged=uZ.prototype.sizeChanged;uZ.prototype.dataChanged=uZ.prototype.dataChanged;uZ.prototype.playerDataChanged=uZ.prototype.playerDataChanged;uZ.prototype.onActiveChanged=uZ.prototype.onActiveChanged;_.W([_.M(_.EF.YtPageBehavior),_.X("design:type",Object)],uZ.prototype,"ytPageBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],uZ.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],uZ.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"playerData",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],uZ.prototype,"hidden",void 0);_.W([_.Z7("#ytd-player"),_.X("design:type",HTMLElement)],uZ.prototype,"ytdPlayer",void 0);_.W([_.Z7("#player-container"),_.X("design:type",HTMLElement)],uZ.prototype,"playerContainer",void 0);_.W([_.Z7("#metadata"),_.X("design:type",Object)],uZ.prototype,"metadata",void 0);_.W([_.Z7("#playlist"),_.X("design:type",HTMLElement)],uZ.prototype,"playlistPanel",void 0);
_.W([_.q({selector:_.ube,reflectToAttribute:!0}),_.X("design:type",Object)],uZ.prototype,"fixie",void 0);_.W([_.q({selector:_.srP,reflectToAttribute:!0}),_.X("design:type",Object)],uZ.prototype,"singleColumn",void 0);_.W([_.q({selector:function(v){return _.C_(v)&&!_.MC(v)},
reflectToAttribute:!0}),_.X("design:type",Object)],uZ.prototype,"theater",void 0);_.W([_.q({selector:_.MC,reflectToAttribute:!0}),_.X("design:type",Object)],uZ.prototype,"fullscreen",void 0);_.W([_.q({selector:_.mpn}),_.X("design:type",Object)],uZ.prototype,"windowSize",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"singleColumnContents",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"errorScreen",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"playlistData",void 0);
_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"videoSecondaryInfoRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"richMetadataRowContainer",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"clarificationData",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"ticketShelf",void 0);
_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"merchShelf",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"donationShelf",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"limitedState",void 0);_.W([_.q(),_.X("design:type",Object)],uZ.prototype,"alerts",void 0);_.W([_.O("playlistData"),_.X("design:type",Object),_.X("design:paramtypes",[])],uZ.prototype,"hasPlaylistData",null);
_.W([_.O("data","hidden"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],uZ.prototype,"hasChat",null);_.W([_.ph("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uZ.prototype,"onActiveChanged",null);_.W([_.ph("playerData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uZ.prototype,"playerDataChanged",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uZ.prototype,"dataChanged",null);_.W([_.ph("windowSize","singleColumn"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uZ.prototype,"sizeChanged",null);
_.B(uZ,"ytd-watch-fixie",function(){if(GOd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);GOd=v}v=GOd;return v},{mode:1});_.Vm.registerService(_.hsB,uZ);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("xwEKAe");
var NZe=function(v){v=v.command;var Q=_.y(v,_.PH);return{command:v,reelPlayerOverlayRenderer:_.y(Q==null?void 0:Q.overlay,_.vX8),thumbnail:Q==null?void 0:Q.thumbnail,videoId:Q.videoId}},xzl=function(v){v=v.command;
var Q=_.y(v,_.EO);return{command:v,reelNonVideoContentRenderer:_.y(Q==null?void 0:Q.renderer,_.FC)}},BZI=function(v){return v.entries?v.entries.map(function(Q){return _.y(Q==null?void 0:Q.command,_.PH)?NZe(Q):xzl(Q)}):[]},gJ5=function(v){return v.prevEntries?v.prevEntries.map(function(Q){return _.y(Q==null?void 0:Q.command,_.PH)?NZe(Q):xzl(Q)}):[]},sDe=function(v){return _.t8(v)?v.getAttribute("jsname")==="coFSxe":!1},u9c=function(v,Q){Q.id||(Q.id="ow"+_.$Q(Q));
v.setAttribute("jsowner",Q.id);v.__owner=Q;var V=_.XH(Q,sDe);V&&(_.sxV.has(V)||_.sxV.set(V,[]),_.sxV.get(V).push(v));(V=_.gIa.get(Q))||_.gIa.set(Q,V=[]);V.includes(v)||V.push(v);Q.setAttribute("__IS_OWNER",!0)},jDP=function(){var v=_.Yf3(1);
v=_.ta(v,_.Mj9);if(!(_.TOB(v)||v[_.TiQ]&&!v.__hasBeenSet))return v.value},We5=function(v){return(v=_.VeB(v))?_.bk3(v):0},oJc=function(v){return v.shorts.isSmallScreenSqueezeback},XMe=function(v){return v.shorts.isPlaybackStarted},agP=function(v){var Q=_.eP();
if(Q.getFlag(202))Q=Q.getFlag(201);else{var V;Q=(v==null?void 0:(V=v.config)==null?void 0:V.settingOnByDefault)!==void 0?v.config.settingOnByDefault:!_.Y("web_shorts_cinematics_disabled_by_default")}return Q},r5V=function(v){var Q=_.eP();
_.ZG(0,201,v);_.ZG(0,202,!0);Q.save()},Hgq=function(v){var Q=_.Yf3(2),V=new Set;
_.j_(function(){return void V.forEach(function(E){return void E()})});
return function(E){var b=_.La(Q);try{var F=$zP(Ig5(v),E);V.add(F);return function(){F();V.delete(F)}}finally{_.La(b)}}},mzd=function(v){var Q=v.children;
var V=v.root;_.uk(function(){var E=Hgq(V)(Q);_.j_(E)});
return document.createTextNode("")},$zP=function(v,Q){var V=UzV(v);
(v=jDP())&&u9c(V,v);_.Gg.setUp();Q=_.L(_.j7o(Q,!0));v=Q.next().value;var E=Q.next().value;Q=_.L(v);for(v=Q.next();!v.done;v=Q.next())V.appendChild(v.value);_.Gg.log(V);_.Gg.tearDown();return function(){E();V.remove()}},Ig5=function(v){if(typeof v==="string")return v=document.querySelector(v),_.f7h(v),v;
if(_.kb(v)&&v.nodeType===Node.ELEMENT_NODE)return v;if(!v.__value&&!v.__optional){var Q=_.yYt.USE_ELEMENT_NOT_ASSIGNED(v.__expectedTagName);v.__hasErrored=!0;throw Q;}return v.value},UzV=function(v){var Q=document.createElementNS(v.namespaceURI,v.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return v.appendChild(Q)},vU5=function(v,Q,V,E){v=Q-v;
V=E-V;return Math.sqrt(v*v+V*V)},QrI=function(v){var Q=v>>8&255,V=v&255;
return"#"+(v>>16&255).toString(16).padStart(2,"0")+Q.toString(16).padStart(2,"0")+V.toString(16).padStart(2,"0")},V_P=function(v,Q){v&&_.ht().resolve(_.At).resolveCommand(v,{forceClickLogging:!0,
form:{element:Q}})},EUJ=function(){return _.ht().resolve(_.Na).dismissedIndices},baJ=function(v,Q){var V,E,b,F,t,p,Z,d,w;
return _.e(function(A){if(A.nextAddress==1){V=_.ht().resolve(_.Se);F=(E=V)==null?void 0:(b=E.reelWatchEndpointMap)==null?void 0:b.reelWatchSequence;p=(t=v.innertubeTransportService)!=null?t:_.ht().resolve(_.wH);if(!F)return A.jumpTo(2);Z=F();return(d=Z.JSC$14245_getRequest(Q,{}))?A.yield(_.tQ(p,d.innerTubeRequest,d.input,Q.clickTrackingParams,d.config),4):A.jumpTo(2)}return A.nextAddress!=2?(w=A.yieldResult,A.return(w)):A.return(void 0)})},F$V=function(v,Q,V){var E,b=(E=_.y(Q,_.PH))==null?void 0:
E.videoId;
E=!(!b||!v.find(function(t){return t.videoId&&t.videoId===b}));
var F=!!v.find(function(t){var p;return((p=_.y(t.command,_.PH))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
v=!!v.find(function(t){return!!_.y(t.command,_.EO)&&!!_.y(Q,_.EO)&&t.command===Q});
return V?E||v:E||F||v},K$n=function(v,Q,V){var E=[].concat(_.ui(v)),b=0,F=V?BZI(V):[];
V=V?gJ5(V):[];Q&&!F$V(v,Q.command)&&E.unshift(Q);F.length&&!F$V(v,F[0].command,!0)&&E.push.apply(E,_.ui(F));Q&&V.length&&!F$V(v,V[0].command)&&(E.unshift.apply(E,_.ui(V.reverse())),b=V.length);return{newContentList:E,indexChange:b}},ial=function(v){return _.U2({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:v}})},L$P=function(v){return _.U2({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:v}})},t_I=function(v){return _.U2({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:v}})};var YE=function(v,Q){if(v instanceof YE)this.array_=v.array_;else{var V;if(V=_.W9(v))a:{for(var E=V=0;E<v.length;E++){if(!_.W9(v[E])||V>0&&v[E].length!=V){V=!1;break a}for(var b=0;b<v[E].length;b++)if(typeof v[E][b]!=="number"){V=!1;break a}V==0&&(V=v[E].length)}V=V!=0}if(V)this.array_=_.jZ(v);else if(v instanceof _.DT)this.array_=pRf(v.height,v.width);else if(typeof v==="number"&&typeof Q==="number"&&v>0&&Q>0)this.array_=pRf(v,Q);else throw Error("So");}this.size_=new _.DT(this.array_[0].length,
this.array_.length)},epq=function(v,Q,V){for(var E=0;E<v.getSize().height;E++)for(var b=0;b<v.getSize().width;b++)Q.call(V,v.array_[E][b],E,b,v)},Zal=function(v,Q){var V=new YE(v.getSize());
epq(v,function(E,b,F){V.array_[b][F]=Q.call(void 0,E,b,F,v)});
return V},pRf=function(v,Q){for(var V=[],E=0;E<v;E++){V[E]=[];
for(var b=0;b<Q;b++)V[E][b]=0}return V};
YE.prototype.add=function(v){if(!_.Zgb(this.size_,v.getSize()))throw Error("To");return Zal(this,function(Q,V,E){return Q+v.array_[V][E]})};
YE.prototype.equals=function(v,Q){if(this.size_.width!=v.size_.width||this.size_.height!=v.size_.height)return!1;Q=Q||0;for(var V=0;V<this.size_.height;V++)for(var E=0;E<this.size_.width;E++)if(!_.eIf(this.array_[V][E],v.array_[V][E],Q))return!1;return!0};
YE.prototype.getSize=function(){return this.size_};
var yR=function(v,Q,V){return Q>=0&&Q<v.size_.height&&V>=0&&V<v.size_.width?v.array_[Q][V]:null};
YE.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var PHn=function(v,Q,V,E){if(!(Q>=0&&Q<v.size_.height&&V>=0&&V<v.size_.width))throw Error("Uo`"+Q+"`"+V+"`"+v.size_.height+"`"+v.size_.width);v.array_[Q][V]=E};
YE.prototype.multiply=function(v){if(v instanceof YE){if(this.size_.width!=v.getSize().height)throw Error("Vo");return dAI(this,v)}if(typeof v==="number")return hpJ(this,v);throw Error("Wo");};
var dAI=function(v,Q){var V=new YE(v.size_.height,Q.getSize().width);epq(V,function(E,b,F){for(var t=E=0;t<this.size_.width;t++)E+=yR(this,b,t)*yR(Q,t,F);PHn(V,b,F,E)},v);
return V},hpJ=function(v,Q){return Zal(v,function(V){return V*Q})};var wRb=new _.FG("inlineSurveyRenderer");var AaP=new _.FG("interstitialViewModel");var keV=new _.FG("reelNavigateCommand");var Tbj=new _.FG("reelNonVideoContentDismissalCommand");var YXb=new _.FG("showReelsCommentsOverlayCommand");var yan=new _.FG("videoInteractionPopUpRenderer");var caf=new _.FG("pollChoiceData");var fQI;var GeP;var CHI;var cQ=function(){var v=_.z.apply(this,arguments)||this;v.ctaVisualElement=null;v.currentCsn=null;return v};
_.f(cQ,_.z);_.K=cQ.prototype;_.K.onDataChanged=function(){this.maybeLogShows()};
_.K.computeButtonShape=function(){var v=this;if(this.data)return{buttonText:_.j0(this.data.text),state:"active",onTap:function(){v.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.K.maybeCreateCtaVe=function(){var v;if((v=this.data)!=null&&v.badgeInteractionLogging){var Q;if(v=(Q=this.data.badgeInteractionLogging)==null?void 0:Q.trackingParams)this.ctaVisualElement=_.dE(v)}};
_.K.maybeLogClicks=function(){this.currentCsn=_.Mo(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.uI(this.currentCsn,this.ctaVisualElement)};
_.K.maybeLogShows=function(){this.currentCsn=_.Mo(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.gD(this.currentCsn,[this.ctaVisualElement])};
_.K.onTap=function(){var v;if((v=this.data)!=null&&v.onClickCommand){var Q;this.ytComponentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.onClickCommand);this.maybeLogClicks()}};
cQ.prototype.onDataChanged=cQ.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],cQ.prototype,"ytComponentBehavior",void 0);_.W([_.q({}),_.X("design:type",Object)],cQ.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cQ.prototype,"onDataChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],cQ);
_.B(cQ,"ytd-shopping-overlay-badge-renderer",function(){if(CHI!==void 0)return CHI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return CHI=v},{mode:1});_.ad(_.iUj,"reel-sound-metadata-view-model",{props:{data:_.Wg,overlayDensity:_.Wg}});_.ad(_.vP5,"player-disclosure-view-model",{props:{data:_.pJ,extractOverlay:_.pJ}});_.ad(_.Hsa,"pivot-button-view-model",{props:{data:_.Wg,className:_.Wg}});_.ad(_.mr8,"reel-action-bar-view-model",{props:{data:_.pJ,buttonShapeOverrideables:_.pJ}});_.ad(_.ipY,"yt-reel-metapanel-view-model",{props:{data:_.pJ,overlayDensity:_.pJ,extractOverlay:_.pJ}});var M_9=_.x(function(v){var Q=v.children;var V=v.region;v=_.L(_.Ge(void 0,void 0,"flxBBc"));var E=v.next().value,b=v.next().value;v=_.L(_.Ge("0px",void 0,"IAR7k"));var F=v.next().value,t=v.next().value;v=_.L(_.Ge("0px",void 0,"QV4iWb"));var p=v.next().value,Z=v.next().value;v=_.L(_.Ge(0,void 0,"Q2oK6b"));var d=v.next().value,w=v.next().value;v=_.L(_.Ge(0,void 0,"hYKowe"));var A=v.next().value,k=v.next().value,T=function(){var a=E();if(a){var g;if(((g=_.FS())==null?void 0:g.getPlayerState())!==-1){a.style.display=
"inherit";var u;(u=_.FS())==null||u.removeEventListener("onStateChange",T)}else a.style.display="none";C()}},c=function(){var a;
return(a=_.aJ())==null?void 0:a.querySelector("video")},C=function(){var a=c();
if(a){w(a.getBoundingClientRect().width);k(a.getBoundingClientRect().height);var g;t((a==null?void 0:(g=a.style)==null?void 0:g.left)||"0px");var u;Z((a==null?void 0:(u=a.style)==null?void 0:u.top)||"0px")}};
_.uH(function(){var a=E();if(a){var g,u,r;if(((g=_.FS())==null?void 0:g.getPlayerState())===-1&&Math.round(((r=(u=_.FS())==null?void 0:u.getVideoAspectRatio())!=null?r:0)*100)!==Math.round(d()/A()*100)){a.style.display="none";var v9,t3;k(d()/((t3=(v9=_.FS())==null?void 0:v9.getVideoAspectRatio())!=null?t3:1))}}},"N29KDe");
var R=function(){C()},l;
_.uk(function(){C();var a;if(!(V==null?0:(a=V())==null?0:a.transformationMatrix))throw Error("$o");var g;(g=_.FS())==null||g.addEventListener("onStateChange",T);if(window.ResizeObserver){if(a=c())l=new ResizeObserver(R),l.observe(a)}else window.addEventListener("resize",C);_.j_(function(){var u;(u=_.FS())==null||u.removeEventListener("onStateChange",T);l?l.disconnect():window.removeEventListener("resize",C)})});
var S=function(){var a,g,u=(g=V==null?void 0:(a=V())==null?void 0:a.transformationMatrix)!=null?g:[];a=d();g=A();for(var r=[],v9=0,t3=-1;v9<u.length;v9++)v9%3===0&&(t3++,r[t3]=[]),r[t3].push(u[v9]);u=new YE(r);r=new YE([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);r=u.multiply(r);u=new YE([[0,0],[0,0],[0,0],[0,0]]);for(v9=0;v9<r.getSize().width;v9++){t3=yR(r,0,v9);var h3=yR(r,1,v9);if(t3===null||h3===null)throw Error("Zo`"+(v9+1).toString());PHn(u,v9,0,t3*a);PHn(u,v9,1,h3*g)}a=yR(u,0,0);v9=yR(u,1,0);g=yR(u,0,
1);t3=yR(u,1,1);if(a===null||v9===null||g===null||t3===null)throw Error("Xo");r=vU5(a,v9,g,t3);h3=yR(u,3,0);u=yR(u,3,1);if(h3===null||u===null)throw Error("Yo");u=vU5(a,h3,g,u);t3=(Number((t3*-1).toFixed(2))-Number((g*-1).toFixed(2)))/(Number(v9.toFixed(2))-Number(a.toFixed(2)));h3=Math.atan(t3)*180/Math.PI;v9=t3===Number.POSITIVE_INFINITY?-90:t3===Number.NEGATIVE_INFINITY?90:Object.is(t3,-0)?180:t3===0?0:t3>0?h3*-1:a<v9?h3*-1:Math.abs(h3)+180;return"left:calc("+a+"px + "+F()+"); top:calc("+(g+"px + "+
p()+"); width:")+(r+"px; height:")+(u+"px; transform:rotate(")+(v9+"deg);\n        --sticker-width:"+r+";")};
return _.P(mzd,{root:"#sticker-layer"},function(){return _.P("yt-overlay-sticker",{el:_.ud(b),style:S,class:"ytOverlayStickerHost"},Q)})},"un");var Oaf=_.x(function(v){function Q(){var T,c,C,R,l=(c=_.y((T=Z())==null?void 0:T.command,_.OBQ))==null?void 0:(C=c.item)==null?void 0:(R=C.notificationTextRenderer)==null?void 0:R.successResponseText;if(l)T=_.aF(l),_.mb(E.value,"yt-open-popup-action",[T,E.value]);else if(d())V_P(d(),E.value);else{var S;V_P((S=Z())==null?void 0:S.command,E.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var V=v.data;var E=_.Ze("svg"),b=_.L(_.Ge(!1,void 0,"e9onLe"));v=b.next().value;var F=b.next().value,t=_.L(_.Ge(!1,void 0,"ptnIQd"));b=t.next().value;var p=t.next().value,Z=function(){var T;return _.y((T=V())==null?void 0:T.popUp,yan)},d=function(){var T;
return(T=V())==null?void 0:T.command},w=function(){return _.y(d(),_.h2)!==void 0};
t=_.EP(function(){Q();return!1});
var A={},k={};return _.P("svg",{"on:mouseover":_.EP(function(){w()&&F(!0);p(!0);return!1}),
"on:mouseout":_.EP(function(){F(!1);p(!1);return!1}),
"on:keydown":_.EP(function(T){T.key==="Enter"&&Q();return!1}),
"on:focus":_.EP(function(){w()&&F(!0);return!1}),
"on:blur":_.EP(function(){w()&&F(!1);return!1}),
el:E,tabindex:0,"aria-label":function(){var T;return(T=V())==null?void 0:T.a11yString},
id:"player-overlay-video-interaction-svg",class:_.QZ("ytPlayerOverlayInteractionInteractionsSvg",(A.ytPlayerOverlayInteractionInteractionsSvgHover=v,A),(k.ytPlayerOverlayInteractionInteractionsSvgHideOutline=b,k)),role:"button","on:click":t})},"xn");_.ad(_.x(function(v){var Q=v.data;_.uk(function(){var V;if((V=Q())==null?0:V.trackingParams){var E;_.tR().graftServerVe((E=Q().trackingParams)!=null?E:"")}});
return _.P("yt-player-overlay-interaction",null,_.P(M_9,{region:function(){var V,E;return(V=Q())==null?void 0:(E=V.regions)==null?void 0:E[0]}},_.P(Oaf,Object.assign({},v))))},"wn"),"yt-player-overlay-interaction",{props:{data:_.pJ}});var DA5=_.x(function(v){var Q=v.data;var V=v.index;var E=v.selectedChoice;var b=function(){var F;return _.y((F=Q())==null?void 0:F.renderer,caf)};
v={};return _.P("yt-overlay-poll-sticker-choice",{class:_.QZ("ytOverlayPollStickerChoiceHost"),style:_.iP({"--displayed-percentage":function(){var F,t,p,Z;return""+Math.ceil(Number((E==null?void 0:E())===V()?(F=b())==null?void 0:(t=F.selected)==null?void 0:t.progressBarWidth:(p=b())==null?void 0:(Z=p.unselected)==null?void 0:Z.progressBarWidth)*100)}})},_.P("div",{class:_.QZ("ytOverlayPollStickerChoicePollChoice",(v.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(E==null?void 0:E())!==
void 0},v.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(E==null?void 0:E())===V()},v))},_.P("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var F;
return((F=b())==null?void 0:F.text)||""}),_.P("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(E==null?void 0:E())==="undefined")var F="";
else{var t,p,Z,d;F=(E==null?void 0:E())===V()?(t=b())==null?void 0:(p=t.selected)==null?void 0:p.votePercentage:(Z=b())==null?void 0:(d=Z.unselected)==null?void 0:d.votePercentage}return F})))},"yn");var Rpc=_.x(function(v){var Q=v.data;var V=_.Z1(function(b){var F,t=((F=Q())==null?void 0:F.postPollStateEntityKey)||"";b=_.Fg(b.entities,"postPollStateEntity",t);var p;return((p=Q())==null?0:p.viewerIsOwner)?Object.assign({},b,{selectedOptionId:-1,voted:!0}):b}),E=_.ht().resolve(_.At);
return _.P("yt-overlay-poll-sticker",null,_.P(M_9,{region:function(){var b,F;return(b=Q())==null?void 0:(F=b.region)==null?void 0:F.interactionRegion}},_.P("div",{class:_.QZ("ytOverlayPollStickerHost"),
style:_.iP({"--original-height":function(){var b;return""+(((b=Q())==null?void 0:b.mainBodyHeight)||1)},
"--original-width":function(){var b;return""+(((b=Q())==null?void 0:b.mainBodyWidth)||1)},
"--scaled-width":function(){var b;return""+(((b=Q())==null?void 0:b.mainBodyWidth)||1)},
"--primary-surface":function(){var b,F;return QrI(((b=Q())==null?void 0:(F=b.theme)==null?void 0:F.primarySurface)||0)},
"--raised-surface":function(){var b,F;return QrI(((b=Q())==null?void 0:(F=b.theme)==null?void 0:F.raisedSurface)||0)},
"--secondary-surface":function(){var b,F;return QrI(((b=Q())==null?void 0:(F=b.theme)==null?void 0:F.secondarySurface)||0)},
"--primary-text":function(){var b,F;return QrI(((b=Q())==null?void 0:(F=b.theme)==null?void 0:F.primaryText)||0)},
"--secondary-text":function(){var b,F;return QrI(((b=Q())==null?void 0:(F=b.theme)==null?void 0:F.secondaryText)||0)}})},_.P("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return Q().questionText}," "),_.P(_.xb,{each:function(){return Q().pollChoiceConfigs||[]}},function(b,F){return _.P("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.EP(function(){var t=F(),p;if((p=Q())==null||!p.viewerIsOwner){var Z,d;p=(Z=Q())==null?void 0:(d=Z.pollChoiceConfigs)==null?void 0:d[t];if(d=(p==null?0:p.renderer)?_.y(p.renderer,caf):void 0){var w;Z=((w=V())==null?void 0:w.selectedOptionId)!==t;var A;if(w=(A=Z?d.selectedPollCommand:d.deselectedPollCommand)==null?void 0:A.innertubeCommand){E.resolveCommand(w);var k,T;_.uf().dispatch(_.dW("postPollStateEntity",((k=V())==null?void 0:k.key)||"",{key:((T=V())==null?void 0:T.key)||"",selectedOptionId:Z?
t:-1,voted:Z}))}}}})},_.P(DA5,{data:b,
index:F,selectedChoice:function(){var t,p;return((t=V())==null?0:t.voted)?(p=V())==null?void 0:p.selectedOptionId:void 0}}))}),_.P("div",{class:"ytOverlayPollStickerVoteCount"},function(){var b,F;
return((b=V())==null?0:b.voted)&&((F=V())==null?void 0:F.selectedOptionId)!==-1?Q().postVoteCountText:Q().preVoteCountText}))))},"zn");_.ad(_.x(function(v){var Q=v.data;return _.P("yt-stickers-layer",null,_.P(_.xb,{each:function(){var V;return((V=Q())==null?void 0:V.stickers)||[]}},function(V){return _.P(_.h,{cond:function(){return _.Y("enable_shorts_poll_stickers_web")},
then:function(){return _.P(_.h,{cond:function(){return V==null?void 0:V.pollSticker},
then:function(E){return _.P(Rpc,{data:E})}})}})}))},"An"),"yt-stickers-layer",{props:{data:_.pJ}});var fG=function(){var v=_.z.apply(this,arguments)||this;v.showScrubber=!1;v.isWatchWhileMode=!1;v.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");v.enablePollStickers=_.Y("enable_shorts_poll_stickers_web");v.enableShortsModernControls=_.Y("web_shorts_modern_controls");v.anchoredPanelActive=!1;v.enableLivingroomLayout=_.Y("reels_enable_livingroom_layout");v.enablePlayerMetadataContainer=_.Y("reels_web_enable_metadata_container");v.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");
v.useAspectRatio=_.Y("web_use_aspect_ratio");v.isSqueezebackActive=!1;v.smallScreenSqueezeback=!1;v.isPlayerStarted=!1;v.overlayDensity=0;v.extractOverlay=!1;v.extractActionBar=!1;v.isOverlay=!1;v.isImmersive=!1;v.isImmersiveHorizontal=!1;v.isFullscreen=!1;v.onWindowResized=function(){var Q;v.set("isImmersive",((Q=window.getComputedStyle(v.hostElement))==null?void 0:Q.getPropertyValue("--immersive-mode-on"))==="1");v.set("isImmersiveHorizontal",v.isImmersive&&v.enableLivingroomLayout&&!v.isWatchWhileMode)};
return v};
_.f(fG,_.z);_.K=fG.prototype;_.K.updateIsOverlay=function(v){this.isOverlay=v.detail.value};
_.K.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.K.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.K.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.K.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.K.onOverlayDensityChange=function(){var v=_.m9(this.hostElement).querySelector("ytd-info-panel-container-renderer");v&&(v.set("extractOverlay",this.extractOverlay),v.set("roundedContainer",this.extractOverlay))};
_.K.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.K.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.K.ready=function(){(_.Y("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"))&&(!_.Y("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.y9("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.y9("reels_action_justified_content")||"flex-start")};
_.K.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.K.setFakeLoadingButtons=function(){_.Y("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Lt("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Lt("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Lt("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Lt("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Lt("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()};
_.K.setEmptyOverlayMetadata=function(){_.Y("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}))};
_.hr.Object.defineProperties(fG.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.infoPanel)}}});
fG.prototype.onOverlayDensityChange=fG.prototype.onOverlayDensityChange;fG.prototype.onIsActiveChanged=fG.prototype.onIsActiveChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],fG.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],fG.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],fG.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fG.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],fG.prototype,"isActive",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],fG.prototype,"hidden",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],fG.prototype,"useShortsIcon",void 0);
_.W([_.q({value:"left"}),_.X("design:type",String)],fG.prototype,"buttonTooltipPosition",void 0);_.W([_.q({value:_.Y("reels_enable_livingroom_layout")?"top":"left"}),_.X("design:type",String)],fG.prototype,"likeButtonTooltipPosition",void 0);_.W([_.q({value:"none"}),_.X("design:type",String)],fG.prototype,"textTransform",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"showScrubber",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"isWatchWhileMode",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.infoPanel"),_.X("design:type",Object),_.X("design:paramtypes",[])],fG.prototype,"hasInfoPanel",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"enableAnchoredPanel",void 0);_.W([_.q(),_.X("design:type",Object)],fG.prototype,"enablePollStickers",void 0);
_.W([_.q(),_.X("design:type",Object)],fG.prototype,"enableShortsModernControls",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"anchoredPanelActive",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"enableLivingroomLayout",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],fG.prototype,"enablePlayerMetadataContainer",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"enableSqueezebackPanels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"useAspectRatio",void 0);_.W([_.q({selector:_.Wj9,reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"isSqueezebackActive",void 0);_.W([_.q({selector:oJc,reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"smallScreenSqueezeback",void 0);
_.W([_.q({selector:XMe}),_.X("design:type",Object)],fG.prototype,"isPlayerStarted",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"overlayDensity",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"extractOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"extractActionBar",void 0);_.W([_.q(),_.X("design:type",Object)],fG.prototype,"isOverlay",void 0);
_.W([_.q(),_.X("design:type",Object)],fG.prototype,"isImmersive",void 0);_.W([_.q(),_.X("design:type",Object)],fG.prototype,"isImmersiveHorizontal",void 0);_.W([_.q({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.X("design:type",Boolean)],fG.prototype,"isShortsImmersive",void 0);_.W([_.q({computed:"computeButtonOverride(extractActionBar)"}),_.X("design:type",Object)],fG.prototype,"buttonOverride",void 0);
_.W([_.q({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.X("design:type",Object)],fG.prototype,"actionBarButtonOverride",void 0);_.W([_.q({selector:_.I7,reflectToAttribute:!0}),_.X("design:type",Object)],fG.prototype,"isFullscreen",void 0);_.W([_.ph("isActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fG.prototype,"onIsActiveChanged",null);
_.W([_.ph("extractOverlay"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fG.prototype,"onOverlayDensityChange",null);_.W([_.J({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],fG);
_.B(fG,"ytd-reel-player-overlay-renderer",function(){if(GeP!==void 0)return GeP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return GeP=v},{mode:1});var nU9;var GF=function(){var v=_.z.apply(this,arguments)||this;v.videoDuration=0;v.playedTime=0;v.isActive=!1;v.JSC$22791_playerEvents=new Map;return v};
_.f(GF,_.z);_.K=GF.prototype;_.K.created=function(){this.JSC$22791_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22791_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.K.attached=function(){this.getPlayerAndInitializeListeners()};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22791_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Lh(this,this.onPageChanged))};
_.K.getPlayerAndInitializeListeners=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return Q=_.aJ(),Q?V.yield(Q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Lh(v,v.onPageChanged)),V.jumpTo(0));v.player=V.yieldResult;v.initializePlayerListeners();_.q1(V)})};
_.K.onPageChanged=function(v){var Q=this;return _.e(function(V){if(V.nextAddress==1)return v.detail.newPageType!=="ytd-shorts"?V.return():V.yield(_.rS().getPlayerPromise(),2);Q.player=V.yieldResult;Q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Lh(Q,Q.onPageChanged));_.q1(V)})};
_.K.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22791_playerEvents)};
_.K.onVideoDataChange=function(v){var Q=this;return _.e(function(V){if(!Q.player||v.type!=="newdata")return V.return();Q.videoDuration=_.Y("web_shorts_use_progress_state_for_gapless")?Q.player.getProgressState(v.playertype).seekableEnd:Q.player.getDuration(v.playertype);Q.playedTime=0;_.q1(V)})};
_.K.onVideoProgress=function(v){var Q=this,V,E;return _.e(function(b){if(!Q.player)return b.return();V=Q.player.getPresentingPlayerType();E=Q.player.getPlayerState();Q.videoDuration=_.Y("web_shorts_use_progress_state_for_gapless")?Q.player.getProgressState(V).seekableEnd:Q.player.getDuration(V);Q.playedTime=E===0?Q.videoDuration:v;_.q1(b)})};
_.K.getPercentPlayed=function(v,Q){return v?_.O$(Q/v,0,1):0};
_.hr.Object.defineProperties(GF.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var v="";return v=this.videoDuration&&this.playedTime?v+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):v+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],GF.prototype,"componentBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],GF.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GF.prototype,"player",void 0);_.W([_.q(),_.X("design:type",Object)],GF.prototype,"videoDuration",void 0);_.W([_.q(),_.X("design:type",Object)],GF.prototype,"playedTime",void 0);_.W([_.q(),_.X("design:type",Object)],GF.prototype,"isActive",void 0);
_.W([_.O("videoDuration","playedTime"),_.X("design:type",Number),_.X("design:paramtypes",[])],GF.prototype,"percentPlayed",null);_.W([_.O("videoDuration","playedTime"),_.X("design:type",Object),_.X("design:paramtypes",[])],GF.prototype,"percentPlayedStyle",null);_.W([_.O("videoDuration","isActive"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],GF.prototype,"hideProgressBar",null);
_.B(GF,"ytd-progress-bar-line",function(){if(nU9===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);nU9=v}v=nU9;return v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var lQI;_.ad(_.n0h,"ytm-closed-captioning-button",{props:{captionIconType:_.pJ,onClick:_.Wg,ariaLabel:_.pJ,ariaPressed:_.pJ,isOverlay:_.Wg,isModern:_.Wg}});_.ad(_.Vxh,"desktop-shorts-volume-controls",{props:{orientation:_.pJ}});var CG=function(){var v=_.z.apply(this,arguments)||this;v.playerState=null;v.isMuted=!1;v.shortsModernControlsEnabled=_.Y("web_shorts_modern_controls");v.volumeControlsOrientationState="horizontal_right";v.isOverlay=!0;v.isAdsOverlay=!1;v.captionIconType=-1;v.ariaLabel="";v.overlayDensity=0;v.JSC$22794_playerEvents=new Map;v.onClosedCaptionsButtonClick=function(){v.player&&_.BJ(v.player)&&(v.player.toggleSubtitles(),v.updateCaptionIconType())};
return v};
_.f(CG,_.z);_.K=CG.prototype;_.K.created=function(){this.JSC$22794_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22794_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22794_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.K.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Vw(28662);this.playPauseButtonClientVE=_.Vw(36842);this.fullscreenButtonToggleOffClientVE=_.Vw(222256);this.fullscreenButtonToggleOnClientVE=_.Vw(222257);var v=_.Mo(),Q=_.CC();v&&Q&&(_.Y("combine_ve_grafts")?(_.za(_.tR(),this.muteButtonClientVE,Q),_.za(_.tR(),this.playPauseButtonClientVE,Q)):_.x7(v,Q,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22794_playerEvents),this.player=null)};
_.K.updateCaptionIconType=function(){var v=-1,Q=void 0,V=_.Lt("CLOSED_CAPTIONS_DISABLED");this.player&&_.BJ(this.player)&&(_.k7Y(this.player)?(Q=!0,V=_.Lt("CLOSED_CAPTIONS_ON"),v=1):(Q=!1,V=_.Lt("CLOSED_CAPTIONS_OFF"),v=0));this.captionIconType=v;this.ariaPressedState=Q;this.ariaLabel=V};
_.K.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.K.getPlayerAndInitializeListeners=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return Q=_.aJ(),Q?V.yield(Q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Lh(v,v.onPageChanged)),V.jumpTo(0));v.player=V.yieldResult;v.initializePlayerListeners();_.q1(V)})};
_.K.onPageChanged=function(v){var Q=this;return _.e(function(V){if(V.nextAddress==1)return v.detail.newPageType!=="ytd-shorts"?V.return():V.yield(_.rS().getPlayerPromise(),2);Q.player=V.yieldResult;Q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Lh(Q,Q.onPageChanged));_.q1(V)})};
_.K.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22794_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.K.onPlayerStateChange=function(v){this.playerState=v};
_.K.onPlayerVolumeChange=function(v){this.isMuted=v.muted};
_.K.onPlayPauseButtonClick=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(_.rS().getPlayerPromise(),2);Q=E.yieldResult;(V=_.Mo())&&v.playPauseButtonClientVE&&_.uI(V,v.playPauseButtonClientVE);Q.getPlayerState()!==1?Q.playVideo():Q.pauseVideo();_.q1(E)})};
_.K.computePlayPauseIcon=function(v){return v===2||v===-1||v===5?_.Y("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.Y("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.Y("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.K.computeFullscreenLabel=function(v){return v?_.Lt("FULLSCREEN_EXIT_LABEL"):_.Lt("FULLSCREEN_ENTER_LABEL")};
_.K.computePlayPauseLabel=function(v){return v===1||v===3?_.Lt("PLAYER_LABEL_PAUSE"):_.Lt("PLAYER_LABEL_PLAY")};
_.K.onMuteButtonClick=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(_.rS().getPlayerPromise(),2);Q=E.yieldResult;(V=_.Mo())&&v.muteButtonClientVE&&_.uI(V,v.muteButtonClientVE);Q.isMuted()?Q.unMute(!0):Q.mute(!0);_.q1(E)})};
_.K.computeMuteIcon=function(v){return v?"miniplayer:volume-off":"miniplayer:volume-up"};
_.K.computeMuteLabel=function(v){return v?_.Lt("PLAYER_LABEL_UNMUTE"):_.Lt("PLAYER_LABEL_MUTE")};
_.K.onFullscreenButtonClick=function(){var v=_.Mo();v&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.uI(v,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.uI(v,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.MTh()};
_.hr.Object.defineProperties(CG.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var v=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){v.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.Y("web_shorts_modern_controls")?"player_full_exit_alt":_.Y("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.Y("web_shorts_modern_controls")?"player_full_enter_alt":_.Y("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],CG.prototype,"componentBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],CG.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],CG.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"player",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"playerState",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"isMuted",void 0);
_.W([_.q({computed:"computePlayPauseIcon(playerState)"}),_.X("design:type",String)],CG.prototype,"playPauseIcon",void 0);_.W([_.q({computed:"computeMuteIcon(isMuted)"}),_.X("design:type",String)],CG.prototype,"muteIcon",void 0);_.W([_.q({selector:_.I7}),_.X("design:type",Boolean)],CG.prototype,"isFullscreen",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],CG.prototype,"shortsModernControlsEnabled",void 0);
_.W([_.q(),_.X("design:type",Object)],CG.prototype,"volumeControlsOrientationState",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"isOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],CG.prototype,"isAdsOverlay",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"captionIconType",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"ariaLabel",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"ariaPressedState",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],CG.prototype,"overlayDensity",void 0);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"data",void 0);_.W([_.q({computed:"computeActionBarButtonOverride()"}),_.X("design:type",Object)],CG.prototype,"actionBarButtonOverride",void 0);_.W([_.O("playerState"),_.X("design:type",Object),_.X("design:paramtypes",[])],CG.prototype,"playPauseButtonData",null);
_.W([_.O("isFullscreen"),_.X("design:type",Object),_.X("design:paramtypes",[])],CG.prototype,"fullscreenButtonData",null);_.W([_.q(),_.X("design:type",Object)],CG.prototype,"onClosedCaptionsButtonClick",void 0);_.W([_.O("isFullscreen"),_.X("design:type",String),_.X("design:paramtypes",[])],CG.prototype,"fullscreenIcon",null);
_.B(CG,"ytd-shorts-player-controls",function(){if(lQI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);lQI=v}v=lQI;return v},{mode:1});var qXJ;_.ad(_.a5Y,"yt-interstitial-view-model",{props:{data:_.pJ}});var SX9=_.x(function(v){var Q=v.data;return _.P("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.P("h1",{class:"reelWatchBreakViewModelHostTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("h2",{class:"reelWatchBreakViewModelHostBody"},_.P(_.tD,{text:function(){return Q().body},
isOverlay:!0})),_.P(_.Pw,{data:function(){return Q().buttons}},{buttonViewModel:function(V,E){return _.P("div",{class:function(){return E()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.P(_.D6,{data:V.data}))}}))},"Bn");
SX9.idomCompat=!0;_.ad(SX9,"reel-watch-break-view-model",{props:{data:_.pJ}});var MB=function(){return _.z.apply(this,arguments)||this};
_.f(MB,_.z);MB.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}}};
_.hr.Object.defineProperties(MB.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.y((v=this.data)==null?void 0:v.renderer,wRb)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.y((v=this.data)==null?void 0:v.renderer,AaP)}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],MB.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],MB.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],MB.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data.renderer"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],MB.prototype,"isSurvey",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.renderer"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],MB.prototype,"isInterstitialViewModel",null);_.W([_.J({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],MB);
_.B(MB,"ytd-reel-non-video-content-renderer",function(){if(qXJ!==void 0)return qXJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return qXJ=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var zpe;_.ad(_.Qyq,"desktop-shorts-player-controls",{});var OD=function(){var v=_.z.apply(this,arguments)||this;v.isPlayerPaused=!1;v.isPlayerStarted=!1;v.showPlayerControls=!1;v.showScrubber=!1;v.autoHideJobId=0;v.overlayType=_.y9("web_shorts_expanded_overlay_type");v.panelData=void 0;v.isWatchWhileMode=!1;v.hasError=!1;v.panelShowDelayMs=1;v.scrubberComponent={};v.isFullscreen=!1;v.shouldHideOverlay=!1;v.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");v.enablePersistentAnchoredPanel=_.Y("desktop_shorts_v2_persistent_anchored_panel");v.hideWatchWhilePanel=
_.Y("web_shorts_hide_watch_while_panel");v.useAspectRatio=_.Y("web_use_aspect_ratio");v.enableShortsModernControls=_.Y("web_shorts_modern_controls");v.isPersistentPanelActive=!1;v.anchoredPanelActive=!1;v.isShortsPipActive=!1;v.smallScreenSqueezeback=!1;v.enableFlexibleOverlay=_.Y("web_enable_flexible_overlay");v.overlayDensity=0;v.extractOverlay=!1;v.extractActionBar=!1;v.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
v.onWindowResized=function(){_.Nf(v,"calculateOverlayDensity",function(){v.calculateOverlayDensity()},100)};
return v};
_.f(OD,_.z);_.K=OD.prototype;_.K.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.K.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.K.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var v=_.ht().resolve(_.$2);this.isWatchWhileMode&&_.XT.addJob(function(){v.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.K.handleShowReelsCommentsOverlayCommand=function(v){v=_.y(v,YXb);this.isActive&&(v==null?0:v.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.K.updateEngagementPanelVisibility=function(v,Q){v&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:Q?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:v}})};
_.K.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.K.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.ht().resolve(_.Na).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.K.handleWatchWhilePanelScrimClick=function(){var v=_.ht().resolve(_.$2);this.activeWatchWhilePanel&&(v.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.K.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.K.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.K.handlePlayerClick=function(v){var Q=this,V,E;if((E=(V=window).matchMedia)!=null&&E.call(V,"(any-pointer: coarse)").matches||!v)this.showPlayerControls=!0,_.XT.cancelJob(this.autoHideJobId),this.autoHideJobId=_.go(_.XT,function(){Q.showPlayerControls=!1},4E3)};
_.K.isFirstReel=function(){return this.index===0};
_.K.handleMouseenter=function(){_.XT.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.K.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.K.handleScrubberEnter=function(){this.showScrubber=!0};
_.K.handleScrubberLeave=function(){this.showScrubber=!1};
_.K.maybeLogNonDefaultAspectRatio=function(){var v;(v=this.data)!=null&&v.thumbnail&&this.isActive&&.5625!==We5(this.data.thumbnail)&&_.CET("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.K.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var v=document.querySelector("#shorts-container");if(v){var Q=!1,V,E=this.playerContainer.offsetWidth,b=this.playerContainer.offsetHeight;v=v.offsetWidth/2-E/2;v>=368?(v=1,Q=V=!0):v>=72?(v=0,V=!0):(v=2,V=!1);E>=600&&b>=840?v=1:window.innerWidth<=599&&(v=2,V=Q=!1);this.isPersistentPanelActive&&(v=0,Q=!1);this.extractActionBar=V;_.Y("web_enable_flexible_overlay")&&(this.overlayDensity=v,this.extractOverlay=
Q);var F;(F=this.onOverlayDensityChanged)==null||F.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.K.onOverlayDensityChange=function(){var v;(v=this.onOverlayDensityChanged)==null||v.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(v=_.m9(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))v.set("overlayDensity",this.overlayDensity),v.set("extractOverlay",this.extractOverlay),v.set("extractActionBar",this.extractActionBar);if(v=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))v.overlayDensity=this.overlayDensity,v.extractOverlay=
this.extractOverlay,v.extractActionBar=this.extractActionBar};
_.K.isVideoContent=function(v){_.ht().resolve(_.Na);return!!_.y(v,_.PH)};
_.K.isNonVideoContent=function(v){_.ht().resolve(_.Na);return!!_.y(v,_.EO)};
_.K.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.hr.Object.defineProperties(OD.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var v,Q;return _.Y("web_enable_format_first")||((v=this.data)==null?void 0:v.adsOverlay)&&_.Y("web_enable_format_first_ads_only")||((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer)&&_.Y("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.Y("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var v;return!this.isActive||!this.isPlayerStarted||(v=this.data)!=null&&v.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?0:v.command)&&this.isVideoContent(this.data.command)){var Q,V;if(((Q=this.data)==null?0:Q.adsOverlay)&&Object.keys((V=this.data)==null?void 0:V.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var E,b;if(((E=this.data)==null?0:E.reelPlayerOverlayRenderer)&&Object.keys((b=this.data)==null?void 0:b.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
OD.prototype.onOverlayDensityChange=OD.prototype.onOverlayDensityChange;OD.prototype.calculateOverlayDensity=OD.prototype.calculateOverlayDensity;OD.prototype.maybeLogNonDefaultAspectRatio=OD.prototype.maybeLogNonDefaultAspectRatio;OD.prototype.onEngagementPanelsChanged=OD.prototype.onEngagementPanelsChanged;OD.prototype.onScrubberDataChange=OD.prototype.onScrubberDataChange;OD.prototype.updateShouldHideOverlay=OD.prototype.updateShouldHideOverlay;
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],OD.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],OD.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],OD.prototype,"index",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OD.prototype,"isActive",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OD.prototype,"isHiddenInDom",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"isPlayerPaused",void 0);_.W([_.q({selector:XMe}),_.X("design:type",Object)],OD.prototype,"isPlayerStarted",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"showPlayerControls",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"showScrubber",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"autoHideJobId",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"overlayType",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],OD.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],OD.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],OD.prototype,"watchWhileEngagementPanels",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"panelData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"isWatchWhileMode",void 0);_.W([_.q(),_.X("design:type",String)],OD.prototype,"activeWatchWhilePanel",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"hasError",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"panelShowDelayMs",void 0);
_.W([_.q(),_.X("design:type",Object)],OD.prototype,"scrubberComponent",void 0);_.W([_.q({selector:_.I7,reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"isFullscreen",void 0);_.W([_.q(),_.X("design:type",Object)],OD.prototype,"shouldHideOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"enableAnchoredPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"enablePersistentAnchoredPanel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"hideWatchWhilePanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"useAspectRatio",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"enableShortsModernControls",void 0);_.W([_.q({selector:_.Wj9,reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"isPersistentPanelActive",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"anchoredPanelActive",void 0);_.W([_.q({selector:_.Hw,reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"isShortsPipActive",void 0);_.W([_.q({selector:oJc,reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"smallScreenSqueezeback",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.adsOverlay"),_.X("design:type",Object),_.X("design:paramtypes",[])],OD.prototype,"isAdsOverlay",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],OD.prototype,"enableFormatFirst",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"enableFlexibleOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"overlayDensity",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"extractOverlay",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],OD.prototype,"extractActionBar",void 0);_.W([_.q(),_.X("design:type",Function)],OD.prototype,"onOverlayDensityChanged",void 0);_.W([_.q(),_.O("isActive","hasError","isPlayerStarted"),_.X("design:type",Object),_.X("design:paramtypes",[])],OD.prototype,"shouldRenderPlayerElements",null);_.W([_.q(),_.O("isActive","isWatchWhileMode"),_.X("design:type",Object),_.X("design:paramtypes",[])],OD.prototype,"watchWhileOrPersistentActive",null);
_.W([_.ph("isActive","hasError","showingExpandedOverlay"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OD.prototype,"updateShouldHideOverlay",null);_.W([_.q({reflectToAttribute:!0}),_.O("isActive","isPlayerStarted","data"),_.X("design:type",Object),_.X("design:paramtypes",[])],OD.prototype,"shouldRenderScrubber",null);
_.W([_.ph("shouldRenderScrubber"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OD.prototype,"onScrubberDataChange",null);_.W([_.O("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.X("design:type",Object),_.X("design:paramtypes",[])],OD.prototype,"overlayComponent",null);_.W([_.ph("watchWhileEngagementPanels"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OD.prototype,"onEngagementPanelsChanged",null);
_.W([_.Z7("#player-container"),_.X("design:type",HTMLElement)],OD.prototype,"playerContainer",void 0);_.W([_.Z7("#cinematic-container"),_.X("design:type",HTMLElement)],OD.prototype,"cinematicContainer",void 0);_.W([_.ph("isPersistentPanelActive","data.thumbnail"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OD.prototype,"maybeLogNonDefaultAspectRatio",null);
_.W([_.ph("isPersistentPanelActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OD.prototype,"calculateOverlayDensity",null);_.W([_.ph("overlayDensity","extractOverlay","extractActionBar"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OD.prototype,"onOverlayDensityChange",null);_.W([_.J({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],OD);
_.B(OD,"ytd-reel-video-renderer",function(){if(zpe!==void 0)return zpe;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return zpe=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var DB=function(){var v=_.z.apply(this,arguments)||this;v.isPreviousPageShorts=!1;v.index=0;v.delayedActiveIndex=0;v.playablePreviousIndex=null;v.isPlayerPaused=!1;v.isPlayerStarted=!1;v.intersectionObserverThreshold=.6;v.fitToVisibleBounds=!1;v.pageSubtype="shorts";v.enablePreviousContinuation=_.Y("shorts_in_playlists_web");v.shortsPipEnabled=_.Y("web_shorts_pip");v.isDark=document.documentElement.hasAttribute("dark");v.shortsViewTransitions=_.Y("web_shorts_view_transitions");v.isFullscreen=!1;v.isShortsPipActive=
!1;v.buttonOverride={iconPosition:"icon-only",size:"XL"};v.anchoredPanelActive=!1;v.isActive=!1;v.smallScreenPersistentPanel=!1;v.isPersistentPanelActive=!1;v.smallScreenSqueezeBack=!1;v.enableScrollIntoViewCenter=_.Y("web_scroll_into_view_center");v.formatFirst=_.Y("web_enable_format_first")||_.Y("web_enable_format_first_ads_only")||_.Y("web_enable_format_first_organic_only");v.enableFlexibleOverlay=_.Y("web_enable_flexible_overlay");v.extractOverlay=!1;v.useAspectRatio=_.Y("web_use_aspect_ratio");
v.enableShortsSequenceRefactorUnify=_.Y("web_enable_shorts_sequence_refactor_unify");v.carouselContainers=[];v.isShortsInitialized=!1;v.shortsContentList=[];v.hasDataUpdated=!1;v.playerInPosition=!1;v.hidePreviousButtonImmediately=!1;v.showPreviousButtonImmediately=!1;v.endOfNextContinuation=!1;v.currentPlayerIndex=0;v.nextReelVe=_.Vw(56921);v.prevReelVe=_.Vw(56922);v.loopToggleOffVe=_.Vw(198013);v.loopToggleOnVe=_.Vw(198014);v.ambientModeToggleVe=_.Vw(227860);v.reelPlayerPausedStateRendererVe=_.Vw(141313);
v.storedPlaybackSpeed=null;v.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged",
"yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff","yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};v.onOverlayDensityChanged=function(Q,V,E,b){Q=v.getActiveReelVideo(Q);v.extractOverlay=!!E;Q==null||Q.setAttribute("overlay-density",String(V));E===void 0||Q!=null&&Q.toggleAttribute("extract-overlay",
E);b===void 0||Q!=null&&Q.toggleAttribute("extract-action-bar",b)};
return v};
_.f(DB,_.z);_.K=DB.prototype;_.K.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.K.setShortsContentList=function(){var v=this,Q=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.ui(this.shortsContentList)):[],V=this.firstShortsData;if(V){var E=this.reelWatchSequenceResponse;if(V=this.shortsController==null?void 0:K$n(Q,V,E!=null?E:null)){E=V.newContentList;var b=V.indexChange;if(E.length!==Q.length){var F;(F=this.intersectionObserver)==null||F.disconnect();this.shortsContentList=E;b!==0&&(this.index=b,_.Lq(_.XT,function(){var t;(t=v.getActiveReelVideo(b))==
null||t.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});v.movePlayerToVideo(b)},100));
_.XT.addLowPriorityJob(function(){v.observeShorts()},500)}}}};
_.K.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.K.onResize=function(){var v=_.oF(),Q=v.dispatch,V=this.calculateIsSmallWidth();Q.call(v,_.U2({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:V}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.K.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.K.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var v=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,Q=v,V=0;v<250&&(Q=v+this.shortsInnerContainer.clientWidth,V=24);_.F6(this.hostElement,{"--ytd-shorts-header-width":Q+"px","--ytd-shorts-top-spacing":V+"px"})}};
_.K.isFirstShorts=function(v){return v&&!this.enableShortsSequenceRefactorUnify?this.index===-v.length:this.index===0};
_.K.isActiveReel=function(v,Q,V){V&&(Q=this.calculatePrevIndex(Q,V));return v===Q};
_.K.onFullscreenChange=function(){_.Y("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.ht().resolve(_.lJ).close(!0))};
_.K.engagementPanelsChanged=function(){var v;this.watchWhileEngagementPanels=(v=this.data)==null?void 0:v.engagementPanels};
_.K.unregisterPanels=function(){var v=_.ht().resolve(_.$2);if(this.watchWhileEngagementPanels)for(var Q=_.L(this.watchWhileEngagementPanels),V=Q.next();!V.done;V=Q.next()){var E=V.value,b=void 0,F=void 0;V=(b=E.engagementPanelSectionListRenderer)==null?void 0:(F=b.identifier)==null?void 0:F.tag;E=this.getPanelIdentifier(E.engagementPanelSectionListRenderer);v&&(V&&v.panelMap.delete(V),E&&_.Y("web_shorts_panel_caching_bugfix")&&(b=V=void 0,(b=(V=v).unregisterPanelContent)==null||b.call(V,E)))}};
_.K.isVideoContent=function(v){return this.isVideoContentCommand(v==null?void 0:v.command)};
_.K.getActiveReelVideo=function(v){return _.m9(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+v+'"]')};
_.K.calculatePrevIndex=function(v,Q){return Q?v-((Q==null?void 0:Q.length)||0):-1};
_.K.onKeydown=function(v){var Q=_.uK(v)||[];if(!_.Cf0(Q))if(v.code==="ArrowUp")v.preventDefault(),this.handlePrevButtonClick();else if(v.code==="ArrowDown")v.preventDefault(),this.handleNextButtonClick();else if(v.code==="KeyM")this.toggleMuteUnmuteVideo();else if(v.code==="KeyK"||v.code==="Space")this.togglePlayPauseVideo();else if((v.code==="KeyA"||v.code==="ArrowLeft")&&_.Y("web_shorts_keyboard_enable_seek_shortcuts")){var V;(V=this.player)==null||V.seekBy(-5)}else if((v.code==="KeyD"||v.code===
"ArrowRight")&&_.Y("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var E;(E=this.player)==null||E.seekBy(5)}};
_.K.onServiceRequestCompleted=function(v,Q){v=Q.data;if(this.enableShortsSequenceRefactorUnify){if(v.continuationEndpoint||v.prevContinuationEndpoint)this.reelWatchSequenceResponse=v}else v.continuationEndpoint&&v.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:v.entries,continuationEndpoint:v.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=v):v.prevContinuationEndpoint&&v.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:v.prevEntries,
prevContinuationEndpoint:v.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.K.handleEngagementPanelVisibilityChanged=function(v,Q){var V=_.ht().resolve(_.$2);if(v&&V){var E=this.getPanelIdentifier(v);if(Q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==E){V.hidePanel({identifier:this.activePanel});var b;this.activePanel=((b=v.identifier)==null?void 0:b.tag)||v.panelIdentifier}else this.isPersistentPanelActive=!0,_.oF().dispatch(ial(!0)),this.anchoredPanelActive=!0,this.activePanel=E;else Q==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===E&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.oF().dispatch(ial(!1)))}};
_.K.handlePanelScrimClick=function(){var v=_.ht().resolve(_.$2);this.activePanel&&(v.hidePanel({identifier:this.activePanel}),_.oF().dispatch(ial(!1)))};
_.K.getShortsLoopSetting=function(){var v,Q,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return _.Y("kevlar_shorts_auto_advance")?F.yield(_.Hm.getInstance(),2):F.return(!0);case 2:return(v=F.yieldResult)?F.yield(v.get("sfvles"),3):F.return(!0);case 3:return V=(Q=F.yieldResult)!=null?Q:!1,F.yield(v.get("sfvle"),4);case 4:return b=(E=F.yieldResult)!=null?E:!0,V?F.return(b):F.return(!0)}})};
_.K.handleSignalActionToggleLoopShortsOff=function(){var v=this,Q,V,E;return _.e(function(b){switch(b.nextAddress){case 1:if(!v.player)return b.return();v.player.setLoopVideo(!1);Q=_.tR();_.N_(Q,v.loopToggleOffVe);return b.yield(_.Hm.getInstance(),2);case 2:return(V=b.yieldResult)?b.yield(V.set("sfvle",!1),3):b.return();case 3:return b.yield(V.set("sfvles",!0),4);case 4:E=_.eP(),_.ZG(0,203,!1),_.ZG(0,204,!0),E.save(),_.q1(b)}})};
_.K.handleSignalActionToggleLoopShortsOn=function(){var v=this,Q,V,E;return _.e(function(b){switch(b.nextAddress){case 1:if(!v.player)return b.return();v.player.setLoopVideo(!0);Q=_.tR();_.N_(Q,v.loopToggleOnVe);return b.yield(_.Hm.getInstance(),2);case 2:return(V=b.yieldResult)?b.yield(V.set("sfvle",!0),3):b.return();case 3:return b.yield(V.set("sfvles",!0),4);case 4:E=_.eP(),_.ZG(0,203,!0),_.ZG(0,204,!0),E.save(),_.q1(b)}})};
_.K.handleSignalActionToggleCinematicShortsOn=function(){r5V(!0);var v;(v=this.JSC$22818_cinematicController)==null||_.Shc(v,!0);_.N_(_.tR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.K.handleSignalActionToggleCinematicShortsOff=function(){r5V(!1);var v;(v=this.JSC$22818_cinematicController)==null||_.Shc(v,!1);_.N_(_.tR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.K.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.K.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.K.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var v=this.overlayContainer.querySelector("#experiment-overlay");v&&_.XT.addLowPriorityJob(function(){v.style.display="unset"},100)}else if(this.overlayContainer){var Q;
((Q=this.playerElement.getPlayer())==null?void 0:Q.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.K.getCurrentShort=function(){if(this.currentEndpoint){var v=this.currentEndpoint;if(this.isNonVideoContentCommand(v)){var Q=_.y(v,_.EO);return{reelNonVideoContentRenderer:_.y(Q==null?void 0:Q.renderer,_.FC),command:v}}if(this.data){var V;Q=(V=_.y(this.currentEndpoint,_.PH))==null?void 0:V.thumbnail;var E;V=(E=this.data.overlay)==null?void 0:E.reelPlayerOverlayRenderer;_.ht().resolve(_.Na);v=this.data;var b,F;E=(b=v.overlay)==null?void 0:(F=b.shortsAdsRenderer)==null?void 0:F.adSlots;if(E!==void 0)E.length===
0?(_.J2("Shorts ads returned no ad slots."),v=void 0):(E.length>1&&_.J2("Shorts ads has more than one ad slots."),v=_.y(E[0],_.Nea));else{var t,p;v=_.y((t=v.overlay)==null?void 0:(p=t.shortsAdsRenderer)==null?void 0:p.overlay,_.Nea)}t=v;v=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.y(this.currentEndpoint,_.PH),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var Z;return{reelPlayerOverlayRenderer:V,thumbnail:Q,command:v,adsOverlay:t,
videoId:(Z=_.y(this.currentEndpoint,_.PH))==null?void 0:Z.videoId}}}};
_.K.created=function(){var v=this;this.scrollToVideoThrottle=new _.FK(function(Q,V){V=V===void 0?"smooth":V;var E;(E=v.getActiveReelVideo(Q))==null||E.scrollIntoView({behavior:V,block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.ht().resolve(_.Na);this.maybeCreateIntersectionObserver()};
_.K.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.K.attached=function(){var v=this;_.ht().resolve(_.Na).registerRootElement(this);this.pageScrollElement=_.m9(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Lh(this,this.processResetAction));_.Y("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){v.maybeCreateIntersectionObserver();v.scrollToVideoThrottle.fire(v.activeIndex,"instant");v.shortsContainer.style.overflowY=
"scroll"}))};
_.K.updateReelWatchSequenceResponse=function(){var v=this,Q;if(_.Y("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((Q=_.y(this.currentEndpoint,_.PH))==null?0:Q.sequenceParams)&&!this.reelWatchSequenceResponse){var V;(V=this.shortsController)==null||baJ(V,this.currentEndpoint).then(function(E){E&&(v.reelWatchSequenceResponse=E,_.XT.addLowPriorityJob(function(){v.observeShorts()}))})}};
_.K.calculateSqueezebackPanelSize=function(){var v=this,Q=window.innerWidth-456-(window.innerHeight-106)*.5625;_.XT.addLowPriorityJob(function(){Q<360?_.oF().dispatch(L$P(!0)):(v.hostElement.style.setProperty("--anchored-panel-width",Math.min(Q,480)+"px"),_.oF().dispatch(L$P(!1)))})};
_.K.detached=function(){var v=_.ht().resolve(_.Na);v.rootElement=void 0;var Q;(Q=v.unsubscribeFromStore)==null||Q.call(v);v.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Lh(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.K.onResizeFinished=function(v,Q){var V=this,E=new ResizeObserver(function(){V.shortsContainer.style.overflowY="hidden";_.XT.addLowPriorityJob(function(){Q()},100)});
E.observe(v);return E};
_.K.resetDocumentScrollTop=function(){var v,Q;if((v=document)==null?0:(Q=v.scrollingElement)==null?0:Q.scrollTop)document.scrollingElement.scrollTop=0};
_.K.loadPage_=function(v){var Q=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),v){var V;if((V=_.y(this.currentEndpoint,_.PH))==null?0:V.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=v;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){Q.isPlayerStarted&&
(Q.handleOnPlaybackCommand(),Q.afterPlayerStarted=function(){})};
this.registerPanel(v)}};
_.K.afterPlayerStarted=function(){};
_.K.handleOnPlaybackCommand=function(){if(_.Y("web_shorts_comment_stickers")&&this.isPlayerStarted){var v,Q=(v=_.y(this.currentEndpoint,_.PH))==null?void 0:v.onPlaybackCommand;Q&&this.ytComponentBehavior.resolveCommand(Q)}};
_.K.maybeCreateIntersectionObserver=function(){var v=this,Q=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==Q){this.intersectionObserverThreshold=Q;var V={rootMargin:"0px",threshold:Q},E;(E=this.intersectionObserver)==null||E.disconnect();this.intersectionObserver=new IntersectionObserver(function(b){b=_.L(b);for(var F=b.next();!F.done;F=b.next())if(F=F.value,F.intersectionRatio>Q){F=Number(F.target.id);if(isNaN(F))break;if(F===v.index)break;
_.X2G();v.loadVideo(F);_.DG("r_vtc")}},V);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.K.observeShorts=function(){var v,Q,V,E=this.enableShortsSequenceRefactorUnify?((v=this.shortsContentList)==null?void 0:v.length)||0:(((Q=this.shortsProcessedPrevSequence)==null?void 0:Q.length)||0)+(((V=this.shortsProcessedSequence)==null?void 0:V.length)||0);this.carouselContainers.length<E&&(this.carouselContainers=[].concat(_.ui(_.m9(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));v=_.L(this.carouselContainers);for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,V=void 0,(V=this.intersectionObserver)==
null||V.observe(Q)};
_.K.initCsi=function(){_.uII("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var v={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},Q,V;if((Q=this.playerData)==null?0:(V=Q.cacheMetadata)==null?0:V.isCacheHit)v.isCacheHit=!0;var E;if(Q=(E=_.y(this.currentEndpoint,_.PH))==null?void 0:
E.prefetchTaskId)v.prefetchInfo={taskId:Q};_.ft(v)};
_.K.isAd=function(){var v,Q;return!!((v=_.y(this.currentEndpoint,_.PH))==null?0:(Q=v.adClientParams)==null?0:Q.isAd)};
_.K.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.K.getPlayerContainer=function(){var v;return(v=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:v.playerContainer};
_.K.onPlayerStateChange=function(v){var Q=this;this.isPlayerPaused=v===2;v!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?v===1&&this.index===0&&(this.isPlayerStarted||_.oF().dispatch(t_I(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.oF().dispatch(t_I(!0)));this.player&&!this.player.getLoopVideo()&&_.XT.addLowPriorityJob(function(){Q.getShortsLoopSetting().then(function(V){var E;(E=Q.player)==null||E.setLoopVideo(V)})});
this.isPlayerPaused&&_.Y("web_shorts_paused_state_logging")&&_.gD(_.Mo(),[this.reelPlayerPausedStateRendererVe])};
_.K.isShortPlayable=function(){if(_.Y("kevlar_playable_short_killswitch"))return!0;var v;return(v=this.playerData)!=null&&v.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.K.setNormalPlaybackSpeed=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(v.getPlayer().getPlayerPromise(),2);Q=E.yieldResult;V=Q.getPlaybackRate();V!==1&&(v.storedPlaybackSpeed=V,Q.setPlaybackRate(1));_.q1(E)})};
_.K.restorePlaybackSpeed=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1)return v.storedPlaybackSpeed===null?V.jumpTo(0):V.yield(v.getPlayer().getPlayerPromise(),3);Q=V.yieldResult;Q.setPlaybackRate(v.storedPlaybackSpeed);v.storedPlaybackSpeed=null;_.q1(V)})};
_.K.playerDataChanged=function(){var v=this,Q,V,E,b,F,t,p,Z,d;return _.e(function(w){if(w.nextAddress==1){Q=v.getPlayer();v.enableShortsSequenceRefactorUnify||(V=v.intersectionObserver)==null||V.disconnect();if(v.playerData){if(((E=v.playerData.videoDetails)==null?void 0:E.videoId)!==((b=Q.getPlayer())==null?void 0:b.getVideoData().video_id)){F={};if(t=_.y(v.currentEndpoint,_.PH))F.watch_endpoint=t,t.endTimeSeconds&&(F.end=t.endTimeSeconds);Q.loadVideoWithPlayerResponse(v.playerData,F)}}else return w.return();
return v.player?w.jumpTo(2):w.yield(Q.getPlayerPromise(),3)}w.nextAddress!=2&&(v.player=w.yieldResult,v.JSC$22818_playerStateChangeListener=v.onPlayerStateChange.bind(v),v.player.addEventListener("onStateChange",v.JSC$22818_playerStateChangeListener),_.Y("kevlar_client_enable_shorts_player_bootstrap")&&_.zz(),v.scrollToVideoThrottle.fire(v.index),v.movePlayerToVideo(v.index),_.XT.addLowPriorityJob(function(){v.getShortsLoopSetting().then(function(A){var k;(k=v.player)==null||k.setLoopVideo(A)})}),
_.rwN.resolve(v.player),v.player.syncVolume(),v.getPlayer().focusOnPlayer());
v.enableShortsSequenceRefactorUnify||_.XT.addLowPriorityJob(function(){v.observeShorts()},100);
p=v.player.getPlayerState(v.player.getPresentingPlayerType());p!==1||v.isPlayerStarted||_.oF().dispatch(t_I(!0));v.updateBackNavContainerWidth();Z=_.y(v.currentEndpoint,_.PH);((d=Z)==null?0:d.startTimeSeconds)&&v.player.seekTo(Z.startTimeSeconds);if(v.JSC$22818_cinematicController||v.cinematicsInitializeJobId)return w.return();v.cinematicsInitializeJobId=_.XT.addLowPriorityJob(function(){v.initCinematicController();v.cinematicsInitializeJobId=void 0});
_.q1(w)})};
_.K.onShortUndoDismiss=function(){var v=this,Q=EUJ().pop();Q!==void 0&&(_.PE(this,function(){v.showCardWithIndex(Q)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.K.onShortsDismiss=function(v){if(v=v.detail.reelDismissalActionRenderer)(v=_.y(v.onDismissalCompletionRenderer,_.PtJ))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:v}}}),this.scrollAndDismissCard()};
_.K.processReelNonVideoContentDismissalCommand=function(v){var Q=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);v=_.y(v,Tbj);this.activeDimissalTimeout=setTimeout(function(){Q.scrollAndDismissCard()},Number(v==null?void 0:v.delayMs))};
_.K.scrollAndDismissCard=function(){var v=this,Q=this.index;EUJ().push(Q);_.PE(this,function(){var V=v.getPlayableNextIndex();V!==null&&(v.hideCardWithIndex(Q),v.scrollToVideoThrottle.fire(V))})};
_.K.hideCardWithIndex=function(v){if(v=this.getActiveReelVideo(v))v.hidden=!0};
_.K.showCardWithIndex=function(v){if(v=this.getActiveReelVideo(v))v.hidden=!1};
_.K.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.K.activeChanged=function(v){_.oF().dispatch(_.U2({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:v}}));if(v)document.addEventListener("keydown",_.Lh(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var Q;(Q=this.player)==null||Q.sendAbandonmentPing()}var V;(V=this.player)==null||V.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Lh(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.K.graftClientVisualElements=function(){if(this.data){var v=_.tR();_.WHA(v,_.Vk({response:this.reelWatchSequenceResponse}));_.za(v,this.nextReelVe);_.za(v,this.prevReelVe);_.Y("kevlar_shorts_auto_advance")&&(_.za(v,this.loopToggleOffVe),_.za(v,this.loopToggleOnVe));_.za(v,this.ambientModeToggleVe);_.gD(_.Mo(),[this.nextReelVe,this.prevReelVe]);_.Y("web_shorts_paused_state_logging")&&_.za(v,this.reelPlayerPausedStateRendererVe)}};
_.K.graftNvcRenderer=function(){var v,Q,V,E,b,F,t=this.enableShortsSequenceRefactorUnify?(v=this.shortsContentList)==null?void 0:(Q=v[this.index])==null?void 0:Q.command:this.index<0?(V=this.shortsProcessedPrevSequence)==null?void 0:(E=V[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:E.command:(b=this.shortsProcessedSequence)==null?void 0:(F=b[this.index])==null?void 0:F.command;if(t&&this.isNonVideoContentCommand(t)){v=_.y(t,_.EO);var p,Z;(v=(p=_.y(v==null?void 0:v.renderer,_.FC))==
null?void 0:(Z=p.loggingDirectives)==null?void 0:Z.trackingParams)&&_.tR().graftServerVe(v)}};
_.K.setActiveIndex=function(){_.ht().resolve(_.Na).setActiveIndex(this.index)};
_.K.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.K.lazyUpdateMiniplayerData=function(){var v=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.XT.addLowPriorityJob(function(){v.updateMiniplayerData();v.updateMiniplayerDataJobId=void 0}))};
_.K.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.XT.cancelJob(this.updateMiniplayerDataJobId)};
_.K.updateMiniplayerData=function(){var v,Q,V,E=_.ht().resolve(_.lJ),b={shortsData:this.getCurrentShort(),previousButtonDisabled:!((v=this.prevButtonData)==null||!v.isDisabled),nextButtonDisabled:!((Q=this.nextButtonData)==null||!Q.isDisabled),playabilityStatus:(V=this.playerData)==null?void 0:V.playabilityStatus};_.SF(E,b)};
_.K.resetPlayerLocation=function(){var v=this.getPlayer();this.initialPlayerContainer&&v.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.K.movePlayerToVideo=function(v,Q){var V=this;Q=Q===void 0?!0:Q;var E=this.getActiveReelVideo(v),b=this.getPlayer();if(E){this.overlayContainer?E.appendChild(this.overlayContainer):(this.overlayContainer=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,E.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||b.appendTo(this.overlayContainer.playerContainer,void 0,!0));var F;(F=this.player)==null||F.setSize(NaN,NaN);this.isActive||_.go(_.XT,function(){V.isActive=
!0});
b.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.Y("reels_web_disable_rtr_tick")||_.Y("reels_web_use_pbs_first_shorts")&&v===0||_.Mp("r_tr");this.currentPlayerIndex=v;E.appendChild(this.errorScreenContainer);var t;(t=this.JSC$22818_cinematicController)==null||_.J5d(t)}else Q?_.XT.addLowPriorityJob(function(){V.movePlayerToVideo(V.index,!1)}):Math.random()<=_.T_("web_shorts_error_logging_threshold")&&_.$h(new _.xd("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:Q,
index:v}))};
_.K.enableFormatFirst=function(v){return _.Y("web_enable_format_first")||v.adsOverlay&&_.Y("web_enable_format_first_ads_only")||v.reelPlayerOverlayRenderer&&_.Y("web_enable_format_first_organic_only")};
_.K.getAspectRatio=function(v){if(this.enableFormatFirst(v))return(v==null?0:v.thumbnail)&&We5(v.thumbnail)?"--ytd-shorts-player-ratio: "+We5(v.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.K.getBackgroundImage=function(v){if(v!=null&&v.thumbnail)return(v=_.$D(v.thumbnail.thumbnails))?'background-image:url("'+v+'");':"background-color:black;"};
_.K.onPersistentPanelActiveChanged=function(){var v=this.getCurrentShort();if(v&&this.enableFormatFirst(v)&&(v==null?0:v.thumbnail)&&We5(v.thumbnail)!==.5625){var Q;(Q=this.player)==null||Q.setSize(NaN,NaN)}};
_.K.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.K.moveCinematicsToVideo=function(){var v=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer");(v==null?0:v.cinematicContainer)&&v.cinematicContainer!==this.shortsCinematicContainer.parentElement&&v.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.K.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.K.updatePrevButtonData=function(){var v=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);v?this.prevButtonData=v=Object.assign({},v,{accessibility:{label:_.Lt("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.Lt("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=v=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.K.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.K.updateNextButtonData=function(){var v=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);v&&(this.nextButtonData=v=Object.assign({},v,{accessibility:{label:_.Lt("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.Lt("NEXT_VIDEO_LABEL")||""}))};
_.K.getPlayablePreviousIndex=function(){for(var v,Q=this.index-1;Q>=-(((v=this.prevShortsSequence)==null?void 0:v.length)||0);Q--)if(!EUJ().includes(Q))return Q;return null};
_.K.getIndexInSequence=function(v,Q){return v.findIndex(function(V){var E;return((E=_.y(V.command,_.PH))==null?void 0:E.videoId)===Q})};
_.K.handlePrevButtonClick=function(v){var Q=this,V,E;return _.e(function(b){V=Q.getPlayablePreviousIndex();if(V===null)return b.return();Q.gestureType=((E=v)==null?void 0:E.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";V===0&&(Q.hidePreviousButtonImmediately=!0);if(Q.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Q.scrollToVideoThrottle.fire(V,"auto")}),b.return();
Q.scrollToVideoThrottle.fire(V);_.q1(b)})};
_.K.getPlayableNextIndex=function(){for(var v,Q,V=this.index+1;V<(this.enableShortsSequenceRefactorUnify?(v=this.shortsContentList)==null?void 0:v.length:((Q=this.shortsProcessedSequence)==null?void 0:Q.length)||0);V++)if(!EUJ().includes(V))return V;return null};
_.K.handleNextButtonClick=function(v,Q){var V=this,E,b;return _.e(function(F){E=V.getPlayableNextIndex();if(E===null)return F.return();E===1&&(V.showPreviousButtonImmediately=!0);V.gestureType=((b=v)==null?void 0:b.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Q&&(V.gestureType=Q);if(V.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){V.scrollToVideoThrottle.fire(E,"auto")}),F.return();
V.scrollToVideoThrottle.fire(E);_.q1(F)})};
_.K.handleReelNavigateCommand=function(v,Q,V){(v=_.y(v,keV))&&Q&&v.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(V)};
_.K.loadVideo=function(v,Q){Q=Q===void 0?!1:Q;if(v!==this.currentPlayerIndex){_.oF().dispatch(t_I(!1));if(this.isAd()&&!Q){var V;(V=this.player)==null||V.notifyShortsAdSwipeEvent()}if((Q=this.JSC$22818_cinematicController)!=null){var E;(E=Q.currentCinematicEffect)==null||E.pause()}if((E=this.JSC$22818_cinematicController)!=null){var b;(b=E.currentCinematicEffect)==null||b.clear()}E=v>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(E));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var F,t,p,Z,d,w;b=this.enableShortsSequenceRefactorUnify?(F=this.shortsContentList)==null?void 0:(t=F[v])==null?void 0:t.command:v<0?(p=this.shortsProcessedPrevSequence)==null?void 0:(Z=p[this.shortsProcessedPrevSequence.length+v])==null?void 0:Z.command:(d=this.shortsProcessedSequence)==null?void 0:(w=d[v])==
null?void 0:w.command;this.index=v;this.gestureType||(this.gestureType=E?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");b&&this.isVideoContentCommand(b)&&(this.ytComponentBehavior.resolveCommand(b,{form:{createScreenConfig:{clickedVisualElement:E?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(b&&this.isNonVideoContentCommand(b)){this.currentEndpoint=b;this.data=void 0;F=_.tR();t=_.y(b,_.EO);var A,k;(t=(A=
_.y(t==null?void 0:t.renderer,_.FC))==null?void 0:(k=A.screenLoggingData)==null?void 0:k.screenVeType)&&_.S5(F,t);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(A=this.getActiveReelVideo(v))&&A.appendChild(this.overlayContainer)}var T,c;A=this.enableShortsSequenceRefactorUnify?((T=this.shortsContentList)==null?void 0:T.length)===v+1:((c=this.reelWatchSequenceResponse)==null?void 0:c.entries)&&v===this.reelWatchSequenceResponse.entries.length-1;var C;if(((C=
this.reelWatchSequenceResponse)==null?0:C.continuationEndpoint)&&A){var R,l;T={contentPlaybackContext:_.vZ({},(l=_.y((R=this.currentEndpoint)==null?void 0:R.commandMetadata,_.Kt))==null?void 0:l.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:T})}var S,a;v=this.enableShortsSequenceRefactorUnify?v===0:v===-(((S=this.reelWatchSequenceResponse)==null?void 0:(a=S.prevEntries)==null?void 0:a.length)||0);var g,u;((g=this.reelWatchSequenceResponse)==
null?0:g.prevContinuationEndpoint)&&((u=this.reelWatchSequenceResponse)==null?0:u.prevEntries)&&v&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.K.setMiniplayerPreview=function(v){v=(v===void 0?0:v)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var Q,V,E,b,F=_.ht().resolve(_.lJ),t={shortsData:void 0,shortsPreviewThumbnail:v?this.enableShortsSequenceRefactorUnify?(Q=this.shortsContentList)==null?void 0:(V=Q[v])==null?void 0:V.thumbnail:(E=this.shortsProcessedSequence)==null?void 0:(b=E[v])==null?void 0:b.thumbnail:void 0};_.SF(F,t)};
_.K.updateTitle=function(v){var Q,V;v=(v==null?0:v.adSlots)?"":(V=v==null?void 0:(Q=v.videoDetails)==null?void 0:Q.title)!=null?V:"";_.Hj(this.hostElement,"yt-update-title",v)};
_.K.registerPanel=function(v){var Q=_.ht().resolve(_.$2);if(Q){v=_.L(v.engagementPanels||[]);for(var V=v.next();!V.done;V=v.next()){V=V.value;var E=this.getPanelIdentifier(V.engagementPanelSectionListRenderer),b=void 0,F=void 0;(F=(b=Q).registerPanelContent)==null||F.call(b,E,V)}}};
_.K.getPanelIdentifier=function(v){var Q;return(v==null?void 0:(Q=v.identifier)==null?void 0:Q.tag)||(v==null?void 0:v.panelIdentifier)||(v==null?void 0:v.targetId)};
_.K.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.oF().dispatch(t_I(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.oF().dispatch(ial(!1));
var v;(v=this.shortsController)!=null&&(v.dismissedIndices=[]);var Q;(Q=this.shortsController)!=null&&Q.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.ht().resolve(_.lJ).close(!0)};
_.K.processAppendReelWatchSequenceContinuationEntriesAction=function(v){var Q=this,V;(V=this.intersectionObserver)==null||V.disconnect();v=v.appendReelWatchSequenceContinuationEntriesAction;if(v==null?0:v.entries){var E;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ui(((E=this.reelWatchSequenceResponse)==null?void 0:E.entries)||[]),_.ui(v.entries)),continuationEndpoint:v.continuationEndpoint})}else if(v==null?0:v.prevEntries){var b;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ui(((b=this.reelWatchSequenceResponse)==null?void 0:b.prevEntries)||[]),_.ui(v.prevEntries)),prevContinuationEndpoint:v.prevContinuationEndpoint});_.XT.addLowPriorityJob(function(){Q.movePlayerToVideo(Q.index);Q.scrollToVideoThrottle.fire(Q.index,"instant")})}else return;
_.XT.addLowPriorityJob(function(){Q.observeShorts()},100)};
_.K.processWatchSequence=function(v){var Q=this;return v.map(function(V){V=V.command;if(Q.isVideoContentCommand(V)){var E=_.y(V,_.PH);return{reelPlayerOverlayRenderer:_.y(E==null?void 0:E.overlay,_.vX8),thumbnail:E.thumbnail,command:V}}return Q.isNonVideoContentCommand(V)?(E=_.y(V,_.EO),{reelNonVideoContentRenderer:_.y(E==null?void 0:E.renderer,_.FC),command:V}):{command:V}})};
_.K.calculateIntersectionObserverThreshold=function(){var v=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer"),Q=1;(v==null?0:v.offsetHeight)&&(v==null?0:v.offsetWidth)&&(Q=Math.min(v.offsetHeight,this.shortsContainer.offsetHeight)/v.offsetHeight*(Math.min(v.offsetWidth,this.shortsContainer.offsetWidth)/v.offsetWidth));return Math.round(Q*.6*10)/10};
_.K.isVideoContentCommand=function(v){_.ht().resolve(_.Na);return!!_.y(v,_.PH)};
_.K.isNonVideoContentCommand=function(v){_.ht().resolve(_.Na);return!!_.y(v,_.EO)};
_.K.initCinematicController=function(){var v=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22818_cinematicController=new _.TF(this.shortsCinematicContainer,this.player);var Q,V=_.y((Q=this.data)==null?void 0:Q.background,_.vG);_.zIj(this.JSC$22818_cinematicController,V);_.Shc(this.JSC$22818_cinematicController,agP(V));_.qhJ(this.JSC$22818_cinematicController);_.XT.addLowPriorityJob(function(){v.moveCinematicsToVideo()})}};
_.K.handleMiniplayerNavigateShorts=function(v){v==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():v==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.K.handleSignalActionToggleShortsPictureInPicture=function(){if(_.ht().resolve(_.lJ).pictureInPictureSupported()){var v=_.ht().resolve(_.Na);if(_.Y("web_shorts_pip")){var Q=_.ht().resolve(_.lJ);v.isShortsPipActive()?Q.deactivate():Q.isMiniplayerActive()||(_.u9().shortsPipActivation=!0,_.ey5(Q))}}else(v=this.player)==null||v.togglePictureInPicture()};
_.hr.Object.defineProperties(DB.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.reelWatchSequenceResponse)!=null&&v.prevEntries)return this.processWatchSequence([].concat(_.ui(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.ui(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.reelWatchSequenceResponse)!=null&&v.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var v=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var Q;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((Q=this.shortsProcessedSequence)==null?void 0:Q.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var V;Q=_.y((V=this.firstShortsData)==null?void 0:V.command,_.PH);if(Q==null||!Q.videoId)return this.shortsProcessedSequence;V=this.getIndexInSequence(this.shortsSequence,
Q.videoId);if(V!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=V,_.XT.addLowPriorityJob(function(){v.scrollToVideoThrottle.fire(v.index,"auto");v.movePlayerToVideo(v.index)}));
return[].concat(_.ui(this.shortsSequence))}_.Lq(_.XT,function(){v.observeShorts()},100);
return[this.firstShortsData].concat(_.ui(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var v=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;v&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(v)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var v;return this.index===((v=this.shortsContentList)==null?NaN:v.length)-1}if(this.endOfNextContinuation){var Q,V;return this.index===((Q=this.reelWatchSequenceResponse)==null?void 0:(V=Q.entries)==null?void 0:V.length)}var E;return!((E=this.reelWatchSequenceResponse)==null?0:E.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var v;(v=this.delayedActiveIndexUpdateDebouncer)==null||v.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return this.isShortPlayable()||((Q=_.y((v=this.data)==null?void 0:v.watchStatus,_.t4Q))==null?void 0:(V=Q.style)==null?void 0:V.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var v=this,Q=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),V;if((this.data||Q)&&(((V=this.data)==null?0:V.engagementPanels)||this.isAd()||Q)){Q=!1;this.activePanel="shorts-comments-panel";var E;V=_.L(((E=this.data)==null?void 0:E.engagementPanels)||[]);for(E=V.next();!E.done;E=V.next())if(this.getPanelIdentifier(E.value.engagementPanelSectionListRenderer)===this.activePanel){Q=!0;break}if(this.isPersistentPanelActive){var b=
_.ht().resolve(_.$2);_.go(_.XT,function(){b.showPanel({identifier:v.activePanel,target:null})},100)}var F;
E=[].concat(_.ui(Object.values(((F=this.data)==null?void 0:F.engagementPanels)||{})));F=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);V=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return F===void 0&&V===void 0||(F==null?0:F.isDisabled)||(V==null?void 0:V.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!Q?(Q=E==null?void 0:E.findIndex(function(t){var p,Z;return((p=t.engagementPanelSectionListRenderer)==null?void 0:(Z=p.identifier)==null?void 0:Z.tag)==="shorts-comments-panel"}),Q===-1||Q===void 0||E!=null&&E.splice(Q,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Lt("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Lt("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:_.Lt("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Lt("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(_.ui(Object.values(E||
{})))):E}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var v=this,Q,V,E;if((Q=this.playerData)==null?0:(V=Q.playabilityStatus)==null?0:(E=V.errorScreen)==null?0:E.playerInterstitialRenderer)return _.XT.addLowPriorityJob(function(){v.movePlayerToVideo(v.index)}),this.playerData.playabilityStatus.errorScreen;
var b,F;return((b=this.data)==null?void 0:b.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((F=this.data)==null?0:F.watchStatus)&&_.y(this.data.watchStatus,_.RfN)?(_.XT.addLowPriorityJob(function(){v.movePlayerToVideo(v.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.hr.Object.defineProperties(DB,{template:{configurable:!0,enumerable:!0,get:function(){if(fQI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);fQI=v}v=fQI;return v}}});
DB.prototype.onNextButtonDataChange=DB.prototype.onNextButtonDataChange;DB.prototype.onPrevButtonDataChange=DB.prototype.onPrevButtonDataChange;DB.prototype.onPersistentPanelActiveChanged=DB.prototype.onPersistentPanelActiveChanged;DB.prototype.lazyUpdateMiniplayerData=DB.prototype.lazyUpdateMiniplayerData;DB.prototype.onShortsPipActiveChanged=DB.prototype.onShortsPipActiveChanged;DB.prototype.setActiveIndex=DB.prototype.setActiveIndex;DB.prototype.graftNvcRenderer=DB.prototype.graftNvcRenderer;
DB.prototype.graftClientVisualElements=DB.prototype.graftClientVisualElements;DB.prototype.onActiveChanged=DB.prototype.onActiveChanged;DB.prototype.onShortsDismiss=DB.prototype.onShortsDismiss;DB.prototype.onShortUndoDismiss=DB.prototype.onShortUndoDismiss;DB.prototype.playerDataChanged=DB.prototype.playerDataChanged;DB.prototype.afterPlayerStarted=DB.prototype.afterPlayerStarted;DB.prototype.updateReelWatchSequenceResponse=DB.prototype.updateReelWatchSequenceResponse;
DB.prototype.unhideCurrentOverlay=DB.prototype.unhideCurrentOverlay;DB.prototype.onServiceRequestCompleted=DB.prototype.onServiceRequestCompleted;DB.prototype.engagementPanelsChanged=DB.prototype.engagementPanelsChanged;DB.prototype.onFullscreenChange=DB.prototype.onFullscreenChange;DB.prototype.onResize=DB.prototype.onResize;DB.prototype.setShortsContentList=DB.prototype.setShortsContentList;DB.prototype.setFirstShortsData=DB.prototype.setFirstShortsData;
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DB.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.EF.YtPageBehavior),_.X("design:type",Object)],DB.prototype,"ytPageBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],DB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],DB.prototype,"ironResizableBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],DB.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],DB.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],DB.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"playerData",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"reelWatchSequenceResponse",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"cachedReelWatchSequenceResponse",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"cachedSequenceParams",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"cachedSequenceProvider",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"currentEndpoint",void 0);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"nextButtonData",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"prevButtonData",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"isPreviousPageShorts",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"index",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"delayedActiveIndex",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"playablePreviousIndex",void 0);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"player",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"isPlayerPaused",void 0);_.W([_.q({selector:XMe}),_.X("design:type",Object)],DB.prototype,"isPlayerStarted",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"intersectionObserver",void 0);_.W([_.q(),_.X("design:type",Number)],DB.prototype,"cinematicsInitializeJobId",void 0);_.W([_.q(),_.X("design:type",Number)],DB.prototype,"updateMiniplayerDataJobId",void 0);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"fitToVisibleBounds",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"pageSubtype",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],DB.prototype,"enablePreviousContinuation",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"shortsPipEnabled",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"isDark",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"shortsViewTransitions",void 0);_.W([_.q({selector:_.I7,reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"isFullscreen",void 0);_.W([_.q({selector:_.Hw,reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"isShortsPipActive",void 0);_.W([_.Z7("#shorts-inner-container"),_.X("design:type",HTMLElement)],DB.prototype,"shortsInnerContainer",void 0);
_.W([_.Z7("#back-nav-button ytd-button-renderer"),_.X("design:type",_.ym)],DB.prototype,"backNavButton",void 0);_.W([_.Z7("#shorts-container"),_.X("design:type",HTMLElement)],DB.prototype,"shortsContainer",void 0);_.W([_.Ke("error-screen"),_.X("design:type",HTMLElement)],DB.prototype,"errorScreenContainer",void 0);_.W([_.Ke("player"),_.X("design:type",Object)],DB.prototype,"playerElement",void 0);
_.W([_.Ke("shorts-cinematic-container"),_.X("design:type",HTMLElement)],DB.prototype,"shortsCinematicContainer",void 0);_.W([_.Ke("initial-player-container"),_.X("design:type",HTMLElement)],DB.prototype,"initialPlayerContainer",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"buttonOverride",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"anchoredPanelActive",void 0);_.W([_.q(),_.X("design:type",String)],DB.prototype,"activePanel",void 0);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"isActive",void 0);_.W([_.q({selector:oJc,reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"smallScreenPersistentPanel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"isPersistentPanelActive",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"smallScreenSqueezeBack",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"enableScrollIntoViewCenter",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"formatFirst",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"enableFlexibleOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"extractOverlay",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"useAspectRatio",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],DB.prototype,"enableShortsSequenceRefactorUnify",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"shortsController",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"panelContainer",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"overlayContainer",void 0);_.W([_.q(),_.X("design:type",Array)],DB.prototype,"carouselContainers",void 0);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"isShortsInitialized",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"firstShortsData",void 0);_.W([_.q(),_.X("design:type",Object)],DB.prototype,"firstShortsDataModel",void 0);_.W([_.q(),_.X("design:type",Array)],DB.prototype,"shortsContentList",void 0);_.W([_.O("reelWatchSequenceResponse"),_.X("design:type",Object),_.X("design:paramtypes",[])],DB.prototype,"prevShortsSequence",null);
_.W([_.O("data","prevShortsSequence"),_.O("data","prevShortsSequence"),_.X("design:type",Object),_.X("design:paramtypes",[])],DB.prototype,"shortsProcessedPrevSequence",null);_.W([_.O("reelWatchSequenceResponse"),_.X("design:type",Object),_.X("design:paramtypes",[])],DB.prototype,"shortsSequence",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"setFirstShortsData",null);
_.W([_.ph("reelWatchSequenceResponse","firstShortsData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"setShortsContentList",null);_.W([_.O("data","shortsSequence","firstShortsData"),_.X("design:type",Object),_.X("design:paramtypes",[])],DB.prototype,"shortsProcessedSequence",null);
_.W([_.q({reflectToAttribute:!0}),_.O("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DB.prototype,"isUpArrowHidden",null);_.W([_.q({reflectToAttribute:!0}),_.O("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DB.prototype,"isDownArrowHidden",null);
_.W([_.q(),_.O("index"),_.X("design:type",Number),_.X("design:paramtypes",[])],DB.prototype,"activeIndex",null);_.W([_.O("isShortPlayable","data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DB.prototype,"shouldRenderOfflineContent",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onResize",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],DB.prototype,"anchoredEngagementPanels",null);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"watchWhileEngagementPanels",void 0);_.W([_.ph("isFullscreen"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onFullscreenChange",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"engagementPanelsChanged",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],DB.prototype,"onServiceRequestCompleted",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"unhideCurrentOverlay",null);_.W([_.ph("currentEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"updateReelWatchSequenceResponse",null);
_.W([_.ph("isPlayerStarted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"afterPlayerStarted",null);_.W([_.O("playerData","reelWatchSequenceResponse","data"),_.X("design:type",Object),_.X("design:paramtypes",[])],DB.prototype,"errorScreen",null);_.W([_.O("errorScreen"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],DB.prototype,"hasError",null);
_.W([_.ph("playerData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],DB.prototype,"playerDataChanged",null);_.W([_.tM("yt-dismissible-item-undo-feedback"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onShortUndoDismiss",null);_.W([_.tM("yt-disable-lockup-interaction"),_.X("design:type",Function),_.X("design:paramtypes",[Object]),_.X("design:returntype")],DB.prototype,"onShortsDismiss",null);
_.W([_.wg("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onActiveChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"graftClientVisualElements",null);_.W([_.ph("currentPlayerIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"graftNvcRenderer",null);
_.W([_.ph("index"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"setActiveIndex",null);_.W([_.ph("isShortsPipActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onShortsPipActiveChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"lazyUpdateMiniplayerData",null);
_.W([_.q(),_.X("design:type",Object)],DB.prototype,"onOverlayDensityChanged",void 0);_.W([_.ph("isPersistentPanelActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onPersistentPanelActiveChanged",null);_.W([_.ph("index","data","isUpArrowHidden"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onPrevButtonDataChange",null);
_.W([_.ph("index","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DB.prototype,"onNextButtonDataChange",null);_.W([_.J({is:"ytd-shorts"})],DB);_.Vm.registerService(_.d4r,DB);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("JzFVk");
var NIn;var xNf;var UF=function(){return _.z.apply(this,arguments)||this};
_.f(UF,_.z);UF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UF.prototype.computeBlueBottomLink=function(v){return v};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],UF.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.bottomIcon)"}),_.X("design:type",String)],UF.prototype,"bottomIcon",void 0);
_.W([_.q({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.X("design:type",Boolean)],UF.prototype,"enableBlueBottomLink",void 0);_.W([_.J({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],UF);
_.B(UF,"ytd-web-answer-renderer",function(){if(xNf!==void 0)return xNf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xNf=v},{mode:_.mV("kevlar_poly_si_batch_j035")?1:2});var BIn;var vQ=function(){var v=_.z.apply(this,arguments)||this;v.hasChipBar=!1;return v};
_.f(vQ,_.z);vQ.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}}};
vQ.prototype.computeHasChipBar=function(v){return!(v==null||!v.chipBar)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.X("design:type",Object)],vQ.prototype,"hasChipBar",void 0);_.W([_.J({is:"ytd-search-header-renderer",disableElementRegistration:!0})],vQ);
_.B(vQ,"ytd-search-header-renderer",function(){if(BIn!==void 0)return BIn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return BIn=v},{mode:1});var g4n;var QR=function(){return _.z.apply(this,arguments)||this};
_.f(QR,_.z);QR.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],QR.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-page-continuation"})],QR);
_.B(QR,"ytd-page-continuation",function(){if(g4n!==void 0)return g4n;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return g4n=v},{mode:1});var sbl;var uHb;var jbP;var WQ5=function(){return _.z.apply(this,arguments)||this};
_.f(WQ5,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],WQ5.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WQ5.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],WQ5);
_.B(WQ5,"ytd-watch-card-one-vs-one-event",function(){if(jbP!==void 0)return jbP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return jbP=v},{mode:1});var o4J=function(){return _.z.apply(this,arguments)||this};
_.f(o4J,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],o4J.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],o4J.prototype,"data",void 0);_.W([_.J({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],o4J);
_.B(o4J,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(uHb!==void 0)return uHb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return uHb=v},{mode:1});var X4q;var aTP=function(){return _.z.apply(this,arguments)||this};
_.f(aTP,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],aTP.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aTP.prototype,"data",void 0);_.W([_.J({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],aTP);
_.B(aTP,"ytd-banner-and-box-hero-image-renderer",function(){if(X4q!==void 0)return X4q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return X4q=v},{mode:1});var rdl;var VR=function(){var v=_.z.apply(this,arguments)||this;v.modern=_.Y("web_modern_buttons");return v};
_.f(VR,_.z);VR.prototype.computeIcon=function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.icon)==null?void 0:Q.iconType;if(V)return _.VK(V)};
VR.prototype.computeButtonShape=function(){var v;return{buttonText:_.j0((v=this.data)==null?void 0:v.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.hr.Object.defineProperties(VR.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],VR.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],VR.prototype,"modern",void 0);_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.style"),_.X("design:type",Object),_.X("design:paramtypes",[])],VR.prototype,"buttonColor",null);
_.W([_.J({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],VR);
_.B(VR,"ytd-call-to-action-button-renderer",function(){if(rdl!==void 0)return rdl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return rdl=v},{mode:1});var $Nn;var ED=function(){return _.z.apply(this,arguments)||this};
_.f(ED,_.z);ED.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.m9(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.rE(this.data.leftThumbnail.thumbnails,216)+")")};
ED.prototype.onLeftThumbnailChanged=ED.prototype.onLeftThumbnailChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ED.prototype,"data",void 0);_.W([_.ph("data.leftThumbnail"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ED.prototype,"onLeftThumbnailChanged",null);_.W([_.J({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],ED);
_.B(ED,"ytd-collage-hero-image-renderer",function(){if($Nn!==void 0)return $Nn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return $Nn=v},{mode:1});var ITf;var bs=function(){return _.z.apply(this,arguments)||this};
_.f(bs,_.z);bs.prototype.computeStyle=function(v){return v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bs.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.X("design:type",String)],bs.prototype,"componentStyle",void 0);_.W([_.J({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],bs);
_.B(bs,"ytd-single-hero-image-renderer",function(){if(ITf!==void 0)return ITf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ITf=v},{mode:1});var Hwd;var Fc=function(){return _.z.apply(this,arguments)||this};
_.f(Fc,_.z);_.K=Fc.prototype;
_.K.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:_.Y("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.K.computeSubtitle=function(v){if(this.data){var Q;if(this.data.upcomingEventData){v=_.j0(v.subtitle);var V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(Q=_.u3(_.kl(v,V)))}else Q=v.subtitle;return Q}};
_.K.onHeroTap=function(v){v.preventDefault();var Q=this.data&&this.data.navigationEndpoint;!Q||!_.j$(_.uK(v),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.j$(_.uK(v),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.Y("kevlar_watchcard_hero_video_renderer_killswitch")?_.Hj(this.hostElement,"yt-navigate",{navigationEndpoint:Q}):this.ytComponentBehavior.resolveCommand(Q))};
_.K.computeHeroTabIndex=function(v){return v&&v.simpleText?-1:0};
_.K.computeHeroRole=function(v){return v&&v.simpleText?"":"link"};
_.K.computeIsReminderButtonPresent=function(v){return!(!v||!v.reminderButton)};
_.K.computeHideBottomItems=function(v){return!(this.computeIsReminderButtonPresent(v)||v.subtitle)};
_.K.dataChanged=function(){var v=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Q;((Q=_.y(v==null?void 0:v.commandMetadata,_.u7))==null?0:Q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(v)};
Fc.prototype.dataChanged=Fc.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Fc.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Fc.prototype,"data",void 0);
_.W([_.q({computed:"computeSubtitle(data)"}),_.X("design:type",String)],Fc.prototype,"subtitle",void 0);_.W([_.q({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Fc.prototype,"isReminderButtonPresent",void 0);_.W([_.q({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Fc.prototype,"hideBottomItems",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fc.prototype,"dataChanged",null);_.W([_.J({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Fc);
_.B(Fc,"ytd-watch-card-hero-video-renderer",function(){if(Hwd!==void 0)return Hwd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Hwd=v},{mode:1});var mNl;var KG=function(){return _.z.apply(this,arguments)||this};
_.f(KG,_.z);_.K=KG.prototype;_.K.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"}}}};
_.K.computeTitleBadges=function(v){return v?[v]:[]};
_.K.computeHeaderStyle=function(v){return v?v.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.K.computeAvatarAriaLabel=function(v){if(v){var Q,V,E,b;return(b=(Q=v.avatar)==null?void 0:(V=Q.accessibility)==null?void 0:(E=V.accessibilityData)==null?void 0:E.label)!=null?b:_.j0(v==null?void 0:v.title)}};
_.K.computeAvatarHeight=function(v){return v==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.K.computeBadgeRowClass=function(v){return(v==null?0:v[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],KG.prototype,"data",void 0);_.W([_.q({computed:"computeTitleBadges(data.titleBadge)"}),_.X("design:type",Array)],KG.prototype,"titleBadges",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.X("design:type",String)],KG.prototype,"headerStyle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.X("design:type",String)],KG.prototype,"badgeRowClass",void 0);_.W([_.J({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],KG);
_.B(KG,"ytd-watch-card-rich-header-renderer",function(){if(mNl!==void 0)return mNl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return mNl=v},{mode:1});var UNI;var vJE;var is=function(){return _.z.apply(this,arguments)||this};
_.f(is,_.z);is.prototype.onMetadataTap=function(v){var Q=this.data&&this.data.navigationEndpoint;Q&&!_.j$(_.uK(v),this.hostElement,["A".toString()])&&_.Hj(this.hostElement,"yt-navigate",{endpoint:Q})};
_.hr.Object.defineProperties(is.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v;if(this.data.upcomingEventData){var Q=_.j0(this.data.subtitle),V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(v=_.u3(_.kl(Q,V)))}else v=this.data.subtitle;return v}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],is.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data.style"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],is.prototype,"isCondensed",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],is.prototype,"subtitle",null);
_.W([_.J({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],is);
_.B(is,"ytd-watch-card-compact-video-renderer",function(){if(vJE!==void 0)return vJE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vJE=v},{mode:1});var QDJ;var VKl=function(){return _.z.apply(this,arguments)||this};
_.f(VKl,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],VKl.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],VKl.prototype,"data",void 0);_.W([_.J({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],VKl);
_.B(VKl,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(QDJ!==void 0)return QDJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return QDJ=v},{mode:1});var LG=function(){return _.z.apply(this,arguments)||this};
_.f(LG,_.z);LG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],LG.prototype,"ytRendererStamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],LG.prototype,"data",void 0);_.W([_.J({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],LG);
_.B(LG,"ytd-vertical-watch-card-list-renderer",function(){if(UNI!==void 0)return UNI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return UNI=v},{mode:1});var EJb;var tz=function(){var v=_.z.apply(this,arguments)||this;v.ariaExpanded="false";return v};
_.f(tz,_.z);_.K=tz.prototype;_.K.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.K.dataChanged=function(){var v;this.currentSeasonIndex=((v=this.data)==null?void 0:v.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.K.computeEpisodesInfo=function(v,Q,V){if(v!==void 0&&Q.length===v.length)return v[V]};
_.K.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.K.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.K.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.K.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.K.getUppercaseSimpleString=function(v){return this.ytRendererBehavior.getSimpleString(v).toUpperCase()};
_.K.updateCurrentSeasonIndexFromBinding=function(v){this.currentSeasonIndex=v.detail.value};
tz.prototype.onIronOverlayClosed=tz.prototype.onIronOverlayClosed;tz.prototype.currentSeasonIndexChanged=tz.prototype.currentSeasonIndexChanged;tz.prototype.dataChanged=tz.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tz.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",String)],tz.prototype,"label",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],tz.prototype,"currentSeasonIndex",void 0);_.W([_.q({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.X("design:type",Object)],tz.prototype,"episodesInfo",void 0);_.W([_.q({value:"false"}),_.X("design:type",Object)],tz.prototype,"ariaExpanded",void 0);_.W([_.Z7("#lists"),_.X("design:type",Object)],tz.prototype,"lists",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tz.prototype,"dataChanged",null);_.W([_.wg("currentSeasonIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tz.prototype,"currentSeasonIndexChanged",null);_.W([_.tM("iron-overlay-closed"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],tz.prototype,"onIronOverlayClosed",null);
_.W([_.J({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],tz);
_.B(tz,"ytd-watch-card-section-dropdown-renderer",function(){if(EJb!==void 0)return EJb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return EJb=v},{mode:1});var bgj;var pG=function(){var v=_.z.apply(this,arguments)||this;v.isSearch=!1;return v};
_.f(pG,_.z);pG.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pG.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],pG.prototype,"isSearch",void 0);_.W([_.J({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],pG);
_.B(pG,"ytd-watch-card-section-sequence-renderer",function(){if(bgj!==void 0)return bgj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return bgj=v},{mode:1});var FeV=_.x(function(v){return _.P("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.P(_.Pw,{data:function(){return v.data().ctaButton}},{buttonViewModel:_.D6}),_.P(_.tD,{text:function(){return v.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"on");
FeV.idomCompat=!0;_.ad(FeV,"ytd-button-banner-view-model",{props:{data:_.pJ}});var eG=function(){var v=_.z.apply(this,arguments)||this;v.isSearch=!1;return v};
_.f(eG,_.z);
eG.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],eG.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],eG.prototype,"rounded",void 0);_.W([_.q(),_.X("design:type",Object)],eG.prototype,"isSearch",void 0);
_.W([_.J({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],eG);
_.B(eG,"ytd-universal-watch-card-renderer",function(){if(sbl!==void 0)return sbl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return sbl=v},{mode:1});var KeE;_.ad(_.x(function(v){var Q=v.data;var V;v=!((V=_.ht().resolve(_.d$(_.JR)))==null||!V());V={};return _.P("overview-message-view-model",{class:_.QZ("ytwOverviewMessageViewModelHost",(V.ytwOverviewMessageViewModelDarkBackground=v,V.ytwOverviewMessageViewModelLightBackground=!v,V))},_.P(_.h,{cond:function(){return Q().primaryImage},
then:function(E){return _.P(_.gE,{data:E,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.P(_.h,{cond:function(){return Q().primaryText},
then:function(){return _.P("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.P(_.tD,{text:function(){return Q().primaryText}}))}}),_.P(_.h,{cond:function(){return Q().secondaryText},
then:function(){return _.P("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.P(_.tD,{text:function(){return Q().secondaryText}}))}}))},"pn"),"overview-message-view-model",{props:{data:_.pJ}});_.ad(_.Pbq,"ytd-overview-answer-view-model",{props:{data:_.pJ}});var ZB=function(){return _.z.apply(this,arguments)||this};
_.f(ZB,_.z);ZB.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"}}}};
ZB.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],ZB.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ZB.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],ZB.prototype,"isSearch",void 0);
_.W([_.J({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],ZB);
_.B(ZB,"ytd-secondary-search-container-renderer",function(){if(KeE!==void 0)return KeE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return KeE=v},{mode:1});var igf;var PQ=function(){var v=_.z.apply(this,arguments)||this;v.renderSecondarySearchContainer=!1;v.isSearch=!1;return v};
_.f(PQ,_.z);_.K=PQ.prototype;_.K.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"}}}};
_.K.created=function(){var v=this;this.boundStampSecondarySearchContainerIfFits=function(){v.stampSecondarySearchContainerIfFits()};
_.aS("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.K.computeIsSearchFrictionPage=function(v){var Q,V,E,b,F;v=v==null?void 0:(Q=v.primaryContents)==null?void 0:(V=Q.sectionListRenderer)==null?void 0:(E=V.contents)==null?void 0:(b=E[0])==null?void 0:(F=b.itemSectionRenderer)==null?void 0:F.contents;if(!v)return!1;Q=_.L(v);for(V=Q.next();!V.done;V=Q.next())if(E=void 0,(E=V.value)==null?0:E.searchFrictionViewModel)return!0;return!1};
_.K.computeShowSecondaryColumn=function(v,Q){return!!(Q&&Q.secondaryContents&&v)};
_.K.activeChanged=function(){var v=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Lh(this,this.debounceStampSecondarySearchContainerIfFits)),_.JM(function(){v.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Lh(this,this.debounceStampSecondarySearchContainerIfFits))};
_.K.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.K.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.K.debounceStampSecondarySearchContainerIfFits=function(){_.Nf(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.K.onRetrieveLocation=function(v,Q){Q.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);v.stopPropagation()};
_.K.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
PQ.prototype.dataChanged=PQ.prototype.dataChanged;PQ.prototype.onRetrieveLocation=PQ.prototype.onRetrieveLocation;PQ.prototype.persistentGuideChanged=PQ.prototype.persistentGuideChanged;PQ.prototype.activeChanged=PQ.prototype.activeChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],PQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],PQ.prototype,"ironResizableBehavior",void 0);_.W([_.q(),_.X("design:type",Boolean)],PQ.prototype,"active",void 0);_.W([_.q(),_.X("design:type",Object)],PQ.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.X("design:type",Boolean)],PQ.prototype,"useBiggerThumbs",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.y9("desktop_search_bigger_thumbs_style")}}),
_.X("design:type",String)],PQ.prototype,"biggerThumbsStyle",void 0);_.W([_.q(),_.X("design:type",Object)],PQ.prototype,"renderSecondarySearchContainer",void 0);_.W([_.q({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.X("design:type",Boolean)],PQ.prototype,"showSecondaryColumn",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.X("design:type",Boolean)],PQ.prototype,"isSearchFrictionPage",void 0);
_.W([_.q(),_.X("design:type",Object)],PQ.prototype,"isSearch",void 0);_.W([_.ph("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PQ.prototype,"activeChanged",null);_.W([_.ph("guidePersistentAndVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PQ.prototype,"persistentGuideChanged",null);
_.W([_.tM("yt-retrieve-location"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],PQ.prototype,"onRetrieveLocation",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PQ.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],PQ);
_.B(PQ,"ytd-two-column-search-results-renderer",function(){if(igf!==void 0)return igf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return igf=v},{mode:1});var dQ=function(){var v=_.z.apply(this,arguments)||this;v.hasSearchHeader=!1;v.hasSecondaryContent=!1;v.hasBiggerThumbs=_.Y("enable_desktop_search_bigger_thumbs");v.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return v};
_.f(dQ,_.z);_.K=dQ.prototype;_.K.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:_.Jm(["aa","eocs"])}}};
_.K.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.K.loadPage_=function(v){this.initCsi();v&&(this.data=v,_.aS("REFINEMENTS_TUPLE",["FromSearchResponse",v.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Lp(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.K.initCsi=function(){_.uII("results",["ol","cpt"])};
_.K.updateTitle=function(){var v=_.me(window.location.href,"q");v||(v=_.me(window.location.href,"search_query"));_.Hj(this.hostElement,"yt-update-title",v||"")};
_.K.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.K.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.Y("web_srp_data_changed_terminate_imp_killswitch")||_.mb(this.hostElement,"yt-terminate-video-preview-action")};
_.K.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.K.computeHasSearchHeader=function(v){var Q;v=v==null?void 0:(Q=v.header)==null?void 0:Q.searchHeaderRenderer;return!!v&&(!!v.searchFilterButton||!!v.chipBar)};
_.K.computeHasSecondaryContent=function(v){var Q,V;return!!(v==null?0:(Q=v.contents)==null?0:(V=Q.twoColumnSearchResultsRenderer)==null?0:V.secondaryContents)};
_.hr.Object.defineProperties(dQ,{template:{configurable:!0,enumerable:!0,get:function(){if(NIn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);NIn=v}v=NIn;return v}}});
dQ.prototype.onReloadContinuationFinish=dQ.prototype.onReloadContinuationFinish;dQ.prototype.dataChanged=dQ.prototype.dataChanged;_.W([_.M(_.EF.YtPageBehavior),_.X("design:type",Object)],dQ.prototype,"ytPageBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],dQ.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],dQ.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dQ.prototype,"data",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],dQ.prototype,"monitorScroll",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],dQ.prototype,"hasSearchHeader",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],dQ.prototype,"hasSecondaryContent",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],dQ.prototype,"hasBiggerThumbs",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],dQ.prototype,"dataChanged",null);
_.W([_.tM("yt-reload-continuation-finish"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],dQ.prototype,"onReloadContinuationFinish",null);_.W([_.J({is:"ytd-search"})],dQ);_.Vm.registerService(_.PZr,dQ);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("h8y2qb");
var WJJ=function(v){if(v=_.VeB(v)){var Q;(Q=v.sources)!=null&&Q[0]?(Q=_.bk3(v),Q=Q<1?"VERTICAL":Q>1?"HORIZONTAL":"SQUARE"):Q=void 0;return Q}},bG=function(v){_.Du.call(this,"upload");
this.opts.query=v},XqP=function(v,Q){return _.P(oPn,{data:v,
onYtNavigate:Q})},a5l=function(v,Q){return _.Fg(v.entities,"pageHeaderEntity",Q)},$jq=function(v,Q){return v.map(function(V){if(V.tabRenderer)return reJ(V.tabRenderer);
if(V.expandableTabRenderer&&Q){var E=V.expandableTabRenderer;return{customTabRenderable:function(){return Q(E)}}}return{}})},reJ=function(v){return{identifier:v.tabIdentifier,
aTagConfig:_.DM({innertubeCommand:v.endpoint,forceNewState:!0}),title:v.title,selected:v.selected,disabled:v.unselectable,icon:v.icon}},I5P=function(v){return _.U2({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:v})},HfV=function(v){if(!_.$W(document,"gtm-noscript")){var Q=document.createElement("noscript");
Q.id="gtm-noscript";Q.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+v+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Q)}};_.HZ(bG,_.Du);bG.prototype.JSC$10154_setLabel=function(v){bG.superClass_.JSC$10154_setLabel.call(this,v);return this};
bG.prototype.addUploadMetadata=function(v,Q){bG.superClass_.addUploadMetadata.call(this,v,Q);return this};var mjf=function(v){if(v!=="youtubebanner"&&v!=="youtube-channel-banner")throw Error("Oo");bG.call(this,v)};
_.f(mjf,bG);mjf.prototype.JSC$10154_setLabel=function(v){bG.prototype.JSC$10154_setLabel.call(this,v);return this};
mjf.prototype.addUploadMetadata=function(v,Q){bG.prototype.addUploadMetadata.call(this,v,Q);return this};var Uj9=[_.WW,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(v){_.wi(v).path[0]!==this&&(this.resetLayout(),v.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var v=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.w9(this._layoutDebouncer,_.AR,v);_.Ac(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var v=this;requestAnimationFrame(function(){v.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(v){this.resizerShouldNotify(v)&&this._notifyDescendant(v)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var vwb=[_.QqQ,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(v,Q){var V=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[v];if(!V)throw new ReferenceError(this._getUndefinedMsg(v));v=this._boundEffect(V,Q||{});v.setUp();return v},
_effectsChanged:function(v,Q,V){this._tearDownEffects();v&&V&&(v.split(" ").forEach(function(E){var b;E!==""&&((b=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[E])?this._effects.push(this._boundEffect(b,Q[E])):console.warn(this._getUndefinedMsg(E)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(v,Q){Q=Q||{};var V=parseFloat(Q.startsAt||0),E=parseFloat(Q.endsAt||1),b=E-V,F=function(){};
E=V===0&&E===1?v.run:function(t,p){v.run.call(this,Math.max(0,(t-V)/b),p)};
return{setUp:v.setUp?v.setUp.bind(this,Q):F,run:v.run?E.bind(this):F,tearDown:v.tearDown?v.tearDown.bind(this):F}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(v){v.setUp()!==!1&&this._effectsRunFn.push(v.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(v){v.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(v,Q){this._effectsRunFn&&this._effectsRunFn.forEach(function(V){V(v,Q)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var v=this._clampedScrollTop;this._updateScrollState(v);this.threshold>0&&this._setThresholdTriggered(v>=this.threshold)}},
_getDOMRef:function(v){console.warn("_getDOMRef","`"+v+"` is undefined")},
_getUndefinedMsg:function(v){return"Scroll effect `"+v+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+v+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Po`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(v){var Q={};v=parseFloat(v.scalar);Q.background=this._getDOMRef("background");Q.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");Q.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");Q.deltaBg=Q.backgroundFrontLayer.offsetHeight-Q.background.offsetHeight;Q.deltaBg===0?(isNaN(v)&&(v=.8),Q.deltaBg=(this._dHeight||0)*v):(isNaN(v)&&(v=
1),Q.deltaBg*=v);this._fxParallaxBackground=Q},
run:function(v){var Q=this._fxParallaxBackground;this.transform("translate3d(0px, "+Q.deltaBg*Math.min(1,v)+"px, 0px)",Q.backgroundFrontLayer);Q.backgroundRearLayer&&this.transform("translate3d(0px, "+Q.deltaBg*Math.min(1,v)+"px, 0px)",Q.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var QaV;var V1c;var Ewd=function(){};
_.K=Ewd.prototype;_.K._scrollTargetChanged=function(){};
_.K.scroll=function(){};
_.K._isValidScrollTarget=function(){};
_.K._toggleScrollListener=function(){};
_.K.toggleScrollListener=function(){};
_.K.createEffect=function(){};
_.K._effectsChanged=function(){};
_.K._layoutIfDirty=function(){};
_.K._boundEffect=function(){};
_.K._setUpEffect=function(){};
_.K._tearDownEffects=function(){};
_.K._runEffects=function(){};
_.K._scrollHandler=function(){};
_.K._scrollStateChanged=function(){};
_.K._getUndefinedMsg=function(){};
_.K.notifyResize=function(){};
_.K.assignParentResizable=function(){};
_.K.stopResizeNotificationsFor=function(){};
_.K._subscribeIronResize=function(){};
_.K._unsubscribeIronResize=function(){};
_.K.resizerShouldNotify=function(){};
_.K._onDescendantIronResize=function(){};
_.K._fireResize=function(){};
_.K._onIronRequestResizeNotifications=function(){};
_.K._parentResizableChanged=function(){};
_.K._notifyDescendant=function(){};
_.K._requestResizeNotifications=function(){};
_.K._findParent=function(){};
_.K._appResetLayoutHandler=function(){};
_.K.resetLayout=function(){};
_.K._notifyLayoutChanged=function(){};
_.K._notifyDescendantResize=function(){};
_.K._setThresholdTriggered=function(){};
Ewd=_.fh({_template:function(){if(V1c!==void 0)return V1c;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;QaV===void 0&&(QaV=document.createElement("template"));var E=QaV;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return V1c=v},
is:"tp-yt-app-header",behaviors:[vwb,Uj9],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var v=_.wi(this.$.slot).getDistributedNodes(),Q=0,V;V=v[Q];Q++)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 v=this._clampedScrollTop,Q=this._height===0||v===0,V=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;Q||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();Q?this._updateScrollState(v,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=V}},
_updateScrollState:function(v,Q){if(this._height!==0){var V=0,E=this._top;var b=this._maxHeaderTop;var F=v-this._lastScrollTop,t=Math.abs(F),p=v>this._lastScrollTop,Z=performance.now();this._mayMove()&&(V=this._clamp(this.reveals?E+F:v,0,b));v>=this._dHeight&&(V=this.condenses&&!this.fixed?Math.max(this._dHeight,V):V,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&t<100){if(Z-this._initTimestamp>300||this._wasScrollingDown!==p)this._initScrollTop=v,this._initTimestamp=Z;v>=b&&
(Math.abs(this._initScrollTop-v)>30||t>10?(p&&v>=b?V=b:!p&&v>=this._dHeight&&(V=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((V-E)/(F/(Z-this._lastTimestamp)),0,300)+"ms"):V=this._top)}b=this._dHeight===0?v>0?1:0:V/this._dHeight;Q||(this._lastScrollTop=v,this._top=V,this._wasScrollingDown=p,this._lastTimestamp=Z);if(Q||b!==this._progress||E!==V||v===0)this._progress=b,this._runEffects(b,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(v){this.translate3d(0,-v+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&v>=this._stickyElTop?Math.min(v,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(v,Q,V){return Math.min(V,Math.max(Q,v))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.wi(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(v){switch(v){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.wi(this).querySelector("[main-title]");case "condensedTitle":return _.wi(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var b$E;var Fkn;_.fh({_template:function(){if(Fkn!==void 0)return Fkn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;b$E===void 0&&(b$E=document.createElement("template"));var E=b$E;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return Fkn=v},
is:"tp-yt-app-header-layout",behaviors:[Uj9],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.wi(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var v=this.header;if(this.isAttached&&v){this.$.wrapper.classList.remove("initializing");v.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)v.style.left=
"",v.style.right="";else{var Q=this.getBoundingClientRect(),V=document.documentElement.clientWidth-Q.right;v.style.left=Q.left+"px";v.style.right=V+"px"}Q=this.$.contentContainer.style;V=v.offsetHeight;v.fixed&&!v.condenses&&this.hasScrollingRegion?(Q.marginTop=V+"px",Q.paddingTop=""):(Q.paddingTop=V+"px",Q.marginTop="")}}});var Kke=new _.FG("alertCommand");var i$J=new _.FG("manageLabsStateCommand");var LkE=new _.FG("inlineFormRenderer");var t1c=new _.FG("playlistSidebarPrimaryInfoRenderer");var pcl=new _.FG("productDetailsThumbnailRenderer"),ekf=new _.FG("productDetailsVariantRenderer"),Z$e=new _.FG("productDetailsVariantOptionRenderer"),Pi5=new _.FG("productDetailsOffersContainerRenderer"),d1P=new _.FG("productDetailsOfferRenderer");var hkP=new _.FG("shoppingFlaggingRenderer");var wcE=new _.FG("playlistBylineRenderer");var ATq=new _.FG("insertChannelTabCommand");var FX=function(){return _.dg.apply(this,arguments)||this};
_.f(FX,_.dg);_.K=FX.prototype;_.K.activeChanged=function(){if(this.active){var v=_.m9(this.hostElement).querySelector("#header");v&&_.Hj(v,"iron-resize");window.addEventListener("scroll",_.Lh(this,this.onScroll))}else window.removeEventListener("scroll",_.Lh(this,this.onScroll)),_.Hj(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.K.guideVisibleChanged=function(){var v=_.m9(this.hostElement).querySelector("#header");v&&_.Hj(v,"iron-resize")};
_.K.onScroll=function(){var v=this;_.Nf(this,"onScroll",function(){var Q=_.m9(v.hostElement).querySelector("#header");Q&&Q.polymerController&&(Q=Q.polymerController.getScrollState().progress===1?"standard":"seamed",_.Hj(v.hostElement,"yt-request-panel-mode-change",{mode:Q}))},10)};
_.K.tabsChanged=function(){if(this.tabs){for(var v=null,Q=0,V=this.tabs.length;Q<V;++Q){var E=this.tabs[Q].tabRenderer;if(E&&E.selected){v=Q;break}}this.selected=v}};
_.K.onTabsActivate=function(v){_.Hj(this.hostElement,"yt-navigate",{endpoint:this.tabs[v.detail.selected].tabRenderer.endpoint})};
FX.prototype.tabsChanged=FX.prototype.tabsChanged;FX.prototype.guideVisibleChanged=FX.prototype.guideVisibleChanged;FX.prototype.activeChanged=FX.prototype.activeChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],FX.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.q(),_.X("design:type",Array)],FX.prototype,"tabs",void 0);
_.W([_.q(),_.X("design:type",Object)],FX.prototype,"selected",void 0);_.W([_.q(),_.X("design:type",Boolean)],FX.prototype,"active",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],FX.prototype,"disableHeaderFluidWidth",void 0);_.W([_.ph("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FX.prototype,"activeChanged",null);
_.W([_.ph("guidePersistentAndVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FX.prototype,"guideVisibleChanged",null);_.W([_.ph("tabs"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],FX.prototype,"tabsChanged",null);_.W([_.hM()],FX);var kCV=[_.H.YtRendererBehavior,_.ip.YtdGuideStateAwareBehavior,FX.prototype];var Tu5=2/3,Y_l=_.Vw(130749),yTP=function(v,Q){var V=this;this.element=v;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:Tu5,moveAction:function(E){V.moveAction(E)},
triggerAction:function(){V.element.isReloading=!0;_.zr(_.tR(),{visualElement:Y_l});_.bd.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:V.element}})}}}};
_.JL(_.tR(),Y_l,this.layer);this.gesture=new _.x1(v,Q,this.refreshConfig,"pan-down");this.attach()};
_.K=yTP.prototype;_.K.attach=function(){this.gesture.attach()};
_.K.detach=function(){this.gesture.detach()};
_.K.reset=function(){this.element.close()};
_.K.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.K.moveAction=function(v){this.element.rotation=v*360};var cTP=_.Vw(130750),GCP=function(v,Q,V,E,b){var F=this;this.element=v;this.parent=V;this.channelHeader=E;this.ytdReduxDispatch=b;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){F.tabsStartAtInPx=F.channelHeader.clientHeight-48;var t;(t=F.selectedTab)!=null&&t.title&&(t=_.ht().resolve(_.d$(_.oJ)))&&(t=t.getCurrentPage(),F.lastVisitedTabScrollPosition=t.getScrollTop(),F.previousTab&&
((F.lastVisitedTabScrollPosition===void 0?0:F.lastVisitedTabScrollPosition<F.channelHeader.clientHeight-48)?F.scrollPositionForTabs.has(F.selectedTab.title)&&F.scrollPositionForTabs.delete(F.selectedTab.title):F.scrollPositionForTabs.set(F.selectedTab.title,t.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:fVb(),triggerAction:function(){F.navigate(F.previousTab)},
moveAction:function(t,p){F.moveAction(t,p)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-fVb(),triggerAction:function(){F.navigate(F.nextTab)},
moveAction:function(t,p){F.moveAction(t,p)}}}};
_.JL(_.tR(),cTP,this.layer);this.gesture=new _.x1(v,Q,this.tabConfig);this.attach()};
_.K=GCP.prototype;_.K.attach=function(){this.gesture.attach()};
_.K.detach=function(){this.gesture.detach()};
_.K.tabsChanged=function(v){if(v){var Q=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;v=_.L(v);for(var V=v.next();!V.done;V=v.next()){V=V.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=V);var E=void 0;if((E=V)==null?0:E.selected)this.previousTab=Q,this.selectedTab=V;Q=V}Q=this.gesture;v=this.getConfig();Q.config=v;this.scrollPositionNeedsUpdate=!0}};
_.K.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.K.moveAction=function(v,Q){if(!this.tabsElement){var V;this.tabsElement=(V=this.parent.header)==null?void 0:V.tabsElement;Q==="right"&&this.previousTab?(V=this.previousTab.endpoint,_.pMh(_.ht().resolve(_.kG),V,{},"")):Q==="left"&&this.nextTab&&(V=this.nextTab.endpoint,_.pMh(_.ht().resolve(_.kG),V,{},""));if(!this.tabsElement)return}V=this.tabsElement._pos;Q==="right"&&(v*=-1);this.tabsElement._positionBar(V.width,V.left*1+V.width*v)};
var fVb=function(){var v,Q;return(Q=(v=_.ht().resolve(_.oJ).getCurrentPage())==null?void 0:v.clientWidth)!=null?Q:0};
GCP.prototype.navigate=function(v){this.element.data=void 0;if(v=v==null?void 0:v.endpoint)this.ytdReduxDispatch(I5P(!0)),_.zr(_.tR(),{visualElement:cTP}),_.bd.instance.resolveCommand({navigateAction:{endpoint:v}},{form:{element:this.element}})};var Cid;var M1d;var KK=function(){return _.z.apply(this,arguments)||this};
_.f(KK,_.z);KK.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],KK.prototype,"data",void 0);_.W([_.J({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],KK);
_.B(KK,"ytd-labs-edit-renderer",function(){if(M1d!==void 0)return M1d;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return M1d=v},{mode:1});var O$j;var iG=function(){var v=_.z.apply(this,arguments)||this;v.dark=!1;v.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";v.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(iG,_.z);iG.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iG.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.setBackgroundImage(v);this.dark=v};
iG.prototype.onDarkModeToggledAction=function(v){this.setBackgroundImage(v);this.dark=v};
iG.prototype.setBackgroundImage=function(v){_.F6(this.hostElement,{"--yt-labs-header-background":"url("+(v?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],iG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],iG.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iG.prototype,"dark",void 0);
_.W([_.J({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],iG);
_.B(iG,"ytd-labs-header-renderer",function(){if(O$j!==void 0)return O$j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return O$j=v},{mode:1});var D1f;var LK=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return v};
_.f(LK,_.z);LK.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"}}}}}};
LK.prototype.onYtToggleButton=function(v){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",v.detail.toggled)};
LK.prototype.onManageLabsState=function(v){if(v=_.y(v,i$J))v.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?v.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&v.labsItemId===this.data.labsItemId&&(v.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.mb(this.hostElement,"yt-check-labs-opted-in-state").some(function(Q){return Q})&&this.data.confirmationDialogCommand?_.Qk(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.ht().resolve(_.At).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&v.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.ht().resolve(_.At).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
LK.prototype.onCheckLabsOptedInState=function(){var v=this.get("data.primaryButton.toggleButtonRenderer");return v?v.isToggled:!1};
_.hr.Object.defineProperties(LK.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
LK.prototype.onYtToggleButton=LK.prototype.onYtToggleButton;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],LK.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],LK.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],LK.prototype,"itemStyle",null);_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],LK.prototype,"onYtToggleButton",null);_.W([_.J({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],LK);
_.B(LK,"ytd-labs-item-renderer",function(){if(D1f!==void 0)return D1f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return D1f=v},{mode:1});var Rkq;var nwl;var lV9=function(){return _.z.apply(this,arguments)||this};
_.f(lV9,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lV9.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lV9.prototype,"data",void 0);_.W([_.J({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],lV9);
_.B(lV9,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(nwl!==void 0)return nwl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return nwl=v},{mode:1});var q_P;var tJ=function(){return _.z.apply(this,arguments)||this};
_.f(tJ,_.z);tJ.prototype.observeSuperchatChip=function(){if(this.data){var v={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.F6(this.hostElement,v)}};
tJ.prototype.colorFromDecimal=function(v){return _.CF(Number(v||0))};
tJ.prototype.observeSuperchatChip=tJ.prototype.observeSuperchatChip;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tJ.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tJ.prototype,"observeSuperchatChip",null);_.W([_.J({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],tJ);
_.B(tJ,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(q_P!==void 0)return q_P;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return q_P=v},{mode:1});var pK=function(){return _.z.apply(this,arguments)||this};
_.f(pK,_.z);pK.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"}}}};
_.hr.Object.defineProperties(pK.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Er),_.X("design:type",Object)],pK.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pK.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],pK.prototype,"hideMessageBlock",null);
_.W([_.J({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],pK);
_.B(pK,"ytd-live-chat-history-entry-renderer",function(){if(Rkq!==void 0)return Rkq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Rkq=v},{mode:1});var S_q;var zkc=function(){return _.z.apply(this,arguments)||this};
_.f(zkc,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zkc.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zkc.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],zkc);
_.B(zkc,"ytd-channel-options-renderer",function(){if(S_q!==void 0)return S_q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return S_q=v},{mode:1});var JTV;var ed=function(){return _.z.apply(this,arguments)||this};
_.f(ed,_.z);ed.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ed.prototype,"data",void 0);_.W([_.J({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],ed);
_.B(ed,"ytd-settings-email-item-renderer",function(){if(JTV!==void 0)return JTV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return JTV=v},{mode:1});var NuE;var ZC=function(){return _.z.apply(this,arguments)||this};
_.f(ZC,_.z);ZC.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"}}}};
ZC.prototype.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
ZC.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.hr.Object.defineProperties(ZC.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ZC.prototype,"data",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],ZC.prototype,"expanded",void 0);_.W([_.O("expanded"),_.X("design:type",String),_.X("design:paramtypes",[])],ZC.prototype,"emailListExpanded",null);
_.W([_.Z7("#options"),_.X("design:type",Object)],ZC.prototype,"options",void 0);_.W([_.J({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],ZC);
_.B(ZC,"ytd-settings-email-list-renderer",function(){if(NuE!==void 0)return NuE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return NuE=v},{mode:1});var x1c;var PG=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return v};
_.f(PG,_.z);PG.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"}}}};
PG.prototype.handleSignalActionSubmitForm=function(){var v,Q=(v=this.formRenderer)==null?void 0:v.getForm();Q&&this.data.serviceEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},Q,{element:this.hostElement})})};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],PG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],PG.prototype,"data",void 0);_.W([_.Z7("yt-form-renderer"),_.X("design:type",Object)],PG.prototype,"formRenderer",void 0);
_.W([_.J({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],PG);
_.B(PG,"ytd-settings-gaia-link-renderer",function(){if(x1c!==void 0)return x1c;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return x1c=v},{mode:1});var Bun;var dF=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return v};
_.f(dF,_.z);dF.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.W9s()&&this.set("data.hidden",!1)};
dF.prototype.onSwitchReady=function(){var v=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.Y("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.jO7().then(function(Q){Q&&(Notification.permission==="default"?v.set("data.hidden",!1):Notification.permission==="granted"&&_.Xm("NotificationsDisabled").then(function(V){V||_.mb(v.hostElement,"yt-toggle-settings-switch",[v.data.id,!V]);v.set("data.hidden",!1)}).catch(function(){}))})})};
dF.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}}}}};
dF.prototype.handleUpdateOptionsCommand=function(v){(v=_.y(v,_.P0Z))&&this.data&&this.data.id===v.id&&(this.set("data.hidden",v.hidden),v.text!==void 0&&this.set("data.text",v.text),v.clearOptions&&this.set("data.options",[]))};
dF.prototype.onSwitchReady=dF.prototype.onSwitchReady;dF.prototype.dataChanged=dF.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],dF.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dF.prototype,"data",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],dF.prototype,"dataChanged",null);_.W([_.tM("yt-settings-switch-ready"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],dF.prototype,"onSwitchReady",null);_.W([_.J({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],dF);
_.B(dF,"ytd-settings-options-renderer",function(){if(Bun!==void 0)return Bun;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Bun=v},{mode:1});var gwc;var hJ=function(){return _.z.apply(this,arguments)||this};
_.f(hJ,_.z);hJ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hJ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
hJ.prototype.onYtExpanderMoreTapped=hJ.prototype.onYtExpanderMoreTapped;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],hJ.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hJ.prototype,"data",void 0);
_.W([_.tM("yt-expander-more-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hJ.prototype,"onYtExpanderMoreTapped",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],hJ);
_.B(hJ,"ytd-product-details-description-renderer",function(){if(gwc!==void 0)return gwc;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return gwc=v},{mode:1});var sae;var wF=function(){var v=_.z.apply(this,arguments)||this;v.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";v.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";v.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";v.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return v};
_.f(wF,_.z);wF.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hr.Object.defineProperties(wF.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.offerData)==null?void 0:Q.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?void 0:v.purchaseButtonRenderers)!==void 0&&((Q=this.data)==null?void 0:Q.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.formattedFromMerchantText)&&(!((Q=this.data)==null||!Q.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],wF.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wF.prototype,"data",void 0);
_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.X("design:type",Object)],wF.prototype,"shippingIcon",void 0);_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.X("design:type",Object)],wF.prototype,"shippingAddressIcon",void 0);_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.X("design:type",Object)],wF.prototype,"googleGuaranteeIcon",void 0);
_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.X("design:type",Object)],wF.prototype,"returnPolicyIcon",void 0);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],wF.prototype,"showAdditionalFees",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],wF.prototype,"showMultiPurchaseButtons",null);
_.W([_.O("data","showMultiPurchaseButtons"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],wF.prototype,"showPurchaseData",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],wF);
_.B(wF,"ytd-product-details-hero-offer-renderer",function(){if(sae!==void 0)return sae;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return sae=v},{mode:1});var udq;var ja5;var AJ=function(){return _.z.apply(this,arguments)||this};
_.f(AJ,_.z);_.K=AJ.prototype;_.K.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.K.onKeyDown=function(v){v=v.keyCode;v!==13&&v!==32||this.handleSelection()};
_.K.onMouseEnterImage=function(){var v;((v=this.data)==null?void 0:v.thumbnailDetails)!==void 0&&_.Un(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.K.onMouseLeaveImage=function(){_.Un(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.K.handleSelection=function(){this.data&&_.Hj(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.hr.Object.defineProperties(AJ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isSelected)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],AJ.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],AJ.prototype,"isSelected",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],AJ);
_.B(AJ,"ytd-product-details-thumbnail-renderer",function(){if(ja5!==void 0)return ja5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ja5=v},{mode:1});var kr=function(){var v=_.z.apply(this,arguments)||this;var Q={};v.actionMap=(Q["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",Q["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",Q);v.selectedThumbnailIndex=0;v.selectItem=function(V){V.target.onKeyDown(V)};
return v};
_.f(kr,_.z);_.K=kr.prototype;_.K.handlePreviewImageSelect=function(v){this.hoverThumbnail=v};
_.K.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.K.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.K.onThumbnailSelected=function(v,Q){this.selectedThumbnailIndex=Q};
_.K.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.K.updateOffset=function(){var v=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-v));this.ytdHorizontalListBehavior.reposition_()};
_.hr.Object.defineProperties(kr.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.imageRenderer){var Q,V;return((Q=this.data)==null?void 0:(V=Q.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 v;if((v=this.data)==null?0:v.imageRenderer){var Q;return(Q=_.y(this.data.imageRenderer[this.selectedThumbnailIndex],pcl))==null?void 0:Q.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var v=this,Q,V,E,b=(E=(Q=this.data)==null?void 0:(V=Q.imageRenderer)==null?void 0:V.map(function(F,t){return{productDetailsThumbnailRenderer:Object.assign({},_.y(F,pcl),{index:t,isSelected:t===v.selectedThumbnailIndex})}}))!=null?E:[];
return Object.assign({},this.data,{imageRenderer:b})}}});
kr.prototype.updateOffset=kr.prototype.updateOffset;kr.prototype.dataChanged=kr.prototype.dataChanged;kr.prototype.onThumbnailSelected=kr.prototype.onThumbnailSelected;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ck.YtdHorizontalListBehavior),_.X("design:type",Object)],kr.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],kr.prototype,"componentBehavior",void 0);_.W([_.M([_.SI.YtActionHandlerBehavior]),_.X("design:type",Object)],kr.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kr.prototype,"data",void 0);_.W([_.q({value:"$.items.children"}),_.X("design:type",String)],kr.prototype,"itemsPath",void 0);_.W([_.q({value:3}),_.X("design:type",Number)],kr.prototype,"initialCount",void 0);
_.W([_.Z7("#items"),_.X("design:type",Object)],kr.prototype,"items",void 0);_.W([_.q(),_.X("design:type",Object)],kr.prototype,"selectedThumbnailIndex",void 0);_.W([_.q(),_.X("design:type",Object)],kr.prototype,"hoverThumbnail",void 0);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],kr.prototype,"showThumbnails",null);
_.W([_.tM("ytd-product-details-thumbnail-renderer-selected"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Number]),_.X("design:returntype")],kr.prototype,"onThumbnailSelected",null);_.W([_.O("data","selectedThumbnailIndex","hoverThumbnail"),_.X("design:type",Object),_.X("design:paramtypes",[])],kr.prototype,"thumbnailDetails",null);_.W([_.O("data","selectedThumbnailIndex"),_.X("design:type",Object),_.X("design:paramtypes",[])],kr.prototype,"populatedData",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kr.prototype,"dataChanged",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kr.prototype,"updateOffset",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],kr);
_.B(kr,"ytd-product-details-image-carousel-renderer",function(){if(udq!==void 0)return udq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return udq=v},{mode:_.mV("kevlar_poly_si_batch_j079")?1:2});var Wkf;var T1=function(){return _.z.apply(this,arguments)||this};
_.f(T1,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],T1.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],T1.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],T1);
_.B(T1,"ytd-product-details-offer-renderer",function(){if(Wkf!==void 0)return Wkf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Wkf=v},{mode:1});var own;var Yr=function(){var v=_.z.apply(this,arguments)||this;v.isOffersHidden=!0;return v};
_.f(Yr,_.z);Yr.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var v,Q=_.y((v=this.data)==null?void 0:v.viewOffersButton,_.KH);Q&&this.ytRendererBehavior.logExplicitClick(Q)};
Yr.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.hr.Object.defineProperties(Yr.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E;return(V=_.y((v=this.data)==null?void 0:(Q=v.offers)==null?void 0:Q[0],d1P))==null?void 0:(E=V.offerData)==null?void 0:E.vendorLogoUrl}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Yr.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Yr.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Yr.prototype,"isOffersHidden",void 0);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Yr.prototype,"firstOfferVendorLogoUrl",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Yr);
_.B(Yr,"ytd-product-details-offers-container-renderer",function(){if(own!==void 0)return own;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return own=v},{mode:1});var Xcb;var aVb;var yy=function(){return _.z.apply(this,arguments)||this};
_.f(yy,_.z);yy.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
yy.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Un(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
yy.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Un(this,"ytd-product-details-variant-image-unselect")};
_.hr.Object.defineProperties(yy.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?void 0:v.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((Q=this.data)==null?void 0:Q.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 v;if(((v=this.data)==null?void 0:v.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var v,Q;return this.isUnavailable?(v=this.data)==null?void 0:v.variantOptionUnavailableAccessibilityLabel:(Q=this.data)==null?void 0:Q.variantOptionAccessibilityLabel}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],yy.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],yy.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],yy.prototype,"displayType",void 0);
_.W([_.O("displayType","data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],yy.prototype,"isImageButton",null);_.W([_.O("displayType","data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],yy.prototype,"isPillButton",null);_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],yy.prototype,"isActive",null);
_.W([_.O("data"),_.q({reflectToAttribute:!0}),_.X("design:type",Boolean),_.X("design:paramtypes",[])],yy.prototype,"isUnavailable",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],yy.prototype,"thumbnailDetails",null);_.W([_.O("isUnavailable","data"),_.X("design:type",Object),_.X("design:paramtypes",[])],yy.prototype,"accessibilityLabel",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],yy);
_.B(yy,"ytd-product-details-variant-option-renderer",function(){if(aVb!==void 0)return aVb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return aVb=v},{mode:1});var rTn;var cG=function(){var v=_.z.apply(this,arguments)||this;v.variantsExpanded=!1;v.hideShowMoreLessVariantButton=!0;v.initialized=!1;v.computeVariantsDebouncer=null;v.computeVariants=function(Q){Q=Q===void 0?!1:Q;v.variantsExpanded||v.showOptions()||!Q||(v.variantsExpanded=!0);if(v.variantsExpanded){Q=_.L(v.items.children);for(var V=Q.next();!V.done;V=Q.next())V.value.hidden=!1}v.initialized=!0};
return v};
_.f(cG,_.z);_.K=cG.prototype;_.K.ready=function(){var v=this;setTimeout(function(){v.computeVariants(!0)})};
_.K.showOptions=function(){for(var v=_.L(this.items.children),Q=v.next();!Q.done;Q=v.next())Q.value.hidden=!0;var V=this.container.getBoundingClientRect().width,E=0,b=v=0;Q=!1;for(var F=_.L(this.items.children),t=F.next();!t.done;t=F.next()){t=t.value;t.hidden=!1;var p=t.getBoundingClientRect().width;if(E+p<V)E+=p;else if(++b<2)E=p;else break;v+=1;t.hasAttribute("is-active")&&(Q=!0)}for(V=v;V<this.items.children.length;V++)this.items.children[V].hidden=!0;this.hideShowMoreLessVariantButton=v===this.items.children.length;
return Q};
_.K.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.w9(this.computeVariantsDebouncer,_.b8.after(100),this.computeVariants)};
_.K.onShowMoreLessVariantsButtonClick=function(){var v;(v=this.data)!=null&&v.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.K.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.hr.Object.defineProperties(cG.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.variantOptionRenderers)==null?void 0:Q.find(function(F){return _.y(F,Z$e).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),E,b;
return(b=(E=_.y(V,Z$e))==null?void 0:E.name)!=null?b:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
cG.prototype.debouncedComputeVariants=cG.prototype.debouncedComputeVariants;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],cG.prototype,"componentBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],cG.prototype,"ironResizableBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],cG.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],cG.prototype,"variantsExpanded",void 0);_.W([_.q(),_.X("design:type",Object)],cG.prototype,"hideShowMoreLessVariantButton",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],cG.prototype,"initialized",void 0);_.W([_.Z7("#items"),_.X("design:type",HTMLDivElement)],cG.prototype,"items",void 0);_.W([_.Z7("#container"),_.X("design:type",HTMLDivElement)],cG.prototype,"container",void 0);
_.W([_.Z7("#more-variants-button"),_.X("design:type",HTMLElement)],cG.prototype,"moreVariantsButton",void 0);_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],cG.prototype,"selectedOptionName",null);_.W([_.ph("data","variantsExpanded"),_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],cG.prototype,"debouncedComputeVariants",null);
_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],cG.prototype,"displayType",null);_.W([_.O("displayType"),_.X("design:type",Object),_.X("design:paramtypes",[])],cG.prototype,"variantItemsClassname",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],cG);
_.B(cG,"ytd-product-details-variant-renderer",function(){if(rTn!==void 0)return rTn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return rTn=v},{mode:1});var fK=function(){return _.z.apply(this,arguments)||this};
_.f(fK,_.z);
fK.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"}}}};
_.hr.Object.defineProperties(fK.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(Q=_.y((v=this.data)==null?void 0:v.offersContainerRenderer,Pi5))==null?void 0:Q.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 v,Q,V;return((V=(v=this.data)==null?void 0:(Q=v.variants)==null?void 0:Q.map(function(E){var b,F;E=(F=(b=_.y(E,ekf))==null?void 0:b.variantOptionRenderers)==null?void 0:F.find(function(p){var Z;return((Z=_.y(p,Z$e))==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var t;return(t=_.y(E,Z$e))==null?void 0:t.name}).filter(function(E){return typeof E==="string"}))!=null?V:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var v,Q,V,E=(Q=_.y((v=this.data)==null?void 0:v.shoppingFlaggingRenderer,hkP))==null?void 0:(V=Q.reportButton)==null?void 0:V.buttonRenderer;if(E)return{text:E.text,command:E.command,icon:{iconType:"FLAG"},accessibilityData:E.accessibilityData,trackingParams:E.trackingParams,loggingDirectives:E.loggingDirectives}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],fK.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fK.prototype,"data",void 0);_.W([_.Z7("#image-carousel-renderer"),_.X("design:type",Object)],fK.prototype,"imageCarouselRenderer",void 0);
_.W([_.Z7("#hero-offer-renderer"),_.X("design:type",Object)],fK.prototype,"productDetailsHeroOfferRenderer",void 0);_.W([_.Z7("#variants"),_.X("design:type",Object)],fK.prototype,"productDetailsVariantRenderer",void 0);_.W([_.Z7("#offers"),_.X("design:type",Object)],fK.prototype,"productDetailsOffersContainerRenderer",void 0);_.W([_.Z7("#description-renderer"),_.X("design:type",Object)],fK.prototype,"productDetailsDescriptionRenderer",void 0);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fK.prototype,"showPurchaseData",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fK.prototype,"showHeroOfferRenderer",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fK.prototype,"showBrandText",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fK.prototype,"showOffers",null);
_.W([_.O("showOffers","showPurchaseData"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fK.prototype,"showBuySeparator",null);_.W([_.O("showOffers","showPurchaseData"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],fK.prototype,"showBuyCard",null);_.W([_.O("data"),_.X("design:type",String),_.X("design:paramtypes",[])],fK.prototype,"selectedVariantsText",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],fK.prototype,"shoppingReportingButtonData",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],fK);
_.B(fK,"ytd-product-details-renderer",function(){if(Xcb!==void 0)return Xcb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Xcb=v},{mode:1});var $1E;var IV9;var H$I;var G1=function(){return _.z.apply(this,arguments)||this};
_.f(G1,_.z);G1.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.hr.Object.defineProperties(G1.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],G1.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],G1.prototype,"formattedAmount",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],G1.prototype,"ariaLabel",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data.style"),_.X("design:type",String),_.X("design:paramtypes",[])],G1.prototype,"vcBalanceWidgetStyle",null);_.W([_.D7({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],G1);
_.B(G1,"yt-vc-balance-renderer",function(){if(H$I===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;IV9===void 0&&(IV9=document.createElement("template"));var E=IV9;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);H$I=v}v=H$I;return v},{mode:2});_.yZ("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var CK=function(){return _.z.apply(this,arguments)||this};
_.f(CK,_.z);_.hr.Object.defineProperties(CK.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],CK.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],CK.prototype,"data",void 0);_.W([_.q({selectorArgs:["data.vcBalanceEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"vcBalanceEntity",Q)}}),
_.X("design:type",Object)],CK.prototype,"vcBalanceEntity",void 0);_.W([_.O("vcBalanceEntity"),_.X("design:type",String),_.X("design:paramtypes",[])],CK.prototype,"formattedAmount",null);_.W([_.O("vcBalanceEntity"),_.X("design:type",String),_.X("design:paramtypes",[])],CK.prototype,"vcBalanceAriaLabel",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],CK);
_.B(CK,"ytd-vc-balance-renderer",function(){if($1E!==void 0)return $1E;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return $1E=v},{mode:1});var m1c;var MT=function(){var v=_.z.apply(this,arguments)||this;v.rotation=0;v.isReloading=!1;return v};
_.f(MT,_.z);MT.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
MT.prototype.reset=function(){this.hostElement.style.opacity=""};
MT.prototype.close=function(){var v=this;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(v.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.hostElement.style.opacity="0";_.q1(Q)})};
MT.prototype.rotationChanged=MT.prototype.rotationChanged;_.W([_.q(),_.X("design:type",Object)],MT.prototype,"rotation",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],MT.prototype,"isReloading",void 0);_.W([_.Z7("#icon"),_.X("design:type",HTMLElement)],MT.prototype,"icon",void 0);_.W([_.ph("rotation"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MT.prototype,"rotationChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-refresh"})],MT);
_.B(MT,"ytd-refresh",function(){if(m1c!==void 0)return m1c;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return m1c=v},{mode:1});var U1j;var OF=function(){return _.z.apply(this,arguments)||this};
_.f(OF,_.z);OF.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"}}}};
OF.prototype.dataChanged=function(){if(this.data){var v=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var Q=_.rE(this.data.banner.thumbnails,this.hostElement.clientWidth);Q&&(Q.indexOf("//")===0&&(Q="https:"+Q),this.hasBannerArt=!0,_.F6(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+Q+")"}))}this.hasBannerArt!==v&&_.m9(this.hostElement).querySelector("#header").fire("iron-resize")}};
OF.prototype.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
OF.prototype.dataChanged=OF.prototype.dataChanged;_.W([_.M(kCV),_.X("design:type",Object)],OF.prototype,"ytdTabbedHeaderBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.FO),_.X("design:type",Object)],OF.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],OF.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],OF.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OF.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],OF.prototype,"selected",void 0);_.W([_.q(),_.X("design:type",Boolean)],OF.prototype,"active",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],OF.prototype,"hasBannerArt",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],OF.prototype,"dataChanged",null);_.W([_.J({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],OF);
_.B(OF,"ytd-interactive-tabbed-header-renderer",function(){if(U1j!==void 0)return U1j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return U1j=v},{mode:1});var v4V;var DC=function(){return _.z.apply(this,arguments)||this};
_.f(DC,_.z);DC.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DC.prototype.computeActionsAlignment=function(v){return(v==null?void 0:v.actionsAlignment)||""};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DC.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.X("design:type",String)],DC.prototype,"actionsAlignment",void 0);_.W([_.J({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],DC);
_.B(DC,"ytd-page-footer-renderer",function(){if(v4V!==void 0)return v4V;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return v4V=v},{mode:1});var Qb9;var VSI;var Rt=function(){var v=_.z.apply(this,arguments)||this;v.isEditing=!1;v.useSlot=!1;v.isMultiline=!1;return v};
_.f(Rt,_.z);_.K=Rt.prototype;_.K.onKeydown=function(v){if(v.keyCode===13&&!this.isMultiline)this.onSave();else if(v.keyCode===27)this.onCancel()};
_.K.computeComponentStyle=function(v){return(v==null?0:v.style)?v.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.K.computeisMultiline=function(v){if(this.multilineOverride!==void 0)return this.multilineOverride;var Q,V;return!!(v==null?0:(Q=v.formField)==null?0:(V=Q.textInputFormFieldRenderer)==null?0:V.isMultiline)};
_.K.computeTextDisplayed=function(v,Q){if(v)return v;if(Q)return Q};
_.K.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.K.onSave=function(){if(this.textForm.validate()){this.textForm.save();var v=this.textForm.value;if(v)this.set("data.textDisplayed",_.u3(v));else{var Q;((Q=this.data)==null?0:Q.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Pu("inline-form-changed",this.data));this.isEditing=!1}};
_.K.onCancel=function(){var v=_.j0(this.data.textDisplayed);v===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(v);this.isEditing=!1};
Rt.prototype.onKeydown=Rt.prototype.onKeydown;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Rt.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Rt.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Rt.prototype,"isEditing",void 0);_.W([_.q(),_.X("design:type",Object)],Rt.prototype,"useSlot",void 0);_.W([_.q(),_.X("design:type",Boolean)],Rt.prototype,"multilineOverride",void 0);_.W([_.q(),_.X("design:type",Boolean)],Rt.prototype,"enableOverlayTheme",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.X("design:type",String)],Rt.prototype,"componentStyle",void 0);
_.W([_.q({computed:"computeisMultiline(data)"}),_.X("design:type",Object)],Rt.prototype,"isMultiline",void 0);_.W([_.Z7("#text-form"),_.X("design:type",Object)],Rt.prototype,"textForm",void 0);_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],Rt.prototype,"onKeydown",null);_.W([_.J({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Rt);
_.B(Rt,"ytd-inline-form-renderer",function(){if(VSI!==void 0)return VSI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return VSI=v},{mode:1});var E4d;var nK=function(){var v=_.z.apply(this,arguments)||this;v.previousSelectValue=void 0;v.selectedItemMessage=void 0;return v};
_.f(nK,_.z);nK.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
nK.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var v,Q,V,E,b=(v=this.data)==null?void 0:(Q=v.dropdown)==null?void 0:(V=Q.dropdownRenderer)==null?void 0:(E=V.entries)==null?void 0:E.map(function(p){return p.privacyDropdownItemRenderer});
v=_.L(b!=null?b:[]);for(Q=v.next();!Q.done;Q=v.next())if((Q=Q.value)&&Q.int32Value===this.selectedValue){this.selectedItemMessage=Q.itemMessage;break}}else this.selectedItemMessage=void 0;var F;(F=this.onValueChanged)==null||F.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var t;(t=this.data)!=null&&t.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
nK.prototype.onValueChangedForSelectedValue=function(v){this.selectedValue=v.detail.value};
nK.prototype.selectedValueChanged=nK.prototype.selectedValueChanged;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],nK.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],nK.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nK.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],nK.prototype,"theme",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Number)],nK.prototype,"selectedValue",void 0);_.W([_.q(),_.X("design:type",Function)],nK.prototype,"onValueChanged",void 0);
_.W([_.wg("selectedValue"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],nK.prototype,"selectedValueChanged",null);_.W([_.J({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],nK);
_.B(nK,"ytd-dropdown-form-field-renderer",function(){if(E4d!==void 0)return E4d;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return E4d=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var bwE;var lG=function(){return _.z.apply(this,arguments)||this};
_.f(lG,_.z);_.hr.Object.defineProperties(lG.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var v=[],Q=_.L(this.data||[]),V=Q.next();!V.done;V=Q.next())(V=_.y(V.value,wcE))&&v.push(V);return v}}});
_.W([_.q(),_.X("design:type",Array)],lG.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],lG.prototype,"byline",null);_.W([_.J({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],lG);
_.B(lG,"ytd-playlist-byline-renderer",function(){if(bwE!==void 0)return bwE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bwE=v},{mode:1});var FQd;var qT=function(){var v=_.z.apply(this,arguments)||this;v.rtlBullet=_.Y("web_playlist_stats_rtl_bullet_icon_killswitch");v.modern=_.Y("web_modern_buttons");v.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return v};
_.f(qT,_.z);_.K=qT.prototype;_.K.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"}}}}};
_.K.attached=function(){};
_.K.computeIsCustomThumbnail=function(v){return v?!!v.playlistCustomThumbnailRenderer:!1};
_.K.onYtNavigate=function(v,Q){if(Q&&Q.actions&&Q.actions.indexOf("shuffle")>-1){v=_.ht().resolve(_.pD);var V=Q.tempData||{};V.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);Q.tempData=V;v.isShuffleNextPlaylist=!0}};
_.K.onUpdatePlaylistAction=function(v){var Q;v=(Q=_.y(v,_.j4N))==null?void 0:Q.updatedRenderer;if(Q=_.y(v,t1c))this.data=Q};
_.K.computeStyleType=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeThumbnailWidth=function(v){return v==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.K.computeHideThumbnailAria=function(v){if(v==null?0:v.thumbnailOverlays)for(var Q=0;Q<v.thumbnailOverlays.length;Q++){var V=void 0;if((V=v.thumbnailOverlays[Q])==null?0:V.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
qT.prototype.onYtNavigate=qT.prototype.onYtNavigate;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],qT.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],qT.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],qT.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qT.prototype,"rtlBullet",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.X("design:type",String)],qT.prototype,"styleType",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.X("design:type",Number)],qT.prototype,"thumbnailWidth",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qT.prototype,"modern",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.X("design:type",Boolean)],qT.prototype,"isCustomThumbnail",void 0);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[Event,Object]),_.X("design:returntype")],qT.prototype,"onYtNavigate",null);_.W([_.J({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],qT);
_.B(qT,"ytd-playlist-sidebar-primary-info-renderer",function(){if(FQd!==void 0)return FQd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return FQd=v},{mode:1});var KQP;var Sd=function(){return _.z.apply(this,arguments)||this};
_.f(Sd,_.z);Sd.prototype.computeOwnerVisibility=function(v){return!(!v.videoOwner&&!v.button)};
Sd.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Sd.prototype,"data",void 0);_.W([_.J({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Sd);
_.B(Sd,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(KQP!==void 0)return KQP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return KQP=v},{mode:1});var iwJ;var z1=function(){var v=_.z.apply(this,arguments)||this;v.expanded=!1;v.isCompact=!1;return v};
_.f(z1,_.z);_.K=z1.prototype;_.K.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.K.dataChanged=function(){this.data&&_.tT(_.m9(this.text),_.U1Z(_.VSa,_.j0(this.data.text||null)))};
_.K.computeAutoScrollEnabled=function(v,Q){return v&&!Q};
_.K.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.K.toggleOnTap=function(){this.expanded=!this.expanded};
z1.prototype.expandedChanged=z1.prototype.expandedChanged;z1.prototype.dataChanged=z1.prototype.dataChanged;_.W([_.M(_.Vc5),_.X("design:type",Object)],z1.prototype,"ytdAutoScrollBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],z1.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],z1.prototype,"expanded",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],z1.prototype,"isCompact",void 0);_.W([_.q({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.X("design:type",Boolean)],z1.prototype,"autoScrollEnabled",void 0);_.W([_.Z7("#text"),_.X("design:type",Object)],z1.prototype,"text",void 0);_.W([_.Z7("#expander-icon"),_.X("design:type",Object)],z1.prototype,"expanderIcon",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],z1.prototype,"dataChanged",null);_.W([_.ph("expanded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],z1.prototype,"expandedChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],z1);
_.B(z1,"ytd-channel-legal-info-renderer",function(){if(iwJ!==void 0)return iwJ;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return iwJ=v},{mode:1});var LQP;var tSP=_.Lt("DOWNLOAD",{},"Download"),p4e=_.Lt("DOWNLOADING",{},"Downloading"),eDd=_.Lt("DOWNLOADED",{},"Downloaded"),JJ=function(){var v=_.z.apply(this,arguments)||this;v.downloadProgress=0;v.isDownloadComplete=!1;v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.f(JJ,_.z);_.K=JJ.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.dataChanged=function(){var v;(v=this.data)!=null&&v.tooltip||(v=_.n7(_.oF().getState(),this.playlistId),this.updateButtonState(v))};
_.K.computePlaylistId=function(v){return v};
_.K.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.K.updateButtonState=function(v){if(this.data&&(this.data.tooltip!==p4e||!_.d8(v))){this.isDownloadComplete=!1;switch(v){case "TRANSFER_STATE_UNKNOWN":v=tSP;var Q="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":v=eDd;Q="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":v=p4e;Q="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";
break;default:v=tSP,Q="OFFLINE_DOWNLOAD",V="ACTION_ADD"}var E=Object.assign({},this.data);E.tooltip=v;E.accessibilityData={accessibilityData:{label:v}};E.icon={iconType:Q};E.size="SIZE_DEFAULT";_.y(E.command,_.t2)&&(_.y(E.command,_.t2).action=V);this.set("data",E)}};
_.K.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var v="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?v="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?v="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?v="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?v="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?v="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(v="OFFLINE_PIN",this.isDownloadComplete=!0);var Q;v!==((Q=this.data.icon)==null?void 0:Q.iconType)&&(Q=Object.assign({},this.data),Q.tooltip=p4e,Q.accessibilityData={accessibilityData:{label:p4e}},Q.icon={iconType:v},_.y(Q.command,_.t2)&&(_.y(Q.command,_.t2).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Q))}};
JJ.prototype.updateProgress=JJ.prototype.updateProgress;JJ.prototype.onTransferStateChanged=JJ.prototype.onTransferStateChanged;JJ.prototype.dataChanged=JJ.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],JJ.prototype,"ytdReduxBehavior",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JJ.prototype,"forceIconButton",void 0);
_.W([_.q({value:!0}),_.X("design:type",Boolean)],JJ.prototype,"forceIconOnly",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JJ.prototype,"overrides",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JJ.prototype,"buttonTooltipPosition",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JJ.prototype,"styleActionButton",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JJ.prototype,"disableTextTransform",void 0);
_.W([_.q({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.X("design:type",String)],JJ.prototype,"playlistId",void 0);_.W([_.q(),_.X("design:type",Object)],JJ.prototype,"data",void 0);_.W([_.q({selector:_.ocZ,selectorArgs:["playlistId"]}),_.X("design:type",Object)],JJ.prototype,"downloadProgress",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],JJ.prototype,"isDownloadComplete",void 0);
_.W([_.q({selector:_.n7,selectorArgs:["playlistId"]}),_.X("design:type",String)],JJ.prototype,"transferState",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],JJ.prototype,"showTooltips",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],JJ.prototype,"sendCommandWhenDisabled",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],JJ.prototype,"disabled",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],JJ.prototype,"dataChanged",null);_.W([_.wg("transferState"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],JJ.prototype,"onTransferStateChanged",null);_.W([_.wg("downloadProgress"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],JJ.prototype,"updateProgress",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],JJ);
_.B(JJ,"ytd-download-playlist-button-renderer",function(){if(LQP!==void 0)return LQP;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return LQP=v},{mode:1});var Zwd;_.ad(_.chS,"thumbnail-overlay-button-view-model",{props:{data:_.pJ,lockupExperiments:_.pJ}});var NT=function(){var v=_.z.apply(this,arguments)||this;v.isSquare=!1;v.isVertical=!1;return v};
_.f(NT,_.z);NT.prototype.computeIsSquare=function(v){return v!=null&&v.thumbnail?WJJ(v.thumbnail)==="SQUARE":!1};
NT.prototype.computeIsVertical=function(v){return v!=null&&v.thumbnail?WJJ(v.thumbnail)==="VERTICAL":!1};
NT.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.X("design:type",Object)],NT.prototype,"isSquare",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.X("design:type",Object)],NT.prototype,"isVertical",void 0);
_.W([_.q(),_.X("design:type",Object)],NT.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],NT);
_.B(NT,"ytd-hero-playlist-thumbnail-renderer",function(){if(Zwd!==void 0)return Zwd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Zwd=v},{mode:1});var xr=function(){var v=_.z.apply(this,arguments)||this;v.isDarkTheme=!1;v.isUltraWide=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return v};
_.f(xr,_.z);_.K=xr.prototype;_.K.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.ht();var v;(v=_.ht().resolve(_.d$(_.X7)))!=null&&(v.headerElement=this.hostElement)};
_.K.detached=function(){var v;(v=_.ht().resolve(_.d$(_.X7)))!=null&&(v.headerElement=void 0)};
_.K.onUpdateHeader=function(v){(v=v.detail)&&this.set("data",v)};
_.K.computeTextDisplayed=function(v){if(v)return v.textDisplayed?v.textDisplayed:v.placeholder};
_.K.gradientColorToLinearGradientStop=function(v){var Q=this.isDarkTheme?v.darkThemeColor:v.lightThemeColor;return Q?_.CF(Q)+" "+((v==null?void 0:v.startLocation)||0)*100+"%":"transparent"};
_.K.onWindowResize=function(){var v;((v=this.data)==null?0:v.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.K.onIronResize=function(v){this.isUltraWide=!v.detail.value};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.onUpdatePlaylistName=function(v){var Q=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},v.detail.value));_.PE(this,function(){var V;(V=Q.editableTitle)==null||V.resize()})};
_.K.onUpdatePlaylistDescription=function(v){var Q=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},v.detail.value));_.PE(this,function(){var V;(V=Q.editableDescriptionInlineExpander)==null||V.resize()})};
_.K.getCinematicData=function(v){return _.y(v==null?void 0:v.cinematicContainer,_.vG)};
_.hr.Object.defineProperties(xr.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.getCinematicData(this.data))==null?void 0:v.config;return(v=this.isDarkTheme?Q==null?void 0:Q.darkThemeBackgroundColor:Q==null?void 0:Q.lightThemeBackgroundColor)?"background-color:"+_.GA(v)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var v;return _.y((v=this.data)==null?void 0:v.descriptionForm,LkE)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var v=this,Q,V,E;return"background:linear-gradient(to bottom, "+(((E=(Q=this.getCinematicData(this.data))==null?void 0:(V=Q.gradientColorConfig)==null?void 0:V.map(function(b){return v.gradientColorToLinearGradientStop(b)}))==null?void 0:E.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var v;return _.j0((v=this.data)==null?void 0:v.descriptionTapText)}}});
xr.prototype.onUpdateHeader=xr.prototype.onUpdateHeader;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],xr.prototype,"actionHandlerBehavior",void 0);_.W([_.Z7("#description-inline-expander"),_.X("design:type",Object)],xr.prototype,"descriptionInlineExpander",void 0);
_.W([_.Z7("#editable-description-inline-expander"),_.X("design:type",Object)],xr.prototype,"editableDescriptionInlineExpander",void 0);_.W([_.q(),_.X("design:type",Object)],xr.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],xr.prototype,"isUltraWide",void 0);_.W([_.Z7("#editable-title-display"),_.X("design:type",Object)],xr.prototype,"editableTitle",void 0);_.W([_.O("isUltraWide"),_.X("design:type",Object),_.X("design:paramtypes",[])],xr.prototype,"maxDescriptionLines",null);
_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],xr.prototype,"noCinematicData",null);_.W([_.tM("yt-new-playlist-header"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xr.prototype,"onUpdateHeader",null);_.W([_.O("data","isDarkTheme"),_.X("design:type",Object),_.X("design:paramtypes",[])],xr.prototype,"backgroundStyle",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],xr.prototype,"descriptionFormData",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],xr.prototype,"getDropdownTheme",null);_.W([_.O("data","isDarkTheme"),_.X("design:type",String),_.X("design:paramtypes",[])],xr.prototype,"gradientStyle",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],xr.prototype,"descriptionTapText",null);
_.W([_.J({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],xr);
_.B(xr,"ytd-playlist-header-renderer",function(){if(Qb9!==void 0)return Qb9;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Qb9=v},{mode:_.mV("kevlar_poly_si_batch_j078")?1:2});var PaV;var dNI;var BG=function(){return _.z.apply(this,arguments)||this};
_.f(BG,_.z);BG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],BG.prototype,"data",void 0);_.W([_.J({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],BG);
_.B(BG,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(dNI!==void 0)return dNI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return dNI=v},{mode:1});var gF=function(){return _.z.apply(this,arguments)||this};
_.f(gF,_.z);
gF.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}}}}};
gF.prototype.computeUsePremiumShowStyle=function(v){if(!v||!v.items)return!1;for(var Q=0;Q<v.items.length;Q++)if(_.y(v.items[Q],t1c)){var V=void 0;return((V=_.y(v.items[Q],t1c))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],gF.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.X("design:type",Boolean)],gF.prototype,"usePremiumShowStyle",void 0);
_.W([_.J({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],gF);
_.B(gF,"ytd-playlist-sidebar-renderer",function(){if(PaV!==void 0)return PaV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return PaV=v},{mode:1});var hD5;var w4l;var Adc=function(v,Q,V,E,b,F,t,p){this.minWidth=v;this.minHeight=Q;this.recommendedWidth=V;this.recommendedHeight=E;this.JSC$22595_maxFileSize=b;this.title=F;this.bannerGalleryTitle=t;this.channelId=p;this.picker_=null;v=_.pyE("yt-banner");Q=v.addView;V=(new mjf("youtubebanner")).addUploadMetadata("silo_id","19");V.opts.ytMaxFileSize=this.JSC$22595_maxFileSize;E=this.recommendedHeight;V.opts.ytRecWidth=this.recommendedWidth;V.opts.ytRecHeight=E;Q.call(v,V);v.addView(new _.lz);Q=v.addView;V=new _.lz;
V.opts.type="ytbanner";Q.call(v,V.JSC$10154_setLabel(this.bannerGalleryTitle));Q=v.setTitle(this.title).setSize(1E3);Q.urlParamMap_.set("thumbs","orig");V=this.minWidth;E=this.minHeight;if(isNaN(V)||isNaN(E))throw Error("gb`"+V+"`"+E);Q.urlParamMap_.set("minSize",V+"x"+E);Q.urlParamMap_.set("cropMode","ytcb");this.builder_=v};
Adc.prototype.open=function(){var v=this;return new _.Ry(function(Q,V){_.BXZ(v.builder_,function(E){E.action=="picked"?Q(E):E.action=="cancel"&&V(Error("Qo"))});
v.picker_&&v.picker_.dispose();v.picker_=v.builder_.build();v.picker_.setVisible(!0)})};
Adc.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var kTd=function(v){this.channelId=v};
kTd.prototype.upload=function(v){var Q="";v.viewToken&&(Q=v.viewToken[2].type);var V=v.docs[0];v=V.crop;Q={channel_id:this.channelId,fife_url:V.thumbnails[0].url,photo_id:V.id,is_gallery_image:Q=="ytbanner"};v&&(Q.crop_top=v.top,Q.crop_right=v.right,Q.crop_bottom=v.bottom,Q.crop_left=v.left);return _.APQ("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:Q})};var sF=function(){var v=_.z.apply(this,arguments)||this;v.ariaLabel=null;return v};
_.f(sF,_.z);_.K=sF.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.detached=function(){this.picker&&this.picker.dispose()};
_.K.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.K.computeAriaLabel=function(v){return v};
_.K.onTap=function(){var v=this,Q;if((Q=this.data)==null||!Q.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Adc(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(E){v.handleBannerPicked(E)},function(){})}};
_.K.handleBannerPicked=function(v){var Q=this;this.uploader||(this.uploader=new kTd(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(v).then(function(V){Q.handleBannerUploadSucceeded(V)},function(V){Q.handleBannerUploadFailed(V)})};
_.K.handleBannerUploadSucceeded=function(v){v&&v.errors?this.handleBannerUploadFailed(v):(_.Hj(this.hostElement,"yt-banner-updated",v),this.message=null)};
_.K.handleBannerUploadFailed=function(v){this.message=v&&v.errors&&v.errors.length?v.errors[0]:null};
sF.prototype.dataChanged=sF.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],sF.prototype,"componentBehavior",void 0);_.W([_.M(_.XU),_.X("design:type",Object)],sF.prototype,"ironButtonState",void 0);_.W([_.q(),_.X("design:type",Object)],sF.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.X("design:type",Object)],sF.prototype,"ariaLabel",void 0);
_.W([_.q(),_.X("design:type",Object)],sF.prototype,"message",void 0);_.W([_.q(),_.X("design:type",Object)],sF.prototype,"picker",void 0);_.W([_.q(),_.X("design:type",Object)],sF.prototype,"uploader",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],sF.prototype,"dataChanged",null);_.W([_.J({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],sF);
_.B(sF,"ytd-channel-banner-editor-renderer",function(){if(w4l!==void 0)return w4l;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return w4l=v},{mode:1});var TII;var YYl=_.s$(["#"]),uG=function(){return _.z.apply(this,arguments)||this};
_.f(uG,_.z);uG.prototype.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v,!0)||_.Lkh(YYl)};
uG.prototype.dataChanged=function(){var v=this.data;v&&v.targetId&&_.lPN(_.xp(),v.targetId,this.moreIcon)};
uG.prototype.dataChanged=uG.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],uG.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uG.prototype,"data",void 0);_.W([_.Z7("#more-icon"),_.X("design:type",Object)],uG.prototype,"moreIcon",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uG.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],uG);
_.B(uG,"ytd-channel-tagline-renderer",function(){if(TII!==void 0)return TII;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return TII=v},{mode:1});var ydd;var jd=function(){return _.z.apply(this,arguments)||this};
_.f(jd,_.z);_.K=jd.prototype;_.K.ready=function(){var v=this;_.m9(this.hostElement).querySelector("#form").addEventListener("submit",function(Q){v.onSubmit(Q)})};
_.K.onDataChanged=function(){var v;((v=this.data)==null?0:v.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.K.onIconButtonKeydown=function(v){v.keyCode===13&&this.iconButton.click()};
_.K.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.K.openOnClickHandler=function(){this.input.focus()};
_.K.onSubmit=function(v){v.preventDefault();return!1};
_.K.submitOnEnterKeyUp=function(v){var Q;if(v.keyCode===13&&((Q=this.data)==null?0:Q.expandedText)){v=this.data.endpoint;Q=_.gI.unsafeClone(v);var V;((V=_.y(Q==null?void 0:Q.commandMetadata,_.Kt))==null?0:V.url)?(_.y(Q.commandMetadata,_.Kt).url=_.va(_.y(Q.commandMetadata,_.Kt).url,"query",this.data.expandedText),_.y(Q,_.tn)&&(_.y(Q,_.tn).query=this.data.expandedText),_.Hj(this.hostElement,"yt-navigate",{endpoint:Q,tempData:{disableCache:!0}})):(V=new _.xd("Error: Trying to navigate to an endpoint without url",
v),_.ro(V))}};
_.K.updateDataExpandedTextFromBinding=function(v){this.set("data.expandedText",v.detail.value)};
_.hr.Object.defineProperties(jd.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
jd.prototype.onDataChanged=jd.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.m2$),_.X("design:type",Object)],jd.prototype,"ytdExpandableInputBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jd.prototype,"data",void 0);_.W([_.Z7("#input"),_.X("design:type",Object)],jd.prototype,"input",void 0);_.W([_.Z7("#icon-button"),_.X("design:type",HTMLElement)],jd.prototype,"iconButton",void 0);
_.W([_.q(),_.X("design:type",String),_.X("design:paramtypes",[])],jd.prototype,"searchIcon",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jd.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],jd);
var oPn=_.Hn()(jd,"ytd-expandable-tab-renderer",function(){if(ydd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);ydd=v}v=ydd;return v},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var cdV;var WG=function(){var v=_.z.apply(this,arguments)||this;v.avatarSize=80;v.ariaLabel=_.Lt("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return v};
_.f(WG,_.z);WG.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
WG.prototype.computeHref=function(v){var Q;return((Q=_.y(v,_.FJ))==null?0:Q.url)?this.componentBehavior.computeHref_(v):null};
WG.prototype.onTap=function(){var v,Q;(v=this.data)==null||!v.editAvatarServiceEndpoint||((Q=_.y(this.data.editAvatarServiceEndpoint,_.FJ))==null?0:Q.url)||_.ht().resolve(_.At).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.W([_.M(_.XU),_.X("design:type",Object)],WG.prototype,"ironButtonState",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],WG.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WG.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],WG.prototype,"avatarSize",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],WG.prototype,"ariaLabel",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],WG);
_.B(WG,"ytd-channel-avatar-editor",function(){if(cdV!==void 0)return cdV;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cdV=v},{mode:1});var fTf=_.x(function(v){var Q=v.data;var V=v.noPadding;var E=v.enableBanner;var b=v.cinematicContainerTopbarOffset;var F=v.allowCinematicContainerOverflow;var t=v.displayAsSidebar;v=v.className;_.uH(function(){Q().tagManagerId&&(_.WO(Q().tagManagerId,_.r7("GL")),HfV(Q().tagManagerId))},"vUc8md");
var p=_.p4(a5l,function(){return Q().pageHeaderEntityKey});
return _.P("yt-page-header-renderer",{class:_.QZ("pageHeaderRendererHost",v)},_.P(_.Pw,{data:function(){var Z;return((Z=p())==null?0:Z.header)?p().header:(t==null?0:t())&&Q().sidebarContent?Q().sidebarContent:Q().content}},{pageHeaderViewModel:function(Z){return _.P(_.iE8,{data:Z.data,
noPadding:V,enableBanner:E,cinematicContainerTopbarOffset:b,allowCinematicContainerOverflow:F,displayAsSidebar:function(){return(t==null?void 0:t())&&Q().enableSidebarView}})}}))},"ln");
fTf.idomCompat=!0;_.ad(fTf,"yt-page-header-renderer",{props:{data:_.pJ,noPadding:_.pJ,enableBanner:_.pJ,cinematicContainerTopbarOffset:_.pJ,allowCinematicContainerOverflow:_.pJ,displayAsSidebar:_.pJ,className:_.pJ}});_.ad(_.Po,"yt-image-banner-view-model",{props:{data:_.pJ,isPositionRelative:_.pJ}});_.ad(_.MZ0,"yt-tab-group-shape",{props:{shape:_.pJ}});var GTJ=_.zw.persistentPanelVisibleSelector,ot=function(){var v=_.z.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(Q){return XqP(Q,function(){return void v.onSearchNavigate()})};
v.isRichGrid=!1;v.isConstrainedList=!1;v.richGridMiniMode=!1;v.richGridStyle="RICH_GRID_STYLE_UNKNOWN";v.isRichGridShorts=!1;v.responsiveSizing="COMPACT";v.disableGridStateAware=!1;v.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return v};
_.f(ot,_.z);_.K=ot.prototype;_.K.computeHeaderDisabled=function(v,Q){return Q||!v||this.tabsHidden};
_.K.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.K.computeIsRichGridShorts=function(v){return v==="RICH_GRID_STYLE_SHORTS_GRID"||v==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.K.computeImageBannerViewModel=function(){var v,Q;return _.y((Q=_.y((v=this.data)==null?void 0:v.content,_.y$8))==null?void 0:Q.banner,_.ejR)};
_.K.computeHasCinematicContainer=function(){var v,Q;return!((Q=_.y((v=this.data)==null?void 0:v.content,_.y$8))==null||!Q.background)};
_.K.handleHeaderResize=function(){var v=_.m9(this.hostElement).querySelector("#header");v&&_.Hj(v,"iron-resize")};
_.K.handleInsertTabCommand=function(v){var Q=_.y(v,ATq);Q&&(Q.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(V){return V.tabRenderer&&V.tabRenderer.tabIdentifier===Q.tabIdentifier})||this.splice("tabs",Q.tabIndex||-1,0,Q.tab))};
_.K.handleRefreshChannelTabAction=function(v){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===v&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.K.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.K.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.F6(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.K.observerRichGridSlimItemsPerRow=function(){_.F6(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.K.updateCssVars=function(){this.richGridItemsPerRow&&_.F6(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.T_("rich_grid_max_item_width",500))+16)-16+"px"})};
_.K.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.F6(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.K.onDataChanged=function(){this.handleHeaderResize()};
_.K.onWindowResize=function(){this.handleHeaderResize()};
_.K.onFocusedChanged=function(v){(v=_.jV(v))&&v.is==="tp-yt-paper-tab"&&v.hasRipple()&&(v.getRipple().holdDown=!v.pointerDown&&v.focused)};
_.K.updateSelectedFromBinding=function(v){this.ytdTabbedHeaderBehavior.selected=v.detail.value};
_.K.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.hr.Object.defineProperties(ot.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:$jq(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.imageBannerViewModel)==null?void 0:v.style)==="IMAGE_BANNER_STYLE_INSET"}}});
ot.prototype.onDataChanged=ot.prototype.onDataChanged;ot.prototype.updateCssVarsForResponsiveGrid=ot.prototype.updateCssVarsForResponsiveGrid;ot.prototype.updateCssVars=ot.prototype.updateCssVars;ot.prototype.observerRichGridSlimItemsPerRow=ot.prototype.observerRichGridSlimItemsPerRow;ot.prototype.observerRichGridItemsPerRow=ot.prototype.observerRichGridItemsPerRow;ot.prototype.persistentPanelVisibleChanged=ot.prototype.persistentPanelVisibleChanged;
_.W([_.M(_.FO),_.X("design:type",Object)],ot.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.M(kCV),_.X("design:type",Object)],ot.prototype,"ytdTabbedHeaderBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ot.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],ot.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ot.prototype,"ytdReduxBehavior",void 0);_.W([_.Z7("#tabs"),_.X("design:type",Object)],ot.prototype,"tabsElement",void 0);_.W([_.q(),_.X("design:type",Array)],ot.prototype,"tabs",void 0);_.W([_.q(),_.X("design:type",Object)],ot.prototype,"expandableCustomTabRenderable",void 0);
_.W([_.O("tabs.*"),_.X("design:type",Object),_.X("design:paramtypes",[])],ot.prototype,"tabGroupShape",null);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ot.prototype,"isRichGrid",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ot.prototype,"isConstrainedList",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Object)],ot.prototype,"richGridMiniMode",void 0);_.W([_.q({selector:function(v){return v.ui.richGridStyle}}),
_.X("design:type",Object)],ot.prototype,"richGridStyle",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.X("design:type",Object)],ot.prototype,"isRichGridShorts",void 0);_.W([_.q({selector:_.C7}),_.X("design:type",Number)],ot.prototype,"richGridItemsPerRow",void 0);_.W([_.q({selector:function(v){return v.ui.richGridContainerWidth}}),
_.X("design:type",Number)],ot.prototype,"richGridContainerWidth",void 0);_.W([_.q({selector:_.nco}),_.X("design:type",Number)],ot.prototype,"richGridSlimItemsPerRow",void 0);_.W([_.q(),_.X("design:type",Object)],ot.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ot.prototype,"responsiveSizing",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ot.prototype,"disableGridStateAware",void 0);
_.W([_.q({computed:"computeImageBannerViewModel(data)"}),_.X("design:type",Object)],ot.prototype,"imageBannerViewModel",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.X("design:type",Boolean)],ot.prototype,"hasCinematicContainer",void 0);_.W([_.q({selector:_.x2d,reflectToAttribute:!0}),_.X("design:type",Boolean)],ot.prototype,"guideIsVisibleButNotPersistent",void 0);
_.W([_.q({selector:GTJ}),_.X("design:type",Boolean)],ot.prototype,"persistentPanelVisible",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("imageBannerViewModel"),_.X("design:type",Object),_.X("design:paramtypes",[])],ot.prototype,"hasBanner",null);_.W([_.q({reflectToAttribute:!0}),_.O("imageBannerViewModel"),_.X("design:type",Object),_.X("design:paramtypes",[])],ot.prototype,"hasInsetBanner",null);
_.W([_.q({computed:"computeTabsHidden(tabs)",value:!0}),_.X("design:type",Boolean)],ot.prototype,"tabsHidden",void 0);_.W([_.ph("persistentPanelVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ot.prototype,"persistentPanelVisibleChanged",null);_.W([_.ph("richGridItemsPerRow","isRichGrid"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ot.prototype,"observerRichGridItemsPerRow",null);
_.W([_.ph("richGridSlimItemsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ot.prototype,"observerRichGridSlimItemsPerRow",null);_.W([_.ph("richGridItemsPerRow","richGridMiniMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ot.prototype,"updateCssVars",null);
_.W([_.ph("richGridContainerWidth"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ot.prototype,"updateCssVarsForResponsiveGrid",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ot.prototype,"onDataChanged",null);_.W([_.J({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],ot);
_.B(ot,"ytd-tabbed-page-header",function(){if(hD5!==void 0)return hD5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hD5=v},{mode:1});var Cac;var XX=function(){return _.z.apply(this,arguments)||this};
_.f(XX,_.z);XX.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.F6(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.hr.Object.defineProperties(XX.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var v,Q;return this.componentBehavior.computeIcon_(((Q=_.y((v=this.data)==null?void 0:v.badge,_.C0x))==null?void 0:Q.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.badge,_.C0x))==null?void 0:Q.label}}});
XX.prototype.observerRichGridItemsPerRow=XX.prototype.observerRichGridItemsPerRow;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],XX.prototype,"componentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],XX.prototype,"ytdReduxBehavior",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.GO}),_.X("design:type",Boolean)],XX.prototype,"richGridMiniMode",void 0);
_.W([_.q({selector:_.C7}),_.X("design:type",Number)],XX.prototype,"richGridItemsPerRow",void 0);_.W([_.q(),_.X("design:type",Object)],XX.prototype,"data",void 0);_.W([_.ph("richGridItemsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],XX.prototype,"observerRichGridItemsPerRow",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],XX.prototype,"badgeIconName",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],XX.prototype,"badgeLabel",null);_.W([_.J({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],XX);
_.B(XX,"ytd-member-hub-profile-renderer",function(){if(Cac!==void 0)return Cac;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Cac=v},{mode:1});var MSb;var at=function(){return _.z.apply(this,arguments)||this};
_.f(at,_.z);at.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],at.prototype,"data",void 0);_.W([_.J({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],at);
_.B(at,"ytd-settings-sidebar-renderer",function(){if(MSb!==void 0)return MSb;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return MSb=v},{mode:1});var Owl;var rF=function(){var v=_.z.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(Q){return XqP(Q,function(){return void v.onSearchNavigate()})};
return v};
_.f(rF,_.z);rF.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
rF.prototype.onSearchNavigate=function(){this.selected=void 0};
rF.prototype.onTabsChange=function(){var v,Q=(v=this.tabs)==null?void 0:v.findIndex(function(V){var E;return V==null?void 0:(E=V.tabRenderer)==null?void 0:E.selected});
Q!==void 0&&(this.selected=Q)};
rF.prototype.onTabsActive=function(v){if(this.tabs!==void 0){var Q,V;(v=(Q=this.tabs[v.detail.selected])==null?void 0:(V=Q.tabRenderer)==null?void 0:V.endpoint)&&_.Hj(this.hostElement,"yt-navigate",{endpoint:v})}};
_.hr.Object.defineProperties(rF.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:$jq(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
rF.prototype.onTabsChange=rF.prototype.onTabsChange;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.FO),_.X("design:type",Object)],rF.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],rF.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],rF.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Array)],rF.prototype,"tabs",void 0);_.W([_.q(),_.X("design:type",Number)],rF.prototype,"selected",void 0);_.W([_.O("tabs.*"),_.X("design:type",Object),_.X("design:paramtypes",[])],rF.prototype,"tabGroupShape",null);_.W([_.q(),_.X("design:type",Object)],rF.prototype,"expandableCustomTabRenderable",void 0);
_.W([_.O("tabs"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],rF.prototype,"tabsEnabled",null);_.W([_.wg("tabs"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rF.prototype,"onTabsChange",null);_.W([_.J({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],rF);
_.B(rF,"ytd-topic-channel-details-renderer",function(){if(Owl!==void 0)return Owl;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Owl=v},{mode:1});var DN5;var $r=function(){var v=_.z.apply(this,arguments)||this;v.disableGridStateAware=!1;return v};
_.f($r,_.z);$r.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]]"}}}}}};
$r.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
$r.prototype.updateCssVars=function(){_.F6(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.T_("rich_grid_max_item_width",500))+16)-16+"px"})};
$r.prototype.updateCssVars=$r.prototype.updateCssVars;$r.prototype.activeChanged=$r.prototype.activeChanged;_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],$r.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],$r.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$r.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Array)],$r.prototype,"tabs",void 0);_.W([_.q(),_.X("design:type",Boolean)],$r.prototype,"active",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],$r.prototype,"disableGridStateAware",void 0);
_.W([_.q({selector:_.C7}),_.X("design:type",Number)],$r.prototype,"richGridItemsPerRow",void 0);_.W([_.q({selector:_.GO}),_.X("design:type",Boolean)],$r.prototype,"richGridMiniMode",void 0);_.W([_.Z7("ytd-carousel-item-renderer"),_.X("design:type",Object)],$r.prototype,"carousel",void 0);_.W([_.ph("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$r.prototype,"activeChanged",null);
_.W([_.ph("richGridItemsPerRow","richGridMiniMode"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$r.prototype,"updateCssVars",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],$r);
_.B($r,"ytd-carousel-header-renderer",function(){if(DN5!==void 0)return DN5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return DN5=v},{mode:1});var RDn;var n4f=_.s$(["https://www.google-analytics.com/analytics.js"]),It=function(){var v=_.z.apply(this,arguments)||this;v.scriptAnalyticsAdded=!1;return v};
_.f(It,_.z);It.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var v,Q=(v=this.data)==null?void 0:v.tagManagerId;Q&&(_.WO(Q,_.r7("GL")),HfV(Q))};
It.prototype.sendGoogleAnalyticsPageview=function(v){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var V=_.aE.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(V)};
var Q=window.ga;Q("set","page",window.location.pathname);Q.l=+new Date;Q("set","forceSSL",!0);Q("create",v,"'auto'");Q("send","pageview")};
It.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var v=_.RD("SCRIPT");v.name="ga-analytics";var Q=_.Ad(n4f);_.L$(v,Q);v.async=!0;_.m9(this.hostElement).appendChild(v)};
It.prototype.dataChanged=It.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],It.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],It.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],It);
_.B(It,"ytd-channel-metadata-renderer",function(){if(RDn!==void 0)return RDn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return RDn=v},{mode:1});var lTn;var qYJ;var HG=function(){var v=_.z.apply(this,arguments)||this;v.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);v.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return v};
_.f(HG,_.z);_.K=HG.prototype;_.K.attached=function(){this.requestElementsPerRow()};
_.K.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_]]"}}}}}};
_.K.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
_.K.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.K.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.K.computeAlertStyle_=function(v){return v};
_.K.observerElementsPerRow=function(){this.elementsPerRow&&_.F6(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.K.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.K.requestElementsPerRow=function(){_.Hj(this.hostElement,"yt-request-elements-per-row")};
HG.prototype.onIsVisibleChanged_=HG.prototype.onIsVisibleChanged_;HG.prototype.observerElementsPerRow=HG.prototype.observerElementsPerRow;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],HG.prototype,"actionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],HG.prototype,"data",void 0);_.W([_.q({value:6,reflectToAttribute:!0}),_.X("design:type",Number)],HG.prototype,"elementsPerRow",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],HG.prototype,"wrapButtons",void 0);_.W([_.q({value:_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.X("design:type",Boolean)],HG.prototype,"isMusic",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.X("design:type",String)],HG.prototype,"alertStyle",void 0);_.W([_.q({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.X("design:type",Function)],HG.prototype,"dismissBoundButtonTap_",void 0);_.W([_.q({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.X("design:type",Function)],HG.prototype,"acceptBoundButtonTap_",void 0);_.W([_.ph("elementsPerRow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],HG.prototype,"observerElementsPerRow",null);_.W([_.ph("data.isVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],HG.prototype,"onIsVisibleChanged_",null);_.W([_.D7({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],HG);
_.B(HG,"yt-alert-with-actions-renderer",function(){if(qYJ===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;lTn===void 0&&(lTn=document.createElement("template"));var E=lTn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);qYJ=v}v=qYJ;return v},{mode:2});var SY9=_.x(function(v){var Q={};return _.P(_.tD,{text:v.text,className:_.QZ("ytPersonalGreetingViewModelHeadline",(Q.ytPersonalGreetingViewModelHeadlineSmall=v.isSmallHeadline,Q))})},"nn");_.ad(_.x(function(v){var Q=_.C4(function(){var k;return(k=v.data())==null?void 0:k.rendererContext},void 0,void 0,void 0,!0),V=function(){return v.data().canvasPromoData},E=function(){var k;
return(k=v.data().bannerHeight)!=null?k:56},b=_.L(_.PY({throttleMs:100})),F=b.next().value;
b=b.next().value;var t=_.L(_.PY({throttleMs:100})),p=t.next().value;t=t.next().value;var Z=_.L(_.PY({throttleMs:100})),d=Z.next().value;Z=Z.next().value;var w=function(){return p.width()-F.width()>1},A=function(){return E()===48};
return _.P("yt-personal-greeting-view-model",{el:_.ud(Q,b),"aria-hidden":w,class:_.QZ(v.className,"ytPersonalGreetingViewModelHost"),style:_.iP({height:(0,_.iQ)(function(){return w()?0:E()})})},_.P(_.h,{cond:function(){return v.data().avatar&&!(d.width()+(v.data().avatar?48:0)-F.width()>1)},
then:function(){return _.P(_.Pw,{data:function(){return v.data().avatar}},{decoratedAvatarViewModel:function(k){return _.P(_.VO,{data:k.data,
className:_.QZ("ytPersonalGreetingViewModelAvatar")})}})}}),_.P("h1",null,_.P(SY9,{text:function(){var k;
return(V==null?void 0:(k=V())==null?void 0:k.headline)||(d.width()+(v.data().avatar?48:0)-F.width()>1?v.data().shorterGreeting:v.data().greeting)},
isSmallHeadline:A})),_.P("span",{el:_.ud(Z),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.P(SY9,{text:function(){return v.data().greeting},
isSmallHeadline:A})),_.P("span",{el:_.ud(t),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.P(SY9,{text:function(){return v.data().shorterGreeting},
isSmallHeadline:A})))},"mn"),"yt-personal-greeting-view-model",{props:{data:_.pJ,
className:_.pJ}});var mE=function(){var v=_.z.apply(this,arguments)||this;v.hidden=!1;v.isConstrainedList=!1;v.responsiveSizing="COMPACT";v.attachedPlayers=_.Y("kevlar_channel_trailer_multi_attach")?[]:void 0;v.player=null;v.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return v};
_.f(mE,_.z);_.K=mE.prototype;
_.K.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}}}}};
_.K.created=function(){var v=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){v.disposeMastheadAd()}]};
_.K.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new yTP(this.refresh,this.contents))};
_.K.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.K.activeChanged=function(){var v=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=v)};
_.K.tabsChanged=function(){var v=this,Q,V;if(this.pageSubtype==="channels"||_.Y("kevlar_tab_gestures_for_tabbed_header_data")&&((Q=this.data)==null?0:(V=Q.header)==null?0:V.carouselHeaderRenderer))this.tabGestures=new GCP(this.contents,this.contents,this.hostElement,this.header,function(t){v.ytdReduxBehavior.dispatch(t)});
var E,b,F;Q=(E=this.data)==null?void 0:(b=E.contents)==null?void 0:(F=b.twoColumnBrowseResultsRenderer)==null?void 0:F.tabs;this.tabGestures&&this.tabGestures.tabsChanged(Q)};
_.K.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.K.engagementPanelsChanged=function(){var v=_.ht().resolve(_.$2);if(v){if(this.engagementPanels)for(var Q=_.L(this.engagementPanels),V=Q.next();!V.done;V=Q.next()){var E=void 0;(V=(E=V.value.identifier)==null?void 0:E.tag)&&v.panelMap.delete(V)}this.engagementPanels=[];var b;Q=_.L(((b=this.data)==null?void 0:b.panels)||[]);for(b=Q.next();!b.done;b=Q.next()){b=_.y(b.value,_.$$P);var F=V=void 0,t=void 0,p=void 0;if(E=((V=b)==null?void 0:V.targetId)||((F=b)==null?void 0:F.panelIdentifier)||((t=b)==
null?void 0:(p=t.identifier)==null?void 0:p.tag))F=V=void 0,(F=(V=v).registerPanelContent)==null||F.call(V,E,{engagementPanelSectionListRenderer:b}),this.engagementPanels.push(b)}}};
_.K.onStampFinished=function(){var v=this;_.PE(this,function(){if(v.tabGestures){var Q=v.tabGestures;if(Q.scrollPositionNeedsUpdate){var V=_.ht().resolve(_.d$(_.oJ)),E;if((E=Q.selectedTab)!=null&&E.title&&V&&(E=V.getCurrentPage())){if(Q.scrollPositionForTabs.has(Q.selectedTab.title)){var b,F;V=(F=(b=V.getCurrentPage())==null?void 0:b.clientHeight)!=null?F:0;b=Q.scrollPositionForTabs.get(Q.selectedTab.title);E.setScrollTop(b);V>b+100&&(Q.scrollPositionNeedsUpdate=!1)}else E.setScrollTop(Math.min(Q.lastVisitedTabScrollPosition!==
void 0?Q.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,Q.tabsStartAtInPx)),Q.scrollPositionNeedsUpdate=!1;Q.ytdReduxDispatch(I5P(!1))}}}})};
_.K.loadPage_=function(v){this.initCsi();v&&(this.data=v);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.K.getTitle=function(v){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",v))return this.get("microformat.microformatDataRenderer.title",v);if(this.get("header.feedTabbedHeaderRenderer.title",v))return _.j0(this.get("header.feedTabbedHeaderRenderer.title",v));if(this.get("header.interactiveTabbedHeaderRenderer.title",v))return this.get("header.interactiveTabbedHeaderRenderer.title",v);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
v))return _.j0(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",v));var Q,V;return(v==null?0:(Q=v.header)==null?0:(V=Q.pageHeaderRenderer)==null?0:V.pageTitle)?v.header.pageHeaderRenderer.pageTitle:""};
_.K.updateTitle=function(v){_.Hj(this.hostElement,"yt-update-title",this.getTitle(v))};
_.K.initCsi=function(){_.uII(this.pageSubtype||"browse",["ol","cpt"])};
_.K.getPlayer=function(){if(_.Y("kevlar_channel_trailer_multi_attach")){for(var v=_.L(this.attachedPlayers),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.isConnected||_.HM(this.hostElement,Q))return Q;return null}return this.player};
_.K.getPlayerContainer=function(){return null};
_.K.onPlayerAttached=function(v,Q){_.Y("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(Q):this.player=Q};
_.K.onPlayerDetached=function(v,Q){_.Y("kevlar_channel_trailer_multi_attach")?(v=this.attachedPlayers.indexOf(Q),v<0||this.attachedPlayers.splice(v,1)):this.player=null};
_.K.getServiceTrackingParams=function(){var v,Q;return((v=this.data)==null?void 0:(Q=v.responseContext)==null?void 0:Q.serviceTrackingParams)||[]};
_.K.setMastheadAd=function(v){v&&v.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=v&&v.mastheadAd};
_.K.dataChanged=function(){var v=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.q95();_.PE(this,function(){_.Un(v.hostElement,"ytd-update-grid-state-action")})};
_.K.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.K.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var v=this.data.alerts;return v&&v.find(function(Q){return!!Q.alertWithActionsRenderer})}};
_.K.computeGreetingData=function(){if(this.data&&this.data.alerts){var v=this.data.alerts;return v&&v.find(function(Q){return!!Q.personalGreetingViewModel})}};
_.K.computeHasMemberHubProfileRenderer=function(v){var Q;return!!(v==null?0:(Q=v.header)==null?0:Q.memberHubProfileRenderer)};
_.K.handleAlertCommand=function(v){this.get("alertCommand.alert.alertWithActionsRenderer",v)&&(v=_.y(v,Kke),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",v.alert))};
_.K.handleYtPlaylistDeletionRedirect=function(v){v=this.get("playlistDeletionRedirectCommand.redirectEndpoint",v);_.Hj(this.hostElement,"yt-navigate",{endpoint:v})};
_.K.computeFluidWidth=function(v,Q,V){if(Q==="mini_app"||V)return!0;var E,b,F;v=v==null?void 0:(E=v.contents)==null?void 0:(b=E.twoColumnBrowseResultsRenderer)==null?void 0:(F=b.tabs)==null?void 0:F.find(function(Z){var d;return Z==null?void 0:(d=Z.tabRenderer)==null?void 0:d.selected});
if(!v)return!1;var t,p;return!!((t=v.tabRenderer)==null?0:(p=t.content)==null?0:p.richGridRenderer)&&!["channel","channels","playables"].includes(Q)};
_.K.computeHeaderFluidWidth=function(v){return v==="hashtag-landing-page"};
_.K.computeHasSidebar=function(v){var Q;return!!(v.sidebar||((Q=v.header)==null?0:Q.playlistHeaderRenderer))};
_.K.computeHasPageHeaderSidebar=function(v){var Q,V;return!!((Q=v.header)==null?0:(V=Q.pageHeaderRenderer)==null?0:V.enableSidebarView)};
_.K.computeUseUnifiedShowPageLayout=function(v){if(!v||this.pageSubtype!=="show"||!v.sidebar||!v.sidebar.playlistSidebarRenderer)return!1;v=v.sidebar.playlistSidebarRenderer;if(!v.items)return!1;for(var Q=0;Q<v.items.length;Q++)if(_.y(v.items[Q],t1c)){var V=void 0;return((V=_.y(v.items[Q],t1c))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.K.computeIsConstrainedList=function(v){return _.Y("web_enable_constrained_list_subscriptions_channels")&&v==="subscriptions-channels"};
_.K.computeResponsiveSizing=function(v){return v==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.hr.Object.defineProperties(mE.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var v,Q;return((v=this.data)==null?0:(Q=v.header)==null?0:Q.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(!((v=this.data)==null?0:(Q=v.sidebar)==null?0:Q.playlistSidebarRenderer))return!1;var V;return(V=this.data)!=null&&V.header?!1:!0}}});
_.hr.Object.defineProperties(mE,{template:{configurable:!0,enumerable:!0,get:function(){if(Cid===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);Cid=v}v=Cid;return v}}});
mE.prototype.dataChanged=mE.prototype.dataChanged;mE.prototype.onPlayerDetached=mE.prototype.onPlayerDetached;mE.prototype.onPlayerAttached=mE.prototype.onPlayerAttached;mE.prototype.onStampFinished=mE.prototype.onStampFinished;mE.prototype.engagementPanelsChanged=mE.prototype.engagementPanelsChanged;mE.prototype.scrollAtTopChanged=mE.prototype.scrollAtTopChanged;mE.prototype.tabsChanged=mE.prototype.tabsChanged;mE.prototype.activeChanged=mE.prototype.activeChanged;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],mE.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],mE.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],mE.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.EF.YtPageBehavior),_.X("design:type",Object)],mE.prototype,"ytPageBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],mE.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mE.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],mE.prototype,"hidden",void 0);
_.W([_.q(),_.X("design:type",Object)],mE.prototype,"mastheadAdData",void 0);_.W([_.q({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.X("design:type",Object)],mE.prototype,"alertBannerData",void 0);_.W([_.q({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.X("design:type",Object)],mE.prototype,"greetingData",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],mE.prototype,"pageSubtype",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.X("design:type",Boolean)],mE.prototype,"hasMemberHubProfileRenderer",void 0);_.W([_.q({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],mE.prototype,"hasSidebar",void 0);_.W([_.q({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],mE.prototype,"hasPageHeaderSidebar",void 0);
_.W([_.q({reflectToAttribute:!0,value:!0}),_.X("design:type",Boolean)],mE.prototype,"roundedContainer",void 0);_.W([_.q({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],mE.prototype,"useUnifiedShowPageLayout",void 0);_.W([_.q({computed:"computeIsConstrainedList(pageSubtype)"}),_.X("design:type",Object)],mE.prototype,"isConstrainedList",void 0);
_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],mE.prototype,"usePlaylistHeaderRenderer",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],mE.prototype,"useOldPlaylistSidebarRenderer",null);_.W([_.q({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.X("design:type",Boolean)],mE.prototype,"fluidWidth",void 0);_.W([_.q({selector:function(v){return v.ui.scrollAtTop}}),
_.X("design:type",Boolean)],mE.prototype,"scrollAtTop",void 0);_.W([_.q({selector:_.BHn}),_.X("design:type",Boolean)],mE.prototype,"tabGesturesIsActive",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.X("design:type",Boolean)],mE.prototype,"disableHeaderFluidWidth",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.X("design:type",String)],mE.prototype,"responsiveSizing",void 0);
_.W([_.Z7("ytd-two-column-browse-results-renderer"),_.X("design:type",HTMLElement)],mE.prototype,"contents",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],mE.prototype,"header",void 0);_.W([_.Z7("ytd-refresh"),_.X("design:type",Object)],mE.prototype,"refresh",void 0);_.W([_.ph("active"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mE.prototype,"activeChanged",null);
_.W([_.ph("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mE.prototype,"tabsChanged",null);_.W([_.ph("scrollAtTop"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mE.prototype,"scrollAtTopChanged",null);_.W([_.q(),_.X("design:type",Object)],mE.prototype,"engagementPanels",void 0);
_.W([_.ph("data.panels"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mE.prototype,"engagementPanelsChanged",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mE.prototype,"onStampFinished",null);_.W([_.tM("yt-player-attached"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Element]),_.X("design:returntype")],mE.prototype,"onPlayerAttached",null);
_.W([_.tM("yt-player-detached"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Element]),_.X("design:returntype")],mE.prototype,"onPlayerDetached",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mE.prototype,"dataChanged",null);_.W([_.J({is:"ytd-browse"})],mE);_.Vm.registerService(_.ZS0,mE);
_.oD();
}catch(e){_._DumpException(e)}
try{
_.WM("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 Tb,Hhd,mfI,Ufs,vD0,QdI,VMh,ED5,bxI,Fds,Kdf,ixY,tMn,pg8,Zx5,Pds,dQs,wgm,ARm,k4f,TEf,yP,yR0,c1,cRh,fM0,G4I,Cd5,MMY,DQm,nD5,Oxh,Ldh,lMq,qof,SoI,z1j,JR0,NEY,xQd,BEh,gDh,uLf,jdh,oDh,aMq,rR7,$Qh,HxY,UQ$,vW0,QJd,V$5,EWs,b_8,F0m,K0Y,i_h,L07,t$h,p_Y,Z_8,PP0,dC8,hgI,w_m,Asq,krs,TSd,ysh,csY,f1I,Gr0,CPd,M$s,O_Y,DCn,Rgq,nWf,l1f,qP$,SPm,zgf,Js5,NSm,xCh,BS0,gWj,sJn,uK7,jJs,W00,oWf,lj,X_I,a1q,H_q,KC0,pw8,eq0,wwI,kwd,hqn,POj,CO5,DJd,zqd,Z4h,nl0,MCh,A2Y,NWn,gln,j75,s7Y,uSj,WC0,r2h,Xwq,$J7,Izh,az8,old,H4j,NO,ES5,
brm,F6n,xT,K6n,irq,L6m,dMj,he8,B1,gj,Axq,wYs,kz7,Tsj,YI0,yxn,s6,Ren,uj,nSY,lvd,qId,jW,Bsj,zeh,xMq,gSd,Jxh,uQn,Nsh,oSn,jI5,W6j,XYn,rxf,avs,mM7,Vt$,a6,rj,vGq,bqq,QC$,EG8,$T,H1,mq,U6,Mt0,wZ8,RS8,nGI,lo5,q$f,zSf,eS5,ZqI,VD,d35,vK,QD,hS0,S$n,Oqh,PJm,bE,aoq,$3h,Ioh,r_5,jCn,m3d,Qqm,sCn,B3h,gGY,bNq,uuh,iE,vKh,Whs,U3j,XZh,x3h,oGd,K3q,iNh,L3h,pCh,ZNq,Pqn,dqj,hLs,AIm,wC7,TBh,Y7$,cI5,fDd,Cqn,Mm8,ONq,Dq8,RLj,nK$,lDh,S75,q7h,zLs,NBn,xq7,pX,BBj,gKj,sqq,uvm,jqs,W3s,oK$,XCI,aDq,rI0,$qq,HNs,mqf,Uq7,v$n,E$m,Fwq,Kwd,
Lws,iom,t38,p7f,e58,Py8,dcj,h55,w7Y,AZs,km5,T2Y,Yc0,yZn,cZI,fyq,Oo8,Dc0,Cys,M3h,Gm5,R55,qcq,n$m,lyf,JZY,Scj,z5f,N2I,xch,B25,g$I,uZh,jMn,Ww0,X7I,ays,$ch,HoI,Uc7,Qg$,Euj,F_q,iv0,tDm,Zvn,dVI,hvY,wA$,klh,AGn,YE5,yG8,cGm,fOf,Z$,Glj,Ccn,MD5,BLs,sgd,u5j,XAm,hO,aO0,rGf,$Vm,Hv0,IOd,mVI,UV8,vxh,Qld,VNs,qO,Ex7,bMY,vum,FGh,KGj,Xgn,iMh,LG0,tN5,peq,eKm,ZM5;
Tb=function(v){if(!v)return"browse";var Q=v.page,V=v.url,E,b,F,t=(E=v.response)==null?void 0:(b=E.responseContext)==null?void 0:(F=b.webResponseContextExtensionData)==null?void 0:F.pageTheme;if(t)Q=t.toLowerCase().replace(/_/g,"-");else if(Q!=="watch"&&Q!=="learning_journey_watch"){var p,Z;if((Q==="browse"||Q==="settings")&&((p=v.response)==null?0:(Z=p.sidebar)==null?0:Z.settingsSidebarRenderer))Q="WEB_PAGE_TYPE_SETTINGS";else{var d,w;Q==="browse"&&((d=v.response)==null?0:(w=d.metadata)==null?0:w.channelMetadataRenderer)?
Q="channel":V&&(Q=_.b5E(V)||Q)}}return Q};
Hhd=function(){var v=_.Q9("yt.aba.att");return v?v:_.xA.instance!==void 0?_.xA.instance.oUE.bind(_.xA.instance):null};
mfI=function(v,Q){var V;return _.e(function(E){return(V=Hhd())?E.return(V(v,Q,6E4)):E.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
Ufs=function(v,Q,V,E,b){Q=Q===void 0?[]:Q;b=b?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:b}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.I$(v),dialogMessages:Q.map(function(F){return _.I$(F)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I$(V),serviceEndpoint:b}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I$(E)}}}}}};
vD0=function(v,Q,V){V=V===void 0?!1:V;var E=_.u9(),b=!!_.hQ().queueProxy,F,t,p;v=v==null?void 0:(F=v.response)==null?void 0:(t=F.currentVideoEndpoint)==null?void 0:(p=t.watchEndpoint)==null?void 0:p.playlistId;if((b||v)&&!_.Y("web_watch_disable_playlist_auto_miniplayer"))return V&&(E.playlistWatchPageActivation=!0),!0;switch(Tb(Q)){case "yts-products":return V&&(E.productDetailsPageActivation=!0),!0;case "mini_app":return V&&(E.miniAppPageActivation=!0),!0;case "playables":return V&&(E.playablesDestPageActivation=
!0),!0;case "companion-canvas":return V&&(E.companionCanvasActivation=!0),!0;default:return!1}};
QdI=function(v){v=_.iEh(v);v.length>0&&v[0].focus()};
VMh=function(v,Q,V){for(var E=typeof v==="string"?v.split(""):v,b=v.length-1;b>=0;--b)b in E&&Q.call(V,E[b],b,v)};
ED5=function(v,Q){Q=_.Dmh(v,Q);Q>=0&&_.lt0(v,Q)};
bxI=function(v){return Array.prototype.concat.apply([],arguments)};
Fds=function(v){var Q=0;Q=Q===void 0?0:Q;if(!_.V5(v))throw _.vN("uint64");var V=typeof v;switch(Q){case 512:switch(V){case "string":return _.lXG(v);case "bigint":return String((0,_.A7)(64,v));default:return _.RQZ(v)}case 1024:switch(V){case "string":return _.qRG(v);case "bigint":return _.xa((0,_.A7)(64,v));default:return _.nao(v)}case 0:switch(V){case "string":return _.lXG(v);case "bigint":return _.xa((0,_.A7)(64,v));default:return _.DZh(v)}default:return _.rV(Q,"Unknown format requested type for int64")}};
Kdf=function(v){v!=null&&(v=v.JSC$8900_value_||"",v=typeof v==="string"?v:new Uint8Array(v));return v};
ixY=function(v,Q){if(/-[a-z]/.test(Q))return null;if(_.hIx&&v.dataset){if(_.TGr()&&!(Q in v.dataset))return null;v=v.dataset[Q];return v===void 0?null:v}return v.getAttribute("data-"+_.LC(Q))};
tMn=function(){var v=Ldh;_.Q9("yt.ads.biscotti.getId_")||_.Pr("yt.ads.biscotti.getId_",v)};
pg8=function(v){_.Pr("yt.ads.biscotti.lastId_",v)};
Zx5=function(){var v={};for(_.jw=new e18(v.handleError===void 0?_.$h:v.handleError,v.logEvent===void 0?_.X0:v.logEvent);_.W5.length>0;)switch(v=_.W5.shift(),v.type){case "ERROR":_.jw.logError(v.payload);break;case "EVENT":_.jw.logEvent(v.eventType,v.payload)}};
Pds=function(v,Q,V){return _.t0S(function(E){return V?E.userIdentifier!==void 0&&!v.includes(E.userIdentifier)&&V.includes(E.publicName):E.userIdentifier!==void 0&&!v.includes(E.userIdentifier)},Q)};
dQs=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return Q=_.Jt("YtIdbMeta hasAnyMeta other"),E.yield(_.t0S(function(b){return b.userIdentifier!==void 0&&b.userIdentifier!==Q},v),2);
V=E.yieldResult;return E.return(V.length>0)})};
wgm=function(v,Q){h1h||(h1h=_.XT.addLowPriorityJob(function(){var V,E,b,F,t;return _.e(function(p){switch(p.nextAddress){case 1:return p.yield(_.dO(),2);case 2:V=p.yieldResult;if(!V)return p.return();E=!0;_.GC(p,3);return p.yield(Pds(v,V,Q),5);case 5:b=p.yieldResult;if(!b.length){E=!1;p.jumpTo(6);break}F=b[0];return p.yield(_.KO(F.actualName),7);case 7:return p.yield(_.tF(F.actualName,V),6);case 6:_.FT(p,4);break;case 3:t=_.n$(p),_.om(t),E=!1;case 4:_.XT.cancelJob(h1h),h1h=0,E&&wgm(v,Q),_.q1(p)}})}))};
ARm=function(){var v;return _.e(function(Q){return Q.nextAddress==1?Q.yield(_.dO(),2):(v=Q.yieldResult)?Q.return(dQs(v)):Q.return(!1)})};
k4f=function(v){var Q=100;Q=Q===void 0?500:Q;var V,E,b,F,t,p;return _.e(function(Z){return Z.nextAddress==1?(V=_.r7("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[V,(0,_.wO)()-2592E6],b=[V,(0,_.wO)()],F=IDBKeyRange.bound(E,b),Z.yield(_.JMQ(v),2)):Z.nextAddress!=3?(t=Z.yieldResult,p=[],Z.yield(_.LO(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){p.length=0;return _.AF(d.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:F,direction:"prev"},function(w){if(w.getValue()&&p.length<
Q)return p.push(w.getValue()),w.delete().then(function(){return w.continue()})})}),3)):Z.return(p)})};
TEf=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.dO(),2);v=Q.yieldResult;if(!v||!_.NY()&&!_.Y("nwl_init_require_datasync_id_killswitch")||!_.QdS())return Q.jumpTo(0);_.EDo=!0;_.VMb.isNwlInitialized=_.EDo;return Q.yield(_.qxa().awaitInitialization(),0)})};
yP=function(v,Q){_.Yoh[v]=!0;var V=_.Tv();V&&V.publish.apply(V,arguments);_.Yoh[v]=!1};
yR0=function(){if(_.HF9()&&!Yo8){var v=function(V){V=V.data;if(V.op==="serializedGelBatch"){var E=_.ysb.get(V.key);E&&(_.f1S(V.serializedBatch,E.client,E.resolve,E.networklessOptions,E.isIsolated,E.useVSSEndpoint,E.dangerousLogToVisitorSession,E.requestsOutstanding),_.ysb.delete(V.key))}},Q=_.Ilo();
Q&&(Q.addEventListener("message",v),Q.onerror=function(){_.ysb.clear()});
Yo8=!0}};
c1=function(){this.relativeTimeStart_=_.IC()};
cRh=function(v,Q){v!=null&&this.append.apply(this,arguments)};
fM0=function(){return _.lY("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
G4I=function(v,Q,V){V=V===void 0?!1:V;var E,b,F,t,p;return _.e(function(Z){switch(Z.nextAddress){case 1:_.Sw("SOCS",v,34128E3,"youtube.com",!0);if(_.Fv)return b=fetch(Q,{method:"POST",mode:_.xI(Q),credentials:_.No(Q),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),F=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.xI("/upgrade_visitor_cookie?eom=1"),credentials:_.No("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),Z.yield(Promise.all([b,F]).then(function(d){return d[1]}),5);
fetch(Q,{method:"POST",mode:_.xI(Q),credentials:_.No(Q),cache:"no-store",headers:{"Content-Type":"text/plain"}});return Z.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.xI("/upgrade_visitor_cookie?eom=1"),credentials:_.No("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:E=Z.yieldResult;Z.jumpTo(3);break;case 5:E=t=Z.yieldResult;case 3:if(!E.ok)throw Error("uf");return Z.yield(E.text(),7);case 7:p=Z.yieldResult,
!p.includes('"state_switch":true')&&!V||p.includes("skip_reload_for_test")||window.location.reload(),_.q1(Z)}})};
Cd5=function(v){return _.e(function(Q){return Q.nextAddress==1?Q.yield(G4I(v.socsCookie,v.savePreferenceUrl,!0),2):Q.return()})};
MMY=function(v){return _.e(function(Q){return Q.nextAddress==1?Q.yield(G4I(v.socsCookie,v.savePreferenceUrl),2):Q.return()})};
DQm=function(v){v=v.xhr.responseText;if(!_.KE(v,")]}'"))throw new fe;v=JSON.parse(v.substr(4));if((v.type||1)>1)throw new fe;v=v.id;pg8(v);Gb=_.AL(v);Oxh(18E5,2);return v};
nD5=function(v,Q){Q=new R1s(Q);pg8("");Gb=_.JvN(Q);v>0&&Oxh(12E4,v-1);throw Q;};
Oxh=function(v,Q){_.G_(function(){_.h$I().then(DQm,function(V){return nD5(Q,V)}).thenCatch(_.c7)},v)};
Ldh=function(){var v=_.kPY();if(v!==void 0)return _.kD(v);Gb||(Gb=_.h$I().then(DQm).thenCatch(function(Q){return nD5(2,Q)}));
return Gb};
lMq=function(){var v=document;return _.J3(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Q){return"on"+Q.toLowerCase()in v})};
qof=function(v){v.addEventListener("click",function(Q){var V=Q.target;V&&V.getAttribute("href")&&(V=V.getAttribute("href"),_.VN(window,V,"_blank"),Q.preventDefault(),Q.stopImmediatePropagation())})};
SoI=function(v){var Q,V,E,b=(E=(V=((Q=v.mainDownloadsListEntity)!=null?Q:{})[_.cDB])==null?void 0:V.refresh)!=null?E:"",F;v=(F=v.refresh)==null?void 0:F[b];b=v!=null?v:{};return(b==null?0:b.refreshTime)?Number(b==null?void 0:b.refreshTime):0};
z1j=function(v,Q){var V=_.TO(v);return Q.every(function(E){var b;E=E==null?void 0:(b=E.playbackDataEntity)==null?void 0:b.key;if(!E)return!1;b=_.b3(_.Q_(E).entityId,"mainVideoEntity");return!!V[b]})};
JR0=function(v){v=_.w8(v.entities);return _.Nwo(v).length};
NEY=function(v,Q){if(Q){var V;v=(V=_.Fg(v.entities,"downloadQualityPickerEntity",Q))!=null?V:void 0}else v=void 0;return v};
xQd=function(v){var Q=document.getElementsByTagName("ytd-enforcement-message-view-model");Q.length===0||getComputedStyle(Q[0]).display==="none"?v(0,"p.h_"):v(1,"p.h_")};
BEh=function(){Ce=0;var v=[_.Zl(!0)];MO&&_.Un(MO,"yt-window-resized",v)};
gDh=function(){Ce||(Ce=_.XT.addLowPriorityJob(BEh,200))};
uLf=function(){O6=0;sd7=_.w4V(document);var v=[sd7];MO&&_.Un(MO,"yt-window-scrolled",v)};
jdh=function(){O6||(O6=_.XT.addLowPriorityJob(uLf,200))};
oDh=function(v){v=v===void 0?null:v;Wd7.push(_.ZW(window,"resize",gDh));Wd7.push(_.ZW(window,"scroll",jdh));v&&(MO=v)};
aMq=function(){var v=_.An.getLocalStorage();v&&Xgn(v,v.mechanism.__iterator__(!0))};
rR7=function(v){_.e(function(Q){if(Q.nextAddress==1)return Q.yield(v.delete("yt-appshell-assets"),2);_.q1(Q)})};
$Qh=function(v){return _.iD((0,_.sYp)(),v)};
HxY=function(){var v;_.e(function(Q){return Q.nextAddress==1?Q.yield(DF.getInstance(),2):(v=Q.yieldResult)?Q.yield(IMf(v),0):Q.jumpTo(0)})};
UQ$=function(){var v;_.e(function(Q){return Q.nextAddress==1?Q.yield(R6.getInstance(),2):(v=Q.yieldResult)?Q.yield(mQI(v),0):Q.jumpTo(0)})};
vW0=function(v){rR7(v);HxY();UQ$()};
QJd=function(v){var Q,V;return _.e(function(E){if(E.nextAddress==1)return E.yield(_.Msh(v),2);if(Q=E.yieldResult){var b;a:{if(Q.headers&&(b=Q.headers.get("date"))&&(b=Date.parse(b),!isNaN(b))){b=Math.round((0,_.wO)()-b);break a}b=-1}V=b;if(V>-1)return E.return(V)}return E.return(-1)})};
V$5=function(){var v=_.bb.caches,Q=_.mX("IS_SHELL_LOAD"),V,E;_.e(function(b){if(b.nextAddress==1)return V=-1,Q?b.yield(QJd(v),3):(E=_.Ay(),V=Math.round((0,_.wO)()-E),b.jumpTo(2));b.nextAddress!=2&&(V=b.yieldResult);V>=0&&V<2147483648&&_.ft({appInstallDataAgeMs:V});_.q1(b)})};
EWs=function(v){var Q=_.vR(_.bb.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(E){var b=Q.JSC$10112_queryData_.getValues(E);if(b==null?0:b.length)V[E]=b});
return _.k4(v,new Map(Object.entries(V)))};
b_8=function(v){v=v.match(/(.*)::.*::.*/);if(v!==null)return v[1]};
F0m=function(v){if(_.oOb()){var Q=Object.keys(window.localStorage);Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=b_8(V);E===void 0||v.includes(E)||self.localStorage.removeItem(V)}}};
K0Y=function(){if(!_.oOb())return!1;var v=_.Jt(),Q=Object.keys(window.localStorage);Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())if(V=b_8(V.value),V!==void 0&&V!==v)return!0;return!1};
i_h=function(v){return _.bj("NotificationsDisabled",v)};
L07=function(){return Notification.permission!="granted"?Promise.resolve():_.gNY().then(function(v){return v?v.pushManager.getSubscription().then(function(Q){if(Q)return Promise.resolve();Q={userVisibleOnly:!0,applicationServerKey:_.H9("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return v.pushManager.subscribe(Q).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
t$h=function(v){return _.gNY().then(function(Q){if(!Q||!Q.active)return Promise.reject(new _.xd("serviceworker.postMessage",v,Q));try{return Q.active.postMessage(v),Promise.resolve()}catch(V){return Promise.reject(V)}})};
p_Y=function(){t$h({type:"notifications_register",data:_.r7("ID_TOKEN")})};
Z_8=function(){var v={isWide:_.qY.get("wide","0")==="1"},Q=_.eP();if(Q=Q.getFlag(165)||Q.getFlag(174))v.theme=_.q2(!0);if(_.tnG()){var V=_.lK()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";v.systemTheme=V}!Q&&_.Y("parent_tools_enable_app_settings")&&_.Ki(window.location.href).theme!==void 0&&(v.theme=_.q2());if((Q=ne)?!_.gI.equals(Q,v):v)Q={currentValue:v},eg0&&(Q.timeSinceLastSnapshotSecs=Math.round(((0,_.wO)()-eg0)/1E3)),ne&&(Q.previousValue=ne),_.X0("appSettingsCaptured",Q),ne=v,eg0=
(0,_.wO)()};
PP0=function(){if(!_.mX("LOGGED_IN"))return Promise.resolve(!1);var v=_.y9("service_worker_push_force_notification_prompt_tag");return v?_.Xm("PromptTags").then(function(Q){if(!Q)return!0;var V=[];try{V=JSON.parse(Q)}catch(E){return!1}return V&&V.indexOf(v)==-1}):Promise.resolve(!1)};
dC8=function(){var v=_.T_("service_worker_push_prompt_delay_microseconds");return v?_.Xm("PromptTime").then(function(Q){return Promise.resolve(Date.now()-v>(Q||0))}):Promise.resolve(!0)};
hgI=function(){var v=_.T_("service_worker_push_logged_out_prompt_watches");return v==-1?Promise.resolve(!1):_.Xm("WatchCount").then(function(Q){return Q>=v})};
w_m=function(){var v=_.$W(document,"yt-push-prompt-modal-bg");v&&_.ng(v)};
Asq=function(){return _.T_("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Xm("PromptCount").then(function(v){v||(v=0);return Promise.resolve(v<_.T_("service_worker_push_prompt_cap"))})};
krs=function(v){return _.mX("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.mX("LOGGED_IN")&&(v===void 0?0:v)?PP0().then(function(Q){if(Q)return!0;Q=[Asq(),dC8()];_.mX("LOGGED_IN")||Q.push(hgI());return Promise.all(Q).then(function(V){return V.every(function(E){return E})})}):Promise.resolve(!1)};
TSd=function(){_.Xm("PromptCount").then(function(v){return _.bj("PromptCount",v+1)}).then(function(){return _.bj("PromptTime",Date.now())}).then(function(){var v=_.y9("service_worker_push_force_notification_prompt_tag");
if(v)return _.Xm("PromptTags").then(function(Q){var V=[];if(Q)try{V=JSON.parse(Q)}catch(E){return!1}V||(V=[]);V.push(v);return _.bj("PromptTags",JSON.stringify(V))})})};
ysh=function(){YPm||w_m()};
csY=function(v){v.style.zIndex=2147483648;v.style.pointerEvents="auto";v.style.backgroundColor="rgba(0, 0, 0, 0.6)";v.style.width="100%";v.style.height="100vh";v.style.position="absolute";v.style.top="0";v.style.left="0";v.style.border="none"};
f1I=function(){var v=_.$W(document,"yt-push-prompt-modal-bg");YPm=_.Y("service_worker_push_prompt_modal_ignore_click");v?csY(v):(v=_.no("div",{id:"yt-push-prompt-modal-bg"}),csY(v),document.body.appendChild(v),_.h1b(document,"click",ysh))};
Gr0=function(){var v=arguments;_.Y("service_worker_push_prompt_modal_enable")&&f1I();return Notification.requestPermission().then(function(Q){w_m();var V=document.getElementById("ticker");V&&(V.className=V.classList.remove("show"));if(Q=="granted")return L07().then(function(){i_h(!1);p_Y();return Promise.resolve(!0)});
Q=="denied"&&p_Y();return Promise.resolve(!1)}).catch(function(){w_m();
return Promise.reject.apply(Promise,_.ui(v))})};
CPd=function(v){v=v===void 0?!1:v;var Q=_.dh9().client;if(Q&&Q.browserVersion){var V=Q.browserVersion,E=Q.browserName=="CHROME"&&_.wG(V,"50.0.0")<0;Q=Q.browserName=="OPERA"&&_.wG(V,"42.0.0")<0;if(E||Q)return Promise.resolve()}return _.jO7().then(function(b){if(!b)return Promise.resolve();b=L07().then(function(){return t$h({type:"notifications_check_registration",data:_.r7("ID_TOKEN")})});
return Notification.permission!="default"?b.catch(function(){}):b.then(function(){return krs(v)}).then(function(F){if(F)return TSd(),Gr0().then(function(){})}).catch(function(){})})};
M$s=function(v){return _.sOm(v)?CPd():Promise.resolve()};
O_Y=function(v){var Q=v.installing||v.waiting;return v.active||!Q?Promise.resolve(v):new Promise(function(V){var E=function(b){b=b.target;if(b.state==="activated"||b.state==="redundant")Q.removeEventListener("statechange",E),V(v)};
Q.addEventListener("statechange",E)})};
DCn=function(){var v=new _.fbB("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Fu(v,{mainAppWeb:_.N2()});var Q=_.iLx;_.Y("service_worker_forward_exp_params")&&(Q=EWs(Q));try{var V=_.AkT(Q).catch(function(){_.Kq(v,"FAILURE");return new Promise(function(){})});
_.Y("service_worker_push_enabled")&&V.then(function(E){_.Kq(v,"SUCCESS");return E}).then(O_Y).then(M$s)}catch(E){if(_.Kq(v,"FAILURE"),E.name!=="SecurityError")throw E;
}};
Rgq=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&DCn()};
nWf=function(v,Q){var V={};Q&&(V.serializedYpcFamilyCreateLoggingParams=Q);_.X0(v,V);_.ay()};
l1f=function(v,Q){var V={};V.serializedYpcRefundFlowLoggingParams=Q;v&&(V.eventType=v);_.X0("ypcRefundFlowEvent",V);_.ay()};
qP$=function(v){v&&_.TkB("transactionFlowSucceeded",v)};
SPm=function(v){v&&_.zB("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
zgf=function(v){var Q,V,E,b,F,t,p;_.e(function(Z){if(Z.nextAddress==1)return Z.yield(_.vMS(),2);if(Z.nextAddress!=3){if(!Z.yieldResult)return Z.return(!1);Q=[];return Z.yield(_.Uo.keys(),3)}V=Z.yieldResult;E=_.L(V);for(b=E.next();!b.done;b=E.next())F=b.value,t=_.maZ(F),p=t.datasyncId,!p||v.includes(p)||Q.push(_.Uo.delete(F));return Z.return(Promise.all(Q).then(function(d){return d.some(function(w){return w})}))})};
Js5=function(){var v,Q,V,E,b,F,t;return _.e(function(p){if(p.nextAddress==1)return p.yield(_.vMS(),2);if(p.nextAddress!=3){if(!p.yieldResult)return p.return(!1);v=_.Jt("cache contains other");return p.yield(_.Uo.keys(),3)}Q=p.yieldResult;V=_.L(Q);for(E=V.next();!E.done;E=V.next())if(b=E.value,F=_.maZ(b),(t=F.datasyncId)&&t!==v)return p.return(!0);return p.return(!1)})};
NSm=function(){var v=_.ht().resolve(_.d$(_.ieZ));return v?v.getCurrentTime():0};
xCh=function(){var v,Q,V,E,b,F,t,p,Z,d,w,A,k,T;return _.e(function(c){switch(c.nextAddress){case 1:v={},Q=_.Eom(),V=_.L(Object.entries(Q)),E=V.next();case 4:if(E.done){c.jumpTo(3);break}b=E.value;F=_.L(b);t=F.next().value;p=F.next().value;Z=t;d=p;if(!d){c.jumpTo(5);break}return c.yield(d(),8);case 8:v[Z]=c.yieldResult;case 5:E=V.next();c.jumpTo(4);break;case 2:w=_.L(),A=w.next();case 9:if(A.done){c.jumpTo(3);break}k=A.value;T=Q[k];if(!T){c.jumpTo(10);break}return c.yield(T(),13);case 13:v[k]=c.yieldResult;
case 10:A=w.next();c.jumpTo(9);break;case 3:return c.return(v)}})};
BS0=function(){var v;_.e(function(Q){if(Q.nextAddress==1)return Q.yield(xCh(),2);v=Q.yieldResult;return Q.yield(navigator.clipboard.writeText(JSON.stringify(v,null,2)),0)})};
gWj=function(v,Q){return _.Fg(v.entities,"superThanksSelectedTierEntity",Q)};
sJn=function(v,Q){return{popup:{searchSuggestionReportDialog:{searchQuery:v,title:_.Lt("SBOX_INAPPROPRIATE_TITLE"),suggestions:Q,categoryLabel:_.Lt("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Lt("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Lt("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Lt("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Lt("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Lt("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Lt("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Lt("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Lt("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Lt("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
uK7=function(v){var Q,V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a;return _.e(function(g){switch(g.nextAddress){case 1:return g.yield(_.L7(),2);case 2:return(Q=g.yieldResult)?g.yield(_.AJ3(Q),3):g.return();case 3:V=g.yieldResult;if(!V)return g.return();b=((E=V.offlineVideos)==null?void 0:E.length)||0;t=((F=V.offlinePlaylists)==null?void 0:F.length)||0;if(b===0&&t===0)return g.return();p=0;if(V.offlineVideos)for(Z=_.L(V.offlineVideos),d=Z.next();!d.done;d=Z.next())w=d.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
w.videoState&&(p+=1);v.offline_videos_count=b.toString();_.Y("kevlar_log_offline_current_network_type_ks")||(v.offline_current_network_type=(A=_.xpB())!=null?A:"CONN_INVALID");_.Y("kevlar_log_updated_time_for_smart_downloads")&&(k=_.oF().getState().entities,T=_.f7(k),c=SoI(k),v.offline_smart_downloads_last_sync_time_ms=T.toString(),v.offline_smart_downloads_next_sync_time_ms=c.toString());v.offline_videos_playable=p.toString();v.offline_playlists_count=t.toString();V.offlineVideos&&(C=V.offlineVideos.reduce(function(u,
r){r.downloadedBytes&&(u+=Number(r.downloadedBytes));return u},0).toString())&&(v.offline_used_disk_space_bytes=C);
if(!((R=navigator)==null?0:(l=R.storage)==null?0:l.estimate)){g.jumpTo(4);break}return g.yield(navigator.storage.estimate(),5);case 5:S=g.yieldResult,v.offline_free_disk_space_bytes=(((a=S)==null?void 0:a.quota)||0).toString();case 4:v.offline_client_state=JSON.stringify(V),_.q1(g)}})};
jJs=function(v){v=v.match(/(.*)::.*::.*/);if(v!==null)return v[1]};
W00=function(v){if(_.xBr()){var Q=Object.keys(window.sessionStorage);Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next()){V=V.value;var E=jJs(V);E===void 0||v.includes(E)||self.sessionStorage.removeItem(V)}}};
oWf=function(){if(!_.xBr())return!1;var v=_.Jt(),Q=Object.keys(window.sessionStorage);Q=_.L(Q);for(var V=Q.next();!V.done;V=Q.next())if(V=jJs(V.value),V!==void 0&&V!==v)return!0;return!1};
lj=function(v,Q,V){(_.Y("desktop_keyboard_shortcut_usage_log")||V&&_.Y("web_shorts_keyboard_shortcut_usage_log"))&&(Q?_.tU.get(v):_.Le.get(v))&&(v=Q?_.eW.get(v):_.pe.get(v))&&_.uI(_.Mo(),v)};
X_I=function(v,Q){return v.findIndex(function(V){return V.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(Q.keyCode):!1};
a1q=function(v,Q){Q.stack&&(v.stack+="\n"+Q.stack);return v};
H_q=function(v){var Q=qO(v,"Content-Type");if(!Q)return null;Q=Q.toLowerCase();if(Q.startsWith("application/json"))return Q.startsWith("application/json+protobuf")?new rsd:new _.AC;if(Q.startsWith("application/x-protobuf")){v=qO(v,"Content-Transfer-Encoding");if(!v)return new $C7;if(v.toLowerCase()=="base64")return new I17}return null};
KC0=function(v,Q,V,E){var b=new mC$(function(p,Z){return UCj.has(Z)?p.sentinel==="gal"&&p.event!==void 0:!1},function(p){p.event?(p=vlY(p.event),p=!p||Q7f(E,p)?!0:_.PC(v.lastEvent,SW,2,zb)?!_.PC(p,JU,1,zb)&&!_.PC(p,SW,2,zb):!_.PC(p,JU,1,zb)&&!_.PC(p,SW,3,zb)):p=!0;
return p});
V=_.k4(v.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",VCf(V)]]));if(v.nestedOrigins!==void 0)for(var F=_.L(v.nestedOrigins),t=F.next();!t.done;t=F.next())V=_.k4(V,new Map([["origin",t.value]]));return El7(b,V,Q).then(function(p){p=b4j(p.event);if(_.PC(p,JU,1,zb)){var Z,d=(Z=_.O7(p,JU,1,zb))==null?void 0:_.Gs(Z,2);d&&E.JSC$19800_logErrorEvent(FC$(d));Z=_.O7(p,JU,1,zb);_.Gs(Z,2)===4?(p=_.O7(p,JU,1,zb),p={statusCode:11,statusMessage:_.fN(p,
3)}):(p=_.O7(p,JU,1,zb),p={statusCode:12,statusMessage:_.fN(p,3)});return p}_.PC(p,SW,3,zb)?(p=_.O7(p,SW,3,zb),p={statusCode:1,consentLanguageKeys:_.fN(p,2)}):p={statusCode:1};return p}).catch(function(p){return p.errorCode!==void 0?{statusCode:p.errorCode,
statusMessage:p.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
pw8=function(v){var Q={};if(v===void 0||v===null)return Q;v.getToken()!==void 0&&i4q(v.getToken())&&i4q(v.getToken()).length>0&&(Q.scopes=new Set(i4q(v.getToken())));v.getToken()!==void 0&&LCd(v.getToken())&&LCd(v.getToken()).length>0&&(Q.capabilities=new Set(LCd(v.getToken())));_.fN(v,3)!==void 0&&(Q.consistencyKey=_.fN(v,3));v.getName()!==void 0&&v.getName()!==""&&(Q.linkName=v.getName());_.ZD(v,tCn,4)&&(v=_.TY(v,tCn,4),v=Object.assign({},_.fN(v,1)&&{userId:_.fN(v,1)},_.fN(v,2)&&{displayName:_.fN(v,
2)},_.fN(v,3)&&{email:_.fN(v,3)},_.fN(v,5)&&{username:_.fN(v,5)},_.fN(v,4)&&{profilePicture:_.fN(v,4)}),Q.profile=v);return Q};
eq0=function(v,Q){var V=v.flowParams,E;return{serviceId:V.serviceId,sessionId:V.sessionId,currentFlow:v.currentFlow,googleScopesString:Q,linkingSessionSerialized:v.session.serialize(),consentLanguageKeys:V.consentLanguageKeys,callerState:v.callerState,dynamicUrlParameters:V.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(E=V.partnerConfigMinReadTimestamp)==null?void 0:E.serialize()}};
wwI=function(v){var Q=v.googleScopes!==void 0?Array.from(v.googleScopes).join(","):"";Z4h(eq0(v,Q));Q=POj(v);return Q===null?Promise.resolve(dJq):Q.start().then(function(V){var E,b=(E=V.link)==null?void 0:E.consistencyKey;return V.statusCode===1&&v.googleScopes!==void 0&&v.googleScopes.size>0&&b!==void 0?(E=v.flowParams,hqn(E.serviceId,E.sessionId,v.googleScopes,b,E.galService,v.config,V)):V})};
kwd=function(v){var Q=POj(v);return Q===null?Promise.resolve(A2Y({statusCode:7,statusMessage:"Failed to create flow object"},v.callerState)):Q.complete().then(function(V){var E,b=(E=V.link)==null?void 0:E.consistencyKey;return V.statusCode===1&&v.googleScopes!==void 0&&v.googleScopes.size>0&&b!==void 0?(E=v.flowParams,hqn(E.serviceId,E.sessionId,v.googleScopes,b,E.galService,v.config,V)):A2Y(V,v.callerState)},function(V){return A2Y({statusCode:12,
statusMessage:"Failed to complete the flow: "+V.message},v.callerState)})};
hqn=function(v,Q,V,E,b,F,t){return TWf(b,{serviceId:v,sessionId:Q,googleScopes:V,consistencyKey:E}).then(function(){return t},function(p){return b.deleteLink({serviceId:v,
sessionId:Q,accountLinkingEntryPoint:F.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+p.message}},function(Z){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+Z.message}})})};
POj=function(v){switch(v.currentFlow){case 1:var Q=v.flowParams;v=_.TY(v.session,Yun,1);return y2h.createOAuthFlow(Q,v);case 2:case 3:return Q=v.flowParams,v=_.TY(v.session,c2q,6),fz8.createStreamlinedFlow(Q,v);default:return null}};
CO5=function(v,Q){v===2&&(v=3);var V=0;Gwq.indexOf(v)!==-1&&(V=Gwq.indexOf(v)+1);for(v=V;v<Gwq.length;v++)if(Q.has(Gwq[v]))return Gwq[v]};
DJd=function(v){var Q=v.serviceId;var V=v.sessionId;var E=v.config;var b=v.galService;var F=v.capabilities;var t=v.scopes;var p=v.loginHint;var Z=v.callerState;var d=v.consentLanguageKeys;var w=v.linkName;var A=v.dynamicUrlParameters;var k=v.partnerConfigMinReadTimestamp;v=E.dataUsageNoticeConfig?E.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return b.startLinkingSession({serviceId:Q,sessionId:V,capabilities:F,scopes:t,loginHint:p,callerState:Z,supportedFlows:MCh(E.supportedFlows),completionUrl:E.completionUrl,
accountLinkingEntryPoint:E.accountLinkingEntryPoint,consentLanguageKeys:d,dataUsageNoticeConfig:v,linkName:w,dynamicUrlParameters:A,partnerConfigMinReadTimestamp:k}).then(function(T){return new O48(Q,V,E,b,T,void 0,Z,d,A,k)})};
zqd=function(v,Q,V){var E=(new Rqf).getSession(v);if(E===null)return Promise.resolve({statusCode:2});nl0(v);var b=lzh(E.linkingSessionSerialized),F=E.googleScopesString!==""&&E.googleScopesString!==void 0?new Set(E.googleScopesString.split(",")):void 0,t=E.partnerConfigMinReadTimestampSerialized?qu5(E.partnerConfigMinReadTimestampSerialized):void 0;return Suh(new O48(v,E.sessionId,Q,V,b,F,E.callerState,E.consentLanguageKeys,E.dynamicUrlParameters,t),E.currentFlow,E.consentLanguageKeys)};
Z4h=function(v){var Q=new Rqf;Q.storage!==null&&Q.storage.set("SAVED_SESSION",v)};
nl0=function(v){var Q=new Rqf;if(Q.storage!==null){var V=Q.storage.get("SAVED_SESSION");V!==void 0&&V.serviceId===v&&Q.storage.remove("SAVED_SESSION")}};
MCh=function(v){var Q=new Set;v=_.L(v);for(var V=v.next();!V.done;V=v.next())V=V.value,V!==1&&J2d.has(V)&&Q.add(J2d.get(V));return Q};
A2Y=function(v,Q){Q!==void 0&&(v.callerState=Q);return v};
NWn=function(v){switch(v){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
gln=function(v){return new xJh(v,new BW5(v))};
j75=function(v,Q){Q=Q===void 0?!1:Q;var V=document.createElement("div");v&&(V.style.transform="scaleX(-1)");V.style.backgroundColor=Q?"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");v=document.createElement("style");v.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
V.appendChild(v);v=s7Y();v.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";v.style.left="-145.166611%";var E=uSj(Q);E.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";v.appendChild(E);V.appendChild(v);v=s7Y();v.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";v.style.left="-54.888891%";Q=uSj(Q);Q.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
v.appendChild(Q);V.appendChild(v);return V};
s7Y=function(){var v=document.createElement("div");v.style.height="100%";v.style.position="absolute";v.style.transformOrigin="top left";v.style.width="100%";return v};
uSj=function(v){var Q=document.createElement("span");Q.style.borderTop=v?"4px solid #669df6":"4px solid #4285f4";Q.style.display="inline-block";Q.style.position="absolute";Q.style.width="100%";return Q};
WC0=function(v){return v==null?void 0:_.fgN(v).valueOf()};
r2h=function(v){var Q=document.body,V=!1,E=function(){V||(V=!0,old(b,F),setTimeout(function(){Q.removeChild(F);Q.removeChild(b)},150))},b=Xwq(v,getComputedStyle(Q).direction==="rtl",E),F=az8(E);
old(b,F);Q.appendChild(F);Q.appendChild(b);window.requestAnimationFrame(function(){F.style.opacity="1";b.style.opacity="1";b.style.transform="translate(-50%, -50%) scale(1)";b.children[0].focus()})};
Xwq=function(v,Q,V){var E=document.createElement("div");E.style.position="fixed";E.style.alignItems="center";E.style.backgroundColor=v?"rgb(32, 33, 36)":"white";E.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";E.style.display="flex";E.style.flexDirection="column";E.style.justifyContent="center";E.style.left="50%";E.style.top="50%";E.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";E.style.zIndex="2002";document.body.clientWidth>=
660?(E.style.borderRadius="8px",E.style.minHeight="220px",E.style.maxHeight="90%",E.style.maxWidth="90%",E.style.minWidth="540px"):(E.style.height="100%",E.style.width="100%");E.setAttribute("aria-label","Error");E.setAttribute("aria-modal","true");E.setAttribute("role","alertdialog");E.addEventListener("keydown",function(F){F.key==="Escape"&&V()});
Q=$J7(v,Q,V);E.appendChild(Izh(Q));E.appendChild(Q);var b=document.createElement("img");b.src=v?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";b.style.height="72px";b.style.width="72px";b.style.color="#9aa0a6";b.setAttribute("alt","");E.appendChild(b);b=document.createElement("h1");b.textContent="Something went wrong.  Try again.";
b.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";b.style.lineHeight="24px";b.style.fontSize="16px";b.style.textAlign="center";b.style.letterSpacing="0.1px";b.style.color=v?"rgb(232,234,237)":"#3c4043";E.appendChild(b);E.appendChild(Izh(Q));return E};
$J7=function(v,Q,V){var E=document.createElement("button");E.style.backgroundColor="transparent";E.style.border="none";E.style.borderRadius="50%";E.style.cursor="pointer";E.style.outline="none";E.style.padding="12px";E.setAttribute("aria-label","Close dialog");E.style.position="absolute";E.style.top="0";Q?E.style.right="0":E.style.left="0";E.addEventListener("focus",function(){E.style.backgroundColor=v?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
E.addEventListener("blur",function(){E.style.backgroundColor="transparent"});
E.addEventListener("mouseenter",function(){E.style.backgroundColor=v?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
E.addEventListener("mouseleave",function(){E.style.backgroundColor="transparent"});
E.addEventListener("click",V);E.addEventListener("keydown",function(b){b.key!=="Enter"&&b.key!=="Space"||V()});
Q=document.createElement("img");Q.src=v?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";Q.style.display="block";Q.style.height="24px";Q.style.width="24px";Q.setAttribute("alt","");E.appendChild(Q);return E};
Izh=function(v){var Q=document.createElement("div");Q.setAttribute("tabindex","0");Q.setAttribute("aria-hidden","true");Q.addEventListener("focus",function(){return void v.focus()});
return Q};
az8=function(v){var Q=document.createElement("div");Q.style.backgroundColor="rgba(32,33,36,0.6)";Q.style.bottom="0";Q.style.left="0";Q.style.position="fixed";Q.style.right="0";Q.style.top="0";Q.style.transition=" opacity 150 ms linear";Q.style.zIndex="2001";Q.addEventListener("click",v);return Q};
old=function(v,Q){Q.style.opacity="0";v.style.opacity="0";v.style.transform="translate(-50%, -50%) scale(0.8)"};
H4j=function(v,Q){v.sandbox&&v.sandbox.add&&(v.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),v.sandbox.add("allow-downloads"));v.src=Q};
NO=function(v){mJh.call(this,v)};
ES5=function(v,Q){Q=Q===void 0?!1:Q;this.parsedImageUrl_=null;v instanceof UJ$||(vSj==void 0&&(vSj=new QII),v=vSj.parse(v.toString(),Q));v=this.parsedImageUrl_=v;v.JSC$20012_parsedOptions_==void 0&&((Q=v.getOptions())||(Q=""),v.JSC$20012_parsedOptions_=(new Vih).parse(Q));mJh.call(this,v.JSC$20012_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;v=this.parsedImageUrl_;Q=v.uri_.JSC$10112_port_;this.JSC$20014_domain_=v.uri_.JSC$10112_domain_+(Q?":"+Q:"");this.JSC$20014_query_=
this.parsedImageUrl_.uri_.JSC$10112_queryData_.toString()};
brm=function(v){this.mode=4;this.data=v;this.parsedData=[];v=0;for(var Q=this.data.length;v<Q;v++){var V=[],E=this.data.charCodeAt(v);E>65536?(V[0]=240|(E&1835008)>>>18,V[1]=128|(E&258048)>>>12,V[2]=128|(E&4032)>>>6,V[3]=128|E&63):E>2048?(V[0]=224|(E&61440)>>>12,V[1]=128|(E&4032)>>>6,V[2]=128|E&63):E>128?(V[0]=192|(E&1984)>>>6,V[1]=128|E&63):V[0]=E;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))};
F6n=function(v){this.typeNumber=0;this.errorCorrectLevel=v===void 0?2:v;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
xT=function(v,Q){if(v.length==void 0)throw Error("Pk`"+v.length+"`"+Q);for(var V=0;V<v.length&&v[V]==0;)V++;this.num=Array(v.length-V+Q);for(Q=0;Q<v.length-V;Q++)this.num[Q]=v[Q+V]};
K6n=function(v,Q){this.totalCount=v;this.dataCount=Q};
irq=function(){this.buffer=[];this.length=0};
L6m=function(){var v=!1;if(_.ft9()){v=_.T0();var Q="";_.MZt()?(Q=/Windows (?:NT|Phone) ([0-9.]+)/,Q=(v=Q.exec(v))?v[1]:"0.0"):_.qm()?(Q=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Q=(v=Q.exec(v))&&v[1].replace(/_/g,".")):_.CbE()?(Q=/Mac OS X ([0-9_.]+)/,Q=(v=Q.exec(v))?v[1].replace(/_/g,"."):"10"):_.P9(_.T0(),"KaiOS")?(Q=/(?:KaiOS)\/(\S+)/i,Q=(v=Q.exec(v))&&v[1]):_.ft9()?(Q=/Android\s+([^\);]+)(\)|;)/,Q=(v=Q.exec(v))&&v[1]):_.OEG()&&(Q=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Q=(v=Q.exec(v))&&v[1]);v=
Q||""}return v};
dMj=function(v,Q){this.JSC$20037__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(Q)for(var V in Q)this.JSC$20037__htOption[V]=Q[V];this.JSC$20037__htOption.useSVG&&(tiI=pYs);this.JSC$20037__android=L6m();this.JSC$20037__el=v;this._oQRCode=null;this._oDrawing=new tiI(this.JSC$20037__el,this.JSC$20037__htOption);this.JSC$20037__htOption.text&&(v=this.JSC$20037__htOption.text,this._oQRCode=new F6n(this.JSC$20037__htOption.correctLevel),ee8(this._oQRCode,
v),Q=this._oQRCode,ZrI(Q,!1,PAm(Q)),this.JSC$20037__el.title=v,this._oDrawing.draw(this._oQRCode),this.makeImage())};
he8=function(v,Q,V,E,b){v.save();var F=new Path2D;F.roundRect(Q,V,E*7,E*7,E*2);F.roundRect(Q+E,V+E,E*5,E*5,E*1.3);F.roundRect(Q+2*E,V+2*E,E*3,E*3,E);v.clip(F,"evenodd");v.fillStyle=b;v.fillRect(0,0,v.canvas.width,v.canvas.height);v.restore()};
B1=function(v,Q){if(typeof v!=="function")throw Error("Sk");return _.bb.setTimeout(function(){v()},Q)};
gj=function(){};
Axq=function(v,Q,V,E,b){(new gj).debug("TestLoadImageWithRetries: "+b);if(E==0)V(!1);else{var F=b||0;E--;wYs(v,Q,function(t){t?V(!0):_.bb.setTimeout(function(){Axq(v,Q,V,E,F)},F)})}};
wYs=function(v,Q,V){var E=new gj;E.debug("TestLoadImage: loading "+v);var b=new Image;b.onload=function(){try{E.debug("TestLoadImage: loaded"),kz7(b),V(!0)}catch(F){}};
b.onerror=function(){try{E.debug("TestLoadImage: error"),kz7(b),V(!1)}catch(F){}};
b.onabort=function(){try{E.debug("TestLoadImage: abort"),kz7(b),V(!1)}catch(F){}};
b.ontimeout=function(){try{E.debug("TestLoadImage: timeout"),kz7(b),V(!1)}catch(F){}};
_.bb.setTimeout(function(){if(b.ontimeout)b.ontimeout()},Q);
b.src=v};
kz7=function(v){v.onload=null;v.onerror=null;v.onabort=null;v.ontimeout=null};
Tsj=function(){this.front_=[];this.back_=[]};
YI0=function(v,Q){this.action=v;this.params=Q||{}};
yxn=function(v,Q){_.J5.call(this);this.delay_=new _.xJ(this.JSC$20163_onTick_,0,this);_.Cg(this,this.delay_);this.JSC$20161_interval_=5E3;this.nextTickTime_=0;if(typeof v==="function")Q&&(v=(0,_.Nz)(v,Q));else if(v&&typeof v.handleEvent==="function")v=(0,_.Nz)(v.handleEvent,v);else throw Error("ya");this.JSC$20163_listener_=v};
s6=function(v,Q,V,E,b,F,t,p,Z,d,w,A,k,T,c){var C=this;V=V===void 0?!1:V;E=E===void 0?function(){return""}:E;
b=b===void 0?!1:b;F=F===void 0?!1:F;t=t===void 0?!1:t;p=p===void 0?function(){return _.Vk({})}:p;
Z=Z===void 0?!1:Z;w=w===void 0?!1:w;A=A===void 0?!1:A;k=k===void 0?!1:k;T=T===void 0?!1:T;this.JSC$20164_pathPrefix_=v;this.defaultQueryParams_=Q;this.pubsub_=new _.ni;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!c)?c(function(){C.safeReconnect_()}):new yxn(this.safeReconnect_,this);
this.JSC$20164_channel_=null;this.JSC$20164_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20164_pendingMessages_=[];this.enableAsyncTest_=V;this.JSC$20164_getXsrfToken_=E;this.useAsyncBrowserChannelHandler_=F;this.getAuthorizationHeader_=p;this.getAuthorizationHeaderSync_=d;this.enableCachedUpdateAuthorizationHeader_=t;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Vk();this.enableLoungeTokenRefresh_=b;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
Z;this.disableMdxAuthForNonPlaybackMessages_=w;this.disableMdxAuthForAdMessages_=A;this.enableMdxAuthForConnectionOnly_=k;this.disableMdxAuthForShortsMessages_=T;this.JSC$20164_channelOpenedCounter=new cxm;this.JSC$20164_channelClosedCounter=new fv7;this.channelMessageSentCounter=new Gzn;this.JSC$20164_channelMessageReceivedCounter=new CAh;this.JSC$20164_channelErrorCounter=new Mi$;this.pendingMapsOnClosedCounter=new Orh;this.undeliveredMapsOnClosedCounter=new DMY};
Ren=function(v){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;v=v||document.location.href;var Q=Number(_.tt(v)[4]||null)||"";Q&&(this.port=":"+Q);this.domain=_.pi(v)||"";v=_.T0();v.search("MSIE")>=0&&_.wG(v.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
uj=function(v){v=v||{};this.name=v.name||"";this.id=v.id||v.screenId||"";this.token=v.token||v.loungeToken||"";this.uuid=v.uuid||v.dialId||"";this.idType=v.screenIdType||"normal";this.secret=v.screenIdSecret||""};
nSY=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var Q=Math.random()*16|0;return(v=="x"?Q:Q&3|8).toString(16)})};
lvd=function(v){return _.sY(v,function(Q){return{key:Q.id,name:Q.name}})};
qId=function(v,Q){return _.J3(v,function(V){return V||Q?!V!=!Q?!1:V.id==Q.id:!0})};
jW=function(v,Q){return _.J3(v,function(V){return SIs(V,Q)})};
Bsj=function(){var v=zeh(),Q=Jxh();if(Nsh()){var V=v,E=_.NGB(V,Q);E<0&&_.SBQ(V,-(E+1),0,Q)}v=xMq(v);if(v.length==0)try{_.S20("remote_sid")}catch(b){}else try{_.Sw("remote_sid",v.join(","),-1)}catch(b){}};
zeh=function(){var v=_.TA("yt-remote-connected-devices")||[];v.sort(_.J33);return v};
xMq=function(v){if(v.length==0)return[];var Q=v[0].indexOf("#"),V=Q==-1?v[0]:v[0].substring(0,Q);return _.sY(v,function(E,b){return b==0?E:E.substring(V.length)})};
gSd=function(v){_.kN("yt-remote-connected-devices",v,86400)};
Jxh=function(){if(sIm)return sIm;var v=_.TA("yt-remote-device-id");v||(v=nSY(),_.kN("yt-remote-device-id",v,31536E3));for(var Q=zeh(),V=1,E=v;_.sB(Q,E);)V++,E=v+"#"+V;return sIm=E};
uQn=function(){return _.TA("yt-remote-session-browser-channel")};
Nsh=function(){return _.TA("yt-remote-session-screen-id")};
oSn=function(v){v.length>5&&(v=v.slice(v.length-5));var Q=_.sY(jI5(),function(E){return E.loungeToken}),V=_.sY(v,function(E){return E.loungeToken});
_.u3b(V,function(E){return!_.sB(Q,E)})&&W6j();
_.kN("yt-remote-local-screens",v,31536E3)};
jI5=function(){return _.TA("yt-remote-local-screens")||[]};
W6j=function(){_.kN("yt-remote-lounge-token-expiration",!0,86400)};
XYn=function(v){v||(_.YN("yt-remote-session-screen-id"),_.YN("yt-remote-session-video-id"));Bsj();v=zeh();_.ub(v,Jxh());gSd(v)};
rxf=function(){avs();return W1?!!W1.get("yt-remote-use-staging-server"):!1};
avs=function(){if(!W1){var v=_.j$b();v&&(W1=new _.B5(v))}};
mM7=function(v,Q,V,E,b){V=V===void 0?function(){return""}:V;
var F=function(){return new s6(o6(v,"/bc"),Q,!1,V,E)};
return _.Y("enable_mdx_web_channel_desktop")?new $Mh(function(){return new Ivn(o6(v,"/wc"),Q,V)}):new Hr5(F,b)};
Vt$=function(){var v=UMd;vGq();XP.push(v);QC$()};
a6=function(v,Q){vGq();var V=EG8(v,String(Q));XP.length==0?bqq(V):(QC$(),_.bv(XP,function(E){E(V)}))};
rj=function(v){a6("CP",v)};
vGq=function(){XP||(XP=_.Q9("yt.mdx.remote.debug.handlers_")||[],_.Pr("yt.mdx.remote.debug.handlers_",XP))};
bqq=function(v){var Q=(Fh$+1)%50;Fh$=Q;Khf[Q]=v;iqj||(iqj=Q==49)};
QC$=function(){var v=XP;if(Khf[0]){var Q=iqj?Fh$:-1,V={};do V={record$jscomp$15:void 0},Q=(Q+1)%50,V.record$jscomp$15=Khf[Q],_.bv(v,function(E){return function(b){b(E.record$jscomp$15)}}(V));
while(Q!=Fh$);Khf=Array(50);Fh$=-1;iqj=!1}};
EG8=function(v,Q){var V=(Date.now()-Lhj)/1E3;V.toFixed&&(V=V.toFixed(3));var E=[];E.push("[",V+"s","] ");E.push("[","yt.mdx.remote","] ");E.push(v+": "+Q,"\n");return E.join("")};
$T=function(v){_.ij.call(this);this.JSC$20189_logName_=v;this.screens=[]};
H1=function(v){$T.call(this,"LocalScreenService");this.JSC$20196_http_=v;this.loungeTokenRefreshTimer_=NaN;I6(this);this.info("Initializing with "+ttd(this.screens))};
mq=function(v,Q){Q=Q===void 0?!1:Q;$T.call(this,"ScreenService");this.JSC$20202_http_=v;this.disableAutomaticScreenCache_=Q;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};pZd(this)};
U6=function(v,Q,V){_.ij.call(this);this.JSC$20206_logName_=V;this.JSC$20206_screenService_=v;this.receiver_=Q;this.screen_=null};
Mt0=function(v,Q,V){V.disableCastApi?vK("Cannot initialize because disabled by Mdx config."):eS5()?ZqI(v,V)&&(PJm(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?d35(Q):(window.__onGCastApiAvailable=function(E,b){E?d35(Q):(QD("Failed to load cast API: "+b),hS0(!1),PJm(!1),_.YN("yt-remote-cast-available"),_.YN("yt-remote-cast-receiver"),wZ8(),Q(!1))},V.loadCastApiSetupScript?_.SH(A_Y):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
knY()>=60&&T3n():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Y$8():knY()>=89?y_Y():(c_s(),fo7(Gnd.map(CJ7))))):vK("Cannot initialize because not running Chrome")};
wZ8=function(){vK("dispose");var v=VD();v&&v.dispose();_.Pr("yt.mdx.remote.cloudview.instance_",null);Oqh(!1);_.yRt(D30);D30.length=0};
RS8=function(){return!!_.TA("yt-remote-cast-installed")};
nGI=function(){var v=_.TA("yt-remote-cast-receiver");return v?v.friendlyName:null};
lo5=function(){vK("clearCurrentReceiver");_.YN("yt-remote-cast-receiver")};
q$f=function(){return RS8()?VD()?VD().getCastSession():(QD("getCastSelector: Cast is not initialized."),null):(QD("getCastSelector: Cast API is not installed!"),null)};
zSf=function(v,Q){S$n()?VD().setConnectedScreenStatus(v,Q):QD("setConnectedScreenStatus called before ready.")};
eS5=function(){var v=_.T0().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.KN||v};
ZqI=function(v,Q){var V=!1;VD()||(v=new Eb(v,Q),v.subscribe("yt-remote-cast2-availability-change",function(E){_.kN("yt-remote-cast-available",E);yP("yt-remote-cast2-availability-change",E)}),v.subscribe("yt-remote-cast2-receiver-selected",function(E){vK("onReceiverSelected: "+E.friendlyName);
_.kN("yt-remote-cast-receiver",E);yP("yt-remote-cast2-receiver-selected",E)}),v.subscribe("yt-remote-cast2-receiver-resumed",function(E){vK("onReceiverResumed: "+E.friendlyName);
_.kN("yt-remote-cast-receiver",E);yP("yt-remote-cast2-receiver-resumed",E)}),v.subscribe("yt-remote-cast2-session-change",function(E){vK("onSessionChange: "+J_f(E));
E||_.YN("yt-remote-cast-receiver");yP("yt-remote-cast2-session-change",E)}),_.Pr("yt.mdx.remote.cloudview.instance_",v),V=!0);
vK("cloudview.createSingleton_: "+V);return V};
VD=function(){return _.Q9("yt.mdx.remote.cloudview.instance_")};
d35=function(v){hS0(!0);PJm(!1);VD().init(!1,function(Q){Q?(Oqh(!0),_.cR0("yt-remote-cast2-api-ready")):(QD("Failed to initialize cast API."),hS0(!1),_.YN("yt-remote-cast-available"),_.YN("yt-remote-cast-receiver"),wZ8());v(Q)})};
vK=function(v){a6("cloudview",v)};
QD=function(v){a6("cloudview",v)};
hS0=function(v){vK("setCastInstalled_ "+v);_.kN("yt-remote-cast-installed",v)};
S$n=function(){return!!_.Q9("yt.mdx.remote.cloudview.apiReady_")};
Oqh=function(v){vK("setApiReady_ "+v);_.Pr("yt.mdx.remote.cloudview.apiReady_",v)};
PJm=function(v){_.Pr("yt.mdx.remote.cloudview.initializing_",v)};
bE=function(v){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(v)};
aoq=function(v){avs();if(!W1||!W1.get("yt-remote-disable-remote-module-for-dev")){v=_.r7("MDX_CONFIG")||v;aMq();Bsj();N38||(N38=new Ren(v?v.loungeApiHost:void 0),rxf()&&(N38.basePath="/api/loungedev"));FR||(FR=_.Q9("yt.mdx.remote.deferredProxies_")||[],_.Pr("yt.mdx.remote.deferredProxies_",FR));x3h();var Q=B3h();if(!Q){var V=new mq(N38,v?v.disableAutomaticScreenCache||!1:!1);_.Pr("yt.mdx.remote.screenService_",V);Q=B3h();var E={};v&&(E={appId:v.appId,disableDial:v.disableDial,theme:v.theme,loadCastApiSetupScript:v.loadCastApiSetupScript,
disableCastApi:v.disableCastApi,enableDialLoungeToken:v.enableDialLoungeToken,enableCastLoungeToken:v.enableCastLoungeToken,forceMirroring:v.forceMirroring});_.Pr("yt.mdx.remote.enableConnectWithInitialState_",v?v.enableConnectWithInitialState||!1:!1);Mt0(V,function(F){F?gGY()&&zSf(gGY(),"YouTube TV"):V.subscribe("onlineScreenChange",function(){yP("yt-remote-receiver-availability-change")})},E)}if(v&&!_.Q9("yt.mdx.remote.initialized_")){_.Pr("yt.mdx.remote.initialized_",!0);
sCn("Initializing: "+(0,_.JG)(v));KX.push(_.cx("yt-remote-cast2-api-ready",function(){yP("yt-remote-api-ready")}));
KX.push(_.cx("yt-remote-cast2-availability-change",function(){yP("yt-remote-receiver-availability-change")}));
KX.push(_.cx("yt-remote-cast2-receiver-selected",function(){uuh();yP("yt-remote-auto-connect","cast-selector-receiver")}));
KX.push(_.cx("yt-remote-cast2-receiver-resumed",function(){yP("yt-remote-receiver-resumed","cast-selector-receiver")}));
KX.push(_.cx("yt-remote-cast2-session-change",jCn));KX.push(_.cx("yt-remote-connection-change",function(F){F?zSf(gGY(),"YouTube TV"):Whs()||(zSf(null,null),lo5())}));
KX.push(_.cx("yt-remote-cast2-session-failed",function(){yP("yt-remote-connection-failed")}));
E=oGd();v.isAuto&&(E.id+="#dial");var b=v.capabilities||[];b.length>0&&(E.capabilities=b);E.name=v.device;E.app=v.app;(v=v.theme)&&(E.theme=v);sCn(" -- with channel params: "+(0,_.JG)(E));E?(_.kN("yt-remote-session-app",E.app),_.kN("yt-remote-session-name",E.name)):(_.YN("yt-remote-session-app"),_.YN("yt-remote-session-name"));_.Pr("yt.mdx.remote.channelParams_",E);Q.start();gGY()||XZh()}}};
$3h=function(){var v=B3h().instance_.$_gos();var Q=r_5();Q&&iE()&&(qId(v,Q)||v.push(Q));return lvd(v)};
Ioh=function(){var v=$3h(),Q=r_5();Q||(Q=Whs());return _.J3(v,function(V){return Q&&SIs(Q,V.key)?!0:!1})};
r_5=function(){var v=gGY();if(!v)return null;var Q=B3h().getScreens();return jW(Q,v)};
jCn=function(v){sCn("remote.onCastSessionChange_: "+J_f(v));if(v){var Q=r_5();if(Q&&Q.id==v.id){if(zSf(Q.id,"YouTube TV"),v.idType=="shortLived"&&(v=v.token))Hqn&&(Hqn.token=v),(Q=iE())&&Q.setLoungeToken(v)}else Q&&m3d(),U3j(v,1)}else iE()&&m3d()};
m3d=function(){S$n()?VD().stopSession():QD("stopSession called before API ready.");var v=iE();v&&(v.disconnect(1),vKh(null))};
Qqm=function(){var v=iE();return v&&v.getProxyState()!=3?new LX(iE(),void 0):null};
sCn=function(v){a6("remote",v)};
B3h=function(){if(!Vmj){var v=_.Q9("yt.mdx.remote.screenService_");Vmj=v?new EK8(v):null}return Vmj};
gGY=function(){return _.Q9("yt.mdx.remote.currentScreenId_")};
bNq=function(v){_.Pr("yt.mdx.remote.currentScreenId_",v)};
uuh=function(){_.Pr("yt.mdx.remote.connectData_",null)};
iE=function(){return _.Q9("yt.mdx.remote.connection_")};
vKh=function(v){var Q=iE();uuh();v||bNq("");_.Pr("yt.mdx.remote.connection_",v);FR&&(_.bv(FR,function(V){V(v)}),FR.length=0);
Q&&!v?yP("yt-remote-connection-change",!1):!Q&&v&&yP("yt-remote-connection-change",!0)};
Whs=function(){var v=Nsh();if(!v)return null;var Q=B3h();if(!Q)return null;Q=Q.getScreens();return jW(Q,v)};
U3j=function(v,Q){F3h?Hqn=v:(bNq(v.id),v=new tO(N38,v,oGd(),_.Q9("yt.mdx.remote.enableConnectWithInitialState_")||!1),v.connect(Q,_.Q9("yt.mdx.remote.connectData_")),v.subscribe("beforeDisconnect",function(V){yP("yt-remote-before-disconnect",V)}),v.subscribe("beforeDispose",function(){iE()&&vKh(null)}),v.subscribe("browserChannelAuthError",function(){var V=r_5();
V&&V.idType=="shortLived"&&(S$n()?VD().handleBrowserChannelAuthError():QD("refreshLoungeToken called before API ready."))}),vKh(v))};
XZh=function(){var v=Whs();v?(sCn("Resume connection to: "+J_f(v)),U3j(v,0)):(XYn(),lo5(),sCn("Skipping connecting because no session screen found."))};
x3h=function(){var v=oGd();if(_.gI.isEmpty(v)){v=Jxh();var Q=_.TA("yt-remote-session-name")||"",V=_.TA("yt-remote-session-app")||"";v={device:"REMOTE_CONTROL",id:v,name:Q,app:V,mdxVersion:3};v.authuser=String(_.r7("SESSION_INDEX","0"));(Q=_.r7("DELEGATED_SESSION_ID"))&&(v.pageId=String(Q));_.Pr("yt.mdx.remote.channelParams_",v)}};
oGd=function(){return _.Q9("yt.mdx.remote.channelParams_")||{}};
K3q=function(){var v,Q;return _.e(function(V){if(V.nextAddress==1)return(_.bxS()||_.Y("use_new_nwl"))&&_.vDt().isNetworkAvailable()?V.yield(_.dO(),2):V.return();if(V.nextAddress!=3)return(v=V.yieldResult)?V.yield(k4f(v),3):V.return();Q=V.yieldResult;if(!Q.length)return V.return();Q.forEach(function(E){var b={timestamp:E.timestamp};E=E.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:E.appShellAssetLoadReport,options:b}:E.clientError?{payloadName:"clientError",payload:E.clientError,
options:b}:void 0;E&&_.X0(E.payloadName,E.payload,E.options)});
Q.length===100&&_.XT.addLowPriorityJob(K3q);_.q1(V)})};
iNh=function(v){if(v.playerResponse){if(v=v.playerResponse,v.messages&&v.messages.length>0&&(v=v.messages.find(function(Q){return!(!Q||!Q.mealbarPromoRenderer)}))&&v.mealbarPromoRenderer)return v.mealbarPromoRenderer}else if(v.response&&(v=v.response)&&v.overlay&&v.overlay.mealbarPromoRenderer)return v.overlay.mealbarPromoRenderer};
L3h=function(v){if(v.response){var Q=v.response;if(Q&&Q.overlay&&Q.overlay.tooltipRenderer)return Q.overlay.tooltipRenderer}if(v.playerResponse&&(v=v.playerResponse,v.messages&&v.messages.length>0&&(v=v.messages.find(function(V){return!(!V||!V.tooltipRenderer)}))&&v.tooltipRenderer))return v.tooltipRenderer};
pCh=function(v){if(!tmm&&(v=v||_.r7("ZWIEBACK_PING_URLS"))&&v.length){tmm=!0;for(var Q=0;Q<v.length;Q++)_.Vp(v[Q])}};
ZNq=function(v){if(_.gI.get(_.r7("PLAYER_VARS",{}),"privembed",!1)!="1"){v&&tMn();try{eLn().then(function(){},function(){}),_.G_(ZNq,18E5)}catch(Q){_.Ui(Q)}}};
Pqn=function(){var v=_.eP(),Q=v.getFlag(119),V=window.devicePixelRatio>1;document.body&&_.$u(document.body,"exp-invert-logo")&&(V&&!_.$u(document.body,"inverted-hdpi")?_.so(document.body,"inverted-hdpi"):!V&&_.$u(document.body,"inverted-hdpi")&&_.Bg(document.body,"inverted-hdpi"));Q!=V&&(_.ZG(0,119,V),v.save())};
dqj=function(v){return v.filter(function(Q){return"ypcGetCartEndpoint"in Q||"ypcFixInstrumentEndpoint"in Q})};
hLs=function(v){return v.filter(function(Q){return!_.y(Q,_.YmN)})};
AIm=function(v,Q){var V,E,b,F,t,p,Z;_.e(function(d){switch(d.nextAddress){case 1:V=_.Jn.getInstance();E=_.bd.instance;b=_.Js.instance;if(!b)return wC7(v,E,Q),d.return();_.GC(d,2);v.onLoadingCommand&&E.resolveCommand(v.onLoadingCommand);return d.yield(V.getCurrentPositionFromGeolocation(),4);case 4:F=d.yieldResult;if(!v.resolveLocationCommand){d.jumpTo(5);break}t=V.createLocationInfo(F);return d.yield(_.xW(b,v.resolveLocationCommand,{locationInfo:t}),6);case 6:p=d.yieldResult;if(!p||"error"in p&&p.error||
p.errorMetadata)return wC7(v,E,Q),d.return();var w;if(p==null?0:(w=p.onResponseReceivedActions)==null?0:w.length){w=_.L(p.onResponseReceivedActions);for(var A=w.next();!A.done;A=w.next())E.resolveCommand(A.value)}(_.y(v.onSuccessCommand,_.sn)||_.y(v.onSuccessCommand,_.tn))&&_.Hj(Q.hostElement,"yt-navigate",{endpoint:v.onSuccessCommand,reload:!0});case 5:_.FT(d,0);break;case 2:Z=_.n$(d);if(Z instanceof GeolocationPositionError&&Z.code===GeolocationPositionError.PERMISSION_DENIED)return v.onDeniedCommand&&
E.resolveCommand(v.onDeniedCommand),d.return();wC7(v,E,Q);_.q1(d)}})};
wC7=function(v,Q,V){v.onFailureCommand&&(Q.resolveCommand(v.onFailureCommand),_.mb(V.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
TBh=function(v,Q){var V=_.y(v,_.WvV);if(V&&Q){v=V.videoIds||[V.videoId];var E;Q=(E=_.Hj(Q,"yt-lockup-requested",{videoIds:v}).detail)==null?void 0:E.returnValue;var b;V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?b=Q?Q:v.map(function(F){return{videoId:F,navigationEndpoint:V.videoCommand}}):Q&&(b=Q);
b&&(E=b.map(function(F){var t=Object,p=t.assign;var Z=F.navigationEndpoint;if(!_.y(Z,_.PH)){var d=_.y(Z,_.sn);if(d){if(delete d.index,delete d.playlistId,d=_.y(Z==null?void 0:Z.commandMetadata,_.Kt),d==null?0:d.url){var w=d.url;w=_.Xy(w,"list");w=_.Xy(w,"index");d.url=w}}else Z=void 0}return p.call(t,{},F,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:Z})}),ks$(E,V))}};
Y7$=function(v){var Q=_.hQ();if(v=_.y(v,_.o5R))v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&Q.clearQueue(),v.closeMiniplayer&&_.ht().resolve(_.lJ).close(!0)};
cI5=function(v){yIY(_.hQ(),v)};
fDd=function(v){var Q;(v=(Q=_.y(v,_.uBS))==null?void 0:Q.setVideoIds)&&v.forEach(function(V){_.Jbx(_.hQ(),V)})};
Cqn=function(v){Gsq(_.hQ(),v)};
Mm8=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(v){return!1}};
ONq=function(v){var Q=["h","m","s"],V=_.jZ(Q);V.reverse();var E={};v=(v.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(t){var p=(t.match(/[hms]/)||[""])[0];return p?(E[p]=parseInt(t.match(/\d+/)[0],10),!1):!0});
for(v.reverse();v.length&&V.length;){var b=V.shift();b in E||(E[b]=parseInt(v.shift(),10))}if(v.length||E.s>59||E.m>59||E.h>9)return null;var F="";Q.forEach(function(t){E[t]&&(F+=""+E[t]+t)});
return F||null};
Dq8=function(v,Q){var V=_.ZB8(Q,{},v,!0);return new Promise(function(E,b){V.listenOnce("n",function(){b(Error("Dl`"+V.JSC$29952_getErrorDescription()))});
V.listenOnce("l",function(){var F=V.getResponseCode();if(F!==200)b(Error("El`"+Q+"`"+v.type+"`"+v.size+"`"+F));else try{E(JSON.parse(V.getResponseText()).encryptedBlobId)}catch(t){b(t)}});
V.run()})};
RLj=function(v){return v.substring(v.indexOf(":")+1,v.indexOf(";"))};
nK$=function(v){return new Promise(function(Q,V){var E=new FileReader;E.onloadend=function(){try{var b=new Uint8Array(E.result);b.length<8&&V(void 0);var F=b.subarray(0,8);b="";for(var t=0;t<F.length;t++)b+=("0"+F[t].toString(16)).substr(-2);b.startsWith("ffd8ff")?Q("image/jpeg"):b.startsWith("47494638")?Q("image/gif"):b.startsWith("89504e470d0a1a0a")?Q("image/png"):b.startsWith("424d")?Q("image/bmp"):Q(void 0)}catch(p){V(p)}};
E.onerror=V;E.readAsArrayBuffer(v)})};
lDh=function(v){return new Promise(function(Q,V){var E=new Image;E.crossOrigin="anonymous";E.onload=function(){var b=document.createElement("canvas");b.width=E.naturalWidth;b.height=E.naturalHeight;var F=b.getContext("2d");if(!F)throw Error("Fl");F.drawImage(E,0,0);F=RLj(v);b.toBlob(function(t){t?Q(t):V()},F)};
E.src=v})};
S75=function(v,Q){var V;if(((V=_.y(v,_.PH))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E;_.Hj((E=Q.hostElement)!=null?E:Q,"yt-shorts-reset");_.igj(_.ht().resolve(_.Na),v).then(function(F){q7h(F,Q,v)})}else{var b;
_.vp((b=Q.hostElement)!=null?b:Q,[v]).then(function(F){F&&q7h(F.data,Q,v)})}};
q7h=function(v,Q,V){if(v){var E=_.y(v.replacementEndpoint,_.PH);if(E){v.sequenceContinuation&&(E.sequenceParams=v.sequenceContinuation);var b;_.Hj((b=Q.hostElement)!=null?b:Q,"yt-navigate",{endpoint:v.replacementEndpoint})}else if((v==null?void 0:v.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(v==null?0:v.watchStatus)&&_.y(v.watchStatus,_.RfN)){var F;_.Hj((F=Q.hostElement)!=null?F:Q,"yt-navigate",{endpoint:V})}}};
zLs=function(v){var Q=_.ht().resolve(_.Uj),V=_.zw.currentPageTypeSelector(Q.getState())||"";Q=_.zw.currentPageSubTypeSelector(Q.getState())||"";V=V==="ytd-browse"&&Q==="home";return _.Y("web_guide_entry_enable_cache_for_non_home_pages")?(v=(v==null?void 0:v.navigationEndpoint)&&_.LF(v.navigationEndpoint)==="home",{disableCache:V&&v}):{disableCache:V}};
NBn=function(v,Q,V,E){if(Q!=null&&Q.isPrimary){a:{var b=Q.formattedTitle,F=E===1?Q.navigationEndpoint:void 0;if(V&&V.length){var t={};if(b){var p=void 0;F&&(p={commandContext:{onTap:{innertubeCommand:F||{}}}});t.header={panelHeaderViewModel:{title:_.cg(b),rendererContext:p}}}b=[];V=_.L(V);for(F=V.next();!F.done;F=V.next()){F=_.y(F.value,JIh);var Z=void 0,d=void 0;p=((Z=F)==null?0:Z.formattedTitle)?_.cg((d=F)==null?void 0:d.formattedTitle):void 0;Z=void 0;d=(Z=F)==null?void 0:Z.isPrimary;if(F&&p&&
!d){p={title:p};F.navigationEndpoint&&(p.rendererContext={commandContext:{onTap:{innertubeCommand:F.navigationEndpoint}}});Z=[];var w=d=void 0;if(((d=F)==null?0:(w=d.thumbnail)==null?0:w.thumbnails)&&F.thumbnail.thumbnails.length>0){d=_.L(F.thumbnail.thumbnails);for(w=d.next();!w.done;w=d.next())Z.push({url:w.value.url});p.leadingAccessory={avatarViewModel:{image:{sources:Z},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(d=void 0,(d=F.icon)==null?0:d.iconType)Z.push({clientResource:{imageName:F.icon.iconType||
""}}),p.leadingImage={sources:Z};d=Z=void 0;((Z=F)==null?0:(d=Z.badges)==null?0:d.liveBroadcasting)?(p.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",p.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},p.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):F.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?p.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":F.count&&(p.trailingLabel={content:F.count.toString()});
b.push({listItemViewModel:p})}}b.length!==0?(t.content={listViewModel:{listItems:b}},t.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}}):t=void 0;if(t){b=void 0;E===0&&(b={preventCloseWhileHovered:!0,hideDelayMs:3E3});t={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:t}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:b}}};break a}}t=void 0}E===1&&t?(Q.serviceEndpoint=t,Q.navigationEndpoint=void 0):E===0&&t&&(Q.mouseEnterEndpoint=
t,Q.mouseLeaveEndpoint={hideSheetCommand:{}});v.push({guideEntryRenderer:Q})}};
xq7=function(v){if(!v)return!1;try{if(v.host&&v.host.tagName==="YT-FORMATTED-STRING"&&v.host.id==="contenteditable-textarea"||v.nodeType===Node.ELEMENT_NODE&&v.tagName==="YTD-COMMENT-INPUT")return!0}catch(Q){return!1}return xq7(v.parentNode)};
pX=function(v){return v?v.tagName==="A"&&v.href&&v.classList.contains("yt-simple-endpoint"):!1};
BBj=function(v){return v?v.tagName==="IMG"&&v.classList.contains("emoji"):!1};
gKj=function(v,Q,V){if(!v)return null;var E=pX(v);if(E&&V)return Q=v.pathname.substring(v.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Q);if(E&&!V)return document.createTextNode("");if(BBj(v))return V=v.alt,v=v.dataset.emojiId,!v&&Q&&(Q=_.Uu(Q,V))&&Q.isCustomEmoji&&(v=Q.emojiId),v?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+v+">"):document.createTextNode(V);E=v.cloneNode(!1);for(var b=0;b<v.childNodes.length;++b){var F=gKj(v.childNodes[b],Q,V);F&&E.appendChild(F)}return E};
sqq=function(v){return v?pX(v)?v:sqq(v.lastChild):null};
uvm=function(v){return v?pX(v)?v:uvm(v.firstChild):null};
jqs=function(v){if(!v)return null;for(var Q=v.previousSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.previousSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.previousSibling;else break;(Q=sqq(Q))?v=Q:v=(v=v.parentNode)?sqq(v.previousElementSibling):null;return v};
W3s=function(v){if(!v)return null;for(var Q=v.nextSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.nextSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.nextSibling;else break;return(Q=uvm(Q))?Q:W3s(v.parentNode)};
oK$=function(v){var Q=_.Qt(),V=Q.JSC$11423_getStartNode();if(!xq7(V.parentNode))return null;Q=Q.JSC$11423_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var E=_.XH(V,pX);if(E){if(v&&Q===0||!v&&Q===V.length)return E}else{if(v&&Q===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.Vt(V.nextElementSibling,"display")==="block"?null:uvm(V.nextElementSibling);if(!v&&Q===0)return V?sqq(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(v){if(0<=Q&&Q<V.childNodes.length)return uvm(V.childNodes[Q])}else if(0<
Q&&Q<=V.childNodes.length)return sqq(V.childNodes[Q-1]);return null};
XCI=function(v,Q,V){if(!v)return null;if(v.nodeType===Node.TEXT_NODE)if(V){var E=jqs(v);if(E&&!/^\s+\S/.test(v.wholeText.substr(0,Q)))return E}else if((E=W3s(v))&&!/\S\s+/.test(v.wholeText.substr(Q,v.wholeText.length)))return E;return v.nodeType===Node.ELEMENT_NODE?V?jqs(v.childNodes[Q]):W3s(v.childNodes[Q]):XCI(v.parentNode,Q,V)};
aDq=function(v){if(v.hasChildNodes())switch(v.tagName){case "DIV":case "A":case "SPAN":var Q="";for(v=v.firstChild;v;v=v.nextSibling)Q+=aDq(v);return Q;default:return""}else switch(v.nodeType){case 3:return v.textContent;default:return""}};
rI0=function(v){switch(v){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
$qq=function(v){return v.map(function(Q){return{settingsRadioOptionRenderer:{title:_.mL(Q.name),asideText:_.mL(Q.approximateSize),id:rI0(Q.format)}}})};
HNs=function(v){if(v&&v.length!==0)return v.filter(IDn()).map(function(Q){return{settingsRadioOptionRenderer:{title:Q.name,asideText:Q.approximateSize,id:rI0(Q.formatType)}}})};
mqf=function(v){if(v)return v.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Uq7=function(v,Q){v=new Set(v!=null?v:[]);if(v.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(v.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(v.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(v.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(v.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(Q)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
v$n=function(v){var Q=v.indexOf("(");return Q!==-1?v.substring(Q+1,v.length-1):v};
_.V35=function(v,Q,V,E,b){V||(V=QMq);var F;(F=_.y(V.commandMetadata,_.Kt))!=null&&F.url||(V=Error("Kl`"+JSON.stringify(V)),_.ro(V),V=QMq);V=_.gI.unsafeClone(V);F=_.va(_.y(V.commandMetadata,_.Kt).url,"search_query",v);_.me(location.href,"sv")==="1"&&(_.y(V,_.pF).params="EgOAAgE%3D",F=_.va(F,"sv","1"));_.y(V,_.pF)&&(_.y(V,_.pF).query=v);F=F.replace(/%20/g,"+");_.y(V.commandMetadata,_.Kt).url=F;b=_.Y("desktop_enable_entity_suggest")?{entityMid:b}:{};_.ht().resolve(_.At).resolveCommand(V,{form:{tempData:Object.assign({},
{gs_l:Q,oq:E!=null?E:v},b),isFromShorts:_.su()==="shorts"}})};
E$m=function(v){switch(v){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
Fwq=function(v,Q,V,E,b,F){var t=_.gI.clone(bon);t.locale=_.r7("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;t.report={description:b||"<empty>"};b=_.r7("SBOX_SETTINGS",{});Q=Q.join(",");var p=Date.now();v={choice_cc:E,choice_id_cc:V,choices_sc:Q,gl:b.REQUEST_DOMAIN,hl:b.REQUEST_LANGUAGE,query:v,time:p};F&&(v.choice_additional_comment_cc=F);_.AfA(t,v)};
Kwd=function(v){var Q=new Map;Q.set("authuser",_.r7("SESSION_INDEX","0"));return _.k4(v,Q)};
Lws=function(v){var Q;return _.e(function(V){switch(V.nextAddress){case 1:if(!v||!iom(v))return V.return(null);Q=null;switch(_.r7("INNERTUBE_CLIENT_NAME")){case "WEB":return V.jumpTo(2);case "WEB_REMIX":Q=v.getPlayer()}V.jumpTo(3);break;case 2:return V.yield(v.getPlayerPromise(),4);case 4:Q=V.yieldResult;V.jumpTo(3);break;case 3:return V.return(Q)}})};
iom=function(v){return["ytd-player","ytmusic-player"].includes(String(v.tagName||"").toLowerCase())};
t38=function(v){v=Math.round(v);return v%2?v-1:v};
p7f=function(v){v=Math.round(v);return v%2===0?v-1:v};
e58=function(v){var Q,V,E;if(v=(Q=v.createPlaylistDialogFormSchema)==null?void 0:(V=Q.fieldSchemas)==null?void 0:(E=V.title)==null?void 0:E.validationSchema)for(Q=[v.syncStep,v.asyncStep].filter(function(b){return b!==void 0}),Q=_.L(Q),V=Q.next();!V.done;V=Q.next()){V=V.value.rules;
if(!V)break;V=_.L(V);for(V=V.next();!V.done;V=V.next())return _.y(V.value,_.Mu8)}};
Py8=function(v){var Q,V,E;if(v=(Q=v.createPlaylistDialogFormSchema)==null?void 0:(V=Q.fieldSchemas)==null?void 0:(E=V.visibility)==null?void 0:E.validationSchema)for(Q=[v.syncStep,v.asyncStep].filter(function(b){return b!==void 0}),Q=_.L(Q),V=Q.next();!V.done;V=Q.next()){V=V.value.rules;
if(!V)break;V=_.L(V);for(E=V.next();!E.done;E=V.next())if(E=_.y(E.value,Zon))return Q=void 0,(Q=E.translations)==null?void 0:Q.visibilityNotValidErrorMessage}};
dcj=function(){var v,Q;return(Q=(v=_.ht().resolve(_.d$(_.JR)))==null?void 0:v())!=null?Q:!1};
h55=function(v){var Q=21;if(!v)return Q;Q+=v.headerTitle?27:0;Q+=v.headerTitle&&v.hasHeaderActionHeader?4:0;return Q+=v.headerTitle&&v.headerSubtitle?16:0};
w7Y=function(v){var Q=0;if(!v)return Q;Q+=v.hasFooterPrimaryButton||v.hasFooterSecondaryButton?48:0;Q+=v.footerTrailingLabel||v.footerLeadingLabel?30:0;return Q+=v.hasFooterPrimaryButton||v.hasFooterSecondaryButton||!v.footerTrailingLabel&&!v.footerLeadingLabel?0:12};
AZs=function(v){var Q=new _.ni,V=v;return{subscribe:function(E){Q.subscribe("changed",E)},
dispatch:function(E,b){var F=V;if(E==="Touch Start")V=Object.assign({},F,{isAnimating:!1,initialY:b.event.touches[0].clientY});else if(E==="Touch Move"){E=b.contentScrollable?-1*(F.initialY-24):0;var t,p=(t=b.headerDivHeight)!=null?t:h55(b.header),Z;t=(Z=b.footerDivHeight)!=null?Z:w7Y(b.footer);Z=Math.min(b.fullContentWrapperHeight,b.heightMap[b.contentWrapperId]+p-t);V=Object.assign({},F,{currentY:Math.max(E,b.event.touches[0].clientY-F.initialY),maxHeightForContentWrapper:Math.min(Z,Math.max(0,
(F.isFullScreen?Z:b.contentWrapperHeight)-F.currentY))})}else V=E==="Snap To Full Screen"?Object.assign({},F,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:b.maxHeight}):E==="Snap To Neutral Position"?Object.assign({},F,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:b.maxHeight}):E==="Close Sheet"?Object.assign({},F,{isAnimating:!0,currentY:b.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:b.maxHeight}):F;Q.publish("changed",V)}}};
km5=function(){_.ht().resolve(_.Iu).closeSheet()};
T2Y=function(v){var Q,V,E,b,F,t,p,Z,d,w,A;return{headerTitle:(Q=v.headerTitle)==null?void 0:Q.call(v),headerSubtitle:(V=v.headerSubtitle)==null?void 0:V.call(v),headerActionHeader:v.headerActionHeader,footerPrimaryButton:v.footerPrimaryButton,footerSecondaryButton:v.footerSecondaryButton,footerButtonType:(E=v.footerButtonType)==null?void 0:E.call(v),footerLeadingLabel:(b=v.footerLeadingLabel)==null?void 0:b.call(v),footerTrailingLabel:(F=v.footerTrailingLabel)==null?void 0:F.call(v),shouldShowIcons:(t=
v.shouldShowIcons)==null?void 0:t.call(v),skipContentClick:(p=v.skipContentClick)==null?void 0:p.call(v),additionalClassName:(Z=v.additionalClassName)==null?void 0:Z.call(v),onClosedCallback:v.onClosedCallback,focusOnClose:(d=v.focusOnClose)==null?void 0:d.call(v),isDisabled:(w=v.isDisabled)==null?void 0:w.call(v),disabledCommand:(A=v.disabledCommand)==null?void 0:A.call(v),headerFn:v.headerFn,contentFn:v.contentFn,footerFn:v.footerFn,hasHeaderFn:v.hasHeaderFn(),hasContentFn:v.hasContentFn(),hasFooterFn:v.hasFooterFn(),
hasFooterPrimaryButton:v.hasFooterPrimaryButton(),hasFooterSecondaryButton:v.hasFooterSecondaryButton(),hasHeaderActionHeader:v.hasHeaderActionHeader()}};
Yc0=function(v){switch(v){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
yZn=function(v){switch(v){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
cZI=function(v){switch(v){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
fyq=function(v,Q,V){Q.forEach(function(E){_.x_(_.ht().resolve(_.o5),E)});
_.mb(v,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",V])};
Oo8=function(v,Q,V,E){var b=_.y(V,_.Pm).commandLifeCycleConfig;b&&b.onStartCommand&&_.Qk(v,[b.onStartCommand],Q);_.qM(Q);var F=_.Js.instance;F&&_.NC(F,V)?_.xW(F,V,E).then(function(t){if(!t||(t==null?0:t.error))return t=_.y(V,_.Pm).serializedTransactionFlowLoggingParams,_.Si(Q),_.kD(new el("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t));_.Si(Q);return{data:t}}).then(function(t){_.Si(Q);
Gm5(t.data);var p=t.data.command;p&&_.Qk(v,[p],Q);p=Cys(V,t.data);if(!p){var Z=t.data;t=!1;if(Z&&Z.command&&_.y(Z.command,_.E2)){var d;Z=((d=_.y(Z.command,_.E2))==null?void 0:d.commands)||[];for(d=0;d<Z.length;d++)if(_.y(Z[d],_.EOa)){t=!0;break}}t||_.oZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!p&&b&&b.onSuccessCommand?_.Qk(v,[b.onSuccessCommand],Q):p&&b&&b.onFailureCommand&&_.Qk(v,[b.onFailureCommand],Q)},function(){_.Si(Q);
b&&b.onFailureCommand&&_.Qk(v,[b.onFailureCommand],Q);M3h(V)}):_.ro(Error("Wl"),"ERROR")};
Dc0=function(v,Q,V){var E=[Q];V&&E.push(V);return _.vp(v,E).then(function(b){var F=_.y(Q,_.Pm).serializedTransactionFlowLoggingParams,t=b.data,p=Cys(Q,t);p?b=_.kD(new el(p,F)):Gm5(t);return b},function(){var b=_.y(Q,_.Pm).serializedTransactionFlowLoggingParams;
M3h(Q);return _.kD(new el("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",b))})};
Cys=function(v,Q){v=_.y(v,_.Pm).serializedTransactionFlowLoggingParams;var V=null;switch(Q.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?_.BH(V,v):qP$(v);return V};
M3h=function(v){_.BH("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.y(v,_.Pm).serializedTransactionFlowLoggingParams)};
Gm5=function(v){if(v.trackingParams){var Q=_.Mo(),V=_.CC();Q&&V&&_.Np(Q,V,_.dE(v.trackingParams))}};
R55=function(v,Q,V){var E=_.Js.instance,b=_.g1t(_.r7("YPC_MB_URL")),F=(new _.xtT).init(),t=_.BTE(),p=_.y(V,_.UIN).languageCode;p===void 0?_.ro(Error("Ii"),"ERROR"):_.lc([F,b]).then(function(){var Z={ctk:_.oI.payments.business.integration.ClientTokenFactory.createClientToken(p,t)};E&&_.NC(E,V)?_.xW(E,V,Z).then(function(d){return{data:d}}).then(function(d){_.Hj(Q,"yt-service-request-completed",d);
d.code!=="ERROR"&&(d=d.data.command)&&_.Qk(v,[d],Q)}):_.ro(Error("Wl"),"ERROR")})};
qcq=function(v,Q,V,E){var b=_.Js.instance;b&&_.NC(b,V)?_.xW(b,V,E).then(function(F){return{data:F}}).then(function(F){n$m(v,Q,V,F)},function(){lyf(V)}):(b=_.ht().resolve(_.d$(_.hn)))&&b.requestDataForServiceEndpoint(V,E).then(function(F){n$m(v,Q,V,F)},function(){lyf(V)})};
n$m=function(v,Q,V,E){_.Hj(Q,"yt-service-request-completed",E);if(E.code&&E.code=="ERROR")lyf(V);else{(E=E.data.commands)&&_.Qk(v,E,Q);var b;(v=(b=_.y(V,_.Fya))==null?void 0:b.serializedYpcPauseFlowLoggingParams)&&v&&_.zB("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",v)}};
lyf=function(v){var Q;(v=(Q=_.y(v,_.Fya))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&v&&_.zB("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
JZY=function(v,Q,V){var E=_.Js.instance;E&&_.NC(E,V)?_.xW(E,V).then(function(b){return{data:b}}).then(function(b){Scj(v,Q,V,b)},function(){z5f(V)}):(E=_.ht().resolve(_.d$(_.hn)))&&E.requestDataForServiceEndpoint(V).then(function(b){Scj(v,Q,V,b)},function(){z5f(V)})};
Scj=function(v,Q,V,E){_.Hj(Q,"yt-service-request-completed",E);E.code&&E.code=="ERROR"?z5f(V):((E=E.data.commands)&&_.Qk(v,E,Q),(v=_.y(V,_.KyV).serializedYpcResumeFlowLoggingParams)&&v&&_.zB("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",v))};
z5f=function(v){(v=_.y(v,_.KyV).serializedYpcResumeFlowLoggingParams)&&v&&_.zB("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
N2I=function(v){v=v===void 0?{}:v;_.ht().resolve(_.gPh).showFeedbackDialog(v.customProductData,v.feedbackContent,v.onFeedbackSubmitted,v.bucket)};
xch=function(v){v=v===void 0?{}:v;_.ht().resolve(_.gPh).showHelpDialog(v.helpContext,v.articleId,v.productData)};
B25=function(){xch()};
g$I=function(){N2I()};
uZh=function(v,Q,V){var E,b,F,t,p,Z,d;return _.e(function(w){switch(w.nextAddress){case 1:E=_.y(v,sMf);if((b=E)==null?0:b.productId){Z={productId:E.productId,bucket:E.bucket,enableAnonymousFeedback:(p=E.enableAnonymousFeedback)!=null?p:!0,allowNonLoggedInFeedback:!0};d={feedbackChoice:V.feedbackChoice};if(!_.Y("web_collect_offline_state")){w.jumpTo(8);break}_.GC(w,9);return w.yield(uK7(d),11)}t={bucket:(F=E)==null?void 0:F.bucket};if(!_.Y("web_collect_offline_state")){w.jumpTo(4);break}t.customProductData=
{};_.GC(w,5);return w.yield(uK7(t.customProductData),7);case 7:_.FT(w,4);break;case 5:_.n$(w);case 4:N2I(t);w.jumpTo(0);break;case 11:_.FT(w,8);break;case 9:_.n$(w);case 8:_.GxE(d),_.ffZ("GFEEDBACK",d),E.productId==="5295751"&&(d.client_attestation=Number(_.r7("CATSTAT",0))),E.productId==="5295751"&&(d.client_time=Date.now()/1E3/3600),E.productId==="5295751"&&(d.original_playback_id=_.anZ||""),_.AfA(Z,d),_.q1(w)}})};
jMn=function(v){if(v=_.y(v,_.fSt)){var Q={bucket:v.bucketIdentifier};v.additionalDatas&&(Q.customProductData={},v.additionalDatas.forEach(function(V){if(V=V.userFeedbackEndpointProductSpecificValueData)Q.customProductData[V.key]=V.value}));
N2I(Q)}};
Ww0=function(v){var Q=_.KW.getInstance();var V=_.Lt("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var E=_.Lt("DELETE",void 0,"Delete"),b=_.Lt("CANCEL",void 0,"Cancel");V=Ufs(V,void 0,E,b,{signal:"DELETE_ALL_DOWNLOADS"});_.uN(Q,[{openPopupAction:V}],v)};
X7I=function(){return _.e(function(v){return v.nextAddress==1?v.yield(_.ht().resolve(_.Kc),2):v.yield(o$q(),0)})};
ays=function(v){var Q,V;return _.e(function(E){return E.nextAddress==1?(V=(Q=_.y(v,_.Vi))==null?void 0:Q.targetId)?E.yield(_.ht().resolve(_.Kc),3):E.jumpTo(0):E.yield(_.ht().resolve(_.Fm).deleteVideo(V),0)})};
$ch=function(v){var Q,V;return _.e(function(E){return E.nextAddress==1?(V=(Q=_.y(v,_.Vi))==null?void 0:Q.targetId)?E.yield(_.ht().resolve(_.Kc),3):E.jumpTo(0):E.yield(rZn(_.ht().resolve(_.Fm),V),0)})};
HoI=function(v){var Q,V;return _.e(function(E){return(V=(Q=_.y(v,_.Vi))==null?void 0:Q.targetId)?E.yield(Iyd(V),0):E.jumpTo(0)})};
Uc7=function(){_.Y("kevlar_woffle_refresh_dl_load_killswitch")||mcY()};
Qg$=function(){_.Y("kevlar_woffle")&&_.zA.instance&&vum()};
Euj=function(v){var Q;if((Q=_.y(v,_.L4))==null||!Q.videoId)return!1;VDm(_.ht().resolve(_.Fm),_.y(v,_.L4),v.clickTrackingParams);return!0};
F_q=function(v){var Q;if((Q=_.y(v,_.t2))==null||!Q.playlistId)return!1;bv5(_.ht().resolve(_.Fm),_.y(v,_.t2),v.clickTrackingParams);return!0};
iv0=function(v){var Q=_.y(v,_.sKS);(Q==null?void 0:Q.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(Q==null?void 0:Q.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||K_f(_.ht().resolve(_.Fm),_.y(v,_.sKS))};
tDm=function(v){v=_.y(v,_.ADN);var Q;(v==null?0:(Q=v.actions)==null?0:Q.length)&&L_$(v)};
Zvn=function(v){var Q,V;return _.e(function(E){Q=_.y(v,pAj);return(V=Q)!=null&&V.localWatchHistoryCommandType?E.yield(evj(Q),0):E.return()})};
dVI=function(){return _.e(function(v){return _.Y("kevlar_enable_download_to_mobile")?v.yield(PcY(),0):v.return()})};
hvY=function(v){setTimeout(function(){requestAnimationFrame(v)},80)};
wA$=function(v){return Object.entries(v).map(function(Q){return Q.join(":")}).join(";")};
klh=function(v){var Q,V,E;_.e(function(b){if(b.nextAddress==1)return b.yield(AGn(),2);Q=b.yieldResult;V=_.bd.instance;switch(Q){case "granted":E=v.getLocationCommand;break;case "denied":E=v.openDeniedDialogAction;break;case "prompt":E=v.openCollectionDialogAction;break;default:E=v.openCollectionDialogAction}E&&V.resolveCommand(E);_.q1(b)})};
AGn=function(){var v,Q;return _.e(function(V){if(V.nextAddress==1)return v="prompt",navigator.permissions?V.yield(navigator.permissions.query({name:"geolocation"}),3):V.jumpTo(2);V.nextAddress!=2&&(Q=V.yieldResult,v=Q.state);return V.return(v)})};
YE5=function(){_.e(function(v){return v.yield(_.TLd(),0)})};
yG8=function(){var v,Q,V;return _.e(function(E){if(E.nextAddress==1)return v=_.ht().resolve(_.wH),v?E.yield(_.xW(v,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Iy(Error("Zl")),E.return(void 0));if(Q=E.yieldResult){if(Q.errorMetadata)return _.Iy(Error("$l`"+Q.errorMetadata.status+"`"+Q.error)),E.return(void 0);V=Q.datasyncIds;_.U1$=V.length;return E.return(V)}_.Iy(Error("am"));return E.return(void 0)})};
cGm=function(){yG8().then(function(v){v&&(wgm(v),zgf(v),F0m(v),W00(v))})};
fOf=function(v){_.XT.addLowPriorityJob(function(){var Q,V,E,b,F;return _.e(function(t){switch(t.nextAddress){case 1:if(_.Y("ytidb_clear_optimizations_killswitch")){t.jumpTo(2);break}Q=_.Jt("clear");if(Q.startsWith("V")&&Q.endsWith("||")){var p=[Q];wgm(p);zgf(p);F0m(p);W00(p);return t.return()}V=K0Y();E=oWf();return t.yield(Js5(),3);case 3:return b=t.yieldResult,t.yield(ARm(),4);case 4:if(F=t.yieldResult,!(V||E||b||F))return t.return();case 2:v.isNetworkAvailable()?cGm():v.listenOnce("publicytnetworkstatus-online",
cGm),_.q1(t)}})})};
Z$=function(v){v={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.u3(v)}}}};_.bd.instance&&_.bd.instance.resolveCommand(v)};
Glj=function(v){if(v){var Q=_.tR();_.S5(Q,3854,void 0,{layer:0,parentLayer:4});switch(v){case 1:var V=238708;break;case 2:V=238715;break;case 3:V=238710;break;case 6:V=238709}V&&(v=_.Lx(Q,{veType:V}))&&_.N_(Q,v)}};
Ccn=function(v){if(v){var Q=_.tR();_.S5(Q,3854,void 0,{layer:0,parentLayer:4});switch(v){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&&(v=_.Lx(Q,{veType:V}))&&_.N_(Q,v)}};
MD5=function(v){switch(v.latencyType){case 0:_.Ct("consent_primitive_flow");_.Mp("cpit",v.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Mp("cpist",v.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Mp("cprtif",v.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Mp("cprtli",v.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Mp("cprt",v.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Mp("cpdt",v.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Mp("cpjct",v.timestampEpochMillis,"consent_primitive_flow")}};
BLs=function(v,Q){var V,E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u;return _.e(function(r){switch(r.nextAddress){case 1:_.GC(r,2);(E=(V=_.y(v,Ov5))==null?void 0:V.serializedConsentRequest)||(E=(b=_.y(v,DV$))==null?void 0:b.serializedConsentRequest);E&&(F=Rvs(_.H9(E)));if(F===void 0)return r.return();t=nu0(F);t.latencyCallback=MD5;Q&&lOm(t,function(){Q.then(function(v9){v9.pauseVideo();(new qEh).increment()})});
return((p=_.y(v,Ov5))==null?void 0:p.consentAction)==="CONSENT_ACTION_PREWARM"||((Z=_.y(v,DV$))==null?void 0:Z.consentAction)==="CONSENT_ACTION_PREWARM"?r.yield(SEd(t),5):r.yield(zvf(t),6);case 6:d=r.yieldResult;w=_.wB(d,PK);if(w===1){if(((A=_.O7(d,JGh,1,PK))==null?void 0:_.Gs(A,1))===1||((k=_.O7(d,JGh,1,PK))==null?void 0:_.Gs(k,1))===2||((T=_.O7(d,JGh,1,PK))==null?void 0:_.Gs(T,1))===3)_.y(v,DV$)?Z$(_.Lt("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Z$(_.Lt("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Glj((c=_.O7(d,JGh,1,PK))==null?void 0:_.Gs(c,1),_.PM(d,NLj,3,_.dZ()))}else w===2?(((C=xV7(d))==null?void 0:_.Gs(C,1))===5?_.y(v,DV$)?Z$(_.Lt("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Z$(_.Lt("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((R=xV7(d))==null?void 0:_.Gs(R,1))===1||((l=xV7(d))==null?void 0:_.Gs(l,1))===4?
Z$(_.Lt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((S=xV7(d))==null?void 0:_.Gs(S,1))===7&&((a=F)==null?void 0:(g=_.TY(a,dd,4))==null?void 0:_.Gs(g,4))!==1&&Z$(_.Lt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Ccn((u=xV7(d))==null?void 0:_.Gs(u,1))):Z$(_.Lt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));r.jumpTo(5);break;case 5:_.FT(r,0);break;case 2:_.n$(r),Z$(_.Lt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.q1(r)}})};
sgd=function(){if(!gu8.has("Worker")){gu8.set("Worker",!0);var v={api:"BROWSER_API_WEB_WORKER"};v.available="Worker"in window?!0:!1;_.X0("apiTest",v)}};
u5j=function(v){return typeof v==="undefined"?"-1":String(Math.ceil(v/1048576))};
XAm=function(v,Q){jgn(new W_8(_.y(Q,ouf).addToken,_.y(Q,ouf).commonToken)).then(function(){_.Hj(v,"yt-invoke-instrument-manager-action-completed")},function(V){_.Hj(v,"yt-invoke-instrument-manager-action-error",V)})};
hO=function(){return _.r7("HTML_DIR")==="rtl"};
aO0=function(){var v,Q;return(Q=(v=window).matchMedia)==null?void 0:Q.call(v,"(prefers-reduced-motion: reduce)").matches};
rGf=function(v){var Q=_.ht().resolve(_.d$(_.aw));if(Q&&Q.isAnyTransitionEnabled){var V={};Q.viewTransitionCoordinator.registerElement(v,(V.slide="miniplayer-page-transition",V["lockup-to-watch"]="miniplayer-page-transition",V["learning-journey"]="miniplayer-page-transition",V))}};
$Vm=function(v,Q,V){return{horizontalAlignment:v.x+V.width/2<Q.width/2?"west":"east",verticalAlignment:v.y+V.height/2<Q.height/2?"north":"south"}};
Hv0=function(v,Q,V,E,b){b=b===void 0?new _.ua(0,0):b;v=IOd(v,Q,V,E,!1);return new _.ua(v.x+b.x,v.y+b.y)};
IOd=function(v,Q,V,E,b){b=(b===void 0?0:b)?400:0;return new _.ua(v==="west"?16+(hO()?b:0):V.width-E.width-16-(hO()?0:b),Q==="north"?16:V.height-E.height-16)};
mVI=function(v,Q){var V=0;v&&(V+=76);Q&&(V+=285);return V};
UV8=function(v){return _.qq(v)};
vxh=function(v){var Q=1;v=v.split(":");for(var V=[];Q>0&&v.length;)V.push(v.shift()),Q--;v.length&&V.push(v.join(":"));return V};
Qld=function(v){var Q=new _.dL;return _.DD(Q,11,v)};
VNs=function(v){var Q={};v=v.getAllResponseHeaders().split("\r\n");for(var V=0;V<v.length;V++)if(!_.pE(v[V])){var E=vxh(v[V]),b=E[0];E=E[1];if(typeof E==="string"){E=E.trim();var F=Q[b]||[];Q[b]=F;F.push(E)}}return _.gI.map(Q,function(t){return t.join(", ")})};
qO=function(v,Q){return v.JSC$9876_xhr_?v.JSC$9876_xhr_.getResponseHeader(Q):null};
Ex7=function(v,Q){if(v.isDisposed())throw Error("Ea");v.w6.gF("n");var V=_.gL(v.w6,function(){return v.xXT([Q.hj,Q.wYZ,Q.dug,Q.eWX])},"n");
v.w6.s1A(V.length);v.w6.ma();return V};
bMY=function(v,Q,V){Array.isArray(V)||(V=[String(V)]);_.y8R(v.JSC$10112_queryData_,Q,V);return v};
vum=function(){var v=_.zA.instance;_.e(function(Q){return v.deferredInstallPrompt?Q.yield(v.deferredInstallPrompt.prompt(),0):Q.jumpTo(0)})};
FGh=function(v,Q,V){if(_.W9(v))_.bv(v,Q,V);else for(v=_.lGR(v);;){var E=v.next();if(E.done)break;Q.call(V,E.value,void 0,v)}};
KGj=function(v,Q){var V=[];FGh(Q,function(E){try{var b=_.C2.prototype.getWrapper.call(this,E,!0)}catch(F){if(F=="Storage: Invalid value was encountered")return;throw F;}b===void 0?V.push(E):_.n7A(b)&&V.push(E)},v);
return V};
Xgn=function(v,Q){KGj(v,Q).forEach(function(V){_.C2.prototype.remove.call(this,V)},v)};
iMh=function(v){var Q=_.b7;Q._minimumZ=Math.max(Q._minimumZ,v)};
LG0=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];tN5=function(v,Q){_.t5(v.vm);v.vm=Q};
peq=function(v,Q,V,E){v.setState(5);var b=!!v.bP2&&LG0.includes(_.pi(v.bP2)||"");try{var F=new _.sE({program:Q,globalName:V,avZ:{disable:!_.Y("att_web_record_metrics")||!_.Y("att_skip_metrics_for_cookieless_domains_ks")&&b,ri:"aGIf"}});F.bwW.then(function(){v.setState(6);E&&E(Q)});
tN5(v,F)}catch(t){v.setState(7),t instanceof Error&&_.Iy(t)}};
eKm=function(v,Q,V,E,b,F){var t=t===void 0?"trayride":t;V?(v.setState(2),_.SH(_.BM(V),function(){if(window[t])peq(v,E,t,b);else{v.setState(3);var p=_.xno(V),Z=document.getElementById(p);Z&&(_.G4S(p),Z.parentNode.removeChild(Z));_.Iy(new _.xd("BL:ULB",V))}},F)):Q?(F=_.RD("SCRIPT"),Q instanceof _.bi?_.ii(F,Q):F.textContent=Q,F.nonce=_.E_(document),document.head.appendChild(F),document.head.removeChild(F),window[t]?peq(v,E,t,b):(v.setState(4),_.Iy(new _.xd("BL:ULBJ")))):_.Iy(new _.xd("BL:ULV"))};
ZM5=function(){this.state=1;this.vm=null;this.bP2=void 0};
_.K=ZM5.prototype;_.K.initialize=function(v,Q,V,E){this.bP2=E;if(v.program){var b;E=(b=v.interpreterUrl)!=null?b:null;if(v.interpreterSafeScript)b=_.XHB(v.interpreterSafeScript);else{var F;b=(F=v.interpreterScript)!=null?F:null}v.interpreterSafeUrl&&(E=_.ae(v.interpreterSafeUrl).toString());eKm(this,b,E,v.program,Q,V)}else _.Iy(Error("sf"))};
_.K.isInitialized=function(){return!!this.vm};
_.K.getState=function(){return this.state};
_.K.isLoading=function(){return this.state===2};
_.K.invoke=function(v){v=v===void 0?{}:v;var Q;this.vm?Q=Ex7(this.vm,{hj:v}):Q=null;return Q};
_.K.dispose=function(){tN5(this,null);this.setState(8)};
_.K.setState=function(v){this.state=v};
var PzI=function(v,Q){return v.vm.snapshot(Q)},dkj=function(v,Q){var V=_.T_("botguard_async_snapshot_timeout_ms",3E3);
Q=Q===void 0?{}:Q;V=V===void 0?3E3:V;return v.vm?new Promise(function(E,b){var F=!1,t=_.XT.addJob(function(){F=!0;b(Error("tf"))},1,V);
v.vm?PzI(v,{hj:Q}).then(function(p){_.XT.cancelJob(t);F||E(p)}).catch(function(p){_.XT.cancelJob(t);
F||b(p)}):(_.XT.cancelJob(t),E(null))}):Promise.resolve(null)},hKY=["att/log"],QMq;
QMq={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var weq={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},A65=function(v,Q){return _.e0(v,{mode:"readwrite",enableRetries:!0},function(V){return _.yQt(V,Q,"settingEntity")})},kZ5=function(v,Q,V){return _.e0(v,{mode:"readonly",
enableRetries:!0},function(E){return _.OnZ(E,Q,V)})},Tn$=function(v){if(!v.storage)return!1;
a:{if(v.storage){try{var Q=v.storage.get("TLPQtimestamp")}catch(V){}v=Number(Q);if(!isNaN(v))break a}v=void 0}return v?Date.now()-v<864E5:!1},YMh=function(v){if(v.storage){try{var Q=v.storage.get("TLPQindex")}catch(V){}v=Number(Q);
if(!isNaN(v))return v}},y6s=function(v,Q){v.queueProxy&&Q.forEach(function(V){if(V.videoId&&V.trackingParams&&v.queueProxy instanceof _.ig){var E=_.Mo();
v.queueProxy.attributionData.set(V.videoId,{enqueueingVe:_.dE(V.trackingParams).getAsJson(),enqueueingCsn:E?E:void 0,clientEnqueueingTimeMs:Math.floor((0,_.wO)()).toString()})}})},c6s=function(v){var Q=_.eXN(v);
Q!=v.currentSnapState_&&(v.currentSnapState_=Q,v.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},wd=function(v){this.JSC$13298_networkManager_=v;
this.partCallbacks_=[]};
wd.prototype.getCacheKeyForEndpoint=function(v){return _.tsT(v,!1)};
wd.prototype.onPartsCallback_=function(v){this.partCallbacks_.forEach(function(Q){v&&Q(v)})};
var AO=function(v,Q,V){wd.call(this,v);this.player_=Q;this.autoplayData_=V};
_.f(AO,wd);AO.prototype.getCacheKeyForEndpoint=function(v){return _.tsT(v,!!this.autoplayData_)};
AO.prototype.getTempData=function(v,Q){Q=Q.timeBeforeNextVideo;v={itct:v.clickTrackingParams,lact:_.kh(),pbis:Q,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(v.autonav=1);return v};
AO.prototype.getXhrParams=function(v){return Object.assign({pbj:"prefetch"},v)};
AO.prototype.getParams=function(v){v={frags:v.fragmentsRequested.join(",")};_.Y("kevlar_droppable_prefetchable_requests")&&(v.prefetch=1);return v};
var fuf=function(v){v.playerEvents_.forEach(function(Q){v.player.removeEventListener(Q.eventName,Q.callback)});
v.playerEvents_.length=0},GZh=function(v,Q,V){this.player=v;
this.JSC$13308_taskManager=Q;this.prefetchDelay=V;this.completionResolver_=null;this.playerEvents_=[]};
GZh.prototype.start=function(){var v=this;this.completionResolver_=_.B_();_.qV(this.completionResolver_.promise,function(){fuf(v);v.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Czs=function(v,Q,V){v.player.addEventListener(Q,V);v.playerEvents_.push({eventName:Q,callback:V})},MN$={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},OM5={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Dks=function(v,Q,V){GZh.call(this,v,Q,V);this.cueId_="playbackTrigger-"+Math.random()};
_.f(Dks,GZh);
Dks.prototype.prepareTrigger=function(v){var Q=this,V=this.player.getDuration(),E=this.player.getVideoData(),b=E.isLive&&E.hasProgressBarBoundaries;if(b&&E.progressBarEndPositionUtcTimeMillis){var F=E.progressBarEndPositionUtcTimeMillis/1E3;isNaN(F)||(V=F)}var t=0;this.prefetchDelay>=0?b?E.progressBarStartPositionUtcTimeMillis&&(E=E.progressBarStartPositionUtcTimeMillis/1E3,isNaN(E)||(t=E+this.prefetchDelay)):t=this.prefetchDelay:t=V+this.prefetchDelay;b?this.player.addUtcCueRange(this.cueId_,t,V):
this.player.addCueRange(this.cueId_,t,V);_.qV(v.promise,function(){Q.player.removeCueRange(Q.cueId_)});
Czs(this,"onCueRangeEnter",function(p){p==Q.cueId_&&v.resolve(V-t)})};
var RKd=function(v,Q){v.fragmentConfiguration_[Q].requiredKeys.every(function(V){return!!v.prefetchedData_[V]})&&(v.validatedFragments_.push(Q),Q=v.missingFragments_.indexOf(Q),Q!==-1&&v.missingFragments_.splice(Q,1))},nx$=function(v){v.prefetchedFragments_.forEach(function(Q){RKd(v,Q)})},lu0=function(v,Q,V){this.pageFragments_=v;
this.prefetchedFragments_=Q;this.fragmentConfiguration_=OM5;this.prefetchedData_=V;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;nx$(this)},qMm=function(){},SMI=function(v){this.JSC$13322_playlistManager_=v};
_.f(SMI,qMm);SMI.prototype.getPrefetchEndpoint=function(){return this.JSC$13322_playlistManager_.getAutoplayEndpoint()};
var zKh=function(v){this.autonavEndpoints_=v};
_.f(zKh,qMm);zKh.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var J6Y=function(v,Q,V,E,b){this.autonavEndpoints=v;this.foregroundTrigger=Q;this.backgroundTrigger=V;this.pageType=E;this.isInPlaylist=b},Nn7=function(v,Q){if(v.webPrefetchData&&v.webPrefetchData.navigationEndpoints&&v.webPrefetchData.navigationEndpoints.length){v=v.webPrefetchData.navigationEndpoints;
var V=_.y(v[0],_.sn);if(V.watchEndpointSupportedPrefetchConfig&&V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var E=V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;V=E.playbackRelativeSecondsPrefetchCondition;V=typeof V==="number"&&Math.abs(V)<Q.videoDuration?V:void 0;E=E.countdownUiRelativeSecondsPrefetchCondition;E=typeof E!=="number"||_.Y("prefetch_job_config_cleanup_ks")&&Q.inPlaylist?void 0:E;if(typeof E==="number")return new J6Y(v,Q.makeUpNextTrigger(E),Q.makePlaybackTrigger(E),
"watch",Q.inPlaylist);if(typeof V==="number")return new J6Y(v,Q.makePlaybackTrigger(V),null,"watch",Q.inPlaylist)}}},xkj=function(v){return v.prefetchJobConfig_.backgroundTrigger?_.v5(_.zf3)()==0?v.prefetchJobConfig_.backgroundTrigger:v.prefetchJobConfig_.foregroundTrigger:v.prefetchJobConfig_.foregroundTrigger},Bnf=function(v){_.OE(document,"visibilitychange",v.onVisibilityChange_,!1,v)},kZ=function(v){wd.call(this,v)};
_.f(kZ,wd);kZ.prototype.getCacheKeyForEndpoint=function(v){return wd.prototype.getCacheKeyForEndpoint.call(this,v)};
kZ.prototype.getTempData=function(){return{}};
kZ.prototype.getXhrParams=function(v){return v};
kZ.prototype.getParams=function(){return{}};
var gxj=function(v,Q,V){var E=v.prefetchDelay*1E3;if(Math.abs(E)>Q)V.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var b=E,F=Q-E;E<0&&(b=Q+E,F=Math.abs(E));var t=v.JSC$13308_taskManager.addJob(function(){V.resolve(F/1E3)},10,b);
V.promise.thenCatch(function(){v.JSC$13308_taskManager.cancelJob(t)})}},slf=function(v,Q,V){GZh.call(this,v,Q,V)};
_.f(slf,GZh);slf.prototype.prepareTrigger=function(v){var Q=this;Czs(this,"onAutonavCoundownStarted",function(V){gxj(Q,V,v)})};
var uEd=function(v){v.pendingPrefetchJob_&&(v.pendingPrefetchJob_.cancel(),v.pendingPrefetchJob_=null)},jlj=function(v,Q,V){if(!v.triggeredTargets.has(Q)){var E=_.nLS(v,Q);
E.action=V;_.Dua(v,Q,E)}},WG7=function(v){_.YtV();
_.rBG("cpt")&&_.Iy(Error("lh"));_.bb.requestAnimationFrame(function(){_.bb.setTimeout(function(){_.Mp("cpt");var Q=_.lI("vpl"),V=_.lI("cpt");Q&&V&&_.Mp("ol",Math.max(Q,V))})});
try{_.Mp("fr_s"),v()}catch(Q){_.ro(Q)}_.bb.requestAnimationFrame(function(){_.Mp("bcp")})},oxn=function(v,Q){v.serviceEndpointHandlers.push(Q)},Xe5=function(v,Q){Q=v.pendingPages_.indexOf(Q);
Q>-1&&v.pendingPages_.splice(Q,1)},auq=function(v,Q){var V=_.rla.indexOf(Q);
V>-1&&_.rla.splice(V,1);v.targetPage_==Q?(v.abort(),_.INA(v)):Xe5(v,Q)},r6d=function(v,Q,V,E){Q={challenge:Q};
V&&(Q.webResponse=V);return _.tQ(v.innertubeTransportService,Q,_.Xg(hKY),E)},$kh=function(v,Q,V){if(!Q.challenge)throw Error("qi");
if(Q.botguardData&&Q.botguardData.program){var E=new ZM5;E.initialize(Q.botguardData,function(){dkj(E,{atr_challenge:Q.challenge}).then(function(b){if(!b)throw Error("ri");return r6d(v,Q.challenge,b,V)}).catch(function(b){_.Iy(b);
return r6d(v,Q.challenge,void 0,V)})},void 0)}else r6d(v,Q.challenge,void 0,V)},Iu8=function(v,Q,V){var E={};
Q.ids&&(E.ids=[].concat(_.ui(Q.ids)));Q.engagementType&&(E.engagementType=Q.engagementType);return _.tQ(v.innertubeTransportService,E,_.Xg(_.oOx),V).then(function(b){if(!b)throw new _.xd("GetAttestationChallenge returned falsy");$kh(v,b,V)}).thenCatch(function(b){_.ro(b)})},HMj=function(v,Q,V){return new _.Ry(function(E,b){var F;
return _.e(function(t){if(t.nextAddress==1){var p=t.yield,Z=Q.engagementType,d=Q.ids,w={};d=_.L(d!=null?d:[]);for(var A=d.next();!A.done;A=d.next())A=A.value,A.encryptedVideoId?w.encryptedVideoId=A.encryptedVideoId:A.externalChannelId?w.externalChannelId=A.externalChannelId:A.commentId?w.commentId=A.commentId:A.externalOwnerId?w.externalOwnerId=A.externalOwnerId:A.artistId?w.artistId=A.artistId:A.playlistId?w.playlistId=A.playlistId:A.externalPostId?w.externalPostId=A.externalPostId:A.shareId&&(w.shareId=
A.shareId);return p.call(t,mfI(Z,w),2)}F=t.yieldResult;if(!F.challenge)return _.Iy(Error("si")),Iu8(v,Q,V).then(E,b),t.return();p=F;Z={challenge:p.challenge};Z.webResponse=p.webResponse;Z.engagementType=Q.engagementType;Z.ids=Q.ids;_.tQ(v.innertubeTransportService,Z,_.Xg(hKY),V).then(E,b);_.q1(t)})})},Gsq=function(v,Q){var V,E,b,F;
_.e(function(t){if(t.nextAddress==1){V=_.y(Q,_.aLA);if(!(V&&V.listId&&v.response&&v.response.playingVideoId)||v.listId!==V.listId)return t.return();v.index===void 0&&(v.index=0);return t.yield(_.Poa(v.JSC$13161_playlistNetworkManager,V.listId,v.index,v.response.playingVideoId),2)}E=t.yieldResult;if(!E)return t.return();b=E.playlistId;F=E.playlistPanelRenderer;v.setPlaylistData(b,F,E.autoplayRenderer);_.q1(t)})},mkn=function(v,Q,V){var E=v.getParams(V),b=_.Q7Q(Q,E),F=v.getTempData(Q,V);
F.endpoint=JSON.stringify(Q);_.Y("enable_unknown_lact_fix_on_html5")&&(_.ht().resolve(_.dS),F.lact=_.kh());var t={headers:{"X-YouTube-STS":_.r7("STS"),"x-youtube-csoc":1}};_.ox(b,F);return new _.Ry(function(p,Z){var d=v.getXhrParams(E),w;_.Y("kevlar_cache_on_ttl_player")&&(w=_.ht().resolve(_.kG));w&&_.bg$(w,Q)?_.pMh(w,Q,F,window.location.href).then(function(A){A?p(A):Z()},Z):_.WaR(v.JSC$13298_networkManager_,Q,d,v.onPartsCallback_.bind(v),t).then(function(A){A?p(A):Z()},Z)})},UkY=function(v,Q){v.triggerPromise_=
Q.start();
v.triggerPromise_.then(function(V){var E=v.prefetchEndpointProvider_.getPrefetchEndpoint();if(E){var b=MN$[v.prefetchJobConfig_.pageType].prefetchedFragments;v.prefetchRequestPromise_=mkn(v.JSC$13334_networkPrefetchRequest_,E,{fragmentsRequested:b,timeBeforeNextVideo:V});v.prefetchResponseCacheKey_=v.JSC$13334_networkPrefetchRequest_.getCacheKeyForEndpoint(E);Bnf(v);v.prefetchRequestPromise_.then(function(F){v.storePrefetchedDataCallback_(v.prefetchResponseCacheKey_,F);if(_.Y("web_prefetch_preload_video")&&
b.length===1&&b[0]==="pl"&&F&&!F.playerAds&&!F.adPlacements){var t=_.y(E,_.PH),p=t!=null,Z={raw_player_response:F,watch_endpoint:t};(F=_.ht().resolve(p?_.$bN:_.m0))&&E&&F.then(function(d){p&&_.Y("web_queue_preload_video")?(Z.prefer_gapless=!0,d.queueNextVideo(Z)):d.preloadVideoByPlayerVars(Z)})}})}})},TL=function(v,Q,V,E){this.prefetchEndpointProvider_=v;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=Q;this.prefetchJobConfig_=V;this.JSC$13334_networkPrefetchRequest_=E;this.prefetchResponseCacheKey_=null};
TL.prototype.enqueue=function(){this.triggerPromise_||(UkY(this,xkj(this)),_.wE(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
TL.prototype.resolve=function(){this.cancel()};
TL.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.");Bnf(this)};
TL.prototype.onVisibilityChange_=function(){var v=this;_.v5(_.zf3)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){v.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||UkY(this,xkj(this))};
var vY5=function(v,Q,V,E,b){Q&&(Q==null?0:Q.videoId)&&V&&V.entries&&_.Y("kevlar_enable_shorts_prefetch_in_sequence")&&(uEd(v),Q=V.entries.map(function(F){var t;return(t=_.y(F.command,_.PH))==null?void 0:t.videoId}).indexOf(Q.videoId),V=V.entries[Q+1],V!=null&&V.command&&!_.y(V==null?void 0:V.command,_.EO)&&(E=new J6Y([V.command],new Dks(E,_.XT,1),null,"shorts",!1),v.pendingPrefetchJob_=new TL(new zKh(E.autonavEndpoints),function(){return!1},E,new kZ(b)),v.pendingPrefetchJob_.enqueue()))},QHn=function(v,
Q,V,E,b,F){var t=_.fH.getInstance();
if(!_.Y("block_all_player_prefetch_requests")){uEd(v);var p=!!V.getPlaylistId(),Z=V.getVideoData().isLive&&V.getVideoData().hasProgressBarBoundaries;if((t.getState()==2||p||Z)&&(!V.getVideoData().isLive||Z)){t={inPlaylist:p,videoDuration:V.getDuration(),makeUpNextTrigger:function(w){return new slf(V,_.XT,w)},
makePlaybackTrigger:function(w){return new Dks(V,_.XT,w)}};
var d=Nn7(Q,t);d&&(v.pendingPrefetchJob_=new TL(d.isInPlaylist?new SMI(b):new zKh(d.autonavEndpoints),function(w,A){A=new lu0(MN$[d.pageType].pageFragments,MN$[d.pageType].prefetchedFragments,A);return _.ThS(A)?(v.prefetchCache_.set(w,A),!0):!1},d,new AO(E,V,F,b)),v.pendingPrefetchJob_.enqueue())}}},Vyq=function(){var v=_.hQ();
v.signals.parkOrScheduleJob(function(){var Q=v.storage;if(Q.storage)if(Tn$(Q)){var V=Q.getPlaylistId();Q=YMh(Q);V=!!V&&Q!==void 0}else Q.clear(),V=!1;else V=!1;if(V){V=v.JSC$13161_pageManager.isOnWatch();a:{var E=v.storage;if(E.storage&&Tn$(E)&&(Q=E.getPlaylistId(),E=YMh(E),Q&&E!==void 0)){V={recoverPlaylistCommand:{listId:Q,index:E,openMiniplayer:!V,openListPanel:V,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}V=void 0}V&&_.uN(v.JSC$13161_actionRouter,[V],null)}},0,"ma")},EY0=function(v,Q,V,
E,b,F){var t=_.Vw(7111);
_.za(v.JSC$18672_screenManager,t,F?_.dE(F):void 0);_.N_(v.JSC$18672_screenManager,t,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:E,offlineId:Q,offlineabilityFormatType:V,isDefaultFormatType:b==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:b}})},bBh=function(v,Q,V,E,b){var F,t,p,Z,d;
return _.e(function(w){if(w.nextAddress==1)return w.yield(v.JSC$18672_playerApiPromise,2);F=w.yieldResult;EY0(v,Q,V,"OFFLINE_OBJECT_TYPE_PLAYLIST",E,b);if(p=_.zlV[v.entityTypeMap.listEntityType])d={},t=(d[p]={maximumDownloadQuality:(Z=V)!=null?Z:void 0},d);return w.yield(F.queueOfflineAction(Q,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",t),0)})},FK8=function(v,Q){var V,E,b,F;
return _.e(function(t){if(t.nextAddress==1)return t.yield(v.JSC$18672_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3){V=t.yieldResult;if(!V)return _.Iy(new _.xd("PES is undefined")),t.return();E=_.b3(Q,"downloadStatusEntity");return t.yield(kZ5(V,E,"downloadStatusEntity"),3)}b=t.yieldResult;return t.return((F=b)==null?void 0:F.downloadState)})},KKj=function(v,Q,V,E,b){var F,t,p,Z,d,w;
return _.e(function(A){switch(A.nextAddress){case 1:return A.yield(v.JSC$18672_playerApiPromise,2);case 2:F=A.yieldResult;EY0(v,Q,V,"OFFLINE_OBJECT_TYPE_VIDEO",E,b);if(p=_.zlV[v.entityTypeMap.singleEntityType])d={},t=(d[p]={maximumDownloadQuality:(Z=V)!=null?Z:void 0},d);return A.yield(FK8(v,Q),3);case 3:w=A.yieldResult;if(w!=="DOWNLOAD_STATE_USER_DELETED"){A.jumpTo(4);break}return A.yield(v.deleteVideo(Q),4);case 4:return A.yield(F.queueOfflineAction(Q,v.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
t),0)}})},iBI=function(v,Q,V,E,b){return _.e(function(F){return F.nextAddress==1?F.yield(v.deleteVideo(Q,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):F.yield(KKj(v,Q,V,E,b),0)})},LKq=function(v,Q,V){var E,b;
return _.e(function(F){if(F.nextAddress==1)return F.yield(v.JSC$18672_playerApiPromise,2);E=F.yieldResult;b=_.b3(Q,"mainVideoDownloadStateEntity");return F.yield(E.updateDownloadState(b,V),0)})},Iyd=function(v){var Q=_.ht().resolve(_.Fm);
return _.e(function(V){if(V.nextAddress==1)return Q.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&Q.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?V.jumpTo(2):V.yield(Q.resumeVideoDownload(v),2);if(V.nextAddress!=4)return V.yield(LKq(Q,v,Q.previousDownloadStateForVideo[v]),4);delete Q.previousDownloadStateForVideo[v];_.q1(V)})},rZn=function(v,Q){var V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18672_playerApiPromise,2);V=E.yieldResult;return E.yield(V.queueOfflineAction(Q,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},o$q=function(){var v=_.ht().resolve(_.Fm),Q,V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18672_playerApiPromise,2);if(E.nextAddress!=3)return Q=E.yieldResult,V={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},E.yield(Q.queueOfflineAction("!*$_ALL_ENTITIES_!*$",v.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",V),3);var b=v.JSC$18672_commandHandler,F=b.resolveCommand,t=_.Lt("DELETING_ALL",void 0,"Downloads are being deleted");F.call(b,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.I$(t)}},
popupType:"TOAST"}});_.q1(E)})},tyf=function(v,Q){var V,E,b,F,t,p;
return _.e(function(Z){if(Z.nextAddress==1)return Z.yield(v.JSC$18672_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return V=Z.yieldResult,V?Z.yield(kZ5(V,_.Yz,"downloadsPageViewConfigurationEntity"),3):(_.Iy(new _.xd("PES is undefined")),Z.return());b=(E=Z.yieldResult)!=null?E:{};p=(t=(F=b)==null?void 0:F.downloadsUpsellBannerVisibility)!=null?t:{};return p.visibleWithConnection?Z.yield(Q.refreshAllStaleEntities(0),0):Z.jumpTo(0)})},pL5=function(v){var Q,V;
return _.e(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18672_prefStorage,2);Q=E.yieldResult;return E.return((V=Q)==null?void 0:V.get("sdois"))})},e_d=function(v){var Q,V,E,b,F,t;
return _.e(function(p){if(p.nextAddress==1)return p.yield(v.JSC$18672_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3){Q=p.yieldResult;if(!Q)return _.Iy(new _.xd("PES is undefined")),p.return();V=_.b3("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return p.yield(kZ5(Q,V,"settingEntity"),3)}E=p.yieldResult;return p.return((t=(b=E)==null?void 0:(F=b.settingOptionValue)==null?void 0:F.boolValue)!=null?t:!1)})},ZB5=function(v,Q){var V,E,b,F;
return _.e(function(t){switch(t.nextAddress){case 1:return((V=Q)==null?void 0:V.formatType)===void 0?t.return():t.yield(v.JSC$18672_prefStorage,2);case 2:E=t.yieldResult;if(E===void 0)return t.return();if(((b=Q)==null?void 0:b.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return t.yield(E.set("lmqf",Q.formatType),8);if(((F=Q)==null?void 0:F.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){t.jumpTo(0);break}return t.yield(E.set("lmqf",Q.formatType),6);case 6:return t.yield(E.set("lmqflst",
Math.floor((0,_.wO)())),0);case 8:return t.yield(E.remove("lmqflst"),0)}})},PNq=function(v){var Q,V;
return _.e(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$18672_prefStorage,2);case 2:Q=E.yieldResult;if(!Q){E.jumpTo(3);break}return E.yield(Q.get("lmqflst"),4);case 4:if(V=E.yieldResult,V!==void 0)return E.return(V);case 3:return E.return(0)}})},d7h=function(v){var Q,V,E;
return _.e(function(b){return b.nextAddress==1?b.yield(v.JSC$18672_prefStorage,2):b.nextAddress!=3?(Q=b.yieldResult,b.yield((V=Q)==null?void 0:V.get("ldtmes"),3)):b.return((E=b.yieldResult)!=null?E:!1)})},PcY=function(){var v=_.ht().resolve(_.Fm),Q;
return _.e(function(V){if(V.nextAddress==1)return V.yield(v.JSC$18672_prefStorage,2);Q=V.yieldResult;return Q===void 0?V.return():V.yield(Q.set("ldtmes",!0),0)})},h_h=function(v){var Q,V;
return _.e(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$18672_prefStorage,2);case 2:Q=E.yieldResult;if(Q===void 0){E.jumpTo(3);break}return E.yield(Q.get("lmqf"),4);case 4:if(V=E.yieldResult,V!==void 0)return E.return(V);case 3:return E.return("SD")}})},bv5=function(v,Q,V){var E,b,F,t,p,Z,d,w;
_.e(function(A){switch(A.nextAddress){case 1:return A.yield(ZB5(v,(E=Q)==null?void 0:E.actionParams),2);case 2:b=Q.playlistId;if(!b)return A.return();if(Q.action==="ACTION_ADD")return((t=Q.actionParams)==null?0:t.formatType)?A.yield(bBh(v,b,Q.actionParams.formatType,(w=Q.actionParams)==null?void 0:w.settingsAction,V),0):A.yield(v.offlineWebClientEligibility,14);if(Q.action==="ACTION_REMOVE_WITH_PROMPT"){var k=v.JSC$18672_commandHandler,T=k.resolveCommand,c=_.r7("INNERTUBE_CLIENT_NAME");var C=c===
"WEB_REMIX"?_.Lt("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Lt("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var R=c==="WEB_REMIX"?[_.Lt("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];c=c==="WEB_REMIX"?_.Lt("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Lt("DELETE",void 0,"Delete");var l=_.Lt("CANCEL",void 0,"Cancel");C=Ufs(C,R,c,l,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:b});T.call(k,{openPopupAction:C});return A.return()}if(Q.action===
"ACTION_REMOVE")return A.yield(rZn(v,b),0);if(Q.action!=="ACTION_SYNC"){A.jumpTo(0);break}return A.yield(v.JSC$18672_playerApiPromise,9);case 9:return F=A.yieldResult,A.yield(F.queueOfflineAction(b,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return p=A.yieldResult,A.yield(h_h(v),15);case 15:return Z=A.yieldResult,A.yield(PNq(v),16);case 16:d=A.yieldResult,Q.onAddCommand&&v.JSC$18672_commandHandler.resolveCommand(Q.onAddCommand,{form:{preferredFormatType:Z,
offlineWebClientEligibility:p,lastOfflineQualitySettingsSavedMs:d.toString()}}),A.jumpTo(0)}})},VDm=function(v,Q,V){var E,b,F,t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g,u,r;
_.e(function(v9){switch(v9.nextAddress){case 1:return v9.yield(ZB5(v,(E=Q)==null?void 0:E.actionParams),2);case 2:b=Q.videoId;if(!b)return v9.return();if(Q.action==="ACTION_REMOVE_WITH_PROMPT"){var t3=v.JSC$18672_commandHandler,h3=t3.resolveCommand,OB=_.r7("INNERTUBE_CLIENT_NAME");var kQ=OB==="WEB_REMIX"?_.Lt("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Lt("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var yo=OB==="WEB_REMIX"?[_.Lt("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];OB=OB==="WEB_REMIX"?_.Lt("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Lt("DELETE",void 0,"Delete");var xQ=_.Lt("CANCEL",void 0,"Cancel");kQ=Ufs(kQ,yo,OB,xQ,{signal:"DELETE_DOWNLOAD",targetId:b});h3.call(t3,{openPopupAction:kQ});return v9.return()}if(Q.action==="ACTION_ADD")return((S=Q.actionParams)==null?0:S.formatType)?v9.yield(KKj(v,b,Q.actionParams.formatType,(r=Q.actionParams)==null?void 0:r.settingsAction,V),0):v9.yield(v.offlineWebClientEligibility,
28);if(Q.action==="ACTION_RETRY")return v9.yield(h_h(v),24);if(Q.action==="ACTION_PAUSE")return v9.yield(v.pauseVideoDownload(b),0);if(Q.action==="ACTION_RESUME")return v9.yield(v.resumeVideoDownload(b),0);if(Q.action==="ACTION_REMOVE")return v9.yield(FK8(v,b),18);if(!_.Y("kevlar_enable_download_to_mobile")){v9.jumpTo(0);break}F=_.y(Q.onAddCommand,_.uP);p=(t=F)==null?void 0:t.isCrossDeviceDownload;if(!Q.onAddCommand||!p){v9.jumpTo(0);break}Z="HD";return v9.yield(PNq(v),16);case 16:return d=v9.yieldResult,
v9.yield(d7h(v),17);case 17:w=v9.yieldResult;v.JSC$18672_commandHandler.resolveCommand(Q.onAddCommand,{form:{preferredFormatType:Z,lastOfflineQualitySettingsSavedMs:d.toString(),downloadToMobileEduShown:w}});v9.jumpTo(0);break;case 18:return A=v9.yieldResult,v.previousDownloadStateForVideo[b]=(k=A)!=null?k:"DOWNLOAD_STATE_UNKNOWN",v9.yield(LKq(v,b,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(v.previousDownloadStateForVideo[b]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&v.previousDownloadStateForVideo[b]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){v9.jumpTo(20);break}return v9.yield(v.pauseVideoDownload(b),20);case 20:t3=_.Lt("DELETED_VIDEO",void 0,"Video deleted from downloads.");h3=_.Lt("UNDO_ACTION",void 0,"Undo");kQ=_.Lt("CLOSE",void 0,"Close");T={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.I$(t3),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.I$(h3),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:b}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:t3+" "+h3}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:b}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:kQ}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};v.JSC$18672_commandHandler.resolveCommand(T);
v9.jumpTo(0);break;case 24:c=v9.yieldResult;c==="UNKNOWN_FORMAT_TYPE"&&(c="SD");C="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((R=Q.actionParams)==null?0:R.formatType)c=Q.actionParams.formatType,C=(l=Q.actionParams)==null?void 0:l.settingsAction;return v9.yield(iBI(v,b,c,C,V),25);case 25:return v9.return();case 28:return a=v9.yieldResult,v9.yield(h_h(v),29);case 29:return g=v9.yieldResult,v9.yield(PNq(v),30);case 30:u=v9.yieldResult,Q.onAddCommand&&v.JSC$18672_commandHandler.resolveCommand(Q.onAddCommand,
{form:{preferredFormatType:g,offlineWebClientEligibility:a,lastOfflineQualitySettingsSavedMs:u.toString()}}),v9.jumpTo(0)}})},wLq=function(v,Q){var V,E,b,F,t,p,Z;
return _.e(function(d){if(d.nextAddress==1)return d.yield(v.JSC$18672_persistentStorePromiseAccessor(),2);V=d.yieldResult;if(!V)return _.Iy(new _.xd("PES is undefined")),d.return();if((E=Q)==null||!E.settingItemId)return d.return();b=Q;F=b.settingItemId;t=b.boolValue;p=_.b3(F,"settingEntity");Z={key:p,settingOptionValue:{boolValue:t}};return d.yield(A65(V,Z),0)})},AfI=function(v,Q){var V,E,b,F,t,p,Z;
return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(v.JSC$18672_prefStorage,2);case 2:return V=d.yieldResult,E=_.eP(),d.yield(v.JSC$18672_persistentStorePromiseAccessor(),3);case 3:return b=d.yieldResult,V?b?d.yield(V.get("sdois"),4):(_.Iy(new _.xd("PES is undefined")),d.return()):(_.Iy(new _.xd("prefStorage is undefined")),d.return());case 4:F=d.yieldResult;p=(t=Q)==null?void 0:t.boolValue;p===void 0||_.Y("kevlar_set_sd_enabled_flag_killswitch")||_.ZG(0,197,!0);F===void 0&&p===void 0&&
(p=!1);if(p===void 0){d.jumpTo(0);break}return d.yield(V.set("sdois",p),6);case 6:return _.Y("kevlar_set_sd_enabled_flag_killswitch")||(_.ZG(0,196,p),E.save()),Z={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:p},d.yield(wLq(v,Z),0)}})},kp$=function(v,Q,V){var E,b,F,t,p;
return _.e(function(Z){switch(Z.nextAddress){case 1:return Z.yield(pL5(v),2);case 2:return E=Z.yieldResult,Z.yield(AfI(v,V),3);case 3:return Z.yield(pL5(v),4);case 4:return b=Z.yieldResult,F=b!==E,Z.yield(e_d(v),5);case 5:t=Z.yieldResult&&!_.Y("kevlar_modern_downloads_page");if((p=!b&&!t)||F)return Z.yield(Q.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);Z.jumpTo(0)}})},mcY=function(){var v=_.ht().resolve(_.Fm),
Q;
_.e(function(V){switch(V.nextAddress){case 1:return V.yield(v.JSC$18672_playerApiPromise,2);case 2:Q=V.yieldResult;if(!_.Y("kevlar_force_refresh_smart_downloads")){V.jumpTo(3);break}return V.yield(Q.refreshAllStaleEntities(0),4);case 4:return V.return();case 3:return V.yield(Q.refreshAllStaleEntities(),5);case 5:return V.yield(kp$(v,Q),6);case 6:if(_.Y("enable_download_pep_for_premium_countries_web"))return V.yield(tyf(v,Q),0);V.jumpTo(0)}})},K_f=function(v,Q){var V,E;
_.e(function(b){switch(b.nextAddress){case 1:return b.yield(v.JSC$18672_playerApiPromise,2);case 2:V=b.yieldResult;switch((E=Q)==null?void 0:E.settingItemId){case "SMART_DOWNLOADS_ENABLED":return b.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return b.jumpTo(4)}b.jumpTo(0);break;case 3:return b.yield(kp$(v,V,Q),6);case 6:b.jumpTo(0);break;case 4:return b.yield(wLq(v,Q),7);case 7:b.jumpTo(0)}})},Teh=function(v,Q){var V,E,b;
return _.e(function(F){if(F.nextAddress==1)return F.yield(v.JSC$18672_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3){V=F.yieldResult;if(!V)return _.Iy(new _.xd("PES is undefined")),F.return(!1);if(!Q)return F.return(!1);E=_.b3(Q,"mainVideoEntity");return F.yield(kZ5(V,E,"mainVideoEntity"),3)}b=F.yieldResult;return F.return(b!==void 0)})},L_$=function(v){var Q=_.ht().resolve(_.Fm),V,E,b,F,t,p,Z,d,w,A,k;
_.e(function(T){switch(T.nextAddress){case 1:return T.yield(Q.JSC$18672_playerApiPromise,2);case 2:V=T.yieldResult;b=(E=v)==null?void 0:E.actions;if(!b)return T.return();F=_.L(b);t=F.next();case 3:if(t.done){T.jumpTo(0);break}p=t.value;d=Z=void 0;if(!(((Z=p)==null?0:Z.entityKey)&&((d=p)==null?0:d.actionType))){T.jumpTo(4);break}w=_.Q_(p.entityKey);A=w.entityId;k=w.entityType;return T.yield(V.queueOfflineAction(A,k,p.actionType),4);case 4:t=F.next(),T.jumpTo(3)}})},YCd=function(v,Q){var V,E,b,F,t;
return _.e(function(p){if(p.nextAddress==1)return p.yield(v.JSC$18672_prefStorage,2);if(p.nextAddress!=3)return(V=p.yieldResult)?p.yield(V.get("psi"),3):p.return();E=p.yieldResult;t={isPaused:Q,lastSyncTimestamp:(F=(b=E)==null?void 0:b.lastSyncTimestamp)!=null?F:"0"};return p.yield(V.set("psi",t),0)})},evj=function(v){var Q=_.ht().resolve(_.Fm),V,E,b,F,t,p,Z,d;
return _.e(function(w){switch(w.nextAddress){case 1:return w.yield(Q.JSC$18672_playerApiPromise,2);case 2:V=w.yieldResult;b=((E=v)==null?void 0:E.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((p=v)==null?void 0:p.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":F="!*$_ALL_ENTITIES_!*$";t="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return w.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return w.jumpTo(4)}w.jumpTo(5);break;case 3:return w.yield(YCd(Q,b),6);case 6:w.jumpTo(5);break;case 4:return w.yield(Teh(Q,(Z=v)==null?void 0:Z.videoId),7);case 7:w.yieldResult&&(F=(d=v)==null?void 0:d.videoId,t="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");w.jumpTo(5);break;case 5:if(F&&t)return w.yield(V.queueOfflineAction(F,"videoPlaybackPositionEntity",t),0);w.jumpTo(0)}})},yfj=function(v,Q){var V;
Q!==1||((V=v.currentPersistentToast)==null?0:V.isOpened())?v.openToast():v.currentPersistentToast=void 0},cf8=function(v,Q){var V;
return(V=v.transitionTasksMap.get(Q))!=null?V:[]},fIj=function(v,Q){var V=[];
v.elementTasksMap.forEach(function(E){(E=E.get(Q))&&V.push(E)});
return V},Gph=function(v,Q,V,E,b){b=b===void 0?{}:b;
var F=Q.defaultViewTransitionOptions;return Object.assign({},F,b,{beforeTransition:function(){E.forEach(function(d){d.beforeTransition()});
var t;(t=F.beforeTransition)==null||t.call(F);var p,Z;(Z=(p=b).beforeTransition)==null||Z.call(p);V.forEach(function(d){d.beforeTransition()})},
afterTransition:function(){E.forEach(function(d){d.afterTransition()});
var t;(t=F.afterTransition)==null||t.call(F);var p,Z;(Z=(p=b).afterTransition)==null||Z.call(p);V.forEach(function(d){d.afterTransition()})},
ignoredErrors:v.config.ignoredErrors})},CNh=function(v,Q,V){v.transitionTasksMap.has(Q)?v.transitionTasksMap.get(Q).push(V):(v=new _.xd("Transition task registered for unknown transition type",Q),_.ro(v))},Myh=function(v,Q,V){if(v.transitionTasksMap.has(Q)){var E=v.transitionTasksMap.get(Q).filter(function(b){return b!==V});
v.transitionTasksMap.set(Q,E)}},OBm=function(v,Q){var V=cf8(v,Q);
V=_.L(V);for(var E=V.next();!E.done;E=V.next())E=E.value,E.runOnce&&Myh(v,Q,E);v.elementTasksMap.forEach(function(b,F){b.forEach(function(t,p){t.runOnce&&Q===p&&(b.delete(p),b.size===0&&v.elementTasksMap.delete(F))})})},D7$=function(v,Q,V){var E,b,F,t,p,Z,d,w,A;
_.e(function(k){if(k.nextAddress==1){if(v.config.disableAllTransitions)return k.return(Q());if((E=V)==null||!E.transitionType)return k.return(_.nNf(Q,Object.assign({},(b=V)==null?void 0:b.viewTransitionOptions,{ignoredErrors:v.config.ignoredErrors})));F=V;t=F.transitionType;p=F.viewTransitionOptions;Z=v.config.transitionConfigs.get(t);if(!Z)return k.return(Q());d=cf8(v,t);w=fIj(v,t);A=_.nNf(Q,Gph(v,Z,d,w,p));return k.yield(A,2)}OBm(v,t);_.q1(k)})},R_m=function(){var v,Q,V,E;
return _.e(function(b){if(b.nextAddress==1)return v=navigator,(Q=v.storage)!=null&&Q.persisted?b.yield((V=v.storage)==null?void 0:V.persisted(),2):b.return("PERSISTED_STATE_NOT_SUPPORTED");E=b.yieldResult;return b.return(E?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},nY8=function(){var v,Q,V,E;
return _.e(function(b){if(b.nextAddress==1)return v=navigator,(Q=v.storage)!=null&&Q.persist?b.yield((V=v.storage)==null?void 0:V.persist(),2):b.return("PERSISTED_STATE_NOT_SUPPORTED");E=b.yieldResult;return b.return(E?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},lIh=function(){var v,Q;
return _.e(function(V){switch(V.nextAddress){case 1:return v="PERSISTED_STATE_NOT_SUPPORTED",_.GC(V,2),V.yield(R_m(),4);case 4:v=V.yieldResult;if(v!=="PERSISTED_STATE_NOT_GRANTED"){V.jumpTo(5);break}return V.yield(nY8(),6);case 6:v=V.yieldResult;case 5:_.FT(V,3);break;case 2:Q=_.n$(V),Q instanceof Error&&_.ro(Q);case 3:return _.X0("persistentStorageStateChecked",{persistedState:v}),V.return(v)}})},qCY=function(v,Q){var V=[],E=!1;
Q=_.L(Q);for(var b=Q.next();!b.done;b=Q.next()){b=v.moduleRegistry[b.value];var F=void 0,t=void 0;((F=b)==null?0:F.isFetching)&&((t=b)==null?0:t.resolver)?(V.push(b.resolver.promise),E=!0):(b=new _.bK,b.resolve(void 0),V.push(b.promise))}return E?Promise.all(V):void 0},SCq=function(v,Q,V){if(v.isAnyTransitionEnabled){var E={beforeTransition:function(){V(!0);
Q.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){Q.style.viewTransitionName&&(Q.style.viewTransitionName="",V(!1))}};
CNh(v.viewTransitionCoordinator,"slide",E);CNh(v.viewTransitionCoordinator,"lockup-to-watch",E);CNh(v.viewTransitionCoordinator,"watch-next-appears",E);CNh(v.viewTransitionCoordinator,"learning-journey",E)}},z_j=function(v,Q){v.isBrowseTransitionEnabled?D7$(v.viewTransitionCoordinator,Q,{transitionType:"slide"}):(Q(),Promise.resolve())},Jfh=function(v,Q){v.isLockupToWatchTransitionEnabled?D7$(v.viewTransitionCoordinator,Q,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){v.registeredLockupThumbnail=void 0;v.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(Q(),Promise.resolve())},Nef=function(v,Q){v.isLockupToWatchTransitionEnabled?D7$(v.viewTransitionCoordinator,Q,{transitionType:"watch-next-appears"}):(Q(),Promise.resolve())},x7j=function(v,Q){v.isLearningJourneyTransitionEnabled?D7$(v.viewTransitionCoordinator,Q,{transitionType:"learning-journey"}):(Q(),Promise.resolve())},BeI=function(v,Q,V){if(v.isInitialized()){var E=
Tb(V),b=E==="watch";
E=E==="shorts";var F=Tb(Q)==="watch";if(b)F||(v.backgroundPageData=Q),v.watchPipMode&&F||v.deactivate(V.endpoint);else if(E){if(Tb(Q)!=="shorts"){var t;(t=v.getPlayerElement())==null||t.pause()}}else F&&!v.watchPipMode&&(vD0(Q,V,!0)?(v.watchWhileMode&&_.wxs(v,!1),_.px$(v,Q)):v.isMiniplayerActive()&&v.watchWhileMode&&v.deactivate());F&&_.kvm(v);v.shortsPipMode&&!E&&(window.focus(),v.deactivate());if(v.pictureInPictureEnabled())if(E&&v.shortsPipEnabled||b&&v.watchPipEnabled)_.Mdo(v.handleMediaSessionPipActivation);
else if(!v.isMiniplayerActive()&&(v.shortsPipEnabled||v.watchPipEnabled)&&window.documentPictureInPicture&&_.Rh()&&_.c3r("Chromium")>=120){v=_.CG0().mediaSession;try{v.setActionHandler("enterpictureinpicture",null)}catch(p){}}}},gYs=function(v,Q){var V,E;
_.e(function(b){if(b.nextAddress==1){if(!v||!v.navigationEndpoint)return b.return();_.u9().lockupActivation=!0;var F;Q?F=_.u3(_.Lt("QUEUE",void 0,"Queue")):F=v.longBylineText;E=(V=F)&&v.title?{miniplayerTitle:v.title,miniplayerSubtitle:V,playlistData:null}:void 0;return b.yield(_.XQx(_.ht().resolve(_.lJ),v.navigationEndpoint,!0,E),2)}_.u9().userActivation=!0;_.q1(b)})},yIY=function(v,Q){var V,E,b,F,t,p;
_.e(function(Z){if(Z.nextAddress==1){V=_.y(Q,_.XVX);if(!V||!V.listId)return Z.return();v.index=V.index||v.index||0;E=v.response&&v.response.playingVideoId||void 0;return Z.yield(_.Poa(v.JSC$13161_playlistNetworkManager,V.listId,v.index,E),2)}b=Z.yieldResult;if(!b)return Z.return();F=b.playlistId;t=b.playlistPanelRenderer;!v.queueProxy&&F&&t&&F.startsWith("TLPQ")&&(v.queueProxy=new _.ig(v.JSC$13161_playlistNetworkManager,F,v.setPlaylistData.bind(v),v.clearQueue.bind(v),_.UDQ(t),v.storage));if(V.openMiniplayer&&
(p=_.vH0(t))&&!v.JSC$13161_pageManager.isOnWatch()){var d=p,w=V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";v.isMiniplayerActive()?v.openToast(d):gYs(d,w)}v.setPlaylistData(F,t,b.autoplayRenderer);_.q1(Z)})},ks$=function(v,Q){var V=_.hQ();
V.index===void 0&&(V.index=0);V.temporaryItems.push.apply(V.temporaryItems,_.ui(v));if((Q.videoId||Q.videoIds)&&V.index!==void 0&&Q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!V.queueProxy){var E=[];if(V.response){var b=_.ht().resolve(_.lJ).isMiniplayerActive();if(V.response.playlistPanelRenderer&&V.response.playlistId&&!V.response.playlistId.startsWith("TLPQ")){if(V.JSC$13161_pageManager.isOnWatch()||b)E=_.UDQ(V.response.playlistPanelRenderer)}else V.response.playingVideoId&&!Q.openMiniplayer?
E.push(V.response.playingVideoId):b&&V.response.playingVideoId&&Q.openMiniplayer&&E.push(V.response.playingVideoId)}V.queueProxy=new _.ig(V.JSC$13161_playlistNetworkManager,"",V.setPlaylistData.bind(V),V.clearQueue.bind(V),E,V.storage);V.queueProxy.JSC$13107_setCurrentIndex(V.index)}V.queueProxy.addVideos(Q.videoIds||[Q.videoId],Q)}y6s(V,v);V.response&&_.ww(V,_.AQ(V,V.response.autoplayRenderer));V.JSC$13161_pageManager.isOnWatch()?V.isMiniplayerActive()&&V.openToast(v[0]):(v=v[0],Q=Q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
V.isMiniplayerActive()?V.openToast(v):gYs(v,Q))},sHn=function(v){var Q=_.UR(v);
if(Q=="object"||Q=="array"){if(typeof v.clone==="function")return v.clone();if(typeof Map!=="undefined"&&v instanceof Map)return new Map(v);if(typeof Set!=="undefined"&&v instanceof Set)return new Set(v);Q=Q=="array"?[]:{};for(var V in v)Q[V]=sHn(v[V]);return Q}return v},YZ=function(v,Q){return _.kqT(_.em(v,Q,void 0,_.pN))},yD=function(v,Q){return _.t7(_.em(v,Q,void 0,_.pN))},cK=function(v,Q){return _.NVt(_.em(v,Q,void 0,_.pN))},fX=function(v,Q){return _.em(v,Q,void 0,_.pN,_.HN)},uGh=_.ec(function(v,
Q,V,E){if(v.nextWireType_!==0)return!1;
_.hI(Q,V,E,_.lq(v.decoder_,_.wNQ));return!0},_.kP,_.Nq),jH7=_.ec(function(v,Q,V){if(v.nextWireType_!==1)return!1;
var E=v.decoder_;v=_.Sm(E);E=_.Sm(E);v=_.ux(v,E);_.Z5(Q,V,v);return!0},_.xjo,_.LIN),WKd=_.ec(function(v,Q,V){if(v.nextWireType_!==2)return!1;
v=_.XNS(v);_.Z5(Q,V,v===_.nZ()?void 0:v);return!0},_.jEE,_.emA),oYm=_.DjQ(function(v,Q,V){if(v.nextWireType_!==0&&v.nextWireType_!==2)return!1;
Q=_.Qn(Q,Q[_.bx]|0,V);v.nextWireType_==2?_.aXN(v,UV8,Q):Q.push(_.qq(v.decoder_));return!0},function(v,Q,V){Q=_.OfE(_.t7,Q,!0);
if(Q!=null&&Q.length){V=_.UZN(v,V);for(var E=0;E<Q.length;E++)_.zbG(v.encoder_,Q[E]);_.vfZ(v,V)}},_.Zja),XLI=_.ec(function(v,Q,V,E){if(v.nextWireType_!==0)return!1;
_.hI(Q,V,E,_.qq(v.decoder_));return!0},_.oPo,_.Zja),aIs=function(v){return v.previousElementSibling!==void 0?v.previousElementSibling:_.fTZ(v.previousSibling,!1)},rfh=function(v,Q){var V=[];
for(Q=Q||0;Q<v.length;Q+=2)_.ZgQ(v[Q],v[Q+1],V);return V.join("&")},$7$=function(v,Q){var V=arguments.length==2?rfh(arguments[1],0):rfh(arguments,1);
return _.eIZ(v,V)},qu5=_.Gd(_.Cr),IIh=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(IIh,_.Lf);IIh.prototype.getTypeName=function(){return _.fN(this,1).split("/").pop()};
IIh.prototype.getValue=function(){var v=_.em(this,2);if(Array.isArray(v)||v instanceof _.Lf)throw Error("W");return _.dB(this,2)};
var cxm=function(){var v=_.vH();this.JSC$9997_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.kJ("channel_type"))};
cxm.prototype.increment=function(v){this.JSC$9997_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",v)};
var fv7=function(){var v=_.vH();this.JSC$10000_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.kJ("channel_type"))};
fv7.prototype.increment=function(v){this.JSC$10000_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",v)};
var CAh=function(){var v=_.vH();this.JSC$10003_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.kJ("channel_type"))};
CAh.prototype.increment=function(v){this.JSC$10003_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",v)};
var Gzn=function(){var v=_.vH();this.JSC$10006_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Gzn.prototype.increment=function(){this.JSC$10006_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Mi$=function(){var v=_.vH();this.JSC$10009_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.kJ("channel_type"),_.kJ("error_type"))};
Mi$.prototype.increment=function(v,Q){this.JSC$10009_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",v,Q)};
var Orh=function(){var v=_.vH();this.JSC$10012_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Orh.prototype.increment=function(){this.JSC$10012_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var DMY=function(){var v=_.vH();this.JSC$10015_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
DMY.prototype.increment=function(){this.JSC$10015_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var qEh=function(){var v=_.vH();this.JSC$10021_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
qEh.prototype.increment=function(){this.JSC$10021_streamzService.JSC$9867_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var HBd=function(v){return v.getCount&&typeof v.getCount=="function"?v.getCount():_.W9(v)||typeof v==="string"?v.length:_.gI.getCount(v)},m78=function(v,Q){if(typeof v.every=="function")return v.every(Q,void 0);
if(_.W9(v)||typeof v==="string")return Array.prototype.every.call(v,Q,void 0);for(var V=_.ZpZ(v),E=_.bz(v),b=E.length,F=0;F<b;F++)if(!Q.call(void 0,E[F],V&&V[F],v))return!1;return!0},U7I=function(v,Q,V,E){var b=new _.uY(null);
v&&_.FE(b,v);Q&&_.KM(b,Q);V&&_.iz(b,V);E&&_.LM(b,E);return b},v5$=function(){var v=_.mF&&_.wG(_.MuN,10)>=0,Q;
if(Q=_.Umx)Q=_.wG(_.CuR,10)>=0;var V=_.KN&&_.wG(_.MuN,85)>=0;return _.V2||v||Q||V},Q4Y=function(v){var Q=_.X4N(v);
return Q&&v5$()?-v.scrollLeft:Q&&_.ID(v,"overflowX")!="visible"?v.scrollWidth-v.clientWidth-v.scrollLeft:v.scrollLeft},VOY=function(v,Q){Q=Math.max(Q,0);
_.X4N(v)?v5$()?v.scrollLeft=-Q:v.scrollLeft=v.scrollWidth-Q-v.clientWidth:v.scrollLeft=Q},h1h=0,Yo8=!1;
c1.prototype.set=function(v){this.relativeTimeStart_=v};
c1.prototype.reset=function(){this.set(_.IC())};
c1.prototype.get=function(){return this.relativeTimeStart_};
var E5q=null,bYY=function(){E5q||(E5q=new c1)},Fvh=function(){E5q||(E5q=new c1)};
_.HZ(Fvh,bYY);_.K=cRh.prototype;_.K.JSC$11432_buffer_="";_.K.set=function(v){this.JSC$11432_buffer_=""+v};
_.K.append=function(v,Q,V){this.JSC$11432_buffer_+=String(v);if(Q!=null)for(var E=1;E<arguments.length;E++)this.JSC$11432_buffer_+=arguments[E];return this};
_.K.clear=function(){this.JSC$11432_buffer_=""};
_.K.getLength=function(){return this.JSC$11432_buffer_.length};
_.K.toString=function(){return this.JSC$11432_buffer_};
var Kvh=!1,R1s=function(v){_.Vo.call(this,v.message||v.description||v.name);this.isMissing=v instanceof fe;this.isTimeout=v instanceof _.E6&&v.errorCode=="net.timeout";this.isCanceled=v instanceof _.lA};
_.f(R1s,_.Vo);R1s.prototype.name="BiscottiError";var fe=function(){_.Vo.call(this,"Biscotti ID is missing from server")};
_.f(fe,_.Vo);fe.prototype.name="BiscottiMissingError";var Gb=null,eLn=function(){try{var v=_.Q9("yt.ads.biscotti.getId_");return v?v():Ldh()}catch(Q){return _.kD(Q)}},iYs=function(v,Q){return _.U2({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:v,command:Q}})},Lvm=function(v){return _.U2({type:"SET_GUIDE_IS_EXPANDED",
payload:v})},tOs=function(v){return _.U2({type:"SET_ONLINE_STATUS",
payload:v})},pVm=function(v,Q){return _.U2({type:"SET_TRANSCRIPTION_STATE",
payload:{high:v,low:Q}})},ewj=function(v){return _.U2({type:"SET_OVERLAY_STATE",
payload:v})},ZY8=0,P8d=function(v,Q,V){var E=this;
this.priority=Q;this.delay=V;this.jobId=0;this.completionCallback=_.c7;this.wrappedJob=function(){v();E.completionCallback()};
this.id=++ZY8};
P8d.prototype.enqueue=function(v){this.completionCallback=v;this.jobId=_.XT.addJob(this.wrappedJob,this.priority,this.delay)};
var GL=function(){_.tf.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.f(GL,_.tf);GL.prototype.addJob=function(v,Q,V){v=new P8d(v,Q,V);this.taskIdToTask.set(v.id,v);this.isActive?d6Y(this,v):this.suspendedTasks.add(v);return v.id};
var d6Y=function(v,Q){v.scheduledTasks.add(Q);Q.enqueue(function(){v.scheduledTasks.delete(Q)})};
GL.prototype.cancelJob=function(v){(v=this.taskIdToTask.get(v))&&(this.scheduledTasks.delete(v)?_.XT.cancelJob(v.jobId):this.suspendedTasks.delete(v))};
GL.prototype.pause=function(){var v=this;this.isActive=!1;this.scheduledTasks.forEach(function(Q){_.XT.cancelJob(Q.jobId);v.suspendedTasks.add(Q)});
this.scheduledTasks.clear()};
GL.prototype.start=function(){var v=this;this.isActive=!0;this.suspendedTasks.forEach(function(Q){d6Y(v,Q)});
this.suspendedTasks.clear()};
GL.prototype.reset=function(){this.scheduledTasks.forEach(function(v){_.XT.cancelJob(v.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var hwd=function(v,Q){this.JSC$13287_networkService_=v;this.pageRequestPromise=Q};
hwd.prototype.fetchData=function(v){wVs(this,this.JSC$13287_networkService_.fetchData(v))};
hwd.prototype.postData=function(v,Q){wVs(this,this.JSC$13287_networkService_.postData(v,Q))};
hwd.prototype.requestDataForServiceEndpoint=function(v,Q){wVs(this,this.JSC$13287_networkService_.requestDataForServiceEndpoint(v,Q))};
var wVs=function(v,Q){Q.then(v.pageRequestPromise.onSuccess,v.pageRequestPromise.onFailure,v.pageRequestPromise)};
hwd.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Acs=function(v){this.buildNetworkRequest_=v;this.pendingRequests_=new Set};
Acs.prototype.reset=function(){this.pendingRequests_.forEach(function(v){v.cancel()});
this.pendingRequests_.clear()};
Acs.prototype.fetchData=function(v){var Q=kjm(this);Q.fetchData(v);return Q.pageRequestPromise};
Acs.prototype.postData=function(v,Q){var V=kjm(this);V.postData(v,Q);return V.pageRequestPromise};
Acs.prototype.requestDataForServiceEndpoint=function(v,Q){var V=kjm(this);V.requestDataForServiceEndpoint(v,Q);return V.pageRequestPromise};
var kjm=function(v){var Q=v.buildNetworkRequest_();v.pendingRequests_.add(Q);var V=function(){v.pendingRequests_.delete(Q)};
Q.pageRequestPromise.then(V,V);return Q},T9d=function(v){var Q=new GL;
this.JSC$13294_networkService_=v;this.JSC$13294_taskManager_=Q;this.JSC$13294_networkManager_=new Acs(this.networkRequestFactory_.bind(this))};
_.K=T9d.prototype;_.K.networkRequestFactory_=function(){return new hwd(this.JSC$13294_networkService_,new _.z6(this.JSC$13294_taskManager_))};
_.K.reset=function(){this.JSC$13294_taskManager_.reset();this.JSC$13294_networkManager_.reset()};
_.K.start=function(){this.JSC$13294_taskManager_.start()};
_.K.pause=function(){this.JSC$13294_taskManager_.pause()};
_.K.getTaskManager=function(){return this.JSC$13294_taskManager_};
_.K.getNetworkManager=function(){return this.JSC$13294_networkManager_};
var sd7=null,Wd7=[],Ce=0,O6=0,MO=null,R6=function(v){this.token=v};
R6.getInstance=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.dO(),2);v=Q.yieldResult;if(!v)return Q.return();R6.instance||(R6.instance=new R6(v));return Q.return(R6.instance)})};
var mQI=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield($Qh(v.token),2);Q=V.yieldResult;return V.return(Q.clear("resource-manifest-assets"))})},DF=function(v){this.token=v};
DF.getInstance=function(){var v;return _.e(function(Q){if(Q.nextAddress==1)return Q.yield(_.dO(),2);v=Q.yieldResult;if(!v)return Q.return();DF.instance||(DF.instance=new DF(v));return Q.return(DF.instance)})};
var IMf=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield($Qh(v.token),2);Q=V.yieldResult;return V.yield(Q.clear("auth"),0)})},Y5s=!1,ne=null,eg0=void 0,YPm=!1,ycf=function(v){_.Vo.call(this,v)};
_.f(ycf,_.s9N);var knY=function(){var v=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return v?parseInt(v[1],10):0},ccs=function(v){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+v)!=-1||document.currentScript.src.indexOf("&"+v)!=-1)},fLm=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},fo7=function(v){v.length?Gj0(v.shift(),function(){fo7(v)}):Y$8()},CJ7=function(v){return"chrome-extension://"+v+"/cast_sender.js"},Gj0=function(v,
Q,V){var E=document.createElement("script");
E.onerror=Q;V&&(E.onload=V);_.L$(E,_.BM(v));(document.head||document.documentElement).appendChild(E)},C8h=function(){var v=knY(),Q=[];
if(v>1){var V=v-1;Q.push("//www.gstatic.com/eureka/clank/"+v+"/cast_sender.js");Q.push("//www.gstatic.com/eureka/clank/"+V+"/cast_sender.js")}return Q},Y$8=function(){var v=fLm();
v&&v(!1,"No cast extension found")},c_s=function(){if(MO$){var v=2,Q=fLm(),V=function(){v--;
v==0&&Q&&Q(!0)};
window.__onGCastApiAvailable=V;Gj0("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Y$8,V)}},T3n=function(){c_s();
var v=C8h();v.push("//www.gstatic.com/eureka/clank/cast_sender.js");fo7(v)},y_Y=function(){c_s();
var v=C8h();v.push.apply(v,_.ui(Gnd.map(CJ7)));v.push("//www.gstatic.com/eureka/clank/cast_sender.js");fo7(v)},MO$=ccs("loadCastFramework")||ccs("loadCastApplicationFramework"),Gnd=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var OY5=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(OY5,_.Lf);var D6h=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(D6h,_.Lf);var Rw$=function(){var v=new D6h;return _.Rq(v,1,3)};var CX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(CX,_.Lf);var tCn=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(tCn,_.Lf);var n55=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(n55,_.Lf);n55.prototype.getToken=function(){return _.fN(this,1)};
n55.prototype.setToken=function(v){return _.NM(this,1,v)};
var i4q=function(v){return _.I8(v,3,_.fj,_.dZ())},LCd=function(v){return _.I8(v,6,_.fj,_.dZ())};var MH=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(MH,_.Lf);MH.prototype.getToken=function(){return _.TY(this,n55,2)};
MH.prototype.setToken=function(v){return _.Mj(this,2,v)};
MH.prototype.getName=function(){return _.fN(this,6)};
var lLn=_.Gd(MH);var q50=function(v,Q,V){this.requestMessage=v;this.methodDescriptor=Q;this.metadata=V};
q50.prototype.getMetadata=function(){return this.metadata};var S5f=function(v,Q){Q=Q===void 0?{}:Q;this.responseMessage=v;this.metadata=Q;this.status=null};
S5f.prototype.getMetadata=function(){return this.metadata};
S5f.prototype.getStatus=function(){return this.status};var Ob=function(v,Q,V,E,b){this.name=v;this.methodType="unary";this.requestType=Q;this.responseType=V;this.requestSerializeFn=E;this.responseDeserializeFn=b},zwm=function(v,Q,V){V=V===void 0?{}:V;
return new q50(Q,v,V)};
Ob.prototype.getName=function(){return this.name};var D$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(D$,_.Lf);D$.prototype.getHeader=function(){return _.TY(this,CX,1)};
D$.prototype.setHeader=function(v){return _.Mj(this,1,v)};
D$.prototype.hasHeader=function(){return _.ZD(this,CX,1)};var Jch=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Jch,_.Lf);var N98=new Ob("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",D$,Jch,function(v){return v.serialize()},_.Gd(Jch));var Rp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Rp,_.Lf);Rp.prototype.getHeader=function(){return _.TY(this,CX,1)};
Rp.prototype.setHeader=function(v){return _.Mj(this,1,v)};
Rp.prototype.hasHeader=function(){return _.ZD(this,CX,1)};var x6d=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(x6d,_.Lf);var B9h=new Ob("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Rp,x6d,function(v){return v.serialize()},_.Gd(x6d));var nX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(nX,_.Lf);nX.prototype.getHeader=function(){return _.TY(this,CX,1)};
nX.prototype.setHeader=function(v){return _.Mj(this,1,v)};
nX.prototype.hasHeader=function(){return _.ZD(this,CX,1)};var g5n=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(g5n,_.Lf);g5n.prototype.getLink=function(){return _.TY(this,MH,1)};var s4j=new Ob("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",nX,g5n,function(v){return v.serialize()},_.Gd(g5n));var lE=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(lE,_.Lf);lE.prototype.getHeader=function(){return _.TY(this,CX,1)};
lE.prototype.setHeader=function(v){return _.Mj(this,1,v)};
lE.prototype.hasHeader=function(){return _.ZD(this,CX,1)};var uB7=new Ob("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",lE,MH,function(v){return v.serialize()},lLn);var j4s=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(j4s,_.Lf);var WvY=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(WvY,_.Lf);WvY.prototype.getUrl=function(){return _.fN(this,2)};
WvY.prototype.setUrl=function(v){return _.NM(this,2,v)};var o5d=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(o5d,_.Lf);var XV0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(XV0,_.Lf);var aLI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(aLI,_.Lf);var c2q=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(c2q,_.Lf);var Yun=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Yun,_.Lf);var rcf=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(rcf,_.Lf);var lzh=_.Gd(rcf);var $6n=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f($6n,_.Lf);var IL$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(IL$,_.Lf);_.K=IL$.prototype;_.K.getHeader=function(){return _.TY(this,CX,1)};
_.K.setHeader=function(v){return _.Mj(this,1,v)};
_.K.hasHeader=function(){return _.ZD(this,CX,1)};
_.K.getCompletionUrl=function(){return _.fN(this,6)};
_.K.getDeviceId=function(){return _.fN(this,11)};var HYh=new Ob("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",IL$,rcf,function(v){return v.serialize()},lzh);var m6d=new Set(["SAPISIDHASH","APISIDHASH"]);var U68=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(U68,_.Lf);U68.prototype.getMessage=function(){return _.fN(this,2)};
var vm7=_.Gd(U68);var VXf=function(v,Q){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=v.nodeReadableStream;this.grpcResponseDeserializeFn=Q;this.xhr=v.xhr;this.xhrNodeReadableStream&&QBY(this)},tXq=function(v,Q){var V=new Emh;
_.wE(v.xhr,"complete",function(){if(v.xhr.isSuccess()){var E=v.xhr.getResponseText();var b;if(b=Q)b=v.xhr,b.JSC$9876_xhr_&&b.isComplete()?(b=b.JSC$9876_xhr_.getResponseHeader("Content-Type"),b=b===null?void 0:b):b=void 0,b=b==="text/plain";if(b){if(!atob)throw Error("ik");E=atob(E)}try{var F=v.grpcResponseDeserializeFn(E)}catch(p){bV$(v,a1q(new _.zl(13,"Error when deserializing response data; error: "+p+(", response: "+E)),V));return}E=_.p5B(v.xhr.getStatus());FU5(v,KU8(v));E===0?iVf(v,F):bV$(v,a1q(new _.zl(E,
"Xhr succeeded but the status code is not 200"),V))}else{E=v.xhr.getResponseText();F=KU8(v);if(E){var t=LUY(v,E);E=t.code;b=t.details;t=t.metadata}else E=2,b="Rpc failed due to xhr error. uri: "+String(v.xhr.JSC$9876_lastUri_)+", error code: "+(v.xhr.JSC$9876_lastErrorCode_+", error: ")+v.xhr.getLastError(),t=F;FU5(v,F);bV$(v,a1q(new _.zl(E,b,t),V))}})},QBY=function(v){v.xhrNodeReadableStream.on("data",function(Q){if("1"in Q){var V=Q["1"];
try{var E=v.grpcResponseDeserializeFn(V)}catch(b){bV$(v,new _.zl(13,"Error when deserializing response data; error: "+b+(", response: "+V)))}E&&iVf(v,E)}if("2"in Q)for(Q=LUY(v,Q["2"]),V=0;V<v.onStatusCallbacks.length;V++)v.onStatusCallbacks[V](Q)});
v.xhrNodeReadableStream.on("end",function(){FU5(v,KU8(v));for(var Q=0;Q<v.onEndCallbacks.length;Q++)v.onEndCallbacks[Q]()});
v.xhrNodeReadableStream.on("error",function(){if(v.onErrorCallbacks.length!==0){var Q=v.xhr.JSC$9876_lastErrorCode_;Q!==0||v.xhr.isSuccess()||(Q=6);var V=-1;switch(Q){case 0:var E=2;break;case 7:E=10;break;case 8:E=4;break;case 6:V=v.xhr.getStatus();E=_.p5B(V);break;default:E=14}FU5(v,KU8(v));Q=_.WXa(Q)+", error: "+v.xhr.getLastError();V!==-1&&(Q+=", http status code: "+V);bV$(v,new _.zl(E,Q))}})},KU8=function(v){var Q={},V=VNs(v.xhr);
Object.keys(V).forEach(function(E){Q[E]=V[E]});
return Q},LUY=function(v,Q){var V=2,E={};
try{var b=vm7(Q);V=_.h5(b,1);var F=b.getMessage();_.PM(b,IIh,3,_.dZ()).length&&(E["grpc-web-status-details-bin"]=Q)}catch(t){v.xhr&&v.xhr.getStatus()===404?(V=5,F="Not Found: "+String(v.xhr.JSC$9876_lastUri_)):(V=14,F="Unable to parse RpcStatus: "+t)}return{code:V,details:F,metadata:E}};
VXf.prototype.on=function(v,Q){v==="data"?this.onDataCallbacks.push(Q):v==="metadata"?this.onMetadataCallbacks.push(Q):v==="status"?this.onStatusCallbacks.push(Q):v==="end"?this.onEndCallbacks.push(Q):v==="error"&&this.onErrorCallbacks.push(Q);return this};
var pWm=function(v,Q){Q=v.indexOf(Q);Q>-1&&v.splice(Q,1)};
VXf.prototype.removeListener=function(v,Q){v==="data"?pWm(this.onDataCallbacks,Q):v==="metadata"?pWm(this.onMetadataCallbacks,Q):v==="status"?pWm(this.onStatusCallbacks,Q):v==="end"?pWm(this.onEndCallbacks,Q):v==="error"&&pWm(this.onErrorCallbacks,Q);return this};
VXf.prototype.cancel=function(){this.xhr.abort()};
var iVf=function(v,Q){for(var V=0;V<v.onDataCallbacks.length;V++)v.onDataCallbacks[V](Q)},FU5=function(v,Q){for(var V=0;V<v.onMetadataCallbacks.length;V++)v.onMetadataCallbacks[V](Q)},bV$=function(v,Q){for(var V=0;V<v.onErrorCallbacks.length;V++)v.onErrorCallbacks[V](Q)},Emh=function(){var v=Error.call(this);
this.message=v.message;"stack"in v&&(this.stack=v.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(Emh,Error);var eh$=function(v){this.JSC$19735_worker_=v.worker||null;this.JSC$19735_streamBinaryChunks_=v.streamBinaryChunks||!1;this.JSC$19735_credentialsMode_=void 0};
_.HZ(eh$,_.Zib);eh$.prototype.createInstance=function(){var v=new qH(this.JSC$19735_worker_,this.JSC$19735_streamBinaryChunks_);this.JSC$19735_credentialsMode_&&v.setCredentialsMode(this.JSC$19735_credentialsMode_);return v};
eh$.prototype.setCredentialsMode=function(v){this.JSC$19735_credentialsMode_=v};
var qH=function(v,Q){_.DO.call(this);this.JSC$19739_worker_=v;this.JSC$19739_streamBinaryChunks_=Q;this.JSC$19739_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19739_responseHeaders_=null;this.JSC$19739_method_="GET";this.JSC$19739_url_="";this.inProgress_=!1;this.JSC$19739_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.HZ(qH,_.DO);qH.prototype.open=function(v,Q){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19739_method_=v;this.JSC$19739_url_=Q;this.readyState=1;ZV7(this)};
qH.prototype.send=function(v){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var Q={headers:this.requestHeaders_,method:this.JSC$19739_method_,credentials:this.JSC$19739_credentialsMode_,cache:void 0,signal:this.abortController_.signal};v&&(Q.body=v);(this.JSC$19739_worker_||_.bb).fetch(new Request(this.JSC$19739_url_,Q)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
qH.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,P0j(this));this.readyState=0};
qH.prototype.handleResponse_=function(v){if(this.inProgress_&&(this.fetchResponse_=v,this.JSC$19739_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19739_responseHeaders_=v.headers,this.readyState=2,ZV7(this)),this.inProgress_&&(this.readyState=3,ZV7(this),this.inProgress_)))if(this.responseType==="arraybuffer")v.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.bb.ReadableStream!==
"undefined"&&"body"in v){this.currentReader_=v.body.getReader();if(this.JSC$19739_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19739_textDecoder_=new TextDecoder;dnI(this)}else v.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var dnI=function(v){v.currentReader_.read().then(v.handleDataFromStream_.bind(v)).catch(v.handleSendFailure_.bind(v))};
qH.prototype.handleDataFromStream_=function(v){if(this.inProgress_){if(this.JSC$19739_streamBinaryChunks_&&v.value)this.response.push(v.value);else if(!this.JSC$19739_streamBinaryChunks_){var Q=v.value?v.value:new Uint8Array(0);if(Q=this.JSC$19739_textDecoder_.decode(Q,{stream:!v.done}))this.response=this.responseText+=Q}v.done?P0j(this):ZV7(this);this.readyState==3&&dnI(this)}};
qH.prototype.handleResponseText_=function(v){this.inProgress_&&(this.response=this.responseText=v,P0j(this))};
qH.prototype.handleResponseArrayBuffer_=function(v){this.inProgress_&&(this.response=v,P0j(this))};
qH.prototype.handleSendFailure_=function(){this.inProgress_&&P0j(this)};
var P0j=function(v){v.readyState=4;v.fetchResponse_=null;v.currentReader_=null;v.JSC$19739_textDecoder_=null;ZV7(v)};
qH.prototype.setRequestHeader=function(v,Q){this.requestHeaders_.append(v,Q)};
qH.prototype.getResponseHeader=function(v){return this.JSC$19739_responseHeaders_?this.JSC$19739_responseHeaders_.get(v.toLowerCase())||"":""};
qH.prototype.getAllResponseHeaders=function(){if(!this.JSC$19739_responseHeaders_)return"";for(var v=[],Q=this.JSC$19739_responseHeaders_.entries(),V=Q.next();!V.done;)V=V.value,v.push(V[0]+": "+V[1]),V=Q.next();return v.join("\r\n")};
qH.prototype.setCredentialsMode=function(v){this.JSC$19739_credentialsMode_=v};
var ZV7=function(v){v.onreadystatechange&&v.onreadystatechange.call(v)};
Object.defineProperty(qH.prototype,"withCredentials",{get:function(){return this.JSC$19739_credentialsMode_==="include"},
set:function(v){this.setCredentialsMode(v?"include":"same-origin")}});var hhh=function(v){var Q="";_.gI.forEach(v,function(V,E){Q+=E;Q+=":";Q+=V;Q+="\r\n"});
return Q},wW5=function(v,Q,V){if(_.gI.isEmpty(V))return v;
V=hhh(V);if(typeof v==="string")return _.XZ(v,_.EG(Q),V);_.Vf(v,Q,V);return v};var ACq=function(){this.isInputValid_=!0;this.JSC$19745_streamPos_=0;this.leftoverInput_=""};
ACq.prototype.isInputValid=function(){return this.isInputValid_};
ACq.prototype.decode=function(v){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19745_streamPos_+"`stream already broken`"+v);this.leftoverInput_+=v;v=Math.floor(this.leftoverInput_.length/4);if(v==0)return null;try{var Q=_.s2B(this.leftoverInput_.slice(0,v*4))}catch(V){throw Q=this.leftoverInput_,v=V.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19745_streamPos_+"`"+v+"`"+Q);}this.JSC$19745_streamPos_+=v*4;this.leftoverInput_=this.leftoverInput_.slice(v*4);return Q};var $C7=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19748_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
$C7.prototype.isInputValid=function(){return this.state_!=3};
var kIj=function(v,Q,V,E){v.state_=3;v.errorMessage_="The stream is broken @"+v.JSC$19748_streamPos_+"/"+V+". Error: "+E+". With input:\n"+Q;throw Error(v.errorMessage_);};
$C7.prototype.acceptsBinaryInput=function(){return!0};
$C7.prototype.parse=function(v){function Q(Z){Z&128&&kIj(F,t,p,"invalid tag");(Z&7)!=2&&kIj(F,t,p,"invalid wire type");F.tag_=Z>>>3;F.tag_!=1&&F.tag_!=2&&F.tag_!=15&&kIj(F,t,p,"unexpected tag");F.state_=1;F.length_=0;F.countLengthBytes_=0}
function V(Z){F.countLengthBytes_++;F.countLengthBytes_==5&&Z&240&&kIj(F,t,p,"message length too long");F.length_|=(Z&127)<<(F.countLengthBytes_-1)*7;Z&128||(F.state_=2,F.countMessageBytes_=0,typeof Uint8Array!=="undefined"?F.messageBuffer_=new Uint8Array(F.length_):F.messageBuffer_=Array(F.length_),F.length_==0&&b())}
function E(Z){F.messageBuffer_[F.countMessageBytes_++]=Z;F.countMessageBytes_==F.length_&&b()}
function b(){if(F.tag_<15){var Z={};Z[F.tag_]=F.messageBuffer_;F.result_.push(Z)}F.state_=0}
for(var F=this,t=v instanceof Array?v:new Uint8Array(v),p=0;p<t.length;){switch(F.state_){case 3:kIj(F,t,p,"stream already broken");break;case 0:Q(t[p]);break;case 1:V(t[p]);break;case 2:E(t[p]);break;default:throw Error("ok`"+F.state_);}F.JSC$19748_streamPos_++;p++}v=F.result_;F.result_=[];return v.length>0?v:null};var I17=function(){this.errorMessage_=null;this.JSC$19751_streamPos_=0;this.base64Decoder_=new ACq;this.pbParser_=new $C7};
I17.prototype.isInputValid=function(){return this.errorMessage_===null};
var TmY=function(v,Q,V){v.errorMessage_="The stream is broken @"+v.JSC$19751_streamPos_+". Error: "+V+". With input:\n"+Q;throw Error(v.errorMessage_);};
I17.prototype.acceptsBinaryInput=function(){return!1};
I17.prototype.parse=function(v){this.errorMessage_!==null&&TmY(this,v,"stream already broken");var Q=null;try{var V=this.base64Decoder_.decode(v);Q=V===null?null:this.pbParser_.parse(V)}catch(E){TmY(this,v,E.message)}this.JSC$19751_streamPos_+=v.length;return Q};var rsd=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19754_streamPos_=0;this.result_=[];this.statusParsed_=!1};
rsd.prototype.isInputValid=function(){return this.errorMessage_===null};
rsd.prototype.acceptsBinaryInput=function(){return!1};
rsd.prototype.parse=function(v){function Q(Z){F.state_=6;F.errorMessage_="The stream is broken @"+F.JSC$19754_streamPos_+"/"+t+". Error: "+Z+". With input:\n";throw Error(F.errorMessage_);}
function V(){F.jsonStreamParser_=new _.AC({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function E(Z){if(Z)for(var d=0;d<Z.length;d++){var w={};w[1]=Z[d];F.result_.push(w)}}
function b(Z){if(Z){(F.statusParsed_||Z.length>1)&&Q("extra status: "+Z);F.statusParsed_=!0;var d={};d[2]=Z[0];F.result_.push(d)}}
for(var F=this,t=0;t<v.length;){var p;if(p=F.state_!==2){a:{for(;t<v.length;){if(!_.wm(v[t])){p=!0;break a}t++;F.JSC$19754_streamPos_++}p=!1}p=!p}if(p)return null;switch(F.state_){case 6:Q("stream already broken");break;case 0:v[t]==="["?(F.state_=1,t++,F.JSC$19754_streamPos_++):Q("unexpected input token");break;case 1:v[t]==="["?(F.state_=2,V()):v[t]===","||v.slice(t,t+5)=="null,"?F.state_=3:v[t]==="]"?(F.state_=5,t++,F.JSC$19754_streamPos_++):Q("unexpected input token");break;case 2:p=F.jsonStreamParser_.parse(v.substring(t));
E(p);F.jsonStreamParser_.done()?(F.state_=3,p=F.jsonStreamParser_.JSC$11559_buffer_,F.JSC$19754_streamPos_+=v.length-t-p.length,v=p,t=0):(F.JSC$19754_streamPos_+=v.length-t,t=v.length);break;case 3:v[t]===","||v.slice(t,t+5)=="null,"?(F.state_=4,V(),F.jsonStreamParser_.parse("["),t+=v[t]===","?1:5,F.JSC$19754_streamPos_++):v[t]==="]"&&(F.state_=5,t++,F.JSC$19754_streamPos_++);break;case 4:p=F.jsonStreamParser_.parse(v.substring(t));b(p);F.jsonStreamParser_.done()?(F.state_=5,p=F.jsonStreamParser_.JSC$11559_buffer_,
F.JSC$19754_streamPos_+=v.length-t-p.length,v=p,t=0):(F.JSC$19754_streamPos_+=v.length-t,t=v.length);break;case 5:Q("extra input after stream end")}}return F.result_.length>0?(v=F.result_,F.result_=[],v):null};var YkI=function(v){this.JSC$19757_xhr_=v;this.JSC$19757_parser_=null;this.status_=this.JSC$19757_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19757_textDecoder_=null;this.JSC$19757_eventHandler_=new _.cE(this);this.JSC$19757_eventHandler_.listen(this.JSC$19757_xhr_,"readystatechange",this.JSC$19759_readyStateChangeHandler_)},Sl=function(v,Q){v.status_!=Q&&(v.status_=Q,v.statusHandler_&&v.statusHandler_())},yCn=function(v){v.JSC$19757_eventHandler_.removeAll();
if(v.JSC$19757_xhr_){var Q=v.JSC$19757_xhr_;v.JSC$19757_xhr_=null;Q.abort();Q.dispose()}};
YkI.prototype.getStatus=function(){return this.status_};
YkI.prototype.JSC$19759_readyStateChangeHandler_=function(v){v=v.target;try{if(v==this.JSC$19757_xhr_)a:{var Q=_.xu(this.JSC$19757_xhr_),V=this.JSC$19757_xhr_.JSC$9876_lastErrorCode_,E=this.JSC$19757_xhr_.getStatus(),b=this.JSC$19757_xhr_.getResponseText();v=[];if(this.JSC$19757_xhr_.getResponse()instanceof Array){var F=this.JSC$19757_xhr_.getResponse();F.length>0&&F[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,v=F)}if(!(Q<3||Q==3&&!b&&v.length==0))if(E=E==200||E==206,Q==4&&(V==8?Sl(this,
7):V==7?Sl(this,8):E||Sl(this,3)),this.JSC$19757_parser_||(this.JSC$19757_parser_=H_q(this.JSC$19757_xhr_),this.JSC$19757_parser_==null&&Sl(this,5)),this.status_>2)yCn(this);else{if(v.length>this.JSC$19757_pos_){var t=v.length;V=[];try{if(this.JSC$19757_parser_.acceptsBinaryInput())for(var p=0;p<t;p++){var Z=this.JSC$19757_parser_.parse(Array.from(v[p]));Z&&(V=V.concat(Z))}else{Z="";if(!this.JSC$19757_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19757_textDecoder_=
new TextDecoder}for(p=0;p<t;p++)Z+=this.JSC$19757_textDecoder_.decode(v[p],{stream:Q==4&&p==t-1});V=this.JSC$19757_parser_.parse(Z)}v.splice(0,t);V&&this.dataHandler_(V)}catch(w){Sl(this,5);yCn(this);break a}}else if(b.length>this.JSC$19757_pos_){p=b.slice(this.JSC$19757_pos_);this.JSC$19757_pos_=b.length;try{var d=this.JSC$19757_parser_.parse(p);d!=null&&this.dataHandler_&&this.dataHandler_(d)}catch(w){Sl(this,5);yCn(this);break a}}Q==4?(b.length!=0||this.hasStreamingResponseData_?Sl(this,2):Sl(this,
4),yCn(this)):Sl(this,1)}}}catch(w){Sl(this,6),yCn(this)}};var cCI=function(v){v=this.xhrReader_=v;var Q=(0,_.Nz)(this.onData_,this);v.dataHandler_=Q;v=this.xhrReader_;Q=(0,_.Nz)(this.onStatusChange_,this);v.statusHandler_=Q;this.JSC$19761_callbackMap_={};this.callbackOnceMap_={}};
_.K=cCI.prototype;_.K.on=function(v,Q){var V=this.JSC$19761_callbackMap_[v];V||(V=[],this.JSC$19761_callbackMap_[v]=V);V.push(Q);return this};
_.K.addListener=function(v,Q){this.on(v,Q);return this};
_.K.removeListener=function(v,Q){var V=this.JSC$19761_callbackMap_[v];V&&_.ub(V,Q);(v=this.callbackOnceMap_[v])&&_.ub(v,Q);return this};
_.K.once=function(v,Q){var V=this.callbackOnceMap_[v];V||(V=[],this.callbackOnceMap_[v]=V);V.push(Q);return this};
_.K.onData_=function(v){var Q=this.JSC$19761_callbackMap_.data;Q&&fbd(v,Q);(Q=this.callbackOnceMap_.data)&&fbd(v,Q);this.callbackOnceMap_.data=[]};
var fbd=function(v,Q){for(var V={},E=0;E<v.length;V={message$jscomp$1008:void 0},E++)V.message$jscomp$1008=v[E],Q.forEach(function(b){return function(F){try{F(b.message$jscomp$1008)}catch(t){}}}(V))};
cCI.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:GI8(this,"readable");break;case 5:case 6:case 4:case 7:case 3:GI8(this,"error");break;case 8:GI8(this,"close");break;case 2:GI8(this,"end")}};
var GI8=function(v,Q){var V=v.JSC$19761_callbackMap_[Q];V&&V.forEach(function(E){try{E()}catch(b){}});
(V=v.callbackOnceMap_[Q])&&V.forEach(function(E){E()});
v.callbackOnceMap_[Q]=[]};var C0h=function(){var v={format:"jspb"};v=v===void 0?{}:v;this.suppressCorsPreflight=v.suppressCorsPreflight||_.Q9("suppressCorsPreflight",v)||!1;this.withCredentials=v.withCredentials||_.Q9("withCredentials",v)||!1;this.streamInterceptors=v.streamInterceptors||[];this.unaryInterceptors=v.unaryInterceptors||[];this.workerScope=v.workerScope;this.chunkedServerStreaming=v.useFetchDownloadStreams||!1},Dnm=function(v,Q,V,E,b,F){F=F===void 0?{}:F;
var t=Q.substring(0,Q.length-b.name.length),p,Z=(p=F)==null?void 0:p.signal;return MXI(function(d){return new Promise(function(w,A){if(Z==null?0:Z.aborted){var k=new _.zl(1,"Aborted");k.cause=Z.reason;A(k)}else{var T={},c=OVh(v,d,t);c.on("error",function(C){return void A(C)});
c.on("metadata",function(C){T=C});
c.on("data",function(C){var R=T;R=R===void 0?{}:R;w(new S5f(C,R))});
Z&&Z.addEventListener("abort",function(){c.cancel();var C=new _.zl(1,"Aborted");C.cause=Z.reason;A(C)})}})},v.unaryInterceptors).call(v,zwm(b,V,E)).then(function(d){return d.responseMessage})},Rhm=function(v,Q,V,E,b,F){F=F===void 0?{}:F;
return Dnm(v,Q,V,E,b,F)};
C0h.prototype.serverStreaming=function(v,Q,V,E){var b=this,F=v.substring(0,v.length-E.name.length);return nmn(function(t){var p=t.methodDescriptor,Z=t.getMetadata(),d=lbI(b,!1);Z=qkY(b,Z,d,F+p.getName());var w=Skj(d,p.responseDeserializeFn,!0);t=p.requestSerializeFn(t.requestMessage);d.send(Z,"POST",t);return w},this.streamInterceptors).call(this,zwm(E,Q,V))};
var OVh=function(v,Q,V){var E=Q.methodDescriptor,b=Q.getMetadata(),F=lbI(v,!0);v=qkY(v,b,F,V+E.getName());V=Skj(F,E.responseDeserializeFn,!1);tXq(V,b["X-Goog-Encode-Response-If-Executable"]==="base64");Q=E.requestSerializeFn(Q.requestMessage);F.send(v,"POST",Q);return V},lbI=function(v,Q){Q=v.chunkedServerStreaming&&!Q;
return v.workerScope||Q?new _.NV(new eh$({worker:v.workerScope,streamBinaryChunks:Q})):new _.NV},qkY=function(v,Q,V,E){Q["Content-Type"]="application/json+protobuf";
Q["X-User-Agent"]="grpc-web-javascript/0.1";var b=Q.Authorization;if(b&&m6d.has(b.split(" ")[0])||v.withCredentials)V.JSC$9876_withCredentials_=!0;if(v.suppressCorsPreflight)E=wW5(E,"$httpHeaders",Q);else for(v=_.L(Object.keys(Q)),b=v.next();!b.done;b=v.next())b=b.value,V.headers.set(b,Q[b]);return E},Skj=function(v,Q,V){if(V){V=new YkI(v);
var E=new cCI(V)}return new VXf({xhr:v,nodeReadableStream:E},Q)},nmn=function(v,Q){return Q.reduce(function(V,E){return function(b){return E.intercept(b,V)}},v)},MXI=function(v,Q){return Q.reduce(function(V,E){return function(b){return E.intercept(b,V)}},v)};var zh7=function(v){this.client_=new C0h;this.hostname_=v==void 0?v:v.replace(/\/+$/,"")};
_.K=zh7.prototype;_.K.JSC$19779_depositGoogleCredential=function(v,Q,V){return Rhm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",v,Q||{},B9h,V)};
_.K.deleteLink=function(v,Q,V){return Rhm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",v,Q||{},N98,V)};
_.K.JSC$19779_finishOAuth=function(v,Q,V){return Rhm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",v,Q||{},s4j,V)};
_.K.getLink=function(v,Q,V){return Rhm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",v,Q||{},uB7,V)};
_.K.startLinkingSession=function(v,Q,V){return Rhm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",v,Q||{},HYh,V)};var JCn=[0,_.Xv,1,oYm,[0,_.Iq,[0,_.rB,-1]],[0,WKd],[0,_.QB,-1],[0,WKd]];var Nmj=function(){this.storage=new Map},Bm5=function(v,Q,V,E,b){if(!v.storage.has(Q))return null;
v=_.L(v.storage.get(Q));for(Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,!b||Q.linkName===b)if(V&&Q.scopes&&xn5(Q.scopes,V)||E&&Q.capabilities&&xn5(Q.capabilities,E))return Q;return null},gmf=function(v,Q,V){if(!V)v.storage.delete(Q);
else if(v.storage.has(Q)){var E=v.storage.get(Q).filter(function(b){return b.linkName!==V});
E.length>0?v.storage.set(Q,E):v.storage.delete(Q)}},xn5=function(v,Q){Q=_.L(Q);
for(var V=Q.next();!V.done;V=Q.next())if(!v.has(V.value))return!1;return!0};var sBh=function(){var v=_.r7("LINK_GAL_DOMAIN");this.alsDomain1p=_.r7("LINK_GAL_DOMAIN");this.alsDomain3p=v;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},uU$=function(v,Q){v.apiKey=Q;
return v};
sBh.prototype.build=function(){var v={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");v.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");v.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(v.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)v.apiKey=
this.apiKey,v.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("tk");v.oauthToken=this.oauthToken;v.alsDomain=this.alsDomain3p}v.clientXd3=this.clientXd3;v.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(v.authUser=this.authUser);this.bucket!==void 0&&(v.bucket=this.bucket);this.completionUrl!==void 0&&(v.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(v.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(v.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(v.locale=this.locale);v.loggerType=this.loggerType;v.clientEnvironment=this.clientEnvironment;v.colorScheme=this.colorScheme;v.showCloseOption=this.showCloseOption;return v};var SW=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(SW,_.Lf);var jB7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(jB7,_.Lf);var WUs=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(WUs,_.Lf);var JU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(JU,_.Lf);var omm=function(v){return _.Gs(v,1)};var XW5=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(XW5,_.Lf);var b4j=_.Gd(XW5),zb=[1,2,3,4,5];var vlY=function(v){try{return b4j(v)}catch(Q){return null}},abI=function(){},Q7f=function(v,Q){switch(_.wB(Q,zb)){case 4:return(Q=_.O7(Q,WUs,4,zb))&&v.logStateTransition(_.Gs(Q,1)),!0;
case 5:return(Q=_.O7(Q,jB7,5,zb))&&v.logInternalEvent(_.Gs(Q,1)),!0}return!1},FC$=function(v){switch(v){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.rV(v)}};var mC$=function(v,Q){var V=this;this.validator=v;this.messageListener=Q;this.dismissCallback=function(){rCI(V,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19808_receiveMessage=function(E){E.type==="message"&&(E=E.event_,E!==null&&(new URL(V.iframe.src)).origin===E.origin&&V.validator(E.data,E.origin)&&!V.messageListener(E.data)&&(V.JSC$19808_resolveCb!==void 0&&V.JSC$19808_resolveCb(E.data),$nh(V)))}},El7=function(v,Q,V){v.uiHandler!==void 0&&rCI(v,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(E,b){v.JSC$19808_resolveCb=E;v.JSC$19808_rejectCb=b;v.iframe=document.createElement("iframe");_.vc(v.iframe,Q);v.uiHandler=V.displayContent(v.iframe,v.dismissCallback);_.wE(window,"message",v.JSC$19808_receiveMessage,!1,v)})},rCI=function(v,Q){v.JSC$19808_rejectCb!==void 0&&v.JSC$19808_rejectCb(Q);
$nh(v)},$nh=function(v){v.uiHandler!==void 0&&v.uiHandler.hideContent();
_.OE(window,"message",v.JSC$19808_receiveMessage,!1,v);v.JSC$19808_resolveCb=void 0;v.JSC$19808_rejectCb=void 0;v.uiHandler=void 0;v.iframe=void 0};var Ibj=function(v){if(v===2){var Q;v=((Q=window)==null?0:Q.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return v},VCf=function(v){v=Ibj(v);
switch(v){case 0:return"light";case 1:return"dark";default:_.rV(v)}};var UCj=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),HVh=function(v,Q){this.JSC$19820_linkingSession=v;this.noticeConfig=Q;this.displayInfoMap=new Map;var V=new Map;if(_.ZD(this.JSC$19820_linkingSession,o5d,7))for(v=_.TY(this.JSC$19820_linkingSession,o5d,7),v=_.PM(v,WvY,1,_.dZ()),v=_.L(v),Q=v.next();!Q.done;Q=v.next())Q=Q.value,V.set(_.Gs(Q,1),_.Mwr(_.TY(Q,_.X0E,3)));if(V.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){Q=this.noticeConfig.enabledDataUsageNoticeUis;v=Q.has(0)?V.get(1):void 0;Q=Q.has(1)?V.get(2):void 0;V=v!==void 0&&Q!==void 0?V.get(3):void 0;var E=this.noticeConfig.nestedOrigins;var b=new XW5;var F=new SW;b=_.O9(b,2,zb,F);F=new XW5;var t=new SW;F=_.O9(F,3,zb,t);t=[];v!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:v,lastEvent:b,nestedOrigins:E}]),t.push({trustedUrl:v,lastEvent:b,nestedOrigins:E}));Q!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:Q,lastEvent:F,nestedOrigins:E}]),t.push({trustedUrl:Q,lastEvent:F,nestedOrigins:E}));V!==void 0?this.displayInfoMap.set(3,[{trustedUrl:V,lastEvent:F,nestedOrigins:E}]):this.displayInfoMap.set(3,t)}};var mnn=function(v){var Q=new Nmj;this.galService=v;this.galCache=Q};
mnn.prototype.getLink=function(v){var Q=v.serviceId;var V=v.scopes;var E=v.capabilities;var b=v.linkName;var F=this,t;return _.e(function(p){if(E!==void 0&&V!==void 0)throw Error("uk");t=Bm5(F.galCache,Q,V,E,b);return t!==null?p.return(t):p.return(F.galService.getLink({serviceId:Q,sessionId:Math.floor(Math.random()*2147483648),scopes:V,capabilities:E,linkName:b}).then(function(Z){Z=pw8(Z);var d=F.galCache;d.storage.has(Q)?d.storage.get(Q).push(Z):d.storage.set(Q,[Z]);return Z}))})};
mnn.prototype.deleteLink=function(v,Q,V){var E=this;return _.e(function(b){gmf(E.galCache,v,V);return b.return(E.galService.deleteLink({serviceId:v,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:Q,linkName:V}).then(function(){return!0}))})};var v9f=function(v,Q){var V=this;this.validator=v;this.msgHandler=Q;this.closedPopupTimeout=this.JSC$19842_rejectCb=this.JSC$19842_resolveCb=this.popup=null;this.JSC$19842_receiveMessage=function(E){if(E!==null&&(E=E.event_,E.source===V.popup)){var b=E.data;if(V.validator(b,E.origin)){var F;(F=V.msgHandler)!=null&&F.call(V,b)||(V.JSC$19842_resolveCb!==null&&V.JSC$19842_resolveCb(b),Unn(V))}}}};
v9f.prototype.open=function(v,Q){var V=this;this.popup!==null&&QXI(this);return new Promise(function(E,b){V.JSC$19842_resolveCb=E;V.JSC$19842_rejectCb=b;V.popup=_.VN(window,v,"",Q);_.wE(window,"message",V.JSC$19842_receiveMessage,!1,V);Vhq(V)})};
var QXI=function(v,Q){v.JSC$19842_rejectCb!==null&&v.JSC$19842_rejectCb(Q);Unn(v)},Unn=function(v){v.closedPopupTimeout&&(v.closedPopupTimeout.cancel(),v.closedPopupTimeout=null);
v.popup&&v.popup.close();_.OE(window,"message",v.JSC$19842_receiveMessage,!1,v);v.popup=null;v.JSC$19842_resolveCb=null;v.JSC$19842_rejectCb=null},Vhq=function(v){v.closedPopupTimeout=_.B7q(100).then(function(){v.popup?v.popup.closed?E9h(v):Vhq(v):QXI(v,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},E9h=function(v){v.closedPopupTimeout=_.B7q(100).then(function(){QXI(v,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var bd5=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Fpn=function(v,Q,V,E,b,F,t,p,Z,d){var w=this;this.serviceId=v;this.sessionId=Q;this.galService=V;this.oauthDetails=E;this.galLogger=b;this.interactionMode=F;this.redirectServiceUrl=t;this.consentLanguageKeys=p;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=d;this.started=!1;this.JSC$19848_dataValidator=function(A,
k){var T=bd5.has(k);T||w.redirectServiceUrl===void 0||(T=w.redirectServiceUrl===k);return T?A.sentinel==="gdi":!1}};
Fpn.prototype.complete=function(){var v=this,Q;return _.e(function(V){if(v.interactionMode!==1)return V.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Q=y2h.getRedirectStateFromUri();return Q===null?V.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):V.return(Kp7(v,Q))})};
Fpn.prototype.start=function(){var v=this,Q;return _.e(function(V){if(v.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.fN(v.oauthDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(v.interactionMode===1)return y2h.setLocation(_.fN(v.oauthDetails,1)),V.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));v.started=!0;v.galLogger.logStateTransition(5);
Q=y2h.getPostMessagePopup(v.JSC$19848_dataValidator);return V.return(Q.open(_.fN(v.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(E){v.started=!1;var b=v.galLogger;if((E==null?void 0:E.error)!==void 0)throw b.logInternalEvent(59),Error("vk");if((E==null?void 0:E.redirect_state)===void 0)throw b.logInternalEvent(131),Error("wk");return Kp7(v,E.redirect_state)}).catch(function(E){v.started=
!1;
return E.errorCode!==void 0?{statusCode:E.errorCode,statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Kp7=function(v,Q){return _.e(function(V){return V.return(idj(v.galService,{serviceId:v.serviceId,sessionId:v.sessionId,dynamicUrlParameters:v.dynamicUrlParameters,redirectState:Q,consentLanguageKeys:v.consentLanguageKeys,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp}).then(function(E){var b={statusCode:1,link:pw8(E.getLink())};Kdf(_.dB(E,3))!==void 0&&(b.callerState=Kdf(_.dB(E,3)));v.galLogger.logInternalEvent(134);return b}))})},y2h={getPostMessagePopup:function(v){return new v9f(v)},
getRedirectStateFromUri:function(){var v=_.vR(y2h.getLocation()).fragment_;return(new _.Zu(v)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(v){_.kCb(window.location,_.oE(v))},
createOAuthFlow:function(v,Q){return new Fpn(v.serviceId,v.sessionId,v.galService,Q,v.galLogger,v.interactionMode,v.redirectServiceUrl,v.consentLanguageKeys,v.dynamicUrlParameters,v.partnerConfigMinReadTimestamp)}};var Lp5=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Lp5,_.Lf);var thm=_.Gd(Lp5);var p25=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ef7=function(v,Q,V,E,b,F,t,p,Z){var d=this;this.serviceId=v;this.sessionId=Q;this.galService=V;this.gsiWebFlowDetails=E;this.colorScheme=b;this.showCloseOption=F;this.galLogger=t;this.interactionMode=p;this.redirectServiceUrl=Z;this.started=!1;this.JSC$19860_dataValidator=function(w,A){var k=p25.has(A);k||d.redirectServiceUrl===
void 0||(k=d.redirectServiceUrl===A);return k?w.sentinel==="gal":!1};
this.logEventProcessor=function(w){return w.result?(w=vlY(w.result))?Q7f(d.galLogger,w):!1:!1}};
ef7.prototype.complete=function(){var v=this,Q,V;return _.e(function(E){if(v.interactionMode!==1)return E.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Q=fz8.getRedirectStateFromUri();if(Q===void 0)return v.galLogger.JSC$19800_logErrorEvent(131),E.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return V=ZdY(v,Q),E.return(P7d(v,V))}catch(b){return E.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
ef7.prototype.start=function(){var v=this,Q;return _.e(function(V){if(v.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.fN(v.gsiWebFlowDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(v.interactionMode===1)return fz8.setLocation(ddI(v,_.fN(v.gsiWebFlowDetails,1))),V.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
v.started=!0;Q=fz8.getPostMessagePopup(v.JSC$19860_dataValidator,v.logEventProcessor);return V.return(Q.open(ddI(v,_.fN(v.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(E){v.started=!1;if((E==null?void 0:E.result)===void 0)throw v.galLogger.JSC$19800_logErrorEvent(131),Error("wk");E=ZdY(v,E.result);return P7d(v,E)}).catch(function(E){v.started=!1;
return E.errorCode!==void 0?{statusCode:E.errorCode,statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var ddI=function(v,Q){v=["result_channel",v.interactionMode===1?"2":"1","color_scheme",VCf(v.colorScheme),"show_close_option",v.showCloseOption];return $7$(Q,v)},P7d=function(v,Q){if(Q!==null&&_.ZD(Q,JU,2)){var V,E=Q==null?void 0:(V=_.TY(Q,JU,2))==null?void 0:_.Gs(V,2);
E&&v.galLogger.JSC$19800_logErrorEvent(FC$(E));return omm(_.TY(Q,JU,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return v.galService.getLink({serviceId:v.serviceId,sessionId:v.sessionId,consistencyKey:_.fN(Q,1)}).then(function(b){b=pw8(b);v.galLogger.logInternalEvent(134);return{statusCode:1,link:b}})},ZdY=function(v,Q){Q=thm(Q);
if(!_.ZD(Q,JU,2)&&_.fN(Q,1)==="")throw v.galLogger.JSC$19800_logErrorEvent(5),Error("xk");return Q},fz8={getPostMessagePopup:function(v,Q){return new v9f(v,Q)},
getRedirectStateFromUri:function(){return _.Qf(_.vR(fz8.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(v){_.kCb(window.location,_.oE(v))},
createStreamlinedFlow:function(v,Q){return new ef7(v.serviceId,v.sessionId,v.galService,Q,v.colorScheme,v.showCloseOption,v.galLogger,v.interactionMode,v.redirectServiceUrl)}};var Rqf=function(){var v=_.WLG("GAL");this.storage=v?new _.B5(v):null};
Rqf.prototype.getSession=function(v){if(this.storage!==null)try{var Q=this.storage.get("SAVED_SESSION");if(Q===void 0)return null;if(Q.serviceId===v)return Q}catch(V){}return null};var hf8=function(){};
_.f(hf8,abI);hf8.prototype.logStateTransition=function(){};
hf8.prototype.logInternalEvent=function(){};
hf8.prototype.JSC$19800_logErrorEvent=function(){};var w2f=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(w2f,_.Lf);w2f.prototype.getCompletionUrl=function(){return _.fN(this,15)};var zL=function(v,Q,V,E,b,F){this.serviceId=v;this.environment=Q;this.sessionId=V;this.colorSchemeSelected=E;this.colorThemeDisplayed=b;this.JSC$19873_transport=F;this.currentState=1};
_.f(zL,abI);zL.prototype.logStateTransition=function(v){var Q=ABh(this);Q=_.YF(Q,3,this.currentState);Q=_.YF(Q,1,v);this.currentState=v;v=Qld(1);this.dispatch(Q,v)};
zL.prototype.logInternalEvent=function(v){v=Qld(v);this.dispatch(ABh(this),v)};
zL.prototype.JSC$19800_logErrorEvent=function(v){var Q=ABh(this);Q=_.YF(Q,1,10);v=Qld(v);this.dispatch(Q,v)};
var ABh=function(v){var Q=new w2f;Q=_.YF(Q,1,v.currentState);Q=_.SS(Q,7,v.serviceId);var V,E;var b=((V=window)==null?0:(E=V.location)==null?0:E.href)?_.vR(window.location.href).JSC$10112_domain_:"NO_PACKAGE_NAME";V=_.SS(Q,8,b);V=_.YF(V,6,v.environment);V=_.SS(V,5,"100");V=_.YF(V,11,v.colorSchemeSelected);return _.YF(V,12,v.colorThemeDisplayed)};
zL.prototype.dispatch=function(v,Q){Q===void 0&&(Q=new _.dL);var V=Q;v=v.serialize();V=_.SS(V,8,v);_.xh(V,12,this.sessionId);this.JSC$19873_transport.dispatch(Q)};var k5s=function(v,Q){this.loggerType=v;this.sessionIndex=Q!=null?Q:0},TA0;
k5s.prototype.create=function(v,Q,V,E,b){switch(this.loggerType){case 0:return new hf8;case 1:return TA0||(TA0=(new _.cM(555,this.sessionIndex.toString())).build()),new zL(v,Q,V,E,b,TA0);default:_.rV(this.loggerType,"unknown logger type")}};var Gwq=[6,2,3,1],J2d=new Map([[4,1],[1,6],[2,2],[3,3]]),dJq={statusCode:7,statusMessage:"Failed to create flow object"},O48=function(v,Q,V,E,b,F,t,p,Z,d){this.serviceId=v;this.sessionId=Q;this.config=V;this.galService=E;this.JSC$19880_linkingSession=b;this.googleScopes=F;this.callerState=t;this.consentLanguageKeys=p;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=d;this.currentFlow=0;E=this.JSC$19880_linkingSession;b=new Set;_.ZD(E,Yun,1)&&b.add(1);_.ZD(E,aLI,2)&&_.ZD(E,c2q,6)&&b.add(2);
_.ZD(E,XV0,3)&&_.ZD(E,c2q,6)&&b.add(3);_.ZD(E,j4s,4)&&b.add(6);this.supportedFlows=b;E=V.loggerType;b=V.clientEnvironment;a:{F=V.colorScheme;switch(F){case 0:F=1;break a;case 1:F=2;break a;case 2:F=3;break a;default:_.rV(F)}F=void 0}a:{t=V.colorScheme;t=Ibj(t);switch(t){case 0:t=1;break a;case 1:t=2;break a;default:_.rV(t)}t=void 0}this.galLogger=(new k5s(E,V.authUser)).create(v,b,Q,F,t)},yB5=function(v){return new Promise(function(Q){var V,E,b,F,t,p,Z,d,w,A;
return _.e(function(k){switch(k.nextAddress){case 1:V=CO5(v.currentFlow,v.supportedFlows),E=!1,b=new HVh(v.JSC$19880_linkingSession,v.config.dataUsageNoticeConfig);case 2:if(V===void 0){k.jumpTo(4);break}_.GC(k,5);var T=b,c=V,C=void 0;E?c===1&&(C=T.displayInfoMap.get(2)):c===2||c===3?C=T.displayInfoMap.get(1):c===1&&(C=T.displayInfoMap.get(3));F=C?C:[];t=v.consentLanguageKeys;p=_.L(F);Z=p.next();case 7:if(Z.done)return v.currentFlow=V,k.yield(wwI(Yvj(v,t)),11);d=Z.value;return k.yield(KC0(d,v.config.dataUsageNoticeConfig.uiAdapter,
v.config.colorScheme,v.galLogger),10);case 10:w=k.yieldResult;if(w.statusCode!==1)return nl0(v.serviceId),v.currentFlow=0,Q(A2Y({statusCode:w.statusCode,statusMessage:w.statusMessage},v.callerState)),k.return();w.consentLanguageKeys!==void 0&&(t=w.consentLanguageKeys);Z=p.next();k.jumpTo(7);break;case 11:A=k.yieldResult;if(A.statusCode!==10)return A.statusCode!==6&&(nl0(v.serviceId),v.currentFlow=0),A.statusCode!==1&&v.callerState!==void 0&&(A.callerState=v.callerState),Q(A),k.return();_.FT(k,6);
break;case 5:_.n$(k);case 6:V=CO5(v.currentFlow,v.supportedFlows);E=!0;k.jumpTo(2);break;case 4:nl0(v.serviceId),v.currentFlow=0,Q(A2Y({statusCode:12,statusMessage:"Linking failed"},v.callerState)),_.q1(k)}})})},Suh=function(v,Q,V){v.currentFlow=Q;
return kwd(Yvj(v,V)).then(function(E){return E.statusCode===10&&v.config.interactionMode===1&&CO5(v.currentFlow,v.supportedFlows)!==void 0?yB5(v):E})},Yvj=function(v,Q){return{flowParams:{serviceId:v.serviceId,
sessionId:v.sessionId,galService:v.galService,galLogger:v.galLogger,interactionMode:v.config.interactionMode,redirectServiceUrl:v.config.redirectServiceUrl,colorScheme:v.config.colorScheme,consentLanguageKeys:Q,dynamicUrlParameters:v.dynamicUrlParameters,showCloseOption:v.config.showCloseOption,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp},currentFlow:v.currentFlow,config:v.config,session:v.JSC$19880_linkingSession,googleScopes:v.googleScopes,callerState:v.callerState}};var xJh=function(v,Q){this.config=v;this.galService=Q.getService();this.JSC$19893_galRepository=Q.JSC$19911_galRepository};
xJh.prototype.getLink=function(v,Q){return cB$(this,v,Q)};
var cB$=function(v,Q,V){return v.JSC$19893_galRepository.getLink({serviceId:Q,scopes:void 0,capabilities:void 0,linkName:V}).then(function(E){return{statusCode:1,link:E}}).catch(function(E){return{statusCode:NWn(E.code),
statusMessage:E.message}})};
xJh.prototype.deleteLink=function(v,Q){return this.JSC$19893_galRepository.deleteLink(v,this.config.accountLinkingEntryPoint,Q).then(function(){return{statusCode:1}}).catch(function(V){return{statusCode:NWn(V.code),
statusMessage:V.message}})};
xJh.prototype.startLinkingSession=function(v){var Q=v.serviceId;var V=v.sessionId;return DJd({serviceId:Q,sessionId:V!==void 0?V:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:v.loginHint,callerState:v.callerState,consentLanguageKeys:v.consentLanguageKeys,linkName:v.linkName,dynamicUrlParameters:v.dynamicUrlParameters,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp})};var JO=function(v,Q,V,E,b,F,t){this.apiKey=Q;this.authUser=V;this.oauthToken=E;this.bucket=b;this.locale=F;this.galSdkEventHandler=t;if(E===void 0){if(Q===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new zh7(v)};
JO.prototype.deleteLink=function(v){var Q=v.serviceId;var V=v.sessionId;var E=v.accountLinkingEntryPoint;var b=v.linkName;var F=this,t;return _.e(function(p){var Z=(new D$).setHeader(F.getHeader(V));var d=f25({serviceId:Q,linkName:b});Z=_.Mj(Z,2,d);t=_.Rq(Z,3,E);return p.return(F.makeRequest(F.galServiceClient.deleteLink,t,[1,3],[2,4]))})};
var idj=function(v,Q){var V=Q.serviceId;var E=Q.sessionId;var b=Q.dynamicUrlParameters;var F=Q.redirectState;var t=Q.consentLanguageKeys;var p=Q.partnerConfigMinReadTimestamp;var Z;return _.e(function(d){var w=(new nX).setHeader(v.getHeader(E,b));w=_.NM(w,2,V);Z=_.NM(w,4,F);t!==void 0&&_.NM(Z,5,t);p!==void 0&&_.Mj(Z,6,p);return d.return(v.makeRequest(v.galServiceClient.JSC$19779_finishOAuth,Z,[1,3],[2,4]))})};
JO.prototype.getLink=function(v){var Q=v.serviceId;var V=v.sessionId;var E=v.scopes;var b=v.capabilities;var F=v.consistencyKey;var t=v.linkName;var p=this,Z;return _.e(function(d){var w=(new lE).setHeader(p.getHeader(V)),A=f25({serviceId:Q,scopes:E,capabilities:b,linkName:t});Z=_.Mj(w,2,A);F!==void 0&&(w=Rw$(),w=_.NM(w,2,F),_.Mj(Z,3,w));return d.return(p.makeRequest(p.galServiceClient.getLink,Z,[1,3],[2,4]))})};
var TWf=function(v,Q){var V=Q.serviceId;var E=Q.sessionId;var b=Q.googleScopes;var F=Q.consistencyKey;var t;return _.e(function(p){var Z=(new Rp).setHeader(v.getHeader(E));Z=_.NM(Z,2,V);var d=Array.from(b.values());Z=_.Ud(Z,3,d,_.kf);d=Rw$();d=_.NM(d,2,F);t=_.Mj(Z,4,d);return p.return(v.makeRequest(v.galServiceClient.JSC$19779_depositGoogleCredential,t,[1,3],[2,4]))})};
JO.prototype.startLinkingSession=function(v){var Q=v.serviceId;var V=v.sessionId;var E=v.scopes;var b=v.capabilities;var F=v.loginHint;var t=v.supportedFlows;var p=v.completionUrl;var Z=v.usePingPong;var d=v.twoWayLinking;var w=v.accountLinkingEntryPoint;var A=v.callerState;var k=v.consentLanguageKeys;var T=v.googleScopes;var c=v.dataUsageNoticeConfig;var C=v.linkName;var R=v.dynamicUrlParameters;var l=v.partnerConfigMinReadTimestamp;var S=this,a,g;return _.e(function(u){if(b!==void 0&&E!==void 0)throw Error("uk");
var r=(new IL$).setHeader(S.getHeader(V,R));a=_.NM(r,2,Q);C!==void 0&&_.NM(a,14,C);if(b!==void 0){r=a;var v9=Array.from(b.values());_.Ud(r,5,v9,_.kf)}else E!==void 0&&(r=a,v9=Array.from(E.values()),_.Ud(r,3,v9,_.kf));p!==void 0&&_.NM(a,6,p);Z!==void 0&&_.yC(a,15,Z);t!==void 0&&(r=a,v9=Array.from(t.values()),_.Ud(r,4,v9,_.Kj));if(d!==void 0){if(d&&(!T||T.size===0))throw Error("zk");_.yC(a,8,d)}w!==void 0&&_.Rq(a,9,w);F!==void 0&&_.NM(a,13,F);A!==void 0&&(r=a,v9=(new TextEncoder).encode(A),_.vq(r,12,
_.lx(v9,!1),_.nZ()));k!==void 0&&_.NM(a,16,k);l!==void 0&&_.Mj(a,18,l);if(c!==void 0&&c.size>0||T!==void 0&&T.size>0)g=new $6n,T!==void 0&&T.size>0&&(r=g,v9=Array.from(T.values()),_.Ud(r,1,v9,_.kf)),c!==void 0&&(c.has(0)&&_.unZ(g,2,_.Kj,1,_.ih),c.has(1)&&_.unZ(g,2,_.Kj,2,_.ih)),_.Mj(a,17,g);return u.return(S.makeRequest(S.galServiceClient.startLinkingSession,a,[1],[2]))})};
JO.prototype.getMetadata=function(){var v=this,Q,V;return _.e(function(E){Q={};v.useFpa?(Q["X-Goog-Api-Key"]=v.apiKey,Q["X-Goog-AuthUser"]=v.authUser!==void 0?v.authUser.toString():"0",(V=_.h$S([]))&&(Q.Authorization=V)):Q.Authorization="Bearer "+v.oauthToken;v.locale&&(Q["accept-language"]=v.locale);return E.return(Q)})};
JO.prototype.makeRequest=function(v,Q,V,E){var b=this,F;return _.e(function(t){if(t.nextAddress==1)return t.yield(b.getMetadata(),2);F=t.yieldResult;G5n(b,V);return t.return(v.bind(b.galServiceClient)(Q,F).finally(function(){G5n(b,E)}))})};
var G5n=function(v,Q){v.galSdkEventHandler!==void 0&&Q.forEach(function(V){v.galSdkEventHandler.onEvent(V)})};
JO.prototype.getHeader=function(v,Q){var V=new CX;v=_.vq(V,2,_.Lj(v),0);v=_.Rq(v,5,3);Q=_.Ud(v,8,Q,_.kf);this.bucket!==void 0&&_.NM(Q,1,this.bucket);return Q};
var f25=function(v){var Q=v.serviceId;var V=v.scopes;var E=v.capabilities;v=v.linkName;if(E!==void 0&&V!==void 0)throw Error("uk");var b=new OY5;Q=_.NM(b,1,Q);E!==void 0?(V=Array.from(E.values()),_.Ud(Q,5,V,_.kf)):V!==void 0&&(V=Array.from(V.values()),_.Ud(Q,3,V,_.kf));v!==void 0&&_.NM(Q,6,v);return Q};var BW5=function(v){this.galService=new JO(v.alsDomain,v.apiKey,v.authUser,v.oauthToken,v.bucket,v.locale,v.galSdkEventHandler);this.JSC$19911_galRepository=new mnn(this.galService)};
BW5.prototype.getService=function(){return this.galService};var C7m=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(C7m,_.Lf);var Mh8=function(v){var Q=new C7m;return _.YF(Q,1,v)};
C7m.prototype.setErrorMessage=function(v){return _.SS(this,2,v)};var Od0=[0,_.v7,_.aq,_.v7];var NH=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(NH,_.Lf);var DdI=[0,[1,2,3],_.HC,[0,_.khA,_.laI,-1],_.HC,[0,jH7,-1],_.$K];var Rf8=[0,_.WC,1,_.v7,_.aq,-1,1,_.m3,_.BC,_.v7,-1,DdI];var n9d=[0,_.v7,[0,_.m3,_.BC,[0,_.aq]],_.oq,[0,_.v7,-1]];var dd=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(dd,_.Lf);var l25=[0,_.aq,_.v7,-2,_.WC,_.v7,_.WC,_.v7,-2,1,_.oq];var qv8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(qv8,_.Lf);var Svs=[0,_.WC];var zf7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(zf7,_.Lf);var JBj=[0,_.v7,n9d,Svs,l25,Rf8];var Rvs=_.YP(zf7,JBj);var NAf=[0,JCn];var NLj=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(NLj,_.Lf);var xdn=[0,[1,3],XLI,_.v7,XLI];var JGh=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(JGh,_.Lf);var BAq=[0,_.v7];var g97=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(g97,_.Lf);var xV7=function(v){return _.O7(v,C7m,2,PK)},sXd=function(v){var Q=new g97;
return _.O9(Q,2,PK,v)},PK=[1,
2];var ufm=[0,PK,_.HC,BAq,_.HC,Od0,_.Iq,xdn,1,_.v7,NAf];var jX8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(jX8,_.Lf);var o95=function(v){var Q=new jX8;return _.O9(Q,3,Wph,v)},Wph=[2,
3];var X2Y=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(X2Y,_.Lf);var a2f=function(v,Q){return _.Mj(v,2,Q)},rBY=function(v,Q){return _.Mj(v,8,Q)},$df=function(v,Q){return _.Mj(v,3,Q)};var I2s=[0,_.v7,ufm,JBj,_.bc,[0,[5,6,7],[0,_.v7,-2],[0,_.WC,_.v7,_.aq],[0,DdI],[0,_.aq,_.v7,-1,_.EE,_.v7],_.HC,[0,[0,_.WC],_.v7,-1],_.HC,[0,[3,4],_.v7,-1,_.HC,[0,[0,_.v7,_.oq]],_.HC,[0,[0,[0,[1,2,3],_.HC,[0],_.HC,[0],_.HC,[0]]]]],_.HC,[0,_.v7]],_.bc,-1,[0,Wph,_.v7,_.HC,BAq,_.HC,Od0,_.Iq,xdn,[0,JCn]]];var Hdh=_.YP(X2Y,I2s),mdd=_.yn(I2s);var Ud8=function(){_.J5.call(this)};
_.f(Ud8,_.J5);Ud8.prototype.init=function(){};
new Ud8;var v_0=_.s$(["data-"]),Q0I=_.s$(["aria-"]),V5n=_.s$(["aria-"]),xZ=function(v,Q){this.isLatencyMeasurementExperiment=v===void 0?!1:v;this.enableDialogA11yFix=Q===void 0?!1:Q;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.igZ(_.bb.location.href)},lOm=function(v,Q){v.onConsentPrimitiveShownCallback=Q},E_q=function(v,Q){return v.overriddenIframeLoadTimeout?v.overriddenIframeLoadTimeout:Q!==void 0?Q:5E3},SEd=function(v){if(v.prewarmPromise!==void 0)return v.prewarmPromise;
v.prewarmPromise=new Promise(function(Q,V){BK(v,1);bH7(v,F4h(v,!0),K47(v));v.iframe?v.prewarmChannel||iH7(v,v.iframe,Q):V(Error("Ak"))});
v.prewarmPromise.finally(function(){v.prewarmPromise=void 0});
return v.prewarmPromise};
xZ.prototype.showPrimitive=function(){var v=this;if(this.consentPromise!==void 0)return this.consentPromise;var Q=Date.now();L4s(this,Q);this.consentPromise=new Promise(function(V,E){BK(v,0,Q);var b=v.isDarkTheme();v.isLatencyMeasurementExperiment||v.initialLoadingStrategy===1||v.initialLoadingStrategy===2||(v.loadingBar||(v.loadingBar=j75(getComputedStyle(document.body).direction==="rtl",b),v.loadingBar.style.position="fixed",v.loadingBar.style.zIndex="15000"),document.body.appendChild(v.loadingBar));
bH7(v,F4h(v),K47(v));v.iframe?v.channel||t5$(v,v.iframe,V,E):(pmn(v),E(Error("Ak")))});
this.consentPromise.finally(function(){v.consentPromise=void 0});
return this.consentPromise};
var t5$=function(v,Q,V,E){var b,F;_.e(function(t){switch(t.nextAddress){case 1:BK(v,3);b=!1;setTimeout(function(){if(!b){pmn(v);eY$(v);ZHh(v);var p=Mh8(7).setErrorMessage("Timeout connecting to iframe");V(rBY(a2f(new X2Y,sXd(p)),o95(p)))}},E_q(v,P9q(v)));
if(!v.prewarmPromise){t.jumpTo(2);break}_.GC(t,3);return t.yield(v.prewarmPromise,5);case 5:_.FT(t,2);break;case 3:_.n$(t),F=Mh8(4).setErrorMessage("Error while prewarming."),V(rBY(a2f(new X2Y,sXd(F)),o95(F)));case 2:v.prewarmChannel&&v.prewarmChannel.send(mdd($df(new X2Y,v.consentPrimitiveRequest))),v.channel=_.by({destination:v.win,iframe:Q,origin:d_m(v),channelName:"cpw",onEstablished:function(){b=!0;pmn(v);v.isLatencyMeasurementExperiment||(v.JSC$19940_previousBodyOverflow=document.body.style.overflow,
v.JSC$19940_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,v.JSC$19940_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",v.enableDialogA11yFix&&window.addEventListener("blur",v.focusChangeListener));var p=v.iframe;p.style.bottom="0";p.style.position="fixed";p.style.right="0";p.style.border="none";p.style.left="0";p.style.top=
"0";p.style.zIndex="5000";p.style.pointerEvents="";p.style.visibility="";v.initialLoadingStrategy===2||v.initialLoadingStrategy===3?BK(v,4):BK(v,6);var Z;(Z=v.onConsentPrimitiveShownCallback)==null||Z.call(v)},
onMessage:function(p){p=Hdh(p.data);switch(_.Gs(p,1)){case 1:eY$(v);var Z=WC0(_.TY(p,_.Cr,7));Z&&(v.initialLoadingStrategy!==2&&v.initialLoadingStrategy!==3||BK(v,6,Z),BK(v,5,Z));if(Z=WC0(_.TY(p,_.Cr,6)))BK(v,7,Z),BK(v,8);var d,w;((d=_.TY(p,g97,2))==null?void 0:_.wB(d,PK))!==0&&((w=_.TY(p,jX8,8))==null?void 0:_.wB(w,Wph))!==0||E(Error("Bk"));V(p);break;case 2:ZHh(v)}}}),_.q1(t)}})},iH7=function(v,Q,V){v.prewarmChannel=_.by({destination:v.win,
iframe:Q,origin:d_m(v),channelName:"pwcp",onEstablished:function(){BK(v,2);V()}})},d_m=function(v){var Q=_.Sc(v.src).toString();
return Q&&Q.indexOf("://")<0&&Q.indexOf("//")!==0?v.origin:_.igZ(Q)},F4h=function(v,Q){Q=Q===void 0?!1:Q;
var V,E=new Map([["origin",v.origin],["hl",(V=hYs(v))!=null?V:null]]);Q&&E.set("pw","1");Q=_.L([["cpr",v.consentPrimitiveRequest.serialize()]]);for(V=Q.next();!V.done;V=Q.next()){var b=_.L(V.value);V=b.next().value;b=b.next().value;E.set(V,b)}v.isDarkTheme()&&E.set("color_scheme","dark");return _.k4(v.src,E)},pmn=function(v){v.isLatencyMeasurementExperiment||v.loadingBar&&document.body.removeChild(v.loadingBar)};
xZ.prototype.getSrc=function(){var v=_.pi(this.origin),Q;var V=(Q=_.TY(this.consentPrimitiveRequest,qv8,3))==null?void 0:_.h5(Q,1);Q="consent.google.com";V=V?"/u/"+encodeURIComponent(V.toString()):"";(v==null?0:v.endsWith("youtube.com"))?Q="consent.youtube.com":(v=v==null?void 0:v.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(Q="consent.google."+((v[1]?"co.":"")+encodeURIComponent(v[2])));return _.lV("https://"+Q+"/signedin"+V+"/landing")};
var bH7=function(v,Q,V){v.iframe||(v.iframe=document.createElement("iframe"),v.iframe.style.width="100%",v.iframe.style.height="100%",V!==112496729&&(v.iframe.style.colorScheme="auto"),v.isLatencyMeasurementExperiment&&(v.iframe.style.display="none"),_.vc(v.iframe,Q),v.iframe.setAttribute("jsname","C5o1O"),wmY(v.iframe),document.body.appendChild(v.iframe))},wmY=function(v){v.style.bottom="-200vh";
v.style.position="fixed";v.style.right="-200vw";v.style.border="";v.style.left="";v.style.top="";v.style.zIndex="";v.style.pointerEvents="none";v.style.visibility="hidden"},eY$=function(v){v.iframe&&(v.isLatencyMeasurementExperiment||(v.JSC$19940_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=v.JSC$19940_previousHtmlOverscroll),v.JSC$19940_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=v.JSC$19940_previousBodyOverscroll),v.JSC$19940_previousBodyOverflow!==
void 0&&(document.body.style.overflow=v.JSC$19940_previousBodyOverflow),v.enableDialogA11yFix&&AL8(v,!1)),wmY(v.iframe))};
xZ.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(AL8(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var AL8=function(v,Q){var V,E,b=(V=v.iframe)==null?void 0:(E=V.parentElement)==null?void 0:E.children;if(b)for(V=0;V<b.length;V++)E=b[V],E!==v.iframe&&(Q?(E.hasAttribute("aria-hidden")&&_.p$([_.hd(v_0)],E,"data-old-aria-hidden",E.getAttribute("aria-hidden")),_.p$([_.hd(Q0I)],E,"aria-hidden","true")):(E.removeAttribute("aria-hidden"),E.hasAttribute("data-old-aria-hidden")&&(_.p$([_.hd(V5n)],E,"aria-hidden",E.getAttribute("data-old-aria-hidden")),E.removeAttribute("data-old-aria-hidden"))))},BK=function(v,
Q,V){var E;
(E=v.latencyCallback)==null||E.call(v,{latencyType:Q,timestampEpochMillis:V!=null?V:Date.now()})};var ka7=function(v,Q,V){xZ.call(this,Q,V===void 0?!1:V);this.consentPrimitiveRequest=v;v=hYs(this);_.f7h(v);this.src=this.getSrc();var E;this.initialLoadingStrategy=(E=_.TY(this.consentPrimitiveRequest,dd,4))==null?void 0:_.Gs(E,4)},TJh;
_.f(ka7,xZ);var nu0=function(v){var Q=_.Y("enable_primitive_dialog_aria_hide_siblings");v={request:v,enableDialogA11yFix:Q===void 0?!1:Q};TJh||(TJh=new ka7(v.request,v.isLatencyMeasurementExperiment||_.Gs(v.request,1)===2,v.enableDialogA11yFix));return TJh},hYs=function(v){var Q;
return(Q=_.TY(v.consentPrimitiveRequest,dd,4))==null?void 0:_.fN(Q,1)},L4s=function(v,Q){if(!_.ZD(v.consentPrimitiveRequest,NH,5)){var V=v.consentPrimitiveRequest,E=new NH;
_.Mj(V,5,E)}var b;if((b=_.TY(v.consentPrimitiveRequest,NH,5))==null||_.zQS(_.em(b,8))==null){var F;(F=_.TY(v.consentPrimitiveRequest,NH,5))!=null&&_.xh(F,8,Q)}},K47=function(v){var Q;
return(Q=_.TY(v.consentPrimitiveRequest,NH,5))==null?void 0:_.h5(Q,1)};
ka7.prototype.isDarkTheme=function(){var v;return((v=_.TY(this.consentPrimitiveRequest,dd,4))==null?void 0:_.Gs(v,2))===2};
var P9q=function(v){var Q;return((Q=_.TY(v.consentPrimitiveRequest,dd,4))==null?void 0:_.h5(Q,5))||void 0},ZHh=function(v){v.channel=void 0;
v.prewarmChannel=void 0;v.iframe&&(document.body.contains(v.iframe)&&document.body.removeChild(v.iframe),v.iframe=void 0);TJh=void 0},zvf=function(v){return xZ.prototype.showPrimitive.call(v).then(function(Q){return _.TY(Q,g97,2)})};for(var gd={},YOh=(gd[64]="ma",gd[73]="ogb",gd[89]="cr",gd[21]="test",gd[0]="unkn",gd[137]="con",gd[155]="hl",gd[78]="yt",gd[171]="lp",gd[172]="ap",gd[177]="amo",gd[178]="pqe",gd[74]="gg",gd[1]="gm",gd[140]="am",gd[193]="sc",gd),yL0=_.L(Object.keys(YOh)),cL$=yL0.next();!cL$.done;cL$=yL0.next());var fqd=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(fqd,_.Lf);var Gaq=[0,[2,3,4],_.v7,uGh,XLI,_.$K];var C9h=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(C9h,_.Lf);var M5$=_.YP(C9h,[0,_.QB,_.aq,_.v7,_.aq,_.v7,Gaq]);var OHd=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(OHd,_.Lf);OHd.prototype.getCommand=function(){return _.Gs(this,1)};
var D_d=function(){var v=new OHd;return _.Rq(v,1,0)};var RYd=_.yn([0,_.QB,_.aq,[0,_.v7,_.aq,-1]]);var n_5=new _.cA("s"),lqj=new _.cA("t"),qO$=new _.cA("u"),SOf=new _.cA("v"),zY7=function(v,Q,V){_.fv.call(this,n_5);this.mediaKey=v;this.photoUrl=Q;this.photoSource=V};
_.f(zY7,_.fv);var JLd=function(){_.fv.call(this,lqj)};
_.f(JLd,_.fv);var NJ7=function(v){v=v===void 0?!1:v;_.fv.call(this,qO$);this.isError=v};
_.f(NJ7,_.fv);var x_8=function(){_.fv.call(this,SOf)};
_.f(x_8,_.fv);var BJj=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,j0h=function(v){if(typeof v=="string"){if(v.charAt(0)==".")return g_n(v.substr(1));if(v.charAt(0)=="["){var Q=BJj.exec(v);v=v.indexOf("=")==-1?void 0:Q[3];return s0Y(Q[1],v)}return uCI(v)}return v},g_n=function(v){return function(Q){return Q.getAttribute&&_.$u(Q,v)}},s0Y=function(v,Q){return function(V){return Q!==void 0?V.getAttribute&&V.getAttribute(v)==Q:V.hasAttribute&&V.hasAttribute(v)}},uCI=function(v){v=v.toUpperCase();
return function(Q){return(Q=Q.tagName)&&Q.toUpperCase()==v}},W4q=function(){return!0};var sb=function(v,Q){this.JSC$19968_key_=v;this.JSC$19968_value_=Q},o_n=function(v){throw Error("Ck`"+v.JSC$19968_key_);
},Xmj=function(v,Q){return new TypeError("Dk`"+Q+"`"+v.JSC$19968_key_+"`"+v.JSC$19968_value_+"`"+typeof v.JSC$19968_value_)};
sb.prototype.string=function(v){return arguments.length==0?aqf(this):rLd(this,v)};
var rLd=function(v,Q){var V;return(V=$_m(v))!=null?V:Q},aqf=function(v){var Q=$_m(v);
Q===null&&o_n(v);return Q},$_m=function(v){var Q=v.JSC$19968_value_;
if(Q==null)return null;if(typeof Q==="string")return Q;throw Xmj(v,"string");};
sb.prototype.bool=function(v){if(arguments.length==0){var Q=this.optionalBool();Q===null&&o_n(this)}else{var V;Q=(V=this.optionalBool())!=null?V:v}return Q};
sb.prototype.optionalBool=function(){var v=this.JSC$19968_value_;if(v==null)return null;if(typeof v==="boolean")return v;if(typeof v==="string"){v=v.toLowerCase();if(v==="true"||v==="1")return!0;if(v==="false"||v==="0")return!1}throw Xmj(this,"boolean");};
sb.prototype.number=function(v){if(arguments.length==0){var Q=Iq5(this);Q===null&&o_n(this)}else Q=HHh(this,v);return Q};
var HHh=function(v,Q){var V;return(V=Iq5(v))!=null?V:Q},Iq5=function(v){var Q=v.JSC$19968_value_;
if(Q==null)return null;if(typeof Q==="number")return Q;if(typeof Q==="string"){var V=Number(Q);if(!isNaN(V)&&(V!==0||Q.trim().length!==0))return V}throw Xmj(v,"number");};
sb.prototype.toString=function(){return aqf(this)};
sb.prototype.enum=function(v,Q){var V=!0,E=void 0,b;for(b in v){var F=v[b];V&&(V=!1,E=typeof F==="number"?HHh(this,Q):rLd(this,Q));if(F==E)return E}JSON.stringify(v);return E};
sb.prototype.array=function(v){if(arguments.length==0){var Q=m_7(this);Q===null&&o_n(this);return Q}Q=m_7(this);return Q==null?v:Q};
var m_7=function(v){var Q=v.JSC$19968_value_;if(Q==null)return null;Array.isArray(Q)||(typeof Q!=="string"?Q=[Q]:(Q=Q.trim(),Q=Q==""?[]:Q.split(",").map(function(V){return V.trim()})));
return U_h(v,Q)},U_h=function(v,Q){var V=v.JSC$19968_key_+"[";
return Array.from(Q,function(E,b){return new sb(V+b+"]",E)})};
sb.prototype.object=function(v){var Q=this.JSC$19968_value_;if(Q==null)return v===void 0&&o_n(this),v;if(typeof Q==="object"&&Q.constructor===Object){v={};var V=this.JSC$19968_key_+".",E;for(E in Q)v[E]=new sb(V+E,Q[E]);return v}throw Xmj(this,"object");};var uE=function(v){this.list_=vp5(v)},vp5=function(v){if(v instanceof uE)v=v.list_;
else if(v[0]instanceof uE){for(var Q=new Set,V=0;V<v.length;V++)for(var E=_.L(v[V].list_),b=E.next();!b.done;b=E.next())Q.add(b.value);v=Q}return[].concat(_.ui(v))};
_.K=uE.prototype;_.K.each=function(v,Q,V){((V===void 0?0:V)?VMh:_.bv)(this.list_,v,Q);return this};
_.K.size=function(){return this.list_.length};
_.K.isEmpty=function(){return this.list_.length===0};
_.K.get=function(v){return this.list_[v]||null};
_.K.el=function(){return this.list_[0]||null};
_.K.map=function(v,Q){return _.sY(this.list_,v,Q)};
_.K.equals=function(v){return this===v||_.Ih(this.list_,v.list_)};
_.K.first=function(){return this.list_.length==0?null:new jl(this.list_[0])};
_.K.last=function(){return this.list_.length==0?null:new jl(this.list_[this.list_.length-1])};
_.K.find=function(v){var Q=[];this.each(function(V){V=V.querySelectorAll(String(v));for(var E=0;E<V.length;E++)Q.push(V[E])});
return new uE(Q)};
_.K.parent=function(){var v=[];this.each(function(Q){(Q=Q.parentElement||null)&&!_.sB(v,Q)&&v.push(Q)});
return new uE(v)};
_.K.children=function(){var v=[];this.each(function(Q){Q=_.Nc(Q);for(var V=0;V<Q.length;V++)v.push(Q[V])});
return new uE(v)};
_.K.filter=function(v){v=_.U$(this.list_,j0h(v));return new uE(v)};
_.K.closest=function(v){var Q=[],V=j0h(v),E=function(b){return _.t8(b)&&V(b)};
this.each(function(b){(b=_.XH(b,E,!0))&&!_.sB(Q,b)&&Q.push(b)});
return new uE(Q)};
_.K.next=function(v){return QZn(this,_.GTA,v)};
_.K.prev=function(v){return QZn(this,aIs,v)};
var QZn=function(v,Q,V){var E=[];var b=V?j0h(V):W4q;v.each(function(F){(F=Q(F))&&b(F)&&E.push(F)});
return new uE(E)};
uE.prototype.setClass=function(v){return this.each(function(Q){_.rL(Q,v)})};
var V6Y=function(v,Q){return v.each(function(V){_.so(V,Q)})},Epm=function(v,Q){return v.each(function(V){_.Bg(V,Q)})};
uE.prototype.toggleClass=function(v,Q){return Q===!0?V6Y(this,v):Q===!1?Epm(this,v):this.each(function(V){_.$u(V,v)?_.Bg(V,v):_.so(V,v)})};
uE.prototype.setText=function(v){return this.each(function(Q){_.x$(Q,v)})};
var bD8=function(v){v.each(function(Q){Q.removeAttribute("aria-hidden")})};
uE.prototype.getStyle=function(v){if(this.list_.length>0){var Q=this.list_[0],V=Q.style[_.tY(v)];return typeof V!=="undefined"?V:Q.style[_.xNZ(Q,v)]||""}};
uE.prototype.getData=function(v){if(this.list_.length===0)return new sb(v,null);var Q=ixY(this.list_[0],v);return new sb(v,Q)};
uE.prototype.focus=function(v){try{v?this.el().focus(v):this.el().focus()}catch(Q){}return this};
uE.prototype.click=function(){var v=_.W4(this.el());if(v.createEvent){var Q=v.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,v.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(Q)}else v=v.createEventObject(),v.clientX=0,v.clientY=0,v.screenX=0,v.screenY=0,v.altKey=!1,v.ctrlKey=!1,v.shiftKey=!1,v.button=0,this.el().fireEvent("onclick",v)};
var WK=function(v,Q,V,E){function b(p,Z,d){var w=Z;Z&&Z.parentNode&&(w=Z.cloneNode(!0));p(w,d)}
E=E===void 0?!1:E;if(v.list_.length==1){var F=v.list_[0],t=function(p){return Q(p,F)};
V instanceof uE?V.each(t,void 0,E):Array.isArray(V)?(E?VMh:_.bv)(V,t):t(V);return v}return v.each(function(p){V instanceof uE?V.each(function(Z){b(Q,Z,p)}):Array.isArray(V)?_.bv(V,function(Z){b(Q,Z,p)}):b(Q,V,p)})};
_.K=uE.prototype;_.K.append=function(v){return WK(this,function(Q,V){Q&&V.appendChild(Q)},v)};
_.K.appendTo=function(v){(new uE([v])).append(this);return this};
_.K.remove=function(){return WK(this,function(v,Q){_.ng(Q)},null)};
_.K.empty=function(){return WK(this,function(v,Q){_.S3(Q)},null)};
_.K.after=function(v,Q){return WK(this,function(V,E){V&&_.JZ(V,E)},v,!(Q===void 0||Q))};
_.K.before=function(v){return WK(this,function(Q,V){Q&&_.zm(Q,V)},v)};
_.K.replaceWith=function(v){return WK(this,function(Q,V){Q&&_.ydq(Q,V)},v)};
_.K.toggle=function(v){return this.each(function(Q){_.EX(Q,v)})};
_.K.show=function(){return this.toggle(!0)};
_.K.hide=function(){return this.toggle(!1)};
_.K.trigger=function(v,Q,V,E){return Fx0(this,v,Q,V,E)};
var Fx0=function(v,Q,V,E,b){return v.each(function(F){_.AF9(_.W4(F)).triggerWizEventInternal(F,Q,V,E,b)})},jl=function(v,Q){v instanceof uE&&(Q=v.list_,v=null);
this.list_=vp5(v!=null?[v]:Q)};
_.HZ(jl,uE);_.K=jl.prototype;_.K.children=function(){return new uE(Array.prototype.slice.call(_.Nc(this.list_[0])))};
_.K.each=function(v,Q){v.call(Q,this.list_[0],0);return this};
_.K.size=function(){return 1};
_.K.el=function(){return this.list_[0]};
_.K.first=function(){return this};var op=function(v,Q){Q=Q===void 0?window:Q;this.hostId=v;this.win=Q;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$19979_previousHtmlOverscroll=this.JSC$19979_previousBodyOverscroll=this.JSC$19979_previousBodyOverflow="";this.eventTarget=new _.DO;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},Lx$=function(v){var Q=
Kxq(Kxq(Kxq(new iDI(78),"po"),"hppp"),"hhc");
Q.authUser=Number(_.r7("SESSION_INDEX","0"));Q.colorScheme=v;return Q};
op.prototype.getOrigin=function(){return this.origin?this.origin:_.iz(_.KM(_.FE(new _.uY,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
op.prototype.getTargetOrigin=function(){return _.iz(_.KM(_.FE(new _.uY,this.scheme),this.domain),this.port)};
op.prototype.preloadIframe=function(v){var Q=this;if(this.iframeLoadPromise===void 0){var V=document.createElement("iframe");this.iframe=V;H4j(V,v);this.iframeLoadPromise=new Promise(function(E,b){var F=!1,t=function(p){p.stopPropagation();V.removeEventListener("error",t);V.removeEventListener("securitypolicyviolation",t);b(Error("Ek",{cause:p}))};
V.addEventListener("error",t);V.addEventListener("securitypolicyviolation",t);setTimeout(function(){F||b(Error("Fk"))},3E4);
t68(Q,V,function(){F=!0;V.removeEventListener("error",t);V.removeEventListener("securitypolicyviolation",t);E()})});
pO$(this);v=this.getTargetOrigin().toString();V.setAttribute("allow","camera "+v+"; display-capture "+v);this.parentElement.appendChild(V)}return this.iframeLoadPromise};
var Pgh=function(v,Q){var V,E;return _.e(function(b){if(b.nextAddress==1)return V=j75(getComputedStyle(v.parentElement).direction==="rtl"),v.parentElement.appendChild(V),document.activeElement instanceof HTMLElement&&(v.elementToFocusAfterClose=document.activeElement),_.GC(b,2),b.yield(v.preloadIframe(Q),4);if(b.nextAddress!=2){v.parentElement.removeChild(V);v.JSC$19979_previousBodyOverflow=v.parentElement.style.overflow;v.JSC$19979_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
v.JSC$19979_previousBodyOverscroll=v.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";v.parentElement.style.overscrollBehavior="contain";v.parentElement.style.overflow="hidden";var F=v.iframe;F.style.bottom="0";F.style.border="none";F.style.height="100%";F.style.left="0";F.style.position=v.iframePosition;F.style.right="0";F.style.top="0";F.style.width="100%";F.style.zIndex="2202";F.setAttribute("aria-hidden","false");F.setAttribute("aria-modal","true");
v.opened=!0;er0(v);return _.FT(b,0)}E=_.n$(b);v.parentElement.removeChild(V);r2h(v.isDarkTheme());ZDm(v,!1);throw Error("Gk",{cause:E});})},ZDm=function(v,Q){Q=Q===void 0?!0:Q;
v.iframe!==void 0&&(ds5(v),document.documentElement.style.overscrollBehavior=v.JSC$19979_previousHtmlOverscroll,v.parentElement.style.overscrollBehavior=v.JSC$19979_previousBodyOverscroll,v.parentElement.style.overflow=v.JSC$19979_previousBodyOverflow,v.elementToFocusAfterClose!==void 0&&(v.elementToFocusAfterClose.focus(),v.elementToFocusAfterClose=void 0),Q?pO$(v):(v.parentElement.removeChild(v.iframe),v.iframe=void 0,v.iframeLoadPromise=void 0,v.mainChannel=void 0),v.opened=!1)},ds5=function(v){v.backgroundElementsAriaHiddenIsNull&&
(bD8(v.backgroundElementsAriaHiddenIsNull),v.backgroundElementsAriaHiddenIsNull=void 0);
v.backgroundElementsAriaHiddenIsFalse&&(v.backgroundElementsAriaHiddenIsFalse.each(function(Q){Q.setAttribute("aria-hidden","false")}),v.backgroundElementsAriaHiddenIsFalse=void 0);
v.backgroundElementsWithoutInert&&(v.backgroundElementsWithoutInert.each(function(Q){Q.removeAttribute("inert")}),v.backgroundElementsWithoutInert=void 0)},er0=function(v){v.backgroundElementsAriaHiddenIsNull=(new jl(v.iframe.parentElement)).children().filter(function(Q){return Q.getAttribute("aria-hidden")===null&&Q!==v.iframe});
v.backgroundElementsAriaHiddenIsNull.each(function(Q){Q.setAttribute("aria-hidden","true")});
v.backgroundElementsAriaHiddenIsFalse=(new jl(v.iframe.parentElement)).children().filter(function(Q){return Q.getAttribute("aria-hidden")==="false"&&Q!==v.iframe});
v.backgroundElementsAriaHiddenIsFalse.each(function(Q){Q.setAttribute("aria-hidden","true")});
v.backgroundElementsWithoutInert=(new jl(v.iframe.parentElement)).children().filter(function(Q){return!Q.hasAttribute("inert")&&Q!==v.iframe});
v.backgroundElementsWithoutInert.each(function(Q){Q.setAttribute("inert","true")})},pO$=function(v){v=v.iframe;
v.style.bottom="-1000px";v.style.position="fixed";v.style.right="-1000px";v.style.border="";v.style.height="";v.style.left="";v.style.top="";v.style.width="";v.style.zIndex="";v.setAttribute("aria-hidden","true");v.setAttribute("aria-modal","false")};
op.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var iDI=function(v,Q){op.call(this,YOh[v],Q);this.options=[];this.style=""};
_.f(iDI,op);var hrf=function(v){v.style="youtube";return v},wOs=function(v,Q){v.eventTarget.listen(qO$,Q);
return v},AQ7=function(v,Q){v.eventTarget.listen(n_5,Q);
return v},Kxq=function(v,Q){v.options.push(Q);
return v},k6d=function(v){var Q=[v.getOrigin()];
v.ancestorOrigins&&Q.push.apply(Q,_.ui(v.ancestorOrigins));var V=new _.uY(v.win.location.href),E=v.startUrl?v.startUrl:v.options.includes("po")?"profile-picture/art":"profile-picture";Q=bMY(_.LM(v.getTargetOrigin(),E),"origin",Q);v.startUrl&&_.Vf(Q,"startPath",v.startUrl);v.authUser>0&&_.Vf(Q,"authuser",v.authUser);v.pageId!==void 0&&_.Vf(Q,"pageId",v.pageId);_.Vf(Q,"hostId",v.hostId);v.jsMode!==void 0&&_.Vf(Q,"jsmode",v.jsMode);v.rectangleRatio!==void 0&&_.Vf(Q,"rectangleRatio",v.rectangleRatio);
v.options.length>0&&_.Vf(Q,"opts",v.options.join(","));try{for(var b=_.L(["utm_source","utm_medium","utm_campaign","utm_content"]),F=b.next();!F.done;F=b.next()){var t=F.value;_.Qf(V,t)&&_.Vf(Q,t,_.Qf(V,t))}var p,Z=(p=v.hl)!=null?p:_.Qf(V,"hl");Z!==void 0&&_.Vf(Q,"hl",Z)}catch(d){if(!(d instanceof URIError))throw d;}v.colorScheme&&_.Vf(Q,"theme",v.colorScheme);v.style&&_.Vf(Q,"style",v.style);return Q},Tw$=function(v,Q){v.mainChannel=_.by({destination:v.win,
iframe:Q,origin:v.getTargetOrigin().toString(),channelName:"ow",onMessage:function(V){V=M5$(V.data);if(Q===v.iframe)switch(_.Gs(V,1)){case 1:v.eventTarget.dispatchEvent(new NJ7);ZDm(v);break;case 2:v.eventTarget.dispatchEvent(new zY7(_.fN(V,4),_.fN(V,2),_.Gs(V,5),_.TY(V,fqd,6)));break;case 0:var E;v.eventTarget.dispatchEvent(new JLd(_.fN(V,2),(E=_.Gs(V,3))!=null?E:0));break;case 3:v.eventTarget.dispatchEvent(new NJ7(!0));ZDm(v,!1);break;case 4:v.eventTarget.dispatchEvent(new x_8)}}})},t68=function(v,
Q,V){_.by({destination:v.win,
iframe:Q,origin:_.iz(_.KM(_.FE(new _.uY,v.scheme),v.domain),v.port).toString(),channelName:"owi",onMessage:function(E){Q===v.iframe&&(V!==void 0&&V(),Tw$(v,Q),v.opened&&v.mainChannel.send(RYd(D_d())),E.reply(),t68(v,Q))}})};
iDI.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?op.prototype.preloadIframe.call(this,k6d(this).toString()):this.iframeLoadPromise};
iDI.prototype.openPicker=function(v){var Q=this;return _.e(function(V){if(V.nextAddress==1)return Q.startUrl=v?v:Q.options.includes("po")?"profile-picture/art":"profile-picture",V.yield(Pgh(Q,k6d(Q).toString()),2);if(Q.mainChannel){var E=Q.mainChannel,b=E.send;var F=D_d();F=_.SS(F,2,Q.startUrl);b.call(E,RYd(F))}_.q1(V)})};var Yjs=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(Yjs,_.Lf);_.K=Yjs.prototype;_.K.getSize=function(){return yD(this,1)};
_.K.setSize=function(v){return _.DD(this,1,v)};
_.K.getWidth=function(){return yD(this,12)};
_.K.getHeight=function(){return yD(this,13)};
_.K.setCenterCrop=function(v){return _.Tc(this,20,v)};
_.K.getHtml=function(){return _.YK(this,4)};
_.K.getToken=function(){return _.Dg(this,24)};
_.K.setToken=function(v){return _.SS(this,24,v)};
_.K.getBackgroundColor=function(){return yD(this,87)};
_.K.hasBackgroundColor=function(){return _.t7(_.em(this,87))!=null};
_.K.getStoryboardLevel=function(){return yD(this,109)};var ap=function(v){this.JSC$19987_value_=void 0;this.childNodes_={};if(v){var Q=_.ZpZ(v);v=_.bz(v);for(var V=0;V<Q.length;V++)this.set(Q[V],v[V])}};
ap.prototype.set=function(v,Q){yQ0(this,v,Q,!1)};
ap.prototype.add=function(v,Q){yQ0(this,v,Q,!0)};
var yQ0=function(v,Q,V,E){for(var b=0;b<Q.length;b++){var F=Q.charAt(b);v.childNodes_[F]||(v.childNodes_[F]=new ap);v=v.childNodes_[F]}if(E&&v.JSC$19987_value_!==void 0)throw Error("Hk`"+Q);v.JSC$19987_value_=V},cQn=function(v,Q){for(var V=0;V<Q.length;V++)if(v=v.childNodes_[Q.charAt(V)],!v)return;
return v};
ap.prototype.get=function(v){return(v=cQn(this,v))?v.JSC$19987_value_:void 0};
ap.prototype.getValues=function(){var v=[];fp7(this,v);return v};
var fp7=function(v,Q){v.JSC$19987_value_!==void 0&&Q.push(v.JSC$19987_value_);for(var V in v.childNodes_)fp7(v.childNodes_[V],Q)};
ap.prototype.getKeys=function(v){var Q=[];if(v){for(var V=this,E=0;E<v.length;E++){var b=v.charAt(E);if(!V.childNodes_[b])return[];V=V.childNodes_[b]}G6f(V,v,Q)}else G6f(this,"",Q);return Q};
var G6f=function(v,Q,V){v.JSC$19987_value_!==void 0&&V.push(Q);for(var E in v.childNodes_)G6f(v.childNodes_[E],Q+E,V)};
_.K=ap.prototype;_.K.containsKey=function(v){return this.get(v)!==void 0};
_.K.containsValue=function(v){if(this.JSC$19987_value_===v)return!0;for(var Q in this.childNodes_)if(this.childNodes_[Q].containsValue(v))return!0;return!1};
_.K.clear=function(){this.childNodes_={};this.JSC$19987_value_=void 0};
_.K.remove=function(v){for(var Q=this,V=[],E=0;E<v.length;E++){var b=v.charAt(E);if(!Q.childNodes_[b])throw Error("Ik`"+v);V.push([Q,b]);Q=Q.childNodes_[b]}v=Q.JSC$19987_value_;for(delete Q.JSC$19987_value_;V.length>0;)if(E=V.pop(),Q=E[0],E=E[1],Q.childNodes_[E].isEmpty())delete Q.childNodes_[E];else break;return v};
_.K.clone=function(){return new ap(this)};
_.K.getCount=function(){return HBd(this.getValues())};
_.K.isEmpty=function(){return this.JSC$19987_value_===void 0&&_.gI.isEmpty(this.childNodes_)};var Vih=function(){if(!Cgj){var v=Cgj=new ap,Q;for(Q in M6q)v.add(Q,M6q[Q])}},Cgj,rd=function(v,Q){this.types=v;
this.setters=Q},M6q={a:new rd([3,
0],[function(v,Q){_.Tc(v,21,Q)},
function(v,Q){_.DD(v,56,Q)}]),
al:new rd([3],[function(v,Q){_.Tc(v,74,Q)}]),
b:new rd([3,0],[function(v,Q){_.Tc(v,23,Q)},
function(v,Q){_.DD(v,38,Q)}]),
ba:new rd([0],[function(v,Q){_.DD(v,85,Q)}]),
bc:new rd([0],[function(v,Q){_.DD(v,87,Q)}]),
br:new rd([0],[function(v,Q){_.DD(v,86,Q)}]),
c:new rd([3,0],[function(v,Q){_.Tc(v,2,Q)},
function(v,Q){_.DD(v,39,Q)}]),
cc:new rd([3],[function(v,Q){_.Tc(v,51,Q)}]),
ci:new rd([3],[function(v,Q){_.Tc(v,32,Q)}]),
ckm:new rd([3],[function(v,Q){_.Tc(v,104,Q)}]),
cp:new rd([0],[function(v,Q){_.DD(v,92,Q)}]),
cr:new rd([3],[function(v,Q){_.Tc(v,108,Q)}]),
cv:new rd([0],[function(v,Q){_.DD(v,94,Q)}]),
d:new rd([3],[function(v,Q){_.Tc(v,3,Q)}]),
dc:new rd([5],[function(v,Q){_.SS(v,99,Q)}]),
df:new rd([3],[function(v,Q){_.Tc(v,80,Q)}]),
dv:new rd([3],[function(v,Q){_.Tc(v,90,Q)}]),
e:new rd([0],[function(v,Q){_.DD(v,15,Q)}]),
em:new rd([0],[function(v,Q){_.DD(v,107,Q)}]),
f:new rd([4],[function(v,Q){_.SS(v,16,Q)}]),
fg:new rd([3],[function(v,Q){_.Tc(v,34,Q)}]),
fh:new rd([3],[function(v,Q){_.Tc(v,30,Q)}]),
fm:new rd([3],[function(v,Q){_.Tc(v,84,Q)}]),
fo:new rd([2],[function(v,Q){_.yh(v,79,_.IN(Q))}]),
ft:new rd([3],[function(v,Q){_.Tc(v,50,Q)}]),
fv:new rd([3],[function(v,Q){_.Tc(v,31,Q)}]),
g:new rd([3],[function(v,Q){_.Tc(v,14,Q)}]),
gce:new rd([4],[function(v,Q){_.SS(v,112,Q)}]),
gd:new rd([3],[function(v,Q){_.Tc(v,83,Q)}]),
gm:new rd([3],[function(v,Q){_.Tc(v,105,Q)}]),
h:new rd([3,0],[function(v,Q){_.Tc(v,4,Q)},
function(v,Q){_.DD(v,13,Q)}]),
i:new rd([3],[function(v,Q){_.Tc(v,22,Q)}]),
ic:new rd([0],[function(v,Q){_.DD(v,71,Q)}]),
id:new rd([3],[function(v,Q){_.Tc(v,70,Q)}]),
il:new rd([3],[function(v,Q){_.Tc(v,96,Q)}]),
ip:new rd([3],[function(v,Q){_.Tc(v,54,Q)}]),
iv:new rd([0],[function(v,Q){_.xh(v,75,Q)}]),
j:new rd([1],[function(v,Q){Q=Q==null?Q:Fds(Q);_.yh(v,29,Q)}]),
k:new rd([3,0],[function(v,Q){_.Tc(v,17,Q)},
function(v,Q){_.DD(v,42,Q)}]),
l:new rd([0],[function(v,Q){_.DD(v,44,Q)}]),
lf:new rd([3],[function(v,Q){_.Tc(v,65,Q)}]),
lo:new rd([3],[function(v,Q){_.Tc(v,97,Q)}]),
m:new rd([0],[function(v,Q){_.DD(v,63,Q)}]),
md:new rd([3],[function(v,Q){_.Tc(v,91,Q)}]),
mm:new rd([4],[function(v,Q){_.SS(v,81,Q)}]),
mo:new rd([3],[function(v,Q){_.Tc(v,73,Q)}]),
mp:new rd([0],[function(v,Q){_.DD(v,115,Q)}]),
mv:new rd([3],[function(v,Q){_.Tc(v,66,Q)}]),
n:new rd([3],[function(v,Q){v.setCenterCrop(Q)}]),
nc:new rd([3],[function(v,Q){_.Tc(v,55,Q)}]),
nd:new rd([3],[function(v,Q){_.Tc(v,53,Q)}]),
ng:new rd([3],[function(v,Q){_.Tc(v,95,Q)}]),
ngm:new rd([3],[function(v,Q){_.Tc(v,106,Q)}]),
no:new rd([3],[function(v,Q){_.Tc(v,37,Q)}]),
ns:new rd([3],[function(v,Q){_.Tc(v,40,Q)}]),
nt0:new rd([4],[function(v,Q){_.SS(v,36,Q)}]),
ntm:new rd([3],[function(v,Q){_.Tc(v,114,Q)}]),
nu:new rd([3],[function(v,Q){_.Tc(v,46,Q)}]),
nw:new rd([3],[function(v,Q){_.Tc(v,48,Q)}]),
o:new rd([1,3],[function(v,Q){Q=Q==null?Q:Fds(Q);_.yh(v,7,Q)},
function(v,Q){_.Tc(v,27,Q)}]),
p:new rd([3,0],[function(v,Q){_.Tc(v,19,Q)},
function(v,Q){_.DD(v,43,Q)}]),
pa:new rd([3],[function(v,Q){_.Tc(v,61,Q)}]),
pc:new rd([0],[function(v,Q){_.DD(v,88,Q)}]),
pd:new rd([3],[function(v,Q){_.Tc(v,60,Q)}]),
pf:new rd([3],[function(v,Q){_.Tc(v,67,Q)}]),
pg:new rd([3],[function(v,Q){_.Tc(v,72,Q)}]),
pi:new rd([2],[function(v,Q){_.yh(v,76,_.IN(Q))}]),
pp:new rd([3],[function(v,Q){_.Tc(v,52,Q)}]),
pt:new rd([4],[function(v,Q){_.SS(v,111,Q)}]),
q:new rd([4],[function(v,Q){_.SS(v,28,Q)}]),
r:new rd([3,0],[function(v,Q){_.Tc(v,6,Q)},
function(v,Q){_.DD(v,26,Q)}]),
ra:new rd([3],[function(v,Q){_.Tc(v,103,Q)}]),
rf:new rd([3],[function(v,Q){_.Tc(v,100,Q)}]),
rg:new rd([3],[function(v,Q){_.Tc(v,59,Q)}]),
rh:new rd([3],[function(v,Q){_.Tc(v,49,Q)}]),
rj:new rd([3],[function(v,Q){_.Tc(v,57,Q)}]),
ro:new rd([2],[function(v,Q){_.yh(v,78,_.IN(Q))}]),
rp:new rd([3],[function(v,Q){_.Tc(v,58,Q)}]),
rw:new rd([3],[function(v,Q){_.Tc(v,35,Q)}]),
rwa:new rd([3],[function(v,Q){_.Tc(v,64,Q)}]),
rwu:new rd([3],[function(v,Q){_.Tc(v,41,Q)}]),
s:new rd([3,0],[function(v,Q){_.Tc(v,33,Q)},
function(v,Q){v.setSize(Q)}]),
sb:new rd([0],[function(v,Q){_.DD(v,110,Q)}]),
sc:new rd([0],[function(v,Q){_.DD(v,89,Q)}]),
sg:new rd([3],[function(v,Q){_.Tc(v,82,Q)}]),
sl:new rd([0],[function(v,Q){_.DD(v,109,Q)}]),
sm:new rd([3],[function(v,Q){_.Tc(v,93,Q)}]),
t:new rd([4],[function(v,Q){v.setToken(Q)}]),
tm:new rd([3],[function(v,Q){_.Tc(v,113,Q)}]),
u:new rd([3],[function(v,Q){_.Tc(v,18,Q)}]),
ut:new rd([3],[function(v,Q){_.Tc(v,45,Q)}]),
v:new rd([0],[function(v,Q){_.DD(v,62,Q)}]),
vb:new rd([0],[function(v,Q){_.xh(v,68,Q)}]),
vf:new rd([4],[function(v,Q){_.SS(v,102,Q)}]),
vl:new rd([0],[function(v,Q){_.xh(v,69,Q)}]),
vm:new rd([3],[function(v,Q){_.Tc(v,98,Q)}]),
w:new rd([0],[function(v,Q){_.DD(v,12,Q)}]),
x:new rd([0],[function(v,Q){_.DD(v,9,Q)}]),
y:new rd([0],[function(v,Q){_.DD(v,10,Q)}]),
ya:new rd([2],[function(v,Q){_.yh(v,77,_.IN(Q))}]),
z:new rd([0],[function(v,Q){_.DD(v,11,Q)}])};
Vih.prototype.parse=function(v){var Q=new Yjs,V=new Yjs;if(v=="")v=!0;else{v=v.split("-");for(var E=!0,b=0;b<v.length;b++){var F=v[b];if(F.length==0)E=!1;else{var t=F,p=!1;var Z=t;var d=t.charAt(0);d!=d.toLowerCase()&&(p=!0,Z=t.charAt(0).toLowerCase()+t.substring(1));var w=Cgj;for(d=1;d<=Z.length;++d){var A=w,k=Z.substring(0,d);if(k.length==0?A.isEmpty():!cQn(A,k))break}Z=d==1?null:(Z=w.get(Z.substring(0,d-1)))?{option:t.substring(0,d-1),value:t.substring(d-1),signed:p,attributes:Z}:null;if(Z){t=
[];p=[];d=!1;for(w=0;w<Z.attributes.types.length;w++){A=Z.attributes.types[w];var T=Z.value;k=b;if(Z.signed&&A==1)for(var c=T.length;c<12&&k<v.length-1;)T+="-"+v[k+1],c=T.length,++k;else if(A==2)for(;k<v.length-1&&v[k+1].match(/^[\d\.]/);)T+="-"+v[k+1],++k;c=Z.attributes.setters[w];T=ODh(this,A)(Z.option,T,Q,V,c);if(T===null){d=!0;b=k;break}else t.push(A),p.push(T)}if(!d)for(Z=0;Z<p.length;Z++)w=t[Z],T=p[Z],Ds5(this,w)(F,T);E=E&&d}else E=!1}}v=E}return new Rr7(Q,V,v)};
var npf=function(v,Q,V,E,b,F){b(V,Q);v=v.charAt(0);F=F(v==v.toUpperCase());b(E,F)};
_.K=Vih.prototype;_.K.parseAndSetIntOption_=function(v,Q,V,E,b){if(Q=="")return 0;isFinite(Q)&&(Q=String(Q));Q=typeof Q==="string"?/^\s*-?0x/i.test(Q)?parseInt(Q,16):parseInt(Q,10):NaN;if(isNaN(Q))return 1;npf(v,Q,V,E,b,Number);return null};
_.K.logIntParseError_=function(){};
_.K.parseAndSetFloatOption_=function(v,Q,V,E,b){if(Q=="")return 0;var F=Number(Q);Q=F==0&&_.pE(Q)?NaN:F;if(isNaN(Q))return 1;npf(v,Q,V,E,b,Number);return null};
_.K.logFloatParseError_=function(){};
_.K.parseAndSetBoolOption_=function(v,Q,V,E,b){if(Q!="")return 2;npf(v,!0,V,E,b,Boolean);return null};
_.K.logBoolParseError_=function(){};
_.K.parseAndSetStringOption_=function(v,Q,V,E,b){if(Q=="")return 0;npf(v,Q,V,E,b,function(F){return F?"1":""});
return null};
_.K.logStringParseError_=function(){};
_.K.parseAndSetUint64Base64Option_=function(v,Q,V,E,b){if(Q=="")return 0;npf(v,Q,V,E,b,function(F){return F?1:0});
return null};
var ODh=function(v,Q){switch(Q){case 0:return(0,_.Nz)(v.parseAndSetIntOption_,v);case 2:return(0,_.Nz)(v.parseAndSetFloatOption_,v);case 3:return(0,_.Nz)(v.parseAndSetBoolOption_,v);case 4:return(0,_.Nz)(v.parseAndSetStringOption_,v);case 1:return(0,_.Nz)(v.parseAndSetUint64Base64Option_,v);default:return function(){}}},Ds5=function(v,Q){switch(Q){case 0:return(0,_.Nz)(v.logIntParseError_,v);
case 2:return(0,_.Nz)(v.logFloatParseError_,v);case 3:return(0,_.Nz)(v.logBoolParseError_,v);case 4:case 1:return(0,_.Nz)(v.logStringParseError_,v);default:return function(){}}},Rr7=function(v,Q,V){this.valueProto_=v;
this.signatureFlagProto_=Q;this.JSC$19999_valid_=V};
Rr7.prototype.isValid=function(){return this.JSC$19999_valid_};var mJh=function(v){this.JSC$20000_parser_=null;this.JSC$20000_components_=[];this.JSC$20000_parsedOptions_=null;lpf(this,v)},qjn=function(v){v.JSC$20000_parser_==null&&(v.JSC$20000_parser_=new Vih);
return v.JSC$20000_parser_},lpf=function(v,Q){v.JSC$20000_parsedOptions_=Q?typeof Q==="string"?qjn(v).parse(Q):Q:qjn(v).parse("")},$Z=function(v,Q){return v==Q?!1:!0};
_.K=mJh.prototype;_.K.JSC$20002_setCrop=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,_.YK(V,2),_.YK(Q.signatureFlagProto_,2))&&_.Tc(V,2,v);return this};
_.K.JSC$20002_setCircleCrop=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,YZ(V,51),YZ(Q.signatureFlagProto_,51))&&_.Tc(V,51,v);return this};
_.K.JSC$20002_setImageCrop=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,YZ(V,32),YZ(Q.signatureFlagProto_,32))&&_.Tc(V,32,v);return this};
_.K.JSC$20002_setHeight=function(v){var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,V.getHeight(),Q.signatureFlagProto_.getHeight())&&_.DD(V,13,v);return this};
_.K.setCenterCrop=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,_.YK(V,20),_.YK(Q.signatureFlagProto_,20))&&V.setCenterCrop(v);return this};
_.K.JSC$20002_setSmartCrop=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,_.YK(V,19),_.YK(Q.signatureFlagProto_,19))&&_.Tc(V,19,v);return this};
_.K.JSC$20002_setPad=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,YZ(V,60),YZ(Q.signatureFlagProto_,60))&&_.Tc(V,60,v);return this};
_.K.JSC$20002_setSmartCropUseFace=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,_.YK(V,67),_.YK(Q.signatureFlagProto_,67))&&_.Tc(V,67,v);return this};
_.K.JSC$20002_setSmartCropNoClip=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,_.YK(V,52),_.YK(Q.signatureFlagProto_,52))&&_.Tc(V,52,v);return this};
_.K.setSize=function(v){var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,V.getSize(),Q.signatureFlagProto_.getSize())&&V.setSize(v);return this};
_.K.setToken=function(v){v=v||void 0;var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,V.getToken(),Q.signatureFlagProto_.getToken())&&V.setToken(v);return this};
_.K.JSC$20002_setWidth=function(v){var Q=this.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(v,V.getWidth(),Q.signatureFlagProto_.getWidth())&&_.DD(V,12,v);return this};
_.K.clearOptions=function(){lpf(this,"");return this};
_.K.build=function(){this.JSC$20000_components_.length=0;var v=this.JSC$20000_parsedOptions_,Q=v.valueProto_;v=v.signatureFlagProto_;Ip(this,"s",Q.getSize(),v.getSize());Ip(this,"w",Q.getWidth(),v.getWidth());HK(this,"c",_.YK(Q,2),_.YK(v,2));HK(this,"d",_.YK(Q,3),_.YK(v,3));Ip(this,"h",Q.getHeight(),v.getHeight());HK(this,"s",YZ(Q,33),YZ(v,33));HK(this,"h",Q.getHtml(),v.getHtml());HK(this,"p",_.YK(Q,19),_.YK(v,19));HK(this,"pp",_.YK(Q,52),_.YK(v,52));HK(this,"pf",_.YK(Q,67),_.YK(v,67));HK(this,"n",
_.YK(Q,20),_.YK(v,20));Ip(this,"r",yD(Q,26),yD(v,26));HK(this,"r",_.YK(Q,6),_.YK(v,6));HK(this,"o",YZ(Q,27),YZ(v,27));var V=_.Ts(Q,7,_.pN);mB(this,"o",V,_.Ts(v,7,_.pN));V=_.Ts(Q,29,_.pN);mB(this,"j",V,_.Ts(v,29,_.pN));Ip(this,"x",yD(Q,9),yD(v,9));Ip(this,"y",yD(Q,10),yD(v,10));Ip(this,"z",yD(Q,11),yD(v,11));HK(this,"g",_.YK(Q,14),_.YK(v,14));Ip(this,"e",yD(Q,15),yD(v,15));mB(this,"f",_.Dg(Q,16),_.Dg(v,16));HK(this,"k",YZ(Q,17),YZ(v,17));HK(this,"u",YZ(Q,18),!0);HK(this,"ut",YZ(Q,45),!0);HK(this,"i",
YZ(Q,22),!0);HK(this,"a",YZ(Q,21),YZ(v,21));HK(this,"b",_.YK(Q,23),_.YK(v,23));Ip(this,"b",yD(Q,38),yD(v,38));Ip(this,"c",yD(Q,39),yD(v,39),16,8);mB(this,"q",_.Dg(Q,28),_.Dg(v,28));HK(this,"fh",YZ(Q,30),YZ(v,30));HK(this,"fv",YZ(Q,31),YZ(v,31));HK(this,"fg",_.YK(Q,34),_.YK(v,34));HK(this,"ci",YZ(Q,32),YZ(v,32));mB(this,"t",Q.getToken(),v.getToken());mB(this,"nt0",_.Dg(Q,36),_.Dg(v,36));HK(this,"rw",_.YK(Q,35),_.YK(v,35));HK(this,"rwu",_.YK(Q,41),_.YK(v,41));HK(this,"rwa",_.YK(Q,64),_.YK(v,64));HK(this,
"nw",_.YK(Q,48),_.YK(v,48));HK(this,"rh",_.YK(Q,49),_.YK(v,49));HK(this,"no",_.YK(Q,37),_.YK(v,37));HK(this,"ns",YZ(Q,40),YZ(v,40));Ip(this,"k",yD(Q,42),yD(v,42));Ip(this,"p",yD(Q,43),yD(v,43));Ip(this,"l",yD(Q,44),yD(v,44));Ip(this,"v",yD(Q,62),yD(v,62));HK(this,"nu",YZ(Q,46),YZ(v,46));HK(this,"ft",YZ(Q,50),YZ(v,50));HK(this,"cc",YZ(Q,51),YZ(v,51));HK(this,"nd",YZ(Q,53),YZ(v,53));HK(this,"ip",YZ(Q,54),YZ(v,54));HK(this,"nc",YZ(Q,55),YZ(v,55));Ip(this,"a",yD(Q,56),yD(v,56));HK(this,"rj",YZ(Q,57),
YZ(v,57));HK(this,"rp",YZ(Q,58),YZ(v,58));HK(this,"rg",YZ(Q,59),YZ(v,59));HK(this,"pd",YZ(Q,60),YZ(v,60));HK(this,"pa",YZ(Q,61),YZ(v,61));Ip(this,"m",yD(Q,63),yD(v,63));Ip(this,"vb",cK(Q,68),cK(v,68));Ip(this,"vl",cK(Q,69),cK(v,69));HK(this,"lf",YZ(Q,65),YZ(v,65));HK(this,"mv",YZ(Q,66),YZ(v,66));HK(this,"id",YZ(Q,70),YZ(v,70));Ip(this,"ic",yD(Q,71),!0);HK(this,"pg",_.YK(Q,72),_.YK(v,72));HK(this,"mo",YZ(Q,73),YZ(v,73));HK(this,"al",YZ(Q,74),YZ(v,74));Ip(this,"iv",cK(Q,75),cK(v,75));Ip(this,"pi",fX(Q,
76),fX(v,76));Ip(this,"ya",fX(Q,77),fX(v,77));Ip(this,"ro",fX(Q,78),fX(v,78));Ip(this,"fo",fX(Q,79),fX(v,79));HK(this,"df",YZ(Q,80),YZ(v,80));mB(this,"mm",_.Dg(Q,81),_.Dg(v,81));HK(this,"sg",YZ(Q,82),YZ(v,82));HK(this,"gd",YZ(Q,83),YZ(v,83));HK(this,"fm",YZ(Q,84),YZ(v,84));Ip(this,"ba",yD(Q,85),yD(v,85));Ip(this,"br",yD(Q,86),yD(v,86));Ip(this,"bc",Q.getBackgroundColor(),v.getBackgroundColor(),16,8);Ip(this,"pc",yD(Q,88),yD(v,88),16,8);Ip(this,"sc",yD(Q,89),yD(v,89),16,8);HK(this,"dv",YZ(Q,90),YZ(v,
90));HK(this,"md",YZ(Q,91),YZ(v,91));Ip(this,"cp",yD(Q,92),yD(v,92));HK(this,"sm",YZ(Q,93),YZ(v,93));Ip(this,"cv",yD(Q,94),yD(v,94));HK(this,"ng",YZ(Q,95),YZ(v,95));HK(this,"il",YZ(Q,96),YZ(v,96));HK(this,"lo",YZ(Q,97),YZ(v,97));HK(this,"vm",YZ(Q,98),YZ(v,98));mB(this,"dc",_.Dg(Q,99),_.Dg(v,99));HK(this,"rf",YZ(Q,100),YZ(v,100));mB(this,"vf",_.Dg(Q,102),_.Dg(v,102));HK(this,"ra",_.YK(Q,103),_.YK(v,103));HK(this,"ckm",YZ(Q,104),YZ(v,104));HK(this,"gm",YZ(Q,105),YZ(v,105));HK(this,"ngm",YZ(Q,106),YZ(v,
106));Ip(this,"em",yD(Q,107),yD(v,107));HK(this,"cr",YZ(Q,108),YZ(v,108));Ip(this,"sl",Q.getStoryboardLevel(),v.getStoryboardLevel());Ip(this,"sb",yD(Q,110),yD(v,110));mB(this,"pt",_.Dg(Q,111),_.Dg(v,111));mB(this,"gce",_.Dg(Q,112),_.Dg(v,112));HK(this,"tm",YZ(Q,113),YZ(v,113));HK(this,"ntm",YZ(Q,114),YZ(v,114));Ip(this,"mp",yD(Q,115),yD(v,115));return this.JSC$20000_components_.join("-")};
var Ip=function(v,Q,V,E,b,F){if(V!=null){var t=b==void 0||b!=10&&b!=16?10:b;V=Number(V).toString(t);b=new cRh;b.append(t==16?"0x":"");t=b.append;F==void 0?F="":(F-=V.length,F=F<=0?"":(0,_.t1p)("0",F));t.call(b,F);b.append(V);Sjq(v,Q,b.toString(),!!Number(E))}},HK=function(v,Q,V,E){V&&Sjq(v,Q,"",!!E)},mB=function(v,Q,V,E){V&&Sjq(v,Q,String(V),!!Number(E))},Sjq=function(v,Q,V,E){E&&(Q=Q.charAt(0).toUpperCase()+Q.substring(1));
v.JSC$20000_components_.push(Q+V)};_.HZ(NO,mJh);_.K=NO.prototype;_.K.JSC$20002_setCrop=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setCrop.call(this,v)};
_.K.JSC$20002_setHeight=function(v){v=v==null||v<0?void 0:v;v!=null&&this.setSize();return NO.superClass_.JSC$20002_setHeight.call(this,v)};
_.K.JSC$20002_setImageCrop=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setImageCrop.call(this,v)};
_.K.JSC$20002_setCircleCrop=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setCircleCrop.call(this,v)};
_.K.setSize=function(v){_.rG(v)&&(v=Math.max(v.width,v.height));v=v==null||v<0?void 0:v;v!=null&&(this.JSC$20002_setWidth(),this.JSC$20002_setHeight());return NO.superClass_.setSize.call(this,v)};
_.K.JSC$20002_setSmartCrop=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setSmartCrop.call(this,v)};
_.K.JSC$20002_setSmartCropNoClip=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setSmartCropNoClip.call(this,v)};
_.K.JSC$20002_setSmartCropUseFace=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setSmartCropUseFace.call(this,v)};
_.K.setCenterCrop=function(v){v&&Ub(this);return NO.superClass_.setCenterCrop.call(this,v)};
_.K.JSC$20002_setPad=function(v){v&&Ub(this);return NO.superClass_.JSC$20002_setPad.call(this,v)};
_.K.JSC$20002_setWidth=function(v){v=v==null||v<0?void 0:v;v!=null&&this.setSize();return NO.superClass_.JSC$20002_setWidth.call(this,v)};
var zrn=function(v){v.clearOptions();var Q=v.JSC$20000_parsedOptions_,V=Q.valueProto_;$Z(!0,_.YK(V,3),_.YK(Q.signatureFlagProto_,3))&&_.Tc(V,3,!0);return v},Ub=function(v){v.setCenterCrop();
v.JSC$20002_setCircleCrop();v.JSC$20002_setCrop();v.JSC$20002_setImageCrop();v.JSC$20002_setPad();v.JSC$20002_setSmartCrop();v.JSC$20002_setSmartCropNoClip();v.JSC$20002_setSmartCropUseFace()};
NO.prototype.build=function(){var v=this.JSC$20000_parsedOptions_.valueProto_;YZ(v,18)||YZ(v,45)?v.getSize()||this.setSize(0):(v=this.JSC$20000_parsedOptions_.valueProto_,v.getSize()||v.getWidth()||v.getHeight()||(this.setSize(),this.JSC$20002_setHeight(),this.JSC$20002_setWidth(),Ub(this)));return NO.superClass_.build.call(this)};var JQ0=/^[^\/]*\/\//,Nw5=function(v,Q){Q=Q===void 0?!1:Q;this.original_=v;this.originalPrefix_="";(v=this.original_.match(JQ0))&&v[0]?(this.originalPrefix_=v[0],v=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):v="http://"+this.original_;this.uri_=_.vR(v,!0);this.isFreeformUrl_=Q;this.JSC$20006_valid_=!0;this.obfuscated_=!1},xsn=function(v,Q){v.JSC$20008_pathPrefix_=v.JSC$20008_pathPrefix_?v.JSC$20008_pathPrefix_+("/"+Q):Q},vS=function(v){if(v.JSC$20008_components_==
void 0){var Q=v.uri_.getPath().substring(1);
v.JSC$20008_pathPrefix_=null;if(v.isFreeformUrl_){v.JSC$20008_components_=[];if((Q.match(/=/g)||[]).length>1)return v.JSC$20006_valid_=!1,v.JSC$20008_components_;var V=Q.indexOf("=");V!=-1?(v.JSC$20008_components_.push(Q.substr(0,V)),v.JSC$20008_components_.push(Q.substr(V+1))):v.JSC$20008_components_.push(Q);return v.JSC$20008_components_}v.JSC$20008_components_=Q.split("/");Q=v.JSC$20008_components_.length;Q>2&&v.JSC$20008_components_[0]=="u"&&(xsn(v,v.JSC$20008_components_[0]+"/"+v.JSC$20008_components_[1]),
v.JSC$20008_components_.shift(),v.JSC$20008_components_.shift(),Q-=2);if(Q==0||Q==4||Q>7)return v.JSC$20006_valid_=!1,v.JSC$20008_components_;if(Q==2)xsn(v,v.JSC$20008_components_[0]);else if(v.JSC$20008_components_[0]=="image")xsn(v,v.JSC$20008_components_[0]);else if(Q==7||Q==3)return v.JSC$20006_valid_=!1,v.JSC$20008_components_;if(Q<=3){v.obfuscated_=!0;Q==3&&(xsn(v,v.JSC$20008_components_[1]),v.JSC$20008_components_.shift(),--Q);--Q;V=v.JSC$20008_components_[Q];var E=V.indexOf("=");E!=-1&&(v.JSC$20008_components_[Q]=
V.substr(0,E),v.JSC$20008_components_.push(V.substr(E+1)))}}return v.JSC$20008_components_};
Nw5.prototype.isValid=function(){vS(this);return this.JSC$20006_valid_};
Nw5.prototype.isObfuscated=function(){vS(this);return this.obfuscated_};
var Bw8=function(v){vS(v);return v.isFreeformUrl_},Q4=function(v){vS(v);
v.JSC$20008_pathPrefix_==void 0&&(v.JSC$20008_pathPrefix_=null);return v.JSC$20008_pathPrefix_},gpd=function(v){switch(vS(v).length){case 7:return!0;
case 6:return Q4(v)==null;case 5:return!1;case 3:return!0;case 2:return Q4(v)==null;case 1:return!1;default:return!1}},V4=function(v,Q){if(Bw8(v))a:{switch(Q){case 7:Q=0;
break;case 4:if(!gpd(v)){v=null;break a}Q=1;break;default:v=null;break a}v=vS(v)[Q]}else if(v.isObfuscated())a:{var V=Q4(v)!=null?1:0;switch(Q){case 6:Q=V;break;case 4:if(!gpd(v)){v=null;break a}Q=1+V;break;default:v=null;break a}v=vS(v)[Q]}else a:{V=Q4(v)!=null?1:0;switch(Q){case 0:Q=V;break;case 1:Q=1+V;break;case 2:Q=2+V;break;case 3:Q=3+V;break;case 4:if(!gpd(v)){v=null;break a}Q=4+V;break;case 5:Q=gpd(v)?1:0;Q=4+V+Q;break;default:v=null;break a}v=vS(v)[Q]}return v};
Nw5.prototype.getOptions=function(){this.options_==void 0&&(this.options_=V4(this,4));return this.options_};var QII=function(){};
QII.prototype.parse=function(v,Q){return new UJ$(v,Q===void 0?!1:Q)};
var UJ$=function(v,Q){Nw5.call(this,v,Q===void 0?!1:Q)};
_.f(UJ$,Nw5);_.HZ(ES5,NO);var vSj;ES5.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ES5.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var v=ES5.superClass_.build.call(this),Q=[];Q4(this.parsedImageUrl_)!=null&&Q.push(Q4(this.parsedImageUrl_));var V=Bw8(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var E=this.parsedImageUrl_;E.obfuscatedData_==void 0&&(E.obfuscatedData_=V4(E,6));Q.push(E.obfuscatedData_+(v?"="+v:""))}else if(V){E=Q.push;var b=this.parsedImageUrl_;b.freeformUrlPath_===void 0&&(b.freeformUrlPath_=
V4(b,7));E.call(Q,b.freeformUrlPath_);v&&Q.push(v)}else E=Q.push,b=this.parsedImageUrl_,b.obfuscatedGaiaId_==void 0&&(b.obfuscatedGaiaId_=V4(b,0)),E.call(Q,b.obfuscatedGaiaId_),E=Q.push,b=this.parsedImageUrl_,b.photoId_==void 0&&(b.photoId_=V4(b,1)),E.call(Q,b.photoId_),E=Q.push,b=this.parsedImageUrl_,b.imageVersion_==void 0&&(b.imageVersion_=V4(b,2)),E.call(Q,b.imageVersion_),E=Q.push,b=this.parsedImageUrl_,b.signature_==void 0&&(b.signature_=V4(b,3)),E.call(Q,b.signature_),v&&Q.push(v),v=Q.push,
E=this.parsedImageUrl_,E.filename_==void 0&&(E.filename_=V4(E,5)),v.call(Q,E.filename_);Q=V?Q.join("="):Q.join("/");Q=_.vR(this.protocolPrefix_+this.JSC$20014_domain_+"/"+Q+(this.JSC$20014_query_?"?"+this.JSC$20014_query_:"")).toString();Q.startsWith("%3a//")&&(Q=Q.replace("%3a//","://"));return Q};var sZh=_.s$(["viewBox"]),uYh=_.s$(["width"]),jZ5=_.s$(["height"]),Wxn=_.s$(["fill"]),opq=_.s$(["id"]),XOh=_.s$(["x"]),aph=_.s$(["y"]);brm.prototype.getLength=function(){return this.parsedData.length};
brm.prototype.write=function(v){for(var Q=0,V=this.parsedData.length;Q<V;Q++)v.put(this.parsedData[Q],8)};
var ee8=function(v,Q){var V=new brm(Q);v.dataList.push(V);V=v.errorCorrectLevel;var E=1,b=encodeURI(Q).toString().replace(/%[0-9a-fA-F]{2}/g,"a");Q=b.length+(b.length!=Q?3:0);b=0;for(var F=Ew.length;b<=F;b++){var t=0;switch(V){case 1:t=Ew[b][0];break;case 0:t=Ew[b][1];break;case 3:t=Ew[b][2];break;case 2:t=Ew[b][3]}if(Q<=t)break;else E++}if(E>Ew.length)throw Error("Rk");v.typeNumber=E;v.dataCache=null};
F6n.prototype.isDark=function(v,Q){if(v<0||this.moduleCount<=v||Q<0||this.moduleCount<=Q)throw Error("Jk`"+v+"`"+Q);return this.modules[v][Q]};
for(var ZrI=function(v,Q,V){v.moduleCount=v.typeNumber*4+17;v.modules=Array(v.moduleCount);for(var E=0;E<v.moduleCount;E++){v.modules[E]=Array(v.moduleCount);for(var b=0;b<v.moduleCount;b++)v.modules[E][b]=null}rQq(v,0,0);rQq(v,v.moduleCount-7,0);rQq(v,0,v.moduleCount-7);E=$s8[v.typeNumber-1];for(b=0;b<E.length;b++)for(var F=0;F<E.length;F++){var t=E[b],p=E[F];if(v.modules[t][p]==null)for(var Z=-2;Z<=2;Z++)for(var d=-2;d<=2;d++)v.modules[t+Z][p+d]=Z==-2||Z==2||d==-2||d==2||Z==0&&d==0?!0:!1}for(E=
8;E<v.moduleCount-8;E++)v.modules[E][6]==null&&(v.modules[E][6]=E%2==0);for(E=8;E<v.moduleCount-8;E++)v.modules[6][E]==null&&(v.modules[6][E]=E%2==0);E=v.errorCorrectLevel<<3|V;for(b=E<<10;bm(b)-bm(1335)>=0;)b^=1335<<bm(b)-bm(1335);E=(E<<10|b)^21522;for(b=0;b<15;b++)F=!Q&&(E>>b&1)==1,b<6?v.modules[b][8]=F:b<8?v.modules[b+1][8]=F:v.modules[v.moduleCount-15+b][8]=F;for(b=0;b<15;b++)F=!Q&&(E>>b&1)==1,b<8?v.modules[8][v.moduleCount-b-1]=F:b<9?v.modules[8][15-b-1+1]=F:v.modules[8][15-b-1]=F;v.modules[v.moduleCount-
8][8]=!Q;if(v.typeNumber>=7){E=v.typeNumber;for(b=E<<12;bm(b)-bm(7973)>=0;)b^=7973<<bm(b)-bm(7973);E=E<<12|b;for(b=0;b<18;b++)F=!Q&&(E>>b&1)==1,v.modules[Math.floor(b/3)][b%3+v.moduleCount-8-3]=F;for(b=0;b<18;b++)F=!Q&&(E>>b&1)==1,v.modules[b%3+v.moduleCount-8-3][Math.floor(b/3)]=F}if(v.dataCache==null){b=v.typeNumber;F=v.dataList;Q=v.errorCorrectLevel;E=Ip8(b,Q);if(E==void 0)throw Error("Qk`"+b+"`"+Q);t=E.length/3;Q=[];for(p=0;p<t;p++){Z=E[p*3];d=E[p*3+1];for(var w=E[p*3+2],A=0;A<Z;A++)Q.push(new K6n(d,
w))}E=new irq;for(t=0;t<F.length;t++)p=F[t],E.put(p.mode,4),E.put(p.getLength(),HDn(p.mode,b)),p.write(E);for(t=b=0;t<Q.length;t++)b+=Q[t].dataCount;if(E.length>b*8)throw Error("Kk`"+E.length+"`"+b*8);for(E.length+4<=b*8&&E.put(0,4);E.length%8!=0;)mss(E,!1);for(;!(E.length>=b*8);){E.put(236,8);if(E.length>=b*8)break;E.put(17,8)}F=b=d=0;t=Array(Q.length);p=Array(Q.length);for(Z=0;Z<Q.length;Z++){A=Q[Z].dataCount;var k=Q[Z].totalCount-A;b=Math.max(b,A);F=Math.max(F,k);t[Z]=Array(A);for(w=0;w<t[Z].length;w++)t[Z][w]=
255&E.buffer[w+d];d+=A;w=k;A=new xT([1],0);for(k=0;k<w;k++)A=A.multiply(new xT([1,UsI(k)],0));w=A;A=(new xT(t[Z],w.getLength()-1)).mod(w);p[Z]=Array(w.getLength()-1);for(w=0;w<p[Z].length;w++)k=w+A.getLength()-p[Z].length,p[Z][w]=k>=0?A.get(k):0}for(w=E=0;w<Q.length;w++)E+=Q[w].totalCount;E=Array(E);for(w=d=0;w<b;w++)for(Z=0;Z<Q.length;Z++)w<t[Z].length&&(E[d++]=t[Z][w]);for(w=0;w<F;w++)for(Z=0;Z<Q.length;Z++)w<p[Z].length&&(E[d++]=p[Z][w]);v.dataCache=E}Q=v.dataCache;E=-1;b=v.moduleCount-1;F=7;t=
0;for(p=v.moduleCount-1;p>0;p-=2)for(p==6&&p--;;){for(Z=0;Z<2;Z++)v.modules[b][p-Z]==null&&(d=!1,t<Q.length&&(d=(Q[t]>>>F&1)==1),vcI(V,b,p-Z)&&(d=!d),v.modules[b][p-Z]=d,F--,F==-1&&(t++,F=7));b+=E;if(b<0||v.moduleCount<=b){b-=E;E=-E;break}}},rQq=function(v,Q,V){for(var E=-1;E<=7;E++)if(!(Q+E<=-1||v.moduleCount<=Q+E))for(var b=-1;b<=7;b++)V+b<=-1||v.moduleCount<=V+b||(v.modules[Q+E][V+b]=0<=E&&E<=6&&(b==0||b==6)||0<=b&&b<=6&&(E==0||E==6)||2<=E&&E<=4&&2<=b&&b<=4?!0:!1)},PAm=function(v){for(var Q=0,
V=0,E=0;E<8;E++){ZrI(v,!0,E);
var b=v;for(var F=b.moduleCount,t=0,p=0;p<F;p++)for(var Z=0;Z<F;Z++){for(var d=0,w=b.isDark(p,Z),A=-1;A<=1;A++)if(!(p+A<0||F<=p+A))for(var k=-1;k<=1;k++)Z+k<0||F<=Z+k||(A!=0||k!=0)&&w==b.isDark(p+A,Z+k)&&d++;d>5&&(t+=3+d-5)}for(p=0;p<F-1;p++)for(Z=0;Z<F-1;Z++)if(d=0,b.isDark(p,Z)&&d++,b.isDark(p+1,Z)&&d++,b.isDark(p,Z+1)&&d++,b.isDark(p+1,Z+1)&&d++,d==0||d==4)t+=3;for(p=0;p<F;p++)for(Z=0;Z<F-6;Z++)b.isDark(p,Z)&&!b.isDark(p,Z+1)&&b.isDark(p,Z+2)&&b.isDark(p,Z+3)&&b.isDark(p,Z+4)&&!b.isDark(p,Z+5)&&
b.isDark(p,Z+6)&&(t+=40);for(Z=0;Z<F;Z++)for(p=0;p<F-6;p++)b.isDark(p,Z)&&!b.isDark(p+1,Z)&&b.isDark(p+2,Z)&&b.isDark(p+3,Z)&&b.isDark(p+4,Z)&&!b.isDark(p+5,Z)&&b.isDark(p+6,Z)&&(t+=40);for(Z=d=0;Z<F;Z++)for(p=0;p<F;p++)b.isDark(p,Z)&&d++;b=t+=Math.abs(100*d/F/F-50)/5*10;if(E==0||Q>b)Q=b,V=E}return V},$s8=[[],
[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]],bm=function(v){for(var Q=0;v!=0;)Q++,v>>>=1;return Q},vcI=function(v,Q,V){switch(v){case 0:return(Q+V)%2==0;
case 1:return Q%2==0;case 2:return V%3==0;case 3:return(Q+V)%3==0;case 4:return(Math.floor(Q/2)+Math.floor(V/3))%2==0;case 5:return Q*V%2+Q*V%3==0;case 6:return(Q*V%2+Q*V%3)%2==0;case 7:return(Q*V%3+(Q+V)%2)%2==0;default:throw Error("Lk`"+v);}},HDn=function(v,Q){if(1<=Q&&Q<10)switch(v){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+v);}else if(Q<27)switch(v){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+v);}else if(Q<41)switch(v){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+v);}else throw Error("Nk`"+Q);},VI5=function(v){if(v<1)throw Error("Ok`"+v);
return Q5Y[v]},UsI=function(v){for(;v<0;)v+=255;
for(;v>=256;)v-=255;return Fl[v]},Fl=Array(256),Q5Y=Array(256),Ecm=0;Ecm<8;Ecm++)Fl[Ecm]=1<<Ecm;
for(var KR=8;KR<256;KR++)Fl[KR]=Fl[KR-4]^Fl[KR-5]^Fl[KR-6]^Fl[KR-8];for(var bJ5=0;bJ5<255;bJ5++)Q5Y[Fl[bJ5]]=bJ5;xT.prototype.get=function(v){return this.num[v]};
xT.prototype.getLength=function(){return this.num.length};
xT.prototype.multiply=function(v){for(var Q=Array(this.getLength()+v.getLength()-1),V=0;V<this.getLength();V++)for(var E=0;E<v.getLength();E++)Q[V+E]^=UsI(VI5(this.get(V))+VI5(v.get(E)));return new xT(Q,0)};
xT.prototype.mod=function(v){if(this.getLength()-v.getLength()<0)return this;for(var Q=VI5(this.get(0))-VI5(v.get(0)),V=Array(this.getLength()),E=0;E<this.getLength();E++)V[E]=this.get(E);for(E=0;E<v.getLength();E++)V[E]^=UsI(VI5(v.get(E))+Q);return(new xT(V,0)).mod(v)};
var Flh=[[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]],Ip8=function(v,Q){switch(Q){case 1:return Flh[(v-1)*4];case 0:return Flh[(v-1)*4+1];case 3:return Flh[(v-1)*4+2];case 2:return Flh[(v-1)*4+3]}};
irq.prototype.get=function(v){return(this.buffer[Math.floor(v/8)]>>>7-v%8&1)==1};
irq.prototype.put=function(v,Q){for(var V=0;V<Q;V++)mss(this,(v>>>Q-V-1&1)==1)};
var mss=function(v,Q){var V=Math.floor(v.length/8);v.buffer.length<=V&&v.buffer.push(0);Q&&(v.buffer[V]|=128>>>v.length%8);v.length++},Ew=[[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]],pYs=function(){var v=function(Q,V){this.JSC$20034__el=Q;this.JSC$20034__htOption=V};
v.prototype.draw=function(Q){function V(w,A){w=document.createElementNS("http://www.w3.org/2000/svg",w);for(var k in A)A.hasOwnProperty(k)&&(k==="href"?_.llY(w,A[k]):_.p$([_.hd(sZh),_.hd(uYh),_.hd(jZ5),_.hd(Wxn),_.hd(opq),_.hd(XOh),_.hd(aph)],w,k,A[k]));return w}
var E=this.JSC$20034__htOption,b=this.JSC$20034__el,F=Q.moduleCount;this.clear();var t=V("svg",{viewBox:"0 0 "+String(F)+" "+String(F),width:"100%",height:"100%",fill:E.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});b.appendChild(t);t.appendChild(V("rect",{fill:E.colorLight,width:"100%",height:"100%"}));t.appendChild(V("rect",{fill:E.colorDark,width:"1",height:"1",id:"template"}));for(var p=0;p<F;p++)for(var Z=0;Z<F;Z++)if(Q.isDark(p,Z)){var d=V("use",{x:String(p),y:String(Z),href:"#template"});
t.appendChild(d)}};
v.prototype.clear=function(){for(;this.JSC$20034__el.hasChildNodes();)this.JSC$20034__el.removeChild(this.JSC$20034__el.lastChild)};
return v}(),tiI=document.documentElement.tagName.toLowerCase()==="svg"?pYs:typeof CanvasRenderingContext2D!="undefined"?function(){var v=function(Q,V){this._bIsPainted=!1;
L6m();this.JSC$20034__htOption=V;this._elCanvas=document.createElement("canvas");this._elCanvas.width=V.width;this._elCanvas.height=V.height;Q.appendChild(this._elCanvas);this.JSC$20034__el=Q;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$20034__el.appendChild(this._elImage);this._bSupportDataURI=null};
v.prototype._onMakeImage=function(){var Q=this._elCanvas.toDataURL("image/png");this._elImage.src=Q;this._elImage.style.display="block";this._elCanvas.style.display="none"};
v.prototype._safeSetDataURI=function(Q,V){var E=this;E._fFail=V;E._fSuccess=Q;E._bSupportDataURI===null?(Q=_.RD("IMG"),V=function(){E._bSupportDataURI=!1;E._fFail&&E._fFail.call(E)},Q.onabort=V,Q.onerror=V,Q.onload=function(){E._bSupportDataURI=!0;
E._fSuccess&&E._fSuccess.call(E)},Q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):E._bSupportDataURI===!0&&E._fSuccess?E._fSuccess.call(E):E._bSupportDataURI===!1&&E._fFail&&E._fFail.call(E)};
v.prototype.draw=function(Q){var V=this._oContext,E=this.JSC$20034__htOption,b=Q.moduleCount,F=E.width/b,t=E.height/b,p=Math.round(F),Z=Math.round(t);this._elImage.style.display="none";this.clear();for(var d=0;d<b;d++)for(var w=0;w<b;w++){var A=Q.isDark(d,w),k=w*F,T=d*t;V.strokeStyle=A?E.colorDark:E.colorLight;V.lineWidth=1;V.fillStyle=A?E.colorDark:E.colorLight;V.fillRect(k,T,F,t);V.strokeRect(Math.floor(k)+.5,Math.floor(T)+.5,p,Z);V.strokeRect(Math.ceil(k)-.5,Math.ceil(T)-.5,p,Z)}this._bIsPainted=
!0};
v.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
v.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
v.prototype.round=function(Q){return Q?Math.floor(Q*1E3)/1E3:Q};
return v}():function(){var v=function(Q,V){this.JSC$20034__el=Q;
this.JSC$20034__htOption=V};
v.prototype.draw=function(Q){for(var V=this.JSC$20034__htOption,E=this.JSC$20034__el,b=Q.moduleCount,F=Math.floor(V.width/b),t=Math.floor(V.height/b),p=['<table style="border:0;border-collapse:collapse;">'],Z=0;Z<b;Z++){p.push("<tr>");for(var d=0;d<b;d++)p.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+F+"px;height:"+t+"px;background-color:"+(Q.isDark(Z,d)?V.colorDark:V.colorLight)+';"></td>');p.push("</tr>")}p.push("</table>");Q=p.join("");Q=_.U1Z(_.QbR,Q);_.tT(E,Q);
Q=E.childNodes[0];b=(V.width-Q.offsetWidth)/2;F=(V.height-Q.offsetHeight)/2;b>0&&F>0&&(Q.style.margin=F+"px "+b+"px")};
v.prototype.clear=function(){this.JSC$20034__el.textContent=""};
return v}();
dMj.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20037__android||this.JSC$20037__android>=3)&&this._oDrawing.makeImage()};
dMj.prototype.clear=function(){this._oDrawing.clear()};
_.bb.QRCode=dMj;var Kl7={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var iJ8=function(){};
iJ8.prototype.stringify=function(v){return _.bb.JSON.stringify(v,void 0)};
iJ8.prototype.parse=function(v){return _.bb.JSON.parse(v,void 0)};var Llf=function(){_.fv.call(this,"z")};
_.HZ(Llf,_.fv);var tIj=function(){_.fv.call(this,"y")};
_.HZ(tIj,_.fv);var p6m=null,ec5=function(){return p6m=p6m||new _.DO},ZJ$=function(v){_.fv.call(this,"serverreachability",v)};
_.HZ(ZJ$,_.fv);var P6I=function(v){var Q=ec5();Q.dispatchEvent(new ZJ$(Q,v))},dls=function(v,Q){_.fv.call(this,"statevent",v);
this.stat=Q};
_.HZ(dls,_.fv);var im=function(v){var Q=ec5();Q.dispatchEvent(new dls(Q,v))},hch=function(v,Q,V,E){_.fv.call(this,"timingevent",v);
this.size=Q;this.rtt=V;this.retries=E};
_.HZ(hch,_.fv);var w6j=function(v,Q,V){var E=ec5();E.dispatchEvent(new hch(E,v,Q,V))},AD8=function(v,Q){if(typeof v!=="function")throw Error("Sk");
return _.bb.setTimeout(function(){v()},Q)};var LR=function(){this.redactEnabled_=!0};
LR.prototype.disableRedact=function(){this.redactEnabled_=!1};
var k97=function(v,Q,V,E,b,F){v.info(function(){if(v.redactEnabled_)if(F){var t="";for(var p=F.split("&"),Z=0;Z<p.length;Z++){var d=p[Z].split("=");if(d.length>1){var w=d[0];d=d[1];var A=w.split("_");t=A.length>=2&&A[1]=="type"?t+(w+"="+d+"&"):t+(w+"=redacted&")}}}else t=null;else t=F;return"XMLHTTP REQ ("+E+") [attempt "+b+"]: "+Q+"\n"+V+"\n"+t})},Txj=function(v,Q,V,E,b,F,t){v.info(function(){return"XMLHTTP RESP ("+E+") [ attempt "+b+"]: "+Q+"\n"+V+"\n"+F+" "+t})},tN=function(v,Q,V,E){v.info(function(){return"XMLHTTP TEXT ("+
Q+"): "+YA0(v,V)+(E?" "+E:"")})},yDj=function(v,Q){v.info(function(){return"TIMEOUT: "+Q})};
LR.prototype.debug=function(){};
LR.prototype.info=function(){};
LR.prototype.warning=function(){};
var YA0=function(v,Q){if(!v.redactEnabled_)return Q;if(!Q)return null;try{var V=JSON.parse(Q);if(V)for(var E=0;E<V.length;E++)if(Array.isArray(V[E])){var b=V[E];if(!(b.length<2)){var F=b[1];if(Array.isArray(F)&&!(F.length<1)){var t=F[0];if(t!="noop"&&t!="stop"&&t!="close")for(var p=1;p<F.length;p++)F[p]=""}}}return(0,_.JG)(V)}catch(Z){return v.debug("Exception parsing expected JS array - probably was not JS"),Q}};var pR=function(v,Q,V,E,b){this.JSC$20059_channel_=v;this.JSC$20059_channelDebug_=Q;this.sid_=V;this.JSC$20059_rid_=E;this.JSC$20059_retryId_=b||1;this.JSC$20059_eventHandler_=new _.cE(this);this.timeout_=45E3;this.JSC$20059_extraHeaders_=null;this.JSC$20059_successful_=!1;this.JSC$20059_postData_=this.JSC$20059_requestUri_=this.JSC$20059_baseUri_=this.JSC$20059_type_=this.JSC$20059_requestStartTime_=this.JSC$20059_watchDogTimeoutTime_=this.JSC$20059_watchDogTimerId_=null;this.JSC$20059_pendingMessages_=
[];this.JSC$20059_xmlHttp_=null;this.JSC$20059_xmlHttpChunkStart_=0;this.JSC$20059_lastError_=this.JSC$20059_verb_=null;this.JSC$20059_lastStatusCode_=-1;this.JSC$20059_cancelled_=!1;this.JSC$20059_readyStateChangeThrottleMs_=0;this.JSC$20059_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new cDd},cDd=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},f6n=function(v,Q){switch(v){case 0:return"Non-200 return code ("+Q+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},G9d={},C6q={};
pR.prototype.setTimeout=function(v){this.timeout_=v};
var OJf=function(v,Q,V){v.JSC$20059_type_=1;v.JSC$20059_baseUri_=_.dn(Q.clone());v.JSC$20059_postData_=V;v.decodeChunks_=!0;MIh(v,null)},MIh=function(v,Q){v.JSC$20059_requestStartTime_=Date.now();
Dlq(v);v.JSC$20059_requestUri_=v.JSC$20059_baseUri_.clone();bMY(v.JSC$20059_requestUri_,"t",v.JSC$20059_retryId_);v.JSC$20059_xmlHttpChunkStart_=0;var V=v.JSC$20059_channel_.JSC$20078_supportsCrossDomainXhrs_;v.fetchResponseState_=new cDd;v.JSC$20059_xmlHttp_=Rc7(v.JSC$20059_channel_,V?Q:null,!v.JSC$20059_postData_);v.JSC$20059_readyStateChangeThrottleMs_>0&&(v.JSC$20059_readyStateChangeThrottle_=new _.FK((0,_.Nz)(v.JSC$20063_xmlHttpHandler_,v,v.JSC$20059_xmlHttp_),v.JSC$20059_readyStateChangeThrottleMs_));
v.JSC$20059_eventHandler_.listen(v.JSC$20059_xmlHttp_,"readystatechange",v.JSC$20063_readyStateChangeHandler_);Q=v.JSC$20059_extraHeaders_?_.gI.clone(v.JSC$20059_extraHeaders_):{};v.JSC$20059_postData_?(v.JSC$20059_verb_||(v.JSC$20059_verb_="POST"),Q["Content-Type"]="application/x-www-form-urlencoded",v.JSC$20059_xmlHttp_.send(v.JSC$20059_requestUri_,v.JSC$20059_verb_,v.JSC$20059_postData_,Q)):(v.JSC$20059_verb_="GET",v.JSC$20059_xmlHttp_.send(v.JSC$20059_requestUri_,v.JSC$20059_verb_,null,Q));P6I(1);
k97(v.JSC$20059_channelDebug_,v.JSC$20059_verb_,v.JSC$20059_requestUri_,v.JSC$20059_rid_,v.JSC$20059_retryId_,v.JSC$20059_postData_)};
pR.prototype.JSC$20063_readyStateChangeHandler_=function(v){v=v.target;var Q=this.JSC$20059_readyStateChangeThrottle_;Q&&_.xu(v)==3?(this.JSC$20059_channelDebug_.debug("Throttling readystatechange."),Q.fire()):this.JSC$20063_xmlHttpHandler_(v)};
pR.prototype.JSC$20063_xmlHttpHandler_=function(v){try{v==this.JSC$20059_xmlHttp_?nc5(this):this.JSC$20059_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Q){this.JSC$20059_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),l68(this)}finally{}};
var nc5=function(v){var Q=_.xu(v.JSC$20059_xmlHttp_),V=v.JSC$20059_xmlHttp_.JSC$9876_lastErrorCode_,E=v.JSC$20059_xmlHttp_.getStatus();if(!(Q<3||Q==3&&!l68(v))){v.JSC$20059_cancelled_||Q!=4||V==7||(V==8||E<=0?P6I(3):P6I(2));qAj(v);var b=v.JSC$20059_xmlHttp_.getStatus();v.JSC$20059_lastStatusCode_=b;V=SA0(v);l68(v)||v.JSC$20059_channelDebug_.debug(function(){return"No response text for uri "+v.JSC$20059_requestUri_+" status "+b});
v.JSC$20059_successful_=b==200;Txj(v.JSC$20059_channelDebug_,v.JSC$20059_verb_,v.JSC$20059_requestUri_,v.JSC$20059_rid_,v.JSC$20059_retryId_,Q,b);if(v.JSC$20059_successful_){if(v.decodeInitialResponse_&&!v.initialResponseDecoded_)if(E=zcm(v))tN(v.JSC$20059_channelDebug_,v.JSC$20059_rid_,E,"Initial handshake response via X-HTTP-Initial-Response"),v.initialResponseDecoded_=!0,JDq(v,E);else{v.JSC$20059_successful_=!1;v.JSC$20059_lastError_=3;im(12);v.JSC$20059_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
v.JSC$20059_rid_+")");eY(v);Nxh(v);return}v.decodeChunks_?xlm(v,Q,V):(tN(v.JSC$20059_channelDebug_,v.JSC$20059_rid_,V,null),JDq(v,V));Q==4&&eY(v);v.JSC$20059_successful_&&!v.JSC$20059_cancelled_&&(Q==4?Bxq(v.JSC$20059_channel_,v):(v.JSC$20059_successful_=!1,Dlq(v)))}else VNs(v.JSC$20059_xmlHttp_),b==400&&V.indexOf("Unknown SID")>0?(v.JSC$20059_lastError_=3,im(12),v.JSC$20059_channelDebug_.warning("XMLHTTP Unknown SID ("+v.JSC$20059_rid_+")")):(v.JSC$20059_lastError_=0,im(13),v.JSC$20059_channelDebug_.warning("XMLHTTP Bad status "+
b+" ("+v.JSC$20059_rid_+")")),eY(v),Nxh(v)}},zcm=function(v){return v.JSC$20059_xmlHttp_&&(v=qO(v.JSC$20059_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.pE(v)?v:null},SA0=function(v){if(!gcj(v))return v.JSC$20059_xmlHttp_.getResponseText();
var Q=v.JSC$20059_xmlHttp_.getResponse();if(Q==="")return"";var V="",E=Q.length,b=_.xu(v.JSC$20059_xmlHttp_)==4;if(!v.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return eY(v),Nxh(v),"";v.fetchResponseState_.textDecoder=new _.bb.TextDecoder}for(var F=0;F<E;F++)v.fetchResponseState_.responseArrivedForFetch=!0,V+=v.fetchResponseState_.textDecoder.decode(Q[F],{stream:!(b&&F==E-1)});Q.length=0;v.fetchResponseState_.responseBuffer+=V;v.JSC$20059_xmlHttpChunkStart_=0;return v.fetchResponseState_.responseBuffer},
l68=function(v){return v.JSC$20059_xmlHttp_?v.fetchResponseState_.responseArrivedForFetch?!0:!(!v.JSC$20059_xmlHttp_.getResponseText()&&!v.JSC$20059_xmlHttp_.getResponse()):!1},gcj=function(v){return v.JSC$20059_xmlHttp_?v.JSC$20059_verb_=="GET"&&v.JSC$20059_type_!=2&&v.JSC$20059_channel_.usesFetchStreams_:!1},xlm=function(v,Q,V){for(var E=!0,b;!v.JSC$20059_cancelled_&&v.JSC$20059_xmlHttpChunkStart_<V.length;)if(b=s5q(v,V),b==C6q){Q==4&&(v.JSC$20059_lastError_=4,im(14),E=!1);
tN(v.JSC$20059_channelDebug_,v.JSC$20059_rid_,null,"[Incomplete Response]");break}else if(b==G9d){v.JSC$20059_lastError_=4;im(15);tN(v.JSC$20059_channelDebug_,v.JSC$20059_rid_,V,"[Invalid Chunk]");E=!1;break}else tN(v.JSC$20059_channelDebug_,v.JSC$20059_rid_,b,null),JDq(v,b);gcj(v)&&v.JSC$20059_xmlHttpChunkStart_!=0&&(v.fetchResponseState_.responseBuffer=v.fetchResponseState_.responseBuffer.slice(v.JSC$20059_xmlHttpChunkStart_),v.JSC$20059_xmlHttpChunkStart_=0);Q!=4||V.length!=0||v.fetchResponseState_.responseArrivedForFetch||
(v.JSC$20059_lastError_=1,im(16),E=!1);v.JSC$20059_successful_=v.JSC$20059_successful_&&E;E?V.length>0&&!v.firstByteReceived_&&(v.firstByteReceived_=!0,Q=v.JSC$20059_channel_,Q.JSC$20078_backChannelRequest_==v&&Q.detectBufferingProxy_&&!Q.bpDetectionDone_&&(Q.JSC$20078_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+V.length),u4h(Q),Q.bpDetectionDone_=!0,im(11))):(tN(v.JSC$20059_channelDebug_,v.JSC$20059_rid_,V,"[Invalid Chunked Response]"),eY(v),Nxh(v))},s5q=function(v,
Q){var V=v.JSC$20059_xmlHttpChunkStart_,E=Q.indexOf("\n",V);
if(E==-1)return C6q;V=Number(Q.substring(V,E));if(isNaN(V))return G9d;E+=1;if(E+V>Q.length)return C6q;Q=Q.slice(E,E+V);v.JSC$20059_xmlHttpChunkStart_=E+V;return Q};
pR.prototype.cancel=function(){this.JSC$20059_cancelled_=!0;eY(this)};
var Dlq=function(v){v.JSC$20059_watchDogTimeoutTime_=Date.now()+v.timeout_;j5$(v,v.timeout_)},j5$=function(v,Q){if(v.JSC$20059_watchDogTimerId_!=null)throw Error("Tk");
v.JSC$20059_watchDogTimerId_=AD8((0,_.Nz)(v.JSC$20063_onWatchDogTimeout_,v),Q)},qAj=function(v){v.JSC$20059_watchDogTimerId_&&(_.bb.clearTimeout(v.JSC$20059_watchDogTimerId_),v.JSC$20059_watchDogTimerId_=null)};
pR.prototype.JSC$20063_onWatchDogTimeout_=function(){this.JSC$20059_watchDogTimerId_=null;var v=Date.now();v-this.JSC$20059_watchDogTimeoutTime_>=0?(yDj(this.JSC$20059_channelDebug_,this.JSC$20059_requestUri_),this.JSC$20059_type_!=2&&(P6I(3),im(17)),eY(this),this.JSC$20059_lastError_=2,Nxh(this)):(this.JSC$20059_channelDebug_.warning("WatchDog timer called too early"),j5$(this,this.JSC$20059_watchDogTimeoutTime_-v))};
var Nxh=function(v){v.JSC$20059_channel_.state_==0||v.JSC$20059_cancelled_||Bxq(v.JSC$20059_channel_,v)},eY=function(v){qAj(v);
_.t5(v.JSC$20059_readyStateChangeThrottle_);v.JSC$20059_readyStateChangeThrottle_=null;v.JSC$20059_eventHandler_.removeAll();if(v.JSC$20059_xmlHttp_){var Q=v.JSC$20059_xmlHttp_;v.JSC$20059_xmlHttp_=null;Q.abort();Q.dispose()}};
pR.prototype.getLastError=function(){return this.JSC$20059_lastError_};
var JDq=function(v,Q){try{var V=v.JSC$20059_channel_;if(V.state_!=0&&(V.JSC$20078_backChannelRequest_==v||Wlj(V.forwardChannelRequestPool_,v)))if(!v.initialResponseDecoded_&&Wlj(V.forwardChannelRequestPool_,v)&&V.state_==3){try{var E=V.wireCodec_.JSC$20073_parser_.parse(Q)}catch(p){E=null}if(Array.isArray(E)&&E.length==3){Q=E;if(Q[0]==0)a:if(V.JSC$20078_channelDebug_.debug("Server claims our backchannel is missing."),V.JSC$20078_backChannelTimerId_)V.JSC$20078_channelDebug_.debug("But we are currently starting the request.");
else{if(V.JSC$20078_backChannelRequest_)if(V.JSC$20078_backChannelRequest_.JSC$20059_requestStartTime_+3E3<v.JSC$20059_requestStartTime_)ocq(V),X6m(V);else break a;else V.JSC$20078_channelDebug_.warning("We do not have a BackChannel established");a6d(V);im(18)}else{V.JSC$20078_lastPostResponseArrayId_=Q[1];var b=V.JSC$20078_lastPostResponseArrayId_-V.JSC$20078_lastArrayId_;if(0<b){var F=Q[2];V.JSC$20078_channelDebug_.debug(F+" bytes (in "+b+" arrays) are outstanding on the BackChannel");F<37500&&
V.enableStreaming_&&V.JSC$20078_backChannelRetryCount_==0&&!V.JSC$20078_deadBackChannelTimerId_&&(V.JSC$20078_deadBackChannelTimerId_=AD8((0,_.Nz)(V.JSC$20080_onBackChannelDead_,V),6E3))}}if(rDs(V.forwardChannelRequestPool_)<=1&&V.forwardChannelFlushedCallback_){try{V.forwardChannelFlushedCallback_()}catch(p){}V.forwardChannelFlushedCallback_=void 0}}else V.JSC$20078_channelDebug_.debug("Bad POST response data returned"),Zs(V,11)}else if((v.initialResponseDecoded_||V.JSC$20078_backChannelRequest_==
v)&&ocq(V),!_.pE(Q)){var t=V.wireCodec_.JSC$20073_parser_.parse(Q);V.onInput_(t,v)}P6I(4)}catch(p){}};var $l5=function(v,Q){this.JSC$20066_mapId=v;this.map=Q;this.context=null};var I6s=function(v){this.maxPoolSizeConfigured_=v||10;_.bb.PerformanceNavigationTiming?(v=_.bb.performance.getEntriesByType("navigation"),v=v.length>0&&(v[0].nextHopProtocol=="hq"||v[0].nextHopProtocol=="h2")):v=!!(_.bb.chrome&&_.bb.chrome.loadTimes&&_.bb.chrome.loadTimes()&&_.bb.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20069_maxSize_=v?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20069_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20069_request_=null;this.JSC$20069_pendingMessages_=
[]},HJs=function(v){return v.JSC$20069_request_?!0:v.requestPool_?v.requestPool_.size>=v.JSC$20069_maxSize_:!1},rDs=function(v){return v.JSC$20069_request_?1:v.requestPool_?v.requestPool_.size:0},Wlj=function(v,Q){return v.JSC$20069_request_?v.JSC$20069_request_==Q:v.requestPool_?v.requestPool_.has(Q):!1},ml$=function(v,Q){v.requestPool_?v.requestPool_.add(Q):v.JSC$20069_request_=Q},Ul8=function(v,Q){v.JSC$20069_request_&&v.JSC$20069_request_==Q?v.JSC$20069_request_=null:v.requestPool_&&v.requestPool_.has(Q)&&
v.requestPool_.delete(Q)};
I6s.prototype.cancel=function(){this.JSC$20069_pendingMessages_=vX5(this);if(this.JSC$20069_request_)this.JSC$20069_request_.cancel(),this.JSC$20069_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var v=_.L(this.requestPool_.values()),Q=v.next();!Q.done;Q=v.next())Q.value.cancel();this.requestPool_.clear()}};
var vX5=function(v){if(v.JSC$20069_request_!=null)return v.JSC$20069_pendingMessages_.concat(v.JSC$20069_request_.JSC$20059_pendingMessages_);if(v.requestPool_!=null&&v.requestPool_.size!==0){var Q=v.JSC$20069_pendingMessages_;v=_.L(v.requestPool_.values());for(var V=v.next();!V.done;V=v.next())Q=Q.concat(V.value.JSC$20059_pendingMessages_);return Q}return _.jZ(v.JSC$20069_pendingMessages_)},QKh=function(v,Q){v.JSC$20069_pendingMessages_=v.JSC$20069_pendingMessages_.concat(Q)};var V4$=function(v,Q){var V=new LR;V.debug("TestLoadImage: loading "+v);if(_.bb.Image){var E=new Image;E.onload=_.pt(PS,V,"TestLoadImage: loaded",!0,Q,E);E.onerror=_.pt(PS,V,"TestLoadImage: error",!1,Q,E);E.onabort=_.pt(PS,V,"TestLoadImage: abort",!1,Q,E);E.ontimeout=_.pt(PS,V,"TestLoadImage: timeout",!1,Q,E);_.bb.setTimeout(function(){if(E.ontimeout)E.ontimeout()},1E4);
E.src=v}else Q(!1)},EXn=function(v,Q){var V=new LR,E=new AbortController,b=setTimeout(function(){E.abort();
PS(V,"TestPingServer: timeout",!1,Q)},1E4);
fetch(v,{signal:E.signal}).then(function(F){clearTimeout(b);F.ok?PS(V,"TestPingServer: ok",!0,Q):PS(V,"TestPingServer: server error",!1,Q)}).catch(function(){clearTimeout(b);
PS(V,"TestPingServer: error",!1,Q)})},PS=function(v,Q,V,E,b){try{v.debug(Q),b&&(b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null),E(V)}catch(F){}};var bA8=function(){this.JSC$20073_parser_=new iJ8};var Frm=function(v,Q,V){return V&&V.internalChannelParams?V.internalChannelParams[v]||Q:Q},dc=function(v){this.serverVersion_=0;
this.JSC$20078_outgoingMaps_=[];this.JSC$20078_channelDebug_=new LR;this.JSC$20078_hostPrefix_=this.JSC$20078_backChannelUri_=this.JSC$20078_forwardChannelUri_=this.JSC$20078_path_=this.JSC$20078_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20078_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20078_extraHeaders_=null;this.JSC$20078_nextMapId_=this.JSC$20078_nextRid_=0;this.JSC$20078_failFast_=Frm("failFast",!1,v);this.enableStreaming_=this.JSC$20078_deadBackChannelTimerId_=
this.JSC$20078_backChannelTimerId_=this.JSC$20078_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20078_lastPostResponseArrayId_=this.JSC$20078_lastArrayId_=-1;this.JSC$20078_backChannelAttemptId_=this.JSC$20078_backChannelRetryCount_=this.JSC$20078_forwardChannelRetryCount_=0;this.JSC$20078_baseRetryDelayMs_=Frm("baseRetryDelayMs",5E3,v);this.JSC$20078_retryDelaySeedMs_=Frm("retryDelaySeedMs",1E4,v);this.JSC$20078_forwardChannelMaxRetries_=
Frm("forwardChannelMaxRetries",2,v);this.JSC$20078_forwardChannelRequestTimeoutMs_=Frm("forwardChannelRequestTimeoutMs",2E4,v);this.JSC$20078_xmlHttpFactory_=v&&v.xmlHttpFactory||void 0;this.networkTestUrl_=v&&v.networkTestUrl||void 0;this.usesFetchStreams_=v&&v.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20078_supportsCrossDomainXhrs_=v&&v.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new I6s(v&&v.concurrentRequestLimit);this.wireCodec_=new bA8;
this.fastHandshake_=v&&v.fastHandshake||!1;this.encodeInitMessageHeaders_=v&&v.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20078_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=v&&v.blockingHandshake||!1;v&&v.disableRedact&&this.JSC$20078_channelDebug_.disableRedact();v&&v.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&v&&v.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;v&&v.longPollingTimeout&&v.longPollingTimeout>0&&(this.longPollingTimeout_=v.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
dc.prototype.JSC$20080_channelVersion_=8;dc.prototype.state_=1;
dc.prototype.connect=function(v,Q,V,E){this.JSC$20078_channelDebug_.debug("connect()");im(0);this.JSC$20078_path_=v;this.JSC$20078_extraParams_=Q||{};V&&E!==void 0&&(this.JSC$20078_extraParams_.OSID=V,this.JSC$20078_extraParams_.OAID=E);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20078_channelDebug_.debug("connectChannel_()");v=Krh(this,null,this.JSC$20078_path_);this.JSC$20078_channelDebug_.debug("GetForwardChannelUri: "+v);this.JSC$20078_forwardChannelUri_=v;iAd(this)};
dc.prototype.disconnect=function(){this.JSC$20078_channelDebug_.debug("disconnect()");Lr0(this);if(this.state_==3){var v=this.JSC$20078_nextRid_++,Q=this.JSC$20078_forwardChannelUri_.clone();_.Vf(Q,"SID",this.sid_);_.Vf(Q,"RID",v);_.Vf(Q,"TYPE","terminate");t4m(this,Q);v=new pR(this,this.JSC$20078_channelDebug_,this.sid_,v);v.JSC$20059_type_=2;v.JSC$20059_baseUri_=_.dn(Q.clone());Q=!1;if(_.bb.navigator&&_.bb.navigator.sendBeacon)try{Q=_.bb.navigator.sendBeacon(v.JSC$20059_baseUri_.toString(),"")}catch(V){}!Q&&
_.bb.Image&&((new Image).src=v.JSC$20059_baseUri_,Q=!0);Q||(v.JSC$20059_xmlHttp_=Rc7(v.JSC$20059_channel_,null),v.JSC$20059_xmlHttp_.send(v.JSC$20059_baseUri_));v.JSC$20059_requestStartTime_=Date.now();Dlq(v)}pu5(this)};
var X6m=function(v){v.JSC$20078_backChannelRequest_&&(u4h(v),v.JSC$20078_backChannelRequest_.cancel(),v.JSC$20078_backChannelRequest_=null)},Lr0=function(v){X6m(v);
v.JSC$20078_backChannelTimerId_&&(_.bb.clearTimeout(v.JSC$20078_backChannelTimerId_),v.JSC$20078_backChannelTimerId_=null);ocq(v);v.forwardChannelRequestPool_.cancel();v.JSC$20078_forwardChannelTimerId_&&(typeof v.JSC$20078_forwardChannelTimerId_==="number"&&_.bb.clearTimeout(v.JSC$20078_forwardChannelTimerId_),v.JSC$20078_forwardChannelTimerId_=null)};
dc.prototype.getState=function(){return this.state_};
var iAd=function(v){HJs(v.forwardChannelRequestPool_)||v.JSC$20078_forwardChannelTimerId_||(v.JSC$20078_forwardChannelTimerId_=!0,_.nv(v.JSC$20080_onStartForwardChannelTimer_,v),v.JSC$20078_forwardChannelRetryCount_=0)},ZAn=function(v,Q){if(rDs(v.forwardChannelRequestPool_)>=v.forwardChannelRequestPool_.JSC$20069_maxSize_-(v.JSC$20078_forwardChannelTimerId_?1:0))return!1;
if(v.JSC$20078_forwardChannelTimerId_)return v.JSC$20078_channelDebug_.debug("Use the retry request that is already scheduled."),v.JSC$20078_outgoingMaps_=Q.JSC$20059_pendingMessages_.concat(v.JSC$20078_outgoingMaps_),!0;if(v.state_==1||v.state_==2||v.JSC$20078_forwardChannelRetryCount_>=(v.JSC$20078_failFast_?0:v.JSC$20078_forwardChannelMaxRetries_))return!1;v.JSC$20078_channelDebug_.debug("Going to retry POST");v.JSC$20078_forwardChannelTimerId_=AD8((0,_.Nz)(v.JSC$20080_onStartForwardChannelTimer_,
v,Q),e4d(v,v.JSC$20078_forwardChannelRetryCount_));v.JSC$20078_forwardChannelRetryCount_++;return!0};
dc.prototype.JSC$20080_onStartForwardChannelTimer_=function(v){if(this.JSC$20078_forwardChannelTimerId_)if(this.JSC$20078_forwardChannelTimerId_=null,this.JSC$20078_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!v){this.JSC$20078_channelDebug_.debug("open_()");this.JSC$20078_nextRid_=Math.floor(Math.random()*1E5);v=this.JSC$20078_nextRid_++;var Q=new pR(this,this.JSC$20078_channelDebug_,"",v),V=this.JSC$20078_extraHeaders_;this.initHeaders_&&(V?(V=_.gI.clone(V),_.gI.extend(V,this.initHeaders_)):
V=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(Q.JSC$20059_extraHeaders_=V,V=null);var E;if(this.fastHandshake_)a:{for(var b=E=0;b<this.JSC$20078_outgoingMaps_.length;b++){b:{var F=this.JSC$20078_outgoingMaps_[b];if("__data__"in F.map&&(F=F.map.__data__,typeof F==="string")){F=F.length;break b}F=void 0}if(F===void 0)break;E+=F;if(E>4096){E=b;break a}if(E===4096||b===this.JSC$20078_outgoingMaps_.length-1){E=b+1;break a}}E=1E3}else E=1E3;E=P_7(this,Q,E);
b=this.JSC$20078_forwardChannelUri_.clone();_.Vf(b,"RID",v);_.Vf(b,"CVER",22);this.httpSessionIdParam_&&_.Vf(b,"X-HTTP-Session-Id",this.httpSessionIdParam_);t4m(this,b);V&&(this.encodeInitMessageHeaders_?E="headers="+_.EG(hhh(V))+"&"+E:this.httpHeadersOverwriteParam_&&wW5(b,this.httpHeadersOverwriteParam_,V));ml$(this.forwardChannelRequestPool_,Q);this.blockingHandshake_&&_.Vf(b,"TYPE","init");this.fastHandshake_?(_.Vf(b,"$req",E),_.Vf(b,"SID","null"),Q.decodeInitialResponse_=!0,OJf(Q,b,null)):OJf(Q,
b,E);this.state_=2}}else this.state_==3&&(v?dKh(this,v):this.JSC$20078_outgoingMaps_.length==0?this.JSC$20078_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):HJs(this.forwardChannelRequestPool_)||(dKh(this),this.JSC$20078_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var dKh=function(v,Q){var V;Q?V=Q.JSC$20059_rid_:V=v.JSC$20078_nextRid_++;var E=v.JSC$20078_forwardChannelUri_.clone();_.Vf(E,"SID",v.sid_);_.Vf(E,"RID",V);_.Vf(E,"AID",v.JSC$20078_lastArrayId_);t4m(v,E);v.httpHeadersOverwriteParam_&&v.JSC$20078_extraHeaders_&&wW5(E,v.httpHeadersOverwriteParam_,v.JSC$20078_extraHeaders_);V=new pR(v,v.JSC$20078_channelDebug_,v.sid_,V,v.JSC$20078_forwardChannelRetryCount_+1);v.httpHeadersOverwriteParam_===null&&(V.JSC$20059_extraHeaders_=v.JSC$20078_extraHeaders_);
Q&&(v.JSC$20078_outgoingMaps_=Q.JSC$20059_pendingMessages_.concat(v.JSC$20078_outgoingMaps_));Q=P_7(v,V,1E3);V.setTimeout(Math.round(v.JSC$20078_forwardChannelRequestTimeoutMs_*.5)+Math.round(v.JSC$20078_forwardChannelRequestTimeoutMs_*.5*Math.random()));ml$(v.forwardChannelRequestPool_,V);OJf(V,E,Q)},t4m=function(v,Q){v.JSC$20078_extraParams_&&_.gI.forEach(v.JSC$20078_extraParams_,function(V,E){_.Vf(Q,E,V)});
v.handler_&&_.gI.forEach({},function(V,E){_.Vf(Q,E,V)})},P_7=function(v,Q,V){V=Math.min(v.JSC$20078_outgoingMaps_.length,V);
var E=v.handler_?(0,_.Nz)(v.handler_.JSC$20084_badMapError,v.handler_,v):null;a:{for(var b=v.JSC$20078_outgoingMaps_,F=-1;;){var t=["count="+V];F==-1?V>0?(F=b[0].JSC$20066_mapId,t.push("ofs="+F)):F=0:t.push("ofs="+F);for(var p=!0,Z=0;Z<V;Z++){var d=b[Z].JSC$20066_mapId,w=b[Z].map;d-=F;if(d<0)F=Math.max(0,b[Z].JSC$20066_mapId-100),p=!1;else try{d="req"+d+"_"||"";try{var A=w instanceof Map?w:Object.entries(w);for(var k=_.L(A),T=k.next();!T.done;T=k.next()){var c=_.L(T.value),C=c.next().value,R=c.next().value,
l=R;_.rG(R)&&(l=(0,_.JG)(R));t.push(d+C+"="+encodeURIComponent(l))}}catch(S){throw t.push(d+"type="+encodeURIComponent("_badmap")),S;}}catch(S){E&&E(w)}}if(p){A=t.join("&");break a}}A=void 0}v=v.JSC$20078_outgoingMaps_.splice(0,V);Q.JSC$20059_pendingMessages_=v;return A},h45=function(v){v.JSC$20078_backChannelRequest_||v.JSC$20078_backChannelTimerId_||(v.JSC$20078_backChannelAttemptId_=1,_.nv(v.JSC$20080_onStartBackChannelTimer_,v),v.JSC$20078_backChannelRetryCount_=0)},a6d=function(v){if(v.JSC$20078_backChannelRequest_||
v.JSC$20078_backChannelTimerId_||v.JSC$20078_backChannelRetryCount_>=3)return!1;
v.JSC$20078_channelDebug_.debug("Going to retry GET");v.JSC$20078_backChannelAttemptId_++;v.JSC$20078_backChannelTimerId_=AD8((0,_.Nz)(v.JSC$20080_onStartBackChannelTimer_,v),e4d(v,v.JSC$20078_backChannelRetryCount_));v.JSC$20078_backChannelRetryCount_++;return!0};
dc.prototype.JSC$20080_onStartBackChannelTimer_=function(){this.JSC$20078_backChannelTimerId_=null;wuh(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20078_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20078_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20078_backChannelRequest_+" "+this.handshakeRttMs_);else{var v=4*this.handshakeRttMs_;this.JSC$20078_channelDebug_.info("BP detection timer enabled: "+v);this.bpDetectionTimerId_=AD8((0,_.Nz)(this.onBpDetectionTimer_,
this),v)}};
dc.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20078_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20078_backChannelRequest_.JSC$20059_xmlHttp_!=null){var v=this.JSC$20078_backChannelRequest_.JSC$20059_xmlHttp_.getResponseText();v&&this.JSC$20078_channelDebug_.warning("Timer should have been cancelled : "+v)}this.JSC$20078_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;im(10);X6m(this);wuh(this)}else this.JSC$20078_channelDebug_.warning("Invalid operation.")};
var u4h=function(v){v.bpDetectionTimerId_!=null&&(v.JSC$20078_channelDebug_.debug("Cancel the BP detection timer."),_.bb.clearTimeout(v.bpDetectionTimerId_),v.bpDetectionTimerId_=null)},wuh=function(v){v.JSC$20078_channelDebug_.debug("Creating new HttpRequest");
v.JSC$20078_backChannelRequest_=new pR(v,v.JSC$20078_channelDebug_,v.sid_,"rpc",v.JSC$20078_backChannelAttemptId_);v.httpHeadersOverwriteParam_===null&&(v.JSC$20078_backChannelRequest_.JSC$20059_extraHeaders_=v.JSC$20078_extraHeaders_);v.JSC$20078_backChannelRequest_.JSC$20059_readyStateChangeThrottleMs_=0;var Q=v.JSC$20078_backChannelUri_.clone();_.Vf(Q,"RID","rpc");_.Vf(Q,"SID",v.sid_);_.Vf(Q,"AID",v.JSC$20078_lastArrayId_);_.Vf(Q,"CI",v.enableStreaming_?"0":"1");!v.enableStreaming_&&v.longPollingTimeout_&&
_.Vf(Q,"TO",v.longPollingTimeout_);_.Vf(Q,"TYPE","xmlhttp");t4m(v,Q);v.httpHeadersOverwriteParam_&&v.JSC$20078_extraHeaders_&&wW5(Q,v.httpHeadersOverwriteParam_,v.JSC$20078_extraHeaders_);v.backChannelRequestTimeoutMs_&&v.JSC$20078_backChannelRequest_.setTimeout(v.backChannelRequestTimeoutMs_);var V=v.JSC$20078_backChannelRequest_,E=v.JSC$20078_hostPrefix_;V.JSC$20059_type_=1;V.JSC$20059_baseUri_=_.dn(Q.clone());V.JSC$20059_postData_=null;V.decodeChunks_=!0;MIh(V,E);v.JSC$20078_channelDebug_.debug("New Request created")};
dc.prototype.JSC$20080_onBackChannelDead_=function(){this.JSC$20078_deadBackChannelTimerId_!=null&&(this.JSC$20078_deadBackChannelTimerId_=null,X6m(this),a6d(this),im(19))};
var ocq=function(v){v.JSC$20078_deadBackChannelTimerId_!=null&&(_.bb.clearTimeout(v.JSC$20078_deadBackChannelTimerId_),v.JSC$20078_deadBackChannelTimerId_=null)},Bxq=function(v,Q){v.JSC$20078_channelDebug_.debug("Request complete");
var V=null;if(v.JSC$20078_backChannelRequest_==Q){ocq(v);u4h(v);v.JSC$20078_backChannelRequest_=null;var E=2}else if(Wlj(v.forwardChannelRequestPool_,Q))V=Q.JSC$20059_pendingMessages_,Ul8(v.forwardChannelRequestPool_,Q),E=1;else return;if(v.state_!=0)if(Q.JSC$20059_successful_)E==1?(w6j(Q.JSC$20059_postData_?Q.JSC$20059_postData_.length:0,Date.now()-Q.JSC$20059_requestStartTime_,v.JSC$20078_forwardChannelRetryCount_),iAd(v)):h45(v);else{var b=Q.JSC$20059_lastStatusCode_,F=Q.getLastError();if(F==3||
F==0&&b>0)v.JSC$20078_channelDebug_.debug("Not retrying due to error type"),b>200&&(v.errorResponseStatusCode_=Q.JSC$20059_lastStatusCode_);else{v.JSC$20078_channelDebug_.debug(function(){return"Maybe retrying, last error: "+f6n(F,v.errorResponseStatusCode_)});
if(E==1&&ZAn(v,Q)||E==2&&a6d(v))return;v.JSC$20078_channelDebug_.debug("Exceeded max number of retries")}V&&V.length>0&&QKh(v.forwardChannelRequestPool_,V);v.JSC$20078_channelDebug_.debug("Error: HTTP request failed");switch(F){case 1:Zs(v,5);break;case 4:Zs(v,10);break;case 3:Zs(v,6);break;default:Zs(v,2)}}},e4d=function(v,Q){var V=v.JSC$20078_baseRetryDelayMs_+Math.floor(Math.random()*v.JSC$20078_retryDelaySeedMs_);
v.isActive()||(v.JSC$20078_channelDebug_.debug("Inactive channel"),V*=2);return V*Q};
dc.prototype.onInput_=function(v,Q){for(var V=0;V<v.length;V++){var E=v[V],b=E[0];if(b<=this.JSC$20078_lastArrayId_)this.JSC$20078_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+b+", lastArrayId: "+this.JSC$20078_lastArrayId_);else if(b>this.JSC$20078_lastArrayId_+1&&this.JSC$20078_lastArrayId_>-1&&this.JSC$20078_channelDebug_.warning("Received non-consecutive message with arrayId: "+b+", lastArrayId: "+this.JSC$20078_lastArrayId_),this.JSC$20078_lastArrayId_=b,
E=E[1],this.state_==2)if(E[0]=="c"){this.sid_=E[1];this.JSC$20078_hostPrefix_=E[2];b=E[3];b!=null&&(this.JSC$20080_channelVersion_=b,this.JSC$20078_channelDebug_.info("VER="+this.JSC$20080_channelVersion_));b=E[4];b!=null&&(this.serverVersion_=b,this.JSC$20078_channelDebug_.info("SVER="+this.serverVersion_));E=E[5];E!=null&&typeof E==="number"&&E>0&&(this.backChannelRequestTimeoutMs_=E*=1.5,this.JSC$20078_channelDebug_.info("backChannelRequestTimeoutMs_="+E));if(E=Q.JSC$20059_xmlHttp_){var F=qO(E,
"X-Client-Wire-Protocol");F&&(b=this.forwardChannelRequestPool_,!b.requestPool_&&(_.Zt(F,"spdy")||_.Zt(F,"quic")||_.Zt(F,"h2"))&&(b.JSC$20069_maxSize_=b.maxPoolSizeConfigured_,b.requestPool_=new Set,b.JSC$20069_request_&&(ml$(b,b.JSC$20069_request_),b.JSC$20069_request_=null)));this.httpSessionIdParam_&&((E=qO(E,"X-HTTP-Session-Id"))?(this.httpSessionId_=E,_.Vf(this.JSC$20078_forwardChannelUri_,this.httpSessionIdParam_,E)):this.JSC$20078_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20084_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-Q.JSC$20059_requestStartTime_,this.JSC$20078_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));E=Q;b=Krh(this,this.JSC$20078_supportsCrossDomainXhrs_?this.JSC$20078_hostPrefix_:null,this.JSC$20078_path_);this.JSC$20078_channelDebug_.debug("GetBackChannelUri: "+b);this.JSC$20078_backChannelUri_=b;E.initialResponseDecoded_?(this.JSC$20078_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
Ul8(this.forwardChannelRequestPool_,E),b=E,(F=this.backChannelRequestTimeoutMs_)&&b.setTimeout(F),b.JSC$20059_watchDogTimerId_&&(qAj(b),Dlq(b)),this.JSC$20078_backChannelRequest_=E):h45(this);this.JSC$20078_outgoingMaps_.length>0&&iAd(this)}else E[0]!="stop"&&E[0]!="close"||Zs(this,7);else this.state_==3&&(E[0]=="stop"||E[0]=="close"?E[0]=="stop"?Zs(this,7):this.disconnect():E[0]!="noop"&&this.handler_&&this.handler_.JSC$20084_channelHandleArray(E),this.JSC$20078_backChannelRetryCount_=0)}};
var Zs=function(v,Q){v.JSC$20078_channelDebug_.info("Error code "+Q);if(Q==2){var V=(0,_.Nz)(v.testNetworkCallback_,v),E=v.networkTestUrl_,b=!E;E=new _.uY(E||"//www.google.com/images/cleardot.gif");_.bb.location&&_.bb.location.protocol=="http"||_.FE(E,"https");_.dn(E);b?V4$(E.toString(),V):EXn(E.toString(),V)}else im(2);v.onError_(Q)};
dc.prototype.testNetworkCallback_=function(v){v?(this.JSC$20078_channelDebug_.info("Successfully pinged google.com"),im(2)):(this.JSC$20078_channelDebug_.info("Failed to ping google.com"),im(1))};
dc.prototype.onError_=function(v){this.JSC$20078_channelDebug_.debug("HttpChannel: error - "+v);this.state_=0;this.handler_&&this.handler_.JSC$20084_channelError(v);pu5(this);Lr0(this)};
var pu5=function(v){v.state_=0;v.nonAckedMapsAtChannelClose_=[];if(v.handler_){var Q=vX5(v.forwardChannelRequestPool_);if(Q.length!=0||v.JSC$20078_outgoingMaps_.length!=0)v.JSC$20078_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+Q.length+", outgoing: "+v.JSC$20078_outgoingMaps_.length}),_.oh(v.nonAckedMapsAtChannelClose_,Q),_.oh(v.nonAckedMapsAtChannelClose_,v.JSC$20078_outgoingMaps_),v.forwardChannelRequestPool_.JSC$20069_pendingMessages_.length=0,_.jZ(v.JSC$20078_outgoingMaps_),
v.JSC$20078_outgoingMaps_.length=0;
v.handler_.JSC$20084_channelClosed()}},Ajm=function(v){if(v.state_==0)return v.nonAckedMapsAtChannelClose_;
var Q=[];_.oh(Q,vX5(v.forwardChannelRequestPool_));_.oh(Q,v.JSC$20078_outgoingMaps_);return Q},Krh=function(v,Q,V){var E=_.vR(V);
E.JSC$10112_domain_!=""?(Q&&_.KM(E,Q+"."+E.JSC$10112_domain_),_.iz(E,E.JSC$10112_port_)):(E=_.bb.location,E=U7I(E.protocol,Q?Q+"."+E.hostname:E.hostname,+E.port,V));Q=v.httpSessionIdParam_;V=v.httpSessionId_;Q&&V&&_.Vf(E,Q,V);_.Vf(E,"VER",v.JSC$20080_channelVersion_);t4m(v,E);return E},Rc7=function(v,Q,V){if(Q&&!v.JSC$20078_supportsCrossDomainXhrs_)throw Error("Uk");
Q=v.usesFetchStreams_&&!v.JSC$20078_xmlHttpFactory_?new _.NV(new eh$({streamBinaryChunks:V})):new _.NV(v.JSC$20078_xmlHttpFactory_);Q.JSC$9876_withCredentials_=v.JSC$20078_supportsCrossDomainXhrs_;return Q};
dc.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var kXs=function(){};
_.K=kXs.prototype;_.K.JSC$20084_channelOpened=function(){};
_.K.JSC$20084_channelHandleArray=function(){};
_.K.JSC$20084_channelError=function(){};
_.K.JSC$20084_channelClosed=function(){};
_.K.isActive=function(){return!0};
_.K.JSC$20084_badMapError=function(){};var TKd=function(){},wc=function(v,Q){_.DO.call(this);
this.JSC$20087_channel_=new dc(Q);this.JSC$20087_url_=v;this.messageUrlParams_=Q&&Q.messageUrlParams||null;v=Q&&Q.messageHeaders||null;Q&&Q.clientProtocolHeaderRequired&&(v?_.gI.set(v,"X-Client-Protocol","webchannel"):v=_.gI.create("X-Client-Protocol","webchannel"));this.JSC$20087_channel_.JSC$20078_extraHeaders_=v;v=Q&&Q.initMessageHeaders||null;Q&&Q.messageContentType&&(v?_.gI.set(v,"X-WebChannel-Content-Type",Q.messageContentType):v=_.gI.create("X-WebChannel-Content-Type",Q.messageContentType));
Q&&Q.clientProfile&&(v?_.gI.set(v,"X-WebChannel-Client-Profile",Q.clientProfile):v=_.gI.create("X-WebChannel-Client-Profile",Q.clientProfile));this.JSC$20087_channel_.initHeaders_=v;(v=Q&&Q.httpHeadersOverwriteParam)&&!_.pE(v)&&(this.JSC$20087_channel_.httpHeadersOverwriteParam_=v);this.supportsCrossDomainXhr_=Q&&Q.supportsCrossDomainXhr||!1;this.sendRawJson_=Q&&Q.sendRawJson||!1;(Q=Q&&Q.httpSessionIdParam)&&!_.pE(Q)&&(this.JSC$20087_channel_.httpSessionIdParam_=Q,_.gI.containsKey(this.messageUrlParams_,
Q)&&_.gI.remove(this.messageUrlParams_,Q));this.channelHandler_=new hN(this)};
_.HZ(wc,_.DO);wc.prototype.open=function(){this.JSC$20087_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20087_channel_.JSC$20078_supportsCrossDomainXhrs_=!0);this.JSC$20087_channel_.connect(this.JSC$20087_url_,this.messageUrlParams_||void 0)};
wc.prototype.close=function(){this.JSC$20087_channel_.disconnect()};
wc.prototype.send=function(v){var Q=this.JSC$20087_channel_;if(typeof v==="string"){var V={};V.__data__=v;v=V}else this.sendRawJson_&&(V={},V.__data__=(0,_.JG)(v),v=V);Q.JSC$20078_outgoingMaps_.push(new $l5(Q.JSC$20078_nextMapId_++,v));Q.state_==3&&iAd(Q)};
wc.prototype.disposeInternal=function(){this.JSC$20087_channel_.handler_=null;delete this.channelHandler_;this.JSC$20087_channel_.disconnect();delete this.JSC$20087_channel_;wc.superClass_.disposeInternal.call(this)};
var YZ0=function(v){Llf.call(this);v.__headers__&&(this.headers=v.__headers__,this.statusCode=v.__status__,delete v.__headers__,delete v.__status__);var Q=v.__sm__;Q?this.data=(this.metadataKey=_.gI.getAnyKey(Q))?_.gI.get(Q,this.metadataKey):Q:this.data=v};
_.HZ(YZ0,Llf);var yj5=function(v){tIj.call(this);this.status=1;this.errorCode=v};
_.HZ(yj5,tIj);var hN=function(v){this.JSC$20094_channel_=v};
_.HZ(hN,kXs);hN.prototype.JSC$20084_channelOpened=function(){this.JSC$20094_channel_.dispatchEvent("w")};
hN.prototype.JSC$20084_channelHandleArray=function(v){this.JSC$20094_channel_.dispatchEvent(new YZ0(v))};
hN.prototype.JSC$20084_channelError=function(v){this.JSC$20094_channel_.dispatchEvent(new yj5(v))};
hN.prototype.JSC$20084_channelClosed=function(){this.JSC$20094_channel_.dispatchEvent("x")};
var cjh=function(v,Q){this.transportChannel_=v;this.JSC$20097_channel_=Q},fHh=function(v){return Ajm(v.JSC$20097_channel_).map(function(Q){var V=v.transportChannel_;
Q=Q.map;"__data__"in Q?(Q=Q.__data__,V=V.sendRawJson_?(0,_.jSN)(Q):Q):V=Q;return V})};
cjh.prototype.commit=function(v){this.JSC$20097_channel_.forwardChannelFlushedCallback_=v};var AN=function(v){GXq.dispatchEvent(new C_0(GXq,v))},GXq=new _.DO,C_0=function(v,Q){_.fv.call(this,"statevent",v);
this.stat=Q};
_.f(C_0,_.fv);var kg=function(v,Q,V,E,b){this.JSC$20102_channel_=v;this.JSC$20102_channelDebug_=Q;this.sid_=V;this.JSC$20102_rid_=E;this.JSC$20102_retryId_=b||1;this.timeout_=45E3;this.JSC$20102_eventHandler_=new _.cE(this);this.pollingTimer_=new _.y0;this.pollingTimer_.setInterval(250)};
_.K=kg.prototype;_.K.JSC$20104_extraHeaders_=null;_.K.JSC$20104_successful_=!1;_.K.JSC$20104_watchDogTimerId_=null;_.K.JSC$20104_watchDogTimeoutTime_=null;_.K.JSC$20104_requestStartTime_=null;_.K.JSC$20104_type_=null;_.K.JSC$20104_baseUri_=null;_.K.JSC$20104_requestUri_=null;_.K.JSC$20104_postData_=null;_.K.JSC$20104_xmlHttp_=null;_.K.JSC$20104_xmlHttpChunkStart_=0;_.K.trident_=null;_.K.JSC$20104_verb_=null;_.K.JSC$20104_lastError_=null;_.K.JSC$20104_lastStatusCode_=-1;_.K.sendClose_=!0;
_.K.JSC$20104_cancelled_=!1;_.K.JSC$20104_readyStateChangeThrottleMs_=0;_.K.JSC$20104_readyStateChangeThrottle_=null;var M4I=function(v,Q){switch(v){case 0:return"Non-200 return code ("+Q+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},OA5={},DK5={};
kg.prototype.setTimeout=function(v){this.timeout_=v};
var nX8=function(v,Q,V){v.JSC$20104_type_=1;v.JSC$20104_baseUri_=_.dn(Q.clone());v.JSC$20104_postData_=V;v.decodeChunks_=!0;R4$(v,null)},lHn=function(v,Q,V,E,b){v.JSC$20104_type_=1;
v.JSC$20104_baseUri_=_.dn(Q.clone());v.JSC$20104_postData_=null;v.decodeChunks_=V;b&&(v.sendClose_=!1);R4$(v,E)},R4$=function(v,Q){v.JSC$20104_requestStartTime_=Date.now();
qZj(v);v.JSC$20104_requestUri_=v.JSC$20104_baseUri_.clone();bMY(v.JSC$20104_requestUri_,"t",v.JSC$20102_retryId_);v.JSC$20104_xmlHttpChunkStart_=0;v.JSC$20104_xmlHttp_=v.JSC$20102_channel_.JSC$20111_createXhrIo(v.JSC$20102_channel_.JSC$20111_shouldUseSecondaryDomains()?Q:null);v.JSC$20104_readyStateChangeThrottleMs_>0&&(v.JSC$20104_readyStateChangeThrottle_=new _.FK((0,_.Nz)(v.JSC$20104_xmlHttpHandler_,v,v.JSC$20104_xmlHttp_),v.JSC$20104_readyStateChangeThrottleMs_));v.JSC$20102_eventHandler_.listen(v.JSC$20104_xmlHttp_,
"readystatechange",v.JSC$20104_readyStateChangeHandler_);Q=v.JSC$20104_extraHeaders_?_.gI.clone(v.JSC$20104_extraHeaders_):{};v.JSC$20104_postData_?(v.JSC$20104_verb_="POST",Q["Content-Type"]="application/x-www-form-urlencoded",v.JSC$20104_xmlHttp_.send(v.JSC$20104_requestUri_,v.JSC$20104_verb_,v.JSC$20104_postData_,Q)):(v.JSC$20104_verb_="GET",v.sendClose_&&!_.E7&&(Q.Connection="close"),v.JSC$20104_xmlHttp_.send(v.JSC$20104_requestUri_,v.JSC$20104_verb_,null,Q));v.JSC$20102_channel_.notifyServerReachabilityEvent(1);
Q=v.JSC$20102_channelDebug_;var V=v.JSC$20104_postData_;if(V){var E="";V=V.split("&");for(var b=0;b<V.length;b++){var F=V[b].split("=");if(F.length>1){var t=F[0];F=F[1];var p=t.split("_");E=p.length>=2&&p[1]=="type"?E+(t+"="+F+"&"):E+(t+"=redacted&")}}}else E=null;Q.info("XMLHTTP REQ ("+v.JSC$20102_rid_+") [attempt "+v.JSC$20102_retryId_+"]: "+v.JSC$20104_verb_+"\n"+v.JSC$20104_requestUri_+"\n"+E)};
kg.prototype.JSC$20104_readyStateChangeHandler_=function(v){v=v.target;var Q=this.JSC$20104_readyStateChangeThrottle_;Q&&_.xu(v)==3?(this.JSC$20102_channelDebug_.debug("Throttling readystatechange."),Q.fire()):this.JSC$20104_xmlHttpHandler_(v)};
kg.prototype.JSC$20104_xmlHttpHandler_=function(v){try{if(v==this.JSC$20104_xmlHttp_)a:{var Q=_.xu(this.JSC$20104_xmlHttp_),V=this.JSC$20104_xmlHttp_.JSC$9876_lastErrorCode_,E=this.JSC$20104_xmlHttp_.getStatus();if(_.E7&&!_.bq("420+")){if(Q<4)break a}else if(Q<3||Q==3&&!this.JSC$20104_xmlHttp_.getResponseText())break a;this.JSC$20104_cancelled_||Q!=4||V==7||(V==8||E<=0?this.JSC$20102_channel_.notifyServerReachabilityEvent(3):this.JSC$20102_channel_.notifyServerReachabilityEvent(2));SZd(this);var b=
this.JSC$20104_xmlHttp_.getStatus();this.JSC$20104_lastStatusCode_=b;var F=this.JSC$20104_xmlHttp_.getResponseText();F||this.JSC$20102_channelDebug_.debug("No response text for uri "+this.JSC$20104_requestUri_+" status "+b);this.JSC$20104_successful_=b==200;this.JSC$20102_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20102_rid_+") [ attempt "+this.JSC$20102_retryId_+"]: "+this.JSC$20104_verb_+"\n"+this.JSC$20104_requestUri_+"\n"+Q+" "+b);if(this.JSC$20104_successful_){Q==4&&z4d(this);if(this.decodeChunks_){for(v=
!0;!this.JSC$20104_cancelled_&&this.JSC$20104_xmlHttpChunkStart_<F.length;){var t=Jjf(this,F);if(t==DK5){Q==4&&(this.JSC$20104_lastError_=4,AN(15),v=!1);NKh(this.JSC$20102_channelDebug_,this.JSC$20102_rid_,null,"[Incomplete Response]");break}else if(t==OA5){this.JSC$20104_lastError_=4;AN(16);NKh(this.JSC$20102_channelDebug_,this.JSC$20102_rid_,F,"[Invalid Chunk]");v=!1;break}else NKh(this.JSC$20102_channelDebug_,this.JSC$20102_rid_,t,null),xK0(this,t)}Q==4&&F.length==0&&(this.JSC$20104_lastError_=
1,AN(17),v=!1);this.JSC$20104_successful_=this.JSC$20104_successful_&&v;v||(NKh(this.JSC$20102_channelDebug_,this.JSC$20102_rid_,F,"[Invalid Chunked Response]"),z4d(this),BK8(this))}else NKh(this.JSC$20102_channelDebug_,this.JSC$20102_rid_,F,null),xK0(this,F);this.JSC$20104_successful_&&!this.JSC$20104_cancelled_&&(Q==4?this.JSC$20102_channel_.JSC$20111_onRequestComplete(this):(this.JSC$20104_successful_=!1,qZj(this)))}else b==400&&F.indexOf("Unknown SID")>0?(this.JSC$20104_lastError_=3,AN(13),this.JSC$20102_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20102_rid_+")")):(this.JSC$20104_lastError_=0,AN(14),this.JSC$20102_channelDebug_.warning("XMLHTTP Bad status "+b+" ("+this.JSC$20102_rid_+")")),z4d(this),BK8(this)}else this.JSC$20102_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(p){this.JSC$20102_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Jjf=function(v,Q){var V=v.JSC$20104_xmlHttpChunkStart_,E=Q.indexOf("\n",V);if(E==-1)return DK5;V=Number(Q.substring(V,E));if(isNaN(V))return OA5;E+=1;if(E+V>Q.length)return DK5;Q=Q.slice(E,E+V);v.JSC$20104_xmlHttpChunkStart_=E+V;return Q};
kg.prototype.cancel=function(){this.JSC$20104_cancelled_=!0;z4d(this)};
var qZj=function(v){v.JSC$20104_watchDogTimeoutTime_=Date.now()+v.timeout_;gXq(v,v.timeout_)},gXq=function(v,Q){if(v.JSC$20104_watchDogTimerId_!=null)throw Error("Tk");
v.JSC$20104_watchDogTimerId_=B1((0,_.Nz)(v.JSC$20104_onWatchDogTimeout_,v),Q)},SZd=function(v){v.JSC$20104_watchDogTimerId_&&(_.bb.clearTimeout(v.JSC$20104_watchDogTimerId_),v.JSC$20104_watchDogTimerId_=null)};
kg.prototype.JSC$20104_onWatchDogTimeout_=function(){this.JSC$20104_watchDogTimerId_=null;var v=Date.now();v-this.JSC$20104_watchDogTimeoutTime_>=0?(this.JSC$20102_channelDebug_.info("TIMEOUT: "+this.JSC$20104_requestUri_),this.JSC$20104_type_!=2&&this.JSC$20102_channel_.notifyServerReachabilityEvent(3),z4d(this),this.JSC$20104_lastError_=2,AN(18),BK8(this)):(this.JSC$20102_channelDebug_.warning("WatchDog timer called too early"),gXq(this,this.JSC$20104_watchDogTimeoutTime_-v))};
var BK8=function(v){v.JSC$20102_channel_.JSC$20111_isClosed()||v.JSC$20104_cancelled_||v.JSC$20102_channel_.JSC$20111_onRequestComplete(v)},z4d=function(v){SZd(v);
_.t5(v.JSC$20104_readyStateChangeThrottle_);v.JSC$20104_readyStateChangeThrottle_=null;v.pollingTimer_.stop();v.JSC$20102_eventHandler_.removeAll();if(v.JSC$20104_xmlHttp_){var Q=v.JSC$20104_xmlHttp_;v.JSC$20104_xmlHttp_=null;Q.abort();Q.dispose()}v.trident_&&(v.trident_=null)};
kg.prototype.getLastError=function(){return this.JSC$20104_lastError_};
var xK0=function(v,Q){try{v.JSC$20102_channel_.JSC$20111_onRequestData(v,Q),v.JSC$20102_channel_.notifyServerReachabilityEvent(4)}catch(V){}};var NKh=function(v,Q,V,E){var b=v.info;a:if(V&&V!="y2f%"){try{var F=JSON.parse(V);if(F)for(var t=0;t<F.length;t++)if(Array.isArray(F[t])){var p=F[t];if(!(p.length<2)){var Z=p[1];if(Array.isArray(Z)&&!(Z.length<1)){var d=Z[0];if(d!="noop"&&d!="stop")for(var w=1;w<Z.length;w++)Z[w]=""}}}var A=(0,_.JG)(F);break a}catch(k){v.debug("Exception parsing expected JS array - probably was not JS");A=V;break a}A=void 0}else A=V;b.call(v,"XMLHTTP TEXT ("+Q+"): "+A+(E?" "+E:""))};
gj.prototype.debug=function(v){this.info(v)};
gj.prototype.info=function(){};
gj.prototype.warning=function(){};var sK7=function(v,Q){this.JSC$20109_channel_=v;this.JSC$20109_channelDebug_=Q;this.JSC$20109_parser_=new iJ8};
_.K=sK7.prototype;_.K.JSC$20111_extraHeaders_=null;_.K.JSC$20111_request_=null;_.K.receivedIntermediateResult_=!1;_.K.JSC$20111_path_=null;_.K.state_=null;_.K.JSC$20111_lastStatusCode_=-1;_.K.JSC$20111_hostPrefix_=null;_.K.blockedPrefix_=null;
_.K.connect=function(v){this.JSC$20111_path_=v;v=u_j(this.JSC$20109_channel_,this.JSC$20111_path_);AN(3);Date.now();var Q=this.JSC$20109_channel_.firstTestResults_;Q!=null?(this.JSC$20111_hostPrefix_=Q[0],(this.blockedPrefix_=Q[1])?(this.state_=1,jK0(this)):(this.state_=2,Wrn(this))):(bMY(v,"MODE","init"),this.JSC$20111_request_=new kg(this,this.JSC$20109_channelDebug_),this.JSC$20111_request_.JSC$20104_extraHeaders_=this.JSC$20111_extraHeaders_,lHn(this.JSC$20111_request_,v,!1,null,!0),this.state_=
0)};
var jK0=function(v){var Q=oXn(v.JSC$20109_channel_,v.blockedPrefix_,"/mail/images/cleardot.gif");_.dn(Q);Axq(Q.toString(),5E3,(0,_.Nz)(v.checkBlockedCallback_,v),3,2E3);v.notifyServerReachabilityEvent(1)};
sK7.prototype.checkBlockedCallback_=function(v){if(v)this.state_=2,Wrn(this);else{AN(4);var Q=this.JSC$20109_channel_;Q.JSC$20112_channelDebug_.debug("Test Connection Blocked");Q.JSC$20116_lastStatusCode_=Q.connectionTest_.JSC$20111_lastStatusCode_;TJ(Q,9)}v&&this.notifyServerReachabilityEvent(2)};
var Wrn=function(v){v.JSC$20109_channelDebug_.debug("TestConnection: starting stage 2");var Q=v.JSC$20109_channel_.secondTestResults_;Q!=null?(v.JSC$20109_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+Q?"Buffered":"Unbuffered"),AN(5),Q?(AN(11),Xu5(v.JSC$20109_channel_,v,!1)):(AN(12),Xu5(v.JSC$20109_channel_,v,!0))):(v.JSC$20111_request_=new kg(v,v.JSC$20109_channelDebug_),v.JSC$20111_request_.JSC$20104_extraHeaders_=v.JSC$20111_extraHeaders_,Q=aHq(v.JSC$20109_channel_,
v.JSC$20111_hostPrefix_,v.JSC$20111_path_),AN(5),bMY(Q,"TYPE","xmlhttp"),lHn(v.JSC$20111_request_,Q,!1,v.JSC$20111_hostPrefix_,!1))};
_.K=sK7.prototype;_.K.JSC$20111_createXhrIo=function(v){return this.JSC$20109_channel_.JSC$20111_createXhrIo(v)};
_.K.abort=function(){this.JSC$20111_request_&&(this.JSC$20111_request_.cancel(),this.JSC$20111_request_=null);this.JSC$20111_lastStatusCode_=-1};
_.K.JSC$20111_isClosed=function(){return!1};
_.K.JSC$20111_onRequestData=function(v,Q){this.JSC$20111_lastStatusCode_=v.JSC$20104_lastStatusCode_;if(this.state_==0)if(this.JSC$20109_channelDebug_.debug("TestConnection: Got data for stage 1"),Q){try{var V=this.JSC$20109_parser_.parse(Q)}catch(E){rj5(this.JSC$20109_channel_,this);return}this.JSC$20111_hostPrefix_=V[0];this.blockedPrefix_=V[1]}else this.JSC$20109_channelDebug_.debug("TestConnection: Null responseText"),rj5(this.JSC$20109_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(AN(7),Date.now()):Q=="11111"?(AN(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20111_lastStatusCode_=200,this.JSC$20111_request_.cancel(),this.JSC$20109_channelDebug_.debug("Test connection succeeded; using streaming connection"),AN(12),Xu5(this.JSC$20109_channel_,this,!0)):(AN(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.K.JSC$20111_onRequestComplete=function(){this.JSC$20111_lastStatusCode_=this.JSC$20111_request_.JSC$20104_lastStatusCode_;this.JSC$20111_request_.JSC$20104_successful_?this.state_==0?(this.JSC$20109_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,jK0(this)):(this.state_=2,Wrn(this))):this.state_==2&&(this.JSC$20109_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20109_channelDebug_.debug("Test connection succeeded; using streaming connection"),
AN(12),Xu5(this.JSC$20109_channel_,this,!0)):(this.JSC$20109_channelDebug_.debug("Test connection failed; not using streaming"),AN(11),Xu5(this.JSC$20109_channel_,this,!1))):(this.JSC$20109_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?AN(9):this.state_==2&&AN(10),rj5(this.JSC$20109_channel_,this,this.JSC$20111_request_.getLastError()))};
_.K.JSC$20111_shouldUseSecondaryDomains=function(){return this.JSC$20109_channel_.JSC$20111_shouldUseSecondaryDomains()};
_.K.isActive=function(){return this.JSC$20109_channel_.isActive()};
_.K.notifyServerReachabilityEvent=function(v){this.JSC$20109_channel_.notifyServerReachabilityEvent(v)};var Yg=function(v,Q,V){this.state_=1;this.JSC$20112_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20112_channelDebug_=new gj;this.JSC$20112_parser_=new iJ8;this.firstTestResults_=v||null;this.secondTestResults_=Q!=null?Q:null;this.asyncTest_=V||!1},$Kf=function(v,Q){this.JSC$20114_mapId=v;
this.map=Q;this.context=null};
_.K=Yg.prototype;_.K.JSC$20116_extraHeaders_=null;_.K.JSC$20116_extraParams_=null;_.K.forwardChannelRequest_=null;_.K.JSC$20116_backChannelRequest_=null;_.K.JSC$20116_path_=null;_.K.JSC$20116_forwardChannelUri_=null;_.K.JSC$20116_backChannelUri_=null;_.K.JSC$20116_hostPrefix_=null;_.K.JSC$20116_nextRid_=0;_.K.JSC$20116_nextMapId_=0;_.K.handler_=null;_.K.JSC$20116_forwardChannelTimerId_=null;_.K.JSC$20116_backChannelTimerId_=null;_.K.JSC$20116_deadBackChannelTimerId_=null;_.K.connectionTest_=null;
_.K.useChunked_=null;_.K.JSC$20116_lastArrayId_=-1;_.K.JSC$20116_lastPostResponseArrayId_=-1;_.K.JSC$20116_lastStatusCode_=-1;_.K.JSC$20116_forwardChannelRetryCount_=0;_.K.JSC$20116_backChannelRetryCount_=0;_.K.JSC$20116_channelVersion_=8;var IH7={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},HAj=function(v,Q,V,E){_.fv.call(this,"timingevent",v);this.size=Q;this.rtt=V;this.retries=E};
_.HZ(HAj,_.fv);var mKm=function(v){_.fv.call(this,"serverreachability",v)};
_.HZ(mKm,_.fv);Yg.prototype.connect=function(v,Q,V,E,b){this.JSC$20112_channelDebug_.debug("connect()");AN(0);this.JSC$20116_path_=Q;this.JSC$20116_extraParams_=V||{};E&&b!==void 0&&(this.JSC$20116_extraParams_.OSID=E,this.JSC$20116_extraParams_.OAID=b);this.asyncTest_?(B1((0,_.Nz)(this.connectTest_,this,v),100),UKh(this)):this.connectTest_(v)};
Yg.prototype.disconnect=function(){this.JSC$20112_channelDebug_.debug("disconnect()");v28(this);if(this.state_==3){var v=this.JSC$20116_nextRid_++,Q=this.JSC$20116_forwardChannelUri_.clone();_.Vf(Q,"SID",this.sid_);_.Vf(Q,"RID",v);_.Vf(Q,"TYPE","terminate");Qu5(this,Q);v=new kg(this,this.JSC$20112_channelDebug_,this.sid_,v);v.JSC$20104_type_=2;v.JSC$20104_baseUri_=_.dn(Q.clone());(new Image).src=v.JSC$20104_baseUri_.toString();v.JSC$20104_requestStartTime_=Date.now();qZj(v)}Vvj(this)};
Yg.prototype.connectTest_=function(v){this.JSC$20112_channelDebug_.debug("connectTest_()");this.connectionTest_=new sK7(this,this.JSC$20112_channelDebug_);this.connectionTest_.JSC$20111_extraHeaders_=this.JSC$20116_extraHeaders_;this.connectionTest_.JSC$20109_parser_=this.JSC$20112_parser_;this.connectionTest_.connect(v)};
var UKh=function(v){v.JSC$20112_channelDebug_.debug("connectChannel_()");v.JSC$20116_ensureInState_(1,0);v.JSC$20116_forwardChannelUri_=u_j(v,v.JSC$20116_path_);E2q(v)},v28=function(v){v.connectionTest_&&(v.connectionTest_.abort(),v.connectionTest_=null);
v.JSC$20116_backChannelRequest_&&(v.JSC$20116_backChannelRequest_.cancel(),v.JSC$20116_backChannelRequest_=null);v.JSC$20116_backChannelTimerId_&&(_.bb.clearTimeout(v.JSC$20116_backChannelTimerId_),v.JSC$20116_backChannelTimerId_=null);b1h(v);v.forwardChannelRequest_&&(v.forwardChannelRequest_.cancel(),v.forwardChannelRequest_=null);v.JSC$20116_forwardChannelTimerId_&&(_.bb.clearTimeout(v.JSC$20116_forwardChannelTimerId_),v.JSC$20116_forwardChannelTimerId_=null)},FOj=function(v,Q){if(v.state_==0)throw Error("Wk");
v.JSC$20112_outgoingMaps_.length==1E3&&v.JSC$20112_parser_.stringify(Q);v.JSC$20112_outgoingMaps_.push(new $Kf(v.JSC$20116_nextMapId_++,Q));v.state_!=2&&v.state_!=3||E2q(v)};
Yg.prototype.JSC$20111_isClosed=function(){return this.state_==0};
Yg.prototype.getState=function(){return this.state_};
var E2q=function(v){v.forwardChannelRequest_||v.JSC$20116_forwardChannelTimerId_||(v.JSC$20116_forwardChannelTimerId_=B1((0,_.Nz)(v.JSC$20116_onStartForwardChannelTimer_,v),0),v.JSC$20116_forwardChannelRetryCount_=0)};
Yg.prototype.JSC$20116_onStartForwardChannelTimer_=function(v){this.JSC$20116_forwardChannelTimerId_=null;KOs(this,v)};
var KOs=function(v,Q){v.JSC$20112_channelDebug_.debug("startForwardChannel_");if(v.state_==1){if(!Q){v.JSC$20112_channelDebug_.debug("open_()");v.JSC$20116_nextRid_=Math.floor(Math.random()*1E5);Q=v.JSC$20116_nextRid_++;var V=new kg(v,v.JSC$20112_channelDebug_,"",Q);V.JSC$20104_extraHeaders_=v.JSC$20116_extraHeaders_;var E=i17(v),b=v.JSC$20116_forwardChannelUri_.clone();_.Vf(b,"RID",Q);_.Vf(b,"CVER","1");Qu5(v,b);nX8(V,b,E);v.forwardChannelRequest_=V;v.state_=2}}else v.state_==3&&(Q?LOq(v,Q):v.JSC$20112_outgoingMaps_.length==
0?v.JSC$20112_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):v.forwardChannelRequest_||(LOq(v),v.JSC$20112_channelDebug_.debug("startForwardChannel_ finished, sent request")))},LOq=function(v,Q){if(Q)if(v.JSC$20116_channelVersion_>6){v.JSC$20112_outgoingMaps_=v.pendingMaps_.concat(v.JSC$20112_outgoingMaps_);
v.pendingMaps_.length=0;var V=v.JSC$20116_nextRid_-1;Q=i17(v)}else V=Q.JSC$20102_rid_,Q=Q.JSC$20104_postData_;else V=v.JSC$20116_nextRid_++,Q=i17(v);var E=v.JSC$20116_forwardChannelUri_.clone();_.Vf(E,"SID",v.sid_);_.Vf(E,"RID",V);_.Vf(E,"AID",v.JSC$20116_lastArrayId_);Qu5(v,E);V=new kg(v,v.JSC$20112_channelDebug_,v.sid_,V,v.JSC$20116_forwardChannelRetryCount_+1);V.JSC$20104_extraHeaders_=v.JSC$20116_extraHeaders_;V.setTimeout(1E4+Math.round(1E4*Math.random()));v.forwardChannelRequest_=V;nX8(V,E,
Q)},Qu5=function(v,Q){v.handler_&&(v=v.handler_.JSC$20123_getAdditionalParams())&&_.gI.forEach(v,function(V,E){_.Vf(Q,E,V)})},i17=function(v){var Q=Math.min(v.JSC$20112_outgoingMaps_.length,1E3),V=["count="+Q];
if(v.JSC$20116_channelVersion_>6&&Q>0){var E=v.JSC$20112_outgoingMaps_[0].JSC$20114_mapId;V.push("ofs="+E)}else E=0;for(var b={},F=0;F<Q;b={mapId$jscomp$3:void 0},F++){b.mapId$jscomp$3=v.JSC$20112_outgoingMaps_[F].JSC$20114_mapId;var t=v.JSC$20112_outgoingMaps_[F].map;b.mapId$jscomp$3=v.JSC$20116_channelVersion_<=6?F:b.mapId$jscomp$3-E;try{_.gI.forEach(t,function(p){return function(Z,d){V.push("req"+p.mapId$jscomp$3+"_"+d+"="+encodeURIComponent(Z))}}(b))}catch(p){V.push("req"+b.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}v.pendingMaps_=v.pendingMaps_.concat(v.JSC$20112_outgoingMaps_.splice(0,Q));
return V.join("&")},tv7=function(v){v.JSC$20116_backChannelRequest_||v.JSC$20116_backChannelTimerId_||(v.JSC$20116_backChannelAttemptId_=1,v.JSC$20116_backChannelTimerId_=B1((0,_.Nz)(v.JSC$20116_onStartBackChannelTimer_,v),0),v.JSC$20116_backChannelRetryCount_=0)},ejd=function(v){if(v.JSC$20116_backChannelRequest_||v.JSC$20116_backChannelTimerId_||v.JSC$20116_backChannelRetryCount_>=3)return!1;
v.JSC$20112_channelDebug_.debug("Going to retry GET");v.JSC$20116_backChannelAttemptId_++;v.JSC$20116_backChannelTimerId_=B1((0,_.Nz)(v.JSC$20116_onStartBackChannelTimer_,v),pkn(v,v.JSC$20116_backChannelRetryCount_));v.JSC$20116_backChannelRetryCount_++;return!0};
Yg.prototype.JSC$20116_onStartBackChannelTimer_=function(){this.JSC$20116_backChannelTimerId_=null;this.JSC$20112_channelDebug_.debug("Creating new HttpRequest");this.JSC$20116_backChannelRequest_=new kg(this,this.JSC$20112_channelDebug_,this.sid_,"rpc",this.JSC$20116_backChannelAttemptId_);this.JSC$20116_backChannelRequest_.JSC$20104_extraHeaders_=this.JSC$20116_extraHeaders_;this.JSC$20116_backChannelRequest_.JSC$20104_readyStateChangeThrottleMs_=0;var v=this.JSC$20116_backChannelUri_.clone();_.Vf(v,
"RID","rpc");_.Vf(v,"SID",this.sid_);_.Vf(v,"CI",this.useChunked_?"0":"1");_.Vf(v,"AID",this.JSC$20116_lastArrayId_);Qu5(this,v);_.Vf(v,"TYPE","xmlhttp");lHn(this.JSC$20116_backChannelRequest_,v,!0,this.JSC$20116_hostPrefix_,!1);this.JSC$20112_channelDebug_.debug("New Request created")};
var Xu5=function(v,Q,V){v.JSC$20112_channelDebug_.debug("Test Connection Finished");v.useChunked_=v.secondTestResults_==null?V:!v.secondTestResults_;v.JSC$20116_lastStatusCode_=Q.JSC$20111_lastStatusCode_;v.asyncTest_||UKh(v)},rj5=function(v,Q){v.JSC$20112_channelDebug_.debug("Test Connection Failed");
v.JSC$20116_lastStatusCode_=Q.JSC$20111_lastStatusCode_;TJ(v,2)};
Yg.prototype.JSC$20111_onRequestData=function(v,Q){if(this.state_!=0&&(this.JSC$20116_backChannelRequest_==v||this.forwardChannelRequest_==v))if(this.JSC$20116_lastStatusCode_=v.JSC$20104_lastStatusCode_,this.forwardChannelRequest_==v&&this.state_==3)if(this.JSC$20116_channelVersion_>7){try{var V=this.JSC$20112_parser_.parse(Q)}catch(E){V=null}if(Array.isArray(V)&&V.length==3)if(Q=V,Q[0]==0)a:if(this.JSC$20112_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20116_backChannelTimerId_)this.JSC$20112_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20116_backChannelRequest_)if(this.JSC$20116_backChannelRequest_.JSC$20104_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20104_requestStartTime_)b1h(this),this.JSC$20116_backChannelRequest_.cancel(),this.JSC$20116_backChannelRequest_=null;else break a;else this.JSC$20112_channelDebug_.warning("We do not have a BackChannel established");ejd(this);AN(19)}else this.JSC$20116_lastPostResponseArrayId_=Q[1],v=this.JSC$20116_lastPostResponseArrayId_-this.JSC$20116_lastArrayId_,0<
v&&(Q=Q[2],this.JSC$20112_channelDebug_.debug(Q+" bytes (in "+v+" arrays) are outstanding on the BackChannel"),Q<37500&&this.useChunked_&&this.JSC$20116_backChannelRetryCount_==0&&!this.JSC$20116_deadBackChannelTimerId_&&(this.JSC$20116_deadBackChannelTimerId_=B1((0,_.Nz)(this.JSC$20116_onBackChannelDead_,this),6E3)));else this.JSC$20112_channelDebug_.debug("Bad POST response data returned"),TJ(this,11)}else Q!="y2f%"&&(this.JSC$20112_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
TJ(this,11));else this.JSC$20116_backChannelRequest_==v&&b1h(this),_.pE(Q)||(v=this.JSC$20112_parser_.parse(Q),this.onInput_(v))};
Yg.prototype.JSC$20116_onBackChannelDead_=function(){this.JSC$20116_deadBackChannelTimerId_!=null&&(this.JSC$20116_deadBackChannelTimerId_=null,this.JSC$20116_backChannelRequest_.cancel(),this.JSC$20116_backChannelRequest_=null,ejd(this),AN(20))};
var b1h=function(v){v.JSC$20116_deadBackChannelTimerId_!=null&&(_.bb.clearTimeout(v.JSC$20116_deadBackChannelTimerId_),v.JSC$20116_deadBackChannelTimerId_=null)};
Yg.prototype.JSC$20111_onRequestComplete=function(v){this.JSC$20112_channelDebug_.debug("Request complete");if(this.JSC$20116_backChannelRequest_==v){b1h(this);this.JSC$20116_backChannelRequest_=null;var Q=2}else if(this.forwardChannelRequest_==v)this.forwardChannelRequest_=null,Q=1;else return;this.JSC$20116_lastStatusCode_=v.JSC$20104_lastStatusCode_;if(this.state_!=0)if(v.JSC$20104_successful_)if(Q==1){Q=v.JSC$20104_postData_?v.JSC$20104_postData_.length:0;v=Date.now()-v.JSC$20104_requestStartTime_;
var V=GXq;V.dispatchEvent(new HAj(V,Q,v,this.JSC$20116_forwardChannelRetryCount_));E2q(this);this.handler_&&this.handler_.JSC$20123_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else tv7(this);else{V=v.getLastError();if(V==3||V==7||V==0&&this.JSC$20116_lastStatusCode_>0)this.JSC$20112_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20112_channelDebug_.debug("Maybe retrying, last error: "+M4I(V,this.JSC$20116_lastStatusCode_));var E;if(E=Q==1)this.forwardChannelRequest_||
this.JSC$20116_forwardChannelTimerId_||this.state_==1||this.JSC$20116_forwardChannelRetryCount_>=2?E=!1:(this.JSC$20112_channelDebug_.debug("Going to retry POST"),this.JSC$20116_forwardChannelTimerId_=B1((0,_.Nz)(this.JSC$20116_onStartForwardChannelTimer_,this,v),pkn(this,this.JSC$20116_forwardChannelRetryCount_)),this.JSC$20116_forwardChannelRetryCount_++,E=!0);if(E||Q==2&&ejd(this))return;this.JSC$20112_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20112_channelDebug_.debug("Error: HTTP request failed");
switch(V){case 1:TJ(this,5);break;case 4:TJ(this,10);break;case 3:TJ(this,6);break;case 7:TJ(this,12);break;default:TJ(this,2)}}};
var pkn=function(v,Q){var V=5E3+Math.floor(Math.random()*1E4);v.isActive()||(v.JSC$20112_channelDebug_.debug("Inactive channel"),V*=2);return V*Q};
Yg.prototype.onInput_=function(v){for(var Q=0;Q<v.length;Q++){var V=v[Q];this.JSC$20116_lastArrayId_=V[0];V=V[1];this.state_==2?V[0]=="c"?(this.sid_=V[1],this.JSC$20116_hostPrefix_=V[2],V=V[3],V!=null?this.JSC$20116_channelVersion_=V:this.JSC$20116_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20123_channelOpened(),this.JSC$20116_backChannelUri_=aHq(this,this.JSC$20116_hostPrefix_,this.JSC$20116_path_),tv7(this)):V[0]=="stop"&&TJ(this,7):this.state_==3&&(V[0]=="stop"?TJ(this,7):
V[0]!="noop"&&this.handler_&&this.handler_.JSC$20123_channelHandleArray(V),this.JSC$20116_backChannelRetryCount_=0)}};
Yg.prototype.JSC$20116_ensureInState_=function(v){if(!_.sB(arguments,this.state_))throw Error("Xk`"+this.state_);};
var TJ=function(v,Q){v.JSC$20112_channelDebug_.info("Error code "+Q);if(Q==2||Q==9){var V=null;v.handler_&&(V=null);var E=(0,_.Nz)(v.testGoogleComCallback_,v);V||(V=new _.uY("//www.google.com/images/cleardot.gif"),_.dn(V));wYs(V.toString(),1E4,E)}else AN(2);v.onError_(Q)};
Yg.prototype.testGoogleComCallback_=function(v){v?(this.JSC$20112_channelDebug_.info("Successfully pinged google.com"),AN(2)):(this.JSC$20112_channelDebug_.info("Failed to ping google.com"),AN(1),this.onError_(8))};
Yg.prototype.onError_=function(v){this.JSC$20112_channelDebug_.debug("HttpChannel: error - "+v);this.state_=0;this.handler_&&this.handler_.JSC$20123_channelError(v);Vvj(this);v28(this)};
var Vvj=function(v){v.state_=0;v.JSC$20116_lastStatusCode_=-1;if(v.handler_)if(v.pendingMaps_.length==0&&v.JSC$20112_outgoingMaps_.length==0)v.handler_.JSC$20123_channelClosed();else{v.JSC$20112_channelDebug_.debug("Number of undelivered maps, pending: "+v.pendingMaps_.length+", outgoing: "+v.JSC$20112_outgoingMaps_.length);var Q=_.jZ(v.pendingMaps_),V=_.jZ(v.JSC$20112_outgoingMaps_);v.pendingMaps_.length=0;v.JSC$20112_outgoingMaps_.length=0;v.handler_.JSC$20123_channelClosed(Q,V)}},u_j=function(v,
Q){Q=oXn(v,null,Q);
v.JSC$20112_channelDebug_.debug("GetForwardChannelUri: "+Q);return Q},aHq=function(v,Q,V){Q=oXn(v,v.JSC$20111_shouldUseSecondaryDomains()?Q:null,V);
v.JSC$20112_channelDebug_.debug("GetBackChannelUri: "+Q);return Q},oXn=function(v,Q,V){var E=_.vR(V);
if(E.JSC$10112_domain_!="")Q&&_.KM(E,Q+"."+E.JSC$10112_domain_),_.iz(E,E.JSC$10112_port_);else{var b=window.location;E=U7I(b.protocol,Q?Q+"."+b.hostname:b.hostname,+b.port,V)}v.JSC$20116_extraParams_&&_.gI.forEach(v.JSC$20116_extraParams_,function(F,t){_.Vf(E,t,F)});
_.Vf(E,"VER",v.JSC$20116_channelVersion_);Qu5(v,E);return E};
Yg.prototype.JSC$20111_createXhrIo=function(v){if(v)throw Error("Uk");v=new _.NV;v.JSC$9876_withCredentials_=!1;return v};
Yg.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Yg.prototype.notifyServerReachabilityEvent=function(v){var Q=GXq;Q.dispatchEvent(new mKm(Q,v))};
Yg.prototype.JSC$20111_shouldUseSecondaryDomains=function(){return!1};
new Fvh;var Z15=function(){};
_.K=Z15.prototype;_.K.JSC$20123_channelOpened=function(){};
_.K.JSC$20123_channelHandleArray=function(){};
_.K.JSC$20123_channelSuccess=function(){};
_.K.JSC$20123_channelError=function(){};
_.K.JSC$20123_channelClosed=function(){};
_.K.JSC$20123_getAdditionalParams=function(){return{}};
_.K.isActive=function(){return!0};var Pp0=function(v){v.front_.length===0&&(v.front_=v.back_,v.front_.reverse(),v.back_=[])};
_.K=Tsj.prototype;_.K.enqueue=function(v){this.back_.push(v)};
_.K.peek=function(){Pp0(this);return _.z0(this.front_)};
_.K.getCount=function(){return this.front_.length+this.back_.length};
_.K.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.K.clear=function(){this.front_=[];this.back_=[]};
_.K.contains=function(v){return _.sB(this.front_,v)||_.sB(this.back_,v)};
_.K.remove=function(v){var Q=this.front_;var V=Array.prototype.lastIndexOf.call(Q,v,Q.length-1);V>=0?(_.lt0(Q,V),Q=!0):Q=!1;return Q||_.ub(this.back_,v)};
_.K.getValues=function(){for(var v=[],Q=this.front_.length-1;Q>=0;--Q)v.push(this.front_[Q]);Q=this.back_.length;for(var V=0;V<Q;++V)v.push(this.back_[V]);return v};var y4=function(v){this.JSC$20127_map_=new _.Ym;this.size=0;v&&this.addAll(v)},dDh=function(v){var Q=typeof v;
return Q=="object"&&v||Q=="function"?"o"+_.$Q(v):Q.charAt(0)+v};
_.K=y4.prototype;_.K.getCount=function(){return this.JSC$20127_map_.size};
_.K.add=function(v){this.JSC$20127_map_.set(dDh(v),v);this.size=this.JSC$20127_map_.size};
_.K.addAll=function(v){v=_.bz(v);for(var Q=v.length,V=0;V<Q;V++)this.add(v[V]);this.size=this.JSC$20127_map_.size};
_.K.removeAll=function(v){v=_.bz(v);for(var Q=v.length,V=0;V<Q;V++)this.remove(v[V]);this.size=this.JSC$20127_map_.size};
_.K.delete=function(v){v=this.JSC$20127_map_.remove(dDh(v));this.size=this.JSC$20127_map_.size;return v};
_.K.remove=function(v){return this.delete(v)};
_.K.clear=function(){this.JSC$20127_map_.clear();this.size=0};
_.K.isEmpty=function(){return this.JSC$20127_map_.size===0};
_.K.has=function(v){return this.JSC$20127_map_.containsKey(dDh(v))};
_.K.contains=function(v){return this.JSC$20127_map_.containsKey(dDh(v))};
_.K.getValues=function(){return this.JSC$20127_map_.getValues()};
_.K.values=function(){return this.JSC$20127_map_.values()};
_.K.clone=function(){return new y4(this)};
_.K.equals=function(v){return this.getCount()==HBd(v)&&hjj(this,v)};
var hjj=function(v,Q){var V=HBd(Q);if(v.getCount()>V)return!1;!(Q instanceof y4)&&V>5&&(Q=new y4(Q));return m78(v,function(E){var b=Q;return b.contains&&typeof b.contains=="function"?b.contains(E):b.containsValue&&typeof b.containsValue=="function"?b.containsValue(E):_.W9(b)||typeof b==="string"?_.sB(b,E):_.gI.containsValue(b,E)})};
y4.prototype.__iterator__=function(){return this.JSC$20127_map_.__iterator__(!1)};
y4.prototype[Symbol.iterator]=function(){return this.values()};var wkj={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(v){return(this._clampValue(v)-this.min)/(this.max-this.min)},
_clampValue:function(v){return Math.min(this.max,Math.max(this.min,this._calcStep(v)))},
_calcStep:function(v){v=parseFloat(v);if(!this.step)return v;v=Math.round((v-this.min)/this.step);return this.step<1?v/(1/this.step)+this.min:v*this.step+this.min},
_validateValue:function(){var v=this._clampValue(this.value);this.value=this.oldValue=isNaN(v)?this.oldValue:v;return this.value!==v},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var A9I;var kyq;_.fh({_template:function(){if(kyq!==void 0)return kyq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;A9I===void 0&&(A9I=document.createElement("template"));var E=A9I;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return kyq=v},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.PE(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(v){v.keyCode===27&&(v.preventDefault(),this.close())},
_track:function(v){if(!this.persistent&&!this.disableSwipe)switch(v.preventDefault(),v.detail.state){case "start":this._trackStart(v);break;case "track":this._trackMove(v);break;case "end":this._trackEnd(v)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var v=this.$.contentContainer.getBoundingClientRect();this._savedWidth=v.width;this._translateOffset=this.position==="left"?v.left:v.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(v){this._trackDetails&&(this._translateDrawer(v.detail.dx+this._translateOffset),this._trackDetails.push({dx:v.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(v){if(this._trackDetails){var Q=v.detail.dx+this._translateOffset,V=this.getWidth();Q=this.position==="left"?Q>=0||Q<=-V:Q<=0||Q>=V;if(!Q){var E=this._trackDetails;this._trackDetails=null;this._flingDrawer(v,E);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}V/=2;v.detail.dx<-V?this.opened=this.position==="right":v.detail.dx>V&&(this.opened=this.position==="left");Q?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(v,Q){for(var V=Date.now(),E=V-100,b,F=0,t=Q.length-1;F<=t;){var p=F+t>>1,Z=Q[p];Z.timeStamp>=E?(b=Z,t=p-1):F=p+1}return b?(v.detail.dx-b.dx)/(V-b.timeStamp||1):0},
_flingDrawer:function(v,Q){Q=this._calculateVelocity(v,Q);if(!(Math.abs(Q)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;v=v.detail.dx+this._translateOffset;var V=this.getWidth(),E=this.position==="left",b=Q>0;b?(Q=Math.max(Q,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(Q=Math.min(Q,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");Q=this._FLING_INITIAL_SLOPE*(!b&&E?-(v+V):b&&!E?V-v:-v)/Q;this._styleTransitionDuration(Q);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,Q)}},
_styleTransitionDuration:function(v){this.style.transitionDuration=v+"ms";this.$.contentContainer.style.transitionDuration=v+"ms";this.$.scrim.style.transitionDuration=v+"ms"},
_styleTransitionTimingFunction:function(v){this.$.contentContainer.style.transitionTimingFunction=v;this.$.scrim.style.transitionTimingFunction=v},
_translateDrawer:function(v){var Q=this.getWidth();this.position==="left"?(v=Math.max(-Q,Math.min(v,0)),this.$.scrim.style.opacity=1+v/Q):(v=Math.max(0,Math.min(v,Q)),this.$.scrim.style.opacity=1-v/Q);this.translate3d(v+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var v=this._drawerState;v===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;v!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),v!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var v=_.wi(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');v.length>0?(this._firstTabStop=v[0],this._lastTabStop=v[v.length-1]):
this._lastTabStop=this._firstTabStop=null;(v=this.getAttribute("tabindex"))&&parseInt(v,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(v){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||v.keyCode!==9||(v.shiftKey?this._firstTabStop&&_.wi(v).localTarget===this._firstTabStop&&(v.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.wi(v).localTarget===this._lastTabStop&&(v.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(v,Q){this.toggleClass("visible",v&&!Q,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 T4f;var iTh;_.fh({_template:function(){if(iTh!==void 0)return iTh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;T4f===void 0&&(T4f=document.createElement("template"));var E=T4f;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return iTh=v},
is:"tp-yt-paper-progress",behaviors:[wkj],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(v){this.toggleClass("indeterminate",v,this.$.primaryProgress)},
_transformProgress:function(v,Q){v.style.transform=v.style.webkitTransform="scaleX("+Q/100+")"},
_mainRatioChanged:function(v){this._transformProgress(this.$.primaryProgress,v)},
_progressChanged:function(v,Q,V,E,b){v=this._clampValue(v);Q=this._clampValue(Q);var F=this._calcRatio(v)*100,t=this._calcRatio(Q)*100;this._setSecondaryRatio(F);this._transformProgress(this.$.secondaryProgress,F);this._transformProgress(this.$.primaryProgress,t);this.secondaryProgress=v;b?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",Q);this.setAttribute("aria-valuemin",V);this.setAttribute("aria-valuemax",E)},
_disabledChanged:function(v){this.setAttribute("aria-disabled",v?"true":"false")},
_hideSecondaryProgress:function(v){return v===0}});var LMd;var tnY;var pbm=function(){};
_.K=pbm.prototype;_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._buttonStateChanged=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._noinkChanged=function(){};
_.K._calcRatio=function(){};
_.K._clampValue=function(){};
_.K._calcStep=function(){};
_.K._validateValue=function(){};
_.K._update=function(){};
_.K._setImmediateValue=function(){};
_.K._setExpand=function(){};
_.K._setDragging=function(){};
_.K._setTransiting=function(){};
_.K._setMarkers=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
_.K._setRatio=function(){};
pbm=_.fh({_template:function(){if(tnY!==void 0)return tnY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;LMd===void 0&&(LMd=document.createElement("template"));var E=LMd;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return tnY=v},
is:"tp-yt-paper-slider",behaviors:[_.zI,_.BW,_.F_p,wkj],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&&_.Ic(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(v,Q,V){this.setAttribute("aria-valuemin",Q);this.setAttribute("aria-valuemax",V);this.setAttribute("aria-valuenow",v);this._positionKnob(this._calcRatio(v)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(v){this._setImmediateValue(this._calcStep(this._calcKnobPosition(v)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(v){return(this.max-this.min)*v/100+this.min},
_onTrack:function(v){v.stopPropagation();switch(v.detail.state){case "start":this._trackStart(v);break;case "track":this._trackX(v);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(v){this.dragging||this._trackStart(v);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,v.detail.dx*(this._isRTL?-1:1)));v=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(v);v=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(v+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var v=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;v.transform=v.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(v){this._expandKnob();v.preventDefault();this.focus()},
_bartrack:function(v){this._allowBarEvent(v)&&this._onTrack(v)},
_barclick:function(v){this._w=this.$.sliderBar.offsetWidth;var Q=this.$.sliderBar.getBoundingClientRect();Q=(v.detail.x-Q.left)/this._w*100;this._isRTL&&(Q=100-Q);var V=this.ratio;this._setTransiting(!0);this._positionKnob(Q);V===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
v.preventDefault();this.focus()},
_bardown:function(v){this._allowBarEvent(v)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(v))},
_knobTransitionEnd:function(v){v.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(v,Q,V,E){E||this._setMarkers([]);Q=Math.round((V-Q)/this.step);Q>v&&(Q=v);if(Q<0||!isFinite(Q))Q=0;this._setMarkers(Array(Q))},
_mergeClasses:function(v){return Object.keys(v).filter(function(Q){return v[Q]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(v){return!this.ignoreBarTouch||v.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(v){this._isRTL?this._incrementKey(v):this._decrementKey(v)},
_rightKey:function(v){this._isRTL?this._decrementKey(v):this._incrementKey(v)},
_incrementKey:function(v){this.disabled||(v.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),v.preventDefault())},
_decrementKey:function(v){this.disabled||(v.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),v.preventDefault())},
_changeValue:function(v){this.value=v.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(v){v.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.bv8._createRipple.call(this)},
_focusedChanged:function(v){v&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=v?"":"none",this._ripple.holdDown=v)}});var eFq;var ZTq;var cS=null,PU7=function(){};
_.K=PU7.prototype;_.K.fit=function(){};
_.K._discoverInfo=function(){};
_.K.resetFit=function(){};
_.K.refit=function(){};
_.K.position=function(){};
_.K.constrain=function(){};
_.K._sizeDimension=function(){};
_.K.__sizeDimension=function(){};
_.K.center=function(){};
_.K.__getNormalizedRect=function(){};
_.K.__getOffscreenArea=function(){};
_.K.__getPosition=function(){};
_.K.notifyResize=function(){};
_.K.assignParentResizable=function(){};
_.K.stopResizeNotificationsFor=function(){};
_.K._subscribeIronResize=function(){};
_.K._unsubscribeIronResize=function(){};
_.K.resizerShouldNotify=function(){};
_.K._onDescendantIronResize=function(){};
_.K._fireResize=function(){};
_.K._onIronRequestResizeNotifications=function(){};
_.K._parentResizableChanged=function(){};
_.K._notifyDescendant=function(){};
_.K._requestResizeNotifications=function(){};
_.K._findParent=function(){};
_.K.toggle=function(){};
_.K.open=function(){};
_.K.close=function(){};
_.K.cancel=function(){};
_.K.invalidateTabbables=function(){};
_.K._ensureSetup=function(){};
_.K._canceledChanged=function(){};
_.K._withBackdropChanged=function(){};
_.K._prepareRenderOpened=function(){};
_.K._finishRenderOpened=function(){};
_.K._finishRenderClosed=function(){};
_.K._preparePositioning=function(){};
_.K._finishPositioning=function(){};
_.K._applyFocus=function(){};
_.K._onCaptureClick=function(){};
_.K._onCaptureFocus=function(){};
_.K._onCaptureEsc=function(){};
_.K._onCaptureTab=function(){};
_.K._onIronResize=function(){};
_.K._onNodesChange=function(){};
_.K.__ensureFirstLastFocusables=function(){};
_.K.__openedChanged=function(){};
_.K.__deraf=function(){};
_.K.__updateScrollObservers=function(){};
_.K.__addScrollListeners=function(){};
_.K.__removeScrollListeners=function(){};
_.K.__isValidScrollAction=function(){};
_.K.__onCaptureScroll=function(){};
_.K.__saveScrollPosition=function(){};
_.K.__restoreScrollPosition=function(){};
_.K._setCanceled=function(){};
PU7=_.fh({_template:function(){if(ZTq!==void 0)return ZTq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;eFq===void 0&&(eFq=document.createElement("template"));var E=eFq;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);return ZTq=v},
is:"tp-yt-paper-toast",behaviors:[_.Kd],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(){_.SO._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.QS.requestAvailability()},
show:function(v){typeof v=="string"&&(v={text:v});for(var Q in v)Q.indexOf("_")===0?_.SO._warn('The property "'+Q+'" is private and was not set.'):Q in this?this[Q]=v[Q]:_.SO._warn('The property "'+Q+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(v){v&&v.target===this&&v.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(cS&&cS!==this&&cS.close(),cS=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):cS===this&&(cS=null);_.Ff._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(v){this.positionTarget=v},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var dhs=new _.FG("disablePersonalizationAction");var Ov5=new _.FG("showDmaConsentFlowCommand");var DV$=new _.FG("showMmgNoticeCommand");var hF5=new _.FG("saveConsentAction");var wbI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xf(v)};
_.f(wbI,_.Lf);var Akm=_.reS(wbI);var kS5=new _.FG("updateTopbarAvatarAction");var Tkd=new _.FG("channelHandleValidationResultRenderer");var YL5=new _.FG("generateHandleFromNameResultRenderer");var ykY=new _.FG("channelHandleInputRenderer");var ck5=new _.FG("copyLinkRenderer");var f88=new _.FG("timedCommand");var GSd=new _.FG("clearCookieAction");var CUf=new _.FG("getMultiPageMenuAction");var Mnn=new _.FG("addToGuideSectionAction"),OTh=new _.FG("removeFromGuideSectionAction");var Dhh=new _.FG("updateNotificationsUnseenCountAction");var RFm=new _.FG("resetChannelUnreadCountCommand");var nqm=new _.FG("resetSubscriptionsUnreadDotCommand");var l8j=new _.FG("selectLanguageCommand");var sMf=new _.FG("sendFeedbackAction");var qLd=new _.FG("uploadImageToScottyCommand");var SL5=new _.FG("registerPromoCommand");var zF7=new _.FG("setPushNotificationsEnabledCommand");var Jk8=new _.FG("desktopTopbarRenderer");var NkI=new _.FG("surveyFollowUpRenderer");var xhh=new _.FG("handlesClaimingRadioOptionRenderer");var Bkd=new _.FG("hotkeyDialogRenderer");var gqs=new _.FG("modifyReportFormCommand");var sn8=new _.FG("accountLinkCommand");var uAj=new _.FG("accountUnlinkCommand");var jnY=new _.FG("logAccountLinkingEventCommand");var WMs=new _.FG("guideCollapsibleEntryRenderer");var oq0=new _.FG("guideDownloadsEntryRenderer");var JIh=new _.FG("guideEntryRenderer");var Xbn=new _.FG("getLocationCommand");var a8f=new _.FG("locationCollectionCommand");var rk5=new _.FG("storiesItemViewModel");var $hn=new _.FG("addToRemoteQueueAction");var I85=new _.FG("insertInRemoteQueueAction");var HTs=new _.FG("removeFromRemoteQueueAction");var mhd=new _.FG("notificationRenderer");var pAj=new _.FG("localWatchHistoryCommand");var Uh5=new _.FG("pdgBuyFlowHeaderRenderer");var vCI=new _.FG("pdgColorSliderRenderer");var QAq=new _.FG("pdgCommentOptionRenderer");var VR5=new _.FG("pdgCommentPreviewRenderer");var ECh=new _.FG("superVodSelectableItemButtonRenderer");var b0h=new _.FG("switchButtonRenderer");var FHd=new _.FG("upsellDialogRenderer");var KHI=new _.FG("feedbackQuestionRenderer"),i0h=new _.FG("feedbackOptionRenderer");var LHY=new _.FG("sponsorshipsTierRenderer"),tRh=new _.FG("sponsorshipsPromotionChannelRenderer");var p8d=new _.FG("simpleSurveyMessageRenderer");var ouf=new _.FG("invokeInstrumentManagerAction");var eP$=new _.FG("logYpcFlowDismissCommand");var Z0d=new _.FG("logYpcFlowStartCommand");var Plh=new _.FG("unlimitedCreateFamilyEndpoint");var d0h=new _.FG("iconBadgeRenderer");var Zon=new _.FG("collaborativePlaylistVisibilityValidationRule");var hP5=function(v){_.fv.call(this,"channelMessage");this.message=v};
_.f(hP5,_.fv);var w88=function(v){_.fv.call(this,"channelError");this.error=v};
_.f(w88,_.fv);var AVh={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},k3Y={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Trd={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},YQ5={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},yVj={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var fR=function(v){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.Ym;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;v&&(this.id=v.id||v.name,this.name=v.name,this.clientName=v.clientName?v.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=v.app,this.type=v.type||"REMOTE_CONTROL",this.username=v.user||"",this.avatar=v.userAvatarUri||"",this.obfuscatedGaiaId=v.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=v.ownerObfuscatedGaiaId||"",this.castUserId=v.castUserId||"",this.theme=v.theme||"u",cVY(this,v.capabilities||""),fJq(this,
v.compatibleSenderThemes||""),G38(this,v.experiments||""),this.remoteControllerUrl=v.remoteControllerUrl||"",this.localChannelEncryptionKey=v.localChannelEncryptionKey||"",this.deviceContext=v.deviceContext,this.brand=v.brand||"",this.model=v.model||"",this.year=v.year||0,this.os=v.os||"",this.osVersion=v.osVersion||"",this.chipset=v.chipset||"",this.mdxDialServerType=v.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=v.pairingType||"unknown",v=v.deviceInfo)&&(v=JSON.parse(v),this.brand=
v.brand||"",this.model=v.model||"",this.year=v.year||0,this.os=v.os||"",this.osVersion=v.osVersion||"",this.chipset=v.chipset||"",this.clientName=v.clientName?v.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=v.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
fR.prototype.copy=function(){var v={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(v.brand=this.brand);
this.model&&(v.model=this.model);this.year&&(v.year=this.year);this.os&&(v.os=this.os);this.osVersion&&(v.osVersion=this.osVersion);this.chipset&&(v.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(v.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(v.mdxDialServerType=this.mdxDialServerType);v=new fR(v);v.connected=this.connected;v.remoteControllerUrl=this.remoteControllerUrl;v.localChannelEncryptionKey=this.localChannelEncryptionKey;v.deviceContext=
this.deviceContext;v.castUserId=this.castUserId;return v};
fR.prototype.equals=function(v){return v?this.id==v.id:!1};
var cVY=function(v,Q){v.capabilities.clear();_.U$(Q.split(","),_.pt(_.gI.contains,AVh)).forEach(function(V){v.capabilities.add(V)})},fJq=function(v,Q){v.compatibleSenderThemes.clear();
_.U$(Q.split(","),_.pt(_.gI.contains,k3Y)).forEach(function(V){v.compatibleSenderThemes.add(V)})},G38=function(v,Q){v.experiments.clear();
Q.split(",").forEach(function(V){v.experiments.add(V)})};_.HZ(yxn,_.J5);_.K=yxn.prototype;_.K.JSC$20163_onTick_=function(){this.JSC$20161_interval_=Math.min(3E5,this.JSC$20161_interval_*2);this.JSC$20163_listener_();this.nextTickTime_&&this.start()};
_.K.start=function(){var v=this.JSC$20161_interval_+15E3*Math.random(),Q=this.delay_;Q.isActive()||Q.start(v);this.nextTickTime_=Date.now()+v};
_.K.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.K.isActive=function(){return this.delay_.isActive()};
_.K.reset=function(){this.delay_.stop();this.JSC$20161_interval_=5E3};_.HZ(s6,Z15);_.K=s6.prototype;_.K.subscribe=function(v,Q,V){return this.pubsub_.subscribe(v,Q,V)};
_.K.unsubscribe=function(v,Q,V){return this.pubsub_.unsubscribe(v,Q,V)};
_.K.unsubscribeByKey=function(v){return this.pubsub_.unsubscribeByKey(v)};
_.K.publish=function(v,Q){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.K.dispose=function(){this.JSC$20164_disposed_||(this.JSC$20164_disposed_=!0,_.t5(this.pubsub_),this.disconnect(),_.t5(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20164_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Vk({})})};
_.K.isDisposed=function(){return this.JSC$20164_disposed_};
_.K.connect=function(v,Q,V){var E=this,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return _.DV(Z,2),E.useAsyncBrowserChannelHandler_?Z.yield(E.connectPromise_,2):Z.jumpTo(2);_.O_(Z);if(E.JSC$20164_disposed_||E.JSC$20164_channel_&&E.JSC$20164_channel_.getState()==2)return Z.return();E.sCookie_="";E.reconnectTimer_.stop();E.connectionParams_=v||null;E.connectUi_=Q||0;b=E.JSC$20164_pathPrefix_+"/test";F=E.JSC$20164_pathPrefix_+"/bind";t=new Yg(V?V.firstTestResults:null,V?V.secondTestResults:null,
E.enableAsyncTest_);if(p=E.JSC$20164_channel_)p.handler_=null;t.handler_=E;E.JSC$20164_channel_=t;if(E.useAsyncBrowserChannelHandler_)return E.connectPromise_=Cl0(E).then(function(){return MRj(E,b,F,p,V)}),Z.return(E.connectPromise_.then(function(){E.connectPromise_=_.Vk()}));
MRj(E,b,F,p,V);return _.Ra(Z,0)})};
var MRj=function(v,Q,V,E,b){O07(v);if(v.JSC$20164_channel_){var F=_.r7("ID_TOKEN"),t=v.JSC$20164_channel_.JSC$20116_extraHeaders_||{};F?t["x-youtube-identity-token"]=F:delete t["x-youtube-identity-token"];v.JSC$20164_channel_.JSC$20116_extraHeaders_=t}D0Y(v);E?(E.getState(),v.JSC$20164_channel_.connect(Q,V,v.defaultQueryParams_,E.sid_,E.JSC$20116_lastArrayId_)):b?v.JSC$20164_channel_.connect(Q,V,v.defaultQueryParams_,b.sessionId,b.arrayId):v.JSC$20164_channel_.connect(Q,V,v.defaultQueryParams_)};
s6.prototype.disconnect=function(v){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Vk())}finally{this.disconnectUi_=v||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),O07(this),this.JSC$20164_channel_&&(this.JSC$20164_channel_.getState()==3&&KOs(this.JSC$20164_channel_),this.JSC$20164_channel_.disconnect()),this.disconnectUi_=0}};
s6.prototype.sendMessage=function(v,Q){var V=this,E;return _.e(function(b){switch(b.nextAddress){case 1:_.DV(b,2);if(!V.useAsyncBrowserChannelHandler_){b.jumpTo(2);break}return b.yield(V.connectPromise_,2);case 2:_.O_(b);if(V.JSC$20164_disposed_)return b.return();E={_sc:v};Q&&_.gI.extend(E,Q);if(V.reconnectTimer_.isActive()||(V.JSC$20164_channel_?V.JSC$20164_channel_.getState():0)==2){V.JSC$20164_pendingMessages_.push(E);b.jumpTo(6);break}if(!V.isChannelOpened()){b.jumpTo(6);break}_.DV(b,8);if(!V.useAsyncBrowserChannelHandler_||
RP7(V,v)){b.jumpTo(8);break}return b.yield(Cl0(V),8);case 8:_.O_(b,0,0,1);V.isChannelOpened()&&(RP7(V,v)||D0Y(V),O07(V),FOj(V.JSC$20164_channel_,E));_.Ra(b,6,1);break;case 6:_.Ra(b,0)}})};
var RP7=function(v,Q){return v.enableMdxAuthForConnectionOnly_?!0:v.disableMdxAuthForAdMessages_?Object.values(Trd).includes(Q):v.disableMdxAuthForNonPlaybackMessages_?!Object.values(YQ5).includes(Q):v.disableMdxAuthForShortsMessages_?Object.values(yVj).includes(Q):!1};
s6.prototype.JSC$20123_channelOpened=function(){this.isInitialReconnectTimer_?(_.t5(this.reconnectTimer_),this.reconnectTimer_=new yxn(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20164_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)nCd(this);else{var v=this.JSC$20164_pendingMessages_;this.JSC$20164_pendingMessages_=[];var Q=v.length;D0Y(this);lJf(this,v,Q);qQ5(this)}else qQ5(this)};
var nCd=function(v){var Q,V;_.e(function(E){if(E.nextAddress==1)return _.DV(E,2),E.yield(Cl0(v),2);_.O_(E);Q=v.JSC$20164_pendingMessages_;v.JSC$20164_pendingMessages_=[];V=Q.length;lJf(v,Q,V);qQ5(v);return _.Ra(E,0)})},lJf=function(v,Q,V){for(var E=0;E<V;++E)FOj(v.JSC$20164_channel_,Q[E]);
qQ5(v)},qQ5=function(v){v.publish("handlerOpened");
v.JSC$20164_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.K=s6.prototype;_.K.JSC$20123_channelError=function(v){var Q=v==2&&this.JSC$20164_channel_.JSC$20116_lastStatusCode_==401;v==4||Q||this.reconnectTimer_.start();this.publish("handlerError",v,Q);Q=Object.keys(IH7).find(function(V){return IH7[V]===v});
this.JSC$20164_channelErrorCounter.increment("BROWSER_CHANNEL",Q!=null?Q:"UNKNOWN")};
_.K.JSC$20123_channelClosed=function(v,Q){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(Q)for(var V=Q.length,E=0;E<V;++E){var b=Q[E].map;b&&this.JSC$20164_pendingMessages_.push(b)}this.JSC$20164_channelClosedCounter.increment("BROWSER_CHANNEL");v&&this.pendingMapsOnClosedCounter.JSC$10012_streamzService.JSC$9867_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",v.length);Q&&this.undeliveredMapsOnClosedCounter.JSC$10015_streamzService.JSC$9867_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
Q.length)};
_.K.JSC$20123_channelSuccess=function(v,Q){Q!=null&&v!=null&&this.channelMessageSentCounter.increment()};
_.K.JSC$20123_getAdditionalParams=function(){var v={v:2};this.sCookie_&&(v.gsessionid=this.sCookie_);this.connectUi_!=0&&(v.ui=""+this.connectUi_);this.disconnectUi_!=0&&(v.ui=""+this.disconnectUi_);this.connectionParams_&&_.gI.extend(v,this.connectionParams_);return v};
_.K.JSC$20123_channelHandleArray=function(v){v[0]=="S"?this.sCookie_=v[1]:v[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20164_channel_.disconnect()):this.publish("handlerMessage",new YI0(v[0],v[1]));this.JSC$20164_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.K.isChannelOpened=function(){return!!this.JSC$20164_channel_&&this.JSC$20164_channel_.getState()==3};
var O07=function(v){if(v.JSC$20164_channel_){var Q=v.JSC$20164_getXsrfToken_(),V=v.JSC$20164_channel_.JSC$20116_extraHeaders_||{};Q?V["x-youtube-lounge-xsrf-token"]=Q:delete V["x-youtube-lounge-xsrf-token"];v.JSC$20164_channel_.JSC$20116_extraHeaders_=V}},Cl0=function(v){if(v.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Vk();
if(!v.enableCachedUpdateAuthorizationHeader_)return SQm(v);v.updateAuthorizationHeaderPromise_===null&&(v.updateAuthorizationHeaderPromise_=SQm(v));return v.updateAuthorizationHeaderPromise_},SQm=function(v){return _.qV(v.getAuthorizationHeader_().then(function(Q){zPq(v,Q)}).thenCatch(function(){}),function(){v.updateAuthorizationHeaderPromise_=null})},zPq=function(v,Q){if(v.JSC$20164_channel_){var V=v.JSC$20164_channel_.JSC$20116_extraHeaders_||{};
Q&&Object.keys(Q).length>0?V=Object.assign({},V,Q):delete V.Authorization;v.JSC$20164_channel_.JSC$20116_extraHeaders_=V}},D0Y=function(v){v.getAuthorizationHeaderSync_&&!v.useAsyncBrowserChannelHandler_&&zPq(v,v.getAuthorizationHeaderSync_())};
_.K=s6.prototype;_.K.setLoungeToken=function(v){(this.defaultQueryParams_.loungeIdToken=v)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20164_channel_){var Q=this.JSC$20164_channel_.JSC$20116_extraHeaders_||{};v?Q["X-YouTube-LoungeId-Token"]=v:delete Q["X-YouTube-LoungeId-Token"];this.JSC$20164_channel_.JSC$20116_extraHeaders_=Q}};
_.K.getDeviceId=function(){return this.defaultQueryParams_.id};
_.K.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.K.reconnect=function(){var v=this.reconnectTimer_;v.delay_.fire();v.start()};
_.K.safeReconnect_=function(){var v=this.JSC$20164_channel_,Q=0;v.JSC$20116_backChannelRequest_&&Q++;v.forwardChannelRequest_&&Q++;Q==0&&this.connect(this.connectionParams_,this.connectUi_)};var o6=function(v,Q){var V=v.basePath;v.supportCors&&(V=v.scheme+"://"+v.domain+v.port+v.basePath);return _.Li(V+Q,{})};
Ren.prototype.sendRequest=function(v,Q,V,E,b,F,t){v={format:F?"RAW":"JSON",method:v,context:this,timeout:5E3,withCredentials:!!t,onSuccess:_.pt(this.JSC$20170_onSuccess_,E,!F),onError:_.pt(this.onError_,b),onTimeout:_.pt(this.JSC$20170_onTimeout_,b)};V&&(v.postParams=V,v.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.D9(Q,v)};
Ren.prototype.JSC$20170_onSuccess_=function(v,Q,V,E){Q?v(E):v({text:V.responseText})};
Ren.prototype.onError_=function(v,Q){v(Error("Yk`"+Q.status))};
Ren.prototype.JSC$20170_onTimeout_=function(v){v(Error("Zk"))};var SIs=function(v,Q){return!!Q&&(v.id==Q||v.uuid==Q)},JVd=function(v){return{name:v.name,
screenId:v.id,loungeToken:v.token,dialId:v.uuid,screenIdType:v.idType,screenIdSecret:v.secret}},Nrn=function(v){return new uj(v)},x08=function(v){return Array.isArray(v)?_.sY(v,Nrn):[]},J_f=function(v){if(!v)return"null";
var Q=v.token?".."+v.token.slice(-6):"-",V=v.uuid?".."+v.uuid.slice(-6):"-",E=v.secret?".."+v.secret.slice(-6):"-";return'{name:"'+v.name+'",id:'+v.id.substr(0,6)+"..,token:"+(Q+",uuid:"+V+",idType:"+v.idType+",secret:")+(E+"}")},ttd=function(v){return Array.isArray(v)?"["+_.sY(v,J_f).join(",")+"]":"null"};var sIm="",W1=null;var Hr5=function(v,Q){_.DO.call(this);var V=this;this.handler=v();this.handler.subscribe("handlerOpened",this.JSC$20177_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(E,b){V.onError(b)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=Q};
_.f(Hr5,_.DO);_.K=Hr5.prototype;_.K.connect=function(v,Q,V){this.handler.connect(v,Q,V)};
_.K.disconnect=function(v){this.handler.disconnect(v)};
_.K.reconnect=function(){this.handler.reconnect()};
_.K.getDeviceId=function(){return this.handler.getDeviceId()};
_.K.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.K.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.K.JSC$20177_onOpened=function(){this.dispatchEvent("channelOpened");var v=this.handler,Q=this.currentScreenId;_.kN("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!v.JSC$20164_channel_.useChunked_,sessionId:v.JSC$20164_channel_.sid_,arrayId:v.JSC$20164_channel_.JSC$20116_lastArrayId_});_.kN("yt-remote-session-screen-id",Q);v=zeh();Q=Jxh();_.sB(v,Q)||v.push(Q);gSd(v);Bsj()};
_.K.onClosed=function(){this.dispatchEvent("channelClosed")};
_.K.onMessage=function(v){this.dispatchEvent(new hP5(v))};
_.K.onError=function(v){this.dispatchEvent(new w88(v?1:0))};
_.K.sendMessage=function(v,Q){this.handler.sendMessage(v,Q)};
_.K.setLoungeToken=function(v){this.handler.setLoungeToken(v)};
_.K.dispose=function(){this.handler.dispose()};var Ivn=function(v,Q,V){var E=this;V=V===void 0?function(){return""}:V;
var b=b===void 0?new TKd:b;var F=F===void 0?new _.ni:F;this.pathPrefix=v;this.defaultQueryParams=Q;this.getXsrfToken=V;this.JSC$20180_pubsub=F;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new yxn(function(){var t;((t=E.channel)==null?void 0:rDs((new cjh(t,t.JSC$20087_channel_)).JSC$20097_channel_.forwardChannelRequestPool_))===0&&E.connect(E.connectionParams,E.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20180_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20180_channelOpenedCounter=new cxm;this.JSC$20180_channelClosedCounter=new fv7;this.JSC$20180_channelMessageReceivedCounter=new CAh;this.JSC$20180_channelErrorCounter=new Mi$};
Ivn.prototype.connect=function(v,Q){v=v===void 0?{}:v;Q=Q===void 0?0:Q;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=v,this.connectUi=Q,Brn(this),(v=_.r7("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=v:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new wc(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,gC7(this))};
var gC7=function(v){_.wE(v.channel,"w",function(){v.channelState=3;v.reconnectTimer.reset();v.connectionParams=null;v.connectUi=0;for(var Q=_.L(v.nonAckedMessagesOnChannelClosed),V=Q.next();!V.done;V=Q.next())V=V.value,v.channel&&v.channel.send(V);v.nonAckedMessagesOnChannelClosed=[];v.publish("webChannelOpened");v.JSC$20180_channelOpenedCounter.increment("WEB_CHANNEL")});
_.wE(v.channel,"x",function(){v.channelState=0;v.reconnectTimer.isActive()||v.publish("webChannelClosed");var Q,V=(Q=v.channel)==null?void 0:fHh(new cjh(Q,Q.JSC$20087_channel_));V&&(v.nonAckedMessagesOnChannelClosed=[].concat(_.ui(V)));v.JSC$20180_channelClosedCounter.increment("WEB_CHANNEL")});
_.wE(v.channel,"z",function(Q){var V=Q.data;V[0]==="gracefulReconnect"?(v.reconnectTimer.start(),v.channel&&v.channel.close()):v.publish("webChannelMessage",new YI0(V[0],V[1]));v.lastStatusCode=Q.statusCode;v.JSC$20180_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.wE(v.channel,"y",function(){v.lastStatusCode===401||v.reconnectTimer.start();v.publish("webChannelError");v.JSC$20180_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.K=Ivn.prototype;_.K.disconnect=function(v){this.disconnectUi=v===void 0?0:v;this.reconnectTimer.stop();Brn(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.K.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.K.reconnect=function(){var v=this.reconnectTimer;v.delay_.fire();v.start()};
_.K.sendMessage=function(v,Q){this.channel&&(Brn(this),v=Object.assign({},{_sc:v},Q),this.channel.send(v))};
_.K.setLoungeToken=function(v){v||this.reconnectTimer.stop();v?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=v:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Brn=function(v){var Q=v.getXsrfToken();Q?v.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=Q:delete v.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.K=Ivn.prototype;_.K.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.K.publish=function(v){return this.JSC$20180_pubsub.publish.apply(this.JSC$20180_pubsub,[v].concat(_.ui(_.aE.apply(1,arguments))))};
_.K.subscribe=function(v,Q,V){return this.JSC$20180_pubsub.subscribe(v,Q,V)};
_.K.unsubscribe=function(v,Q,V){return this.JSC$20180_pubsub.unsubscribe(v,Q,V)};
_.K.unsubscribeByKey=function(v){return this.JSC$20180_pubsub.unsubscribeByKey(v)};
_.K.dispose=function(){this.JSC$20180_disposed||(this.JSC$20180_disposed=!0,_.t5(this.JSC$20180_pubsub),this.disconnect(),_.t5(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.K.isDisposed=function(){return this.JSC$20180_disposed};var $Mh=function(v){_.DO.call(this);this.webChannelService=v();this.webChannelService.subscribe("webChannelOpened",this.JSC$20188_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.f($Mh,_.DO);_.K=$Mh.prototype;_.K.connect=function(v,Q){this.webChannelService.connect(v,Q)};
_.K.disconnect=function(v){this.webChannelService.disconnect(v)};
_.K.reconnect=function(){this.webChannelService.reconnect()};
_.K.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.K.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.K.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.K.JSC$20188_onOpened=function(){this.dispatchEvent("channelOpened")};
_.K.onClosed=function(){this.dispatchEvent("channelClosed")};
_.K.onMessage=function(v){this.dispatchEvent(new hP5(v))};
_.K.onError=function(){this.dispatchEvent(new w88(this.webChannelService.lastStatusCode===401?1:0))};
_.K.sendMessage=function(v,Q){this.webChannelService.sendMessage(v,Q)};
_.K.setLoungeToken=function(v){this.webChannelService.setLoungeToken(v)};
_.K.dispose=function(){this.webChannelService.dispose()};var Lhj=Date.now(),XP=null,Khf=Array(50),Fh$=-1,iqj=!1;_.HZ($T,_.ij);$T.prototype.getScreens=function(){return this.screens};
$T.prototype.contains=function(v){return!!qId(this.screens,v)};
$T.prototype.get=function(v){return v?jW(this.screens,v):null};
var sA0=function(v,Q){var V=v.get(Q.uuid)||v.get(Q.id);if(V)return v=V.name,V.id=Q.id||V.id,V.name=Q.name,V.token=Q.token,V.uuid=Q.uuid||V.uuid,V.name!=v;v.screens.push(Q);return!0},uDh=function(v,Q){var V=v.screens.length!=Q.length;
v.screens=_.U$(v.screens,function(F){return!!qId(Q,F)});
for(var E=Q.length,b=0;b<E;b++)V=sA0(v,Q[b])||V;return V},jAI=function(v,Q){var V=v.screens.length;
v.screens=_.U$(v.screens,function(E){return!(E||Q?!E!=!Q?0:E.id==Q.id:1)});
return v.screens.length<V};
$T.prototype.info=function(v){a6(this.JSC$20189_logName_,v)};var WHI=function(v,Q,V,E,b){_.ij.call(this);this.JSC$20192_http_=v;this.pairingCode_=Q;this.deviceId_=V;this.friendlyName_=E;this.enableShortLivedLoungeToken_=b;this.pollIndex_=0;this.JSC$20192_xhr_=null;this.JSC$20192_timer_=NaN};
_.f(WHI,_.ij);_.K=WHI.prototype;_.K.start=function(){!this.JSC$20192_xhr_&&isNaN(this.JSC$20192_timer_)&&this.poll_()};
_.K.stop=function(){this.JSC$20192_xhr_&&(this.JSC$20192_xhr_.abort(),this.JSC$20192_xhr_=null);isNaN(this.JSC$20192_timer_)||(_.MY(this.JSC$20192_timer_),this.JSC$20192_timer_=NaN)};
_.K.disposeInternal=function(){this.stop();_.ij.prototype.disposeInternal.call(this)};
_.K.poll_=function(){this.JSC$20192_timer_=NaN;this.JSC$20192_xhr_=_.D9(o6(this.JSC$20192_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Nz)(this.JSC$20194_onSuccess_,this),onError:(0,_.Nz)(this.onError_,this),onTimeout:(0,_.Nz)(this.JSC$20194_onTimeout_,this)})};
_.K.JSC$20194_onSuccess_=function(v,Q){this.JSC$20192_xhr_=null;v=Q.screen||{};v.dialId=this.deviceId_;v.name=this.friendlyName_;Q=-1;this.enableShortLivedLoungeToken_&&v.shortLivedLoungeToken&&v.shortLivedLoungeToken.value&&v.shortLivedLoungeToken.refreshIntervalMs&&(v.screenIdType="shortLived",v.loungeToken=v.shortLivedLoungeToken.value,Q=v.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new uj(v),Q)};
_.K.onError_=function(v){this.JSC$20192_xhr_=null;v.status&&v.status==404?this.pollIndex_>=oCf.length?this.publish("pairingFailed",Error("$k")):(v=oCf[this.pollIndex_],this.JSC$20192_timer_=_.G_((0,_.Nz)(this.poll_,this),v),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+v.status))};
_.K.JSC$20194_onTimeout_=function(){this.JSC$20192_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var oCf=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.HZ(H1,$T);_.K=H1.prototype;_.K.start=function(){I6(this)&&this.publish("screenChange");!_.TA("yt-remote-lounge-token-expiration")&&X8f(this);_.MY(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.G_((0,_.Nz)(this.start,this),1E4)};
_.K.add=function(v,Q){I6(this);sA0(this,v);aJd(this,!1);this.publish("screenChange");Q(v);v.token||X8f(this)};
_.K.remove=function(v,Q){var V=I6(this);jAI(this,v)&&(aJd(this,!1),V=!0);Q(v);V&&this.publish("screenChange")};
_.K.updateName=function(v,Q,V,E){var b=I6(this),F=this.get(v.id);F?(F.name!=Q&&(F.name=Q,aJd(this,!1),b=!0),V(v)):E(Error("cl"));b&&this.publish("screenChange")};
_.K.disposeInternal=function(){_.MY(this.loungeTokenRefreshTimer_);H1.superClass_.disposeInternal.call(this)};
var X8f=function(v){if(v.screens.length){var Q=_.sY(v.screens,function(E){return E.id}),V=o6(v.JSC$20196_http_,"/pairing/get_lounge_token_batch");
v.JSC$20196_http_.sendRequest("POST",V,{screen_ids:Q.join(",")},(0,_.Nz)(v.handleLoungeTokens_,v),(0,_.Nz)(v.handleLoungeTokenError_,v))}};
H1.prototype.handleLoungeTokens_=function(v){I6(this);var Q=this.screens.length;v=v&&v.screens||[];for(var V=v.length,E=0;E<V;++E){var b=v[E],F=this.get(b.screenId);F&&(F.token=b.loungeToken,--Q)}aJd(this,!Q);Q&&a6(this.JSC$20189_logName_,"Missed "+Q+" lounge tokens.")};
H1.prototype.handleLoungeTokenError_=function(v){a6(this.JSC$20189_logName_,"Requesting lounge tokens failed: "+v)};
var I6=function(v){if(_.Y("deprecate_pair_servlet_enabled"))return uDh(v,[]);var Q=x08(jI5());Q=_.U$(Q,function(V){return!V.uuid});
return uDh(v,Q)},aJd=function(v,Q){oSn(_.sY(v.screens,JVd));
Q&&W6j()};var GJ=function(v,Q){_.ij.call(this);this.getScreensToCheck_=Q;Q=(Q=_.TA("yt-remote-online-screen-ids")||"")?Q.split(","):[];for(var V={},E=this.getScreensToCheck_(),b=E.length,F=0;F<b;++F){var t=E[F].id;V[t]=_.sB(Q,t)}this.screenIdSet_=V;this.JSC$20199_http_=v;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;rVd("Initialized with "+(0,_.JG)(this.screenIdSet_))};
_.f(GJ,_.ij);GJ.prototype.isOnline=function(v){return!!this.screenIdSet_[v]};
GJ.prototype.start=function(){var v=parseInt(_.TA("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.IC()-144E5<v?0:v)?$0h(this):(this.fastCheckEndTime_=_.IC()+3E5,_.kN("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
GJ.prototype.isEmpty=function(){return _.gI.isEmpty(this.screenIdSet_)};
GJ.prototype.update=function(){rVd("Updating availability on schedule.");var v=this.getScreensToCheck_(),Q=_.gI.filter(this.screenIdSet_,function(V,E){return V&&!!jW(v,E)},this);
IJq(this,Q)};
var H07=function(v,Q,V){var E=o6(v.JSC$20199_http_,"/pairing/get_screen_availability");v.JSC$20199_http_.sendRequest("POST",E,{lounge_token:Q.token},(0,_.Nz)(function(b){b=b.screens||[];for(var F=b.length,t=0;t<F;++t)if(b[t].loungeToken==Q.token){V(b[t].status=="online");return}V(!1)},v),(0,_.Nz)(function(){V(!1)},v))};
GJ.prototype.disposeInternal=function(){_.MY(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.ij.prototype.disposeInternal.call(this)};
var IJq=function(v,Q){a:if(_.gI.getCount(Q)!=_.gI.getCount(v.screenIdSet_))var V=!1;else{V=_.gI.getKeys(Q);for(var E=V.length,b=0;b<E;++b)if(!v.screenIdSet_[V[b]]){V=!1;break a}V=!0}V||(rVd("Updated online screens: "+(0,_.JG)(v.screenIdSet_)),v.screenIdSet_=Q,v.publish("screenChange"));m0m(v)},$0h=function(v){isNaN(v.refreshTimer_)||_.MY(v.refreshTimer_);
v.refreshTimer_=_.G_((0,_.Nz)(v.requestScreenAvailability_,v),v.fastCheckEndTime_>0&&v.fastCheckEndTime_<_.IC()?2E4:1E4)};
GJ.prototype.requestScreenAvailability_=function(){_.MY(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var v=U0s(this);if(_.gI.getCount(v)){var Q=o6(this.JSC$20199_http_,"/pairing/get_screen_availability"),V={lounge_token:_.gI.getKeys(v).join(",")};this.currentRequest_=this.JSC$20199_http_.sendRequest("POST",Q,V,(0,_.Nz)(this.onScreenAvailability_,this,v),(0,_.Nz)(this.onScreenAvailabilityError_,this))}else IJq(this,{}),$0h(this)};
GJ.prototype.onScreenAvailability_=function(v,Q){this.currentRequest_=null;var V=_.gI.getKeys(U0s(this));if(_.Ih(V,_.gI.getKeys(v))){Q=Q.screens||[];V={};for(var E=Q.length,b=0;b<E;++b)V[v[Q[b].loungeToken]]=Q[b].status=="online";IJq(this,V);$0h(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
GJ.prototype.onScreenAvailabilityError_=function(v){this.warn_("Screen availability failed: "+v);this.currentRequest_=null;$0h(this)};
var rVd=function(v){a6("OnlineScreenService",v)};
GJ.prototype.warn_=function(v){a6("OnlineScreenService",v)};
var U0s=function(v){var Q={};_.bv(v.getScreensToCheck_(),function(V){V.token?Q[V.token]=V.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return Q},m0m=function(v){v=_.gI.getKeys(_.gI.filter(v.screenIdSet_,function(Q){return Q}));
v.sort(_.J33);v.length?_.kN("yt-remote-online-screen-ids",v.join(","),60):_.YN("yt-remote-online-screen-ids")};_.HZ(mq,$T);_.K=mq.prototype;_.K.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.K.add=function(v,Q,V){this.localScreenService_.add(v,Q,V)};
_.K.remove=function(v,Q,V){this.localScreenService_.remove(v,Q,V);this.onlineScreenService_.update()};
_.K.updateName=function(v,Q,V,E){this.localScreenService_.contains(v)?this.localScreenService_.updateName(v,Q,V,E):(v="Updating name of unknown screen: "+v.name,a6(this.JSC$20189_logName_,v),E(Error(v)))};
_.K.getScreens=function(v){return v?this.screens:bxI(this.screens,_.U$(this.automaticScreens_,function(Q){return!this.contains(Q)},this))};
_.K.JSC$20204_getOnlineScreens=function(){return _.U$(this.getScreens(!0),function(v){return this.onlineScreenService_.isOnline(v.id)},this)};
var Qw$=function(v,Q,V,E,b,F){v.info("getAutomaticScreenByIds "+V+" / "+Q);V||(V=v.deviceToScreenId_[Q]);var t=v.getScreens(),p=V?jW(t,V):null;V&&(v.disableAutomaticScreenCache_||p)||(p=jW(t,Q));if(p){p.uuid=Q;var Z=CR(v,p);H07(v.onlineScreenService_,Z,function(d){b(d?Z:null)})}else V?vkd(v,V,(0,_.Nz)(function(d){var w=CR(this,new uj({name:E,
screenId:V,loungeToken:d,dialId:Q||""}));H07(this.onlineScreenService_,w,function(A){b(A?w:null)})},v),F):b(null)};
mq.prototype.JSC$20204_getScreenByPollingPairingCode=function(v,Q,V,E,b,F){var t=this;this.info("getDialScreenByPairingCode "+v+" / "+Q);var p=new WHI(this.JSC$20202_http_,v,Q,V,E);p.subscribe("pairingComplete",function(Z,d){_.t5(p);b(CR(t,Z),d)});
p.subscribe("pairingFailed",function(Z){_.t5(p);F(Z)});
p.start();return(0,_.Nz)(p.stop,p)};
var VUI=function(v,Q){for(var V=v.screens.length,E=0;E<V;++E)if(v.screens[E].name==Q)return v.screens[E];return null};
mq.prototype.JSC$20204_getScreenByPairingCode=function(v,Q,V,E){_.D9(o6(this.JSC$20202_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:v},timeout:5E3,onSuccess:(0,_.Nz)(function(b,F){b=new uj(F.screen||{});if(!b.name||VUI(this,b.name)){a:{F=b.name;for(var t=2,p=Q(F,t);VUI(this,p);){t++;if(t>20)break a;p=Q(F,t)}F=p}b.name=F}V(CR(this,b))},this),
onError:(0,_.Nz)(function(b){E(Error("dl`"+b.status))},this),
onTimeout:(0,_.Nz)(function(){E(Error("el"))},this)})};
var Ekj=function(v,Q,V){H07(v.onlineScreenService_,Q,V)};
mq.prototype.disposeInternal=function(){_.t5(this.localScreenService_);_.t5(this.onlineScreenService_);mq.superClass_.disposeInternal.call(this)};
var vkd=function(v,Q,V,E){v.info("requestLoungeToken_ for "+Q);var b={postParams:{screen_ids:Q},method:"POST",context:v,onSuccess:function(F,t){F=t&&t.screens||[];F[0]&&F[0].screenId==Q?V(F[0].loungeToken):E(Error("fl"))},
onError:function(){E(Error("gl"))}};
_.D9(o6(v.JSC$20202_http_,"/pairing/get_lounge_token_batch"),b)},bnf=function(v){v.screens=v.localScreenService_.getScreens();
for(var Q=_.gI.transpose(v.deviceToScreenId_),V=v.screens.length,E=0;E<V;++E){var b=v.screens[E];b.uuid=Q[b.id]||""}v.info("Updated manual screens: "+ttd(v.screens))};
mq.prototype.handleScreenChange_=function(){bnf(this);this.publish("screenChange");this.onlineScreenService_.update()};
var pZd=function(v){FR$(v);v.localScreenService_=new H1(v.JSC$20202_http_);v.localScreenService_.subscribe("screenChange",(0,_.Nz)(v.handleScreenChange_,v));bnf(v);v.disableAutomaticScreenCache_||(v.automaticScreens_=x08(_.TA("yt-remote-automatic-screen-cache")||[]));FR$(v);v.info("Initializing automatic screens: "+ttd(v.automaticScreens_));v.onlineScreenService_=new GJ(v.JSC$20202_http_,(0,_.Nz)(v.getScreens,v,!0));v.onlineScreenService_.subscribe("screenChange",(0,_.Nz)(function(){this.publish("onlineScreenChange")},
v))},CR=function(v,Q){var V=v.get(Q.id);
V?(V.uuid=Q.uuid,Q=V):((V=jW(v.automaticScreens_,Q.uuid))?(V.id=Q.id,V.token=Q.token,Q=V):v.automaticScreens_.push(Q),v.disableAutomaticScreenCache_||KR8(v));FR$(v);v.deviceToScreenId_[Q.uuid]=Q.id;_.kN("yt-remote-device-id-map",v.deviceToScreenId_,31536E3);return Q},KR8=function(v){v=_.U$(v.automaticScreens_,function(Q){return Q.idType!="shortLived"});
_.kN("yt-remote-automatic-screen-cache",_.sY(v,JVd))},FR$=function(v){v.deviceToScreenId_=_.TA("yt-remote-device-id-map")||{}};
mq.prototype.dispose=mq.prototype.dispose;_.HZ(U6,_.ij);var Mw=function(v,Q){v.screen_=Q;v.publish("sessionScreen",v.screen_)},ind=function(v,Q){v.screen_&&(v.screen_.token=Q,CR(v.JSC$20206_screenService_,v.screen_));
v.publish("sessionScreen",v.screen_)};
U6.prototype.onSessionStopped=function(v){this.isDisposed()||(v&&(Ow(this,""+v),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
U6.prototype.info=function(v){a6(this.JSC$20206_logName_,v)};
var Ow=function(v,Q){a6(v.JSC$20206_logName_,Q)};
U6.prototype.JSC$20208_getCastSession=function(){return null};
U6.prototype.setDisplayStatus=function(v){var Q=this.receiver_;v?(Q.displayStatus=new chrome.cast.ReceiverDisplayStatus(v,[]),Q.displayStatus.showStop=!0):Q.displayStatus=null;chrome.cast.setReceiverDisplayStatus(Q,(0,_.Nz)(function(){this.info("Updated receiver status for "+Q.friendlyName+": "+v)},this),(0,_.Nz)(function(){Ow(this,"Failed to update receiver status for: "+Q.friendlyName)},this))};
U6.prototype.disposeInternal=function(){this.setDisplayStatus("");U6.superClass_.disposeInternal.call(this)};var Ds=function(v,Q,V){U6.call(this,v,Q,"CastSession");var E=this;this.config_=V;this.JSC$20211_session_=null;this.JSC$20211_boundSessionUpdate_=(0,_.Nz)(this.JSC$20213_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Nz)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.G_(function(){LRf(E,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20211_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20211_isInitLoungeToken_=!1;this.JSC$20211_lastLoungeTokenRefreshError_="unknown"};
_.f(Ds,U6);_.K=Ds.prototype;
_.K.setCastSession=function(v){if(this.JSC$20211_session_){if(this.JSC$20211_session_==v)return;Ow(this,"Overriding cast session with new session object");tUn(this);this.JSC$20211_isInitLoungeToken_=!1;this.JSC$20211_lastLoungeTokenRefreshError_="unknown";this.JSC$20211_session_.removeUpdateListener(this.JSC$20211_boundSessionUpdate_);this.JSC$20211_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20211_session_=v;this.JSC$20211_session_.addUpdateListener(this.JSC$20211_boundSessionUpdate_);this.JSC$20211_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);pl$(this,"getMdxSessionStatus")};
_.K.launchWithParams=function(v){this.info("launchWithParams no-op for Cast: "+(0,_.JG)(v))};
_.K.stop=function(){if(this.JSC$20211_session_)this.JSC$20211_session_.stop((0,_.Nz)(function(){this.onSessionStopped()},this),(0,_.Nz)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.K.setDisplayStatus=function(){};
_.K.disposeInternal=function(){this.info("disposeInternal");tUn(this);this.JSC$20211_session_&&(this.JSC$20211_session_.removeUpdateListener(this.JSC$20211_boundSessionUpdate_),this.JSC$20211_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20211_session_=null;U6.prototype.disposeInternal.call(this)};
var Zn$=function(v,Q){_.MY(v.getLoungeTokenTimeoutKey_);v.getLoungeTokenTimeoutKey_=0;Q==0?el5(v):v.getLoungeTokenTimeoutKey_=_.G_(function(){el5(v)},Q)},el5=function(v){pl$(v,"getLoungeToken");
_.MY(v.onLoungeTokenTimeoutKey_);v.onLoungeTokenTimeoutKey_=_.G_(function(){PRh(v,null)},3E4)},pl$=function(v,Q){v.info("sendYoutubeMessage_: "+Q+" "+(0,_.JG)(void 0));
var V={};V.type=Q;v.JSC$20211_session_?v.JSC$20211_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",V,function(){},(0,_.Nz)(function(){Ow(this,"Failed to send message: "+Q+".")},v)):Ow(v,"Sending yt message without session: "+(0,_.JG)(V))};
Ds.prototype.onYoutubeMessage_=function(v,Q){if(!this.isDisposed())if(Q)if(Q=(0,_.YI)(Q),_.rG(Q))switch(v=""+Q.type,Q=Q.data||{},this.info("onYoutubeMessage_: "+v+" "+(0,_.JG)(Q)),v){case "mdxSessionStatus":LRf(this,Q);break;case "loungeToken":PRh(this,Q);break;default:Ow(this,"Unknown youtube message: "+v)}else Ow(this,"Unable to parse message.");else Ow(this,"No data in message.")};
var dbI=function(v,Q){if(Q)v.info("onConnectedScreenId_: Received screenId: "+Q),v.screen_&&v.screen_.id==Q||v.getScreen_(Q,function(V){Mw(v,V)},function(){return v.onSessionStopped()},5);
else v.onSessionStopped(Error("jl"))},wlm=function(v,Q,V){v.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(Q));
var E=new uj(Q);hl7(v,E,function(b){b?(v.JSC$20211_isInitLoungeToken_=!0,CR(v.JSC$20206_screenService_,E),Mw(v,E),v.JSC$20211_lastLoungeTokenRefreshError_="unknown",Zn$(v,V)):(_.Ui(Error("kl`"+JSON.stringify(Q))),v.onSessionStopped())},5)},LRf=function(v,Q){_.MY(v.sessionStatusTimeoutKey_);
v.sessionStatusTimeoutKey_=0;if(Q)v.config_.enableCastLoungeToken&&Q.loungeToken?Q.deviceId?v.screen_&&v.screen_.uuid==Q.deviceId||(Q.loungeTokenRefreshIntervalMs?wlm(v,{name:v.receiver_.friendlyName,screenId:Q.screenId,loungeToken:Q.loungeToken,dialId:Q.deviceId,screenIdType:"shortLived"},Q.loungeTokenRefreshIntervalMs):(_.Ui(Error("ml`"+JSON.stringify(Q))),dbI(v,Q.screenId))):(_.Ui(Error("ll`"+JSON.stringify(Q))),dbI(v,Q.screenId)):dbI(v,Q.screenId);else v.onSessionStopped(Error("jl"))},PRh=function(v,
Q){_.MY(v.onLoungeTokenTimeoutKey_);
v.onLoungeTokenTimeoutKey_=0;var V=null;if(Q)if(Q.loungeToken){var E;((E=v.screen_)==null?void 0:E.token)==Q.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";else V="noLoungeTokenResponse";V?(v.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(Q)+", error: "+V)),v.JSC$20211_lastLoungeTokenRefreshError_=V,Zn$(v,3E4)):(ind(v,Q.loungeToken),v.JSC$20211_isInitLoungeToken_=!1,v.JSC$20211_lastLoungeTokenRefreshError_="unknown",Zn$(v,Q.loungeTokenRefreshIntervalMs))};
Ds.prototype.getScreen_=function(v,Q,V,E){_.MY(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Qw$(this.JSC$20206_screenService_,this.receiver_.label,v,this.receiver_.friendlyName,(0,_.Nz)(function(b){b?Q(b):E>=0?(Ow(this,"Screen "+v+" appears to be offline. "+E+" retries left."),this.getScreenTimeoutKey_=_.G_((0,_.Nz)(this.getScreen_,this,v,Q,V,E-1),300)):V(Error("nl"))},this),V)};
var hl7=function(v,Q,V,E){_.MY(v.JSC$20211_checkScreenAvailabilityTimeoutKey_);v.JSC$20211_checkScreenAvailabilityTimeoutKey_=0;Ekj(v.JSC$20206_screenService_,Q,function(b){b||E<0?V(b):v.JSC$20211_checkScreenAvailabilityTimeoutKey_=_.G_(function(){hl7(v,Q,V,E-1)},300)})};
Ds.prototype.JSC$20208_getCastSession=function(){return this.JSC$20211_session_};
Ds.prototype.JSC$20213_onSessionUpdate_=function(v){this.isDisposed()||v||(Ow(this,"Cast session died."),this.onSessionStopped())};
var tUn=function(v){_.MY(v.getScreenTimeoutKey_);v.getScreenTimeoutKey_=0;_.MY(v.JSC$20211_checkScreenAvailabilityTimeoutKey_);v.JSC$20211_checkScreenAvailabilityTimeoutKey_=0;_.MY(v.sessionStatusTimeoutKey_);v.sessionStatusTimeoutKey_=0;_.MY(v.onLoungeTokenTimeoutKey_);v.onLoungeTokenTimeoutKey_=0;_.MY(v.getLoungeTokenTimeoutKey_);v.getLoungeTokenTimeoutKey_=0};var RP=function(v,Q,V,E){U6.call(this,v,Q,"DialSession");this.config_=E;this.JSC$20215_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20215_theme_=V;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20215_deferredLaunchDeadlineTimer_=NaN;this.JSC$20215_boundSessionUpdate_=(0,_.Nz)(this.JSC$20217_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20215_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20215_isInitLoungeToken_=!1;this.JSC$20215_lastLoungeTokenRefreshError_="unknown"};
_.f(RP,U6);RP.prototype.setCastSession=function(v){this.JSC$20215_session_=v;this.JSC$20215_session_.addUpdateListener(this.JSC$20215_boundSessionUpdate_)};
RP.prototype.launchWithParams=function(v){this.connectData_=v;this.deferredLaunch_()};
RP.prototype.stop=function(){Awq(this);if(this.JSC$20215_session_)this.JSC$20215_session_.stop((0,_.Nz)(this.onSessionStopped,this,null),(0,_.Nz)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
RP.prototype.disposeInternal=function(){Awq(this);this.JSC$20215_session_&&this.JSC$20215_session_.removeUpdateListener(this.JSC$20215_boundSessionUpdate_);this.JSC$20215_session_=null;U6.prototype.disposeInternal.call(this)};
var kD$=function(v){var Q;return!!(v.config_.enableDialLoungeToken&&((Q=v.JSC$20215_session_)==null?0:Q.getDialAppInfo))},Yaq=function(v){v.cancelPolling_=v.JSC$20206_screenService_.JSC$20204_getScreenByPollingPairingCode(v.reversePairingCode_,v.receiver_.label,v.receiver_.friendlyName,kD$(v),function(Q,V){v.cancelPolling_=function(){};
v.JSC$20215_isInitLoungeToken_=!0;Mw(v,Q);Q.idType=="shortLived"&&V>0&&T0q(v,V)},function(Q){v.cancelPolling_=function(){};
v.onSessionStopped(Q)})};
RP.prototype.JSC$20217_onSessionUpdate_=function(v){this.isDisposed()||v||(Ow(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var ywI=function(v){var Q={};Q.pairingCode=v.reversePairingCode_;Q.theme=v.JSC$20215_theme_;rxf()&&(Q.env_useStageMdx=1);return _.Rm(Q)},cws=function(v){return new Promise(function(Q){v.reversePairingCode_=nSY();
if(v.connectData_){var V=new chrome.cast.DialLaunchResponse(!0,ywI(v));Q(V);Yaq(v)}else v.deferredLaunch_=function(){_.MY(v.JSC$20215_deferredLaunchDeadlineTimer_);v.deferredLaunch_=function(){};
v.JSC$20215_deferredLaunchDeadlineTimer_=NaN;var E=new chrome.cast.DialLaunchResponse(!0,ywI(v));Q(E);Yaq(v)},v.JSC$20215_deferredLaunchDeadlineTimer_=_.G_(function(){v.deferredLaunch_()},100)})},GDh=function(v,Q,V){v.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(Q));
var E=new uj(Q);return(new Promise(function(b){fEI(v,E,function(F){F?(v.JSC$20215_isInitLoungeToken_=!0,CR(v.JSC$20206_screenService_,E),Mw(v,E),T0q(v,V)):_.Ui(Error("pl`"+JSON.stringify(Q)));b(F)},5)})).then(function(b){return b?new chrome.cast.DialLaunchResponse(!1):cws(v)})},CR7=function(v,Q){var V=v.launchData_.receiver.label,E=v.receiver_.friendlyName;
return(new Promise(function(b){Qw$(v.JSC$20206_screenService_,V,Q,E,function(F){F&&F.token&&Mw(v,F);b(F)},function(F){Ow(v,"Failed to get DIAL screen: "+F);
b(null)})})).then(function(b){return b&&b.token?new chrome.cast.DialLaunchResponse(!1):cws(v)})},fEI=function(v,Q,V,E){_.MY(v.JSC$20215_checkScreenAvailabilityTimeoutKey_);
v.JSC$20215_checkScreenAvailabilityTimeoutKey_=0;Ekj(v.JSC$20206_screenService_,Q,function(b){b||E<0?V(b):v.JSC$20215_checkScreenAvailabilityTimeoutKey_=_.G_(function(){fEI(v,Q,V,E-1)},300)})},T0q=function(v,Q){v.info("getDialAppInfoWithTimeout_ "+Q);
kD$(v)&&(_.MY(v.getDialAppInfoTimeoutKey_),v.getDialAppInfoTimeoutKey_=0,Q==0?MU$(v):v.getDialAppInfoTimeoutKey_=_.G_(function(){MU$(v)},Q))},MU$=function(v){kD$(v)&&v.JSC$20215_session_.getDialAppInfo(function(Q){v.info("getDialAppInfo dialLaunchData: "+JSON.stringify(Q));
Q=Q.extraData||{};var V=null;if(Q.loungeToken){var E;((E=v.screen_)==null?void 0:E.token)==Q.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";V?(v.JSC$20215_lastLoungeTokenRefreshError_=V,T0q(v,3E4)):(v.JSC$20215_isInitLoungeToken_=!1,v.JSC$20215_lastLoungeTokenRefreshError_="unknown",ind(v,Q.loungeToken),T0q(v,Q.loungeTokenRefreshIntervalMs))},function(Q){v.info("getDialAppInfo error: "+Q);
v.JSC$20215_lastLoungeTokenRefreshError_="noLoungeTokenResponse";T0q(v,3E4)})},Awq=function(v){_.MY(v.JSC$20215_checkScreenAvailabilityTimeoutKey_);
v.JSC$20215_checkScreenAvailabilityTimeoutKey_=0;_.MY(v.getDialAppInfoTimeoutKey_);v.getDialAppInfoTimeoutKey_=0;v.cancelPolling_();v.cancelPolling_=function(){};
_.MY(v.JSC$20215_deferredLaunchDeadlineTimer_)};var nR=function(v,Q){U6.call(this,v,Q,"ManualSession");this.JSC$20219_deferredLaunchDeadlineTimer_=_.G_((0,_.Nz)(this.launchWithParams,this,null),150)};
_.f(nR,U6);nR.prototype.stop=function(){this.onSessionStopped()};
nR.prototype.setCastSession=function(){};
nR.prototype.launchWithParams=function(){_.MY(this.JSC$20219_deferredLaunchDeadlineTimer_);this.JSC$20219_deferredLaunchDeadlineTimer_=NaN;var v=jW(this.JSC$20206_screenService_.getScreens(),this.receiver_.label);if(v)Mw(this,v);else this.onSessionStopped(Error("ql"))};
nR.prototype.disposeInternal=function(){_.MY(this.JSC$20219_deferredLaunchDeadlineTimer_);this.JSC$20219_deferredLaunchDeadlineTimer_=NaN;U6.prototype.disposeInternal.call(this)};var Eb=function(v,Q){_.ij.call(this);this.config_=Q;this.JSC$20222_screenService_=v;this.JSC$20222_appId_=Q.appId||"233637DE";this.JSC$20222_theme_=Q.theme||"cl";this.disableDial_=Q.disableCastApi||!1;this.forceMirroring_=Q.forceMirroring||!1;this.JSC$20222_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Nz)(this.onReceiverAction_,this)};
_.f(Eb,_.ij);
Eb.prototype.init=function(v,Q){chrome.cast.timeout.requestSession=3E4;var V=new chrome.cast.SessionRequest(this.JSC$20222_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.Y("desktop_enable_cast_connect")&&(V.androidReceiverCompatible=!0);this.disableDial_||(V.dialRequest=new chrome.cast.DialRequest("YouTube"));var E=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;v=v||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var b=(0,_.Nz)(this.onReceiverUpdated_,
this);V=new chrome.cast.ApiConfig(V,(0,_.Nz)(this.onSessionEstablished_,this),b,E,v);V.customDialLaunchCallback=(0,_.Nz)(this.onDialLaunchRequested_,this);chrome.cast.initialize(V,(0,_.Nz)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Vt$(),this.JSC$20222_screenService_.subscribe("onlineScreenChange",(0,_.Nz)(this.JSC$20224_onScreenChange_,this)),this.customReceivers_=Onj(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Nz)(function(F){this.warn_("Failed to set initial custom receivers: "+(0,_.JG)(F))},this)),this.publish("yt-remote-cast2-availability-change",Db5(this)),Q(!0))},this),(0,_.Nz)(function(F){this.warn_("Failed to initialize API: "+(0,_.JG)(F));
Q(!1)},this))};
Eb.prototype.setConnectedScreenStatus=function(v,Q){lm("Setting connected screen ID: "+v+" -> "+Q);if(this.JSC$20222_session_){var V=this.JSC$20222_session_.screen_;if(!v||V&&V.id!=v)lm("Unsetting old screen status: "+this.JSC$20222_session_.receiver_.friendlyName),qw(this,null)}if(v&&Q){if(!this.JSC$20222_session_){v=jW(this.JSC$20222_screenService_.getScreens(),v);if(!v){lm("setConnectedScreenStatus: Unknown screen.");return}if(v.idType=="shortLived"){lm("setConnectedScreenStatus: Screen with id type to be short lived.");
return}V=Rl7(this,v);V||(lm("setConnectedScreenStatus: Connected receiver not custom..."),V=new chrome.cast.Receiver(v.uuid?v.uuid:v.id,v.name),V.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(V),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Nz)(function(E){this.warn_("Failed to set initial custom receivers: "+(0,_.JG)(E))},this)));
lm("setConnectedScreenStatus: new active receiver: "+V.friendlyName);qw(this,new nR(this.JSC$20222_screenService_,V),!0)}this.JSC$20222_session_.setDisplayStatus(Q)}else lm("setConnectedScreenStatus: no screen.")};
var Rl7=function(v,Q){return Q?_.J3(v.customReceivers_,function(V){return SIs(Q,V.label)},v):null};
Eb.prototype.setLaunchParams=function(v){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20222_session_?this.JSC$20222_session_.launchWithParams(v):this.warn_("Setting connection data without a session")};
Eb.prototype.JSC$20224_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20222_session_?(this.JSC$20222_session_.stop(),qw(this,null)):lm("Stopping non-existing session")};
Eb.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Nz)(this.onSessionEstablished_,this),(0,_.Nz)(this.onSessionRequestFailed_,this))};
Eb.prototype.disposeInternal=function(){this.JSC$20222_screenService_.unsubscribe("onlineScreenChange",(0,_.Nz)(this.JSC$20224_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.ub(_.Q9("yt.mdx.remote.debug.handlers_")||[],UMd);_.t5(this.JSC$20222_session_);_.ij.prototype.disposeInternal.call(this)};
var lm=function(v){a6("Controller",v)};
Eb.prototype.warn_=function(v){a6("Controller",v)};
var UMd=function(v){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(v)},Db5=function(v){return v.hasCastReceiver_||!!v.customReceivers_.length||!!v.JSC$20222_session_},qw=function(v,Q,V){Q!=v.JSC$20222_session_&&(_.t5(v.JSC$20222_session_),(v.JSC$20222_session_=Q)?(V?v.publish("yt-remote-cast2-receiver-resumed",Q.receiver_):v.publish("yt-remote-cast2-receiver-selected",Q.receiver_),Q.subscribe("sessionScreen",(0,_.Nz)(v.onSessionScreen_,v,Q)),Q.subscribe("sessionFailed",
function(){return nkY(v,Q)}),Q.screen_?v.publish("yt-remote-cast2-session-change",Q.screen_):V&&v.JSC$20222_session_.launchWithParams(null)):v.publish("yt-remote-cast2-session-change",null))},nkY=function(v,Q){v.JSC$20222_session_==Q&&v.publish("yt-remote-cast2-session-failed")};
_.K=Eb.prototype;_.K.onSessionScreen_=function(v,Q){this.JSC$20222_session_==v&&(Q||qw(this,null),this.publish("yt-remote-cast2-session-change",Q))};
_.K.onReceiverAction_=function(v,Q){if(!this.isDisposed())if(v)switch(v.friendlyName=chrome.cast.unescape(v.friendlyName),lm("onReceiverAction_ "+v.label+" / "+v.friendlyName+"-- "+Q),Q){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20222_session_)if(this.JSC$20222_session_.receiver_.label!=v.label)lm("onReceiverAction_: Stopping active receiver: "+this.JSC$20222_session_.receiver_.friendlyName),this.JSC$20222_session_.stop();else{lm("onReceiverAction_: Casting to active receiver.");this.JSC$20222_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20222_session_.screen_);break}switch(v.receiverType){case chrome.cast.ReceiverType.CUSTOM:qw(this,new nR(this.JSC$20222_screenService_,v));break;case chrome.cast.ReceiverType.DIAL:qw(this,new RP(this.JSC$20222_screenService_,v,this.JSC$20222_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:qw(this,new Ds(this.JSC$20222_screenService_,v,this.config_));break;default:this.warn_("Unknown receiver type: "+v.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20222_session_&&
this.JSC$20222_session_.receiver_.label==v.label?this.JSC$20222_session_.stop():this.warn_("Stopping receiver w/o session: "+v.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.K.onDialLaunchRequested_=function(v){if(this.isDisposed())return Promise.reject(Error("rl"));var Q=v.receiver;Q.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+Q.friendlyName),Q.receiverType=chrome.cast.ReceiverType.DIAL);var V=this.JSC$20222_session_?this.JSC$20222_session_.receiver_:null;if(!V||V.label!=Q.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+Q.friendlyName),Promise.reject(Error("sl"));if(V&&V.label==Q.label&&V.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20222_session_.screen_)return lm("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20222_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+V.receiverType+'" to "dial" for '+Q.friendlyName);qw(this,new RP(this.JSC$20222_screenService_,Q,this.JSC$20222_theme_,this.config_))}Q=this.JSC$20222_session_;Q.launchData_=v;Q.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(v=Q.launchData_.extraData||{},V=v.screenId||null,kD$(Q)&&v.loungeToken?v.loungeTokenRefreshIntervalMs?v=GDh(Q,{name:Q.receiver_.friendlyName,screenId:v.screenId,loungeToken:v.loungeToken,dialId:Q.launchData_.receiver.label,screenIdType:"shortLived"},v.loungeTokenRefreshIntervalMs):(_.Ui(Error("ol`"+JSON.stringify(v))),v=CR7(Q,V)):v=CR7(Q,V)):v=cws(Q);return v};
_.K.onSessionEstablished_=function(v){var Q=this;if(!this.isDisposed()&&!this.forceMirroring_){lm("New cast session ID: "+v.sessionId);var V=v.receiver;if(V.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20222_session_)if(V.receiverType==chrome.cast.ReceiverType.CAST)lm("Got resumed cast session before resumed mdx connection."),V.friendlyName=chrome.cast.unescape(V.friendlyName),qw(this,new Ds(this.JSC$20222_screenService_,V,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var E=this.JSC$20222_session_.receiver_,b=jW(this.JSC$20222_screenService_.getScreens(),E.label);b&&SIs(b,V.label)&&E.receiverType!=chrome.cast.ReceiverType.CAST&&V.receiverType==chrome.cast.ReceiverType.CAST&&(lm("onSessionEstablished_: manual to cast session change "+V.friendlyName),_.t5(this.JSC$20222_session_),this.JSC$20222_session_=new Ds(this.JSC$20222_screenService_,V,this.config_),this.JSC$20222_session_.subscribe("sessionScreen",(0,_.Nz)(this.onSessionScreen_,this,this.JSC$20222_session_)),
this.JSC$20222_session_.subscribe("sessionFailed",function(){return nkY(Q,Q.JSC$20222_session_)}),this.JSC$20222_session_.launchWithParams(null));
this.JSC$20222_session_.setCastSession(v)}}};
_.K.JSC$20224_getCastSession=function(){return this.JSC$20222_session_?this.JSC$20222_session_.JSC$20208_getCastSession():null};
_.K.onSessionRequestFailed_=function(v){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.JG)(v)),v.code!=chrome.cast.ErrorCode.CANCEL&&qw(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.K.onReceiverUpdated_=function(v){lm("Receiver availability updated: "+v);if(!this.isDisposed()){var Q=Db5(this);this.hasCastReceiver_=v==chrome.cast.ReceiverAvailability.AVAILABLE;Db5(this)!=Q&&this.publish("yt-remote-cast2-availability-change",Db5(this))}};
var Onj=function(v){var Q=v.JSC$20222_screenService_.JSC$20204_getOnlineScreens(),V=v.JSC$20222_session_&&v.JSC$20222_session_.receiver_;v=_.sY(Q,function(E){V&&SIs(E,V.label)&&(V=null);var b=E.uuid?E.uuid:E.id,F=Rl7(this,E);F?(F.label=b,F.friendlyName=E.name):(F=new chrome.cast.Receiver(b,E.name),F.receiverType=chrome.cast.ReceiverType.CUSTOM);return F},v);
V&&(V.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(V=new chrome.cast.Receiver(V.label,V.friendlyName),V.receiverType=chrome.cast.ReceiverType.CUSTOM),v.push(V));return v};
Eb.prototype.JSC$20224_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Onj(this),lm("Updating custom receivers: "+(0,_.JG)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Nz)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Db5(this)))};
Eb.prototype.setLaunchParams=Eb.prototype.setLaunchParams;Eb.prototype.setConnectedScreenStatus=Eb.prototype.setConnectedScreenStatus;Eb.prototype.stopSession=Eb.prototype.JSC$20224_stopSession;Eb.prototype.getCastSession=Eb.prototype.JSC$20224_getCastSession;Eb.prototype.requestSession=Eb.prototype.requestSession;Eb.prototype.init=Eb.prototype.init;Eb.prototype.dispose=Eb.prototype.dispose;var lEh=_.s$(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),D30=[],A_Y=_.Ad(lEh);var qaq=function(v){v.audioTrackId=null;v.trackData=null;v.playerState=-1;v.hasPrevious=!1;v.hasNext=!1;v.playerTime_=0;v.playerTimeAt_=_.IC();v.seekableStart_=0;v.seekableEnd_=0;v.duration_=0;v.loadedTime=0;v.liveIngestionTime_=NaN;v.isLive_=!1};
_.K=bE.prototype;
_.K.reset=function(v){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;v&&(this.index=v.index,this.listId=v.listId,this.videoId=v.videoId,this.playerState=v.playerState,this.volume=v.volume,this.muted=v.muted,this.audioTrackId=v.audioTrackId,this.trackData=v.trackData,this.hasPrevious=v.hasPrevious,this.hasNext=v.hasNext,this.playerTime_=v.playerTime,this.playerTimeAt_=v.playerTimeAt,this.seekableStart_=v.seekableStart,this.seekableEnd_=v.seekableEnd,this.duration_=v.duration,this.loadedTime=
v.loadedTime,this.liveIngestionTime_=v.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.K.stopPlayer=function(){this.index=-1;this.videoId="";qaq(this)};
_.K.isPlaying=function(){return this.playerState==1};
_.K.isBuffering=function(){return this.playerState==3};
_.K.isAdPlaying=function(){return this.playerState==1081};
var SY=function(v,Q){v.playerTime_=Q;v.playerTimeAt_=_.IC()},Sam=function(v){switch(v.playerState){case 1:case 1081:return(_.IC()-v.playerTimeAt_)/1E3+v.playerTime_;
case -1E3:return 0}return v.playerTime_};
bE.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.IC()-this.playerTimeAt_)/1E3:0):this.duration_};
var zlY=function(v,Q,V){var E=v.videoId;v.videoId=Q;v.index=V;Q!=E&&qaq(v)},Jw$=function(v){var Q={};
Q.index=v.index;Q.listId=v.listId;Q.videoId=v.videoId;Q.playerState=v.playerState;Q.volume=v.volume;Q.muted=v.muted;Q.audioTrackId=v.audioTrackId;Q.trackData=_.gI.unsafeClone(v.trackData);Q.hasPrevious=v.hasPrevious;Q.hasNext=v.hasNext;Q.playerTime=v.playerTime_;Q.playerTimeAt=v.playerTimeAt_;Q.seekableStart=v.seekableStart_;Q.seekableEnd=v.seekableEnd_;Q.duration=v.duration_;Q.loadedTime=v.loadedTime;Q.liveIngestionTime=v.liveIngestionTime_;return Q};
bE.prototype.clone=function(){return new bE(Jw$(this))};var LX=function(v,Q){_.ij.call(this);var V=this;this.state_=0;this.connection_=v;this.contextSubscriptions_=[];this.actionQueue_=new Tsj;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Nz)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Nz)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Nz)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Nz)(this.onCloudviewAvailabilityChange_,this);var E=0;v?(E=v.getProxyState(),
E!=3&&(v.subscribe("proxyStateChange",this.setState_,this),N0I(this))):E=3;E!=0&&(Q?this.setState_(E):_.G_(function(){V.setState_(E)},0));
(v=q$f())&&xb5(this,v);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.f(LX,_.ij);LX.prototype.getState=function(){return this.state_};
LX.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
LX.prototype.reconnect=function(){this.connection_.reconnect()};
var zJ=function(v){return new bE(v.connection_.getPlayerContextData())};
_.K=LX.prototype;_.K.play=function(){JN(this)?(this.castMedia_?this.castMedia_.play(null,_.c7,B05(this,"play")):Nw(this,"play"),gkm(this,1,Sam(zJ(this))),this.publish("remotePlayerChange")):xg(this,this.play)};
_.K.pause=function(){JN(this)?(this.castMedia_?this.castMedia_.pause(null,_.c7,B05(this,"pause")):Nw(this,"pause"),gkm(this,2,Sam(zJ(this))),this.publish("remotePlayerChange")):xg(this,this.pause)};
_.K.seekTo=function(v){if(JN(this)){if(this.castMedia_){var Q=zJ(this),V=new chrome.cast.media.SeekRequest;V.currentTime=v;Q.isPlaying()||Q.isBuffering()?V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(V,_.c7,B05(this,"seekTo",{newTime:v}))}else Nw(this,"seekTo",{newTime:v});gkm(this,3,v);this.publish("remotePlayerChange")}else xg(this,_.pt(this.seekTo,v))};
_.K.stop=function(){if(JN(this)){this.castMedia_?this.castMedia_.stop(null,_.c7,B05(this,"stopVideo")):Nw(this,"stopVideo");var v=zJ(this);v.stopPlayer();BS(this,v);this.publish("remotePlayerChange")}else xg(this,this.stop)};
_.K.setVolume=function(v,Q){if(JN(this)){var V=zJ(this);if(this.castSession_){if(V.volume!=v){var E=Math.round(v)/100;this.castSession_.setReceiverVolumeLevel(E,(0,_.Nz)(function(){rj("set receiver volume: "+E)},this),(0,_.Nz)(function(){this.warn_("failed to set receiver volume.")},this))}V.muted!=Q&&this.castSession_.setReceiverMuted(Q,(0,_.Nz)(function(){rj("set receiver muted: "+Q)},this),(0,_.Nz)(function(){this.warn_("failed to set receiver muted.")},this))}else{var b={volume:v,
muted:Q};V.volume!=-1&&(b.delta=v-V.volume);Nw(this,"setVolume",b)}V.muted=Q;V.volume=v;BS(this,V)}else xg(this,_.pt(this.setVolume,v,Q))};
_.K.setAudioTrack=function(v,Q){JN(this)?(Q=Q.getLanguageInfo().getId(),Nw(this,"setAudioTrack",{videoId:v,audioTrackId:Q}),v=zJ(this),v.audioTrackId=Q,BS(this,v)):xg(this,_.pt(this.setAudioTrack,v,Q))};
_.K.addVideo=function(v){JN(this)?Nw(this,"addVideo",{videoId:v}):xg(this,_.pt(this.addVideo,v))};
_.K.addPlaylist=function(v){JN(this)?Nw(this,"addVideos",{listId:v}):xg(this,_.pt(this.addPlaylist,v))};
_.K.addVideos=function(v){v.length==0?this.warn_("Ignore add videos request due to empty list"):JN(this)?Nw(this,"addVideos",{videoIds:v.join(",")}):xg(this,_.pt(this.addVideos,v))};
_.K.JSC$20234_removeVideo=function(v){JN(this)?Nw(this,"removeVideo",{videoId:v}):xg(this,_.pt(this.JSC$20234_removeVideo,v))};
_.K.JSC$20234_insertVideo=function(v){JN(this)?Nw(this,"insertVideo",{videoId:v}):xg(this,_.pt(this.JSC$20234_insertVideo,v))};
_.K.playVideo=function(v,Q,V,E,b,F,t){E=E===void 0?null:E;b=b===void 0?null:b;F=F===void 0?null:F;t=t===void 0?null:t;var p=zJ(this),Z={videoId:v};V!==void 0&&(Z.currentIndex=V);zlY(p,v,V||0);Q!==void 0&&(SY(p,Q),Z.currentTime=Q);E&&(Z.listId=E);b&&(Z.playerParams=b);F&&(Z.clickTrackingParams=F);t&&(Z.locationInfo=(0,_.JG)(t));Nw(this,"setPlaylist",Z);E||BS(this,p)};
_.K.nextVideo=function(v,Q){if(JN(this)){if(v&&Q){var V=zJ(this);zlY(V,v,Q);BS(this,V)}Nw(this,"next")}else xg(this,_.pt(this.nextVideo,v,Q))};
_.K.clearPlaylist=function(){if(JN(this)){Nw(this,"clearPlaylist");var v=zJ(this);v.reset();BS(this,v);this.publish("remotePlayerChange")}else xg(this,this.clearPlaylist)};
_.K.dispose=function(){if(this.state_!=3){var v=this.state_;this.state_=3;this.publish("proxyStateChange",v,this.state_)}_.ij.prototype.dispose.call(this)};
_.K.disposeInternal=function(){sw$(this);this.connection_=null;this.actionQueue_.clear();xb5(this,null);_.ij.prototype.disposeInternal.call(this)};
var N0I=function(v){_.bv("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(Q){this.contextSubscriptions_.push(this.connection_.subscribe(Q,_.pt(this.onProxyEvent_,Q),this))},v)},sw$=function(v){_.bv(v.contextSubscriptions_,function(Q){this.connection_.unsubscribeByKey(Q)},v);
v.contextSubscriptions_.length=0},JN=function(v){return v.getState()==1},xg=function(v,Q){v.actionQueue_.getCount()<50&&v.actionQueue_.enqueue(Q)},gkm=function(v,Q,V){var E=zJ(v);
SY(E,V);E.playerState!=-1E3&&(E.playerState=Q);BS(v,E)},Nw=function(v,Q,V){v.connection_.sendMessage(Q,V)},BS=function(v,Q){sw$(v);
v.connection_.setPlayerContextData(Jw$(Q));N0I(v)};
LX.prototype.setState_=function(v){if((v!=this.state_||v==2)&&this.state_!=3&&v!=0){var Q=this.state_;this.state_=v;this.publish("proxyStateChange",Q,v);if(v==1)for(;!this.actionQueue_.isEmpty();)v=this.actionQueue_,Pp0(v),v.front_.pop().apply(this);else v==3&&this.dispose()}};
LX.prototype.onProxyEvent_=function(v,Q){this.publish(v,Q)};
var xb5=function(v,Q){v.castSession_&&(v.castSession_.removeUpdateListener(v.boundCastStatusListener_),v.castSession_.removeMediaListener(v.boundCastMediaListener_),v.onCastMediaChange_(null));v.castSession_=Q;if(v.castSession_&&(rj("Setting cast session: "+v.castSession_.sessionId),v.castSession_.addUpdateListener(v.boundCastStatusListener_),v.castSession_.addMediaListener(v.boundCastMediaListener_),v.castSession_.media.length))v.onCastMediaChange_(v.castSession_.media[0])};
LX.prototype.onCastStatusUpdate_=function(v){if(!v)this.onCastMediaChange_(null),xb5(this,null);else if(this.castSession_.receiver.volume){v=this.castSession_.receiver.volume;var Q=zJ(this),V=Math.round(100*v.level||0);if(Q.volume!=V||Q.muted!=v.muted)rj("Cast volume update: "+v.level+(v.muted?" muted":"")),Q.volume=V,Q.muted=!!v.muted,BS(this,Q)}};
LX.prototype.onCastMediaChange_=function(v){rj("Cast media: "+!!v);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=v)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),ux8(this),this.publish("remotePlayerChange")};
var ux8=function(v){var Q=v.castMedia_.media,V=v.castMedia_.customData;if(Q&&V){var E=zJ(v);Q.contentId!=E.videoId&&rj("Cast changing video to: "+Q.contentId);E.videoId=Q.contentId;E.playerState=V.playerState;SY(E,v.castMedia_.getEstimatedTime());BS(v,E)}else rj("No cast media video. Ignoring state update.")};
LX.prototype.onCastMediaUpdate_=function(v){if(v)ux8(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
LX.prototype.onCloudviewAvailabilityChange_=function(){var v=q$f();v&&xb5(this,v)};
LX.prototype.warn_=function(v){a6("CP",v)};
var B05=function(v,Q,V){return(0,_.Nz)(function(E){this.warn_("Failed to "+Q+" with cast v2 channel. Error code: "+E.code);E.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+Q+" using MDx browser channel."),Nw(this,Q,V))},v)};var tO=function(v,Q,V,E){E=E===void 0?!1:E;_.ij.call(this);var b=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$20239_http_=v;this.enableConnectWithInitialState_=E;this.listeners_.push(_.ZW(window,"beforeunload",function(){b.JSC$20242_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new bE;this.currentScreenId_=Q.id;this.currentScreenIdType_=Q.idType;this.channelService=mM7(this.JSC$20239_http_,V,this.JSC$20242_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){jw5(b)});
this.channelService.listen("channelClosed",function(){sw("Channel closed");isNaN(b.connectTimerId_)?XYn(!0):XYn();b.dispose()});
this.channelService.listen("channelError",function(F){XYn();isNaN(b.getReconnectTimeout_())?(F==1&&b.currentScreenIdType_=="shortLived"&&b.publish("browserChannelAuthError",F),sw("Channel error: "+F+" without reconnection"),b.dispose()):(b.reconnecting_=!0,sw("Channel error: "+F+" with reconnection in "+b.getReconnectTimeout_()+" ms"),WRh(b,2))});
this.channelService.listen("channelMessage",function(F){okf(b,F)});
this.channelService.setLoungeToken(Q.token);this.subscribe("remoteQueueChange",function(){var F=b.playerContext_.videoId;Nsh()&&_.kN("yt-remote-session-video-id",F)})};
_.f(tO,_.ij);
tO.prototype.connect=function(v,Q){if(Q){var V=Q.listId,E=Q.videoId,b=Q.videoIds,F=Q.playerParams,t=Q.clickTrackingParams,p=Q.index,Z={videoId:E},d=Q.currentTime,w=Q.locationInfo;Q=Q.loopMode;d!==void 0&&(Z.currentTime=d<=5?0:d);F&&(Z.playerParams=F);w&&(Z.locationInfo=w);t&&(Z.clickTrackingParams=t);V&&(Z.listId=V);b&&b.length>0&&(Z.videoIds=b.join(","));p!==void 0&&(Z.currentIndex=p);this.enableConnectWithInitialState_&&(Z.loopMode=Q||"LOOP_MODE_OFF");V&&(this.playerContext_.listId=V);this.playerContext_.videoId=
E;this.playerContext_.index=p||0;this.playerContext_.state=3;SY(this.playerContext_,d);this.autoplayMode_="UNSUPPORTED";V=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";sw("Connecting with "+V+" and params: "+(0,_.JG)(Z));this.channelService.connect({method:V,params:(0,_.JG)(Z)},v,uQn())}else sw("Connecting without params"),this.channelService.connect({},v,uQn());Xld(this)};
tO.prototype.setLoungeToken=function(v){this.channelService.setLoungeToken(v)};
tO.prototype.dispose=function(){this.isDisposed()||(_.Pr("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),WRh(this,3));_.ij.prototype.dispose.call(this)};
tO.prototype.disposeInternal=function(){aEd(this);rw8(this);$bs(this);_.MY(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.MY(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.dQ9(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.ij.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var IEm=function(v){return _.J3(v.connectedDevices_,function(Q){return Q.type=="LOUNGE_SCREEN"})},sw=function(v){a6("conn",v)},WRh=function(v,Q){v.publish("proxyStateChange",Q)},Xld=function(v){v.connectTimerId_=_.G_(function(){sw("Connecting timeout");
v.JSC$20242_disconnect_(1)},2E4)},aEd=function(v){_.MY(v.connectTimerId_);
v.connectTimerId_=NaN},$bs=function(v){_.MY(v.reconnectedCheckScreenTimeout_);
v.reconnectedCheckScreenTimeout_=NaN},mbm=function(v){rw8(v);
v.playingSyncTimerId_=_.G_(function(){HnY(v,"getNowPlaying")},2E4)},rw8=function(v){_.MY(v.playingSyncTimerId_);
v.playingSyncTimerId_=NaN},jw5=function(v){sw("Channel opened");
v.reconnecting_&&(v.reconnecting_=!1,$bs(v),v.reconnectedCheckScreenTimeout_=_.G_(function(){sw("Timing out waiting for a screen.");v.JSC$20242_disconnect_(1)},15E3))},vRd=function(v,Q){var V=null;
if(Q){var E=IEm(v);E&&(V={clientName:E.clientName,deviceMake:E.brand,deviceModel:E.model,osVersion:E.osVersion})}_.Pr("yt.mdx.remote.remoteClient_",V);Q&&(aEd(v),$bs(v));V=v.channelService.isChannelOpened()&&isNaN(v.connectTimerId_);Q==V?Q&&(WRh(v,1),HnY(v,"getSubtitlesTrack")):Q?(v.getOtherConnectedRemoteId_()&&v.playerContext_.reset(),WRh(v,1),HnY(v,"getNowPlaying"),UbI(v)):v.JSC$20242_disconnect_(1)},QRm=function(v,Q){var V=Q.params.videoId;
delete Q.params.videoId;V==v.playerContext_.videoId&&(_.gI.isEmpty(Q.params)?v.playerContext_.trackData=null:v.playerContext_.trackData=Q.params,v.publish("remotePlayerChange"))},Vkd=function(v,Q,V){var E=Q.params.videoId||Q.params.video_id,b=parseInt(Q.params.currentIndex,10);
v.playerContext_.listId=Q.params.listId||v.playerContext_.listId;zlY(v.playerContext_,E,b);v.publish("remoteQueueChange",V)},ERI=function(v,Q){Q.params=Q.params||{};
Vkd(v,Q,"NOW_PLAYING_MAY_CHANGE");v.onStateChange_(Q);v.publish("autoplayDismissed")};
tO.prototype.onStateChange_=function(v){var Q=parseInt(v.params.currentTime||v.params.current_time,10);SY(this.playerContext_,isNaN(Q)?0:Q);Q=parseInt(v.params.state,10);Q=isNaN(Q)?-1:Q;Q==-1&&this.playerContext_.playerState==-1E3&&(Q=-1E3);this.playerContext_.playerState=Q;Q=Number(v.params.loadedTime);this.playerContext_.loadedTime=isNaN(Q)?0:Q;Q=Number(v.params.duration);this.playerContext_.duration_=isNaN(Q)?0:Q;Q=this.playerContext_;var V=Number(v.params.liveIngestionTime);Q.liveIngestionTime_=
V;Q.isLive_=isNaN(V)?!1:!0;Q=this.playerContext_;V=Number(v.params.seekableStartTime);v=Number(v.params.seekableEndTime);Q.seekableStart_=isNaN(V)?0:V;Q.seekableEnd_=isNaN(v)?0:v;this.playerContext_.playerState==1?mbm(this):rw8(this);this.publish("remotePlayerChange")};
tO.prototype.onAdStateChange_=function(v){if(this.playerContext_.playerState!=-1E3){var Q=1085;switch(parseInt(v.params.adState,10)){case 1:Q=1081;break;case 2:Q=1084;break;case 0:Q=1083}this.playerContext_.playerState=Q;v=parseInt(v.params.currentTime,10);SY(this.playerContext_,isNaN(v)?0:v);this.publish("remotePlayerChange")}};
var bls=function(v,Q){var V=Q.params.muted=="true";v.playerContext_.volume=parseInt(Q.params.volume,10);v.playerContext_.muted=V;v.publish("remotePlayerChange")},FTj=function(v,Q){v.autoplayVideoId_=Q.params.videoId;
v.publish("nowAutoplaying",parseInt(Q.params.timeout,10))},KT$=function(v,Q){v.autoplayVideoId_=Q.params.videoId||null;
v.publish("autoplayUpNext",v.autoplayVideoId_)},il7=function(v,Q){v.autoplayMode_=Q.params.autoplayMode;
v.publish("autoplayModeChange",v.autoplayMode_);v.autoplayMode_=="DISABLED"&&v.publish("autoplayDismissed")},LTh=function(v,Q){var V=Q.params.hasNext=="true";
v.playerContext_.hasPrevious=Q.params.hasPrevious=="true";v.playerContext_.hasNext=V;v.publish("previousNextChange")};
tO.prototype.isCapabilitySupportedOnConnectedDevices_=function(v){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var Q=_.L(this.connectedDevices_),V=Q.next();!V.done;V=Q.next())if(!V.value.capabilities.has(v))return!1;return!0};
var okf=function(v,Q){Q=Q.message;Q.params?sw("Received: action="+Q.action+", params="+(0,_.JG)(Q.params)):sw("Received: action="+Q.action+" {}");switch(Q.action){case "loungeStatus":Q=(0,_.YI)(Q.params.devices);v.connectedDevices_=_.sY(Q,function(E){return new fR(E)});
Q=!!_.J3(v.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"});
vRd(v,Q);Q=v.isCapabilitySupportedOnConnectedDevices_("mlm");v.publish("multiStateLoopEnabled",Q);break;case "loungeScreenDisconnected":ED5(v.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"});
vRd(v,!1);break;case "remoteConnected":var V=new fR((0,_.YI)(Q.params.device));_.J3(v.connectedDevices_,function(E){return E.equals(V)})||_.nQB(v.connectedDevices_,V);
break;case "remoteDisconnected":V=new fR((0,_.YI)(Q.params.device));ED5(v.connectedDevices_,function(E){return E.equals(V)});
break;case "gracefulDisconnect":break;case "playlistModified":Vkd(v,Q,"QUEUE_MODIFIED");break;case "nowPlaying":ERI(v,Q);break;case "onStateChange":v.onStateChange_(Q);break;case "onAdStateChange":v.onAdStateChange_(Q);break;case "onVolumeChanged":bls(v,Q);break;case "onSubtitlesTrackChanged":QRm(v,Q);break;case "nowAutoplaying":FTj(v,Q);break;case "autoplayDismissed":v.publish("autoplayDismissed");break;case "autoplayUpNext":KT$(v,Q);break;case "onAutoplayModeChanged":il7(v,Q);break;case "onHasPreviousNextChanged":LTh(v,
Q);break;case "requestAssistedSignIn":v.publish("assistedSignInRequested",Q.params.authCode);break;case "onLoopModeChanged":v.publish("loopModeChange",Q.params.loopMode);break;default:sw("Unrecognized action: "+Q.action)}};
_.K=tO.prototype;_.K.getProxyState_=function(){var v=3;this.isDisposed()||(v=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(v=1):v=2);return v};
_.K.JSC$20242_disconnect_=function(v){sw("Disconnecting with "+v);_.Pr("yt.mdx.remote.remoteClient_",null);aEd(this);this.publish("beforeDisconnect",v);v==1&&XYn();this.channelService.disconnect(v);this.dispose()};
_.K.getPlayerContextData_=function(){var v=this.playerContext_;this.clientVideoId_&&(v=this.playerContext_.clone(),zlY(v,this.clientVideoId_,v.index));return Jw$(v)};
_.K.setPlayerContextData_=function(v){var Q=this,V=new bE(v);V.videoId&&V.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=V.videoId,_.MY(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.G_(function(){if(Q.clientVideoId_){var b=Q.clientVideoId_;Q.clientVideoId_=null;Q.playerContext_.videoId!=b&&HnY(Q,"getNowPlaying")}},5E3));
var E=[];this.playerContext_.listId==V.listId&&this.playerContext_.videoId==V.videoId&&this.playerContext_.index==V.index||E.push("remoteQueueChange");this.playerContext_.playerState==V.playerState&&this.playerContext_.volume==V.volume&&this.playerContext_.muted==V.muted&&Sam(this.playerContext_)==Sam(V)&&(0,_.JG)(this.playerContext_.trackData)==(0,_.JG)(V.trackData)||E.push("remotePlayerChange");this.playerContext_.reset(v);_.bv(E,function(b){this.publish(b)},this)};
_.K.getOtherConnectedRemoteId_=function(){var v=this.channelService.getDeviceId(),Q=_.J3(this.connectedDevices_,function(V){return V.type=="REMOTE_CONTROL"&&V.id!=v});
return Q?Q.id:""};
_.K.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.K.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.K.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.K.JSC$20242_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var UbI=function(v){_.MY(v.idleDisconnectTimerId_);v.idleDisconnectTimerId_=_.G_(function(){v.JSC$20242_disconnect_(1)},864E5)},HnY=function(v,Q,V){V?sw("Sending: action="+Q+", params="+(0,_.JG)(V)):sw("Sending: action="+Q);
v.channelService.sendMessage(Q,V)};
tO.prototype.sendMessageWithUserAction_=function(v,Q){HnY(this,v,Q);UbI(this)};
tO.prototype.JSC$20242_getXsrfToken_=function(){var v=_.qY.get("SAPISID","")||_.qY.get("__Secure-1PAPISID",void 0)||"",Q=_.qY.get("__Secure-3PAPISID","")||"";if(!v&&!Q)return"";v=_.Sq(_.zc(v),2);Q=_.Sq(_.zc(Q),2);return _.Sq(_.zc(","+v+","+Q),2)};
tO.prototype.subscribe=tO.prototype.subscribe;tO.prototype.unsubscribeByKey=tO.prototype.unsubscribeByKey;tO.prototype.getProxyState=tO.prototype.getProxyState_;tO.prototype.disconnect=tO.prototype.JSC$20242_disconnect_;tO.prototype.getPlayerContextData=tO.prototype.getPlayerContextData_;tO.prototype.setPlayerContextData=tO.prototype.setPlayerContextData_;tO.prototype.getOtherConnectedRemoteId=tO.prototype.getOtherConnectedRemoteId_;tO.prototype.getReconnectTimeout=tO.prototype.getReconnectTimeout_;
tO.prototype.getAutoplayMode=tO.prototype.getAutoplayMode_;tO.prototype.getAutoplayVideoId=tO.prototype.getAutoplayVideoId_;tO.prototype.reconnect=tO.prototype.JSC$20242_reconnect_;tO.prototype.sendMessage=tO.prototype.sendMessageWithUserAction_;tO.prototype.getXsrfToken=tO.prototype.JSC$20242_getXsrfToken_;tO.prototype.isCapabilitySupportedOnConnectedDevices=tO.prototype.isCapabilitySupportedOnConnectedDevices_;var EK8=function(v){$T.call(this,"ScreenServiceProxy");this.instance_=v;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Nz)(this.JSC$20245_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Nz)(this.onOnlineScreenChange_,this)))};
_.f(EK8,$T);_.K=EK8.prototype;_.K.getScreens=function(v){return this.instance_.$_gs(v)};
_.K.contains=function(v){return!!this.instance_.$_c(v)};
_.K.get=function(v){return this.instance_.$_g(v)};
_.K.start=function(){this.instance_.$_st()};
_.K.add=function(v,Q,V){this.instance_.$_a(v,Q,V)};
_.K.remove=function(v,Q,V){this.instance_.$_r(v,Q,V)};
_.K.updateName=function(v,Q,V,E){this.instance_.$_un(v,Q,V,E)};
_.K.disposeInternal=function(){for(var v=this.subscriptionKeys_.length,Q=0;Q<v;++Q)this.instance_.$_ubk(this.subscriptionKeys_[Q]);this.subscriptionKeys_.length=0;this.instance_=null;$T.prototype.disposeInternal.call(this)};
_.K.JSC$20245_onScreenChange_=function(){this.publish("screenChange")};
_.K.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
mq.prototype.$_st=mq.prototype.start;mq.prototype.$_gspc=mq.prototype.JSC$20204_getScreenByPairingCode;mq.prototype.$_gsppc=mq.prototype.JSC$20204_getScreenByPollingPairingCode;mq.prototype.$_c=mq.prototype.contains;mq.prototype.$_g=mq.prototype.get;mq.prototype.$_a=mq.prototype.add;mq.prototype.$_un=mq.prototype.updateName;mq.prototype.$_r=mq.prototype.remove;mq.prototype.$_gs=mq.prototype.getScreens;mq.prototype.$_gos=mq.prototype.JSC$20204_getOnlineScreens;mq.prototype.$_s=mq.prototype.subscribe;
mq.prototype.$_ubk=mq.prototype.unsubscribeByKey;var Hqn=null,F3h=!1,N38=null,FR=null,Vmj=null,KX=[];var tk0=new _.Hr("yt-menu"),pF7=function(){},Zl7=function(v,Q,V){v=Q=="right-click"?V.rightClickMenuPopupHint:V.menuPopupHint;
if(!(e08(Q)>10))return Q=Q||"default",tk0.set(Q+"-impression",e08(Q)+1),v},e08=function(v){return parseInt(tk0.get((v||"default")+"-impression")||0,10)};
_.$G(pF7);var Pon=function(){this.contexts_=new WeakMap;this.JSC$20251_networkService_=this.activeContext_=null},deh=function(v,Q,V){var E=v.contexts_.get(Q);
E||(E=new T9d(v.JSC$20251_networkService_),v.contexts_.set(Q,E));v.activeContext_=E;V&&v.activeContext_.reset();v.activeContext_.start();return v.activeContext_};var um=function(){};
um.prototype.enqueue=function(){var v=this,Q;return _.e(function(V){if(v.isCounterfactual())return(Q=v.getCounterfactualData())&&v.shouldLogCounterfactualImpression()&&v.sendImpressionEndpoints(Q),V.return();v.doEnqueue();_.q1(V)})};
um.prototype.sendImpressionEndpoints=function(v){_.KW.getInstance().triggerOptionalAction("yt-service-request",{},v[0])};var jY=function(v,Q){this.renderer=v;this.page=Q};
_.f(jY,um);jY.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
jY.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
jY.prototype.shouldLogCounterfactualImpression=function(){return!0};
jY.prototype.doEnqueue=function(){var v=_.XK(this.page);v&&v.pause();this.renderer.impressionCommand&&_.KW.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.uN(_.KW.getInstance(),[this.renderer.promoCommand],this.page)};var h0s=function(v,Q){this.renderer=v;this.resolver=_.B_();this.JSC$20263_enforcementCounter=new _.prp;Q?this.JSC$20263_playerManager=_.XK(Q):this.JSC$20263_playerManager=null;_.iK(1,!0)};
_.f(h0s,um);_.K=h0s.prototype;_.K.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var v=[];this.renderer.impressionEndpoints.forEach(function(Q){(Q=_.MQ(Q))&&v.push(Q)});
return v}};
_.K.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.K.shouldLogCounterfactualImpression=function(){var v=_.zub();v?(this.JSC$20263_enforcementCounter.increment("POPUP"),_.iK(3)):_.iK(2);return v};
_.K.cancel=function(){this.resolver.promise.cancel()};
_.K.doEnqueue=function(){var v=this;_.zub()?(this.JSC$20263_enforcementCounter.increment("POPUP"),_.iK(3),wFs(this)):this.JSC$20263_playerManager?(this.resolver.promise.then(function(){wFs(v)}),AbI(this.resolver,this.JSC$20263_playerManager)):_.iK(2)};
var AbI=function(v,Q){var V=_.B_();Q.getPlayerPromise().then(function(E){V.resolve(E)});
V.promise.then(function(E){E.addEventListener("onAbnormalityDetected",v.resolve);_.qV(v.promise,function(){E.removeEventListener("onAbnormalityDetected",v.resolve)})});
v.promise.thenCatch(function(){V.promise.cancel()})},wFs=function(v){_.iK(3);
var Q={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:v.renderer}};Q=_.KW.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Q},{});Promise.all(Q).then(function(){k8$();v.JSC$20263_playerManager&&v.JSC$20263_playerManager.pause()})},k8$=function(){xQd(function(v,Q){_.YJh(v,Q);
v===0?_.iK(7):_.iK(4)})};var Tvh=function(v,Q){this.renderer=v;this.page=Q;this.resolver=_.B_()};
_.f(Tvh,um);_.K=Tvh.prototype;_.K.cancel=function(){this.resolver.promise.cancel()};
_.K.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.K.isCounterfactual=function(){return!this.renderer.isVisible};
_.K.shouldLogCounterfactualImpression=function(){return!0};
_.K.doEnqueue=function(){var v=this;this.resolver.promise.then(function(){var V={popup:{mealbarPromoRenderer:v.renderer},popupType:"MEALBAR"};_.KW.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:V},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var Q=_.XK(this.page);Q&&YTq(this.resolver,Q)}break;default:this.resolver.resolve()}};
var YTq=function(v,Q){var V=_.B_();Q.getPlayerPromise().then(function(E){V.resolve(E)});
V.promise.then(function(E){E.addEventListener("onAdEnd",v.resolve);_.qV(v.promise,function(){E.removeEventListener("onAdEnd",v.resolve)})});
v.promise.thenCatch(function(){V.promise.cancel()})};var ybd=function(v,Q){this.renderer=v;this.page=Q};
_.f(ybd,um);_.K=ybd.prototype;_.K.cancel=function(){this.JSC$20271_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20271_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20271_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.K.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.K.isCounterfactual=function(){return!this.renderer.isVisible};
_.K.shouldLogCounterfactualImpression=function(){return!0};
_.K.doEnqueue=function(){var v=this,Q,V;((Q=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(V=Q.playbackUpsellDialogTriggerConditionData)==null?void 0:V.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20271_downloadedVideosCountSelectorUnsubscriber=_.Wm(_.oF(),JR0,function(E,b){E>b&&(cbs(v),v.cancel())}):cbs(this)};
var cbs=function(v){var Q={popup:{upsellDialogRenderer:v.renderer},popupType:"MODAL"};_.KW.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Q},{});(v=_.XK(v.page))&&v.pause()};var WS={},fn5=(WS.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",WS.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",WS.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",WS.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",WS.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",WS.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",WS.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",WS),G8n=function(v,Q){this.renderer=v;this.targetManager=
Q};
_.f(G8n,um);_.K=G8n.prototype;_.K.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20278_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20278_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20278_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.K.getCounterfactualData=function(){if(this.isCounterfactual()){var v;return(v=this.renderer.promoConfig)==null?void 0:v.impressionEndpoints}};
_.K.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.K.shouldLogCounterfactualImpression=function(){return!0};
_.K.doEnqueue=function(){var v=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20278_downloadedVideosCountSelectorUnsubscriber=_.Wm(_.oF(),JR0,function(Q,V){v.renderer.targetId&&Q>V&&(jlj(v.targetManager,v.renderer.targetId,Co7(v)),v.cancel())});
break;default:jlj(this.targetManager,this.renderer.targetId,Co7(this))}};
var Co7=function(v){var Q;if((Q=v.renderer.suggestedPosition)==null?0:Q.type)var V=fn5[v.renderer.suggestedPosition.type];V||(V="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:v.renderer},popupType:"HINT",position:V}}};var Mkm=function(){this.previousPage=null},Olm;
Mkm.prototype.registerPromoCommand=function(v,Q){Deh(this,void 0,void 0,_.y(v.roadblock,FHd),void 0,void 0,Q)};
var Deh=function(v,Q,V,E,b,F,t){v.previousPage!==t&&v.pendingTooltipPromo&&v.pendingTooltipPromo.cancel();v.previousPage=t;b?(v.pendingEnforcementPromo&&v.pendingEnforcementPromo.cancel(),v.pendingEnforcementPromo=new h0s(b,t),v.pendingEnforcementPromo.enqueue()):F?(v.pendingCommandWrapperPromo=new jY(F,t),v.pendingCommandWrapperPromo.enqueue()):E?(v.pendingRoadblockPromo&&v.pendingRoadblockPromo.cancel(),v.pendingRoadblockPromo=new ybd(E,t),v.pendingRoadblockPromo.enqueue()):Q?(v.pendingMealbarPromo&&
v.pendingMealbarPromo.cancel(),v.pendingMealbarPromo=new Tvh(Q,t),v.pendingMealbarPromo.enqueue()):V&&(v.pendingTooltipPromo&&v.pendingTooltipPromo.cancel(),v.pendingTooltipPromo=new G8n(V,_.xp()),v.pendingTooltipPromo.enqueue())},R0$=function(){Olm||(Olm=new Mkm);
return Olm};var tmm=!1;var W_8=function(v,Q){var V=_.r7("SESSION_INDEX");this.actionToken_=v;this.commonToken_=Q;this.sessionIndex_=V},jgn=function(v){var Q=_.B_(),V=_.Q9("payments.business.integration.bootstrap"),E=_.Q9("payments.business.integration"),b=E.Style.create().withMaterialDesignStyle(),F=E.mashupMode.popup("instrument-manager");
V.asMashupMode(F).usingUserIndex(v.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(b).inStandaloneContext(E.standaloneContextAuthId.forUserId()).instrumentManager(v.actionToken_,v.commonToken_.length>0?v.commonToken_:void 0,function(t){var p=t.instrumentId;p?Q.resolve(p):(p=_.Q9("payments.business.integration.scenario.InstrumentManager"),Q.reject(t.errorCode&&t.errorCode===p.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(t){_.Ui(t);
Q.reject("instrumentManagerLoadError")});
return Q.promise};var el=function(v,Q,V){this.payloadName="transactionFlowFailed";this.payload={errorType:v,serializedTransactionFlowLoggingParams:Q,isUserDismiss:V===void 0?!1:V}};
_.Pr("yt.ypc.shared.YpcTransactionFlowError",el);var oP=function(){return _.dg.apply(this,arguments)||this};
_.f(oP,_.dg);oP.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
oP.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
oP.prototype.onErrorMessageDismiss=oP.prototype.onErrorMessageDismiss;_.W([_.q({readOnly:!0,observer:"errorRendererChanged"}),_.X("design:type",Object)],oP.prototype,"errorRenderer",void 0);_.W([_.tM("yt-live-chat-error-message-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],oP.prototype,"onErrorMessageDismiss",null);_.W([_.hM()],oP);var nRj=[oP.prototype];var lnj;var qTI;var STY=new _.Hr("yt-live-chat"),z0$=new Map;z0$.set("timestamp_toggle","show-timestamps");z0$.set("reactions_toggle","allow-reactions");var Xl=function(){return _.z.apply(this,arguments)||this};
_.f(Xl,_.z);_.K=Xl.prototype;_.K.menuItemIdentifierChanged=function(){var v;(v=this.data)!=null&&v.menuItemIdentifier&&(v=z0$.get(this.data.menuItemIdentifier))&&(_.Y("enable_lwe_web_mute")?(v=STY.get(v),this.isToggled=!(v===void 0?!this.data.isToggled:!v)):this.isToggled=STY.get(v))};
_.K.onFocus=function(){this.toggleButton.focus()};
_.K.onTap=function(){var v=this.data.command;v&&this.componentBehavior.resolveCommand(v)};
_.K.computeText=function(v,Q,V){return this.componentBehavior.getSimpleString(v?V:Q)};
_.K.computeIcon=function(v,Q,V){return(v=v?V:Q)&&v.iconType?_.VK(v.iconType):""};
Xl.prototype.onTap=Xl.prototype.onTap;Xl.prototype.onFocus=Xl.prototype.onFocus;Xl.prototype.menuItemIdentifierChanged=Xl.prototype.menuItemIdentifierChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Xl.prototype,"componentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xl.prototype,"data",void 0);
_.W([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.X("design:type",String)],Xl.prototype,"icon",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Xl.prototype,"isToggled",void 0);_.W([_.Z7("tp-yt-paper-toggle-button"),_.X("design:type",Object)],Xl.prototype,"toggleButton",void 0);_.W([_.ph("data.menuItemIdentifier"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Xl.prototype,"menuItemIdentifierChanged",null);
_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Xl.prototype,"onFocus",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Xl.prototype,"onTap",null);_.W([_.D7({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Xl);
_.B(Xl,"yt-live-chat-toggle-renderer",function(){if(qTI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;lnj===void 0&&(lnj=document.createElement("template"));var E=lnj;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);qTI=v}v=qTI;return v},{mode:0});var Jbh=new _.KB("NAVIGATION_PROGRESS_TOKEN");var Nv0={},xeY={},Bvj=(xeY[a8f.name]=!0,xeY),aP=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;v.tabGesturesIsActive=!1;v.actionRouterIsRoot=!0;v.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};v.pageTitle="";v.titleSuffix="YouTube";v.unseenNotificationCount=
0;v.hasNavigated=!1;v.hasSetScrollTopForNavigation=!1;v.pagePreparer=null;v.zwiebackInitJobId=0;v.dataUpdatePromise=null;v.loadDepsPromise=_.Vk();v.hasPendingNavigation=!1;v.pendingPlayerOnResponseReceivedActions=[];return v};
_.f(aP,_.dg);aP.prototype.attached=function(){gRh(this);document.addEventListener("yt-navigate-cache",_.Lh(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var v=rc();v.init();v.dispatchElement=this.hostElement};
var gRh=function(v,Q){Q=Q===void 0?0:Q;var V=_.ht().resolve(_.d$(_.Ns));if(V)sRq(v,V);else{if(Q>=5)throw Error("tl");setTimeout(function(){gRh(v,Q+1)},0)}},sRq=function(v,Q){Q.addEventListener("yt-navigate-start",_.Lh(v,v.onYtNavigateStart));
Q.addEventListener("yt-navigate-finish",_.Lh(v,v.onYtNavigateFinish));Q.addEventListener("yt-navigate-error",_.Lh(v,v.onYtNavigateError));Q.addEventListener("yt-page-data-fetched",_.Lh(v,v.onYtPageDataFetched))};
_.K=aP.prototype;_.K.detached=function(){var v=_.ht().resolve(_.Ns);v.removeEventListener("yt-navigate-start",_.Lh(this,this.onYtNavigateStart));v.removeEventListener("yt-navigate-finish",_.Lh(this,this.onYtNavigateFinish));v.removeEventListener("yt-navigate-error",_.Lh(this,this.onYtNavigateError));v.removeEventListener("yt-page-data-fetched",_.Lh(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Lh(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.K.setPageOffset=function(v,Q){v?_.mb(this.hostElement,"yt-set-page-offset",[v,Q]):_.ro(Error("ul"))};
_.K.setPageOffsetForNavigation=function(v,Q){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(v,Q))};
_.K.onYtNavigateSetPageOffset=function(v,Q){this.setPageOffsetForNavigation(Q.page,Q.offset)};
_.K.getPageOffset=function(){var v=_.m9(this.hostElement).querySelector("#page-manager").getCurrentPage(),Q=0;v&&(Q=_.mb(this.hostElement,"yt-get-page-offset",[v])[0]);return Q};
_.K.onYtHistoryPop=function(v,Q){if(_.mX("DISABLE_WARM_LOADS"))v.preventDefault(),window.location.reload();else{var V=_.ht().resolve(_.Ns);V.hasPendingNavigation()&&v.preventDefault();V.cancelPendingNavigation();_.Un(this.hostElement,"yt-pending-navigation-cancelled");Q.errorMsg&&(v=Q.errorMsg.split(" - "),Q=Error(v[0]),v.length==2&&v[1]&&(_.Hx(Q,v[1]),_.Iy(Q)),window.location.reload())}};
_.K.onYtHistoryLoad=function(v,Q){var V=this;if(_.mX("DISABLE_WARM_LOADS"))window.location.reload();else{(v=Q.endpoint)&&Object.keys(v).length||(v=null);var E=Q.historyEntry,b=_.ht().resolve(_.Ns),F=_.ht().resolve(_.oJ),t=null;E&&E.rootData&&(t=E.rootData);var p=t&&u8h(t);!t||p||t.filler?v?(b.navigate(v,!0),jRs(this,v)):(Q.legacyBorder||p||(Q.JSC$30645_savedComponentState==null&&t==null?_.Iy(new _.xd("Incomplete history entry",Q.forward)):_.$h(new _.xd("Malformed history entry",Q.JSC$30645_savedComponentState,
Q.forward,t))),window.location.reload()):(_.X2G({isHot:!0}),_.ft({webInfo:{navigationReason:"h"}}),_.kRS(),_.Mp("srt"),_.Mp("pdc"),this.cancelPendingTasks(),WTn(this,Q.forward,t),t.player&&(t.player.loaded=!1),jRs(this,v),_.l$p(b,v||{},t,2,{},!1,Q).then(function(){V.setPageOffset(F.getCurrentPage(),E.scrollTop||0)}))}};
_.K.initHistoryManager=function(v){if(!this.hasNavigated){this.hasNavigated=!0;var Q=_.m9(this.hostElement).querySelector("#page-manager").getCurrentData();v=isNaN(v)?this.getPageOffset():v;var V=_.ht().resolve(_.Ns).currentEndpoint;this.replaceState(V,Q,v)}};
_.K.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.K.onYtNavigateStart=function(v,Q){this.cancelPendingTasks();Q.noProgressBar||(v=_.ht().resolve(_.d$(Jbh)))&&v.start();v=this.hasPendingNavigation?null:this.data;var V=_.ht().resolve(_.oJ),E,b,F;_.Y("kevlar_use_vimio_behavior")&&!((E=Q.endpoint)==null?0:(b=E.commandMetadata)==null?0:(F=b.webCommandMetadata)==null?0:F.ignoreNavigation)&&(E=V.getCurrentPage())&&E.disconnectVisibilityRoot();V.prepareForNavigation(Q.pageType,Q.endpoint);_.Y("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.AD(1,
"pcl"),_.kc(this.pagePreparer,V.preparePage.bind(V,Q.pageType,Q.endpoint)));E=this.getPageOffset();this.initHistoryManager(E);Q.reload||this.hasPendingNavigation?(Q.pageType==="shorts"&&Q.reload&&_.Hj(this.hostElement,"yt-shorts-reset"),this.replaceState(Q.endpoint,v,E)):(v==null?void 0:v.page)==="watch"&&Q.pageType==="watch"&&_.Y("kevlar_replace_watch_to_watch_history_state")?this.replaceState(Q.endpoint,v,E):(v==null?void 0:v.page)!=="shorts"||Q.pageType!=="shorts"||Q.endpoint.reelWatchEndpoint.sequenceParams||
_.Y("short_to_short_back_nav_killswitch")?Q.type!="navigate-back"&&Q.type!="navigate-forward"&&(Q.pageType==="shorts"&&_.Hj(this.hostElement,"yt-shorts-reset"),this.saveAndPush(Q.url,Q.endpoint,v,E)):this.replaceState(Q.endpoint,v,0);this.hasPendingNavigation=!0};
var oRj=function(v){v.hasPendingNavigation=!1;(v=_.ht().resolve(_.d$(Jbh)))&&v.finish()};
aP.prototype.onYtNavigateError=function(v,Q){oRj(this);v=this.get("endpoint.commandMetadata.webCommandMetadata.url",Q);var V=_.Ki(window.location.href);v&&!V.pbjreload&&(Q=Q.navigationErrorReason||"10",_.Y("kevlar_parent_on_pbjreload")&&(V={csn:_.Mo()},this.get("data.endpoint.clickTrackingParams")&&(V.itct=this.data.endpoint.clickTrackingParams),_.ox(v,V)),_.nF(_.iv(v,{pbjreload:Q})))};
aP.prototype.onYtNavigateCache=function(v,Q){var V=this,E=Q.url,b=Q.endpoint,F=Q.data;v=!!Q.miniplayer;Q=!!Q.skipHistory;if(E&&b&&F){var t=this.getPageOffset(),p=this.data||null;Q||this.saveAndPush(E,b,p,t);E=_.l$p(_.ht().resolve(_.Ns),b,F,v?4:3,{},v);v&&E.then(function(){V.dataUpdatePromise&&V.dataUpdatePromise.then(function(){var Z=_.ht().resolve(_.oJ);V.setPageOffset(Z.getCurrentPage(),0)})})}};
aP.prototype.onYtNavigateFinish=function(v,Q){var V=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){XFj(V,Q.fromHistory)})};
var XFj=function(v,Q){oRj(v);if(v.pendingPlayerOnResponseReceivedActions){for(var V=_.L(v.pendingPlayerOnResponseReceivedActions),E=V.next();!E.done;E=V.next())_.FL(E.value,v.hostElement);v.pendingPlayerOnResponseReceivedActions=[]}V=_.ht().resolve(_.oJ);Q||!v.hasNavigated||_.Y("web_disable_scroll_on_navigate_finish")||((Q=V.getCurrentPage())?Q.is==="ytd-shorts"||v.tabGesturesIsActive||v.setPageOffsetForNavigation(Q,0):_.Iy(Error("vl")));_.JM(function(){_.JM(function(){_.Mp("pda")})})};
aP.prototype.onYtNavigate=function(v){if(!v.detail.endpoint){var Q=new _.xd("Error: Missing yt-navigate endpoint from target:",v.target,v.target.nodeName);_.ro(Q)}if(Q=_.Y("cold_missing_history"))Q=rc(),Q.init(!1),Q=!(Q.browserHistory.boundHistoryReplaceState&&Q.browserHistory.boundHistoryPushState);if(Q){_.aS("DISABLE_WARM_LOADS",!0);Q=new _.xd("Failed to initialize history manager",this.getDebugString());var V=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
V?_.Iy(Q):_.ro(Q)}Q=v.detail.endpoint;var E,b;_.Y("debug_forward_web_query_parameters")&&((E=Q.commandMetadata)==null?0:(b=E.webCommandMetadata)==null?0:b.url)&&(Q=JSON.parse(JSON.stringify(Q)),Q.commandMetadata.webCommandMetadata.url=_.dpo(Q.commandMetadata.webCommandMetadata.url,window.location.search));v={type:0,command:Q,form:{params:v.detail.params,tempData:v.detail.tempData||{},requestType:v.detail.type,createScreenConfig:v.detail.createScreenConfig,reload:v.detail.reload?v.detail.reload:!1,
requestForm:v.detail}};_.Y("kevlar_yt_navigate_command_handler")?(E=_.ht().resolve(_.At),v.form.skipDefaultElement=!0,E.resolveCommand(Q,{form:v.form})):this.handleNavigate(v)};
aP.prototype.handleNavigate=function(v){this.hasSetScrollTopForNavigation=!1;var Q=_.ht().resolve(_.Ns),V=v.form||{};Q.navigate(v.command,V.reload,V.params,V.tempData,V.requestType,V.createScreenConfig,V.ignoreConfirmation,V.requestForm)&&jRs(this,v.command,V.tempData)};
aP.prototype.onYtPageDataFetched=function(v,Q){try{_.YtV().reset();this.data=Q.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.ht().resolve(_.oJ).updatePageData(this.data);var V=this.get("playerResponse.onResponseReceivedActions",this.data);V&&(V=an$(this,V));V&&_.Qk(this.hostElement,V,this.hostElement);var E=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),b=this.get("response.responseContext.consistencyTokenJar",this.data);if(E||b){var F=_.PU3(),t=(0,_.gI.getValues)(F.tokenJars);E&&F.replace(t,E);b&&F.replace(t,b)}}catch(p){_.ro(p)}};
var jRs=function(v,Q,V){try{v.onYtEndpointChangeHandler(Q,V)}catch(E){_.ro(E)}};
_.K=aP.prototype;_.K.onYtEndpointChangeHandler=function(){};
_.K.setPageTitle=function(v){v=(this.pageTitle=v)?v+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+v};
_.K.onYtUpdateTitle=function(v,Q){this.setPageTitle(Q)};
_.K.setUnseenNotificationCount=function(v){this.unseenNotificationCount=v;this.setPageTitle(this.pageTitle)};
_.K.handleUpdateNotificationsUnseenCountAction=function(v){_.y(v,Dhh)&&((v=_.y(v,Dhh).unseenCount)?this.setUnseenNotificationCount(v):this.setUnseenNotificationCount(0))};
_.K.handleClearCookieAction=function(v){var Q;(v=(Q=_.y(v,GSd))==null?void 0:Q.cookieName)&&_.S20(v)};
_.K.onYtUpdateUnseenNotificationCount=function(v,Q){this.setUnseenNotificationCount(Q)};
_.K.loadData=function(v){var Q=this;this.loadDepsPromise.then(function(){var V=_.ht().resolve(_.d$(_.Ns));V||_.ro(Error("wl"));if(v&&v.response){if(!v.endpoint){var E=_.JY(window.document.location.href)||"/",b="";if(E==="/"||E.startsWith("/?"))b="WEB_PAGE_TYPE_BROWSE";v.endpoint={commandMetadata:{webCommandMetadata:{url:E,webPageType:b,rootVe:3854}}}}_.l$p(V,v.endpoint,v,5,{})}else v.endpoint?V.navigate(v.endpoint):V.navigate(_.j5);_.XT.cancelJob(Q.zwiebackInitJobId);Q.zwiebackInitJobId=_.XT.addLowPriorityJob(pCh)})};
var rc=function(){return _.ht().resolve(_.ND)};
aP.prototype.getDebugString=function(){return rc().getDebugString()};
aP.prototype.getThirdPartyManipulationSuspected=function(){return rc().getThirdPartyManipulationSuspected()};
aP.prototype.replaceState=function(v,Q,V){rc().saveAndReplace(v,Q,V)};
aP.prototype.saveAndPush=function(v,Q,V,E){rc().saveAndPush(v,Q,V,E)};
var u8h=function(v){return _.y(v.endpoint,_.sn)||_.y(v.endpoint,_.PH)?!0:!v||isNaN(v.expirationTime)?!1:(0,_.wO)()>v.expirationTime},WTn=function(v,Q,V){var E=v.get("response.trackingParams",V),b=_.CC(),F=_.Mo();
if(E&&b&&F&&(E=v.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",V),!E&&V.rootVe&&(E=V.rootVe),b=Q?"forwardButton":"backButton",Q=v.get("playerResponse.topbar.desktopTopbarRenderer."+b+".buttonRenderer.command.clickTrackingParams",v.data),v=v.get("response.topbar.desktopTopbarRenderer."+b+".buttonRenderer.command.clickTrackingParams",v.data),Q=(v=Q||v)?_.dE(v):void 0,v=_.tR(),b=[_.Vk(V)],_.S5(v,E,Q,{dataPromises:b,csnToClone:V.csn}),V.graftedVes))for(V=
_.L(V.graftedVes),E=V.next();!E.done;E=V.next())_.za(v,E.value)};
aP.prototype.onStoreGraftedVeAction=function(v){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(v)):_.Iy(Error("xl"))};
var an$=function(v,Q){return Q.filter(function(V){for(var E in V)if(Bvj[E])return v.pendingPlayerOnResponseReceivedActions.push(V),!0;return!1})};
_.hr.Object.defineProperties(aP.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
aP.prototype.onStoreGraftedVeAction=aP.prototype.onStoreGraftedVeAction;aP.prototype.loadData=aP.prototype.loadData;aP.prototype.onYtUpdateUnseenNotificationCount=aP.prototype.onYtUpdateUnseenNotificationCount;aP.prototype.handleClearCookieAction=aP.prototype.handleClearCookieAction;aP.prototype.handleUpdateNotificationsUnseenCountAction=aP.prototype.handleUpdateNotificationsUnseenCountAction;aP.prototype.setUnseenNotificationCount=aP.prototype.setUnseenNotificationCount;
aP.prototype.onYtUpdateTitle=aP.prototype.onYtUpdateTitle;aP.prototype.setPageTitle=aP.prototype.setPageTitle;aP.prototype.onYtEndpointChangeHandler=aP.prototype.onYtEndpointChangeHandler;aP.prototype.onYtPageDataFetched=aP.prototype.onYtPageDataFetched;aP.prototype.handleNavigate=aP.prototype.handleNavigate;aP.prototype.onYtNavigate=aP.prototype.onYtNavigate;aP.prototype.onYtNavigateFinish=aP.prototype.onYtNavigateFinish;aP.prototype.onYtNavigateCache=aP.prototype.onYtNavigateCache;
aP.prototype.onYtNavigateError=aP.prototype.onYtNavigateError;aP.prototype.onYtNavigateStart=aP.prototype.onYtNavigateStart;aP.prototype.cancelPendingTasks=aP.prototype.cancelPendingTasks;aP.prototype.initHistoryManager=aP.prototype.initHistoryManager;aP.prototype.onYtHistoryLoad=aP.prototype.onYtHistoryLoad;aP.prototype.onYtHistoryPop=aP.prototype.onYtHistoryPop;aP.prototype.onYtNavigateSetPageOffset=aP.prototype.onYtNavigateSetPageOffset;aP.prototype.setPageOffset=aP.prototype.setPageOffset;
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],aP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],aP.prototype,"data",void 0);_.W([_.tM("yt-navigate-set-page-offset"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],aP.prototype,"onYtNavigateSetPageOffset",null);
_.W([_.tM("yt-history-pop"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],aP.prototype,"onYtHistoryPop",null);_.W([_.tM("yt-history-load"),_.X("design:type",Function),_.X("design:paramtypes",[Event,_.rUx]),_.X("design:returntype")],aP.prototype,"onYtHistoryLoad",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],aP.prototype,"onYtNavigate",null);
_.W([_.tM("yt-update-title"),_.X("design:type",Function),_.X("design:paramtypes",[Event,String]),_.X("design:returntype")],aP.prototype,"onYtUpdateTitle",null);_.W([_.tM("yt-update-unseen-notification-count"),_.X("design:type",Function),_.X("design:paramtypes",[Event,Number]),_.X("design:returntype")],aP.prototype,"onYtUpdateUnseenNotificationCount",null);_.W([_.hM()],aP);Nv0.YtdAppBehavior=[_.SI.YtActionHandlerBehavior,aP.prototype];var $g=function(){var v=_.dg.apply(this,arguments)||this;v._noAccessors=!0;return v};
_.f($g,_.dg);$g.prototype.ready=function(){var v=this;_.m9(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){v.onChange_()})};
$g.prototype.dataChanged_=function(){_.m9(this.hostElement).querySelector("#checkbox").checked=!1};
$g.prototype.onChange_=function(){var v=_.m9(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Hj(this.hostElement,"yt-dismissal-reason-"+v,this.data.feedbackToken)};
$g.prototype.dataChanged_=$g.prototype.dataChanged_;_.W([_.q(),_.X("design:type",Object)],$g.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$g.prototype,"dataChanged_",null);_.W([_.hM()],$g);var rb$=[$g.prototype];var IP=function(){var v=_.dg.apply(this,arguments)||this;v.timeoutJobId=0;v.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return v};
_.f(IP,_.dg);IP.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
IP.prototype.startTimeout=function(){var v=this,Q=this.data&&this.data.displayDurationSeconds;Q&&!this.timeoutJobId&&(this.timeoutJobId=_.go(_.XT,function(){_.mb(v.hostElement,"yt-close-popup-action",[v.is]);v.timeoutJobId=0},Q*1E3))};
IP.prototype.cancelTimeout=function(){_.XT.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
IP.prototype.ytdHatsSurveyBehaviorDataChanged=IP.prototype.ytdHatsSurveyBehaviorDataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],IP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],IP.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.W([_.hM()],IP);var $eq=[_.SI.YtActionHandlerBehavior,IP.prototype];var In8=function(v,Q){var V;return((V=v.prefixMapping)==null?0:V[Q])?v.prefixMapping[Q]:v.SHARED_RENDERERS_.hasOwnProperty(Q)?"yt":v.prefix},HS={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}};HS.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.Y("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
HS.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};HS.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};HS.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
HS.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)"}};
HS.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};
HS.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};
HS.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};
HS.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
HS.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"}};HS.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};HS.TOAST={component:null,properties:{}};var Hl8=new function(v,Q,V){this.supportedPopups=v;this.navigationEndpointPopupMap=Q;this.popupTypeMap=V;this.supportedPopups=v;this.navigationEndpointPopupMap=Q;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:_.Y("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"}),meq=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$20329_popupConfig=HS;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 Ue5=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.vk.getInstance()},m8=function(v,Q){var V=v.pageNameToElement.get(Q);
if(!V){switch(Q){case "watch":var E=_.Y("web_watch_force_learning_journey_for_testing")?_.wx("ytd-watch-learning-journey"):_.Y("kevlar_watch_fixie")?_.wx("ytd-watch-fixie"):_.Y("kevlar_watch_grid")?_.wx("ytd-watch-grid"):_.wx("ytd-watch-flexy");break;case "learning_journey_watch":E=_.wx("ytd-watch-learning-journey");break;case "shorts":E=_.wx("ytd-shorts");break;case "search":E=_.wx("ytd-search");break;case "channel":E=_.wx("ytd-browse");E.pageSubtype="channels";break;case "trending":E=_.wx("ytd-browse");
E.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":E=
_.wx("ytd-browse");E.pageSubtype=Q;break;case "browse":E=_.wx("ytd-browse");break;default:_.Iy(new _.xd("Error getting page element for type",Q))}V=E;v.pageNameToElement.set(Q,V)}return V};
Ue5.prototype.preparePage=function(v,Q,V){V&&(v=_.LF(V)||v);if(v!=="watch"&&v!=="learning_journey_watch"){var E=this.elementPoolPopulator,b=v;b!=E.targetPage_&&E.pendingPages_.indexOf(b)>-1&&(E.targetPage_&&(E.pendingPages_.unshift(E.targetPage_),E.abort()),Xe5(E,b),_.$98(E,b))}if((E=m8(this,v))||!_.y(V,_.FJ)){E.isAttached||E===Q||(E.hidden=!0);if(!E.data&&(v!=="watch"&&v!=="learning_journey_watch"||!_.Y("swatcheroo_page_pool_dont_provide_filler_data"))){var F;if(v=(F=_.r7("FILLER_DATA",{})[v])==
null?void 0:F.response)E.data=v}return E}};var vLI=function(v){this.JSC$32626_clientRoot=v;this.playlistHandlerActionMap={"yt-add-to-playlist-command":TBh,"yt-end-playlist-command":Y7$,"yt-recover-playlist-command":cI5,"yt-refresh-playlist-command":Cqn,"yt-playlist-remove-videos-action":fDd};_.iM(_.KW.getInstance(),this.playlistHandlerActionMap,this.JSC$32626_clientRoot);Vyq()},QYm;var Uw=function(v,Q,V){this.apiKey=v;this.endpoint=Q;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=Q==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Q==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
Q==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Q==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new TKd};
_.K=Uw.prototype;
_.K.start=function(v){if(this.state===0)if(this.isOnline()){v.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=v.supportsHttpHeadersOverwriteParam);v.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=v.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Ct("voice_assistant");_.O2("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=v.languageCode||"en-US";this.supportsCrossDomainXhr=v.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=v.youtubeAssistantRequest||null;this.listeningHandler=v.listeningHandler||this.listeningHandler;this.audioDetectedHandler=v.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=v.stopHandler||this.stopHandler;this.completeHandler=v.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=v.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=v.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
v.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=v.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=v.accessToken;this.additionalHeaders=v.additionalHeaders||{};var Q;this.prefetchResponseTimeoutMs=(Q=v.prefetchResponseTimeoutMs)!=null?Q:this.prefetchResponseTimeoutMs;V8I(this);this.startAudio();ELn(this)}else this.errorHandler("OFFLINE")};
_.K.stop=function(v){var Q=v===void 0?{}:v;v=Q.logCancel===void 0?!0:Q.logCancel;var V=Q.logMicClosed===void 0?!0:Q.logMicClosed;var E=Q.handleError===void 0?!0:Q.handleError;Q=Q.handleStop===void 0?!0:Q.handleStop;this.state!==0&&(v&&vX("voz_cx"),Qs(this,{logMicClosed:V,handleStop:Q}),E&&this.errorHandler("ABORTED"))};
_.K.getState=function(){return this.state};
_.K.isSupported=function(){return!0};
_.K.stopAudio=function(v){(v===void 0||v)&&vX("voz_mf")};
_.K.startAudio=function(){vX("voz_vp");return _.Vk(null)};
var b9f=function(v,Q){v.channelOpen&&(v.state!==2&&(v.state=2,vX("voz_ss"),v.listeningHandler()),Q=new Uint8Array(Q),Q='{ "audioIn": "'+_.Sq(Q)+'" }',v.channel.send(Q))},Qs=function(v,Q){var V=Q===void 0?{}:Q;
Q=V.logMicClosed===void 0?!0:V.logMicClosed;V=V.handleStop===void 0?!0:V.handleStop;v.vozEndOfDataTimeout>-1&&(clearTimeout(v.vozEndOfDataTimeout),v.vozEndOfDataTimeout=-1);Fch(v);v.stopAudio(Q);v.channel&&(v.channelOpen=!1,v.manuallyClosedChannel=!0,v.channel.close(),v.channel=void 0);v.transcribedSpeechResults=[];v.state=0;V&&v.stopHandler()},V8I=function(v){var Q={httpHeadersOverwriteParam:v.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},v.additionalHeaders,v.accessToken&&v.isUsingVoz?{Authorization:"Bearer "+v.accessToken}:{"x-goog-api-key":v.apiKey}),supportsCrossDomainXhr:v.supportsCrossDomainXhr};v.channel=new wc(v.endpoint,Q);v.channel.open();_.wE(v.channel,"w",function(){var V=v.channel,E=V.send,b=v.isUsingVoz?"PLACEHOLDER":"example";b={config:{dialogStateIn:{languageCode:v.languageCode},deviceConfig:{deviceId:b,deviceModelId:b},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!v.isUsingVoz)b.config.requestType=4;else if(v.isUsingVoz&&v.youtubeAssistantRequest){var F=JSON.stringify(v.youtubeAssistantRequest);b.config.internalIn={youtubeAssistantS3InputJson:F}}E.call(V,b);v.channelOpen=!0;v.manuallyClosedChannel=!1});
_.wE(v.channel,"x",function(){v.manuallyClosedChannel||(v.channelOpen=!1,v.channel=void 0,Qs(v))});
_.wE(v.channel,"z",function(V){if(V.data){Fch(v);for(var E=0;E<V.data.length;E++){var b=v,F=V.data[E],t=F.speechResults;if(t)a:{var p=[];F=[];var Z=!1;t=_.L(t);for(var d=t.next();!d.done;d=t.next()){d=d.value;if(d.noSpeech){Qs(b);b.errorHandler("NO_SPEECH");break a}d.transcript!==void 0&&d.stability!==void 0&&(d.stability<b.confidenceThreshold&&(Z=!0),Z?F.push(d.transcript):p.push(d.transcript))}if(p.length!==0||F.length!==0)p=p.join(" "),F=F.join(" "),b.receivedEndOfUtterance&&!b.isUsingVoz?b.isUsingVoz||
b.completeHandler([p,F]):(Z=b,t=p,d=F,vX("voz_sf"),Z.transcriptionUpdateHandler(t,d),Z.transcribedSpeechResults=[t,d]),b.receivedEndOfUtterance&&(vX("voz_eou"),b.transcriptionCompleteHandler([p,F]),b.isUsingVoz&&(b.prefetchResponseTimeoutMs===0?Qs(b,{logMicClosed:!1,handleStop:!0}):b.prefetchResponseTimeoutMs>0&&Kcn(b)))}else b.isUsingVoz&&(F==null?0:F.internalOut)?(F=JSON.parse(F.internalOut.youtubeAssistantS3OutputJson),F.userHasOptedInToVaa||F.vaaConsent?b.vaaConsentUpdateHandler(!!F.userHasOptedInToVaa,
!!F.vaaConsent):(i9h(b),F&&(p=b.transcribedSpeechResults,vX("voz_rqf"),b.completeHandler(p,F)))):F.eventType==="END_OF_UTTERANCE"?b.receivedEndOfUtterance=!0:(vX("voz_err"),b.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Iy(Error("yl")))}}});
_.wE(v.channel,"y",function(V){Qs(v);switch(V.status){case 1:V="WEBCHANNEL_NETWORK_ERROR";break;case 2:V="WEBCHANNEL_SERVER_ERROR";break;default:V="WEBCHANNEL_UNKNOWN_ERROR"}v.errorHandler(V);v.logError(Error(V))})};
Uw.prototype.logError=function(v){_.ro(v)};
Uw.prototype.isOnline=function(){return!0};
var Kcn=function(v){i9h(v);v.prefetchResponseSetTimeoutId=setTimeout(function(){Qs(v,{logMicClosed:!1,handleStop:!0})},v.prefetchResponseTimeoutMs)},i9h=function(v){v.prefetchResponseSetTimeoutId>-1&&(clearTimeout(v.prefetchResponseSetTimeoutId),v.prefetchResponseSetTimeoutId=-1)},ELn=function(v){Fch(v);
v.noResponseReceivedTimeout=window.setTimeout(function(){Qs(v);v.errorHandler("NO_SPEECH")},11E3)},Fch=function(v){v.noResponseReceivedTimeout>-1&&(window.clearTimeout(v.noResponseReceivedTimeout),v.noResponseReceivedTimeout=-1)},vX=function(v){_.Mp(v,void 0,"voice_assistant")};var Vs=function(){Uw.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.f(Vs,Uw);Vs.prototype.isSupported=function(){return Mm8()};
Vs.prototype.startAudio=function(){var v=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.kD(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(E){Lcj(v,E)};
this.processor.connect(this.audioContext.destination);var Q=function(E){v.stream=E;if(!v.audioContext)return _.Vk(null);E=v.audioContext.createMediaStreamSource(E);v.processor&&E.connect(v.processor);return _.Vk(null)},V={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?Q(this.stream):(V=navigator.mediaDevices.getUserMedia(V))?V.then(Q).catch(function(E){Qs(v);E.name&&E.name==="NotAllowedError"?v.errorHandler("NO_MICROPHONE_PERMISSION"):(v.errorHandler("AUDIO_ERROR"),v.logError(E));return _.kD(null)}):(Qs(this),this.errorHandler("AUDIO_ERROR"),_.Iy(Error("zl")));
return Uw.prototype.startAudio.call(this)};
Vs.prototype.stopAudio=function(v){v=v===void 0?!0:v;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(Q){Q.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Uw.prototype.stopAudio.call(this,v)};
Vs.prototype.isOnline=function(){return navigator.onLine};
var Lcj=function(v,Q){if(v.audioContext)if(window.OfflineAudioContext){var V=v.audioContext.sampleRate,E=Q.inputBuffer.getChannelData(0);Q=new window.OfflineAudioContext(1,E.length,16E3);for(var b=Q.createBuffer(1,E.length,V),F=b.getChannelData(0),t=0,p=0;p<E.length;p++)F[p]=E[p],t+=F[p]*F[p];!v.audioDetected&&Math.sqrt(t/E.length)>.01&&(v.audioDetected=!0,v.audioDetectedHandler());E=Q.createBufferSource();E.buffer=b;E.connect(Q.destination);E.start(0);Q.oncomplete=function(Z){Z=Z.renderedBuffer.getChannelData(0);
for(var d=Math.floor(16384E3/V),w=new Int16Array(d),A=0;A<d;++A)w[A]=Math.max(-1,Math.min(1,Z[A]))*32767;b9f(v,w.buffer)};
Q.startRendering()}else t8n(v,Q)},t8n=function(v,Q){var V=v.audioContext.sampleRate,E=Q.inputBuffer.getChannelData(0),b=Math.floor((V+8E3)/16E3);
V=E.length/b;Q=new Float32Array(V);for(var F=0;F<V;++F)Q[F]=E[F*b];E=new Int16Array(V);for(b=0;b<V;++b)E[b]=Math.max(-1,Math.min(1,Q[b]))*32767;b9f(v,E.buffer)};var po$={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var eXs=function(){this.JSC$20394_audioEnabled=!0;this.audioFeedbackHolder={}};
eXs.prototype.isPlaying=function(v){return v.currentTime>0&&!v.paused&&!v.ended&&v.readyState>2};
var Z9I=function(v){for(var Q=_.L(Object.values(po$)),V=Q.next();!V.done;V=Q.next())V=V.value,v.audioFeedbackHolder[V]=new Audio,v.audioFeedbackHolder[V].src="/s/search/audio/"+V+".mp3",v.audioFeedbackHolder[V].load()},E3=function(v,Q){if(v.JSC$20394_audioEnabled!==!1&&Q in v.audioFeedbackHolder){for(var V=_.L(Object.values(v.audioFeedbackHolder)),E=V.next();!E.done;E=V.next())E=E.value,v.isPlaying(E)&&E.pause();
v.audioFeedbackHolder[Q].currentTime=0;v.audioFeedbackHolder[Q].play().catch(function(){})}};var PQY=function(v,Q){var V=this;this.store=v;this.service=Q;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 eXs;var E;(E=this.audioPlayer)==null||Z9I(E)};
_.K=PQY.prototype;_.K.getService=function(){return this.service};
_.K.isEnabled=function(){return!!this.service};
_.K.isSupported=function(){var v;return(v=this.service)==null?void 0:v.isSupported()};
_.K.start=function(){var v=this,Q,V,E,b,F,t,p,Z,d,w,A,k,T;return _.e(function(c){switch(c.nextAddress){case 1:v.store.dispatch(pVm("",""));if(!navigator.onLine)return v.setState("offline"),c.return();window.addEventListener("offline",v.handleOfflineEvent);v.stream=null;if(!v.permissionsSupported){c.jumpTo(2);break}_.GC(c,3);return c.yield(duh(v),5);case 5:Q=c.yieldResult;if(!Q)return(V=v.audioPlayer)==null||E3(V,"failure"),c.return();v.service.stream=v.stream;v.setState("listening");_.FT(c,2);break;
case 3:_.n$(c),v.permissionsSupported=!1;case 2:E={context:_.gzT(_.kF())},E.youtubeAssistantParams={searchParams:{inlineSearchResponse:v.enableInlineSearchResponse}},b=function(C,R){v.store.dispatch(ewj("transcribing"));v.store.dispatch(pVm(C,R))},F=function(){var C;
(C=v.audioPlayer)==null||E3(C,"open");v.setState("listening")},t=function(){v.setState("transcribing")},p=function(C){v.setErrorState(C)},Z=function(C,R){var l;
(l=v.audioPlayer)==null||E3(l,"success");R&&(_.Y("kevlar_voice_search_inline_search")&&(v.responseProcessor=_.ht().resolve(_.MaB),v.responseProcessor&&(l=R.navigationAction,C=R.prefetchedSearchResponse,l&&C&&(l=(new _.fgs).JSC$14252_getStoreKey(l),_.J_(v.responseProcessor,C,l)))),v.JSC$20412_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",R))},d=function(){window.removeEventListener("offline",v.handleOfflineEvent)},w=_.$Sh(!1),A=w.Authorization!=null,k=v.enableFirstPartyAuth||
v.enableFPAForSignedInUsers&&A?w:{"X-Goog-Visitor-Id":w["X-Goog-Visitor-Id"]},T={completeHandler:Z,
errorHandler:p,listeningHandler:F,audioDetectedHandler:t,stopHandler:d,transcriptionUpdateHandler:b,youtubeAssistantRequest:E,languageCode:hXd(),additionalHeaders:k,supportsCrossDomainXhr:v.enableFirstPartyAuth||v.enableFPAForSignedInUsers&&A,supportsHttpHeadersOverwriteParam:!v.disableHttpHeadersOverwrite},v.service.start(T),_.q1(c)}})};
_.K.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.K.reset=function(){this.store.dispatch(_.U2({type:"RESET_VOICE_SEARCH_STATE"}))};
_.K.setState=function(v){this.store.dispatch(ewj(v))};
_.K.setErrorState=function(v){switch(v){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var Q;(Q=this.audioPlayer)==null||E3(Q,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)duh(this);else{var V;(V=this.audioPlayer)==null||E3(V,"failure");this.setState("permission-denied")}break;case "ABORTED":var E;(E=this.audioPlayer)==null||E3(E,"no_input");break;default:var b;(b=this.audioPlayer)==
null||E3(b,"no_input");this.setState("timeout")}};
var duh=function(v){var Q,V;return _.e(function(E){switch(E.nextAddress){case 1:return E.yield(navigator.permissions.query({name:"microphone"}),2);case 2:Q=E.yieldResult;if(Q.state==="granted")return E.return(!0);if(Q.state==="denied")return v.setState("permission-denied"),E.return(!1);v.setState("permission");V={audio:{sampleSize:16,channelCount:1},video:!1};_.GC(E,3);return E.yield(navigator.mediaDevices.getUserMedia(V),5);case 5:return v.stream=E.yieldResult,E.return(!0);case 3:return _.n$(E),
v.setState("permission-denied"),E.return(!1)}})},hXd=function(){var v=_.r7("INNERTUBE_CONTEXT_HL"),Q=_.r7("INNERTUBE_CONTEXT_GL");
return v.indexOf("-")>-1?v:v+"-"+Q};var woY=function(v,Q,V){PQY.call(this,Q,V);this.JSC$20412_actionRouter=v;this.enableInlineSearchResponse=_.Y("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.Y("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.Y("kevlar_voice_search_enable_fpa_signedin_users")},Aoj;
_.f(woY,PQY);
var kHY=function(){if(!Aoj){var v="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.Y("kevlar_voice_search_auth_enabled")||_.Y("kevlar_voice_search_use_yt_endpoint")?v="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.Y("kevlar_voice_search_use_fp_endpoint")&&(v="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Aoj=
new woY(_.KW.getInstance(),_.oF(),new Vs(_.r7("VOZ_API_KEY"),v,.5))}return Aoj};var Th7=function(v){this.JSC$20416_clientRoot=v;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20416_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));v=_.L(this.eventListeners);for(var Q=v.next();!Q.done;Q=v.next()){var V=
_.L(Q.value);Q=V.next().value;V=V.next().value;V=_.L(V);for(var E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;Q.addEventListener(E,b)}}_.iM(_.KW.getInstance(),this.autonavPauseActionMap,this.JSC$20416_clientRoot)},Yy$,yoj=function(v){return _.Y("kevlar_autonav_popup_filtering")?(v=_.jV(v))?v.hasAttribute("prevent-autonav"):!0:!0};
_.K=Th7.prototype;_.K.onIronOverlayOpened=function(v){yoj(v)&&(this.autonavPauseReasons.overlayOpen=!0,b5(this))};
_.K.onIronOverlayClosed=function(v){yoj(v)&&(this.autonavPauseReasons.overlayOpen=!1,b5(this))};
_.K.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;b5(this)};
_.K.onYtAutonavPauseBlur=function(){var v=this;_.XT.addJob(function(){cos()||(v.autonavPauseReasons.inputBoxFocus=!1,b5(v))},8,0)};
_.K.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;b5(this)};
_.K.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;b5(this)};
_.K.onYtAutonavPauseScroll=function(){var v=_.ht().resolve(_.oJ);v.isOnWatch()&&(v=v.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=v.getBoundingClientRect().top<-200,b5(this))};
_.K.onYtAutonavPauseUserEngagement=function(v){var Q=this;if(_.Y("user_engagement_enable_autoplay_pause_feature")){var V=Number(v.lowEngagementThresholdMs);isNaN(V)||V<=0||v.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.ht().resolve(_.dS),_.kh()<V?_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.cM0()?(this.userEngagementCsn=_.Mo(),_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
Q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,b5(this)):_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.mCm(Error("Al`"+JSON.stringify(v)))};
_.K.onYtAutonavPausePlayer=function(v){this.autonavPauseReasons.requestedByPlayer=!!v.detail;b5(this)};
_.K.onYtAutonavVisibilityChanged=function(){var v=this,Q,V,E;return _.e(function(b){if(b.nextAddress==1)return(Q=_.aJ())?b.yield(Q.getPlayerPromise(),2):b.return();V=b.yieldResult;E=V.isMuted()||V.getVolume()===0;v.autonavPauseReasons.backgroundAndMute=cos()&&E;b5(v);_.q1(b)})};
_.K.onYtAutonavPausePlayerEnded=function(){_.ht().resolve(_.dS);var v=144E5;_.Y("user_engagement_enable_autoplay_pause_feature")||_.Y("is_part_of_any_user_engagement_experiment")||(v=45E5);this.autonavPauseReasons.longIdle=_.kh()>v;fPm(this);b5(this)};
_.K.onYtUserActivity=function(){var v=this;this.autonavPauseReasons.userEngagement&&(_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",v.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,b5(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",v.userEngagementCsn);_.ay()}),this.autonavPauseReasons.youthereLactExperiment=!1,b5(this));
this.autonavPauseReasons.longIdle&&!_.Y("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,b5(this))};
var cos=function(){var v=window.document.visibilityState;return!(!v||v==="visible")},b5=function(v){for(var Q=!1,V=_.L(Object.values(v.autonavPauseReasons)),E=V.next();!E.done;E=V.next())E=E.value,Q=Q||E;
Q?_.fH.getInstance().pause(v.autonavPauseReasons):(v=_.fH.getInstance(),v.autonavState_==3?(v.setState(2,!1,!1),v.autonavPauseReason_=void 0):v.autonavState_==1&&(v.disabledAutonavPauseReason_=void 0))},fPm=function(v){var Q=!1;
if(_.Y("enable_autoplay_pause_by_lact")){_.ht().resolve(_.dS);Q=_.T_("autoplay_pause_by_lact_sec")*1E3;var V=_.T_("autoplay_pause_by_lact_sampling_fraction");(Q=_.kh()>=Q&&Math.random()<V)&&!_.cM0()&&(_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),Q=!1)}Q!==v.autonavPauseReasons.youthereLactExperiment&&(v.autonavPauseReasons.youthereLactExperiment=Q)&&(v.userEngagementCsn=_.Mo(),_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",v.userEngagementCsn)}));
v.autonavPauseReasons.userEngagement&&_.go(_.XT,function(){_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",v.userEngagementCsn)})};
Th7.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.FP("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.ay(),this.autonavPauseReasons.youthereLactExperiment=!1,b5(this));this.autonavPauseReasons.userEngagement&&(_.FP("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,b5(this))};
Th7.prototype.onYtEngagementPanelVisibleChanged=function(v){v.detail&&v.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=v.detail.visible,b5(this))};
Th7.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var GHj=_.zw.persistentPanelVisibleSelector,Ft=function(){var v=_.z.apply(this,arguments)||this;v.miniGuideVisible=!1;v.guideOpened=_.Y("disable_initial_guide_state_fix")?!1:v.canFitPersistentGuide(v.initialBodyClientWidth);v.guideUserStateOpened=v.getInitialGuideUserStateOpened();v.isFullscreenShorts=!1;v.miniGuideWidthThreshold=_.T_("kevlar_mini_guide_width_threshold",791);v.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
v.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");v.persistentGuideBlockedPagePathRegex=new RegExp(v.persistentGuideBlockedPagesPatterns.join("|"));v.animationTransitionDuration=0;v.lateDataResolver=_.B_();v.initialGuideDataFetchFailed=!1;v.initialLoad=!0;v.guideRenderers=new Set;v.isMouseOverGuide=!1;v.sessionUserManuallyExpandedGuideState=
!1;v.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return v};
_.f(Ft,_.z);_.K=Ft.prototype;_.K.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.K.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.K.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.K.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.K.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.K.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.K.ready=function(){_.ht().addProvider({provide:_.K1,useValue:this.hostElement})};
_.K.attached=function(){var v=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Lh(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Lh(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Lh(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Lh(this,this.onYtGuideShow));_.PE(this,function(){v.animationTransitionDuration=200})};
_.K.detached=function(){document.removeEventListener("yt-navigate-finish",_.Lh(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Lh(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Lh(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Lh(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Lh(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Lh(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Lh(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.K.getData=function(){return this.data};
_.K.load=function(){var v=this,Q,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=v.lateDataResolver.resolve.bind(v),F.return(v.lateDataResolver.promise);if(window.ytInitialGuideData)return Q=_.B_(),Q.resolve(window.ytInitialGuideData),F.return(Q.promise);E=!1;_.GC(F,2);return F.yield(v.fetchGuideData(),4);case 4:V=F.yieldResult;_.FT(F,3);break;case 2:b=_.n$(F),b.message==="Returned error"&&(E=
!0);case 3:if(V)return F.return(V);v.onYtGuideClose();E||(v.initialGuideDataFetchFailed=!0);return F.return(v.lateDataResolver.promise)}})};
_.K.fetchGuideData=function(){var v=this,Q,V,E,b,F,t,p;return _.e(function(Z){if(Z.nextAddress==1)return Q=_.ht(),v.guidePromise||(V=Q.resolve(_.wH),v.guidePromise=_.xW(V,weq)),Z.yield(v.guidePromise,2);if(Z.nextAddress!=3)return E=Z.yieldResult,b=Q.resolve(_.H3),Z.yield(b(),3);(F=Z.yieldResult)&&((t=E)==null?void 0:(p=t.responseContext)==null?void 0:p.maxAgeSeconds)!==0&&F.put("service:guide:fallback",new _.qD({innertubeResponse:E}));return Z.return(E)})};
_.K.initializeGuideDataIfEmpty=function(){var v=this,Q,V;return _.e(function(E){if(E.nextAddress==1){if(!v.initialGuideDataFetchFailed||v.data)return E.return();_.GC(E,2);return E.yield(v.fetchGuideData(),4)}if(E.nextAddress!=2)return(Q=E.yieldResult)&&v.lateDataResolver.resolve(Q),_.FT(E,0);V=_.n$(E);_.Iy(V);_.q1(E)})};
_.K.initializeGuideData=function(){var v=this,Q;return _.e(function(V){switch(V.nextAddress){case 1:return _.Fu(fM0(),{mainAppWeb:_.N2()}),_.GC(V,2),V.yield(v.load(),4);case 4:v.data=V.yieldResult;_.FT(V,3);break;case 2:_.n$(V),_.Kq(fM0(),"FAILURE");case 3:Q=v.data&&v.data.items&&v.data.items.length>0?"SUCCESS":"FAILURE",_.Kq(fM0(),Q),_.q1(V)}})};
_.K.setGuideData=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1)return Q.disabled?b.return():Q.data?(v.data=Q.data,Q.guideRenderers.add(v),b.return()):b.yield(Q.initializeGuideData(),2);Q.graftGuideToPage();V=_.mX("IS_HOMEPAGE_COLD")?"eop":void 0;_.Y("disable_element_pool_populator")?Q.setGuideDataAfterInit(v):(E=new _.AD(1,V),_.kc(E,Q.setGuideDataAfterInit.bind(Q,v)));_.q1(b)})};
_.K.setGuideDataAfterInit=function(v){v.data=this.data;v.markDirty();this.guideRenderers.add(v);_.JM(function(){_.Mp("gle")});
_.PE(this,function(){_.Mp("gpe")})};
_.K.graftGuideToPage=function(){if(this.data){var v=this.data&&this.data.trackingParams;v&&(v=_.dE(v),_.JL(_.tR(),v))}};
_.K.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Lh(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.K.onDrawerOpenedChanged=function(v,Q){!Q.value&&this.guideOpened&&(this.guideOpened=!1)};
_.K.onYtGuideToggle=function(v){var Q=this.guideOpened;this.guideOpened=!Q;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var V=_.eP();_.ZG(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;V.save()}this.updateGuideDrawerElementState();if(this.guideElement){var E;this.guideOpened&&((E=v.detail)==null?0:E.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Lh(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Lh(this,this.onAppDrawerTransitioned))}Q||this.initializeGuideDataIfEmpty()};
_.K.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Lh(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Lp(this.guideElement)};
_.K.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Lh(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Lvm(this.guideOpened))};
_.K.guidePersistentAndVisibleChanged=function(){_.Un(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.K.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.U2({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.K.miniGuideVisibleChanged=function(){_.Un(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.K.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Lvm(this.guideOpened)),this.initialLoad=!1);_.Un(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.K.activeEndpointChanged=function(){_.Un(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.K.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.K.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()};
_.K.cachedClientWidthChanged=function(){this.updateGuideState()};
_.K.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.K.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var v=this.canFitPersistentGuide(this.cachedClientWidth);v?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=v}this.updateGuideDrawerElementState()};
_.K.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.K.getGuideOpened=function(){return this.guideOpened};
_.K.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.K.getActiveEndpoint=function(){return this.activeEndpoint};
_.K.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.K.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&&_.Hj(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.K.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.Y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.K.handleGuideMouseLeave=function(){var v=this;!this.sessionUserManuallyExpandedGuideState&&_.Y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Nf(this,"handleGuideMouseLeave",function(){v.isMouseOverGuide||!v.guideOpened||v.miniGuideVisible||(v.guideOpened=!1,v.updateGuideDrawerElementState())},100))};
_.K.computeGuidePersistentAndVisible=function(){var v=this;_.Nf(this,"computeGuidePersistentAndVisible",function(){v.guidePersistentAndVisible=v.guideOpened&&v.guidePersistent;v.guideIsVisibleButNotPersistent=!(!v.guideOpened||v.guidePersistent)})};
_.K.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.K.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.K.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.K.startLoadingWatch=function(){this.closeGuide()};
_.K.startLoadingShorts=function(){_.Y("web_hide_guide_on_shorts")&&this.closeGuide()};
_.K.onYtNavigateFinish=function(v,Q){if(!_.Q2||Q){this.activeEndpoint=Q.endpoint;this.pageType=Q.pageType;this.pageUrl=Q.response.url;var V,E;v=(E=_.y((V=Q.endpoint)==null?void 0:V.commandMetadata,_.Kt))==null?void 0:E.url;!this.pageUrl&&v&&(this.pageUrl=v);_.Y("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.K.getVisibleGuideRenderer=function(){for(var v=_.L(this.guideRenderers),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,this.miniGuideVisible&&Q.is==="ytd-mini-guide-renderer"||this.guideOpened&&Q.is==="ytd-guide-renderer")return Q;return null};
_.K.markGuideRendererDirty=function(v){if(v){typeof v.markDirty==="function"&&v.markDirty();v=_.L([].concat(_.ui(_.m9(v).children)));for(var Q=v.next();!Q.done;Q=v.next())this.markGuideRendererDirty(Q.value)}};
_.K.persistentGuideEnabled=function(v,Q){if(!Q||v==="watch"||v==="settings"||v==="shorts"&&this.isFullscreenShorts||_.Y("reels_web_disable_persistent_guide_shorts")&&v==="shorts")return!1;var V=_.OG(Q)||"";return _.Y("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(E){return V===E}):!this.persistentGuideBlockedPagePathRegex.test(V)};
_.K.canFitPersistentGuide=function(v){var Q=_.T_("kevlar_persistent_guide_width_threshold",1312);return Q===-1||_.Y("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:v>this.calculateGuideThreshold(Q)};
_.K.calculateGuideThreshold=function(v){return _.Y("enable_ai_companion")?v+(this.persistentPanelVisible?400:0):v};
_.K.canFitMiniGuide=function(v){return this.miniGuideWidthThreshold===-1?!1:v>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.K.onResize=function(){var v=this;_.Nf(this,"calculateGuideState",function(){v.onResizeDebounced()})};
_.K.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.K.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.K.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.K.getInitialGuideUserStateOpened=function(){return _.Y("web_force_mini_guide_default")?!1:!_.eP().getFlag(109)};
_.hr.Object.defineProperties(Ft.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.r7("initialBodyClientWidth")||window.innerWidth}}});
Ft.prototype.onResize=Ft.prototype.onResize;Ft.prototype.observeForMiniGuideVisible=Ft.prototype.observeForMiniGuideVisible;Ft.prototype.computeGuidePersistentAndVisible=Ft.prototype.computeGuidePersistentAndVisible;Ft.prototype.persistentPanelVisibleChanged=Ft.prototype.persistentPanelVisibleChanged;Ft.prototype.cachedClientWidthChanged=Ft.prototype.cachedClientWidthChanged;Ft.prototype.resetGuide=Ft.prototype.resetGuide;Ft.prototype.activeEndpointChanged=Ft.prototype.activeEndpointChanged;
Ft.prototype.guideOpenedChanged=Ft.prototype.guideOpenedChanged;Ft.prototype.miniGuideVisibleChanged=Ft.prototype.miniGuideVisibleChanged;Ft.prototype.guideIsVisibleButNotPersistentChanged=Ft.prototype.guideIsVisibleButNotPersistentChanged;Ft.prototype.guidePersistentAndVisibleChanged=Ft.prototype.guidePersistentAndVisibleChanged;Ft.prototype.onGuideElementChanged=Ft.prototype.onGuideElementChanged;Ft.prototype.onGuidePersistentChanged=Ft.prototype.onGuidePersistentChanged;
Ft.prototype.onRenderGuideChanged=Ft.prototype.onRenderGuideChanged;Ft.prototype.onActiveEndpointChanged=Ft.prototype.onActiveEndpointChanged;Ft.prototype.onMiniGuideVisibleChanged=Ft.prototype.onMiniGuideVisibleChanged;Ft.prototype.onGuideIsVisibleButNotPersistentChanged=Ft.prototype.onGuideIsVisibleButNotPersistentChanged;Ft.prototype.onGuidePersistendAndVisibleChanged=Ft.prototype.onGuidePersistendAndVisibleChanged;
_.W([_.M(_.WW),_.X("design:type",Object)],Ft.prototype,"ironResizableBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ft.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ft.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Ft.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ft.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Boolean)],Ft.prototype,"disabled",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ft.prototype,"guidePersistentAndVisible",void 0);_.W([_.ph("guidePersistentAndVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onGuidePersistendAndVisibleChanged",null);_.W([_.q(),_.X("design:type",Boolean)],Ft.prototype,"guideIsVisibleButNotPersistent",void 0);
_.W([_.ph("guideIsVisibleButNotPersistent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.W([_.q(),_.X("design:type",Object)],Ft.prototype,"miniGuideVisible",void 0);_.W([_.ph("miniGuideVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onMiniGuideVisibleChanged",null);_.W([_.q(),_.X("design:type",Boolean)],Ft.prototype,"forceMiniGuideClose",void 0);
_.W([_.q(),_.X("design:type",Object)],Ft.prototype,"activeEndpoint",void 0);_.W([_.ph("activeEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onActiveEndpointChanged",null);_.W([_.q(),_.X("design:type",Boolean)],Ft.prototype,"renderGuide",void 0);_.W([_.ph("renderGuide"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onRenderGuideChanged",null);
_.W([_.q({selector:GHj}),_.X("design:type",Boolean)],Ft.prototype,"persistentPanelVisible",void 0);_.W([_.q(),_.X("design:type",Object)],Ft.prototype,"guideOpened",void 0);_.W([_.q(),_.X("design:type",Boolean)],Ft.prototype,"guidePersistent",void 0);_.W([_.ph("guidePersistent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onGuidePersistentChanged",null);_.W([_.q(),_.X("design:type",Object)],Ft.prototype,"guideUserStateOpened",void 0);
_.W([_.q(),_.X("design:type",String)],Ft.prototype,"pageUrl",void 0);_.W([_.q(),_.X("design:type",String)],Ft.prototype,"pageType",void 0);_.W([_.q(),_.X("design:type",Number)],Ft.prototype,"cachedClientWidth",void 0);_.W([_.q(),_.X("design:type",Object)],Ft.prototype,"guideElement",void 0);_.W([_.q({selector:_.I7}),_.X("design:type",Object)],Ft.prototype,"isFullscreenShorts",void 0);
_.W([_.ph("guideElement"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onGuideElementChanged",null);_.W([_.ph("guidePersistentAndVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"guidePersistentAndVisibleChanged",null);
_.W([_.wg("guideIsVisibleButNotPersistent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"guideIsVisibleButNotPersistentChanged",null);_.W([_.ph("miniGuideVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"miniGuideVisibleChanged",null);_.W([_.wg("guideOpened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"guideOpenedChanged",null);
_.W([_.ph("activeEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"activeEndpointChanged",null);_.W([_.wg("pageUrl"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"resetGuide",null);_.W([_.wg("cachedClientWidth"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"cachedClientWidthChanged",null);
_.W([_.wg("persistentPanelVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"persistentPanelVisibleChanged",null);_.W([_.ph("guideOpened","guidePersistent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"computeGuidePersistentAndVisible",null);
_.W([_.wg("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"observeForMiniGuideVisible",null);_.W([_.tM("iron-resize"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ft.prototype,"onResize",null);_.W([_.J({disableElementRegistration:!0,is:"yt-guide-manager"})],Ft);
var CQ8=_.B(Ft,"yt-guide-manager",void 0,{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var Kb=function(){var v=_.z.apply(this,arguments)||this;v.JSC$20426_keyboardInUse=!1;v.boundHandleCapturedKeydownEvent=function(Q){v.handleCapturedKeydownEvent(Q)};
return v};
_.f(Kb,_.z);_.K=Kb.prototype;_.K.attached=function(){this.listenToDocument(document)};
_.K.listenToDocument=function(v){v.addEventListener("keydown",_.Lh(this,this.onKeyDownEvent));v.addEventListener("keyup",_.Lh(this,this.onKeyUpEvent));v.addEventListener("mousedown",_.Lh(this,this.onMouseDownEvent));_.Y("desktop_keyboard_capture_keydown_killswitch")||v.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);v.addEventListener("yt-page-data-updated",_.Lh(this,this.onPageUpdate))};
_.K.detached=function(){this.unlistenFromDocument(document)};
_.K.unlistenFromDocument=function(v){v.removeEventListener("keydown",_.Lh(this,this.onKeyDownEvent));v.removeEventListener("keyup",_.Lh(this,this.onKeyUpEvent));v.removeEventListener("mousedown",_.Lh(this,this.onMouseDownEvent));_.Y("desktop_keyboard_capture_keydown_killswitch")||v.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);v.removeEventListener("yt-page-data-updated",_.Lh(this,this.onPageUpdate))};
_.K.ready=function(){_.ht().addProvider({provide:_.Yc,useValue:this})};
_.K.isKeyBoardInUse=function(){return this.JSC$20426_keyboardInUse};
_.K.handleCapturedKeydownEvent=function(v){if(v.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(v)};
_.K.onMouseDownEvent=function(){this.JSC$20426_keyboardInUse=!1};
_.K.onPageUpdate=function(){if(_.Y("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.Y("web_shorts_keyboard_shortcut_usage_log")){_.pe.clear();for(var v=_.L(_.Le),Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;V=V.next().value;V=_.Vw(V);_.pe.set(Q,V);_.Np(_.Mo(),_.CC(),V)}_.eW.clear();v=_.L(_.tU);for(Q=v.next();!Q.done;Q=v.next())V=_.L(Q.value),Q=V.next().value,V=V.next().value,V=_.Vw(V),_.eW.set(Q,V),_.Np(_.Mo(),_.CC(),V);_.x7(_.Mo(),_.CC(),[].concat(_.ui(_.eW.values()),
_.ui(_.pe.values())));_.gD(_.Mo(),[].concat(_.ui(_.eW.values()),_.ui(_.pe.values())))}};
_.K.onMiniplayerActiveChange=function(){var v;(v=_.ht().resolve(_.lJ).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(v.document):this.unlistenFromDocument(v.document))};
_.K.ignoreKeyEvent=function(v){if(v.ctrlKey||v.altKey)if(_.Y("kevlar_macro_markers_keyboard_shortcut")){if(v.keyCode!==37&&v.keyCode!==39)return!0}else return!0;var Q=_.uK(v)||[];return _.Cf0(Q)?(_.Y("web_button_or_anchor_list_item")&&X_I(Q,v)&&(this.JSC$20426_keyboardInUse=!0),!0):v.defaultPrevented?(lj(v.keyCode,v.shiftKey,this.isShortsPage),!0):v.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(v):!1};
_.K.isSpacebarClick=function(v){var Q=v||window.event;var V;Q.composedPath&&typeof Q.composedPath==="function"?V=Q.composedPath():V=Q.path;V&&V.length?Q=V[0]:(Q=Q||window.event,Q=Q.target||Q.srcElement,Q.nodeType==3&&(Q=Q.parentNode));return Q&&v.keyCode===32&&(v=Q.tagName==="BUTTON"||Q.tagName==="A"||Q.tagName==="INPUT",Q=(Q=Q.getAttribute("role"))&&(Q==="option"||Q==="button"||Q.indexOf("menuitem")===0),v||Q)?!0:!1};
_.K.onKeyDownEvent=function(v){if(!this.ignoreKeyEvent(v)&&(v.keyCode===191&&(v.shiftKey||v.metaKey?v.repeat!=null&&v.repeat||(this.openHotkeyDialog(),lj(v.keyCode,v.shiftKey,this.isShortsPage)):(this.focusSearchBox(),v.preventDefault())),!v.metaKey)){var Q=_.ht().resolve(_.lJ);switch(v.keyCode){case 9:this.JSC$20426_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(v);break;case 84:Q.pipController.getWindow()&&window.focus();this.toggleTheaterMode(v.keyCode,v.shiftKey);break;case 73:Q.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(v.keyCode,v.shiftKey);break;case 70:if(this.isShortsPage){_.MTh();break}this.isMiniplayerActive()?Q.pipController.getWindow()&&(Q.close(!0),window.focus()):this.passEventToPlayer(v);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(v.keyCode,v.shiftKey):this.closeMiniplayer(v.keyCode,v.shiftKey)||this.passEventToPlayer(v);break;case 13:v.shiftKey&&_.ht().resolve(_.TB).activate(v);break;default:this.passEventToPlayer(v)}}};
_.K.onKeyUpEvent=function(v){if(!this.ignoreKeyEvent(v))if(_.Y("web_speedmaster_spacebar_control")&&v.keyCode===32)this.handlePlayerSpaceKey(v,!0);else{var Q=this.getPlayerManager();Q&&(Q=Q.getPlayer())&&Q.handleGlobalKeyUp(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code)}};
_.K.getPlayerManager=function(){var v=_.aJ(),Q=_.ht().resolve(_.d$(_.oJ));return v&&Q&&Q.isOnWatch()?v:null};
_.K.passEventToPlayer=function(v,Q){var V=this,E,b,F,t;return _.e(function(p){if(p.nextAddress==1){if(!_.Y("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&V.isMiniplayerActive())E=_.ht().resolve(_.lJ).getPlayerElement();else if(V.inlinePreviewIsActive){if(b=_.Un(V.hostElement,"yt-get-inline-preview-player-action"),(F=b)==null?0:F[0])E=b[0]}else E=_.aJ();return E?p.yield(E.getPlayerPromise(),3):p.jumpTo(0)}t=p.yieldResult;Q?t.handleGlobalKeyUp(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,
v.key,v.code):t.handleGlobalKeyDown(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code,v.repeat);v.keyCode!==38&&v.keyCode!==40&&lj(v.keyCode,v.shiftKey,V.isShortsPage);_.q1(p)})};
_.K.focusSearchBox=function(){_.Hj(this.hostElement,"yt-focus-searchbox")};
_.K.openHotkeyDialog=function(){_.Hj(this.hostElement,"yt-open-hotkey-dialog")};
_.K.isMiniplayerActive=function(){return _.ht().resolve(_.lJ).isMiniplayerActive()};
_.K.closeMiniplayer=function(v,Q){return this.isMiniplayerActive()?(_.ht().resolve(_.lJ).close(),lj(v,Q,this.isShortsPage),!0):!1};
_.K.toggleTheaterMode=function(v,Q){var V=_.C_(_.oF().getState()),E=this.getPlayerManager(),b=_.Y("disable_theater_mode_keyboard")||_.mX("START_IN_FULL_WINDOW_MODE");E&&!b&&(V=!V,_.ax()&&_.Y("external_fullscreen")&&(V=!0),_.mb(this.hostElement,"yt-toggle-theater-mode",[V]),lj(v,Q,this.isShortsPage))};
_.K.toggleMiniplayer=function(v,Q){var V=this.getPlayerManager();if(this.isMiniplayerActive()){var E;((E=_.ht().resolve(_.d$(_.oJ)))==null?0:E.isOnWatch())?_.ht().resolve(_.lJ).close(!0):_.Ro(_.ht().resolve(_.lJ));lj(v,Q,this.isShortsPage)}else V&&(_.mb(this.hostElement,"yt-activate-miniplayer-from-watch-action"),lj(v,Q,this.isShortsPage))};
_.K.handlePlayerSpaceKey=function(v,Q){var V=!!_.aJ()||this.isMiniplayerActive();V=_.Y("disable_space_scroll_fix")||V;_.Y("global_spacebar_pause")&&!this.isKeyBoardInUse()&&V&&(v.preventDefault(),this.passEventToPlayer(v,Q))};
_.K.isPresentingTheaterMode=function(){return _.Y("web_watch_enable_tm_esc_key")?_.C_(_.oF().getState())&&!_.ax():!1};
Kb.prototype.onMiniplayerActiveChange=Kb.prototype.onMiniplayerActiveChange;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Kb.prototype,"ytdReduxBehavior",void 0);_.W([_.q({selector:_.JDZ}),_.X("design:type",Boolean)],Kb.prototype,"inlinePreviewIsActive",void 0);_.W([_.q({selector:_.j_Z}),_.X("design:type",Boolean)],Kb.prototype,"isShortsPage",void 0);
_.W([_.q({selector:_.MS}),_.X("design:type",Boolean)],Kb.prototype,"miniplayerIsActive",void 0);_.W([_.ph("miniplayerIsActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Kb.prototype,"onMiniplayerActiveChange",null);_.W([_.J({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Kb);_.B(Kb,"yt-hotkey-manager",void 0,{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var i5=function(){var v=_.z.apply(this,arguments)||this;v.loopStateEntityKey_=null;v.playlistLoopStateEntity_=null;v.isShuffleNextPlaylist=!1;v.PLAYER_EVENTS_=new Map;v.playerListenersSetup_=!1;v.videoSkipJob_=0;v.canAutoAdvance_=!1;v.playerManager_=null;v.TEST_ONLY={};return v};
_.f(i5,_.z);_.K=i5.prototype;_.K.ready=function(){_.ht().addProvider({provide:_.pD,useValue:this.hostElement})};
_.K.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_)};
_.K.attached=function(){document.addEventListener("yt-navigate-start",_.Lh(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Lh(this,this.onYtNavigateFinish_))};
_.K.detached=function(){document.removeEventListener("yt-navigate-start",_.Lh(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Lh(this,this.onYtNavigateFinish_))};
_.K.updatePlaylistEventListeners=function(v,Q){Q&&!this.playerListenersSetup_?(this.playerManager_=v,this.registerPlaylistEventListeners_(v)):!Q&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(v))};
_.K.setPlayer=function(v){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=v};
_.K.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.K.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.K.registerPlaylistEventListeners_=function(v){var Q=this;v.getPlayerPromise().then(function(V){Q.playerListenersSetup_||(Q.ytPlayerListenerBehavior.listenToPlayerEvents(V,Q.PLAYER_EVENTS_),Q.playerListenersSetup_=!0)})};
_.K.removePlaylistEventListeners_=function(v){var Q=this;v.getPlayerPromise().then(function(V){Q.playerListenersSetup_&&(Q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(V,Q.PLAYER_EVENTS_),Q.playerListenersSetup_=!1)})};
_.K.setPlaylistComponent=function(v){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Lh(this,this.onPlaylistYtNavigate_)),v&&(v.data&&this.playlistComponent.data&&v.data.playlistId==this.playlistComponent.data.playlistId?(v.loopOn=this.playlistComponent.loopOn,v.shuffleOn=this.playlistComponent.shuffleOn):(v.loopOn=!1,v.shuffleOn=!1),this.isShuffleNextPlaylist&&(v.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=v;this.playlistComponent.addEventListener("yt-navigate",
_.Lh(this,this.onPlaylistYtNavigate_))};
_.K.setAutoplayRenderer=function(v){this.autoplayData=v};
_.K.setPlaylistData=function(v){this.currentPlaylistData_=v;_.Hj(this.hostElement,"yt-playlist-data-updated");_.gI.isEmpty(v)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(v)};
_.K.setPlayerPlaybackControlData=function(v){this.playerManager_&&this.playerManager_.updatePlayerComponents(v.playlistPanelRenderer)};
_.K.getPlaylistData=function(){return this.currentPlaylistData_};
_.K.getTempData_=function(v,Q){if(this.playlistComponent==null)return null;v={};this.playlistComponent.shuffleOn&&(v.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(v.loop_on=this.playlistComponent.loopOn);Q&&(v.autonav="1",_.ht().resolve(_.dS),Q=_.kh(),Q>0&&(v.lact=Q),this.playerManager_&&(Q=this.playerManager_.getPlayer())&&Q.shouldSendVisibilityState()&&(Q=Q.getVisibilityState(),Q!=0&&(v.vis=Q)));_.Y("enable_unknown_lact_fix_on_html5")&&(_.ht().resolve(_.dS),v.lact=
_.kh());return v};
_.K.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.K.setLoopStateEntityKey_=function(v){var Q;this.loopStateEntityKey_=((Q=this.getPlaylistLoopData_(v))==null?void 0:Q.playlistLoopStateEntityKey)||null};
_.K.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.K.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.K.skipVideo=function(){var v=this,Q=_.Y("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||Q)Q=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.A2(_.XT,function(){v.onPlaylistNext();v.videoSkipJob_=0},Q)};
_.K.cancelVideoSkip=function(){this.videoSkipJob_&&(_.XT.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.K.isInBackground_=function(){var v=window.document.visibilityState;return!(!v||v=="visible")};
_.K.onPlaylistIndex_=function(v){this.playlistComponent&&(v=this.playlistComponent.data.contents[v].playlistPanelVideoRenderer.navigationEndpoint,_.Hj(this.hostElement,"yt-navigate",{endpoint:v,tempData:this.getTempData_(v)}))};
_.K.onPlayerStateChange_=function(v){if(v=v==0&&this.playlistComponent&&this.canAutoAdvance_)v=_.fH.getInstance(),v=!(v.autonavState_===3?v.autonavPauseReason_&&v.autonavPauseReason_.inputBoxFocus===!0:v.autonavState_===1&&v.disabledAutonavPauseReason_&&v.disabledAutonavPauseReason_.inputBoxFocus===!0);v&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.K.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.K.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.K.navigateToAutoplayWatchEndpoint_=function(v,Q,V){var E=this.playlistComponent.data.currentIndex,b=this.getNumPlayableVideos_();v=="NORMAL"&&Q=="autoplayVideo"&&E+1>=b&&V||!(v=this.getVideoEndpoint_(v,Q))||(V=this.getTempData_(v,V),_.Hj(this.hostElement,"yt-navigate",{endpoint:v,tempData:V}))};
_.K.getNumPlayableVideos_=function(){for(var v=0,Q=_.L(this.playlistComponent.data.contents||[]),V=Q.next();!V.done;V=Q.next())V.value.playlistPanelVideoRenderer&&(v+=1);return v};
_.K.getVideoEndpoint_=function(v,Q){if(this.autoplayData&&this.autoplayData.sets)for(var V=0,E=this.autoplayData.sets.length;V<E;V++){var b=this.autoplayData.sets[V];if(b.mode==v){if(b[Q])return b[Q];break}}else v=new _.xd("AutoplayData is undefined in playlist manager","Mode: "+v+" endpoint: "+Q),_.Iy(v)};
_.K.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.K.onPlaylistYtNavigate_=function(v){if(v.detail.endpoint){v.stopPropagation();var Q=v.detail;Q.tempData=this.getTempData_(v.detail.endpoint);_.Hj(this.hostElement,"yt-navigate",Q)}};
_.K.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.K.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.K.playlistLoopStateEntityChanged_=function(v){var Q=this,V,E,b;return _.e(function(F){if(F.nextAddress==1){if(!v)return F.return();V=v.state==="PLAYLIST_LOOP_STATE_ONE";return Q.playerManager_?F.yield(Q.playerManager_.getPlayerPromise(),3):F.jumpTo(2)}F.nextAddress!=2&&(E=F.yieldResult,E.setLoopVideo(V));b=v.state==="PLAYLIST_LOOP_STATE_ALL";Q.playlistComponent&&(Q.playlistComponent.loopOn=b);_.q1(F)})};
_.K.getPlaylistLoopData_=function(v){var Q,V;if(v=v==null?void 0:(Q=v.playlistButtons)==null?void 0:(V=Q.menuRenderer)==null?void 0:V.topLevelButtons)for(Q=_.L(v),V=Q.next();!V.done;V=Q.next())if(V=V.value,V.playlistLoopButtonRenderer)return V.playlistLoopButtonRenderer};
_.K.getLoopStateCommand_=function(v){var Q=this.getPlaylistData(),V;Q=((V=this.getPlaylistLoopData_(Q))==null?void 0:V.states)||[];var E;v=(E=_.y(Q[v?1:2],_.OVx))==null?void 0:E.button;var b;return(b=_.y(v,_.KH))==null?void 0:b.command};
_.K.onPlayerLoopChange_=function(v){this.playlistLoopStateEntity_&&(v?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(v=this.getLoopStateCommand_(v))&&this.ytComponentBehavior.resolveCommand(v)};
_.K.onSleepTimerSettingsChanged_=function(v){this.canAutoAdvance_=v!=="End of video"};
i5.prototype.onPlaylistLoopStateEntityChanged=i5.prototype.onPlaylistLoopStateEntityChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],i5.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.Zh.YtPlayerListenerBehavior),_.X("design:type",_.Pk)],i5.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],i5.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],i5.prototype,"loopStateEntityKey_",void 0);
_.W([_.q({selectorArgs:["loopStateEntityKey_"],selector:_.X4.playlistLoopStateEntitySelector}),_.X("design:type",Object)],i5.prototype,"playlistLoopStateEntity_",void 0);_.W([_.ph("playlistLoopStateEntity_"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],i5.prototype,"onPlaylistLoopStateEntityChanged",null);_.W([_.J({disableElementRegistration:!0,is:"yt-playlist-manager"})],i5);_.B(i5,"yt-playlist-manager",void 0,{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var M8d,O95=function(){if(M8d!==void 0)return M8d;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return M8d=v};var Lb=function(){var v=_.z.apply(this,arguments)||this;v.lastCallback=null;v.getAccountLinkPromises={};v.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);v.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return v};
_.f(Lb,_.z);_.K=Lb.prototype;_.K.getLocation=function(){return window.location.href};
_.K.getCompletionUrl=function(){return _.Wj(this.getLocation())};
_.K.containsRedirectState=function(v){return(v=_.YG(_.Z33(v)))?(new URLSearchParams(v)).get("redirect_state")!==null:!1};
_.K.createGalConfig=function(v,Q){var V=new sBh;v=V=Q?this.getPopupOrRedirectSetting(V,_.r7("LINK_API_KEY"),_.r7("LINK_API_KEY_REDIRECT"),v):uU$(V,_.r7("LINK_API_KEY"));v.authUser=_.r7("SESSION_INDEX")||0;v.supportedFlows=new Set([4]);return v.build()};
_.K.getPopupOrRedirectSetting=function(v,Q,V,E){this.isGalInteractionPopupMode(E)?(v.interactionMode=0,v=uU$(v,Q)):(v.interactionMode=1,Q=this.getCompletionUrl(),v.completionUrl=Q,v=uU$(v,V));return v};
_.K.isGalInteractionPopupMode=function(v){if(this.redirectModeProviderAllowlist.has(v))switch(v){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.K.getStatusEntityKeyForProviderId=function(v){return _.b3(v+":all","accountLinkStatusEntity")};
_.K.findNestedPropValue=function(v,Q){var V=!1,E=null;JSON.stringify(v,function(b,F){V||b!==Q||(V=!0,E=F);return V?null:F});
return E};
_.K.findAccountLinkButtonViewModel=function(v,Q){var V=null,E=!1;JSON.stringify(v,function(b,F){E||F.accountLinkStatusEntityKey!==Q||F.accountLinkStatusSecondaryEntityKey||(E=!0,V=F);return E?null:F});
return V};
_.K.executeLinkingSuccessOrFailureCommands=function(v,Q,V){var E=null,b;(Q==null?0:(b=Q.url)==null?0:b.includes("account_sharing"))?E=Q==null?void 0:Q.response:E=Q==null?void 0:Q.response;(Q=this.findAccountLinkButtonViewModel(E,v))?(v=V?this.findNestedPropValue(Q,"onSuccessCommand"):this.findNestedPropValue(Q,"onFailureCommand"))?_.bI([v],this.hostElement):_.V9(Error("Bl")):_.V9(Error("Cl`"+v))};
_.K.handleInitializeRequest=function(v,Q){var V=this,E=gln(this.createGalConfig(v,!0));this.containsRedirectState(this.getLocation())?zqd(v,E.config,E.galService).then(function(b){var F=V.getStatusEntityKeyForProviderId(v);if(b.statusCode===1)Q&&V.executeLinkingSuccessOrFailureCommands(F,Q,!0),b=V.getLocation().indexOf("#"),b!==-1&&window.history.pushState(null,"",V.getLocation().substring(0,b));else return Q&&V.executeLinkingSuccessOrFailureCommands(F,Q,!1),Promise.reject(Error(b.statusMessage))}).catch(function(b){_.Iy(b);
_.X0("gamingAccountLinkStatusChanged",{serviceId:v,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(b)}):this.getAccountLinkPromises[v]=E.startLinkingSession({serviceId:v})};
_.K.handleAccountLinkCommand=function(v){_.y(v,sn8)&&this.handleLinkRequest(_.y(v,sn8))};
_.K.handleLinkRequest=function(v){var Q=this,V=v.thirdPartyId;if(V)if(this.isGalInteractionPopupMode(V)){var E=function(){Q.closeAndFire("ytd-gaming-account-link-setting-renderer",v.onFailureCommand)},b=function(){Q.closeAndFire("ytd-gaming-account-link-setting-renderer",v.onSuccessCommand)};
this.lastCallback=b;this.getAccountLinkPromises[V].then(function(F){yB5(F).then(function(t){t.statusCode===1?b():E()})}).catch(function(){E()})}else this.getAccountLinkPromises[V].then(function(F){yB5(F).then(function(t){if(t.statusCode!==1)return Promise.reject(Error(t.statusMessage))})}).catch(function(F){_.Iy(F);
_.X0("gamingAccountLinkStatusChanged",{serviceId:V,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(F)})};
_.K.closeAndFire=function(v,Q){_.mb(this.hostElement,"yt-close-popup-action",[v]);Q&&_.bI([Q],this.hostElement)};
_.K.handleAccountUnlinkCommand=function(v){_.y(v,uAj)&&this.handleUnlinkRequest(_.y(v,uAj))};
_.K.handleUnlinkRequest=function(v){var Q=this,V=v.thirdPartyId;if(V){var E=function(){Q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",v.onFailureCommand)},b=function(){Q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",v.onSuccessCommand)};
this.lastCallback=b;var F=gln(this.createGalConfig(V,!1));this.unlinkUserGal(F,V).then(function(t){t.statusCode===1?b():E()}).catch(function(){E()})}};
_.K.unlinkUserGal=function(v,Q){return v.deleteLink(Q)};
_.K.handleLogAccountLinkingEventCommand=function(v){_.Y("enable_gel_log_commands")&&_.y(v,jnY)&&(v=_.y(v,jnY).event)&&_.X0("gamingAccountLinkStatusChanged",v)};
_.hr.Object.defineProperties(Lb,{template:{configurable:!0,enumerable:!0,get:function(){return O95()}}});
_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],Lb.prototype,"ytOpenPopupBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Lb.prototype,"ytActionHandlerBehavior",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Lb);_.B(Lb,"ytd-third-party-manager",function(){return O95()},{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var Dun,RXY=function(){if(Dun!==void 0)return Dun;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Dun=v};var tH=function(){var v=_.z.apply(this,arguments)||this;v.currentPage=void 0;v.renderLoadingStateJobId=0;v.updatePageDataJobId=0;v.pageDisposeJobsets=new WeakMap;v.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};v.shouldApplyLockupToWatchTransition=_.Y("web_thumbnail_to_watch_transition");v.shouldApplySlideTransition=_.y9("web_page_transition_type")==="slide"||_.Y("enable_plj_landing_page");v.shouldApplyLearningJourneyTransition=_.Y("enable_plj_landing_page");v.TEST_ONLY=void 0;return v};
_.f(tH,_.z);_.K=tH.prototype;_.K.ready=function(){var v=_.ht();v.addProvider({provide:_.oJ,useValue:this});v.addProvider({provide:_.QEd,useValue:this})};
_.K.created=function(){this.pagePool=new Ue5;this.contextSwitcher=new Pon};
_.K.attached=function(){_.Hj(this.hostElement,"attached");var v=_.ht().resolve(_.d$(_.hn));v&&(this.contextSwitcher.JSC$20251_networkService_=v);this.viewTransitionManager=_.ht().resolve(_.aw)};
_.K.getPageOffset=function(v){return v.getScrollTop()};
_.K.setPageOffset=function(v,Q){try{v.setScrollTop(Q)}catch(V){}};
_.K.setPageOffsetForNavigation=function(v,Q){_.Hj(this.hostElement,"yt-navigate-set-page-offset",{page:v,offset:Q===void 0?0:Q})};
_.K.pauseActiveContext=function(){var v=this.contextSwitcher;v.activeContext_&&v.activeContext_.pause()};
_.K.getModuleNameForType=function(v){return v==="watch"?_.Y("kevlar_watch_fixie")?"watchFixie":_.Y("kevlar_watch_grid")?"watchGrid":"watchFlexy":v==="shorts"||v==="search"?v:"browse"};
_.K.attachPage=function(v){var Q,V=!_.Y("pc_is_attached_ks")&&(v==null?void 0:(Q=v.polymerController)==null?void 0:Q.isAttached);if(!v.isAttached&&!V)try{_.m9(this.hostElement).appendChild(v)}catch(b){var E;_.Iy(new _.xd("Error attaching page element for component",{origin:(E=this.currentPage)==null?void 0:E.is,component:v.is}))}};
_.K.setActivePage=function(v,Q){var V=this,E=!1,b=function(){var F=V.isOnWatch(),t=V.currentPage;if(v)if(v!==V.currentPage){t&&(t.hidden=!0,t.active=!1,t.removeAttribute("role"));V.currentPage=v;var p,Z=Q!=null?Q:_.LF((p=V.data)==null?void 0:p.endpoint);t&&_.Hj(V.hostElement,"yt-page-type-changed",{oldPageType:t.is,newPageType:v.is,newPageSubtype:Z});_.uf().dispatch(_.U2({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:v.is}));_.uf().dispatch(_.U2({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:Z||""}));
v.hidden=!1;V.attachPage(v);v.active=!0;v.setAttribute("role","main");t&&V.setPageOffsetForNavigation(v,0);_.Y("kevlar_remove_page_dom_on_switch")&&!F&&t&&_.m9(V.hostElement).removeChild(t)}else E=!0;else V.handleMissingDestinationPage(t)};
this.shouldRunBrowseTransition(this.currentPage,v)?z_j(this.viewTransitionManager,b):this.shouldRunLearningJourneyTransition(this.currentPage,v)?x7j(this.viewTransitionManager,b):b();return E};
_.K.handleMissingDestinationPage=function(v){if(this.isColdLoadForUnknownPage(v))_.Iy(new _.xd("Cold load for unknown page"));else{var Q;v=new _.xd("Unable to set active page",v?v.is:"unknown origin",(Q=this.data)==null?void 0:Q.endpoint);_.ro(v)}};
_.K.isColdLoadForUnknownPage=function(v){return!v&&Tb(this.data)==="unknown"};
_.K.shouldRunBrowseTransition=function(v,Q){return this.shouldApplySlideTransition&&(v==null?void 0:v.is)==="ytd-browse"&&(Q==null?void 0:Q.is)==="ytd-browse"&&v!==Q};
_.K.shouldRunLearningJourneyTransition=function(v,Q){return this.shouldApplyLearningJourneyTransition&&(v==null?void 0:v.is)==="ytd-browse"&&((Q==null?void 0:Q.is)==="ytd-watch-learning-journey"||(Q==null?void 0:Q.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.K.shouldRunWatchNextLoadedTransition=function(v,Q){return this.viewTransitionManager&&v.is==="ytd-watch-flexy"&&Q};
_.K.updatePageData=function(v){var Q=this,V=this.data;this.updatePageDataJobId&&_.XT.cancelJob(this.updatePageDataJobId);this.data=v;return new _.Ry(function(E){var b=function(){v.filler?Q.performDataUpdate(v,V):WG7(function(){Q.performDataUpdate(v,V)});
var Z=_.Zp();_.PO(Z,"cr")||Z.processSignal("cr");E()},F=function(){v&&(v.page==="watch"||_.Y("web_shorts_delay_shorts_page_update")&&v.page==="shorts")?Q.updatePageDataJobId=_.A2(_.XT,b):b()};
if(_.Y("kevlar_enable_mss_page_modules_client")&&v){var t=_.ht().resolve(_.St),p=Q.getModuleNameForType(v.page);(t=qCY(t,[p]))?t.then(F):F()}else F()})};
_.K.isDownloadsPage=function(v){var Q,V;return(v==null?void 0:(Q=v.endpoint)==null?void 0:(V=Q.browseEndpoint)==null?void 0:V.browseId)==="FEdownloads"};
_.K.setPlayerSyncInterval=function(v){var Q;return _.e(function(V){if(V.nextAddress==1)return V.yield(_.ht().resolve(_.m0),2);Q=V.yieldResult;Q.setUpPositionSyncInterval(v);_.q1(V)})};
_.K.performDataUpdate=function(v,Q){_.Y("kevlar_early_popup_close")||_.mb(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var V=!v.filler;V&&(_.Mp("lps"),_.Y("config_age_report_killswitch")||V$5());var E=Tb(v),b,F=!1;if(_.Y("kevlar_remove_page_dom_on_switch")){var t=Q&&Tb(Q);E===t&&(b=this.getCurrentPage())}b||(b=m8(this.pagePool,E));V&&auq(this.pagePool.elementPoolPopulator,E);V&&!this.renderLoadingStateJobId&&(F=this.setActivePage(b));if(b){t=E==="watch";var p=
E==="shorts",Z=E==="learning_journey_watch";_.Y("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(b);if(t||p||Z)b.playerData=v.playerResponse;if(p){v.reelWatchSequenceResponse?b.reelWatchSequenceResponse=v.reelWatchSequenceResponse:b.cachedReelWatchSequenceResponse&&!b.reelWatchSequenceResponse&&(b.reelWatchSequenceResponse=b.cachedReelWatchSequenceResponse);v.reelWatchSequenceResponse&&(Q==null?void 0:Q.page)!=="shorts"&&(b.cachedReelWatchSequenceResponse=v.reelWatchSequenceResponse);
b.currentEndpoint=v.endpoint;var d;b.isPreviousPageShorts=!!(Q==null?0:(d=Q.endpoint)==null?0:d.reelWatchEndpoint)}d=this.isDownloadsPage(v);var w=this.isDownloadsPage(Q);d&&!w?this.setPlayerSyncInterval(6E5):!d&&w&&this.setPlayerSyncInterval();_.Y("block_all_player_prefetch_requests")||this.preparePrefetchRequest(v,b,V,t,p,Z);BeI(_.ht().resolve(_.lJ),Q,v);if(_.Y("enable_ai_companion")){var A;(A=_.ht().resolve(_.d$(_.mO)))==null||_.qXI(A,this.getPersistentPanelSurface(E))}_.Ty(_.ht().resolve(_.dS));
_.Y("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(b);V?(V=typeof b.loadPage,V==="function"?(b.pageContext=deh(this.contextSwitcher,b,b.data!==v.response),V=function(){b.loadPage(v.response)},this.shouldApplySlideTransition&&b.is==="ytd-browse"&&F&&(E==="learning"||this.isDifferentBrowseId(v==null?void 0:v.endpoint,Q==null?void 0:Q.endpoint))?z_j(this.viewTransitionManager,V):this.shouldRunWatchNextLoadedTransition(b,F)?Nef(this.viewTransitionManager,V):V()):_.$h(new _.xd("b/38014653 ",
[E,
b.is,b.nodeName,V,b.isAttached,Q&&Tb(Q),this.hostElement.children.length])),_.Mp("pdl")):(b.hidden=!0,v.response.filler=!0,b.data=v.response,this.attachPage(b));_.Hj(this.hostElement,"yt-page-data-updated",{pageType:E})}_.go(_.XT,function(){_.Y("logging_avoid_blocking_during_navigation")&&_.CPB().transition("none");var k=R0$(),T=b;if(v){var c=iNh(v),C=L3h(v),R;a:{if(v.playerResponse){var l=v.playerResponse,S;if((R=l.auxiliaryUi)==null?0:(S=R.messageRenderers)==null?0:S.upsellDialogRenderer){R=l.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(v.response&&(R=v.response,(l=R.overlay)==null?0:l.upsellDialogRenderer)){R=R.overlay.upsellDialogRenderer;break a}R=void 0}var a;var g;S=(a=v.playerResponse)==null?void 0:(g=a.auxiliaryUi)==null?void 0:g.messageRenderers;a=(S==null?void 0:S.enforcementMessageViewModel)||(S==null?void 0:S.bkaEnforcementMessageViewModel);a=(a==null?void 0:a.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?a:void 0;var u;a:{if(v.response&&(g=v.response,(u=g.overlay)==null?0:u.commandWrapperPromoRenderer)){u=
g.overlay.commandWrapperPromoRenderer;break a}u=void 0}Deh(k,c,C,R,a,u,T)}})};
_.K.preparePrefetchRequest=function(v,Q,V,E,b,F){var t,p,Z,d,w,A,k,T,c,C,R,l,S,a,g;return _.e(function(u){if(u.nextAddress==1)return!V||!(E||b||F)||_.Y("kevlar_disable_background_prefetch")&&_.v5(_.zf3)()===0?u.return():(t=_.XK(Q))?u.yield(t.getPlayerPromise(),2):u.return();p=u.yieldResult;Z=_.ht().resolve(_.d$(_.hn));if(!Z)return u.return();if(b)return d=_.XQ(_.JQ),vY5(d,(w=v.endpoint)==null?void 0:w.reelWatchEndpoint,Q.reelWatchSequenceResponse,p,Z),u.return();T=(A=v.response)==null?void 0:(k=A.responseContext)==
null?void 0:k.webResponseContextExtensionData;if(!T)return u.return();S=(c=v.response)==null?void 0:(C=c.contents)==null?void 0:(R=C.twoColumnWatchNextResults)==null?void 0:(l=R.autoplay)==null?void 0:l.autoplay;a=_.ht().resolve(_.pD);g=_.XQ(_.JQ);QHn(g,T,p,Z,a,S);_.q1(u)})};
_.K.movePlayerToWatch=function(v){var Q=this,V,E;return _.e(function(b){V=m8(Q.pagePool,"watch");E=V.getPlayerContainer();v.appendTo(E);_.q1(b)})};
_.K.movePlayerToShorts=function(v){var Q=this,V,E,b;return _.e(function(F){V=m8(Q.pagePool,"shorts");E=V.getPlayerContainer();(b=v)==null||b.appendTo(E,void 0,!0);_.q1(F)})};
_.K.getPlayerFromWatch=function(){var v=m8(this.pagePool,"watch");return _.XK(v)};
_.K.getPlayerFromShorts=function(){var v=m8(this.pagePool,"shorts");return _.XK(v)};
_.K.startLoadingWatch=function(){var v=this,Q=m8(this.pagePool,"watch");this.renderLoadingStateJobId?(_.XT.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.Y("web_watch_transition_enable_start_loading_watch_callsite")?Jfh(this.viewTransitionManager,function(){v.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(Q,"watch");
if(_.Y("enable_ai_companion")){var V;(V=_.ht().resolve(_.d$(_.mO)))==null||_.qXI(V,this.getPersistentPanelSurface("watch"))}};
_.K.startLoadingShorts=function(){var v=m8(this.pagePool,"shorts");this.setActivePage(v,"shorts")};
_.K.startLoadingLearningJourney=function(){var v=m8(this.pagePool,"learning_journey_watch");this.setActivePage(v,"learning_journey_watch")};
_.K.getCurrentPage=function(){return this.currentPage};
_.K.getDestinationPageType=function(){return this.destinationPageType};
_.K.getCurrentData=function(){return this.data};
_.K.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.K.isOnShorts=function(){var v;return((v=this.currentPage)==null?void 0:v.is)==="ytd-shorts"};
_.K.isWatchPage=function(v){return!!v&&(v.is==="ytd-watch-flexy"||v.is==="ytd-watch-fixie"||v.is==="ytd-watch-grid")};
_.K.preparePage=function(v,Q){var V=this,E=function(){var t=V.pagePool.preparePage(v,V.currentPage,Q);t&&V.attachPage(t)},b=function(t){_.Hx(t,Q);
_.Iy(t)};
if(_.Y("kevlar_enable_mss_page_modules_client")){var F=this.getModuleNameForType(v);if(F=qCY(_.ht().resolve(_.St),[F])){F.then(E.bind(this)).catch(b.bind(this));return}}try{E()}catch(t){b(t)}};
_.K.lazyPrepareCriticalPages=function(v,Q){v=_.LF(Q)||v;_.Y("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(v).then(this.maybePrepareWatchPage.bind(this,v)):this.maybePrepareWatchPage(v)};
_.K.maybePrepareWatchPage=function(v){v==="watch"||v==="learning_journey_watch"&&_.Y("web_watch_learning_journey_disable_lazy_pages")||_.go(_.XT,this.preparePage.bind(this,"watch"))};
_.K.downloadPageModules=function(v){v=this.getModuleNameForType(v);var Q=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);Q.delete(v);var V=_.ht().resolve(_.St);V.JSC$18929_loadModules(v);return V.JSC$18929_loadModules.apply(V,_.ui(Q))};
_.K.renderPageLoadingState=function(v,Q){this.preparePage(v,Q);var V=m8(this.pagePool,v);V.loadingData&&(V.loadingData.endpoint=Q);V.loading=!0;this.setActivePage(V,v);v!=="watch"&&v!=="learning_journey_watch"||_.Hj(this.hostElement,"yt-guide-close")};
_.K.prepareForNavigation=function(v,Q){var V=this;if(this.currentPage&&this.data){var E=_.LF(Q)||v;this.destinationPageType=E;Tb(this.data)==E&&_.Hj(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((v==="watch"||v==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.XT.cancelJob(this.renderLoadingStateJobId);_.ht().resolve(_.lJ).deactivate(Q);_.Lq(_.XT,function(){var F=V.viewTransitionManager,t=V.currentPage;
if(F.isLockupToWatchTransitionEnabled&&F.isLockupThumbnailRegistrationEnabled&&t)if(F.registeredLockupThumbnail)F.lockupThumbnailRegisteredFromWatchEndpoint&&_.Iy(new _.xd("Lockup thumbnail already registered from watch endpoint."));else{a:{var p=_.y(Q,_.sn);if(p==null?0:p.videoId){var Z="yt-lockup-view-model ."+_.$wo(p.videoId)+" yt-thumbnail-view-model";t=t.querySelectorAll(Z);if(t.length===1){p=t[0];break a}t.length>1?_.Iy(new _.xd("Multiple LockupViewModel thumbnails found for videoId: "+p.videoId+
". Selector: "+Z)):_.Y("web_thumbnail_to_watch_transition_debug")&&_.Iy(new _.xd("No LockupViewModel thumbnail found for videoId: "+p.videoId+". Selector: "+Z))}p=void 0}p&&(F.registeredLockupThumbnail=p,F.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.ZO0(F,p))}});
var b=this.data;this.renderLoadingStateJobId=_.Lq(_.XT,function(){Jfh(V.viewTransitionManager,function(){if(V.data!=b){var F=m8(V.pagePool,v);V.setActivePage(F)}else V.renderPageLoadingState(v,Q);V.renderLoadingStateJobId=0})},150)}};
_.K.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var v=new _.AD(1);this.currentPage.pageDisposeJobs.forEach(function(Q){_.kc(v,Q)});
this.pageDisposeJobsets.set(this.currentPage,v)}};
_.K.flushPageDisposeJobset=function(v){var Q=this.pageDisposeJobsets.get(v);Q&&(Q.flushJobs(),this.pageDisposeJobsets.delete(v))};
_.K.onYtStopOldPlayer=function(v,Q){Q=Q===void 0?!1:Q;var V,E=_.c5("kevlar_new_stop_old_player_logic_pages");if(_.Y("kevlar_check_current_page_on_stop_old_player")&&(E.length===0||this.currentPage&&E.includes(this.currentPage.is)))if(this.data&&(V=Tb(this.data)),Tb(v)===V&&this.currentPage&&Tb(this.currentPage.data)!==V)var b=_.XK(this.currentPage);else V=Tb(this.data),b=m8(this.pagePool,V),b=_.XK(b);else this.data&&(V=Tb(this.data),b=m8(this.pagePool,V),b=_.XK(b));if(b){E=Tb(v);var F=m8(this.pagePool,
E);F=_.XK(F);if(b==F)Q&&!_.Y("kevlar_disable_preemptive_player_reset")&&b.resetForNewPlayback();else if(Q=V==="watch"&&E!=="watch",!Q||E==="shorts"||_.bna()&&!vD0(this.data,v))v=_.ht().resolve(_.lJ),Q&&v.isMiniplayerActive()&&v.pipController.getWindow()||b.stop()}};
_.K.isDifferentBrowseId=function(v,Q){v=_.y(v,_.tn);Q=_.y(Q,_.tn);return(v==null?void 0:v.browseId)!==(Q==null?void 0:Q.browseId)};
_.K.getPersistentPanelSurface=function(v){switch(v){case "watch":return"WATCH";default:return"APP"}};
_.hr.Object.defineProperties(tH,{template:{configurable:!0,enumerable:!0,get:function(){return RXY()}}});
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],tH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-page-manager"})],tH);_.B(tH,"ytd-page-manager",function(){return RXY()},{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var nL7;var pb=function(){var v=_.z.apply(this,arguments)||this;v.useListItemStyles=_.Y("web_list_item_style_for_menu_items");v.systemIcons=_.Y("kevlar_system_icons");return v};
_.f(pb,_.z);_.K=pb.prototype;_.K.ready=function(){this.hostElement.addEventListener("tap",_.Lh(this,this.onEndpointTapExtra))};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.K.onFocus=function(){var v;(v=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.K.onEndpointTapExtra=function(v){_.Hj(this.hostElement,"iron-activate");var Q=this.data.navigationEndpoint;Q&&_.y(Q,_.fSt)&&(v.stopPropagation(),_.Qk(this.hostElement,[Q],this.hostElement))};
_.K.computeIcon=function(v){return v&&v.iconType?_.VK(v.iconType):""};
_.K.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.K.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.K.forceUpdateStylesOnLegacyBrowsers=function(){_.Y("kevlar_legacy_browsers")&&_.F6(this.hostElement)};
pb.prototype.forceUpdateStylesOnLegacyBrowsers=pb.prototype.forceUpdateStylesOnLegacyBrowsers;pb.prototype.onFocus=pb.prototype.onFocus;_.W([_.M(_.TX),_.X("design:type",Object)],pb.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.Djf.YtConditionalRendererBehavior),_.X("design:type",Object)],pb.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],pb.prototype,"ytEndpointBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],pb.prototype,"data",void 0);_.W([_.q({computed:"computeIcon(data.icon)",value:""}),_.X("design:type",String)],pb.prototype,"icon",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],pb.prototype,"useIcons",void 0);_.W([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.X("design:type",Boolean)],pb.prototype,"hasSeparator",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pb.prototype,"useListItemStyles",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pb.prototype,"systemIcons",void 0);_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pb.prototype,"onFocus",null);_.W([_.ph("useIcons","hasSeparator"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pb.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(pb,"ytd-menu-navigation-item-renderer",function(){if(nL7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);nL7=v}v=nL7;return v},{mode:1});var lP8;var qy5=_.u3(_.Lt("DOWNLOAD",{},"Download")),SyY=_.u3(_.Lt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),zXn=_.u3(_.Lt("RETRY",{},"Retry")),Jo0=_.u3(_.Lt("PAUSE_DOWNLOADING",{},"Pause downloading")),Nh0=_.u3(_.Lt("RESUME_DOWNLOAD",{},"Resume download")),eb=function(){var v=_.z.apply(this,arguments)||this;v.primaryText=qy5;v.primaryIconType="OFFLINE_DOWNLOAD";v.hasSecondaryContent=!1;v.hasSeparator=!1;v.transferState="TRANSFER_STATE_UNKNOWN";v.isVideoDeletedByUser=!1;v.isHidden=!1;v.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return v};
_.f(eb,_.z);_.K=eb.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.K.onFocus=function(){this.primaryEntry.focus()};
_.K.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.K.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.K.getRemoveAction=function(){return"ACTION_REMOVE"};
_.K.sendOfflineAction=function(v){var Q=this.data.serviceEndpoint;if(Q){var V=_.y(Q,_.L4);V&&v&&(V.action=v);this.ytComponentBehavior.resolveCommand(Q)}};
_.K.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=qy5,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=qy5;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=zXn;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=SyY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Nh0;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=SyY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Jo0;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=SyY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=SyY;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=qy5,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.K.showHideButton=function(){var v;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((v=this.playerStateEntity)==null?void 0:v.adsState)==="ADS_STATE_PLAYING"};
_.K.isSecondaryEntryHidden=function(v,Q){return v?!0:!Q};
_.K.computeHasSeparator=function(){var v;return!((v=this.data)==null||!v.hasSeparator)};
_.K.computePlayerStateEntityKey=function(v){return v};
eb.prototype.showHideButton=eb.prototype.showHideButton;eb.prototype.onTransferStateChange=eb.prototype.onTransferStateChange;eb.prototype.onFocus=eb.prototype.onFocus;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],eb.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],eb.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],eb.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],eb.prototype,"primaryText",void 0);_.W([_.q(),_.X("design:type",String)],eb.prototype,"primaryIconType",void 0);_.W([_.q(),_.X("design:type",String)],eb.prototype,"primaryAction",void 0);_.W([_.q(),_.X("design:type",Object)],eb.prototype,"secondaryText",void 0);_.W([_.q(),_.X("design:type",String)],eb.prototype,"secondaryIconType",void 0);
_.W([_.q(),_.X("design:type",String)],eb.prototype,"secondaryAction",void 0);_.W([_.q(),_.X("design:type",Object)],eb.prototype,"hasSecondaryContent",void 0);_.W([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.X("design:type",Object)],eb.prototype,"hasSeparator",void 0);_.W([_.q({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.X("design:type",String)],eb.prototype,"playerStateEntityKey",void 0);
_.W([_.q({selector:_.VZ,selectorArgs:["playerStateEntityKey"]}),_.X("design:type",Object)],eb.prototype,"playerStateEntity",void 0);_.W([_.q({selector:_.RF,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.X("design:type",String)],eb.prototype,"transferState",void 0);_.W([_.q({selector:_.vXo,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.X("design:type",Object)],eb.prototype,"isVideoDeletedByUser",void 0);
_.W([_.q(),_.X("design:type",Object)],eb.prototype,"isHidden",void 0);_.W([_.q({selector:_.a6B,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.X("design:type",Object)],eb.prototype,"offlineabilityState",void 0);_.W([_.Z7("#primary-entry"),_.X("design:type",Object)],eb.prototype,"primaryEntry",void 0);_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],eb.prototype,"onFocus",null);
_.W([_.wg("transferState","isVideoDeletedByUser"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],eb.prototype,"onTransferStateChange",null);_.W([_.wg("offlineabilityState","playerStateEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],eb.prototype,"showHideButton",null);
_.B(eb,"ytd-menu-service-item-download-renderer",function(){if(lP8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);lP8=v}v=lP8;return v},{mode:1});var xu$;var Zm=function(){var v=_.z.apply(this,arguments)||this;v.useIcons=!1;v.systemIcons=_.Y("kevlar_system_icons");v.useListItemStyles=_.Y("web_list_item_style_for_menu_items");return v};
_.f(Zm,_.z);_.K=Zm.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.K.onFocus=function(){var v;(v=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.K.onTap=function(){_.Un(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var v=this.data.serviceEndpoint,Q=this.data.command;if(v){var V,E=(V=this.data)==null?void 0:V.trackingParams;V=!!_.y(v,_.ZJZ);E&&V&&_.oF().dispatch(_.U2({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:E}}));this.ytComponentBehavior.resolveCommand(v)||_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}})}Q&&(this.ytComponentBehavior.resolveCommand(Q)||_.Qk(this.hostElement,
[Q],this.hostElement))};
_.K.computeIcon=function(v){return v&&v.iconType?_.VK(v.iconType):""};
_.K.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.K.computeHasSeparator=function(){var v;return!((v=this.data)==null||!v.hasSeparator)};
_.K.forceUpdateStylesOnLegacyBrowsers=function(){_.Y("kevlar_legacy_browsers")&&_.F6(this.hostElement)};
_.K.computeIsSelected=function(){var v;return!((v=this.data)==null||!v.isSelected)};
Zm.prototype.forceUpdateStylesOnLegacyBrowsers=Zm.prototype.forceUpdateStylesOnLegacyBrowsers;Zm.prototype.onTap=Zm.prototype.onTap;Zm.prototype.onFocus=Zm.prototype.onFocus;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],Zm.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.Djf.YtConditionalRendererBehavior),_.X("design:type",Object)],Zm.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Zm.prototype,"data",void 0);_.W([_.q({computed:"computeIcon(data.icon)",value:""}),_.X("design:type",String)],Zm.prototype,"icon",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Zm.prototype,"useIcons",void 0);
_.W([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Zm.prototype,"hasSeparator",void 0);_.W([_.q({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Zm.prototype,"isSelected",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Zm.prototype,"systemIcons",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Zm.prototype,"useListItemStyles",void 0);
_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Zm.prototype,"onFocus",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Zm.prototype,"onTap",null);_.W([_.ph("useIcons","hasSeparator"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Zm.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(Zm,"ytd-menu-service-item-renderer",function(){if(xu$===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);xu$=v}v=xu$;return v},{mode:2});var Bhn;var PX=function(){return _.z.apply(this,arguments)||this};
_.f(PX,_.z);_.K=PX.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onDataChanged=function(){var v=this;_.PE(this,function(){v.postbox.openDialog();v.focus();_.Hj(v.hostElement,"yt-refit")})};
_.K.focus=function(){this.postbox.focus()};
_.K.closePopup=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.K.onYtCommentboxDismiss=function(){this.closePopup()};
PX.prototype.onYtCommentboxDismiss=PX.prototype.onYtCommentboxDismiss;PX.prototype.onDataChanged=PX.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],PX.prototype,"data",void 0);_.W([_.q({value:function(){return _.Lt("SBOX_INAPPROPRIATE_CANCEL")}}),
_.X("design:type",String)],PX.prototype,"closeButtonAriaLabel",void 0);_.W([_.Z7("#postbox"),_.X("design:type",Object)],PX.prototype,"postbox",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PX.prototype,"onDataChanged",null);_.W([_.tM("yt-commentbox-dismiss"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],PX.prototype,"onYtCommentboxDismiss",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],PX);
_.B(PX,"ytd-backstage-post-dialog-popup-renderer",function(){if(Bhn!==void 0)return Bhn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Bhn=v},{mode:1});var gLs;var sYq;var uos=function(){return _.z.apply(this,arguments)||this};
_.f(uos,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uos.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uos.prototype,"data",void 0);_.W([_.D7({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],uos);
_.B(uos,"yt-sender-id-section-renderer",function(){if(sYq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);sYq=v}v=
sYq;return v},{mode:1});var jY0;var WcY;var dM=function(){return _.z.apply(this,arguments)||this};
_.f(dM,_.z);dM.prototype.closePopup=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dM.prototype,"data",void 0);_.W([_.D7({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],dM);
_.B(dM,"yt-community-post-section-renderer",function(){if(WcY===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;jY0===void 0&&(jY0=document.createElement("template"));var E=jY0;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);WcY=v}v=WcY;return v},{mode:2});var oL8;var Xoh;var aP7;var roY;var $un;var IPf;var H98=function(){return _.z.apply(this,arguments)||this};
_.f(H98,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],H98.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],H98.prototype,"data",void 0);_.W([_.D7({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],H98);
_.B(H98,"yt-share-start-time-with-context-renderer",function(){if(IPf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;$un===void 0&&($un=document.createElement("template"));var E=$un;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);IPf=v}v=IPf;return v},{mode:2});var hH=function(){return _.z.apply(this,arguments)||this};
_.f(hH,_.z);hH.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hH.prototype,"data",void 0);_.W([_.D7({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],hH);
_.B(hH,"yt-share-panel-title-v15-renderer",function(){if(roY===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;aP7===void 0&&(aP7=document.createElement("template"));var E=aP7;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);roY=v}v=roY;return v},{mode:2});var wM=function(){return _.z.apply(this,arguments)||this};
_.f(wM,_.z);wM.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wM.prototype,"data",void 0);_.W([_.D7({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],wM);
_.B(wM,"yt-share-panel-header-renderer",function(){if(Xoh===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;oL8===void 0&&(oL8=document.createElement("template"));var E=oL8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Xoh=v}v=Xoh;return v},{mode:2});var mu8;var Uun;var AH=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-open-popup-action":"onOpen"};return v};
_.f(AH,_.z);_.K=AH.prototype;_.K.attached=function(){this.onOpen()};
_.K.updateTimeSecs=function(v){this.currentTimeSecs=v};
_.K.computeTimeString=function(v){v=v.toString();var Q=Math.floor(Number(v)/3600),V=Math.floor(Number(v)%3600%60);return(Q>0?Q+":":"")+_.iy(Math.floor(Number(v)%3600/60),Q>0?2:1)+":"+_.iy(V,2)};
_.K.computeTimeStringA11y=function(v){return _.iAB({seconds:v})};
_.K.getTimeParam=function(){return ONq(this.timeString)};
_.K.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var v={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},Q;_.x_(_.tR(),(Q=this.data)==null?void 0:Q.trackingParams,v,7)};
_.K.onChangeStartAtTimestamp=function(){for(var v=this.startAtTimestamp.value.split(":"),Q=0,V=1,E=v.length-1;E>=0;E--)Q+=Number(v[E])*V,V*=60;this.updateTimeSecs(Q);this.setTimestamp()};
_.K.onOpen=function(){var v=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var Q=_.aJ();Q?Q.getPlayerPromise().then(function(V){V=V.getCurrentTime();v.updateTimeSecs(V)}):NSm()&&this.updateTimeSecs(NSm())};
_.K.setTimestamp=function(){var v=Math.floor(this.currentTimeSecs);_.mb(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!v,timestamp:v||""}])};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],AH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],AH.prototype,"data",void 0);_.W([_.q({value:!1,notify:!0}),_.X("design:type",Boolean)],AH.prototype,"isStartAtChecked",void 0);_.W([_.q(),_.X("design:type",Number)],AH.prototype,"currentTimeSecs",void 0);
_.W([_.q({computed:"computeTimeString(currentTimeSecs)"}),_.X("design:type",String)],AH.prototype,"timeString",void 0);_.W([_.q({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.X("design:type",String)],AH.prototype,"timeStringA11y",void 0);_.W([_.Z7("#start-at-timestamp"),_.X("design:type",Object)],AH.prototype,"startAtTimestamp",void 0);_.W([_.D7({is:"yt-start-at-renderer",disableElementRegistration:!0})],AH);
_.B(AH,"yt-start-at-renderer",function(){if(Uun===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;mu8===void 0&&(mu8=document.createElement("template"));var E=mu8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Uun=v}v=Uun;return v},{mode:2});var vA5;var QWm;var V97={};V97.YtBindingExpressionsBehavior={identity:_.Nm,msg:function(v,Q){Q=Q===void 0?{}:Q;return _.Lt(v,Q,v)},
msgPlural:function(v,Q){return _.ty(v,Q)},
getMusicIconFromType:function(v){return _.VK(v)}};var EA8;var bLI;var Fum;var Ku5=document.head,iLh=Ku5.appendChild,Lu0;if(Fum===void 0){var t9n=document.createElement("template");_.G(t9n,'\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>');Fum=t9n}Lu0=Fum;iLh.call(Ku5,Lu0.content);var kn=function(){var v=_.z.apply(this,arguments)||this;v.screenLayer=7;return v};
_.f(kn,_.z);kn.prototype.getScreenLayer=function(){return this.screenLayer};
kn.prototype.onTap=function(v){v&&v.detail&&(v.detail.x||v.detail.y)&&_.m9(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.vp(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(v=this.getScreenLayer(),_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:v}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.hr.Object.defineProperties(kn.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()}}});
kn.prototype.onTap=kn.prototype.onTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kn.prototype,"data",void 0);_.W([_.O("data.title"),_.X("design:type",Object),_.X("design:paramtypes",[])],kn.prototype,"title",null);
_.W([_.O("data.serviceName"),_.X("design:type",String),_.X("design:paramtypes",[])],kn.prototype,"icon",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],kn.prototype,"onTap",null);_.W([_.D7({is:"yt-share-target-renderer",disableElementRegistration:!0})],kn);
_.B(kn,"yt-share-target-renderer",function(){if(bLI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;EA8===void 0&&(EA8=document.createElement("template"));var E=EA8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);bLI=v}v=bLI;return v},{mode:2});var pP5;var e7h;var Tk=function(){var v=_.z.apply(this,arguments)||this;v.SHARE_TARGET_WIDTH=70;v.SHARE_TARGET_MARGIN_RIGHT=8;v.PAGE_SCROLL_SPEED=9;v.actionMap={"yt-share-panel-reset-action":"onReset_"};return v};
_.f(Tk,_.z);_.K=Tk.prototype;_.K.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.K.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.m9(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.m9(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.K.onReset_=function(){if(_.m9(this.hostElement).querySelector("#list")){var v=_.m9(this.hostElement).querySelector("#list");var Q=_.m9(this.hostElement).querySelector("#list");var V=Q.offsetLeft,E=Q.offsetParent;E||_.g48(Q)!="fixed"||(E=_.W4(Q).documentElement);if(E){if(_.V2&&!_.bq(58)){var b=_.rdV(E);V+=b.left}else Number(_.tpq)>=8&&!(Number(_.tpq)>=9)&&(b=_.rdV(E),V-=b.left);Q=_.X4N(E)?E.clientWidth-(V+Q.offsetWidth):V}else Q=V;VOY(v,Q);this.updateScrollButtons_()}};
_.K.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.K.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.K.onScrollWheel_=function(v){v.stopPropagation();v.preventDefault();var Q=Q4Y(_.m9(this.hostElement).querySelector("#list"));v=Math.abs(v.deltaX)>Math.abs(v.deltaY)?v.deltaX:v.deltaY;VOY(_.m9(this.hostElement).querySelector("#list"),Q+v);this.updateScrollButtons_()};
_.K.smoothScrollByOnePage_=function(v){var Q=_.m9(this.hostElement).querySelector("#list"),V=(Math.floor(Q.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,E=Q4Y(Q),b=V*(v?1:-1),F=this.PAGE_SCROLL_SPEED,t=this.updateScrollButtons_.bind(this),p=0,Z;(function w(){p+=F;Z=p/V*2;VOY(Q,E+b*(Z<1?Z*Z:-Z*Z+4*Z-2));p<V?window.requestAnimationFrame(w):t()})()};
_.K.updateScrollButtons_=function(){var v=Q4Y(_.m9(this.hostElement).querySelector("#list")),Q=_.m9(this.hostElement).querySelector("#list").scrollWidth-_.m9(this.hostElement).querySelector("#list").clientWidth;_.m9(this.hostElement).querySelector("#scroll-button-back").hidden=v<=0;_.m9(this.hostElement).querySelector("#scroll-button-forward").hidden=v>=Q};
Tk.prototype.onScrollWheel_=Tk.prototype.onScrollWheel_;Tk.prototype.onDataChanged_=Tk.prototype.onDataChanged_;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Tk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(V97.YtBindingExpressionsBehavior),_.X("design:type",Object)],Tk.prototype,"ytBindingExpressionsBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Tk.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Tk.prototype,"onDataChanged_",null);_.W([_.tM("wheel"),_.X("design:type",Function),_.X("design:paramtypes",[WheelEvent]),_.X("design:returntype")],Tk.prototype,"onScrollWheel_",null);
_.W([_.D7({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Tk);
_.B(Tk,"yt-third-party-share-target-section-renderer",function(){if(e7h===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;pP5===void 0&&(pP5=document.createElement("template"));var E=pP5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);e7h=v}v=e7h;return v},{mode:2});var Yn=function(){return _.z.apply(this,arguments)||this};
_.f(Yn,_.z);Yn.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Yn.prototype,"data",void 0);_.W([_.D7({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Yn);
_.B(Yn,"yt-third-party-network-section-renderer",function(){if(QWm===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;vA5===void 0&&(vA5=document.createElement("template"));var E=vA5;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);QWm=v}v=QWm;return v},{mode:2});_.ad(_.x(function(v){return _.P("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.P("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.P(_.Pw,{data:function(){return v.data().firstPartyItems}},{listItemViewModel:_.to})))},"lj"),"first-party-network-section-view-model",{props:{data:_.pJ}});var ZLY=(0,_.qFZ)(_.uR.share,{parentClickTrackingParamsSelector:function(v){return v.parentClickTrackingParams}});var Pwh=_.s$(["data:image/svg+xml;charset=UTF-8;base64,",""]),ys=function(){var v=_.z.apply(this,arguments)||this;v.screenLayer=7;v.qrCodeEnabled=_.Y("web_enable_sharing_qr_code");v.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return v};
_.f(ys,_.z);_.K=ys.prototype;_.K.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.K.attached=function(){this.JSC$20492_scroller&&(this.JSC$20492_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20492_scroller.attached&&typeof this.JSC$20492_scroller.attached==="function"&&this.JSC$20492_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.K.onDataChanged=function(){var v=this,Q;(Q=this.data)!=null&&Q.contents&&(this.hostElement.setAttribute("links-only","true"),_.EJ(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.PE(this,function(){_.Hj(v.hostElement,"yt-refit");v.focusSharePanelHeader()}))};
_.K.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.K.handleSetTimestamp=function(v){var Q=this.shortUrl();v.isSet&&(Q=_.XZ(Q,"t",v.timestamp));this.maybeRenderQrCode(Q)};
_.K.shortUrl=function(){var v,Q=(v=this.data)==null?void 0:v.contents;if(Q)for(v=0;v<Q.length;v++){var V=void 0,E=void 0;if((V=Q[v])==null?0:(E=V.thirdPartyNetworkSection)==null?0:E.copyLinkContainer){var b=E=V=void 0;return(b=_.y((V=Q[v])==null?void 0:(E=V.thirdPartyNetworkSection)==null?void 0:E.copyLinkContainer,ck5))==null?void 0:b.shortUrl}}};
_.K.maybeRenderQrCode=function(v){var Q=this,V,E,b,F,t,p,Z,d,w;return _.e(function(A){if(A.nextAddress==1){V=_.m9(Q.hostElement).querySelector("#qr-code");if(!Q.qrCodeEnabled||!v)return V&&(V.style.display="none"),A.return();E=_.xxo(_.ht().resolve(_.Eo),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});b=document.createElement("div");return typeof E==="function"?(E(b),A.jumpTo(2)):A.yield(E,3)}A.nextAddress!=2&&(F=A.yieldResult,F(b));Z=(t=b)==null?void 0:(p=t.firstChild)==null?void 0:p.firstChild;
d=document.createElement("img");w=_.Lkh(Pwh,btoa(Z.outerHTML));d.onload=function(){var k={canvas:V,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:d},T=new F6n;ee8(T,v);ZrI(T,!1,PAm(T));var c=T.modules,C=Object.assign({},Kl7,k);c=structuredClone(c);k=c.length;var R,l=(R=C.canvas)!=null?R:document.createElement("canvas");R=C.cellSize;T=C.logo;var S,a=(S=C.logoSize)!=null?S:Math.floor(k/4);k%2!==a%2&&a++;var g=C.logoPadding,u=C.backgroundColor;S=k*R;var r=
C.width,v9=0;r&&(v9=C.padding,v9=Math.ceil(v9*S/(r-v9*2)),l.style.width=r+"px",l.style.height=r+"px");l.width!==S+v9*2&&(l.width=S+v9*2);l.height!==S+v9*2&&(l.height=S+v9*2);S=l.getContext("2d");C.autoClear&&S.clearRect(0,0,l.width,l.height);S.fillStyle=u;S.beginPath();S.roundRect(0,0,l.width,l.height,C.borderRadius);S.fill();S.save();S.translate(v9,v9);if(T)for(l=Math.floor(k-a)/2-g,g=Math.floor(k+a)/2+g,u=l;u<g;u++)for(r=l;r<g;r++)c[u][r]=!1;for(l=0;l<k;l++)for(g=0;g<k;g++)(l<7&&g<7||l<7&&g>=k-
7||l>=k-7&&g<7)&&(c[l][g]=!1);var t3;l=(t3=C.markerColor)!=null?t3:C.color;he8(S,0,0,R,l);he8(S,R*(k-7),0,R,l);he8(S,0,R*(k-7),R,l);switch(C.cellStyle){case 0:t3=c;c=t3.length;l=C.cellSize;S.beginPath();for(g=0;g<c;g++)for(u=0;u<c;u++)t3[g][u]&&S.rect(g*l,u*l,l,l);S.fillStyle=C.color;S.fill();break;case 1:t3=c;c=t3.length;l=C.cellSize;g=l*C.relativeCircleSize;S.fillStyle=C.color;S.beginPath();for(C=0;C<c;C++)for(u=0;u<c;u++)t3[C][u]&&(S.beginPath(),S.ellipse((C+.5)*l,(u+.5)*l,g/2,g/2,0,0,2*Math.PI),
S.fill());S.fill();break;case 2:t3=c;c=t3.length;l=C.cellSize;S.fillStyle=C.color;C=[[1,1],[-1,1],[-1,-1],[1,-1]];S.beginPath();for(g=0;g<c;g++)for(u=0;u<c;u++)if(t3[g][u])S.roundRect(g*l,u*l,l,l,l/2),g+1<c&&t3[g+1][u]&&S.rect(g*l+l/2,u*l,l,l),u+1<c&&t3[g][u+1]&&S.rect(g*l,u*l+l/2,l,l);else{r=g*l+l/2;v9=u*l+l/2;for(var h3=0;h3<4;h3++){var OB=_.L(C[h3]),kQ=OB.next().value;OB=OB.next().value;g+kQ>=0&&g+kQ<c&&u+OB>=0&&u+OB<c&&t3[g+kQ][u]&&t3[g][u+OB]&&t3[g+kQ][u+OB]&&(kQ=h3*Math.PI/2,OB=l/2,S.moveTo(r+
OB*Math.cos(kQ),v9+OB*Math.sin(kQ)),S.arc(r,v9,l/2,kQ,kQ+Math.PI/2,!1),S.lineTo(r+OB*(Math.cos(kQ)-Math.sin(kQ)),v9+OB*(Math.cos(kQ)+Math.sin(kQ))),S.lineTo(r+OB*Math.cos(kQ),v9+OB*Math.sin(kQ)))}}S.fill()}T&&S.drawImage(T,(k-a)*R/2,(k-a)*R/2,a*R,a*R);S.restore();V.style.removeProperty("display")};
d.src=_.Bq(w);_.q1(A)})};
_.K.hasCommunityPostRenderer=function(){var v,Q,V,E;return!!((v=this.data)==null?0:(Q=v.header)==null?0:(V=Q.sharePanelHeaderRenderer)==null?0:(E=V.communityPost)==null?0:E.communityPostSectionRenderer)};
_.K.onTapClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.K.getScreenLayer=function(){return this.screenLayer};
_.K.logSharePanelPage=function(){if(!_.Y("enable_share_panel_navigation_logging_fix_on_web")){var v;if((v=this.data)!=null&&v.trackingParams){v=this.data.trackingParams;var Q=this.parentClickTrackingParams;Q=Q?_.dE(Q):void 0;var V=_.tR();_.S5(V,21760,Q,{layer:7,parentLayer:0});V.graftServerVe(v,void 0,7);_.oF().dispatch(_.U2({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
ys.prototype.onDataChanged=ys.prototype.onDataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ys.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ys.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],ys.prototype,"data",void 0);_.W([_.q({value:_.Lt("SBOX_INAPPROPRIATE_CANCEL")}),_.X("design:type",String)],ys.prototype,"closeButtonAriaLabel",void 0);_.W([_.Z7("yt-share-panel-header-renderer"),_.X("design:type",HTMLElement)],ys.prototype,"header",void 0);_.W([_.q({selector:ZLY.parentClickTrackingParamsSelector}),_.X("design:type",String)],ys.prototype,"parentClickTrackingParams",void 0);_.W([_.q(),_.X("design:type",Object)],ys.prototype,"qrCodeEnabled",void 0);
_.W([_.Z7("#scroller"),_.X("design:type",Object)],ys.prototype,"JSC$20492_scroller",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ys.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],ys);
_.B(ys,"ytd-unified-share-panel-renderer",function(){if(gLs!==void 0)return gLs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return gLs=v},{mode:1});var dWm;var cX=function(){var v=_.z.apply(this,arguments)||this;v.modernModal=!0;return v};
_.f(cX,_.z);cX.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
cX.prototype.computeShouldHideOldButtons=function(){var v;return!((v=this.data)==null?0:v.button)};
_.hr.Object.defineProperties(cX.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(v=this.data)==null?void 0:(Q=v.button)==null?void 0:Q.buttonRenderer}}});
_.W([_.q(),_.X("design:type",Object)],cX.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],cX.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],cX.prototype,"modernModal",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],cX.prototype,"buttonRendererData",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],cX);
_.B(cX,"ytd-modal-with-title-and-button-renderer",function(){if(dWm!==void 0)return dWm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dWm=v},{mode:1});var h7f;var fb=function(){return _.z.apply(this,arguments)||this};
_.f(fb,_.z);fb.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("page-changed",this.page))};
fb.prototype.pageChangedForBinding=fb.prototype.pageChangedForBinding;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fb.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],fb.prototype,"page",void 0);_.W([_.ph("page"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fb.prototype,"pageChangedForBinding",null);
_.W([_.J({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],fb);
_.B(fb,"ytd-account-item-section-header-renderer",function(){if(h7f!==void 0)return h7f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return h7f=v},{mode:1});var wP0;var Gk=function(){return _.z.apply(this,arguments)||this};
_.f(Gk,_.z);Gk.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"}}}};
Gk.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],Gk.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Gk.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Function)],Gk.prototype,"onAccountItemTap",void 0);
_.W([_.J({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Gk);
_.B(Gk,"ytd-account-item-section-renderer",function(){if(wP0!==void 0)return wP0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wP0=v},{mode:1});var AE$;var kQd;var Tyd=function(){return _.z.apply(this,arguments)||this};
_.f(Tyd,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Tyd.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Tyd.prototype,"data",void 0);_.W([_.J({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Tyd);
_.B(Tyd,"ytd-accounts-dialog-header-renderer",function(){if(kQd!==void 0)return kQd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return kQd=v},{mode:1});var YVI;var Cb=function(){return _.z.apply(this,arguments)||this};
_.f(Cb,_.z);Cb.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cb.prototype,"data",void 0);_.W([_.J({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Cb);
_.B(Cb,"ytd-google-account-header-renderer",function(){if(YVI!==void 0)return YVI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return YVI=v},{mode:1});var MG=function(){return _.z.apply(this,arguments)||this};
_.f(MG,_.z);MG.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"}}}};
MG.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("page-changed",this.page))};
MG.prototype.pageChangedForBinding=MG.prototype.pageChangedForBinding;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],MG.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],MG.prototype,"page",void 0);
_.W([_.ph("page"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],MG.prototype,"pageChangedForBinding",null);_.W([_.J({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],MG);
_.Hn()(MG,"ytd-account-section-list-renderer",function(){if(AE$===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);AE$=v}v=AE$;return v},{allowedProps:["data"],
mode:1});var yEf;var O3=function(){var v=_.z.apply(this,arguments)||this;v.enableHandlesAccountMenuSwitcher=_.Y("enable_handles_account_menu_switcher");return v};
_.f(O3,_.z);O3.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
O3.prototype.dataChanged=O3.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],O3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],O3.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.W([_.Z7("#avatar"),_.X("design:type",Object)],O3.prototype,"avatar",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O3.prototype,"dataChanged",null);_.W([_.J({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],O3);
_.Hn()(O3,"ytd-active-account-header-renderer",function(){if(yEf===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);yEf=v}v=yEf;return v},{allowedProps:["data"],
mode:1});var cEY;var fcj;var Dm=function(){return _.z.apply(this,arguments)||this};
_.f(Dm,_.z);Dm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Dm.prototype.onBackTap=function(){_.Hj(this.hostElement,"yt-menu-back-tapped")};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Dm.prototype,"data",void 0);_.W([_.J({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Dm);
_.Hn()(Dm,"ytd-simple-menu-header-renderer",function(){if(fcj===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);fcj=v}v=fcj;return v},{allowedProps:["data"],
mode:2});var GQh;var Cwq=function(){return _.z.apply(this,arguments)||this};
_.f(Cwq,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cwq.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cwq.prototype,"data",void 0);_.W([_.J({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Cwq);
_.B(Cwq,"ytd-comment-video-thumbnail-header-renderer",function(){if(GQh!==void 0)return GQh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return GQh=v},{mode:1});var M9h;var OLj=function(){return _.z.apply(this,arguments)||this};
_.f(OLj,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],OLj.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OLj.prototype,"data",void 0);_.W([_.J({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],OLj);
_.B(OLj,"ytd-abuse-type-selector-renderer",function(){if(M9h!==void 0)return M9h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return M9h=v},{mode:1});var DWh;var R7q=(0,_.qFZ)(_.uR.reportChannelAbuse,{isVideoIdSelectedSelector:function(v,Q){return Q in v.selectedVideoIds},
additionalContextSelector:function(v){return v.additionalContext},
impersonatedChannelUrlSelector:function(v){return v.impersonatedChannelUrl},
reportChannelAbuseSelector:function(v){return v}});var R_=function(){return _.z.apply(this,arguments)||this};
_.f(R_,_.z);R_.prototype.attached=function(){var v=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){v.additionalContextInput.focusTextInput()})};
R_.prototype.handleAdditionalContextChanged=function(){var v=this;_.Nf(this,"ytd-report-channel-additional-context-update",function(){v.ytdReduxBehavior.dispatch(_.U2({type:"ADDITIONAL_CONTEXT_UPDATED",payload:v.additionalContext}))},300)};
R_.prototype.updateAdditionalContextFromBinding=function(v){this.additionalContext=v.detail.value};
R_.prototype.handleAdditionalContextChanged=R_.prototype.handleAdditionalContextChanged;_.W([_.M(_.QU),_.X("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",String)],R_.prototype,"additionalContext",void 0);_.W([_.q({selector:R7q.additionalContextSelector}),_.X("design:type",String)],R_.prototype,"additionalContextRedux",void 0);_.W([_.q(),_.X("design:type",Object)],R_.prototype,"data",void 0);
_.W([_.Z7("yt-text-input-form-field-renderer"),_.X("design:type",Object)],R_.prototype,"additionalContextInput",void 0);_.W([_.ph("additionalContext"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],R_.prototype,"handleAdditionalContextChanged",null);_.W([_.J({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],R_);
_.B(R_,"ytd-report-channel-modal-additional-context-renderer",function(){if(DWh!==void 0)return DWh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return DWh=v},{mode:1});var nAh;var nb=function(){var v=_.z.apply(this,arguments)||this;v.nextButtonDisabled=null;v.submitEndpoint=null;v.navigationEndpoint=null;v.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return v};
_.f(nb,_.z);_.K=nb.prototype;_.K.computeNextButtonData=function(v,Q,V){var E={};Q&&(E.navigationEndpoint=Q);V&&(E.serviceEndpoint=V);v&&v.buttonRenderer&&_.gI.extend(E,v.buttonRenderer);return E};
_.K.handleReportChannelModalDisableNextButtonAction=function(v){this.setNextButtonIsDisabled(v)};
_.K.handleReportFormEndpointUpdateAction=function(v){this.setNextButtonIsDisabled(!!v.disableSubmitButton);this.resetEndpointData();v.submitEndpoint?this.submitEndpoint=v.submitEndpoint:v.submitNavigationEndpoint&&(this.navigationEndpoint=v.submitNavigationEndpoint)};
_.K.handleSignalActionSubmitForm=function(){var v,Q=Object.keys(((v=this.reportChannelAbuseForm)==null?void 0:v.selectedVideoIds)||{}),V;v=((V=this.reportChannelAbuseForm)==null?void 0:V.additionalContext)||"";var E;V=((E=this.reportChannelAbuseForm)==null?void 0:E.impersonatedChannelUrl)||"";var b;if((b=this.data)==null?0:b.submitEndpoint){Q={impersonated_channel_url:V,text:v,video_ids:Q};var F;_.ht().resolve(_.At).resolveCommand((F=this.data)==null?void 0:F.submitEndpoint,{form:Object.assign({},
Q,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.K.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.K.onYtServiceRequestError=function(v){this.setNextButtonIsDisabled(!1);_.NJ(this.hostElement,v.detail.error.message)};
_.K.setNextButtonIsDisabled=function(v){this.set("data.nextButton.buttonRenderer.isDisabled",v)};
_.K.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
nb.prototype.onYtServiceRequestError=nb.prototype.onYtServiceRequestError;nb.prototype.onYtServiceRequestCompleted=nb.prototype.onYtServiceRequestCompleted;_.W([_.q(),_.X("design:type",Object)],nb.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],nb.prototype,"nextButtonDisabled",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],nb.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],nb.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nb.prototype,"submitEndpoint",void 0);_.W([_.q(),_.X("design:type",Object)],nb.prototype,"navigationEndpoint",void 0);_.W([_.q({selector:R7q.reportChannelAbuseSelector}),_.X("design:type",Object)],nb.prototype,"reportChannelAbuseForm",void 0);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],nb.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],nb.prototype,"onYtServiceRequestError",null);_.W([_.J({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],nb);
_.B(nb,"ytd-report-channel-modal-footer-renderer",function(){if(nAh!==void 0)return nAh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return nAh=v},{mode:1});var lcY;var l5=function(){var v=_.z.apply(this,arguments)||this;v.boundOnTapDismissButton=function(){v.closePopup()};
return v};
_.f(l5,_.z);l5.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
l5.prototype.handleDataChanged=function(){_.iS(this.hostElement)};
l5.prototype.closePopup=function(){_.mb(this.hostElement,"yt-close-popup-action")};
l5.prototype.handleDataChanged=l5.prototype.handleDataChanged;_.W([_.q(),_.X("design:type",Object)],l5.prototype,"boundOnTapDismissButton",void 0);_.W([_.q(),_.X("design:type",Object)],l5.prototype,"data",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],l5.prototype,"handleDataChanged",null);_.W([_.J({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],l5);
_.B(l5,"ytd-report-channel-modal-header-renderer",function(){if(lcY!==void 0)return lcY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return lcY=v},{mode:1});var qVs;var qG=function(){var v=_.z.apply(this,arguments)||this;v.autoValidate=!1;v.invalid=!1;v.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return v};
_.f(qG,_.z);_.K=qG.prototype;_.K.attached=function(){var v=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){v.channelUrlInput.focusTextInput()})};
_.K.disableNextButton=function(v){_.mb(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[v])};
_.K.handleImpersonatedChannelUrlChanged=function(){var v=this;this.disableNextButton(!0);this.invalid=!1;_.Nf(this,"ytd-report-channel-impersonated-channel-update",function(){var Q=v.impersonatedChannelUrl.trim();v.ytdReduxBehavior.dispatch(_.U2({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:Q}));var V;((V=v.data)==null?0:V.submitEndpoint)&&Q&&_.ht().resolve(_.At).resolveCommand(v.data.submitEndpoint,{form:{impersonated_channel_url:Q,element:v.hostElement}})},500)};
_.K.handleModifyReportFormCommand=function(v){this.invalid=this.get("modifyReportFormCommand.action",v)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.K.updateInvalidFromBinding=function(v){this.invalid=v.detail.value};
_.K.updateImpersonatedChannelUrlFromBinding=function(v){this.impersonatedChannelUrl=v.detail.value};
qG.prototype.handleImpersonatedChannelUrlChanged=qG.prototype.handleImpersonatedChannelUrlChanged;_.W([_.M(_.QU),_.X("design:type",Object)],qG.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],qG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qG.prototype,"autoValidate",void 0);_.W([_.q(),_.X("design:type",Object)],qG.prototype,"invalid",void 0);
_.W([_.q(),_.X("design:type",String)],qG.prototype,"impersonatedChannelUrl",void 0);_.W([_.q({selector:R7q.impersonatedChannelUrlSelector}),_.X("design:type",String)],qG.prototype,"impersonatedChannelUrlRedux",void 0);_.W([_.q(),_.X("design:type",Object)],qG.prototype,"data",void 0);_.W([_.Z7("#text-input"),_.X("design:type",Object)],qG.prototype,"channelUrlInput",void 0);
_.W([_.ph("impersonatedChannelUrl"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qG.prototype,"handleImpersonatedChannelUrlChanged",null);_.W([_.J({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],qG);
_.B(qG,"ytd-report-channel-modal-impersonation-renderer",function(){if(qVs!==void 0)return qVs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return qVs=v},{mode:1});var SV0;var z7q;var Sb=function(){return _.z.apply(this,arguments)||this};
_.f(Sb,_.z);Sb.prototype.onCheckboxToggled=function(v){var Q,V,E=(V=_.y((Q=this.data)==null?void 0:Q.video,_.LH))==null?void 0:V.videoId;E&&this.ytdReduxBehavior.dispatch(v.target.checked?_.U2({type:"VIDEO_SELECTED",payload:E}):_.U2({type:"VIDEO_UNSELECTED",payload:E}))};
Sb.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.hr.Object.defineProperties(Sb.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.data)==null?void 0:v.video;if(!Q)return{};var V;v=(V=_.y(Q,_.LH))==null?void 0:V.navigationEndpoint;if(!v)return Q;_.y(v==null?void 0:v.commandMetadata,_.Kt)&&(_.y(v.commandMetadata,_.Kt).ignoreNavigation=!0);return Q}}});
_.W([_.q({reflectToAttribute:!0,selector:R7q.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.X("design:type",Boolean)],Sb.prototype,"checked",void 0);_.W([_.q(),_.X("design:type",Object)],Sb.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Sb.prototype,"video",null);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Sb.prototype,"ytdReduxBehavior",void 0);_.W([_.J({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Sb);
_.B(Sb,"ytd-selectable-video-renderer",function(){if(z7q!==void 0)return z7q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return z7q=v},{mode:1});var zk=function(){var v=_.z.apply(this,arguments)||this;v.monitorScroll=!0;return v};
_.f(zk,_.z);zk.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zk.prototype,"data",void 0);_.W([_.J({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],zk);
_.B(zk,"ytd-selectable-video-list-renderer",function(){if(SV0!==void 0)return SV0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return SV0=v},{mode:1});var JEh;_.yZ("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var JH=function(){return _.z.apply(this,arguments)||this};
_.f(JH,_.z);JH.prototype.onChange=function(v){if(v=_.jV(v).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.Y("kevlar_command_handler_migration_killswitch"))_.Qk(this.hostElement,v,this.hostElement);else{v=_.L(v);for(var Q=v.next();!Q.done;Q=v.next())this.ytComponentBehavior.resolveCommand(Q.value)}};
JH.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
JH.prototype.updateDataToggledFromBinding=function(v){this.set("data.toggled",v.detail.value)};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],JH.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],JH.prototype,"data",void 0);_.W([_.q({computed:"isEnabled(data)"}),_.X("design:type",Boolean)],JH.prototype,"enabled",void 0);_.W([_.J({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],JH);
_.B(JH,"ytd-toggle-item-renderer",function(){if(JEh!==void 0)return JEh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return JEh=v},{mode:1});var Ny0;var xW$;var By7;var NG=function(){var v=_.z.apply(this,arguments)||this;v.setVisible=!1;v.boundOnSubmitButtonClick=function(){v.onSubmitButtonClick()};
v.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return v};
_.f(NG,_.z);NG.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}}}}}};
NG.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
NG.prototype.onSubmitButtonClick=function(){var v;((v=this.data)==null?0:v.submitEndpoint)&&!_.Y("enable_ytc_refunds_submit_form_signal_action")&&_.vp(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
NG.prototype.handleSignalActionSubmitForm=function(){var v;((v=this.data)==null?0:v.submitEndpoint)&&_.vp(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.hr.Object.defineProperties(NG.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.hiddenByDefault)&&!this.setVisible}}});
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],NG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],NG.prototype,"setVisible",void 0);_.W([_.q(),_.X("design:type",Object)],NG.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],NG.prototype,"surveyFeedbackData",void 0);_.W([_.q(),_.X("design:type",Object)],NG.prototype,"boundOnSubmitButtonClick",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data","setVisible"),_.X("design:type",Object),_.X("design:paramtypes",[])],NG.prototype,"visibilityHidden",null);_.W([_.D7({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],NG);
_.B(NG,"yt-flow-footer-renderer",function(){if(By7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;xW$===void 0&&(xW$=document.createElement("template"));var E=xW$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);By7=v}v=By7;return v},{mode:2});var gA$=(0,_.qFZ)(_.uR.ypc,{surveyFeedbackDataSelector:function(v){return v.surveyFeedbackData}});var xn=function(){return _.z.apply(this,arguments)||this};
_.f(xn,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],xn.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xn.prototype,"data",void 0);_.W([_.q({selector:gA$.surveyFeedbackDataSelector}),_.X("design:type",Object)],xn.prototype,"surveyFeedbackData",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],xn);
_.B(xn,"ytd-flow-footer-renderer",function(){if(Ny0!==void 0)return Ny0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Ny0=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var sWh;var usI;var BX=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return v};
_.f(BX,_.z);_.K=BX.prototype;_.K.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.c_("multiPageMenuSectionItems")}}};
_.K.handleHideEnclosingAction_=function(v){if(this.data&&this.data.items)for(var Q=0;Q<this.data.items.length;Q++){var V=this.data.items[Q].notificationRenderer;if(V&&V.notificationId==v.hideEnclosingAction.notificationId){this.splice("data.items",Q,1);_.mb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.K.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.EJ(this.hostElement,"hidden",!0)};
_.K.updateMenu_=function(v){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&v&&!v.doNotRefreshInbox){v=this.data.continuations;for(var Q=0;Q<v.length;Q++)if(v[Q].invalidationContinuationData){var V=void 0;var E=(V=v[Q].invalidationContinuationData)==null?void 0:V.continuation;break}v=_.gI.clone(this.data.continuationUpdateEndpoint||null);v.continuation=E;v.click_tracking_params=this.data.trackingParams;_.vp(this.hostElement,[v])}};
_.K.onServiceRequestCompleted_=function(v,Q){if(this.data&&(v=Q.actions)){Q=0;for(var V=v.length;Q<V;Q++){var E=_.y(v[Q],_.N9N);if(!E)break;if((E.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||E.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&E.continuationItems&&this.data.items){var b=this.data.items.length-1;this.data.items[b].continuationItemRenderer&&(E=["data.items",b,1].concat(E.continuationItems),this.splice.apply(this,E))}}}};
BX.prototype.onServiceRequestCompleted_=BX.prototype.onServiceRequestCompleted_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],BX.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],BX.prototype,"data",void 0);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],BX.prototype,"onServiceRequestCompleted_",null);_.W([_.D7({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],BX);
_.Hn()(BX,"yt-multi-page-menu-section-renderer",function(){if(usI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;sWh===void 0&&(sWh=document.createElement("template"));var E=sWh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);usI=v}v=usI;return v},{allowedProps:["data"],
mode:2});var jWI;var Wus;var gM=function(){return _.z.apply(this,arguments)||this};
_.f(gM,_.z);gM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.hr.Object.defineProperties(gM.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.progress)==null?0:this.data.progress*100}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],gM.prototype,"data",void 0);_.W([_.O("data.progress"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],gM.prototype,"showProgressBar",null);
_.W([_.O("data.progress"),_.X("design:type",Number),_.X("design:paramtypes",[])],gM.prototype,"progress",null);_.W([_.D7({is:"yt-flow-header-renderer",disableElementRegistration:!0})],gM);
_.B(gM,"yt-flow-header-renderer",function(){if(Wus===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;jWI===void 0&&(jWI=document.createElement("template"));var E=jWI;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Wus=v}v=Wus;return v},{mode:2});var oAj;var XP7;var s3=function(){return _.z.apply(this,arguments)||this};
_.f(s3,_.z);s3.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],s3.prototype,"data",void 0);_.W([_.D7({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],s3);
_.B(s3,"yt-post-confirmation-flow-step-renderer",function(){if(XP7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;oAj===void 0&&(oAj=document.createElement("template"));var E=oAj;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);XP7=v}v=XP7;return v},{mode:2});var ac8;var rEI;var u5=function(){return _.z.apply(this,arguments)||this};
_.f(u5,_.z);
u5.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],u5.prototype,"data",void 0);_.W([_.D7({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],u5);
_.B(u5,"yt-refund-confirmation-flow-step-renderer",function(){if(rEI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;ac8===void 0&&(ac8=document.createElement("template"));var E=ac8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);rEI=v}v=rEI;return v},{mode:2});var $W0=_.x(function(v){var Q=v.data;return _.P("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.P("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.P(_.gE,{data:function(){return{thumbnails:[{url:Q().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.P("div",{class:"profileBadgeViewModelContent"},_.P("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return Q().badgeDesc}),_.P(_.h,{cond:function(){return Q().badgeSubtitle},
then:function(){return _.P("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return Q().badgeSubtitle})}})))},"mj");
$W0.idomCompat=!0;var Ic7=_.x(function(v){var Q=v.data;return _.P("yt-comment-interaction-view-model",{el:_.ud(_.C4(function(){return Q().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.P("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return Q().onTapA11yLabel},
"on:keydown":_.BdE(),tabindex:0},_.P("div",{class:"ytCommentInteractionViewModelHeader"},_.P("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return Q().headerPrefix},' "',function(){return Q().videoTitle}),_.P("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.P("div",{class:"ytCommentInteractionViewModelContent"},_.P("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return Q().commentContent}),_.P("div",{class:"ytCommentInteractionViewModelChevron"},
_.P(_.gE,{data:function(){return{thumbnails:[{url:Q().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"nj");
Ic7.idomCompat=!0;var HLd=_.x(function(v){var Q=v.data;return _.P("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO}),_.P("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return Q().channelName}))},"oj");
HLd.idomCompat=!0;var VAI=_.x(function(v){var Q=v.data;v={};return _.P("yt-profile-info-view-model",{class:_.QZ("ytProfileInfoViewModelHost",(v.ytProfileInfoViewModelWithVideoShelf=function(){return Q().videosHorizontalShelf},v))},_.P(mW5,{profileInfo:Q}),_.P(_.Pw,{data:function(){return Q().videosHorizontalShelf}},{horizontalShelfViewModel:function(V){return _.P("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.P(_.ZP,{data:V.data}))}}),_.P(_.h,{cond:function(){return Q().comments},
then:function(){return _.P(UWn,{profileInfo:Q})}}),_.P(_.h,{cond:function(){return Q().sharedSubscriptionsTitle},
then:function(){return _.P(_.h,{cond:function(){return Q().subscriptionsAccessButtonCommand},
then:function(){return _.P(v37,{profileInfo:Q})},
else:function(){return _.P(Qjs,{profileInfo:Q})}})}}))},"pj");
VAI.idomCompat=!0;var UWn=_.x(function(v){var Q=v.profileInfo;return _.P("div",{class:"ytProfileInfoViewModelActivity"},_.P("div",{class:"ytProfileInfoViewModelHeader"},_.P("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return Q().commentsInteractionTitle})),_.P(_.Pw,{data:function(){return Q().comments}},{commentInteractionViewModel:function(V){return _.P("div",{class:"ytProfileInfoViewModelActivity"},_.P(Ic7,{data:V.data}))}}))},"qj"),v37=_.x(function(v){var Q=v.profileInfo;
return _.P("div",{class:"ytProfileInfoViewModelSubSection"},_.P("div",{class:"ytProfileInfoViewModelSubHeader"},_.P(_.yL,{command:function(){return Q().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.P("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return Q().sharedSubscriptionsTitle}),_.P("div",null,_.P(_.Pw,{data:function(){return Q().subscriptionsAccessButton}},{buttonViewModel:_.D6})))),_.P(E3j,{sharedSubscriptions:function(){var V;
return((V=Q().sharedSubscriptions)==null?void 0:V.slice(0,5))||[]}}))},"rj"),Qjs=_.x(function(v){var Q=v.profileInfo;
return _.P("div",{class:"ytProfileInfoViewModelSubSection"},_.P("div",{class:"ytProfileInfoViewModelSubHeader"},_.P("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return Q().sharedSubscriptionsTitle})),_.P(E3j,{sharedSubscriptions:function(){var V;
return((V=Q().sharedSubscriptions)==null?void 0:V.slice(0,5))||[]}}))},"sj"),E3j=_.x(function(v){return _.P("div",{class:"ytProfileInfoViewModelSubs"},_.P(_.Pw,{data:v.sharedSubscriptions},{sharedSubscriptionViewModel:function(Q){return _.P("div",{class:"ytProfileInfoViewModelSub"},_.P(HLd,{data:Q.data}))}}))},"tj"),mW5=_.x(function(v){var Q=v.profileInfo;
return _.P("div",{class:"ytProfileInfoViewModelActivity"},_.P(_.xb,{each:function(){return[Q().profileBadgeInfoYtWide,Q().profileBadgeInfoChannelWide].filter(function(V){return!!V})},
keyBy:"INDEX"},function(V){return _.P(_.w7,null,_.P("div",{class:"ytProfileInfoViewModelHeader"},_.P("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return V().profileSectionTitle}),_.P("div",{class:"ytProfileInfoViewModelSectionDesc"},_.P("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var E;
return(E=V().commentBadge)==null?void 0:E.commentDesc}),_.P(_.h,{cond:function(){var E;
return(E=V().commentBadge)==null?void 0:E.blackHeartDesc},
then:function(){return _.P("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.P("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.P(_.gE,{data:function(){var E;
return{thumbnails:[{url:(E=V().commentBadge)==null?void 0:E.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.P("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var E;return(E=V().commentBadge)==null?void 0:E.blackHeartDesc}))),_.P("div",{class:"ytProfileInfoViewModelBadge"},_.P(_.xb,{each:function(){return V().badges||[]}},function(E){return _.P($W0,{data:E})})))}))},"uj");var b6s=_.x(function(v){var Q=v.data;var V=function(){return Q().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.P("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.P(_.Pw,{data:function(){return Q().profileIdentityInfo}},{profileIdentityInfoViewModel:function(E){return _.P(_.dp5,{data:E.data,
hideDivider:V,isChannelInfoCard:V})},
profileInfoViewModel:VAI}),_.P(_.Pw,{data:function(){return Q().profileInfo}},{profileIdentityInfoViewModel:_.dp5,
profileInfoViewModel:VAI}))},"vj");
b6s.idomCompat=!0;_.ad(b6s,"yt-profile-card-view-model",{props:{data:_.pJ}});var jb=function(){var v=_.z.apply(this,arguments)||this;v.enableFocusFix=_.Y("music_web_enable_focus_on_setting_menu_fix")&&_.mX("IS_MOBILE_WEB",!1);v.covered=!1;v.hideMenu=!1;v.isCommentNotificationOnProfileCard=!1;v.scrolledByTouch=!1;v.disableBackdropFilter=_.Y("web_disable_backdrop_filter");v.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return v};
_.f(jb,_.z);_.K=jb.prototype;
_.K.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"}}}};
_.K.ready=function(){var v=this;this.JSC$20593_containerElement.addEventListener("scroll",function(){v.ytRendererBehavior.markDirty()})};
_.K.attributeChanged=function(v,Q){v==="menu-style"&&_.mb(this.hostElement,"yt-multi-page-menu-closed-action",[Q])};
_.K.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Lh(this,this.focusOnStampFinished))};
_.K.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Lh(this,this.focusOnStampFinished))};
_.K.reset=function(){this.closeJobId&&(_.XT.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.K.focusOnStampFinished=function(v){v.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Lh(this,this.focusOnStampFinished)),this.doFocus())};
_.K.doFocus=function(){var v=_.B28(this.sectionsElement);v.length&&v[0].focus()};
_.K.computeMenuStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.K.computeIsCommentNotificationOnProfileCard=function(v){return _.Y("enable_profile_cards_on_comments")&&v.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.K.computeHideMenu=function(v,Q){return v||!(!Q||!Q.showLoadingSpinner)};
_.K.onPopupClosed=function(){this.isPopUpOpen=!1;_.mb(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.K.onPopupOpened=function(v,Q){this.isPopUpOpen=!0;Q.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Hj(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.U2({type:"CHANNEL_REPORT_RESET"})))};
_.K.onYtNavigate=function(v,Q){this.shouldCloseOnNavigateEvent(Q.endpoint)&&_.mb(this.hostElement,"yt-close-all-popups-action")};
_.K.handleEndpoint=function(v){v=_.y(v,_.Qd);!this.isCommentNotificationOnProfileCard&&v&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20593_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.K.handleActions=function(v){for(var Q=0,V=v.length;Q<V;Q++){var E=_.y(v[Q],CUf);E&&this.handleGetMultiPageMenuAction(E);(E=_.y(v[Q],_.N9N))&&this.handleAppendContinuationItemsAction(E)}};
_.K.onServiceRequestSentOrCompleted=function(v,Q){v.detail&&v.detail.endpoint&&this.handleEndpoint(v.detail.endpoint);Q.actions&&this.handleActions(Q.actions)};
_.K.handleGetMultiPageMenuAction=function(v){var Q=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.m9(this.submenuElement).appendChild(Q);(v=v.menu.multiPageMenuRenderer)&&this.logSubmenu(v);Q.data=v;Q.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.K.handleAppendContinuationItemsAction=function(v){if(this.data&&v.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&v.continuationItems&&this.data.sections){var Q=this.data.sections.length-1;this.data.sections[Q].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),Q--);if(this.data.sections[Q].multiPageMenuNotificationSectionRenderer&&v.continuationItems){v=_.L(v==null?void 0:v.continuationItems);for(var V=v.next();!V.done;V=v.next())if(V=V.value,_.y(V,mhd)){var E=
void 0,b=void 0,F=void 0,t=void 0,p=void 0;((E=this)==null?0:(b=E.data)==null?0:(F=b.sections)==null?0:(t=F[Q])==null?0:(p=t.multiPageMenuNotificationSectionRenderer)==null?0:p.items)&&this.push("data.sections."+Q+".multiPageMenuNotificationSectionRenderer.items",V)}else if(_.y(V,_.MXA)||_.y(V,_.WY))this.push("data.sections",V),Q++}}};
_.K.logSubmenu=function(v){if(!_.Y("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var Q=this.ytRendererBehavior.getScreenLayer(),V=_.Mo(Q),E=_.CC(Q);if((v=v.trackingParams)&&V&&E){var b=_.dE(v);_.Y("combine_ve_grafts")?_.tR().graftServerVe(v,E,Q):_.Np(V,E,b)}}};
_.K.emptySubmenuContainer=function(){for(var v=_.m9(this.submenuElement);v.firstChild;)v.removeChild(v.firstChild)};
_.K.onMenuBackTap=function(v){_.Hj(this.hostElement,"yt-submenu-closed");v.stopPropagation()};
_.K.onSubmenuClosed=function(v){_.jV(v)!==this.hostElement&&(this.covered=!1,_.Hj(this.hostElement,"yt-refit"),v.stopPropagation())};
_.K.onRetrieveLocation=function(v,Q){Q.hasComments&&(Q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),v.stopPropagation())};
_.K.shouldCloseOnNavigateEvent=function(v){if(!v)return!0;if(_.y(v,_.Flx)||_.y(v,_.KlS)||_.y(v,_.bJ8)||_.y(v,_.FJ))return!1;var Q;return((Q=_.y(v==null?void 0:v.commandMetadata,_.Kt))==null?0:Q.ignoreNavigation)?!1:!0};
_.K.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.K.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.K.refitAfterRender=function(){var v=this;_.PE(this,function(){_.Hj(v.hostElement,"yt-refit")})};
jb.prototype.refitAfterRender=jb.prototype.refitAfterRender;jb.prototype.onRetrieveLocation=jb.prototype.onRetrieveLocation;jb.prototype.onSubmenuClosed=jb.prototype.onSubmenuClosed;jb.prototype.onMenuBackTap=jb.prototype.onMenuBackTap;jb.prototype.onServiceRequestSentOrCompleted=jb.prototype.onServiceRequestSentOrCompleted;jb.prototype.onYtNavigate=jb.prototype.onYtNavigate;jb.prototype.onPopupOpened=jb.prototype.onPopupOpened;jb.prototype.onPopupClosed=jb.prototype.onPopupClosed;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],jb.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],jb.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jb.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],jb.prototype,"enableFocusFix",void 0);_.W([_.q(),_.X("design:type",Object)],jb.prototype,"covered",void 0);_.W([_.q({computed:"computeHideMenu(covered, data)"}),_.X("design:type",Object)],jb.prototype,"hideMenu",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.X("design:type",String)],jb.prototype,"menuStyle",void 0);
_.W([_.q({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.X("design:type",Object)],jb.prototype,"isCommentNotificationOnProfileCard",void 0);_.W([_.q(),_.X("design:type",Boolean)],jb.prototype,"isPopUpOpen",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jb.prototype,"scrolledByTouch",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],jb.prototype,"disableBackdropFilter",void 0);
_.W([_.Z7("#sections"),_.X("design:type",HTMLElement)],jb.prototype,"sectionsElement",void 0);_.W([_.Z7("#spinner"),_.X("design:type",HTMLElement)],jb.prototype,"spinnerElement",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],jb.prototype,"headerElement",void 0);_.W([_.Z7("#container"),_.X("design:type",HTMLElement)],jb.prototype,"JSC$20593_containerElement",void 0);_.W([_.Z7("#submenu"),_.X("design:type",HTMLElement)],jb.prototype,"submenuElement",void 0);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jb.prototype,"onPopupClosed",null);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],jb.prototype,"onPopupOpened",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],jb.prototype,"onYtNavigate",null);
_.W([_.tM("yt-service-request-completed"),_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],jb.prototype,"onServiceRequestSentOrCompleted",null);_.W([_.tM("yt-menu-back-tapped"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],jb.prototype,"onMenuBackTap",null);
_.W([_.tM("yt-submenu-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],jb.prototype,"onSubmenuClosed",null);_.W([_.tM("yt-retrieve-location"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],jb.prototype,"onRetrieveLocation",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jb.prototype,"refitAfterRender",null);
_.W([_.J({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],jb);
_.B(jb,"ytd-multi-page-menu-renderer",function(){if(cEY!==void 0)return cEY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return cEY=v},{mode:1});var Fns;var WX=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return v};
_.f(WX,_.z);_.K=WX.prototype;_.K.created=function(){this.showTooltips=!0};
_.K.computeAccessibility_=function(v){return this.get("accessibility.accessibilityData",v)||null};
_.K.onTap=function(){var v=_.Un(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(v&&v.length===1&&v[0])_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var Q;if((Q=this.data)==null?0:Q.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var V;((V=this.data)==null?0:V.menuRequest)&&_.vp(this.hostElement,[this.data.menuRequest])}}};
_.K.handleTopbarMenuClosedAction=function(v){var Q,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(v)===((Q=this.data)==null?void 0:(V=Q.icon)==null?void 0:V.iconType)&&this.toggleIconState(!1)};
_.K.toggleIconState=function(v){_.Y("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=v)};
_.K.handleUpdateTopbarAvatarAction=function(v){var Q;v=(Q=_.y(v,kS5))==null?void 0:Q.avatarUrl;var V,E;Q=(V=this.data)==null?void 0:(E=V.avatar)==null?void 0:E.thumbnails;v&&Q&&(V={thumbnails:[Object.assign({},Q[0],{url:v})]},this.set("data.avatar",V))};
_.hr.Object.defineProperties(WX.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#button")}}});
WX.prototype.onTap=WX.prototype.onTap;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],WX.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],WX.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.fUq.YtButtonBehavior),_.X("design:type",Object)],WX.prototype,"ytButtonBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],WX.prototype,"data",void 0);
_.W([_.Z7("yt-icon-button#button"),_.X("design:type",Object)],WX.prototype,"iconButton",void 0);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],WX.prototype,"onTap",null);_.W([_.J({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],WX);
_.Hn()(WX,"ytd-topbar-menu-button-renderer",function(){if(Fns===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);Fns=v}v=Fns;return v},{allowedProps:["data"],
mode:1});var Knj;var o_=function(){return _.z.apply(this,arguments)||this};
_.f(o_,_.z);o_.prototype.getSelected=function(){return this.reasons.selected};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],o_.prototype,"data",void 0);_.W([_.Z7("#reasons"),_.X("design:type",Object)],o_.prototype,"reasons",void 0);_.W([_.J({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],o_);
_.B(o_,"ytd-ad-feedback-content",function(){if(Knj!==void 0)return Knj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Knj=v},{mode:1});var i6n;var Xt=function(){return _.z.apply(this,arguments)||this};
_.f(Xt,_.z);_.K=Xt.prototype;_.K.onPopupOpened=function(){_.mb(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.K.computeConfirmButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.confirmLabel}};
_.K.computeCancelButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.cancelLabel}};
_.K.onConfirmTap=function(){var v=this.content.getSelected();v!==void 0&&(v=this.data.reasons[v].endpoint)&&(_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}}),_.mb(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.K.sendFeedbackSubmitToastAction=function(){var v;(v=this.data)!=null&&v.completionMessage&&(v=_.aF(this.data.completionMessage),_.mb(this.hostElement,"yt-open-popup-action",[v,this]))};
_.K.onCancelTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
Xt.prototype.onPopupOpened=Xt.prototype.onPopupOpened;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xt.prototype,"data",void 0);_.W([_.Z7("#content"),_.X("design:type",Object)],Xt.prototype,"content",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Xt.prototype,"onPopupOpened",null);
_.W([_.J({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Xt);
_.B(Xt,"ytd-ad-feedback-renderer",function(){if(i6n!==void 0)return i6n;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return i6n=v},{mode:1});var Ln$;var tA8=function(){return _.z.apply(this,arguments)||this};
_.f(tA8,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tA8.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],tA8.prototype,"data",void 0);_.W([_.J({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],tA8);
_.B(tA8,"ytd-ad-info-dialog-content",function(){if(Ln$!==void 0)return Ln$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Ln$=v},{mode:1});var pdd;var a_=function(){return _.z.apply(this,arguments)||this};
_.f(a_,_.z);a_.prototype.computeConfirmButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.confirmLabel}};
a_.prototype.onConfirmTap=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
a_.prototype.computeShouldShowTitle=function(){var v;return!((v=this.data)==null||!v.title)};
a_.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
a_.prototype.onPopupClosed=a_.prototype.onPopupClosed;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],a_.prototype,"data",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],a_.prototype,"onPopupClosed",null);_.W([_.J({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],a_);
_.B(a_,"ytd-ad-info-dialog-renderer",function(){if(pdd!==void 0)return pdd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return pdd=v},{mode:1});var e8d;var rM=function(){var v=_.z.apply(this,arguments)||this;v.actionButtonClass="action-button";v.dismissButtonId="dismiss-button";v.dialogDismiss=!0;return v};
_.f(rM,_.z);_.K=rM.prototype;_.K.computeInPlayer=function(v){return(v==null?void 0:v.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.K.computedLogo=function(){var v,Q;return this.isDarkTheme()?(v=this.data)==null?void 0:v.logoDark:(Q=this.data)==null?void 0:Q.logo};
_.K.computedHeaderImage=function(){var v,Q;return this.isDarkTheme()?(v=this.data)==null?void 0:v.headerImageDark:(Q=this.data)==null?void 0:Q.headerImage};
_.K.computeLogoIconId=function(){var v,Q,V,E=(v=this.computedLogo())==null?void 0:(Q=v.sources)==null?void 0:(V=Q[0])==null?void 0:V.height;return E&&E%31===0?"logo-icon-with-padding":"logo-icon"};
_.K.computeLogoIconHeight=function(){var v,Q,V,E=(v=this.computedLogo())==null?void 0:(Q=v.sources)==null?void 0:(V=Q[0])==null?void 0:V.height;return E&&E%31===0?"31":"24"};
_.K.onPopupClosed=function(){_.ht().resolve(_.Xs).dispose()};
_.K.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.K.onShow=function(){this.inPlayer&&_.iK(6);this.titleElement.focus()};
_.K.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var v=0;v<this.data.impressionEndpoints.length;v++){var Q=_.y(this.data.impressionEndpoints[v],_.Cx);Q&&this.ytComponentBehavior.resolveCommand(Q)}};
_.K.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.mb(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.hr.Object.defineProperties(rM.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!((v=this.data)==null||!v.headerImageDark)&&!((Q=this.data)==null||!Q.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.secondaryButton)}}});
rM.prototype.onPopupClosed=rM.prototype.onPopupClosed;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],rM.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.F4.YtVisibilityBehavior),_.X("design:type",Object)],rM.prototype,"ytVisibilityBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rM.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],rM.prototype,"actionButtonClass",void 0);_.W([_.q(),_.X("design:type",Object)],rM.prototype,"dismissButtonId",void 0);_.W([_.q(),_.X("design:type",Object)],rM.prototype,"dialogDismiss",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],rM.prototype,"hasHeaderImage",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],rM.prototype,"hasPremiumButton",null);
_.W([_.q({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.X("design:type",Boolean)],rM.prototype,"inPlayer",void 0);_.W([_.Z7("#dismiss-button"),_.X("design:type",HTMLElement)],rM.prototype,"dismissButton",void 0);_.W([_.Z7("#title"),_.X("design:type",HTMLElement)],rM.prototype,"titleElement",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],rM.prototype,"onPopupClosed",null);
_.W([_.J({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],rM);
_.B(rM,"ytd-enforcement-message-view-model",function(){if(e8d!==void 0)return e8d;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return e8d=v},{mode:1});var Z65;var PCf;var $n=function(){var v=_.z.apply(this,arguments)||this;v.TEST_ONLY={immediateValidation:function(){v.immediateValidation()},
onValidationResponse:function(Q){v.onValidationResponse(Q)},
onGenerateHandleFromNameResponse:function(Q){v.onGenerateHandleFromNameResponse(Q)}};
return v};
_.f($n,_.z);_.K=$n.prototype;_.K.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.K.validate=function(){this.immediateValidation()};
_.K.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.K.setHandleInputValue=function(v){this.handleDir=this.getHandleDir(v);this.handleInput.value=v;this.validationState={status:"PENDING"};this.immediateValidation()};
_.K.getHandleDir=function(v){var Q=v===""&&!1;return(Q=_.VPp.test.call(_.VPp,v))?"rtl":"ltr"};
_.K.onDataChanged=function(){var v,Q;this.handleDir=this.getHandleDir((Q=(v=this.data)==null?void 0:v.handle)!=null?Q:"");var V;this.validationState=((V=this.data)==null?0:V.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var E;((E=this.data)==null?0:E.validateOnInit)&&this.immediateValidation()};
_.K.stopPropagation=function(v){v.stopPropagation()};
_.K.onInput=function(){var v;this.handleDir=this.getHandleDir((v=this.handleInput.value)!=null?v:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.K.onFocusout=function(v){this.handleInput.contains(v.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.K.delayedValidation=function(){var v,Q;this.debouncedValidation((Q=(v=this.data)==null?void 0:v.validationDelayMs)!=null?Q:1E3)};
_.K.immediateValidation=function(){this.debouncedValidation(0)};
_.K.debouncedValidation=function(v){var Q=this;_.Nf(this,"debouncedValidation",function(){var V,E=Q.staticValidation((V=Q.handleInput.value)!=null?V:"");if(E!==void 0)Q.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:E};else{var b;if((b=Q.data)!=null&&b.validateChannelHandleCommand){Q.validationState={status:"LOADING"};var F;Q.ytComponentBehavior.resolveCommand(Q.data.validateChannelHandleCommand,{form:{handle:(F=Q.handleInput.value)!=null?F:""},commandController:{onSuccess:function(t,
p){Q.onValidationResponse(p)},
onServerError:function(t,p){Q.onValidationServerError(p)}}})}else Q.handleUnexpectedValidationError(new _.xd("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",Q.data))}},v)};
_.K.staticValidation=function(v){var Q;if(((Q=this.data)==null?void 0:Q.channelHandleStaticValidationParams)!==void 0){Q=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(v)&&Q.validValueRegexpErrorMessage!==void 0)return Q.validValueRegexpErrorMessage;if(Q.minLength!==void 0&&v.length<Q.minLength&&Q.minLengthErrorMessage!==void 0)return Q.minLengthErrorMessage;if(Q.maxLength!==void 0&&v.length>Q.maxLength&&Q.maxLengthErrorMessage!==void 0)return Q.maxLengthErrorMessage}};
_.K.onValidationResponse=function(v){var Q=_.y(v.result,Tkd);Q===void 0?this.handleUnexpectedValidationError(new _.xd("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",v)):this.handleValidationResultRenderer(Q)};
_.K.onValidationServerError=function(v){this.handleUnexpectedValidationError(new _.xd("ValidateChannelHandle request failed.",v))};
_.K.handleValidationResultRenderer=function(v){if(v.handle===void 0)this.handleUnexpectedValidationError(new _.xd("ChannelHandleValidationResultRenderer does not contain handle.",v));else if(v.handle===this.handleInput.value)switch(v.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:v.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:v.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.xd("Unrecognized ChannelHandleValidationResult",v));break;default:_.rV(v.result)}};
_.K.handleUnexpectedValidationError=function(v){var Q;this.validationState={status:"UNKNOWN",handle:(Q=this.handleInput.value)!=null?Q:""};_.Iy(v)};
_.K.stopEventPropagation=function(v){v.stopPropagation()};
_.K.updateHandleOnChannelNameInputChange=function(v){if(!this.wasEdited){var Q,V;this.debouncedGenerateHandleFromName(v,(V=(Q=this.data)==null?void 0:Q.validationDelayMs)!=null?V:1E3)}};
_.K.debouncedGenerateHandleFromName=function(v,Q){var V=this;_.Nf(this,"debouncedGenerateHandleFromName",function(){var E;(E=V.data)!=null&&E.validateChannelHandleCommand?V.ytComponentBehavior.resolveCommand(V.data.validateChannelHandleCommand,{form:{name:v},commandController:{onSuccess:function(b,F){V.onGenerateHandleFromNameResponse(F)},
onServerError:function(b,F){_.Iy(new _.xd("Error calling GenerateHandleFromName",F))}}}):_.Iy(new _.xd("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",V.data))},Q)};
_.K.onGenerateHandleFromNameResponse=function(v){this.wasEdited||((v=_.y(v.result,YL5))?this.setHandleInputValue(v.handle):_.Iy(new _.xd("Invalid results when generate handle from name")))};
_.hr.Object.defineProperties($n.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var v;if(v=this.validationState)v=this.validationState,v=v.status==="OK"||v.status==="UNKNOWN";if(v)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.validationState)==null?void 0:v.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var v,Q=(v=this.channelHandleEntity)==null?void 0:v.handleEdit;this.handleDir=this.getHandleDir(Q!=null?Q:"");return Q}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var v,Q;if(((v=this.data)==null?void 0:(Q=v.channelHandleStaticValidationParams)==null?void 0:Q.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
$n.prototype.stopEventPropagation=$n.prototype.stopEventPropagation;$n.prototype.onDataChanged=$n.prototype.onDataChanged;$n.prototype.applyHandleEdit=$n.prototype.applyHandleEdit;$n.prototype.onValueChanged=$n.prototype.onValueChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],$n.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$n.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Boolean)],$n.prototype,"wasEdited",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],$n.prototype,"handleDir",void 0);_.W([_.Z7("#handle-input"),_.X("design:type",Object)],$n.prototype,"handleInput",void 0);_.W([_.q(),_.O("validationState"),_.X("design:type",Object),_.X("design:paramtypes",[])],$n.prototype,"value",null);
_.W([_.ph("value"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$n.prototype,"onValueChanged",null);_.W([_.O("validationState"),_.X("design:type",Object),_.X("design:paramtypes",[])],$n.prototype,"errorIndicator",null);_.W([_.q({reflectToAttribute:!0}),_.O("errorIndicator"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$n.prototype,"borderErrorIndicator",null);
_.W([_.q({selectorArgs:["data.channelHandleEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"channelHandle",Q)}}),
_.X("design:type",Object)],$n.prototype,"channelHandleEntity",void 0);_.W([_.O("channelHandleEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],$n.prototype,"handleEdit",null);_.W([_.ph("handleEdit"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$n.prototype,"applyHandleEdit",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$n.prototype,"onDataChanged",null);
_.W([_.O("data.channelHandleStaticValidationParams.validValueRegexp"),_.X("design:type",Object),_.X("design:paramtypes",[])],$n.prototype,"validValueRegexp",null);_.W([_.tM("yt-service-request-sent"),_.tM("yt-service-request-completed"),_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],$n.prototype,"stopEventPropagation",null);_.W([_.J({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],$n);
_.B($n,"ytd-channel-handle-input-renderer",function(){if(PCf!==void 0)return PCf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return PCf=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var I_=function(){var v=_.z.apply(this,arguments)||this;v.data=null;v.errorMessage=null;v.isLoading=!0;v.hideContainer=!1;v.enableNewChannelCreationOnIdForAll=_.Y("enable_new_channel_creation_for_id4all");v.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};v.testOnly={setErrorMessage:function(Q){v.resetErrorState();
v.setErrorState(Q)}};
return v};
_.f(I_,_.z);_.K=I_.prototype;_.K.created=function(){this.logScreenVe()};
_.K.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")};
_.K.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var v;((v=this.zeroStepErrorMessageEntity)==null?0:v.value)&&this.set("errorMessage",_.u3(this.zeroStepErrorMessageEntity.value))};
_.K.onCreateTap=function(){var v=this;if(this.data&&this.data.channelCreationEndpoint){var Q,V;if(!((Q=this.data.createChannelButton)==null?0:(V=Q.buttonRenderer)==null?0:V.isDisabled)){var E;if((E=this.nameInput)!=null&&E.value){this.setLoadingState();var b,F;Q=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(b=this.handleInput)==null?void 0:b.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((F=this.handleInput)==null?void 0:F.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:Q,commandController:{onSuccess:function(t,p){v.onChannelCreationEndpointSuccess(p);v.obakeImageSource&&_.X0("channelCreatedWithObakeImage",{imageSourceType:v.obakeImageSource})},
onServerError:function(){v.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.K.endpointRequiresServiceRequestAction=function(v){return!!_.y(v,_.Gn)||!!_.y(v,kS5)};
_.K.isNavigateAction=function(v){var Q;return!!_.y(v,_.aG)||!!_.y((Q=_.y(v,f88))==null?void 0:Q.command,_.aG)};
_.K.isPlaylistAction=function(v){return!!_.y(v,_.Vd)||!!_.y(v,_.tL)};
_.K.onChannelCreationEndpointSuccess=function(v){if(v.createChannelError){var Q;this.setErrorState((Q=v.createChannelError)==null?void 0:Q.errorMessage);this.handleInput&&this.handleInput.validate()}else{v.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(v.navigationEndpoint);if(v.actions){Q=_.L(v.actions);for(var V=Q.next();!V.done;V=Q.next())if(V=V.value,this.endpointRequiresServiceRequestAction(V)&&this.ytComponentBehavior.resolveCommand(V),this.isNavigateAction(V)){var E=void 0;V=_.y((E=
_.y(V,f88))==null?void 0:E.command,_.aG);E=void 0;this.isPlaylistAction((E=V)==null?void 0:E.endpoint)&&(_.mb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),E=void 0,this.ytComponentBehavior.resolveCommand((E=V)==null?void 0:E.endpoint))}}v.actions&&v.actions.some(function(b){var F;return _.y(b,_.aG)||_.y((F=_.y(b,f88))==null?void 0:F.command,_.aG)})||_.mb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.K.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.K.onCancelTap=function(){var v,Q,V;if(!((v=this.data)==null?0:(Q=v.cancelButton)==null?0:(V=Q.buttonRenderer)==null?0:V.isDisabled)){var E,b,F;v=(E=this.data)==null?void 0:(b=E.cancelButton)==null?void 0:(F=b.buttonRenderer)==null?void 0:F.command;if(!v||!_.y(v,_.ymm)){var t;this.nameInput&&((t=this.data)==null?0:t.name)&&(this.nameInput.value=this.data.name);var p;this.handleInput&&((p=this.data)==null?0:p.channelHandleInput)&&(this.handleInput.data=_.y(this.data.channelHandleInput,ykY));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.K.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.K.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.K.onClearProfilePhotoTap=function(){var v,Q,V;((v=this.data)==null?0:(Q=v.clearProfilePhotoButton)==null?0:(V=Q.buttonRenderer)==null?0:V.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.K.onEditAvatarTap=function(){var v,Q,V;((v=this.data)==null?0:(Q=v.editAvatarButton)==null?0:(V=Q.buttonRenderer)==null?0:V.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.K.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)};
_.K.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var v;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((v=this.data)==null?0:v.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.K.setErrorState=function(v){this.resetErrorState();if(v)this.set("errorMessage",v);else{var Q;if((Q=this.zeroStepErrorMessageEntity)==null?0:Q.value)this.set("errorMessage",_.u3(this.zeroStepErrorMessageEntity.value));else{var V;((V=this.data)==null?0:V.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.K.fetchImageBlobWithAlr=function(v,Q){Q=Q===void 0?5:Q;var V=this,E,b,F,t,p;return _.e(function(Z){switch(Z.nextAddress){case 1:return Z.yield(fetch(v,{method:"GET",mode:"cors"}),2);case 2:E=Z.yieldResult;if(E.ok){Z.jumpTo(3);break}if(Q===0)throw Error();b=V.addJitter(Math.pow(2,5-Q));return Z.yield(new Promise(function(d){setTimeout(d,b*1E3)}),4);
case 4:return Z.return(V.fetchImageBlobWithAlr(v,Q-1));case 3:if(!E.headers.get("content-type").split(";").some(function(d){return d.trim()==="text/plain"})){Z.jumpTo(5);
break}F=V;t=F.fetchImageBlobWithAlr;return Z.yield(E.text(),6);case 6:return Z.return(t.call(F,Z.yieldResult,Q-1));case 5:return Z.yield(E.blob(),7);case 7:return p=Z.yieldResult,Z.return(p)}})};
_.K.addJitter=function(v){var Q=v*.3*Math.random();Math.random()>.5&&(Q*=-1);return v+Q};
_.K.openProfilePicturePicker=function(){var v=this,Q,V,E,b,F,t;return _.e(function(p){if(p.nextAddress==1){Q=v.data.scottyUploadUrl;if(!Q)return p.return();V=document.documentElement.hasAttribute("dark");E=document.body.style.colorScheme;V&&(document.body.style.colorScheme="dark");b=wOs(AQ7(hrf(Lx$(V?"dark":"light")),function(Z){var d,w,A,k,T;return _.e(function(c){if(c.nextAddress==1)return d=_.XZ(zrn(new ES5(Z.photoUrl,!1)).build(),"alr","yes"),v.obakeImageSource=v.pictureChangeSourceToObakeImageSourceType(Z.photoSource),
_.GC(c,2),v.setLoadingState(),c.yield(v.fetchImageBlobWithAlr(d),4);if(c.nextAddress!=2)return w=c.yieldResult,A=new FileReader,A.addEventListener("load",function(){var C,R,l,S,a,g;return _.e(function(u){if(u.nextAddress==1){if(w.size>15728640)return v.setErrorState((C=v.data)==null?void 0:C.imageSizeErrorMessage),_.Iy(Error("Gl")),u.return();if(!A.result)return v.setErrorState((R=v.data)==null?void 0:R.genericImageLoadErrorMessage),_.Iy(Error("Hl")),u.return();l=A.result;_.GC(u,2);return u.yield(Dq8(w,
Q),4)}if(u.nextAddress!=2)return S=u.yieldResult,v.handleImageUpdatedAction(l,S),v.resetErrorState(),_.FT(u,0);a=_.n$(u);v.setErrorState((g=v.data)==null?void 0:g.uploadErrorMessage);if(a instanceof Error)_.ro(a);else{var r=new _.xd(JSON.stringify(a));_.ro(r)}_.q1(u)})}),A.readAsDataURL(w),_.FT(c,0);
k=_.n$(c);v.setErrorState((T=v.data)==null?void 0:T.genericImageLoadErrorMessage);k instanceof Error?_.ro(k):_.$h(new _.xd(JSON.stringify(k)));_.q1(c)})}),function(){v.hideContainer=!1;
document.body.style.colorScheme=E});
_.GC(p,2);return((F=v.data)==null?0:F.shouldViewChannelCreationFormForSupex)?p.yield(b.openPicker("profile-picture/art-selection"),5):p.yield(b.openPicker(),5)}if(p.nextAddress!=2)return _.FT(p,0);_.n$(p);v.setErrorState((t=v.data)==null?void 0:t.selectImageErrorMessage);_.q1(p)})};
_.K.pictureChangeSourceToObakeImageSourceType=function(v){switch(v){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.K.logScreenVe=function(){_.S5(_.tR(),124448)};
_.K.graftServerVe=function(){var v=_.CC(),Q,V,E=(Q=this.data)==null?void 0:(V=Q.loggingDirectives)==null?void 0:V.trackingParams;E&&v&&(this.channelCreationFormVe=_.tR().graftServerVe(E,v),v={visualElement:this.channelCreationFormVe},_.id().reportShown(v))};
_.K.isNameChanged=function(v){var Q;return((Q=this.data)==null?void 0:Q.name)!==v};
_.K.isHandleChanged=function(v){var Q,V=_.y((Q=this.data)==null?void 0:Q.channelHandleInput,ykY);return V&&v?V.handle!==v:!1};
_.K.handleImageUpdatedAction=function(v,Q){this.hideContainer=!1;this.previewDataUrl=v;this.encryptedBlobId=Q};
_.K.handleImageSelectionErrorAction=function(v){this.hideContainer=!1;this.setErrorState(v)};
_.K.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.K.showContainer=function(){this.hideContainer=!1};
_.K.maybeWipeZeroStepErrorMessage=function(){var v,Q=(v=this.data)==null?void 0:v.zeroStepErrorMessageEntityKey,V;Q&&((V=this.zeroStepErrorMessageEntity)==null?0:V.value)&&this.ytdReduxBehavior.dispatch(_.dW("stringEntity",Q,{key:Q,value:""}))};
_.hr.Object.defineProperties(I_.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var v;return((v=this.photoThumbnail)==null?0:v.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.descriptionInfo}}});
I_.prototype.dataChanged=I_.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],I_.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],I_.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],I_.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],I_.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],I_.prototype,"errorMessage",void 0);
_.W([_.q(),_.X("design:type",Object)],I_.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",String)],I_.prototype,"previewDataUrl",void 0);_.W([_.q(),_.X("design:type",Number)],I_.prototype,"obakeImageSource",void 0);_.W([_.q(),_.X("design:type",Object)],I_.prototype,"hideContainer",void 0);_.W([_.Z7("#title-input"),_.X("design:type",Object)],I_.prototype,"nameInput",void 0);_.W([_.Z7("#handle-input"),_.X("design:type",Object)],I_.prototype,"handleInput",void 0);
_.W([_.q(),_.X("design:type",Boolean)],I_.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.W([_.q({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.bcS}),_.X("design:type",Object)],I_.prototype,"zeroStepErrorMessageEntity",void 0);_.W([_.O("data","data.isDefaultProfilePhoto","previewDataUrl"),_.X("design:type",Object),_.X("design:paramtypes",[])],I_.prototype,"photoThumbnail",null);
_.W([_.O("data","data.isDefaultProfilePhoto","photoThumbnail"),_.X("design:type",Object),_.X("design:paramtypes",[])],I_.prototype,"userSetPhotoThumbnailUrl",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],I_.prototype,"hideProfilePhotoButtonLayer",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],I_.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.W([_.wg("data","zeroStepErrorMessageEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],I_.prototype,"dataChanged",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.descriptionInfo","zeroStepErrorMessageEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],I_.prototype,"description",null);_.W([_.J({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],I_);
_.B(I_,"ytd-channel-creation-dialog-renderer",function(){if(Z65!==void 0)return Z65;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Z65=v},{mode:1});var dEf;var HX=function(){var v=_.z.apply(this,arguments)||this;v.isLoading=!1;v.isDisabled=!1;return v};
_.f(HX,_.z);HX.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
HX.prototype.updateDisabled=function(){var v;this.isDisabled=this.isLoading||((v=this.handleInput)==null?void 0:v.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
HX.prototype.onSaveClick=function(){var v=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var Q;((Q=this.data)==null?void 0:Q.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=v.data)==null?0:V.nextEndpoint){var E;v.ytComponentBehavior.resolveCommand((E=v.data)==null?void 0:E.nextEndpoint)}else v.isLoading=
!1,v.closeDialog()},
onServerError:function(){v.isLoading=!1;v.handleInput.validate();var V;v.errorMessage=(V=v.data)==null?void 0:V.errorMessage}}}))}};
HX.prototype.closeDialog=function(){_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
HX.prototype.updateDisabled=HX.prototype.updateDisabled;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],HX.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],HX.prototype,"data",void 0);_.W([_.Z7("#handle-input"),_.X("design:type",Object)],HX.prototype,"handleInput",void 0);_.W([_.ph("isLoading"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],HX.prototype,"updateDisabled",null);
_.W([_.J({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],HX);
_.B(HX,"ytd-channel-handle-edit-dialog-renderer",function(){if(dEf!==void 0)return dEf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return dEf=v},{mode:1});var h8m;var mj=function(){return _.z.apply(this,arguments)||this};
_.f(mj,_.z);mj.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mj.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],mj);
_.B(mj,"ytd-channel-switcher-footer-renderer",function(){if(h8m!==void 0)return h8m;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return h8m=v},{mode:1});var wd0;var AXh;var U3=function(){return _.z.apply(this,arguments)||this};
_.f(U3,_.z);U3.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
U3.prototype.onIronChange=U3.prototype.onIronChange;_.W([_.q(),_.X("design:type",Object)],U3.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Function)],U3.prototype,"onDontAskAgainChanged",void 0);_.W([_.Z7("#checkbox"),_.X("design:type",Object)],U3.prototype,"checkbox",void 0);_.W([_.tM("iron-change"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],U3.prototype,"onIronChange",null);
_.W([_.J({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],U3);
_.B(U3,"ytd-identity-prompt-footer-renderer",function(){if(AXh!==void 0)return AXh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return AXh=v},{mode:1});var vi=function(){var v=_.z.apply(this,arguments)||this;v.dontAskAgain=!1;v.showPopup=!1;v.boundDontAskAgainChanged=function(Q){v.dontAskAgainChanged(Q)};
v.boundOnAccountItemTap=function(Q){v.onAccountItemTap(Q)};
return v};
_.f(vi,_.z);_.K=vi.prototype;
_.K.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]]"}}}}}};
_.K.ready=function(){var v=this;_.m9(this.hostElement).querySelector("#container").addEventListener("scroll",function(){v.ytRendererBehavior.markDirty()})};
_.K.dontAskAgainChanged=function(v){this.dontAskAgain=v};
_.K.onAccountItemTap=function(v){if(v){var Q={};this.dontAskAgain&&(Q={dont_ask_again:this.dontAskAgain});_.nF(v,Q)}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.K.redirectOnlyAccount=function(v){v.sections&&v.sections.length>0&&(v=_.y(v.sections[0],_.cfN),(v==null?0:v.contents)&&(v==null?void 0:v.contents.length)<=1?(v=_.Ki(window.location.href),(v==null?0:v.next)&&_.Xjb(v.next)?_.nF(v.next):_.nF("/")):this.showPopup=!0)};
vi.prototype.dataChanged=vi.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vi.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Object)],vi.prototype,"dontAskAgain",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vi.prototype,"showPopup",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Object)],vi.prototype,"boundDontAskAgainChanged",void 0);_.W([_.q({reflectToAttribute:!1}),_.X("design:type",Object)],vi.prototype,"boundOnAccountItemTap",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vi.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],vi);
_.B(vi,"ytd-channel-switcher-renderer",function(){if(wd0!==void 0)return wd0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wd0=v},{mode:1});var kuh;var Qa=function(){return _.z.apply(this,arguments)||this};
_.f(Qa,_.z);_.hr.Object.defineProperties(Qa.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.W([_.q(),_.X("design:type",Object)],Qa.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],Qa.prototype,"steps",null);_.W([_.J({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Qa);
_.B(Qa,"ytd-channel-transfer-stepper-renderer",function(){if(kuh!==void 0)return kuh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return kuh=v},{mode:1});var T1s;var Va=function(){var v=_.z.apply(this,arguments)||this;v.data=null;v.isError=!1;v.isLoading=!1;return v};
_.f(Va,_.z);_.K=Va.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.K.computeProfileName=function(v){return v?v.givenNameValue+" "+v.familyNameValue:""};
_.K.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)};
_.K.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)};
Va.prototype.onYtServiceRequestError=Va.prototype.onYtServiceRequestError;Va.prototype.onYtServiceRequestSent=Va.prototype.onYtServiceRequestSent;Va.prototype.dataChanged=Va.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Va.prototype,"data",void 0);
_.W([_.q({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.X("design:type",String)],Va.prototype,"profileName",void 0);_.W([_.q(),_.X("design:type",Object)],Va.prototype,"isError",void 0);_.W([_.q(),_.X("design:type",Object)],Va.prototype,"isLoading",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Va.prototype,"dataChanged",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],Va.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],Va.prototype,"onYtServiceRequestError",null);_.W([_.J({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Va);
_.B(Va,"ytd-channel-warm-welcome-cont-renderer",function(){if(T1s!==void 0)return T1s;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return T1s=v},{mode:1});var YK5;var E1=function(){var v=_.z.apply(this,arguments)||this;v.data=null;return v};
_.f(E1,_.z);E1.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
E1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],E1.prototype,"data",void 0);_.W([_.J({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],E1);
_.B(E1,"ytd-channel-warm-welcome-renderer",function(){if(YK5!==void 0)return YK5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return YK5=v},{mode:1});var yXm;var bW=function(){return _.z.apply(this,arguments)||this};
_.f(bW,_.z);_.hr.Object.defineProperties(bW.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.authorThumbnail)||{}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bW.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],bW.prototype,"thumbnailDetails",null);_.W([_.J({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],bW);
_.B(bW,"ytd-comment-preview-renderer",function(){if(yXm!==void 0)return yXm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return yXm=v},{mode:1});var cX8;var FV=function(){return _.z.apply(this,arguments)||this};
_.f(FV,_.z);FV.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hr.Object.defineProperties(FV.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.submitButton}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],FV.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],FV.prototype,"submitButton",null);_.W([_.J({is:"ytd-notice-renderer",disableElementRegistration:!0})],FV);
_.B(FV,"ytd-notice-renderer",function(){if(cX8!==void 0)return cX8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return cX8=v},{mode:1});var fw5;var Km=function(){return _.z.apply(this,arguments)||this};
_.f(Km,_.z);Km.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Km.prototype,"data",void 0);_.W([_.J({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Km);
_.B(Km,"ytd-preview-comment-dialog-content",function(){if(fw5!==void 0)return fw5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return fw5=v},{mode:1});var Gus;var iW=function(){return _.z.apply(this,arguments)||this};
_.f(iW,_.z);iW.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
iW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],iW.prototype,"data",void 0);_.W([_.J({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],iW);
_.B(iW,"ytd-preview-comment-dialog-renderer",function(){if(Gus!==void 0)return Gus;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Gus=v},{mode:1});var CCm;var MAm=_.Y("web_button_rework")&&_.mX("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),Lm=function(){var v=_.z.apply(this,arguments)||this;v.closeLabel=_.Lt("CLOSE");v.selectedAmountIndex=1;v.privacyCheckboxValue=!1;v.useAmsterdamStyle=MAm;v.amountPlaceholderIndex=-1;return v};
_.f(Lm,_.z);_.K=Lm.prototype;_.K.onAmountClick=function(v){this.selectedAmountIndex=_.m9(this.hostElement).querySelector("#amounts").indexForElement(v.currentTarget)};
_.K.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.mb(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.K.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 v;(v=_.aJ())==null||v.getPlayerPromise().then(function(Q){Q.pauseVideo()})}};
_.K.donationCallback=function(v){v.success?(this.hostElement.hasAttribute("live-chat")&&v.response&&v.response.data&&v.response.data.actions&&_.mb(this.hostElement,"yt-live-chat-open-popup",[v.response.data.actions[0]]),_.mb(this.hostElement,"yt-close-popup-action",[this.is]),_.mb(this.hostElement,"yt-live-chat-close-buy-flow")):v.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(v.errorMessageRenderer)};
_.K.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.m9(this.hostElement).querySelector("#custom-amount-input").focus()};
_.K.updateConfirmationDialogTextWithAmount=function(v){var Q=this.getConfirmDialogRuns();Q&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(Q),"text"],this.getFormattedAmount(v))};
_.K.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.K.getAmountPlaceholderIndex=function(v){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=v.findIndex(function(Q){return Q.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.K.getFormattedAmount=function(v){var Q;return(new _.NS(4,((Q=this.data)==null?void 0:Q.currencyCode)||"")).format(v)};
_.K.isAmountValid=function(v){if(v==="")return!1;v=Number(v)*1E6;var Q=this.get("minAmountMicros",this.data),V=this.get("maxAmountMicros",this.data);return Q&&v<Q||V&&v>V?!1:!0};
_.K.setInputError=function(){this.shouldShowValidationError?_.m9(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.m9(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.K.setInitialCheckboxValue=function(){var v;this.privacyCheckboxValue=!((v=this.data)==null||!v.privacyCheckboxInitialState)};
_.K.updateCustomAmountInputFromBinding=function(v){this.customAmountInput=v.detail.value};
_.K.updatePrivacyCheckboxValueFromBinding=function(v){this.privacyCheckboxValue=v.detail.value};
_.hr.Object.defineProperties(Lm.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var v=this,Q,V;return((Q=this.data)==null?void 0:(V=Q.suggestedAmounts)==null?void 0:V.map(function(E,b){return{buttonRenderer:{style:v.selectedAmountIndex===b?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:E.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var v=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(v&&this.amountMicros!==null)return Object.assign({},v,{ypcGetCartEndpoint:Object.assign({},v.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var v=this.get("confirmLargeAmount",this.data);if(v&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),v}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v=this.get("donateButton.buttonRenderer",this.data);if(v)return Object.assign({},v,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Lm.prototype.setInitialCheckboxValue=Lm.prototype.setInitialCheckboxValue;Lm.prototype.setInputError=Lm.prototype.setInputError;Lm.prototype.setFocusOnCustomAmountInput=Lm.prototype.setFocusOnCustomAmountInput;_.W([_.M(nRj),_.X("design:type",Object)],Lm.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Lm.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Lm.prototype,"closeLabel",void 0);_.W([_.q(),_.X("design:type",Object)],Lm.prototype,"selectedAmountIndex",void 0);_.W([_.q(),_.X("design:type",String)],Lm.prototype,"customAmountInput",void 0);_.W([_.q(),_.X("design:type",Object)],Lm.prototype,"privacyCheckboxValue",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Lm.prototype,"useAmsterdamStyle",void 0);_.W([_.ph("customAmount"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Lm.prototype,"setFocusOnCustomAmountInput",null);_.W([_.O("data","selectedAmountIndex"),_.X("design:type",Array),_.X("design:paramtypes",[])],Lm.prototype,"suggestedAmountButtons",null);
_.W([_.O("data","selectedAmountIndex"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Lm.prototype,"isCustomAmountSelected",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Lm.prototype,"showPrivacyCheckbox",null);_.W([_.O("data","selectedAmountIndex","customAmount"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"amountMicros",null);
_.W([_.O("isCustomAmountSelected","customAmountInput"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"customAmount",null);_.W([_.O("customAmount"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Lm.prototype,"shouldShowValidationError",null);_.W([_.O("customAmount"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Lm.prototype,"isDonateButtonEnabled",null);
_.W([_.O("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"donateCommand",null);_.W([_.O("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"donateCommandWithConfirmation",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"largeDonationThreshold",null);
_.W([_.O("customAmount","donateCommand","amountMicros"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"confirmLargeAmountCommand",null);_.W([_.O("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lm.prototype,"donateButtonRenderer",null);_.W([_.ph("shouldShowValidationError"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Lm.prototype,"setInputError",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Lm.prototype,"setInitialCheckboxValue",null);_.W([_.J({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Lm);
_.B(Lm,"ytd-donation-amount-picker-renderer",function(){if(CCm!==void 0)return CCm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return CCm=v},{mode:1});var O6h;var DEh=function(){return _.z.apply(this,arguments)||this};
_.f(DEh,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],DEh.prototype,"ytComponentBehavior",void 0);_.W([_.q({}),_.X("design:type",Object)],DEh.prototype,"data",void 0);_.W([_.J({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],DEh);
_.B(DEh,"ytd-donation-post-transaction-content",function(){if(O6h!==void 0)return O6h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return O6h=v},{mode:1});var R88;var th=function(){return _.z.apply(this,arguments)||this};
_.f(th,_.z);th.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.W([_.q({}),_.X("design:type",Object)],th.prototype,"data",void 0);_.W([_.J({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],th);
_.B(th,"ytd-donation-post-transaction-renderer",function(){if(R88!==void 0)return R88;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return R88=v},{mode:1});var n3f;var lws;var pm=function(){return _.z.apply(this,arguments)||this};
_.f(pm,_.z);pm.prototype.computeIsStreamingProvider=function(v){return!!v.isStreamingShelf};
pm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],pm.prototype,"data",void 0);_.W([_.q({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],pm.prototype,"isStreamingProvider",void 0);
_.W([_.J({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],pm);
_.B(pm,"ytd-media-provider-renderer",function(){if(lws!==void 0)return lws;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return lws=v},{mode:1});var qKd;var eQ=function(){return _.z.apply(this,arguments)||this};
_.f(eQ,_.z);eQ.prototype.observeLightsourcePalette=function(){var v,Q=(v=this.data)==null?void 0:v.vibrantsourceColorPaletteData;Q&&_.Tr(this.hostElement,Q)};
eQ.prototype.observeLightsourcePalette=eQ.prototype.observeLightsourcePalette;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],eQ.prototype,"data",void 0);
_.W([_.ph("data.vibrantsourceColorPaletteData"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],eQ.prototype,"observeLightsourcePalette",null);_.W([_.J({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],eQ);
_.B(eQ,"ytd-streaming-pop-up-dialog",function(){if(qKd!==void 0)return qKd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return qKd=v},{mode:1});var Z_=function(){return _.z.apply(this,arguments)||this};
_.f(Z_,_.z);Z_.prototype.onPopupOpened_=function(){var v;((v=this.data)==null?0:v.serviceEndpoint)&&_.ht().resolve(_.At).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Z_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Z_.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"}}}}};
Z_.prototype.onPopupOpened_=Z_.prototype.onPopupOpened_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.wk),_.X("design:type",Object)],Z_.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Z_.prototype,"data",void 0);
_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Z_.prototype,"onPopupOpened_",null);_.W([_.J({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Z_);
_.B(Z_,"ytd-brandconnect-popup-renderer",function(){if(n3f!==void 0)return n3f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return n3f=v},{mode:1});var SK8;var Pi=function(){return _.z.apply(this,arguments)||this};
_.f(Pi,_.z);_.K=Pi.prototype;_.K.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){for(var v=0;v<this.getOptionRenderers().length;v++)this.notifyPath("data.options."+v+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+v+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.K.updateSubmitButton=function(v){this.set("data.submitButton.buttonRenderer.isDisabled",!v)};
_.K.computeAlt=function(v){return _.j0(v)};
_.K.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.K.getOptionRenderers=function(v){return(v=v||this.data)&&v.options?v.options.reduce(function(Q,V){V.checkboxSurveyOptionRenderer&&Q.push(V.checkboxSurveyOptionRenderer);return Q},[]):[]};
_.K.onOptionChange=function(v){var Q=this,V=!1;if(v.detail.checked)for(var E=this.getOptionRenderers().find(function(p){return p.value===v.detail.value}),b=this.getOptionRenderers(),F=0;F<b.length;F++){var t=b[F];
this.notifyPath("data.options."+F+".checkboxSurveyOptionRenderer.checked");t.checked&&((E==null?0:E.isExclusiveOption)?!t.isExclusiveOption:t.isExclusiveOption)?this.set("data.options."+F+".checkboxSurveyOptionRenderer.checked",!1):t.checked&&(V=!0)}else V=this.getOptionRenderers().some(function(p,Z){Q.notifyPath("data.options."+Z+".checkboxSurveyOptionRenderer.checked");return p.checked});
this.updateSubmitButton(V)};
_.K.onSubmitTap=function(){var v=this.getOptionRenderers().filter(function(F){return F.checked});
if(v.length!==0){var Q=v.map(function(F){return F.responseEndpoint});
v=[];for(var V=1;V<Q.length;V++){var E=void 0,b=(E=_.y(Q[V],_.Cq))==null?void 0:E.feedbackToken;b&&v.push(b)}Q=[Q[0]];v.length&&Q.push({extra_feedback_tokens:v});_.vp(this.hostElement,Q);_.mb(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);v=this.data&&this.data.submitActions||[];if(_.Y("kevlar_command_handler_migration_killswitch"))_.Qk(this.hostElement,v,this.hostElement);else for(v=_.L(v),Q=v.next();!Q.done;Q=v.next())this.ytComponentBehavior.resolveCommand(Q.value)}};
Pi.prototype.onOptionChange=Pi.prototype.onOptionChange;Pi.prototype.dataChanged=Pi.prototype.dataChanged;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Pi.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Pi.prototype,"ytComponentBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.W([_.M($eq),_.X("design:type",Object)],Pi.prototype,"ytdHatsSurveyBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Pi.prototype,"data",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pi.prototype,"dataChanged",null);
_.W([_.tM("ytd-checkbox-survey-option-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Pi.prototype,"onOptionChange",null);_.W([_.J({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Pi);
_.B(Pi,"ytd-checkbox-survey-renderer",function(){if(SK8!==void 0)return SK8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return SK8=v},{mode:1});var z8f;var JXI;var df=function(){return _.z.apply(this,arguments)||this};
_.f(df,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.W([_.M(rb$),_.X("design:type",Object)],df.prototype,"ytdDismissalReasonBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],df.prototype,"data",void 0);_.W([_.J({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],df);
_.B(df,"ytd-dismissal-reason-text-renderer",function(){if(JXI!==void 0)return JXI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return JXI=v},{mode:1});var N1h;var hh=function(){return _.z.apply(this,arguments)||this};
_.f(hh,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.W([_.M(rb$),_.X("design:type",Object)],hh.prototype,"ytdDismissalReasonBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hh.prototype,"data",void 0);_.W([_.J({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],hh);
_.B(hh,"ytd-dismissal-reason-video-renderer",function(){if(N1h!==void 0)return N1h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return N1h=v},{mode:1});var wf=function(){return _.z.apply(this,arguments)||this};
_.f(wf,_.z);_.K=wf.prototype;_.K.created=function(){this.selectedFeedbackTokens=new y4};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.K.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.K.onDismissalReasonSelected=function(v,Q){_.Hj(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(Q);this.hasReasonsSelected=!0};
_.K.onDismissalReasonDeselected=function(v,Q){_.Hj(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(Q);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.K.onCancelTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.K.onSubmitTap=function(){var v=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(v={feedback_tokens:v},_.ht().resolve(_.At).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},v,{element:this.hostElement})}));_.mb(this.hostElement,"yt-close-popup-action")};
wf.prototype.onDismissalReasonDeselected=wf.prototype.onDismissalReasonDeselected;wf.prototype.onDismissalReasonSelected=wf.prototype.onDismissalReasonSelected;wf.prototype.dataChanged=wf.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wf.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Boolean)],wf.prototype,"hasReasonsSelected",void 0);_.W([_.q(),_.X("design:type",y4)],wf.prototype,"selectedFeedbackTokens",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wf.prototype,"dataChanged",null);_.W([_.tM("yt-dismissal-reason-selected"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,String]),_.X("design:returntype")],wf.prototype,"onDismissalReasonSelected",null);
_.W([_.tM("yt-dismissal-reason-deselected"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,String]),_.X("design:returntype")],wf.prototype,"onDismissalReasonDeselected",null);_.W([_.J({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],wf);
_.B(wf,"ytd-dismissal-follow-up-renderer",function(){if(z8f!==void 0)return z8f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return z8f=v},{mode:1});var xEd;var Ah=function(){return _.z.apply(this,arguments)||this};
_.f(Ah,_.z);_.K=Ah.prototype;_.K.onCheckedChange=function(){this.multiselect||_.Hj(this.hostElement,"yt-feedback-single-select-changed");_.m9(this.hostElement).querySelector("#freeform").focus();_.Hj(this.hostElement,"yt-refit")};
_.K.showTextBox=function(v,Q){return v&&Q};
_.K.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))};
_.K.updateDataCheckedFromBinding=function(v){this.set("data.checked",v.detail.value)};
_.K.updateDataResultTextFromBinding=function(v){this.set("data.resultText",v.detail.value)};
Ah.prototype.dataChanged=Ah.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ah.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Ah.prototype,"multiselect",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ah.prototype,"dataChanged",null);
_.W([_.J({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Ah);
_.B(Ah,"ytd-feedback-option-renderer",function(){if(xEd!==void 0)return xEd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xEd=v},{mode:1});var B1f;var kt=function(){return _.z.apply(this,arguments)||this};
_.f(kt,_.z);kt.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
kt.prototype.onSingleSelectCheckedChanged=function(v){v=_.jV(v);for(var Q=0;Q<this.data.options.length;Q++)if(v.data!==_.y(this.data.options[Q],i0h)){var V="data.options."+Q+".feedbackOptionRenderer.checked";this.notifyPath(V);this.set(V,!1)}};
kt.prototype.onSingleSelectCheckedChanged=kt.prototype.onSingleSelectCheckedChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kt.prototype,"data",void 0);
_.W([_.tM("yt-feedback-single-select-changed"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],kt.prototype,"onSingleSelectCheckedChanged",null);_.W([_.J({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],kt);
_.B(kt,"ytd-feedback-question-renderer",function(){if(B1f!==void 0)return B1f;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return B1f=v},{mode:1});var g3q;var TU=function(){return _.z.apply(this,arguments)||this};
_.f(TU,_.z);TU.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
TU.prototype.getSelectedFeedbackResults=function(){for(var v={},Q=0;Q<this.data.questions.length;Q++)for(var V=_.y(this.data.questions[Q],KHI),E=0;E<V.options.length;E++){var b=_.y(V.options[E],i0h);b&&b.checked&&(v[b.optionKey]=b.resultText)}return v};
TU.prototype.onKeyUp=function(){var v=this;_.md(_.XT,function(){_.Hj(v.hostElement,"yt-refit")});
_.XT.start()};
TU.prototype.submitSurvey=function(){var v=this.getSelectedFeedbackResults();Object.keys(v).length>0&&this.data.submitFeedbackEndpoint&&(v={survey_results:v,is_feedback_token_unencrypted:!0},_.ht().resolve(_.At).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},v,{element:this.hostElement})}))};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TU.prototype,"data",void 0);_.W([_.J({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],TU);
_.B(TU,"ytd-feedback-survey-renderer",function(){if(g3q!==void 0)return g3q;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return g3q=v},{mode:1});var sjI;var u7j;var Yt=function(){return _.z.apply(this,arguments)||this};
_.f(Yt,_.z);Yt.prototype.computeAlt=function(v){return _.j0(v)};
Yt.prototype.submitResponse=function(){var v,Q;(v=this.data)!=null&&v.feedbackToken&&((Q=this.data)==null?void 0:Q.nextStageIndex)!==void 0&&(_.Un(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Un(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Yt.prototype.onClick=function(){this.submitResponse()};
Yt.prototype.onClick=Yt.prototype.onClick;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Yt.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Yt.prototype,"vertical",void 0);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yt.prototype,"onClick",null);
_.W([_.J({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Yt);
_.B(Yt,"ytd-single-select-answer-option-renderer",function(){if(u7j!==void 0)return u7j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return u7j=v},{mode:1});var jjh;var ya=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return v};
_.f(ya,_.z);ya.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
ya.prototype.dataChanged=function(){var v,Q;this.vertical=((Q=(v=this.data)==null?void 0:v.answerOrientation)!=null?Q:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
ya.prototype.submitFeedback=function(v){var Q;((Q=this.data)==null?0:Q.responseEndpoint)&&v&&_.vp(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[v]}])};
ya.prototype.dataChanged=ya.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ya.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],ya.prototype,"eventForwardingBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],ya.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],ya.prototype,"vertical",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ya.prototype,"dataChanged",null);_.W([_.J({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],ya);
_.B(ya,"ytd-single-select-question-renderer",function(){if(jjh!==void 0)return jjh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return jjh=v},{mode:1});var ci=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return v};
_.f(ci,_.z);_.K=ci.prototype;_.K.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"}}}};
_.K.dataChanged=function(){this.jumpToStage(0)};
_.K.jumpToStage=function(v){var Q,V;if((Q=this.data)==null?0:(V=Q.stages)==null?0:V[v])this.currentStage=this.data.stages[v],this.refitAfterRender()};
_.K.computeAlt=function(v){return _.j0(v)};
_.K.computeSimpleMessage=function(v){var Q;return(Q=_.y(v,p8d))==null?void 0:Q.messageText};
_.K.computeHideDismiss=function(v){var Q;return(Q=_.y(v,NkI))==null?void 0:Q.hideParentDismissButton};
_.K.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action");_.y(this.currentStage,p8d)||this.data.dismissalEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.K.refitAfterRender=function(){var v=this;_.PE(this,function(){_.Hj(v.hostElement,"yt-refit")})};
ci.prototype.dataChanged=ci.prototype.dataChanged;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],ci.prototype,"eventForwardingBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],ci.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M($eq),_.X("design:type",Object)],ci.prototype,"ytdHatsSurveyBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ci.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],ci.prototype,"currentStage",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ci.prototype,"dataChanged",null);_.W([_.J({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],ci);
_.B(ci,"ytd-multi-stage-survey-renderer",function(){if(sjI!==void 0)return sjI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return sjI=v},{mode:1});var Wnd;var fm=function(){return _.z.apply(this,arguments)||this};
_.f(fm,_.z);fm.prototype.computeAlt=function(v){return _.j0(v)};
fm.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.ht().resolve(_.At).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.mb(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.Zhj(!1)))};
fm.prototype.onTap=function(){this.vertical&&this.submitResponse()};
fm.prototype.onTap=fm.prototype.onTap;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],fm.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fm.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],fm.prototype,"vertical",void 0);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fm.prototype,"onTap",null);_.W([_.J({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],fm);
_.B(fm,"ytd-single-option-survey-option-renderer",function(){if(Wnd!==void 0)return Wnd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Wnd=v},{mode:1});var o3h;var GU=function(){return _.z.apply(this,arguments)||this};
_.f(GU,_.z);_.K=GU.prototype;_.K.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){var v,Q;this.vertical=(((v=this.data)==null?void 0:(Q=v.surveyOrientation)==null?void 0:Q.type)||"HORIZONTAL")==="VERTICAL"};
_.K.computeAlt=function(v){return _.j0(v)};
_.K.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ht().resolve(_.At).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.Zhj(!1))};
GU.prototype.dataChanged=GU.prototype.dataChanged;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],GU.prototype,"eventForwardingBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M($eq),_.X("design:type",Object)],GU.prototype,"ytdHatsSurveyBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],GU.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],GU.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],GU.prototype,"vertical",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],GU.prototype,"dataChanged",null);_.W([_.J({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],GU);
_.B(GU,"ytd-single-option-survey-renderer",function(){if(o3h!==void 0)return o3h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return o3h=v},{mode:1});var Xdf;var Cm=function(){return _.z.apply(this,arguments)||this};
_.f(Cm,_.z);Cm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cm.prototype.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
Cm.prototype.onNavigate=function(){_.mb(this.hostElement,"yt-close-popup-action")};
Cm.prototype.onNavigate=Cm.prototype.onNavigate;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Cm.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cm.prototype,"data",void 0);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Cm.prototype,"onNavigate",null);
_.W([_.J({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Cm);
_.B(Cm,"ytd-survey-follow-up-renderer",function(){if(Xdf!==void 0)return Xdf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Xdf=v},{mode:1});var awI;var rX8;var $Ej;var My=function(){var v=_.z.apply(this,arguments)||this;v.polymer2="Element"in Polymer;return v};
_.f(My,_.z);_.K=My.prototype;_.K.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.K.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.K.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.K.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("minutes-changed",this.minutes))};
_.K.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("seconds-changed",this.seconds))};
_.K.updateMinutesFromBinding=function(v){this.minutes=v.detail.value};
_.K.updateSecondsFromBinding=function(v){this.seconds=v.detail.value};
My.prototype.secondsChangedForBinding=My.prototype.secondsChangedForBinding;My.prototype.minutesChangedForBinding=My.prototype.minutesChangedForBinding;My.prototype.secondsChanged=My.prototype.secondsChanged;_.W([_.q(),_.X("design:type",String)],My.prototype,"minutes",void 0);_.W([_.q(),_.X("design:type",String)],My.prototype,"seconds",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],My.prototype,"polymer2",void 0);
_.W([_.Z7("#seconds"),_.X("design:type",Object)],My.prototype,"secondsEl",void 0);_.W([_.ph("seconds"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],My.prototype,"secondsChanged",null);_.W([_.ph("minutes"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],My.prototype,"minutesChangedForBinding",null);
_.W([_.ph("seconds"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],My.prototype,"secondsChangedForBinding",null);_.W([_.D7({is:"yt-timestamp-input",disableElementRegistration:!0})],My);
_.B(My,"yt-timestamp-input",function(){if($Ej===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;rX8===void 0&&(rX8=document.createElement("template"));var E=rX8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);$Ej=v}v=$Ej;return v},{mode:2});var O1=function(){return _.z.apply(this,arguments)||this};
_.f(O1,_.z);_.K=O1.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20765_scroller.dialogElement=this.hostElement.parentNode};
_.K.dataChanged=function(){var v=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.rS().getPlayerPromise().then(function(Q){Q=Q.getCurrentTime();v.minutes=Math.floor(Q/60).toString();v.seconds=(Math.floor(Q)%60).toString()})};
_.K.onTapSubmit=function(v){v.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(v={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(v.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(v.minutes=this.minutes,v.seconds=this.seconds),_.ht().resolve(_.At).resolveCommand(this.serviceEndpoint,{form:Object.assign({},v,{element:this.hostElement})}))};
_.K.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.K.onYtServiceRequestCompleted=function(v,Q){Q=Q.actions;if(Array.isArray(Q))for(var V=0,E=Q.length;V<E;V++)_.y(Q[V],_.sv)&&(v.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(Q[V]))};
_.K.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.K.toggleSubmitButton=function(v){this.set("submitButton.isDisabled",!v)};
_.K.handleInput=function(){var v=this.issueType,Q=this.affiliation,V=this.minutes,E=this.seconds;V=!this.showTimestamp||!!V&&!!E;this.toggleSubmitButton(!!this.descriptionText&&!!v&&!!Q&&V)};
_.K.computeServiceEndpoint=function(v){return this.get("submitButton.buttonRenderer.serviceEndpoint",v)};
_.K.computeSubmitButton=function(v){(v=this.get("submitButton.buttonRenderer",v))&&(v=Object.assign({},v,{serviceEndpoint:void 0}));return v};
_.K.computeShowTimestamp=function(v){return!!v};
_.K.onValueChangedForIssueType=function(v){this.issueType=v.detail.value};
_.K.onValueChangedForAffiliation=function(v){this.affiliation=v.detail.value};
_.K.updateDescriptionTextFromBinding=function(v){this.descriptionText=v.detail.value};
_.K.updateFullNameTextFromBinding=function(v){this.fullNameText=v.detail.value};
_.K.updateMinutesFromBinding=function(v){this.minutes=v.detail.value};
_.K.updateSecondsFromBinding=function(v){this.seconds=v.detail.value};
O1.prototype.handleInput=O1.prototype.handleInput;O1.prototype.onYtServiceRequestError=O1.prototype.onYtServiceRequestError;O1.prototype.onYtServiceRequestCompleted=O1.prototype.onYtServiceRequestCompleted;O1.prototype.onYtServiceRequestSent=O1.prototype.onYtServiceRequestSent;O1.prototype.dataChanged=O1.prototype.dataChanged;_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],O1.prototype,"ytOpenPopupBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.W([_.Z7("#scroller"),_.X("design:type",Object)],O1.prototype,"JSC$20765_scroller",void 0);_.W([_.Z7("#description"),_.X("design:type",HTMLInputElement)],O1.prototype,"description",void 0);_.W([_.Z7("#full-name"),_.X("design:type",Object)],O1.prototype,"fullName",void 0);_.W([_.q(),_.X("design:type",Object)],O1.prototype,"data",void 0);
_.W([_.q({computed:"computeShowTimestamp(data.timestampLabel)"}),_.X("design:type",Boolean)],O1.prototype,"showTimestamp",void 0);_.W([_.q({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.X("design:type",Object)],O1.prototype,"serviceEndpoint",void 0);_.W([_.q({computed:"computeSubmitButton(data)"}),_.X("design:type",Object)],O1.prototype,"submitButton",void 0);_.W([_.q(),_.X("design:type",String)],O1.prototype,"descriptionText",void 0);
_.W([_.q(),_.X("design:type",Number)],O1.prototype,"issueType",void 0);_.W([_.q(),_.X("design:type",Number)],O1.prototype,"affiliation",void 0);_.W([_.q(),_.X("design:type",String)],O1.prototype,"fullNameText",void 0);_.W([_.q(),_.X("design:type",String)],O1.prototype,"minutes",void 0);_.W([_.q(),_.X("design:type",String)],O1.prototype,"seconds",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O1.prototype,"dataChanged",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],O1.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],O1.prototype,"onYtServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],O1.prototype,"onYtServiceRequestError",null);_.W([_.ph("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],O1.prototype,"handleInput",null);_.W([_.J({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],O1);
_.B(O1,"ytd-legal-report-details-form-renderer",function(){if(awI!==void 0)return awI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return awI=v},{mode:1});var Iwh;var D_=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return v};
_.f(D_,_.z);D_.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
D_.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var v=this.formRenderer.getForm();v&&this.data.submitEndpoint&&(_.ht().resolve(_.At).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},v,{element:this.hostElement})}),_.mb(this.hostElement,"yt-close-popup-action"))}};
D_.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.mb(this.hostElement,"yt-close-popup-action"))};
D_.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
D_.prototype.onPopupClosed=D_.prototype.onPopupClosed;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],D_.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],D_.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);
_.W([_.Z7("yt-form-renderer"),_.X("design:type",Object)],D_.prototype,"formRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],D_.prototype,"data",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],D_.prototype,"onPopupClosed",null);_.W([_.J({is:"ytd-form-popup-content",disableElementRegistration:!0})],D_);
_.B(D_,"ytd-form-popup-content",function(){if(Iwh!==void 0)return Iwh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Iwh=v},{mode:1});var H6j;var Rv=function(){return _.z.apply(this,arguments)||this};
_.f(Rv,_.z);Rv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Rv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Rv.prototype.onPopupOpened=function(){_.Hj(this.hostElement,"yt-invalidate-popup-tabbables")};
Rv.prototype.onYtServiceRequestCompleted=function(v,Q){Q.data&&Q.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Hj(this.hostElement,"yt-invalidate-popup-tabbables"))};
Rv.prototype.onYtServiceRequestCompleted=Rv.prototype.onYtServiceRequestCompleted;Rv.prototype.onPopupOpened=Rv.prototype.onPopupOpened;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Rv.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Rv.prototype,"data",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Rv.prototype,"onPopupOpened",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],Rv.prototype,"onYtServiceRequestCompleted",null);_.W([_.J({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Rv);
_.B(Rv,"ytd-form-popup-renderer",function(){if(H6j!==void 0)return H6j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return H6j=v},{mode:1});var mEd;var nm=function(){var v=_.z.apply(this,arguments)||this;v.isLoading=!1;return v};
_.f(nm,_.z);_.K=nm.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");qof(this.hostElement)};
_.K.onYtServiceRequestSent=function(){this.isLoading=!0};
_.K.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.K.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Qk(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.K.closePopupHandler=function(){this.fireOnCloseActions()};
_.K.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var v=this.get("data.headerImage.thumbnails");v&&(v=_.rE(v,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+v+")")}};
_.K.onYtNavigate=function(v){(v=_.jV(v))&&v.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
nm.prototype.onYtNavigate=nm.prototype.onYtNavigate;nm.prototype.onHeaderImageChanged=nm.prototype.onHeaderImageChanged;nm.prototype.closePopupHandler=nm.prototype.closePopupHandler;nm.prototype.onYtServiceRequestCompleted=nm.prototype.onYtServiceRequestCompleted;nm.prototype.onYtServiceRequestSent=nm.prototype.onYtServiceRequestSent;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],nm.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nm.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],nm.prototype,"isLoading",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLDivElement)],nm.prototype,"header",void 0);_.W([_.Z7("#confirm-button"),_.X("design:type",_.u6)],nm.prototype,"confirmButton",void 0);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],nm.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],nm.prototype,"onYtServiceRequestCompleted",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],nm.prototype,"closePopupHandler",null);_.W([_.ph("data.headerImage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],nm.prototype,"onHeaderImageChanged",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],nm.prototype,"onYtNavigate",null);
_.W([_.J({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],nm);
_.B(nm,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(mEd!==void 0)return mEd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return mEd=v},{mode:1});var UEd;var lW=function(){var v=_.z.apply(this,arguments)||this;v.isLoading=!1;return v};
_.f(lW,_.z);_.K=lW.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);qof(this.hostElement)};
_.K.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.K.onYtServiceRequestError=function(v){_.NJ(this.hostElement,v.detail.error.message)};
_.K.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.K.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)};
_.K.onDataChanged=function(){this.isLoading=!1;var v=this.get("data.headerImage.thumbnails");v&&(v=_.rE(v,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+v+")");v=_.Mo();var Q=_.CC(),V=this.get("data.trackingParams");V&&Q&&v&&_.Np(v,Q,_.dE(V))};
_.hr.Object.defineProperties(lW.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
lW.prototype.onDataChanged=lW.prototype.onDataChanged;lW.prototype.onDomChange=lW.prototype.onDomChange;lW.prototype.onYtServiceRequestError=lW.prototype.onYtServiceRequestError;lW.prototype.onYtServiceRequestCompleted=lW.prototype.onYtServiceRequestCompleted;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],lW.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],lW.prototype,"isLoading",void 0);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],lW.prototype,"hasDescription",null);_.W([_.Z7("tp-yt-paper-dialog-scrollable"),_.X("design:type",Object)],lW.prototype,"scrollable",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],lW.prototype,"header",void 0);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],lW.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],lW.prototype,"onYtServiceRequestError",null);
_.W([_.tM("dom-change"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],lW.prototype,"onDomChange",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lW.prototype,"onDataChanged",null);_.W([_.J({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],lW);
_.B(lW,"ytd-gaming-account-link-setting-renderer",function(){if(UEd!==void 0)return UEd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return UEd=v},{mode:1});var vs5;var Q30;var qy=function(){var v=_.z.apply(this,arguments)||this;v.isHeader=!1;v.getEndpointForm=function(){return zLs(v.data)};
return v};
_.f(qy,_.z);_.K=qy.prototype;_.K.triggerHintActions=function(){var v=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var Q=_.Un(v.hostElement,"yt-get-opened-popups-action");!(Q&&Q.length===1?Q[0]:[]).some(function(V){V=V.openPopupAction.popupType;return V==="SURVEY"||V==="MEALBAR"||V==="HINT"})&&v.data.hintActions&&v.guideOpened&&(_.Qk(v.hostElement,v.data.hintActions,v.hostElement),v.data.hintActions=void 0)})};
_.K.getBadgeIconType=function(v){return v&&v.liveBroadcasting?"live":null};
_.K.onDown=function(){this.interaction.triggerDown()};
_.K.onUp=function(){this.interaction.triggerUp()};
_.K.onTap=function(v){if(this.data.serviceEndpoint){var Q;_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((Q=_.y(this.data.serviceEndpoint,_.PH))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):S75(this.data.serviceEndpoint,this);v.preventDefault()}else this.data.navigationEndpoint&&!_.j$(_.uK(v),this.hostElement,["A".toString()])&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.K.computeActive=function(v,Q){if(!v)return!1;var V=v.navigationEndpoint;v=v.serviceEndpoint;if(!V&&!v||!Q)return!1;if(V){v=(v=_.LF(Q))&&["subscriptions","filteredsubscriptions"].includes(v);if(_.y(V,_.tn)&&_.y(Q,_.tn)&&!v){var E=_.y(V,_.tn).browseId;Q=_.y(Q,_.tn).browseId;return E!==void 0&&Q!==void 0&&(E===Q||E==="VLWL"&&Q==="FEwatch_later"||E==="FEwatch_later"&&Q==="VLWL")}var b;V=(b=_.y(V.commandMetadata,_.Kt))==null?void 0:b.url;Q=(E=_.y(Q.commandMetadata,_.Kt))==null?void 0:E.url;return!(!V||
!Q||V!==Q&&V!==_.OG(Q))}return this.isActiveShortsTab(v,Q)};
_.K.isActiveShortsTab=function(v,Q){Q=!!_.y(Q,_.PH)||!!_.y(Q,_.EO);return(!!_.y(v,_.PH)||!!_.y(v,_.EO))&&Q};
_.K.computeIsPrimary=function(v){return!!v};
_.hr.Object.defineProperties(qy.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&v)return v}}});
qy.prototype.onTap=qy.prototype.onTap;qy.prototype.onUp=qy.prototype.onUp;qy.prototype.onDown=qy.prototype.onDown;qy.prototype.triggerHintActions=qy.prototype.triggerHintActions;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],qy.prototype,"componentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],qy.prototype,"rendererBehavior",void 0);_.W([_.M(_.hD.YtTaskEmitterBehavior),_.X("design:type",Object)],qy.prototype,"taskEmitterBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],qy.prototype,"activeEndpoint",void 0);_.W([_.q(),_.X("design:type",Object)],qy.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],qy.prototype,"guideOpened",void 0);_.W([_.q(),_.X("design:type",String)],qy.prototype,"type",void 0);_.W([_.Z7("yt-interaction"),_.X("design:type",Object)],qy.prototype,"interaction",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],qy.prototype,"isHeader",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data","activeEndpoint"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],qy.prototype,"active",null);_.W([_.q({reflectToAttribute:!0}),_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],qy.prototype,"isPrimary",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.count","data.presentationStyle","data.badges.*"),_.X("design:type",String),_.X("design:paramtypes",[])],qy.prototype,"lineEndStyle",null);
_.W([_.O("lineEndStyle"),_.X("design:type",Object),_.X("design:paramtypes",[])],qy.prototype,"ariaLabel",null);_.W([_.ph("data.hintActions","guideOpened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qy.prototype,"triggerHintActions",null);_.W([_.tM("down"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qy.prototype,"onDown",null);
_.W([_.tM("up"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],qy.prototype,"onUp",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],qy.prototype,"onTap",null);_.W([_.J({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],qy);
_.B(qy,"ytd-guide-entry-renderer",function(){if(Q30!==void 0)return Q30;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Q30=v},{mode:1});var SQ=function(){var v=_.z.apply(this,arguments)||this;v.userToggled=!1;return v};
_.f(SQ,_.z);_.K=SQ.prototype;_.K.getItemsPath=function(){return"data.expandableItems"};
_.K.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.K.onExpanderItemTapped=function(v){var Q=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.Y("kevlar_guide_expandable_items_killswitch")&&_.PE(this,function(){_.Lp(Q.expandableItems)});
v.preventDefault()};
_.K.onCollapserItemTapped=function(v){var Q=this;this._setExpanded(!1);this.userToggled=!0;v.preventDefault();this.expandableItems&&!_.Y("kevlar_guide_collapsible_items_killswitch")&&_.PE(this,function(){_.iS(Q.hostElement)})};
_.K.observeActiveEndpoint=function(){for(var v=this.activeEndpoint,Q=this.data,V=this.expandableItems.children,E=0,b=V.length;E<b;E++)V[E].activeEndpoint=v;Q&&Q.autoExpandCommand&&v&&!this.userToggled&&(V=this.data.autoExpandCommand,Q=!(!_.y(V,_.tn)||!_.y(v,_.tn)||_.y(V,_.tn).browseId!==_.y(v,_.tn).browseId),v=this.get("commandMetadata.webCommandMetadata.url",v),V=this.get("commandMetadata.webCommandMetadata.url",V),Q=Q||!!(v&&V&&v.includes(V)),this._setExpanded(Q),Q&&this.ytLazyListBehavior.fillRemainingListItems())};
SQ.prototype.observeActiveEndpoint=SQ.prototype.observeActiveEndpoint;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],SQ.prototype,"ytLazyListBehavior",void 0);_.W([_.Z7("#expandable-items"),_.X("design:type",HTMLElement)],SQ.prototype,"expandableItems",void 0);
_.W([_.q(),_.X("design:type",Object)],SQ.prototype,"data",void 0);_.W([_.q({readOnly:!0,reflectToAttribute:!0}),_.X("design:type",Boolean)],SQ.prototype,"expanded",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],SQ.prototype,"initialCount",void 0);_.W([_.q(),_.X("design:type",Object)],SQ.prototype,"activeEndpoint",void 0);_.W([_.ph("data","activeEndpoint","canShowMore"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],SQ.prototype,"observeActiveEndpoint",null);
_.W([_.J({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],SQ);
_.B(SQ,"ytd-guide-collapsible-entry-renderer",function(){if(vs5!==void 0)return vs5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vs5=v},{mode:_.mV("kevlar_poly_si_batch_j079")?1:2});var Ved;var Ess;var zU=function(){var v=_.z.apply(this,arguments)||this;v.allVideosCount=0;v.renderGuideEntry=!1;return v};
_.f(zU,_.z);zU.prototype.observeRenderEntry=function(){var v;this.renderGuideEntry=!((v=this.data)==null||!v.alwaysShow)||!!this.allVideosCount};
zU.prototype.observeRenderEntry=zU.prototype.observeRenderEntry;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],zU.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zU.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],zU.prototype,"activeEndpoint",void 0);_.W([_.q({selector:_.u40}),_.X("design:type",Object)],zU.prototype,"allVideosCount",void 0);
_.W([_.q(),_.X("design:type",Object)],zU.prototype,"renderGuideEntry",void 0);_.W([_.wg("allVideosCount","data.alwaysShow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],zU.prototype,"observeRenderEntry",null);_.W([_.J({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],zU);
_.B(zU,"ytd-guide-downloads-entry-renderer",function(){if(Ess===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);Ess=v}v=Ess;return v},{mode:1});var Jh=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return v};
_.f(Jh,_.z);_.K=Jh.prototype;_.K.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]]"}}}}}};
_.K.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var v=this.sectionItems.children,Q=0,V=v.length;Q<V;Q++)v[Q].activeEndpoint=this.activeEndpoint}};
_.K.handleAddToGuideSectionAction=function(v){var Q=_.y(v,Mnn);if(Q&&this.data&&(v=Q.items,Q=Q.handlerData,v&&Q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Q)>-1)){Q=0;for(var V=v.length;Q<V;Q++)v[Q].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,v[Q])}};
_.K.handleRemoveFromGuideSectionAction=function(v){var Q=_.y(v,OTh);Q&&this.data&&(v=Q.guideEntryId,Q=Q.handlerData,v&&Q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Q)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(v,this.data.sectionItems),this.removeFromCollapsedSection(v,this.data.sectionItems)))};
_.K.removeFromExpandedSection=function(v,Q){v=this.getEntryIndexMatchingId(v,Q);v!==-1&&this.splice("data.sectionItems",v,1)};
_.K.removeFromCollapsedSection=function(v,Q){var V=Q.findIndex(function(E){return!!_.y(E,WMs)});
V&&V!==-1&&Q[V]&&_.y(Q[V],WMs)&&(Q=_.y(Q[V],WMs).expandableItems)&&(v=this.getEntryIndexMatchingId(v,Q),v!==-1&&this.splice("data.sectionItems."+V+".guideCollapsibleEntryRenderer.expandableItems",v,1))};
_.K.getEntryIndexMatchingId=function(v,Q){var V=this;return Q.findIndex(function(E){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===v})};
Jh.prototype.activeEndpointChanged=Jh.prototype.activeEndpointChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Jh.prototype,"actionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#section-items"),_.X("design:type",HTMLDivElement)],Jh.prototype,"sectionItems",void 0);
_.W([_.Z7("#header-entry"),_.X("design:type",Object)],Jh.prototype,"headerEntry",void 0);_.W([_.q(),_.X("design:type",Object)],Jh.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Jh.prototype,"activeEndpoint",void 0);_.W([_.ph("activeEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jh.prototype,"activeEndpointChanged",null);_.W([_.J({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Jh);
_.B(Jh,"ytd-guide-collapsible-section-entry-renderer",function(){if(Ved===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);Ved=v}v=Ved;return v},{mode:1});var bk7;var FZ0;var Ny=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return v};
_.f(Ny,_.z);_.K=Ny.prototype;
_.K.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}}}}};
_.K.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var v=_.Un(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);v&&v.length===1&&v[0]&&_.Un(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.K.handleResetChannelUnreadCountCommand=function(v){var Q;(v=(Q=_.y(v,RFm))==null?void 0:Q.channelId)&&this.data&&this.data.items&&(Q=this.getPathToEntryMatchingId(v))&&(this.set(Q+".guideEntryRenderer.count",0),this.set(Q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.K.handleResetSubscriptionsUnreadDotCommand=function(v){var Q,V=(Q=_.y(v,nqm))==null?void 0:Q.targetId,E;V&&(E=this.data)!=null&&E.items&&(v=this.data.items.findIndex(function(b){var F;return((F=b.guideEntryRenderer)==null?void 0:F.targetId)===V}),v<0||this.set("data.items."+v+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.K.getPathToEntryMatchingId=function(v){if(this.data&&this.data.items){var Q=this.getEntryIndexMatchingId(v,this.data.items);if(Q>-1)return"data.items."+Q;for(var V=0;V<this.data.items.length;V++)if(Q=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[V]))if(Q=this.getEntryIndexMatchingId(v,Q),Q>-1)return"data.items."+V+".guideCollapsibleEntryRenderer.expandableItems."+Q}};
_.K.handleAddToGuideSectionAction=function(v){var Q=this;if(_.y(v,Mnn)){var V=_.y(v,Mnn).items;v=_.y(v,Mnn).handlerData;var E,b;if(V&&v&&((E=this.data)==null?void 0:(b=E.handlerDatas)==null?void 0:b.indexOf(v))>-1){V=V.filter(function(t){return(t=Q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",t))&&!Q.isGuideItemPresent(t)});
var F;if(v==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((F=this.data)==null?0:F.items)&&(E=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),E>-1)){this.splice.apply(this,["data.items",E+1,0].concat(_.ui(V)));return}this.unshift.apply(this,["data.items"].concat(_.ui(V)))}}};
_.K.isGuideItemPresent=function(v){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(v,this.data.items)!==-1)return!0;var Q=this.data.items.find(function(V){return!!V.guideCollapsibleEntryRenderer});
if((Q==null?0:Q.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(v,Q.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.K.getEntryIndexMatchingId=function(v,Q){var V=this;return Q.findIndex(function(E){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===v})};
_.K.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(v,Q){var V=this;return Q.findIndex(function(E){return V.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===v})};
_.K.handleRemoveFromGuideSectionAction=function(v){if(_.y(v,OTh)){var Q=_.y(v,OTh).guideEntryId;v=_.y(v,OTh).handlerData;var V,E;Q&&v&&((V=this.data)==null?void 0:(E=V.handlerDatas)==null?void 0:E.indexOf(v))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(Q,this.data.items),this.removeFromCollapsedSection(Q,this.data.items))}};
_.K.removeFromExpandedSection=function(v,Q){v=this.getEntryIndexMatchingId(v,Q);v!==-1&&this.splice("data.items",v,1)};
_.K.removeFromCollapsedSection=function(v,Q){var V=Q.findIndex(function(E){return!!E.guideCollapsibleEntryRenderer});
V!==-1&&(Q=Q[V].guideCollapsibleEntryRenderer.expandableItems)&&(v=this.getEntryIndexMatchingId(v,Q),v!==-1&&this.splice("data.items."+V+".guideCollapsibleEntryRenderer.expandableItems",v,1))};
_.K.activeEndpointChanged=function(){for(var v=_.m9(this.hostElement).querySelector("#items").children,Q=0,V=v.length;Q<V;Q++)v[Q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.K.guideOpenedChanged=function(){for(var v=_.m9(this.hostElement).querySelector("#items").children,Q=0,V=v.length;Q<V;Q++)v[Q].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Ny.prototype.guideOpenedChanged=Ny.prototype.guideOpenedChanged;Ny.prototype.activeEndpointChanged=Ny.prototype.activeEndpointChanged;Ny.prototype.persistentGuideChanged=Ny.prototype.persistentGuideChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Ny.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],Ny.prototype,"ytLazyListBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],Ny.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ny.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",String)],Ny.prototype,"type",void 0);_.W([_.q({value:20}),_.X("design:type",Number)],Ny.prototype,"initialCount",void 0);_.W([_.q({value:10}),_.X("design:type",Number)],Ny.prototype,"targetFramerate",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],Ny.prototype,"autoFill",void 0);_.W([_.q({value:50}),_.X("design:type",Number)],Ny.prototype,"renderDelay",void 0);
_.W([_.ph("guidePersistentAndVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ny.prototype,"persistentGuideChanged",null);_.W([_.wg("activeEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ny.prototype,"activeEndpointChanged",null);_.W([_.wg("guideOpened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Ny.prototype,"guideOpenedChanged",null);
_.W([_.J({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Ny);
_.B(Ny,"ytd-guide-section-renderer",function(){if(FZ0!==void 0)return FZ0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return FZ0=v},{mode:_.mV("kevlar_poly_si_batch_j073")?1:2});var KZd;var xt=function(){return _.z.apply(this,arguments)||this};
_.f(xt,_.z);_.hr.Object.defineProperties(xt.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xt.prototype,"rendererBehaviors",void 0);_.W([_.q(),_.X("design:type",Object)],xt.prototype,"data",void 0);_.W([_.q(),_.O("data.signInButton.buttonRenderer.style"),_.X("design:type",Object),_.X("design:paramtypes",[])],xt.prototype,"alignByText",null);_.W([_.J({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],xt);
_.B(xt,"ytd-guide-signin-promo-renderer",function(){if(KZd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);KZd=v}v=KZd;return v},{mode:1});var Bi=function(){var v=_.z.apply(this,arguments)||this;v.showFooter=!1;return v};
_.f(Bi,_.z);Bi.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}}}}};
Bi.prototype.attached=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1){Q=_.ht().resolve(_.d$(_.K1));if(!Q)return V.jumpTo(0);Q.setGuideData(v.hostElement);return V.yield(0,3)}v.ytLazyListBehavior.initialCount=2;return V.return()})};
Bi.prototype.onMouseExit=function(){_.Y("web_guide_hover_expansion")&&_.Un(this.hostElement,"yt-guide-mouseleaved",[])};
Bi.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Bi.prototype.dataChanged=Bi.prototype.dataChanged;Bi.prototype.onMouseExit=Bi.prototype.onMouseExit;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Bi.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.yU.YtLazyListBehavior),_.X("design:type",Object)],Bi.prototype,"ytLazyListBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Bi.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Bi.prototype,"showFooter",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],Bi.prototype,"autoFill",void 0);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Bi.prototype,"onMouseExit",null);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Bi.prototype,"dataChanged",null);_.W([_.J({is:"ytd-guide-renderer",disableElementRegistration:!0})],Bi);
_.B(Bi,"ytd-guide-renderer",function(){if(bk7!==void 0)return bk7;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return bk7=v},{mode:_.mV("kevlar_poly_si_batch_j073")?1:2});var iks;var gf=function(){var v=_.z.apply(this,arguments)||this;v.systemIcons=_.Y("kevlar_system_icons");v.frostedGlass=_.Y("web_frosted_glass");v.getEndpointForm=function(){return zLs(v.data)};
return v};
_.f(gf,_.z);_.K=gf.prototype;_.K.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0");this.JSC$20818_sheetController=_.ht().resolve(_.Iu)};
_.K.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.j0(this.data.formattedTitle))};
_.K.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.K.onDown=function(){this.interaction.triggerDown()};
_.K.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var v;if((v=this.JSC$20818_sheetController)!=null){var Q=this.mouseEnterCallback.bind(this),V=this.mouseLeaveCallback.bind(this);v.hoverEnterCallback=Q!=null?Q:void 0;v.hoverLeaveCallback=V!=null?V:void 0}}};
_.K.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.K.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.K.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.K.onUp=function(){this.interaction.triggerUp()};
_.K.onTap=function(v){if(this.data.serviceEndpoint){var Q;if(_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((Q=_.y(this.data.serviceEndpoint,_.PH))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(_.y(this.data.serviceEndpoint,_.h2)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);v.preventDefault();return}S75(this.data.serviceEndpoint,this)}v.preventDefault()}else{var V;((V=this.data)==
null?0:V.navigationEndpoint)&&!_.j$(_.uK(v),this.hostElement,["A".toString()])&&_.Hj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.K.computeActive=function(v,Q){if(!v)return!1;var V=v.navigationEndpoint;v=v.serviceEndpoint;if(!V&&!v||!Q)return!1;if(V){v=_.y(V,_.tn);var E=_.y(Q,_.tn);if(v&&E)return v.browseId===E.browseId&&v.params===E.params;var b;V=(b=_.y(V.commandMetadata,_.Kt))==null?void 0:b.url;var F;Q=(F=_.y(Q.commandMetadata,_.Kt))==null?void 0:F.url;return!(!V||!Q||V!==Q&&V!==_.OG(Q))}return this.isActiveShortsTab(v,Q)};
_.K.isActiveShortsTab=function(v,Q){Q=!!_.y(Q,_.PH)||!!_.y(Q,_.EO);return(!!_.y(v,_.PH)||!!_.y(v,_.EO))&&Q};
_.K.computeTitle=function(v,Q){return Q?"":_.j0(v)};
_.hr.Object.defineProperties(gf.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
gf.prototype.onTap=gf.prototype.onTap;gf.prototype.onUp=gf.prototype.onUp;gf.prototype.onMouseLeave=gf.prototype.onMouseLeave;gf.prototype.onMouseEnter=gf.prototype.onMouseEnter;gf.prototype.onDown=gf.prototype.onDown;gf.prototype.onActiveStateChange=gf.prototype.onActiveStateChange;gf.prototype.dataChanged=gf.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],gf.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.XU),_.X("design:type",Object)],gf.prototype,"ironButtonState",void 0);_.W([_.q(),_.X("design:type",Object)],gf.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],gf.prototype,"activeEndpoint",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],gf.prototype,"noLabels",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.X("design:type",Boolean)],gf.prototype,"isActive",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],gf.prototype,"systemIcons",void 0);_.W([_.Z7("yt-interaction"),_.X("design:type",Object)],gf.prototype,"interaction",void 0);_.W([_.O("isActive"),_.X("design:type",Object),_.X("design:paramtypes",[])],gf.prototype,"ariaSelected",null);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],gf.prototype,"frostedGlass",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gf.prototype,"dataChanged",null);_.W([_.ph("isActive"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gf.prototype,"onActiveStateChange",null);_.W([_.tM("down"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gf.prototype,"onDown",null);
_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[MouseEvent]),_.X("design:returntype")],gf.prototype,"onMouseEnter",null);_.W([_.tM("mouseleave"),_.X("design:type",Function),_.X("design:paramtypes",[MouseEvent]),_.X("design:returntype")],gf.prototype,"onMouseLeave",null);_.W([_.tM("up"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],gf.prototype,"onUp",null);
_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],gf.prototype,"onTap",null);_.W([_.J({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],gf);
_.B(gf,"ytd-mini-guide-entry-renderer",function(){if(iks!==void 0)return iks;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return iks=v},{mode:_.mV("kevlar_poly_si_batch_j063")?1:2});var LZh;var s1=function(){var v=_.z.apply(this,arguments)||this;v.allVideosCount=0;v.noLabels=_.Y("kevlar_mini_guide_no_labels")||_.Y("kevlar_modern_mini_guide");v.frostedGlass=_.Y("web_frosted_glass");return v};
_.f(s1,_.z);_.K=s1.prototype;_.K.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.K.onMouseEnter=function(){_.Y("web_guide_hover_expansion")&&_.Un(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.K.visibleChanged=function(){if(this.visible&&!this.data){var v=_.ht().resolve(_.d$(_.K1));v&&v.setGuideData(this.hostElement)}};
_.K.dataChanged=function(){var v=_.Y("kevlar_guide_menu_on_hover")&&_.Y("kevlar_modern_mini_guide"),Q=_.Y("kevlar_guide_menu_on_click")&&_.Y("kevlar_modern_mini_guide"),V;var E=(V=this.data)==null?void 0:V.items;V=this.allVideosCount;var b=[];v=v?0:Q?1:void 0;Q=v!==void 0;if(E){for(var F=[],t=_.L(E),p=t.next();!p.done;p=t.next())if(p=p.value,p.guideSubscriptionsSectionRenderer){var Z=void 0;F=((Z=p.guideSubscriptionsSectionRenderer)==null?void 0:Z.items)||[]}E=_.L(E);for(t=E.next();!t.done;t=E.next())if(t=
t.value,p=void 0,(p=t.guideSectionRenderer)==null?0:p.items)for(p=void 0,t=_.L((p=t.guideSectionRenderer)==null?void 0:p.items),p=t.next();!p.done;p=t.next()){p=p.value;var d=void 0,w=void 0;Z=p.guideEntryRenderer||_.y((d=p)==null?void 0:(w=d.guideCollapsibleSectionEntryRenderer)==null?void 0:w.headerEntry,JIh);d=[];w=[];var A=void 0;if(((A=Z)==null?void 0:A.targetId)==="subscriptions-guide-item")d=F;else{var k=A=void 0;if((A=p)==null?0:(k=A.guideCollapsibleSectionEntryRenderer)==null?0:k.sectionItems)w=
d=p.guideCollapsibleSectionEntryRenderer.sectionItems}NBn(b,Z,Q?d:[],v);if(w.length>0)for(p=_.L(w),Z=p.next();!Z.done;Z=p.next())Z=Z.value,w=_.y(Z,oq0),d=void 0,w=w&&(w.alwaysShow||V)?_.y((d=w)==null?void 0:d.entryRenderer,JIh):_.y(Z,JIh),NBn(b,w,[])}}this.miniGuideItems=b};
_.K.activeEndpointChanged=function(){for(var v=this.items.children,Q=0;Q<v.length;Q++)v[Q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.K.registerWithViewTransitionManager=function(){var v=this;_.go(_.XT,function(){var Q=_.ht().resolve(_.d$(_.aw));if(Q&&Q.isAnyTransitionEnabled){var V={};Q.viewTransitionCoordinator.registerElement(v.hostElement,(V.slide="mini-guide-page-transition",V))}})};
s1.prototype.activeEndpointChanged=s1.prototype.activeEndpointChanged;s1.prototype.dataChanged=s1.prototype.dataChanged;s1.prototype.visibleChanged=s1.prototype.visibleChanged;s1.prototype.onMouseEnter=s1.prototype.onMouseEnter;_.W([_.M(_.QU),_.X("design:type",Object)],s1.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],s1.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],s1.prototype,"ytComponentBehavior",void 0);_.W([_.Z7("#items"),_.X("design:type",Object)],s1.prototype,"items",void 0);_.W([_.q(),_.X("design:type",Object)],s1.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Boolean)],s1.prototype,"visible",void 0);_.W([_.q(),_.X("design:type",Object)],s1.prototype,"miniGuideItems",void 0);_.W([_.q({selector:_.u40}),_.X("design:type",Object)],s1.prototype,"allVideosCount",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],s1.prototype,"noLabels",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],s1.prototype,"frostedGlass",void 0);
_.W([_.tM("mouseenter"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],s1.prototype,"onMouseEnter",null);_.W([_.wg("visible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],s1.prototype,"visibleChanged",null);_.W([_.wg("data","allVideosCount"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],s1.prototype,"dataChanged",null);
_.W([_.wg("activeEndpoint"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],s1.prototype,"activeEndpointChanged",null);_.W([_.J({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],s1);
_.B(s1,"ytd-mini-guide-renderer",function(){if(LZh===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);LZh=v}v=LZh;return v},{mode:1});var tes;var p$q=/^[\x00-\x7F]+$/,uW=function(){return _.z.apply(this,arguments)||this};
_.f(uW,_.z);_.hr.Object.defineProperties(uW.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var v,Q=_.j0((v=this.data)==null?void 0:v.handle);if(Q)return _.u3("@"+Q)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var v=_.j0(this.displayHandle),Q,V=_.j0((Q=this.data)==null?void 0:Q.handleUrl);if(v&&V)return _.u3(V+v)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var v=_.j0(this.displayHandle);if(v&&!p$q.test(v)){var Q;return(Q=this.data)==null?void 0:Q.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var v=_.j0(this.displayHandleUrl),Q,V=_.j0((Q=this.data)==null?void 0:Q.urlInfoText);if(v&&V)return _.u3(V+" "+v)}}});
_.W([_.q(),_.X("design:type",Object)],uW.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],uW.prototype,"displayHandle",null);_.W([_.O("displayHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],uW.prototype,"displayHandleUrl",null);_.W([_.O("displayHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],uW.prototype,"warningText",null);
_.W([_.O("displayHandleUrl"),_.X("design:type",Object),_.X("design:paramtypes",[])],uW.prototype,"urlInfoTextWithUrl",null);_.W([_.J({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],uW);
_.B(uW,"ytd-handles-claiming-confirm-dialog-content",function(){if(tes!==void 0)return tes;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tes=v},{mode:1});var eGh;var jQ=function(){var v=_.z.apply(this,arguments)||this;v.okButtonOverride={style:"mono",type:"outline",size:"M"};return v};
_.f(jQ,_.z);jQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jQ.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jQ.prototype,"okButtonOverride",void 0);_.W([_.q(),_.X("design:type",Object)],jQ.prototype,"data",void 0);_.W([_.J({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],jQ);
_.B(jQ,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(eGh!==void 0)return eGh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return eGh=v},{mode:1});var Zkh;var P$8=/^[\x00-\x7F]+$/,Wi=function(){var v=_.z.apply(this,arguments)||this;v.isLoading=!1;return v};
_.f(Wi,_.z);Wi.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var v;this.selectedHandle=(v=this.handleInput)==null?void 0:v.value;this.onSelectedHandleChanged(this.selectedHandle);_.Un(this.hostElement,"yt-refit-popups-action")}};
_.hr.Object.defineProperties(Wi.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.u3("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.u3(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!P$8.test(this.selectedHandle)){var v;return(v=this.data)==null?void 0:v.warningText}}}});
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Wi.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Wi.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],Wi.prototype,"selectedHandle",void 0);_.W([_.q(),_.X("design:type",Object)],Wi.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Function)],Wi.prototype,"onSelectedHandleChanged",void 0);_.W([_.Z7("#channel-handle-input"),_.X("design:type",Object)],Wi.prototype,"handleInput",void 0);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Wi.prototype,"handleUrlPrefix",null);_.W([_.O("selectedHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Wi.prototype,"displayHandle",null);_.W([_.O("selectedHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Wi.prototype,"displayHandleUrl",null);_.W([_.O("selectedHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],Wi.prototype,"warningText",null);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.W([_.J({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Wi);
_.B(Wi,"ytd-handles-claiming-edit-dialog-content",function(){if(Zkh!==void 0)return Zkh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Zkh=v},{mode:1});var daj;var ov=function(){var v=_.z.apply(this,arguments)||this;v.actionButtonOverride={style:"mono",type:"filled",size:"M"};v.cancelButtonOverride={style:"mono",type:"text",size:"M"};v.selectButtonDisabled=!1;v.isLoading=!1;v.hasSelectedHandleEventListener=!1;v.selectedHandleChanged=function(Q){v.selectedHandle=Q};
return v};
_.f(ov,_.z);_.K=ov.prototype;_.K.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.K.onDataChanged=function(){var v,Q;this.selectedHandle=(Q=_.y((v=this.data)==null?void 0:v.inputField,ykY))==null?void 0:Q.handle};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onCancel=function(){this.selectedHandle="";_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.onSelectHandle=function(){var v=this;if(this.selectedHandle!==void 0){var Q;((Q=this.data)==null?void 0:Q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,E){if(E.newHandleUpdateStatus!==void 0&&E.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&E.newHandleUpdateStatus.errorMessage)_.NJ(v.hostElement,_.j0(E.newHandleUpdateStatus.errorMessage)),
v.isLoading=!1;else{var b;if((b=v.data)==null?0:b.onChannelUpdateSuccess){V=v.data.onChannelUpdateSuccess;var F,t;if(E=(F=_.y(V,_.sv))==null?void 0:(t=F.popup)==null?void 0:t.handlesClaimingConfirmDialogRenderer)E.handle=_.u3(v.selectedHandle);v.ytComponentBehavior.resolveCommand(V);_.mb(v.hostElement,"yt-close-popup-action",[v.is])}else v.isLoading=!1}},
onServerError:function(){var V;v.content&&((V=v.content)==null?0:V.handleInput)&&v.content.handleInput.validate();v.isLoading=!1;_.NJ(v.hostElement,_.Lt("TRY_AGAIN_LATER"))}}}))}};
_.K.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
ov.prototype.onDataChanged=ov.prototype.onDataChanged;ov.prototype.onSelectedHandleChanged=ov.prototype.onSelectedHandleChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"actionButtonOverride",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"cancelButtonOverride",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",String)],ov.prototype,"selectedHandle",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"selectButtonDisabled",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"hasSelectedHandleEventListener",void 0);_.W([_.q(),_.X("design:type",Object)],ov.prototype,"handleInput",void 0);
_.W([_.ph("selectedHandle"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ov.prototype,"onSelectedHandleChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ov.prototype,"onDataChanged",null);_.W([_.Z7("ytd-handles-claiming-edit-dialog-content"),_.X("design:type",Object)],ov.prototype,"content",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.W([_.J({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ov);
_.B(ov,"ytd-handles-claiming-edit-dialog-renderer",function(){if(daj!==void 0)return daj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return daj=v},{mode:1});var hGd;var XV=function(){return _.z.apply(this,arguments)||this};
_.f(XV,_.z);_.hr.Object.defineProperties(XV.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.handle){var Q;return _.u3("@"+_.j0((Q=this.data)==null?void 0:Q.handle))}}}});
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],XV.prototype,"formattedHandle",null);_.W([_.q(),_.X("design:type",Object)],XV.prototype,"data",void 0);_.W([_.J({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],XV);
_.B(XV,"ytd-handles-claiming-radio-option-renderer",function(){if(hGd!==void 0)return hGd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return hGd=v},{mode:1});var w$h;var AWn=/^[\x00-\x7F]+$/,av=function(){var v=_.z.apply(this,arguments)||this;v.initialRadioIndex="-1";v.isLoading=!1;v.maybeSubmitFeedback=function(){v.feedbackSurveyRenderer.submitSurvey()};
return v};
_.f(av,_.z);av.prototype.updateSelectedHandleIndexFromBinding=function(v){this.selectedRadioIndex=+v.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(v)};
av.prototype.selectedHandleChanged=function(v){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var Q;this.selectedHandle=(Q=this.handleInput)==null?void 0:Q.value;this.onSelectedHandleChanged(v)}};
_.hr.Object.defineProperties(av.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var v;return this.ytRendererBehavior.getSimpleString((v=this.data)==null?void 0:v.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.u3("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.u3(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!AWn.test(this.selectedHandle)){var v;return(v=this.data)==null?void 0:v.warningText}}}});
_.W([_.q(),_.X("design:type",Object)],av.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],av.prototype,"initialRadioIndex",void 0);_.W([_.q(),_.X("design:type",Number)],av.prototype,"selectedRadioIndex",void 0);_.W([_.q(),_.X("design:type",String)],av.prototype,"selectedHandle",void 0);_.W([_.q(),_.X("design:type",Object)],av.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Function)],av.prototype,"onSelectedHandleChanged",void 0);
_.W([_.q(),_.X("design:type",Function)],av.prototype,"onSelectedRadioIndexChanged",void 0);_.W([_.Z7("#channel-handle-input"),_.X("design:type",Object)],av.prototype,"handleInput",void 0);_.W([_.Z7("ytd-feedback-survey-renderer"),_.X("design:type",Object)],av.prototype,"feedbackSurveyRenderer",void 0);_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],av.prototype,"radioButtonLength",null);
_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],av.prototype,"handleUrlPrefix",null);_.W([_.O("selectedHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],av.prototype,"displayHandle",null);_.W([_.O("selectedHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],av.prototype,"displayHandleUrl",null);_.W([_.O("selectedHandle"),_.X("design:type",Object),_.X("design:paramtypes",[])],av.prototype,"warningText",null);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.W([_.J({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],av);
_.B(av,"ytd-handles-claiming-select-dialog-content",function(){if(w$h!==void 0)return w$h;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return w$h=v},{mode:1});var kW0;var rf=function(){var v=_.z.apply(this,arguments)||this;v.actionButtonOverride={style:"mono",type:"filled",size:"M"};v.cancelButtonOverride={style:"mono",type:"text",size:"M"};v.initialRadioIndex="-1";v.selectButtonDisabled=!1;v.isLoading=!1;v.selectedRadioIndexChanged=function(Q){v.selectedRadioIndex=Number(Q.detail.value)};
v.selectedHandleChanged=function(Q){v.selectedHandle=Q.detail.value};
return v};
_.f(rf,_.z);_.K=rf.prototype;_.K.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.K.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.K.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Un(this.hostElement,"yt-refit-popups-action")};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.onSelectHandle=function(){var v=this;if(this.selectedHandle!==void 0){var Q;((Q=this.data)==null?void 0:Q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,E){if(E.newHandleUpdateStatus!==void 0&&E.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&E.newHandleUpdateStatus.errorMessage)_.NJ(v.hostElement,_.j0(E.newHandleUpdateStatus.errorMessage)),
v.isLoading=!1;else{var b;if((b=v.data)==null?0:b.onChannelUpdateSuccess){V=v.data.onChannelUpdateSuccess;E=_.y(V,_.sv);var F;if(E==null?0:(F=E.popup)==null?0:F.handlesClaimingConfirmDialogRenderer)E.popup.handlesClaimingConfirmDialogRenderer.handle=_.u3(v.selectedHandle);v.ytComponentBehavior.resolveCommand(V);_.mb(v.hostElement,"yt-close-popup-action",[v.is])}else v.isLoading=!1}},
onServerError:function(){if(v.selectedRadioIndex===v.radioButtonLength){var V;v.content&&((V=v.content)==null?0:V.handleInput)&&v.content.handleInput.validate()}v.isLoading=!1;_.NJ(v.hostElement,_.Lt("TRY_AGAIN_LATER"))}}}))}};
_.K.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var v,Q;this.selectedHandle=(v=this.content)==null?void 0:(Q=v.handleInput)==null?void 0:Q.value}else this.selectedRadioIndex>=0&&((v=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(v==null?void 0:v.handle):this.selectedHandle=void 0)};
_.K.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.K.getRadioItem=function(v){if(this.radioButtonLength>v&&v>=0)return _.y(this.data.radioButton[v],xhh)};
_.hr.Object.defineProperties(rf.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.radioButton)||[]).length}}});
rf.prototype.onSelectedHandleChanged=rf.prototype.onSelectedHandleChanged;rf.prototype.onSelectedHandleIndexChanged=rf.prototype.onSelectedHandleIndexChanged;rf.prototype.onDataChanged=rf.prototype.onDataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],rf.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],rf.prototype,"actionButtonOverride",void 0);_.W([_.q(),_.X("design:type",Object)],rf.prototype,"cancelButtonOverride",void 0);
_.W([_.q(),_.X("design:type",Object)],rf.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],rf.prototype,"initialRadioIndex",void 0);_.W([_.q(),_.X("design:type",Number)],rf.prototype,"selectedRadioIndex",void 0);_.W([_.q(),_.X("design:type",String)],rf.prototype,"selectedHandle",void 0);_.W([_.q(),_.X("design:type",Object)],rf.prototype,"selectButtonDisabled",void 0);_.W([_.q(),_.X("design:type",Object)],rf.prototype,"isLoading",void 0);
_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],rf.prototype,"radioButtonLength",null);_.W([_.Z7("ytd-handles-claiming-select-dialog-content"),_.X("design:type",Object)],rf.prototype,"content",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rf.prototype,"onDataChanged",null);
_.W([_.ph("selectedRadioIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rf.prototype,"onSelectedHandleIndexChanged",null);_.W([_.ph("selectedHandle"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],rf.prototype,"onSelectedHandleChanged",null);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.J({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],rf);
_.B(rf,"ytd-handles-claiming-select-dialog-renderer",function(){if(kW0!==void 0)return kW0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return kW0=v},{mode:1});var TPq;var YtY;var $t=function(){return _.z.apply(this,arguments)||this};
_.f($t,_.z);$t.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$t.prototype,"data",void 0);_.W([_.J({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],$t);
_.B($t,"ytd-hotkey-dialog-section-option-renderer",function(){if(YtY!==void 0)return YtY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return YtY=v},{mode:1});var yWm;var Iv=function(){return _.z.apply(this,arguments)||this};
_.f(Iv,_.z);Iv.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Iv.prototype,"data",void 0);_.W([_.J({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Iv);
_.B(Iv,"ytd-hotkey-dialog-section-renderer",function(){if(yWm!==void 0)return yWm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return yWm=v},{mode:1});var Hi=function(){return _.z.apply(this,arguments)||this};
_.f(Hi,_.z);Hi.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Hi.prototype,"data",void 0);_.W([_.J({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Hi);
_.B(Hi,"ytd-hotkey-dialog-content",function(){if(TPq!==void 0)return TPq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return TPq=v},{mode:1});var cW5;var mY=function(){return _.z.apply(this,arguments)||this};
_.f(mY,_.z);mY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var v=document.querySelector("ytd-hotkey-dialog-content #scrollable");v&&(v.dialogElement=this.hostElement.parentElement)};
mY.prototype.onCloseTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mY.prototype,"data",void 0);_.W([_.J({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],mY);
_.B(mY,"ytd-hotkey-dialog-renderer",function(){if(cW5!==void 0)return cW5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return cW5=v},{mode:1});var fK$;var U1=function(){return _.z.apply(this,arguments)||this};
_.f(U1,_.z);U1.prototype.onYtServiceRequestError=function(){if(this.blocked){var v;var Q=(v=this.data)==null?void 0:v.defaultServiceEndpoint}else{var V;Q=(V=this.data)==null?void 0:V.toggledServiceEndpoint}var E;(Q=(E=_.y(Q,_.l28))==null?void 0:E.onFailureAction)&&this.ytComponentBehavior.resolveCommand(Q);this.updateBlockState(!this.blocked)};
U1.prototype.onYtToggleButton=function(v){this.updateBlockState(v.detail.toggled)};
U1.prototype.updateBlockState=function(v){if(v!==this.blocked){var Q=this.blockedEntityKey;Q&&this.ytdReduxBehavior.dispatch(_.dW("blockStateEntity",Q,{key:Q,blocked:v}));this.set("data.isToggled",v)}};
_.hr.Object.defineProperties(U1.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)}}});
U1.prototype.onYtToggleButton=U1.prototype.onYtToggleButton;U1.prototype.onYtServiceRequestError=U1.prototype.onYtServiceRequestError;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],U1.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],U1.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],U1.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],U1.prototype,"blockedEntityKey",void 0);
_.W([_.q({selectorArgs:["blockedEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"blockStateEntity",Q)}}),
_.X("design:type",Object)],U1.prototype,"blockStateEntity",void 0);_.W([_.O("data","blockStateEntity"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],U1.prototype,"blocked",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],U1.prototype,"onYtServiceRequestError",null);
_.W([_.tM("yt-toggle-button"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],U1.prototype,"onYtToggleButton",null);_.W([_.J({is:"ytd-block-button",disableElementRegistration:!0})],U1);
_.B(U1,"ytd-block-button",function(){if(fK$!==void 0)return fK$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return fK$=v},
{mode:1});var GWh;var C$d;var vt=function(){return _.z.apply(this,arguments)||this};
_.f(vt,_.z);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vt.prototype,"data",void 0);_.W([_.J({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],vt);
_.B(vt,"ytd-kids-blocklist-picker-item-renderer",function(){if(C$d!==void 0)return C$d;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return C$d=v},{mode:1});var Ve=function(){return _.z.apply(this,arguments)||this};
_.f(Ve,_.z);Ve.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ve.prototype,"data",void 0);_.W([_.J({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Ve);
_.B(Ve,"ytd-kids-blocklist-picker-content",function(){if(GWh!==void 0)return GWh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return GWh=
v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var Meq;var EU=function(){var v=_.z.apply(this,arguments)||this;v.hasAnyRequestSucceeded=!1;v.hasAnyRequestFailed=!1;v.numPendingRequests=0;return v};
_.f(EU,_.z);_.K=EU.prototype;_.K.attached=function(){this.hostElement.setAttribute("dialog","")};
_.K.onDoneButtonTap=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.K.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.K.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.K.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.K.onPopupClosed=function(v){var Q,V;if(((Q=v.detail)==null?void 0:(V=Q.popup)==null?void 0:V.is)==="tp-yt-paper-dialog"){var E;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((E=this.data)==null?0:E.successfulToastActionMessage)&&(v=_.aF(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(v));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
EU.prototype.onPopupClosed=EU.prototype.onPopupClosed;EU.prototype.onYtServiceRequestError=EU.prototype.onYtServiceRequestError;EU.prototype.onYtServiceRequestCompleted=EU.prototype.onYtServiceRequestCompleted;EU.prototype.onYtServiceRequestSent=EU.prototype.onYtServiceRequestSent;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],EU.prototype,"data",void 0);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],EU.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],EU.prototype,"onYtServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],EU.prototype,"onYtServiceRequestError",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],EU.prototype,"onPopupClosed",null);_.W([_.J({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],EU);
_.B(EU,"ytd-kids-blocklist-picker-renderer",function(){if(Meq!==void 0)return Meq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Meq=v},{mode:1});var Okq;var DaY;var bX=function(){return _.z.apply(this,arguments)||this};
_.f(bX,_.z);bX.prototype.setTip=function(v){var Q=this;this.data&&(this.tip=Zl7(pF7.getInstance(),v,this.data),_.PE(this,function(){_.Hj(Q.hostElement,"yt-refit")}))};
bX.prototype.clearTip=function(){this.tip=void 0};
bX.prototype.computeHidden=function(v){return!v};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],bX.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.X("design:type",Boolean)],bX.prototype,"hidden",void 0);_.W([_.q(),_.X("design:type",Object)],bX.prototype,"tip",void 0);_.W([_.J({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],bX);
_.B(bX,"ytd-menu-popup-tip-renderer",function(){if(DaY!==void 0)return DaY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);
return DaY=v},{mode:1});var RGq;var Fz=function(){var v=_.z.apply(this,arguments)||this;v.useIcons=!1;v.systemIcons=_.Y("kevlar_system_icons");return v};
_.f(Fz,_.z);_.K=Fz.prototype;_.K.onFocus=function(){var v;(v=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.K.onTap=function(){var v=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(v&&_.y(v,_.E2))this.componentBehavior.resolveCommand(v),this.updateToggledStateInEntity();else if(v){this.componentBehavior.resolveCommand(v)||_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}});var Q;((Q=_.y(v,_.F$))==null?void 0:Q.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.K.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.K.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.K.updateToggledStateInEntity=function(){var v=this.data.toggleMenuServiceItemEntityKey,Q=!this.data.isToggled;v&&this.ytdReduxBehavior.dispatch(_.dW("toggleMenuServiceItemEntity",v,{key:v,isToggled:Q}))};
_.K.computeIcon=function(v,Q,V){return(v=v?V:Q)&&v.iconType?_.VK(v.iconType):""};
_.K.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.K.isIconActive=function(v){return!_.Y("toggle_menu_active_icon_killswitch")&&v};
_.hr.Object.defineProperties(Fz.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?0:v.isToggled)?(Q=this.data)==null?void 0:Q.toggledText:(V=this.data)==null?void 0:V.defaultText}}});
Fz.prototype.toggledStateEntityChanged=Fz.prototype.toggledStateEntityChanged;Fz.prototype.onYtServiceRequestCompleted=Fz.prototype.onYtServiceRequestCompleted;Fz.prototype.onTap=Fz.prototype.onTap;Fz.prototype.onFocus=Fz.prototype.onFocus;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Fz.prototype,"componentBehavior",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],Fz.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Fz.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fz.prototype,"useIcons",void 0);_.W([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.X("design:type",String)],Fz.prototype,"icon",void 0);
_.W([_.q({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.X4.toggleMenuServiceItemEntitySelector}),_.X("design:type",Object)],Fz.prototype,"toggleMenuServiceItemEntity",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Fz.prototype,"systemIcons",void 0);_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fz.prototype,"onFocus",null);
_.W([_.O("data.isToggled"),_.X("design:type",Object),_.X("design:paramtypes",[])],Fz.prototype,"toggleButtonText",null);_.W([_.tM("tap"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fz.prototype,"onTap",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fz.prototype,"onYtServiceRequestCompleted",null);
_.W([_.ph("toggleMenuServiceItemEntity.isToggled","data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fz.prototype,"toggledStateEntityChanged",null);_.W([_.J({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Fz);
_.B(Fz,"ytd-toggle-menu-service-item-renderer",function(){if(RGq!==void 0)return RGq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return RGq=v},{mode:1});var nsh;var Kz=function(){return _.z.apply(this,arguments)||this};
_.f(Kz,_.z);Kz.prototype.onFocus=function(){var v;(v=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.hr.Object.defineProperties(Kz.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.oE(this.data.iconUrl)}}});
Kz.prototype.onFocus=Kz.prototype.onFocus;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Kz.prototype,"rendererBehavior",void 0);_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],Kz.prototype,"ytEndpointBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Kz.prototype,"data",void 0);_.W([_.tM("focus"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Kz.prototype,"onFocus",null);
_.W([_.O("data.iconUrl"),_.X("design:type",Object),_.X("design:paramtypes",[])],Kz.prototype,"imageSource",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Kz);
_.B(Kz,"ytd-menu-custom-icon-item-renderer",function(){if(nsh!==void 0)return nsh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return nsh=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});_.ad(_.to,"yt-list-item-view-model",{props:{data:_.pJ,isMenuItem:_.pJ,isCompact:_.pJ,onTap:_.Wg,trailingAccessory:_.Wg,hideSelectionTextChevron:_.pJ,disabled:_.pJ,inPopup:_.pJ,disableHorizontalPadding:_.pJ,isOverlay:_.pJ,isToggled:_.pJ,ariaLabel:_.pJ,ariaPressed:_.pJ,shouldNotFillIcon:_.pJ}});var iX=function(){var v=_.z.apply(this,arguments)||this;v.disableBackdropFilter=_.Y("web_disable_backdrop_filter");return v};
_.f(iX,_.z);_.K=iX.prototype;
_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.K.computeAriaLabel=function(v){return v};
_.K.onPopupOpened=function(){this.items.selected=0;for(var v=_.L(_.m9(this.items).children),Q=v.next();!Q.done;Q=v.next())Q.value.popupPositionTarget=this.positionTarget;if(v=this.popupTip||void 0)v.setTip(this.source||""),this.source=void 0;this.veData&&(v=_.Mo())&&_.gD(v,[this.veData])};
_.K.onPopupClosed=function(){var v=this.popupTip||void 0;v&&v.clearTip()};
_.K.onIronActivate=function(v){this.shouldPersist(v)||_.mb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(v=_.Mo())&&_.uI(v,this.veData)};
_.K.shouldPersist=function(v){var Q,V;if(((Q=v.detail)==null?void 0:Q.selected)===void 0||(V=this.data)==null||!V.items)return!1;var E,b;return!((b=(E=this.data.items[v.detail.selected])==null?void 0:E.toggleMenuServiceItemRenderer)==null||!b.persistentOnMenuPopup)};
_.K.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(v){return v.menuNavigationItemRenderer?!!v.menuNavigationItemRenderer.icon:v.menuServiceItemRenderer?!!v.menuServiceItemRenderer.icon:v.menuConditionalServiceItemRenderer?!!v.menuConditionalServiceItemRenderer.icon:v.menuConditionalNavigationItemRenderer?!!v.menuConditionalNavigationItemRenderer.icon:v.toggleMenuServiceItemRenderer?!!v.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
iX.prototype.onPopupClosed=iX.prototype.onPopupClosed;iX.prototype.onPopupOpened=iX.prototype.onPopupOpened;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],iX.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],iX.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],iX.prototype,"veData",void 0);_.W([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.X("design:type",String)],iX.prototype,"ariaLabel",void 0);_.W([_.q({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],iX.prototype,"useIcons",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],iX.prototype,"disableBackdropFilter",void 0);_.W([_.Z7("#items"),_.X("design:type",Object)],iX.prototype,"items",void 0);_.W([_.Z7("ytd-menu-popup-tip-renderer"),_.X("design:type",Object)],iX.prototype,"popupTip",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iX.prototype,"onPopupOpened",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],iX.prototype,"onPopupClosed",null);_.W([_.J({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],iX);
_.B(iX,"ytd-menu-popup-renderer",function(){if(Okq!==void 0)return Okq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Okq=v},{mode:1});var lKY;var qth=_.x(function(v){v=_.o1(v,{icon:void 0});var Q=v.data;v=v.icon;var V=function(){return Q().iconBadgeText},E={},b=_.QZ("yt-spec-icon-badge-shape",function(){a:switch(Q().iconBadgeType){case "notification":var F="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":F="yt-spec-icon-badge-shape--type-cart";break a;default:F=""}return F},function(){a:switch(Q().iconBadgeStyle){case "overlay":var F="yt-spec-icon-badge-shape--style-overlay";
break a;default:F=""}return F},(E["yt-spec-icon-badge-shape--text-size-small"]=function(){var F=V();
return!!((F==null?0:F.length)&&F.length>2)},E));
return _.P("yt-icon-badge-shape",null,_.P(_.h,{cond:v,then:function(F){return _.P("div",{class:b},_.P("div",{class:"yt-spec-icon-badge-shape__icon"},_.P(_.L_,{icon:F})),_.P(_.h,{cond:V,then:function(t){return _.P("div",{class:"yt-spec-icon-badge-shape__badge"},t)}}))}}))},"wj");
qth.idomCompat=!0;_.ad(qth,"yt-icon-badge-shape",{props:{data:_.pJ,icon:_.pJ}});var Lz=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};v.unseenCount=0;v.isOverlay=!1;return v};
_.f(Lz,_.z);_.K=Lz.prototype;_.K.attached=function(){var v=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(Q){v.onServiceWorkerMessage(Q)})};
_.K.onDataChanged=function(){this.isAttached&&!this.JSC$20905_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20905_lastData=this.data};
_.K.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.K.computeIcon=function(){var v,Q;return(v=this.data)==null?void 0:(Q=v.icon)==null?void 0:Q.iconType};
_.K.onServiceWorkerMessage=function(v){v.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.K.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.y(this.data.updateUnseenCountEndpoint,_.F$)&&_.y(this.data.updateUnseenCountEndpoint,_.F$).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.K.handleUpdateNotificationsUnseenCountAction=function(v){var Q=this;v=_.y(v,Dhh);v!=null&&v.unseenCount&&v.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(v.unseenCount),_.XT.addLowPriorityJob(function(){Q.data.updateUnseenCountEndpoint&&Q.ytComponentBehavior.resolveCommand(Q.data.updateUnseenCountEndpoint)},v.timeoutMs))};
_.K.onClick=function(){_.Hj(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var v=_.Un(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),Q=this.data.menuRequest;v&&v.length===1&&v[0]?_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.K.handleTopbarMenuClosedAction=function(v){v==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.K.toggleIconState=function(v){this.iconButton&&(this.iconButton.pressed=v)};
_.K.sendUnseenCountRequest=function(v){var Q=this;_.go(_.XT,function(){Q.ytComponentBehavior.resolveCommand(v)})};
_.K.updateCountUI=function(v){this.set("unseenCount",v<9?v:"9+")};
_.hr.Object.defineProperties(Lz.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Lz.prototype.handleUpdateNotificationsUnseenCountAction=Lz.prototype.handleUpdateNotificationsUnseenCountAction;Lz.prototype.onDataChanged=Lz.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.TX),_.X("design:type",Object)],Lz.prototype,"ytdOpenPopupBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Lz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Lz.prototype,"unseenCount",void 0);_.W([_.q(),_.X("design:type",Object)],Lz.prototype,"isOverlay",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],Lz.prototype,"showTooltips",void 0);_.W([_.Z7("yt-icon-button"),_.X("design:type",Object)],Lz.prototype,"iconButton",void 0);
_.W([_.O("unseenCount"),_.X("design:type",Object),_.X("design:paramtypes",[])],Lz.prototype,"showNotificationCount",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Lz.prototype,"onDataChanged",null);_.W([_.tM("yt-update-notifications-unseen-count-action"),_.X("design:type",Function),_.X("design:paramtypes",[Object]),_.X("design:returntype")],Lz.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.W([_.J({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Lz);
_.B(Lz,"ytd-notification-topbar-button-renderer",function(){if(lKY!==void 0)return lKY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return lKY=v},{mode:_.mV("kevlar_poly_si_batch_j025")?1:2});var Stm;var t0=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return v};
_.f(t0,_.z);t0.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}}}}}};
t0.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
t0.prototype.onDarkModeToggled=function(v){this.dark=v};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],t0.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],t0.prototype,"data",void 0);_.W([_.q({value:!0,reflectToAttribute:!0}),_.X("design:type",Boolean)],t0.prototype,"dark",void 0);
_.W([_.J({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],t0);
_.B(t0,"yt-pdg-buy-flow-header-renderer",function(){if(Stm!==void 0)return Stm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Stm=v},{mode:1});var zGs;var JW$;var pz=function(){var v=_.z.apply(this,arguments)||this;v.immediateValue=0;v.isDarkTheme=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(pz,_.z);_.K=pz.prototype;_.K.created=function(){_.QS.requestAvailability()};
_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.dataChanged=function(){var v=_.m9(this.hostElement).querySelector("#color-slider");v.immediateValue&&this.updateSliderKnobAndGradientStyles(v.immediateValue);this.data.notches[0].knobColorArgb&&_.F6(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.CF(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.r7("HTML_DIR")==="rtl"&&_.m9(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.K.onSliderImmediateChange=function(){var v=_.m9(this.hostElement).querySelector("#color-slider");v.dragging&&(v.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(v.immediateValue),this.updateSliderKnobAndGradientStyles(v.immediateValue)),this.updateSliderAria())};
_.K.onSliderChange=function(){var v=_.m9(this.hostElement).querySelector("#color-slider");v.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(v.immediateValue),this.updateSliderKnobAndGradientStyles(v.immediateValue));this.updateSliderAria()};
_.K.updateSliderAria=function(){var v=_.m9(this.hostElement).querySelector("#color-slider"),Q=_.m9(this.hostElement).querySelector("#color-slider");Q=_.j0(this.data.notches[Q.immediateValue].tierValue);_.k0o()&&_.Hj(this.hostElement,"iron-announce",{text:Q});v.setAttribute("aria-valuetext",Q)};
_.K.updateSuperThanksSelectedTierEntity=function(v){if(v!==this.immediateValue){var Q,V,E=this==null?void 0:(Q=this.data)==null?void 0:(V=Q.superThanksSelectedTierEntity)==null?void 0:V.key;E&&E.length>0&&this.ytdReduxBehavior.dispatch(_.dW("superThanksSelectedTierEntity",E,{key:E,index:v}))}};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.updateSliderKnobAndGradientStyles=function(v){this.immediateValue=v;v=this.data.notches[v];if(v==null?0:v.knobColorArgb)var Q={"--ytd-pdg-color-slider-knob-color":_.CF(v.knobColorArgb)};(v==null?0:v.linearGradientCssStyle)&&Q!==null&&(Q=Object.assign({},Q,{"--ytd-pdg-color-slider-active-color":v==null?void 0:v.linearGradientCssStyle}));Q!==null&&_.F6(this.hostElement,Q)};
pz.prototype.onSliderChange=pz.prototype.onSliderChange;pz.prototype.onSliderImmediateChange=pz.prototype.onSliderImmediateChange;pz.prototype.dataChanged=pz.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],pz.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],pz.prototype,"immediateValue",void 0);_.W([_.q(),_.X("design:type",Number)],pz.prototype,"maxMarkers",void 0);
_.W([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:gWj}),_.X("design:type",Object)],pz.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],pz.prototype,"isDarkTheme",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pz.prototype,"dataChanged",null);
_.W([_.tM("immediate-value-change"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pz.prototype,"onSliderImmediateChange",null);_.W([_.tM("change"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],pz.prototype,"onSliderChange",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],pz);
_.B(pz,"ytd-pdg-color-slider-renderer",function(){if(JW$!==void 0)return JW$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return JW$=v},{mode:1});var NPf;var xa7;var er=null;
_.fh({is:"ytd-comment-input",_template:function(){if(xa7!==void 0)return xa7;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return xa7=v},
behaviors:[_.Qwm.YtHostElementBehavior,_.zI,_.VL.YtComponentBehavior,_.T9.YtRendererstamperBehavior,_.FqQ.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 _.tj}},
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",_.Lh(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;_.yg();this.focus()},
detached:function(){document.removeEventListener("tap",_.Lh(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(v){v=v.detail;v=v.isCustomEmoji?v.shortcuts[0]:v.emojiId;var Q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Q,v);this.maybeUpdateTextDirection_();_.Hj(this.hostElement,"input")},
getInputRange_:function(){var v=_.Qt();if(v){v=v.getBrowserRangeObject();for(var Q=v.commonAncestorContainer;Q;){if(Q===this.getEditableTextArea_())return v;Q=Q.parentNode}}v=this.getEditableTextArea_();v=_.a4(v,v.childNodes.length);v.select();return v.getBrowserRangeObject()},
insertTextWithEmojis_:function(v,Q,V){(Q=this.emojiManager.createDocumentFragment(Q,!0,!1,V===void 0?!0:V))&&Q.childNodes.length!==0&&(v.collapsed||v.deleteContents(),V=Q.lastChild,v.insertNode(Q),_.dCN(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var v=_.Qt();if(v){var Q=v.JSC$11423_getStartNode(),V=v.JSC$11423_getEndNode();if(xq7(Q)&&xq7(V)){var E=v.JSC$11423_getStartOffset(),b;if(_.Fv&&Q.nodeType===Node.ELEMENT_NODE&&(b=_.Pax(Q)))_.a4(b,0).select();else{b=pX(Q)?Q:_.XH(Q,pX);var F=pX(V)?V:_.XH(V,pX);if(b||F)if(v.isCollapsed()){if(Q.nodeType===Node.TEXT_NODE){v=!0;E===Q.length&&(v=!1);if(er==="end"||er==="right")v=!1;Q=Q.parentNode;v=[].concat(_.ui(Q.parentNode.childNodes)).indexOf(Q)+(v?0:1);_.a4(Q.parentNode,
v).select()}}else b?b.previousSibling&&b.previousSibling.length>0?_.r9(V,v.JSC$11423_getEndOffset(),b.previousSibling,b.previousSibling.length-1).select():(Q=document.createTextNode("\u200b"),b.parentNode.insertBefore(Q,b),_.r9(V,v.JSC$11423_getEndOffset(),Q,0).select()):F&&(F.nextSibling&&F.nextSibling.length>0?_.r9(Q,v.JSC$11423_getStartOffset(),F.nextSibling,1).select():(V=document.createTextNode("\u200b"),F.parentNode.insertBefore(V,F.nextSibling),_.r9(Q,v.JSC$11423_getStartOffset(),V,V.length).select()));
er=null}}else er=null}else er=null},
leftKeyPressed_:function(){er="left"},
rightKeyPressed_:function(){er="right"},
endKeyPressed_:function(){er="end"},
maybeDeleteChip_:function(){var v=oK$(!0);if(v){var Q=_.Qt(),V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();_.u8(V,Q,v,v.childNodes.length).select()}},
maybeBackspaceChip_:function(){var v=oK$(!1);if(v){var Q=_.Qt(),V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();_.u8(V,Q,v,0).select()}},
maybeBackspaceChipWordMode_:function(v){var Q=_.Qt();if(Q.isCollapsed()){var V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();var E=XCI(V,Q,!0);E&&(_.u8(V,Q,E,0).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(v){var Q=_.Qt();if(Q.isCollapsed()){var V=Q.JSC$11423_getStartNode();Q=Q.JSC$11423_getStartOffset();var E=XCI(V,Q,!1);E&&(_.u8(V,Q,E,E.childNodes.length).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
onContentClick:function(v){v.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(v){v.defaultPrevented||v.currentTarget.tagName==="YTD-COMMENT-INPUT"&&pX(v.target)&&v.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.m9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.m9(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(v,Q){v=gKj(v,this.emojiManager,Q).cloneNode(!0);for(Q=v.firstChild;Q;)if(Q.nodeType!==1)Q=Q.nextSibling;else switch(Q.tagName){case "BR":var V=_.ly();_.ydq(V,Q);Q=V.nextSibling;break;case "DIV":(V=Q.lastChild)&&Q.nextSibling&&_.JZ(_.ly(),V);Q.previousSibling&&(Q.previousSibling.nodeType===1||Q.previousSibling.nodeType===3&&!Q.previousSibling.textContent.endsWith("\n"))&&_.zm(_.ly(),Q);V&&V.nodeName==="BR"&&_.ng(V);V=Q;Q.hasChildNodes()?(Q=Q.firstChild,
_.cdx(V)):(Q=Q.nextSibling,_.ng(V));break;default:Q=Q.nextSibling}return aDq(v)},
setTextAreaValue:function(v){v||(v="");var Q=this.getEditableFormattedString_();Q.text="";this.getEditableTextArea_().innerText="";typeof v==="string"&&(v={runs:[{text:v}]});Q.text=v},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();er=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var v=this.getEditableTextArea_();v&&(_.a4(v,v.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.r7("HTML_DIR")==="rtl"){var v=this.getEditableTextArea_(),Q=this.getTextAreaValue()!==""?"auto":"rtl";v.setAttribute("dir",Q)}},
handleInputEvent_:function(){var v=null;if(this.isEmojiButtonDisplayed){var Q=this.getInputRange_();Q&&(v=this.emojiInput.retrieveTextBeforeRange(Q))}this.insertText_(v,!0);this.updateCharCount_();v=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=v.scrollHeight>v.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var v=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:v})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(v){this.isEmojiButtonDisplayed&&(v.preventDefault(),v.stopImmediatePropagation(),v=v.clipboardData.getData("text/plain"),this.insertText_(v,!1,!1),_.Hj(this.hostElement,"input"))},
insertText_:function(v,Q,V){Q=Q===void 0?!1:Q;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&v){var E=this.getInputRange_().cloneRange();this.emojiManager&&E&&(Q&&this.emojiInput.offsetStartOfRangeBy(E,v.length),this.insertTextWithEmojis_(E,v,V),BBj(this.getEditableTextArea_().lastChild)||(E=this.getInputRange_().cloneRange()),E&&(this.emojiInput.updateSuggestions(E,v),this.updateSuggestionOffset_(E)))}},
getSimpleString:_.j0,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(v){return v?"focused":"not-focused"},
computePlaceholderText_:function(v){return this.getSimpleString(v)},
computeEditableText_:function(v){return this.getSimpleString(v)},
onPrefilledContentDismissed_:function(v){v.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(v,Q){v?this.fire("yt-autonav-pause-focus"):Q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(v){var Q=this.getEditableTextArea_();[].concat(_.ui(v.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(E){Q.appendChild(document.createTextNode(E))})});
v.preventDefault()},
preventDefault_:function(v){v.preventDefault()},
onSuggestionInsert_:function(v){this.insertTextWithEmojis_(v.detail.range,v.detail.text)},
onEmojiSuggestionClick_:function(v){this.emojiInput.insertSuggestion(v.detail)},
updateSuggestionOffset_:function(v){if(this.emojiInput&&_.m9(this.emojiInput).querySelector("#dropdown")){var Q=this.getEditableTextArea_().getBoundingClientRect().bottom,V=v.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Q-V)+5;Q=this.getEditableTextArea_().getBoundingClientRect().left;v=v.getBoundingClientRect().left-Q;_.m9(this.emojiInput).querySelector("#dropdown").style.marginLeft=v+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Hr("yt-post"));return this.localStorage}});var ZR=function(){var v=_.z.apply(this,arguments)||this;v.currentCommentOptionIndex=0;v.isEmojiPickerDisplayed=!1;v.emojiManager=_.tj;v.isUgcEmpty=!1;v.userGeneratedCommentChangedHandler=function(){_.Hj(v.hostElement,"ytd-pdg-user-generated-comment-changed");v.isEmojiYtdCommentInputEnabled&&(v.isUgcEmpty=!v.ytdCommentInputEl.getTextAreaValue())};
v.pasteHandler=function(Q){Q.preventDefault();Q.stopImmediatePropagation();var V;if(Q=(V=Q.clipboardData)==null?void 0:V.getData("text/plain"))V=document.getSelection().getRangeAt(0),V.collapsed||V.deleteContents(),Q=document.createTextNode(Q),V.insertNode(Q),V.selectNodeContents(Q),V.collapse(!1),Q=window.getSelection(),Q.removeAllRanges(),Q.addRange(V)};
v.onDocumentClick=function(Q){if(v.isEmojiPickerDisplayed){var V,E,b;!(Q.target instanceof Node)||(V=Q.composedPath())!=null&&V.includes(v.editableTextEl)||(E=Q.composedPath())!=null&&E.includes(v.emojiButtonEl)||(b=Q.composedPath())!=null&&b.includes(v.emojiPickerEl)||(v.isEmojiPickerDisplayed=!1)}};
return v};
_.f(ZR,_.z);_.K=ZR.prototype;_.K.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.K.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.K.detached=function(){var v;(v=this.contentEl)==null||v.removeEventListener("input",this.userGeneratedCommentChangedHandler);var Q;(Q=this.contentEl)==null||Q.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.K.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.K.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var v;this.contentEl.textContent=this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.K.reloadEmojis=function(){this.emojiPickerEl&&_.y(this.emojiPicker,_.ZHq)&&this.emojiPickerEl.updateEmojiCategories()};
_.K.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.F6(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.K.handleBackgroundColorStyling=function(){var v;if((v=this.currentCommentOption)==null?0:v.commentBackgroundColorArgb){var Q;_.F6(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.CF((Q=this.currentCommentOption)==null?void 0:Q.commentBackgroundColorArgb)})}else _.F6(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.K.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var v;(v=this.contentEl)==null||v.focus()}};
_.K.onEditButtonClick=function(v){var Q=document.getSelection();Q&&this.contentEl&&(v.stopPropagation(),v.preventDefault(),Q.selectAllChildren(this.contentEl),Q.collapseToEnd())};
_.K.onContentDrop=function(v){var Q=this;if(v.dataTransfer){v=_.L(v.dataTransfer.items);for(var V=v.next();!V.done;V=v.next())V=V.value,V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(E){var b;(b=Q.contentEl)==null||b.appendChild(document.createTextNode(E))})}};
_.K.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.K.getUserGeneratedCommentText=function(){var v,Q=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(v=this.contentEl)==null?void 0:v.textContent;return Q?Q.trim():""};
_.K.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.K.onEmojiSelect=function(v){this.ytdCommentInputEl.onEmojiSelect(v)};
_.hr.Object.defineProperties(ZR.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.currentCommentOption)==null||!v.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if(_.y((v=this.currentCommentOption)==null?void 0:v.chipRenderer,_.zcQ)){var Q;return _.y((Q=this.currentCommentOption)==null?void 0:Q.chipRenderer,_.zcQ)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var v,Q;return((v=this.data)==null?0:v.commentOptionRenderers)?_.y((Q=this.data)==null?void 0:Q.commentOptionRenderers[this.superThanksSelectedTierEntity.index],QAq):void 0}var V,E;return((V=this.data)==null?0:V.commentOptionRenderers)?_.y((E=this.data)==null?void 0:E.commentOptionRenderers[this.currentCommentOptionIndex],QAq):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var v;return this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var v;return this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.commentDialog,_.RwZ))==null?void 0:Q.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.commentDialog,_.RwZ))==null?void 0:Q.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=_.y((v=this.data)==null?void 0:v.commentDialog,_.RwZ))==null?void 0:Q.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(Q=_.y((v=this.data)==null?void 0:v.commentDialog,_.RwZ))==null?void 0:Q.emojiPicker;if(!_.y(V,_.ZHq)||!_.y(V,_.ZHq).categories)return!1;v=function(F){return F.emojiPickerCategoryRenderer?F.emojiPickerCategoryRenderer.emojiIds&&F.emojiPickerCategoryRenderer.emojiIds.length>0:F.emojiPickerUpsellCategoryRenderer?F.emojiPickerUpsellCategoryRenderer.emojis&&F.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var E,b;return((E=_.y(V,_.ZHq))==null?0:(b=E.categories)==null?0:b.find(v))?!0:!1}}});
ZR.prototype.onEmojiSelect=ZR.prototype.onEmojiSelect;ZR.prototype.dataChanged=ZR.prototype.dataChanged;ZR.prototype.currentCommentOptionChanged=ZR.prototype.currentCommentOptionChanged;_.W([_.M(_.QU),_.X("design:type",Object)],ZR.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ZR.prototype,"rendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Z7("#content-dom-if"),_.X("design:type",_.Ch)],ZR.prototype,"contentDomIfEl",void 0);_.W([_.Z7("#content-no-emojis"),_.X("design:type",HTMLElement)],ZR.prototype,"contentEl",void 0);_.W([_.Z7("#container"),_.X("design:type",HTMLElement)],ZR.prototype,"containerEl",void 0);_.W([_.Z7("#comment-chip-container"),_.X("design:type",HTMLElement)],ZR.prototype,"paidCommentChipContainerEl",void 0);_.W([_.Z7("#text-input"),_.X("design:type",HTMLElement)],ZR.prototype,"editableTextEl",void 0);
_.W([_.Z7("#emoji-button"),_.X("design:type",HTMLElement)],ZR.prototype,"emojiButtonEl",void 0);_.W([_.Z7("#emoji-picker > yt-emoji-picker-renderer"),_.X("design:type",Object)],ZR.prototype,"emojiPickerEl",void 0);_.W([_.Z7("#text-input > ytd-comment-input"),_.X("design:type",Object)],ZR.prototype,"ytdCommentInputEl",void 0);_.W([_.q(),_.X("design:type",Object)],ZR.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],ZR.prototype,"currentCommentOptionIndex",void 0);
_.W([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:gWj}),_.X("design:type",Object)],ZR.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.q(),_.X("design:type",Object)],ZR.prototype,"isEmojiPickerDisplayed",void 0);_.W([_.q(),_.X("design:type",Object)],ZR.prototype,"emojiManager",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],ZR.prototype,"isUgcEmpty",void 0);
_.W([_.ph("currentCommentOption"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZR.prototype,"currentCommentOptionChanged",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ZR.prototype,"dataChanged",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ZR.prototype,"isEmojiYtdCommentInputEnabled",null);
_.W([_.O("data.title"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"title",null);_.W([_.O("data.authorText"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"channelName",null);_.W([_.O("data.commentOptionRenderers","currentCommentOption"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ZR.prototype,"shouldShowPaidCommentChipRenderer",null);
_.W([_.O("data.commentOptionRenderers","currentCommentOption"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"paidCommentChipRenderer",null);_.W([_.O("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"currentCommentOption",null);
_.W([_.O("data.defaultCommentText","superThanksSelectedTierEntity"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"commentText",null);_.W([_.O("data.placeholderText"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"placeholderText",null);_.W([_.O("data.commentDialog.commentDialogRenderer.editableText"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"editableText",null);
_.W([_.O("data.commentDialog.commentDialogRenderer.emojiButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"emojiButton",null);_.W([_.O("data.commentDialog.commentDialogRenderer.emojiPicker"),_.X("design:type",Object),_.X("design:paramtypes",[])],ZR.prototype,"emojiPicker",null);
_.W([_.O("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],ZR.prototype,"isEmojiButtonDisplayed",null);_.W([_.tM("yt-emoji-select"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],ZR.prototype,"onEmojiSelect",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],ZR);
_.B(ZR,"ytd-pdg-comment-preview-renderer",function(){if(NPf!==void 0)return NPf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return NPf=v},{mode:2});var BPI;var Pt=function(){var v=_.z.apply(this,arguments)||this;v.selected=!1;return v};
_.f(Pt,_.z);_.K=Pt.prototype;_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.K.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.K.dataChanged=function(){this.data&&(_.Up(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.F6(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.CF(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.CF(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.K.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.K.onClick=function(){this.logClick()};
_.K.onKeyboardSelect=function(){_.Hj(this.hostElement,"tap");this.onClick()};
_.K.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Pt.prototype.onClick=Pt.prototype.onClick;Pt.prototype.selectedChanged=Pt.prototype.selectedChanged;Pt.prototype.dataChanged=Pt.prototype.dataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Pt.prototype,"componentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.zI),_.X("design:type",Object)],Pt.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.M(_.Bn),_.X("design:type",Object)],Pt.prototype,"ironSelectableBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Pt.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Pt.prototype,"shownThumbnail",void 0);_.W([_.q(),_.X("design:type",Object)],Pt.prototype,"basePriceText",void 0);_.W([_.q(),_.X("design:type",Object)],Pt.prototype,"purchaseCommand",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Pt.prototype,"selected",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pt.prototype,"dataChanged",null);_.W([_.ph("selected"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pt.prototype,"selectedChanged",null);_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pt.prototype,"onClick",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Pt);
_.B(Pt,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(BPI!==void 0)return BPI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return BPI=v},{mode:1});var d5=function(){var v=_.z.apply(this,arguments)||this;v.selectedItemIndex=0;v.buyButtonDisabled=!1;return v};
_.f(d5,_.z);_.K=d5.prototype;
_.K.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]]"}}}}}};
_.K.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var v;var Q=(v=_.y(this.data.colorSlider,vCI))==null?void 0:v.notches[this.selectedItemIndex].purchaseCommand}else{var V;Q=(V=_.y(this.data.selectableItemButtons[this.selectedItemIndex],ECh))==null?void 0:V.purchaseCommand}if(Q){v=_.y(Q,_.YmN);v.productData||(v.productData={});var E;v.productData={pdgData:{commentMessageText:(E=this.commentPreviewRenderer)==null?void 0:E.getUserGeneratedCommentText()}};
_.Hj(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(Q)}}};
_.K.dataChanged=function(){if(this.data){_.tj.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.JK8(_.tj,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.tj.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var v;this.buyButtonDisabled=!((v=_.y(this.data.commentPreview,VR5))==null||!v.placeholderText);this.updatePriceSelectorStatus();var Q;if((Q=this.data)==null?0:Q.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;v=[];this.data.preloadImages&&(v=this.data.preloadImages);
v=v.map(function(V){return _.rE(V.thumbnails,1920)});
v=_.L(v);for(Q=v.next();!Q.done;Q=v.next())(Q=Q.value)&&_.qWZ(Q).thenCatch(function(){_.Iy(Error("Il"))})}};
_.K.superThanksSelectedTierEntityChanged=function(){var v;(this==null?void 0:(v=this.superThanksSelectedTierEntity)==null?void 0:v.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.K.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.K.updatePriceSelectorStatus=function(){this.isColorSlider?(_.m9(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.m9(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.m9(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.m9(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.K.closeBuyFlow=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.K.onUserGeneratedContentChanged=function(){var v;this.buyButtonDisabled=!((v=this.commentPreviewRenderer)==null?0:v.getUserGeneratedCommentText())};
_.K.updateSelectedItemIndexFromBinding=function(v){this.selectedItemIndex=v.detail.value};
_.hr.Object.defineProperties(d5.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.disclaimerText)}}});
d5.prototype.onUserGeneratedContentChanged=d5.prototype.onUserGeneratedContentChanged;d5.prototype.closeBuyFlow=d5.prototype.closeBuyFlow;d5.prototype.selectedItemIndexChanged=d5.prototype.selectedItemIndexChanged;d5.prototype.superThanksSelectedTierEntityChanged=d5.prototype.superThanksSelectedTierEntityChanged;d5.prototype.dataChanged=d5.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],d5.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],d5.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],d5.prototype,"selectedItemIndex",void 0);_.W([_.q(),_.X("design:type",Boolean)],d5.prototype,"isColorSlider",void 0);
_.W([_.q(),_.X("design:type",Object)],d5.prototype,"buyButtonDisabled",void 0);_.W([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:gWj}),_.X("design:type",Object)],d5.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.Z7("ytd-pdg-comment-preview-renderer"),_.X("design:type",Object)],d5.prototype,"commentPreviewRenderer",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],d5.prototype,"ytdReduxBehavior",void 0);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d5.prototype,"dataChanged",null);_.W([_.ph("superThanksSelectedTierEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d5.prototype,"superThanksSelectedTierEntityChanged",null);_.W([_.ph("selectedItemIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d5.prototype,"selectedItemIndexChanged",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d5.prototype,"closeBuyFlow",null);_.W([_.tM("ytd-pdg-user-generated-comment-changed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],d5.prototype,"onUserGeneratedContentChanged",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],d5.prototype,"isDisclaimerTextShown",null);
_.W([_.J({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],d5);
_.B(d5,"yt-super-vod-buy-flow-content-renderer",function(){if(zGs!==void 0)return zGs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return zGs=v},{mode:1});var gsI;var h0=function(){var v=_.z.apply(this,arguments)||this;v.lottieAnimationRef={};return v};
_.f(h0,_.z);_.K=h0.prototype;_.K.created=function(){_.QS.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Lh(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.K.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Hj(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.K.detached=function(){this.autoCloseJobId&&_.XT.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Lh(this,this.onPopupIronOverlayOpened))};
_.K.dataChanged=function(){var v=this;this.data&&this.data.autoCloseDelay&&(_.mb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.md(_.XT,function(){v.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.F6(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.K.onDOMLoadedLottie=function(){var v=this,Q,V,E=Number((Q=this.data)==null?void 0:(V=Q.autoCloseDelay)==null?void 0:V.seconds)||0;this.fadeOutJobId=_.md(_.XT,function(){v.lottiePlayerEl.classList.add("fadeout")},(E-.25)*1E3);
this.autoCloseJobId=_.md(_.XT,function(){v.closePopup()},E*1E3)};
_.K.openPopup=function(){this.ironOverlayBehavior.open()};
_.K.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.mb(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Qk(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.ht().resolve(_.At).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.XT.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.XT.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.K.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var v,Q;(v=this.lottieAnimationRef)==null||(Q=v.lottieEl)==null||Q.destroy();v=this.data.lottie;var V,E;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:v.url+"_"+Math.random(),path:v.url,autoplay:!0,loop:(E=(V=v.settings)==null?void 0:V.loop)!=null?E:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.hr.Object.defineProperties(h0.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var v,Q;return!!((v=this.data)==null?0:(Q=v.lottie)==null?0:Q.url)}}});
h0.prototype.maybeInitializeLottie=h0.prototype.maybeInitializeLottie;h0.prototype.dataChanged=h0.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],h0.prototype,"rendererBehavior",void 0);_.W([_.M(_.Kd),_.X("design:type",Object)],h0.prototype,"ironOverlayBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],h0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],h0.prototype,"lottiePlayerProps",void 0);
_.W([_.q(),_.X("design:type",Object)],h0.prototype,"lottieAnimationRef",void 0);_.W([_.Z7("ytd-lottie-player"),_.X("design:type",HTMLElement)],h0.prototype,"lottiePlayerEl",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],h0.prototype,"dataChanged",null);_.W([_.O("data"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],h0.prototype,"hasLottieAnimation",null);
_.W([_.ph("data.lottie.url"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],h0.prototype,"maybeInitializeLottie",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],h0);
_.B(h0,"ytd-desktop-image-overlay-renderer",function(){if(gsI!==void 0)return gsI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return gsI=v},{mode:1});var s3j;var w5=function(){return _.z.apply(this,arguments)||this};
_.f(w5,_.z);_.K=w5.prototype;_.K.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"}}}}};
_.K.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",_.Lh(this,this.closePopup))};
_.K.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Lh(this,this.closePopup))};
_.K.dataChanged=function(){_.Un(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.y(this.data.header,Uh5)&&(this.hasBackgroundBanner=!!_.y(this.data.header,Uh5).backgroundBanner)};
_.K.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Lh(this,this.closePopup))};
_.K.closePopup=function(){this.data&&this.data.onCloseCommand&&_.vp(this.hostElement,[this.data.onCloseCommand])};
w5.prototype.handleBuyflowSelectionSubmitted=w5.prototype.handleBuyflowSelectionSubmitted;w5.prototype.dataChanged=w5.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],w5.prototype,"data",void 0);
_.W([_.q({value:!0,reflectToAttribute:!0}),_.X("design:type",Boolean)],w5.prototype,"hasBackgroundBanner",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w5.prototype,"dataChanged",null);_.W([_.tM("yt-pdg-buy-flow-selection-submitted"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],w5.prototype,"handleBuyflowSelectionSubmitted",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],w5);
_.B(w5,"ytd-pdg-buy-flow-renderer",function(){if(s3j!==void 0)return s3j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return s3j=v},{mode:1});var uhn;var A0=function(){var v=_.z.apply(this,arguments)||this;v.isOpen=!1;v.isPlaylistCreated=!1;return v};
_.f(A0,_.z);_.K=A0.prototype;_.K.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.K.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Hj(this.hostElement,"yt-refit")};
_.K.onCreateTap=function(){var v=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.vp(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(Q,V){if(!_.Y("killswitch_ep_in_create_playlist_response")&&(V==null?0:V.actions))for(Q=_.L(V.actions),V=Q.next();!V.done;V=Q.next())V=V.value,_.y(V,_.Gn)&&v.ytComponentBehavior.resolveCommand(V)}}]),this.isPlaylistCreated=!0)};
_.K.onKeydown=function(v){if(v.keyCode===13)this.onCreateTap()};
_.K.onServiceRequestCompleted=function(v){v.stopPropagation();_.mb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.K.computePrivacyBadge=function(v){return v?[{metadataBadgeRenderer:v}]:[]};
A0.prototype.onServiceRequestCompleted=A0.prototype.onServiceRequestCompleted;A0.prototype.onKeydown=A0.prototype.onKeydown;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],A0.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],A0.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],A0.prototype,"isOpen",void 0);
_.W([_.q(),_.X("design:type",Object)],A0.prototype,"isPlaylistCreated",void 0);_.W([_.q({value:{REQUIRED_LABEL:_.Lt("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Lt("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.X("design:type",Object)],A0.prototype,"addToStrings",void 0);_.W([_.q({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.X("design:type",Array)],A0.prototype,"privacyBadge",void 0);
_.W([_.Z7("#privacy-input"),_.X("design:type",Object)],A0.prototype,"privacyInput",void 0);_.W([_.Z7("#name-input"),_.X("design:type",Object)],A0.prototype,"nameInput",void 0);_.W([_.tM("keydown"),_.X("design:type",Function),_.X("design:paramtypes",[KeyboardEvent]),_.X("design:returntype")],A0.prototype,"onKeydown",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],A0.prototype,"onServiceRequestCompleted",null);
_.W([_.J({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],A0);
_.B(A0,"ytd-add-to-playlist-create-renderer",function(){if(uhn!==void 0)return uhn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return uhn=v},{mode:1});var j3Y;var WZm;var ki=function(){var v=_.z.apply(this,arguments)||this;v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.f(ki,_.z);ki.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
ki.prototype.onCheckboxChange=function(v){var Q=this;this.data&&_.Nf(this,"yt-playlist-checkbox-changed",function(){var V=_.jV(v).checked?Q.data.addToPlaylistServiceEndpoint:Q.data.removeFromPlaylistServiceEndpoint;V&&_.ht().resolve(_.At).resolveCommand(V,{form:{element:Q.hostElement}});_.Y("dl_playlist_killswitch")||Q.transferState!=="TRANSFER_STATE_UNKNOWN"&&Q.transferState!=="TRANSFER_STATE_FAILED"&&Q.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:Q.data.playlistId,action:"ACTION_SYNC"}})},
100)};
ki.prototype.computeIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
ki.prototype.dataChanged=ki.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ki.prototype,"data",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],ki.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],ki.prototype,"ytComponentBehavior",void 0);_.W([_.Z7("#checkbox"),_.X("design:type",HTMLInputElement)],ki.prototype,"checkbox",void 0);
_.W([_.q({selector:_.n7,selectorArgs:["data.playlistId"]}),_.X("design:type",String)],ki.prototype,"transferState",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ki.prototype,"dataChanged",null);_.W([_.J({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],ki);
_.B(ki,"ytd-playlist-add-to-option-renderer",function(){if(WZm!==void 0)return WZm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return WZm=v},{mode:1});var os7=_.x(function(v){var Q=v.data;return _.P("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.P("div",null,_.P(_.tD,{text:function(){return Q().title}})),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(V){return _.P("div",{class:"ytdMenuTitleRendererSubtitle"},_.P(_.tD,{text:V}))}}))},"xj");
os7.idomCompat=!0;_.ad(os7,"ytd-menu-title-renderer",{props:{data:_.pJ}});var Tt=function(){var v=_.z.apply(this,arguments)||this;v.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Lt("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};v.closeButtonAriaLabel=_.Lt("SBOX_INAPPROPRIATE_CANCEL");v.dialog=_.Y("desktop_add_to_playlist_renderer_dialog_popup");return v};
_.f(Tt,_.z);_.K=Tt.prototype;_.K.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"}}}};
_.K.onPopupOpened=function(){_.VE(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.K.onPopupClosed=function(){_.VE(this.playlists,"scrollable",!1)};
_.K.computeAriaLabel=function(){var v;if(this==null?0:(v=this.data)==null?0:v.actions){v=_.L(this.data.actions);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.menuTitleRenderer)return _.j0(Q.menuTitleRenderer.title)}};
_.K.onTapClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.hr.Object.defineProperties(Tt.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if(this==null?0:(v=this.data)==null?0:v.actions){v=_.L(this.data.actions);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.menuTitleRenderer)return Q.menuTitleRenderer}return!1}}});
Tt.prototype.onPopupClosed=Tt.prototype.onPopupClosed;Tt.prototype.onPopupOpened=Tt.prototype.onPopupOpened;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Tt.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Tt.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Tt.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Tt.prototype,"addToStrings",void 0);_.W([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.X("design:type",String)],Tt.prototype,"ariaLabel",void 0);_.W([_.q(),_.X("design:type",String)],Tt.prototype,"closeButtonAriaLabel",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Tt.prototype,"dialog",void 0);
_.W([_.Z7("#playlists"),_.X("design:type",HTMLElement)],Tt.prototype,"playlists",void 0);_.W([_.Z7("ytd-add-to-playlist-create-renderer"),_.X("design:type",Object)],Tt.prototype,"createRenderer",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],Tt.prototype,"menuTitleRenderer",null);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Tt.prototype,"onPopupOpened",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Tt.prototype,"onPopupClosed",null);_.W([_.J({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Tt);
_.B(Tt,"ytd-add-to-playlist-renderer",function(){if(j3Y!==void 0)return j3Y;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return j3Y=v},{mode:1});var X$f;var Yi=function(){var v=_.z.apply(this,arguments)||this;v.isPlaylistEditComplete=!1;v.isCollabEngagementDisabled=!1;v.closeButtonAriaLabel=_.Lt("SBOX_INAPPROPRIATE_CANCEL");v.saveButton={title:_.Lt("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};v.onValueChanged=function(){v.updateSaveButtonState();v.computeCollabEngagementDisabled()};
return v};
_.f(Yi,_.z);_.K=Yi.prototype;_.K.attached=function(){this.JSC$20959_scroller&&(this.JSC$20959_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20959_scroller.attached&&typeof this.JSC$20959_scroller.attached==="function"&&this.JSC$20959_scroller.attached())};
_.K.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.K.onPopupClosed=function(){this.reset()};
_.K.close=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.K.onClickSave=function(){var v=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var Q=[];this.nameInput.value!==null&&Q.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&Q.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var V=Number(this.privacyInput.value);isNaN(V)||Q.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:V})}this.votingInput.value!==null&&(V=this.votingInput.value)&&Q.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:V});if(Q.length>0){var E;_.y((E=this.data)==null?void 0:E.updateSettingsEndpoint,_.Vd).actions=Q;var b;if((b=this.data)==null?0:b.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){v.close()}}}),this.isPlaylistEditComplete=!0}}};
_.K.computePrivacyBadge=function(v){return v?[{metadataBadgeRenderer:v}]:[]};
_.K.computeEditorData=function(v){var Q,V;return v==null?void 0:(Q=v.sections)==null?void 0:(V=Q[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer};
_.K.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.K.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}}}}}};
_.K.computeAriaLabel=function(){var v,Q,V,E=(v=this.data)==null?void 0:(Q=v.sections)==null?void 0:(V=Q[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer;return _.j0(E==null?void 0:E.title)};
_.K.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"}))};
_.K.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.K.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.K.isNameChanged=function(){var v,Q,V;return(((v=this.editorData)==null?void 0:(Q=v.name)==null?void 0:(V=Q.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.nameInput.value||"")};
_.K.isDescriptionChanged=function(){var v,Q,V;return(((v=this.editorData)==null?void 0:(Q=v.description)==null?void 0:(V=Q.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.descriptionInput.value||"")};
_.K.isPrivacyChanged=function(){var v,Q,V,E,b,F,t,p;return((t=(v=this.editorData)==null?void 0:(Q=v.privacy)==null?void 0:(V=Q.dropdownFormFieldRenderer)==null?void 0:(E=V.dropdown)==null?void 0:(b=E.dropdownRenderer)==null?void 0:(F=b.entries)==null?void 0:F.find(function(Z){var d;return Z==null?void 0:(d=Z.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(p=t.privacyDropdownItemRenderer)==null?void 0:p.int32Value)!==this.privacyInput.value};
_.K.isVotingChanged=function(){var v,Q,V,E,b,F,t,p;return((t=(v=this.editorData)==null?void 0:(Q=v.voting)==null?void 0:(V=Q.dropdownFormFieldRenderer)==null?void 0:(E=V.dropdown)==null?void 0:(b=E.dropdownRenderer)==null?void 0:(F=b.entries)==null?void 0:F.find(function(Z){var d;return Z==null?void 0:(d=Z.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(p=t.privacyDropdownItemRenderer)==null?void 0:p.int32Value)!==this.votingInput.value};
Yi.prototype.onPopupClosed=Yi.prototype.onPopupClosed;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Yi.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Yi.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yi.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Yi.prototype,"data",void 0);_.W([_.q({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.X("design:type",Array)],Yi.prototype,"privacyBadge",void 0);_.W([_.q({computed:"computeEditorData(data)"}),_.X("design:type",Object)],Yi.prototype,"editorData",void 0);_.W([_.q(),_.X("design:type",Object)],Yi.prototype,"isPlaylistEditComplete",void 0);_.W([_.q(),_.X("design:type",Object)],Yi.prototype,"isCollabEngagementDisabled",void 0);
_.W([_.q({value:{REQUIRED_LABEL:_.Lt("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Lt("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.X("design:type",Object)],Yi.prototype,"addToStrings",void 0);_.W([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.X("design:type",String)],Yi.prototype,"ariaLabel",void 0);_.W([_.q(),_.X("design:type",String)],Yi.prototype,"closeButtonAriaLabel",void 0);
_.W([_.q(),_.X("design:type",Object)],Yi.prototype,"saveButton",void 0);_.W([_.Z7("#name-input"),_.X("design:type",Object)],Yi.prototype,"nameInput",void 0);_.W([_.Z7("#description-input"),_.X("design:type",Object)],Yi.prototype,"descriptionInput",void 0);_.W([_.Z7("#privacy-input"),_.X("design:type",Object)],Yi.prototype,"privacyInput",void 0);_.W([_.Z7("#voting-input"),_.X("design:type",Object)],Yi.prototype,"votingInput",void 0);
_.W([_.Z7("#scroller"),_.X("design:type",Object)],Yi.prototype,"JSC$20959_scroller",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Yi.prototype,"onPopupClosed",null);_.W([_.q(),_.X("design:type",Object)],Yi.prototype,"onValueChanged",void 0);_.W([_.J({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Yi);
_.B(Yi,"ytd-playlist-settings-editor-renderer",function(){if(X$f===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);X$f=v}v=X$f;return v},{mode:1});var aKq;_.yZ("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var ye=function(){return _.z.apply(this,arguments)||this};
_.f(ye,_.z);_.K=ye.prototype;_.K.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}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var v=this.get("data.nextButton.buttonRenderer.navigationEndpoint");v&&(this.nextNavigationEndpoint=v,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.K.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var v={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",v)}}};
_.K.onPopupOpened=function(v){v.detail!==this&&v.detail!==this.hostElement||!_.Y("enable_premium_voluntary_pause")||_.mb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.K.onNextButtonTap=function(){var v=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);v&&this.ytdOpenPopupBehavior.openPopup(v)};
_.K.updateSelectedResponseIndexFromBinding=function(v){this.selectedResponseIndex=v.detail.value};
ye.prototype.onPopupOpened=ye.prototype.onPopupOpened;ye.prototype.onSelectedResponseIndexChange=ye.prototype.onSelectedResponseIndexChange;ye.prototype.dataChanged=ye.prototype.dataChanged;_.W([_.M(_.TX),_.X("design:type",Object)],ye.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],ye.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],ye.prototype,"selectedResponseIndex",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ye.prototype,"dataChanged",null);_.W([_.ph("selectedResponseIndex"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ye.prototype,"onSelectedResponseIndexChange",null);
_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],ye.prototype,"onPopupOpened",null);_.W([_.J({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],ye);
_.B(ye,"ytd-red-cancel-survey-renderer",function(){if(aKq!==void 0)return aKq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return aKq=v},{mode:1});var rWI;var ct=function(){var v=_.z.apply(this,arguments)||this;v.closeButtonAriaLabel=_.Lt("SBOX_INAPPROPRIATE_CANCEL");return v};
_.f(ct,_.z);ct.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
ct.prototype.onClickClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ct.prototype,"rendererStamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ct.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],ct.prototype,"closeButtonAriaLabel",void 0);_.W([_.J({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],ct);
_.B(ct,"ytd-search-filter-options-dialog-renderer",function(){if(rWI!==void 0)return rWI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return rWI=v},{mode:1});var $aY;var IDn=function(){return function(v){v=v.availabilityType;return v===void 0||v==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||v==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var fz=function(){var v=_.z.apply(this,arguments)||this;v.qualityOptions=[];v.upsellOptions=[];v.showUpsellSection=!1;v.rememberSettingsChecked=!1;return v};
_.f(fz,_.z);_.K=fz.prototype;_.K.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}}}}};
_.K.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.K.updateQualityOptions=function(){if(this.formats===void 0)_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var v=[],Q=[];this.showUpsellSection=!1;for(var V=_.L(this.formats),E=V.next();!E.done;E=V.next())(E=E.value)&&(E.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?Q.push(E):v.push(E));v.length&&(this.qualityOptions=$qq(v));Q.length&&(this.showUpsellSection=!0,this.upsellOptions=$qq(Q))}};
_.K.updateRememberString=function(){if(this.downloadQualityPickerEntity)var v=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var Q;v=(Q=this.data)==null?void 0:Q.premiumRememberSettingString}else{var V;v=(V=this.data)==null?void 0:V.rememberSettingString}v=v===void 0?_.Lt("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):v;this.rememberSettingsCheckboxRenderer={title:_.I$(v),disabled:!1}};
_.K.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.hr.Object.defineProperties(fz.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var v;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(v=this.data)==null?void 0:v.qualityFormats}}});
fz.prototype.updateRememberString=fz.prototype.updateRememberString;fz.prototype.updateQualityOptions=fz.prototype.updateQualityOptions;fz.prototype.dataChanged=fz.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],fz.prototype,"data",void 0);
_.W([_.M(_.QU),_.X("design:type",Object)],fz.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Boolean)],fz.prototype,"selectedUpsellQuality",void 0);_.W([_.q({computed:"computeIcon_(data.premiumIcon)",value:""}),_.X("design:type",String)],fz.prototype,"premiumIcon",void 0);_.W([_.q({selector:NEY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.X("design:type",Object)],fz.prototype,"downloadQualityPickerEntity",void 0);
_.W([_.q(),_.X("design:type",Array)],fz.prototype,"qualityOptions",void 0);_.W([_.q(),_.X("design:type",Array)],fz.prototype,"upsellOptions",void 0);_.W([_.q(),_.X("design:type",Object)],fz.prototype,"showUpsellSection",void 0);_.W([_.q(),_.X("design:type",Object)],fz.prototype,"rememberSettingsCheckboxRenderer",void 0);_.W([_.Z7("#remember-settings"),_.X("design:type",HTMLInputElement)],fz.prototype,"rememberSettingsCheckbox",void 0);
_.W([_.q(),_.X("design:type",Object)],fz.prototype,"rememberSettingsChecked",void 0);_.W([_.q(),_.X("design:type",Function)],fz.prototype,"onRememberSettingsCheckedChanged",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fz.prototype,"dataChanged",null);_.W([_.ph("downloadQualityPickerEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fz.prototype,"updateQualityOptions",null);
_.W([_.ph("selectedUpsellQuality"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],fz.prototype,"updateRememberString",null);_.W([_.J({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],fz);
_.B(fz,"ytd-download-quality-selector-content",function(){if($aY!==void 0)return $aY;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return $aY=v},{mode:1});var IKf;var Gt=function(){var v=_.z.apply(this,arguments)||this;v.selectedUpsellQuality=!1;v.qualityOptions=[];v.useUpsellDismissAlternate=_.Y("use_not_now_dl_upsell_dismiss_cta");v.shouldShowAlternateUpsellDimiss=!1;v.rememberSettings=!1;v.rememberSettingsChecked=!1;v.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};v.rememberSettingsCheckedChanged=function(Q){v.rememberSettingsChecked=Q};
return v};
_.f(Gt,_.z);_.K=Gt.prototype;
_.K.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I$(_.Lt("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I$(_.Lt("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I$(_.Lt("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I$(_.Lt("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.K.updateQualityOptions=function(){this.formats===void 0?_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=$qq(this.formats)};
_.K.onQualityOptionsSelect=function(v){if(this.qualityOptions&&v){v!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var Q=_.L(this.qualityOptions.entries()),V=Q.next();!V.done;V=
Q.next()){V=_.L(V.value);var E=V.next().value;V=V.next().value;var b=void 0,F=void 0;if(((b=V)==null?void 0:(F=b.settingsRadioOptionRenderer)==null?void 0:F.id)===v){this.selectedQualityIndex=E;v=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((v=this.formats[E])==null?void 0:v.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.K.onClickSubmit=function(){var v;if((v=this.downloadButtonRenderer)==null||!v.isDisabled){var Q,V;v=(V=(Q=this.data)==null?void 0:Q.onSubmitEndpoint)!=null?V:{};var E,b;if(this.formats&&(((E=_.y(v,_.L4))==null?0:E.videoId)||((b=_.y(v,_.t2))==null?0:b.playlistId))){var F,t,p,Z,d,w;Q={formatType:(Z=(F=this.formats)==null?void 0:(t=F[(p=this.selectedQualityIndex)!=null?p:0])==null?void 0:t.format)!=null?Z:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(d=this.getOfflineEndpoint(v))==null?void 0:(w=d.actionParams)==null?void 0:w.settingsAction)};this.getOfflineEndpoint(v).actionParams=Q;this.ytComponentBehavior.resolveCommand(v)}_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.K.onClickUpsell=function(){var v;if((v=this.upsellButtonRenderer)==null||!v.isDisabled){var Q,V;v=(V=(Q=this.data)==null?void 0:Q.upsellEndpoint)!=null?V:{};this.ytComponentBehavior.resolveCommand(v);_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);Q="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var E,b,F,t;Q=(t=(E=this.formats)==null?void 0:(b=E[(F=this.selectedQualityIndex)!=null?F:0])==null?void 0:b.format)!=null?t:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:Q}})}};
_.K.onClickClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.K.getOfflineSettingsAction=function(v,Q){return v?Q===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":Q:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.K.getOfflineEndpoint=function(v){return _.y(v,_.L4)?_.y(v,_.L4):_.y(v,_.t2)};
_.hr.Object.defineProperties(Gt.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.I$(_.Lt("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var v;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(v=this.data)==null?void 0:v.qualityFormats}}});
Gt.prototype.updateQualityOptions=Gt.prototype.updateQualityOptions;Gt.prototype.dataChanged=Gt.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Gt.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Gt.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Number)],Gt.prototype,"selectedQualityIndex",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"selectedUpsellQuality",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],Gt.prototype,"ytdReduxBehavior",void 0);
_.W([_.q({selector:NEY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.X("design:type",Object)],Gt.prototype,"downloadQualityPickerEntity",void 0);_.W([_.q(),_.X("design:type",Array)],Gt.prototype,"qualityOptions",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Gt.prototype,"useUpsellDismissAlternate",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"downloadButtonRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"upsellButtonRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"cancelButtonRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"upsellCancelButtonRenderer",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"rememberSettings",void 0);_.W([_.q(),_.X("design:type",Object)],Gt.prototype,"rememberSettingsChecked",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Gt.prototype,"dataChanged",null);_.W([_.ph("downloadQualityPickerEntity"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Gt.prototype,"updateQualityOptions",null);_.W([_.J({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Gt);
_.B(Gt,"ytd-download-quality-selector-renderer",function(){if(IKf!==void 0)return IKf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return IKf=v},{mode:1});var Hk8;var Cz=function(){return _.z.apply(this,arguments)||this};
_.f(Cz,_.z);Cz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cz.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Cz.prototype,"data",void 0);_.W([_.q({computed:"computeIcon_(data.infoIcon)"}),_.X("design:type",Object)],Cz.prototype,"infoIcon",void 0);
_.W([_.q({computed:"computeIcon_(data.warningIcon)"}),_.X("design:type",Object)],Cz.prototype,"warningIcon",void 0);_.W([_.J({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Cz);
_.B(Cz,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Hk8!==void 0)return Hk8;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Hk8=v},{mode:1});var maq;var MX=function(){return _.z.apply(this,arguments)||this};
_.f(MX,_.z);MX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MX.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],MX.prototype,"data",void 0);_.W([_.J({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],MX);
_.B(MX,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(maq!==void 0)return maq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return maq=v},{mode:1});var Uan;var OU=function(){return _.z.apply(this,arguments)||this};
_.f(OU,_.z);OU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OU.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"}}}}};
OU.prototype.onServiceRequestSentOrCompleted=function(v,Q){Q&&Q.actions&&Q.actions.length>0&&_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
OU.prototype.onServiceRequestSentOrCompleted=OU.prototype.onServiceRequestSentOrCompleted;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],OU.prototype,"data",void 0);
_.W([_.tM("yt-service-request-completed"),_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],OU.prototype,"onServiceRequestSentOrCompleted",null);_.W([_.J({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],OU);
_.B(OU,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Uan!==void 0)return Uan;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Uan=v},{mode:1});var vMI;var DR=function(){var v=_.z.apply(this,arguments)||this;v.submitButtonDisabled=!0;return v};
_.f(DR,_.z);_.K=DR.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.K.onDataChanged=function(){var v,Q,V;if(((v=this.data)==null?void 0:(Q=v.confirmButton)==null?void 0:(V=Q.buttonRenderer)==null?void 0:V.isDisabled)!==void 0){var E,b,F;this.submitButtonDisabled=(E=this.data)==null?void 0:(b=E.confirmButton)==null?void 0:(F=b.buttonRenderer)==null?void 0:F.isDisabled}};
_.K.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.K.updateSubmitButtonDisabledFromBinding=function(v){this.submitButtonDisabled=v.detail.value};
_.K.updateSubmitButtonDisabledFromConfirmCheckbox=function(v){this.submitButtonDisabled=!v.detail.value};
DR.prototype.onDataChanged=DR.prototype.onDataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],DR.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],DR.prototype,"submitButtonDisabled",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],DR.prototype,"onDataChanged",null);_.W([_.J({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],DR);
_.B(DR,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(vMI!==void 0)return vMI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return vMI=v},{mode:1});var Qf0;var R9=function(){return _.z.apply(this,arguments)||this};
_.f(R9,_.z);_.hr.Object.defineProperties(R9.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;return((v=this.data)==null?void 0:v.title)+" "+((Q=this.data)==null?void 0:Q.metadataPrimary)+" "+((V=this.data)==null?void 0:V.metadataSecondary)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],R9.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],R9.prototype,"data",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],R9.prototype,"ariaLabel",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],R9);
_.B(R9,"ytd-compact-product-list-item-renderer",function(){if(Qf0!==void 0)return Qf0;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Qf0=v},{mode:1});var VJ$;var nz=function(){return _.z.apply(this,arguments)||this};
_.f(nz,_.z);nz.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]]"}}}}}};
_.hr.Object.defineProperties(nz.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],nz.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],nz);
_.B(nz,"ytd-compact-product-list-renderer",function(){if(VJ$!==void 0)return VJ$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return VJ$=v},{mode:1});var EMm;var lX=function(){return _.z.apply(this,arguments)||this};
_.f(lX,_.z);_.K=lX.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.K.getBackgroundUrl=function(){var v=this.get("data.headerImage.thumbnails");return v?"url("+_.rE(v,this.hostElement.clientWidth)+")":""};
_.K.onDataChanged=function(){var v=this.getBackgroundUrl();v&&(this.header.style.backgroundImage=v);v=_.Mo();var Q=_.CC(),V=this.get("data.trackingParams");V&&Q&&v&&_.Np(v,Q,_.dE(V));v=_.L(this.hostElement.querySelectorAll("yt-img-shadow"));for(Q=v.next();!Q.done;Q=v.next())Q.value.onShow()};
_.K.onPopupClosed=function(v){_.jV(v).localName==="ytd-membership-post-cancel-renderer"&&_.mb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
lX.prototype.onPopupClosed=lX.prototype.onPopupClosed;lX.prototype.onDataChanged=lX.prototype.onDataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],lX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],lX.prototype,"data",void 0);_.W([_.Z7("#header"),_.X("design:type",HTMLDivElement)],lX.prototype,"header",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],lX.prototype,"onDataChanged",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],lX.prototype,"onPopupClosed",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],lX);
_.B(lX,"ytd-membership-post-cancel-renderer",function(){if(EMm!==void 0)return EMm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return EMm=v},{mode:1});var bIq;var qX=function(){return _.z.apply(this,arguments)||this};
_.f(qX,_.z);qX.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
qX.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qX.prototype,"data",void 0);_.W([_.Z7("ytd-feedback-survey-renderer"),_.X("design:type",Object)],qX.prototype,"feedbackSurveyRenderer",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],qX);
_.B(qX,"ytd-sponsorship-confirm-cancel-content",function(){if(bIq!==void 0)return bIq;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return bIq=v},{mode:1});var Fgh;var Sr=function(){var v=_.z.apply(this,arguments)||this;v.maybeSubmitFeedback=function(){v.content&&v.content.maybeSubmitFeedback()};
return v};
_.f(Sr,_.z);_.K=Sr.prototype;_.K.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.K.onYtPopupOpened=function(v,Q){Q===this&&this.data&&this.data.onOpenCommands&&_.Qk(this.hostElement,this.data.onOpenCommands,this.hostElement);_.mb(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.K.onYtPopupClosed=function(v,Q){(Q&&Q.canceled===!0||Q&&Q.canceled===!1&&Q.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Qk(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.K.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.K.onYtServiceRequestError=function(v){_.NJ(this.hostElement,v.detail.error.message)};
_.K.onDataChanged=function(){if(this.isAttached){var v=this.backgroundUrl;v&&(_.m9(this.hostElement).querySelector("#header").style.backgroundImage=v)}};
_.hr.Object.defineProperties(Sr.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return v?"url("+_.rE(v,this.hostElement.clientWidth)+")":""}}});
Sr.prototype.onDataChanged=Sr.prototype.onDataChanged;Sr.prototype.onYtServiceRequestError=Sr.prototype.onYtServiceRequestError;Sr.prototype.onYtServiceRequestCompleted=Sr.prototype.onYtServiceRequestCompleted;Sr.prototype.onYtPopupClosed=Sr.prototype.onYtPopupClosed;Sr.prototype.onYtPopupOpened=Sr.prototype.onYtPopupOpened;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Sr.prototype,"data",void 0);_.W([_.q({value:function(){return _.Lt("SBOX_INAPPROPRIATE_CANCEL")}}),
_.X("design:type",String)],Sr.prototype,"closeButtonAriaLabel",void 0);_.W([_.Z7("#scrollable"),_.X("design:type",Object)],Sr.prototype,"scrollable",void 0);_.W([_.Z7("ytd-sponsorship-confirm-cancel-content"),_.X("design:type",Object)],Sr.prototype,"content",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Sr.prototype,"onYtPopupOpened",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Sr.prototype,"onYtPopupClosed",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Sr.prototype,"onYtServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Sr.prototype,"onYtServiceRequestError",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Sr.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Sr);
_.B(Sr,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Fgh!==void 0)return Fgh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Fgh=v},{mode:_.mV("kevlar_poly_si_batch_j081")?1:2});var Kgh;var zt=function(){return _.z.apply(this,arguments)||this};
_.f(zt,_.z);zt.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],zt.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],zt);
_.B(zt,"ytd-sponsorships-celebration-content",function(){if(Kgh!==void 0)return Kgh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return Kgh=
v},{mode:1});var iIj;var Lgd=_.s$(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),J0=function(){var v=_.z.apply(this,arguments)||this;v.scriptsAppended=!1;v.useFullWidthPrimaryButton=!1;v.buttonOverrides={type:"tonal",style:"overlay-dark"};return v};
_.f(J0,_.z);_.K=J0.prototype;_.K.dataChanged=function(){var v;this.useFullWidthPrimaryButton=!((v=this.data)==null||!v.useFullWidthPrimaryButton)};
_.K.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:_.Y("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onDataChanged=function(){var v;(v=this.header)==null||v.style.setProperty("background-color",this.backgroundColor);if(v=this.headerImageUrl){var Q;(Q=this.header)==null||Q.style.setProperty("background-image",v)}Q=_.Mo(4);v=_.CC(4);var V=this.get("data.trackingParams");if(V&&v&&Q){var E=_.dE(V);_.Np(Q,v,E);_.Y("combine_ve_grafts")?_.tR().graftServerVe(V,v,4):_.Np(Q,v,E)}Q=_.L(this.hostElement.querySelectorAll("yt-img-shadow"));for(v=Q.next();!v.done;v=Q.next())v.value.onShow();if(Q=this.get("data.gtmId"))_.WO(Q,
_.r7("GL","")),this.setupConversionTracking()};
_.K.setupConversionTracking=function(){if(!this.scriptsAppended){var v=document.createElement("script");_.ii(v,_.Fd(Lgd.join("")));document.head.appendChild(v);v=document.createElement("noscript");v.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(v);this.scriptsAppended=!0}};
_.K.onPopupClosed=function(v){if(_.jV(v).localName==="ytd-sponsorships-celebration-renderer"){_.mb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var Q;this.data&&((Q=this.data)==null?0:Q.dismissCommand)&&_.bd.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.hr.Object.defineProperties(J0.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.CF(v)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return v?"url("+_.rE(v,this.hostElement.getBoundingClientRect().width)+")":""}}});
J0.prototype.onPopupClosed=J0.prototype.onPopupClosed;J0.prototype.onDataChanged=J0.prototype.onDataChanged;J0.prototype.dataChanged=J0.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],J0.prototype,"data",void 0);
_.W([_.Z7("#header"),_.X("design:type",HTMLElement)],J0.prototype,"header",void 0);_.W([_.q(),_.X("design:type",Object)],J0.prototype,"scriptsAppended",void 0);_.W([_.q({type:Boolean,reflectToAttribute:!0}),_.X("design:type",Object)],J0.prototype,"useFullWidthPrimaryButton",void 0);_.W([_.q(),_.X("design:type",Object)],J0.prototype,"buttonOverrides",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],J0.prototype,"dataChanged",null);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],J0.prototype,"onDataChanged",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],J0.prototype,"onPopupClosed",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],J0);
_.B(J0,"ytd-sponsorships-celebration-renderer",function(){if(iIj!==void 0)return iIj;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return iIj=v},{mode:1});var tJI;var NX=function(){var v=_.z.apply(this,arguments)||this;v.isToggleChecked=!1;return v};
_.f(NX,_.z);NX.prototype.onDataChanged=function(){var v;this.isToggleChecked=((v=this.data)==null?void 0:v.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
NX.prototype.close=function(){var v;((v=this.data)==null?0:v.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
NX.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var v,Q=_.y((v=this.data)==null?void 0:v.switchButton,b0h);Q&&(this.isToggleChecked&&Q.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Q.switchOnInnertubeCommand),!this.isToggleChecked&&Q.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Q.switchOffInnertubeCommand))};
NX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
NX.prototype.onDataChanged=NX.prototype.onDataChanged;_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],NX.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],NX.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],NX.prototype,"isToggleChecked",void 0);_.W([_.q({value:_.Lt("CLOSE")}),_.X("design:type",String)],NX.prototype,"closeButtonAriaLabel",void 0);
_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],NX.prototype,"onDataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],NX);
_.B(NX,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(tJI!==void 0)return tJI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return tJI=v},{mode:1});var pD5;var xi=function(){return _.z.apply(this,arguments)||this};
_.f(xi,_.z);_.K=xi.prototype;_.K.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"}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.detached=function(){this.playerElement.stop()};
_.K.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.K.onYtServiceRequestError=function(v){_.NJ(this.hostElement,v.detail.error.message)};
_.K.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.K.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.K.getTier=function(v,Q){return!v||!v.tiers||Q<0?null:_.y(v.tiers[Q],LHY)};
_.K.moreThanOne=function(v){return!!(v&&v.length>1)};
_.K.tierOverviewTap=function(v){var Q=this;this.selectedTier=v.model.index;_.PE(this,function(){_.Hj(Q.hostElement,"yt-refit")})};
_.K.computeSelectedClass=function(v,Q){return this.isSelected(v,Q)?"selected":""};
_.K.computeButtonAriaPressed=function(v,Q){return this.isSelected(v,Q)?"true":"false"};
_.K.isSelected=function(v,Q){return v===Q};
_.K.onDataChanged=function(){_.m9(this.hostElement).querySelector("#header-overlay").style.visibility="";_.m9(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var v=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),
Q=v.next();!Q.done;Q=v.next())Q.value.onShow();var V;this.set("selectedTier",(V=this.get("data.targetTierIndex"))!=null?V:0);var E;(v=(E=this.data)==null?void 0:E.onVisible)&&this.ytComponentBehavior.resolveCommand(v)};
_.K.initializeVe=function(v){var Q=_.Mo(),V=_.CC(),E=this.get("data.trackingParams");V&&Q&&(this.screenLayer=4,Q=_.v5(_.bH3)(void 0,69877,{clientScreenNonce:Q,visualElement:V},void 0,void 0,void 0),_.Da(Q,69877,4),V=_.CC(4),E&&V&&(E=_.dE(E),_.Np(Q,V,E),v&&(this.offerVideoVe=_.Vw(74659),_.Np(Q,E,this.offerVideoVe))))};
_.K.setHeaderBackground=function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.m9(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.CF(v);if(v=this.getHeaderImage())v=_.rE(v,screen.width),_.m9(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+v+")"};
_.K.getHeaderImage=function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&v?v:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.K.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.K.setupVideoPlayer=function(v){var Q=this,V,E,b,F;return _.e(function(t){if(t.nextAddress==1)return V=Q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),E=Q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.Y("kevlar_player_update_killswitch")?Q.playerElement.update({args:{autoplay:V,video_id:v,player_params:E}}):Q.playerElement.loadVideoWithPlayerVars({autoplay:V,video_id:v,player_params:E}),
t.yield(Q.playerElement.getPlayerPromise(),2);b=t.yieldResult;b.addEventListener("onStateChange",function(p){Q.onPlayerStateChange(p)});
b.setScreenLayer(Q.screenLayer);(F=_.Mo(4))&&Q.offerVideoVe&&_.Bp(F,Q.offerVideoVe);V&&(Q.pauseOtherPlayers(),Q.playerElement.focusOnPlayer(),Q.playerElement.getPlayer().hideControls(),_.go(_.XT,function(){Q.fadeOutHeaderOverlay()},4E3));
_.q1(t)})};
_.K.onPlayerStateChange=function(v){v===1?this.backgroundPlayerElement&&(v=this.backgroundPlayerElement.player_.getPlayerState(),v!==1&&v!==3||this.backgroundPlayerElement.pause()):v===0&&(_.m9(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.m9(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.K.fadeOutHeaderOverlay=function(){_.m9(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.K.onHeaderTap=function(){if(this.offerVideo){_.m9(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var v;((v=this.playerElement.player_)==null?void 0:v.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(v=_.Mo(4))&&this.offerVideoVe&&_.uI(v,this.offerVideoVe)}};
_.K.getBackgroundImageLayerClass=function(v){return v?"background-image-layer-with-video":""};
_.K.getHeaderClass=function(v){return v?"header-with-video":""};
_.K.getHeaderOverlayClass=function(v){return v?"header-overlay-with-video":""};
_.K.getTitleContainerClass=function(v,Q){return v?"title-container-with-video":Q?"title-container-without-video-flexible":"title-container-without-video"};
_.K.tierTitleDisplayStatus=function(v){return this.moreThanOne(v)?"hide":"show"};
_.K.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.ht().resolve(_.lJ).getPlayerElement():this.backgroundPlayerElement=_.aJ();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var v=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=v===1||v===3;this.backgroundPlayerElement.pause()}};
_.K.isMiniplayerActive=function(){return _.ht().resolve(_.lJ).isMiniplayerActive()};
_.K.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("selected-tier-changed",this.selectedTier))};
xi.prototype.selectedTierChangedForBinding=xi.prototype.selectedTierChangedForBinding;xi.prototype.onDataChanged=xi.prototype.onDataChanged;xi.prototype.onYtPopupClosed=xi.prototype.onYtPopupClosed;xi.prototype.onYtPopupOpened=xi.prototype.onYtPopupOpened;xi.prototype.onYtServiceRequestError=xi.prototype.onYtServiceRequestError;xi.prototype.onYtServiceRequestCompleted=xi.prototype.onYtServiceRequestCompleted;
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],xi.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],xi.prototype,"data",void 0);_.W([_.q({value:0}),_.X("design:type",Number)],xi.prototype,"selectedTier",void 0);
_.W([_.q({value:""}),_.X("design:type",String)],xi.prototype,"offerVideo",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],xi.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.W([_.q({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.$Q(this)}}),
_.X("design:type",String)],xi.prototype,"playerId",void 0);_.W([_.Z7("tp-yt-paper-dialog-scrollable"),_.X("design:type",Object)],xi.prototype,"scrollable",void 0);_.W([_.Z7("ytd-sponsorships-tier-renderer"),_.X("design:type",Object)],xi.prototype,"tierRenderer",void 0);_.W([_.Z7("#player"),_.X("design:type",Object)],xi.prototype,"playerElement",void 0);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xi.prototype,"onYtServiceRequestCompleted",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],xi.prototype,"onYtServiceRequestError",null);
_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xi.prototype,"onYtPopupOpened",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xi.prototype,"onYtPopupClosed",null);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xi.prototype,"onDataChanged",null);
_.W([_.ph("selectedTier"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],xi.prototype,"selectedTierChangedForBinding",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],xi);
_.B(xi,"ytd-sponsorships-offer-renderer",function(){if(pD5!==void 0)return pD5;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return pD5=v},{mode:_.mV("kevlar_poly_si_batch_j077")?1:2});var eRs;var Bt=function(){var v=_.z.apply(this,arguments)||this;v.buttonOverrides={type:"filled",style:"mono"};return v};
_.f(Bt,_.z);Bt.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}}}}}};
Bt.prototype.backgroundColorChanged=function(){var v,Q,V,E=(Q=_.y((v=this.data)==null?void 0:v.content,tRh))==null?void 0:(V=Q.backgroundColor)==null?void 0:V.backgroundColor;E&&(v=_.GA(E),_.m9(this.hostElement).querySelector("#banner").style.backgroundColor=v,_.m9(this.hostElement).querySelector("#abstract-art").style.backgroundColor=v)};
Bt.prototype.attached=function(){this.JSC$21044_scroller&&(this.JSC$21044_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21044_scroller.attached&&typeof this.JSC$21044_scroller.attached==="function"&&this.JSC$21044_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bt.prototype.backgroundColorChanged=Bt.prototype.backgroundColorChanged;_.W([_.q(),_.X("design:type",Object)],Bt.prototype,"data",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#scroller"),_.X("design:type",Object)],Bt.prototype,"JSC$21044_scroller",void 0);_.W([_.q(),_.X("design:type",Object)],Bt.prototype,"buttonOverrides",void 0);
_.W([_.ph("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Bt.prototype,"backgroundColorChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Bt);
_.B(Bt,"ytd-sponsorships-promotion-celebration-renderer",function(){if(eRs!==void 0)return eRs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return eRs=v},{mode:_.mV("kevlar_poly_si_batch_j077")?1:2});var ZIs;var Pem;var g5=function(){return _.z.apply(this,arguments)||this};
_.f(g5,_.z);g5.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
g5.prototype.computeIsInitiallyChecked=function(v){return v===1};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],g5.prototype,"data",void 0);_.W([_.Z7("#checkbox"),_.X("design:type",Object)],g5.prototype,"checkbox",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],g5);
_.B(g5,"ytd-subscription-toggle-option-renderer",function(){if(Pem!==void 0)return Pem;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Pem=v},{mode:1});var sU=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return v};
_.f(sU,_.z);sU.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"}}}};
sU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sU.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var v=_.m9(this.hostElement).querySelector("#options").selected;v=this.data.options[v].subscriptionRadioOptionRenderer.serviceEndpoint;var Q=_.m9(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");Q&&v&&v.modifyChannelNotificationPreferenceEndpoint&&(Q=Q.getValue())&&(v.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[Q]);_.ht().resolve(_.At).resolveCommand(v,{form:{element:this.hostElement}});
_.mb(this.hostElement,"yt-close-popup-action")};
_.hr.Object.defineProperties(sU.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var v=this.data.options,Q=0;Q<v.length;Q++){var V=v[Q].subscriptionRadioOptionRenderer;if(V&&V.selected)return Q}return null}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],sU.prototype,"eventForwardingBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],sU.prototype,"data",void 0);_.W([_.O("data.options"),_.X("design:type",Object),_.X("design:paramtypes",[])],sU.prototype,"initialIndex",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],sU);
_.B(sU,"ytd-subscription-notification-options-renderer",function(){if(ZIs!==void 0)return ZIs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return ZIs=v},{mode:1});var d87;var hR5=function(){return _.z.apply(this,arguments)||this};
_.f(hR5,_.z);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hR5.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hR5.prototype,"data",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],hR5);
_.B(hR5,"ytd-tvfilm-offer-groups-renderer",function(){if(d87!==void 0)return d87;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return d87=v},{mode:1});var wD$;var uX=function(){return _.z.apply(this,arguments)||this};
_.f(uX,_.z);_.K=uX.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.K.computeThumbnailClass=function(v){return v.thumbnailOverlays?v.isShow?"thumbnail-show":"thumbnail-movie":v.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.K.computeCommerceSectionClass=function(v){return v.offers&&v.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.K.computeTitleClass=function(v){return v.offers&&v.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.K.onDataChanged=function(){[].concat(_.ui(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(v){v.onShow()})};
uX.prototype.onDataChanged=uX.prototype.onDataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],uX.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],uX.prototype,"onDataChanged",null);
_.W([_.J({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],uX);
_.B(uX,"ytd-ypc-offers-overlay-renderer",function(){if(wD$!==void 0)return wD$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return wD$=v},{mode:_.mV("kevlar_poly_si_batch_j028")?1:2});var AuI;var kKh=function(){this.usedMethods=new Set};
kKh.prototype.add=function(v){this.usedMethods.add(v)};
kKh.prototype.reset=function(){this.usedMethods.clear()};var yu7=function(v,Q){this.query=v;this.previousSearchQuery=Q;this.id=TUq++;if(!Y48){Q=_.r7("SBOX_SETTINGS");v="https://"+((Q==null?void 0:Q.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var V=Q==null?void 0:Q.REQUEST_LANGUAGE;V&&(v+="&hl="+V);(V=Q==null?void 0:Q.REQUEST_DOMAIN)&&(v+="&gl="+V);v+="&client=youtube&gs_ri=youtube";(V=Q==null?void 0:Q.SUGG_EXP_ID)&&(v+="&sugexp="+encodeURIComponent(V));(V=Q==null?void 0:Q.PSUGGEST_TOKEN)&&(v+="&tok="+V);(Q=
Q==null?void 0:Q.SESSION_INDEX)&&(v+="&authuser="+Q);_.Y("desktop_enable_visual_suggest")&&(v+="&h=180&w=320&ytvs=1");Y48=v}},cuh=function(v){var Q="q="+encodeURIComponent(v.query);
v.previousSearchQuery&&(Q+="&pq="+encodeURIComponent(v.previousSearchQuery));return Q},fUh=function(){var v=_.r7("SBOX_SETTINGS"),Q={};
if(v==null?0:v.SEND_VISITOR_DATA)Q["X-Goog-Visitor-Id"]=v==null?void 0:v.VISITOR_DATA;return Q},GKj=function(v){var Q=Y48;
Q+="&gs_id="+v.id.toString(36);Q+="&q="+encodeURIComponent(v.query);Q+="&cp="+v.query.length;v.previousSearchQuery&&(Q+="&pq="+encodeURIComponent(v.previousSearchQuery));(v=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(Q+="&video_id="+v);return Q},TUq=0,Y48="";var Ceq=_.u1.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,MJ$=_.u1.SEARCH_ENTITY_SUGGESTION_MOVIE,OI5=_.u1.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,D8f=_.u1.SEARCH_ENTITY_SUGGESTION_TV_SHOW,RRY=function(v,Q){this.text=v;this.bold=Q},nMd=function(v,Q,V){this.input=Q;
this.index=V;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=v[0];this.type=v[1];this.subtypes=v[2];var E;this.displayText=mqf((E=v[3])==null?void 0:E.b);var b;this.ignoredPrefix=mqf((b=v[3])==null?void 0:b.a);var F,t;this.hasNewVideo=((F=v[3])==null?void 0:(t=F.zam)==null?void 0:t.toString())==="true"?!0:!1;var p;this.visualSuggestUrl=(p=v[3])==null?void 0:p.zai;var Z;this.entityType=mqf((Z=v[3])==null?void 0:Z.zap);var d;this.entityName=mqf((d=v[3])==null?void 0:d.zao);var w;Q=
mqf((w=v[3])==null?void 0:w.zaf);var A;this.entityMid=(A=v[3])==null?void 0:A.zae;w=Uq7(this.subtypes,this.entityMid);if(Q&&w){if(Q){A="";switch(w){case "YOUTUBE_ENTITY_TYPE_SONG":A=OI5;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":A=Ceq;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":A=D8f;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":A=MJ$}w=w==="YOUTUBE_ENTITY_TYPE_SONG"||w==="YOUTUBE_ENTITY_TYPE_ALBUM"?A+" \u2022  \u2022 "+Q:Q}else w="";this.entitySubtitle=w}var k;this.externalChannelId=(k=v[3])==null?void 0:k.zav;
var T;this.entityThumbnailAttributionUrl=(T=v[3])==null?void 0:T.zaq},q4Y=function(v,Q){var V=[],E,b=(E=v.displayText)!=null?E:v.text;
(Q==null?0:Q.useEntityName)&&lUY(v)&&v.entityName&&(b=v.entityName);if(v.type===33)return V.push(new RRY(b,!1)),V;if(b.length>=v.input.length&&b.substring(0,v.input.length)===v.input)V.push(new RRY(v.input,!1)),V.push(new RRY(b.substring(v.input.length),!0));else{var F=new Set(v.input.split(/\s/)),t=b.split(/\s/);V=t.map(function(p,Z){return new RRY(p.trim()+(Z===t.length-1?"":" "),!F.has(p))})}return V},lUY=function(v){var Q=!!Uq7(v.subtypes);
v=!!v.entityMid;return Q||v};var S48=function(v){this.rawResponse=["",[],{}];this.suggestions=[];try{var Q=JSON.parse(v$n(v));if(typeof Q==="object"&&Q!==null)this.rawResponse=Q;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(E){console.log("Suggest: Failed to parse SuggestResponse!");return}var V=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(E,b){return new nMd(E,V,b)})};var zRf=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new kKh;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21081_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Juh,NUq=function(){Juh||(Juh=new zRf);
return Juh};
zRf.prototype.updateSuggestions=function(v){var Q=this;this.availableSuggestions.forEach(function(V){Q.previousSuggestions[V]=!0});
this.availableSuggestions=v.map(function(V){var E=V.type.toString();V.subtypes.length>0&&(E+="i"+V.subtypes.join("i"),E+="k"+V.suggestionSources.COMPLETE_SERVER.toString());return E})};
var x85=function(v,Q){var V=Date.now();v.firstEditTime<0&&(v.firstEditTime=V);Q&&(v.lastQueryBuildTime=V);v.lastEditTime=V};
zRf.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21081_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var BUY=function(v){var Q="";v.availableSuggestions.forEach(function(b){delete v.previousSuggestions[b]});
for(var V=_.L(Object.keys(v.previousSuggestions)),E=V.next();!E.done;E=V.next())E=E.value,v.previousSuggestions[E]&&(Q+=(Q?"j":"")+E);return Q},gMh=function(v,Q){var V=[];
Q&&(V[1]=Q.toString());V[0]="youtube";V[7]=Date.now()-v.startTime;V[6]=v.sessionNumber;v.zeroPrefixSuggestionCount>=0&&(V[33]=v.zeroPrefixSuggestionCount);V[13]=v.outOfSyncResponseCount;if(v.availableSuggestions.length>0){for(var E=Q="",b=0,F=_.L(v.availableSuggestions),t=F.next();!t.done;t=F.next())t=t.value,t!==E&&(b>1&&(Q+="l"+b),Q+=(E?"j":"")+t,b=0,E=t),b+=1;b>1&&(Q+="l"+b);V[3]=Q}V[35]=BUY(v);v.selectedSuggestionIndex>=0&&(V[2]=v.selectedSuggestionIndex);var p;if(Q=(p=_.r7("SBOX_SETTINGS"))==
null?void 0:p.SUGG_EXP_ID)V[19]=v.normalize(Q),p=0,v.experimentTriggeredBeforeFinal&&(p|=1),v.experimentTriggeredFinal&&(p|=2),V[20]=p;V[26]=Array.from(v.inputMethodsTracker.usedMethods).join("j");if(v.JSC$21081_totalRoundTripTime>0){V[15]=v.JSC$21081_totalRoundTripTime;V[14]=v.maxRoundTripTime;p=[];for(b=Q=0;b<10;b++)E=v.roundTripTimeHistogram[b],E===0?Q++:(Q>1?p.push(b+"-"+E):Q===1?p.push("0j"+E):p.push(E.toString()),Q=0);p=p.join("j");V[16]=p}v.zeroPrefixRoundTripTime>0&&(V[36]=v.zeroPrefixRoundTripTime);
v.lastQueryBuildTime>0&&(V[18]=v.lastQueryBuildTime-v.startTime);v.firstEditTime>0&&(V[4]=v.firstEditTime-v.startTime);v.lastEditTime>0&&(V[5]=v.lastEditTime-v.startTime);return V.join(".")};
zRf.prototype.normalize=function(v){return v.replaceAll(".","-")};
var sff=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var jr=function(){var v=_.z.apply(this,arguments)||this;v.microphoneSpinnerActive=!1;v.noAnimations=!1;v.boundExitClick=function(){v.onExitButtonClick()};
v.speechOverlayClassName="";v.isLevelAnimating=!1;v.playCloseDialogAudioFeedback=!0;v.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return v};
_.f(jr,_.z);_.K=jr.prototype;_.K.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.K.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=kHY()};
_.K.dataChanged=function(){this.logDialog()};
_.K.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var v;(v=this.manager.audioPlayer)!=null&&(v.JSC$20394_audioEnabled=!1)}this.manager.stop();(v=this.manager.audioPlayer)!=null&&(v.JSC$20394_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.K.handleSpeechQueryCompleteAction=function(v){var Q=v.navigationAction;Q&&(v.trackingParams&&_.tR().graftServerVe(v.trackingParams,this.dialogVe,5),_.Hj(this.hostElement,"yt-navigate",{endpoint:Q,tempData:this.getNavigationParams(Q),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.K.onExitButtonClick=function(){this.closeDialog()};
_.K.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var v;if((v=this.manager)!=null){var Q;(Q=v.audioPlayer)==null||E3(Q,"failure");v.setState("microphone-off");v.stop()}}else(v=this.manager)==null||v.start()};
_.K.transcriptionChanged=function(){var v,Q;(((v=this.transcription)==null?0:v.low)||((Q=this.transcription)==null?0:Q.high))&&this.setState("transcribing",this.transcription)};
_.K.stateChanged=function(){this.setState(this.state,this.transcription)};
_.K.logDialog=function(){var v;(v=this.data)!=null&&v.trackingParams&&(v=_.tR(),_.S5(v,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=v.graftServerVe(this.data.trackingParams,void 0,5))};
_.K.getNavigationParams=function(v){var Q={};if(_.Y("web_yt_searchbox")){var V=NUq();V.inputMethodsTracker.add(6);V=gMh(V,15);Q.gs_l=V;var E;Q.oq=((E=_.y(v,_.pF))==null?void 0:E.query)||""}else if(v=window.ytvoicesearchloggingparams){if(v=v())Q.oq=v.oq,Q.gs_l=v.gs_l}else _.V9(Error("Jl"));return Q};
_.K.closeDialog=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.K.setState=function(v,Q){if(this.data){var V=this.data,E={};switch(v){case "listening":E={headerText:V.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "timeout":E={headerText:V.promptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,microphoneAriaLabel:V.promptMicrophoneLabel};break;case "microphone-off":E={headerText:V.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,
microphoneAriaLabel:V.promptMicrophoneLabel};break;case "transcribing":(Q==null?0:Q.low)||(Q==null?0:Q.high)?E={transcriptionLow:Q==null?void 0:Q.low,transcriptionHigh:Q==null?void 0:Q.high,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel}:E={headerText:V.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "processing":E={headerText:V.loadingHeader,microphoneState:"processing",microphoneAriaLabel:V.microphoneButtonAriaLabel};
break;case "offline":E={headerText:V.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:V.connectionErrorMicrophoneLabel,microphoneAriaLabel:V.connectionErrorMicrophoneLabel};break;case "permission":E={headerText:V.permissionsHeader,bodyLine1:V.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:V.permissionsSubtext};break;case "permission-denied":E={headerText:V.disabledHeader,bodyLine1:V.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:V.disabledSubtext}}E.className=
v;this.speechOverlayState=E;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.K.setMicrophoneState=function(v){var Q=this.isLevelAnimating;this.isLevelAnimating=v==="speaking";!Q&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=v==="processing"&&!this.noAnimations};
_.K.setClass=function(v){this.speechOverlayClassName&&_.VE(this.hostElement,this.speechOverlayClassName,!1);v&&(this.speechOverlayClassName=v,_.VE(this.hostElement,v,!0))};
_.K.runLevelAnimation=function(){var v=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var Q=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("+Q+")");_.XT.addJob(function(){v.runLevelAnimation()},3,V)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
jr.prototype.stateChanged=jr.prototype.stateChanged;jr.prototype.transcriptionChanged=jr.prototype.transcriptionChanged;jr.prototype.onPopupClosed=jr.prototype.onPopupClosed;jr.prototype.dataChanged=jr.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],jr.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],jr.prototype,"rendererStamperBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],jr.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],jr.prototype,"eventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],jr.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],jr.prototype,"speechOverlayState",void 0);
_.W([_.q(),_.X("design:type",Object)],jr.prototype,"microphoneSpinnerActive",void 0);_.W([_.q({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.X("design:type",Object)],jr.prototype,"noAnimations",void 0);_.W([_.q({selector:function(v){var Q;return(Q=v.voiceSearch)==null?void 0:Q.transcription}}),
_.X("design:type",Object)],jr.prototype,"transcription",void 0);_.W([_.q({selector:function(v){var Q;return(Q=v.voiceSearch)==null?void 0:Q.overlay}}),
_.X("design:type",String)],jr.prototype,"state",void 0);_.W([_.q(),_.X("design:type",Object)],jr.prototype,"boundExitClick",void 0);_.W([_.Z7("#microphone-levels"),_.X("design:type",HTMLElement)],jr.prototype,"level",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jr.prototype,"dataChanged",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jr.prototype,"onPopupClosed",null);
_.W([_.wg("transcription"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jr.prototype,"transcriptionChanged",null);_.W([_.wg("state"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],jr.prototype,"stateChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],jr);
_.B(jr,"ytd-voice-search-dialog-renderer",function(){if(AuI!==void 0)return AuI;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return AuI=v},{mode:1});var ukn;var Wt=function(){var v=_.z.apply(this,arguments)||this;v.isOverlay=!1;v.hidden=!1;return v};
_.f(Wt,_.z);_.K=Wt.prototype;_.K.onPopupClosed=function(){this.toggleIconState(!1)};
_.K.computeIcon=function(){var v,Q,V;return(Q=_.y((v=this.data)==null?void 0:v.icon,d0h))==null?void 0:(V=Q.icon)==null?void 0:V.iconType};
_.K.computeIconBadgeShape=function(){var v;return{iconBadgeType:"cart",iconBadgeText:(v=this.iconBadgeEntity)==null?void 0:v.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.K.onClick=function(){var v;(v=this.data)!=null&&v.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.K.computeHidden=function(v){return!v};
_.K.toggleIconState=function(v){this.iconButton&&(this.iconButton.pressed=v)};
Wt.prototype.onPopupClosed=Wt.prototype.onPopupClosed;_.W([_.M(_.QU),_.X("design:type",Object)],Wt.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Wt.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Wt.prototype,"isOverlay",void 0);
_.W([_.q({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.X("design:type",Object)],Wt.prototype,"hidden",void 0);_.W([_.q({selectorArgs:["data.iconBadgeEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"iconBadgeEntity",Q)}}),
_.X("design:type",Object)],Wt.prototype,"iconBadgeEntity",void 0);_.W([_.Z7("yt-icon-button"),_.X("design:type",HTMLButtonElement)],Wt.prototype,"iconButton",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Wt.prototype,"onPopupClosed",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Wt);
_.B(Wt,"ytd-icon-badge-topbar-button-renderer",function(){if(ukn!==void 0)return ukn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return ukn=v},{mode:1});var jfd;var o9=function(){var v=_.z.apply(this,arguments)||this;v.premiumOptions=[];return v};
_.f(o9,_.z);o9.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.hr.Object.defineProperties(o9.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],o9.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Array)],o9.prototype,"premiumOptions",void 0);_.W([_.O("premiumOptions"),_.X("design:type",Object),_.X("design:paramtypes",[])],o9.prototype,"hasPremiumOptions",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],o9);
_.B(o9,"ytd-offline-promo-content",function(){if(jfd!==void 0)return jfd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return jfd=v},{mode:1});var Wgf;var Xz=function(){var v=_.z.apply(this,arguments)||this;v.premiumOptions=[];return v};
_.f(Xz,_.z);Xz.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var v;this.premiumOptions=HNs((v=this.data)==null?void 0:v.formats)};
Xz.prototype.onClickSubmit=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var v;(v=_.aJ())==null||v.pause()};
Xz.prototype.attached=function(){this.JSC$21101_scroller&&(this.JSC$21101_scroller.dialogElement=this.hostElement.parentNode)};
_.hr.Object.defineProperties(Xz.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Xz.prototype.dataChanged=Xz.prototype.dataChanged;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Xz.prototype,"data",void 0);
_.W([_.q({computed:"computeIcon_(data.headersIcon)",value:""}),_.X("design:type",String)],Xz.prototype,"headersIcon",void 0);_.W([_.q(),_.X("design:type",Array)],Xz.prototype,"premiumOptions",void 0);_.W([_.Z7("#scroller"),_.X("design:type",Object)],Xz.prototype,"JSC$21101_scroller",void 0);_.W([_.O("headersIcon"),_.X("design:type",Object),_.X("design:paramtypes",[])],Xz.prototype,"showIcon",null);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Xz.prototype,"dataChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Xz);
_.B(Xz,"ytd-offline-promo-renderer",function(){if(Wgf!==void 0)return Wgf;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return Wgf=v},{mode:1});var oMn;var a9=function(){var v=_.z.apply(this,arguments)||this;v.playbackPauseInterval=NaN;v.isLoading=!1;v.hasError=!1;v.dialogClass="";v.youtubeLabel=_.Lt("LOGO_ALT_LABEL",{},"YouTube Home");v.logoName="yt-logos-ext:yt-logo-updated";v.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return v};
_.f(a9,_.z);_.K=a9.prototype;_.K.onDataChange=function(){var v;if(this.showEOMV1Text=!((v=this.data)==null||!v.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.K.attached=function(){this.pausePlayer()};
_.K.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.K.handleLangSelect=function(v){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[v.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.K.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.K.handleSaveConsent=function(v){var Q=this;this.showLoadingSpinner();this.showLoadingSpinner();Cd5(_.y(v,hF5)).catch(function(V){_.Iy(new _.xd("Something went wrong when save consent "+(V.message?V.message:V)+"."));Q.hideLoadingSpinner();Q.showErrorMessage()})};
_.K.handleDisablePersonalization=function(v){var Q=this;this.showLoadingSpinner();MMY(_.y(v,dhs)).then(function(){Q.dialog.close();Q.resumePlayer()}).catch(function(V){_.Iy(new _.xd("Something went wrong when disable personalization "+(V.message?V.message:V)+"."));
Q.hideLoadingSpinner();Q.showErrorMessage()})};
_.K.showLoadingSpinner=function(){var v=this;this.showSpinnerJobId=_.XT.addLowPriorityJob(function(){v.isLoading=!0},500)};
_.K.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.XT.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.K.showErrorMessage=function(){var v=this;this.hasError=!0;_.XT.addLowPriorityJob(function(){v.hasError=!1},2E3)};
_.K.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Ci(function(){try{var v=_.aJ();v&&v.pause()}catch(Q){}},100))};
_.K.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var v=_.aJ();v&&v.play()}catch(Q){}};
_.hr.Object.defineProperties(a9.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.eomV1Text)return[];v=[];for(var Q=["SHIELD","WARNING","BAR_CHART"],V=this.data.eomV1Text.essentialCookieMsg.items,E=0;E<Q.length&&E<V.length;E++)v.push({icon:Q[E],text:V[E]});return v}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.eomV1Text)return[];v=[];for(var Q=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],V=this.data.eomV1Text.nonEssentialCookieMsg.items,E=0;E<Q.length&&E<V.length;E++)v.push({icon:Q[E],text:V[E]});return v}}});
a9.prototype.onDataChange=a9.prototype.onDataChange;_.W([_.q(),_.X("design:type",Object)],a9.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],a9.prototype,"showEOMV1Text",void 0);_.W([_.q(),_.X("design:type",Object)],a9.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Object)],a9.prototype,"hasError",void 0);_.W([_.q(),_.X("design:type",Number)],a9.prototype,"showSpinnerJobId",void 0);_.W([_.q(),_.X("design:type",Object)],a9.prototype,"dialogClass",void 0);
_.W([_.Z7("#dialog"),_.X("design:type",Object)],a9.prototype,"dialog",void 0);_.W([_.Z7("#cb-header"),_.X("design:type",HTMLElement)],a9.prototype,"header",void 0);_.W([_.Z7("#lang-select"),_.X("design:type",HTMLElement)],a9.prototype,"langSelect",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],a9.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],a9.prototype,"ytComponentBehavior",void 0);
_.W([_.q(),_.X("design:type",String)],a9.prototype,"youtubeLabel",void 0);_.W([_.q(),_.X("design:type",Object)],a9.prototype,"logoName",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],a9.prototype,"onDataChange",null);_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],a9.prototype,"eomEssentialCookieMsgItems",null);
_.W([_.O("data"),_.X("design:type",Array),_.X("design:paramtypes",[])],a9.prototype,"eomNonEssentialCookieMsgItems",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],a9);
_.B(a9,"ytd-consent-bump-v2-lightbox",function(){if(oMn!==void 0)return oMn;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return oMn=v},{mode:1});var XD$;var r5=function(){return _.z.apply(this,arguments)||this};
_.f(r5,_.z);r5.prototype.ready=function(){if(!_.z_()||Kvh)var v=!0;else Kvh=!0,v=!1;v||(v=document.querySelector("ytd-app"),v||(v=document.body),this.internalLightBox=_.m9(v).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.W([_.q(),_.X("design:type",Object)],r5.prototype,"data",void 0);_.W([_.Z7("#lightbox"),_.X("design:type",Object)],r5.prototype,"lightBox",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],r5);
_.B(r5,"ytd-consent-bump-v2-renderer",function(){if(XD$!==void 0)return XD$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return XD$=v},{mode:1});var aUm;var ru$;var $8h;var $i=function(){return _.z.apply(this,arguments)||this};
_.f($i,_.z);_.K=$i.prototype;_.K.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&yfj(this.toastManager,this.toastType)};
_.K.open=function(v){this.toast&&(this.ephemeralAction&&_.ht().resolve(_.TB).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=v!=null?v:0,this.toastManager.enqueue(this.toast,v)):this.toast.open())};
_.K.close=function(v){var Q;(Q=this.toast)==null||Q.close();this.toastManager&&v===1&&yfj(this.toastManager,v)};
_.K.refit=function(){var v;(v=this.toast)==null||v.refit()};
_.K.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var v;(v=this.toast)==null||v.close()}};
_.K.setVerticalOffset=function(v){this.toast&&(this.toast.verticalOffset=v,this.toast.fit())};
_.K.computeButtonClass_=function(v){return v?"toast-button":""};
_.K.computeText_=function(v){return _.j0(v)};
_.K.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Pu("toast-opened-changed",this.toastOpened))};
_.K.updateToastOpenedFromBinding=function(v){this.toastOpened=v.detail.value};
_.hr.Object.defineProperties($i.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var v,Q,V=(v=this.data)==null?void 0:(Q=v.actionButton)==null?void 0:Q.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 v=[],Q;((Q=this.data)==null?0:Q.responseText)&&v.push(_.j0(this.data.responseText));var V;((V=this.data)==null?0:V.subText)&&v.push(_.j0(this.data.subText));var E,b;if((E=this.data)==null?0:(b=E.actionButton)==null?0:b.buttonRenderer){var F,t;v.push(((F=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(t=F.accessibilityData)==null?void 0:t.label)||_.j0(this.data.actionButton.buttonRenderer.text))}return v.filter(function(p){return p}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var v,Q;return(Q=(v=this.toast)==null?void 0:v.opened)!=null?Q:!1}}});
$i.prototype.toastOpenedChangedForBinding=$i.prototype.toastOpenedChangedForBinding;$i.prototype.toastOpenedChanged=$i.prototype.toastOpenedChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],$i.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],$i.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],$i.prototype,"duration",void 0);
_.W([_.q(),_.X("design:type",Number)],$i.prototype,"toastType",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],$i.prototype,"useCloseButton",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],$i.prototype,"closeToastOnActionButtonClick",void 0);_.W([_.q({value:function(){return _.Lt("SBOX_INAPPROPRIATE_CANCEL")}}),
_.X("design:type",String)],$i.prototype,"closeButtonAriaLabel",void 0);_.W([_.q(),_.X("design:type",Boolean)],$i.prototype,"toastOpened",void 0);_.W([_.q(),_.X("design:type",Boolean)],$i.prototype,"hasOpened",void 0);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],$i.prototype,"command",null);_.W([_.O("labelText","command","duration"),_.X("design:type",Object),_.X("design:paramtypes",[])],$i.prototype,"ephemeralAction",null);
_.W([_.O("ephemeralAction"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],$i.prototype,"hasEphemeralAction",null);_.W([_.Z7("#toast"),_.X("design:type",Object)],$i.prototype,"toast",void 0);_.W([_.q({value:function(){return{style:"call-to-action-inverse"}}}),
_.X("design:type",Object)],$i.prototype,"buttonOverrides",void 0);_.W([_.q({value:{style:"mono-inverse"}}),_.X("design:type",Object)],$i.prototype,"closeButtonOverrides",void 0);_.W([_.q({value:function(){return _.ht().resolve(_.d$(_.dN))}}),
_.X("design:type",Object)],$i.prototype,"toastManager",void 0);_.W([_.O("data.responseText","data.subText","data.actionButton"),_.X("design:type",Object),_.X("design:paramtypes",[])],$i.prototype,"labelText",null);_.W([_.ph("toastOpened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$i.prototype,"toastOpenedChanged",null);
_.W([_.ph("toastOpened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],$i.prototype,"toastOpenedChangedForBinding",null);_.W([_.D7({is:"yt-notification-action-renderer",disableElementRegistration:!0})],$i);
_.B($i,"yt-notification-action-renderer",function(){if($8h===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ru$===void 0&&(ru$=document.createElement("template"));var E=ru$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);$8h=v}v=$8h;return v},{mode:2});var I9=function(){var v=_.z.apply(this,arguments)||this;v.duration=4E3;v.downloadingCount=0;v.downloadedCount=0;v.downloadingOnlySmartDownloads=!1;v.sessionTotalDownloads=0;v.sessionDownloaded=0;v.previousSessionsDownloaded=0;v.totalDownloadPercentage=0;v.currentDownloadProgress=0;v.currentDownloadPercentage=0;v.isLeaderTab=!0;v.isFullScreen=!1;v.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};v.boundBeforeUnload=function(Q){v.isLeaderTab&&v.downloadingCount>0&&(Q.preventDefault(),
Q.returnValue=!0)};
return v};
_.f(I9,_.z);_.K=I9.prototype;
_.K.open=function(){this.updateDownloadState();if(this.data){var v=this.sessionDownloaded+1,Q=this.sessionTotalDownloads>1?_.Lt("VIDEOS_DOWNLOADING_RATIO",{downloaded:v.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+v+"/"+this.sessionTotalDownloads):_.Lt("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(Q=this.sessionTotalDownloads>1?_.Lt("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:v.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
v+"/"+this.sessionTotalDownloads):_.Lt("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));v=this.isLeaderTab?_.Lt("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.j0(this.data.responseText)!==Q||_.j0(this.data.subText)!==v)this.set("data.responseText",_.u3(Q)),this.set("data.subText",_.u3(v)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.K.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.K.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.K.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.K.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var v=this.downloadedCount-this.previousSessionsDownloaded;v<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-v);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.K.handleFullscreenChange=function(v){(this.isFullScreen=v)||this.updatePopup()};
I9.prototype.updateCurrentDownloadProgress=I9.prototype.updateCurrentDownloadProgress;I9.prototype.updatePopup=I9.prototype.updatePopup;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],I9.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],I9.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],I9.prototype,"actionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"duration",void 0);_.W([_.q({selector:function(v){return _.sZb(v.entities).length}}),
_.X("design:type",Object)],I9.prototype,"downloadingCount",void 0);_.W([_.q({selector:JR0}),_.X("design:type",Object)],I9.prototype,"downloadedCount",void 0);_.W([_.q({selector:function(v){var Q=_.sZb(v.entities);return z1j(v.entities,Q)}}),
_.X("design:type",Object)],I9.prototype,"downloadingOnlySmartDownloads",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"sessionTotalDownloads",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"sessionDownloaded",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"previousSessionsDownloaded",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"totalDownloadPercentage",void 0);
_.W([_.q({selector:function(v){var Q;v=(Q=_.sZb(v.entities))!=null?Q:[];return v.length>0?_.Rr3(v.slice(-1)):0}}),
_.X("design:type",Object)],I9.prototype,"currentDownloadProgress",void 0);_.W([_.q(),_.X("design:type",Object)],I9.prototype,"currentDownloadPercentage",void 0);_.W([_.q({selector:_.X6T}),_.X("design:type",Object)],I9.prototype,"isLeaderTab",void 0);_.W([_.Z7("yt-notification-action-renderer"),_.X("design:type",Object)],I9.prototype,"notificationActionRenderer",void 0);
_.W([_.wg("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],I9.prototype,"updatePopup",null);_.W([_.wg("currentDownloadProgress"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],I9.prototype,"updateCurrentDownloadProgress",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],I9);
_.B(I9,"ytd-video-download-toast-renderer",function(){if(aUm!==void 0)return aUm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return aUm=v},{mode:1});var IUd;var HII;var Ht=function(){return _.z.apply(this,arguments)||this};
_.f(Ht,_.z);Ht.prototype.computeIsRedLogo=function(v,Q){!v&&Q&&(v=Q);return v==="YOUTUBE_RED_LOGO"||v==="YOUTUBE_PREMIUM_LOGO"};
Ht.prototype.computeLogoName=function(v){v=this.componentBehavior.computeIcon_(v);return v===""?"yt-logos-ext:yt-logo-updated":v};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ht.prototype,"componentBehavior",void 0);_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.X("design:type",Boolean)],Ht.prototype,"isRedLogo",void 0);_.W([_.q({computed:"computeLogoName(data)"}),_.X("design:type",String)],Ht.prototype,"logoName",void 0);_.W([_.q({value:{}}),_.X("design:type",Object)],Ht.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],Ht.prototype,"logoType",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-logo"})],Ht);
_.B(Ht,"ytd-logo",function(){if(HII!==void 0)return HII;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return HII=v},{mode:_.mV("kevlar_poly_si_batch_j074")?1:2});var mN=function(){var v=_.z.apply(this,arguments)||this;v.animationRef={};return v};
_.f(mN,_.z);_.K=mN.prototype;_.K.attached=function(){document.addEventListener("yt-navigate-finish",_.Lh(this,this.logYoodle))};
_.K.detached=function(){document.removeEventListener("yt-navigate-finish",_.Lh(this,this.logYoodle))};
_.K.logYoodle=function(){var v,Q;if((v=this.data)==null?0:(Q=v.loggingDirectives)==null?0:Q.trackingParams)this.ytRendererBehavior.markDirty(),_.tR().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.K.computeHideImg=function(v,Q){return!!v||!!Q};
_.K.computeHideYtdLogo=function(v,Q){return!v||!!Q};
_.K.computeHideLottie=function(v){return!v};
_.K.computeIsRedLogo=function(v){return v==="YOUTUBE_RED_LOGO"||v==="YOUTUBE_PREMIUM_LOGO"};
_.K.renderLogoEntity=function(){var v=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),Q=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),V=this.getLogoTitleText(this.data),E=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==v&&(this.url=v);this.animatedUrl!==Q&&(this.animatedUrl=Q);this.logoTitleText!==V&&(this.logoTitleText=V);this.lottieUrl!==E&&(this.lottieUrl=E,this.lottiePlayerProps=this.computeLottiePlayerProps(E))};
_.K.getSanitizedThumbnail=function(v){return v&&v.thumbnails?_.j3G(v.thumbnails,122)||"":""};
_.K.getThumbnailUrl=function(v,Q){if(!Q)return"";var V,E;v=v?(V=Q.darkThemeLogo)==null?void 0:V.thumbnail:(E=Q.lightThemeLogo)==null?void 0:E.thumbnail;return this.getSanitizedThumbnail(v)};
_.K.getAnimatedThumbnailUrl=function(v,Q){return Q?this.getSanitizedThumbnail(v?Q.darkThemeAnimatedLogo:Q.lightThemeAnimatedLogo):""};
_.K.getLogoTitleText=function(v){if(v)return _.j0(v.tooltipText)};
_.K.computeLogoIcon=function(v,Q){if(Q){var V,E;return v?(V=Q.darkThemeLogo)==null?void 0:V.icon:(E=Q.lightThemeLogo)==null?void 0:E.icon}};
_.K.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.K.getLottieUrl=function(v,Q){var V,E,b,F;return v?Q==null?void 0:(V=Q.darkThemeLogo)==null?void 0:(E=V.lottieAnimation)==null?void 0:E.url:Q==null?void 0:(b=Q.lightThemeLogo)==null?void 0:(F=b.lottieAnimation)==null?void 0:F.url};
_.K.computeLottiePlayerProps=function(v){if(v){var Q;if((Q=this.animationRef)==null?0:Q.lottieEl){var V;(V=this.animationRef)==null||V.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:v,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.K.onLottieError=function(){this.data&&this.lottieUrl&&_.Hj(this.hostElement,"yoodle-error")};
_.K.onImgError=function(){this.data&&!this.lottieUrl&&_.Hj(this.hostElement,"yoodle-error")};
mN.prototype.playAnimation=mN.prototype.playAnimation;mN.prototype.renderLogoEntity=mN.prototype.renderLogoEntity;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],mN.prototype,"data",void 0);_.W([_.q({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.X("design:type",Boolean)],mN.prototype,"hideImg",void 0);
_.W([_.q({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.X("design:type",Boolean)],mN.prototype,"hideYtdLogo",void 0);_.W([_.q({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.X("design:type",Boolean)],mN.prototype,"hideLottie",void 0);_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.X("design:type",Boolean)],mN.prototype,"isRedLogo",void 0);
_.W([_.q(),_.X("design:type",Boolean)],mN.prototype,"useDarkThemeYoodle",void 0);_.W([_.q(),_.X("design:type",String)],mN.prototype,"url",void 0);_.W([_.q(),_.X("design:type",String)],mN.prototype,"animatedUrl",void 0);_.W([_.q(),_.X("design:type",String)],mN.prototype,"logoTitleText",void 0);_.W([_.q({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.X("design:type",Object)],mN.prototype,"logoIcon",void 0);_.W([_.q(),_.X("design:type",Object)],mN.prototype,"logoType",void 0);
_.W([_.q(),_.X("design:type",String)],mN.prototype,"lottieUrl",void 0);_.W([_.q(),_.X("design:type",Object)],mN.prototype,"lottiePlayerProps",void 0);_.W([_.q(),_.X("design:type",Object)],mN.prototype,"animationRef",void 0);_.W([_.ph("data"),_.ph("useDarkThemeYoodle"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],mN.prototype,"renderLogoEntity",null);
_.W([_.tM("click"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],mN.prototype,"playAnimation",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],mN);
_.B(mN,"ytd-yoodle-renderer",function(){if(IUd!==void 0)return IUd;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return IUd=v},{mode:_.mV("kevlar_poly_si_batch_j074")?1:2});var m8j;var U8s;var vVf=_.zw.currentPageTypeSelector,QL7=_.zw.currentPageSubTypeSelector,UU=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return v};
_.f(UU,_.z);_.K=UU.prototype;_.K.onYoodleError=function(){_.Y("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.K.computeLogoName=function(v){v=this.componentBehavior.computeIcon_(v);return v===""?"yt-logos-ext:yt-logo-updated":v};
_.K.computeTitle=function(v,Q,V){return V&&(Q==null?0:Q.tooltipText)?_.j0(Q.tooltipText):_.j0(v)};
_.K.computeAriaLabel=function(v,Q,V){return V&&(Q==null?0:Q.tooltipText)?_.j0(v):""};
_.K.computeShowYoodle=function(v,Q,V){return!v||!Q&&!!V&&!_.gI.isEmpty(V)};
_.K.onNavigateHomeAction=function(){if(_.Y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var v;(v=_.m9(this.hostElement).querySelector(".yt-simple-endpoint"))==null||v.click()}};
_.K.computeLogoHref=function(v,Q,V){var E;(V==null?0:V.onTapCommand)?E=this.componentBehavior.computeHref_(V.onTapCommand):v&&(E=this.componentBehavior.computeHref_(v));return E?E:Q};
_.K.computeCommand=function(v,Q){return(Q==null?void 0:Q.onTapCommand)||v};
_.K.getEndpointForm=function(){if(_.Y("kevlar_topbar_disable_cache_only_home")){var v=_.ht().resolve(_.Uj),Q=vVf(v.getState())||"";v=QL7(v.getState())||"";return{disableCache:Q==="ytd-browse"&&v==="home"}}return{disableCache:!0}};
UU.prototype.onYoodleError=UU.prototype.onYoodleError;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],UU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],UU.prototype,"componentBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],UU.prototype,"ytdReduxBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],UU.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],UU.prototype,"countryCode",void 0);_.W([_.q({selectorArgs:["data.overrideEntityKey"],selector:function(v,Q){return _.Fg(v.entities,"logoEntity",Q)}}),
_.X("design:type",Object)],UU.prototype,"logoEntity",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.X("design:type",Boolean)],UU.prototype,"showYoodle",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],UU.prototype,"yoodleError",void 0);_.W([_.q({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.X("design:type",String)],UU.prototype,"titleText",void 0);
_.W([_.q({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.X("design:type",String)],UU.prototype,"ariaLabelText",void 0);_.W([_.q({value:"/"}),_.X("design:type",String)],UU.prototype,"defaultEndpointUrl",void 0);_.W([_.q({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.X("design:type",String)],UU.prototype,"endpointUrl",void 0);
_.W([_.q({computed:"computeCommand(data.endpoint, logoEntity)"}),_.X("design:type",String)],UU.prototype,"command",void 0);_.W([_.q(),_.X("design:type",Object)],UU.prototype,"logoType",void 0);_.W([_.q({}),_.X("design:type",Boolean)],UU.prototype,"useDarkThemeYoodle",void 0);_.W([_.tM("yoodle-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],UU.prototype,"onYoodleError",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],UU);
_.B(UU,"ytd-topbar-logo-renderer",function(){if(U8s!==void 0)return U8s;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return U8s=v},{mode:_.mV("kevlar_poly_si_batch_j027")?1:2});var VB5=0;var EVh=_.u1.SEARCH_APPEND_LABEL,bQ$=_.u1.SUGGESTION_NEW_VIDEOS_TEXT,Fam=_.u1.SUGGESTION_THUMBNAIL_LABEL,Kaf=_.u1.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,iQf=_.x(function(v){function Q(E9){var wY,Ws;return _.e(function(Zg){if(Zg.nextAddress==1)return wY=new Request(E9),_.GC(Zg,2),Zg.yield(fetch(wY,{credentials:"include"}),4);if(Zg.nextAddress!=2)return LE(!0),_.FT(Zg,0);Ws=_.n$(Zg);_.Iy(Ws);_.q1(Zg)})}
var V=v.isHighlighted;var E=v.suggestion;var b=v.onClickCallback;var F=v.onHoverUpdateCallback;var t=v.labels;var p=v.queryBuilderFunction;var Z=v.onRemoveCallback;var d=v.suggestionIndex;var w=v.generateUniqueId;var A=v.highlightedId;var k=v.useScrollMargin;var T=v.isKeyboardMode;var c=null,C=null,R=null,l=_.Ze("div"),S=_.Ze("span");v=_.L(_.Ge(!1,void 0,"LafNkf"));var a=v.next().value,g=v.next().value,u=_.Pa("a",function(E9){E9&&_.Tz(237477,E9,C,function(wY){C=wY})}),r=_.Pa("button",function(E9){E9&&
_.Tz(237477,E9,C,function(wY){C=wY})}),v9=_.Pa("div",function(E9){E9&&_.Tz(281939,E9,R,function(wY){R=wY})}),t3=_.EP(function(E9){if((E9==null?void 0:E9.button)===2)return E9.preventDefault(),!1;
var wY=_.Mo();wY&&c&&_.jP(wY,c,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Ws;b(E9,E().text,E().index,E().entityMid,E9==null?void 0:(Ws=E9.detail)==null?void 0:Ws.wasSelectedByKeyboard);return!1}),h3=function(){return E().type===35},OB=function(){return _.Y("desktop_enable_single_suggestion_highlight")},kQ=function(){return _.T_("desktop_suggestions_panel_row_height")||0},yo=function(){var E9;
return _.Y("desktop_enable_new_video_metadata")&&((E9=E())==null?void 0:E9.hasNewVideo)===!0},xQ=function(){return _.Y("desktop_enable_visual_suggest")},lb=function(){return _.Y("desktop_enable_entity_suggest")&&lUY(E())},ep=function(){return E().entitySubtitle},JS=function(){return OB()?(V==null?void 0:V())||Ed()&&!(T==null?0:T()):(V==null?void 0:V())||Ed()},fZ=function(){var E9=_.r7("SBOX_SETTINGS");
return h3()&&!(E9==null?0:E9.HIDE_REMOVE_LINK)},mS=function(){return q4Y(E(),{useEntityName:lb()})},PN,qZ=!((PN=_.ht().resolve(_.d$(_.JR)))==null||!PN()),DX=function(){return h3()?_.Y("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Th=function(){return t==null?void 0:t().SUGGESTION_DISMISS_LABEL},R8=function(){return t==null?void 0:t().SUGGESTION_DISMISSED_LABEL};
v=_.L(_.Ge(!1,void 0,"JyfUlf"));PN=v.next().value;var LE=v.next().value;v=_.L(_.Ge(!1,void 0,"QKfAGe"));var Q8=v.next().value,Tq=v.next().value,Ed=Q8,y8=_.EP(function(){p(S.value.innerText);return!1}),mA=_.EP(function(E9){E9.preventDefault();
return!1}),C$=_.EP(function(E9){var wY=E().text,Ws=_.r7("SBOX_SETTINGS"),Zg="https://"+(Ws.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Zg+="&delq="+encodeURIComponent(wY);(wY=Ws==null?void 0:Ws.PSUGGEST_TOKEN)&&(Zg+="&tok="+wY);(Ws=Ws==null?void 0:Ws.SESSION_INDEX)&&(Zg+="&authuser="+Ws);Q(Zg);E9.preventDefault();(E9=_.Mo())&&C&&_.jP(E9,C,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");Z(d==null?void 0:d());return!1}),oN=_.EP(function(){if(OB()&&(T==null?0:T()))return!1;
Tq(!0);F(!0);return!1}),dV=_.EP(function(){Tq(!1);
F(!1);return!1}),hS=_.EP(function(){g(!0);
return!1}),bh=_.EP(function(){g(!1);
return!1}),ah=_.EP(function(E9){E9.preventDefault();
if(E().entityThumbnailAttributionUrl){R&&_.N_(_.tR(),R);var wY=E().entityThumbnailAttributionUrl;E9=E().entityName;var Ws={dismissDialogEndpoint:{}};wY={commandExecutorCommand:{commands:[Ws,{urlEndpoint:{url:wY,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:wY}}}]}};Ws={buttonViewModel:{title:_.Lt("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Ws}}};wY={buttonViewModel:{title:_.Lt("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:wY}}};E9={dialogHeaderViewModel:{headline:{content:E9!=null?E9:_.Lt("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var Zg={basicContentViewModel:{paragraphs:[{text:{content:_.Lt("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};E9={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:E9,footer:{panelFooterViewModel:{primaryButton:wY,
secondaryButton:Ws,shouldHideDivider:!0}},content:Zg}}}}};_.ht().resolve(_.At).resolveCommand(E9)}return!1});
v=_.L(_.Ge("",void 0,"MvIBn"));var vs=v.next().value,dl=v.next().value;_.uk(function(){fZ()&&dl(w==null?void 0:w(d==null?void 0:d()));l.value&&_.Tz(12453,l.value,c,function(E9){c=E9})});
return _.P(_.h,{cond:PN,then:function(){var E9={};return _.P("div",{class:_.QZ("ytSuggestionComponentRemovedText",(E9.ytSuggestionComponentLargerRemovedText=function(){return xQ()},E9)),
style:function(){return kQ()>0?"height: "+kQ()+"px;":""},
role:"button"},R8)},
else:function(){var E9={},wY={};return _.P("div",{class:_.QZ("ytSuggestionComponentSuggestion",(E9.ytSuggestionComponentSuggestionHover=function(){return!OB()},E9.ytSuggestionComponentHighlighted=JS,E9.ytSuggestionComponentPersonalizedSuggestion=h3,E9.ytSuggestionComponentMweb=!1,E9.ytSuggestionComponentLargerSuggestion=function(){return yo()||xQ()},E9.ytSuggestionComponentThumbnailSuggestion=function(){return xQ()},E9.ytSuggestionComponentRoundedSuggestion=function(){return _.Y("desktop_enable_scrollable_suggestions_panel")&&
_.Y("desktop_enable_suggestions_panel_padding")},E9.ytSuggestionComponentThumbnailPadding=function(){return xQ()&&!h3()},E9)),
style:function(){return kQ()>0?"height: "+kQ()+"px;":""},
role:"presentation","on:mousedown":t3,"on:mouseover":oN,"on:mouseout":dV,el:l},_.P("div",{class:_.QZ("ytSuggestionComponentText",(wY.ytSuggestionComponentScrollMargin=k,wY)),"aria-label":function(){return yo()?E().text+" "+bQ$:E().text},
id:function(){return w==null?void 0:w(d==null?void 0:d())},
"on:mousedown":t3,role:"option"},_.P(_.h,{cond:function(){return E().type!==33},
then:function(){return _.P(_.L_,{icon:DX,className:"ytSuggestionComponentIcon"})}}),_.P("div",{class:"ytSuggestionComponentLeftContainer"},_.P("span",{el:S,
role:"button",tabindex:0},_.P(_.xb,{each:mS},function(Ws){return Ws.bold?_.P("span",{class:"ytSuggestionComponentBold"},Ws.text):_.P("span",null,Ws.text)})),_.P(_.h,{cond:function(){return lb()&&!!E().entitySubtitle||yo()},
then:function(){return _.P("div",{class:"ytSuggestionComponentMetadataContainer"},_.P(_.h,{cond:function(){return lb()&&!!E().entitySubtitle},
then:function(){return _.P("div",{class:"ytSuggestionComponentEntitySubtitle"},ep)}}),_.P(_.h,{cond:function(){return yo()},
then:function(){return _.P("div",{class:"ytSuggestionComponentNewVideoContainer"},_.P("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.P("div",{class:"ytSuggestionComponentNewVideoText"},bQ$))}}))}}))),_.P("div",{class:"ytSuggestionComponentRightContainer"},_.P(_.h,{cond:function(){return xQ()&&E().visualSuggestUrl!==void 0},
then:function(){var Ws={};return _.P("div",{class:"ytSuggestionComponentThumbnailContainer"},_.P("img",{"aria-label":Fam,class:_.QZ("ytSuggestionComponentVisualSuggestThumbnail",(Ws.ytSuggestionComponentCircularFrame=function(){return lb()&&E().subtypes.includes(790)},Ws.ytSuggestionComponentEntitySuggestThumbnail=function(){return lb()},Ws)),
src:function(){return E().visualSuggestUrl}}),_.P(_.h,{cond:function(){return lb()&&!!E().entityThumbnailAttributionUrl},
then:function(){var Zg={};return _.P("span",{title:Kaf,role:"tooltip"},_.P("div",{el:v9,"on:mouseover":hS,"on:mouseout":bh,"on:mousedown":ah,class:_.QZ("ytSuggestionComponentThumbnailOverlay",(Zg.ytSuggestionComponentThumbnailOverlayHidden=function(){return!a()},Zg))},_.P(_.L_,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.P(_.BU,null,_.P(_.J1,{when:function(){return xQ()&&fZ()}},function(){var Ws={};
return _.P("button",{class:_.QZ("ytSuggestionComponentRemoveLinkClearButton",(Ws.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return vs()&&vs()===(A==null?void 0:A())},Ws.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!JS()},Ws)),
el:r,"on:mousedown":C$,"aria-label":Th,id:function(){return vs()}},_.P(_.L_,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.P(_.J1,{when:function(){return!(xQ()&&E().visualSuggestUrl!==void 0)&&fZ()}},function(){var Ws={};
return _.P("a",{class:_.QZ("ytSuggestionComponentRemoveLink",(Ws.ytSuggestionComponentRemoveLinkDark=qZ,Ws.ytSuggestionComponentRemoveLinkSelected=function(){return vs()&&vs()===(A==null?void 0:A())},Ws)),
el:u,"on:mousedown":C$,"aria-label":Th,tabindex:0,role:"button",id:function(){return vs()}},Th)}),_.P(_.J1,{when:function(){return!1}},function(){return _.P("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":y8,"on:mousedown":mA,role:"button","aria-label":EVh},_.P(_.L_,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"zj");var Lah=_.s$(["//www.google.com/textinputassistant/","/","_tia.js"]),tBY=_.x(function(){return _.P("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.P("button",{class:"ytdTextInputAssistantButton","on:click":_.EP(function(){NUq().inputMethodsTracker.add(3);var v,Q=(v=_.r7("SBOX_SETTINGS"))==null?void 0:v.REQUEST_LANGUAGE;if(Q)return _.SH(_.Ad(Lah,14,Q)),!1})},_.P("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Aj");var p3m=function(){this.cache=new Map},eCq=function(v){for(var Q=_.L(v.cache.entries()),V=Q.next();!V.done;V=Q.next()){var E=_.L(V.value);
V=E.next().value;E=E.next().value;E.suggestions.some(function(b){return b.type===35})&&v.cache.delete(V)}};var ZQj=_.u1.SEARCH,PTh=_.u1.SEARCH_CLEAR_LABEL,dx$=new _.KB("FAKE_SUGGEST_RESPONSE"),hCh=_.x(function(v){function Q(){oN||(oN=setTimeout(function(){hS()},1E3))}
function V(MZ,Gq,uh){if(MZ.trim()){C$=MZ;_.aS("REFINEMENTS_TUPLE",void 0);y8=!0;var jc;Gq=gMh(R8,Gq);var Ya=(jc=v.searchEndpoint)==null?void 0:jc.call(v);_.V35(MZ,Gq,Ya,PN.value.value,uh);hS();PN.value.value=MZ;PN.value.blur();R8.reset()}}
function E(MZ){return _.e(function(Gq){return Gq.return(new Promise(function(uh){var jc=new XMLHttpRequest;jc.open("GET",GKj(MZ),!0);jc.withCredentials=!0;var Ya=_.r7("SBOX_SETTINGS");(Ya==null?0:Ya.SEND_VISITOR_DATA)&&jc.setRequestHeader("X-Goog-Visitor-Id",Ya==null?void 0:Ya.VISITOR_DATA);jc.onload=function(){uh(jc.responseText)};
jc.onerror=function(){_.Iy(Error("Ll"));uh(null)};
setTimeout(function(){jc.abort()},1E4);
jc.send(null)}))})}
function b(MZ){var Gq,uh,jc,Ya;return _.e(function(rI){switch(rI.nextAddress){case 1:return Gq={credentials:"include",headers:fUh()},window.AbortController&&(uh=new AbortController,setTimeout(function(){uh.abort("ytsbox-suggest-timeout")},1E4),Gq.signal=uh.signal),_.GC(rI,2),rI.yield(fetch(GKj(MZ),Gq),4);
case 4:jc=rI.yieldResult.text();_.FT(rI,3);break;case 2:return Ya=_.n$(rI),Ya!=="ytsbox-abort-last"&&Ya!=="ytsbox-suggest-timeout"&&_.Iy(Ya),rI.return(null);case 3:return rI.return(jc)}})}
function F(MZ){var Gq,uh,jc;return _.e(function(Ya){switch(Ya.nextAddress){case 1:if(Gq=_.ht().resolve(_.d$(dx$)))return Ya.return(Gq);uh=Date.now();Q();return _.Y("yt_searchbox_xhr")?Ya.yield(E(MZ),5):Ya.yield(b(MZ),4);case 4:jc=Ya.yieldResult;Ya.jumpTo(3);break;case 5:jc=Ya.yieldResult;case 3:if(jc){oN&&(clearTimeout(oN),oN=null);var rI=R8,am=uh,Wq=MZ.query.length===0;am=Date.now()-am;Wq?rI.zeroPrefixRoundTripTime=am:(rI.JSC$21081_totalRoundTripTime+=am,rI.maxRoundTripTime=Math.max(rI.maxRoundTripTime,
am),Wq=Math.floor(am/100),Wq>=sff.length?++rI.roundTripTimeHistogram[9]:++rI.roundTripTimeHistogram[sff[Wq]])}return Ya.return(jc)}})}
function t(MZ){var Gq,uh,jc;return _.e(function(Ya){if(Ya.nextAddress==1)return(Gq=Th.cache.get(cuh(MZ)))?Ya.return(Gq):Ya.yield(F(MZ),2);uh=Ya.yieldResult;if(uh===null)return Ya.return(null);jc=new S48(uh);MZ.query.length===0&&jc.suggestions.length===0||Th.cache.set(cuh(MZ),jc);return Ya.return(jc)})}
function p(MZ){var Gq,uh;return _.e(function(jc){if(jc.nextAddress==1){mA=!1;var Ya=C$;Ya=_.su()==="search"?(_.me(location.href,"search_query")||_.me(location.href,"q"))===Ya:!1;Gq=new yu7(MZ,Ya?C$:null);return jc.yield(t(Gq),2)}uh=jc.yieldResult;if(uh===null)return jc.return();Gq.query.length===0&&(R8.zeroPrefixSuggestionCount=uh.suggestions.length);if(Gq.id<=dV)return R8.outOfSyncResponseCount++,jc.return();if(document.activeElement!==PN.value)return jc.return();dV=Gq.id;var rI=R8,am=uh.rawResponse[2]||
{};rI.experimentTriggeredBeforeFinal||(rI.experimentTriggeredBeforeFinal=rI.experimentTriggeredFinal);rI.experimentTriggeredFinal=!!am.e;R8.updateSuggestions(uh.suggestions);R(-1);ep([]);uh.suggestions!==T()&&rb(uh.suggestions.length);c(uh.suggestions);t3(uh.suggestions.length>0&&uh.suggestions[0].type===33);DX&&(DX.hidden=uh.suggestions.length===0,v9()?(DX.style.minWidth="",rI=DX.style,am=(Ya=T()[0])==null?void 0:Ya.ignoredPrefix,rI.marginLeft=(am?Math.min(am.length*6,qZ.value.offsetWidth):0).toString()+
"px"):(DX.style.minWidth=qZ.value.offsetWidth+"px",DX.style.marginLeft="0"),yN());_.q1(jc)})}
function Z(){if(!y8)return!1;var MZ=_.r7("REFINEMENTS_TUPLE");return MZ?(MZ=MZ[1].map(function(Gq,uh){return new nMd([Gq,0,[71]],PN.value.value,uh)}),T()!==MZ&&rb(MZ.length),ep([]),c(MZ),R8.updateSuggestions(MZ),y8=!1,DX.hidden=MZ.length===0,mA=MZ.length>0,!0):!1}
function d(){var MZ=PN.value.value;(typeof MZ==="string"||MZ instanceof String)&&MZ!==""?g(!0):g(!1)}
function w(){if(_.su()==="search"){var MZ=window.location.href;try{var Gq=_.me(MZ,"search_query")||_.me(MZ,"q")||""}catch(uh){Gq=""}Gq&&(PN.value.value=Gq,g(!0))}}
var A=_.L(_.Ge([],void 0,"OC8EPc")),k=A.next().value;A=A.next().value;var T=k,c=A;k=_.L(_.Ge(-1,void 0,"t2tVQb"));var C=k.next().value,R=k.next().value;k=_.L(_.Ge(-1,void 0,"v0RZCe"));var l=k.next().value,S=k.next().value;k=_.L(_.Ge(!1,void 0,"rjAnI"));var a=k.next().value,g=k.next().value;k=_.L(_.Ge(!1,void 0,"SyGLvb"));var u=k.next().value,r=k.next().value;A=_.L(_.Ge(!1,void 0,"tL09Cb"));k=A.next().value;A=A.next().value;var v9=k,t3=A;A=_.L(_.Ge(!1,void 0,"FlH7mc"));k=A.next().value;var h3=A.next().value;
A=_.L(_.Ge(!1,void 0,"ea3fwe"));var OB=A.next().value,kQ=A.next().value;A=_.L(_.Ge(1,void 0,"vSK1xe"));var yo=A.next().value,xQ=A.next().value;A=_.L(_.Ge([],void 0,"ijlw4b"));var lb=A.next().value,ep=A.next().value;A=_.L(_.Ge(!1,void 0,"HcRey"));var JS=A.next().value,fZ=A.next().value;A=_.Y("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var mS=_.Ze("yt-searchbox"),PN=_.Ze("input"),qZ=_.Ze("div"),DX,Th=
new p3m,R8=NUq(),LE=_.ht().resolve(_.d$(_.JR)),Q8=function(){var MZ;return((MZ=v.forceDarkMode)==null?void 0:MZ.call(v))||!(LE==null||!LE())},Tq=function(){return _.Y("desktop_enable_scrollable_suggestions_panel")},Ed="i"+VB5++,y8=!1,mA=!1,C$="",oN=null,dV=-1,hS=function(){ep([]);
c([]);t3(!1);DX&&(DX.hidden=!0);oN&&(clearTimeout(oN),oN=null);R(-1)},bh=function(MZ,Gq){MZ.preventDefault();
fZ(!0);DX&&(DX.hidden=!1);var uh=C();MZ=T();var jc=lb();Gq=E$m(Gq);uh+=Gq;for(uh>=MZ.length?uh=-1:uh<-1&&(uh=MZ.length-1);uh!==-1&&(jc.includes(uh)||uh>=MZ.length||uh<0);)uh+=Gq,uh>=MZ.length&&(uh=-1);R(uh);C()>=0&&(PN.value.value=T()[C()].text,S(0),d(),MZ=C(),jc=l(),(jc=document.getElementById(la[MZ][jc]))&&Tq()&&(MZ===T().length-1?DX.scrollTop=DX.scrollHeight:jc.scrollIntoView({block:"nearest",inline:"start"})))},ah=_.EP(function(MZ){if(!(MZ.relatedTarget instanceof Element&&MZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){r(!0);
var Gq;(Gq=v.focusCallback)==null||Gq.call(v,!0);Z()||(mA?DX.hidden=!1:(_.Hj(mS.value,"yt-autonav-pause-focus",{}),p(MZ.target.value)))}}),vs=_.EP(function(MZ){if(!(MZ.relatedTarget instanceof Element&&MZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){r(!1);
var Gq;(Gq=v.focusCallback)==null||Gq.call(v,!1);DX.scrollTop=0;DX.hidden=!0;_.Hj(mS.value,"yt-autonav-pause-blur",{})}}),dl=function(MZ){MZ=E$m(MZ);
var Gq;((Gq=la[C()])==null?0:Gq[l()+MZ])&&S(l()+MZ)},E9=_.EP(function(MZ){var Gq=MZ.target;
switch(MZ.keyCode){case 13:MZ.preventDefault();var uh;if((uh=la[C()])==null?0:uh[l()]){var jc;(jc=document.getElementById(la[C()][l()]))==null||jc.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}MZ=MZ.shiftKey?4:3;uh=R8;jc=C();uh.selectedSuggestionIndex=jc;V(Gq.value,MZ);break;case 27:DX&&(DX.hidden=!0);break;case 40:bh(MZ,40);break;case 38:bh(MZ,38);break;case 39:dl(39);break;case 37:dl(37);break;case 229:R8.inputMethodsTracker.add(4);break;default:R8.inputMethodsTracker.add(1),
x85(R8)}return!1}),wY=_.EP(function(MZ){p(MZ.target.value);
d();Tq()&&DX&&(DX.scrollTop=0);return!1}),Ws=_.EP(function(){R8.inputMethodsTracker.add(2);
x85(R8);return!1});
_.uk(function(){if(DX){R8.reset();if(window.ResizeObserver){var MZ=new ResizeObserver(function(){v9()||(DX.style.minWidth=qZ.value.offsetWidth+"px")});
MZ.observe(qZ.value);(new ResizeObserver(function(){yN()})).observe(DX);
_.j_(function(){MZ.disconnect()})}w();
window.addEventListener("yt-navigate-finish",w);window.addEventListener("yt-focus-searchbox",function(){PN.value.focus()});
var Gq;h3((Gq=_.r7("SBOX_SETTINGS"))==null?void 0:Gq.HAS_ON_SCREEN_KEYBOARD)}else _.ro(new _.xd("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Zg=_.EP(function(MZ){MZ.preventDefault();V(PN.value.value,12);return!1}),TT=_.EP(function(MZ){MZ.preventDefault();
var Gq,uh;(Gq=PN)==null||(uh=Gq.value)==null||uh.focus();var jc,Ya;((jc=PN)==null?void 0:(Ya=jc.value)==null?void 0:Ya.value)!==""&&(PN.value.value="",PN.value.dispatchEvent(new Event("input")));return!1}),WN=_.EP(function(){var MZ=sJn(PN.value.value,T().filter(function(Gq){return Gq.type!==35}).map(function(Gq){return{label:Gq.text}}));
_.mb(mS.value,"yt-open-popup-action",[{openPopupAction:MZ},document.body]);return!1}),Gh=_.EP(function(){PN.value.focus();
return!1}),Fn=function(MZ,Gq,uh,jc,Ya){R8.selectedSuggestionIndex=uh;
V(Gq,Ya?3:1,jc)},fg=function(MZ){PN.value.value=MZ;
PN.value.dispatchEvent(new Event("input"));R8.inputMethodsTracker.add(5);x85(R8,!0)},la=[[]],Ql=function(MZ){var Gq="searchbox-suggestion"+_.Be(_.K9);
la[MZ].push(Gq);return Gq},rb=function(MZ){if(T()){la=[[]];
for(var Gq=0;Gq<MZ;Gq++)la.push([])}},yN=function(){if(Tq()){var MZ=DX,Gq=MZ.scrollTop;
MZ=MZ.scrollHeight-MZ.clientHeight;kQ(Gq>=MZ);Gq=Math.abs(MZ-Gq);Gq<=40?xQ(1-(40-Gq)/40):xQ(1)}},h8=function(){return"opacity: "+yo()*100+"%"},Dt=_.EP(function(){yN();
return!1}),gG=_.EP(function(){fZ(!1);
return!1}),Xr,AS={},cs={},qj={},nj={};
return _.P("yt-searchbox",{class:_.QZ("ytSearchboxComponentHost",(AS.ytSearchboxComponentMweb=!1,AS.ytSearchboxComponentDesktop=!0,AS["yt-searchbox-filled-query"]=function(){return a()},AS["ytd-masthead"]=function(){return!u()},AS.ytSearchboxComponentHostDark=Q8,AS)),
role:"search",el:mS,"client-ve-type":10349},_.P("div",{el:qZ,"on:click":Gh,class:_.QZ("ytSearchboxComponentInputBox",(cs.ytSearchboxComponentInputBoxDark=Q8,cs.ytSearchboxComponentInputBoxHasFocus=u,cs))},_.P("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Zg},_.P(_.h,{cond:u,then:function(){return _.P("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.P(_.L_,{icon:"SEARCH"}))}}),_.P("input",{el:PN,
class:_.QZ("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ed,"aria-expanded":!((Xr=DX)==null?0:Xr.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":vs,"on:focus":ah,"on:input":wY,"on:keydown":E9,"on:paste":Ws,placeholder:v.placeholderText,"aria-activedescendant":function(){var MZ;return(MZ=la[C()])==null?void 0:MZ[l()]},
"aria-autocomplete":"list",role:"combobox"})),_.P(_.h,{cond:k,then:function(){return _.P("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.P(tBY,null))}}),_.P(_.h,{cond:a,
then:function(){return _.P("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.P("button",{class:"ytSearchboxComponentClearButton","on:click":TT,"aria-label":v.clearButtonAriaLabel||PTh},_.P(_.L_,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.P(_.c6,{model:{}})))}})),_.P("button",{class:_.QZ("ytSearchboxComponentSearchButton",(qj.ytSearchboxComponentSearchButtonDark=Q8,qj)),
"on:click":Zg,"aria-label":ZQj,title:v.placeholderText},_.P(_.L_,{icon:"SEARCH"})),_.P(_.h,{cond:function(){if(Mm8()&&_.Y("mweb_voice_search")&&v.voiceSearchButton)return v.voiceSearchButton()},
then:function(MZ){var Gq={};return _.P("div",{class:_.QZ("ytSearchboxComponentVoiceSearchWrapper",(Gq.ytSearchboxComponentHideVoiceSearchButton=function(){return a()},Gq))},_.P(_.Pw,{data:MZ},{buttonRenderer:function(uh){return _.P(_.T$,{data:uh.data,
onButtonClickCallback:function(){}})}}))}}),_.P("div",{el:_.ud(function(MZ){return void(DX=MZ)}),
id:Ed,class:_.QZ("ytSearchboxComponentSuggestionsContainer",(nj.ytSearchboxComponentSuggestionsContainerDark=Q8,nj["yt-searchbox-suggestions-container"]=!1,nj.ytSearchboxComponentSuggestionsContainerScrollable=Tq(),nj.ytSearchboxComponentSuggestionsContainerAnimated=A,nj)),"on:scroll":Dt,"on:mousemove":gG,role:"listbox",hidden:!0},_.P(_.xb,{each:T},function(MZ,Gq){return _.P(iQf,{suggestion:MZ,isHighlighted:function(){return Gq()===C()},
onClickCallback:Fn,onHoverUpdateCallback:function(uh){if(_.Y("desktop_enable_single_suggestion_highlight")){var jc=Gq();uh&&(S(0),R(jc))}},
onRemoveCallback:function(uh){eCq(Th);uh===void 0||uh<0||lb().includes(uh)||ep([].concat(_.ui(lb()),[uh]))},
labels:v.labels,queryBuilderFunction:fg,suggestionIndex:Gq,generateUniqueId:Ql,highlightedId:function(){var uh;return(uh=la[C()])==null?void 0:uh[l()]},
useScrollMargin:Tq(),isKeyboardMode:JS})}),_.P(_.h,{cond:function(){return!v9()&&T().find(function(MZ){return MZ.type!==35})&&_.Y("searchbox_reporting")},
then:function(){return _.P("button",{class:"ytSearchboxComponentReportButton","on:mousedown":WN},_.Lt("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.P(_.h,{cond:function(){return!OB()&&Tq()},
then:function(){return _.P("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.P("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:h8}))}})))},"Cj");
hCh.idomCompat={callbacks:{focusCallback:!0}};_.ad(hCh,"yt-searchbox",{props:{searchEndpoint:_.pJ,placeholderText:_.pJ,labels:_.pJ,voiceSearchButton:_.pJ,focusCallback:_.Wg,clearButtonAriaLabel:_.pJ,forceDarkMode:_.pJ}});var vv=function(){var v=_.z.apply(this,arguments)||this;v.menuButtonTargetId="topbar-guide-menu";v.narrow=!1;v.menuStrings={BACK_ALT_LABEL:_.Lt("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Lt("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Lt("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Lt("SBOX_PLACEHOLDER",void 0,"Search")};v.pageDarkTheme=document.documentElement.hasAttribute("dark");v.watchPageScrollTop=0;v.theater=!1;v.fullscreen=!1;v.disableFrostedGlassDuringViewTransition=
!1;v.desktopUnifiedSearchPanelMode=_.Y("desktop_enable_unified_search_panel");v.aiCompanionEnabled=_.Y("enable_ai_companion");v.ytSearchboxFocused=!1;v.searchboxLabels=_.r7("SBOX_LABELS");v.topbarIsAboveChipbar=!1;v.isDarkThemeForced=!1;v.areGhostCardsHidden=!1;v.guideKeyboardToggle=!1;v.voiceSearchManager=kHY();v.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};v.setYtSearchboxFocused=function(Q){v.ytSearchboxFocused=Q};
v.toggleFrostedGlassDuringViewTransition=function(Q){v.disableFrostedGlassDuringViewTransition=Q};
return v};
_.f(vv,_.z);_.K=vv.prototype;_.K.computeSimpleText=function(v){return _.j0(v)};
_.K.onDarkChanged=function(){for(var v=_.L(this.buttons||[]),Q=v.next();!Q.done;Q=v.next())Q.value.isOverlay=!!this.dark;v=_.L(this.buttonRenderers||[]);for(Q=v.next();!Q.done;Q=v.next())Q.value.overrides=this.computeButtonOverride()};
_.K.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.K.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var v=_.PO(_.Zp(),"aa");_.VE(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||v||(this.isDarkThemeForced=this.dark=!0);this.logoType?(v=this.hostElement.querySelector("#masthead-logo"))&&(_.Y("polymer_on_demand_shady_dom")?v.setAttribute("slot","masthead-logo-old"):_.ng(v)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Lh(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Lh(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.K.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Lh(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Lh(this,this.onSetTheaterModeEnabled))};
_.K.dataChanged=function(){var v=this.data;v&&(this.voiceEnabled=v.voiceSearchButton?kHY().isSupported():!1,_.lPN(_.xp(),this.menuButtonTargetId,this.guideButton),v.onReceivedActions&&v.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Qk(this.hostElement,v.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&v&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.VE(this.hostElement,"dark",!1),_.VE(this.hostElement,"theater",!1),
(v=this.hostElement.querySelector("#masthead-logo"))&&(_.Y("polymer_on_demand_shady_dom")?v.setAttribute("slot","masthead-logo-old"):_.ng(v))))};
_.K.computeCenterHidden=function(){var v;return this.data&&!((v=this.data.searchbox)==null?0:v.fusionSearchboxRenderer)};
_.K.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.VE(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.K.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.K.onWatchScroll=function(v){this.watchPageScrollTop=v.detail||0;this.updateMastheadBackgroundOpacity()};
_.K.onFullscreenChangeAction=function(v){v||(this.watchPageScrollTop=0);this.fullscreen=v;this.updateMastheadBackgroundOpacity()};
_.K.onSetTheaterModeEnabled=function(v){this.theater=v.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.K.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.K.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.K.setBackgroundOpacity=function(v){v=this.calculateBackgroundOpacity(v);this.background.style.opacity=""+v};
_.K.calculateBackgroundOpacity=function(v){var Q=this.theater?.6:0,V=this.hostElement.clientHeight/2;return Math.min(Math.max(v,0),V)/V*(1-Q)+Q};
_.K.shouldShowCinematicMastHead=function(){var v=_.Y("kevlar_watch_grid")&&!_.Y("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(v||this.pageDarkTheme)};
_.K.focusGuide=function(){this.guideButton.focus()};
_.K.onGuideToggleTap=function(){_.Hj(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.K.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.K.onGuideToggleHover=function(){_.Hj(this.hostElement,"yt-guide-hover")};
_.K.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.K.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.K.closeOnOutsideClickCondition=function(v){for(v=_.uK(v);v[0];){var Q=v.shift();if(Q instanceof Element&&Q.id==="kbd")return!1}return!0};
_.K.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.K.pausePlayer=function(){var v;(v=_.aJ())==null||v.pause();this.pauseMiniplayer()};
_.K.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var v;(v=_.ht().resolve(_.lJ).getPlayerElement())==null||v.pause()}};
_.K.isMiniplayerActive=function(){return _.ht().resolve(_.lJ).isMiniplayerActive()};
_.K.updateNarrowFromBinding=function(v){this.narrow=v.detail.value};
_.K.onYtSendFeedbackAction=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.K.registerWithViewTransitionManager=function(){SCq(_.ht().resolve(_.aw),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.hr.Object.defineProperties(vv.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var v;return!!(this.aiCompanionEnabled&&((v=this.data)==null?0:v.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var v;return(v=this.data)==null?void 0:v.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
vv.prototype.narrowChanged=vv.prototype.narrowChanged;vv.prototype.onWatchPageChange=vv.prototype.onWatchPageChange;vv.prototype.onRendererStamperFinished=vv.prototype.onRendererStamperFinished;vv.prototype.dataChanged=vv.prototype.dataChanged;vv.prototype.onDarkChanged=vv.prototype.onDarkChanged;_.W([_.M(_.WW),_.X("design:type",Object)],vv.prototype,"ironResizableBehavior",void 0);_.W([_.M(_.m2$),_.X("design:type",Object)],vv.prototype,"ytdExpandableInputBehavior",void 0);
_.W([_.M(_.ip.YtdGuideStateAwareBehavior),_.X("design:type",Object)],vv.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],vv.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],vv.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.QU),_.X("design:type",Object)],vv.prototype,"ytdReduxBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],vv.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],vv.prototype,"narrow",void 0);_.W([_.q(),_.X("design:type",Object)],vv.prototype,"logoType",void 0);_.W([_.q(),_.X("design:type",Boolean)],vv.prototype,"voiceEnabled",void 0);
_.W([_.q(),_.X("design:type",Object)],vv.prototype,"menuStrings",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],vv.prototype,"dark",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vv.prototype,"pageDarkTheme",void 0);_.W([_.q(),_.X("design:type",Object)],vv.prototype,"watchPageScrollTop",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.SAt}),_.X("design:type",Boolean)],vv.prototype,"isWatchPage",void 0);
_.W([_.q({reflectToAttribute:!0,selector:_.zcT}),_.X("design:type",Boolean)],vv.prototype,"isShortsPage",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vv.prototype,"theater",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vv.prototype,"fullscreen",void 0);_.W([_.q({reflectToAttribute:!0,selector:_.BxZ}),_.X("design:type",String)],vv.prototype,"frostedGlassMode",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vv.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],vv.prototype,"aiCompanionEnabled",void 0);_.W([_.q(),_.X("design:type",Object)],vv.prototype,"ytSearchboxFocused",void 0);_.W([_.Pn("#buttons > *"),_.X("design:type",Array)],vv.prototype,"buttons",void 0);_.W([_.Pn("ytd-button-renderer"),_.X("design:type",Array)],vv.prototype,"buttonRenderers",void 0);
_.W([_.Z7("#background"),_.X("design:type",HTMLDivElement)],vv.prototype,"background",void 0);_.W([_.Z7("#guide-button"),_.X("design:type",Object)],vv.prototype,"guideButton",void 0);_.W([_.Z7("#logo"),_.X("design:type",Object)],vv.prototype,"logo",void 0);_.W([_.q({computed:"computeButtonOverride(dark)"}),_.X("design:type",Object)],vv.prototype,"buttonOverrides",void 0);
_.W([_.wg("dark"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vv.prototype,"onDarkChanged",null);_.W([_.q({value:function(){return this.onVoiceTap.bind(this)}}),
_.X("design:type",Function)],vv.prototype,"boundOnTapVoiceButton",void 0);_.W([_.q(),_.X("design:type",Object)],vv.prototype,"topbarIsAboveChipbar",void 0);_.W([_.q(),_.X("design:type",String),_.X("design:paramtypes",[])],vv.prototype,"guideIcon",null);_.W([_.O("voiceEnabled"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],vv.prototype,"shouldShowVoiceSearchButton",null);
_.W([_.O("data.aiCompanionButton","aiCompanionEnabled"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],vv.prototype,"shouldShowAiCompanionButton",null);_.W([_.O("data"),_.X("design:type",Object),_.X("design:paramtypes",[])],vv.prototype,"voiceSearchButton",null);_.W([_.O("aiCompanionEnabled"),_.X("design:type",String),_.X("design:paramtypes",[])],vv.prototype,"narrowQuery",null);
_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vv.prototype,"dataChanged",null);_.W([_.tM("yt-rendererstamper-finished"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vv.prototype,"onRendererStamperFinished",null);_.W([_.wg("isWatchPage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vv.prototype,"onWatchPageChange",null);
_.W([_.wg("narrow"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],vv.prototype,"narrowChanged",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-masthead"})],vv);
_.B(vv,"ytd-masthead",function(){if(m8j!==void 0)return m8j;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return m8j=v},{mode:_.mV("kevlar_poly_si_batch_j036")?1:2});var w3$;var AKY={},kGn={},TzY={},Yz$={},yK8=(Yz$.OFFLINE=(AKY["publicytnetworkstatus-online"]="BACK_ONLINE",AKY),Yz$.ONLINE=(kGn["publicytnetworkstatus-offline"]="OFFLINE",kGn),Yz$.BACK_ONLINE=(TzY["publicytnetworkstatus-offline"]="OFFLINE",TzY.TIMER_TRIGGER="ONLINE",TzY),Yz$),QI=function(){var v=_.z.apply(this,arguments)||this;v.currentState="ONLINE";v.scheduledJobId=0;v.bannerString="";v.bannerVe=null;v.networkStatusManagerInstance=new _.bS;return v};
_.f(QI,_.z);_.K=QI.prototype;_.K.attached=function(){var v=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){v.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){v.stateChangeHandler("publicytnetworkstatus-offline")})};
_.K.detached=function(){var v=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){v.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){v.stateChangeHandler("publicytnetworkstatus-offline")})};
_.K.enterState=function(v){var Q=this;this.scheduledJobId&&_.XT.cancelJob(this.scheduledJobId);v==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):v==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Lt("NO_INTERNET_CONNECTION",void 0,"No internet connection")):v==="BACK_ONLINE"&&(this.bannerString=_.Lt("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.go(_.XT,function(){Q.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=v};
_.K.stateChangeHandler=function(v){(v=yK8[this.currentState][v])&&this.enterState(v)};
_.K.logVisibility=function(v){var Q=_.Mo();this.createBannerVe(v);Q&&this.bannerVe&&(v?_.gD(Q,[this.bannerVe]):_.s2(Q,[this.bannerVe]))};
_.K.createBannerVe=function(v){!this.bannerVe&&v&&(this.bannerVe=_.Vw(37929),_.JL(_.tR(),this.bannerVe))};
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",String)],QI.prototype,"currentState",void 0);_.W([_.q(),_.X("design:type",Object)],QI.prototype,"scheduledJobId",void 0);_.W([_.q(),_.X("design:type",Object)],QI.prototype,"bannerString",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-network-status-banner"})],QI);
_.B(QI,"ytd-network-status-banner",function(){if(w3$!==void 0)return w3$;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return w3$=
v},{mode:1});var cKm;var VI=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};v.hidden=!0;v.frostedGlass=_.Y("web_frosted_glass");return v};
_.f(VI,_.z);VI.prototype.computeHidden=function(v){return v&&v.status?!1:!0};
VI.prototype.handleUpdatePermissionRoleCommand=function(v){if(v=_.y(v,_.Nxx))if(v=_.y(v.renderer,_.JDp))this.data=v};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],VI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],VI.prototype,"componentBehavior",void 0);_.W([_.q({value:!0,computed:"computeHidden(data)"}),_.X("design:type",Object)],VI.prototype,"hidden",void 0);_.W([_.q(),_.X("design:type",Object)],VI.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],VI.prototype,"frostedGlass",void 0);
_.W([_.J({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],VI);
_.B(VI,"ytd-permission-role-bottom-bar-renderer",function(){if(cKm!==void 0)return cKm;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return cKm=v},{mode:1});var fS0;var GGh;var bon={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Eg=function(){return _.z.apply(this,arguments)||this};
_.f(Eg,_.z);_.K=Eg.prototype;_.K.attached=function(){this.JSC$21199_scroller&&(this.JSC$21199_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21199_scroller.attached&&typeof this.JSC$21199_scroller.attached==="function"&&this.JSC$21199_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.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 v=_.m9(this.hostElement);v.querySelector("tp-yt-paper-radio-group").selected="";var Q=v.querySelector("#reason-text");Q&&(Q.value="");v.querySelector("#description-text").value=""}};
_.K.canSubmit=function(v,Q){_.Hj(this.hostElement,"yt-invalidate-popup-tabbables");return!(v&&Q)};
_.K.onCancel=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.K.onSubmit=function(){var v=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(F){return F.active}).map(function(F){return F.innerText.trim()}),Q=this.hostElement.querySelector("tp-yt-paper-radio-group"),V=Q.selectedItem,E=V.name;
V=V.innerText.trim();var b=Q.querySelector("#reason-text");Q=void 0;b&&(Q=b.value);(b=this.descriptionText.value)&&(b=b.trim());Fwq(this.data.searchQuery,v,E,V,b,Q);_.mb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.K.sendFormSubmitToast=function(){var v=_.r8(_.Lt("SBOX_INAPPROPRIATE_TOAST"));_.mb(this.hostElement,"yt-open-popup-action",[v,this])};
_.K.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(v){return v.active})};
_.K.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Eg.prototype.onIronSelect=Eg.prototype.onIronSelect;Eg.prototype.onIronChange=Eg.prototype.onIronChange;Eg.prototype.dataChanged=Eg.prototype.dataChanged;_.W([_.q(),_.X("design:type",Object)],Eg.prototype,"data",void 0);_.W([_.q({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.X("design:type",Boolean)],Eg.prototype,"submitDisabled",void 0);_.W([_.q(),_.X("design:type",Boolean)],Eg.prototype,"suggestionSelected",void 0);
_.W([_.q(),_.X("design:type",Boolean)],Eg.prototype,"catagorySelected",void 0);_.W([_.Z7("#scroller"),_.X("design:type",Object)],Eg.prototype,"JSC$21199_scroller",void 0);_.W([_.Z7("#description-text"),_.X("design:type",Object)],Eg.prototype,"descriptionText",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Eg.prototype,"dataChanged",null);
_.W([_.tM("iron-change"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Eg.prototype,"onIronChange",null);_.W([_.tM("iron-select"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Eg.prototype,"onIronSelect",null);_.W([_.J({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Eg);
_.B(Eg,"ytd-search-suggestion-report-dialog",function(){if(GGh!==void 0)return GGh;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);return GGh=v},{mode:1});var b4=function(v){var Q=v.openPopupAction;var V=v.target;var E=v.container;var b=v.popupContainerConfig;var F=v.getElement;v=v.removeWhenClosed===void 0?!1:v.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=Q;this.target=V;this.container=E;this.popupContainerConfig=b;this.getElement=F;this.JSC$21205_popupConfig=this.popupContainerConfig.JSC$20329_popupConfig[this.openPopupAction.popupType];this.rendererName=(Q=this.getName())?_.b4E(Q,In8(this.popupContainerConfig,
Q)):"";_.Y("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=v);this.createPopup()};
b4.prototype.updatePopup=function(v){this.openPopupAction=v;this.JSC$21205_popupConfig=this.popupContainerConfig.JSC$20329_popupConfig[this.openPopupAction.popupType];CTd(this);_.Y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
b4.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var DxI=function(v,Q,V){(Q=Q&&v.JSC$21205_popupConfig.narrowProperties?v.JSC$21205_popupConfig.narrowProperties:v.JSC$21205_popupConfig.properties)&&V!==void 0&&(Q.isAriaModal=V);MBd(v,Q);v.isRtl()&&MBd(v,v.JSC$21205_popupConfig.rtlProperties);OQ8(v)};
b4.prototype.createPopup=function(){var v=this.JSC$21205_popupConfig.component;if(this.popupContent=RCq(this,this.rendererName)){if(v){this.popup=RCq(this,v);var Q=this.popupContent;_.Y("web_enable_wrapper_for_cow_component_in_popup")&&(Q=document.createElement("div"),Q.appendChild(this.popupContent));_.Y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21205_popupConfig.slotName&&Q.setAttribute("slot",this.JSC$21205_popupConfig.slotName);v=this.popup;var V=this.container.tagName.toLowerCase(),
E=_.oO(Q);_.ECb(_.aO(v),_.$N(Q,V,E));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.Y("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.m9(this.container).appendChild(this.popup)}};
var CTd=function(v){var Q,V,E=(Q=v.openPopupAction.accessibilityData)==null?void 0:(V=Q.accessibilityData)==null?void 0:V.label;E&&(v.popup.ariaLabel=E);var b;((b=v.popupContent.polymerController)!=null?b:v.popupContent).data=(0,_.gI.unsafeClone)(v.openPopupAction.popup[v.getName()]);v.popupContent.duration=nVY(v);v.popupContent.positionType=v.openPopupAction.position;var F=v.openPopupAction.properties;F&&Object.keys(F).forEach(function(t){v.popupContent[t]=F[t]})},MBd=function(v,Q){if(Q)for(var V=
_.L(Object.keys(Q)),E=V.next();!E.done;E=V.next())E=E.value,v.popup[E]=Q[E]},OQ8=function(v){if(v.openPopupAction.position){var Q=v.JSC$21205_popupConfig.positionalProperties&&v.JSC$21205_popupConfig.positionalProperties[v.openPopupAction.position],V=v.JSC$21205_popupConfig.rtlPositionalProperties&&v.JSC$21205_popupConfig.rtlPositionalProperties[v.openPopupAction.position];
Q=v.isRtl()&&V?V:Q;Q.shiftedHorizontalOffset&&(V=v.popup.style.display,v.popup.style.display="block",v.popupContent&&v.popup.positionTarget&&v.popupContent.clientWidth>v.popup.positionTarget.clientWidth&&(Q.horizontalOffset=v.popup.positionTarget.clientWidth/2-Q.shiftedHorizontalOffset),v.popup.style.display=V);MBd(v,Q)}},lS7=function(v,Q,V){if(Q){for(var E=_.L(Object.keys(Q)),b=E.next();!b.done;b=E.next())b=b.value,v.popup.style[b]=Q[b];
if(V)for(Q=_.L(Object.keys(V)),E=Q.next();!E.done;E=Q.next())E=E.value,v.popup.style[E]=V[E]}};
b4.prototype.getName=function(){return _.oS(this.openPopupAction.popup,"renderer")||_.oS(this.openPopupAction.popup,"dialog")||_.oS(this.openPopupAction.popup,"model")||void 0};
var nVY=function(v){v=v.openPopupAction.durationHintMs;return v===0?v:Math.max(4E3,v||4E3)};
b4.prototype.isRtl=function(){return _.r7("HTML_DIR")==="rtl"};
var RCq=function(v,Q){v=v.getElement(Q,v.target);v==null&&_.Iy(new _.xd("popup getElement returned null",Q));return v};var qzn={};
qzn.YtPopupContainerBehavior=[_.VL.YtComponentBehavior,_.SI.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.$I(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Ix(this.hostElement)},
closePopup:function(v){var Q=this.createCacheKey(void 0,v);this.popups_[Q]&&this.handleClosePopupAction_(void 0,v)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.XT.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.XT.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(v){v.opened&&v.keepBelowPlayer&&this.ensurePopupBelowPlayer(v)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var v in this.popups_){var Q=this.popups_[v];if(Q.popup.scrollAction==="refit"){var V=Q.popup.positionTarget.getBoundingClientRect(),E=Q.popup;V=V.top;var b=Q;if(!b.naturalHeight){b.popup.hidden=!1;b.popup.style.position="fixed";b.popup.style.top="0px";b.popup.style.left="0px";var F=b.popup.getBoundingClientRect();b.naturalHeight=F.bottom-F.top;b.popup.refit()}E.hidden=!(V>=b.naturalHeight+60);Q.popupContent.clientHeight===0&&Q.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(v){this.popupContainerConfig=v},
handleOpenPopupAction:function(v,Q){var V=v.openPopupAction,E=_.ht().resolve(_.d$(_.dN))&&V.popupType==="TOAST";E&&!V.uniqueId&&(V.uniqueId=_.Wh());if(!_.Y("popup_container_parent_target_killswitch")){var b;Q=(b=this.getParentTarget(Q))!=null?b:Q}var F=this.ensurePopup_(V,Q);return new _.Ry(function(t){F.then(function(p){if(!p)return t();this.maybeCreateNarrowMediaQuery_();var Z=this.createCacheKey(p.rendererName,p.openPopupAction.uniqueId);if(V.showOncePerUniqueId){if(this.shownPopupKeys_.has(Z))return t();
this.shownPopupKeys_.add(Z)}Z=this.popups_[Z];var d=!(!Z||!Z.openPopupAction.beReused);d=!!V.reusePopup||d;if(p.popup.opened&&!d){E&&!p.openPopupAction.replacePopup||this.handleClosePopupAction_(p.rendererName,p.openPopupAction.uniqueId);d=V.popupType==="DIALOG"&&!_.Y("popup_container_dialog_reopen_killswitch");if(!E&&!d&&Z&&Z.target==Q&&!p.openPopupAction.replacePopup)return t();_.PE(p.popup,function(){this.completeOpenPopupAction_(V,Q,p);t()}.bind(this))}else p.popup.opened?p.updatePopup(V):this.completeOpenPopupAction_(V,
Q,p),t()}.bind(this))}.bind(this))},
getParentTarget:function(v){if(v&&v instanceof HTMLElement)for(var Q=_.L(Object.entries(this.popups_)),V=Q.next();!V.done;V=Q.next())if(V=_.L(V.value),V.next(),V=V.next().value,this.popupClosesOnClick(V)&&V.popup.contains(v))return V.target},
popupClosesOnClick:function(v){return v.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(v.rendererName.toUpperCase())},
completeOpenPopupAction_:function(v,Q,V){V.updatePopup(v);var E=this.narrowMediaQuery_.queryMatches,b=this.isAriaModal;v=this.expandToFullWidth;V.target=Q;var F;Q=((F=V.target.polymerController)!=null?F:V.target).popupPositionTarget||V.target;V.JSC$21205_popupConfig.targetContainer&&(Q=V.container);V.popup.positionTarget=Q;V.popupContent.positionTarget=Q;OQ8(V);V.JSC$21205_popupConfig.forceFocus&&(V.popupContent.style.outline="none");V.popupContent.tabIndex=-1;V.JSC$21205_popupConfig.narrowProperties&&
(V.popup.style.position="static");V.JSC$21205_popupConfig.preventAutonav&&V.popup.setAttribute("prevent-autonav",!0);V.JSC$21205_popupConfig.forceCloseOnOutsideClick&&V.popup.setAttribute("force-close-on-outside-click",!0);DxI(V,E,b);F={};v&&(F.width="100%");lS7(V,V.JSC$21205_popupConfig.styles,F);V.isRtl()&&lS7(V,V.JSC$21205_popupConfig.rtlStyles,F);if(!V.openPopupAction.shouldStopParentSignal){var t;v=(t=V.target.polymerController)!=null?t:V.target;(V.popupContent.startForwardingEvents||V.popupContainerConfig.forwardingEnabledPopups.has(V.rendererName))&&
v.parentComponent!==V.popupContent&&V.popupContent!==V.target&&V.target!==document.body&&(V.popupContent.startForwardingEvents?V.popupContent.startForwardingEvents(V.popupContainerConfig.forwardedEvents,V.target):(V.JSC$21205_eventForwarder||(V.JSC$21205_eventForwarder=new _.VX(V.popupContent)),V.JSC$21205_eventForwarder.start(V.popupContainerConfig.forwardedEvents,V.target)))}V=V.popup;V.addEventListener("iron-overlay-opened",_.Lh(this,this.onPopupIronOverlayOpened_));V.addEventListener("iron-overlay-closed",
_.Lh(this,this.onPopupIronOverlayClosed_));V.addEventListener("iron-overlay-canceled",_.Lh(this,this.onPopupIronOverlayCanceled_));V.addEventListener("yt-refit",_.Lh(this,this.refitPopup_));V.addEventListener("yt-invalidate-popup-tabbables",_.Lh(this,this.handleInvalidatePopupTabbables_));V.open()},
getPopupDurationMs_:function(v){return v.durationHintMs===0?v.durationHintMs:Math.max(4E3,v.durationHintMs||4E3)},
handleClosePopupAction_:function(v,Q){var V=_.Y("web_popup_cache_key_killswitch")||!!Q;if(v||V){var E=this.createCacheKey(v,Q);v=(v=this.popups_[E])&&v.popup}else v=_.uZq(_.b7);if(v&&v.close){if(Q=_.ht().resolve(_.d$(_.Yc)))v.restoreFocusOnClose=Q.isKeyBoardInUse();v.close();this.removePopup_(v,E)}},
handleClosePopupCommand_:function(v){v.closePopupCommand&&v.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,v.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(v){var Q={},V;for(V in this.popups_)if(Q={key$jscomp$1230:Q.key$jscomp$1230},Q.key$jscomp$1230=V,!v||!v.some(function(F){return function(t){return t==F.key$jscomp$1230}}(Q))){var E=this.popups_[Q.key$jscomp$1230],b=E.popup;
_.ht().resolve(_.d$(_.dN))&&E.openPopupAction.popupType==="TOAST"||(b&&b.close&&b.close(),this.removePopup_(b,Q.key$jscomp$1230))}},
handleClosePopupsAction_:function(v){v.forEach(function(Q){var V=this.popups_[Q];V&&((V=V.popup)&&V.close&&V.close(),this.removePopup_(V,Q))}.bind(this))},
handleGetPopupOpenedAction_:function(v,Q){return(Q=this.createCacheKey(v,Q))&&this.popups_[Q]?this.popups_[v].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var v=[],Q;for(Q in this.popups_){var V=this.popups_[Q];V.popup.opened&&v.push(V)}return v},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(v,Q){_.Y("ytpopup_disable_default_html_caching")&&v&&v.removeWhenClosed&&(_.m9(this.hostElement).removeChild(v),Q&&this.popups_[Q]&&delete this.popups_[Q])},
shouldReusePopup_:function(v){return!(!v||!v.reusePopup)||!(!v||!v.beReused)},
ensurePopup_:function(v,Q){this.maybeCreateNarrowMediaQuery_();var V=_.oS(v.popup,"renderer")||_.oS(v.popup,"dialog")||_.oS(v.popup,"model");if(!V)return _.Vk();V=_.b4E(V,In8(this.popupContainerConfig,V));return _.Vk(this.getAndMaybeCreatePopup_(v,V,Q))},
getAndMaybeCreatePopup_:function(v,Q,V){var E=this.createCacheKey(Q,v.uniqueId);if(this.popups_[E])return this.popups_[E];v=new b4({openPopupAction:v,target:V,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(Q)});return this.popups_[E]=v},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(v){return _.Y("ytpopup_disable_default_html_caching")?v&&v.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.Lh(this,this.openPopupQueryMatchesChanged_)),_.m9(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(v){v=v.detail.value;for(var Q in this.popups_)DxI(this.popups_[Q],v)},
onPopupIronOverlayClosed_:function(v){var Q=v.currentTarget,V=_.fJZ(Q);V=V.length>0?V[0]:Q;if(V.is!=="ytd-reel-watch-while-dialog-renderer"||v.target.is!=="tp-yt-iron-dropdown"){v.detail.popup=Q;v.detail.popupRenderer=V;var E,b={context:{openingElement:((E=this.popups_[(V==null?void 0:V.is)||""])==null?void 0:E.target)||void 0}};Object.assign(b,v.detail);var F;_.Hj((F=V.hostElement)!=null?F:V,"yt-popup-closed",b);Q.removeEventListener("yt-refit",_.Lh(this,this.refitPopup_));Q.removeEventListener("yt-invalidate-popup-tabbables",
_.Lh(this,this.handleInvalidatePopupTabbables_));Q.removeEventListener("iron-overlay-canceled",_.Lh(this,this.onPopupIronOverlayCanceled_));Q.removeEventListener("iron-overlay-closed",_.Lh(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(Q)}},
onPopupIronOverlayCanceled_:function(v,Q){var V=v.currentTarget,E=_.fJZ(V);E=E.length>0?E[0]:V;if(E.is!=="ytd-reel-watch-while-dialog-renderer"||v.target.is!=="tp-yt-iron-dropdown"){var b;_.Hj((b=E.hostElement)!=null?b:E,"yt-popup-canceled",v.detail);b=Q?_.uK(Q):null;(!Q||["click","tap"].includes(Q.type))&&!V.hasAttribute("force-close-on-outside-click")&&V.positionTarget&&b&&b.includes(V.positionTarget)&&v.preventDefault();V.restoreFocusOnClose=_.zI.keyboardEventMatchesKeys(Q,"esc")}},
onPopupIronOverlayOpened_:function(v){v=v.currentTarget;var Q=_.fJZ(v);Q=Q.length>0?Q[0]:v;var V,E;_.Hj((V=Q.hostElement)!=null?V:Q,"yt-popup-opened",(E=Q.hostElement)!=null?E:Q);v.keepBelowPlayer&&(this.ensurePopupBelowPlayer(v,!0),this.dynamicallyPositionedElements_.add(v));V=_.ht().resolve(_.d$(_.Yc));E=!!Q.querySelector("#toast");V&&V.isKeyBoardInUse()&&!E&&(typeof Q.focusFirstItem==="function"?Q.focusFirstItem():(Q=_.B28(v),Q.length&&Q[0].focus()));v.removeEventListener("iron-overlay-opened",
_.Lh(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(v){v=v.currentTarget;v.refit&&v.refit()},
refitPopups_:function(){for(var v in this.popups_)this.popups_[v].refit()},
handleInvalidatePopupTabbables_:function(v){v=v.currentTarget;v.invalidateTabbables&&v.invalidateTabbables()},
createCacheKey:function(v,Q){return _.Y("web_popup_cache_key_killswitch")?Q?v+"#"+Q:v:Q?"#"+Q:v},
openSheet:function(v,Q){var V=v==null?void 0:v.openPopupActionCommand;if(!V&&(v==null?0:v.viewModel)){if(v.sheetPosition)a:switch(v.sheetPosition){case "SHEET_POSITION_RIGHT":V="OPEN_POPUP_POSITION_RIGHT";break a;default:V="OPEN_POPUP_POSITION_UNKNOWN"}else V=void 0;V={openPopupAction:{popup:{sheetViewModel:v.viewModel},popupType:"CONTEXTUAL_SHEET",position:V}}}if(V){var E;this.expandToFullWidth=(E=v==null?void 0:v.expandToFullWidth)!=null?E:!1;this.handleOpenPopupAction(V,Q)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var v=this;return _.e(function(Q){return Q.return(v.handleGetOpenedPopupsAction_().filter(function(V){var E;return((E=V.openPopupAction)==null?void 0:E.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(v,Q,V){if(_.Y("web_dialog_utils_killswitch")){var E=v==null?void 0:v.openPopupActionCommand,b=(V==null?0:V.ariaLabel)?{accessibilityData:{accessibilityData:{label:V.ariaLabel}}}:void 0;!E&&(v==null?0:v.viewModel)&&(E={openPopupAction:Object.assign({},{popup:{dialogViewModel:v.viewModel},popupType:(V==null?0:V.isModal)?"MODAL":"DIALOG"},b&&b)});E&&this.handleOpenPopupAction(E,Q)}else{if(b=v==null?void 0:v.viewModel){var F=V=V===void 0?{}:V;V=F.ariaLabel;b={popup:{dialogViewModel:b},
popupType:F.isModal?"MODAL":"DIALOG"};F={accessibilityData:{label:V}};V&&(b.accessibilityData=F);b={openPopupAction:b}}else b=void 0;if(b=(E=b)!=null?E:v==null?void 0:v.openPopupActionCommand)this.isAriaModal=_.Y("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(b,Q)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var v=this;return _.e(function(Q){return Q.return(v.handleGetOpenedPopupsAction_().filter(function(V){var E;return((E=V.openPopupAction)==null?void 0:E.popupType)==="DIALOG"}).length>0)})}}];var Szm;var zCd;var JK5=_.s$(["about:blank"]),Fi=function(){var v=_.z.apply(this,arguments)||this;v.isMuted=!1;v.pageLoadTimeoutId=void 0;return v};
_.f(Fi,_.z);_.K=Fi.prototype;_.K.dataChanged=function(){var v=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var Q=this.data.url,V=_.ae(Q);_.Y("enable_yt_ata_iframe_authuser")?(V=_.ae(Q),_.vc(this.iframe,Kwd(V))):_.vc(this.iframe,V);this.pageLoadTimeoutId=_.go(_.yX(),function(){return void v.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.by({destination:window,iframe:this.iframe,origin:_.igZ(V.toString()),channelName:"ataiframe",onMessage:_.djV(wbI,function(E){Akm(E.data)?(E=_.I8(E.data,1,_.ih,_.dZ()),E.length!==1?_.Iy(Error("Ml")):(E=E[0],E===3?(v.isMuted=!0,v.logStateChanged({adMuteRequested:!0})):E===1&&v.close())):_.Iy(Error("Nl"))}),
onEstablished:function(){v.cancelPageLoadTimeout();v.logStateChanged({pageLoadSucceeded:!0})}})}};
_.K.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.yX().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.K.logStateChanged=function(v){var Q;if((Q=this.data)==null?0:Q.trackingParams)v={adsClientData:{aboutThisAdData:v}},_.tR().stateChanged(this.data.trackingParams,v)};
_.K.close=function(){_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.handlesPopupClosed=function(v,Q){var V=this,E,b;return _.e(function(F){if(F.nextAddress==1)return _.r7("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.mb(V.hostElement,"on-about-this-ad-popup-closed",[V.isMuted,Q]),F.jumpTo(0)):v&&iom(v)?F.yield(Lws(v),4):(V.isMuted&&_.mb(V.hostElement,"yt-mute-ad-action",[V.is,V]),F.jumpTo(0));if(E=F.yieldResult){var t=b=new _.Um(E),p=V.isMuted;t.getOptions().includes("onAboutThisAdPopupClosed")?_.ktp(t,"onAboutThisAdPopupClosed",{isMuted:p,layoutId:Q}):_.J2("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.q1(F)})};
_.K.onPopupClosed=function(v){var Q=this,V,E;return _.e(function(b){V=_.Ad(JK5);_.vc(Q.iframe,V);Q.cancelPageLoadTimeout();if(!Q.data)return b.jumpTo(0);Q.ytRendererBehavior.markDirty();E=v.detail.context.openingElement;return b.yield(Q.handlesPopupClosed(E,Q.data.layoutId),0)})};
_.K.detached=function(){this.cancelPageLoadTimeout()};
_.K.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fi.prototype.onPopupClosed=Fi.prototype.onPopupClosed;Fi.prototype.dataChanged=Fi.prototype.dataChanged;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.W([_.Z7("#iframe"),_.X("design:type",HTMLIFrameElement)],Fi.prototype,"iframe",void 0);_.W([_.q(),_.X("design:type",Object)],Fi.prototype,"data",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Fi.prototype,"dataChanged",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype",Promise)],Fi.prototype,"onPopupClosed",null);_.W([_.D7({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Fi);
_.B(Fi,"yt-about-this-ad-renderer",function(){if(zCd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Szm===void 0&&(Szm=document.createElement("template"));var E=Szm;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);zCd=v}v=zCd;return v},{mode:2});var NzY;var xx5;var Bz7=function(v){var Q=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.maxFileSizeMB=v;Object.setPrototypeOf(this,Bz7.prototype)};
_.f(Bz7,Error);var gVn=function(v,Q){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=v;this.minHeight=Q;Object.setPrototypeOf(this,gVn.prototype)};
_.f(gVn,Error);var sLh=function(v){this.requirements=v;this.JSC$21233_maxFileSize=v.maxFileSizeMB*1024*1024},uwm=function(v,Q){if(Q.size>v.JSC$21233_maxFileSize)throw new Bz7(v.requirements.maxFileSizeMB);
};var jL5=function(v,Q){this.canvas=v;this.imageEditorBuilder=Q};
jL5.prototype.addEventListeners=function(v){var Q=function(b){Wad(v,b)};
this.JSC$21239_mouseDownEvent=Q;var V=function(b){oVf(v,b)};
this.JSC$21239_mouseMoveEvent=V;var E=function(){X3I(v)};
this.JSC$21239_mouseUpEvent=E;this.canvas.addEventListener("mousedown",Q);this.canvas.addEventListener("mousemove",V);document.addEventListener("mouseup",E)};
jL5.prototype.removeEventListeners=function(){this.JSC$21239_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21239_mouseDownEvent);this.JSC$21239_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21239_mouseMoveEvent);this.JSC$21239_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21239_mouseUpEvent)};
var aSm=function(v,Q){v.removeEventListeners();return new Promise(function(V){var E=new Image;E.crossOrigin="anonymous";E.onload=function(){var b=v.imageEditorBuilder(v.canvas,E);v.addEventListeners(b);V(b)};
E.src=Q})},Ks=function(v,Q,V,E,b,F,t,p){this.canvas=v;
this.image=Q;this.requiredRatio=V;this.minImageCropDimension=E;this.minOutputImageResolution=b;this.component=F;this.styleFocusedCorner=p===void 0?!0:p;this.action=2;this.focusedCorner=this.resizeCorner=0;v=this.canvas.getContext("2d");if(!v)throw Error("Ol");this.ctx=v;this.canvasMargin=t!=null?t:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;t=this.image;v=this.canvasInnerWidth/t.width;t.height*v>912&&(v=t.width/t.height*912/t.width);t=v;this.scaledImageWidth=this.canvas.width%2?
p7f(this.image.width*t):t38(this.image.width*t);this.scaledImageHeight=Math.round(this.image.height*t);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21242_overlayMarginBottom=this.JSC$21242_overlayMarginTop=this.canvasMargin;this.JSC$21242_overlayMarginRight=this.JSC$21242_overlayMarginLeft=this.horizontalMargin;this.JSC$21242_overlayWidth=this.scaledImageWidth;this.JSC$21242_overlayHeight=this.scaledImageHeight;
v=this.image.width/this.image.height;v>this.requiredRatio?(this.JSC$21242_overlayWidth=this.canvas.width%2?p7f(this.scaledImageHeight*this.requiredRatio):t38(this.scaledImageHeight*this.requiredRatio),this.JSC$21242_overlayMarginRight=this.JSC$21242_overlayMarginLeft=(this.canvas.width-this.JSC$21242_overlayWidth)/2):v<this.requiredRatio&&(this.JSC$21242_overlayHeight=this.canvas.height%2?p7f(this.scaledImageWidth/this.requiredRatio):t38(this.scaledImageWidth/this.requiredRatio),this.JSC$21242_overlayMarginBottom=
this.JSC$21242_overlayMarginTop=(this.canvas.height-this.JSC$21242_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*t,this.scaledImageWidth);rKY(this)};
Ks.prototype.getContext=function(){return this.ctx};
var Wad=function(v,Q){Q={x:Math.round(Q.pageX-v.canvas.getBoundingClientRect().left),y:Math.round(Q.pageY-v.canvas.getBoundingClientRect().top)};v.dragStart=Q;$xn(v,Q)!==0?(v.action=1,ISf(v,Q),v.resizeCorner=$xn(v,Q)):Q.x>v.JSC$21242_overlayMarginLeft&&Q.x<v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth&&Q.y>v.JSC$21242_overlayMarginTop&&Q.y<v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight&&(v.action=0)},HQd=function(v,Q){switch(Q){case 1:return{x:v.JSC$21242_overlayMarginLeft,
y:v.JSC$21242_overlayMarginTop};case 2:return{x:v.JSC$21242_overlayMarginLeft,y:v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight};case 3:return{x:v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth,y:v.JSC$21242_overlayMarginTop};case 4:return{x:v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth,y:v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight};default:throw Error("Pl");}},Ux5=function(v,Q){if(v.focusedCorner!==0){v.dragStart=HQd(v,v.focusedCorner);
v.action=1;v.resizeCorner=v.focusedCorner;var V=v.dragStart.x,E=v.dragStart.y;switch(Q){case 0:v.focusedCorner===1||v.focusedCorner===4?(V-=10,E-=10):(V-=10,E+=10);break;case 1:v.focusedCorner===1||v.focusedCorner===4?(V+=10,E+=10):(V+=10,E-=10);break;case 2:V=v.focusedCorner===1||v.focusedCorner===4?V-10:V+10;E-=10;break;case 3:V=v.focusedCorner===1||v.focusedCorner===4?V+10:V-10;E+=10;break;default:throw Error("Ql");}mx5(v,{x:V,y:E});rKY(v);v.action=2;v.dragStart=void 0}},oVf=function(v,Q){Q={x:Math.round(Q.pageX-
v.canvas.getBoundingClientRect().left),
y:Math.round(Q.pageY-v.canvas.getBoundingClientRect().top)};ISf(v,Q);switch(v.action){case 1:mx5(v,Q);break;case 0:v.dragStart&&(v.JSC$21242_overlayMarginLeft=Math.max(v.horizontalMargin,Math.min(v.JSC$21242_overlayMarginLeft-(v.dragStart.x-Q.x),v.horizontalMargin+v.scaledImageWidth-v.JSC$21242_overlayWidth)),v.JSC$21242_overlayMarginRight=v.canvas.width-v.JSC$21242_overlayMarginLeft-v.JSC$21242_overlayWidth,v.JSC$21242_overlayMarginTop=Math.max(v.canvasMargin,Math.min(v.JSC$21242_overlayMarginTop-
(v.dragStart.y-Q.y),v.scaledImageHeight-v.JSC$21242_overlayHeight+v.canvasMargin)),v.JSC$21242_overlayMarginBottom=v.canvas.height-(v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight));break;default:return}rKY(v);v.dragStart=Q},X3I=function(v){v.action=2;
v.dragStart=void 0;document.body.style.cursor="auto"},ISf=function(v,Q){switch($xn(v,Q)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:v.action!==1&&(document.body.style.cursor="auto")}},$xn=function(v,Q){var V=v.JSC$21242_overlayMarginLeft-5,E=v.JSC$21242_overlayMarginTop-5,b=v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth-5;
v=v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-5;return v6I(Q,{x:V,y:E})?1:v6I(Q,{x:b,y:E})?3:v6I(Q,{x:V,y:v})?2:v6I(Q,{x:b,y:v})?4:0},v6I=function(v,Q){return v.x>=Q.x&&v.x<=Q.x+10&&v.y>=Q.y&&v.y<=Q.y+10},mx5=function(v,Q){if(v.dragStart)switch(v.resizeCorner){case 2:Math.abs((v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth-Q.x)/(Q.y-v.JSC$21242_overlayMarginTop))>=v.requiredRatio?Qom(v,Q.x):VFI(v,Q.y);
break;case 1:Math.abs((v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth-Q.x)/(v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-Q.y))>=v.requiredRatio?E67(v,Q.x):VFI(v,Q.y);break;case 4:Math.abs((Q.x-v.JSC$21242_overlayMarginLeft)/(Q.y-v.JSC$21242_overlayMarginTop))>=v.requiredRatio?Qom(v,Q.x):bcI(v,Q.y);break;case 3:Math.abs((Q.x-v.JSC$21242_overlayMarginLeft)/(v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-Q.y))>=v.requiredRatio?E67(v,Q.x):bcI(v,Q.y);break;default:throw Error("Rl");
}},Qom=function(v,Q){var V=v.JSC$21242_overlayMarginTop;
v.JSC$21242_overlayMarginBottom=FzY(v,Q);v.JSC$21242_overlayHeight=v.canvas.height-v.JSC$21242_overlayMarginBottom-V;v.JSC$21242_overlayWidth=Math.round(v.JSC$21242_overlayHeight*v.requiredRatio);Kz8(v)},E67=function(v,Q){var V=v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight;
v.JSC$21242_overlayMarginTop=FzY(v,Q);v.JSC$21242_overlayHeight=V-v.JSC$21242_overlayMarginTop;v.JSC$21242_overlayWidth=Math.round(v.JSC$21242_overlayHeight*v.requiredRatio);Kz8(v)},Kz8=function(v){switch(v.resizeCorner){case 2:case 1:v.JSC$21242_overlayMarginLeft=v.canvas.width-v.JSC$21242_overlayMarginRight-v.JSC$21242_overlayWidth;
break;case 4:case 3:v.JSC$21242_overlayMarginRight=v.canvas.width-v.JSC$21242_overlayMarginLeft-v.JSC$21242_overlayWidth;break;default:throw Error("Rl");}},VFI=function(v,Q){var V=v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth;
v.JSC$21242_overlayMarginLeft=icY(v,Q);v.JSC$21242_overlayWidth=V-v.JSC$21242_overlayMarginLeft;v.JSC$21242_overlayHeight=Math.round(v.JSC$21242_overlayWidth/v.requiredRatio);Lz$(v)},bcI=function(v,Q){var V=v.JSC$21242_overlayMarginLeft;
v.JSC$21242_overlayMarginRight=icY(v,Q);v.JSC$21242_overlayWidth=v.canvas.width-v.JSC$21242_overlayMarginRight-V;v.JSC$21242_overlayHeight=Math.round(v.JSC$21242_overlayWidth/v.requiredRatio);Lz$(v)},Lz$=function(v){switch(v.resizeCorner){case 2:case 4:v.JSC$21242_overlayMarginBottom=v.canvas.height-v.JSC$21242_overlayMarginTop-v.JSC$21242_overlayHeight;
break;case 1:case 3:v.JSC$21242_overlayMarginTop=v.canvas.height-v.JSC$21242_overlayMarginBottom-v.JSC$21242_overlayHeight;break;default:throw Error("Rl");}},FzY=function(v,Q){switch(v.resizeCorner){case 2:Q=v.canvas.height-(v.JSC$21242_overlayMarginTop+tFh(v,Q));
break;case 4:Q=v.canvas.height-(v.JSC$21242_overlayMarginTop+pJh(v,Q));break;case 1:Q=v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-tFh(v,Q);break;case 3:Q=v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-pJh(v,Q);break;default:throw Error("Rl");}return Math.max(Q,v.canvasMargin)},tFh=function(v,Q){Q=v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth-Math.max(Q,v.horizontalMargin);
Q=Q<0?v.JSC$21242_overlayWidth:Math.max(Q,v.minOverlayWidth);return Math.round(Q/v.requiredRatio)},pJh=function(v,Q){Q=v.canvas.width-Math.max(v.canvas.width-Q,v.horizontalMargin)-v.JSC$21242_overlayMarginLeft;
Q=Q<0?v.JSC$21242_overlayWidth:Math.max(Q,v.minOverlayWidth);return Math.round(Q/v.requiredRatio)},icY=function(v,Q){switch(v.resizeCorner){case 2:Q=v.canvas.width-v.JSC$21242_overlayMarginRight-etf(v,Q);
break;case 4:Q=v.canvas.width-v.JSC$21242_overlayMarginLeft-etf(v,Q);break;case 1:Q=v.canvas.width-v.JSC$21242_overlayMarginRight-ZcY(v,Q);break;case 3:Q=v.canvas.width-v.JSC$21242_overlayMarginLeft-ZcY(v,Q);break;default:throw Error("Rl");}return Math.max(Q,v.horizontalMargin)},etf=function(v,Q){Q=v.canvas.height-Math.max(v.canvas.height-Q,v.canvasMargin)-v.JSC$21242_overlayMarginTop;
return Q<0?v.JSC$21242_overlayWidth:Math.max(Math.round(Q*v.requiredRatio),v.minOverlayWidth)},ZcY=function(v,Q){Q=v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-Math.max(Q,v.canvasMargin);
return Q<0?v.JSC$21242_overlayWidth:Math.max(Math.round(Q*v.requiredRatio),v.minOverlayWidth)},rKY=function(v){v.ctx.clearRect(0,0,v.canvas.width,v.canvas.height);
v.ctx.drawImage(v.image,0,0,v.image.width,v.image.height,v.horizontalMargin,v.canvasMargin,v.canvas.width-2*v.horizontalMargin,v.scaledImageHeight);v.ctx.fillStyle="rgba(0, 0, 0, 0.7)";v.ctx.fillRect(v.horizontalMargin,v.JSC$21242_overlayMarginTop,v.JSC$21242_overlayMarginLeft-v.horizontalMargin,v.JSC$21242_overlayHeight);v.ctx.fillRect(v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth,v.JSC$21242_overlayMarginTop,v.JSC$21242_overlayMarginRight-v.horizontalMargin,v.JSC$21242_overlayHeight);v.ctx.fillRect(v.horizontalMargin,
v.canvasMargin,v.scaledImageWidth,v.JSC$21242_overlayMarginTop-v.canvasMargin);v.ctx.fillRect(v.horizontalMargin,v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight,v.scaledImageWidth,v.JSC$21242_overlayMarginBottom-v.canvasMargin);v.drawOverlay();v.component&&_.Hj(v.component,"image-updated")};
Ks.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21242_overlayMarginLeft,this.JSC$21242_overlayMarginTop,this.JSC$21242_overlayWidth,this.JSC$21242_overlayHeight);Pr7(this)};
var Pr7=function(v){var Q=v.JSC$21242_overlayMarginLeft-5,V=v.JSC$21242_overlayMarginTop-5,E=v.JSC$21242_overlayMarginLeft+v.JSC$21242_overlayWidth-5,b=v.JSC$21242_overlayMarginTop+v.JSC$21242_overlayHeight-5;v.ctx.fillStyle="#FFF";v.ctx.fillRect(Q,V,10,10);v.ctx.strokeRect(Q,V,10,10);v.ctx.fillRect(E,V,10,10);v.ctx.strokeRect(E,V,10,10);v.ctx.fillRect(Q,b,10,10);v.ctx.strokeRect(Q,b,10,10);v.ctx.fillRect(E,b,10,10);v.ctx.strokeRect(E,b,10,10);if(v.focusedCorner!==0&&v.styleFocusedCorner){v.ctx.lineWidth=
4;v.ctx.strokeStyle="#3EA6FF";switch(v.focusedCorner){case 1:--Q;--V;break;case 2:--Q;V=b-1;break;case 3:Q=E-1;--V;break;case 4:Q=E-1;V=b-1;break;default:return}v.ctx.strokeRect(Q,V,12,12)}};
Ks.prototype.crop=function(v,Q){Q=Q===void 0?!0:Q;var V=this.image.width/this.scaledImageWidth,E=document.createElement("canvas"),b=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],F=this.JSC$21242_overlayWidth*V,t=this.JSC$21242_overlayHeight*V;E.width=Math.max(F,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);E.height=Math.max(t,b);v&&(E.width=Math.min(E.width,E.height),E.height=Math.min(E.width,E.height));
v=E.getContext("2d");if(!v)throw Error("Fl");b=(this.JSC$21242_overlayMarginLeft-this.horizontalMargin)*V;V*=this.JSC$21242_overlayMarginTop-this.canvasMargin;Q||(v.fillStyle="white",v.fillRect(0,0,E.width,E.height));v.drawImage(this.image,b,V,F,t,0,0,E.width,E.height);return E};var d5d=function(v,Q,V,E,b){Ks.call(this,v,Q,V,E,void 0,b,8,!1)};
_.f(d5d,Ks);d5d.prototype.drawOverlay=function(){var v=this.getContext(),Q=this.JSC$21242_overlayWidth,V=this.JSC$21242_overlayHeight,E=this.JSC$21242_overlayMarginTop,b=this.JSC$21242_overlayMarginLeft;v.lineWidth=2;v.strokeStyle="#3EA6FF";v.beginPath();v.arc(b+Q/2,E+V/2,Q/2,0,2*Math.PI);v.stroke();v.strokeRect(b,E,Q,V);Pr7(this)};
var ht7={maxFileSizeMB:15,minWidth:98,minHeight:98},wJh=["image/png","image/jpeg","image/gif"],i4=function(){var v=_.z.apply(this,arguments)||this;v.fileSelectorFocusListener=null;v.errorMessage=null;v.isLoading=!0;v.hideContainer=!0;v.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return v};
_.f(i4,_.z);_.K=i4.prototype;_.K.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.K.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.K.computePlaylistThumbnail=function(v){return v==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.K.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",[])};
_.K.setErrorState=function(v){this.resetErrorState();v&&(this.errorMessage=v)};
_.K.showPopup=function(){var v=this;this.hideContainer=!1;_.go(_.XT,function(){_.Hj(v.hostElement,"yt-refit")});
this.isLoading=!1};
_.K.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.K.closePopup=function(){this.resetFileSelector();_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.onCancelTap=function(){this.isPlaylistThumbnail||_.mb(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.K.openFileSelector=function(){var v=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.go(_.XT,function(){setTimeout(function(){if(!v.fileSelector.files||v.fileSelector.files.length===0)v.onCancelTap();v.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(Q){Q instanceof Error?_.ro(Q):_.$h(new _.xd(JSON.stringify(Q)))}};
_.K.handleFileSelection=function(){var v=this,Q,V,E,b,F,t;return _.e(function(p){switch(p.nextAddress){case 1:_.GC(p,2);if(!v.fileSelector.files||!v.imageEditorCanvas)return v.onCancelTap(),p.return();Q=v.fileSelector.files[0];uwm(v.imageChecker,Q);_.GC(p,4);return p.yield(nK$(Q),6);case 6:v.mimeType=p.yieldResult;_.FT(p,5,2);break;case 4:_.n$(p,2),_.mb(v.hostElement,"yt-image-selection-error-action",[(V=v.data)==null?void 0:V.genericImageLoadErrorMessage]),v.onCancelTap();case 5:E=new FileReader;
E.addEventListener("load",function(){var Z,d;return _.e(function(w){if(w.nextAddress==1){if(!E.result)return _.Iy(Error("Hl")),w.return();Z=E.result;d=new Image;d.src=Z;d.onload=function(){try{var A=v.imageChecker;if(d.width<A.requirements.minWidth||d.height<A.requirements.minHeight)throw new gVn(A.requirements.minWidth,A.requirements.minHeight);}catch(T){if(T instanceof gVn){var k;_.mb(v.hostElement,"yt-image-selection-error-action",[(k=v.data)==null?void 0:k.imageDimensionErrorMessage]);v.logImageDimensionErrorVe()}else T instanceof
Error?_.ro(T):(A=new _.xd(JSON.stringify(T)),_.ro(A));v.onCancelTap()}v.showPopup()};
d.onerror=function(){var A;_.mb(v.hostElement,"yt-image-selection-error-action",[(A=v.data)==null?void 0:A.genericImageLoadErrorMessage]);v.onCancelTap()};
return w.yield(aSm(v.imageEditorCanvas,Z),2)}v.imageEditor=w.yieldResult;v.updatePositionOfAllCorners();v.addEventListeners(v.imageEditor);_.q1(w)})},!1);
E.readAsDataURL(Q);_.FT(p,0);break;case 2:b=_.n$(p),b instanceof Bz7?_.mb(v.hostElement,"yt-image-selection-error-action",[(F=v.data)==null?void 0:F.imageSizeErrorMessage]):(b instanceof Error?_.ro(b):_.$h(new _.xd(JSON.stringify(b))),_.mb(v.hostElement,"yt-image-selection-error-action",[(t=v.data)==null?void 0:t.genericImageLoadErrorMessage])),v.onCancelTap(),_.q1(p)}})};
_.K.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var v=_.Lx(_.tR(),{veType:232707,visualElement:_.Vw(232707)});v&&(v={visualElement:v},_.id().reportShown(v))}};
_.K.handleImageSelectionErrorAction=function(v){this.isPlaylistThumbnail&&_.Zbr(this.hostElement,v)};
_.K.convertToImageFormatBundle=function(v){var Q=this,V,E,b;return _.e(function(F){switch(F.nextAddress){case 1:return V=v.toDataURL(Q.outputMimeType,1),F.yield(lDh(V),2);case 2:E=F.yieldResult;_.GC(F,3);uwm(Q.imageChecker,E);_.FT(F,4);break;case 3:b=_.n$(F);if(!(b instanceof Bz7))throw b;_.Iy(new _.xd("Output size is bigger than input size for image",Q.mimeType,Q.outputMimeType,E.size));V=v.toDataURL("image/jpeg",.95);return F.yield(lDh(V),6);case 6:E=F.yieldResult;case 4:return F.return({dataUrl:V,
imageFile:E})}})};
_.K.handleUploadImageToScottyCommand=function(v){var Q=this,V,E,b,F,t,p,Z,d,w,A;return _.e(function(k){switch(k.nextAddress){case 1:if(!Q.imageEditor||!_.y(v,qLd))return k.return();V=_.y(v,qLd).scottyUploadUrl;if(!V){var T=new _.xd("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.ro(T);return k.return()}_.GC(k,2);Q.setLoadingState();E=Q.imageEditor.crop(!1,!1);return k.yield(Q.convertToImageFormatBundle(E),4);case 4:return b=k.yieldResult,k.yield(Dq8(b.imageFile,V),5);
case 5:F=k.yieldResult;((t=Q.data)==null?0:t.onUploadEndpoint)?(p=Q.buildUploadServiceEndpoint(F),Q.ytComponentBehavior.resolveCommand(p),Z=_.y(p,_.Vd),((d=Z)==null?0:d.params)?Q.closePopup():Q.resetFileSelector()):(_.mb(Q.hostElement,"yt-image-updated-action",[b.dataUrl,F]),Q.closePopup());_.FT(k,0);break;case 2:w=_.n$(k),Q.setErrorState((A=Q.data)==null?void 0:A.uploadErrorMessage),w instanceof Error?_.ro(w):(T=new _.xd(JSON.stringify(w)),_.ro(T)),_.q1(k)}})};
_.K.buildUploadServiceEndpoint=function(v){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",v),this.data.onUploadEndpoint):null};
_.K.dataChanged=function(){var v=this,Q;return _.e(function(V){if(V.nextAddress==1){if(!v.data||!v.canvasElement)return V.return();v.data.imageRatio&&v.data.minImageCropWidth||_.$h(new _.xd("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));Q=function(E,b){return v.data.imageType==="IMAGE_TYPE_AVATAR"?new d5d(E,b,v.data.imageRatio,[v.data.minImageCropWidth,v.data.minImageCropWidth/v.data.imageRatio],v.hostElement):new Ks(E,b,v.data.imageRatio,[v.data.minImageCropWidth,
v.data.minImageCropWidth/v.data.imageRatio],void 0,v.hostElement,8,!1)};
v.imageEditorCanvas=new jL5(v.canvasElement,Q);return v.data.url?V.yield(aSm(v.imageEditorCanvas,v.data.url),3):(v.hideContainer=!0,v.openFileSelector(),V.jumpTo(0))}v.imageEditor=V.yieldResult;v.showPopup();v.addEventListeners(v.imageEditor);_.q1(V)})};
_.K.addEventListeners=function(v){this.removeEventListeners();var Q=function(b){Wad(v,b)};
this.JSC$21250_mouseDownEvent=Q;var V=function(b){oVf(v,b)};
this.JSC$21250_mouseMoveEvent=V;var E=function(){X3I(v)};
this.JSC$21250_mouseUpEvent=E;this.topLeftCorner.addEventListener("mousedown",Q);this.topLeftCorner.addEventListener("mousemove",V);this.topLeftCorner.addEventListener("mouseup",E);this.topRightCorner.addEventListener("mousedown",Q);this.topRightCorner.addEventListener("mousemove",V);this.topRightCorner.addEventListener("mouseup",E);this.bottomLeftCorner.addEventListener("mousedown",Q);this.bottomLeftCorner.addEventListener("mousemove",V);this.bottomLeftCorner.addEventListener("mouseup",E);this.bottomRightCorner.addEventListener("mousedown",
Q);this.bottomRightCorner.addEventListener("mousemove",V);this.bottomRightCorner.addEventListener("mouseup",E)};
_.K.removeEventListeners=function(){this.JSC$21250_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21250_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21250_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21250_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21250_mouseDownEvent));this.JSC$21250_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21250_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21250_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21250_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21250_mouseMoveEvent));this.JSC$21250_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21250_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21250_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21250_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21250_mouseUpEvent))};
_.K.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var v=document.activeElement;v&&v.shadowRoot&&v.shadowRoot.activeElement;)v=v.shadowRoot.activeElement;switch(v){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.K.updatePositionOfCorner=function(v,Q){var V=v.y-Q.offsetHeight/2+4;Q.style.left=v.x-Q.offsetWidth/2+16+"px";Q.style.top=V+"px"};
_.K.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var v=_.L([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var V=HQd(this.imageEditor,Q.corner);this.updatePositionOfCorner(V,Q.div)}};
_.K.onLeft=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(Ux5(this.imageEditor,0),this.updatePositionOfAllCorners(),v.preventDefault())};
_.K.onRight=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(Ux5(this.imageEditor,1),this.updatePositionOfAllCorners(),v.preventDefault())};
_.K.onUp=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(Ux5(this.imageEditor,2),this.updatePositionOfAllCorners(),v.preventDefault())};
_.K.onDown=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(Ux5(this.imageEditor,3),this.updatePositionOfAllCorners(),v.preventDefault())};
_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.hr.Object.defineProperties(i4.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&wJh.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var v,Q,V;((Q=this.data)==null?0:Q.imageRatio)&&((V=this.data)==null?0:V.minImageCropWidth)?v={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:v=ht7;return new sLh(v)}}});
i4.prototype.updatePositionOfAllCorners=i4.prototype.updatePositionOfAllCorners;i4.prototype.dataChanged=i4.prototype.dataChanged;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],i4.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);_.W([_.M(_.zI),_.X("design:type",Object)],i4.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.Z7("#canvas"),_.X("design:type",HTMLCanvasElement)],i4.prototype,"canvasElement",void 0);_.W([_.Z7("#file-selector"),_.X("design:type",HTMLInputElement)],i4.prototype,"fileSelector",void 0);_.W([_.Z7("#top-left-corner"),_.X("design:type",HTMLDivElement)],i4.prototype,"topLeftCorner",void 0);_.W([_.Z7("#top-right-corner"),_.X("design:type",HTMLDivElement)],i4.prototype,"topRightCorner",void 0);
_.W([_.Z7("#bottom-left-corner"),_.X("design:type",HTMLDivElement)],i4.prototype,"bottomLeftCorner",void 0);_.W([_.Z7("#bottom-right-corner"),_.X("design:type",HTMLDivElement)],i4.prototype,"bottomRightCorner",void 0);_.W([_.q(),_.X("design:type",Object)],i4.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],i4.prototype,"errorMessage",void 0);_.W([_.q(),_.X("design:type",Object)],i4.prototype,"isLoading",void 0);_.W([_.q(),_.X("design:type",Object)],i4.prototype,"hideContainer",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.X("design:type",Boolean)],i4.prototype,"isPlaylistThumbnail",void 0);_.W([_.wg("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],i4.prototype,"dataChanged",null);_.W([_.tM("image-updated"),_.tM("yt-refit"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],i4.prototype,"updatePositionOfAllCorners",null);
_.W([_.D7({is:"yt-image-editor-renderer",disableElementRegistration:!0})],i4);
_.B(i4,"yt-image-editor-renderer",function(){if(xx5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;NzY===void 0&&(NzY=document.createElement("template"));var E=NzY;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);xx5=v}v=xx5;return v},{mode:2});var Amj;var kBn;var Ls=function(){return _.z.apply(this,arguments)||this};
_.f(Ls,_.z);Ls.prototype.updateMinutesFromBinding=function(v){this.handleMinutesChanged&&this.handleMinutesChanged(v)};
Ls.prototype.updateSecondsFromBinding=function(v){this.handleSecondsChanged&&this.handleSecondsChanged(v)};
Ls.prototype.updateDescriptionFromBinding=function(v){this.handleDescriptionChanged&&this.handleDescriptionChanged(v)};
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Ls.prototype,"ytComponentBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ls.prototype,"data",void 0);_.W([_.q(),_.X("design:type",String)],Ls.prototype,"minutes",void 0);_.W([_.q(),_.X("design:type",String)],Ls.prototype,"seconds",void 0);_.W([_.q(),_.X("design:type",String)],Ls.prototype,"description",void 0);_.W([_.q(),_.X("design:type",Function)],Ls.prototype,"handleMinutesChanged",void 0);
_.W([_.q(),_.X("design:type",Function)],Ls.prototype,"handleSecondsChanged",void 0);_.W([_.q(),_.X("design:type",Function)],Ls.prototype,"handleDescriptionChanged",void 0);_.W([_.q(),_.X("design:type",Number)],Ls.prototype,"characterLimit",void 0);_.W([_.q(),_.X("design:type",Number)],Ls.prototype,"textNumRows",void 0);_.W([_.D7({is:"yt-report-details-form-content",disableElementRegistration:!0})],Ls);
_.B(Ls,"yt-report-details-form-content",function(){if(kBn===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Amj===void 0&&(Amj=document.createElement("template"));var E=Amj;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);kBn=v}v=kBn;return v},{mode:2});var TN8;var YW8;var tg=function(){var v=_.z.apply(this,arguments)||this;v.updateMinutesFromBinding=function(Q){v.minutes=Q.detail.value};
v.updateSecondsFromBinding=function(Q){v.seconds=Q.detail.value};
v.updateDescriptionFromBinding=function(Q){v.description=Q.detail.value};
return v};
_.f(tg,_.z);_.K=tg.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.K.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"}}}};
_.K.ready=function(){_.m9(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.K.onSubmitYtAction=function(v){var Q=v.detail;Q.actionName==="yt-service-request"&&(Q=Q.args[1],Q.flagEndpoint&&(v.stopPropagation(),this.refireAction(Q)))};
_.K.refireAction=function(v){var Q={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(Q.vss_id=this.vssId);_.vp(this.hostElement,[v,Q]);this.submitDisabled=!0};
_.K.dataChanged=function(){var v=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var Q=_.aJ();Q&&Q.getPlayerPromise().then(function(V){var E=V.getOption("cc","track")||V.getOption("captions","track");E&&(v.vssId=E.vss_id);V=V.getCurrentTime();v.minutes=Math.floor(V/60).toString();v.seconds=(Math.floor(V)%60).toString()})};
_.K.updateSubmitButtonState=function(){var v;((v=this.data)==null?0:v.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.K.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.K.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.hr.Object.defineProperties(tg.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.textNumRows)||4}}});
tg.prototype.onYtServiceRequestError=tg.prototype.onYtServiceRequestError;tg.prototype.onYtServiceRequestCompleted=tg.prototype.onYtServiceRequestCompleted;tg.prototype.updateSubmitButtonState=tg.prototype.updateSubmitButtonState;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);
_.W([_.q({observer:"dataChanged"}),_.X("design:type",Object)],tg.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Boolean)],tg.prototype,"submitDisabled",void 0);_.W([_.q(),_.X("design:type",String)],tg.prototype,"minutes",void 0);_.W([_.q(),_.X("design:type",String)],tg.prototype,"seconds",void 0);_.W([_.q(),_.X("design:type",String)],tg.prototype,"description",void 0);_.W([_.q(),_.X("design:type",String)],tg.prototype,"vssId",void 0);
_.W([_.q({value:_.r7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.X("design:type",Boolean)],tg.prototype,"isMusic",void 0);_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],tg.prototype,"characterLimit",null);_.W([_.O("data"),_.X("design:type",Number),_.X("design:paramtypes",[])],tg.prototype,"textNumRows",null);
_.W([_.wg("minutes","seconds","description","submitDisabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tg.prototype,"updateSubmitButtonState",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tg.prototype,"onYtServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],tg.prototype,"onYtServiceRequestError",null);_.W([_.D7({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],tg);
_.B(tg,"yt-report-details-form-renderer",function(){if(YW8===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;TN8===void 0&&(TN8=document.createElement("template"));var E=TN8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);YW8=v}v=YW8;return v});var ym$;var cmh;var fYn;var GBh;var ps=function(){return _.z.apply(this,arguments)||this};
_.f(ps,_.z);
ps.prototype.onCheckedChanged_=function(){if(this.data){var v=_.m9(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.mb(this.hostElement,"yt-additional-detail-checkbox-update",[v]):this.data.identifier==="yt-hide-user-checkbox"?_.mb(this.hostElement,"yt-hide-user-checkbox-update",[v]):v&&this.data.enableCommand?_.mb(this.hostElement,"yt-modify-report-form-command",[_.y(this.data.enableCommand,gqs)]):!v&&this.data.disableCommand&&_.mb(this.hostElement,
"yt-modify-report-form-command",[_.y(this.data.enableCommand,gqs)])}};
ps.prototype.onLabelTap_=function(v){v.target.tagName!="A"&&(_.m9(this.hostElement).querySelector("#checkbox").checked=!_.m9(this.hostElement).querySelector("#checkbox").checked)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],ps.prototype,"data",void 0);_.W([_.D7({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],ps);
_.B(ps,"yt-boolean-form-field-v2-renderer",function(){if(GBh===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;fYn===void 0&&(fYn=document.createElement("template"));var E=fYn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);GBh=v}v=GBh;return v});var eE=function(){var v=_.z.apply(this,arguments)||this;v.canShowAdditionalDetailCheckbox=!1;v.canShowCheckbox=!1;v.keepDropdownFocusedAfterSelection=!0;return v};
_.f(eE,_.z);eE.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],eE.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],eE.prototype,"canShowAdditionalDetailCheckbox",void 0);_.W([_.q(),_.X("design:type",Object)],eE.prototype,"canShowCheckbox",void 0);_.W([_.q(),_.X("design:type",Object)],eE.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.W([_.D7({is:"yt-report-form-modal-content",disableElementRegistration:!0})],eE);
_.B(eE,"yt-report-form-modal-content",function(){if(cmh===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;ym$===void 0&&(ym$=document.createElement("template"));var E=ym$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);cmh=v}v=cmh;return v},{mode:2});var Crh;var MFh;var Z4=function(){var v=_.z.apply(this,arguments)||this;v.submitting=!1;v.submitButtonDisabled=!0;v.command=null;v.canShowCheckbox=!1;v.canShowAdditionalDetailCheckbox=!1;v.canShowNextButton=!1;v.additionalDetailCheckboxChecked=!1;v.refitJob=0;v.keepDropdownFocusedAfterSelection=!0;v.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return v};
_.f(Z4,_.z);_.K=Z4.prototype;_.K.created=function(){this.refitJob=0};
_.K.attached=function(){this.JSC$21273_scroller&&(this.JSC$21273_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21273_scroller.attached&&typeof this.JSC$21273_scroller.attached==="function"&&this.JSC$21273_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(v){v&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,v.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),v.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.K.onYtPopupOpened=function(){var v=_.aJ();v&&v.getPlayerPromise().then(function(Q){Q.pauseVideo()})};
_.K.onYtNavigate=function(v){_.y(v.detail.endpoint,_.bYV)&&(v.stopPropagation(),this.hideReportForm=!0)};
_.K.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.K.onYtServiceRequestCompleted=function(v,Q){var V=Q.actions;if(V){if(V.length===1&&_.y(V[0],_.E2)){var E;V=((E=_.y(V[0],_.E2))==null?void 0:E.commands)||[]}E=0;for(var b=V.length;E<b;E++)_.y(V[E],_.sv)&&(v.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(V[E]))}if(Q.data&&(v=this.get("feedbackResponses",Q.data)))for(Q=0;Q<v.length;Q++)if(v[Q].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.K.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.K._onDescendantIronResize=function(v){v.stopPropagation();return!1};
_.K.handleReportFormEndpointUpdateAction=function(v){if(v.submitEndpoint){var Q=this.command=v.submitEndpoint;Q=_.y(Q,_.Vhp);if(Q==null?0:Q.additionalDetailCheckboxChecked)Q.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else v.submitNavigationEndpoint?(this.command=v.submitNavigationEndpoint,this.toggleSubmitButton(!1)):v.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:v.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;v.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",v));this.refit()};
_.K.handleConfirmDialogCloseAction=function(v){v.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.K.submitButtonDisabledChanged=function(){var v=this.hostElement.parentElement;v&&v.invalidateTabbables&&v.invalidateTabbables()};
_.K.handleModifyReportFormCommand=function(v){v=this.get("action",v);v==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:v==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:v==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:v==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:v==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:v==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.K.updateDialogStyling=function(){var v,Q,V,E,b,F=((b=(v=this.data)==null?void 0:(Q=v.optionsSupportedRenderers)==null?void 0:(V=Q.optionsRenderer)==null?void 0:(E=V.items)==null?void 0:E.length)!=null?b:0)<=2?0:240;_.F6(this.hostElement,{"--yt-report-form-modal-renderer-min-width":F+"px"})};
_.K.toggleSubmitButton=function(v){this.submitButtonDisabled=!v;this.submitButtonDisabled=v};
_.K.computeSubmitButtonData=function(v,Q){var V={};_.y(Q,_.bYV)?V.navigationEndpoint=Q:V.command=Q||void 0;v&&v.buttonRenderer&&_.gI.extend(V,v.buttonRenderer);return V};
_.K.computeNextButtonData=function(v,Q){var V={};if(!v||!v.buttonRenderer)return V;_.gI.extend(V,v.buttonRenderer);if(!Q)return V;if(_.y(Q,_.bYV))V.navigationEndpoint=sHn(Q);else if(V.command=sHn(Q),v=_.y(V.command,_.Vhp))v.legalCheckboxChecked=!0;return V};
_.K.computeShowNextButton=function(v,Q,V){return!!v&&Q&&V};
_.K.refit=function(){var v=this;this.refitJob||(this.refitJob=_.XT.addLowPriorityJob(function(){_.Hj(v.hostElement,"yt-refit");v.refitJob=0}))};
_.K.handleAdditionalDetailCheckboxUpdateAction=function(v){this.additionalDetailCheckboxChecked=v;_.y(this.command,_.Vhp).additionalDetailCheckboxChecked=v};
_.hr.Object.defineProperties(Z4,{template:{configurable:!0,enumerable:!0,get:function(){if(MFh===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Crh===void 0&&(Crh=document.createElement("template"));var E=Crh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);MFh=v}v=MFh;return v}}});
Z4.prototype.onYtServiceRequestError=Z4.prototype.onYtServiceRequestError;Z4.prototype.onYtServiceRequestCompleted=Z4.prototype.onYtServiceRequestCompleted;Z4.prototype.onYtServiceRequestSent=Z4.prototype.onYtServiceRequestSent;Z4.prototype.onYtNavigate=Z4.prototype.onYtNavigate;Z4.prototype.onYtPopupOpened=Z4.prototype.onYtPopupOpened;_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],Z4.prototype,"openPopupBehavior",void 0);
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Z4.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Z4.prototype,"eventForwardingBehavior",void 0);_.W([_.M(_.WW),_.X("design:type",Object)],Z4.prototype,"ironResizableBehavior",void 0);_.W([_.q({observer:"dataChanged"}),_.X("design:type",Object)],Z4.prototype,"data",void 0);
_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"submitting",void 0);_.W([_.q({observer:"submitButtonDisabledChanged"}),_.X("design:type",Object)],Z4.prototype,"submitButtonDisabled",void 0);_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"command",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Z4.prototype,"hideReportForm",void 0);_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"canShowCheckbox",void 0);
_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"canShowNextButton",void 0);_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"additionalDetailCheckboxChecked",void 0);_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"refitJob",void 0);_.W([_.q(),_.X("design:type",Object)],Z4.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.W([_.Z7("#scroller"),_.X("design:type",Object)],Z4.prototype,"JSC$21273_scroller",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Z4.prototype,"onYtPopupOpened",null);_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Z4.prototype,"onYtNavigate",null);
_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],Z4.prototype,"onYtServiceRequestSent",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],Z4.prototype,"onYtServiceRequestCompleted",null);
_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Z4.prototype,"onYtServiceRequestError",null);_.W([_.D7({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Z4);var Och;var D5q;var Pv=function(){return _.z.apply(this,arguments)||this};
_.f(Pv,_.z);_.K=Pv.prototype;_.K.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.K.onVisible=function(){var v,Q;(Q=_.ht().resolve(_.d$(_.TB)))==null||Q.enqueue({label:_.j0((v=this.data)==null?void 0:v.messageTitle),elementToFocus:this.hostElement})};
_.K.onThumbnailLoaded=function(){_.Hj(this.hostElement,"yt-refit")};
_.K.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.K.computeAlternateIcon=function(v){return v?v==="BACKSTAGE_ARTWORK"?"backstage:artwork":v:null};
_.K.computeFontFamily=function(v){return v==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.K.computeBackgroundStyle=function(v,Q){if(v=this.computeBackgroundImage(v,Q))if(v=_.$D(v.thumbnails))return'background-image: url("'+v+'");'};
_.K.computeHasFullHeightImage=function(v){return!(!(v&&v.thumbnails&&v.thumbnails.length>0)||this.modern)};
_.K.isModernStyle=function(v){return v.style==="STYLE_MODERN"};
_.K.computeIcon=function(v,Q){if(v&&v.icon)return Q?v.iconDark:v.icon};
_.K.computeBackgroundImage=function(v,Q){if(v&&v.backgroundImage)return Q?v.backgroundImageDark:v.backgroundImage};
_.K.computeLogo=function(v,Q){if(v&&v.logo)return Q?v.logoDark:v.logo};
_.K.computeShouldShowModernIcon=function(v,Q){return v&&!!Q};
_.K.getLogoContainerClassName=function(v){return this.logoWithPadding(v)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.K.getLogoImageId=function(v){return this.logoWithPadding(v)?"mealbar-logo-with-padding":"mealbar-logo"};
_.K.logoWithPadding=function(v){var Q,V,E;return(v=(Q=this.computeLogo(v,this.isDarkTheme))==null?void 0:(V=Q.thumbnails)==null?void 0:(E=V[0])==null?void 0:E.height)&&v%31===0?!0:!1};
Pv.prototype.onThumbnailLoaded=Pv.prototype.onThumbnailLoaded;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.W([_.q({}),_.X("design:type",Object)],Pv.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.X("design:type",Boolean)],Pv.prototype,"modern",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Pv.prototype,"isDarkTheme",void 0);
_.W([_.q({computed:"computeIcon(data, isDarkTheme)"}),_.X("design:type",Object)],Pv.prototype,"icon",void 0);_.W([_.q({computed:"computeLogo(data, isDarkTheme)"}),_.X("design:type",Object)],Pv.prototype,"logo",void 0);_.W([_.q({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.X("design:type",Object)],Pv.prototype,"backgroundStyle",void 0);_.W([_.q({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.X("design:type",Object)],Pv.prototype,"alternateIcon",void 0);
_.W([_.q({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.X("design:type",Boolean)],Pv.prototype,"hasFullHeightImage",void 0);_.W([_.q({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.X("design:type",Boolean)],Pv.prototype,"useYoutubeSans",void 0);_.W([_.q({computed:"computeShouldShowModernIcon(modern, icon)"}),_.X("design:type",Boolean)],Pv.prototype,"shouldShowModernIcon",void 0);
_.W([_.tM("yt-img-shadow-loaded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Pv.prototype,"onThumbnailLoaded",null);_.W([_.D7({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Pv);
_.B(Pv,"yt-mealbar-promo-renderer",function(){if(D5q===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Och===void 0&&(Och=document.createElement("template"));var E=Och;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);D5q=v}v=D5q;return v},{mode:2});var Rtn;var n6n;var dt=function(){return _.z.apply(this,arguments)||this};
_.f(dt,_.z);_.K=dt.prototype;_.K.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]]"}}}}}};
_.K.computeHasButtons_=function(v){return!(!v.dismissButton&&!v.acceptButton)};
_.K.computeStyle_=function(v){return v||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.K.observeImpressionEndpoints_=function(){var v=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.vp(v.hostElement,[Q])})};
_.K.onTap_=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
dt.prototype.observeImpressionEndpoints_=dt.prototype.observeImpressionEndpoints_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],dt.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],dt.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],dt.prototype,"positionType",void 0);_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.X("design:type",Boolean)],dt.prototype,"hasButtons_",void 0);_.W([_.q({value:function(){return this.onTap_.bind(this)}}),
_.X("design:type",Function)],dt.prototype,"boundOnTap_",void 0);_.W([_.q({value:{style:"mono-inverse"}}),_.X("design:type",Object)],dt.prototype,"buttonOverride",void 0);_.W([_.ph("data.promoConfig.impressionEndpoints"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],dt.prototype,"observeImpressionEndpoints_",null);_.W([_.D7({is:"yt-tooltip-renderer",disableElementRegistration:!0})],dt);
_.B(dt,"yt-tooltip-renderer",function(){if(n6n===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Rtn===void 0&&(Rtn=document.createElement("template"));var E=Rtn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);n6n=v}v=n6n;return v},{mode:2});var lYn;var qWq;var SWn={},zth=(SWn.WEB_REMIX="music.youtube.com",SWn),hg=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return v};
_.f(hg,_.z);_.K=hg.prototype;_.K.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.created=function(){this.embedHost_=zth[_.r7("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.K.ready=function(){_.m9(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.K.computeEmbedCode_=function(v,Q,V,E,b){if(!v)return"";var F=v.videoId,t=v.fullListId,p=[];v.attributionId&&p.push("si="+v.attributionId);E||p.push("controls=0");V&&Number(Q)>0&&p.push("start="+Q);t&&(F="videoseries",p.push("list="+t));V="https://"+(b?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+F;v.clipId&&(p.push("clip="+v.clipId),p.push("clipt="+v.clipTiming));Q=p.length>0?V+"?"+p.join("&amp;"):V;v.encryptedEmbedConfig&&p.push("embed_config="+JSON.stringify({enc:v.encryptedEmbedConfig}));
p=p.length>0?V+"?"+p.join("&amp;"):V;_.Y("web_sharing_embed_preview_killswitch")?_.m9(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(p,v.previewWidth||854,v.previewHeight||480):(_.S3(this.videoPreviewContainer),_.m9(this.videoPreviewContainer).appendChild(this.buildIframeElement(p)));return this.getEmbedCode_(Q,v.width||560,v.height||315)};
_.K.buildIframeElement=function(v){var Q=document.createElement("iframe"),V,E;Q.width=""+((E=(V=this.data)==null?void 0:V.previewWidth)!=null?E:854);var b,F;Q.height=""+((F=(b=this.data)==null?void 0:b.previewHeight)!=null?F:480);_.QN(Q,2,v);Q.title="YouTube video player";Q.frameBorder="0";Q.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";Q.referrerPolicy="strict-origin-when-cross-origin";Q.allowFullscreen=!0;return Q};
_.K.computeIsSquareAspectRatio_=function(v){return v.previewHeight&&v.previewWidth?v.previewHeight==v.previewWidth:!1};
_.K.computeShowEmbedOptions_=function(v){return!!v.enablePrivacyModeOptionLabel||!!v.showPlayerControlsOptionLabel};
_.K.getEmbedCode_=function(v,Q,V){return'<iframe width="'+Q+'" height="'+V+'" src="'+v+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.K.handleSignalActionCopyShareEmbedUrl_=function(){_.m9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.K.handleSetTimestamp_=function(v){this.startAtTimeStamp_=(this.startAtChecked_=v.isSet)?v.timestamp:0};
_.K.closePanel_=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.K.onEmbedCode_=function(){_.m9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.K.onYtPopupClosed_=function(){_.S3(_.m9(this.hostElement).querySelector("#video-preview"))};
_.K.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.y(this.data.actionButtons[0],_.KH)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.actionButtons[0],_.KH))};
hg.prototype.onYtPopupClosed_=hg.prototype.onYtPopupClosed_;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],hg.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],hg.prototype,"data",void 0);
_.W([_.q({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.X("design:type",String)],hg.prototype,"embedCode_",void 0);_.W([_.q({value:!0}),_.X("design:type",Boolean)],hg.prototype,"isPlayerControlsOptionChecked_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],hg.prototype,"isPrivacyModeOptionChecked_",void 0);_.W([_.q({value:!1,notify:!0}),_.X("design:type",Boolean)],hg.prototype,"startAtChecked_",void 0);
_.W([_.q({value:0}),_.X("design:type",Number)],hg.prototype,"startAtTimeStamp_",void 0);_.W([_.q({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],hg.prototype,"isSquareAspectRatio_",void 0);_.W([_.Z7("#video-preview"),_.X("design:type",HTMLElement)],hg.prototype,"videoPreviewContainer",void 0);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],hg.prototype,"onYtPopupClosed_",null);
_.W([_.D7({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],hg);
_.B(hg,"yt-sharing-embed-renderer",function(){if(qWq===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;lYn===void 0&&(lYn=document.createElement("template"));var E=lYn;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);qWq=v}v=qWq;return v},{mode:2});var Jmh={};
Jmh.YtUnlimitedFamilyInterstitialBehavior=[_.l6.YtOpenPopupBehavior,_.SI.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(v){v=_.NI8(_.jV(v),"yt-button-renderer");return v?v.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(v){this.dialogHistory_.push(v)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var v=this.popFromHistory();if(v){var Q={openPopupAction:{popupType:"DIALOG",popup:{}}};Q.openPopupAction.popup[v.renderer]=v.data;this.showingPreviousDialog_=!0;this.openPopup(Q)}},
handleOpenPopupAction_:function(v){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var Q=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(E){return!!v.openPopupAction.popup[E]}),V=this.getElementName_();
Q&&this.data&&(this.pushToHistory({renderer:V,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(v){if(v=_.y(v,Plh))this.loading=!0,_.mb(this.hostElement,"yt-open-create-family-dialog",[v,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var v=this.hostElement.nodeName.split("-").slice(1).map(function(Q){return""+Q[0].toUpperCase()+Q.slice(1).toLowerCase()}).join("");
return v[0].toLowerCase()+v.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var NNd;var x5Y;var wt=function(){return _.z.apply(this,arguments)||this};
_.f(wt,_.z);_.K=wt.prototype;_.K.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}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mb(this.hostElement,"yt-register-create-family-dialog");_.m9(this.hostElement).querySelector("#thumbnail").onShow()};
_.K.fireOnCloseCommand_=function(){var v;((v=this.data)==null?0:v.onCloseCommand)&&_.Qk(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.K.onYtServiceRequestSent_=function(v,Q){Q&&Q.endpoint&&_.y(Q.endpoint,_.F$)||(this.loading=!0)};
_.K.onYtServiceRequestCompleted_=function(){var v=this.hostElement.parentElement;v.close&&v.close();this.loading=!1};
_.K.openPopupHandler_=function(v){if(v.detail==this){var Q;((Q=this.data)==null?0:Q.onOpenCommands)&&_.Qk(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.K.closePopupHandler_=function(v,Q){this.fireOnCloseCommand_();if(Q&&Q.canceled===!0||Q&&Q.canceled===!1&&Q.confirmed===!1){var V;((V=this.data)==null?0:V.onDismissCommands)&&_.Qk(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.K.dataChanged_=function(){this.loading=!1};
wt.prototype.dataChanged_=wt.prototype.dataChanged_;wt.prototype.closePopupHandler_=wt.prototype.closePopupHandler_;wt.prototype.openPopupHandler_=wt.prototype.openPopupHandler_;wt.prototype.onYtServiceRequestCompleted_=wt.prototype.onYtServiceRequestCompleted_;wt.prototype.onYtServiceRequestSent_=wt.prototype.onYtServiceRequestSent_;_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],wt.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(Jmh.YtUnlimitedFamilyInterstitialBehavior),_.X("design:type",Object)],wt.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],wt.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],wt.prototype,"loading",void 0);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],wt.prototype,"onYtServiceRequestSent_",null);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],wt.prototype,"onYtServiceRequestCompleted_",null);
_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],wt.prototype,"openPopupHandler_",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],wt.prototype,"closePopupHandler_",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],wt.prototype,"dataChanged_",null);
_.W([_.D7({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],wt);
_.B(wt,"yt-unlimited-family-message-interstitial-renderer",function(){if(x5Y===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;NNd===void 0&&(NNd=document.createElement("template"));var E=NNd;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);x5Y=v}v=x5Y;return v},{mode:2});var BNh;var g6q;var Ag=function(){return _.z.apply(this,arguments)||this};
_.f(Ag,_.z);Ag.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"}}}};
Ag.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(v){v.onShow()});
_.m9(this.hostElement).querySelector("#main-thumbnail").onShow()};
Ag.prototype.onButtonTap_=function(v){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(v)};
Ag.prototype.computeMainThumbnailWidth_=function(v){return v&&v.length!==0?72:96};
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.W([_.M(Jmh.YtUnlimitedFamilyInterstitialBehavior),_.X("design:type",Object)],Ag.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Ag.prototype,"data",void 0);
_.W([_.q({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.X("design:type",Number)],Ag.prototype,"mainThumbnailWidth_",void 0);_.W([_.q({value:function(){return this.onButtonTap_.bind(this)}}),
_.X("design:type",Function)],Ag.prototype,"boundButtonTap_",void 0);_.W([_.D7({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Ag);
_.B(Ag,"yt-unlimited-family-profile-interstitial-renderer",function(){if(g6q===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;BNh===void 0&&(BNh=document.createElement("template"));var E=BNh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);g6q=v}v=g6q;return v},{mode:2});var soh;var umj;var kj=function(){var v=_.z.apply(this,arguments)||this;v.sliderAriaValueText_=null;v.selectedIndex_=0;v.messages={PAUSE_SLIDER:_.Lt("PAUSE_SLIDER",void 0,"Pause Duration")};return v};
_.f(kj,_.z);_.K=kj.prototype;_.K.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_]]"}}}}}};
_.K.onPopupOpened_=function(v){v.detail==this&&_.Y("enable_premium_voluntary_pause")&&(_.mb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.setDialogData=function(v){this.data=v;this.resetSlider_()};
_.K.dataChanged_=function(){this.data&&this.resetSlider_()};
_.K.onSubmitTap_=function(){if(this.data.confirmCommand){var v=this.data.confirmCommand;_.y(v,_.Fya)&&_.vp(this.hostElement,[v,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.K.onExitButtonTap_=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.K.closePopupHandler_=function(v,Q){(Q&&Q.canceled===!0||Q.canceled===!1&&Q.confirmed===!1)&&this.handleOnDismissCommands_()};
_.K.onSliderChange_=function(){this.selectedIndex_=_.m9(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.K.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.K.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.K.resetSlider_=function(){if(this.data){var v=this.data.defaultEndOptionIndex||0,Q=_.m9(this.hostElement).querySelector("#id-pause-slider");if(Q.immediateValue<v)for(;Q.immediateValue!=v;)Q.increment();else if(v<Q.immediateValue)for(;Q.immediateValue!=v;)Q.decrement();this.selectedIndex_=v;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.K.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Qk(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.K.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Qk(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.K.onYtServiceRequestSent=function(){this.loading=!0};
_.K.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
kj.prototype.onYtServiceRequestCompleted=kj.prototype.onYtServiceRequestCompleted;kj.prototype.onYtServiceRequestSent=kj.prototype.onYtServiceRequestSent;kj.prototype.closePopupHandler_=kj.prototype.closePopupHandler_;kj.prototype.dataChanged_=kj.prototype.dataChanged_;kj.prototype.onPopupOpened_=kj.prototype.onPopupOpened_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],kj.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],kj.prototype,"loading",void 0);_.W([_.q(),_.X("design:type",Number)],kj.prototype,"selectIndexMax_",void 0);_.W([_.q(),_.X("design:type",Object)],kj.prototype,"selectedData_",void 0);
_.W([_.q(),_.X("design:type",Object)],kj.prototype,"sliderAriaValueText_",void 0);_.W([_.q({value:function(){return this.onSubmitTap_.bind(this)}}),
_.X("design:type",Function)],kj.prototype,"onButtonTap_",void 0);_.W([_.q({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.X("design:type",Function)],kj.prototype,"onSecondaryTap_",void 0);_.W([_.q(),_.X("design:type",Object)],kj.prototype,"messages",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],kj.prototype,"onPopupOpened_",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],kj.prototype,"dataChanged_",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],kj.prototype,"closePopupHandler_",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],kj.prototype,"onYtServiceRequestSent",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],kj.prototype,"onYtServiceRequestCompleted",null);_.W([_.D7({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],kj);
_.B(kj,"yt-unplugged-pause-membership-dialog-renderer",function(){if(umj===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;soh===void 0&&(soh=document.createElement("template"));var E=soh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);umj=v}v=umj;return v},{mode:2});var jo7;var Wzh;var TM=function(){return _.z.apply(this,arguments)||this};
_.f(TM,_.z);TM.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.c_("vcBalanceRenderer")}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],TM.prototype,"data",void 0);_.W([_.D7({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],TM);
_.B(TM,"yt-vc-offer-layout-header-renderer",function(){if(Wzh===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;jo7===void 0&&(jo7=document.createElement("template"));var E=jo7;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Wzh=v}v=Wzh;return v},{mode:2});var o6d;var XJ7;var aYh;var rmm;var Yj=function(){return _.z.apply(this,arguments)||this};
_.f(Yj,_.z);Yj.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.hr.Object.defineProperties(Yj.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.Mp8.YtTappableItemBehavior),_.X("design:type",Object)],Yj.prototype,"ytTappableItemBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Yj.prototype,"data",void 0);
_.W([_.q({reflectToAttribute:!0}),_.O("data.accessibilityText"),_.X("design:type",String),_.X("design:paramtypes",[])],Yj.prototype,"ariaLabel",null);_.W([_.q({reflectToAttribute:!0}),_.O("data.style"),_.X("design:type",String),_.X("design:paramtypes",[])],Yj.prototype,"vcOfferStyle",null);_.W([_.O("data.style","data.titleText"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Yj.prototype,"showTitleText",null);_.W([_.D7({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Yj);
_.B(Yj,"yt-vc-offer-renderer",function(){if(rmm===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;aYh===void 0&&(aYh=document.createElement("template"));var E=aYh;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);rmm=v}v=rmm;return v},{mode:2});var yI=function(){return _.z.apply(this,arguments)||this};
_.f(yI,_.z);yI.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],yI.prototype,"data",void 0);_.W([_.D7({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],yI);
_.B(yI,"yt-vc-offer-layout-renderer",function(){if(XJ7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;o6d===void 0&&(o6d=document.createElement("template"));var E=o6d;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);XJ7=v}v=XJ7;return v},{mode:2});var $5Y;var IY7;var Hcj;var m55;var cv=function(){return _.z.apply(this,arguments)||this};
_.f(cv,_.z);cv.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],cv.prototype,"data",void 0);_.W([_.D7({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],cv);
_.B(cv,"yt-ypc-offers-modal-top-bar-renderer",function(){if(m55===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Hcj===void 0&&(Hcj=document.createElement("template"));var E=Hcj;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);m55=v}v=m55;return v},{mode:2});var GM=function(){return _.z.apply(this,arguments)||this};
_.f(GM,_.z);GM.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"}}}}};
GM.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
GM.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var v=this.scrollable;v.attached&&typeof v.attached==="function"&&v.attached()};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Z7("#scrollable"),_.X("design:type",Object)],GM.prototype,"scrollable",void 0);_.W([_.q(),_.X("design:type",Object)],GM.prototype,"data",void 0);_.W([_.D7({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],GM);
_.B(GM,"yt-ypc-offers-modal-renderer",function(){if(IY7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;$5Y===void 0&&($5Y=document.createElement("template"));var E=$5Y;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);IY7=v}v=IY7;return v},{mode:2});var U5s;var vo5;var Cs=function(){return _.z.apply(this,arguments)||this};
_.f(Cs,_.z);_.K=Cs.prototype;_.K.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}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.K.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.mb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.K.onYtPopupOpened_=function(v,Q){(Q==null?void 0:Q.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Qk(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.K.onYtPopupClosed_=function(v,Q){this.continueButtonTapped||Q&&(Q.canceled===!0||Q.canceled===!1&&Q.confirmed===!1)&&this.data.onDismissCommands&&_.Qk(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.K.onYtServiceRequestError_=function(v){this.set("showSpinner",!1);_.NJ(this.hostElement,v.detail.error.message)};
_.K.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.Y("enable_ypc_spinners")?_.mb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Cs.prototype.onYtServiceRequestError_=Cs.prototype.onYtServiceRequestError_;Cs.prototype.onYtPopupClosed_=Cs.prototype.onYtPopupClosed_;Cs.prototype.onYtPopupOpened_=Cs.prototype.onYtPopupOpened_;Cs.prototype.onYtServiceRequestCompleted_=Cs.prototype.onYtServiceRequestCompleted_;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.q(),_.X("design:type",Object)],Cs.prototype,"data",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Cs.prototype,"showSpinner",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Cs.prototype,"continueButtonTapped",void 0);_.W([_.q({value:function(){return this.onContinueTapped_.bind(this)}}),
_.X("design:type",Function)],Cs.prototype,"bindOnContinueTapped_",void 0);_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Cs.prototype,"onYtServiceRequestCompleted_",null);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Cs.prototype,"onYtPopupOpened_",null);
_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Cs.prototype,"onYtPopupClosed_",null);_.W([_.tM("yt-service-request-error"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Cs.prototype,"onYtServiceRequestError_",null);_.W([_.D7({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Cs);
_.B(Cs,"yt-ypc-upgrade-dialog-renderer",function(){if(vo5===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;U5s===void 0&&(U5s=document.createElement("template"));var E=U5s;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);vo5=v}v=vo5;return v},{mode:2});var QGs;var Vf7;var Mr=function(){return _.z.apply(this,arguments)||this};
_.f(Mr,_.z);Mr.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Mr.prototype.computeHasButtons_=function(v){return!(!v.dismissButton&&!v.confirmButton)};
Mr.prototype.computeStyle_=function(v){return v||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Mr.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Mr.prototype,"data",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Mr.prototype,"positionType",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.X("design:type",Boolean)],Mr.prototype,"hasButtons_",void 0);_.W([_.q({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Mr.prototype,"style_",void 0);_.W([_.D7({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Mr);
_.B(Mr,"yt-bubble-hint-renderer",function(){if(Vf7===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;QGs===void 0&&(QGs=document.createElement("template"));var E=QGs;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);Vf7=v}v=Vf7;return v},{mode:2});var Eo$;var b3m;var Og=function(){var v=_.wC.apply(this,arguments)||this;v.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return v};
_.f(Og,_.wC);_.K=Og.prototype;_.K.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.K.attached=function(){var v=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){v.$.thumbnail.onShow();v.$["header-image"].onShow()})};
_.K.handleCheckBoxUpdateAction_=function(v){this.canShowCheckboxEnabledConfirmButton=v};
_.K.computeUseOverlayForSpinner_=function(v,Q){return!!v&&Q};
_.K.computeShowSpinner_=function(v,Q){return v||!!Q};
_.K.fireOnCloseActions_=function(){var v,Q=_.L(((v=this.data)==null?void 0:v.onClosedActions)||[]);for(v=Q.next();!v.done;v=Q.next())this.ytRendererBehavior.resolveCommand(v.value)};
_.K.fireOnOpenCommands_=function(v){var Q,V=(Q=this.data)==null?void 0:Q.onOpenCommands;if(V)for(v.stopImmediatePropagation(),v=_.L(V),Q=v.next();!Q.done;Q=v.next())this.ytRendererBehavior.resolveCommand(Q.value)};
_.K.fireOnDismissCommands_=function(v){var Q,V=(Q=this.data)==null?void 0:Q.onDismissCommands;if(V)for(v.stopImmediatePropagation(),v=_.L(V),Q=v.next();!Q.done;Q=v.next())this.ytRendererBehavior.resolveCommand(Q.value)};
_.K.openPopupHandler_=function(v){v.detail==this&&this.fireOnOpenCommands_(v)};
_.K.closePopupHandler_=function(v,Q){_.Un(this,"yt-confirm-dialog-close-action",[Q]);this.fireOnCloseActions_();(Q&&Q.canceled===!0||Q&&Q.canceled===!1&&Q.confirmed===!1)&&this.fireOnDismissCommands_(v)};
_.K.onHeaderImageChanged_=function(){var v;((v=this.data)==null?0:v.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.K.computeHasHeaderImageWidth_=function(v){return v!=void 0};
_.K.computeHasLoadingMessage=function(v){return!!v};
_.K.onHeaderImageWidthChanged_=function(){var v,Q=(v=this.data)==null?void 0:v.headerImageWidth;if(Q){if(v=1.25*Q*2+Q,this.$.main.style.width=v+"px",Q=this.$.scroller.firstElementChild)Q.style.minWidth=v+"px"}else this.$.main.style.width="100%"};
_.K.onThumbnailChanged_=function(){var v;((v=this.data)==null?0:v.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.K.onYtNavigate_=function(v){v=_.jV(v);v instanceof Node&&_.Up(this.$["confirm-button"]).contains(v)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.K.computePrimaryIsCancel_=function(v){return v};
_.K.computeIsCancelButtonHidden_=function(v){return v.skipCancelButton||!v.cancelButton};
_.K.computeIsCheckboxHidden_=function(v){return!v.checkbox};
_.K.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.K.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.K.onYtServiceRequestCompleted_=function(){var v;((v=this.data)==null?0:v.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.hr.Object.defineProperties(Og,{template:{configurable:!0,enumerable:!0,get:function(){if(b3m===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;Eo$===void 0&&(Eo$=document.createElement("template"));var E=Eo$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);b3m=v}v=b3m;return v}}});
Og.prototype.onYtServiceRequestCompleted_=Og.prototype.onYtServiceRequestCompleted_;Og.prototype.onYtServiceRequestSent_=Og.prototype.onYtServiceRequestSent_;Og.prototype.onThumbnailLoaded_=Og.prototype.onThumbnailLoaded_;Og.prototype.onYtNavigate_=Og.prototype.onYtNavigate_;Og.prototype.onThumbnailChanged_=Og.prototype.onThumbnailChanged_;Og.prototype.onHeaderImageWidthChanged_=Og.prototype.onHeaderImageWidthChanged_;Og.prototype.onHeaderImageChanged_=Og.prototype.onHeaderImageChanged_;
Og.prototype.closePopupHandler_=Og.prototype.closePopupHandler_;Og.prototype.openPopupHandler_=Og.prototype.openPopupHandler_;_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Og.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);
_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Og.prototype,"ytEventForwardingBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Og.prototype,"data",void 0);_.W([_.q({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.X("design:type",Boolean)],Og.prototype,"primaryIsCancel",void 0);_.W([_.q({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.X("design:type",Boolean)],Og.prototype,"isCancelButtonHidden",void 0);
_.W([_.q({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.X("design:type",Boolean)],Og.prototype,"isCheckboxHidden",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Og.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.W([_.q({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.X("design:type",Boolean)],Og.prototype,"useOverlayForSpinner_",void 0);
_.W([_.q({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.X("design:type",Boolean)],Og.prototype,"showSpinner_",void 0);_.W([_.q({value:!1}),_.X("design:type",Boolean)],Og.prototype,"isActionInProgress_",void 0);_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.X("design:type",Boolean)],Og.prototype,"hasHeaderImageWidth_",void 0);
_.W([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.X("design:type",Boolean)],Og.prototype,"hasLoadingMessage",void 0);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Og.prototype,"openPopupHandler_",null);_.W([_.tM("yt-popup-closed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Og.prototype,"closePopupHandler_",null);
_.W([_.ph("data.headerImage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Og.prototype,"onHeaderImageChanged_",null);_.W([_.ph("data.headerImageWidth"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Og.prototype,"onHeaderImageWidthChanged_",null);_.W([_.ph("data.thumbnail"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Og.prototype,"onThumbnailChanged_",null);
_.W([_.tM("yt-navigate"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Og.prototype,"onYtNavigate_",null);_.W([_.tM("yt-img-shadow-loaded"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Og.prototype,"onThumbnailLoaded_",null);_.W([_.tM("yt-service-request-sent"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.S$]),_.X("design:returntype")],Og.prototype,"onYtServiceRequestSent_",null);
_.W([_.tM("yt-service-request-completed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,_.sP]),_.X("design:returntype")],Og.prototype,"onYtServiceRequestCompleted_",null);_.W([_.D7({is:"yt-confirm-dialog-renderer",noInjection:!0})],Og);var FPs;var KPd;var D4=function(){return _.z.apply(this,arguments)||this};
_.f(D4,_.z);D4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
D4.prototype.computeConfirmButton_=function(v){var Q={text:v.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};v.confirmNavigationEndpoint?Q.navigationEndpoint=v.confirmNavigationEndpoint:v.confirmServiceEndpoint&&(Q.serviceEndpoint=v.confirmServiceEndpoint);return Q};
D4.prototype.computeShowTitle_=function(v){return!(v==null||!v.title)};
_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],D4.prototype,"data",void 0);_.W([_.q({computed:"computeShowTitle_(data)"}),_.X("design:type",Boolean)],D4.prototype,"showTitle",void 0);_.W([_.D7({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],D4);
_.B(D4,"yt-fancy-dismissible-dialog-renderer",function(){if(KPd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;FPs===void 0&&(FPs=document.createElement("template"));var E=FPs;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);KPd=v}v=KPd;return v});var i3s;var LPs;var Rk=function(){var v=_.z.apply(this,arguments)||this;v.spinnerActive=!1;return v};
_.f(Rk,_.z);Rk.prototype.created=function(){iMh(2201)};
Rk.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Rk.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Rk.prototype.onIronOverlayClosed=Rk.prototype.onIronOverlayClosed;Rk.prototype.onIronOverlayOpened=Rk.prototype.onIronOverlayOpened;_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.Kd),_.X("design:type",Object)],Rk.prototype,"tpYtIronOverlayBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],Rk.prototype,"data",void 0);_.W([_.q(),_.X("design:type",Object)],Rk.prototype,"spinnerActive",void 0);
_.W([_.tM("iron-overlay-opened"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Rk.prototype,"onIronOverlayOpened",null);_.W([_.tM("iron-overlay-closed"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Rk.prototype,"onIronOverlayClosed",null);_.W([_.D7({is:"yt-loading-renderer",disableElementRegistration:!0})],Rk);
_.B(Rk,"yt-loading-renderer",function(){if(LPs===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;i3s===void 0&&(i3s=document.createElement("template"));var E=i3s;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);LPs=v}v=LPs;return v},{mode:2});var tf$;var phj;var ns=function(){var v=_.z.apply(this,arguments)||this;v.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);v.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);v.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.f(ns,_.z);_.K=ns.prototype;_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.K.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.K.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.K.openPopupHandler_=function(v){v.detail===this.hostElement&&this.hostElement.hidden&&_.mb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.K.onDismissButtonTap_=function(){var v;this.closeOnDismissButton_.has(((v=this.data)==null?void 0:v.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.mb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.K.onAcceptButtonTap_=function(){var v;this.closeOnAcceptButton_.has(((v=this.data)==null?void 0:v.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.mb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.K.computeHasHeader_=function(v){return!!v.headerBackgroundImage};
_.K.computeLayoutStyle_=function(v){return v};
_.K.computePopupSize_=function(v){return v};
_.K.computeIconType_=function(v){return v.dialogIcon&&v.dialogIcon.iconType?v.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":v.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":v.dialogIcon.iconType:""};
_.K.computeIsLogo_=function(v){return!!v.dialogIcon&&!!v.dialogIcon.iconType&&(v.dialogIcon.iconType==="YOUTUBE_LOGO"||v.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||v.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.K.computeHasCustomLogo=function(v){return!(v==null||!v.headerForegroundImage)};
_.K.computeCustomLogo=function(v,Q){if(v!=null&&v.headerForegroundImage)return v.headerForegroundImageDark?Q?v.headerForegroundImageDark:v.headerForegroundImage:v.headerForegroundImage};
_.K.computeHeaderBackgroundImage=function(v,Q){if(v!=null&&v.headerBackgroundImage)return Q&&(v==null?0:v.headerBackgroundImageDark)?v.headerBackgroundImageDark:v.headerBackgroundImage};
_.K.shouldShowIconContainer=function(v,Q){return v&&!Q};
_.K.shouldShowNonYouTubeIcon=function(v,Q){return!v&&!Q};
_.K.getLogoImageId=function(v){var Q,V,E;return(v=(Q=this.computeCustomLogo(v,this.isDarkTheme))==null?void 0:(V=Q.thumbnails)==null?void 0:(E=V[0])==null?void 0:E.height)&&v%31===0?"custom-logo-with-padding":"custom-logo"};
ns.prototype.openPopupHandler_=ns.prototype.openPopupHandler_;ns.prototype.dataChanged_=ns.prototype.dataChanged_;_.W([_.M(_.T9.YtRendererstamperBehavior),_.X("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.W([_.q(),_.X("design:type",Boolean)],ns.prototype,"isDarkTheme",void 0);
_.W([_.q({computed:"computeCustomLogo(data, isDarkTheme)"}),_.X("design:type",Object)],ns.prototype,"customLogo",void 0);_.W([_.q({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.X("design:type",Object)],ns.prototype,"headerBackgroundImage",void 0);_.W([_.q(),_.X("design:type",Object)],ns.prototype,"data",void 0);_.W([_.q({computed:"computeHasHeader_(data)"}),_.X("design:type",Boolean)],ns.prototype,"hasHeader",void 0);
_.W([_.q({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.X("design:type",Object)],ns.prototype,"layoutStyle",void 0);_.W([_.q({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.X("design:type",Object)],ns.prototype,"popupSize",void 0);_.W([_.q({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],ns.prototype,"hasLogo",void 0);
_.W([_.q({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.X("design:type",Boolean)],ns.prototype,"hasCustomLogo",void 0);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],ns.prototype,"dataChanged_",null);_.W([_.tM("yt-popup-opened"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],ns.prototype,"openPopupHandler_",null);
_.W([_.D7({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],ns);
_.B(ns,"yt-upsell-dialog-renderer",function(){if(phj===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;tf$===void 0&&(tf$=document.createElement("template"));var E=tf$;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);phj=v}v=phj;return v},{mode:2});var eOY=_.x(function(v){return _.P("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.P(_.h,{cond:v.title,then:function(Q){return _.P("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},Q)}}))},"Dj"),Z37=_.x(function(v){return _.P("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.P(_.Pw,{data:v.closeButton},{buttonViewModel:function(Q){return _.P("div",null,_.P(_.D6,{data:Q.data}))}}))},"Ej"),P1h=_.x(function(v){var Q=v.data;
return _.P(_.w7,null,_.P("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.P("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.P(_.h,{cond:function(){return!!Q().image&&!!Q().title},
then:function(){return _.P(_.gE,{data:function(){return Q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.P("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.P(_.h,{cond:function(){return Q().title},
then:function(V){return _.P("h3",{class:"miniAppGameInfoDialogViewModelTitle"},V)}}),_.P(_.h,{cond:function(){return Q().primaryGenre},
then:function(V){return _.P("span",{class:"miniAppGameInfoDialogViewModelGenre"},V)}}))),_.P(_.h,{cond:function(){var V=Q().description;
return V&&V.length<=150},
then:function(){return _.P("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.P("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return Q().description}))}}))},"Fj"),d9j=_.x(function(v){v=v.infoRows;
var Q=_.ht().resolve(_.kA),V=_.Y("enable_displaying_ppn");return _.P("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.P(_.xb,{each:v},function(E){return _.P("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.P(_.h,{cond:function(){return E.label},
then:function(b){return _.P("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},b)}}),_.P(_.h,{cond:function(){return E.attributedLabel},
then:function(b){return _.P("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.P(_.tD,{text:b,noPreWrap:!0}))}}),_.P(_.h,{cond:function(){return E.value},
then:function(b){return _.P("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},b)}}),_.P(_.h,{cond:function(){return E.attributedValue},
then:function(b){return _.P("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.P(_.tD,{text:b,noPreWrap:!0}))}}))}),_.P(_.h,{cond:function(){return V&&Q.clientData.has("post_play_nonce")},
then:function(){return _.P("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.P("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.P("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Q.getData("post_play_nonce")))}}))},"Gj"),hOj=_.x(function(v){var Q=v.data;
return _.P("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.P(eOY,{title:function(){return Q().dialogTitle}}),_.P(P1h,{data:Q}),_.P(_.h,{cond:function(){return Q().infoRow},
then:function(V){return _.P(d9j,{infoRows:V})}}),_.P(Z37,{closeButton:function(){return Q().closeButton}}))},"Hj");
hOj.idomCompat=!0;_.ad(hOj,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;return _.P("yt-gulp-triggering-dialog-view-model",{class:_.QZ("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.P(_.gE,{data:function(){return Q().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.P("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.P("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.P("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.h,{cond:function(){return Q().bodyText},
then:function(V){return _.P(_.xb,{each:V},function(E){return _.P("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.P(_.tD,{text:E}))})}})),_.P("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.P(_.Pw,{data:function(){return Q().dismissButton}},{buttonViewModel:function(V){return _.P("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.P(_.D6,{data:V.data}))}}),_.P(_.Pw,{data:function(){return Q().actionButton}},{buttonViewModel:function(V){return _.P("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.P(_.D6,{data:V.data}))}}))))},"Ij"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.pJ}});var whq=_.x(function(v){var Q=v.data;v=_.Wn(function(){return Q().agreements},[]);
return _.P("installment-agreements-view-model",{class:_.QZ("ytInstallmentAgreementsViewModelHost")},_.P(_.xb,{each:v},function(V){return _.P("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.P("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.P(_.tD,{text:V.label})),_.P("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.P(_.Pw,{data:function(){return V.openButton}},{buttonViewModel:_.D6})))}))},"Jj");
whq.idomCompat=!0;var Als=_.x(function(v){var Q=_.L(_.K_(function(){var r,v9;return((r=v.data().createPlaylistDialogFormSchema)==null?0:(v9=r.initialValues)==null?0:v9.title)?v.data().createPlaylistDialogFormSchema.initialValues.title:""})),V=Q.next().value,E=Q.next().value;
Q=_.L(_.K_(function(){v.data();return!1}));
var b=Q.next().value,F=Q.next().value;Q=_.L(_.K_(function(){v.data();return!1}));
var t=Q.next().value,p=Q.next().value;Q=_.L(_.K_(function(){var r,v9;return(r=v.data().createPlaylistDialogFormSchema)==null?void 0:(v9=r.initialValues)==null?void 0:v9.visibility}));
var Z=Q.next().value,d=Q.next().value;Q=_.L(_.K_(function(){v.data();return!1}));
var w=Q.next().value,A=Q.next().value;Q=_.L(_.K_(function(){var r,v9;return(r=v.data().createPlaylistDialogFormSchema)==null?void 0:(v9=r.initialValues)==null?void 0:v9.isCollaborative}));
var k=Q.next().value,T=Q.next().value,c=_.Ze("div");_.uH(function(){var r=c.value.querySelector("textarea");r&&(r.value=V())},"axFRaf");
_.jg(function(){var r;_.zdq((r=v.data().createPlaylistDialogFormSchema)==null?void 0:r.id,{onSubmit:function(){var v9=V();var t3=Z(),h3=k(),OB=v.data();v9={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:v9,privacyStatus:t3,videoIds:OB.videoIds,sourcePlaylistId:OB.sourcePlaylistId,params:h3?OB.createPlaylistParamsCollaborationEnabled:OB.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.ht().resolve(_.At).resolveCommand(v9)},
isValid:function(){return b()&&!t()&&!w()}})});
var C=function(r){if(r!==void 0&&(E(r),!b()&&r.length>0&&F(!0),b())){var v9=e58(v.data());if(v9){var t3=v9.minLength;v9=v9.maxLength;t3&&r.length<t3?p(!0):v9&&r.length>v9?p(!0):p(!1)}}},R=function(){var r=!(!k()||Z()!=="PRIVATE");
A(r)},l=function(r){r!==void 0&&(d(r),R())},S=function(){if(w())return Py8(v.data())},a=function(){T(!k());
R()},g=function(){return{validate:function(r){if(b()){var v9=e58(v.data());
if(v9){var t3=v9.minLength;v9=v9.translations;if(t3&&r.length<t3)return v9==null?void 0:v9.minLengthErrorMessage}}}}},u=function(){var r=e58(v.data()),v9=r==null?void 0:r.maxLength,t3;
r=r==null?void 0:(t3=r.translations)==null?void 0:t3.maxLengthErrorMessage;if(v9&&r)return{maxChars:v9,errorMessage:r}};
return _.P("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.P("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:c},_.P(_.Pw,{data:function(){return v.data().playlistTitle}},{textFormFieldViewModel:function(r){return _.P(_.ugm,{data:r.data,
text:V,onInput:C,validation:g,characterLimit:u})},
textFieldViewModel:function(r){return _.P(_.sFm,{data:r.data,text:V,onInput:C,validation:g,characterLimit:u})}})),_.P("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.P(_.Pw,{data:function(){return v.data().playlistVisibility}},{dropdownViewModel:function(r){return _.P(_.mS$,{data:r.data,
onSelected:l,error:S})}})),_.P(_.h,{cond:function(){return!!v.data().playlistCollaborate},
then:function(){return _.P("div",null,_.P(_.Pw,{data:function(){return v.data().playlistCollaborate}},{switchListItemViewModel:function(r){return _.P(_.cip,{data:r.data,
onTap:a})}}))}}))},"Lj");var kRI=_.x(function(v){var Q=v.data;return _.P("upsell-offer-table-cell-content-view-model",null,_.P("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.P(_.BU,null,_.P(_.J1,{when:function(){return Q().iconType}},function(){return _.P("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.P(_.L_,{icon:function(){return Q().iconType.toString()}}))}),_.P(_.J1,{when:function(){return Q().title}},function(){return _.P(_.tD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return Q().title}})}),_.P(_.J1,{when:function(){return Q().subtitle}},function(){return _.P(_.tD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return Q().subtitle}})}),_.P(_.J1,{when:function(){return Q().infoText}},function(){return _.P(_.tD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return Q().infoText}})}),_.P(_.J1,{when:function(){return Q().featureDescription}},function(){return _.P(_.tD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return Q().featureDescription}})}),_.P(_.J1,{when:function(){return Q().note}},function(){return _.P(_.tD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return Q().note}})}))))},"Mj");
kRI.idomCompat=!0;var Tah=_.x(function(v){var Q=v.data;return _.P("upsell-offer-table-cell-view-model",null,_.P("div",{class:_.QZ("ytUpsellOfferTableCellViewModelCellWrapper",function(){return Q().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":Q().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.P(_.Pw,{data:function(){return Q().contents}},{upsellOfferTableCellContentViewModel:kRI})))},"Nj");
Tah.idomCompat=!0;var YNs=_.x(function(v){var Q=v.data;var V=v.upsellTableIsFirstRow;var E=function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},b=function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.P("ytm-upsell-offer-table-row-view-model",null,_.P("div",{class:function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}},_.P(_.Pw,{data:function(){return Q().rowHeaderCell}},{upsellOfferTableCellViewModel:function(F){return _.P("div",{class:E},_.P(Tah,{data:F.data}))}}),_.P("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.P(_.Pw,{data:function(){return Q().contentCells}},{upsellOfferTableCellViewModel:function(F){return _.P("div",
{class:b},_.P(Tah,{data:F.data}))}}))))},"Oj");
YNs.idomCompat=!0;var yl7=_.x(function(v){var Q=v.data;return _.P("ytm-upsell-offer-table-view-model",null,_.P("div",{class:"ytUpsellOfferTableViewModelHost"},_.P("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.P(_.Pw,{data:function(){return Q().rows}},{upsellOfferTableRowViewModel:function(V,E){return _.P(YNs,{data:V.data,
upsellTableIsFirstRow:function(){return E()===0}})}}))))},"Pj");
yl7.idomCompat=!0;var cl5=_.x(function(v){var Q=function(){return v.data()},V=_.Wn(v.noPadding,!1),E=function(){var F,t;
return(t=(F=Q().logo.accessibilityData)==null?void 0:F.label)!=null?t:""},b={};
return _.P("upsell-view-model",{class:_.QZ("ytUpsellViewModelHost",(b.ytUpsellViewModelHostNoPadding=function(){return V()},b.ytUpsellViewModelHostWide=function(){return Q().offerTable!==void 0},b))},_.P("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.P(_.h,{cond:function(){return _.SC(Q().logo)},
then:function(F){return _.P(_.gE,{data:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:E})}})),_.P("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.P(_.xb,{each:function(){var F;
return(F=Q().subtitles)!=null?F:[]},
keyBy:"INDEX"},function(F){var t={};return _.P("div",{class:_.QZ("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(t.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return Q().offerTable!==void 0},t))},_.P(_.tD,{text:F}))})),_.P("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.P(_.xb,{each:function(){var F;
return(F=Q().benefitInfos)!=null?F:[]},
keyBy:"INDEX"},function(F){return _.P(_.h,{cond:function(){return F().info},
then:function(t){return _.P("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.P(_.L_,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.P(_.tD,{text:t}))}})})),_.P(_.h,{cond:function(){return Q().offerTable!==void 0},
then:function(){return _.P("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.P(_.Pw,{data:function(){return Q().offerTable}},{upsellOfferTableViewModel:function(F){return _.P(yl7,{data:F.data})}}))}}),_.P("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.P(_.xb,{each:function(){var F;
return(F=Q().legalInfos)!=null?F:[]},
keyBy:"INDEX"},function(F){var t={};return _.P("div",{class:_.QZ("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(t.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return Q().offerTable!==void 0},t))},_.P(_.tD,{text:F}))})))},"Qj");var fNf=_.x(function(v){var Q=v.data;v={};v=(v.ytMiniAppScoreChallengeViewModelScoreRadial=!0,v.ytMiniAppScoreChallengeViewModelDarkScoreRadial=dcj(),v);return _.P("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.P("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return Q().title}),_.P("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return Q().subtitle}),_.P("div",{class:_.Yl(v)},_.P("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return Q().score})),_.P("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return Q().prompt}))},"Rj");var GR8=function(){this.store=_.uf();this.formId=""};
GR8.prototype.onInit=function(v){v.formId&&(this.formId=v.formId,this.store.dispatch(_.U2({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var C1s=_.x(function(v){function Q(p){if(p&&(p=_.y(p,_.wW)))return Object.assign({},p,{isSelected:F()})}
var V=_.L(_.K_(function(){var p,Z;return(Z=(p=_.y(v.data().option,_.wW))==null?void 0:p.isSelected)!=null?Z:!1})),E=V.next().value,b=V.next().value,F=E;
_.jg(function(){var p;_.zdq((p=v.data().formSchema)==null?void 0:p.id,{onSubmit:function(){var Z=_.ht().resolve(_.At),d=!!v.data().selectedCommand,w=!!v.data().unselectedCommand;if(F()){if(d)var A=v.data().selectedCommand}else w&&(A=v.data().unselectedCommand);A=_.MQ(A);Q(v.data().option)&&!A?(Z="",!d&&w?Z="selected ":d&&!w&&(Z="unselected "),d=new _.xd("No "+Z+"command found for SelectionListItemFormViewModel"),_.ro(d)):A&&Z.resolveCommand(A)},
isValid:function(){return!0}})});
var t=function(){b(!F())};
_.j_(function(){var p,Z,d=(p=v.data())==null?void 0:(Z=p.formSchema)==null?void 0:Z.id;d&&_.eC()().delete(d)});
return _.P("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.P("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.P(_.tD,{text:function(){return v.data().paragraph}})),_.P(_.h,{cond:function(){return Q(v.data().option)},
then:function(p){return _.P(_.to,{data:p,isCompact:!0,hideSelectionTextChevron:!0,onTap:t,disableHorizontalPadding:!0})}}))},"Sj");var Mf$=_.x(function(v){var Q=v.data;var V=v.disablePadding;var E=v.className;var b=_.Ze("yt-dialog-header-view-model"),F=function(){var p=Q().imageBanner;a:switch(Q().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var Z="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:Z="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:p,style:Z,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},t=function(){return Q().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.jg(function(){var p=function(){_.mb(b.value,"yt-refit-popups-action")},Z;
(Z=b.value)==null||Z.addEventListener("image-loaded",p);_.j_(function(){var d;(d=b.value)==null||d.removeEventListener("image-loaded",p)})});
v={};return _.P("yt-dialog-header-view-model",{el:b,class:_.QZ(E,(v.ytDialogHeaderViewModelHost=!0,v.ytDialogHeaderViewModelHostDisablePadding=V,v))},_.P(_.h,{cond:function(){return Q().imageBanner},
then:function(){var p={};return _.P("div",{class:_.QZ(E,(p.ytDialogHeaderViewModelBanner=!0,p.ytDialogHeaderViewModelBannerFullBleed=t,p)),style:_.iP({"max-height":function(){return Q().assetContainerMaxHeight!==void 0?Q().assetContainerMaxHeight+"px":void 0}})},_.P(_.RV,{data:F,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.P(_.h,{cond:function(){return Q().headerBlock},
then:function(){return _.P("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.P(_.Pw,{data:function(){return Q().headerBlock}},{contentPreviewImageViewModel:function(p){return _.P(_.RV,{data:p.data,
notifyOnLoaded:!0})}}))}}),_.P(_.h,{cond:function(){return Q().customBanner},
then:function(p){return _.P("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.P(_.Pw,{data:p},{avatarStackViewModel:_.Em}))}}),_.P(_.h,{cond:function(){return Q().headline},
then:function(p){return _.P("h2",null,_.P(_.tD,{text:p,className:"ytDialogHeaderViewModelText"}))}}))},"Tj");
Mf$.idomCompat=!0;var O3m=_.x(function(v){var Q=_.p1m(function(){return v.data().formId}),V=Q.submitForm,E=Q.isValid;
return _.P("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.P(_.Pw,{data:function(){return v.data().panelFooter}},{panelFooterViewModel:function(b){return _.P(_.zR,{data:b.data,
disablePadding:!0,disablePrimaryButton:function(){return!E()},
onClickPrimaryButton:function(){V()}})}}))},"Uj");var D9d=_.x(function(v){var Q=function(){var V,E;return(E=(V=_.y(v.data().rendererContext,_.ds))==null?void 0:V.label)!=null?E:""};
return _.P("yt-dialog-image-content-view-model",{class:_.QZ("ytDialogImageContentViewModelHost",v.className)},_.P(_.h,{cond:function(){return _.SC(v.data().image)},
then:function(V){var E={};return _.P("div",{style:_.iP((E.width=(0,_.iQ)(function(){var b;return(b=v.data().imageMaxWidth)!=null?b:""}),E)),
class:"ytDialogImageContentViewModelImage"},_.P(_.gE,{data:V,alt:Q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.P(_.tD,{text:function(){return v.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Vj");var lNh=_.x(function(v){var Q=_.o1(v,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),V=Q.elRefCallback;v=Q.Icon;var E=Q.Asset,b=Q.assetType,F=Q.Title,t=Q.LeadingActionHeader,p=Q.TrailingActionHeader,Z=Q.headerPosition,d=Q.Content,w=Q.buttonLayout,A=Q.buttonStyle,k=Q.primaryButtonWiz,T=Q.secondaryButtonWiz,c=Q.contentAlignment,C=Q.isFullscreen,R=Q.width,l=Q.maxHeight,S=Q.isHeaderWizDefined,a=Q.Header,g=Q.isFooterWizDefined,
u=Q.Footer;Q=_.Ze("dialog-layout",function(xQ){V==null||V(xQ)});
var r=k?function(){var xQ={};return k({buttonOverrides:function(){return{style:(A==null?void 0:A())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.QZ((xQ["yt-spec-dialog-layout__dialog-layout-button"]=!0,xQ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},xQ))})}:void 0,v9=T?function(){var xQ={};
return T({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.QZ((xQ["yt-spec-dialog-layout__dialog-layout-button"]=!0,xQ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},xQ))})}:void 0,t3=function(){return(!!F||!!t||!!p)&&Z()===0},h3={},OB={},kQ={},yo={};
return _.P("dialog-layout",{el:Q,class:_.QZ((h3["yt-spec-dialog-layout"]=!0,h3["yt-spec-dialog-layout--dialog-layout-fullscreen"]=C,h3["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!C()},h3["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return l()===1},h3["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(b==null?void 0:b())===1},h3)),
style:function(){return(R==null?void 0:R())!==void 0?"width: "+R()+"px;":""}},v?_.P("div",{class:_.QZ((OB["yt-spec-dialog-layout__dialog-layout-icon"]=!0,OB["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!E&&Z()===1},OB["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return c()===1},OB))},_.P(v,null)):null,_.P(_.h,{cond:S,
then:function(){return a?_.P("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.P(a,null)):null},
else:function(){return _.P(_.w7,null,_.P(_.h,{cond:t3,then:function(){return _.P(RO0,{contentAlignment:c,LeadingActionHeader:t,TrailingActionHeader:p,Title:F,isAboveAsset:!!E})}}),E?_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.P(E,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.P("div",{class:_.QZ((kQ["yt-spec-dialog-layout__dialog-layout-container"]=!0,kQ["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1},
kQ["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!F&&!(a&&S())||!!E&&(Z==null?void 0:Z())===0},kQ))},_.P(_.h,{cond:function(){return F&&!a&&(Z==null?void 0:Z())===1},
then:function(){return _.P(RO0,{contentAlignment:c,LeadingActionHeader:t,TrailingActionHeader:p,Title:F,isAboveAsset:!1})}}),d?_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.P(d,null))):null,_.P(_.h,{cond:g,
then:function(){return u?_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.P(u,null)):null}}),r||v9?_.P(noY,{footerClasses:_.QZ((yo["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,yo["yt-spec-dialog-layout__dialog-layout-footer"]=!0,yo["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(w==null?void 0:w())===2},yo["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(w==null?void 0:w())===1},yo)),
PrimaryButton:r,SecondaryButton:v9}):null))},"Wj"),RO0=_.x(function(v){var Q=_.o1(v,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),V=Q.contentAlignment,E=Q.LeadingActionHeader;v=Q.Title;var b=Q.TrailingActionHeader,F=Q.isAboveAsset,t=Q.enableLeadingActionHeader;Q={};return _.P("div",{class:_.QZ((Q["yt-spec-dialog-layout__dialog-header-container"]=!0,Q["yt-spec-dialog-layout__dialog-header"]=!0,Q["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=F,Q["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(V==null?void 0:V())===1&&t()},Q))},_.P(_.h,{cond:function(){return t()},
then:function(){return E?_.P("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.P(E,null)):null}}),v?_.P("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.P(v,null)):null,b?_.P("div",null,_.P(b,null)):null)},"Xj"),noY=_.x(function(v){var Q=v.footerClasses;
var V=v.PrimaryButton;v=v.SecondaryButton;return _.P("div",{class:Q},v?_.P(v,null):null,V?_.P(V,null):null)},"Yj");var qNs=_.x(function(v){var Q=v.data;return _.P("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.P("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.P(_.Pw,{data:function(){return Q().avatar}},{avatarViewModel:_.QO})),_.P("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.tD,{text:function(){return Q().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Zj");var SNh=_.x(function(v){return _.P("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.P(_.tD,{text:function(){return v.data().inviteMessage}})),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.P(_.tD,{text:function(){return v.data().attributedAccountSectionHeaderText}})),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.P(_.Pw,{data:function(){return v.data().accountAvatar}},{avatarViewModel:_.QO}),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.P(_.tD,{text:function(){return v.data().accountName}}),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.P(_.tD,{text:function(){return v.data().handle}}))),_.P(_.Pw,{data:function(){return v.data().trailingButton}},{buttonViewModel:_.D6})),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.P(_.tD,{text:function(){return v.data().termsOfService}})))},"$j");var zOd=_.x(function(v){var Q=v.data;return _.P("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.P("div",{class:"ytAccessConfirmationViewModelContent"},_.P(_.Pw,{data:function(){var V;return(V=Q().avatar)!=null?V:Q().dualAvatar}},{dualAvatarViewModel:function(V){return _.P(_.Zfd,{data:V.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(V){return _.P(_.VO,{data:V.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.P("h2",{class:"ytAccessConfirmationViewModelTitle"},_.P(_.tD,{text:function(){return Q().title}})),_.P(_.tD,{text:function(){return Q().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ak");var Jl8=_.x(function(v){var Q=v.data;var V=void 0;v=_.L(_.K_(function(){var d;return((d=_.y(Q().content,_.b1))==null?void 0:d.defaultSelectedKey)||""}));
var E=v.next().value,b=v.next().value,F,t=function(){b("");var d;(d=V)!=null&&d.store.dispatch(_.U2({type:"RESET_COMMAND_MAP"}))};
_.jg(function(){V=new GR8;window.addEventListener("yt-popup-closed",t)});
_.uH(function(){if(V&&F!==Q().formId&&(V.onInit(Q()),(F=Q().formId)&&E())){var d=V,w={key:E()};w.command&&d.store.dispatch(iYs(F,w.command))}},"c2n8Gf");
_.j_(function(){window.removeEventListener("yt-popup-closed",t)});
var p=function(d,w,A){w.key&&A&&w.key!==E()&&(b(w.key),V&&w.command&&V.store.dispatch(iYs(A,w.command)))},Z=function(){if(_.y(Q().content,_.b1))return!(E==null?0:E())};
return _.P("yt-dialog-view-model",{class:_.QZ("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.P(lNh,{Header:function(){return _.P(_.Pw,{data:function(){return Q().header}},{dialogHeaderViewModel:function(d){return _.P(Mf$,{data:d.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!Q().header},
Content:function(){return _.P(_.Pw,{data:function(){return Q().customContent?Q().customContent:Q().content}},{basicContentViewModel:_.ZSq,
createPlaylistDialogFormViewModel:Als,collaborativePlaylistInviteMessageViewModel:SNh,miniAppScoreChallengeViewModel:fNf,radioButtonGroupViewModel:function(d){var w=d.data;return _.P(_.N8s,{data:w,selectedKey:E,onSelected:p,groupName:function(){return w().formId}})},
selectionListItemFormViewModel:C1s,upsellViewModel:function(d){return _.P(cl5,{data:d.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:qNs,installmentAgreementsViewModel:whq,accessConfirmationViewModel:zOd,listViewModel:function(d){return _.P(_.neA,{data:d.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:D9d})},
Footer:function(){return _.P(_.Pw,{data:function(){return Q().footer}},{panelFooterViewModel:function(d){return _.P(_.zR,{data:d.data,
disablePadding:!0,disablePrimaryButton:Z})},
formPanelFooterViewModel:O3m,formFooterViewModel:function(d){return _.P(_.GOh,{data:d.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!Q().footer}}))},"ck");
Jl8.idomCompat=!0;_.ad(Jl8,"yt-dialog-view-model",{props:{data:_.pJ},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Nah=_.x(function(v){var Q=v.data;return _.P("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.P(_.h,{cond:function(){return Q().title},
then:function(V){return _.P("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.P(_.tD,{text:V,className:"ytPanelHeaderViewModelTitle"}))}}),_.P(_.h,{cond:function(){return Q().subtitle},
then:function(V){return _.P(_.tD,{text:V,className:"ytPanelHeaderViewModelSubtitle"})}}))},"dk"),x95=_.x(function(v){var Q=v.data;
var V=_.uzb(function(){return Q().rendererContext});
v={};return _.P("yt-panel-header-view-model",{class:_.QZ("ytPanelHeaderViewModelHost",(v.ytPanelHeaderViewModelHostHideDivider=function(){return!!Q().shouldHideDivider},v.ytPanelHeaderViewModelHostCompact=function(){return!!Q().subtitle},v)),
"aria-label":function(){var E;return(E=V())==null?void 0:E.label}},_.P(_.h,{cond:function(){return _.Gw(Q().rendererContext)},
then:function(){return _.P(_.PZa,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.f4(Q().rendererContext)}},_.P(Nah,{data:Q}))},
else:function(){return _.P(Nah,{data:Q})}}),_.P("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.P(_.Pw,{data:function(){return Q().trailingButtons}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ek");
x95.idomCompat=!0;var Ba$=_.x(function(v){var Q=_.EP(function(F){var t;if((t=v.skipContentClick)==null?0:t.call(v))return!1;v.onContentWrapperClick(F);return!0}),V,E,b;
return _.P("div",{class:_.QZ("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return v.isAnimating()?"transform: translateY("+v.currentY()+"px);transition: 0.2s":""}},(V=v.header)==null?void 0:V.call(v),_.P("div",{id:v.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.iP({"max-height":(0,_.iQ)(v.maxHeightForContentWrapper)}),"on:scroll":_.EP(function(F){return v.onScroll(F),!1}),
"on:touchmove":_.EP(function(F){return F.stopPropagation(),!1})},_.P("div",{el:_.ud(v.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":Q},(E=v.body)==null?void 0:E.call(v))),(b=v.footer)==null?void 0:b.call(v))},"fk");
Ba$.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var gon=_.x(function(v){var Q=_.Wn(v.leadingLabel),V=_.Wn(v.trailingLabel),E=_.Wn(v.footerButtonType),b=function(){return Q()||V()||v.hasPrimaryButton()||v.hasSecondaryButton()},F={},t=_.QZ("yt-spec-bottom-sheet-layout__primary-button",(F["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return E()===0&&v.hasPrimaryButton()},F["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return E()===1&&v.hasPrimaryButton()},F["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return E()===2&&v.hasPrimaryButton()},F["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return E()===3&&v.hasPrimaryButton()},F));
F={};var p=_.QZ("yt-spec-bottom-sheet-layout__secondary-button",(F["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return E()===1&&v.hasSecondaryButton()},F["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return E()===2&&v.hasSecondaryButton()},F["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return E()===3&&v.hasPrimaryButton()},F));
return _.P(_.h,{cond:v.hasFooterOverride,then:function(){var Z;return _.P(_.w7,null,(Z=v.footerOverride)==null?void 0:Z.call(v))},
else:function(){return _.P(_.h,{cond:b,then:function(){return _.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.P(_.h,{cond:function(){return Q()||V()},
then:function(){var Z={};return _.P("div",{class:_.QZ("yt-spec-bottom-sheet-layout__footer-label-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!v.hasPrimaryButton()},Z))},_.P(_.h,{cond:Q,
then:function(){return _.P("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},Q)}}),_.P(_.h,{cond:V,
then:function(){return _.P("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},V)}}))}}),_.P(_.h,{cond:function(){return v.hasPrimaryButton()||v.hasSecondaryButton()},
then:function(){var Z={};return _.P("div",{class:_.QZ("yt-spec-bottom-sheet-layout__footer-button-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.ikN,Z))},_.P(_.h,{cond:function(){return v.hasSecondaryButton()&&E()!==0},
then:function(){var d;return _.P("div",{class:p},(d=v.secondaryButton)==null?void 0:d.call(v))}}),_.P(_.h,{cond:v.hasPrimaryButton,
then:function(){var d;return _.P("div",{class:t},(d=v.primaryButton)==null?void 0:d.call(v))}}))}}))}})}})},"gk");
gon.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var sG7=_.x(function(v){var Q=_.Wn(v.title),V=_.Wn(v.subtitle);return _.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:v.headerId,"on:touchstart":_.EP(function(E){var b;(b=v.touchstart)==null||b.call(v,E);return!1}),
"on:touchmove":_.EP(function(E){var b;(b=v.touchmove)==null||b.call(v,E);return!1}),
"on:touchend":_.EP(function(E){var b;(b=v.touchend)==null||b.call(v,E);return!1})},_.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.P(_.h,{cond:v.hasHeaderOverride,
then:function(){var E;return _.P(_.w7,null,(E=v.headerOverride)==null?void 0:E.call(v))},
else:function(){var E={};return _.P("div",{class:_.QZ((E["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,E["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=Q,E))},_.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.P(_.h,{cond:Q,then:function(){return _.P(_.w7,null,_.P("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},Q),_.P(_.h,{cond:V,then:function(){return _.P("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
V)}}))}})),_.P(_.h,{cond:function(){return Q()&&v.hasActionHeader()},
then:function(){var b;return _.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(b=v.actionHeader)==null?void 0:b.call(v))}}))}}))},"hk");
sG7.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.x(function(v){function Q(t3){if(!a&&typeof MutationObserver!=="undefined"){var h3={childList:!0};"MutationObserver"in window&&(a=new MutationObserver(V.bind(void 0,t3)),a.observe(t3,h3))}}
function V(t3){typeof a!=="undefined"&&(g["content-wrapper"]===void 0&&(g["content-wrapper"]=t3.children[0].clientHeight),C(g["content-wrapper"]),c()>R()||l(c()))}
function E(){T(window.innerHeight);c()>R()||l(c());u.isFullScreen[0]()&&c()>R()?r().dispatch("Snap To Full Screen",{maxHeight:S()}):r().dispatch("Snap To Neutral Position",{maxHeight:R()})}
function b(t3){document.body.style.overscrollBehavior="none";t3.preventDefault();r().dispatch("Touch Start",{event:t3})}
function F(t3){t3.preventDefault();r().dispatch("Touch Move",{event:t3,contentScrollable:c()>R(),fullContentWrapperHeight:S(),contentWrapperHeight:R(),heightMap:g,contentWrapperId:"content-wrapper",header:T2Y(v),footer:T2Y(v),headerDivHeight:g["bottom-sheet-header"],footerDivHeight:g["bottom-sheet-footer"]})}
function t(){document.body.style.overscrollBehavior="";u.isFullScreen[0]()?u.currentY[0]()>=60?r().dispatch("Snap To Neutral Position",{maxHeight:R()}):r().dispatch("Snap To Full Screen",{maxHeight:S()}):u.currentY[0]()>=60?p():u.currentY[0]()<=-60&&c()>R()?r().dispatch("Snap To Full Screen",{maxHeight:S()}):r().dispatch("Snap To Neutral Position",{maxHeight:R()})}
function p(){r().dispatch("Close Sheet",{clientHeight:k(),maxHeight:0});setTimeout(function(){km5()},250)}
var Z=_.Ze("div"),d=_.Ze("div"),w=_.L(_.Ge(window.innerHeight,void 0,"CmOsU")),A=w.next().value;w=w.next().value;var k=A,T=w;w=_.L(_.Ge(0,void 0,"p0Flhb"));A=w.next().value;w=w.next().value;var c=A,C=w;w=_.L(_.K_(function(){var t3=T2Y(v);return.6*k()-h55(t3)-w7Y(t3)}));
A=w.next().value;w=w.next().value;var R=A,l=w,S=function(){var t3=T2Y(v),h3=k(),OB=g["bottom-sheet-header"],kQ=g["bottom-sheet-footer"];return h3-(t3.hasHeaderFn&&OB!==void 0?OB:h55(t3))-(t3.hasFooterFn&&kQ!==void 0?kQ:w7Y(t3))-24-24},a=null,g={},u={initialY:_.Ge(0,void 0,"sxdESd"),
currentY:_.Ge(0,void 0,"GZzqeb"),isAnimating:_.Ge(!1,void 0,"vJBupc"),isFullScreen:_.Ge(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.K_(R)},r=function(){var t3=null;return function(){if(!t3){var h3={initialY:u.initialY[0](),currentY:u.currentY[0](),isAnimating:u.isAnimating[0](),isFullScreen:u.isFullScreen[0](),maxHeightForContentWrapper:u.maxHeightForContentWrapper[0]()};t3=AZs(h3)}return t3}}();
_.jg(function(){window.addEventListener("resize",E);r().subscribe(function(t3){u.initialY[1](t3.initialY);u.currentY[1](t3.currentY);u.isAnimating[1](t3.isAnimating);u.isFullScreen[1](t3.isFullScreen);u.maxHeightForContentWrapper[1](t3.maxHeightForContentWrapper)});
requestAnimationFrame(function(){Z.value&&(g["bottom-sheet-header"]=Z.value.clientHeight);d.value&&(g["bottom-sheet-footer"]=d.value.clientHeight)})});
_.j_(function(){window.removeEventListener("resize",E);a&&(a.disconnect(),a=null)});
var v9=_.QZ({"bottom-sheet-content-without-icon":function(){var t3;return!((t3=v.shouldShowIcons)==null?0:t3.call(v))}});
return _.P("bottom-sheet-layout",null,_.P(Ba$,{contentWrapperId:"content-wrapper",isAnimating:function(){return u.isAnimating[0]()},
currentY:function(){return u.currentY[0]()},
maxHeightForContentWrapper:function(){return u.maxHeightForContentWrapper[0]()},
shouldShowIcons:v.shouldShowIcons,skipContentClick:v.skipContentClick,onScroll:function(){var t3=document.getElementById("bottom-sheet-header"),h3=document.getElementById("content-wrapper");if(t3&&h3){var OB={};OB=(OB["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,OB["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,OB);t3.className=h3.scrollTop>1?_.Yl(OB):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:km5,contentWrapperEl:function(t3){Q(t3);requestAnimationFrame(function(){V(t3)})},
header:function(){return _.P("div",{el:Z},_.P(sG7,{touchstart:b,touchmove:F,touchend:t,title:v.headerTitle,subtitle:v.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:v.headerFn,hasHeaderOverride:v.hasHeaderFn,actionHeader:v.headerActionHeader,hasActionHeader:v.hasHeaderActionHeader}))},
footer:function(){return _.P("div",{el:d},_.P(gon,{footerButtonType:v.footerButtonType,leadingLabel:v.footerLeadingLabel,trailingLabel:v.footerTrailingLabel,primaryButton:v.footerPrimaryButton,hasPrimaryButton:v.hasFooterPrimaryButton,secondaryButton:v.footerSecondaryButton,hasSecondaryButton:v.hasFooterSecondaryButton,footerOverride:v.footerFn,hasFooterOverride:v.hasFooterFn}))},
body:function(){return _.P(_.h,{cond:v.hasContentFn,then:function(){var t3;return _.P("div",{class:v9},(t3=v.contentFn)==null?void 0:t3.call(v))}})}}))},"ik").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var uqj=_.x(function(v){var Q=_.ht().resolve(_.Iu);return _.P("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.EP(function(){return void Q.closeSheet()})},_.P(_.h,{cond:function(){return!!v.header},
then:function(){return _.P("div",{class:"ytContextualSheetLayoutHeaderContainer"},v.header())}}),_.P(_.h,{cond:function(){return!!v.content},
then:function(){return _.P("div",{class:"ytContextualSheetLayoutContentContainer"},v.content())}}),_.P(_.h,{cond:function(){return!!v.footer},
then:function(){return _.P("div",{class:"ytContextualSheetLayoutFooterContainer"},v.footer())}}))},"jk");
uqj.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var jGs=_.x(function(v){var Q=v.data;var V=_.ht().resolve(_.At),E=_.Ze("yt-sheet-view-model",function(b){if(_.Y("web_focus_first_element_sheet")||!_.Y("sheet_focus_first_killswitch"))return b.addEventListener("focus",function(){QdI(b)}),function(){b.removeEventListener("focus",function(){QdI(b)})}});
v={};return _.P("yt-sheet-view-model",{"on:mousedown":_.EP(function(b){_.Y("sheet_focus_first_killswitch")||b.currentTarget!==b.target&&b.preventDefault()}),
"on:focus":_.EP(function(){_.Y("sheet_focus_first_killswitch")||QdI(E.value)}),
"on:mouseleave":_.EP(function(){var b,F=Q==null?void 0:(b=Q())==null?void 0:b.rendererContext,t;(b=(t=_.y(F,_.MJ))==null?void 0:t.onHoverEnd)&&V.resolveCommand(b)}),
class:_.QZ("ytSheetViewModelHost",(v.ytSheetViewModelContextual=!0,v.ytSheetViewModelDisableBackdropFilter=_.Y("web_disable_backdrop_filter"),v)),el:E,tabindex:-1},_.P(_.h,{cond:Q,then:function(b){return _.P(uqj,{header:function(){return _.P(_.Pw,{data:function(){return b().header}},{panelHeaderViewModel:x95})},
content:function(){return _.P(_.Pw,{data:function(){return b().content}},{listViewModel:function(F){return _.P(_.neA,{data:F.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:cl5,miniAppScoreChallengeViewModel:fNf})},
footer:function(){return _.P(_.Pw,{data:function(){return b().footer}},{panelFooterViewModel:_.zR})}})}}))},"kk");
jGs.idomCompat=!0;_.ad(jGs,"yt-sheet-view-model",{props:{data:_.pJ}});var ooh=_.x(function(v){var Q=function(){var V;return(V=v.data().enableDebuggingFeatures)!=null?V:!1};
return _.P("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.P(_.xb,{each:function(){var V;return(V=v.data().stickers)!=null?V:[]}},function(V){return _.P(WP8,{data:function(){return V},
debugMode:Q})}))},"lk"),WP8=_.x(function(v){var Q=_.o1(v,{debugMode:!1}).debugMode,V=_.Wn(function(){var Z;
return(Z=v.data().region)==null?void 0:Z.w},0),E=_.Wn(function(){var Z;
return(Z=v.data().region)==null?void 0:Z.h},0),b=_.Wn(function(){var Z;
return(Z=v.data().region)==null?void 0:Z.x},0),F=_.Wn(function(){var Z;
return(Z=v.data().region)==null?void 0:Z.y},0),t=_.EP(function(){var Z=v.data().onTap;
Z&&_.nx(Z)}),p={};
return _.P("div",{class:_.QZ("ytStoriesStickerLayerViewModelSticker",(p.ytStoriesStickerLayerViewModelDebugMode=Q,p)),style:_.iP({width:function(){return 100*V()+"%"},
height:function(){return 100*E()+"%"},
left:function(){return 100*b()+"%"},
top:function(){return 100*F()+"%"},
"flex-direction":function(){return Yc0(v.data().flexDirection)},
"justify-content":function(){return yZn(v.data().justifyContent)},
"align-items":function(){return cZI(v.data().alignItems)}}),
"on:click":t},_.P(_.Pw,{data:function(){return v.data().button||v.data().toggleButton}},{buttonViewModel:function(Z){return _.P(_.D6,{data:Z.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(Z){return _.P(_.a5,{data:Z.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"mk");var aNs=_.x(function(v){var Q=function(){return v.data()},V={},E=_.L(_.Ge(!1,void 0,"SegA3d")),b=E.next().value,F=E.next().value,t=_.Wn(function(){return Q().backgroundColor},0);
E=_.Wn(function(){return Q().actionButtons},[]);
var p=_.Wn(function(){return Q().stickerLayer},{}),Z=function(){var w,A;
return{animationRef:V,animationConfig:{autoplay:!1,loop:!1,path:(A=(w=Q().foregroundAnimation)==null?void 0:w.url)!=null?A:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){F(!0)},
complete:function(){v.navigateToNextItemOnLottieComplete()}}}},d=function(){var w,A,k,T,c,C,R,l;
return{animationConfig:{autoplay:(C=(w=Q().backgroundAnimation)==null?void 0:(A=w.settings)==null?void 0:A.autoplay)!=null?C:!1,loop:(R=(k=Q().backgroundAnimation)==null?void 0:(T=k.settings)==null?void 0:T.loop)!=null?R:!1,path:(l=(c=Q().backgroundAnimation)==null?void 0:c.url)!=null?l:"",name:"stories_item_background_animation"}}};
_.uH(function(){if(v.isVisible()&&b()){var w;(w=V.lottieEl)==null||w.play();v.animationRef()&&(v.animationRef().lottieEl=V.lottieEl)}else{var A;(A=V.lottieEl)==null||A.stop()}},"MxM2wb");
return _.P("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.iP({"background-color":function(){return _.CF(t())+";"}})},_.P("div",{class:"ytStoriesItemViewModelAssetContent"},_.P(_.h,{cond:function(){return!!Q().backgroundAnimation},
then:function(){return _.P(_.z9,{data:d,animationName:function(){return d().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.P(_.h,{cond:function(){return!!Q().backgroundImage},
then:function(){return _.P(_.gE,{data:function(){return Q().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.P(_.h,{cond:function(){return!!Q().foregroundAnimation},
then:function(){return _.P(_.z9,{data:Z,animationName:function(){return Z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.P(_.h,{cond:function(){return!!Q().foregroundImage},
then:function(){return _.P(_.gE,{data:function(){return Q().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.P("div",{class:"ytStoriesItemViewModelTopShadow"}),_.P(_.Pw,{data:function(){return p()}},{storiesStickerLayerViewModel:ooh})),_.P("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.iP({"background-color":function(){return _.CF(t())}})},_.P("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.P(_.xb,{each:E},function(w){return _.P(XhI,{data:function(){return w},
pauseAutoNavigation:v.pauseAutoNavigation})}))))},"ok"),rlf={style:"overlay",
type:"outline"},XhI=_.x(function(v){var Q={};return _.P("div",{class:_.QZ("ytStoriesItemViewModelActionButton",(Q.ytStoriesItemViewModelStretchedActionButton=function(){return v.data().size==="STORIES_BUTTON_SIZE_STRETCH"},Q)),
"on:click":_.EP(v.pauseAutoNavigation)},_.P(_.Pw,{data:function(){return v.data().button}},{buttonViewModel:function(V){return _.P(_.D6,{data:V.data,
buttonOverrides:rlf})}}))},"pk");var $95={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.ad(_.x(function(v){var Q=function(){var kQ;return(kQ=v.data().startIndex)!=null?kQ:0},V=_.L(_.K_(Q)),E=V.next().value,b=V.next().value;
V=_.L(_.Ge(!1,void 0,"sjy7s"));var F=V.next().value,t=V.next().value,p=function(){var kQ;return(kQ=v.data().storyItems)!=null?kQ:[]},Z={},d=_.Ze("yt-stories-viewer-view-model"),w=function(){return v.data().dismissButton},A=function(){var kQ;
return _.MQ((kQ=_.y(w(),_.pH))==null?void 0:kQ.onTap)},k=_.Ze("div"),T,c,C=!1,R=function(){var kQ;
(kQ=T)==null||kQ.cancel();T=l(E()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});T.onfinish=function(){var yo=_.y(p()[E()],rk5),xQ,lb;yo!=null&&yo.foregroundAnimation&&((yo==null?0:(xQ=yo.foregroundAnimation)==null?0:xQ.url)||(yo==null?0:(lb=yo.foregroundAnimation)==null?0:lb.payload))||(E()!==p().length-1?(b(E()+1),R()):A()&&_.Oo(A()))}},l=function(kQ){return k.value.children[kQ].children[0]},S=function(){for(var kQ=0;kQ<E();kQ++)l(kQ).style.transform=
"scaleX(1)"},a=function(){C||(F()?t(!1):(E()===p().length-1&&A()&&_.Oo(A()),l(E()).style.transform="scaleX(1)",E()!==p().length-1&&(b(E()+1),R())))},g=function(){C||(F()?t(!1):(l(E()).style.transform="scaleX(0)",E()!==0&&b(E()-1),R()))},u=function(){t(!0)},r=function(){l(E()).style.transform="scaleX(1)";
E()!==p().length-1?(b(E()+1),R()):A()&&_.Oo(A())};
V=function(){C=!1;c=setTimeout(function(){t(!0);C=!0},300)};
var v9=function(){clearTimeout(c);C&&F()&&t(!1)};
_.uH(function(){if(F()){var kQ;(kQ=T)==null||kQ.pause();var yo;(yo=Z.lottieEl)==null||yo.pause()}else{var xQ;(xQ=T)==null||xQ.play();var lb;(lb=Z.lottieEl)==null||lb.play()}},"vAvZob");
_.uH(function(){S();E()===Q()&&R()},"uSlfE");
var t3=function(kQ){kQ.key==="ArrowLeft"?g():kQ.key==="ArrowRight"&&a()},h3=function(kQ){if(kQ.target===d.value){(kQ=A())&&_.Oo(kQ);
clearTimeout(c);var yo;(yo=T)==null||yo.cancel();window.removeEventListener("keydown",t3);window.removeEventListener("yt-popup-closed",h3)}},OB=function(kQ){kQ.target===d.value&&(window.addEventListener("keydown",t3),window.addEventListener("yt-popup-closed",h3))};
_.jg(function(){S();R();window.addEventListener("yt-popup-opened",OB)});
return _.P("yt-stories-viewer-view-model",{el:d,class:_.QZ("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.P("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.P("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.EP(g),"on:mousedown":_.EP(V),"on:mouseup":_.EP(v9),"on:mouseleave":_.EP(v9)}),_.P("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.EP(a),"on:mousedown":_.EP(V),"on:mouseup":_.EP(v9),"on:mouseleave":_.EP(v9)})),
_.P("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.P(_.Pw,{data:p},{storiesItemViewModel:function(kQ,yo){var xQ=kQ.data;return _.P(_.h,{cond:function(){return Math.abs(yo()-E())<=1},
then:function(){var lb={};return _.P("div",{class:_.QZ("ytStoriesViewerViewModelStoryItem",(lb.ytStoriesViewerViewModelActiveStoryItem=function(){return yo()===E()},lb))},_.P(aNs,{data:xQ,
pauseAutoNavigation:u,navigateToNextItemOnLottieComplete:r,isVisible:function(){return yo()===E()},
animationRef:Z}))}})}})),_.P("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:k},_.P(_.xb,{each:p},function(){return _.P("div",{class:"ytStoriesViewerViewModelProgressBar"},_.P("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.P("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.P(_.gE,{data:$95,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.P("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.P(_.Pw,{data:function(){return v.data().muteButton}},{toggleButtonViewModel:function(kQ){return _.P(_.a5,{data:kQ.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.P(_.Pw,{data:w},{buttonViewModel:function(kQ){return _.P(_.D6,{data:kQ.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"sk"),"yt-stories-viewer-view-model",{props:{data:_.pJ}});_.ad(_.x(function(v){var Q=v.data;var V=_.Ze("yt-gen-ai-feedback-form-view-model"),E=[];return _.P("yt-gen-ai-feedback-form-view-model",{el:V,class:"ytGenAiFeedbackFormViewModelHost"},_.P(_.tD,{text:function(){return Q().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.P("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.P(_.Pw,{data:function(){return Q().feedbackChips}},{toggleButtonViewModel:function(b){var F=b.data;
return _.P(_.a5,{data:F,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(t){var p=F();p=_.y(p,_.Zq);p=_.y(p==null?void 0:p.defaultButtonViewModel,_.pH).trackingParams;t?E.push(p):(t=E.indexOf(p),t>-1&&E.splice(t,1))}})}})),_.P(_.tD,{text:function(){return Q().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.P("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.P(_.Pw,{data:function(){return Q().submitButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){fyq(V.value,E,Q().uniqueId)}})}}),_.P(_.Pw,{data:function(){return Q().moreFeedbackButton}},{buttonViewModel:function(b){return _.P(_.D6,{data:b.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"tk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.pJ},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var l4=function(){return _.z.apply(this,arguments)||this};
_.f(l4,_.z);l4.prototype.created=function(){iMh(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(meq);var v=_.ht().resolve(_.DA0);v&&(v.container=this.ytPopupContainerBehavior);if(v=_.ht().resolve(_.Iu))v.container=this.ytPopupContainerBehavior;if(v=_.ht().resolve(_.Hk)){var Q=this.ytPopupContainerBehavior;v.containerWasInjected?_.Iy(Error("qj")):v.container=Q}};
l4.prototype.ensurePopupBelowPlayer=function(v,Q){var V=_.ht().resolve(_.d$(_.oJ));if(!V||!V.isOnWatch()||!_.aJ())return!1;V=V.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Zl().height>V+this.getPopupHeight(v,Q)?(v.style.top="auto",v.style.bottom="0px"):(v.style.top=V+"px",v.style.bottom="auto");return!0};
l4.prototype.getPopupHeight=function(v,Q){Q&&(v.cachedPopupHeight=0);if(!v.cachedPopupHeight){Q=0;var V=v.clientHeight,E=window.getComputedStyle(v);Q+=parseInt(E.marginTop,10);Q+=parseInt(E.marginBottom,10);v.cachedPopupHeight=V+Q}return v.cachedPopupHeight};
l4.prototype.getElement=function(v){return document.createElement(v)};
_.W([_.M(qzn.YtPopupContainerBehavior),_.X("design:type",Object)],l4.prototype,"ytPopupContainerBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],l4.prototype,"ytComponentBehavior",void 0);_.W([_.J({disableElementRegistration:!0,is:"ytd-popup-container"})],l4);
_.B(l4,"ytd-popup-container",function(){if(fS0!==void 0)return fS0;var v=document.createElement("template");_.G(v,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);return fS0=v},{mode:1});var INI;var H38={};H38.YtLogYpcFlowCommandsBehavior=[_.SI.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(v){_.y(v,Z0d)&&(v=_.y(v,Z0d))&&(v.serializedTransactionFlowLoggingParams?_.YLo(v.serializedTransactionFlowLoggingParams):v.serializedYpcCancelFlowLoggingParams?(v=v.serializedYpcCancelFlowLoggingParams)&&_.zB("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",v):v.serializedYpcResumeFlowLoggingParams?(v=v.serializedYpcResumeFlowLoggingParams)&&_.zB("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",v):v.serializedYpcPauseFlowLoggingParams?(v=v.serializedYpcPauseFlowLoggingParams)&&
_.zB("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",v):v.serializedYpcRefundFlowLoggingParams?(v=v.serializedYpcRefundFlowLoggingParams)&&l1f("YPC_EVENT_TYPE_START",v):v.serializedYpcDeactivateFlowLoggingParams?(v=v.serializedYpcDeactivateFlowLoggingParams)&&_.zB("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",v):v.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(v=v.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.zB("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",v))},
handleLogYpcFlowDismiss_:function(v){_.y(v,eP$)&&(v=_.y(v,eP$),v.serializedTransactionFlowLoggingParams?_.ykG(v.serializedTransactionFlowLoggingParams):v.serializedYpcCancelFlowLoggingParams?(v=v.serializedYpcCancelFlowLoggingParams)&&_.zB("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",v):v.serializedYpcResumeFlowLoggingParams?(v=v.serializedYpcResumeFlowLoggingParams)&&_.zB("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",v):v.serializedYpcPauseFlowLoggingParams?(v=
v.serializedYpcPauseFlowLoggingParams)&&_.zB("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",v):v.serializedYpcRefundFlowLoggingParams&&(v=v.serializedYpcRefundFlowLoggingParams)&&l1f("YPC_EVENT_TYPE_CANCEL",v))}}];var m9h={};m9h.YtCancelRecurrenceBehavior=[_.VL.YtComponentBehavior,_.E6S,{attached:function(){var v=this;oxn(this,function(Q,V){return v.ypcCancelRecurrenceHandler(Q,V)})},
ypcCancelRecurrenceHandler:function(v,Q){var V=this;if(!Q||!Q.ypcCancelRecurrenceEndpoint)return!1;if(!Q.ypcCancelRecurrenceEndpoint.params)return _.Ui(Error("Sl")),!0;_.qM(this.hostElement);var E=_.Js.instance,b=_.ht().resolve(_.d$(_.hn));E&&_.NC(E,Q)?_.xW(E,Q).then(function(F){V.ypcCancelRecurrenceSuccess_(v,Q,{data:F})},function(F){V.ypcCancelRecurrenceFailure_(v,Q,F)}).thenCatch(function(){_.Ui(Error("Tl"))}):b?b.requestDataForServiceEndpoint(Q).then(function(F){V.ypcCancelRecurrenceSuccess_(v,
Q,F)},function(F){V.ypcCancelRecurrenceFailure_(v,Q,F)}).thenCatch(function(){_.Ui(Error("Tl"))}):_.Ui(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(v,Q,V){_.Si(this.hostElement);V.data||(V={data:V});V.data&&V.data.actions&&_.Qk(this.hostElement,V.data.actions,this.hostElement);V.data.messageRenderer?SPm(Q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(Q=Q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.zB("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",Q);_.Hj(v,"yt-service-request-completed",V)},
ypcCancelRecurrenceFailure_:function(v,Q,V){_.Si(this.hostElement);SPm(Q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Hj(v,"yt-service-request-error",{error:V,params:[v,Q]})}}];var U9I=function(v,Q){_.Vo.call(this,Q)};
_.f(U9I,ycf);var vTs={};vTs.YtCompleteTransactionBehavior=[_.VL.YtComponentBehavior,_.E6S,{attached:function(){var v=this;oxn(this,function(Q,V){return v.ypcCompleteTransactionHandler(Q,V)})},
completeTransaction:function(v,Q){var V=this;Q={payments_payload:window.btoa(Q.integratorData),buybucket_params:v.data.buybucketParams,offer_params:v.data.offerParams};var E=_.ht().resolve(_.hn),b=v.data.completeTransactionEndpoint,F=this.get("ypcCompleteTransactionEndpoint.actions",b);F&&_.Qk(this.hostElement,F,this.hostElement);return(F=_.Js.instance)&&_.NC(F,b)?_.xW(F,b,Q).then(function(t){return!t||(t==null?0:t.error)?(t=V.get("data.serializedTransactionFlowLoggingParams",v),_.kD(new el("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
t))):{data:t}}).then(function(t){return V.handleCompleteTransactionSuccess_(t,v)},function(){return V.handleCompleteTransactionFailure_(v)}):E.requestDataForServiceEndpoint(b,Q).then(function(t){return V.handleCompleteTransactionSuccess_(t,v)},function(){return V.handleCompleteTransactionFailure_(v)})},
handleCompleteTransactionSuccess_:function(v,Q){v.data||(v={data:v});if(v.data.messageRenderer)return _.kD(new U9I(v.data.messageRenderer));if(v.data.trackingParams){var V=_.Mo(),E=_.CC();V&&E&&_.Np(V,E,_.dE(v.data.trackingParams))}Q=this.get("data.serializedTransactionFlowLoggingParams",Q);qP$(Q);return _.Vk(v)},
handleCompleteTransactionFailure_:function(v){v=this.get("data.serializedTransactionFlowLoggingParams",v);_.BH("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",v);return _.kD(new el("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",v))},
ypcCompleteTransactionHandler:function(v,Q){var V=this;if(!Q.ypcCompleteTransactionEndpoint)return!1;if(!Q.ypcCompleteTransactionEndpoint.transactionParams)return _.Ui(Error("Vl")),!0;Q.ypcCompleteTransactionEndpoint&&Q.ypcCompleteTransactionEndpoint.gtmData&&_.oZ(Q.ypcCompleteTransactionEndpoint.gtmData);var E=_.ht().resolve(_.d$(_.hn));if(E){_.qM(this.hostElement);var b=_.Js.instance;b&&_.NC(b,Q)?_.xW(b,Q).then(function(F){return!F||(F==null?0:F.error)?(F=V.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
Q),_.kD(new el("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",F))):{data:F}}).then(function(F){_.Hj(v,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(Q,F)},function(){return V.ypcCompleteTransactionFailure_(Q)}):E.requestDataForServiceEndpoint(Q).then(function(F){_.Hj(v,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(Q,F)},function(){return V.ypcCompleteTransactionFailure_(Q)})}return!0},
ypcCompleteTransactionSuccess_:function(v,Q){_.Si(this.hostElement);Q.data||(Q={data:Q});_.mb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);Q.data.messageRenderer||Q.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(v):(_.oZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",v));Q.data.actions&&(v=dqj(Q.data.actions),Q=hLs(Q.data.actions),v.length&&_.vp(this.hostElement,
v),Q.length&&_.Qk(this.hostElement,Q,this.hostElement))},
ypcCompleteTransactionFailure_:function(v){_.Si(this.hostElement);_.mb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",v,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(v,Q,V){if(Q=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",Q))Q={serializedTransactionFlowLoggingParams:Q},V&&(Q.errorType=V),_.X0(v,Q),_.ay()}}];var Q6I={};Q6I.YtEndpointHandlerWithYpcBehavior=[_.E6S,_.SI.YtActionHandlerBehavior,[{openWalletDialog:function(v,Q,V,E,b,F,t){var p=this,Z=_.B_();Q=Q.replace(/-/g,"+").replace(/_/g,"/");var d=_.eP().get("hl");_.jiZ(_.XQ(_.sp),Q,Z.resolve,b,function(w){F&&F();Z.reject(w)},d,function(w){return p.onServerBackendAnalyticEvent_(v,V,w)},this.onDialogClose_.bind(this),E,t);
return Z.promise},
openFixFlowDialog:function(v,Q,V,E){v=v.replace(/-/g,"+").replace(/_/g,"/");_.XQ(_.sp).openFixFlowDialog(v,Q,V,E)},
onDialogClose_:function(){_.mb(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(v,Q,V){_.Hj(v,"yt-commerce-action-init-done");Q&&_.vp(this.hostElement,[Q,{backend_analytics:V}])}}],
_.l6.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(v,Q){v=this.get("data.nativeFlowEndpoint",Q);Q=this.get("data.fallbackEndpoint",Q);v?_.vp(this.hostElement,[v]):Q&&_.Hj(this.hostElement,"yt-navigate",{endpoint:Q})}}],
m9h.YtCancelRecurrenceBehavior,vTs.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var v=this;oxn(this,function(Q,V,E){return v.handleYPCEndpoint(Q,V,E)});
this.ypcRegisterActionMapJobId_=_.go(_.XT,function(){v.registerActionMap(v.buyFlowActionMap_)})},
detached:function(){var v=this;_.XT.cancelJob(this.ypcRegisterActionMapJobId_);_.go(_.XT,function(){v.unregisterActionMap(v.buyFlowActionMap_)})},
handleYPCEndpoint:function(v,Q,V){var E=Q.ypcGetCartEndpoint;if(E){_.Ct("commerce_transaction");var b=E.gtmId;b&&_.WO(b);(E=E.gtmData)&&_.oZ(E)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",Q)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(v,Q),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",Q)!=null?(this.handleYPCFixInstrumentEndpoint_(v,Q),!0):Q.ypcPauseSubscriptionCommand?(qcq(this.hostElement,v,Q,V),
!0):Q.ypcResumeSubscriptionCommand?(JZY(this.hostElement,v,Q),!0):Q.getPaymentInstrumentsParamsCommand?(R55(this.hostElement,v,Q),!0):Q.ypcHandleTransactionEndpoint?(Oo8(this.hostElement,v,Q,V),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(v,Q){var V=this;_.Mp("ttcr",void 0,"commerce_transaction");Q=Q.ypcGetCartEndpoint;var E=Q.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,b=E.encryptedPurchaseParams,F=E.serializedTransactionFlowLoggingParams,t=E.serializedPaymentsClientParams,p=this.createGetCartResponseFromParams_(E,Q.offerParams,F);this.changeButtonState(v,!0);_.qV(this.openWalletDialog(v,b,E.ypcLogWalletAnalyticDataEndpoint,F,function(){V.changeButtonState(v,!1)},function(){V.changeButtonState(v,
!1)},t).then(function(Z){return V.handleBuyFlowCompleteCallback_(v,p,Z)},function(){return V.handleOnLoadError(p)}).then(function(Z){return void V.handlePostPurchaseSuccess_(v,p,Z)},function(Z){return void V.handlePostPurchaseError_(Z)}),function(){V.changeButtonState(v,!1);
v instanceof Element&&_.Hj(v,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(v,Q,V){var E=v.completeTransactionEndpoint,b=v.handleTransactionEndpoint;Q={data:{offerParams:window.btoa(Q),serializedTransactionFlowLoggingParams:V}};b?Q.data.handleTransactionEndpoint=b:Q.data.completeTransactionEndpoint=E;v.onCartDismissCommand&&(Q.data.onCartDismissCommand=v.onCartDismissCommand);return Q},
onGetCartServiceRequestCompleted_:function(v,Q){var V=this,E=v.target;if(Q&&Q.data&&Q.data.messageRenderer)_.Si(this.hostElement),this.handleMessageRenderer_(Q.data.messageRenderer),this.changeButtonState(E,!1);else{var b=this.get("data.encryptedPurchaseParams",Q),F=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",Q),t=this.get("data.ypcLogWalletAnalyticDataEndpoint",Q),p=this.get("data.serializedPaymentsClientParams",Q),Z=this.getLoggingParams_(Q);if(Z||b||F)v.stopPropagation(),_.Mp("ttcr",
void 0,"commerce_transaction"),b||_.Si(this.hostElement),this.changeButtonState(E,!1),F?_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.r7("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:F}}},this]):b&&(this.changeButtonState(E,!0),v=null,v=this.openWalletDialog(E,b,t,Z,function(){_.Si(V.hostElement);V.changeButtonState(E,!1)},function(){_.Si(V.hostElement);
V.changeButtonState(E,!1)},p),_.qV(v.then(function(d){return V.handleBuyFlowCompleteCallback_(E,Q,d)},function(){return V.handleOnLoadError(Q)}).then(function(d){return V.handlePostPurchaseSuccess_(E,Q,d)},function(d){return V.handlePostPurchaseError_(d)}),function(){V.changeButtonState(E,!1);
_.Hj(E,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(v,Q){Q&&Q.endpoint&&Q.endpoint.ypcGetCartEndpoint&&!Q.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",Q.endpoint.ypcGetCartEndpoint)&&_.Qk(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",Q.endpoint.ypcGetCartEndpoint)],v.target),_.qM(this.hostElement),this.changeButtonState(v.target,!0))},
onServiceRequestError_:function(v,Q){if(Q&&Q.params&&Q.params.length){Q=_.L(Q.params);for(var V=Q.next();!V.done;V=Q.next())if((V=V.value)&&V.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)&&_.Qk(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)],v.target);_.Si(this.hostElement);this.changeButtonState(v.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(v,Q,V){var E=V.integratorData;return E==null||E===""||V.error!=null?(E=this.getLoggingParams_(Q),String(V.error)==="-1"?(Q.data.onCartDismissCommand&&_.Qk(this.hostElement,[Q.data.onCartDismissCommand],v),_.kD(new el("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",E,!0))):_.kD(new el("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",E))):Q.data.handleTransactionEndpoint?Dc0(this.hostElement,Q.data.handleTransactionEndpoint,{payments_payload:E,funds_guarantee_callback_client_data:V.integratorClientCallbackData}):
this.completeTransaction(Q,V)},
handlePostPurchaseSuccess_:function(v,Q,V){Q=V.data;var E=!1,b,F;if(Q&&((b=Q.command)==null?0:(F=b.commandExecutorCommand)==null?0:F.commands)){var t,p;b=(t=Q.command)==null?void 0:(p=t.commandExecutorCommand)==null?void 0:p.commands;for(t=0;t<b.length;t++)if(_.y(b[t],_.EOa)){E=!0;break}}E||(Q&&Q.gtmDatas&&Q.gtmDatas.length?_.oZ(Q.gtmDatas[0]):_.oZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));V.data&&V.data.actions&&(Q=dqj(V.data.actions),V=hLs(V.data.actions),Q.length&&
_.vp(this.hostElement,Q),V.length&&_.Qk(this.hostElement,V,v))},
handlePostPurchaseError_:function(v){v&&v.payload&&v.payload.isUserDismiss||_.ro(Error("Xl"))},
handleOnLoadError:function(v){v=this.getLoggingParams_(v);return _.kD(new el("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",v))},
getLoggingParams_:function(v){return this.get("data.serializedTransactionFlowLoggingParams",v)},
handleMessageRenderer_:function(v){var Q=_.oS(v,"renderer"),V=_.r7("openPopupConfig");Q==="confirmDialogRenderer"&&V&&_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:V.popupTypeMap[Q],popup:v}},this])},
handleYPCFixInstrumentEndpoint_:function(v,Q){var V=this,E=Q.ypcFixInstrumentEndpoint;Q=E.encryptedFixInstrumentParameters;this.logFixFopEvent_(E,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(v,!0);this.openFixFlowDialog(Q,function(b,F){V.onFixFlowCompleteCallback_(E,b,F)},function(){return V.changeButtonState(v,!1)},function(){V.changeButtonState(v,!1);
V.logFixFopEvent_(E,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(v,Q,V){var E=_.Q9("payments.business.integration.scenario.FixInstrument");if(Q==E.IntegratorCallbackType.ON_COMPLETE){Q="FIX_FOP_EVENT_TYPE_CANCEL";var b=null;V.error!=null?V.error!=E.OnCompleteCallbackError.USER_CANCELLED&&(_.Qk(this.hostElement,[v.errorAction],this.hostElement),Q="FIX_FOP_EVENT_TYPE_FAILURE",b="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Qk(this.hostElement,[v.successAction],this.hostElement),Q="FIX_FOP_EVENT_TYPE_SUCCESS");_.Qk(this.hostElement,[v.onFinishAction],
this.hostElement);this.logFixFopEvent_(v,Q,b)}},
logFixFopEvent_:function(v,Q,V){(v=v.serializedFixFopLoggingParams)?(Q={eventType:Q,serializedFixFopLoggingParams:v},V!=null&&(Q.errorType=V),_.X0("fixFopFlow",Q),_.ay()):_.ro(Error("Yl"))},
changeButtonState:function(v,Q){_.Y("enable_ypc_spinners")&&v&&(v.is==="yt-button-renderer"||v.is==="ytd-button-renderer")&&(v.disabled=Q)}}];var VWh=function(v){this.JSC$32916_clientRoot=v;this.feedbackCollectorActionMap={"yt-help-dialog-requested":xch,"yt-feedback-dialog-requested":N2I,"yt-signal-action-help":B25,"yt-signal-action-send-feedback":g$I,"yt-send-feedback-action":uZh,"yt-user-feedback-endpoint":jMn};_.iM(_.KW.getInstance(),this.feedbackCollectorActionMap,this.JSC$32916_clientRoot)},ET5;var beY=function(v){this.JSC$32921_clientRoot=v;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Ww0.bind(null,this.JSC$32921_clientRoot),"yt-signal-action-delete-all-downloads":X7I,"yt-signal-action-delete-download":ays,"yt-signal-action-delete-playlist-download":$ch,"yt-signal-action-install-pwa":Qg$,"yt-signal-action-refresh-downloads":Uc7,"yt-offline-video-endpoint":Euj,"yt-offline-playlist-endpoint":F_q,"yt-update-local-app-setting-command":iv0,"yt-offline-orchestration-action-command":tDm,
"yt-signal-action-undo-delete-download":HoI,"yt-local-watch-history-command":Zvn,"yt-signal-action-mark-download-to-mobile-edu-shown":dVI};_.iM(_.KW.getInstance(),this.downloadManagerActionMap,this.JSC$32921_clientRoot);_.zA.instance=new _.zA},Fqm;var qr=function(){var v=_.z.apply(this,arguments)||this;v.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};v.remoteApi_=null;return v};
_.f(qr,_.z);_.K=qr.prototype;
_.K.ready=function(){_.Y("polymer_enable_mdx")&&(aoq({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.Y("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.Y("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.Y("enable_cast_short_lived_lounge_token")}),_.cx("yt-remote-connection-change",this.handleConnectionChange_,this),_.cx("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Qqm())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.K.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.K.handleConnectionChange_=function(v){(this.mdxConnected=v)?(v=Ioh(),!v&&RS8()&&nGI()&&(v={key:"cast-selector-receiver",name:nGI()}),v=v.name):v=null;this.receiverName=v;_.t5(this.remoteApi_);(this.remoteApi_=Qqm())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.K.handleReceiverAvailabilityChange_=function(){var v=$3h();RS8()&&_.TA("yt-remote-cast-available")&&v.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=v.length>0};
_.K.handleRemoteQueueChange_=function(){var v=this.currentVideoId_,Q=this.currentListId_,V=zJ(this.remoteApi_);this.currentVideoId_=V.videoId;this.currentListId_=V.listId;this.currentVideoId_&&_.mb(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.Y("polymer_enable_mdx_queue")?this.currentListId_:null,v,Q])};
_.K.handleAddToQueueAction_=function(v){v=_.y(v,$hn);this.remoteApi_&&(v.videoId?this.remoteApi_.addVideo(v.videoId):v.playlistId&&this.remoteApi_.addPlaylist(v.playlistId))};
_.K.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.K.handleInsertInQueueAction_=function(v){v=_.y(v,I85);this.remoteApi_&&v.videoId&&this.remoteApi_.JSC$20234_insertVideo(v.videoId)};
_.K.handleRemoveFromQueueAction_=function(v){v=_.y(v,HTs);this.remoteApi_&&v.videoId&&this.remoteApi_.JSC$20234_removeVideo(v.videoId)};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],qr.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q(),_.X("design:type",Object)],qr.prototype,"appId",void 0);_.W([_.q(),_.X("design:type",Boolean)],qr.prototype,"mdxConnected",void 0);_.W([_.q(),_.X("design:type",Boolean)],qr.prototype,"receiverAvailable",void 0);_.W([_.q(),_.X("design:type",Object)],qr.prototype,"receiverName",void 0);_.W([_.q(),_.X("design:type",Object)],qr.prototype,"currentVideoId_",void 0);
_.W([_.q(),_.X("design:type",Object)],qr.prototype,"currentListId_",void 0);_.W([_.D7({is:"yt-mdx-manager",disableElementRegistration:!0})],qr);_.B(qr,"yt-mdx-manager",void 0,{mode:2});var KqY;var ie$;var SE=function(){var v=_.z.apply(this,arguments)||this;v.APP_IDS={ytr:3,ytm:5};v.JSC$21463_timeoutId_=0;v.actionMap={"yt-open-create-family-dialog":"open"};return v};
_.f(SE,_.z);_.K=SE.prototype;_.K.created=function(){iMh(2200)};
_.K.detached=function(){this.observer_&&this.observer_.disconnect()};
_.K.open=function(v,Q){var V=this,E=v.serializedYpcFamilyCreateLoggingParams;this.JSC$21463_timeoutId_=setTimeout(this.abort_.bind(this,v.postFlowErrorEndpoint,E),3E4);Q&&(this.onReadyCallback_=Q);var b=_.m9(this.hostElement).querySelector("#unicorn-iframe");E&&E&&nWf("ypcFamilyCreateFlowStarted",E);_.bdo("family_creation",function(){var F=_.Q9("gapi.family_creation.render");_.Q9("gapi.config.update")("iframes/family_creation/url",V.getFamilyCreationUrlWithUnicornParams_());var t=3;v.appId&&v.appId in
V.APP_IDS&&(t=V.APP_IDS[v.appId]);t={authUser:_.r7("SESSION_INDEX")||0,clientId:t,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.r7("HL"),initialflow:[4,5,6,7],m:V.isMobile?1:0,onFlowComplete:V.onUnicornFlowComplete_.bind(V,v.postFlowSuccessEndpoint,E),onError:V.onUnicornFlowError_.bind(V,v.postFlowErrorEndpoint,E),onReady:V.onUnicornFlowReady_.bind(V,v.referencePcidParams)};F(b,t)})};
_.K.close=function(){_.m9(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.K.onUnicornFlowComplete_=function(v,Q){this.close();Q&&Q&&nWf("ypcFamilyCreateFlowSucceeded",Q);_.Hj(this.hostElement,"yt-navigate",{endpoint:v})};
_.K.onUnicornFlowError_=function(v,Q){this.close();Q&&nWf("ypcFamilyCreateFlowCancelled",Q);_.Hj(this.hostElement,"yt-navigate",{endpoint:v})};
_.K.onUnicornFlowReady_=function(v){var Q=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();v&&_.Q9("gapi.family_creation.setConfig")(0,v);this.observer_=new MutationObserver(function(){_.m9(Q.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.m9(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.m9(this.hostElement).querySelector("#dialog").open()};
_.K.getFamilyCreationUrlWithUnicornParams_=function(){return _.r7("YTR_FAMILY_CREATION_URL")};
_.K.getCurrentUrl_=function(){return document.location.href};
_.K.abort_=function(v,Q){this.clearTimeout_();this.onUnicornFlowError_(v,Q)};
_.K.clearTimeout_=function(){clearTimeout(this.JSC$21463_timeoutId_)};
_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],SE.prototype,"ytActionHandlerBehavior",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],SE.prototype,"isMobile",void 0);_.W([_.q(),_.X("design:type",Object)],SE.prototype,"onReadyCallback_",void 0);_.W([_.q(),_.X("design:type",Object)],SE.prototype,"observer_",void 0);_.W([_.D7({is:"yt-create-family-dialog",disableElementRegistration:!0})],SE);
_.B(SE,"yt-create-family-dialog",function(){if(ie$===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);var Q=v.content,V=Q.insertBefore;KqY===void 0&&(KqY=document.createElement("template"));var E=KqY;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);ie$=v}v=ie$;return v},{mode:2});var Lq8;var tWd;var zM=function(){var v=_.z.apply(this,arguments)||this;v.STEP=1;v.BLOCK_ON=80;v.MIN_PROGESS=0;v.MAX_PROGESS=100;return v};
_.f(zM,_.z);_.K=zM.prototype;_.K.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.K.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));_.ht().addProvider({provide:Jbh,useValue:this})};
_.K.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.K.finish=function(){var v=this;this.progress=this.MAX_PROGESS;hvY(function(){v.progress==v.MAX_PROGESS&&(v.hostElement.hidden=!0)})};
_.K.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.hr.Object.defineProperties(zM.prototype,{progress:{configurable:!0,enumerable:!0,set:function(v){this.progress_=v;var Q="scaleX("+v/this.MAX_PROGESS+")",V=_.m9(this.hostElement).querySelector("#progress").style;V.transform=Q;V.webkitTransform=Q;this.hostElement.setAttribute("aria-valuenow",String(v))},
get:function(){return this.progress_}}});
_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],zM.prototype,"ytComponentBehavior",void 0);_.W([_.D7({is:"yt-page-navigation-progress",disableElementRegistration:!0})],zM);
_.B(zM,"yt-page-navigation-progress",function(){if(tWd===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');v.content.insertBefore(_.I().content.cloneNode(!0),
v.content.firstChild);var Q=v.content,V=Q.insertBefore;Lq8===void 0&&(Lq8=document.createElement("template"));var E=Lq8;V.call(Q,E.content.cloneNode(!0),v.content.firstChild);tWd=v}v=tWd;return v},{mode:2});var p1$={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"},eAs={"font-size":"12px","font-style":"italic"},Zed={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.TLd=function(){return _.e(function(v){_.q1(v)})};var Pjq=_.x(function(v){var Q=function(){return v.data().subtext},V={};
return _.P("snackbar-view-model",{class:_.QZ("snackbarViewModelHost",v.className)},_.P("div",{class:_.QZ("snackbarViewModelEngagementBarWrapper",v.className)},_.P(_.h,{cond:function(){return v.data().image},
then:function(E){return _.P(_.gE,{data:E,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.P(_.h,{cond:function(){return v.data().imageContent},
then:function(){return _.P("div",{class:"snackbarViewModelAvatarContainer"},_.P(_.Pw,{data:function(){return v.data().imageContent}},{decoratedAvatarViewModel:_.VO}))}}),_.P("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.P("div",{class:_.QZ((V.snackbarViewModelTitle=!0,V.snackbarViewModelTitleWithSubtext=Q,V))},_.P(_.tD,{text:function(){return v.data().text}})),_.P(_.h,{cond:Q,
then:function(){return _.P("div",{class:"snackbarViewModelSubtext"},_.P(_.tD,{text:function(){return Q()}}))}})),_.P(_.h,{cond:function(){return v.data().buttons},
then:function(){return _.P("div",{class:"snackbarViewModelButtonClassWrapper"},_.P(_.Pw,{data:function(){return v.data().buttons}},{buttonViewModel:function(E){return _.P(_.D6,{data:E.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:v.target})}}))}})))},"uk");_.ad(_.x(function(){function v(S,a,g){c(S);R(g);k("in");w(!0);Q(S,a);t=setTimeout(function(){V()},a)}
function Q(S,a){var g,u=(g=S.text)==null?void 0:g.content;S=_.f4(S.rendererContext);u&&(a={label:u,command:S,durationMs:a},_.ht().resolve(_.TB).enqueue(a))}
function V(S){k("out");S&&clearTimeout(t)}
function E(){V(!0)}
function b(S){if(S){var a=S.snackbarViewModel,g=S.durationMs,u=S.target;g||(g=3E3);a&&(S=_.ht().resolve(_.d$(_.dN)))&&S.enqueue({isOpened:d,open:function(){v(a,g,u)},
close:V},0)}}
var F=_.Pa("snackbar-container"),t=void 0,p=_.L(_.Ge(!1,void 0,"mDc5N")),Z=p.next().value;p=p.next().value;var d=Z,w=p;Z=_.L(_.Ge("out",void 0,"FpOs5e"));var A=Z.next().value,k=Z.next().value;Z=_.L(_.Ge(void 0,void 0,"jIDRob"));var T=Z.next().value,c=Z.next().value;Z=_.L(_.Ge(void 0,void 0,"kOA3Mb"));var C=Z.next().value,R=Z.next().value,l=_.EP(function(){if(A()==="out"){w(!1);c(void 0);R(void 0);var S=_.ht().resolve(_.d$(_.dN));S&&yfj(S,0)}});
_.jg(function(){var S=_.ht().resolve(_.d$(_.MSm));S&&(S.showSnackbarFn=b,S.closeSnackbarFn=E)});
return _.P("snackbar-container",{class:"ytSnackbarContainerHost",el:F},_.P(_.h,{cond:function(){return d()&&!!T()},
then:function(){var S={};return _.P("div",{class:_.QZ("ytSnackbarContainerSnackbarContainer",(S.ytSnackbarContainerMobile=!1,S.ytSnackbarContainerPivotBar=function(){var a;return!((a=_.ht().resolve(_.d$(_.OwY)))==null||!a())},S.ytSnackbarContainerOpened=function(){return d()&&A()==="in"},S.ytSnackbarContainerClosed=function(){return d()&&A()==="out"},S)),
"on:animationend":l},_.P(Pjq,{data:function(){return T()},
target:function(){return C()}}))}}))},"vk"),"snackbar-container");_.ad(_.Uaa,"yt-tooltip");var dO5=_.eps.ephemeralActionSelector;_.ad(_.x(function(){var v=_.Z1(dO5);return _.P("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var Q;return(Q=v())==null?void 0:Q.announcement})},"wk"),"yt-ephemeral-actions");var gu8=new Map;var e18=function(v,Q){var V=this;this.handleError=v;this.logEventInternal=Q;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){V.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
e18.prototype.logError=function(v){this.handleError(v)};
e18.prototype.logEvent=function(v,Q){switch(v){case "IDB_DATA_CORRUPTED":_.Y("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",Q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",Q);break;case "IS_SUPPORTED_COMPLETED":_.Y("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",Q);break;case "QUOTA_EXCEEDED":hA$(this,Q);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",Q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":v=Object.assign({},Q,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",v)}};
var hA$=function(v,Q){_.yu.getInstance().estimate().then(function(V){V=Object.assign({},Q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:u5j(V==null?void 0:V.usage),deviceStorageQuotaMbytes:u5j(V==null?void 0:V.quota)});v.logEventInternal("idbQuotaExceeded",V)})};var w1I=_.x(function(v){var Q=_.Ze("yt-draggable"),V=v.onDrag,E=v.onDragStart,b=v.onDragEnd,F=_.o1(v,{allowClicks:!1,dragThreshold:5}),t=F.dragThreshold,p=F.allowClicks;v=F.children;F=F.className;var Z=void 0,d=void 0,w=new _.ua(0,0),A=!1;_.jg(function(){Z=new _.jN(Q.value);d=new _.ky(T);k(Z,d);if(p()){_.znZ(Z,t());var C;(C=Q.value)==null||C.addEventListener("click",c,{capture:!0})}_.j_(function(){var R;(R=Z)==null||R.dispose();if(p()){var l;(l=Q.value)==null||l.removeEventListener("click",c,{capture:!0})}})});
var k=function(C,R){_.wE(C,"earlycancel",function(){p()&&(A=!1)});
_.wE(C,"start",function(l){E==null||E(l);l.defaultPrevented||p()&&(A=!0)});
_.wE(C,"beforedrag",function(l){Z&&d&&(l.preventDefault(),w=new _.ua(l.clientX-Z.startX,l.clientY-Z.startY),d.start())});
_.wE(C,"end",function(){R.stop();b==null||b();w=new _.ua(0,0)})},T=function(){w&&V(w)},c=function(C){A&&(A=!1,C.stopPropagation(),C.preventDefault())};
return _.P("yt-draggable",{el:Q,class:_.QZ("ytDraggableComponentHost",F)},v)},"xk");var AUf=_.x(function(v){var Q=_.L(_.Ge(0,void 0,"Qf0tbc")),V=Q.next().value,E=Q.next().value;Q=function(b){var F={},t={};return _.P(w1I,{className:_.QZ("ytdMiniplayerComponentResizer",(F.ytdMiniplayerComponentResizerDisabled=function(){return b===v.horizontalAlignment()||b===v.verticalAlignment()},F.ytdMiniplayerComponentResizerNorth=b==="north",F.ytdMiniplayerComponentResizerEast=b==="east",F.ytdMiniplayerComponentResizerSouth=b==="south",F.ytdMiniplayerComponentResizerWest=b==="west",F)),
onDragStart:function(){E(v.currentMiniplayerSize());if(v.onResizeStart)v.onResizeStart()},
onDrag:function(p){b!=="north"&&b!=="west"||p.scale(-1);var Z;p=(Z=b==="north"||b==="south")?p.y:p.x;var d=v.currentAspectRatio();Z&&d>=1?p*=d:!Z&&d<1&&(p/=d);Z=p;v.onResize(V()+Z)}},_.P("div",{class:_.QZ("ytdMiniplayerComponentResizerCorner",(t.ytdMiniplayerComponentResizerNorthCorner=b==="north",t.ytdMiniplayerComponentResizerEastCorner=b==="east",t.ytdMiniplayerComponentResizerSouthCorner=b==="south",t.ytdMiniplayerComponentResizerWestCorner=b==="west",t))}))};
return _.P("div",{class:"ytdMiniplayerComponentResizers"},Q("north"),Q("east"),Q("south"),Q("west"))},"yk");var kbj=16/9;_.ad(_.x(function(){var v=_.Ze("ytd-miniplayer"),Q=_.L(_.Ge(new _.DT(NaN,NaN),void 0,"NHaFyc")),V=Q.next().value,E=Q.next().value;Q=_.L(_.Ge(!1,void 0,"a0rwG"));var b=Q.next().value,F=Q.next().value;Q=_.L(_.Ge(!1,void 0,"f1jSeb"));var t=Q.next().value,p=Q.next().value;Q=_.L(_.Ge(!1,void 0,"JojXKc"));var Z=Q.next().value,d=Q.next().value;Q=_.L(_.Ge(!1,void 0,"FjS8Db"));var w=Q.next().value,A=Q.next().value;Q=_.L(_.Ge(!1,void 0,"z5WG9e"));var k=Q.next().value,T=Q.next().value;Q=_.L(_.Ge(!1,void 0,"eUzZd"));
var c=Q.next().value,C=Q.next().value;Q=_.L(_.Ge(kbj,void 0,"XsBIy"));var R=Q.next().value,l=Q.next().value,S=_.L(_.Ge(!1,void 0,"FJSvse"));Q=S.next().value;var a=S.next().value;S=_.L(_.Ge(!1,void 0,"VDUFL"));var g=S.next().value,u=S.next().value;S=_.L(_.Ge(void 0,void 0,"nFeh4b"));var r=S.next().value,v9=S.next().value;S=_.L(_.Ge(hO()?"west":"east",void 0,"T7co7c"));var t3=S.next().value,h3=S.next().value;S=_.L(_.Ge("south",void 0,"QDUsLb"));var OB=S.next().value,kQ=S.next().value;S=_.L(_.Ge(400,
void 0,"F7Vdze"));var yo=S.next().value,xQ=S.next().value,lb=_.ht().resolve(_.lJ).miniplayerPropSignalMap[0],ep=lb.data,JS=lb.externalPlaylistData;S=lb.toastData;var fZ=lb.playabilityStatus,mS=lb.isReadyToResume,PN=lb.isDisabled,qZ=lb.watchWhile,DX=lb.playerVe,Th=lb.expandVe,R8=lb.closeVe,LE=lb.readyToResumeVe,Q8=lb.readyToResumeCloseVe,Tq=lb.repositionVe,Ed=lb.resizeVe;lb=_.L(_.K_(mS));var y8=lb.next().value,mA=lb.next().value,C$=_.Z1(_.zw.persistentPanelVisibleSelector),oN=!1,dV=!1,hS;_.jg(function(){E(_.Zl());
v.value.addEventListener("animationend",function(WN){WN.target===v.value&&(T(!1),C(!1))});
rGf(v.value)});
_.ez("yt-window-resized",function(WN){WN&&E(WN)});
var bh=function(){hS&&l(hS.getVideoAspectRatio())},ah=function(){if(hS){var WN=hS.getPlayerState()===1;
y8()&&WN&&mA(!1)}},vs=function(){var WN=Th();
if(WN){var Gh=_.Mo(3);Gh&&_.uI(Gh,WN)}},dl=function(){var WN=R8(),Gh=Q8();
WN&&_.uI(_.Mo(3),WN);mS()&&Gh&&_.uI(_.Mo(3),Gh)};
_.ez("yt-activate-miniplayer",function(WN){var Gh;return _.e(function(Fn){if(Fn.nextAddress==1)return b()?Fn.return():Fn.yield((Gh=_.ht().resolve(_.lJ).getPlayerElement())==null?void 0:Gh.getPlayerPromise(),2);hS=Fn.yieldResult;if(!hS)return Fn.return();!g()&&_.Y("kevlar_watch_while_v2")&&(kQ(WN&&!_.Y("kevlar_watch_while_bottom_align")?"north":"south"),h3(hO()?"west":"east"));var fg=hS;fg.addEventListener("onVideoDataChange",bh);fg.addEventListener("onStateChange",ah);fg.addEventListener("onExpandMiniplayer",
vs);fg.addEventListener("onCloseMiniplayer",dl);l(hS.getVideoAspectRatio());F(!0);aO0()||T(!0);_.q1(Fn)})});
_.ez("yt-deactivate-miniplayer",function(WN,Gh){return _.e(function(Fn){if(!b())return Fn.return();F(!1);mA(!1);C(WN);A(!1);p(!1);if(hS){var fg=hS;fg.removeEventListener("onVideoDataChange",bh);fg.removeEventListener("onStateChange",ah);fg.removeEventListener("onExpandMiniplayer",vs);fg.removeEventListener("onCloseMiniplayer",dl)}aO0()||Gh?Gh&&T(!1):T(!0);_.q1(Fn)})});
var E9=function(){return!(qZ()&&_.Y("kevlar_watch_while_modern"))},wY=function(){var WN;
return!((WN=JS())==null||!WN.contents)},Ws=function(){var WN=yo();
var Gh=V();Gh=Math.min(Math.min(Gh.width,Gh.height)-32,720);var Fn=R(),fg=E9(),la=wY()&&t(),Ql=Math.min(WN,Gh);WN=new _.DT(192,fg?116:192);Fn=new _.DT(la?kbj:Fn,1);Ql=new _.DT(Ql,fg?Ql-76:Ql);Ql=Fn.aspectRatio()>Ql.aspectRatio()?Ql.width/Fn.width:Ql.height/Fn.height;Fn=Fn.scale(Ql);WN.width<=Fn.width&&WN.height<=Fn.height||(WN=Fn.aspectRatio()<=WN.aspectRatio()?WN.width/Fn.width:WN.height/Fn.height,Fn.scale(WN),Fn.width=Math.min(Fn.width,Gh),Fn.height=Math.min(Fn.height,Gh));return new _.DT(Fn.width,
_.O$(192,Fn.height+mVI(fg,la),720))},Zg=function(){var WN=Ws(),Gh=E9(),Fn=wY()&&t();
return new _.DT(WN.width,WN.height-mVI(Gh,Fn))},TT=function(){var WN=function(Gh){Gh.target===v.value&&w()&&(A(!1),v.value.removeEventListener("transitionend",WN))};
aO0()||(v.value.addEventListener("transitionend",WN),A(!0));p(!t())};
_.uH(function(){var WN=DX(),Gh=_.Mo(3),Fn=_.CC(3);if(Gh&&Fn&&WN){_.Np(Gh,Fn,WN);Fn=Tq();var fg=Ed(),la=Th(),Ql=R8(),rb=Q8();la&&Ql&&rb&&(_.x7(Gh,WN,[la,Ql,rb]),_.gD(Gh,[la,Ql]));Fn&&fg&&_.x7(Gh,WN,[Fn,fg])}},"UBpUDd");
_.uH(function(){var WN=LE();if(WN){var Gh=_.Mo(0),Fn=_.CC(0);Gh&&Fn&&(_.Np(Gh,Fn,WN),_.gD(Gh,[WN]))}},"fQpBzb");
lb={};return _.P("ytd-miniplayer",{el:v,class:_.QZ("ytdMiniplayerComponentHost",(lb.ytdMiniplayerComponentVisible=function(){return(b()||k())&&!(qZ()&&_.Y("kevlar_watch_while_counterfactual"))},lb.ytdMiniplayerComponentAnimatingSnap=Z,lb.ytdMiniplayerComponentAnimatingPlaylistExpand=w,lb.ytdMiniplayerComponentAnimatingFade=k,lb),function(){if(k()){var WN=OB();
var Gh=b(),Fn=c();WN=Gh?WN==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Fn?WN==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":WN==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else WN="";return WN}),
style:_.iP({top:function(){return OB()==="north"?"16px":""},
right:function(){var WN=t3(),Gh=C$();Gh=(Gh===void 0?0:Gh)&&!hO()?400:0;return WN==="east"?16+Gh+"px":""},
bottom:function(){return OB()==="south"?"16px":""},
left:function(){var WN=t3(),Gh=C$();Gh=(Gh===void 0?0:Gh)&&hO()?400:0;return WN==="west"?16+Gh+"px":""},
width:function(){return Ws().width+"px"},
height:function(){return Ws().height+"px"},
transform:function(){var WN=r();return WN?"translate("+WN.x+"px, "+WN.y+"px)":""}})},_.P("div",{class:"ytdMiniplayerComponentContent"},_.P(w1I,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(WN){var Gh=Hv0(t3(),OB(),V(),Ws(),r()),Fn=Zg();Math.abs(WN.clientY-(Gh.y+Fn.height))>15?(a(!0),WN=_.Mo(3),Gh=Tq(),oN||(oN=!0,WN&&Gh&&_.gD(WN,[Gh])),WN&&Gh&&_.uI(WN,Gh)):WN.preventDefault()},
onDrag:function(WN){v9(WN)},
onDragEnd:function(){var WN=$Vm(Hv0(t3(),OB(),V(),Ws(),r()),V(),Ws()),Gh=IOd(t3(),OB(),V(),Ws(),C$()),Fn=IOd(WN.horizontalAlignment,WN.verticalAlignment,V(),Ws(),C$());Fn=new _.ua(Fn.x-Gh.x,Fn.y-Gh.y);var fg;Gh=Gh.y+(((fg=r())==null?void 0:fg.y)||0)+Ws().height/2;var la=function(){t3()===WN.horizontalAlignment&&OB()===WN.verticalAlignment||u(!0);h3(WN.horizontalAlignment);kQ(WN.verticalAlignment);v9(void 0)},Ql=function(rb){rb.target===v.value&&Z()&&(d(!1),la(),v.value.removeEventListener("transitionend",
Ql))};
a(!1);OB()==="south"&&Gh>V().height?(la(),_.ht().resolve(_.lJ).close()):(v.value.addEventListener("transitionend",Ql),d(!0),v9(Fn))}},_.P(_.h,{cond:b,
then:function(){return _.P(_.wrI,{isDisabled:PN,playabilityStatus:fZ,size:Zg})}}),_.P(_.h,{cond:E9,
then:function(){return _.P(_.dL7,{isReadyToResume:y8,data:ep,expanded:t,onExpandClick:TT,playlistData:JS})}}),_.P(_.h,{cond:Q,
then:function(){return _.P("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.P(_.h,{cond:function(){return wY()&&t()||w()},
then:function(){return _.P(_.CVs,{className:"ytdMiniplayerComponentPlaylistPanel",data:JS,hideHeaderText:!0,withinMiniplayer:!0})}}),_.P("div",{class:"ytdMiniplayerComponentToast"},_.P(_.AFs,{toastData:S}))),_.P(AUf,{onResize:function(WN){xQ(_.O$(192,WN,720))},
onResizeStart:function(){var WN=_.Mo(3),Gh=Ed();dV||(dV=!0,WN&&Gh&&_.gD(WN,[Gh]));WN&&Gh&&_.uI(WN,Gh)},
currentAspectRatio:R,currentMiniplayerSize:yo,horizontalAlignment:t3,verticalAlignment:OB}))},"Bk"),"ytd-miniplayer",{});var Tj8=_.zw.persistentPanelVisibleSelector,Jg=function(){var v=_.z.apply(this,arguments)||this;v.tabGesturesIsActive=!1;v.persistentPanelEnabled=_.Y("enable_ai_companion");v.hasDelegation=!1;v.isFrostedGlassInitialized=!1;v.frostedGlassExp=_.Y("web_frosted_glass");v.hasPendingWatchNavigation=!1;v.mastheadHiddenFocusWithinKillswitch=_.Y("web_masthead_hidden_focus_within_killswitch");v.clientOnlyWizTooltipsEnabled=_.Y("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
v.scrollAtTop=!0;v.guideScrollTop=0;v.isTheaterModeSession=_.mX("START_IN_THEATER_MODE");v.iMaxTheaterMode=_.Y("web_watch_imax_theater_mode");v.isFullWindowSession=_.mX("START_IN_FULL_WINDOW_MODE");v.hasCreateFamilyDialog=!1;v.mastheadHeight=56;v.networkStatusManager=new _.bS;v.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction",
"yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};v.dynamicActionMap={"yt-run-attestation-command":function(Q){var V=_.Z$7.instance,E=_.y(Q,_.kpZ);return E?_.Y("use_rta_manager_for_async")&&
Hhd()?HMj(V,E,Q.clickTrackingParams):Iu8(V,E,Q.clickTrackingParams):_.kD(Error("pi"))}};
v.isFrostedGlassDisabled=!1;v.isChannelOrPlaylistPage=!1;return v};
_.f(Jg,_.z);_.K=Jg.prototype;_.K.created=function(){var v=_.ht();_.Y("kevlar_clear_duplicate_pref_cookie")&&_.go(_.XT,function(){var Q=_.qY.get("PREF");Q&&!/f\d=/.test(Q)&&(Q=_.y9("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=Q?"PREF=null;domain="+Q+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.Y("gzip_gel_with_worker")&&_.Q1B();_.Y("jspb_serialize_with_worker")&&yR0();_.Y("web_worker_availability_check")&&sgd();_.Y("nwl_init_killswitch")||TEf().then(function(){_.XT.addLowPriorityJob(K3q)});
this.pageManagerAttachedPromise=_.B_();this.ytdAppBehavior.loadDepsPromise=_.lc([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.FK(this.onThrottledScroll,200,this);_.Y("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Zx5();Y5s=!!_.Q9("ytappsettings.initialized");ne=_.Q9("ytappsettings.previousValue");eg0=_.Q9("ytappsettings.previousSnapshotTime");Y5s||(Y5s=!0,Z_8());ZNq();Pqn();_.aS("DEFERRED_DETACH",
_.Y("kevlar_tuner_should_defer_detach"));_.aS("REUSE_COMPONENTS",!0);_.aS("STAMPER_STABLE_LIST",!0);_.aS("SCHEDULED_LAZY_LIST",!0);_.aS("openPopupConfig",Hl8);_.aS("useClickHandler",!0);_.Y("kevlar_shell_cleanup")&&_.XT.addLowPriorityJob(vW0.bind(this,_.bb.caches));_.mX("IS_SHELL_LOAD")&&_.ft({shellStartupDurationMs:Math.round((0,_.wO)()-_.Ay())});fOf(this.networkStatusManager);_.Y("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",wA$(p1$)),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!",
wA$(eAs)),console.log("%cVisit http://go/join-youtube-web to apply today.",wA$(Zed)));_.nIq(v.resolve(_.Am),1E3)};
_.K.ready=function(){var v=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var Q=lMq();Q&&!_.Y("external_fullscreen_killswitch")&&document.addEventListener(Q,this.setFullscreen.bind(this));(Q=window.matchMedia("(prefers-color-scheme: dark)"))&&Q.addEventListener&&Q.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(Q=_.ht().resolve(_.d$(_.wK8)))Q.subscribe("navigation-start",
function(V){V.destinationPageSubtype==="watch"&&(v.hasPendingWatchNavigation=!0)}),Q.subscribe("navigation-end",function(V){V.destinationPageSubtype==="watch"&&(v.hasPendingWatchNavigation=!1)})};
_.K.attached=function(){var v=this;_.Zp().processSignal("ci");_.Y("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.LJQ?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Kq(_.GIh(),"SUCCESS");this.updateIconSet();_.$I(this.guideInnerContent,!1);_.xp().initVisibilityObserver();this.guideService.guideElement=this.guide;var Q=document.createElement("ytd-miniplayer"),V=_.m9(this.hostElement).querySelector("#content");
_.m9(this.hostElement).insertBefore(Q,V);_.Zp().processSignal("ma");_.ht().resolve(_.lJ).init(Q);this.persistentPanelEnabled&&_.qp8(_.ht().resolve(_.mO),this.persistentPanelContainer,"APP");_.mX("IS_SHELL_LOAD")&&(V=document.createElement("ytd-network-status-banner"),_.m9(this.hostElement).insertBefore(V,Q));_.Y("kevlar_right_click_on_lockups")&&_.b7._onCaptureClick&&document.addEventListener("contextmenu",_.b7._onCaptureClick.bind(_.b7),!0);var E=function(){var b=_.wx("yt-page-navigation-progress");
_.m9(v.hostElement).appendChild(b)};
setTimeout(function(){_.Zp().parkOrScheduleJob(E,0,"eocs",16)},0);
_.Y("service_worker_push_enabled")&&_.go(_.XT,Rgq);_.iM(_.KW.getInstance(),this.dynamicActionMap,this.hostElement);_.Hj(this.hostElement,"ytd-app-attached");_.Zp().processSignal("aa");oDh(this.hostElement);_.Pr("gapi.load",_.bdo);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.go(_.XT,
function(){var b=document.createElement("ytd-video-preview");_.m9(_.m9(v.hostElement).querySelector("#video-preview")).appendChild(b)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.go(_.XT,function(){YE5();v.registerWithViewTransitionManager()});
if(_.SV()&&this.isAppDarkTheme()!==_.lK())this.onDarkModeToggledAction();else Q=_.q2()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==Q&&(_.Y("enable_dark_theme_only_on_shorts")?_.nF(_.Y("enable_dark_theme_only_on_shorts_control")?window.location.href:_.iv(window.location.href,{theme:"dark"})):_.Iy(new _.xd("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(QYm=new vLI(this.hostElement)),Fqm=new beY(this.hostElement),ET5=new VWh(this.hostElement),Yy$=new Th7(this.hostElement)};
_.K.getThemeSettingsToLog=function(){var v=_.q2()==="USER_INTERFACE_THEME_DARK";v=_.SV()?_.lK()?"os-dark":"os-light":v?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:v,cookiesEnabled:_.z_()}};
_.K.detached=function(){_.Ix(this.guideInnerContent);_.XT.cancelJob(Ce);Ce=0;_.XT.cancelJob(O6);O6=0;_.dQ9(Wd7);Wd7.length=0;sd7=_.i5r=null;_.xp().dispose();_.Y("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.LW(_.KW.getInstance(),QYm.playlistHandlerActionMap,QYm.JSC$32626_clientRoot);_.LW(_.KW.getInstance(),Fqm.downloadManagerActionMap,Fqm.JSC$32921_clientRoot);_.LW(_.KW.getInstance(),ET5.feedbackCollectorActionMap,ET5.JSC$32916_clientRoot);
for(var v=_.L(Yy$.eventListeners),Q=v.next();!Q.done;Q=v.next()){var V=_.L(Q.value);Q=V.next().value;V=V.next().value;V=_.L(V);for(var E=V.next();!E.done;E=V.next()){var b=_.L(E.value);E=b.next().value;b=b.next().value;Q.removeEventListener(E,b)}}_.LW(_.KW.getInstance(),Yy$.autonavPauseActionMap,Yy$.JSC$20416_clientRoot)};
_.K.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.eP().getFlag(186)};
_.K.computeIsInlinePreviewEnabled=function(v,Q,V){return!V&&_.yY0({miniplayerIsActive:v,miniplayerPlaybackState:Q})};
_.K.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.U2({type:"SET_FROSTED_GLASS_MODE",payload:!_.Y("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"}))};
_.K.computeIsFrostedGlassDisabled=function(v,Q,V,E){return v||Q||V||E&&_.Y("web_frosted_glass_disable_watch")};
_.K.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.Y("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.K.computeIsHomePage=function(v,Q){if(!v||Q==null||!Q.endpoint)return!1;var V;return((V=_.y(Q.endpoint,_.tn))==null?void 0:V.browseId)==="FEwhat_to_watch"};
_.K.updateIsChannelOrPlaylistPage=function(){if(_.Y("web_frosted_glass")){var v,Q,V=(Q=(v=_.ht().resolve(_.d$(_.oJ)))==null?void 0:v.getCurrentPage())==null?void 0:Q.pageSubtype;this.isChannelOrPlaylistPage=V?["channel","channels","playlist"].includes(V):!1}};
_.K.scheduleFrostedGlassInitialization=function(){var v=this;_.Y("web_frosted_glass")&&_.Zp().parkOrScheduleJob(function(){v.isFrostedGlassInitialized=!0},0,_.Jm(["eocs",
"cr"]),300)};
_.K.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.ERA(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.U2({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.U2({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.K.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(tOs(!0))};
_.K.onYtSignalActionRequestPersistentStorage=function(){if(!_.Y("request_persistent_storage_killswitch")){var v=_.ht().resolve(_.raq);v.cachedPersistStatePromise||(v.cachedPersistStatePromise=lIh())}};
_.K.handleYtChannelCreationFormEndpoints=function(v){v&&this.ytComponentBehavior.resolveCommand(v)};
_.K.handleShowEngagementPanelEndpoint=function(v){v&&this.ytComponentBehavior.resolveCommand(v)};
_.K.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(tOs(!1))};
_.K.initIconDefs=function(v,Q){var V=document.createElement("iron-iconset-svg");V.name=v;v=document.createElementNS("http://www.w3.org/2000/svg","svg");V.appendChild(v);v.appendChild(Q);document.body.appendChild(V);return V};
_.K.onWindowResized=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var v=_.nD.getInstance();v.documentWidth_=document.body.clientWidth;c6s(v)};
_.K.onWindowScrolled=function(){var v=_.ht().resolve(_.oJ).getCurrentPage();if(v!=null&&v.getScrollTop){var Q=this.ytdReduxBehavior,V=Q.dispatch;v=v.getScrollTop()<=0;V.call(Q,_.U2({type:"SET_SCROLL_AT_TOP",payload:v}))}};
_.K.guideIsVisibleButNotPersistentSelectorChanged=function(){var v=_.ht().resolve(_.oJ).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=v.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
v.setScrollTop(this.guideScrollTop));_.Un(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.K.getCurrentPageScrollableElementType=function(){var v=_.ht().resolve(_.oJ).getCurrentPage();if(v&&v.getPageScrollingElement())return v.getPageScrollingElement().nodeName};
_.K.observeGuideVisibility=function(){var v=_.nD.getInstance(),Q=this.miniGuideVisible;v.guidePersistentAndVisible_=this.guidePersistentAndVisible;v.miniGuideVisible_=Q;c6s(v)};
_.K.observePersistentPanelVisibility=function(){var v=_.nD.getInstance();v.persistentPanelVisible_=this.persistentPanelVisible;c6s(v)};
_.K.handleEduDismissAction=function(v){v&&v.eduDismissAction&&(_.mb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.i9x.getInstance(),_.Dp.set(v.eduDismissAction.key+"-dismissed",!0))};
_.K.handleEduImpressionAction=function(v){if(v&&v.eduImpressionAction){var Q=_.i9x.getInstance();v=v.eduImpressionAction.key;Q.JSC$13259_eduDisplayedThisLoad_[_.Kca[v].setKey||v]=!0;_.Dp.set(v+"-impression",parseInt(_.Dp.get(v+"-impression")||0,10)+1)}};
_.K.onYtSignalActionConfirmMentionsEdu=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.qs.getInstance();_.lg.set("edu-dismissed",!0)};
_.K.onYtSignalActionRecordMentionsEduImpression=function(){_.qs.getInstance();var v=_.lg.set,Q=parseInt(_.lg.get("edu-impressions"),10);v.call(_.lg,"edu-impressions",(isFinite(Q)?Q:0)+1)};
_.K.onYtPageManagerAttached=function(v){var Q;((Q=_.jV(v))==null?void 0:Q.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.K.onInvokeInstrumentManagerAction=function(v,Q){XAm(Q,v)};
_.K.updateIconSet=function(){var v=this.hostElement.querySelector("#masthead");if(v){var Q=_.Up(v),V=Q.querySelector("g#yt-logo-updated");V&&(v=document.createElementNS("http://www.w3.org/2000/svg","defs"),v.appendChild(V.cloneNode(!0)),(Q=Q.querySelector("g#yt-logo-red-updated"))&&v.appendChild(Q.cloneNode(!0)),this.initIconDefs("yt-logos-ext",v))}};
_.K.updateMastheadData=function(){var v=this,Q,V,E,b,F;return _.e(function(t){if(t.nextAddress==1){Q=v.data;V=v.hostElement.querySelector("#masthead");if(!V)return t.return();_.PE(v,function(){V.data=v.topbarData});
if(!v.get("response.topbar",Q)||v.get("response.topbar.responseContext.maxAgeSeconds",Q)===0)return t.jumpTo(0);if(E=_.ht().resolve(_.H3))return t.yield(E(),6);b=_.ht().resolve(_.lp);return t.yield(b.put("service:topbar:fallback",new _.qD({innertubeResponse:v.get("response.topbar",Q)})),0)}return(F=t.yieldResult)?t.yield(F.put("service:topbar:fallback",new _.qD({innertubeResponse:v.get("response.topbar",Q)})),0):t.jumpTo(0)})};
_.K.computeTopbarData=function(v){if(!v)return null;var Q;return this.isShortsPage&&this.topbarData&&!_.y((Q=v.response)==null?void 0:Q.topbar,Jk8)?this.topbarData:v.response&&"topbar"in v.response?_.y(v.response.topbar,Jk8)||null:null};
_.K.onSetTheaterModeEnabled=function(v,Q){this.isTheaterModeSession=Q.enabled;this.setTheaterModeStyles(Q.enabled)};
_.K.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.K.onDarkModeToggledAction=function(){var v=_.OG(window.location.href);if(!_.pbT(v)){(v=!!_.Ki(window.location.href).themeRefresh)&&_.Iy(new _.xd("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!v){Z_8();v={themeRefresh:1};var Q=_.ht().resolve(_.oJ);if(Q.isOnWatch()){var V,E;Q=((V=Q.getPlayerFromWatch())==null?void 0:(E=V.getPlayer())==null?void 0:E.getCurrentTime())||0;Q>=1&&(v.time_continue=Math.floor(Q))}_.z_()||_.q2()!=="USER_INTERFACE_THEME_DARK"||(v.theme="dark");_.nF(_.iv(window.location.href,
v))}_.Y("web_appshell_refresh_trigger")&&_.bb.caches&&this.refreshAppShellResponse();V=_.JY(window.location.href);_.J9(_.ht().resolve(_.ND),_.Xy(V,"theme"))}};
_.K.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.K.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.K.onPlayerFullscreen=function(v){_.ax();this.playerFullscreen=v};
_.K.setRestrictedMode=function(v){var Q=_.eP();_.ZG(0,58,v);Q.save();_.ht().resolve(_.Ns).reload()};
_.K.onPageChanged=function(v){v.detail.newPageType==="ytd-watch-flexy"||v.detail.newPageType==="ytd-watch-fixie"||v.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.cZ("WEB_PAGE_TYPE_WATCH")):v.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.cZ("WEB_PAGE_TYPE_SHORTS")):v.detail.newPageType==="ytd-browse"&&v.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.cZ("WEB_PAGE_TYPE_MINI_APP")):_.Y("web_frosted_glass")&&v.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.cZ("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.cZ("WEB_PAGE_TYPE_UNKNOWN"));v.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.K.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.K.onGuideToggleTap=function(){_.Hj(this.hostElement,"yt-guide-toggle")};
_.K.onGuideToggleHover=function(){_.Hj(this.hostElement,"yt-guide-hover")};
_.K.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.K.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.K.setMastheadTheme=function(){var v=_.Up(this.hostElement).querySelector("#masthead");v&&(v.dark=v.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),v.isDarkThemeForced=!1)};
_.K.onRequestPanelModeChange=function(v,Q){this.hideHeaderShadow=Q.mode!=="seamed"};
_.K.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.K.onDrawerIronSelect=function(v){_.jV(v).id==="guide"&&this.processDrawerIronSelect()};
_.K.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var v="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(v="opened"));_.Hj(this.hostElement,"yt-autonav-pause-guide-"+v)};
_.K.onAddElementToApp=function(v){_.m9(this.hostElement).appendChild(v.detail)};
_.K.onThrottledScroll=function(){var v=_.ht().resolve(_.oJ).getCurrentPage();v&&(this.scrollAtTop=v.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.K.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.K.setFullscreen=function(){if(_.Y("external_fullscreen")||!this.isWatchPage){var v=_.Y("kevlar_fullerscreen_root_only_killswitch")?!!_.ax():!!_.ax()&&_.ax()===document.documentElement;v=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(v||this.isFullWindowSession);this.fullscreen!==v&&((this.fullscreen=v)&&_.Un(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.oF().dispatch(_.oka(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]))}};
_.K.setFullscreenLoggingForShorts=function(v){var Q,V,E;return _.e(function(b){if(b.nextAddress==1)return b.yield((Q=_.aJ())==null?void 0:Q.getPlayerPromise(),2);V=b.yieldResult;(E=V)==null||E.setAppFullscreen(v);_.q1(b)})};
_.K.updateMastheadCssHeight=function(){var v=this.mastheadHeight;this.fullscreen&&(v=0);_.F6(this.hostElement,{"--ytd-masthead-height":v+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.K.updateNetworkStatusBannerDisplayStatus=function(){var v="unset";this.fullscreen&&(v="none");_.F6(this.hostElement,{"--ytd-network-status-banner-display":v})};
_.K.updateNetworkStatusBannerCssHeight=function(){var v="unset";this.fullscreen&&(v="0px");_.F6(this.hostElement,{"--ytd-network-status-banner-max-height":v})};
_.K.updateScrollAndMasthead=function(v,Q,V,E){this.iMaxTheaterMode||(E=!1);var b=_.ht().resolve(_.oJ).getCurrentPage();v||Q||E?(document.body.classList.add("no-scroll"),b.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Lh(this,this.onScroll)),b.setScrollTop(0),_.F6(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.oG()+"px"})):V?_.Hj(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Hj(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
b.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Lh(this,this.onScroll)));this.mastheadHidden=v||Q||V;this.updateMastheadCssHeight();_.Y("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.K.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.K.onYtNavigateAction=function(v){v=this.get("navigateAction.endpoint",v);_.Hj(this.hostElement,"yt-navigate",{endpoint:v})};
_.K.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var v=document.createElement("yt-create-family-dialog");_.m9(this.hostElement).appendChild(v);this.hasCreateFamilyDialog=!0}};
_.K.onSetPushNotificationsEnabledCommand=function(v){var Q=this,V=_.y(v,zF7);V&&typeof V.enabled==="boolean"&&(Notification.permission!=="granted"?Gr0().then(function(){Notification.permission==="granted"?(i_h(!V.enabled).then(p_Y),V.successAction&&_.vp(Q.hostElement,[V.successAction])):V.failureAction&&_.vp(Q.hostElement,[V.failureAction])}):(i_h(!V.enabled).then(p_Y),V.successAction&&_.vp(this.hostElement,[V.successAction])))};
_.K.onYtSignalActionEnableChromeNotifications=function(){CPd(!0)};
_.K.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.y(this.topbarData.hotkeyDialog,Bkd)}}})};
_.K.onYtSignalActionShowKeyboardShortcutDialog=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.K.onYtEndpointChangeHandler=function(v,Q){var V=_.XQ(_.JQ);V.pendingPrefetchJob_&&(Q=!(!Q||Q.autonav!="1"),V.pendingPrefetchJob_.resolve(v&&_.Ly3(v)?_.tsT(v,Q):""),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")};
_.K.handleCommandWithCommandHandler=function(v,Q){_.bd.instance.resolveCommand(v,{form:{element:Q}})};
_.K.onYtTimedCommand=function(v){var Q=this;v=_.y(v,f88);var V=v.command;V&&_.Lq(_.XT,function(){var E=_.y(V,_.TKR);E?(_.bd.instance.resolveCommand(V),Q.maybeLogGetAnswerRequestTick(E)):_.Qk(Q.hostElement,[V],Q.hostElement)},v.timeoutMs||0)};
_.K.maybeLogGetAnswerRequestTick=function(v){v&&v.isFirstRequest&&(_.Ct("search_overview_answer"),_.Mp("so_rq",void 0,"search_overview_answer"))};
_.K.onYtSignalActionSkipNavigation=function(){var v=_.ht().resolve(_.oJ).getCurrentPage();_.Lp(v)};
_.K.onYtSignalActionCopyDebugData=function(){BS0()};
_.K.handleEntityUpdateCommand=function(v){_.p7(_.y(v,_.uUZ).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.K.logFlowLoggingEventCommand=function(v){if(v=_.y(v,_.oAE))if(v.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var Q=v.flowEventNamespace,V=v.flowEventType,E=v.flowType;E&&Q&&V&&_.vOQ(_.Fp(Q,V,v.flowEventMetadata),E)}else{Q=_.KF();V=v.flowEventNamespace;E=v.flowEventType;var b=v.flowType;b&&V&&E&&Q.logFlowEvent(_.Fp(V,E,v.flowEventMetadata),b,v.flowNonce)}};
_.K.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.K.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.K.onTouchStart=function(){var v=_.BO();_.Mo()&&_.zr(v.JSC$13381_screenManager,{visualElement:v.ve})};
_.K.handleSelectLanguageCommand=function(v){if(v=_.y(v,l8j).hl){var Q=_.eP();Q.set("hl",v);Q.save();_.ht().resolve(_.Ns).reload()}};
_.K.handleConfirmDialogEndpoint=function(v){(v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&this.ytOpenPopupBehavior.openPopup(v)};
_.K.handleOpenPopupNavigationEndpoints=function(v,Q){(v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&this.ytOpenPopupBehavior.openPopup(v,Q)};
_.K.handleSaveCommandToSessionStorage=function(v){if(v=_.y(v,_.Gpq)){var Q=v.key;Q&&v.command&&window.sessionStorage.setItem(Q,JSON.stringify(v.command))}};
_.K.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(v){v&&v.active&&v.active.postMessage({type:"refresh_shell"})}).catch(function(v){v.name!=="SecurityError"&&_.ro(v)})};
_.K.onDeviceThemeChanged=function(){var v=_.lK();_.ZG(_.eP(),185,v);_.eP().save()};
_.K.handleYtRegisterPromoCommand=function(v){if(_.y(v,SL5)){var Q=_.ht().resolve(_.oJ).getCurrentPage()||this.hostElement;R0$().registerPromoCommand(_.y(v,SL5),Q)}};
_.K.onYtNavigateHomeAction=function(){if(!_.Y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var v,Q,V,E,b=(E=(v=this.topbarData)==null?void 0:(Q=v.logo)==null?void 0:(V=Q.topbarLogoRenderer)==null?void 0:V.endpoint)!=null?E:_.j5;this.ytComponentBehavior.resolveCommand(b)}};
_.K.onYtLocationCollectionCommand=function(v){klh(_.y(v,a8f))};
_.K.onYtGetLocationCommand=function(v){AIm(_.y(v,Xbn),this)};
_.K.updateRenderGuideFromBinding=function(v){this.renderGuide=v.detail.value};
_.K.updateGuidePersistentAndVisibleFromBinding=function(v){this.guidePersistentAndVisible=v.detail.value};
_.K.updateMiniGuideVisibleFromBinding=function(v){this.miniGuideVisible=v.detail.value};
_.K.onThemeSelected=function(v,Q){var V=_.eP(),E=v||Q?v:_.lK(),b=(E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.pbT(_.OG(window.location.href));_.ZG(0,165,v);_.ZG(0,174,Q);V.save();b&&_.mb(this.hostElement,"yt-dark-mode-toggled-action",[E]);_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.K.getCurrentTheme=function(){return _.SV()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.q2()};
_.K.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.K.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.K.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.K.handleShowConsentPrimitive=function(v){var Q=this,V,E;return _.e(function(b){if(b.nextAddress==1){try{V=(E=_.aJ())==null?void 0:E.getPlayerPromise()}catch(F){}return b.yield(BLs(v,V),2)}_.mb(Q.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.q1(b)})};
_.K.handleSelectActiveIdentityEndpointInternal=function(v){_.Dl();v=_.y(v,_.Jja);if(v!=null&&v.supportedTokens){v=_.L(v.supportedTokens);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.accountSigninToken&&_.nF(Q.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.K.handleUpdatePermissionRoleCommand=function(v){if(v=_.y(v,_.Nxx)){var Q;this.hasDelegation=!((Q=_.y(v.renderer,_.JDp))==null||!Q.status)}};
_.K.registerWithViewTransitionManager=function(){var v=_.ht().resolve(_.d$(_.aw));if(v){var Q,V=(Q=this.guide)==null?void 0:Q.querySelector("#scrim"),E;Q=(E=this.guide)==null?void 0:E.querySelector("#contentContainer");V&&Q&&v.isAnyTransitionEnabled&&(E={},v.viewTransitionCoordinator.registerElement(V,(E.slide="app-drawer-scrim-page-transition",E["lockup-to-watch"]="app-drawer-scrim-page-transition",E["learning-journey"]="app-drawer-scrim-page-transition",E)),V={},v.viewTransitionCoordinator.registerElement(Q,
(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)))}};
_.hr.Object.defineProperties(Jg.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.hr.Object.defineProperties(Jg,{template:{configurable:!0,enumerable:!0,get:function(){if(INI===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
v.content.insertBefore(_.I().content.cloneNode(!0),v.content.firstChild);INI=v}v=INI;return v}}});
Jg.prototype.onOpenHotkeyDialog=Jg.prototype.onOpenHotkeyDialog;Jg.prototype.setFullscreen=Jg.prototype.setFullscreen;Jg.prototype.onAddElementToApp=Jg.prototype.onAddElementToApp;Jg.prototype.onDrawerIronSelect=Jg.prototype.onDrawerIronSelect;Jg.prototype.onGuideOpenButtonHover=Jg.prototype.onGuideOpenButtonHover;Jg.prototype.onRequestPanelModeChange=Jg.prototype.onRequestPanelModeChange;Jg.prototype.onPageDataUpdated=Jg.prototype.onPageDataUpdated;Jg.prototype.onPageChanged=Jg.prototype.onPageChanged;
Jg.prototype.onSetTheaterModeEnabled=Jg.prototype.onSetTheaterModeEnabled;Jg.prototype.updateMastheadData=Jg.prototype.updateMastheadData;Jg.prototype.onYtPageManagerAttached=Jg.prototype.onYtPageManagerAttached;Jg.prototype.observePersistentPanelVisibility=Jg.prototype.observePersistentPanelVisibility;Jg.prototype.observeGuideVisibility=Jg.prototype.observeGuideVisibility;Jg.prototype.guideIsVisibleButNotPersistentSelectorChanged=Jg.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Jg.prototype.isInlinePreviewEnabledChanged=Jg.prototype.isInlinePreviewEnabledChanged;Jg.prototype.isWatchPageChanged=Jg.prototype.isWatchPageChanged;Jg.prototype.dispatchFrostedGlassMode=Jg.prototype.dispatchFrostedGlassMode;_.W([_.M(_.QU),_.X("design:type",Object)],Jg.prototype,"ytdReduxBehavior",void 0);_.W([_.M(_.XW.YtEventForwardingBehavior),_.X("design:type",Object)],Jg.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.M(_.l6.YtOpenPopupBehavior),_.X("design:type",Object)],Jg.prototype,"ytOpenPopupBehavior",void 0);_.W([_.M(_.SI.YtActionHandlerBehavior),_.X("design:type",Object)],Jg.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.KW.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.Y("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var v;((v=this.actionRouterNode.hostElement)!=null?v:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var v;((v=this.actionRouterNode.hostElement)!=null?v:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(v){this.actionRouter_.handleAction(v.detail)}}),
_.X("design:type",Object)],Jg.prototype,"ytActionRouterBehavior",void 0);_.W([_.M(Nv0.YtdAppBehavior),_.X("design:type",Object)],Jg.prototype,"ytdAppBehavior",void 0);_.W([_.M(_.ql.YtEndpointBehavior),_.X("design:type",Object)],Jg.prototype,"ytEndpointBehavior",void 0);_.W([_.M(Q6I.YtEndpointHandlerWithYpcBehavior),_.X("design:type",Object)],Jg.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.W([_.M(H38.YtLogYpcFlowCommandsBehavior),_.X("design:type",Object)],Jg.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.W([_.M(_.H.YtRendererBehavior),_.X("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.W([_.M(_.VL.YtComponentBehavior),_.X("design:type",Object)],Jg.prototype,"ytComponentBehavior",void 0);_.W([_.q({selector:_.BHn}),_.X("design:type",Object)],Jg.prototype,"tabGesturesIsActive",void 0);_.W([_.q(),_.X("design:type",Boolean)],Jg.prototype,"renderGuide",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"guidePersistentAndVisible",void 0);_.W([_.q({selector:_.x2d}),_.X("design:type",Boolean)],Jg.prototype,"guideIsVisibleButNotPersistent",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"standalone",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"miniGuideVisible",void 0);
_.W([_.q(),_.X("design:type",Object)],Jg.prototype,"persistentPanelEnabled",void 0);_.W([_.q({selector:Tj8,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"persistentPanelVisible",void 0);_.W([_.q({selector:_.xlT}),_.X("design:type",Number)],Jg.prototype,"miniplayerPlaybackState",void 0);_.W([_.q({selector:_.MS,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"miniplayerIsActive",void 0);
_.W([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.X("design:type",Boolean)],Jg.prototype,"isInlinePreviewEnabled",void 0);_.W([_.q(),_.X("design:type",Boolean)],Jg.prototype,"isInlinePreviewDisabled",void 0);_.W([_.q({reflectToAttribute:!0,value:function(){return _.mX("START_IN_FULL_WINDOW_MODE")}}),
_.X("design:type",Boolean)],Jg.prototype,"mastheadHidden",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"playerFullscreen",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"fullscreen",void 0);_.W([_.q({value:!1,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"hideHeaderShadow",void 0);
_.W([_.q({value:{GUIDE_ALT_LABEL:_.Lt("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.X("design:type",Object)],Jg.prototype,"menuStrings",void 0);_.W([_.q({computed:"computeTopbarData(data)"}),_.X("design:type",Object)],Jg.prototype,"topbarData",void 0);_.W([_.q({selector:_.SAt,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"isWatchPage",void 0);_.W([_.q({selector:_.zcT,reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"isShortsPage",void 0);
_.W([_.q({selector:function(v){return _.Ox(v)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.X("design:type",Boolean)],Jg.prototype,"isMiniAppPage",void 0);_.W([_.q({selector:function(v){return _.Ox(v)==="WEB_PAGE_TYPE_BROWSE"}}),
_.X("design:type",Boolean)],Jg.prototype,"isBrowsePage",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Boolean)],Jg.prototype,"scrolling",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Jg.prototype,"hasDelegation",void 0);_.W([_.q({reflectToAttribute:!0,value:!1}),_.X("design:type",Boolean)],Jg.prototype,"guideScrolledByTouch",void 0);_.W([_.q(),_.X("design:type",Object)],Jg.prototype,"isFrostedGlassInitialized",void 0);
_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Jg.prototype,"frostedGlassExp",void 0);_.W([_.q({selector:function(v){return v.ui.chipBarIsSticky}}),
_.X("design:type",Boolean)],Jg.prototype,"chipBarIsSticky",void 0);_.W([_.q({computed:"computeIsHomePage(isBrowsePage, data)"}),_.X("design:type",Boolean)],Jg.prototype,"isHomePage",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Jg.prototype,"hasPendingWatchNavigation",void 0);_.W([_.q({reflectToAttribute:!0}),_.X("design:type",Object)],Jg.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.W([_.q(),_.X("design:type",Object)],Jg.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.W([_.Ke("guide"),_.X("design:type",Object)],Jg.prototype,"guide",void 0);_.W([_.Ke("guide-service"),_.X("design:type",CQ8)],Jg.prototype,"guideService",void 0);_.W([_.Ke("guide-inner-content"),_.X("design:type",HTMLDivElement)],Jg.prototype,"guideInnerContent",void 0);_.W([_.Z7("#persistent-panel-container"),_.X("design:type",HTMLElement)],Jg.prototype,"persistentPanelContainer",void 0);
_.W([_.q({selector:_.BxZ}),_.X("design:type",String)],Jg.prototype,"frostedGlassMode",void 0);_.W([_.ph("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"dispatchFrostedGlassMode",null);_.W([_.q({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.X("design:type",Object)],Jg.prototype,"isFrostedGlassDisabled",void 0);
_.W([_.ph("isWatchPage"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"isWatchPageChanged",null);_.W([_.O("isHomePage","chipBarIsSticky"),_.X("design:type",Boolean),_.X("design:paramtypes",[])],Jg.prototype,"applyFrostedGlassToChipBar",null);_.W([_.q(),_.X("design:type",Object)],Jg.prototype,"isChannelOrPlaylistPage",void 0);
_.W([_.wg("isInlinePreviewEnabled"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"isInlinePreviewEnabledChanged",null);_.W([_.ph("guideIsVisibleButNotPersistent"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.W([_.ph("guidePersistentAndVisible","miniGuideVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"observeGuideVisibility",null);_.W([_.ph("persistentPanelVisible"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"observePersistentPanelVisibility",null);
_.W([_.tM("attached"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Jg.prototype,"onYtPageManagerAttached",null);_.W([_.ph("data"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype",Promise)],Jg.prototype,"updateMastheadData",null);_.W([_.tM("yt-set-theater-mode-enabled"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent,Object]),_.X("design:returntype")],Jg.prototype,"onSetTheaterModeEnabled",null);
_.W([_.tM("yt-page-type-changed"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Jg.prototype,"onPageChanged",null);_.W([_.tM("yt-page-data-updated"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"onPageDataUpdated",null);_.W([_.tM("yt-request-panel-mode-change"),_.X("design:type",Function),_.X("design:paramtypes",[Event,Object]),_.X("design:returntype")],Jg.prototype,"onRequestPanelModeChange",null);
_.W([_.tM("yt-guide-hover"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"onGuideOpenButtonHover",null);_.W([_.tM("app-drawer-transitioned"),_.X("design:type",Function),_.X("design:paramtypes",[Event]),_.X("design:returntype")],Jg.prototype,"onDrawerIronSelect",null);_.W([_.tM("yt-add-element-to-app"),_.X("design:type",Function),_.X("design:paramtypes",[CustomEvent]),_.X("design:returntype")],Jg.prototype,"onAddElementToApp",null);
_.W([_.tM("yt-set-fullerscreen-styles"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"setFullscreen",null);_.W([_.tM("yt-open-hotkey-dialog"),_.X("design:type",Function),_.X("design:paramtypes",[]),_.X("design:returntype")],Jg.prototype,"onOpenHotkeyDialog",null);_.W([_.J({is:"ytd-app"})],Jg);_.Zp().processSignal("eor");
_.oD();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
